@domphy/ui 0.20.12 → 0.21.0

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/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var Lt=Object.defineProperty,tr=Object.defineProperties,or=Object.getOwnPropertyDescriptor,nr=Object.getOwnPropertyDescriptors,rr=Object.getOwnPropertyNames,zo=Object.getOwnPropertySymbols;var Ro=Object.prototype.hasOwnProperty,ar=Object.prototype.propertyIsEnumerable;var Vo=(r,o,n)=>o in r?Lt(r,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[o]=n,G=(r,o)=>{for(var n in o||(o={}))Ro.call(o,n)&&Vo(r,n,o[n]);if(zo)for(var n of zo(o))ar.call(o,n)&&Vo(r,n,o[n]);return r},Ve=(r,o)=>tr(r,nr(o));var ir=(r,o)=>{for(var n in o)Lt(r,n,{get:o[n],enumerable:!0})},lr=(r,o,n,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let l of rr(o))!Ro.call(r,l)&&l!==n&&Lt(r,l,{get:()=>o[l],enumerable:!(e=or(o,l))||e.enumerable});return r};var sr=r=>lr(Lt({},"__esModule",{value:!0}),r);var mi={};ir(mi,{abbreviation:()=>cr,accordion:()=>mr,alert:()=>ur,avatar:()=>dr,badge:()=>pr,blockquote:()=>hr,breadcrumb:()=>gr,breadcrumbEllipsis:()=>fr,button:()=>Sr,buttonGhost:()=>eo,buttonSwitch:()=>xr,card:()=>vr,code:()=>kr,combobox:()=>Tr,command:()=>Dr,commandItem:()=>Or,commandSearch:()=>Pr,datePicker:()=>Ir,descriptionList:()=>Rr,details:()=>$r,dialog:()=>_r,divider:()=>Mr,drawer:()=>Br,emphasis:()=>Nr,empty:()=>Hr,errorBoundary:()=>Ar,fab:()=>Wr,figure:()=>jr,formGroup:()=>Kr,heading:()=>Gr,horizontalRule:()=>qr,icon:()=>Ur,image:()=>Xr,inputCheckbox:()=>Zr,inputColor:()=>Jr,inputDateTime:()=>Qr,inputFile:()=>ea,inputNumber:()=>ta,inputOTP:()=>oa,inputPassword:()=>aa,inputRadio:()=>ia,inputRange:()=>la,inputSearch:()=>sa,inputSwitch:()=>ca,inputText:()=>ma,keyboard:()=>ua,label:()=>da,link:()=>pa,linkButton:()=>fa,list:()=>ya,listItem:()=>ba,listItemButton:()=>Sa,mark:()=>xa,menu:()=>Ca,motion:()=>va,orderedList:()=>ka,pagination:()=>wa,panelSection:()=>Ta,paragraph:()=>Da,popover:()=>Pa,popoverArrow:()=>So,preformated:()=>Oa,progress:()=>La,rating:()=>Va,ringProgress:()=>Ra,row:()=>Co,scrollArea:()=>$a,segmented:()=>_a,select:()=>Ma,selectBox:()=>Ba,selectItem:()=>Na,selectList:()=>Ha,skeleton:()=>Aa,small:()=>Fa,spinner:()=>Wa,splitter:()=>ja,splitterHandle:()=>Ya,splitterPanel:()=>Ka,stack:()=>Ga,steps:()=>qa,strong:()=>Ua,subscript:()=>Xa,superscript:()=>Za,table:()=>Ja,tabs:()=>Qa,tag:()=>xt,textarea:()=>ei,timeline:()=>ti,timelineItem:()=>oi,toast:()=>ni,toggleGroup:()=>ri,toolbar:()=>ai,toolbarSpacer:()=>ii,tooltip:()=>li,transitionGroup:()=>si,unorderedList:()=>ci});module.exports=sr(mi);var Xt=require("@domphy/core"),Re=require("@domphy/theme");function cr(r={}){var e,l;let o=(0,Xt.toState)((e=r.color)!=null?e:"neutral","color"),n=(0,Xt.toState)((l=r.accentColor)!=null?l:"primary","accentColor");return{_onInsert:t=>{t.tagName!=="abbr"&&console.warn('"abbreviation" primitive patch must use abbr tag')},style:{fontSize:t=>(0,Re.themeSize)(t),backgroundColor:t=>(0,Re.themeColor)(t),color:t=>(0,Re.themeColor)(t,"shift-10",o.get(t)),textDecorationLine:"underline",textDecorationStyle:"dotted",textDecorationColor:t=>(0,Re.themeColor)(t,"shift-7",o.get(t)),textUnderlineOffset:(0,Re.themeSpacing)(.72),cursor:"help","&:hover":{color:t=>(0,Re.themeColor)(t,"shift-11",n.get(t)),textDecorationColor:t=>(0,Re.themeColor)(t,"shift-9",n.get(t))}}}}var Jt=require("@domphy/core"),Qe=require("@domphy/theme");var Zt=require("@domphy/theme");function b(r,o="primary"){let n=(0,Zt.themeColor)(r,"surface"),e=(0,Zt.themeColor)(r,"shift-9",o);return`0 0 0 2px ${n}, 0 0 0 4px ${e}`}function mr(r={}){var l,t;let{type:o="single"}=r,n=(0,Jt.toState)((l=r.color)!=null?l:"neutral","color"),e=(0,Jt.toState)((t=r.accentColor)!=null?t:"primary","accentColor");return{_onMount:a=>{if(o!=="single")return;let s=a.domElement;if(!s)return;let c=d=>{let i=d.target.closest("summary");if(!i)return;let m=i.closest("details");!m||m.parentElement!==s||m.open||Array.from(s.querySelectorAll(":scope > details")).forEach(y=>{y!==m&&(y.open=!1)})};s.addEventListener("click",c),a.addHook("Remove",()=>s.removeEventListener("click",c))},style:{display:"flex",flexDirection:"column",borderRadius:a=>(0,Qe.themeSpacing)((0,Qe.themeDensity)(a)*1.5),outline:a=>`1px solid ${(0,Qe.themeColor)(a,"border-strong",n.get(a))}`,outlineOffset:"-1px",color:a=>(0,Qe.themeColor)(a,"text",n.get(a)),overflow:"hidden","& > details":{borderBottom:a=>`1px solid ${(0,Qe.themeColor)(a,"border-strong",n.get(a))}`},"& > details:last-child":{borderBottom:"none"},"& > details > summary:focus-visible":{boxShadow:a=>b(a,e.get(a))}}}}var $o=require("@domphy/core"),de=require("@domphy/theme");function ur(r={}){var n;let o=(0,$o.toState)((n=r.color)!=null?n:"primary","color");return{role:"alert",dataTone:"shift-2",style:{display:"flex",alignItems:"flex-start",gap:(0,de.themeSpacing)(3),paddingBlock:e=>(0,de.themeSpacing)((0,de.themeDensity)(e)*2),paddingInline:e=>(0,de.themeSpacing)((0,de.themeDensity)(e)*4),borderRadius:e=>(0,de.themeSpacing)((0,de.themeDensity)(e)*1.5),boxShadow:e=>`inset ${(0,de.themeSpacing)(1)} 0 0 0 ${(0,de.themeColor)(e,"shift-8",o.get(e))}`,backgroundColor:e=>(0,de.themeColor)(e,"inherit",o.get(e)),color:e=>(0,de.themeColor)(e,"shift-10",o.get(e)),fontSize:e=>(0,de.themeSize)(e,"inherit")}}}var _o=require("@domphy/core"),We=require("@domphy/theme");function dr(r={}){var n;let o=(0,_o.toState)((n=r.color)!=null?n:"primary","color");return{dataTone:"shift-2",_doctorDisable:"inline-typography",style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",overflow:"hidden",borderRadius:"50%",flexShrink:0,width:(0,We.themeSpacing)(9),height:(0,We.themeSpacing)(9),fontSize:e=>(0,We.themeSize)(e,"inherit"),fontWeight:"600",userSelect:"none",backgroundColor:e=>(0,We.themeColor)(e,"inherit",o.get(e)),color:e=>(0,We.themeColor)(e,"shift-11",o.get(e)),boxShadow:e=>`0 0 0 1px ${(0,We.themeColor)(e,"border",o.get(e))}`,"& img":{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"}}}}var Qt=require("@domphy/core"),De=require("@domphy/theme");function pr(r={}){var l;let{label:o=999}=r,n=(0,Qt.toState)(o),e=(0,Qt.toState)((l=r.color)!=null?l:"danger","color");return{_doctorDisable:"inline-typography",style:{position:"relative","&::after":{content:t=>`"${n.get(t)}"`,position:"absolute",top:0,right:0,transform:"translate(50%,-50%)",paddingInline:(0,De.themeSpacing)(1.5),minWidth:(0,De.themeSpacing)(5),height:(0,De.themeSpacing)(5),display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:t=>(0,De.themeSize)(t,"decrease-2"),fontWeight:"600",lineHeight:1,borderRadius:(0,De.themeSpacing)(999),backgroundColor:t=>(0,De.themeColor)(t,"shift-9",e.get(t)),color:t=>(0,De.themeColor)(t,"shift-0",e.get(t)),boxShadow:t=>`0 0 0 1px ${(0,De.themeColor)(t,"shift-0",e.get(t))}`}}}}var Mo=require("@domphy/core"),Se=require("@domphy/theme");function hr(r={}){var n;let o=(0,Mo.toState)((n=r.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="blockquote"&&console.warn('"blockquote" primitive patch must use blockquote tag')},dataTone:"shift-2",style:{fontSize:e=>(0,Se.themeSize)(e,"inherit"),backgroundColor:e=>(0,Se.themeColor)(e,"inherit",o.get(e)),color:e=>(0,Se.themeColor)(e,"text",o.get(e)),boxShadow:e=>`inset ${(0,Se.themeSpacing)(1)} 0 0 0 ${(0,Se.themeColor)(e,"shift-4",o.get(e))}`,border:"none",paddingBlock:e=>(0,Se.themeSpacing)((0,Se.themeDensity)(e)*2),paddingInline:e=>(0,Se.themeSpacing)((0,Se.themeDensity)(e)*4),margin:0}}}var Bo=require("@domphy/core"),Pe=require("@domphy/theme");function gr(r={}){var e;let{separator:o="/"}=r,n=(0,Bo.toState)((e=r.color)!=null?e:"neutral","color");return{_onInsert:l=>{l.tagName!=="nav"&&console.warn('"breadcrumb" patch must use nav tag')},ariaLabel:"breadcrumb",style:{display:"flex",alignItems:"center",flexWrap:"wrap",fontSize:l=>(0,Pe.themeSize)(l,"inherit"),gap:(0,Pe.themeSpacing)(1),color:l=>(0,Pe.themeColor)(l,"text",n.get(l)),backgroundColor:l=>(0,Pe.themeColor)(l,"inherit",n.get(l)),"& > *":{display:"inline-flex",alignItems:"center",color:l=>(0,Pe.themeColor)(l,"muted",n.get(l))},"& > *:not(:last-child)::after":{content:`"${o}"`,color:l=>(0,Pe.themeColor)(l,"shift-4",n.get(l)),paddingInlineStart:(0,Pe.themeSpacing)(1)},"& > [aria-current=page]":{color:l=>(0,Pe.themeColor)(l,"shift-10",n.get(l)),pointerEvents:"none"}}}}var No=require("@domphy/core"),je=require("@domphy/theme");function fr(r={}){var n;let o=(0,No.toState)((n=r.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="button"&&console.warn('"breadcrumbEllipsis" patch must use button tag')},ariaLabel:"More breadcrumb items",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:e=>(0,je.themeSize)(e,"inherit"),paddingInline:(0,je.themeSpacing)(1),border:"none",background:"none",cursor:"pointer",color:e=>(0,je.themeColor)(e,"muted",o.get(e)),borderRadius:(0,je.themeSpacing)(1),transition:"color 140ms ease, background-color 140ms ease, box-shadow 140ms ease","&:hover":{color:e=>(0,je.themeColor)(e,"shift-10",o.get(e)),backgroundColor:e=>(0,je.themeColor)(e,"hover",o.get(e))},"&:focus-visible":{boxShadow:e=>b(e,o.get(e))}}}}var Ao=require("@domphy/core"),B=require("@domphy/theme");var pt={small:"decrease-1",medium:"inherit",large:"increase-1"};var Ho=require("@domphy/core"),le=require("@domphy/theme");var yr={small:.5,medium:1,large:1.5};function eo(r={}){var l,t,a;let o=(0,Ho.toState)((l=r.color)!=null?l:"neutral","color"),n=yr[(t=r.size)!=null?t:"medium"],e=pt[(a=r.size)!=null?a:"medium"];return{_onInsert:s=>{s.tagName!=="button"&&console.warn('"buttonGhost" primitive patch must use button tag')},style:{appearance:"none",fontSize:s=>(0,le.themeSize)(s,e),paddingBlock:s=>(0,le.themeSpacing)((0,le.themeDensity)(s)*n),paddingInline:s=>(0,le.themeSpacing)((0,le.themeDensity)(s)*n),borderRadius:s=>(0,le.themeSpacing)((0,le.themeDensity)(s)*1.5),display:"inline-flex",justifyContent:"center",alignItems:"center",gap:s=>(0,le.themeSpacing)((0,le.themeDensity)(s)*1),userSelect:"none",cursor:"pointer",fontFamily:"inherit",lineHeight:"inherit",border:"none",background:"none",outline:"none",transition:"background-color 140ms ease, color 140ms ease, box-shadow 140ms ease",color:s=>(0,le.themeColor)(s,"shift-6",o.get(s)),"&:hover:not([disabled]):not([aria-busy=true])":{color:s=>(0,le.themeColor)(s,"text",o.get(s)),backgroundColor:s=>(0,le.themeColor)(s,"hover",o.get(s))},"&:active:not([disabled]):not([aria-busy=true])":{color:s=>(0,le.themeColor)(s,"text",o.get(s)),backgroundColor:s=>(0,le.themeColor)(s,"increase-2",o.get(s))},"&:focus-visible":{boxShadow:s=>b(s,o.get(s))},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:s=>(0,le.themeColor)(s,"border-strong","neutral")},"&[aria-busy=true]":{opacity:.7,cursor:"wait",pointerEvents:"none"}}}}var br={small:{block:.5,inline:2},medium:{block:1,inline:3},large:{block:1.5,inline:4}};function Sr(r={}){var a,s,c,d;let o=(a=r.variant)!=null?a:"outline";if(o==="ghost")return eo({color:r.color,size:r.size});let n=(0,Ao.toState)((s=r.color)!=null?s:"primary","color"),e=o==="solid",l=br[(c=r.size)!=null?c:"medium"],t=pt[(d=r.size)!=null?d:"medium"];return Ve(G({_onInsert:i=>{i.tagName!=="button"&&console.warn('"button" primitive patch must use button tag')}},e?{_doctorDisable:["low-contrast","color-shift-minimum","tone-background-inherit"]}:{}),{style:{appearance:"none",fontSize:i=>(0,B.themeSize)(i,t),paddingBlock:i=>(0,B.themeSpacing)((0,B.themeDensity)(i)*l.block),paddingInline:i=>(0,B.themeSpacing)((0,B.themeDensity)(i)*l.inline),borderRadius:i=>(0,B.themeSpacing)((0,B.themeDensity)(i)*1.5),width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",gap:i=>(0,B.themeSpacing)((0,B.themeDensity)(i)*1),userSelect:"none",cursor:"pointer",fontFamily:"inherit",lineHeight:"inherit",border:"none",outlineOffset:"-1px",outlineWidth:"1px",outline:e?"none":i=>`1px solid ${(0,B.themeColor)(i,"border-strong",n.get(i))}`,color:i=>e?(0,B.themeColor)(i,"shift-0","neutral"):(0,B.themeColor)(i,"shift-13",n.get(i)),backgroundColor:i=>e?(0,B.themeColor)(i,"shift-13",n.get(i)):(0,B.themeColor)(i,"inherit",n.get(i)),transition:"background-color 140ms ease, color 140ms ease, border-color 140ms ease, box-shadow 140ms ease","&:hover:not([disabled]):not([aria-busy=true])":{color:i=>e?(0,B.themeColor)(i,"shift-0","neutral"):(0,B.themeColor)(i,"shift-14",n.get(i)),backgroundColor:i=>e?(0,B.themeColor)(i,"shift-14",n.get(i)):(0,B.themeColor)(i,"hover",n.get(i))},"&:active:not([disabled]):not([aria-busy=true])":{backgroundColor:i=>e?(0,B.themeColor)(i,"shift-15",n.get(i)):(0,B.themeColor)(i,"increase-2",n.get(i))},"&:focus-visible":{boxShadow:i=>b(i,n.get(i))},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:i=>(0,B.themeColor)(i,"shift-2","neutral"),outline:i=>`1px solid ${(0,B.themeColor)(i,"border-strong","neutral")}`,color:i=>(0,B.themeColor)(i,"muted","neutral")},"&[aria-busy=true]":{opacity:.7,cursor:"wait",pointerEvents:"none"}}})}var It=require("@domphy/core"),q=require("@domphy/theme");function xr(r={}){var t,a;let{checked:o=!1}=r,n=(0,It.toState)(o),e=(0,It.toState)((t=r.color)!=null?t:"neutral","color"),l=(0,It.toState)((a=r.accentColor)!=null?a:"primary","accentColor");return{_onSchedule:s=>{s.tagName!=="button"&&console.warn('"buttonSwitch" primitive patch must use button tag')},role:"switch",ariaChecked:s=>n.get(s),dataTone:"shift-2",onClick:()=>n.set(!n.get()),style:{position:"relative",display:"inline-flex",alignItems:"center",fontSize:s=>(0,q.themeSize)(s),border:"none",outlineWidth:"1px",outline:s=>`1px solid ${(0,q.themeColor)(s,"border",e.get(s))}`,minWidth:(0,q.themeSpacing)(12),minHeight:(0,q.themeSpacing)(6),borderRadius:(0,q.themeSpacing)(999),paddingLeft:(0,q.themeSpacing)(7),paddingRight:(0,q.themeSpacing)(2),cursor:"pointer",transition:"padding-left 0.3s, padding-right 0.3s, background-color 140ms ease, box-shadow 140ms ease",backgroundColor:s=>(0,q.themeColor)(s,"inherit",e.get(s)),color:s=>(0,q.themeColor)(s,"text",e.get(s)),"&:focus-visible":{boxShadow:s=>b(s,l.get(s))},"& > :first-child":{content:'""',position:"absolute",display:"inline-flex",alignItems:"center",left:(0,q.themeSpacing)(.5),top:"50%",transform:"translateY(-50%)",transition:"left 0.3s",width:(0,q.themeSpacing)(5),height:(0,q.themeSpacing)(5),borderRadius:(0,q.themeSpacing)(999),color:s=>(0,q.themeColor)(s,"text"),backgroundColor:s=>(0,q.themeColor)(s,"decrease-2",e.get(s))},"&[aria-checked=true]":{backgroundColor:s=>(0,q.themeColor)(s,"increase-3",l.get(s)),outline:"none",color:s=>(0,q.themeColor)(s,"decrease-2"),paddingLeft:(0,q.themeSpacing)(2),paddingRight:(0,q.themeSpacing)(7)},"&[aria-checked=true] > :first-child":{left:`calc(100% - ${(0,q.themeSpacing)(5.5)})`},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}}var Fo=require("@domphy/core"),z=require("@domphy/theme");var Cr={low:"0 1px 2px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.10)",medium:"0 2px 4px rgba(0,0,0,0.10), 0 10px 24px rgba(0,0,0,0.14)",high:"0 6px 12px rgba(0,0,0,0.14), 0 24px 48px rgba(0,0,0,0.20)"};function _(r){return Cr[r]}function vr(r={}){var n;let o=(0,Fo.toState)((n=r.color)!=null?n:"neutral","color");return{_doctorDisable:"inline-typography",style:{display:"grid",gridTemplateColumns:"1fr auto",gridTemplateAreas:'"image image" "title aside" "desc aside" "content content" "footer footer"',borderRadius:e=>(0,z.themeSpacing)((0,z.themeDensity)(e)*2),backgroundColor:e=>(0,z.themeColor)(e,"inherit",o.get(e)),color:e=>(0,z.themeColor)(e,"shift-10",o.get(e)),outline:e=>`1px solid ${(0,z.themeColor)(e,"border-strong",o.get(e))}`,outlineOffset:"-1px",boxShadow:_("low"),overflow:"hidden","& > img":{gridArea:"image",width:"100%",height:"auto",display:"block"},"& > :is(h1,h2,h3,h4,h5,h6)":{gridArea:"title",paddingBlock:e=>(0,z.themeSpacing)((0,z.themeDensity)(e)*2),paddingInline:e=>(0,z.themeSpacing)((0,z.themeDensity)(e)*4),fontWeight:"600",color:e=>(0,z.themeColor)(e,"shift-11",o.get(e)),margin:0},"& > p":{gridArea:"desc",paddingInline:e=>(0,z.themeSpacing)((0,z.themeDensity)(e)*4),paddingBottom:e=>(0,z.themeSpacing)((0,z.themeDensity)(e)*2),color:e=>(0,z.themeColor)(e,"text",o.get(e)),margin:0},"& > aside":{gridArea:"aside",alignSelf:"center",padding:e=>(0,z.themeSpacing)((0,z.themeDensity)(e)*2),height:"auto"},"& > div":{gridArea:"content",padding:e=>(0,z.themeSpacing)((0,z.themeDensity)(e)*4),color:e=>(0,z.themeColor)(e,"shift-10",o.get(e))},"& > footer":{gridArea:"footer",display:"flex",gap:(0,z.themeSpacing)(2),paddingBlock:e=>(0,z.themeSpacing)((0,z.themeDensity)(e)*2),paddingInline:e=>(0,z.themeSpacing)((0,z.themeDensity)(e)*4),borderTop:e=>`1px solid ${(0,z.themeColor)(e,"border",o.get(e))}`}}}}var Wo=require("@domphy/core"),Ke=require("@domphy/theme");function kr(r={}){var n;let o=(0,Wo.toState)((n=r.color)!=null?n:"neutral","color");return{dataTone:"shift-2",_onInsert:e=>{e.tagName!=="code"&&console.warn('"code" primitive patch must use code tag')},style:{display:"inline-flex",alignItems:"center",whiteSpace:"nowrap",fontSize:e=>(0,Ke.themeSize)(e,"inherit"),color:e=>(0,Ke.themeColor)(e,"text",o.get(e)),backgroundColor:e=>(0,Ke.themeColor)(e,"inherit",o.get(e)),height:(0,Ke.themeSpacing)(6),paddingInline:(0,Ke.themeSpacing)(1.5),borderRadius:(0,Ke.themeSpacing)(1)}}}var et=require("@domphy/core"),W=require("@domphy/theme");var ht=require("@domphy/core"),$e=require("@domphy/floating");function Er(r,o){var O;let{openState:n,placement:e,content:l,keepOpenOnContentHover:t}=o,a=null,s=null,c=null,d=null,i=!1,m=r.domElement,y=r.getRoot(),g={style:{position:"fixed",pointerEvents:"auto",visibility:T=>n.get(T)?"visible":"hidden"},onKeyDown:T=>{T.key==="Escape"&&x()},onMouseEnter:()=>t&&E(),onMouseLeave:()=>t&&x(),_onMount:T=>{var I;if(c=T.domElement,m&&c&&!c.hasAttribute("data-theme")){let be=(I=m.closest("[data-theme]"))==null?void 0:I.getAttribute("data-theme");be&&c.setAttribute("data-theme",be)}},_portal:T=>{let I=T.domElement.querySelector("#domphy-floating");if(!I){let be={div:[],id:"domphy-floating",style:{position:"fixed",inset:0,zIndex:20,pointerEvents:"none"}};I=T.children.insert(be).domElement}return I}},h=T=>(0,ht.merge)(T,g);h(l);let u=()=>{i||(i=!0,d=y.children.insert(l))},p=()=>{u(),m&&c&&(s==null||s(),s=(0,$e.autoUpdate)(m,c,()=>{(0,$e.computePosition)(m,c,{placement:e.get(),middleware:[(0,$e.offset)(12),(0,$e.flip)(),(0,$e.shift)()],strategy:"fixed"}).then(({x:T,y:I,placement:be})=>{c&&(Object.assign(c.style,{left:`${T}px`,top:`${I}px`}),e.set(be))})}),n.set(!0))},C=()=>{s==null||s(),s=null,d&&(d.remove(),d=null),c=null,i=!1,n.set(!1)},E=()=>{a&&clearTimeout(a),a=setTimeout(p,100)},x=()=>{a&&clearTimeout(a),a=setTimeout(C,100)},$=T=>{if(!n.get()||!m||!c)return;let I=T.target;!m.contains(I)&&!c.contains(I)&&x()};return(O=y.domElement)==null||O.addEventListener("click",$),{show:E,hide:x,update(T){n=T.openState,e=T.placement,l=T.content,t=T.keepOpenOnContentHover,h(l),d&&d.patch(l)},destroy(){var T;a&&clearTimeout(a),s==null||s(),d==null||d.remove(),(T=y.domElement)==null||T.removeEventListener("click",$)}}}function _e(r){let{kind:o,open:n=!1,placement:e}=r,l=(0,ht.toState)(n),t=`floating:${o}`,a=d=>{var i;return(i=d==null?void 0:d.getBehavior(t))==null?void 0:i.show()},s=d=>{var i;return(i=d==null?void 0:d.getBehavior(t))==null?void 0:i.hide()},c=G({onKeyDown:(d,i)=>d.key==="Escape"&&s(i)},(0,ht.behavior)(t,Er,{openState:l,placement:e,content:r.content,keepOpenOnContentHover:!!r.keepOpenOnContentHover}));return{show:a,hide:s,anchorPartial:c}}var zt=require("@domphy/core"),me=require("@domphy/theme");var wr='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M6.707 5.293l5.293 5.292l5.293 -5.292a1 1 0 0 1 1.414 1.414l-5.292 5.293l5.292 5.293a1 1 0 0 1 -1.414 1.414l-5.293 -5.292l-5.293 5.292a1 1 0 1 1 -1.414 -1.414l5.292 -5.293l-5.292 -5.293a1 1 0 0 1 1.414 -1.414" /></svg>';function xt(r={}){var e;let{removable:o=!1}=r,n=(0,zt.toState)((e=r.color)!=null?e:"neutral","color");return{dataTone:"shift-2",_onInit:l=>{let t={span:(0,zt.rawHtml)(wr),onClick:a=>{a.stopPropagation(),l.remove()},tabindex:0,role:"button",ariaLabel:"Remove",style:{display:"inline-flex",alignItems:"center",cursor:"pointer",borderRadius:(0,me.themeSpacing)(1),width:(0,me.themeSpacing)(4),height:(0,me.themeSpacing)(4),flexShrink:0,transition:"background-color 140ms ease, box-shadow 140ms ease","&:hover":{backgroundColor:a=>(0,me.themeColor)(a,"shift-4",n.get(a))},"&:focus-visible":{boxShadow:a=>b(a,n.get(a))}}};o&&l.children.insert(t)},style:{display:"inline-flex",alignItems:"center",whiteSpace:"nowrap",userSelect:"none",height:(0,me.themeSpacing)(6),paddingBlock:0,borderRadius:(0,me.themeSpacing)(999),paddingInlineStart:(0,me.themeSpacing)(2.5),paddingInlineEnd:o?(0,me.themeSpacing)(1):(0,me.themeSpacing)(2.5),gap:(0,me.themeSpacing)(1.5),fontSize:l=>(0,me.themeSize)(l,"decrease-1"),backgroundColor:l=>(0,me.themeColor)(l,"inherit",n.get(l)),color:l=>(0,me.themeColor)(l,"text",n.get(l)),border:"none",outlineOffset:"-1px",outline:l=>`1px solid ${(0,me.themeColor)(l,"border-strong",n.get(l))}`}}}function Tr(r){let{options:o=[],placement:n="bottom",color:e="neutral",open:l=!1,multiple:t=!1}=r,a=(0,et.toState)(r.value),s=(0,et.toState)(l),{show:c,hide:d,anchorPartial:i}=_e({kind:"combobox",open:s,placement:(0,et.toState)(n),content:r.content}),m={onClick:(p,C)=>!t&&d(C),dataTone:"shift-14",style:{backgroundColor:p=>(0,W.themeColor)(p,"inherit"),borderRadius:p=>(0,W.themeSpacing)((0,W.themeDensity)(p)*2),outline:p=>`1px solid ${(0,W.themeColor)(p,"border-strong")}`,outlineOffset:"-1px",boxShadow:_("medium")}};(0,et.merge)(r.content,m);let y={border:"none",outline:"none",padding:0,margin:0,flex:1,height:(0,W.themeSpacing)(6),marginInlineStart:(0,W.themeSpacing)(2),fontSize:p=>(0,W.themeSize)(p,"inherit"),color:p=>(0,W.themeColor)(p,"text",e),backgroundColor:p=>(0,W.themeColor)(p,"inherit",e)},g;if(r.input){let p={onFocus:(C,E)=>c(E),style:y,_key:"combobox-input"};(0,et.merge)(r.input,p),g=r.input}else g={input:null,ariaLabel:"Filter options",onFocus:(p,C)=>c(C),value:p=>(a.get(p),""),style:y,_key:"combobox-input"};let h={div:p=>{let C=a.get(p),E=Array.isArray(C)?C:[C],$=o.filter(O=>E.includes(O.value)).map(O=>({span:O.label,$:[xt({color:e,removable:!0})],_key:O.value,_onRemove:T=>{let I=a.get(),nt=(Array.isArray(I)?I:[I]).filter(Ze=>Ze!==O.value);t?a.set(nt):a.set(nt[0])}}));return $.push(g),$},style:{display:"flex",flexWrap:"wrap",gap:(0,W.themeSpacing)(1)}},u={_onInsert:p=>{p.tagName!=="div"&&console.warn('"combobox" primitive patch must use div tag')},_onInit:p=>p.children.insert(h),style:{minWidth:(0,W.themeSpacing)(32),outlineOffset:"-1px",outline:p=>`1px solid ${(0,W.themeColor)(p,"border-strong","neutral")}`,paddingBlock:p=>(0,W.themeSpacing)((0,W.themeDensity)(p)*1),paddingInline:p=>(0,W.themeSpacing)((0,W.themeDensity)(p)*1),borderRadius:p=>(0,W.themeSpacing)((0,W.themeDensity)(p)*1.5),fontSize:p=>(0,W.themeSize)(p,"inherit"),color:p=>(0,W.themeColor)(p,"text",e),backgroundColor:p=>(0,W.themeColor)(p,"inherit",e),transition:"background-color 140ms ease, outline-color 140ms ease, box-shadow 140ms ease","&:focus-within":{boxShadow:p=>b(p,e)}}};return(0,et.merge)(i,u),i}var Vt=require("@domphy/core"),U=require("@domphy/theme");function Dr(){return{role:"group",ariaLabel:"Commands",_onSchedule:(r,o)=>{(0,Vt.merge)(o,{_context:{command:{query:(0,Vt.toState)("")}}})},style:{display:"flex",flexDirection:"column",overflow:"hidden"}}}function Pr(r={}){let{color:o="neutral",accentColor:n="primary"}=r;return{_onInsert:e=>{e.tagName!=="input"&&console.warn('"commandSearch" patch must use input tag')},_onMount:e=>{let l=e.getContext("command");if(!l){console.warn('"commandSearch" patch must be used inside a "command"');return}let t=e.domElement,a=()=>l.query.set(t.value);t.addEventListener("input",a),e.addHook("Remove",()=>t.removeEventListener("input",a))},style:{fontFamily:"inherit",fontSize:e=>(0,U.themeSize)(e,"inherit"),paddingInline:e=>(0,U.themeSpacing)((0,U.themeDensity)(e)*3),paddingBlock:e=>(0,U.themeSpacing)((0,U.themeDensity)(e)*2),border:"none",borderBottom:e=>`1px solid ${(0,U.themeColor)(e,"border",o)}`,outline:"none",color:e=>(0,U.themeColor)(e,"shift-10",o),backgroundColor:e=>(0,U.themeColor)(e,"inherit",o),"&::placeholder":{color:e=>(0,U.themeColor)(e,"shift-7")},transition:"border-bottom-color 140ms ease, box-shadow 140ms ease","&:focus-visible":{borderBottomColor:e=>(0,U.themeColor)(e,"shift-6",n),boxShadow:e=>b(e,n)}}}}function Or(r={}){let{color:o="neutral",accentColor:n="primary"}=r;return{_onMount:e=>{var d,i;let l=e.getContext("command");if(!l){console.warn('"commandItem" patch must be used inside a "command"');return}let t=e.domElement,a=(i=(d=t.textContent)==null?void 0:d.toLowerCase())!=null?i:"",s=m=>{t.hidden=m.length>0&&!a.includes(m.toLowerCase())};s(l.query.get());let c=l.query.addListener(s);e.addHook("Remove",c)},style:{cursor:"pointer",display:"flex",alignItems:"center",width:"100%",fontSize:e=>(0,U.themeSize)(e,"inherit"),height:e=>(0,U.themeSpacing)(6+(0,U.themeDensity)(e)*2),paddingInline:e=>(0,U.themeSpacing)((0,U.themeDensity)(e)*3),border:"none",outline:"none",color:e=>(0,U.themeColor)(e,"shift-13",o),backgroundColor:e=>(0,U.themeColor)(e,"inherit",o),transition:"background-color 140ms ease, box-shadow 140ms ease","&:hover:not([disabled])":{color:e=>(0,U.themeColor)(e,"shift-13",o),backgroundColor:e=>(0,U.themeColor)(e,"hover",o)},"&:focus-visible":{boxShadow:e=>b(e,n)}}}}var ke=require("@domphy/core"),v=require("@domphy/theme");var ce=r=>new Date(r.getFullYear(),r.getMonth(),r.getDate()),rt=(r,o)=>new Date(r.getFullYear(),r.getMonth(),r.getDate()+o),to=(r,o)=>new Date(r.getFullYear(),r.getMonth()+o,r.getDate()),Ct=(r,o)=>!!r&&!!o&&r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()&&r.getDate()===o.getDate(),oo=r=>`${r.getFullYear()}-${String(r.getMonth()+1).padStart(2,"0")}-${String(r.getDate()).padStart(2,"0")}`,no=(r,o)=>rt(r,-((r.getDay()-o+7)%7));function Lr(r){var o,n;try{let e=new Intl.Locale(r),l=(n=(o=e.getWeekInfo)==null?void 0:o.call(e))!=null?n:e.weekInfo;if(l!=null&&l.firstDay)return l.firstDay%7}catch(e){}return 0}function Ir(r={}){var Po,Oo,Lo,Io;let{mode:o="single",time:n=!1,min:e,max:l,disabledDate:t,locale:a=typeof navigator!="undefined"?navigator.language:"en-US",format:s,onChange:c}=r,d=(Po=r.weekStartsOn)!=null?Po:Lr(a),i=(0,ke.toState)((Oo=r.accentColor)!=null?Oo:"primary","accentColor"),m=(0,ke.toState)((Lo=r.placement)!=null?Lo:"bottom-start"),y=(0,ke.toState)((Io=r.value)!=null?Io:o==="range"?[null,null]:null),g=c?y.addListener(f=>c(f)):null,h=(()=>{let f=y.get(),S=o==="range"?f==null?void 0:f[0]:f;return S instanceof Date?S:new Date})(),u=(0,ke.toState)(h.getFullYear(),"viewYear"),p=(0,ke.toState)(h.getMonth(),"viewMonth"),C=(0,ke.toState)(ce(h),"focused"),E=(0,ke.toState)(null,"hovered"),x=(0,ke.toState)(h.getHours(),"hour"),$=(0,ke.toState)(h.getMinutes(),"minute"),O=null,T=new Intl.DateTimeFormat(a,G({dateStyle:"medium"},n?{timeStyle:"short"}:{})),I=new Intl.DateTimeFormat(a,{month:"long",year:"numeric"}),be=new Intl.DateTimeFormat(a,{weekday:"short"}),nt=new Intl.DateTimeFormat(a,{dateStyle:"full"}),Ze=f=>f?T.format(f):"",Nn=f=>{if(s)return s(f);if(o==="range"){let[S,k]=f!=null?f:[null,null];return S?`${Ze(S)} \u2013 ${Ze(k)}`:""}return Ze(f)},Hn=Array.from({length:7},(f,S)=>be.format(new Date(2023,0,1+(S+d)%7))),Eo=f=>!!e&&ce(f)<ce(e)||!!l&&ce(f)>ce(l)||!!t&&t(f),Je=f=>{if(!n)return ce(f);let S=ce(f);return S.setHours(x.get(),$.get(),0,0),S},wo=f=>{var D;if(Eo(f))return;if(o==="single"){y.set(Je(f)),n||qt();return}let[S,k]=(D=y.get())!=null?D:[null,null];!S||S&&k?y.set([Je(f),null]):ce(f)<ce(S)?(y.set([Je(f),Je(S)]),n||qt()):(y.set([S,Je(f)]),n||qt())},An=()=>{var f;if(n)if(o==="single"){let S=y.get();S&&y.set(Je(S))}else{let[S,k]=(f=y.get())!=null?f:[null,null];y.set([S&&Je(S),k&&Je(k)])}},Fn=(f,S)=>{var dt;if(o!=="range")return!1;let[k,D]=(dt=y.get(S))!=null?dt:[null,null],J=D!=null?D:E.get(S);if(!k||!J)return!1;let P=ce(k)<=ce(J)?k:J,ve=ce(k)<=ce(J)?J:k,ge=ce(f);return ge>=ce(P)&&ge<=ce(ve)},Wn=(f,S)=>{let k=y.get(S);if(o==="range"){let[D,J]=k!=null?k:[null,null];return Ct(f,D)||Ct(f,J)}return Ct(f,k)},Ot=f=>{u.set(f.getFullYear()),p.set(f.getMonth())},To=f=>{let S=to(new Date(u.get(),p.get(),1),f);Ot(S)},Do=f=>u.set(u.get()+f),Yt=()=>{setTimeout(()=>{var f;(f=O==null?void 0:O.querySelector(`[data-date="${oo(C.get())}"]`))==null||f.focus()},0)},jn=Un(),{show:Kn,hide:Yn,anchorPartial:Gt}=_e({kind:"datePicker",open:!1,placement:m,content:jn});function qt(){Yn()}Gt.onClick=()=>{};let Gn={type:"text",readonly:!0,value:f=>Nn(y.get(f)),ariaHaspopup:"dialog",ariaLabel:"Choose date",style:{cursor:"pointer"},onClick:(f,S)=>{Ut(S)},onFocus:(f,S)=>{Ut(S)},onKeyDown:(f,S)=>{let k=f.key;(k==="ArrowDown"||k==="Enter")&&(f.preventDefault(),Ut(S))},_onMount:f=>g&&f.addHook("Remove",()=>{g()})};function Ut(f){var k;let S=(k=qn())!=null?k:new Date;C.set(ce(S)),Ot(S),Kn(f),Yt()}function qn(){var S;let f=y.get();return o==="range"?(S=f==null?void 0:f[0])!=null?S:null:f!=null?f:null}return(0,ke.merge)(Gt,Gn),Gt;function Un(){let f=(P,ve,ge)=>({button:P,type:"button",ariaLabel:ve,onClick:ge,style:zr()}),S={div:[f("\xAB","Previous year",()=>Do(-1)),f("\u2039","Previous month",()=>To(-1)),{div:P=>I.format(new Date(u.get(P),p.get(P),1)),ariaLive:"polite",style:{flex:"1",textAlign:"center",fontWeight:"bold",fontSize:P=>(0,v.themeSize)(P)}},f("\u203A","Next month",()=>To(1)),f("\xBB","Next year",()=>Do(1))],style:{display:"flex",alignItems:"center",gap:(0,v.themeSpacing)(1),marginBottom:(0,v.themeSpacing)(2)}},k={div:Hn.map((P,ve)=>({div:P,style:{textAlign:"center",fontSize:ge=>(0,v.themeSize)(ge,"decrease-1"),fontWeight:"bold",color:ge=>(0,v.themeColor)(ge,"shift-7"),paddingBlock:(0,v.themeSpacing)(1)},_key:ve})),role:"row",style:jo()},D={div:P=>Xn(P),role:"grid",ariaLabel:"Calendar",onKeyDown:er,onMouseLeave:()=>o==="range"&&E.set(null),style:{display:"flex",flexDirection:"column",gap:(0,v.themeSpacing)(.5)}},J=[S,k,D];return n&&J.push(Jn()),J.push(Qn()),{div:J,role:"dialog",ariaModal:"false",_onMount:P=>{O=P.domElement},style:{minWidth:(0,v.themeSpacing)(70),padding:(0,v.themeSpacing)(3),borderRadius:P=>(0,v.themeSpacing)((0,v.themeDensity)(P)*2),backgroundColor:P=>(0,v.themeColor)(P,"base"),color:P=>(0,v.themeColor)(P,"shift-10"),border:P=>`1px solid ${(0,v.themeColor)(P,"border-strong")}`,boxShadow:_("medium")}}}function Xn(f){let S=new Date(u.get(f),p.get(f),1),k=p.get(f),D=no(S,d),J=[];for(let P=0;P<6;P++){let ve=[];for(let ge=0;ge<7;ge++){let dt=rt(D,P*7+ge);ve.push(Zn(dt,k,f))}J.push({div:ve,role:"row",style:jo(),_key:P})}return J}function Zn(f,S,k){let D=Eo(f),J=Wn(f,k),P=Fn(f,k),ve=f.getMonth()!==S,ge=Ct(f,C.get(k)),dt=Ct(f,new Date);return{button:String(f.getDate()),type:"button",role:"gridcell",tabIndex:ge?0:-1,ariaSelected:J,ariaDisabled:D,disabled:D,ariaLabel:nt.format(f),dataDate:oo(f),onClick:()=>wo(f),onMouseEnter:()=>o==="range"&&E.set(f),style:{appearance:"none",border:"none",cursor:D?"not-allowed":"pointer",aspectRatio:"1",borderRadius:(0,v.themeSpacing)(1),fontSize:Q=>(0,v.themeSize)(Q),fontFamily:"inherit",opacity:D?.35:ve?.5:1,backgroundColor:Q=>J?(0,v.themeColor)(Q,"shift-7",i.get(Q)):P?(0,v.themeColor)(Q,"hover",i.get(Q)):"transparent",color:Q=>J?(0,v.themeColor)(Q,"shift-0",i.get(Q)):(0,v.themeColor)(Q,"text"),outline:dt?Q=>`1px solid ${(0,v.themeColor)(Q,"shift-6",i.get(Q))}`:"none",outlineOffset:"-2px","&:hover:not([disabled])":{backgroundColor:Q=>J?(0,v.themeColor)(Q,"shift-7",i.get(Q)):(0,v.themeColor)(Q,"shift-3",i.get(Q))},transition:"background-color 140ms ease, box-shadow 140ms ease","&:focus-visible":{boxShadow:Q=>b(Q,i.get(Q))}},_key:oo(f)}}function Jn(){let f=(S,k,D)=>({select:Array.from({length:S},(J,P)=>({option:String(P).padStart(2,"0"),value:String(P),selected:ve=>k.get(ve)===P,_key:P})),ariaLabel:D,onChange:J=>{k.set(Number(J.target.value)),An()},style:Vr()});return{div:[f(24,x,"Hour"),{span:":",style:{fontWeight:"bold"}},f(60,$,"Minute")],style:{display:"flex",alignItems:"center",justifyContent:"center",gap:(0,v.themeSpacing)(1),marginTop:(0,v.themeSpacing)(3)}}}function Qn(){let f=(S,k)=>({button:S,type:"button",onClick:k,style:{appearance:"none",border:"none",background:"transparent",cursor:"pointer",fontFamily:"inherit",fontSize:D=>(0,v.themeSize)(D,"decrease-1"),color:D=>(0,v.themeColor)(D,"muted",i.get(D)),padding:(0,v.themeSpacing)(1)}});return{div:[f("Today",()=>{let S=new Date;C.set(ce(S)),Ot(S),Yt()}),f("Clear",()=>{y.set(o==="range"?[null,null]:null),E.set(null)})],style:{display:"flex",justifyContent:"space-between",marginTop:(0,v.themeSpacing)(2),paddingTop:(0,v.themeSpacing)(2),borderTop:S=>`1px solid ${(0,v.themeColor)(S,"border")}`}}}function er(f){let S=f,k=C.get(),D=null;switch(S.key){case"ArrowLeft":D=rt(k,-1);break;case"ArrowRight":D=rt(k,1);break;case"ArrowUp":D=rt(k,-7);break;case"ArrowDown":D=rt(k,7);break;case"Home":D=no(k,d);break;case"End":D=rt(no(k,d),6);break;case"PageUp":D=to(k,S.shiftKey?-12:-1);break;case"PageDown":D=to(k,S.shiftKey?12:1);break;case"Enter":case" ":S.preventDefault(),wo(k);return;default:return}S.preventDefault(),C.set(D),Ot(D),Yt()}}function jo(){return{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:(0,v.themeSpacing)(.5)}}function zr(){return{appearance:"none",border:"none",background:"transparent",cursor:"pointer",fontFamily:"inherit",fontSize:r=>(0,v.themeSize)(r),color:r=>(0,v.themeColor)(r,"muted"),width:(0,v.themeSpacing)(7),height:(0,v.themeSpacing)(7),borderRadius:(0,v.themeSpacing)(1),"&:hover":{backgroundColor:r=>(0,v.themeColor)(r,"shift-3")}}}function Vr(){return{fontFamily:"inherit",fontSize:r=>(0,v.themeSize)(r),padding:(0,v.themeSpacing)(1),borderRadius:(0,v.themeSpacing)(1),border:r=>`1px solid ${(0,v.themeColor)(r,"border-strong")}`,backgroundColor:r=>(0,v.themeColor)(r,"base"),color:r=>(0,v.themeColor)(r,"text")}}var Ko=require("@domphy/core"),Ye=require("@domphy/theme");function Rr(r={}){var n;let o=(0,Ko.toState)((n=r.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="dl"&&console.warn('"descriptionList" primitive patch must use dl tag')},_doctorDisable:"inline-typography",style:{display:"grid",gridTemplateColumns:`minmax(${(0,Ye.themeSpacing)(24)}, max-content) 1fr`,columnGap:(0,Ye.themeSpacing)(4),margin:0,"& dt":{margin:0,fontWeight:600,fontSize:e=>(0,Ye.themeSize)(e,"inherit"),color:e=>(0,Ye.themeColor)(e,"shift-10",o.get(e))},"& dd":{margin:0,fontSize:e=>(0,Ye.themeSize)(e,"inherit"),color:e=>(0,Ye.themeColor)(e,"text",o.get(e))}}}}var ro=require("@domphy/core"),L=require("@domphy/theme");function $r(r={}){var l,t;let{duration:o=240}=r,n=(0,ro.toState)((l=r.color)!=null?l:"neutral","color"),e=(0,ro.toState)((t=r.accentColor)!=null?t:"primary","accentColor");return{_onInsert:a=>{a.tagName!=="details"&&console.warn('"details" primitive patch must use details tag')},_doctorDisable:"inline-typography",style:{fontSize:a=>(0,L.themeSize)(a,"inherit"),color:a=>(0,L.themeColor)(a,"text",n.get(a)),backgroundColor:a=>(0,L.themeColor)(a,"inherit",n.get(a)),overflow:"hidden","& > summary":{backgroundColor:a=>(0,L.themeColor)(a,"shift-2",n.get(a)),color:a=>(0,L.themeColor)(a,"shift-10",n.get(a)),fontSize:a=>(0,L.themeSize)(a,"inherit"),listStyle:"none",display:"flex",justifyContent:"space-between",alignItems:"center",gap:(0,L.themeSpacing)(2),cursor:"pointer",userSelect:"none",fontWeight:500,paddingInline:a=>(0,L.themeSpacing)((0,L.themeDensity)(a)*4),height:(0,L.themeSpacing)(10)},"& > summary::-webkit-details-marker":{display:"none"},"& > summary::marker":{content:'""'},"& > summary::after":{content:'""',width:(0,L.themeSpacing)(2),height:(0,L.themeSpacing)(2),flexShrink:0,marginTop:(0,L.themeSpacing)(-.5),borderInlineEnd:a=>`${(0,L.themeSpacing)(.5)} solid ${(0,L.themeColor)(a,"shift-9",n.get(a))}`,borderBottom:a=>`${(0,L.themeSpacing)(.5)} solid ${(0,L.themeColor)(a,"shift-9",n.get(a))}`,transform:"rotate(45deg)",transition:`transform ${o}ms ease`},"&[open] > summary::after":{transform:"rotate(-135deg)"},"& > summary:hover":{backgroundColor:a=>(0,L.themeColor)(a,"shift-3",n.get(a))},"& > summary:focus-visible":{borderRadius:a=>(0,L.themeSpacing)((0,L.themeDensity)(a)*2),boxShadow:a=>b(a,e.get(a))},"& > :not(summary)":{maxHeight:0,opacity:0,overflow:"hidden",paddingInline:a=>(0,L.themeSpacing)((0,L.themeDensity)(a)*3),paddingTop:0,paddingBottom:0,transition:`max-height ${o}ms ease, opacity ${o}ms ease, padding ${o}ms ease`},"&[open] > :not(summary)":{maxHeight:(0,L.themeSpacing)(250),opacity:1,paddingTop:a=>(0,L.themeSpacing)((0,L.themeDensity)(a)*1),paddingBottom:a=>(0,L.themeSpacing)((0,L.themeDensity)(a)*3)}}}}var Go=require("@domphy/core"),Ee=require("@domphy/theme");var vt=0;function Rt(){vt++,vt===1&&(document.body.style.overflow="hidden")}function gt(){vt=Math.max(0,vt-1),vt===0&&(document.body.style.overflow="")}var Yo='button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), details, [tabindex]:not([tabindex="-1"])';function _r(r={}){let{color:o="neutral",open:n=!1}=r,e=(0,Go.toState)(n),l=null,t=!1,a=!1,s=c=>{t=!1,typeof c.close=="function"&&c.close(),c.style.visibility="hidden",c.style.pointerEvents="none",a&&(gt(),a=!1),l==null||l.focus(),l=null};return{_onInsert:c=>{c.tagName!=="dialog"&&console.warn('"dialog" primitive patch must use dialog tag')},onClick:(c,d)=>{if(c.target!==d.domElement)return;let i=d.domElement.getBoundingClientRect();c.clientX>=i.left&&c.clientX<=i.right&&c.clientY>=i.top&&c.clientY<=i.bottom||e.set(!1)},onTransitionEnd:(c,d)=>{t&&c.target===d.domElement&&c.propertyName==="opacity"&&s(d.domElement)},_onMount:c=>{let d=c.domElement;d.setAttribute("aria-modal","true");let i=null,m=u=>{if(u.key!=="Tab")return;let p=Array.from(d.querySelectorAll(Yo)).filter(x=>!x.closest("[aria-hidden='true']")&&x.offsetParent!==null);if(!p.length){u.preventDefault();return}let C=p[0],E=p[p.length-1];u.shiftKey?(document.activeElement===C||document.activeElement===d)&&(u.preventDefault(),E.focus()):document.activeElement===E&&(u.preventDefault(),C.focus())},y=u=>{u.preventDefault(),e.set(!1)};d.addEventListener("cancel",y);let g=u=>{u?(l=document.activeElement,d.style.visibility="visible",d.style.pointerEvents="auto",typeof d.showModal=="function"&&d.showModal(),a||(Rt(),a=!0),d.addEventListener("keydown",m),requestAnimationFrame(()=>{d.style.opacity="1";let p=d.querySelector(Yo);p==null||p.focus()})):(t=!0,d.style.opacity="0",d.removeEventListener("keydown",m),i=setTimeout(()=>{i=null,t&&s(d)},350))};g(e.get());let h=e.addListener(g);c.addHook("Remove",()=>{i&&(clearTimeout(i),i=null),h(),d.removeEventListener("cancel",y),a&&(gt(),a=!1),d.removeEventListener("keydown",m),l==null||l.focus(),l=null})},style:{opacity:"0",visibility:"hidden",pointerEvents:"none",transition:"opacity 200ms ease",fontSize:c=>(0,Ee.themeSize)(c,"inherit"),color:c=>(0,Ee.themeColor)(c,"shift-10",o),backgroundColor:c=>(0,Ee.themeColor)(c,"inherit",o),border:"none",borderRadius:c=>(0,Ee.themeSpacing)((0,Ee.themeDensity)(c)*2),padding:c=>(0,Ee.themeSpacing)((0,Ee.themeDensity)(c)*3),boxShadow:_("high"),"&::backdrop":{backgroundColor:c=>(0,Ee.themeColor)(c,"shift-2","neutral"),opacity:.75}}}}var qo=require("@domphy/core"),Ge=require("@domphy/theme");function Mr(r={}){var n;let o=(0,qo.toState)((n=r.color)!=null?n:"neutral","color");return{role:"separator",_onInsert:e=>{e.tagName!=="div"&&console.warn('"divider" patch should be used with <div>')},style:{display:"flex",justifyContent:"center",alignItems:"baseline",gap:(0,Ge.themeSpacing)(2),fontSize:e=>(0,Ge.themeSize)(e,"inherit"),backgroundColor:e=>(0,Ge.themeColor)(e),color:e=>(0,Ge.themeColor)(e,"text",o.get(e)),minHeight:"1lh","&::before":{content:'""',flex:1,borderColor:e=>(0,Ge.themeColor)(e,"border-strong",o.get(e)),borderWidth:"1px",borderBottomStyle:"solid"},"&::after":{content:'""',flex:1,borderColor:e=>(0,Ge.themeColor)(e,"border-strong",o.get(e)),borderWidth:"1px",borderBottomStyle:"solid"}}}}var Zo=require("@domphy/core"),we=require("@domphy/theme");var ao={left:"translateX(-100%)",right:"translateX(100%)",top:"translateY(-100%)",bottom:"translateY(100%)"},Uo={left:"0 auto 0 0",right:"0 0 0 auto",top:"0 0 auto 0",bottom:"auto 0 0 0"},kt=r=>r==="left"||r==="right";function Xo(r,o){return r==="start"?o?"right":"left":r==="end"?o?"left":"right":r}function Br(r={}){let{color:o="neutral",open:n=!1,placement:e="end",size:l}=r,t=(0,Zo.toState)(n),a=e==="start"||e==="end",s=Xo(e,!1),c=kt(s)?(0,we.themeSpacing)(80):(0,we.themeSpacing)(64),d=l!=null?l:c;return{_onInsert:i=>{i.tagName!=="dialog"&&console.warn('"drawer" patch must use dialog tag')},onClick:(i,m)=>{i.target===m.domElement&&t.set(!1)},_onMount:i=>{let m=i.domElement;m.setAttribute("aria-modal","true");let y=T=>{T.preventDefault(),t.set(!1)};m.addEventListener("cancel",y);let g=a&&(m.ownerDocument.documentElement.dir==="rtl"||m.ownerDocument.dir==="rtl"),h=Xo(e,g);a&&(m.style.transform=ao[h],m.style.margin=Uo[h],m.style.width=kt(h)?d:"100dvw",m.style.height=kt(h)?"100dvh":d);let u=!1,p=!1,C=null,E=()=>{C=null,u&&(u=!1,typeof m.close=="function"&&m.close(),m.style.visibility="hidden",m.style.pointerEvents="none",p&&(gt(),p=!1))},x=T=>{T.target===m&&T.propertyName==="transform"&&E()};m.addEventListener("transitionend",x);let $=T=>{T?(u=!1,m.style.visibility="visible",m.style.pointerEvents="auto",typeof m.showModal=="function"&&m.showModal(),p||(Rt(),p=!0),requestAnimationFrame(()=>{m.style.transform="translate(0, 0)"})):(u=!0,m.style.transform=ao[h],C=setTimeout(E,350))};$(t.get());let O=t.addListener($);i.addHook("Remove",()=>{C&&(clearTimeout(C),C=null),O(),m.removeEventListener("cancel",y),m.removeEventListener("transitionend",x),p&&(gt(),p=!1)})},style:{transform:ao[s],visibility:"hidden",pointerEvents:"none",transition:"transform 0.25s ease",fontSize:i=>(0,we.themeSize)(i,"inherit"),color:i=>(0,we.themeColor)(i,"shift-10",o),backgroundColor:i=>(0,we.themeColor)(i,"inherit",o),border:"none",padding:i=>(0,we.themeSpacing)((0,we.themeDensity)(i)*3),margin:Uo[s],width:kt(s)?d:"100dvw",height:kt(s)?"100dvh":d,maxWidth:"100dvw",maxHeight:"100dvh",boxShadow:_("high"),"&::backdrop":{backgroundColor:i=>(0,we.themeColor)(i,"shift-2","neutral"),opacity:.75}}}}var Jo=require("@domphy/core"),$t=require("@domphy/theme");function Nr(r={}){var n;let o=(0,Jo.toState)((n=r.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="em"&&console.warn('"emphasis" primitive patch must use em tag')},style:{fontSize:e=>(0,$t.themeSize)(e,"inherit"),fontStyle:"italic",color:e=>(0,$t.themeColor)(e,"shift-10",o.get(e))}}}var Qo=require("@domphy/core"),tt=require("@domphy/theme");function Hr(r={}){var n;let o=(0,Qo.toState)((n=r.color)!=null?n:"neutral","color");return{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:(0,tt.themeSpacing)(3),paddingBlock:(0,tt.themeSpacing)(12),paddingInline:(0,tt.themeSpacing)(6),textAlign:"center",color:e=>(0,tt.themeColor)(e,"muted",o.get(e)),"& > :first-child":{color:e=>(0,tt.themeColor)(e,"shift-5",o.get(e)),opacity:.9},"& > :nth-child(2)":{color:e=>(0,tt.themeColor)(e,"text",o.get(e))}}}}function Ar(r={}){return{_onError:(o,n,e)=>{var t,a;(t=r.onError)==null||t.call(r,n);let l=typeof r.fallback=="function"?r.fallback(n,e):(a=r.fallback)!=null?a:{div:"An error occurred."};o.children.update([l])}}}var en=require("@domphy/core"),qe=require("@domphy/theme");var Fr={small:8,medium:10,large:14};function Wr(r={}){var e,l;let o=(0,en.toState)((e=r.color)!=null?e:"primary","color"),n=(0,qe.themeSpacing)(Fr[(l=r.size)!=null?l:"medium"]);return{_onInsert:t=>{t.tagName!=="button"&&console.warn('"fab" patch must use button tag')},_doctorDisable:["low-contrast","color-shift-minimum","tone-background-inherit"],style:{appearance:"none",border:"none",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:n,height:n,borderRadius:"50%",fontSize:t=>(0,qe.themeSize)(t,"inherit"),backgroundColor:t=>(0,qe.themeColor)(t,"shift-13",o.get(t)),color:t=>(0,qe.themeColor)(t,"shift-0","neutral"),boxShadow:_("low"),transition:"background-color 200ms ease, box-shadow 200ms ease","&:hover:not([disabled])":{backgroundColor:t=>(0,qe.themeColor)(t,"shift-14",o.get(t)),boxShadow:_("medium")},"&:active:not([disabled])":{backgroundColor:t=>(0,qe.themeColor)(t,"shift-15",o.get(t)),boxShadow:_("low")},"&:focus-visible":{boxShadow:t=>`${_("medium")}, ${b(t,o.get(t))}`},"&[disabled]":{opacity:.5,cursor:"not-allowed"}}}}var tn=require("@domphy/core"),Me=require("@domphy/theme");function jr(r={}){var n;let o=(0,tn.toState)((n=r.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="figure"&&console.warn('"figure" primitive patch must use figure tag')},style:{display:"flex",flexDirection:"column",gap:(0,Me.themeSpacing)(2),marginInline:0,marginTop:(0,Me.themeSpacing)(3),marginBottom:(0,Me.themeSpacing)(3),color:e=>(0,Me.themeColor)(e,"text",o.get(e)),"& img, & svg, & video, & canvas":{display:"block",maxWidth:"100%",borderRadius:(0,Me.themeSpacing)(2)},"& figcaption":{fontSize:e=>(0,Me.themeSize)(e,"decrease-1"),color:e=>(0,Me.themeColor)(e,"muted",o.get(e)),lineHeight:1.45}}}}var on=require("@domphy/core"),N=require("@domphy/theme");function Kr(r={}){var l;let{layout:o="horizontal"}=r,n=(0,on.toState)((l=r.color)!=null?l:"neutral","color"),e=o==="vertical";return{_onInsert:t=>{t.tagName!=="fieldset"&&console.warn('"formGroup" patch must use fieldset tag')},_doctorDisable:"inline-typography",style:{margin:0,paddingInline:t=>(0,N.themeSpacing)((0,N.themeDensity)(t)*3),paddingBlock:t=>(0,N.themeSpacing)((0,N.themeDensity)(t)*3),border:"none",borderRadius:t=>(0,N.themeSpacing)((0,N.themeDensity)(t)*2),fontSize:t=>(0,N.themeSize)(t,"inherit"),backgroundColor:t=>(0,N.themeColor)(t,"inherit",n.get(t)),color:t=>(0,N.themeColor)(t,"text",n.get(t)),display:"grid",gridTemplateColumns:e?"minmax(0, 1fr)":"max-content minmax(0, 1fr)",columnGap:(0,N.themeSpacing)(4),rowGap:(0,N.themeSpacing)(3),alignItems:"start","& > legend":{gridColumn:"1 / -1",margin:0,fontSize:t=>(0,N.themeSize)(t,"inherit"),fontWeight:600,paddingBlock:t=>(0,N.themeSpacing)((0,N.themeDensity)(t)*1),borderRadius:t=>(0,N.themeSpacing)((0,N.themeDensity)(t)*2),color:t=>(0,N.themeColor)(t,"text",n.get(t)),backgroundColor:t=>(0,N.themeColor)(t,"inherit",n.get(t))},"& > label":{gridColumn:"1",alignSelf:"start",margin:0,paddingBlock:t=>e?0:(0,N.themeSpacing)((0,N.themeDensity)(t)*1)},"& > label:has(+ :not(legend, label, p) + p)":{gridRow:e?"auto":"span 2"},"& > :not(legend, label, p)":{gridColumn:e?"1":"2",minWidth:0,width:"100%",boxSizing:"border-box"},"& > p":{gridColumn:e?"1":"2",minWidth:0,margin:0,marginBlockStart:`calc(${(0,N.themeSpacing)(2)} * -1)`,fontSize:t=>(0,N.themeSize)(t,"decrease-1"),color:t=>(0,N.themeColor)(t,"text",n.get(t))}}}}var nn=require("@domphy/core"),ft=require("@domphy/theme"),Yr={h6:"decrease-1",h5:"inherit",h4:"increase-1",h3:"increase-2",h2:"increase-3",h1:"increase-4"};function Gr(r={}){var n;let o=(0,nn.toState)((n=r.color)!=null?n:"neutral","color");return{_onInsert:e=>{["h1","h2","h3","h4","h5","h6"].includes(e.tagName)||console.warn('"heading" primitive patch must use heading tags [h1...h6]')},style:{color:e=>(0,ft.themeColor)(e,"shift-11",o.get(e)),marginTop:0,marginBottom:(0,ft.themeSpacing)(2),fontSize:e=>{let l=Yr[e.elementNode.tagName]||"inherit";return(0,ft.themeSize)(e,l)}}}}var rn=require("@domphy/core"),yt=require("@domphy/theme");function qr(r={}){var n;let o=(0,rn.toState)((n=r.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="hr"&&console.warn('"horizontalRule" primitive patch must use hr tag')},dataTone:"shift-3",style:{border:0,height:"1px",marginInline:0,marginTop:(0,yt.themeSpacing)(3),marginBottom:(0,yt.themeSpacing)(3),backgroundColor:e=>(0,yt.themeColor)(e,"inherit",o.get(e)),color:e=>(0,yt.themeColor)(e,"text",o.get(e))}}}var an=require("@domphy/core"),at=require("@domphy/theme");function Ur(r={}){var n;let o=(0,an.toState)((n=r.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="span"&&console.warn('"icon" primitive patch should use span tag')},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",alignSelf:"center",justifySelf:"center",verticalAlign:"middle",width:(0,at.themeSpacing)(4),height:(0,at.themeSpacing)(4),flexShrink:"0",fontSize:e=>(0,at.themeSize)(e),backgroundColor:"transparent",color:e=>(0,at.themeColor)(e,"text",o.get(e))}}}var ln=require("@domphy/core"),Et=require("@domphy/theme");function Xr(r={}){var n;let o=(0,ln.toState)((n=r.color)!=null?n:"neutral","color");return{dataTone:"shift-2",_onInsert:e=>{e.tagName!=="img"&&console.warn('"image" primitive patch must use img tag')},style:{display:"block",width:"100%",maxWidth:"100%",height:"auto",objectFit:"cover",borderRadius:(0,Et.themeSpacing)(2),backgroundColor:e=>(0,Et.themeColor)(e,"inherit",o.get(e)),color:e=>(0,Et.themeColor)(e,"text",o.get(e))}}}var io=require("@domphy/core"),Y=require("@domphy/theme");function Zr(r={}){var e,l;let o=(0,io.toState)((e=r.color)!=null?e:"neutral","color"),n=(0,io.toState)((l=r.accentColor)!=null?l:"primary","accentColor");return{type:"checkbox",_onInsert:t=>{t.tagName!=="input"&&console.warn('"inputCheckbox" primitive patch must use input tag')},style:{appearance:"none",fontSize:t=>(0,Y.themeSize)(t,"inherit"),color:t=>(0,Y.themeColor)(t,"text",o.get(t)),display:"inline-flex",position:"relative",width:(0,Y.themeSpacing)(6),height:(0,Y.themeSpacing)(6),justifyContent:"center",alignItems:"center",transition:"background-color 300ms, outline-color 300ms",margin:0,padding:0,"&::before":{content:'""',display:"block",borderRadius:(0,Y.themeSpacing)(1),lineHeight:1,cursor:"pointer",border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${(0,Y.themeColor)(t,"border-strong",o.get(t))}`,color:t=>(0,Y.themeColor)(t,"text",o.get(t)),width:(0,Y.themeSpacing)(4),height:(0,Y.themeSpacing)(4)},"&:hover::before":{backgroundColor:t=>(0,Y.themeColor)(t,"hover",o.get(t))},"&:checked::before":{outline:t=>`1px solid ${(0,Y.themeColor)(t,"shift-6",n.get(t))}`,backgroundColor:t=>(0,Y.themeColor)(t,"shift-8",n.get(t))},"&:checked:hover:not([disabled])::before":{backgroundColor:t=>(0,Y.themeColor)(t,"shift-7",n.get(t))},"&:checked::after":{content:'""',display:"block",position:"absolute",top:"25%",insetInlineStart:"37%",width:"20%",height:"30%",border:t=>`${(0,Y.themeSpacing)(.5)} solid ${(0,Y.themeColor)(t,"inherit",n.get(t))}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg)"},"&:indeterminate::before":{outline:t=>`1px solid ${(0,Y.themeColor)(t,"shift-6",n.get(t))}`,backgroundColor:t=>(0,Y.themeColor)(t,"shift-3",n.get(t))},"&:indeterminate::after":{content:'""',position:"absolute",inset:"30%",backgroundColor:t=>(0,Y.themeColor)(t,"shift-8",n.get(t))},"&:indeterminate:hover:not([disabled])::after":{backgroundColor:t=>(0,Y.themeColor)(t,"shift-7",n.get(t))},"&:focus-visible":{borderRadius:(0,Y.themeSpacing)(1.5),boxShadow:t=>b(t,n.get(t))},"&[disabled]":{cursor:"not-allowed"},"&[disabled]::before, &[disabled]::after":{outline:"none",backgroundColor:t=>(0,Y.themeColor)(t,"shift-4","neutral"),pointerEvents:"none"}}}}var sn=require("@domphy/core"),oe=require("@domphy/theme");function Jr(r={}){var n;let o=(0,sn.toState)((n=r.color)!=null?n:"neutral","color");return{type:"color",_onSchedule:(e,l)=>{e.tagName!=="input"&&console.warn('"inputColor" primitive patch must use input tag'),l.type="color"},style:{appearance:"none",border:"none",cursor:"pointer",fontSize:e=>(0,oe.themeSize)(e,"inherit"),color:e=>(0,oe.themeColor)(e,"text",o.get(e)),paddingBlock:e=>(0,oe.themeSpacing)((0,oe.themeDensity)(e)*1),paddingInline:e=>(0,oe.themeSpacing)((0,oe.themeDensity)(e)*1),blockSize:e=>(0,oe.themeSpacing)(6+(0,oe.themeDensity)(e)*2),inlineSize:e=>(0,oe.themeSpacing)(6+(0,oe.themeDensity)(e)*2),backgroundColor:"transparent",transition:"box-shadow 140ms ease",borderRadius:e=>(0,oe.themeSpacing)((0,oe.themeDensity)(e)*1.5),"&:focus-visible":{boxShadow:e=>b(e,o.get(e))},"&::-webkit-color-swatch-wrapper":{margin:0,padding:0},"&::-webkit-color-swatch":{borderRadius:e=>(0,oe.themeSpacing)((0,oe.themeDensity)(e)*1.5)},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:e=>(0,oe.themeColor)(e,"shift-2","neutral"),outline:e=>`1px solid ${(0,oe.themeColor)(e,"border-strong","neutral")}`}}}}var lo=require("@domphy/core"),ne=require("@domphy/theme");function Qr(r={}){var l,t;let{mode:o="datetime-local"}=r,n=(0,lo.toState)((l=r.color)!=null?l:"neutral","color"),e=(0,lo.toState)((t=r.accentColor)!=null?t:"primary","accentColor");return{type:o,_onSchedule:(a,s)=>{a.tagName!=="input"&&console.warn('"inputDateTime" primitive patch must use input tag'),s.type=o},style:{fontFamily:"inherit",fontSize:a=>(0,ne.themeSize)(a,"inherit"),lineHeight:"inherit",color:a=>(0,ne.themeColor)(a,"text",n.get(a)),backgroundColor:a=>(0,ne.themeColor)(a,"inherit",n.get(a)),border:"none",outlineOffset:"-1px",outline:a=>`1px solid ${(0,ne.themeColor)(a,"border-strong",n.get(a))}`,borderRadius:a=>(0,ne.themeSpacing)((0,ne.themeDensity)(a)*1.5),paddingInline:a=>(0,ne.themeSpacing)((0,ne.themeDensity)(a)*3),height:a=>(0,ne.themeSpacing)(6+(0,ne.themeDensity)(a)*2),transition:"outline-color 140ms ease, box-shadow 140ms ease","&::-webkit-calendar-picker-indicator":{cursor:"pointer",opacity:.85},"&:hover:not([disabled]):not([aria-busy=true])":{outline:a=>`1px solid ${(0,ne.themeColor)(a,"shift-5",e.get(a))}`},"&:focus-visible":{boxShadow:a=>b(a,e.get(a))},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:a=>(0,ne.themeColor)(a,"muted","neutral"),backgroundColor:a=>(0,ne.themeColor)(a,"shift-2","neutral"),outline:a=>`1px solid ${(0,ne.themeColor)(a,"border-strong","neutral")}`},"&:invalid":{outline:a=>`${(0,ne.themeSpacing)(.5)} solid ${(0,ne.themeColor)(a,"shift-6","error")}`}}}}var so=require("@domphy/core"),H=require("@domphy/theme");function ea(r={}){var e,l;let o=(0,so.toState)((e=r.color)!=null?e:"neutral","color"),n=(0,so.toState)((l=r.accentColor)!=null?l:"primary","accentColor");return{type:"file",_onSchedule:(t,a)=>{t.tagName!=="input"&&console.warn('"inputFile" primitive patch must use input tag'),a.type="file"},style:{display:"inline-flex",alignItems:"center",fontFamily:"inherit",fontSize:t=>(0,H.themeSize)(t,"inherit"),lineHeight:"inherit",color:t=>(0,H.themeColor)(t,"text",o.get(t)),backgroundColor:t=>(0,H.themeColor)(t,"inherit",o.get(t)),border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${(0,H.themeColor)(t,"border-strong",o.get(t))}`,borderRadius:t=>(0,H.themeSpacing)((0,H.themeDensity)(t)*1.5),height:t=>(0,H.themeSpacing)(6+(0,H.themeDensity)(t)*2),paddingInline:t=>(0,H.themeSpacing)((0,H.themeDensity)(t)*1),transition:"outline-color 140ms ease, box-shadow 140ms ease","&::-webkit-file-upload-button":{marginTop:t=>(0,H.themeSpacing)((0,H.themeDensity)(t)),fontFamily:"inherit",fontSize:"inherit",border:"none",borderRadius:(0,H.themeSpacing)(1),height:(0,H.themeSpacing)(6),paddingInline:(0,H.themeSpacing)(2),cursor:"pointer",color:t=>(0,H.themeColor)(t,"shift-11",o.get(t)),backgroundColor:t=>(0,H.themeColor)(t,"surface",o.get(t))},"&:hover:not([disabled]):not([aria-busy=true])":{outline:t=>`1px solid ${(0,H.themeColor)(t,"shift-5",n.get(t))}`},"&:focus-visible":{boxShadow:t=>b(t,n.get(t))},"&[disabled]":{opacity:.8,cursor:"not-allowed",color:t=>(0,H.themeColor)(t,"muted","neutral"),outline:t=>`1px solid ${(0,H.themeColor)(t,"border-strong","neutral")}`,backgroundColor:t=>(0,H.themeColor)(t,"surface","neutral")},"&[disabled]::-webkit-file-upload-button":{cursor:"not-allowed",color:t=>(0,H.themeColor)(t,"muted","neutral"),backgroundColor:t=>(0,H.themeColor)(t,"shift-3","neutral")}}}}var co=require("@domphy/core"),ee=require("@domphy/theme");function ta(r={}){var e,l;let o=(0,co.toState)((e=r.color)!=null?e:"neutral","color"),n=(0,co.toState)((l=r.accentColor)!=null?l:"primary","accentColor");return{type:"number",_onSchedule:(t,a)=>{t.tagName!=="input"&&console.warn('"inputNumber" primitive patch must use input tag'),a.type="number"},style:{fontFamily:"inherit",lineHeight:"inherit",minWidth:(0,ee.themeSpacing)(10),paddingInlineStart:t=>(0,ee.themeSpacing)((0,ee.themeDensity)(t)*3),paddingInlineEnd:t=>(0,ee.themeSpacing)((0,ee.themeDensity)(t)*1.5),paddingBlock:t=>(0,ee.themeSpacing)((0,ee.themeDensity)(t)*1),borderRadius:t=>(0,ee.themeSpacing)((0,ee.themeDensity)(t)*1.5),fontSize:t=>(0,ee.themeSize)(t,"inherit"),border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${(0,ee.themeColor)(t,"border-strong",o.get(t))}`,color:t=>(0,ee.themeColor)(t,"text",o.get(t)),backgroundColor:t=>(0,ee.themeColor)(t,"inherit",o.get(t)),transition:"outline-color 140ms ease, box-shadow 140ms ease","&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{opacity:1},"&:hover:not([disabled]):not([aria-busy=true])":{outline:t=>`1px solid ${(0,ee.themeColor)(t,"shift-5",n.get(t))}`},"&:focus-visible":{boxShadow:t=>b(t,n.get(t))},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:t=>(0,ee.themeColor)(t,"shift-2","neutral"),outline:t=>`1px solid ${(0,ee.themeColor)(t,"border-strong","neutral")}`,color:t=>(0,ee.themeColor)(t,"muted","neutral")}}}}var mo=require("@domphy/theme");function oa(){return{role:"group",ariaLabel:"One-time password",style:{display:"flex",alignItems:"center",gap:(0,mo.themeSpacing)(2),"& > *":{minWidth:`${(0,mo.themeSpacing)(9)}!important`}},_onMount:r=>{let o=r.domElement,n=()=>Array.from(o.querySelectorAll("input")),e=a=>{let s=n(),c=a.target,d=s.indexOf(c);c.value&&d<s.length-1&&s[d+1].focus()},l=a=>{let s=n(),c=a.target,d=s.indexOf(c);a.key==="Backspace"&&!c.value&&d>0&&s[d-1].focus(),a.key==="ArrowLeft"&&d>0&&s[d-1].focus(),a.key==="ArrowRight"&&d<s.length-1&&s[d+1].focus()},t=a=>{var y,g,h;a.preventDefault();let s=(g=(y=a.clipboardData)==null?void 0:y.getData("text"))!=null?g:"",c=n(),d=c.indexOf(a.target),i=d===-1?0:d;[...s].forEach((u,p)=>{c[i+p]&&(c[i+p].value=u)});let m=Math.min(i+s.length-1,c.length-1);(h=c[m])==null||h.focus()};o.addEventListener("input",e),o.addEventListener("keydown",l),o.addEventListener("paste",t),r.addHook("Remove",()=>{o.removeEventListener("input",e),o.removeEventListener("keydown",l),o.removeEventListener("paste",t)})}}}var bt=require("@domphy/core"),ue=require("@domphy/theme");var na='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"/><path d="M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6"/></svg>',ra='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10.585 10.587a2 2 0 0 0 2.829 2.828"/><path d="M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87"/><path d="M3 3l18 18"/></svg>';function aa(r={}){var l,t;let o=(0,bt.toState)((l=r.color)!=null?l:"neutral","color"),n=(0,bt.toState)((t=r.accentColor)!=null?t:"primary","accentColor"),e=(0,bt.toState)(!1);return{_onInsert:a=>{a.tagName!=="div"&&console.warn('"inputPassword" patch must use div tag')},_onInit:a=>{let s={input:null,type:d=>e.get(d)?"text":"password",ariaLabel:"Password",autocomplete:"current-password",style:{flex:1,minWidth:0,border:"none",outline:"none",backgroundColor:"transparent",padding:0,margin:0,font:"inherit",color:"inherit"}},c={button:d=>(0,bt.rawHtml)(e.get(d)?ra:na),type:"button",ariaLabel:d=>e.get(d)?"Hide password":"Show password",onClick:()=>e.set(!e.get()),style:{background:"none",border:"none",padding:0,margin:0,cursor:"pointer",color:"inherit",display:"flex",alignItems:"center",flexShrink:0,opacity:.6}};a.children.insert(s),a.children.insert(c)},style:{display:"flex",alignItems:"center",gap:a=>(0,ue.themeSpacing)((0,ue.themeDensity)(a)*1),paddingBlock:a=>(0,ue.themeSpacing)((0,ue.themeDensity)(a)*1),paddingInline:a=>(0,ue.themeSpacing)((0,ue.themeDensity)(a)*3),borderRadius:a=>(0,ue.themeSpacing)((0,ue.themeDensity)(a)*1.5),border:"none",outlineOffset:"-1px",outline:a=>`1px solid ${(0,ue.themeColor)(a,"border-strong",o.get(a))}`,color:a=>(0,ue.themeColor)(a,"text",o.get(a)),backgroundColor:a=>(0,ue.themeColor)(a,"inherit",o.get(a)),fontSize:a=>(0,ue.themeSize)(a,"inherit"),transition:"outline-color 140ms ease, box-shadow 140ms ease","&:hover:not(:has([disabled])):not(:focus-within)":{outline:a=>`1px solid ${(0,ue.themeColor)(a,"shift-5",n.get(a))}`},"&:focus-within":{boxShadow:a=>b(a,n.get(a))}}}}var uo=require("@domphy/core"),pe=require("@domphy/theme");function ia(r={}){var e,l;let o=(0,uo.toState)((e=r.color)!=null?e:"neutral","color"),n=(0,uo.toState)((l=r.accentColor)!=null?l:"primary","accentColor");return{type:"radio",_onInsert:t=>{if(t.tagName!=="input"){console.warn('"inputRadio" primitive patch must use input tag and radio type');return}},style:{fontSize:t=>(0,pe.themeSize)(t,"inherit"),color:t=>(0,pe.themeColor)(t,"text",o.get(t)),appearance:"none",display:"inline-flex",position:"relative",width:(0,pe.themeSpacing)(6),height:(0,pe.themeSpacing)(6),justifyContent:"center",alignItems:"center",transition:"background-color 300ms, outline-color 300ms",margin:0,padding:0,"&::before":{content:'""',display:"block",borderRadius:"50%",lineHeight:1,cursor:"pointer",border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${(0,pe.themeColor)(t,"border-strong",o.get(t))}`,color:t=>(0,pe.themeColor)(t,"text",o.get(t)),width:(0,pe.themeSpacing)(4),height:(0,pe.themeSpacing)(4)},"&:hover::before":{backgroundColor:t=>(0,pe.themeColor)(t,"hover",o.get(t))},"&:checked::before":{outline:t=>`1px solid ${(0,pe.themeColor)(t,"shift-6",n.get(t))}`},"&:checked::after":{content:'""',position:"absolute",inset:"30%",borderRadius:"50%",backgroundColor:t=>(0,pe.themeColor)(t,"shift-8",n.get(t))},"&:checked:hover:not([disabled])::before":{backgroundColor:t=>(0,pe.themeColor)(t,"shift-7",n.get(t))},"&:focus-visible":{borderRadius:"50%",boxShadow:t=>b(t,n.get(t))},"&[disabled]":{cursor:"not-allowed"},"&[disabled]::before, &[disabled]::after":{outline:"none",backgroundColor:t=>(0,pe.themeColor)(t,"shift-4","neutral"),pointerEvents:"none"}}}}var po=require("@domphy/core"),fe=require("@domphy/theme");function la(r={}){var e,l;let o=(0,po.toState)((e=r.color)!=null?e:"neutral","color"),n=(0,po.toState)((l=r.accentColor)!=null?l:"primary","accentColor");return{type:"range",_onInsert:t=>{t.tagName!=="input"&&console.warn('"inputRange" primitive patch must use input tag')},style:{appearance:"none",width:"100%",margin:0,padding:0,height:(0,fe.themeSpacing)(4),background:"transparent",cursor:"pointer","&::-webkit-slider-runnable-track":{height:(0,fe.themeSpacing)(1.5),borderRadius:(0,fe.themeSpacing)(999),backgroundColor:t=>(0,fe.themeColor)(t,"shift-3",o.get(t))},"&::-webkit-slider-thumb":{appearance:"none",width:(0,fe.themeSpacing)(4),height:(0,fe.themeSpacing)(4),borderRadius:(0,fe.themeSpacing)(999),border:"none",marginTop:`calc((${(0,fe.themeSpacing)(1.5)} - ${(0,fe.themeSpacing)(4)}) / 2)`,backgroundColor:t=>(0,fe.themeColor)(t,"shift-9",n.get(t))},"&:hover:not([disabled])::-webkit-slider-thumb":{backgroundColor:t=>(0,fe.themeColor)(t,"shift-10",n.get(t))},borderRadius:(0,fe.themeSpacing)(2),transition:"box-shadow 140ms ease","&:focus-visible":{boxShadow:t=>b(t,n.get(t))},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}}var ho=require("@domphy/core"),re=require("@domphy/theme");function sa(r={}){var e,l;let o=(0,ho.toState)((e=r.color)!=null?e:"neutral","color"),n=(0,ho.toState)((l=r.accentColor)!=null?l:"primary","accentColor");return{type:"search",_onSchedule:(t,a)=>{t.tagName!=="input"&&console.warn('"inputSearch" primitive patch must use input tag'),a.type="search"},style:{fontFamily:"inherit",fontSize:t=>(0,re.themeSize)(t,"inherit"),lineHeight:"inherit",color:t=>(0,re.themeColor)(t,"text",o.get(t)),backgroundColor:t=>(0,re.themeColor)(t,"inherit",o.get(t)),border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${(0,re.themeColor)(t,"border-strong",o.get(t))}`,borderRadius:t=>(0,re.themeSpacing)((0,re.themeDensity)(t)*1.5),minWidth:(0,re.themeSpacing)(32),paddingInline:t=>(0,re.themeSpacing)((0,re.themeDensity)(t)*3),paddingBlock:t=>(0,re.themeSpacing)((0,re.themeDensity)(t)*1),transition:"outline-color 140ms ease, box-shadow 140ms ease","&::placeholder":{color:t=>(0,re.themeColor)(t,"shift-7",o.get(t))},"&::-webkit-search-decoration":{display:"none"},"&::-webkit-search-cancel-button":{cursor:"pointer"},"&:hover:not([disabled]):not([aria-busy=true])":{outline:t=>`1px solid ${(0,re.themeColor)(t,"shift-5",n.get(t))}`},"&:focus-visible":{boxShadow:t=>b(t,n.get(t))},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:t=>(0,re.themeColor)(t,"muted","neutral"),backgroundColor:t=>(0,re.themeColor)(t,"shift-2","neutral"),outline:t=>`1px solid ${(0,re.themeColor)(t,"border-strong","neutral")}`}}}}var cn=require("@domphy/core"),ae=require("@domphy/theme");function ca(r={}){var n;let o=(0,cn.toState)((n=r.accentColor)!=null?n:"primary","accentColor");return{role:"switch",dataTone:"shift-2",type:"checkbox",_onSchedule:e=>{if(e.tagName!=="input"){console.warn('"inputSwitch" primitive patch must use input tag');return}},style:{fontSize:e=>(0,ae.themeSize)(e,"inherit"),backgroundColor:e=>(0,ae.themeColor)(e,"inherit"),color:e=>(0,ae.themeColor)(e,"text"),appearance:"none",position:"relative",display:"inline-flex",width:(0,ae.themeSpacing)(9),height:(0,ae.themeSpacing)(6),cursor:"pointer",margin:"0",paddingBlock:(0,ae.themeSpacing)(1),transition:"box-shadow 140ms ease",borderRadius:(0,ae.themeSpacing)(999),"&:focus-visible":{boxShadow:e=>b(e,o.get(e))},"&:checked":{"&::before":{backgroundColor:e=>(0,ae.themeColor)(e,"increase-3",o.get(e))},"&::after":{left:`calc(100% - ${(0,ae.themeSpacing)(3.5)})`}},"&::after":{content:'""',aspectRatio:"1/1",position:"absolute",width:(0,ae.themeSpacing)(3),height:(0,ae.themeSpacing)(3),borderRadius:(0,ae.themeSpacing)(999),left:(0,ae.themeSpacing)(.5),top:"50%",transform:"translateY(-50%)",transition:"left 0.3s",backgroundColor:e=>(0,ae.themeColor)(e,"decrease-3")},"&::before":{content:'""',width:"100%",borderRadius:(0,ae.themeSpacing)(999),display:"inline-block",fontSize:e=>(0,ae.themeSize)(e,"inherit"),lineHeight:1,backgroundColor:e=>(0,ae.themeColor)(e)},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}}var go=require("@domphy/core"),A=require("@domphy/theme");function ma(r={}){var e,l;let o=(0,go.toState)((e=r.color)!=null?e:"neutral","color"),n=(0,go.toState)((l=r.accentColor)!=null?l:"primary","accentColor");return{type:"text",_onSchedule:(t,a)=>{t.tagName!=="input"&&console.warn('"inputText" primitive patch must use input tag and text type'),a.type="text"},style:{fontFamily:"inherit",lineHeight:"inherit",minWidth:(0,A.themeSpacing)(10),paddingInline:t=>(0,A.themeSpacing)((0,A.themeDensity)(t)*3),paddingBlock:t=>(0,A.themeSpacing)((0,A.themeDensity)(t)*1),borderRadius:t=>(0,A.themeSpacing)((0,A.themeDensity)(t)*1.5),fontSize:t=>(0,A.themeSize)(t,"inherit"),border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${(0,A.themeColor)(t,"border-strong",o.get(t))}`,color:t=>(0,A.themeColor)(t,"text",o.get(t)),backgroundColor:t=>(0,A.themeColor)(t,"inherit",o.get(t)),transition:"outline-color 140ms ease, box-shadow 140ms ease","&::placeholder":{color:t=>(0,A.themeColor)(t,"shift-7")},"&:not(:placeholder-shown)":{color:t=>(0,A.themeColor)(t,"shift-10")},"&:hover:not([disabled]):not([aria-busy=true])":{outline:t=>`1px solid ${(0,A.themeColor)(t,"shift-5",n.get(t))}`},"&:focus-visible":{boxShadow:t=>b(t,n.get(t))},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:t=>(0,A.themeColor)(t,"shift-2","neutral"),outline:t=>`1px solid ${(0,A.themeColor)(t,"border-strong","neutral")}`,color:t=>(0,A.themeColor)(t,"muted","neutral")},"&:invalid:not(:placeholder-shown)":{outline:t=>`${(0,A.themeSpacing)(.5)} solid ${(0,A.themeColor)(t,"shift-6","error")}`},"&[data-status=error]":{outline:t=>`${(0,A.themeSpacing)(.5)} solid ${(0,A.themeColor)(t,"shift-6","error")}`},"&[data-status=warning]":{outline:t=>`${(0,A.themeSpacing)(.5)} solid ${(0,A.themeColor)(t,"shift-6","warning")}`}}}}var mn=require("@domphy/core"),Be=require("@domphy/theme");function ua(r={}){var n;let o=(0,mn.toState)((n=r.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="kbd"&&console.warn('"keyboard" primitive patch must use kbd tag')},style:{fontSize:e=>(0,Be.themeSize)(e,"inherit"),color:e=>(0,Be.themeColor)(e,"text",o.get(e)),backgroundColor:e=>(0,Be.themeColor)(e,"inherit",o.get(e)),paddingBlock:(0,Be.themeSpacing)(.5),paddingInline:(0,Be.themeSpacing)(1.5),borderRadius:(0,Be.themeSpacing)(1),outline:e=>`1px solid ${(0,Be.themeColor)(e,"border-strong",o.get(e))}`}}}var fo=require("@domphy/core"),ot=require("@domphy/theme");function da(r={}){var e,l;let o=(0,fo.toState)((e=r.color)!=null?e:"neutral","color"),n=(0,fo.toState)((l=r.accentColor)!=null?l:"primary","accentColor");return{_onInsert:t=>{t.tagName!=="label"&&console.warn('"label" primitive patch must use label tag')},style:{display:"inline-flex",alignItems:"center",gap:(0,ot.themeSpacing)(2),fontSize:t=>(0,ot.themeSize)(t,"inherit"),color:t=>(0,ot.themeColor)(t,"text",o.get(t)),cursor:"pointer","&:focus-within":{color:t=>(0,ot.themeColor)(t,"shift-10",n.get(t))},"&[aria-disabled=true]":{opacity:.7,cursor:"not-allowed",color:t=>(0,ot.themeColor)(t,"muted","neutral")}}}}var yo=require("@domphy/core"),Ne=require("@domphy/theme");function pa(r={}){var e,l;let o=(0,yo.toState)((e=r.color)!=null?e:"primary","color"),n=(0,yo.toState)((l=r.accentColor)!=null?l:"secondary","accentColor");return{_onInsert:t=>{t.tagName!=="a"&&console.warn('"link" primitive patch must use a tag')},style:{fontSize:t=>(0,Ne.themeSize)(t,"inherit"),backgroundColor:t=>(0,Ne.themeColor)(t),color:t=>(0,Ne.themeColor)(t,"shift-13",o.get(t)),textDecoration:"none","&:visited":{color:t=>(0,Ne.themeColor)(t,"shift-13",n.get(t))},"&:hover:not([disabled])":{color:t=>(0,Ne.themeColor)(t,"shift-14",o.get(t)),textDecoration:"underline"},borderRadius:(0,Ne.themeSpacing)(1),outline:"none",transition:"color 140ms ease, box-shadow 140ms ease","&:focus-visible":{boxShadow:t=>b(t,n.get(t))},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:t=>(0,Ne.themeColor)(t,"muted","neutral")}}}}var un=require("@domphy/core"),w=require("@domphy/theme");var ha={small:{block:.5,inline:2},medium:{block:1,inline:3},large:{block:1.5,inline:4}},ga={small:.5,medium:1,large:1.5};function fa(r={}){var s,c,d;let o=(s=r.variant)!=null?s:"outline",n=(0,un.toState)((c=r.color)!=null?c:o==="ghost"?"neutral":"primary","color"),e=(d=r.size)!=null?d:"medium",l=pt[e];if(o==="ghost"){let i=ga[e];return{_onInsert:m=>{m.tagName!=="a"&&console.warn('"linkButton" primitive patch must use a tag')},style:{fontSize:m=>(0,w.themeSize)(m,l),textDecoration:"none",paddingBlock:m=>(0,w.themeSpacing)((0,w.themeDensity)(m)*i),paddingInline:m=>(0,w.themeSpacing)((0,w.themeDensity)(m)*i),borderRadius:m=>(0,w.themeSpacing)((0,w.themeDensity)(m)*1.5),display:"inline-flex",justifyContent:"center",alignItems:"center",gap:m=>(0,w.themeSpacing)((0,w.themeDensity)(m)*1),userSelect:"none",cursor:"pointer",fontFamily:"inherit",lineHeight:"inherit",border:"none",background:"none",outline:"none",transition:"background-color 140ms ease, color 140ms ease, box-shadow 140ms ease",color:m=>(0,w.themeColor)(m,"shift-6",n.get(m)),"&:hover:not([aria-disabled=true])":{color:m=>(0,w.themeColor)(m,"text",n.get(m)),backgroundColor:m=>(0,w.themeColor)(m,"hover",n.get(m)),textDecoration:"none"},"&:active:not([aria-disabled=true])":{color:m=>(0,w.themeColor)(m,"text",n.get(m)),backgroundColor:m=>(0,w.themeColor)(m,"increase-2",n.get(m))},"&:focus-visible":{boxShadow:m=>b(m,n.get(m))},"&[aria-disabled=true]":{opacity:.7,cursor:"not-allowed",pointerEvents:"none",color:m=>(0,w.themeColor)(m,"border-strong","neutral")}}}}let t=o==="solid",a=ha[e];return Ve(G({_onInsert:i=>{i.tagName!=="a"&&console.warn('"linkButton" primitive patch must use a tag')}},t?{_doctorDisable:["low-contrast","color-shift-minimum","tone-background-inherit"]}:{}),{style:{fontSize:i=>(0,w.themeSize)(i,l),textDecoration:"none",paddingBlock:i=>(0,w.themeSpacing)((0,w.themeDensity)(i)*a.block),paddingInline:i=>(0,w.themeSpacing)((0,w.themeDensity)(i)*a.inline),borderRadius:i=>(0,w.themeSpacing)((0,w.themeDensity)(i)*1.5),width:"fit-content",display:"inline-flex",justifyContent:"center",alignItems:"center",gap:i=>(0,w.themeSpacing)((0,w.themeDensity)(i)*1),userSelect:"none",cursor:"pointer",fontFamily:"inherit",lineHeight:"inherit",border:"none",outlineOffset:"-1px",outlineWidth:"1px",outline:t?"none":i=>`1px solid ${(0,w.themeColor)(i,"border-strong",n.get(i))}`,color:i=>t?(0,w.themeColor)(i,"shift-0","neutral"):(0,w.themeColor)(i,"shift-13",n.get(i)),backgroundColor:i=>t?(0,w.themeColor)(i,"shift-13",n.get(i)):(0,w.themeColor)(i,"inherit",n.get(i)),transition:"background-color 140ms ease, color 140ms ease, border-color 140ms ease, box-shadow 140ms ease","&:hover:not([aria-disabled=true])":{textDecoration:"none",color:i=>t?(0,w.themeColor)(i,"shift-0","neutral"):(0,w.themeColor)(i,"shift-14",n.get(i)),backgroundColor:i=>t?(0,w.themeColor)(i,"shift-14",n.get(i)):(0,w.themeColor)(i,"hover",n.get(i))},"&:active:not([aria-disabled=true])":{backgroundColor:i=>t?(0,w.themeColor)(i,"shift-15",n.get(i)):(0,w.themeColor)(i,"increase-2",n.get(i))},"&:focus-visible":{boxShadow:i=>b(i,n.get(i))},"&[aria-disabled=true]":{opacity:.7,cursor:"not-allowed",pointerEvents:"none",backgroundColor:i=>(0,w.themeColor)(i,"shift-2","neutral"),outline:i=>`1px solid ${(0,w.themeColor)(i,"border-strong","neutral")}`,color:i=>(0,w.themeColor)(i,"muted","neutral")}}})}var dn=require("@domphy/core"),F=require("@domphy/theme");function ya(r={}){return{style:{listStyle:"none",margin:0,padding:0,display:"flex",flexDirection:"column"}}}function ba(r={}){let{dense:o=!1}=r;return{style:{display:"flex",alignItems:"center",gap:n=>(0,F.themeSpacing)((0,F.themeDensity)(n)*2),paddingBlock:n=>(0,F.themeSpacing)(o?1:(0,F.themeDensity)(n)*2),paddingInline:n=>(0,F.themeSpacing)((0,F.themeDensity)(n)*3),fontSize:n=>(0,F.themeSize)(n,"inherit"),color:n=>(0,F.themeColor)(n,"text")}}}function Sa(r={}){var l,t;let o=(0,dn.toState)((l=r.color)!=null?l:"neutral","color"),n=(t=r.accentColor)!=null?t:"primary",{dense:e=!1}=r;return{style:{cursor:"pointer",appearance:"none",border:"none",background:"transparent",textDecoration:"none",textAlign:"left",display:"flex",alignItems:"center",width:"100%",gap:a=>(0,F.themeSpacing)((0,F.themeDensity)(a)*2),paddingBlock:a=>(0,F.themeSpacing)(e?1:(0,F.themeDensity)(a)*2),paddingInline:a=>(0,F.themeSpacing)((0,F.themeDensity)(a)*3),fontSize:a=>(0,F.themeSize)(a,"inherit"),color:a=>(0,F.themeColor)(a,"text",o.get(a)),borderRadius:a=>(0,F.themeSpacing)((0,F.themeDensity)(a)*1.5),transition:"background-color 150ms ease, box-shadow 140ms ease","&:hover:not([disabled])":{backgroundColor:a=>(0,F.themeColor)(a,"hover",o.get(a))},"&:active:not([disabled])":{backgroundColor:a=>(0,F.themeColor)(a,"increase-2",o.get(a))},"&[aria-current=page], &[aria-selected=true]":{backgroundColor:a=>(0,F.themeColor)(a,"shift-3",n),color:a=>(0,F.themeColor)(a,"shift-12",n)},"&:focus-visible":{boxShadow:a=>b(a,n)},"&[disabled]":{opacity:.5,cursor:"not-allowed"}}}}var pn=require("@domphy/core"),Ue=require("@domphy/theme");function xa(r={}){var n;let o=(0,pn.toState)((n=r.accentColor)!=null?n:"highlight","accentColor");return{_onInsert:e=>{e.tagName!=="mark"&&console.warn('"mark" primitive patch must use mark tag')},dataTone:"shift-2",style:{display:"inline-flex",alignItems:"center",fontSize:e=>(0,Ue.themeSize)(e,"inherit"),color:e=>(0,Ue.themeColor)(e,"text",o.get(e)),backgroundColor:e=>(0,Ue.themeColor)(e,"inherit",o.get(e)),height:(0,Ue.themeSpacing)(6),borderRadius:(0,Ue.themeSpacing)(1),paddingInline:(0,Ue.themeSpacing)(1.5)}}}var hn=require("@domphy/core"),j=require("@domphy/theme");function Ca(r={items:[]}){var a;let{items:o=[],selectable:n=!0,color:e="neutral",accentColor:l="primary"}=r,t=(0,hn.toState)((a=r.activeKey)!=null?a:null);return{role:"menu",dataTone:"shift-0",_onSchedule:(s,c)=>{if(o.length===0)return;let d=s.nodeId,i=o.map((m,y)=>{var h;let g=(h=m.key)!=null?h:y;return Ve(G({button:typeof m.label=="string"?[{span:m.label}]:[m.label],_key:g,type:"button",id:`menuitem${d}${g}`,role:"menuitem"},n?{ariaCurrent:u=>t.get(u)===g||void 0}:{}),{onClick:()=>{var u;n&&t.set(g),(u=m.onClick)==null||u.call(m)},onKeyDown:u=>{var $;let p=u.key;if(p==="Enter"||p===" "){u.preventDefault(),u.target.click();return}if(!["ArrowDown","ArrowUp","Home","End"].includes(p))return;u.preventDefault();let C=o.map((O,T)=>{var I;return(I=O.key)!=null?I:T}),E=C.indexOf(g),x=E;p==="ArrowDown"?x=(E+1)%C.length:p==="ArrowUp"?x=(E-1+C.length)%C.length:p==="Home"?x=0:p==="End"&&(x=C.length-1),($=document.getElementById(`menuitem${d}${C[x]}`))==null||$.focus()},style:{cursor:"pointer",display:"flex",alignItems:"center",gap:(0,j.themeSpacing)(2),width:"100%",fontSize:u=>(0,j.themeSize)(u,"inherit"),height:u=>(0,j.themeSpacing)(6+(0,j.themeDensity)(u)*2),paddingInline:u=>(0,j.themeSpacing)((0,j.themeDensity)(u)*3),border:"none",outline:"none",color:u=>(0,j.themeColor)(u,"text",e),backgroundColor:u=>(0,j.themeColor)(u,"inherit",e),transition:"background-color 140ms ease, box-shadow 140ms ease, color 140ms ease","&:hover:not([disabled]):not([aria-current=true])":{backgroundColor:u=>(0,j.themeColor)(u,"hover",e)},"&[aria-current=true]":{backgroundColor:u=>(0,j.themeColor)(u,"shift-3",l),color:u=>(0,j.themeColor)(u,"shift-13",l)},"&:focus-visible":{boxShadow:u=>b(u,l)}}})});c[s.tagName]=i},style:{display:"flex",flexDirection:"column",paddingBlock:s=>(0,j.themeSpacing)((0,j.themeDensity)(s)*2),paddingInline:s=>(0,j.themeSpacing)((0,j.themeDensity)(s)*2),fontSize:s=>(0,j.themeSize)(s,"inherit"),backgroundColor:s=>(0,j.themeColor)(s,"inherit",e),color:s=>(0,j.themeColor)(s,"text",e),borderRadius:s=>(0,j.themeSpacing)((0,j.themeDensity)(s)*2),outline:s=>`1px solid ${(0,j.themeColor)(s,"border-strong",e)}`,outlineOffset:"-1px",boxShadow:_("medium")}}}var bo=r=>!!r&&typeof r.get=="function"&&r._isState===!0,He=r=>{let o={},n=[];for(let e in r){let l=r[e];e==="x"?n.push(`translateX(${typeof l=="number"?`${l}px`:l})`):e==="y"?n.push(`translateY(${typeof l=="number"?`${l}px`:l})`):e==="scale"?n.push(`scale(${l})`):e==="rotate"?n.push(`rotate(${typeof l=="number"?`${l}deg`:l})`):o[e]=l}return n.length&&(o.transform=n.join(" ")),o};function gn(){if(typeof matchMedia!="function")return!1;try{return matchMedia("(prefers-reduced-motion: reduce)").matches}catch(r){return!1}}function va(r={}){var a,s,c,d;let{initial:o,animate:n,exit:e,transition:l={}}=r,t={duration:(a=l.duration)!=null?a:300,delay:(s=l.delay)!=null?s:0,easing:(c=l.easing)!=null?c:"ease",iterations:(d=l.iterations)!=null?d:1,fill:"both"};return{_onMount:i=>{let m=i.domElement;if(!m||typeof m.animate!="function")return;let y=bo(n)?n.get():n;if(gn()){if(y?Object.assign(m.style,He(y)):o&&Object.assign(m.style,He(o)),bo(n)){let g=n.addListener(h=>{Object.assign(m.style,He(h))});i.setMetadata("motionRelease",g)}return}if(y?m.animate(o?[He(o),He(y)]:[He(y)],t):o&&Object.assign(m.style,He(o)),bo(n)){let g=n.addListener(h=>{m.animate([He(h)],t)});i.setMetadata("motionRelease",g)}},_onBeforeRemove:(i,m)=>{let y=i.domElement;if(!y||!e||typeof y.animate!="function")return m();if(gn())return Object.assign(y.style,He(e)),m();y.animate([He(e)],t).finished.then(m,m)},_onRemove:i=>{let m=i.getMetadata("motionRelease");m==null||m()}}}var fn=require("@domphy/core"),it=require("@domphy/theme");function ka(r={}){var n;let o=(0,fn.toState)((n=r.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="ol"&&console.warn('"orderedList" primitive patch must use ol tag')},style:{fontSize:e=>(0,it.themeSize)(e,"inherit"),backgroundColor:e=>(0,it.themeColor)(e),color:e=>(0,it.themeColor)(e,"text",o.get(e)),marginTop:0,marginBottom:0,paddingLeft:(0,it.themeSpacing)(3),listStyleType:"decimal",listStylePosition:"outside"}}}var yn=require("@domphy/core"),X=require("@domphy/theme");function Ea(r,o){if(o<=7)return Array.from({length:o},(t,a)=>a+1);let n=[1];r>3&&n.push("...");let e=Math.max(2,r-1),l=Math.min(o-1,r+1);for(let t=e;t<=l;t++)n.push(t);return r<o-2&&n.push("..."),n.push(o),n}function wa(r){var s;let{total:o,color:n="neutral",accentColor:e="primary"}=r,l=(0,yn.toState)((s=r.value)!=null?s:1),t={display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:c=>(0,X.themeSpacing)(6+(0,X.themeDensity)(c)*2),height:c=>(0,X.themeSpacing)(6+(0,X.themeDensity)(c)*2),paddingInline:c=>(0,X.themeSpacing)((0,X.themeDensity)(c)*2),borderRadius:c=>(0,X.themeSpacing)((0,X.themeDensity)(c)*1.5),border:"none",cursor:"pointer",fontSize:c=>(0,X.themeSize)(c,"inherit"),backgroundColor:"transparent",color:c=>(0,X.themeColor)(c,"shift-13",n),transition:"background-color 140ms ease, box-shadow 140ms ease, color 140ms ease","&:hover:not([disabled])":{color:c=>(0,X.themeColor)(c,"shift-13",n),backgroundColor:c=>(0,X.themeColor)(c,"hover",n)},"&:focus-visible":{boxShadow:c=>b(c,e)},"&[disabled]":{opacity:.4,cursor:"not-allowed"}},a=Ve(G({},t),{backgroundColor:c=>(0,X.themeColor)(c,"shift-13",e),color:c=>(0,X.themeColor)(c,"shift-0","neutral"),fontWeight:"bold",cursor:"default","&:hover:not([disabled])":{backgroundColor:c=>(0,X.themeColor)(c,"shift-13",e)}});return{role:"navigation",ariaLabel:"Pagination",_doctorDisable:"inline-typography",_onInsert:c=>{c.tagName!=="div"&&console.warn('"pagination" patch must use div tag')},_onInit:c=>{let d={div:i=>{let m=l.get(i),y=[];y.push({button:"\u2039",_key:"prev",type:"button",ariaLabel:"Previous page",disabled:m<=1,onClick:()=>m>1&&l.set(m-1),style:t});let g=0;for(let h of Ea(m,o))if(h==="...")y.push({span:"\u2026",_key:`ellipsis-${g++}`,ariaHidden:"true",style:{display:"inline-flex",alignItems:"center",paddingInline:u=>(0,X.themeSpacing)((0,X.themeDensity)(u)*2),color:u=>(0,X.themeColor)(u,"shift-7",n)}});else{let u=h===m;y.push({button:String(h),_key:`page-${h}`,type:"button",ariaLabel:`Page ${h}`,ariaCurrent:u?"page":void 0,disabled:u,onClick:()=>l.set(h),style:u?a:t})}return y.push({button:"\u203A",_key:"next",type:"button",ariaLabel:"Next page",disabled:m>=o,onClick:()=>m<o&&l.set(m+1),style:t}),y},style:{display:"flex",alignItems:"center",gap:(0,X.themeSpacing)(1)}};c.children.insert(d)},style:{display:"inline-flex"}}}var bn=require("@domphy/core"),St=require("@domphy/theme");function Ta(r={}){var l;let{padding:o=4,divider:n=!1}=r,e=(0,bn.toState)((l=r.color)!=null?l:"neutral","color");return{style:G({padding:t=>(0,St.themeSpacing)((0,St.themeDensity)(t)*o)},n?{borderBottom:t=>`1px solid ${(0,St.themeColor)(t,"border",e.get(t))}`}:{})}}var Sn=require("@domphy/core"),_t=require("@domphy/theme");function Da(r={}){var n;let o=(0,Sn.toState)((n=r.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="p"&&console.warn('"paragraph" primitive patch must use p tag')},style:{fontSize:e=>(0,_t.themeSize)(e,"inherit"),color:e=>(0,_t.themeColor)(e,"text",o.get(e)),lineHeight:1.5,marginTop:0,marginBottom:0}}}var wt=require("@domphy/core"),lt=require("@domphy/theme");function Pa(r){var y;let{open:o=!1,placement:n="bottom",openOn:e="click"}=r,l=null,t=(0,wt.toState)(o),a=(0,wt.toState)(n),{show:s,hide:c,anchorPartial:d}=_e({kind:"popover",open:t,placement:a,content:r.content,keepOpenOnContentHover:e==="hover"}),i={role:"dialog",dataTone:"shift-14",style:{backgroundColor:g=>(0,lt.themeColor)(g,"inherit"),borderRadius:g=>(0,lt.themeSpacing)((0,lt.themeDensity)(g)*2),outline:g=>`1px solid ${(0,lt.themeColor)(g,"border-strong")}`,outlineOffset:"-1px",boxShadow:_("medium")},_onInsert:g=>{let h=g.attributes.get("id");l=h||g.nodeId,!h&&g.attributes.set("id",l)}};return(y=r.content).$||(y.$=[]),r.content.$.push(i),(0,wt.merge)(d,{ariaHaspopup:"dialog",ariaExpanded:g=>t.get(g),onMouseEnter:(g,h)=>e==="hover"&&s(h),onMouseLeave:(g,h)=>e==="hover"&&c(h),onClick:(g,h)=>{e==="click"&&(t.get()?c(h):s(h))},onKeyDown:(g,h)=>{g.key==="Escape"&&t.get()&&c(h)},onFocus:(g,h)=>e==="hover"&&s(h),onBlur:(g,h)=>{let u=g.relatedTarget,p=h.getRoot().domElement,C=l?p.querySelector(`#${CSS.escape(l)}`):null;u&&(C!=null&&C.contains(u))||c(h)},_onMount:g=>l&&g.attributes.set("ariaControls",l)}),d}var xn=require("@domphy/core"),Oe=require("@domphy/theme");function So(r={}){let{placement:o="bottom-end",color:n="neutral",sideOffset:e=(0,Oe.themeSpacing)(6),bordered:l=!0}=r,t=(0,xn.toState)(o),a={top:"bottom",bottom:"top",left:"right",right:"left","top-start":"bottom-end","top-end":"bottom-start","bottom-start":"top-end","bottom-end":"top-start","left-start":"right-end","left-end":"right-start","right-start":"left-end","right-end":"left-start"},s=i=>{var m;return(m=a[t.get(i)])!=null?m:a["bottom-end"]},c=i=>i.includes("start")?e:i.includes("end")?"auto":"50%",d=i=>i.includes("end")?e:i.includes("start")?"auto":"50%";return{style:{fontSize:i=>(0,Oe.themeSize)(i),backgroundColor:i=>(0,Oe.themeColor)(i),color:i=>(0,Oe.themeColor)(i,"text",n),position:"relative","&::after":{content:'""',position:"absolute",width:(0,Oe.themeSpacing)(1.5),height:(0,Oe.themeSpacing)(1.5),backgroundColor:i=>(0,Oe.themeColor)(i,"inherit",n),borderWidth:l?"1px":0,borderColor:i=>(0,Oe.themeColor)(i,"border-strong",n),borderTopStyle:i=>{let m=s(i);return m.includes("top")||m.includes("right")?"solid":"none"},borderBottomStyle:i=>{let m=s(i);return m.includes("bottom")||m.includes("left")?"solid":"none"},borderLeftStyle:i=>{let m=s(i);return m.includes("top")||m.includes("left")?"solid":"none"},borderRightStyle:i=>{let m=s(i);return m.includes("bottom")||m.includes("right")?"solid":"none"},top:i=>{let m=s(i);return m.includes("top")?0:m.includes("bottom")?"auto":c(m)},right:i=>{let m=s(i);return m.includes("right")?0:m.includes("left")?"auto":d(m)},bottom:i=>{let m=s(i);return m.includes("bottom")?0:m.includes("top")?"auto":d(m)},left:i=>{let m=s(i);return m.includes("left")?0:m.includes("right")?"auto":c(m)},transform:i=>{let m=s(i),y=m.includes("right")||m.includes("end")&&!m.includes("left")?"50%":"-50%",g=m.includes("bottom")||m.includes("end")&&!m.includes("top")?"50%":"-50%";return`translate(${y},${g}) rotate(45deg)`}}}}}var Cn=require("@domphy/core"),xe=require("@domphy/theme");function Oa(r={}){var n;let o=(0,Cn.toState)((n=r.color)!=null?n:"neutral","color");return{dataTone:"shift-2",_onInsert:e=>{e.tagName!=="pre"&&console.warn('"preformated" primitive patch must use pre tag')},style:{fontSize:e=>(0,xe.themeSize)(e,"inherit"),color:e=>(0,xe.themeColor)(e,"text",o.get(e)),backgroundColor:e=>(0,xe.themeColor)(e,"inherit",o.get(e)),border:"none",paddingBlock:e=>(0,xe.themeSpacing)((0,xe.themeDensity)(e)*2),paddingInline:e=>(0,xe.themeSpacing)((0,xe.themeDensity)(e)*3),borderRadius:e=>(0,xe.themeSpacing)((0,xe.themeDensity)(e)*2)}}}var xo=require("@domphy/core"),Ae=require("@domphy/theme");function La(r={}){var e,l;let o=(0,xo.toState)((e=r.color)!=null?e:"neutral","color"),n=(0,xo.toState)((l=r.accentColor)!=null?l:"primary","accentColor");return{_onInsert:t=>{t.tagName!=="progress"&&console.warn('"progress" primitive patch must use progress tag')},dataTone:"shift-3",style:{appearance:"none",width:"100%",height:(0,Ae.themeSpacing)(2),border:0,borderRadius:(0,Ae.themeSpacing)(999),overflow:"hidden",backgroundColor:t=>(0,Ae.themeColor)(t,"inherit",o.get(t)),color:t=>(0,Ae.themeColor)(t,"text",o.get(t)),"&::-webkit-progress-bar":{backgroundColor:t=>(0,Ae.themeColor)(t,"inherit",o.get(t)),borderRadius:(0,Ae.themeSpacing)(999)},"&::-webkit-progress-value":{backgroundColor:t=>(0,Ae.themeColor)(t,"shift-9",n.get(t)),borderRadius:(0,Ae.themeSpacing)(999),transition:"width 220ms ease"}}}}var Tt=require("@domphy/core"),st=require("@domphy/theme");var Ia='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" width="1em" height="1em"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>',za='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" width="1em" height="1em"><path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"/></svg>';function Va(r={}){var c,d;let{max:o=5,readOnly:n=!1,onChange:e}=r,l=(c=r.color)!=null?c:"warning",t=(0,Tt.toState)((d=r.value)!=null?d:0),a=(0,Tt.toState)(0),s=i=>{let m=a.get(i);return m>0?m:t.get(i)};return{role:"group",ariaLabel:"Rating",style:{display:"inline-flex",gap:(0,st.themeSpacing)(.5),fontSize:i=>(0,st.themeSize)(i,"increase-1"),cursor:n?"default":"pointer",color:i=>(0,st.themeColor)(i,"muted",l)},_onInit:i=>{for(let m=1;m<=o;m++){let y=m,g=n?{}:{onClick:()=>{let u=y===t.get()?0:y;t.set(u),e==null||e(u),a.set(0)},onMouseEnter:()=>a.set(y),onMouseLeave:()=>a.set(0),onKeyDown:u=>{var x,$;let p=t.get(),C=p;if(u.key==="ArrowRight"||u.key==="ArrowUp")C=Math.min(o,p+1),u.preventDefault();else if(u.key==="ArrowLeft"||u.key==="ArrowDown")C=Math.max(0,p-1),u.preventDefault();else return;t.set(C),e==null||e(C);let E=C>0?C-1:0;($=(x=i.domElement)==null?void 0:x.children[E])==null||$.focus()}},h=Ve(G({button:u=>(0,Tt.rawHtml)(y<=s(u)?Ia:za),_key:y,type:"button",ariaLabel:`${y} star${y>1?"s":""}`},g),{style:{background:"none",border:"none",outline:"none",borderRadius:(0,st.themeSpacing)(1),padding:0,cursor:"inherit",color:"inherit",fontSize:"inherit",display:"flex",alignItems:"center",transition:"box-shadow 140ms ease","&:focus-visible":{boxShadow:u=>b(u,l)}}});i.children.insert(h)}}}}var Mt=require("@domphy/core"),ct=require("@domphy/theme");function Ra(r={}){var c,d,i;let{size:o=16,thickness:n=.25}=r,e=(0,Mt.toState)((c=r.value)!=null?c:0,"value"),l=(0,Mt.toState)((d=r.color)!=null?d:"primary","color"),t=(0,Mt.toState)((i=r.trackColor)!=null?i:"neutral","trackColor"),a=Math.round((1-n)*100),s=`radial-gradient(circle closest-side, transparent ${a}%, black ${a}%)`;return{role:"progressbar",ariaValuenow:m=>String(Math.round(e.get(m))),ariaValuemin:"0",ariaValuemax:"100",_onInsert:m=>{m.tagName!=="div"&&console.warn('"ringProgress" patch must use div tag')},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:(0,ct.themeSpacing)(o),height:(0,ct.themeSpacing)(o),borderRadius:"50%",color:m=>(0,ct.themeColor)(m,"shift-9",l.get(m)),background:m=>`conic-gradient(from -90deg, ${(0,ct.themeColor)(m,"shift-9",l.get(m))} ${e.get(m)}%, ${(0,ct.themeColor)(m,"shift-3",t.get(m))} 0%)`,WebkitMask:s,mask:s}}}var Bt=require("@domphy/theme");function Co(r={}){let{gap:o=4,align:n="center",justify:e,wrap:l=!1}=r;return{style:G(G({display:"flex",alignItems:n,gap:t=>(0,Bt.themeSpacing)((0,Bt.themeDensity)(t)*o)},e?{justifyContent:e}:{}),l?{flexWrap:"wrap"}:{})}}var vn=require("@domphy/core"),Fe=require("@domphy/theme");function $a(r={}){var n;let o=(0,vn.toState)((n=r.color)!=null?n:"neutral","color");return{style:{overflow:"auto",color:e=>(0,Fe.themeColor)(e,"text",o.get(e)),"&::-webkit-scrollbar":{width:(0,Fe.themeSpacing)(2),height:(0,Fe.themeSpacing)(2)},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e=>(0,Fe.themeColor)(e,"shift-5",o.get(e)),borderRadius:(0,Fe.themeSpacing)(999),border:`${(0,Fe.themeSpacing)(.5)} solid transparent`,backgroundClip:"content-box"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:e=>(0,Fe.themeColor)(e,"shift-7",o.get(e))},scrollbarWidth:"thin",scrollbarColor:e=>`${(0,Fe.themeColor)(e,"shift-5",o.get(e))} transparent`}}}var kn=require("@domphy/core"),se=require("@domphy/theme");function _a(r={items:[]}){var t,a,s;let{items:o=[],color:n="neutral",accentColor:e="primary"}=r,l=(0,kn.toState)((s=(a=r.value)!=null?a:(t=o[0])==null?void 0:t.key)!=null?s:"");return{role:"radiogroup",_context:{segmented:{value:l}},_onSchedule:(c,d)=>{let i=o.map((m,y)=>{var u;let g=(u=m.key)!=null?u:String(y);return{button:[typeof m.label=="string"?{span:m.label}:m.label],_key:g,type:"button",role:"radio",ariaChecked:p=>l.get(p)===g,onClick:()=>l.set(g),style:{cursor:"pointer",fontSize:p=>(0,se.themeSize)(p,"inherit"),height:(0,se.themeSpacing)(6),paddingBlock:(0,se.themeSpacing)(1),paddingInline:(0,se.themeSpacing)(3),border:"none",borderRadius:(0,se.themeSpacing)(10),color:p=>(0,se.themeColor)(p,"text",n),backgroundColor:"transparent",transition:"background-color 140ms ease, color 140ms ease, box-shadow 140ms ease","&:hover:not([disabled]):not([aria-checked=true])":{backgroundColor:p=>(0,se.themeColor)(p,"shift-3",n)},"&:active:not([disabled]):not([aria-checked=true])":{backgroundColor:p=>(0,se.themeColor)(p,"increase-2",n)},"&[aria-checked=true]":{backgroundColor:p=>(0,se.themeColor)(p,"shift-0",e),color:p=>(0,se.themeColor)(p,"shift-10",e),boxShadow:_("low")},"&:focus-visible":{boxShadow:p=>b(p,e)},"&[aria-checked=true]:focus-visible":{boxShadow:p=>`${_("low")}, ${b(p,e)}`},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}});d[c.tagName]=i},dataTone:"shift-2",style:{display:"inline-flex",paddingBlock:(0,se.themeSpacing)(1),paddingInline:(0,se.themeSpacing)(1),gap:(0,se.themeSpacing)(.5),borderRadius:(0,se.themeSpacing)(10),backgroundColor:c=>(0,se.themeColor)(c,"inherit",n),color:c=>(0,se.themeColor)(c,"text",n)}}}var V=require("@domphy/theme");function Ma(r={}){let{color:o="neutral",accentColor:n="primary"}=r;return{_onInsert:e=>{e.tagName!=="select"&&console.warn('"select" primitive patch must use select tag')},style:{appearance:"none",fontFamily:"inherit",fontSize:e=>(0,V.themeSize)(e,"inherit"),lineHeight:"inherit",color:e=>(0,V.themeColor)(e,"text",o),backgroundColor:e=>(0,V.themeColor)(e,"inherit",o),border:"none",outlineOffset:"-1px",outline:e=>`1px solid ${(0,V.themeColor)(e,"border-strong",o)}`,borderRadius:e=>(0,V.themeSpacing)((0,V.themeDensity)(e)*1.5),paddingBlock:e=>(0,V.themeSpacing)((0,V.themeDensity)(e)*1),paddingLeft:e=>(0,V.themeSpacing)((0,V.themeDensity)(e)*3),paddingRight:e=>(0,V.themeSpacing)((0,V.themeDensity)(e)*5),backgroundImage:e=>{let l=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 6"><path d="M1 1l4 4 4-4" stroke="${(0,V.themeColorToken)(e,"shift-7")}" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>`;return`url("data:image/svg+xml,${encodeURIComponent(l)}")`},backgroundRepeat:"no-repeat",backgroundPosition:`right ${(0,V.themeSpacing)(2)} center`,backgroundSize:`${(0,V.themeSpacing)(2.5)} ${(0,V.themeSpacing)(1.5)}`,transition:"outline-color 140ms ease, box-shadow 140ms ease","&:not([multiple])":{height:e=>(0,V.themeSpacing)(6+(0,V.themeDensity)(e)*2)},"&:hover:not([disabled]):not([aria-busy=true])":{outline:e=>`1px solid ${(0,V.themeColor)(e,"shift-5",n)}`},"&:focus-visible":{boxShadow:e=>b(e,n)},"& optgroup":{color:e=>(0,V.themeColor)(e,"shift-11",o)},"& option[disabled]":{color:e=>(0,V.themeColor)(e,"shift-7","neutral")},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:e=>(0,V.themeColor)(e,"muted","neutral"),outline:e=>`1px solid ${(0,V.themeColor)(e,"border-strong","neutral")}`,backgroundColor:e=>(0,V.themeColor)(e,"shift-2","neutral")}}}}var mt=require("@domphy/core"),ie=require("@domphy/theme");function Ba(r){let{options:o=[],placement:n="bottom",color:e="neutral",open:l=!1,multiple:t=!1}=r,a=(0,mt.toState)(r.value),s=(0,mt.toState)(l),{show:c,hide:d,anchorPartial:i}=_e({kind:"selectBox",open:s,placement:(0,mt.toState)(n),content:r.content}),m={onClick:(u,p)=>!t&&d(p),dataTone:"shift-14",style:{backgroundColor:u=>(0,ie.themeColor)(u,"inherit"),borderRadius:u=>(0,ie.themeSpacing)((0,ie.themeDensity)(u)*2),outline:u=>`1px solid ${(0,ie.themeColor)(u,"border-strong")}`,outlineOffset:"-1px",boxShadow:_("medium")}};(0,mt.merge)(r.content,m);let y={div:u=>{let p=a.get(u),C=Array.isArray(p)?p:[p];return o.filter(x=>C.includes(x.value)).map(x=>({span:x.label,$:[xt({color:e,removable:t})],_key:x.value,_onRemove:$=>{let O=a.get(),I=(Array.isArray(O)?O:[O]).filter(be=>be!==x.value);t?a.set(I):a.set(I[0])}}))},style:{display:"flex",flexWrap:"wrap",gap:(0,ie.themeSpacing)(1),flex:1}},g=u=>s.get()?d(u):c(u),h={_onInsert:u=>{u.tagName!=="div"&&console.warn('"selectBox" patch must use div tag')},_onInit:u=>u.children.insert(y),onClick:(u,p)=>g(p),tabindex:0,role:"button",ariaExpanded:u=>s.get(u),ariaHaspopup:"listbox",onKeyDown:(u,p)=>{let C=u.key;if(C==="Escape"){d(p);return}if(C==="Enter"||C===" "){u.preventDefault(),g(p);return}C==="ArrowDown"&&!s.get()&&(u.preventDefault(),c(p))},style:{cursor:"pointer",display:"flex",alignItems:"center",minHeight:u=>(0,ie.themeSpacing)(6+(0,ie.themeDensity)(u)*2),minWidth:(0,ie.themeSpacing)(32),outlineOffset:"-1px",outline:u=>`1px solid ${(0,ie.themeColor)(u,"border-strong","neutral")}`,paddingInline:u=>(0,ie.themeSpacing)((0,ie.themeDensity)(u)*2),borderRadius:u=>(0,ie.themeSpacing)((0,ie.themeDensity)(u)*1.5),fontSize:u=>(0,ie.themeSize)(u,"inherit"),color:u=>(0,ie.themeColor)(u,"text",e),backgroundColor:u=>(0,ie.themeColor)(u,"inherit",e),transition:"background-color 140ms ease, outline-color 140ms ease, box-shadow 140ms ease","&:focus-visible":{boxShadow:u=>b(u,e)}}};return(0,mt.merge)(i,h),i}var ye=require("@domphy/theme");function Na(r={}){let{accentColor:o="primary",color:n="neutral",value:e=null}=r;return{role:"option",_onInit:t=>{t.tagName!=="div"&&console.warn('"selectItem" patch must use div tag');let a=t.getContext("select");if(a){let s=a.value;t.attributes.set("ariaSelected",c=>{let d=s.get(c);return a.multiple?d.includes(e):d===e}),t.addEvent("click",()=>{let c=s.get();a.multiple?c.includes(e)?s.set(c.filter(d=>d!==e)):s.set(c.concat([e])):c!==e&&s.set(e)})}},style:{cursor:"pointer",display:"flex",alignItems:"center",fontSize:t=>(0,ye.themeSize)(t,"inherit"),height:t=>(0,ye.themeSpacing)(6+(0,ye.themeDensity)(t)*2),paddingInline:t=>(0,ye.themeSpacing)((0,ye.themeDensity)(t)*3),border:"none",outline:"none",color:t=>(0,ye.themeColor)(t,"text",n),backgroundColor:t=>(0,ye.themeColor)(t,"inherit",n),"&:hover:not([disabled]):not([aria-selected=true])":{backgroundColor:t=>(0,ye.themeColor)(t,"hover",n)},"&[aria-selected=true]":{backgroundColor:t=>(0,ye.themeColor)(t,"shift-6",o),color:t=>(0,ye.themeColor)(t,"shift-11")},transition:"background-color 140ms ease, box-shadow 140ms ease","&:focus-visible":{boxShadow:t=>b(t,o)}}}}var En=require("@domphy/core"),Le=require("@domphy/theme");function Ha(r={}){var a;let{color:o="neutral",multiple:n=!1}=r,e=(0,En.toState)((a=r.value)!=null?a:n?[]:null),l={div:s=>{let c=e.get(s);return(Array.isArray(c)?c:[c]).map(i=>({input:null,type:"hidden",name:r.name,value:i==null?"":String(i)}))},ariaHidden:"true",hidden:!0};return{dataTone:"shift-0",role:"listbox",ariaLabel:"Options",ariaMultiselectable:n?"true":void 0,_context:{select:{value:e,multiple:n}},_onInit:s=>{s.tagName!=="div"&&console.warn('"selectList" patch must use a div tag'),s.children.insert(l)},style:{display:"flex",flexDirection:"column",paddingBlock:s=>(0,Le.themeSpacing)((0,Le.themeDensity)(s)*2),paddingInline:s=>(0,Le.themeSpacing)((0,Le.themeDensity)(s)*2),fontSize:s=>(0,Le.themeSize)(s,"inherit"),backgroundColor:s=>(0,Le.themeColor)(s,"inherit",o),color:s=>(0,Le.themeColor)(s,"text",o)}}}var Nt=require("@domphy/core"),Ie=require("@domphy/theme");function Aa(r={}){var l;let o=(0,Nt.toState)((l=r.color)!=null?l:"neutral","color"),n={"0%":{backgroundPosition:"200% 0"},"100%":{backgroundPosition:"-200% 0"}},e=(0,Nt.hashString)(JSON.stringify(n));return{ariaHidden:"true",dataTone:"shift-1",style:{fontSize:t=>(0,Ie.themeSize)(t),color:t=>(0,Ie.themeColor)(t,"text",o.get(t)),height:(0,Ie.themeSpacing)(6),display:"block",borderRadius:(0,Ie.themeSpacing)(1),backgroundColor:t=>(0,Ie.themeColor)(t,"inherit",o.get(t)),backgroundImage:t=>`linear-gradient(90deg, ${(0,Ie.themeColor)(t,"inherit",o.get(t))} 0%, ${(0,Ie.themeColor)(t,"shift-2",o.get(t))} 50%, ${(0,Ie.themeColor)(t,"inherit",o.get(t))} 100%)`,backgroundSize:"200% 100%",animation:`${e} 1.6s ease-in-out infinite`,[`@keyframes ${e}`]:n}}}var wn=require("@domphy/core"),Ht=require("@domphy/theme");function Fa(r={}){var n;let o=(0,wn.toState)((n=r.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="small"&&console.warn('"small" patch must use small tag')},dataSize:"decrease-1",style:{fontSize:e=>(0,Ht.themeSize)(e,"inherit"),color:e=>(0,Ht.themeColor)(e,"shift-10",o.get(e))}}}var At=require("@domphy/core"),ze=require("@domphy/theme"),Dn={to:{transform:"rotate(360deg)"}},Tn=(0,At.hashString)(JSON.stringify(Dn));function Wa(r={}){var n;let o=(0,At.toState)((n=r.color)!=null?n:"neutral","color");return{role:"status",ariaLabel:"loading",_onInsert:e=>{e.tagName!=="span"&&console.warn('"spinner" patch must use span tag')},style:{fontSize:e=>(0,ze.themeSize)(e),backgroundColor:e=>(0,ze.themeColor)(e),color:e=>(0,ze.themeColor)(e,"text",o.get(e)),display:"inline-block",margin:0,flexShrink:0,width:(0,ze.themeSpacing)(6),height:(0,ze.themeSpacing)(6),borderRadius:"50%",border:e=>`${(0,ze.themeSpacing)(.5)} solid ${(0,ze.themeColor)(e,"border-strong",o.get(e))}`,borderTopColor:e=>(0,ze.themeColor)(e,"shift-9",o.get(e)),boxSizing:"border-box",padding:0,animation:`${Tn} 0.7s linear infinite`,[`@keyframes ${Tn}`]:Dn}}}var Ft=require("@domphy/core"),Xe=require("@domphy/theme");function ja(r={}){let{direction:o="horizontal",defaultSize:n=50,min:e=10,max:l=90}=r;return{_onSchedule:(t,a)=>{(0,Ft.merge)(a,{_context:{splitter:{direction:o,size:(0,Ft.toState)(n),min:e,max:l,panelCount:0}}})},style:{display:"flex",flexDirection:o==="horizontal"?"row":"column",overflow:"hidden"}}}function Ka(){return{_onMount:r=>{let o=r.getContext("splitter");if(!o){console.warn('"splitterPanel" patch must be used inside a "splitter"');return}let n=r.domElement,e=o.direction==="horizontal"?"width":"height",l=o.panelCount++===0,t=s=>{n.style[e]=`${l?s:100-s}%`};t(o.size.get()),n.style.flexShrink="0",n.style.overflow="auto";let a=o.size.addListener(t);r.addHook("Remove",a)}}}function Ya(){return{role:"separator",tabindex:0,_onMount:r=>{let o=r.getContext("splitter");if(!o){console.warn('"splitterHandle" patch must be used inside a "splitter"');return}let n=r.domElement,e=o.direction==="horizontal";n.style.cursor=e?"col-resize":"row-resize",n.setAttribute("aria-orientation",e?"vertical":"horizontal"),n.setAttribute("aria-valuemin",String(o.min)),n.setAttribute("aria-valuemax",String(o.max)),n.setAttribute("aria-valuenow",String(Math.round(o.size.get())));let l=o.size.addListener(c=>{n.setAttribute("aria-valuenow",String(Math.round(c)))}),t=c=>{let d=c.shiftKey?10:1,i=null;e?c.key==="ArrowRight"?i=Math.min(o.size.get()+d,o.max):c.key==="ArrowLeft"&&(i=Math.max(o.size.get()-d,o.min)):c.key==="ArrowDown"?i=Math.min(o.size.get()+d,o.max):c.key==="ArrowUp"&&(i=Math.max(o.size.get()-d,o.min)),c.key==="Home"?i=o.min:c.key==="End"&&(i=o.max),i!==null&&(c.preventDefault(),o.size.set(i))},a=null,s=c=>{c.preventDefault();let d=n.parentElement,i=y=>{let g=d.getBoundingClientRect(),h=e?(y.clientX-g.left)/g.width*100:(y.clientY-g.top)/g.height*100;o.size.set(Math.min(Math.max(h,o.min),o.max))},m=()=>{document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",m),a=null};a=()=>{document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",m),a=null},document.addEventListener("mousemove",i),document.addEventListener("mouseup",m)};n.addEventListener("keydown",t),n.addEventListener("mousedown",s),r.addHook("Remove",()=>{a==null||a(),l(),n.removeEventListener("keydown",t),n.removeEventListener("mousedown",s)})},dataTone:"shift-2",style:{flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:r=>(0,Xe.themeColor)(r,"inherit"),color:r=>(0,Xe.themeColor)(r,"text"),"&:hover":{backgroundColor:r=>(0,Xe.themeColor)(r,"increase-1")},transition:"background-color 140ms ease, box-shadow 140ms ease","&:focus-visible":{boxShadow:r=>b(r,"primary")},"&::after":{content:'""',width:(0,Xe.themeSpacing)(1),height:(0,Xe.themeSpacing)(1),borderRadius:(0,Xe.themeSpacing)(999),backgroundColor:r=>(0,Xe.themeColor)(r,"shift-4")}}}}var Wt=require("@domphy/theme");function Ga(r={}){let{gap:o=3,align:n}=r;return{style:G({display:"flex",flexDirection:"column",gap:e=>(0,Wt.themeSpacing)((0,Wt.themeDensity)(e)*o)},n?{alignItems:n}:{})}}var Pn=require("@domphy/core"),R=require("@domphy/theme");function qa(r={items:[]}){var a;let{items:o=[],direction:n="horizontal",color:e="neutral",accentColor:l="primary"}=r,t=(0,Pn.toState)((a=r.current)!=null?a:0);return{_doctorDisable:"inline-typography",_context:{steps:{current:t,direction:n,color:e,accentColor:l}},_onSchedule:(s,c)=>{let d=o.map((i,m)=>{var g;return{li:[typeof i.label=="string"?{span:i.label}:i.label],_key:(g=i.key)!=null?g:m,dataStep:String(m+1),dataStatus:h=>{let u=t.get(h);return m<u?"done":m===u?"active":"pending"},ariaCurrent:h=>t.get(h)===m?"step":void 0,style:{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",gap:(0,R.themeSpacing)(1),flex:"1",fontSize:h=>(0,R.themeSize)(h,"decrease-1"),textAlign:"center","&::before":{content:"attr(data-step)",display:"flex",alignItems:"center",justifyContent:"center",width:(0,R.themeSpacing)(6),height:(0,R.themeSpacing)(6),borderRadius:(0,R.themeSpacing)(999),fontSize:h=>(0,R.themeSize)(h,"decrease-1"),fontWeight:"bold",flexShrink:"0",border:h=>`2px solid ${(0,R.themeColor)(h,"border-strong",e)}`,backgroundColor:h=>(0,R.themeColor)(h,"inherit"),color:h=>(0,R.themeColor)(h,"muted"),transition:"background-color 200ms ease, color 200ms ease, border-color 200ms ease",zIndex:"1"},"&:not(:first-child)::after":{content:'""',position:"absolute",top:(0,R.themeSpacing)(3),right:`calc(50% + ${(0,R.themeSpacing)(3)})`,left:`calc(-50% + ${(0,R.themeSpacing)(3)})`,height:"2px",backgroundColor:h=>(0,R.themeColor)(h,"shift-3",e),zIndex:"0"},"&[data-status=active]::before":{backgroundColor:h=>(0,R.themeColor)(h,"shift-9",l),borderColor:h=>(0,R.themeColor)(h,"shift-9",l),color:h=>(0,R.themeColor)(h,"shift-0",l),boxShadow:h=>`0 0 0 3px ${(0,R.themeColor)(h,"shift-3",l)}`},"&[data-status=done]::before":{content:'"\u2713"',backgroundColor:h=>(0,R.themeColor)(h,"shift-9",l),borderColor:h=>(0,R.themeColor)(h,"shift-9",l),color:h=>(0,R.themeColor)(h,"shift-0",l)},"&[data-status=done]:not(:first-child)::after":{backgroundColor:h=>(0,R.themeColor)(h,"shift-9",l)},"&[data-status=active]:not(:first-child)::after":{backgroundColor:h=>(0,R.themeColor)(h,"shift-9",l)},"&[data-status=pending]":{color:h=>(0,R.themeColor)(h,"muted")},"&[data-status=active]":{color:h=>(0,R.themeColor)(h,"shift-11",l),fontWeight:"bold"},"&[data-status=done]":{color:h=>(0,R.themeColor)(h,"text",e)}}}});c[s.tagName]=d},style:{display:"flex",flexDirection:n==="vertical"?"column":"row",alignItems:n==="vertical"?"flex-start":"center",gap:(0,R.themeSpacing)(2),listStyle:"none",margin:"0",padding:"0"}}}var On=require("@domphy/core"),Dt=require("@domphy/theme");function Ua(r={}){var n;let o=(0,On.toState)((n=r.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="strong"&&console.warn('"strong" primitive patch must use strong tag')},style:{fontSize:e=>(0,Dt.themeSize)(e,"inherit"),fontWeight:"bold",color:e=>(0,Dt.themeColor)(e,"shift-11",o.get(e)),backgroundColor:e=>(0,Dt.themeColor)(e)}}}var Ln=require("@domphy/core"),jt=require("@domphy/theme");function Xa(r={}){var n;let o=(0,Ln.toState)((n=r.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="sub"&&console.warn('"subscript" primitive patch must use sub tag')},style:{fontSize:e=>(0,jt.themeSize)(e,"decrease-1"),verticalAlign:"sub",lineHeight:0,color:e=>(0,jt.themeColor)(e,"text",o.get(e))}}}var In=require("@domphy/core"),Kt=require("@domphy/theme");function Za(r={}){var n;let o=(0,In.toState)((n=r.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="sup"&&console.warn('"superscript" primitive patch must use sup tag')},style:{fontSize:e=>(0,Kt.themeSize)(e,"decrease-1"),verticalAlign:"super",lineHeight:0,color:e=>(0,Kt.themeColor)(e,"text",o.get(e))}}}var zn=require("@domphy/core"),M=require("@domphy/theme");function Ja(r={}){var n;let o=(0,zn.toState)((n=r.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="table"&&console.warn('"table" primitive patch must use table tag')},_doctorDisable:"inline-typography",style:{fontSize:e=>(0,M.themeSize)(e,"inherit"),color:e=>(0,M.themeColor)(e,"text",o.get(e)),width:"100%",borderCollapse:"collapse","& caption":{captionSide:"bottom"},"& th, & thead td":{textAlign:"left",fontWeight:500,paddingInline:e=>(0,M.themeSpacing)((0,M.themeDensity)(e)*3),paddingBlock:e=>(0,M.themeSpacing)((0,M.themeDensity)(e)*1),color:e=>(0,M.themeColor)(e,"shift-10",o.get(e)),backgroundColor:e=>(0,M.themeColor)(e,"inherit")},"& td":{textAlign:"left",paddingInline:e=>(0,M.themeSpacing)((0,M.themeDensity)(e)*3),paddingBlock:e=>(0,M.themeSpacing)((0,M.themeDensity)(e)*1),color:e=>(0,M.themeColor)(e,"text",o.get(e)),boxShadow:e=>`inset 0 1px 0 ${(0,M.themeColor)(e,"shift-3",o.get(e))}`,fontSize:e=>(0,M.themeSize)(e,"inherit")},"& tfoot th, & tfoot td":{textAlign:"left",fontWeight:500,paddingInline:e=>(0,M.themeSpacing)((0,M.themeDensity)(e)*3),paddingBlock:e=>(0,M.themeSpacing)((0,M.themeDensity)(e)*1),color:e=>(0,M.themeColor)(e,"shift-10",o.get(e)),backgroundColor:e=>(0,M.themeColor)(e,"inherit"),boxShadow:e=>`inset 0 -1px 0 ${(0,M.themeColor)(e,"shift-4",o.get(e))}`},"& tr":{backgroundColor:e=>(0,M.themeColor)(e,"inherit")},"& tbody tr:hover":{backgroundColor:e=>(0,M.themeColor)(e,"hover")}}}}var Vn=require("@domphy/core"),K=require("@domphy/theme");function Qa(r={items:[]}){var t,a,s;let{items:o=[],accentColor:n="primary",color:e="neutral"}=r,l=(0,Vn.toState)((s=(a=r.activeKey)!=null?a:(t=o[0])==null?void 0:t.key)!=null?s:0);return{_onSchedule:(c,d)=>{let i=c.nodeId,y={div:o.map((h,u)=>{var E;let p=(E=h.key)!=null?E:u;return{button:[typeof h.label=="string"?{span:h.label}:h.label],_key:p,type:"button",role:"tab",id:`tab${i}${p}`,ariaControls:`panel${i}${p}`,ariaSelected:x=>l.get(x)===p,onClick:()=>l.set(p),onKeyDown:x=>{let $=x.key;if(!["ArrowLeft","ArrowRight","Home","End"].includes($))return;x.preventDefault();let O=o.map((be,nt)=>{var Ze;return(Ze=be.key)!=null?Ze:nt}),T=O.indexOf(p),I=T;$==="ArrowRight"?I=(T+1)%O.length:$==="ArrowLeft"?I=(T-1+O.length)%O.length:$==="Home"?I=0:$==="End"&&(I=O.length-1),l.set(O[I])},style:{cursor:"pointer",fontSize:x=>(0,K.themeSize)(x,"inherit"),height:x=>(0,K.themeSpacing)(6+(0,K.themeDensity)(x)*2),paddingInline:x=>(0,K.themeSpacing)((0,K.themeDensity)(x)*4),border:"none",outline:"none",color:x=>(0,K.themeColor)(x,"shift-13"),backgroundColor:x=>(0,K.themeColor)(x,"inherit"),boxShadow:x=>`inset 0 ${(0,K.themeSpacing)(-.5)} 0 0 ${(0,K.themeColor)(x,"shift-1",e)}`,transition:"box-shadow 140ms ease, color 140ms ease","&:hover:not([disabled]):not([aria-selected=true])":{color:x=>(0,K.themeColor)(x,"shift-13"),boxShadow:x=>`inset 0 ${(0,K.themeSpacing)(-.5)} 0 0 ${(0,K.themeColor)(x,"shift-2",e)}`},"&[aria-selected=true]:not([disabled])":{color:x=>(0,K.themeColor)(x,"shift-13",n),boxShadow:x=>`inset 0 ${(0,K.themeSpacing)(-.5)} 0 0 ${(0,K.themeColor)(x,"shift-8",n)}`},"&:focus-visible":{boxShadow:x=>b(x,n)},"&[aria-selected=true]:focus-visible":{boxShadow:x=>`${b(x,n)}, inset 0 ${(0,K.themeSpacing)(-.5)} 0 0 ${(0,K.themeColor)(x,"shift-6",n)}`}}}}),role:"tablist",ariaOrientation:"horizontal",style:{display:"flex"}},g=o.map((h,u)=>{var C;let p=(C=h.key)!=null?C:u;return{div:[h.content],_key:p,role:"tabpanel",id:`panel${i}${p}`,ariaLabelledby:`tab${i}${p}`,hidden:E=>l.get(E)!==p,style:{paddingBlock:E=>(0,K.themeSpacing)((0,K.themeDensity)(E)*2),paddingInline:E=>(0,K.themeSpacing)((0,K.themeDensity)(E)*2)}}});d[c.tagName]=[y,...g]}}}var vo=require("@domphy/core"),te=require("@domphy/theme");function ei(r={}){var l,t;let o=(0,vo.toState)((l=r.color)!=null?l:"neutral","color"),n=(0,vo.toState)((t=r.accentColor)!=null?t:"primary","accentColor"),{autoResize:e=!1}=r;return{_onInsert:a=>{a.tagName!=="textarea"&&console.warn('"textarea" primitive patch must use textarea tag')},_onMount:a=>{if(e){let s=a.domElement;s.style.overflow="hidden";let c=()=>{s.style.height="auto",s.style.height=`${s.scrollHeight}px`};s.addEventListener("input",c),c(),a.addHook("Remove",()=>s.removeEventListener("input",c))}},style:{fontFamily:"inherit",lineHeight:"inherit",resize:"vertical",paddingInline:a=>(0,te.themeSpacing)((0,te.themeDensity)(a)*2),paddingBlock:a=>(0,te.themeSpacing)((0,te.themeDensity)(a)*1.5),border:"none",borderRadius:a=>(0,te.themeSpacing)((0,te.themeDensity)(a)*1.5),fontSize:a=>(0,te.themeSize)(a,"inherit"),color:a=>(0,te.themeColor)(a,"text",o.get(a)),outlineOffset:"-1px",outline:a=>`1px solid ${(0,te.themeColor)(a,"border-strong",o.get(a))}`,backgroundColor:a=>(0,te.themeColor)(a,"inherit",o.get(a)),transition:"outline-color 140ms ease, box-shadow 140ms ease","&::placeholder":{color:a=>(0,te.themeColor)(a,"shift-7")},"&:hover:not([disabled]):not([aria-busy=true])":{outline:a=>`1px solid ${(0,te.themeColor)(a,"shift-5",n.get(a))}`},"&:focus-visible":{boxShadow:a=>b(a,n.get(a))},"&:invalid":{outline:a=>`${(0,te.themeSpacing)(.5)} solid ${(0,te.themeColor)(a,"shift-5","error")}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:a=>(0,te.themeColor)(a,"muted","neutral"),outline:a=>`1px solid ${(0,te.themeColor)(a,"border-strong","neutral")}`,backgroundColor:a=>(0,te.themeColor)(a,"shift-2","neutral")}}}}var Rn=require("@domphy/core"),Te=require("@domphy/theme");function ti(){return{style:{listStyle:"none",margin:0,padding:0,display:"flex",flexDirection:"column"}}}function oi(r={}){var t,a,s;let{last:o=!1}=r,n=(t=r.color)!=null?t:"neutral",e=(a=r.accentColor)!=null?a:"primary",l=(0,Rn.toState)((s=r.active)!=null?s:!1);return{style:G({display:"grid",gridTemplateColumns:"2rem 1fr",columnGap:c=>(0,Te.themeSpacing)((0,Te.themeDensity)(c)*2),paddingBottom:c=>o?"0":(0,Te.themeSpacing)((0,Te.themeDensity)(c)*4),position:"relative","&::before":{content:'""',display:"block",width:"0.75rem",height:"0.75rem",borderRadius:"50%",justifySelf:"center",marginTop:(0,Te.themeSpacing)(1),transition:"background-color 200ms ease, opacity 200ms ease",backgroundColor:c=>(0,Te.themeColor)(c,"shift-8",l.get(c)?e:n),opacity:c=>l.get(c)?"1":"0.4"}},o?{}:{"&::after":{content:'""',position:"absolute",left:"calc(1rem - 1px)",top:"1.25rem",bottom:c=>(0,Te.themeSpacing)((0,Te.themeDensity)(c)*-4),width:"2px",backgroundColor:c=>(0,Te.themeColor)(c,"shift-3",n)}})}}var $n=require("@domphy/core"),he=require("@domphy/theme");function ni(r={}){let{position:o="top-center",color:n="neutral"}=r,e=(0,$n.toState)(!1),l=o.startsWith("top"),t=o.endsWith("center"),a=o.endsWith("right"),s={div:[],id:`domphy-toast-${o}`,style:{position:"fixed",display:"flex",flexDirection:l?"column":"column-reverse",alignItems:t?"center":a?"end":"start",inset:0,gap:(0,he.themeSpacing)(4),zIndex:30,padding:(0,he.themeSpacing)(6),pointerEvents:"none"}};return{_portal:c=>{let d=c.domElement.querySelector(`#domphy-toast-${o}`);return d||(d=c.children.insert(s).domElement),d},role:"status",ariaAtomic:"true",dataTone:"shift-17",style:{minWidth:(0,he.themeSpacing)(32),pointerEvents:"auto",paddingBlock:c=>(0,he.themeSpacing)((0,he.themeDensity)(c)*2),paddingInline:c=>(0,he.themeSpacing)((0,he.themeDensity)(c)*4),borderRadius:c=>(0,he.themeSpacing)((0,he.themeDensity)(c)*2),fontSize:c=>(0,he.themeSize)(c,"inherit"),color:c=>(0,he.themeColor)(c,"text",n),backgroundColor:c=>(0,he.themeColor)(c,"inherit",n),boxShadow:_("medium"),opacity:c=>Number(e.get(c)),transform:c=>e.get(c)?"translateY(0)":l?"translateY(-100%)":"translateY(100%)",transition:"opacity 300ms ease, transform 300ms ease"},_onMount:()=>requestAnimationFrame(()=>e.set(!0)),_onBeforeRemove:(c,d)=>{let i=!1,m=null,y=()=>{i||(i=!0,m&&(clearTimeout(m),m=null),c.domElement.removeEventListener("transitionend",g),d())},g=h=>{h.propertyName==="transform"&&y()};c.domElement.addEventListener("transitionend",g),m=setTimeout(y,350),c.addHook("Remove",()=>{var h;m&&(clearTimeout(m),m=null),(h=c.domElement)==null||h.removeEventListener("transitionend",g)}),e.set(!1)}}}var _n=require("@domphy/core"),Z=require("@domphy/theme");function ri(r={items:[]}){var a;let{items:o=[],multiple:n=!1,color:e="neutral",accentColor:l="primary"}=r,t=(0,_n.toState)((a=r.value)!=null?a:n?[]:"");return{role:"group",_context:{toggleGroup:{value:t,multiple:n}},_onSchedule:(s,c)=>{let d=o.map((i,m)=>{var h;let y=(h=i.key)!=null?h:String(m);return{button:[typeof i.label=="string"?{span:i.label}:i.label],_key:y,type:"button",role:"button",ariaPressed:u=>{let p=t.get(u);return Array.isArray(p)?p.includes(y):p===y},onClick:()=>{let u=t.get();if(n){let p=Array.isArray(u)?[...u]:[];t.set(p.includes(y)?p.filter(C=>C!==y):[...p,y])}else t.set(u===y?"":y)},style:{cursor:"pointer",fontSize:u=>(0,Z.themeSize)(u,"inherit"),height:(0,Z.themeSpacing)(6),paddingBlock:(0,Z.themeSpacing)(1),paddingInline:(0,Z.themeSpacing)(2),border:"none",borderRadius:(0,Z.themeSpacing)(1.5),color:u=>(0,Z.themeColor)(u,"shift-13",e),backgroundColor:u=>(0,Z.themeColor)(u,"inherit",e),transition:"background-color 140ms ease, color 140ms ease, box-shadow 140ms ease","&:hover:not([disabled]):not([aria-pressed=true])":{color:u=>(0,Z.themeColor)(u,"shift-13",e),backgroundColor:u=>(0,Z.themeColor)(u,"hover",e)},"&:active:not([disabled])":{backgroundColor:u=>(0,Z.themeColor)(u,"increase-2",e)},"&[aria-pressed=true]":{backgroundColor:u=>(0,Z.themeColor)(u,"shift-3",l),color:u=>(0,Z.themeColor)(u,"shift-13",l)},"&:focus-visible":{boxShadow:u=>b(u,l)},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}});c[s.tagName]=d},style:{display:"flex",paddingBlock:(0,Z.themeSpacing)(1),paddingInline:(0,Z.themeSpacing)(1),gap:(0,Z.themeSpacing)(1),borderRadius:(0,Z.themeSpacing)(2),fontSize:s=>(0,Z.themeSize)(s,"inherit"),backgroundColor:s=>(0,Z.themeColor)(s,"inherit",e),color:s=>(0,Z.themeColor)(s,"text",e),outline:s=>`1px solid ${(0,Z.themeColor)(s,"border",e)}`,outlineOffset:"-1px"}}}function ai(r={}){return Co({gap:r.gap})}function ii(){return{div:null,style:{flex:"1 1 0"}}}var Pt=require("@domphy/core"),Ce=require("@domphy/theme");function li(r={}){let{open:o=!1,placement:n="top",content:e="Tooltip Content"}=r,l=(0,Pt.toState)(n),t=(0,Pt.toState)(e),a=`domphy-tt-${Math.random().toString(36).slice(2,9)}`,s={span:g=>t.get(g),id:a},{show:c,hide:d,anchorPartial:i}=_e({kind:"tooltip",open:o,placement:l,content:s}),m={role:"tooltip",dataSize:"decrease-1",dataTone:"shift-17",style:{paddingBlock:g=>(0,Ce.themeSpacing)((0,Ce.themeDensity)(g)*1),paddingInline:g=>(0,Ce.themeSpacing)((0,Ce.themeDensity)(g)*3),borderRadius:g=>(0,Ce.themeSpacing)((0,Ce.themeDensity)(g)*1.5),color:g=>(0,Ce.themeColor)(g,"text"),backgroundColor:g=>(0,Ce.themeColor)(g),fontSize:g=>(0,Ce.themeSize)(g,"inherit"),boxShadow:_("low")},$:[So({placement:l,bordered:!1})]};return s.$||(s.$=[]),s.$.push(m),(0,Pt.merge)(i,{ariaDescribedby:a,onMouseEnter:(g,h)=>c(h),onMouseLeave:(g,h)=>d(h),onFocus:(g,h)=>c(h),onBlur:(g,h)=>d(h),onKeyDown:(g,h)=>g.key==="Escape"&&d(h)}),i}var ko=require("@domphy/core");function Mn(r,o){return r.key!==void 0&&r.key!==null?String(r.key):`index-${o}`}function si(r={}){let{duration:o=300,delay:n=0}=r,e=new Map,l=new Map,t=new Set,a=new Set;return{_onMount:s=>{s.addHook("Remove",()=>{for(let c of Array.from(l.values()))c();l.clear();for(let c of t)clearTimeout(c);t.clear();for(let c of a)cancelAnimationFrame(c);a.clear()})},_onBeforeUpdate:s=>{e=new Map,s.children.items.forEach((c,d)=>{if(!(c instanceof ko.ElementNode))return;let i=c.domElement;i&&e.set(Mn(c,d),i.getBoundingClientRect())})},_onUpdate:s=>{s.children.items.forEach((c,d)=>{var O;if(!(c instanceof ko.ElementNode))return;let i=c.domElement;if(!i)return;let m=Mn(c,d),y=e.get(m);if(!y)return;let g=i.getBoundingClientRect(),h=y.left-g.left,u=y.top-g.top;if(Math.abs(h)<.5&&Math.abs(u)<.5)return;(O=l.get(i))==null||O(),i.style.transition="none",i.style.transform=`translate(${h}px, ${u}px)`,i.getBoundingClientRect();let p=requestAnimationFrame(()=>{a.delete(p),i.style.transition=`transform ${o}ms ease ${n}ms`,i.style.transform="translate(0px, 0px)"});a.add(p);let C=!1,E=null,x=()=>{C||(C=!0,E&&(t.delete(E),E=null),l.delete(i),i.removeEventListener("transitionend",$),i.style.transition="",i.style.transform="")},$=T=>{T.propertyName==="transform"&&x()};l.set(i,()=>{C=!0,E&&(clearTimeout(E),t.delete(E),E=null),l.delete(i),i.removeEventListener("transitionend",$)}),i.addEventListener("transitionend",$),E=setTimeout(x,o+n+34),t.add(E)}),e.clear()}}}var Bn=require("@domphy/core"),ut=require("@domphy/theme");function ci(r={}){var n;let o=(0,Bn.toState)((n=r.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="ul"&&console.warn('"unorderedList" primitive patch must use ul tag')},style:{fontSize:e=>(0,ut.themeSize)(e,"inherit"),backgroundColor:e=>(0,ut.themeColor)(e),color:e=>(0,ut.themeColor)(e,"text",o.get(e)),marginTop:0,marginBottom:0,paddingLeft:(0,ut.themeSpacing)(3),listStyleType:"disc",listStylePosition:"outside"}}}0&&(module.exports={abbreviation,accordion,alert,avatar,badge,blockquote,breadcrumb,breadcrumbEllipsis,button,buttonGhost,buttonSwitch,card,code,combobox,command,commandItem,commandSearch,datePicker,descriptionList,details,dialog,divider,drawer,emphasis,empty,errorBoundary,fab,figure,formGroup,heading,horizontalRule,icon,image,inputCheckbox,inputColor,inputDateTime,inputFile,inputNumber,inputOTP,inputPassword,inputRadio,inputRange,inputSearch,inputSwitch,inputText,keyboard,label,link,linkButton,list,listItem,listItemButton,mark,menu,motion,orderedList,pagination,panelSection,paragraph,popover,popoverArrow,preformated,progress,rating,ringProgress,row,scrollArea,segmented,select,selectBox,selectItem,selectList,skeleton,small,spinner,splitter,splitterHandle,splitterPanel,stack,steps,strong,subscript,superscript,table,tabs,tag,textarea,timeline,timelineItem,toast,toggleGroup,toolbar,toolbarSpacer,tooltip,transitionGroup,unorderedList});
1
+ "use strict";var Vt=Object.defineProperty,nr=Object.defineProperties,rr=Object.getOwnPropertyDescriptor,ar=Object.getOwnPropertyDescriptors,ir=Object.getOwnPropertyNames,Mo=Object.getOwnPropertySymbols;var Bo=Object.prototype.hasOwnProperty,lr=Object.prototype.propertyIsEnumerable;var No=(a,o,n)=>o in a?Vt(a,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):a[o]=n,M=(a,o)=>{for(var n in o||(o={}))Bo.call(o,n)&&No(a,n,o[n]);if(Mo)for(var n of Mo(o))lr.call(o,n)&&No(a,n,o[n]);return a},we=(a,o)=>nr(a,ar(o));var sr=(a,o)=>{for(var n in o)Vt(a,n,{get:o[n],enumerable:!0})},cr=(a,o,n,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of ir(o))!Bo.call(a,i)&&i!==n&&Vt(a,i,{get:()=>o[i],enumerable:!(e=rr(o,i))||e.enumerable});return a};var mr=a=>cr(Vt({},"__esModule",{value:!0}),a);var gi={};sr(gi,{abbreviation:()=>ur,accordion:()=>dr,alert:()=>pr,avatar:()=>hr,badge:()=>gr,blockquote:()=>fr,breadcrumb:()=>yr,breadcrumbEllipsis:()=>br,button:()=>vr,buttonGhost:()=>ro,buttonSwitch:()=>Cr,card:()=>kr,code:()=>wr,combobox:()=>Pr,command:()=>Or,commandItem:()=>Ir,commandSearch:()=>Lr,datePicker:()=>Vr,descriptionList:()=>_r,details:()=>Mr,dialog:()=>Br,divider:()=>Ar,drawer:()=>Hr,elevation:()=>I,emphasis:()=>Fr,empty:()=>jr,errorBoundary:()=>Wr,fab:()=>Yr,figure:()=>qr,focusRing:()=>b,formGroup:()=>Gr,grid:()=>Ur,heading:()=>Zr,horizontalRule:()=>Jr,icon:()=>Qr,image:()=>ea,inputCheckbox:()=>ta,inputColor:()=>oa,inputDateTime:()=>na,inputFile:()=>ra,inputNumber:()=>aa,inputOTP:()=>ia,inputPassword:()=>ca,inputRadio:()=>ma,inputRange:()=>ua,inputSearch:()=>da,inputSwitch:()=>pa,inputText:()=>ha,keyboard:()=>ga,label:()=>fa,link:()=>ya,linkButton:()=>xa,list:()=>va,listItem:()=>Ca,listItemButton:()=>Ea,mark:()=>ka,menu:()=>wa,motion:()=>Ta,orderedList:()=>Da,pagination:()=>Oa,panelSection:()=>La,paragraph:()=>Ia,popover:()=>za,popoverArrow:()=>Eo,preformated:()=>Va,progress:()=>Ra,rating:()=>Ma,ringProgress:()=>Na,row:()=>wo,scrollArea:()=>Ba,segmented:()=>Aa,select:()=>Ha,selectBox:()=>Fa,selectItem:()=>ja,selectList:()=>Wa,skeleton:()=>Ka,small:()=>Ya,spinner:()=>qa,splitter:()=>Ga,splitterHandle:()=>Xa,splitterPanel:()=>Ua,stack:()=>Za,steps:()=>Ja,strong:()=>Qa,subscript:()=>ei,superscript:()=>ti,table:()=>oi,tabs:()=>ni,tag:()=>vt,textarea:()=>ri,timeline:()=>ai,timelineItem:()=>ii,toast:()=>li,toggleGroup:()=>si,toolbar:()=>ci,toolbarSpacer:()=>mi,tooltip:()=>ui,transitionGroup:()=>di,unorderedList:()=>pi,visuallyHidden:()=>hi});module.exports=mr(gi);var eo=require("@domphy/core"),_e=require("@domphy/theme");function ur(a={}){var e,i;let o=(0,eo.toState)((e=a.color)!=null?e:"neutral","color"),n=(0,eo.toState)((i=a.accentColor)!=null?i:"primary","accentColor");return{_onInsert:t=>{t.tagName!=="abbr"&&console.warn('"abbreviation" primitive patch must use abbr tag')},style:{fontSize:t=>(0,_e.themeSize)(t),backgroundColor:t=>(0,_e.themeColor)(t),color:t=>(0,_e.themeColor)(t,"shift-10",o.get(t)),textDecorationLine:"underline",textDecorationStyle:"dotted",textDecorationColor:t=>(0,_e.themeColor)(t,"shift-7",o.get(t)),textUnderlineOffset:(0,_e.themeSpacing)(.72),cursor:"help","&:hover":{color:t=>(0,_e.themeColor)(t,"shift-11",n.get(t)),textDecorationColor:t=>(0,_e.themeColor)(t,"shift-9",n.get(t))}}}}var oo=require("@domphy/core"),et=require("@domphy/theme");var to=require("@domphy/theme");function b(a,o="primary"){let n=(0,to.themeColor)(a,"surface"),e=(0,to.themeColor)(a,"shift-9",o);return`0 0 0 2px ${n}, 0 0 0 4px ${e}`}function dr(a={}){var i,t;let{type:o="single"}=a,n=(0,oo.toState)((i=a.color)!=null?i:"neutral","color"),e=(0,oo.toState)((t=a.accentColor)!=null?t:"primary","accentColor");return{_onMount:r=>{if(o!=="single")return;let s=r.domElement;if(!s)return;let m=h=>{let l=h.target.closest("summary");if(!l)return;let c=l.closest("details");!c||c.parentElement!==s||c.open||Array.from(s.querySelectorAll(":scope > details")).forEach(d=>{d!==c&&(d.open=!1)})};s.addEventListener("click",m),r.addHook("Remove",()=>s.removeEventListener("click",m))},style:{display:"flex",flexDirection:"column",borderRadius:r=>(0,et.themeSpacing)((0,et.themeDensity)(r)*1.5),outline:r=>`1px solid ${(0,et.themeColor)(r,"border-strong",n.get(r))}`,outlineOffset:"-1px",color:r=>(0,et.themeColor)(r,"text",n.get(r)),overflow:"hidden","& > details":{borderBottom:r=>`1px solid ${(0,et.themeColor)(r,"border-strong",n.get(r))}`},"& > details:last-child":{borderBottom:"none"},"& > details > summary:focus-visible":{boxShadow:r=>b(r,e.get(r))}}}}var Ao=require("@domphy/core"),he=require("@domphy/theme");function pr(a={}){var n;let o=(0,Ao.toState)((n=a.color)!=null?n:"primary","color");return{role:"alert",dataTone:"shift-2",style:{display:"flex",alignItems:"flex-start",gap:(0,he.themeSpacing)(3),paddingBlock:e=>(0,he.themeSpacing)((0,he.themeDensity)(e)*2),paddingInline:e=>(0,he.themeSpacing)((0,he.themeDensity)(e)*4),borderRadius:e=>(0,he.themeSpacing)((0,he.themeDensity)(e)*1.5),boxShadow:e=>`inset ${(0,he.themeSpacing)(1)} 0 0 0 ${(0,he.themeColor)(e,"shift-8",o.get(e))}`,backgroundColor:e=>(0,he.themeColor)(e,"inherit",o.get(e)),color:e=>(0,he.themeColor)(e,"shift-10",o.get(e)),fontSize:e=>(0,he.themeSize)(e,"inherit")}}}var Ho=require("@domphy/core"),Ke=require("@domphy/theme");function hr(a={}){var n;let o=(0,Ho.toState)((n=a.color)!=null?n:"primary","color");return{dataTone:"shift-2",_doctorDisable:"inline-typography",style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",overflow:"hidden",borderRadius:"50%",flexShrink:0,width:(0,Ke.themeSpacing)(9),height:(0,Ke.themeSpacing)(9),fontSize:e=>(0,Ke.themeSize)(e,"inherit"),fontWeight:"600",userSelect:"none",backgroundColor:e=>(0,Ke.themeColor)(e,"inherit",o.get(e)),color:e=>(0,Ke.themeColor)(e,"shift-11",o.get(e)),boxShadow:e=>`0 0 0 1px ${(0,Ke.themeColor)(e,"border",o.get(e))}`,"& img":{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"}}}}var no=require("@domphy/core"),Le=require("@domphy/theme");function gr(a={}){var i;let{label:o=999}=a,n=(0,no.toState)(o),e=(0,no.toState)((i=a.color)!=null?i:"danger","color");return{_doctorDisable:"inline-typography",style:{position:"relative","&::after":{content:t=>`"${n.get(t)}"`,position:"absolute",top:0,right:0,transform:"translate(50%,-50%)",paddingInline:(0,Le.themeSpacing)(1.5),minWidth:(0,Le.themeSpacing)(5),height:(0,Le.themeSpacing)(5),display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:t=>(0,Le.themeSize)(t,"decrease-2"),fontWeight:"600",lineHeight:1,borderRadius:(0,Le.themeSpacing)(999),backgroundColor:t=>(0,Le.themeColor)(t,"shift-9",e.get(t)),color:t=>(0,Le.themeColor)(t,"shift-0",e.get(t)),boxShadow:t=>`0 0 0 1px ${(0,Le.themeColor)(t,"shift-0",e.get(t))}`}}}}var Fo=require("@domphy/core"),ve=require("@domphy/theme");function fr(a={}){var n;let o=(0,Fo.toState)((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="blockquote"&&console.warn('"blockquote" primitive patch must use blockquote tag')},dataTone:"shift-2",style:{fontSize:e=>(0,ve.themeSize)(e,"inherit"),backgroundColor:e=>(0,ve.themeColor)(e,"inherit",o.get(e)),color:e=>(0,ve.themeColor)(e,"text",o.get(e)),boxShadow:e=>`inset ${(0,ve.themeSpacing)(1)} 0 0 0 ${(0,ve.themeColor)(e,"shift-4",o.get(e))}`,border:"none",paddingBlock:e=>(0,ve.themeSpacing)((0,ve.themeDensity)(e)*2),paddingInline:e=>(0,ve.themeSpacing)((0,ve.themeDensity)(e)*4),margin:0}}}var jo=require("@domphy/core"),Ie=require("@domphy/theme");function yr(a={}){var e;let{separator:o="/"}=a,n=(0,jo.toState)((e=a.color)!=null?e:"neutral","color");return{_onInsert:i=>{i.tagName!=="nav"&&console.warn('"breadcrumb" patch must use nav tag')},ariaLabel:"breadcrumb",style:{display:"flex",alignItems:"center",flexWrap:"wrap",fontSize:i=>(0,Ie.themeSize)(i,"inherit"),gap:(0,Ie.themeSpacing)(1),color:i=>(0,Ie.themeColor)(i,"text",n.get(i)),backgroundColor:i=>(0,Ie.themeColor)(i,"inherit",n.get(i)),"& > *":{display:"inline-flex",alignItems:"center",color:i=>(0,Ie.themeColor)(i,"muted",n.get(i))},"& > *:not(:last-child)::after":{content:`"${o}"`,color:i=>(0,Ie.themeColor)(i,"shift-4",n.get(i)),paddingInlineStart:(0,Ie.themeSpacing)(1)},"& > [aria-current=page]":{color:i=>(0,Ie.themeColor)(i,"shift-10",n.get(i)),pointerEvents:"none"}}}}var Wo=require("@domphy/core"),Ye=require("@domphy/theme");function br(a={}){var n;let o=(0,Wo.toState)((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="button"&&console.warn('"breadcrumbEllipsis" patch must use button tag')},ariaLabel:"More breadcrumb items",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:e=>(0,Ye.themeSize)(e,"inherit"),paddingInline:(0,Ye.themeSpacing)(1),border:"none",background:"none",cursor:"pointer",color:e=>(0,Ye.themeColor)(e,"muted",o.get(e)),borderRadius:(0,Ye.themeSpacing)(1),transition:"color 140ms ease, background-color 140ms ease, box-shadow 140ms ease","&:hover":{color:e=>(0,Ye.themeColor)(e,"shift-10",o.get(e)),backgroundColor:e=>(0,Ye.themeColor)(e,"hover",o.get(e))},"&:focus-visible":{boxShadow:e=>b(e,o.get(e))}}}}var Yo=require("@domphy/core"),N=require("@domphy/theme");var pt={small:"decrease-1",medium:"inherit",large:"increase-1"};var Ko=require("@domphy/core"),ce=require("@domphy/theme");var Sr={small:.5,medium:1,large:1.5};function ro(a={}){var i,t,r;let o=(0,Ko.toState)((i=a.color)!=null?i:"neutral","color"),n=Sr[(t=a.size)!=null?t:"medium"],e=pt[(r=a.size)!=null?r:"medium"];return{_onInsert:s=>{s.tagName!=="button"&&console.warn('"buttonGhost" primitive patch must use button tag')},style:{appearance:"none",fontSize:s=>(0,ce.themeSize)(s,e),paddingBlock:s=>(0,ce.themeSpacing)((0,ce.themeDensity)(s)*n),paddingInline:s=>(0,ce.themeSpacing)((0,ce.themeDensity)(s)*n),borderRadius:s=>(0,ce.themeSpacing)((0,ce.themeDensity)(s)*1.5),display:"inline-flex",justifyContent:"center",alignItems:"center",gap:s=>(0,ce.themeSpacing)((0,ce.themeDensity)(s)*1),userSelect:"none",cursor:"pointer",fontFamily:"inherit",lineHeight:"inherit",border:"none",background:"none",outline:"none",transition:"background-color 140ms ease, color 140ms ease, box-shadow 140ms ease",color:s=>(0,ce.themeColor)(s,"shift-6",o.get(s)),"&:hover:not([disabled]):not([aria-busy=true])":{color:s=>(0,ce.themeColor)(s,"text",o.get(s)),backgroundColor:s=>(0,ce.themeColor)(s,"hover",o.get(s))},"&:active:not([disabled]):not([aria-busy=true])":{color:s=>(0,ce.themeColor)(s,"text",o.get(s)),backgroundColor:s=>(0,ce.themeColor)(s,"increase-2",o.get(s))},"&:focus-visible":{boxShadow:s=>b(s,o.get(s))},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:s=>(0,ce.themeColor)(s,"border-strong","neutral")},"&[aria-busy=true]":{opacity:.7,cursor:"wait",pointerEvents:"none"}}}}var xr={small:{block:.5,inline:2},medium:{block:1,inline:3},large:{block:1.5,inline:4}};function vr(a={}){var r,s,m,h;let o=(r=a.variant)!=null?r:"outline";if(o==="ghost")return ro({color:a.color,size:a.size});let n=(0,Yo.toState)((s=a.color)!=null?s:"primary","color"),e=o==="solid",i=xr[(m=a.size)!=null?m:"medium"],t=pt[(h=a.size)!=null?h:"medium"];return we(M({_onInsert:l=>{l.tagName!=="button"&&console.warn('"button" primitive patch must use button tag')}},e?{_doctorDisable:["low-contrast","color-shift-minimum","tone-background-inherit"]}:{}),{style:{appearance:"none",fontSize:l=>(0,N.themeSize)(l,t),paddingBlock:l=>(0,N.themeSpacing)((0,N.themeDensity)(l)*i.block),paddingInline:l=>(0,N.themeSpacing)((0,N.themeDensity)(l)*i.inline),borderRadius:l=>(0,N.themeSpacing)((0,N.themeDensity)(l)*1.5),width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",gap:l=>(0,N.themeSpacing)((0,N.themeDensity)(l)*1),userSelect:"none",cursor:"pointer",fontFamily:"inherit",lineHeight:"inherit",border:"none",outlineOffset:"-1px",outlineWidth:"1px",outline:e?"none":l=>`1px solid ${(0,N.themeColor)(l,"border-strong",n.get(l))}`,color:l=>e?(0,N.themeColor)(l,"shift-0","neutral"):(0,N.themeColor)(l,"shift-13",n.get(l)),backgroundColor:l=>e?(0,N.themeColor)(l,"shift-13",n.get(l)):(0,N.themeColor)(l,"inherit",n.get(l)),transition:"background-color 140ms ease, color 140ms ease, border-color 140ms ease, box-shadow 140ms ease","&:hover:not([disabled]):not([aria-busy=true])":{color:l=>e?(0,N.themeColor)(l,"shift-0","neutral"):(0,N.themeColor)(l,"shift-14",n.get(l)),backgroundColor:l=>e?(0,N.themeColor)(l,"shift-14",n.get(l)):(0,N.themeColor)(l,"hover",n.get(l))},"&:active:not([disabled]):not([aria-busy=true])":{backgroundColor:l=>e?(0,N.themeColor)(l,"shift-15",n.get(l)):(0,N.themeColor)(l,"increase-2",n.get(l))},"&:focus-visible":{boxShadow:l=>b(l,n.get(l))},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:l=>(0,N.themeColor)(l,"shift-2","neutral"),outline:l=>`1px solid ${(0,N.themeColor)(l,"border-strong","neutral")}`,color:l=>(0,N.themeColor)(l,"muted","neutral")},"&[aria-busy=true]":{opacity:.7,cursor:"wait",pointerEvents:"none"}}})}var Rt=require("@domphy/core"),G=require("@domphy/theme");function Cr(a={}){var t,r;let{checked:o=!1}=a,n=(0,Rt.toState)(o),e=(0,Rt.toState)((t=a.color)!=null?t:"neutral","color"),i=(0,Rt.toState)((r=a.accentColor)!=null?r:"primary","accentColor");return{_onSchedule:s=>{s.tagName!=="button"&&console.warn('"buttonSwitch" primitive patch must use button tag')},role:"switch",ariaChecked:s=>n.get(s),dataTone:"shift-2",onClick:()=>n.set(!n.get()),style:{position:"relative",display:"inline-flex",alignItems:"center",fontSize:s=>(0,G.themeSize)(s),border:"none",outlineWidth:"1px",outline:s=>`1px solid ${(0,G.themeColor)(s,"border",e.get(s))}`,minWidth:(0,G.themeSpacing)(12),minHeight:(0,G.themeSpacing)(6),borderRadius:(0,G.themeSpacing)(999),paddingLeft:(0,G.themeSpacing)(7),paddingRight:(0,G.themeSpacing)(2),cursor:"pointer",transition:"padding-left 0.3s, padding-right 0.3s, background-color 140ms ease, box-shadow 140ms ease",backgroundColor:s=>(0,G.themeColor)(s,"inherit",e.get(s)),color:s=>(0,G.themeColor)(s,"text",e.get(s)),"&:focus-visible":{boxShadow:s=>b(s,i.get(s))},"& > :first-child":{content:'""',position:"absolute",display:"inline-flex",alignItems:"center",left:(0,G.themeSpacing)(.5),top:"50%",transform:"translateY(-50%)",transition:"left 0.3s",width:(0,G.themeSpacing)(5),height:(0,G.themeSpacing)(5),borderRadius:(0,G.themeSpacing)(999),color:s=>(0,G.themeColor)(s,"text"),backgroundColor:s=>(0,G.themeColor)(s,"decrease-2",e.get(s))},"&[aria-checked=true]":{backgroundColor:s=>(0,G.themeColor)(s,"increase-3",i.get(s)),outline:"none",color:s=>(0,G.themeColor)(s,"decrease-2"),paddingLeft:(0,G.themeSpacing)(2),paddingRight:(0,G.themeSpacing)(7)},"&[aria-checked=true] > :first-child":{left:`calc(100% - ${(0,G.themeSpacing)(5.5)})`},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}}var qo=require("@domphy/core"),V=require("@domphy/theme");var Er={low:"0 1px 2px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.10)",medium:"0 2px 4px rgba(0,0,0,0.10), 0 10px 24px rgba(0,0,0,0.14)",high:"0 6px 12px rgba(0,0,0,0.14), 0 24px 48px rgba(0,0,0,0.20)"};function I(a){return Er[a]}function kr(a={}){var n;let o=(0,qo.toState)((n=a.color)!=null?n:"neutral","color");return{_doctorDisable:"inline-typography",style:{display:"grid",gridTemplateColumns:"1fr auto",gridTemplateAreas:'"image image" "title aside" "desc aside" "content content" "footer footer"',borderRadius:e=>(0,V.themeSpacing)((0,V.themeDensity)(e)*2),backgroundColor:e=>(0,V.themeColor)(e,"inherit",o.get(e)),color:e=>(0,V.themeColor)(e,"shift-10",o.get(e)),outline:e=>`1px solid ${(0,V.themeColor)(e,"border-strong",o.get(e))}`,outlineOffset:"-1px",boxShadow:I("low"),overflow:"hidden","& > img":{gridArea:"image",width:"100%",height:"auto",display:"block"},"& > :is(h1,h2,h3,h4,h5,h6)":{gridArea:"title",paddingBlock:e=>(0,V.themeSpacing)((0,V.themeDensity)(e)*2),paddingInline:e=>(0,V.themeSpacing)((0,V.themeDensity)(e)*4),fontWeight:"600",color:e=>(0,V.themeColor)(e,"shift-11",o.get(e)),margin:0},"& > p":{gridArea:"desc",paddingInline:e=>(0,V.themeSpacing)((0,V.themeDensity)(e)*4),paddingBottom:e=>(0,V.themeSpacing)((0,V.themeDensity)(e)*2),color:e=>(0,V.themeColor)(e,"text",o.get(e)),margin:0},"& > aside":{gridArea:"aside",alignSelf:"center",padding:e=>(0,V.themeSpacing)((0,V.themeDensity)(e)*2),height:"auto"},"& > div":{gridArea:"content",padding:e=>(0,V.themeSpacing)((0,V.themeDensity)(e)*4),color:e=>(0,V.themeColor)(e,"shift-10",o.get(e))},"& > footer":{gridArea:"footer",display:"flex",gap:(0,V.themeSpacing)(2),paddingBlock:e=>(0,V.themeSpacing)((0,V.themeDensity)(e)*2),paddingInline:e=>(0,V.themeSpacing)((0,V.themeDensity)(e)*4),borderTop:e=>`1px solid ${(0,V.themeColor)(e,"border",o.get(e))}`}}}}var Go=require("@domphy/core"),qe=require("@domphy/theme");function wr(a={}){var n;let o=(0,Go.toState)((n=a.color)!=null?n:"neutral","color");return{dataTone:"shift-2",_onInsert:e=>{e.tagName!=="code"&&console.warn('"code" primitive patch must use code tag')},style:{display:"inline-flex",alignItems:"center",whiteSpace:"nowrap",fontSize:e=>(0,qe.themeSize)(e,"inherit"),color:e=>(0,qe.themeColor)(e,"text",o.get(e)),backgroundColor:e=>(0,qe.themeColor)(e,"inherit",o.get(e)),height:(0,qe.themeSpacing)(6),paddingInline:(0,qe.themeSpacing)(1.5),borderRadius:(0,qe.themeSpacing)(1)}}}var tt=require("@domphy/core"),j=require("@domphy/theme");var ht=require("@domphy/core"),Me=require("@domphy/floating");function gt(a,o){return`domphy-${a}-${o.nodeId}`}function Tr(a,o){var Q;let{openState:n,placement:e,content:i,keepOpenOnContentHover:t}=o,{kind:r}=o,s=null,m=null,h=null,l=null,c=!1,d=a.domElement,y=a.getRoot(),g=gt(r,a),u={style:{position:"fixed",pointerEvents:"auto",visibility:L=>n.get(L)?"visible":"hidden"},onKeyDown:L=>{L.key==="Escape"&&D()},onMouseEnter:()=>t&&T(),onMouseLeave:()=>t&&D(),_onMount:L=>{var se;if(h=L.domElement,h.id||(h.id=g),d&&h&&!h.hasAttribute("data-theme")){let ye=(se=d.closest("[data-theme]"))==null?void 0:se.getAttribute("data-theme");ye&&h.setAttribute("data-theme",ye)}},_portal:L=>{let se=L.domElement.querySelector("#domphy-floating");if(!se){let ye={div:[],id:"domphy-floating",style:{position:"fixed",inset:0,zIndex:20,pointerEvents:"none"}};se=L.children.insert(ye).domElement}return se}},p=L=>(0,ht.merge)(L,u);p(i);let v=()=>{c||(c=!0,l=y.children.insert(i))},k=()=>{v(),d&&h&&(m==null||m(),m=(0,Me.autoUpdate)(d,h,()=>{(0,Me.computePosition)(d,h,{placement:e.get(),middleware:[(0,Me.offset)(12),(0,Me.flip)(),(0,Me.shift)()],strategy:"fixed"}).then(({x:L,y:se,placement:ye})=>{h&&(Object.assign(h.style,{left:`${L}px`,top:`${se}px`}),e.set(ye))})}),n.set(!0))},x=()=>{m==null||m(),m=null,l&&(l.remove(),l=null),h=null,c=!1,n.set(!1)},T=()=>{s&&clearTimeout(s),s=setTimeout(k,100)},D=()=>{s&&clearTimeout(s),s=setTimeout(x,100)},q=L=>{if(!n.get()||!d||!h)return;let se=L.target;!d.contains(se)&&!h.contains(se)&&D()};return(Q=y.domElement)==null||Q.addEventListener("click",q),{show:T,hide:D,update(L){n=L.openState,e=L.placement,i=L.content,t=L.keepOpenOnContentHover,p(i),l&&l.patch(i)},destroy(){var L;s&&clearTimeout(s),m==null||m(),l==null||l.remove(),(L=y.domElement)==null||L.removeEventListener("click",q)}}}function Ne(a){let{kind:o,open:n=!1,placement:e}=a,i=(0,ht.toState)(n),t=`floating:${o}`,r=h=>{var l;return(l=h==null?void 0:h.getBehavior(t))==null?void 0:l.show()},s=h=>{var l;return(l=h==null?void 0:h.getBehavior(t))==null?void 0:l.hide()},m=M({onKeyDown:(h,l)=>h.key==="Escape"&&s(l)},(0,ht.behavior)(t,Tr,{kind:o,openState:i,placement:e,content:a.content,keepOpenOnContentHover:!!a.keepOpenOnContentHover}));return{show:r,hide:s,anchorPartial:m}}var $t=require("@domphy/core"),de=require("@domphy/theme");var Dr='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M6.707 5.293l5.293 5.292l5.293 -5.292a1 1 0 0 1 1.414 1.414l-5.292 5.293l5.292 5.293a1 1 0 0 1 -1.414 1.414l-5.293 -5.292l-5.293 5.292a1 1 0 1 1 -1.414 -1.414l5.292 -5.293l-5.292 -5.293a1 1 0 0 1 1.414 -1.414" /></svg>';function vt(a={}){var e;let{removable:o=!1}=a,n=(0,$t.toState)((e=a.color)!=null?e:"neutral","color");return{dataTone:"shift-2",_onInit:i=>{let t={span:(0,$t.rawHtml)(Dr),onClick:r=>{r.stopPropagation(),i.remove()},tabindex:0,role:"button",ariaLabel:"Remove",style:{display:"inline-flex",alignItems:"center",cursor:"pointer",borderRadius:(0,de.themeSpacing)(1),width:(0,de.themeSpacing)(4),height:(0,de.themeSpacing)(4),flexShrink:0,transition:"background-color 140ms ease, box-shadow 140ms ease","&:hover":{backgroundColor:r=>(0,de.themeColor)(r,"shift-4",n.get(r))},"&:focus-visible":{boxShadow:r=>b(r,n.get(r))}}};o&&i.children.insert(t)},style:{display:"inline-flex",alignItems:"center",whiteSpace:"nowrap",userSelect:"none",height:(0,de.themeSpacing)(6),paddingBlock:0,borderRadius:(0,de.themeSpacing)(999),paddingInlineStart:(0,de.themeSpacing)(2.5),paddingInlineEnd:o?(0,de.themeSpacing)(1):(0,de.themeSpacing)(2.5),gap:(0,de.themeSpacing)(1.5),fontSize:i=>(0,de.themeSize)(i,"decrease-1"),backgroundColor:i=>(0,de.themeColor)(i,"inherit",n.get(i)),color:i=>(0,de.themeColor)(i,"text",n.get(i)),border:"none",outlineOffset:"-1px",outline:i=>`1px solid ${(0,de.themeColor)(i,"border-strong",n.get(i))}`}}}function Pr(a){let{options:o=[],placement:n="bottom",color:e="neutral",open:i=!1,multiple:t=!1}=a,r=(0,tt.toState)(a.value),s=(0,tt.toState)(i),{show:m,hide:h,anchorPartial:l}=Ne({kind:"combobox",open:s,placement:(0,tt.toState)(n),content:a.content}),c={onClick:(p,v)=>!t&&h(v),dataTone:"shift-14",style:{backgroundColor:p=>(0,j.themeColor)(p,"inherit"),borderRadius:p=>(0,j.themeSpacing)((0,j.themeDensity)(p)*2),outline:p=>`1px solid ${(0,j.themeColor)(p,"border-strong")}`,outlineOffset:"-1px",boxShadow:I("medium")}};(0,tt.merge)(a.content,c);let d={border:"none",outline:"none",padding:0,margin:0,flex:1,height:(0,j.themeSpacing)(6),marginInlineStart:(0,j.themeSpacing)(2),fontSize:p=>(0,j.themeSize)(p,"inherit"),color:p=>(0,j.themeColor)(p,"text",e),backgroundColor:p=>(0,j.themeColor)(p,"inherit",e)},y;if(a.input){let p={onFocus:(v,k)=>m(k),style:d,_key:"combobox-input"};(0,tt.merge)(a.input,p),y=a.input}else y={input:null,ariaLabel:"Filter options",onFocus:(p,v)=>m(v),value:p=>(r.get(p),""),style:d,_key:"combobox-input"};let g={div:p=>{let v=r.get(p),k=Array.isArray(v)?v:[v],T=o.filter(D=>k.includes(D.value)).map(D=>({span:D.label,$:[vt({color:e,removable:!0})],_key:D.value,_onRemove:q=>{let Q=r.get(),se=(Array.isArray(Q)?Q:[Q]).filter(ye=>ye!==D.value);t?r.set(se):r.set(se[0])}}));return T.push(y),T},style:{display:"flex",flexWrap:"wrap",gap:(0,j.themeSpacing)(1)}},u={_onInsert:p=>{p.tagName!=="div"&&console.warn('"combobox" primitive patch must use div tag')},_onInit:p=>p.children.insert(g),style:{minWidth:(0,j.themeSpacing)(32),outlineOffset:"-1px",outline:p=>`1px solid ${(0,j.themeColor)(p,"border-strong","neutral")}`,paddingBlock:p=>(0,j.themeSpacing)((0,j.themeDensity)(p)*1),paddingInline:p=>(0,j.themeSpacing)((0,j.themeDensity)(p)*1),borderRadius:p=>(0,j.themeSpacing)((0,j.themeDensity)(p)*1.5),fontSize:p=>(0,j.themeSize)(p,"inherit"),color:p=>(0,j.themeColor)(p,"text",e),backgroundColor:p=>(0,j.themeColor)(p,"inherit",e),transition:"background-color 140ms ease, outline-color 140ms ease, box-shadow 140ms ease","&:focus-within":{boxShadow:p=>b(p,e)}}};return(0,tt.merge)(l,u),l}var _t=require("@domphy/core"),U=require("@domphy/theme");function Or(){return{role:"group",ariaLabel:"Commands",_onSchedule:(a,o)=>{(0,_t.merge)(o,{_context:{command:{query:(0,_t.toState)("")}}})},style:{display:"flex",flexDirection:"column",overflow:"hidden"}}}function Lr(a={}){let{color:o="neutral",accentColor:n="primary"}=a;return{_onInsert:e=>{e.tagName!=="input"&&console.warn('"commandSearch" patch must use input tag')},_onMount:e=>{let i=e.getContext("command");if(!i){console.warn('"commandSearch" patch must be used inside a "command"');return}let t=e.domElement,r=()=>i.query.set(t.value);t.addEventListener("input",r),e.addHook("Remove",()=>t.removeEventListener("input",r))},style:{fontFamily:"inherit",fontSize:e=>(0,U.themeSize)(e,"inherit"),paddingInline:e=>(0,U.themeSpacing)((0,U.themeDensity)(e)*3),paddingBlock:e=>(0,U.themeSpacing)((0,U.themeDensity)(e)*2),border:"none",borderBottom:e=>`1px solid ${(0,U.themeColor)(e,"border",o)}`,outline:"none",color:e=>(0,U.themeColor)(e,"shift-10",o),backgroundColor:e=>(0,U.themeColor)(e,"inherit",o),"&::placeholder":{color:e=>(0,U.themeColor)(e,"shift-7")},transition:"border-bottom-color 140ms ease, box-shadow 140ms ease","&:focus-visible":{borderBottomColor:e=>(0,U.themeColor)(e,"shift-6",n),boxShadow:e=>b(e,n)}}}}function Ir(a={}){let{color:o="neutral",accentColor:n="primary"}=a;return{_onMount:e=>{var h,l;let i=e.getContext("command");if(!i){console.warn('"commandItem" patch must be used inside a "command"');return}let t=e.domElement,r=(l=(h=t.textContent)==null?void 0:h.toLowerCase())!=null?l:"",s=c=>{t.hidden=c.length>0&&!r.includes(c.toLowerCase())};s(i.query.get());let m=i.query.addListener(s);e.addHook("Remove",m)},style:{cursor:"pointer",display:"flex",alignItems:"center",width:"100%",fontSize:e=>(0,U.themeSize)(e,"inherit"),height:e=>(0,U.themeSpacing)(6+(0,U.themeDensity)(e)*2),paddingInline:e=>(0,U.themeSpacing)((0,U.themeDensity)(e)*3),border:"none",outline:"none",color:e=>(0,U.themeColor)(e,"shift-13",o),backgroundColor:e=>(0,U.themeColor)(e,"inherit",o),transition:"background-color 140ms ease, box-shadow 140ms ease","&:hover:not([disabled])":{color:e=>(0,U.themeColor)(e,"shift-13",o),backgroundColor:e=>(0,U.themeColor)(e,"hover",o)},"&:focus-visible":{boxShadow:e=>b(e,n)}}}}var Te=require("@domphy/core"),C=require("@domphy/theme");var ue=a=>new Date(a.getFullYear(),a.getMonth(),a.getDate()),rt=(a,o)=>new Date(a.getFullYear(),a.getMonth(),a.getDate()+o),ao=(a,o)=>new Date(a.getFullYear(),a.getMonth()+o,a.getDate()),Ct=(a,o)=>!!a&&!!o&&a.getFullYear()===o.getFullYear()&&a.getMonth()===o.getMonth()&&a.getDate()===o.getDate(),io=a=>`${a.getFullYear()}-${String(a.getMonth()+1).padStart(2,"0")}-${String(a.getDate()).padStart(2,"0")}`,lo=(a,o)=>rt(a,-((a.getDay()-o+7)%7));function zr(a){var o,n;try{let e=new Intl.Locale(a),i=(n=(o=e.getWeekInfo)==null?void 0:o.call(e))!=null?n:e.weekInfo;if(i!=null&&i.firstDay)return i.firstDay%7}catch(e){}return 0}function Vr(a={}){var Vo,Ro,$o,_o;let{mode:o="single",time:n=!1,min:e,max:i,disabledDate:t,locale:r=typeof navigator!="undefined"?navigator.language:"en-US",format:s,onChange:m}=a,h=(Vo=a.weekStartsOn)!=null?Vo:zr(r),l=(0,Te.toState)((Ro=a.accentColor)!=null?Ro:"primary","accentColor"),c=(0,Te.toState)(($o=a.placement)!=null?$o:"bottom-start"),d=(0,Te.toState)((_o=a.value)!=null?_o:o==="range"?[null,null]:null),y=m?d.addListener(f=>m(f)):null,g=(()=>{let f=d.get(),S=o==="range"?f==null?void 0:f[0]:f;return S instanceof Date?S:new Date})(),u=(0,Te.toState)(g.getFullYear(),"viewYear"),p=(0,Te.toState)(g.getMonth(),"viewMonth"),v=(0,Te.toState)(ue(g),"focused"),k=(0,Te.toState)(null,"hovered"),x=(0,Te.toState)(g.getHours(),"hour"),T=(0,Te.toState)(g.getMinutes(),"minute"),D=null,q=new Intl.DateTimeFormat(r,M({dateStyle:"medium"},n?{timeStyle:"short"}:{})),Q=new Intl.DateTimeFormat(r,{month:"long",year:"numeric"}),L=new Intl.DateTimeFormat(r,{weekday:"short"}),se=new Intl.DateTimeFormat(r,{dateStyle:"full"}),ye=f=>f?q.format(f):"",Lt=f=>{if(s)return s(f);if(o==="range"){let[S,E]=f!=null?f:[null,null];return S?`${ye(S)} \u2013 ${ye(E)}`:""}return ye(f)},It=Array.from({length:7},(f,S)=>L.format(new Date(2023,0,1+(S+h)%7))),Po=f=>!!e&&ue(f)<ue(e)||!!i&&ue(f)>ue(i)||!!t&&t(f),Qe=f=>{if(!n)return ue(f);let S=ue(f);return S.setHours(x.get(),T.get(),0,0),S},Oo=f=>{var P;if(Po(f))return;if(o==="single"){d.set(Qe(f)),n||Jt();return}let[S,E]=(P=d.get())!=null?P:[null,null];!S||S&&E?d.set([Qe(f),null]):ue(f)<ue(S)?(d.set([Qe(f),Qe(S)]),n||Jt()):(d.set([S,Qe(f)]),n||Jt())},jn=()=>{var f;if(n)if(o==="single"){let S=d.get();S&&d.set(Qe(S))}else{let[S,E]=(f=d.get())!=null?f:[null,null];d.set([S&&Qe(S),E&&Qe(E)])}},Wn=(f,S)=>{var dt;if(o!=="range")return!1;let[E,P]=(dt=d.get(S))!=null?dt:[null,null],J=P!=null?P:k.get(S);if(!E||!J)return!1;let O=ue(E)<=ue(J)?E:J,ke=ue(E)<=ue(J)?J:E,be=ue(f);return be>=ue(O)&&be<=ue(ke)},Kn=(f,S)=>{let E=d.get(S);if(o==="range"){let[P,J]=E!=null?E:[null,null];return Ct(f,P)||Ct(f,J)}return Ct(f,E)},zt=f=>{u.set(f.getFullYear()),p.set(f.getMonth())},Lo=f=>{let S=ao(new Date(u.get(),p.get(),1),f);zt(S)},Io=f=>u.set(u.get()+f),Zt=()=>{setTimeout(()=>{var f;(f=D==null?void 0:D.querySelector(`[data-date="${io(v.get())}"]`))==null||f.focus()},0)},Yn=Zn(),{show:qn,hide:Gn,anchorPartial:zo}=Ne({kind:"datePicker",open:!1,placement:c,content:Yn});function Jt(){Gn()}let Un={type:"text",readonly:!0,value:f=>Lt(d.get(f)),ariaHaspopup:"dialog",ariaLabel:"Choose date",style:{cursor:"pointer"},onClick:(f,S)=>{Qt(S)},onFocus:(f,S)=>{Qt(S)},onKeyDown:(f,S)=>{let E=f.key;(E==="ArrowDown"||E==="Enter")&&(f.preventDefault(),Qt(S))},_onMount:f=>y&&f.addHook("Remove",()=>{y()})};function Qt(f){var E;let S=(E=Xn())!=null?E:new Date;v.set(ue(S)),zt(S),qn(f),Zt()}function Xn(){var S;let f=d.get();return o==="range"?(S=f==null?void 0:f[0])!=null?S:null:f!=null?f:null}return(0,Te.merge)(zo,Un),zo;function Zn(){let f=(O,ke,be)=>({button:O,type:"button",ariaLabel:ke,onClick:be,style:Rr()}),S={div:[f("\xAB","Previous year",()=>Io(-1)),f("\u2039","Previous month",()=>Lo(-1)),{div:O=>Q.format(new Date(u.get(O),p.get(O),1)),ariaLive:"polite",_doctorDisable:"inline-typography",style:{flex:"1",textAlign:"center",fontWeight:"bold",fontSize:O=>(0,C.themeSize)(O)}},f("\u203A","Next month",()=>Lo(1)),f("\xBB","Next year",()=>Io(1))],style:{display:"flex",alignItems:"center",gap:(0,C.themeSpacing)(1),marginBottom:(0,C.themeSpacing)(2)}},E={div:It.map((O,ke)=>({div:O,_doctorDisable:"inline-typography",style:{textAlign:"center",fontSize:be=>(0,C.themeSize)(be,"decrease-1"),fontWeight:"bold",color:be=>(0,C.themeColor)(be,"shift-7"),paddingBlock:(0,C.themeSpacing)(1)},_key:ke})),role:"row",style:Uo()},P={div:O=>Jn(O),role:"grid",ariaLabel:"Calendar",onKeyDown:or,onMouseLeave:()=>o==="range"&&k.set(null),style:{display:"flex",flexDirection:"column",gap:(0,C.themeSpacing)(.5)}},J=[S,E,P];return n&&J.push(er()),J.push(tr()),{div:J,role:"dialog",ariaModal:"false",_onMount:O=>{D=O.domElement},style:{minWidth:(0,C.themeSpacing)(70),padding:(0,C.themeSpacing)(3),borderRadius:O=>(0,C.themeSpacing)((0,C.themeDensity)(O)*2),backgroundColor:O=>(0,C.themeColor)(O,"base"),color:O=>(0,C.themeColor)(O,"shift-10"),border:O=>`1px solid ${(0,C.themeColor)(O,"border-strong")}`,boxShadow:I("medium")}}}function Jn(f){let S=new Date(u.get(f),p.get(f),1),E=p.get(f),P=lo(S,h),J=[];for(let O=0;O<6;O++){let ke=[];for(let be=0;be<7;be++){let dt=rt(P,O*7+be);ke.push(Qn(dt,E,f))}J.push({div:ke,role:"row",style:Uo(),_key:O})}return J}function Qn(f,S,E){let P=Po(f),J=Kn(f,E),O=Wn(f,E),ke=f.getMonth()!==S,be=Ct(f,v.get(E)),dt=Ct(f,new Date);return{button:String(f.getDate()),type:"button",role:"gridcell",tabIndex:be?0:-1,ariaSelected:J,ariaDisabled:P,disabled:P,ariaLabel:se.format(f),dataDate:io(f),onClick:()=>Oo(f),onMouseEnter:()=>o==="range"&&k.set(f),style:{appearance:"none",border:"none",cursor:P?"not-allowed":"pointer",aspectRatio:"1",borderRadius:(0,C.themeSpacing)(1),fontSize:ee=>(0,C.themeSize)(ee),fontFamily:"inherit",opacity:P?.35:ke?.5:1,backgroundColor:ee=>J?(0,C.themeColor)(ee,"shift-7",l.get(ee)):O?(0,C.themeColor)(ee,"hover",l.get(ee)):"transparent",color:ee=>J?(0,C.themeColor)(ee,"shift-0",l.get(ee)):(0,C.themeColor)(ee,"text"),outline:dt?ee=>`1px solid ${(0,C.themeColor)(ee,"shift-6",l.get(ee))}`:"none",outlineOffset:"-2px","&:hover:not([disabled])":{backgroundColor:ee=>J?(0,C.themeColor)(ee,"shift-7",l.get(ee)):(0,C.themeColor)(ee,"shift-3",l.get(ee))},transition:"background-color 140ms ease, box-shadow 140ms ease","&:focus-visible":{boxShadow:ee=>b(ee,l.get(ee))}},_key:io(f)}}function er(){let f=(S,E,P)=>({select:Array.from({length:S},(J,O)=>({option:String(O).padStart(2,"0"),value:String(O),selected:ke=>E.get(ke)===O,_key:O})),ariaLabel:P,onChange:J=>{E.set(Number(J.target.value)),jn()},style:$r()});return{div:[f(24,x,"Hour"),{span:":",_doctorDisable:"inline-typography",style:{fontWeight:"bold"}},f(60,T,"Minute")],style:{display:"flex",alignItems:"center",justifyContent:"center",gap:(0,C.themeSpacing)(1),marginTop:(0,C.themeSpacing)(3)}}}function tr(){let f=(S,E)=>({button:S,type:"button",onClick:E,style:{appearance:"none",border:"none",background:"transparent",cursor:"pointer",fontFamily:"inherit",fontSize:P=>(0,C.themeSize)(P,"decrease-1"),color:P=>(0,C.themeColor)(P,"muted",l.get(P)),padding:(0,C.themeSpacing)(1)}});return{div:[f("Today",()=>{let S=new Date;v.set(ue(S)),zt(S),Zt()}),f("Clear",()=>{d.set(o==="range"?[null,null]:null),k.set(null)})],style:{display:"flex",justifyContent:"space-between",marginTop:(0,C.themeSpacing)(2),paddingTop:(0,C.themeSpacing)(2),borderTop:S=>`1px solid ${(0,C.themeColor)(S,"border")}`}}}function or(f){let S=f,E=v.get(),P=null;switch(S.key){case"ArrowLeft":P=rt(E,-1);break;case"ArrowRight":P=rt(E,1);break;case"ArrowUp":P=rt(E,-7);break;case"ArrowDown":P=rt(E,7);break;case"Home":P=lo(E,h);break;case"End":P=rt(lo(E,h),6);break;case"PageUp":P=ao(E,S.shiftKey?-12:-1);break;case"PageDown":P=ao(E,S.shiftKey?12:1);break;case"Enter":case" ":S.preventDefault(),Oo(E);return;default:return}S.preventDefault(),v.set(P),zt(P),Zt()}}function Uo(){return{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:(0,C.themeSpacing)(.5)}}function Rr(){return{appearance:"none",border:"none",background:"transparent",cursor:"pointer",fontFamily:"inherit",fontSize:a=>(0,C.themeSize)(a),color:a=>(0,C.themeColor)(a,"muted"),width:(0,C.themeSpacing)(7),height:(0,C.themeSpacing)(7),borderRadius:(0,C.themeSpacing)(1),"&:hover":{backgroundColor:a=>(0,C.themeColor)(a,"shift-3")}}}function $r(){return{fontFamily:"inherit",fontSize:a=>(0,C.themeSize)(a),padding:(0,C.themeSpacing)(1),borderRadius:(0,C.themeSpacing)(1),border:a=>`1px solid ${(0,C.themeColor)(a,"border-strong")}`,backgroundColor:a=>(0,C.themeColor)(a,"base"),color:a=>(0,C.themeColor)(a,"text")}}var Xo=require("@domphy/core"),Ge=require("@domphy/theme");function _r(a={}){var n;let o=(0,Xo.toState)((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="dl"&&console.warn('"descriptionList" primitive patch must use dl tag')},_doctorDisable:"inline-typography",style:{display:"grid",gridTemplateColumns:`minmax(${(0,Ge.themeSpacing)(24)}, max-content) 1fr`,columnGap:(0,Ge.themeSpacing)(4),margin:0,"& dt":{margin:0,fontWeight:600,fontSize:e=>(0,Ge.themeSize)(e,"inherit"),color:e=>(0,Ge.themeColor)(e,"shift-10",o.get(e))},"& dd":{margin:0,fontSize:e=>(0,Ge.themeSize)(e,"inherit"),color:e=>(0,Ge.themeColor)(e,"text",o.get(e))}}}}var so=require("@domphy/core"),z=require("@domphy/theme");function Mr(a={}){var i,t;let{duration:o=240}=a,n=(0,so.toState)((i=a.color)!=null?i:"neutral","color"),e=(0,so.toState)((t=a.accentColor)!=null?t:"primary","accentColor");return{_onInsert:r=>{r.tagName!=="details"&&console.warn('"details" primitive patch must use details tag')},_doctorDisable:"inline-typography",style:{fontSize:r=>(0,z.themeSize)(r,"inherit"),color:r=>(0,z.themeColor)(r,"text",n.get(r)),backgroundColor:r=>(0,z.themeColor)(r,"inherit",n.get(r)),overflow:"hidden","& > summary":{backgroundColor:r=>(0,z.themeColor)(r,"shift-2",n.get(r)),color:r=>(0,z.themeColor)(r,"shift-10",n.get(r)),fontSize:r=>(0,z.themeSize)(r,"inherit"),listStyle:"none",display:"flex",justifyContent:"space-between",alignItems:"center",gap:(0,z.themeSpacing)(2),cursor:"pointer",userSelect:"none",fontWeight:500,paddingInline:r=>(0,z.themeSpacing)((0,z.themeDensity)(r)*4),height:(0,z.themeSpacing)(10)},"& > summary::-webkit-details-marker":{display:"none"},"& > summary::marker":{content:'""'},"& > summary::after":{content:'""',width:(0,z.themeSpacing)(2),height:(0,z.themeSpacing)(2),flexShrink:0,marginTop:(0,z.themeSpacing)(-.5),borderInlineEnd:r=>`${(0,z.themeSpacing)(.5)} solid ${(0,z.themeColor)(r,"shift-9",n.get(r))}`,borderBottom:r=>`${(0,z.themeSpacing)(.5)} solid ${(0,z.themeColor)(r,"shift-9",n.get(r))}`,transform:"rotate(45deg)",transition:`transform ${o}ms ease`},"&[open] > summary::after":{transform:"rotate(-135deg)"},"& > summary:hover":{backgroundColor:r=>(0,z.themeColor)(r,"shift-3",n.get(r))},"& > summary:focus-visible":{borderRadius:r=>(0,z.themeSpacing)((0,z.themeDensity)(r)*2),boxShadow:r=>b(r,e.get(r))},"& > :not(summary)":{maxHeight:0,opacity:0,overflow:"hidden",paddingInline:r=>(0,z.themeSpacing)((0,z.themeDensity)(r)*3),paddingTop:0,paddingBottom:0,transition:`max-height ${o}ms ease, opacity ${o}ms ease, padding ${o}ms ease`},"&[open] > :not(summary)":{maxHeight:"none",opacity:1,paddingTop:r=>(0,z.themeSpacing)((0,z.themeDensity)(r)*1),paddingBottom:r=>(0,z.themeSpacing)((0,z.themeDensity)(r)*3)}}}}var Nt=require("@domphy/core"),De=require("@domphy/theme");var Et=0;function Mt(){Et++,Et===1&&(document.body.style.overflow="hidden")}function ft(){Et=Math.max(0,Et-1),Et===0&&(document.body.style.overflow="")}var Zo='button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), details, [tabindex]:not([tabindex="-1"])';function Nr(a,o){let{state:n}=o,e=null,i=!1,t=!1,r=null,s=a.domElement;s.setAttribute("aria-modal","true");let m=()=>{i=!1,typeof s.close=="function"&&s.close(),s.style.visibility="hidden",s.style.pointerEvents="none",t&&(ft(),t=!1),e==null||e.focus(),e=null},h=y=>{if(y.key!=="Tab")return;let g=Array.from(s.querySelectorAll(Zo)).filter(v=>!v.closest("[aria-hidden='true']")&&v.offsetParent!==null);if(!g.length){y.preventDefault();return}let u=g[0],p=g[g.length-1];y.shiftKey?(document.activeElement===u||document.activeElement===s)&&(y.preventDefault(),p.focus()):document.activeElement===p&&(y.preventDefault(),u.focus())},l=y=>{y.preventDefault(),n.set(!1)};s.addEventListener("cancel",l);let c=y=>{y?(i=!1,r&&(clearTimeout(r),r=null),e=document.activeElement,s.style.visibility="visible",s.style.pointerEvents="auto",typeof s.showModal=="function"&&!s.open&&s.showModal(),t||(Mt(),t=!0),s.addEventListener("keydown",h),requestAnimationFrame(()=>{s.style.opacity="1";let g=s.querySelector(Zo);g==null||g.focus()})):(i=!0,s.style.opacity="0",s.removeEventListener("keydown",h),r=setTimeout(()=>{r=null,i&&m()},350))};c(n.get());let d=n.addListener(c);return{requestClose:()=>n.set(!1),onTransitionEnd:y=>{i&&y.target===s&&y.propertyName==="opacity"&&m()},update(y){y.state!==n&&(d(),n=y.state,d=n.addListener(c))},destroy(){r&&(clearTimeout(r),r=null),d(),s.removeEventListener("cancel",l),t&&(ft(),t=!1),s.removeEventListener("keydown",h),e==null||e.focus(),e=null}}}function Br(a={}){let{color:o="neutral",open:n=!1}=a,e=(0,Nt.toState)(n);return we(M({_onInsert:i=>{i.tagName!=="dialog"&&console.warn('"dialog" primitive patch must use dialog tag')}},(0,Nt.behavior)("dialog",Nr,{state:e})),{onClick:(i,t)=>{var m;if(i.target!==t.domElement)return;let r=t.domElement.getBoundingClientRect();i.clientX>=r.left&&i.clientX<=r.right&&i.clientY>=r.top&&i.clientY<=r.bottom||(m=t.getBehavior("dialog"))==null||m.requestClose()},onTransitionEnd:(i,t)=>{var r;return(r=t.getBehavior("dialog"))==null?void 0:r.onTransitionEnd(i)},style:{opacity:"0",visibility:"hidden",pointerEvents:"none",transition:"opacity 200ms ease",fontSize:i=>(0,De.themeSize)(i,"inherit"),color:i=>(0,De.themeColor)(i,"shift-10",o),backgroundColor:i=>(0,De.themeColor)(i,"inherit",o),border:"none",borderRadius:i=>(0,De.themeSpacing)((0,De.themeDensity)(i)*2),padding:i=>(0,De.themeSpacing)((0,De.themeDensity)(i)*3),boxShadow:I("high"),"&::backdrop":{backgroundColor:i=>(0,De.themeColor)(i,"shift-2","neutral"),opacity:.75}}})}var Jo=require("@domphy/core"),Ue=require("@domphy/theme");function Ar(a={}){var n;let o=(0,Jo.toState)((n=a.color)!=null?n:"neutral","color");return{role:"separator",_onInsert:e=>{e.tagName!=="div"&&console.warn('"divider" patch should be used with <div>')},style:{display:"flex",justifyContent:"center",alignItems:"baseline",gap:(0,Ue.themeSpacing)(2),fontSize:e=>(0,Ue.themeSize)(e,"inherit"),backgroundColor:e=>(0,Ue.themeColor)(e),color:e=>(0,Ue.themeColor)(e,"text",o.get(e)),minHeight:"1lh","&::before":{content:'""',flex:1,borderColor:e=>(0,Ue.themeColor)(e,"border-strong",o.get(e)),borderWidth:"1px",borderBottomStyle:"solid"},"&::after":{content:'""',flex:1,borderColor:e=>(0,Ue.themeColor)(e,"border-strong",o.get(e)),borderWidth:"1px",borderBottomStyle:"solid"}}}}var tn=require("@domphy/core"),Pe=require("@domphy/theme");var co={left:"translateX(-100%)",right:"translateX(100%)",top:"translateY(-100%)",bottom:"translateY(100%)"},Qo={left:"0 auto 0 0",right:"0 0 0 auto",top:"0 0 auto 0",bottom:"auto 0 0 0"},kt=a=>a==="left"||a==="right";function en(a,o){return a==="start"?o?"right":"left":a==="end"?o?"left":"right":a}function Hr(a={}){let{color:o="neutral",open:n=!1,placement:e="end",size:i}=a,t=(0,tn.toState)(n),r=e==="start"||e==="end",s=en(e,!1),m=kt(s)?(0,Pe.themeSpacing)(80):(0,Pe.themeSpacing)(64),h=i!=null?i:m;return{_onInsert:l=>{l.tagName!=="dialog"&&console.warn('"drawer" patch must use dialog tag')},onClick:(l,c)=>{l.target===c.domElement&&t.set(!1)},_onMount:l=>{let c=l.domElement;c.setAttribute("aria-modal","true");let d=q=>{q.preventDefault(),t.set(!1)};c.addEventListener("cancel",d);let y=r&&(c.ownerDocument.documentElement.dir==="rtl"||c.ownerDocument.dir==="rtl"),g=en(e,y);r&&(c.style.transform=co[g],c.style.margin=Qo[g],c.style.width=kt(g)?h:"100dvw",c.style.height=kt(g)?"100dvh":h);let u=!1,p=!1,v=null,k=()=>{v=null,u&&(u=!1,typeof c.close=="function"&&c.close(),c.style.visibility="hidden",c.style.pointerEvents="none",p&&(ft(),p=!1))},x=q=>{q.target===c&&q.propertyName==="transform"&&k()};c.addEventListener("transitionend",x);let T=q=>{q?(u=!1,c.style.visibility="visible",c.style.pointerEvents="auto",typeof c.showModal=="function"&&c.showModal(),p||(Mt(),p=!0),requestAnimationFrame(()=>{c.style.transform="translate(0, 0)"})):(u=!0,c.style.transform=co[g],v=setTimeout(k,350))};T(t.get());let D=t.addListener(T);l.addHook("Remove",()=>{v&&(clearTimeout(v),v=null),D(),c.removeEventListener("cancel",d),c.removeEventListener("transitionend",x),p&&(ft(),p=!1)})},style:{transform:co[s],visibility:"hidden",pointerEvents:"none",transition:"transform 0.25s ease",fontSize:l=>(0,Pe.themeSize)(l,"inherit"),color:l=>(0,Pe.themeColor)(l,"shift-10",o),backgroundColor:l=>(0,Pe.themeColor)(l,"inherit",o),border:"none",padding:l=>(0,Pe.themeSpacing)((0,Pe.themeDensity)(l)*3),margin:Qo[s],width:kt(s)?h:"100dvw",height:kt(s)?"100dvh":h,maxWidth:"100dvw",maxHeight:"100dvh",boxShadow:I("high"),"&::backdrop":{backgroundColor:l=>(0,Pe.themeColor)(l,"shift-2","neutral"),opacity:.75}}}}var on=require("@domphy/core"),Bt=require("@domphy/theme");function Fr(a={}){var n;let o=(0,on.toState)((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="em"&&console.warn('"emphasis" primitive patch must use em tag')},style:{fontSize:e=>(0,Bt.themeSize)(e,"inherit"),fontStyle:"italic",color:e=>(0,Bt.themeColor)(e,"shift-10",o.get(e))}}}var nn=require("@domphy/core"),ot=require("@domphy/theme");function jr(a={}){var n;let o=(0,nn.toState)((n=a.color)!=null?n:"neutral","color");return{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:(0,ot.themeSpacing)(3),paddingBlock:(0,ot.themeSpacing)(12),paddingInline:(0,ot.themeSpacing)(6),textAlign:"center",color:e=>(0,ot.themeColor)(e,"muted",o.get(e)),"& > :first-child":{color:e=>(0,ot.themeColor)(e,"shift-5",o.get(e)),opacity:.9},"& > :nth-child(2)":{color:e=>(0,ot.themeColor)(e,"text",o.get(e))}}}}function Wr(a={}){return{_onError:(o,n,e)=>{var t,r;(t=a.onError)==null||t.call(a,n);let i=typeof a.fallback=="function"?a.fallback(n,e):(r=a.fallback)!=null?r:{div:"An error occurred."};o.children.update([i])}}}var rn=require("@domphy/core"),Xe=require("@domphy/theme");var Kr={small:8,medium:10,large:14};function Yr(a={}){var e,i;let o=(0,rn.toState)((e=a.color)!=null?e:"primary","color"),n=(0,Xe.themeSpacing)(Kr[(i=a.size)!=null?i:"medium"]);return{_onInsert:t=>{t.tagName!=="button"&&console.warn('"fab" patch must use button tag')},_doctorDisable:["low-contrast","color-shift-minimum","tone-background-inherit"],style:{appearance:"none",border:"none",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:n,height:n,borderRadius:"50%",fontSize:t=>(0,Xe.themeSize)(t,"inherit"),backgroundColor:t=>(0,Xe.themeColor)(t,"shift-13",o.get(t)),color:t=>(0,Xe.themeColor)(t,"shift-0","neutral"),boxShadow:I("low"),transition:"background-color 200ms ease, box-shadow 200ms ease","&:hover:not([disabled])":{backgroundColor:t=>(0,Xe.themeColor)(t,"shift-14",o.get(t)),boxShadow:I("medium")},"&:active:not([disabled])":{backgroundColor:t=>(0,Xe.themeColor)(t,"shift-15",o.get(t)),boxShadow:I("low")},"&:focus-visible":{boxShadow:t=>`${I("medium")}, ${b(t,o.get(t))}`},"&[disabled]":{opacity:.5,cursor:"not-allowed"}}}}var an=require("@domphy/core"),Be=require("@domphy/theme");function qr(a={}){var n;let o=(0,an.toState)((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="figure"&&console.warn('"figure" primitive patch must use figure tag')},style:{display:"flex",flexDirection:"column",gap:(0,Be.themeSpacing)(2),marginInline:0,marginTop:(0,Be.themeSpacing)(3),marginBottom:(0,Be.themeSpacing)(3),color:e=>(0,Be.themeColor)(e,"text",o.get(e)),"& img, & svg, & video, & canvas":{display:"block",maxWidth:"100%",borderRadius:(0,Be.themeSpacing)(2)},"& figcaption":{fontSize:e=>(0,Be.themeSize)(e,"decrease-1"),color:e=>(0,Be.themeColor)(e,"muted",o.get(e)),lineHeight:1.45}}}}var ln=require("@domphy/core"),B=require("@domphy/theme");function Gr(a={}){var i;let{layout:o="horizontal"}=a,n=(0,ln.toState)((i=a.color)!=null?i:"neutral","color"),e=o==="vertical";return{_onInsert:t=>{t.tagName!=="fieldset"&&console.warn('"formGroup" patch must use fieldset tag')},_doctorDisable:"inline-typography",style:{margin:0,paddingInline:t=>(0,B.themeSpacing)((0,B.themeDensity)(t)*3),paddingBlock:t=>(0,B.themeSpacing)((0,B.themeDensity)(t)*3),border:"none",borderRadius:t=>(0,B.themeSpacing)((0,B.themeDensity)(t)*2),fontSize:t=>(0,B.themeSize)(t,"inherit"),backgroundColor:t=>(0,B.themeColor)(t,"inherit",n.get(t)),color:t=>(0,B.themeColor)(t,"text",n.get(t)),display:"grid",gridTemplateColumns:e?"minmax(0, 1fr)":"max-content minmax(0, 1fr)",columnGap:(0,B.themeSpacing)(4),rowGap:(0,B.themeSpacing)(3),alignItems:"start","& > legend":{gridColumn:"1 / -1",margin:0,fontSize:t=>(0,B.themeSize)(t,"inherit"),fontWeight:600,paddingBlock:t=>(0,B.themeSpacing)((0,B.themeDensity)(t)*1),borderRadius:t=>(0,B.themeSpacing)((0,B.themeDensity)(t)*2),color:t=>(0,B.themeColor)(t,"text",n.get(t)),backgroundColor:t=>(0,B.themeColor)(t,"inherit",n.get(t))},"& > label":{gridColumn:"1",alignSelf:"start",margin:0,paddingBlock:t=>e?0:(0,B.themeSpacing)((0,B.themeDensity)(t)*1)},"& > label:has(+ :not(legend, label, p) + p)":{gridRow:e?"auto":"span 2"},"& > :not(legend, label, p)":{gridColumn:e?"1":"2",minWidth:0,width:"100%",boxSizing:"border-box"},"& > p":{gridColumn:e?"1":"2",minWidth:0,margin:0,marginBlockStart:`calc(${(0,B.themeSpacing)(2)} * -1)`,fontSize:t=>(0,B.themeSize)(t,"decrease-1"),color:t=>(0,B.themeColor)(t,"text",n.get(t))}}}}var At=require("@domphy/theme");function Ur(a={}){let{columns:o=1,gap:n=4,align:e}=a;return{style:M({display:"grid",gridTemplateColumns:typeof o=="number"?`repeat(${o}, minmax(0, 1fr))`:o,gap:i=>(0,At.themeSpacing)((0,At.themeDensity)(i)*n)},e?{alignItems:e}:{})}}var sn=require("@domphy/core"),yt=require("@domphy/theme"),Xr={h6:"decrease-1",h5:"inherit",h4:"increase-1",h3:"increase-2",h2:"increase-3",h1:"increase-4"};function Zr(a={}){var n;let o=(0,sn.toState)((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{["h1","h2","h3","h4","h5","h6"].includes(e.tagName)||console.warn('"heading" primitive patch must use heading tags [h1...h6]')},style:{color:e=>(0,yt.themeColor)(e,"shift-11",o.get(e)),marginTop:0,marginBottom:(0,yt.themeSpacing)(2),fontSize:e=>{let i=Xr[e.elementNode.tagName]||"inherit";return(0,yt.themeSize)(e,i)}}}}var cn=require("@domphy/core"),bt=require("@domphy/theme");function Jr(a={}){var n;let o=(0,cn.toState)((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="hr"&&console.warn('"horizontalRule" primitive patch must use hr tag')},dataTone:"shift-3",style:{border:0,height:"1px",marginInline:0,marginTop:(0,bt.themeSpacing)(3),marginBottom:(0,bt.themeSpacing)(3),backgroundColor:e=>(0,bt.themeColor)(e,"inherit",o.get(e)),color:e=>(0,bt.themeColor)(e,"text",o.get(e))}}}var mn=require("@domphy/core"),at=require("@domphy/theme");function Qr(a={}){var n;let o=(0,mn.toState)((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="span"&&console.warn('"icon" primitive patch should use span tag')},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",alignSelf:"center",justifySelf:"center",verticalAlign:"middle",width:(0,at.themeSpacing)(4),height:(0,at.themeSpacing)(4),flexShrink:"0",fontSize:e=>(0,at.themeSize)(e),backgroundColor:"transparent",color:e=>(0,at.themeColor)(e,"text",o.get(e))}}}var un=require("@domphy/core"),wt=require("@domphy/theme");function ea(a={}){var n;let o=(0,un.toState)((n=a.color)!=null?n:"neutral","color");return{dataTone:"shift-2",_onInsert:e=>{e.tagName!=="img"&&console.warn('"image" primitive patch must use img tag')},style:{display:"block",width:"100%",maxWidth:"100%",height:"auto",objectFit:"cover",borderRadius:(0,wt.themeSpacing)(2),backgroundColor:e=>(0,wt.themeColor)(e,"inherit",o.get(e)),color:e=>(0,wt.themeColor)(e,"text",o.get(e))}}}var mo=require("@domphy/core"),Y=require("@domphy/theme");function ta(a={}){var e,i;let o=(0,mo.toState)((e=a.color)!=null?e:"neutral","color"),n=(0,mo.toState)((i=a.accentColor)!=null?i:"primary","accentColor");return{type:"checkbox",_onInsert:t=>{t.tagName!=="input"&&console.warn('"inputCheckbox" primitive patch must use input tag')},style:{appearance:"none",fontSize:t=>(0,Y.themeSize)(t,"inherit"),color:t=>(0,Y.themeColor)(t,"text",o.get(t)),display:"inline-flex",position:"relative",width:(0,Y.themeSpacing)(6),height:(0,Y.themeSpacing)(6),justifyContent:"center",alignItems:"center",transition:"background-color 300ms, outline-color 300ms",margin:0,padding:0,"&::before":{content:'""',display:"block",borderRadius:(0,Y.themeSpacing)(1),lineHeight:1,cursor:"pointer",border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${(0,Y.themeColor)(t,"border-strong",o.get(t))}`,color:t=>(0,Y.themeColor)(t,"text",o.get(t)),width:(0,Y.themeSpacing)(4),height:(0,Y.themeSpacing)(4)},"&:hover::before":{backgroundColor:t=>(0,Y.themeColor)(t,"hover",o.get(t))},"&:checked::before":{outline:t=>`1px solid ${(0,Y.themeColor)(t,"shift-6",n.get(t))}`,backgroundColor:t=>(0,Y.themeColor)(t,"shift-8",n.get(t))},"&:checked:hover:not([disabled])::before":{backgroundColor:t=>(0,Y.themeColor)(t,"shift-7",n.get(t))},"&:checked::after":{content:'""',display:"block",position:"absolute",top:"25%",insetInlineStart:"37%",width:"20%",height:"30%",border:t=>`${(0,Y.themeSpacing)(.5)} solid ${(0,Y.themeColor)(t,"inherit",n.get(t))}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg)"},"&:indeterminate::before":{outline:t=>`1px solid ${(0,Y.themeColor)(t,"shift-6",n.get(t))}`,backgroundColor:t=>(0,Y.themeColor)(t,"shift-3",n.get(t))},"&:indeterminate::after":{content:'""',position:"absolute",inset:"30%",backgroundColor:t=>(0,Y.themeColor)(t,"shift-8",n.get(t))},"&:indeterminate:hover:not([disabled])::after":{backgroundColor:t=>(0,Y.themeColor)(t,"shift-7",n.get(t))},"&:focus-visible":{borderRadius:(0,Y.themeSpacing)(1.5),boxShadow:t=>b(t,n.get(t))},"&[disabled]":{cursor:"not-allowed"},"&[disabled]::before, &[disabled]::after":{outline:"none",backgroundColor:t=>(0,Y.themeColor)(t,"shift-4","neutral"),pointerEvents:"none"}}}}var dn=require("@domphy/core"),ne=require("@domphy/theme");function oa(a={}){var n;let o=(0,dn.toState)((n=a.color)!=null?n:"neutral","color");return{type:"color",_onSchedule:(e,i)=>{e.tagName!=="input"&&console.warn('"inputColor" primitive patch must use input tag'),i.type="color"},style:{appearance:"none",border:"none",cursor:"pointer",fontSize:e=>(0,ne.themeSize)(e,"inherit"),color:e=>(0,ne.themeColor)(e,"text",o.get(e)),paddingBlock:e=>(0,ne.themeSpacing)((0,ne.themeDensity)(e)*1),paddingInline:e=>(0,ne.themeSpacing)((0,ne.themeDensity)(e)*1),blockSize:e=>(0,ne.themeSpacing)(6+(0,ne.themeDensity)(e)*2),inlineSize:e=>(0,ne.themeSpacing)(6+(0,ne.themeDensity)(e)*2),backgroundColor:"transparent",transition:"box-shadow 140ms ease",borderRadius:e=>(0,ne.themeSpacing)((0,ne.themeDensity)(e)*1.5),"&:focus-visible":{boxShadow:e=>b(e,o.get(e))},"&::-webkit-color-swatch-wrapper":{margin:0,padding:0},"&::-webkit-color-swatch":{borderRadius:e=>(0,ne.themeSpacing)((0,ne.themeDensity)(e)*1.5)},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:e=>(0,ne.themeColor)(e,"shift-2","neutral"),outline:e=>`1px solid ${(0,ne.themeColor)(e,"border-strong","neutral")}`}}}}var uo=require("@domphy/core"),re=require("@domphy/theme");function na(a={}){var i,t;let{mode:o="datetime-local"}=a,n=(0,uo.toState)((i=a.color)!=null?i:"neutral","color"),e=(0,uo.toState)((t=a.accentColor)!=null?t:"primary","accentColor");return{type:o,_onSchedule:(r,s)=>{r.tagName!=="input"&&console.warn('"inputDateTime" primitive patch must use input tag'),s.type=o},style:{fontFamily:"inherit",fontSize:r=>(0,re.themeSize)(r,"inherit"),lineHeight:"inherit",color:r=>(0,re.themeColor)(r,"text",n.get(r)),backgroundColor:r=>(0,re.themeColor)(r,"inherit",n.get(r)),border:"none",outlineOffset:"-1px",outline:r=>`1px solid ${(0,re.themeColor)(r,"border-strong",n.get(r))}`,borderRadius:r=>(0,re.themeSpacing)((0,re.themeDensity)(r)*1.5),paddingInline:r=>(0,re.themeSpacing)((0,re.themeDensity)(r)*3),height:r=>(0,re.themeSpacing)(6+(0,re.themeDensity)(r)*2),transition:"outline-color 140ms ease, box-shadow 140ms ease","&::-webkit-calendar-picker-indicator":{cursor:"pointer",opacity:.85},"&:hover:not([disabled]):not([aria-busy=true])":{outline:r=>`1px solid ${(0,re.themeColor)(r,"shift-5",e.get(r))}`},"&:focus-visible":{boxShadow:r=>b(r,e.get(r))},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:r=>(0,re.themeColor)(r,"muted","neutral"),backgroundColor:r=>(0,re.themeColor)(r,"shift-2","neutral"),outline:r=>`1px solid ${(0,re.themeColor)(r,"border-strong","neutral")}`},"&:invalid":{outline:r=>`${(0,re.themeSpacing)(.5)} solid ${(0,re.themeColor)(r,"shift-6","error")}`}}}}var po=require("@domphy/core"),A=require("@domphy/theme");function ra(a={}){var e,i;let o=(0,po.toState)((e=a.color)!=null?e:"neutral","color"),n=(0,po.toState)((i=a.accentColor)!=null?i:"primary","accentColor");return{type:"file",_onSchedule:(t,r)=>{t.tagName!=="input"&&console.warn('"inputFile" primitive patch must use input tag'),r.type="file"},style:{display:"inline-flex",alignItems:"center",fontFamily:"inherit",fontSize:t=>(0,A.themeSize)(t,"inherit"),lineHeight:"inherit",color:t=>(0,A.themeColor)(t,"text",o.get(t)),backgroundColor:t=>(0,A.themeColor)(t,"inherit",o.get(t)),border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${(0,A.themeColor)(t,"border-strong",o.get(t))}`,borderRadius:t=>(0,A.themeSpacing)((0,A.themeDensity)(t)*1.5),height:t=>(0,A.themeSpacing)(6+(0,A.themeDensity)(t)*2),paddingInline:t=>(0,A.themeSpacing)((0,A.themeDensity)(t)*1),transition:"outline-color 140ms ease, box-shadow 140ms ease","&::-webkit-file-upload-button":{marginTop:t=>(0,A.themeSpacing)((0,A.themeDensity)(t)),fontFamily:"inherit",fontSize:"inherit",border:"none",borderRadius:(0,A.themeSpacing)(1),height:(0,A.themeSpacing)(6),paddingInline:(0,A.themeSpacing)(2),cursor:"pointer",color:t=>(0,A.themeColor)(t,"shift-11",o.get(t)),backgroundColor:t=>(0,A.themeColor)(t,"surface",o.get(t))},"&:hover:not([disabled]):not([aria-busy=true])":{outline:t=>`1px solid ${(0,A.themeColor)(t,"shift-5",n.get(t))}`},"&:focus-visible":{boxShadow:t=>b(t,n.get(t))},"&[disabled]":{opacity:.8,cursor:"not-allowed",color:t=>(0,A.themeColor)(t,"muted","neutral"),outline:t=>`1px solid ${(0,A.themeColor)(t,"border-strong","neutral")}`,backgroundColor:t=>(0,A.themeColor)(t,"surface","neutral")},"&[disabled]::-webkit-file-upload-button":{cursor:"not-allowed",color:t=>(0,A.themeColor)(t,"muted","neutral"),backgroundColor:t=>(0,A.themeColor)(t,"shift-3","neutral")}}}}var ho=require("@domphy/core"),te=require("@domphy/theme");function aa(a={}){var e,i;let o=(0,ho.toState)((e=a.color)!=null?e:"neutral","color"),n=(0,ho.toState)((i=a.accentColor)!=null?i:"primary","accentColor");return{type:"number",_onSchedule:(t,r)=>{t.tagName!=="input"&&console.warn('"inputNumber" primitive patch must use input tag'),r.type="number"},style:{fontFamily:"inherit",lineHeight:"inherit",minWidth:(0,te.themeSpacing)(10),paddingInlineStart:t=>(0,te.themeSpacing)((0,te.themeDensity)(t)*3),paddingInlineEnd:t=>(0,te.themeSpacing)((0,te.themeDensity)(t)*1.5),paddingBlock:t=>(0,te.themeSpacing)((0,te.themeDensity)(t)*1),borderRadius:t=>(0,te.themeSpacing)((0,te.themeDensity)(t)*1.5),fontSize:t=>(0,te.themeSize)(t,"inherit"),border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${(0,te.themeColor)(t,"border-strong",o.get(t))}`,color:t=>(0,te.themeColor)(t,"text",o.get(t)),backgroundColor:t=>(0,te.themeColor)(t,"inherit",o.get(t)),transition:"outline-color 140ms ease, box-shadow 140ms ease","&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{opacity:1},"&:hover:not([disabled]):not([aria-busy=true])":{outline:t=>`1px solid ${(0,te.themeColor)(t,"shift-5",n.get(t))}`},"&:focus-visible":{boxShadow:t=>b(t,n.get(t))},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:t=>(0,te.themeColor)(t,"shift-2","neutral"),outline:t=>`1px solid ${(0,te.themeColor)(t,"border-strong","neutral")}`,color:t=>(0,te.themeColor)(t,"muted","neutral")}}}}var go=require("@domphy/theme");function ia(){return{role:"group",ariaLabel:"One-time password",style:{display:"flex",alignItems:"center",gap:(0,go.themeSpacing)(2),"& > *":{minWidth:`${(0,go.themeSpacing)(9)}!important`}},_onMount:a=>{let o=a.domElement,n=()=>Array.from(o.querySelectorAll("input")),e=r=>{let s=n(),m=r.target,h=s.indexOf(m);m.value&&h<s.length-1&&s[h+1].focus()},i=r=>{let s=n(),m=r.target,h=s.indexOf(m);r.key==="Backspace"&&!m.value&&h>0&&s[h-1].focus(),r.key==="ArrowLeft"&&h>0&&s[h-1].focus(),r.key==="ArrowRight"&&h<s.length-1&&s[h+1].focus()},t=r=>{var d,y,g;r.preventDefault();let s=(y=(d=r.clipboardData)==null?void 0:d.getData("text"))!=null?y:"",m=n(),h=m.indexOf(r.target),l=h===-1?0:h;[...s].forEach((u,p)=>{m[l+p]&&(m[l+p].value=u)});let c=Math.min(l+s.length-1,m.length-1);(g=m[c])==null||g.focus()};o.addEventListener("input",e),o.addEventListener("keydown",i),o.addEventListener("paste",t),a.addHook("Remove",()=>{o.removeEventListener("input",e),o.removeEventListener("keydown",i),o.removeEventListener("paste",t)})}}}var St=require("@domphy/core"),pe=require("@domphy/theme");var la='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0"/><path d="M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6"/></svg>',sa='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M10.585 10.587a2 2 0 0 0 2.829 2.828"/><path d="M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87"/><path d="M3 3l18 18"/></svg>';function ca(a={}){var i,t;let o=(0,St.toState)((i=a.color)!=null?i:"neutral","color"),n=(0,St.toState)((t=a.accentColor)!=null?t:"primary","accentColor"),e=(0,St.toState)(!1);return{_onInsert:r=>{r.tagName!=="div"&&console.warn('"inputPassword" patch must use div tag')},_onInit:r=>{let s={input:null,type:h=>e.get(h)?"text":"password",ariaLabel:"Password",autocomplete:"current-password",style:{flex:1,minWidth:0,border:"none",outline:"none",backgroundColor:"transparent",padding:0,margin:0,font:"inherit",color:"inherit"}},m={button:h=>(0,St.rawHtml)(e.get(h)?sa:la),type:"button",ariaLabel:h=>e.get(h)?"Hide password":"Show password",onClick:()=>e.set(!e.get()),style:{background:"none",border:"none",padding:0,margin:0,cursor:"pointer",color:"inherit",display:"flex",alignItems:"center",flexShrink:0,opacity:.6}};r.children.insert(s),r.children.insert(m)},style:{display:"flex",alignItems:"center",gap:r=>(0,pe.themeSpacing)((0,pe.themeDensity)(r)*1),paddingBlock:r=>(0,pe.themeSpacing)((0,pe.themeDensity)(r)*1),paddingInline:r=>(0,pe.themeSpacing)((0,pe.themeDensity)(r)*3),borderRadius:r=>(0,pe.themeSpacing)((0,pe.themeDensity)(r)*1.5),border:"none",outlineOffset:"-1px",outline:r=>`1px solid ${(0,pe.themeColor)(r,"border-strong",o.get(r))}`,color:r=>(0,pe.themeColor)(r,"text",o.get(r)),backgroundColor:r=>(0,pe.themeColor)(r,"inherit",o.get(r)),fontSize:r=>(0,pe.themeSize)(r,"inherit"),transition:"outline-color 140ms ease, box-shadow 140ms ease","&:hover:not(:has([disabled])):not(:focus-within)":{outline:r=>`1px solid ${(0,pe.themeColor)(r,"shift-5",n.get(r))}`},"&:focus-within":{boxShadow:r=>b(r,n.get(r))}}}}var fo=require("@domphy/core"),ge=require("@domphy/theme");function ma(a={}){var e,i;let o=(0,fo.toState)((e=a.color)!=null?e:"neutral","color"),n=(0,fo.toState)((i=a.accentColor)!=null?i:"primary","accentColor");return{type:"radio",_onInsert:t=>{if(t.tagName!=="input"){console.warn('"inputRadio" primitive patch must use input tag and radio type');return}},style:{fontSize:t=>(0,ge.themeSize)(t,"inherit"),color:t=>(0,ge.themeColor)(t,"text",o.get(t)),appearance:"none",display:"inline-flex",position:"relative",width:(0,ge.themeSpacing)(6),height:(0,ge.themeSpacing)(6),justifyContent:"center",alignItems:"center",transition:"background-color 300ms, outline-color 300ms",margin:0,padding:0,"&::before":{content:'""',display:"block",borderRadius:"50%",lineHeight:1,cursor:"pointer",border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${(0,ge.themeColor)(t,"border-strong",o.get(t))}`,color:t=>(0,ge.themeColor)(t,"text",o.get(t)),width:(0,ge.themeSpacing)(4),height:(0,ge.themeSpacing)(4)},"&:hover::before":{backgroundColor:t=>(0,ge.themeColor)(t,"hover",o.get(t))},"&:checked::before":{outline:t=>`1px solid ${(0,ge.themeColor)(t,"shift-6",n.get(t))}`},"&:checked::after":{content:'""',position:"absolute",inset:"30%",borderRadius:"50%",backgroundColor:t=>(0,ge.themeColor)(t,"shift-8",n.get(t))},"&:checked:hover:not([disabled])::before":{backgroundColor:t=>(0,ge.themeColor)(t,"shift-7",n.get(t))},"&:focus-visible":{borderRadius:"50%",boxShadow:t=>b(t,n.get(t))},"&[disabled]":{cursor:"not-allowed"},"&[disabled]::before, &[disabled]::after":{outline:"none",backgroundColor:t=>(0,ge.themeColor)(t,"shift-4","neutral"),pointerEvents:"none"}}}}var yo=require("@domphy/core"),Se=require("@domphy/theme");function ua(a={}){var e,i;let o=(0,yo.toState)((e=a.color)!=null?e:"neutral","color"),n=(0,yo.toState)((i=a.accentColor)!=null?i:"primary","accentColor");return{type:"range",_onInsert:t=>{t.tagName!=="input"&&console.warn('"inputRange" primitive patch must use input tag')},style:{appearance:"none",width:"100%",margin:0,padding:0,height:(0,Se.themeSpacing)(4),background:"transparent",cursor:"pointer","&::-webkit-slider-runnable-track":{height:(0,Se.themeSpacing)(1.5),borderRadius:(0,Se.themeSpacing)(999),backgroundColor:t=>(0,Se.themeColor)(t,"shift-3",o.get(t))},"&::-webkit-slider-thumb":{appearance:"none",width:(0,Se.themeSpacing)(4),height:(0,Se.themeSpacing)(4),borderRadius:(0,Se.themeSpacing)(999),border:"none",marginTop:`calc((${(0,Se.themeSpacing)(1.5)} - ${(0,Se.themeSpacing)(4)}) / 2)`,backgroundColor:t=>(0,Se.themeColor)(t,"shift-9",n.get(t))},"&:hover:not([disabled])::-webkit-slider-thumb":{backgroundColor:t=>(0,Se.themeColor)(t,"shift-10",n.get(t))},borderRadius:(0,Se.themeSpacing)(2),transition:"box-shadow 140ms ease","&:focus-visible":{boxShadow:t=>b(t,n.get(t))},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}}var bo=require("@domphy/core"),ae=require("@domphy/theme");function da(a={}){var e,i;let o=(0,bo.toState)((e=a.color)!=null?e:"neutral","color"),n=(0,bo.toState)((i=a.accentColor)!=null?i:"primary","accentColor");return{type:"search",_onSchedule:(t,r)=>{t.tagName!=="input"&&console.warn('"inputSearch" primitive patch must use input tag'),r.type="search"},style:{fontFamily:"inherit",fontSize:t=>(0,ae.themeSize)(t,"inherit"),lineHeight:"inherit",color:t=>(0,ae.themeColor)(t,"text",o.get(t)),backgroundColor:t=>(0,ae.themeColor)(t,"inherit",o.get(t)),border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${(0,ae.themeColor)(t,"border-strong",o.get(t))}`,borderRadius:t=>(0,ae.themeSpacing)((0,ae.themeDensity)(t)*1.5),minWidth:(0,ae.themeSpacing)(32),paddingInline:t=>(0,ae.themeSpacing)((0,ae.themeDensity)(t)*3),paddingBlock:t=>(0,ae.themeSpacing)((0,ae.themeDensity)(t)*1),transition:"outline-color 140ms ease, box-shadow 140ms ease","&::placeholder":{color:t=>(0,ae.themeColor)(t,"shift-7",o.get(t))},"&::-webkit-search-decoration":{display:"none"},"&::-webkit-search-cancel-button":{cursor:"pointer"},"&:hover:not([disabled]):not([aria-busy=true])":{outline:t=>`1px solid ${(0,ae.themeColor)(t,"shift-5",n.get(t))}`},"&:focus-visible":{boxShadow:t=>b(t,n.get(t))},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:t=>(0,ae.themeColor)(t,"muted","neutral"),backgroundColor:t=>(0,ae.themeColor)(t,"shift-2","neutral"),outline:t=>`1px solid ${(0,ae.themeColor)(t,"border-strong","neutral")}`}}}}var pn=require("@domphy/core"),ie=require("@domphy/theme");function pa(a={}){var n;let o=(0,pn.toState)((n=a.accentColor)!=null?n:"primary","accentColor");return{role:"switch",dataTone:"shift-2",type:"checkbox",_onSchedule:e=>{if(e.tagName!=="input"){console.warn('"inputSwitch" primitive patch must use input tag');return}},style:{fontSize:e=>(0,ie.themeSize)(e,"inherit"),backgroundColor:e=>(0,ie.themeColor)(e,"inherit"),color:e=>(0,ie.themeColor)(e,"text"),appearance:"none",position:"relative",display:"inline-flex",width:(0,ie.themeSpacing)(9),height:(0,ie.themeSpacing)(6),cursor:"pointer",margin:"0",paddingBlock:(0,ie.themeSpacing)(1),transition:"box-shadow 140ms ease",borderRadius:(0,ie.themeSpacing)(999),"&:focus-visible":{boxShadow:e=>b(e,o.get(e))},"&:checked":{"&::before":{backgroundColor:e=>(0,ie.themeColor)(e,"increase-3",o.get(e))},"&::after":{left:`calc(100% - ${(0,ie.themeSpacing)(3.5)})`}},"&::after":{content:'""',aspectRatio:"1/1",position:"absolute",width:(0,ie.themeSpacing)(3),height:(0,ie.themeSpacing)(3),borderRadius:(0,ie.themeSpacing)(999),left:(0,ie.themeSpacing)(.5),top:"50%",transform:"translateY(-50%)",transition:"left 0.3s",backgroundColor:e=>(0,ie.themeColor)(e,"decrease-3")},"&::before":{content:'""',width:"100%",borderRadius:(0,ie.themeSpacing)(999),display:"inline-block",fontSize:e=>(0,ie.themeSize)(e,"inherit"),lineHeight:1,backgroundColor:e=>(0,ie.themeColor)(e)},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}}var So=require("@domphy/core"),H=require("@domphy/theme");function ha(a={}){var i,t;let{type:o="text"}=a,n=(0,So.toState)((i=a.color)!=null?i:"neutral","color"),e=(0,So.toState)((t=a.accentColor)!=null?t:"primary","accentColor");return{type:o,_onInsert:r=>{r.tagName!=="input"&&console.warn('"inputText" primitive patch must use input tag and text type')},style:{fontFamily:"inherit",lineHeight:"inherit",minWidth:(0,H.themeSpacing)(10),paddingInline:r=>(0,H.themeSpacing)((0,H.themeDensity)(r)*3),paddingBlock:r=>(0,H.themeSpacing)((0,H.themeDensity)(r)*1),borderRadius:r=>(0,H.themeSpacing)((0,H.themeDensity)(r)*1.5),fontSize:r=>(0,H.themeSize)(r,"inherit"),border:"none",outlineOffset:"-1px",outline:r=>`1px solid ${(0,H.themeColor)(r,"border-strong",n.get(r))}`,color:r=>(0,H.themeColor)(r,"text",n.get(r)),backgroundColor:r=>(0,H.themeColor)(r,"inherit",n.get(r)),transition:"outline-color 140ms ease, box-shadow 140ms ease","&::placeholder":{color:r=>(0,H.themeColor)(r,"shift-7")},"&:not(:placeholder-shown)":{color:r=>(0,H.themeColor)(r,"shift-10")},"&:hover:not([disabled]):not([aria-busy=true])":{outline:r=>`1px solid ${(0,H.themeColor)(r,"shift-5",e.get(r))}`},"&:focus-visible":{boxShadow:r=>b(r,e.get(r))},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:r=>(0,H.themeColor)(r,"shift-2","neutral"),outline:r=>`1px solid ${(0,H.themeColor)(r,"border-strong","neutral")}`,color:r=>(0,H.themeColor)(r,"muted","neutral")},"&:invalid:not(:placeholder-shown)":{outline:r=>`${(0,H.themeSpacing)(.5)} solid ${(0,H.themeColor)(r,"shift-6","error")}`},"&[data-status=error]":{outline:r=>`${(0,H.themeSpacing)(.5)} solid ${(0,H.themeColor)(r,"shift-6","error")}`},"&[data-status=warning]":{outline:r=>`${(0,H.themeSpacing)(.5)} solid ${(0,H.themeColor)(r,"shift-6","warning")}`}}}}var hn=require("@domphy/core"),Ae=require("@domphy/theme");function ga(a={}){var n;let o=(0,hn.toState)((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="kbd"&&console.warn('"keyboard" primitive patch must use kbd tag')},style:{fontSize:e=>(0,Ae.themeSize)(e,"inherit"),color:e=>(0,Ae.themeColor)(e,"text",o.get(e)),backgroundColor:e=>(0,Ae.themeColor)(e,"inherit",o.get(e)),paddingBlock:(0,Ae.themeSpacing)(.5),paddingInline:(0,Ae.themeSpacing)(1.5),borderRadius:(0,Ae.themeSpacing)(1),outline:e=>`1px solid ${(0,Ae.themeColor)(e,"border-strong",o.get(e))}`}}}var xo=require("@domphy/core"),nt=require("@domphy/theme");function fa(a={}){var e,i;let o=(0,xo.toState)((e=a.color)!=null?e:"neutral","color"),n=(0,xo.toState)((i=a.accentColor)!=null?i:"primary","accentColor");return{_onInsert:t=>{t.tagName!=="label"&&console.warn('"label" primitive patch must use label tag')},style:{display:"inline-flex",alignItems:"center",gap:(0,nt.themeSpacing)(2),fontSize:t=>(0,nt.themeSize)(t,"inherit"),color:t=>(0,nt.themeColor)(t,"text",o.get(t)),cursor:"pointer","&:focus-within":{color:t=>(0,nt.themeColor)(t,"shift-10",n.get(t))},"&[aria-disabled=true]":{opacity:.7,cursor:"not-allowed",color:t=>(0,nt.themeColor)(t,"muted","neutral")}}}}var vo=require("@domphy/core"),He=require("@domphy/theme");function ya(a={}){var e,i;let o=(0,vo.toState)((e=a.color)!=null?e:"primary","color"),n=(0,vo.toState)((i=a.accentColor)!=null?i:"secondary","accentColor");return{_onInsert:t=>{t.tagName!=="a"&&console.warn('"link" primitive patch must use a tag')},style:{fontSize:t=>(0,He.themeSize)(t,"inherit"),backgroundColor:t=>(0,He.themeColor)(t),color:t=>(0,He.themeColor)(t,"shift-13",o.get(t)),textDecoration:"none","&:visited":{color:t=>(0,He.themeColor)(t,"shift-13",n.get(t))},"&:hover:not([disabled])":{color:t=>(0,He.themeColor)(t,"shift-14",o.get(t)),textDecoration:"underline"},borderRadius:(0,He.themeSpacing)(1),outline:"none",transition:"color 140ms ease, box-shadow 140ms ease","&:focus-visible":{boxShadow:t=>b(t,n.get(t))},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:t=>(0,He.themeColor)(t,"muted","neutral")}}}}var gn=require("@domphy/core"),w=require("@domphy/theme");var ba={small:{block:.5,inline:2},medium:{block:1,inline:3},large:{block:1.5,inline:4}},Sa={small:.5,medium:1,large:1.5};function xa(a={}){var s,m,h;let o=(s=a.variant)!=null?s:"outline",n=(0,gn.toState)((m=a.color)!=null?m:o==="ghost"?"neutral":"primary","color"),e=(h=a.size)!=null?h:"medium",i=pt[e];if(o==="ghost"){let l=Sa[e];return{_onInsert:c=>{c.tagName!=="a"&&console.warn('"linkButton" primitive patch must use a tag')},style:{fontSize:c=>(0,w.themeSize)(c,i),textDecoration:"none",paddingBlock:c=>(0,w.themeSpacing)((0,w.themeDensity)(c)*l),paddingInline:c=>(0,w.themeSpacing)((0,w.themeDensity)(c)*l),borderRadius:c=>(0,w.themeSpacing)((0,w.themeDensity)(c)*1.5),display:"inline-flex",justifyContent:"center",alignItems:"center",gap:c=>(0,w.themeSpacing)((0,w.themeDensity)(c)*1),userSelect:"none",cursor:"pointer",fontFamily:"inherit",lineHeight:"inherit",border:"none",background:"none",outline:"none",transition:"background-color 140ms ease, color 140ms ease, box-shadow 140ms ease",color:c=>(0,w.themeColor)(c,"shift-6",n.get(c)),"&:hover:not([aria-disabled=true])":{color:c=>(0,w.themeColor)(c,"text",n.get(c)),backgroundColor:c=>(0,w.themeColor)(c,"hover",n.get(c)),textDecoration:"none"},"&:active:not([aria-disabled=true])":{color:c=>(0,w.themeColor)(c,"text",n.get(c)),backgroundColor:c=>(0,w.themeColor)(c,"increase-2",n.get(c))},"&:focus-visible":{boxShadow:c=>b(c,n.get(c))},"&[aria-disabled=true]":{opacity:.7,cursor:"not-allowed",pointerEvents:"none",color:c=>(0,w.themeColor)(c,"border-strong","neutral")}}}}let t=o==="solid",r=ba[e];return we(M({_onInsert:l=>{l.tagName!=="a"&&console.warn('"linkButton" primitive patch must use a tag')}},t?{_doctorDisable:["low-contrast","color-shift-minimum","tone-background-inherit"]}:{}),{style:{fontSize:l=>(0,w.themeSize)(l,i),textDecoration:"none",paddingBlock:l=>(0,w.themeSpacing)((0,w.themeDensity)(l)*r.block),paddingInline:l=>(0,w.themeSpacing)((0,w.themeDensity)(l)*r.inline),borderRadius:l=>(0,w.themeSpacing)((0,w.themeDensity)(l)*1.5),width:"fit-content",display:"inline-flex",justifyContent:"center",alignItems:"center",gap:l=>(0,w.themeSpacing)((0,w.themeDensity)(l)*1),userSelect:"none",cursor:"pointer",fontFamily:"inherit",lineHeight:"inherit",border:"none",outlineOffset:"-1px",outlineWidth:"1px",outline:t?"none":l=>`1px solid ${(0,w.themeColor)(l,"border-strong",n.get(l))}`,color:l=>t?(0,w.themeColor)(l,"shift-0","neutral"):(0,w.themeColor)(l,"shift-13",n.get(l)),backgroundColor:l=>t?(0,w.themeColor)(l,"shift-13",n.get(l)):(0,w.themeColor)(l,"inherit",n.get(l)),transition:"background-color 140ms ease, color 140ms ease, border-color 140ms ease, box-shadow 140ms ease","&:hover:not([aria-disabled=true])":{textDecoration:"none",color:l=>t?(0,w.themeColor)(l,"shift-0","neutral"):(0,w.themeColor)(l,"shift-14",n.get(l)),backgroundColor:l=>t?(0,w.themeColor)(l,"shift-14",n.get(l)):(0,w.themeColor)(l,"hover",n.get(l))},"&:active:not([aria-disabled=true])":{backgroundColor:l=>t?(0,w.themeColor)(l,"shift-15",n.get(l)):(0,w.themeColor)(l,"increase-2",n.get(l))},"&:focus-visible":{boxShadow:l=>b(l,n.get(l))},"&[aria-disabled=true]":{opacity:.7,cursor:"not-allowed",pointerEvents:"none",backgroundColor:l=>(0,w.themeColor)(l,"shift-2","neutral"),outline:l=>`1px solid ${(0,w.themeColor)(l,"border-strong","neutral")}`,color:l=>(0,w.themeColor)(l,"muted","neutral")}}})}var fn=require("@domphy/core"),F=require("@domphy/theme");function va(a={}){return{style:{listStyle:"none",margin:0,padding:0,display:"flex",flexDirection:"column"}}}function Ca(a={}){let{dense:o=!1}=a;return{style:{display:"flex",alignItems:"center",gap:n=>(0,F.themeSpacing)((0,F.themeDensity)(n)*2),paddingBlock:n=>(0,F.themeSpacing)(o?1:(0,F.themeDensity)(n)*2),paddingInline:n=>(0,F.themeSpacing)((0,F.themeDensity)(n)*3),fontSize:n=>(0,F.themeSize)(n,"inherit"),color:n=>(0,F.themeColor)(n,"text")}}}function Ea(a={}){var i,t;let o=(0,fn.toState)((i=a.color)!=null?i:"neutral","color"),n=(t=a.accentColor)!=null?t:"primary",{dense:e=!1}=a;return{style:{cursor:"pointer",appearance:"none",border:"none",background:"transparent",textDecoration:"none",textAlign:"left",display:"flex",alignItems:"center",width:"100%",gap:r=>(0,F.themeSpacing)((0,F.themeDensity)(r)*2),paddingBlock:r=>(0,F.themeSpacing)(e?1:(0,F.themeDensity)(r)*2),paddingInline:r=>(0,F.themeSpacing)((0,F.themeDensity)(r)*3),fontSize:r=>(0,F.themeSize)(r,"inherit"),color:r=>(0,F.themeColor)(r,"text",o.get(r)),borderRadius:r=>(0,F.themeSpacing)((0,F.themeDensity)(r)*1.5),transition:"background-color 150ms ease, box-shadow 140ms ease","&:hover:not([disabled])":{backgroundColor:r=>(0,F.themeColor)(r,"hover",o.get(r))},"&:active:not([disabled])":{backgroundColor:r=>(0,F.themeColor)(r,"increase-2",o.get(r))},"&[aria-current=page], &[aria-selected=true]":{backgroundColor:r=>(0,F.themeColor)(r,"shift-3",n),color:r=>(0,F.themeColor)(r,"shift-12",n)},"&:focus-visible":{boxShadow:r=>b(r,n)},"&[disabled]":{opacity:.5,cursor:"not-allowed"}}}}var yn=require("@domphy/core"),Ze=require("@domphy/theme");function ka(a={}){var n;let o=(0,yn.toState)((n=a.accentColor)!=null?n:"highlight","accentColor");return{_onInsert:e=>{e.tagName!=="mark"&&console.warn('"mark" primitive patch must use mark tag')},dataTone:"shift-2",style:{display:"inline-flex",alignItems:"center",fontSize:e=>(0,Ze.themeSize)(e,"inherit"),color:e=>(0,Ze.themeColor)(e,"text",o.get(e)),backgroundColor:e=>(0,Ze.themeColor)(e,"inherit",o.get(e)),height:(0,Ze.themeSpacing)(6),borderRadius:(0,Ze.themeSpacing)(1),paddingInline:(0,Ze.themeSpacing)(1.5)}}}var bn=require("@domphy/core"),W=require("@domphy/theme");function wa(a={items:[]}){var r;let{items:o=[],selectable:n=!0,color:e="neutral",accentColor:i="primary"}=a,t=(0,bn.toState)((r=a.activeKey)!=null?r:null);return{role:"menu",dataTone:"shift-0",_onSchedule:(s,m)=>{if(o.length===0)return;let h=s.nodeId,l=o.map((c,d)=>{var g;let y=(g=c.key)!=null?g:d;return we(M({button:typeof c.label=="string"?[{span:c.label}]:[c.label],_key:y,type:"button",id:`menuitem${h}${y}`,role:"menuitem"},n?{ariaCurrent:u=>t.get(u)===y||void 0}:{}),{onClick:()=>{var u;n&&t.set(y),(u=c.onClick)==null||u.call(c)},onKeyDown:u=>{var T;let p=u.key;if(p==="Enter"||p===" "){u.preventDefault(),u.target.click();return}if(!["ArrowDown","ArrowUp","Home","End"].includes(p))return;u.preventDefault();let v=o.map((D,q)=>{var Q;return(Q=D.key)!=null?Q:q}),k=v.indexOf(y),x=k;p==="ArrowDown"?x=(k+1)%v.length:p==="ArrowUp"?x=(k-1+v.length)%v.length:p==="Home"?x=0:p==="End"&&(x=v.length-1),(T=document.getElementById(`menuitem${h}${v[x]}`))==null||T.focus()},style:{cursor:"pointer",display:"flex",alignItems:"center",gap:(0,W.themeSpacing)(2),width:"100%",fontSize:u=>(0,W.themeSize)(u,"inherit"),height:u=>(0,W.themeSpacing)(6+(0,W.themeDensity)(u)*2),paddingInline:u=>(0,W.themeSpacing)((0,W.themeDensity)(u)*3),border:"none",outline:"none",color:u=>(0,W.themeColor)(u,"text",e),backgroundColor:u=>(0,W.themeColor)(u,"inherit",e),transition:"background-color 140ms ease, box-shadow 140ms ease, color 140ms ease","&:hover:not([disabled]):not([aria-current=true])":{backgroundColor:u=>(0,W.themeColor)(u,"hover",e)},"&[aria-current=true]":{backgroundColor:u=>(0,W.themeColor)(u,"shift-3",i),color:u=>(0,W.themeColor)(u,"shift-13",i)},"&:focus-visible":{boxShadow:u=>b(u,i)}}})});m[s.tagName]=l},style:{display:"flex",flexDirection:"column",paddingBlock:s=>(0,W.themeSpacing)((0,W.themeDensity)(s)*2),paddingInline:s=>(0,W.themeSpacing)((0,W.themeDensity)(s)*2),fontSize:s=>(0,W.themeSize)(s,"inherit"),backgroundColor:s=>(0,W.themeColor)(s,"inherit",e),color:s=>(0,W.themeColor)(s,"text",e),borderRadius:s=>(0,W.themeSpacing)((0,W.themeDensity)(s)*2),outline:s=>`1px solid ${(0,W.themeColor)(s,"border-strong",e)}`,outlineOffset:"-1px",boxShadow:I("medium")}}}var Co=a=>!!a&&typeof a.get=="function"&&a._isState===!0,Fe=a=>{let o={},n=[];for(let e in a){let i=a[e];e==="x"?n.push(`translateX(${typeof i=="number"?`${i}px`:i})`):e==="y"?n.push(`translateY(${typeof i=="number"?`${i}px`:i})`):e==="scale"?n.push(`scale(${i})`):e==="rotate"?n.push(`rotate(${typeof i=="number"?`${i}deg`:i})`):o[e]=i}return n.length&&(o.transform=n.join(" ")),o};function Sn(){if(typeof matchMedia!="function")return!1;try{return matchMedia("(prefers-reduced-motion: reduce)").matches}catch(a){return!1}}function Ta(a={}){var r,s,m,h;let{initial:o,animate:n,exit:e,transition:i={}}=a,t={duration:(r=i.duration)!=null?r:300,delay:(s=i.delay)!=null?s:0,easing:(m=i.easing)!=null?m:"ease",iterations:(h=i.iterations)!=null?h:1,fill:"both"};return{_onMount:l=>{let c=l.domElement;if(!c||typeof c.animate!="function")return;let d=Co(n)?n.get():n;if(Sn()){if(d?Object.assign(c.style,Fe(d)):o&&Object.assign(c.style,Fe(o)),Co(n)){let y=n.addListener(g=>{Object.assign(c.style,Fe(g))});l.setMetadata("motionRelease",y)}return}if(d?c.animate(o?[Fe(o),Fe(d)]:[Fe(d)],t):o&&Object.assign(c.style,Fe(o)),Co(n)){let y=n.addListener(g=>{c.animate([Fe(g)],t)});l.setMetadata("motionRelease",y)}},_onBeforeRemove:(l,c)=>{let d=l.domElement;if(!d||!e||typeof d.animate!="function")return c();if(Sn())return Object.assign(d.style,Fe(e)),c();d.animate([Fe(e)],t).finished.then(c,c)},_onRemove:l=>{let c=l.getMetadata("motionRelease");c==null||c()}}}var xn=require("@domphy/core"),it=require("@domphy/theme");function Da(a={}){var n;let o=(0,xn.toState)((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="ol"&&console.warn('"orderedList" primitive patch must use ol tag')},style:{fontSize:e=>(0,it.themeSize)(e,"inherit"),backgroundColor:e=>(0,it.themeColor)(e),color:e=>(0,it.themeColor)(e,"text",o.get(e)),marginTop:0,marginBottom:0,paddingLeft:(0,it.themeSpacing)(3),listStyleType:"decimal",listStylePosition:"outside"}}}var vn=require("@domphy/core"),X=require("@domphy/theme");function Pa(a,o){if(o<=7)return Array.from({length:o},(t,r)=>r+1);let n=[1];a>3&&n.push("...");let e=Math.max(2,a-1),i=Math.min(o-1,a+1);for(let t=e;t<=i;t++)n.push(t);return a<o-2&&n.push("..."),n.push(o),n}function Oa(a){var s;let{total:o,color:n="neutral",accentColor:e="primary"}=a,i=(0,vn.toState)((s=a.value)!=null?s:1),t={display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:m=>(0,X.themeSpacing)(6+(0,X.themeDensity)(m)*2),height:m=>(0,X.themeSpacing)(6+(0,X.themeDensity)(m)*2),paddingInline:m=>(0,X.themeSpacing)((0,X.themeDensity)(m)*2),borderRadius:m=>(0,X.themeSpacing)((0,X.themeDensity)(m)*1.5),border:"none",cursor:"pointer",fontSize:m=>(0,X.themeSize)(m,"inherit"),backgroundColor:"transparent",color:m=>(0,X.themeColor)(m,"shift-13",n),transition:"background-color 140ms ease, box-shadow 140ms ease, color 140ms ease","&:hover:not([disabled])":{color:m=>(0,X.themeColor)(m,"shift-13",n),backgroundColor:m=>(0,X.themeColor)(m,"hover",n)},"&:focus-visible":{boxShadow:m=>b(m,e)},"&[disabled]":{opacity:.4,cursor:"not-allowed"}},r=we(M({},t),{backgroundColor:m=>(0,X.themeColor)(m,"shift-13",e),color:m=>(0,X.themeColor)(m,"shift-0","neutral"),fontWeight:"bold",cursor:"default","&:hover:not([disabled])":{backgroundColor:m=>(0,X.themeColor)(m,"shift-13",e)}});return{role:"navigation",ariaLabel:"Pagination",_doctorDisable:"inline-typography",_onInsert:m=>{m.tagName!=="div"&&console.warn('"pagination" patch must use div tag')},_onInit:m=>{let h={div:l=>{let c=i.get(l),d=[];d.push({button:"\u2039",_key:"prev",type:"button",ariaLabel:"Previous page",disabled:c<=1,onClick:()=>c>1&&i.set(c-1),style:t});let y=0;for(let g of Pa(c,o))if(g==="...")d.push({span:"\u2026",_key:`ellipsis-${y++}`,ariaHidden:"true",style:{display:"inline-flex",alignItems:"center",paddingInline:u=>(0,X.themeSpacing)((0,X.themeDensity)(u)*2),color:u=>(0,X.themeColor)(u,"shift-7",n)}});else{let u=g===c;d.push({button:String(g),_key:`page-${g}`,type:"button",ariaLabel:`Page ${g}`,ariaCurrent:u?"page":void 0,disabled:u,onClick:()=>i.set(g),style:u?r:t})}return d.push({button:"\u203A",_key:"next",type:"button",ariaLabel:"Next page",disabled:c>=o,onClick:()=>c<o&&i.set(c+1),style:t}),d},style:{display:"flex",alignItems:"center",gap:(0,X.themeSpacing)(1)}};m.children.insert(h)},style:{display:"inline-flex"}}}var Cn=require("@domphy/core"),xt=require("@domphy/theme");function La(a={}){var i;let{padding:o=4,divider:n=!1}=a,e=(0,Cn.toState)((i=a.color)!=null?i:"neutral","color");return{style:M({padding:t=>(0,xt.themeSpacing)((0,xt.themeDensity)(t)*o)},n?{borderBottom:t=>`1px solid ${(0,xt.themeColor)(t,"border",e.get(t))}`}:{})}}var En=require("@domphy/core"),Ht=require("@domphy/theme");function Ia(a={}){var n;let o=(0,En.toState)((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="p"&&console.warn('"paragraph" primitive patch must use p tag')},style:{fontSize:e=>(0,Ht.themeSize)(e,"inherit"),color:e=>(0,Ht.themeColor)(e,"text",o.get(e)),lineHeight:1.5,marginTop:0,marginBottom:0}}}var Tt=require("@domphy/core"),lt=require("@domphy/theme");function za(a){var c;let{open:o=!1,placement:n="bottom",openOn:e="click"}=a,i=(0,Tt.toState)(o),t=(0,Tt.toState)(n),{show:r,hide:s,anchorPartial:m}=Ne({kind:"popover",open:i,placement:t,content:a.content,keepOpenOnContentHover:e==="hover"}),h={role:"dialog",dataTone:"shift-14",style:{backgroundColor:d=>(0,lt.themeColor)(d,"inherit"),borderRadius:d=>(0,lt.themeSpacing)((0,lt.themeDensity)(d)*2),outline:d=>`1px solid ${(0,lt.themeColor)(d,"border-strong")}`,outlineOffset:"-1px",boxShadow:I("medium")}};return(c=a.content).$||(c.$=[]),a.content.$.push(h),(0,Tt.merge)(m,{ariaHaspopup:"dialog",ariaExpanded:d=>i.get(d),ariaControls:d=>d!=null&&d.elementNode?gt("popover",d.elementNode):void 0,onMouseEnter:(d,y)=>e==="hover"&&r(y),onMouseLeave:(d,y)=>e==="hover"&&s(y),onClick:(d,y)=>{e==="click"&&(i.get()?s(y):r(y))},onKeyDown:(d,y)=>{d.key==="Escape"&&i.get()&&s(y)},onFocus:(d,y)=>e==="hover"&&r(y),onBlur:(d,y)=>{let g=d.relatedTarget,p=y.getRoot().domElement.querySelector(`#${gt("popover",y)}`);g&&(p!=null&&p.contains(g))||s(y)}}),m}var kn=require("@domphy/core"),ze=require("@domphy/theme");function Eo(a={}){let{placement:o="bottom-end",color:n="neutral",sideOffset:e=(0,ze.themeSpacing)(6),bordered:i=!0}=a,t=(0,kn.toState)(o),r={top:"bottom",bottom:"top",left:"right",right:"left","top-start":"bottom-end","top-end":"bottom-start","bottom-start":"top-end","bottom-end":"top-start","left-start":"right-end","left-end":"right-start","right-start":"left-end","right-end":"left-start"},s=l=>{var c;return(c=r[t.get(l)])!=null?c:r["bottom-end"]},m=l=>l.includes("start")?e:l.includes("end")?"auto":"50%",h=l=>l.includes("end")?e:l.includes("start")?"auto":"50%";return{style:{fontSize:l=>(0,ze.themeSize)(l),backgroundColor:l=>(0,ze.themeColor)(l),color:l=>(0,ze.themeColor)(l,"text",n),position:"relative","&::after":{content:'""',position:"absolute",width:(0,ze.themeSpacing)(1.5),height:(0,ze.themeSpacing)(1.5),backgroundColor:l=>(0,ze.themeColor)(l,"inherit",n),borderWidth:i?"1px":0,borderColor:l=>(0,ze.themeColor)(l,"border-strong",n),borderTopStyle:l=>{let c=s(l);return c.includes("top")||c.includes("right")?"solid":"none"},borderBottomStyle:l=>{let c=s(l);return c.includes("bottom")||c.includes("left")?"solid":"none"},borderLeftStyle:l=>{let c=s(l);return c.includes("top")||c.includes("left")?"solid":"none"},borderRightStyle:l=>{let c=s(l);return c.includes("bottom")||c.includes("right")?"solid":"none"},top:l=>{let c=s(l);return c.includes("top")?0:c.includes("bottom")?"auto":m(c)},right:l=>{let c=s(l);return c.includes("right")?0:c.includes("left")?"auto":h(c)},bottom:l=>{let c=s(l);return c.includes("bottom")?0:c.includes("top")?"auto":h(c)},left:l=>{let c=s(l);return c.includes("left")?0:c.includes("right")?"auto":m(c)},transform:l=>{let c=s(l),d=c.includes("right")||c.includes("end")&&!c.includes("left")?"50%":"-50%",y=c.includes("bottom")||c.includes("end")&&!c.includes("top")?"50%":"-50%";return`translate(${d},${y}) rotate(45deg)`}}}}}var wn=require("@domphy/core"),Ce=require("@domphy/theme");function Va(a={}){var n;let o=(0,wn.toState)((n=a.color)!=null?n:"neutral","color");return{dataTone:"shift-2",_onInsert:e=>{e.tagName!=="pre"&&console.warn('"preformated" primitive patch must use pre tag')},style:{fontSize:e=>(0,Ce.themeSize)(e,"inherit"),color:e=>(0,Ce.themeColor)(e,"text",o.get(e)),backgroundColor:e=>(0,Ce.themeColor)(e,"inherit",o.get(e)),border:"none",paddingBlock:e=>(0,Ce.themeSpacing)((0,Ce.themeDensity)(e)*2),paddingInline:e=>(0,Ce.themeSpacing)((0,Ce.themeDensity)(e)*3),borderRadius:e=>(0,Ce.themeSpacing)((0,Ce.themeDensity)(e)*2)}}}var ko=require("@domphy/core"),je=require("@domphy/theme");function Ra(a={}){var e,i;let o=(0,ko.toState)((e=a.color)!=null?e:"neutral","color"),n=(0,ko.toState)((i=a.accentColor)!=null?i:"primary","accentColor");return{_onInsert:t=>{t.tagName!=="progress"&&console.warn('"progress" primitive patch must use progress tag')},dataTone:"shift-3",style:{appearance:"none",width:"100%",height:(0,je.themeSpacing)(2),border:0,borderRadius:(0,je.themeSpacing)(999),overflow:"hidden",backgroundColor:t=>(0,je.themeColor)(t,"inherit",o.get(t)),color:t=>(0,je.themeColor)(t,"text",o.get(t)),"&::-webkit-progress-bar":{backgroundColor:t=>(0,je.themeColor)(t,"inherit",o.get(t)),borderRadius:(0,je.themeSpacing)(999)},"&::-webkit-progress-value":{backgroundColor:t=>(0,je.themeColor)(t,"shift-9",n.get(t)),borderRadius:(0,je.themeSpacing)(999),transition:"width 220ms ease"}}}}var Dt=require("@domphy/core"),st=require("@domphy/theme");var $a='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" width="1em" height="1em"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>',_a='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" width="1em" height="1em"><path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"/></svg>';function Ma(a={}){var m,h;let{max:o=5,readOnly:n=!1,onChange:e}=a,i=(m=a.color)!=null?m:"warning",t=(0,Dt.toState)((h=a.value)!=null?h:0),r=(0,Dt.toState)(0),s=l=>{let c=r.get(l);return c>0?c:t.get(l)};return{role:"group",ariaLabel:"Rating",style:{display:"inline-flex",gap:(0,st.themeSpacing)(.5),fontSize:l=>(0,st.themeSize)(l,"increase-1"),cursor:n?"default":"pointer",color:l=>(0,st.themeColor)(l,"muted",i)},_onInit:l=>{for(let c=1;c<=o;c++){let d=c,y=n?{}:{onClick:()=>{let u=d===t.get()?0:d;t.set(u),e==null||e(u),r.set(0)},onMouseEnter:()=>r.set(d),onMouseLeave:()=>r.set(0),onKeyDown:u=>{var x,T;let p=t.get(),v=p;if(u.key==="ArrowRight"||u.key==="ArrowUp")v=Math.min(o,p+1),u.preventDefault();else if(u.key==="ArrowLeft"||u.key==="ArrowDown")v=Math.max(0,p-1),u.preventDefault();else return;t.set(v),e==null||e(v);let k=v>0?v-1:0;(T=(x=l.domElement)==null?void 0:x.children[k])==null||T.focus()}},g=we(M({button:u=>(0,Dt.rawHtml)(d<=s(u)?$a:_a),_key:d,type:"button",ariaLabel:`${d} star${d>1?"s":""}`},y),{style:{background:"none",border:"none",outline:"none",borderRadius:(0,st.themeSpacing)(1),padding:0,cursor:"inherit",color:"inherit",fontSize:"inherit",display:"flex",alignItems:"center",transition:"box-shadow 140ms ease","&:focus-visible":{boxShadow:u=>b(u,i)}}});l.children.insert(g)}}}}var Ft=require("@domphy/core"),ct=require("@domphy/theme");function Na(a={}){var m,h,l;let{size:o=16,thickness:n=.25}=a,e=(0,Ft.toState)((m=a.value)!=null?m:0,"value"),i=(0,Ft.toState)((h=a.color)!=null?h:"primary","color"),t=(0,Ft.toState)((l=a.trackColor)!=null?l:"neutral","trackColor"),r=Math.round((1-n)*100),s=`radial-gradient(circle closest-side, transparent ${r}%, black ${r}%)`;return{role:"progressbar",ariaValuenow:c=>String(Math.round(e.get(c))),ariaValuemin:"0",ariaValuemax:"100",_onInsert:c=>{c.tagName!=="div"&&console.warn('"ringProgress" patch must use div tag')},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:(0,ct.themeSpacing)(o),height:(0,ct.themeSpacing)(o),borderRadius:"50%",color:c=>(0,ct.themeColor)(c,"shift-9",i.get(c)),background:c=>`conic-gradient(from -90deg, ${(0,ct.themeColor)(c,"shift-9",i.get(c))} ${e.get(c)}%, ${(0,ct.themeColor)(c,"shift-3",t.get(c))} 0%)`,WebkitMask:s,mask:s}}}var jt=require("@domphy/theme");function wo(a={}){let{gap:o=4,align:n="center",justify:e,wrap:i=!1}=a;return{style:M(M({display:"flex",alignItems:n,gap:t=>(0,jt.themeSpacing)((0,jt.themeDensity)(t)*o)},e?{justifyContent:e}:{}),i?{flexWrap:"wrap"}:{})}}var Tn=require("@domphy/core"),We=require("@domphy/theme");function Ba(a={}){var n;let o=(0,Tn.toState)((n=a.color)!=null?n:"neutral","color");return{style:{overflow:"auto",color:e=>(0,We.themeColor)(e,"text",o.get(e)),"&::-webkit-scrollbar":{width:(0,We.themeSpacing)(2),height:(0,We.themeSpacing)(2)},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e=>(0,We.themeColor)(e,"shift-5",o.get(e)),borderRadius:(0,We.themeSpacing)(999),border:`${(0,We.themeSpacing)(.5)} solid transparent`,backgroundClip:"content-box"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:e=>(0,We.themeColor)(e,"shift-7",o.get(e))},scrollbarWidth:"thin",scrollbarColor:e=>`${(0,We.themeColor)(e,"shift-5",o.get(e))} transparent`}}}var Dn=require("@domphy/core"),me=require("@domphy/theme");function Aa(a={items:[]}){var t,r,s;let{items:o=[],color:n="neutral",accentColor:e="primary"}=a,i=(0,Dn.toState)((s=(r=a.value)!=null?r:(t=o[0])==null?void 0:t.key)!=null?s:"");return{role:"radiogroup",_context:{segmented:{value:i}},_onSchedule:(m,h)=>{let l=o.map((c,d)=>{var u;let y=(u=c.key)!=null?u:String(d);return{button:[typeof c.label=="string"?{span:c.label}:c.label],_key:y,type:"button",role:"radio",ariaChecked:p=>i.get(p)===y,onClick:()=>i.set(y),style:{cursor:"pointer",fontSize:p=>(0,me.themeSize)(p,"inherit"),height:(0,me.themeSpacing)(6),paddingBlock:(0,me.themeSpacing)(1),paddingInline:(0,me.themeSpacing)(3),border:"none",borderRadius:(0,me.themeSpacing)(10),color:p=>(0,me.themeColor)(p,"text",n),backgroundColor:"transparent",transition:"background-color 140ms ease, color 140ms ease, box-shadow 140ms ease","&:hover:not([disabled]):not([aria-checked=true])":{backgroundColor:p=>(0,me.themeColor)(p,"shift-3",n)},"&:active:not([disabled]):not([aria-checked=true])":{backgroundColor:p=>(0,me.themeColor)(p,"increase-2",n)},"&[aria-checked=true]":{backgroundColor:p=>(0,me.themeColor)(p,"shift-0",e),color:p=>(0,me.themeColor)(p,"shift-10",e),boxShadow:I("low")},"&:focus-visible":{boxShadow:p=>b(p,e)},"&[aria-checked=true]:focus-visible":{boxShadow:p=>`${I("low")}, ${b(p,e)}`},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}});h[m.tagName]=l},dataTone:"shift-2",style:{display:"inline-flex",paddingBlock:(0,me.themeSpacing)(1),paddingInline:(0,me.themeSpacing)(1),gap:(0,me.themeSpacing)(.5),borderRadius:(0,me.themeSpacing)(10),backgroundColor:m=>(0,me.themeColor)(m,"inherit",n),color:m=>(0,me.themeColor)(m,"text",n)}}}var R=require("@domphy/theme");function Ha(a={}){let{color:o="neutral",accentColor:n="primary"}=a;return{_onInsert:e=>{e.tagName!=="select"&&console.warn('"select" primitive patch must use select tag')},style:{appearance:"none",fontFamily:"inherit",fontSize:e=>(0,R.themeSize)(e,"inherit"),lineHeight:"inherit",color:e=>(0,R.themeColor)(e,"text",o),backgroundColor:e=>(0,R.themeColor)(e,"inherit",o),border:"none",outlineOffset:"-1px",outline:e=>`1px solid ${(0,R.themeColor)(e,"border-strong",o)}`,borderRadius:e=>(0,R.themeSpacing)((0,R.themeDensity)(e)*1.5),paddingBlock:e=>(0,R.themeSpacing)((0,R.themeDensity)(e)*1),paddingLeft:e=>(0,R.themeSpacing)((0,R.themeDensity)(e)*3),paddingRight:e=>(0,R.themeSpacing)((0,R.themeDensity)(e)*5),backgroundImage:e=>{let i=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 6"><path d="M1 1l4 4 4-4" stroke="${(0,R.themeColorToken)(e,"shift-7")}" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>`;return`url("data:image/svg+xml,${encodeURIComponent(i)}")`},backgroundRepeat:"no-repeat",backgroundPosition:`right ${(0,R.themeSpacing)(2)} center`,backgroundSize:`${(0,R.themeSpacing)(2.5)} ${(0,R.themeSpacing)(1.5)}`,transition:"outline-color 140ms ease, box-shadow 140ms ease","&:not([multiple])":{height:e=>(0,R.themeSpacing)(6+(0,R.themeDensity)(e)*2)},"&:hover:not([disabled]):not([aria-busy=true])":{outline:e=>`1px solid ${(0,R.themeColor)(e,"shift-5",n)}`},"&:focus-visible":{boxShadow:e=>b(e,n)},"& optgroup":{color:e=>(0,R.themeColor)(e,"shift-11",o)},"& option[disabled]":{color:e=>(0,R.themeColor)(e,"shift-7","neutral")},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:e=>(0,R.themeColor)(e,"muted","neutral"),outline:e=>`1px solid ${(0,R.themeColor)(e,"border-strong","neutral")}`,backgroundColor:e=>(0,R.themeColor)(e,"shift-2","neutral")}}}}var mt=require("@domphy/core"),le=require("@domphy/theme");function Fa(a){let{options:o=[],placement:n="bottom",color:e="neutral",open:i=!1,multiple:t=!1}=a,r=(0,mt.toState)(a.value),s=(0,mt.toState)(i),{show:m,hide:h,anchorPartial:l}=Ne({kind:"selectBox",open:s,placement:(0,mt.toState)(n),content:a.content}),c={onClick:(u,p)=>!t&&h(p),dataTone:"shift-14",style:{backgroundColor:u=>(0,le.themeColor)(u,"inherit"),borderRadius:u=>(0,le.themeSpacing)((0,le.themeDensity)(u)*2),outline:u=>`1px solid ${(0,le.themeColor)(u,"border-strong")}`,outlineOffset:"-1px",boxShadow:I("medium")}};(0,mt.merge)(a.content,c);let d={div:u=>{let p=r.get(u),v=Array.isArray(p)?p:[p];return o.filter(x=>v.includes(x.value)).map(x=>({span:x.label,$:[vt({color:e,removable:t})],_key:x.value,_onRemove:T=>{let D=r.get(),Q=(Array.isArray(D)?D:[D]).filter(L=>L!==x.value);t?r.set(Q):r.set(Q[0])}}))},style:{display:"flex",flexWrap:"wrap",gap:(0,le.themeSpacing)(1),flex:1}},y=u=>s.get()?h(u):m(u),g={_onInsert:u=>{u.tagName!=="div"&&console.warn('"selectBox" patch must use div tag')},_onInit:u=>u.children.insert(d),onClick:(u,p)=>y(p),tabindex:0,role:"button",ariaExpanded:u=>s.get(u),ariaHaspopup:"listbox",onKeyDown:(u,p)=>{let v=u.key;if(v==="Escape"){h(p);return}if(v==="Enter"||v===" "){u.preventDefault(),y(p);return}v==="ArrowDown"&&!s.get()&&(u.preventDefault(),m(p))},style:{cursor:"pointer",display:"flex",alignItems:"center",minHeight:u=>(0,le.themeSpacing)(6+(0,le.themeDensity)(u)*2),minWidth:(0,le.themeSpacing)(32),outlineOffset:"-1px",outline:u=>`1px solid ${(0,le.themeColor)(u,"border-strong","neutral")}`,paddingInline:u=>(0,le.themeSpacing)((0,le.themeDensity)(u)*2),borderRadius:u=>(0,le.themeSpacing)((0,le.themeDensity)(u)*1.5),fontSize:u=>(0,le.themeSize)(u,"inherit"),color:u=>(0,le.themeColor)(u,"text",e),backgroundColor:u=>(0,le.themeColor)(u,"inherit",e),transition:"background-color 140ms ease, outline-color 140ms ease, box-shadow 140ms ease","&:focus-visible":{boxShadow:u=>b(u,e)}}};return(0,mt.merge)(l,g),l}var xe=require("@domphy/theme");function ja(a={}){let{accentColor:o="primary",color:n="neutral",value:e=null}=a;return{role:"option",ariaSelected:t=>{var m;let r=(m=t==null?void 0:t.elementNode)==null?void 0:m.getContext("select");if(!r)return;let s=r.value.get(t);return r.multiple?s.includes(e):s===e},onClick:(t,r)=>{let s=r.getContext("select");if(!s)return;let m=s.value,h=m.get();s.multiple?h.includes(e)?m.set(h.filter(l=>l!==e)):m.set(h.concat([e])):h!==e&&m.set(e)},_onInit:t=>{t.tagName!=="div"&&console.warn('"selectItem" patch must use div tag')},style:{cursor:"pointer",display:"flex",alignItems:"center",fontSize:t=>(0,xe.themeSize)(t,"inherit"),height:t=>(0,xe.themeSpacing)(6+(0,xe.themeDensity)(t)*2),paddingInline:t=>(0,xe.themeSpacing)((0,xe.themeDensity)(t)*3),border:"none",outline:"none",color:t=>(0,xe.themeColor)(t,"text",n),backgroundColor:t=>(0,xe.themeColor)(t,"inherit",n),"&:hover:not([disabled]):not([aria-selected=true])":{backgroundColor:t=>(0,xe.themeColor)(t,"hover",n)},"&[aria-selected=true]":{backgroundColor:t=>(0,xe.themeColor)(t,"shift-6",o),color:t=>(0,xe.themeColor)(t,"shift-11")},transition:"background-color 140ms ease, box-shadow 140ms ease","&:focus-visible":{boxShadow:t=>b(t,o)}}}}var Pn=require("@domphy/core"),Ve=require("@domphy/theme");function Wa(a={}){var r;let{color:o="neutral",multiple:n=!1}=a,e=(0,Pn.toState)((r=a.value)!=null?r:n?[]:null),i={div:s=>{let m=e.get(s);return(Array.isArray(m)?m:[m]).map(l=>({input:null,type:"hidden",name:a.name,value:l==null?"":String(l)}))},ariaHidden:"true",hidden:!0};return{dataTone:"shift-0",role:"listbox",ariaLabel:"Options",ariaMultiselectable:n?"true":void 0,_context:{select:{value:e,multiple:n}},_onInit:s=>{s.tagName!=="div"&&console.warn('"selectList" patch must use a div tag'),s.children.insert(i)},style:{display:"flex",flexDirection:"column",paddingBlock:s=>(0,Ve.themeSpacing)((0,Ve.themeDensity)(s)*2),paddingInline:s=>(0,Ve.themeSpacing)((0,Ve.themeDensity)(s)*2),fontSize:s=>(0,Ve.themeSize)(s,"inherit"),backgroundColor:s=>(0,Ve.themeColor)(s,"inherit",o),color:s=>(0,Ve.themeColor)(s,"text",o)}}}var Wt=require("@domphy/core"),Re=require("@domphy/theme");function Ka(a={}){var i;let o=(0,Wt.toState)((i=a.color)!=null?i:"neutral","color"),n={"0%":{backgroundPosition:"200% 0"},"100%":{backgroundPosition:"-200% 0"}},e=(0,Wt.hashString)(JSON.stringify(n));return{ariaHidden:"true",dataTone:"shift-1",style:{fontSize:t=>(0,Re.themeSize)(t),color:t=>(0,Re.themeColor)(t,"text",o.get(t)),height:(0,Re.themeSpacing)(6),display:"block",borderRadius:(0,Re.themeSpacing)(1),backgroundColor:t=>(0,Re.themeColor)(t,"inherit",o.get(t)),backgroundImage:t=>`linear-gradient(90deg, ${(0,Re.themeColor)(t,"inherit",o.get(t))} 0%, ${(0,Re.themeColor)(t,"shift-2",o.get(t))} 50%, ${(0,Re.themeColor)(t,"inherit",o.get(t))} 100%)`,backgroundSize:"200% 100%",animation:`${e} 1.6s ease-in-out infinite`,[`@keyframes ${e}`]:n}}}var On=require("@domphy/core"),Kt=require("@domphy/theme");function Ya(a={}){var n;let o=(0,On.toState)((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="small"&&console.warn('"small" patch must use small tag')},dataSize:"decrease-1",style:{fontSize:e=>(0,Kt.themeSize)(e,"inherit"),color:e=>(0,Kt.themeColor)(e,"shift-10",o.get(e))}}}var Yt=require("@domphy/core"),$e=require("@domphy/theme"),In={to:{transform:"rotate(360deg)"}},Ln=(0,Yt.hashString)(JSON.stringify(In));function qa(a={}){var n;let o=(0,Yt.toState)((n=a.color)!=null?n:"neutral","color");return{role:"status",ariaLabel:"loading",_onInsert:e=>{e.tagName!=="span"&&console.warn('"spinner" patch must use span tag')},style:{fontSize:e=>(0,$e.themeSize)(e),backgroundColor:e=>(0,$e.themeColor)(e),color:e=>(0,$e.themeColor)(e,"text",o.get(e)),display:"inline-block",margin:0,flexShrink:0,width:(0,$e.themeSpacing)(6),height:(0,$e.themeSpacing)(6),borderRadius:"50%",border:e=>`${(0,$e.themeSpacing)(.5)} solid ${(0,$e.themeColor)(e,"border-strong",o.get(e))}`,borderTopColor:e=>(0,$e.themeColor)(e,"shift-9",o.get(e)),boxSizing:"border-box",padding:0,animation:`${Ln} 0.7s linear infinite`,[`@keyframes ${Ln}`]:In}}}var qt=require("@domphy/core"),Je=require("@domphy/theme");function Ga(a={}){let{direction:o="horizontal",defaultSize:n=50,min:e=10,max:i=90}=a;return{_onSchedule:(t,r)=>{(0,qt.merge)(r,{_context:{splitter:{direction:o,size:(0,qt.toState)(n),min:e,max:i,panelCount:0}}})},style:{display:"flex",flexDirection:o==="horizontal"?"row":"column",overflow:"hidden"}}}function Ua(){return{_onMount:a=>{let o=a.getContext("splitter");if(!o){console.warn('"splitterPanel" patch must be used inside a "splitter"');return}let n=a.domElement,e=o.direction==="horizontal"?"width":"height",i=o.panelCount++===0,t=s=>{n.style[e]=`${i?s:100-s}%`};t(o.size.get()),n.style.flexShrink="0",n.style.overflow="auto";let r=o.size.addListener(t);a.addHook("Remove",r)}}}function Xa(){return{role:"separator",tabindex:0,_onMount:a=>{let o=a.getContext("splitter");if(!o){console.warn('"splitterHandle" patch must be used inside a "splitter"');return}let n=a.domElement,e=o.direction==="horizontal";n.style.cursor=e?"col-resize":"row-resize",n.setAttribute("aria-orientation",e?"vertical":"horizontal"),n.setAttribute("aria-valuemin",String(o.min)),n.setAttribute("aria-valuemax",String(o.max)),n.setAttribute("aria-valuenow",String(Math.round(o.size.get())));let i=o.size.addListener(m=>{n.setAttribute("aria-valuenow",String(Math.round(m)))}),t=m=>{let h=m.shiftKey?10:1,l=null;e?m.key==="ArrowRight"?l=Math.min(o.size.get()+h,o.max):m.key==="ArrowLeft"&&(l=Math.max(o.size.get()-h,o.min)):m.key==="ArrowDown"?l=Math.min(o.size.get()+h,o.max):m.key==="ArrowUp"&&(l=Math.max(o.size.get()-h,o.min)),m.key==="Home"?l=o.min:m.key==="End"&&(l=o.max),l!==null&&(m.preventDefault(),o.size.set(l))},r=null,s=m=>{m.preventDefault();let h=n.parentElement,l=d=>{let y=h.getBoundingClientRect(),g=e?(d.clientX-y.left)/y.width*100:(d.clientY-y.top)/y.height*100;o.size.set(Math.min(Math.max(g,o.min),o.max))},c=()=>{document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",c),r=null};r=()=>{document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",c),r=null},document.addEventListener("mousemove",l),document.addEventListener("mouseup",c)};n.addEventListener("keydown",t),n.addEventListener("mousedown",s),a.addHook("Remove",()=>{r==null||r(),i(),n.removeEventListener("keydown",t),n.removeEventListener("mousedown",s)})},dataTone:"shift-2",style:{flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:a=>(0,Je.themeColor)(a,"inherit"),color:a=>(0,Je.themeColor)(a,"text"),"&:hover":{backgroundColor:a=>(0,Je.themeColor)(a,"increase-1")},transition:"background-color 140ms ease, box-shadow 140ms ease","&:focus-visible":{boxShadow:a=>b(a,"primary")},"&::after":{content:'""',width:(0,Je.themeSpacing)(1),height:(0,Je.themeSpacing)(1),borderRadius:(0,Je.themeSpacing)(999),backgroundColor:a=>(0,Je.themeColor)(a,"shift-4")}}}}var Gt=require("@domphy/theme");function Za(a={}){let{gap:o=3,align:n}=a;return{style:M({display:"flex",flexDirection:"column",gap:e=>(0,Gt.themeSpacing)((0,Gt.themeDensity)(e)*o)},n?{alignItems:n}:{})}}var zn=require("@domphy/core"),$=require("@domphy/theme");function Ja(a={items:[]}){var r;let{items:o=[],direction:n="horizontal",color:e="neutral",accentColor:i="primary"}=a,t=(0,zn.toState)((r=a.current)!=null?r:0);return{_doctorDisable:"inline-typography",_context:{steps:{current:t,direction:n,color:e,accentColor:i}},_onSchedule:(s,m)=>{let h=o.map((l,c)=>{var y;return{li:[typeof l.label=="string"?{span:l.label}:l.label],_key:(y=l.key)!=null?y:c,dataStep:String(c+1),dataStatus:g=>{let u=t.get(g);return c<u?"done":c===u?"active":"pending"},ariaCurrent:g=>t.get(g)===c?"step":void 0,style:{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",gap:(0,$.themeSpacing)(1),flex:"1",fontSize:g=>(0,$.themeSize)(g,"decrease-1"),textAlign:"center","&::before":{content:"attr(data-step)",display:"flex",alignItems:"center",justifyContent:"center",width:(0,$.themeSpacing)(6),height:(0,$.themeSpacing)(6),borderRadius:(0,$.themeSpacing)(999),fontSize:g=>(0,$.themeSize)(g,"decrease-1"),fontWeight:"bold",flexShrink:"0",border:g=>`2px solid ${(0,$.themeColor)(g,"border-strong",e)}`,backgroundColor:g=>(0,$.themeColor)(g,"inherit"),color:g=>(0,$.themeColor)(g,"muted"),transition:"background-color 200ms ease, color 200ms ease, border-color 200ms ease",zIndex:"1"},"&:not(:first-child)::after":{content:'""',position:"absolute",top:(0,$.themeSpacing)(3),right:`calc(50% + ${(0,$.themeSpacing)(3)})`,left:`calc(-50% + ${(0,$.themeSpacing)(3)})`,height:"2px",backgroundColor:g=>(0,$.themeColor)(g,"shift-3",e),zIndex:"0"},"&[data-status=active]::before":{backgroundColor:g=>(0,$.themeColor)(g,"shift-9",i),borderColor:g=>(0,$.themeColor)(g,"shift-9",i),color:g=>(0,$.themeColor)(g,"shift-0",i),boxShadow:g=>`0 0 0 3px ${(0,$.themeColor)(g,"shift-3",i)}`},"&[data-status=done]::before":{content:'"\u2713"',backgroundColor:g=>(0,$.themeColor)(g,"shift-9",i),borderColor:g=>(0,$.themeColor)(g,"shift-9",i),color:g=>(0,$.themeColor)(g,"shift-0",i)},"&[data-status=done]:not(:first-child)::after":{backgroundColor:g=>(0,$.themeColor)(g,"shift-9",i)},"&[data-status=active]:not(:first-child)::after":{backgroundColor:g=>(0,$.themeColor)(g,"shift-9",i)},"&[data-status=pending]":{color:g=>(0,$.themeColor)(g,"muted")},"&[data-status=active]":{color:g=>(0,$.themeColor)(g,"shift-11",i),fontWeight:"bold"},"&[data-status=done]":{color:g=>(0,$.themeColor)(g,"text",e)}}}});m[s.tagName]=h},style:{display:"flex",flexDirection:n==="vertical"?"column":"row",alignItems:n==="vertical"?"flex-start":"center",gap:(0,$.themeSpacing)(2),listStyle:"none",margin:"0",padding:"0"}}}var Vn=require("@domphy/core"),Pt=require("@domphy/theme");function Qa(a={}){var n;let o=(0,Vn.toState)((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="strong"&&console.warn('"strong" primitive patch must use strong tag')},style:{fontSize:e=>(0,Pt.themeSize)(e,"inherit"),fontWeight:"bold",color:e=>(0,Pt.themeColor)(e,"shift-11",o.get(e)),backgroundColor:e=>(0,Pt.themeColor)(e)}}}var Rn=require("@domphy/core"),Ut=require("@domphy/theme");function ei(a={}){var n;let o=(0,Rn.toState)((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="sub"&&console.warn('"subscript" primitive patch must use sub tag')},style:{fontSize:e=>(0,Ut.themeSize)(e,"decrease-1"),verticalAlign:"sub",lineHeight:0,color:e=>(0,Ut.themeColor)(e,"text",o.get(e))}}}var $n=require("@domphy/core"),Xt=require("@domphy/theme");function ti(a={}){var n;let o=(0,$n.toState)((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="sup"&&console.warn('"superscript" primitive patch must use sup tag')},style:{fontSize:e=>(0,Xt.themeSize)(e,"decrease-1"),verticalAlign:"super",lineHeight:0,color:e=>(0,Xt.themeColor)(e,"text",o.get(e))}}}var _n=require("@domphy/core"),_=require("@domphy/theme");function oi(a={}){var n;let o=(0,_n.toState)((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="table"&&console.warn('"table" primitive patch must use table tag')},_doctorDisable:"inline-typography",style:{fontSize:e=>(0,_.themeSize)(e,"inherit"),color:e=>(0,_.themeColor)(e,"text",o.get(e)),width:"100%",borderCollapse:"collapse","& caption":{captionSide:"bottom"},"& th, & thead td":{textAlign:"left",fontWeight:500,paddingInline:e=>(0,_.themeSpacing)((0,_.themeDensity)(e)*3),paddingBlock:e=>(0,_.themeSpacing)((0,_.themeDensity)(e)*1),color:e=>(0,_.themeColor)(e,"shift-10",o.get(e)),backgroundColor:e=>(0,_.themeColor)(e,"inherit")},"& td":{textAlign:"left",paddingInline:e=>(0,_.themeSpacing)((0,_.themeDensity)(e)*3),paddingBlock:e=>(0,_.themeSpacing)((0,_.themeDensity)(e)*1),color:e=>(0,_.themeColor)(e,"text",o.get(e)),boxShadow:e=>`inset 0 1px 0 ${(0,_.themeColor)(e,"shift-3",o.get(e))}`,fontSize:e=>(0,_.themeSize)(e,"inherit")},"& tfoot th, & tfoot td":{textAlign:"left",fontWeight:500,paddingInline:e=>(0,_.themeSpacing)((0,_.themeDensity)(e)*3),paddingBlock:e=>(0,_.themeSpacing)((0,_.themeDensity)(e)*1),color:e=>(0,_.themeColor)(e,"shift-10",o.get(e)),backgroundColor:e=>(0,_.themeColor)(e,"inherit"),boxShadow:e=>`inset 0 -1px 0 ${(0,_.themeColor)(e,"shift-4",o.get(e))}`},"& tr":{backgroundColor:e=>(0,_.themeColor)(e,"inherit")},"& tbody tr:hover":{backgroundColor:e=>(0,_.themeColor)(e,"hover")}}}}var Mn=require("@domphy/core"),K=require("@domphy/theme");function ni(a={items:[]}){var t,r,s;let{items:o=[],accentColor:n="primary",color:e="neutral"}=a,i=(0,Mn.toState)((s=(r=a.activeKey)!=null?r:(t=o[0])==null?void 0:t.key)!=null?s:0);return{_onSchedule:(m,h)=>{let l=m.nodeId,d={div:o.map((g,u)=>{var k;let p=(k=g.key)!=null?k:u;return{button:[typeof g.label=="string"?{span:g.label}:g.label],_key:p,type:"button",role:"tab",id:`tab${l}${p}`,ariaControls:`panel${l}${p}`,ariaSelected:x=>i.get(x)===p,tabIndex:x=>i.get(x)===p?0:-1,onClick:()=>i.set(p),onKeyDown:x=>{var se;let T=x.key;if(!["ArrowLeft","ArrowRight","Home","End"].includes(T))return;x.preventDefault();let D=o.map((ye,Lt)=>{var It;return(It=ye.key)!=null?It:Lt}),q=D.indexOf(p),Q=q;T==="ArrowRight"?Q=(q+1)%D.length:T==="ArrowLeft"?Q=(q-1+D.length)%D.length:T==="Home"?Q=0:T==="End"&&(Q=D.length-1),i.set(D[Q]);let L=x.target.closest("[role=tablist]");(se=L==null?void 0:L.querySelectorAll("[role=tab]")[Q])==null||se.focus()},style:{cursor:"pointer",fontSize:x=>(0,K.themeSize)(x,"inherit"),height:x=>(0,K.themeSpacing)(6+(0,K.themeDensity)(x)*2),paddingInline:x=>(0,K.themeSpacing)((0,K.themeDensity)(x)*4),border:"none",outline:"none",color:x=>(0,K.themeColor)(x,"shift-13"),backgroundColor:x=>(0,K.themeColor)(x,"inherit"),boxShadow:x=>`inset 0 ${(0,K.themeSpacing)(-.5)} 0 0 ${(0,K.themeColor)(x,"shift-1",e)}`,transition:"box-shadow 140ms ease, color 140ms ease","&:hover:not([disabled]):not([aria-selected=true])":{color:x=>(0,K.themeColor)(x,"shift-13"),boxShadow:x=>`inset 0 ${(0,K.themeSpacing)(-.5)} 0 0 ${(0,K.themeColor)(x,"shift-2",e)}`},"&[aria-selected=true]:not([disabled])":{color:x=>(0,K.themeColor)(x,"shift-13",n),boxShadow:x=>`inset 0 ${(0,K.themeSpacing)(-.5)} 0 0 ${(0,K.themeColor)(x,"shift-8",n)}`},"&:focus-visible":{boxShadow:x=>b(x,n)},"&[aria-selected=true]:focus-visible":{boxShadow:x=>`${b(x,n)}, inset 0 ${(0,K.themeSpacing)(-.5)} 0 0 ${(0,K.themeColor)(x,"shift-6",n)}`}}}}),role:"tablist",ariaOrientation:"horizontal",style:{display:"flex"}},y=o.map((g,u)=>{var v;let p=(v=g.key)!=null?v:u;return{div:[g.content],_key:p,role:"tabpanel",id:`panel${l}${p}`,ariaLabelledby:`tab${l}${p}`,hidden:k=>i.get(k)!==p,style:{paddingBlock:k=>(0,K.themeSpacing)((0,K.themeDensity)(k)*2),paddingInline:k=>(0,K.themeSpacing)((0,K.themeDensity)(k)*2)}}});h[m.tagName]=[d,...y]}}}var To=require("@domphy/core"),oe=require("@domphy/theme");function ri(a={}){var i,t;let o=(0,To.toState)((i=a.color)!=null?i:"neutral","color"),n=(0,To.toState)((t=a.accentColor)!=null?t:"primary","accentColor"),{autoResize:e=!1}=a;return{_onInsert:r=>{r.tagName!=="textarea"&&console.warn('"textarea" primitive patch must use textarea tag')},_onMount:r=>{if(e){let s=r.domElement;s.style.overflow="hidden";let m=()=>{s.style.height="auto",s.style.height=`${s.scrollHeight}px`};s.addEventListener("input",m),m(),r.addHook("Remove",()=>s.removeEventListener("input",m))}},style:{fontFamily:"inherit",lineHeight:"inherit",resize:"vertical",paddingInline:r=>(0,oe.themeSpacing)((0,oe.themeDensity)(r)*2),paddingBlock:r=>(0,oe.themeSpacing)((0,oe.themeDensity)(r)*1.5),border:"none",borderRadius:r=>(0,oe.themeSpacing)((0,oe.themeDensity)(r)*1.5),fontSize:r=>(0,oe.themeSize)(r,"inherit"),color:r=>(0,oe.themeColor)(r,"text",o.get(r)),outlineOffset:"-1px",outline:r=>`1px solid ${(0,oe.themeColor)(r,"border-strong",o.get(r))}`,backgroundColor:r=>(0,oe.themeColor)(r,"inherit",o.get(r)),transition:"outline-color 140ms ease, box-shadow 140ms ease","&::placeholder":{color:r=>(0,oe.themeColor)(r,"shift-7")},"&:hover:not([disabled]):not([aria-busy=true])":{outline:r=>`1px solid ${(0,oe.themeColor)(r,"shift-5",n.get(r))}`},"&:focus-visible":{boxShadow:r=>b(r,n.get(r))},"&:invalid":{outline:r=>`${(0,oe.themeSpacing)(.5)} solid ${(0,oe.themeColor)(r,"shift-5","error")}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:r=>(0,oe.themeColor)(r,"muted","neutral"),outline:r=>`1px solid ${(0,oe.themeColor)(r,"border-strong","neutral")}`,backgroundColor:r=>(0,oe.themeColor)(r,"shift-2","neutral")}}}}var Nn=require("@domphy/core"),Oe=require("@domphy/theme");function ai(){return{style:{listStyle:"none",margin:0,padding:0,display:"flex",flexDirection:"column"}}}function ii(a={}){var t,r,s;let{last:o=!1}=a,n=(t=a.color)!=null?t:"neutral",e=(r=a.accentColor)!=null?r:"primary",i=(0,Nn.toState)((s=a.active)!=null?s:!1);return{style:M({display:"grid",gridTemplateColumns:"2rem 1fr",columnGap:m=>(0,Oe.themeSpacing)((0,Oe.themeDensity)(m)*2),paddingBottom:m=>o?"0":(0,Oe.themeSpacing)((0,Oe.themeDensity)(m)*4),position:"relative","&::before":{content:'""',display:"block",width:"0.75rem",height:"0.75rem",borderRadius:"50%",justifySelf:"center",marginTop:(0,Oe.themeSpacing)(1),transition:"background-color 200ms ease, opacity 200ms ease",backgroundColor:m=>(0,Oe.themeColor)(m,"shift-8",i.get(m)?e:n),opacity:m=>i.get(m)?"1":"0.4"}},o?{}:{"&::after":{content:'""',position:"absolute",left:"calc(1rem - 1px)",top:"1.25rem",bottom:m=>(0,Oe.themeSpacing)((0,Oe.themeDensity)(m)*-4),width:"2px",backgroundColor:m=>(0,Oe.themeColor)(m,"shift-3",n)}})}}var Bn=require("@domphy/core"),fe=require("@domphy/theme");function li(a={}){let{position:o="top-center",color:n="neutral"}=a,e=(0,Bn.toState)(!1),i=o.startsWith("top"),t=o.endsWith("center"),r=o.endsWith("right"),s={div:[],id:`domphy-toast-${o}`,style:{position:"fixed",display:"flex",flexDirection:i?"column":"column-reverse",alignItems:t?"center":r?"end":"start",inset:0,gap:(0,fe.themeSpacing)(4),zIndex:30,padding:(0,fe.themeSpacing)(6),pointerEvents:"none"}};return{_portal:m=>{let h=m.domElement.querySelector(`#domphy-toast-${o}`);return h||(h=m.children.insert(s).domElement),h},role:"status",ariaAtomic:"true",dataTone:"shift-17",style:{minWidth:(0,fe.themeSpacing)(32),pointerEvents:"auto",paddingBlock:m=>(0,fe.themeSpacing)((0,fe.themeDensity)(m)*2),paddingInline:m=>(0,fe.themeSpacing)((0,fe.themeDensity)(m)*4),borderRadius:m=>(0,fe.themeSpacing)((0,fe.themeDensity)(m)*2),fontSize:m=>(0,fe.themeSize)(m,"inherit"),color:m=>(0,fe.themeColor)(m,"text",n),backgroundColor:m=>(0,fe.themeColor)(m,"inherit",n),boxShadow:I("medium"),opacity:m=>Number(e.get(m)),transform:m=>e.get(m)?"translateY(0)":i?"translateY(-100%)":"translateY(100%)",transition:"opacity 300ms ease, transform 300ms ease"},_onMount:()=>requestAnimationFrame(()=>e.set(!0)),_onBeforeRemove:(m,h)=>{var k,x;let l=!1,c=null,d=!1,y=m.getRoot(),g=(x=(k=m.domElement)==null?void 0:k.parentElement)!=null?x:null,u=()=>{var D;if(d||!g||g.id!==`domphy-toast-${o}`||g.childElementCount>0)return;d=!0;let T=(D=y.children)==null?void 0:D.items.find(q=>q.domElement===g);T?y.children.remove(T):g.remove()},p=()=>{l||(l=!0,c&&(clearTimeout(c),c=null),m.domElement.removeEventListener("transitionend",v),h(),u())},v=T=>{T.propertyName==="transform"&&p()};m.domElement.addEventListener("transitionend",v),c=setTimeout(p,350),m.addHook("Remove",()=>{var T;c&&(clearTimeout(c),c=null),(T=m.domElement)==null||T.removeEventListener("transitionend",v),u()}),e.set(!1)}}}var An=require("@domphy/core"),Z=require("@domphy/theme");function si(a={items:[]}){var r;let{items:o=[],multiple:n=!1,color:e="neutral",accentColor:i="primary"}=a,t=(0,An.toState)((r=a.value)!=null?r:n?[]:"");return{role:"group",_context:{toggleGroup:{value:t,multiple:n}},_onSchedule:(s,m)=>{let h=o.map((l,c)=>{var g;let d=(g=l.key)!=null?g:String(c);return{button:[typeof l.label=="string"?{span:l.label}:l.label],_key:d,type:"button",role:"button",ariaPressed:u=>{let p=t.get(u);return Array.isArray(p)?p.includes(d):p===d},onClick:()=>{let u=t.get();if(n){let p=Array.isArray(u)?[...u]:[];t.set(p.includes(d)?p.filter(v=>v!==d):[...p,d])}else t.set(u===d?"":d)},style:{cursor:"pointer",fontSize:u=>(0,Z.themeSize)(u,"inherit"),height:(0,Z.themeSpacing)(6),paddingBlock:(0,Z.themeSpacing)(1),paddingInline:(0,Z.themeSpacing)(2),border:"none",borderRadius:(0,Z.themeSpacing)(1.5),color:u=>(0,Z.themeColor)(u,"shift-13",e),backgroundColor:u=>(0,Z.themeColor)(u,"inherit",e),transition:"background-color 140ms ease, color 140ms ease, box-shadow 140ms ease","&:hover:not([disabled]):not([aria-pressed=true])":{color:u=>(0,Z.themeColor)(u,"shift-13",e),backgroundColor:u=>(0,Z.themeColor)(u,"hover",e)},"&:active:not([disabled])":{backgroundColor:u=>(0,Z.themeColor)(u,"increase-2",e)},"&[aria-pressed=true]":{backgroundColor:u=>(0,Z.themeColor)(u,"shift-3",i),color:u=>(0,Z.themeColor)(u,"shift-13",i)},"&:focus-visible":{boxShadow:u=>b(u,i)},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}});m[s.tagName]=h},style:{display:"flex",paddingBlock:(0,Z.themeSpacing)(1),paddingInline:(0,Z.themeSpacing)(1),gap:(0,Z.themeSpacing)(1),borderRadius:(0,Z.themeSpacing)(2),fontSize:s=>(0,Z.themeSize)(s,"inherit"),backgroundColor:s=>(0,Z.themeColor)(s,"inherit",e),color:s=>(0,Z.themeColor)(s,"text",e),outline:s=>`1px solid ${(0,Z.themeColor)(s,"border",e)}`,outlineOffset:"-1px"}}}function ci(a={}){return wo({gap:a.gap})}function mi(){return{div:null,style:{flex:"1 1 0"}}}var Ot=require("@domphy/core"),Ee=require("@domphy/theme");function ui(a={}){let{open:o=!1,placement:n="top",content:e="Tooltip Content"}=a,i=(0,Ot.toState)(n),t=(0,Ot.toState)(e),r={span:d=>t.get(d)},{show:s,hide:m,anchorPartial:h}=Ne({kind:"tooltip",open:o,placement:i,content:r}),l={role:"tooltip",dataSize:"decrease-1",dataTone:"shift-17",style:{paddingBlock:d=>(0,Ee.themeSpacing)((0,Ee.themeDensity)(d)*1),paddingInline:d=>(0,Ee.themeSpacing)((0,Ee.themeDensity)(d)*3),borderRadius:d=>(0,Ee.themeSpacing)((0,Ee.themeDensity)(d)*1.5),color:d=>(0,Ee.themeColor)(d,"text"),backgroundColor:d=>(0,Ee.themeColor)(d),fontSize:d=>(0,Ee.themeSize)(d,"inherit"),boxShadow:I("low")},$:[Eo({placement:i,bordered:!1})]};return r.$||(r.$=[]),r.$.push(l),(0,Ot.merge)(h,{ariaDescribedby:d=>d!=null&&d.elementNode?gt("tooltip",d.elementNode):void 0,onMouseEnter:(d,y)=>s(y),onMouseLeave:(d,y)=>m(y),onFocus:(d,y)=>s(y),onBlur:(d,y)=>m(y),onKeyDown:(d,y)=>d.key==="Escape"&&m(y)}),h}var Do=require("@domphy/core");function Hn(a,o){return a.key!==void 0&&a.key!==null?String(a.key):`index-${o}`}function di(a={}){let{duration:o=300,delay:n=0}=a,e=new Map,i=new Map,t=new Set,r=new Set;return{_onMount:s=>{s.addHook("Remove",()=>{for(let m of Array.from(i.values()))m();i.clear();for(let m of t)clearTimeout(m);t.clear();for(let m of r)cancelAnimationFrame(m);r.clear()})},_onBeforeUpdate:s=>{e=new Map,s.children.items.forEach((m,h)=>{if(!(m instanceof Do.ElementNode))return;let l=m.domElement;l&&e.set(Hn(m,h),l.getBoundingClientRect())})},_onUpdate:s=>{s.children.items.forEach((m,h)=>{var D;if(!(m instanceof Do.ElementNode))return;let l=m.domElement;if(!l)return;let c=Hn(m,h),d=e.get(c);if(!d)return;let y=l.getBoundingClientRect(),g=d.left-y.left,u=d.top-y.top;if(Math.abs(g)<.5&&Math.abs(u)<.5)return;(D=i.get(l))==null||D(),l.style.transition="none",l.style.transform=`translate(${g}px, ${u}px)`,l.getBoundingClientRect();let p=requestAnimationFrame(()=>{r.delete(p),l.style.transition=`transform ${o}ms ease ${n}ms`,l.style.transform="translate(0px, 0px)"});r.add(p);let v=!1,k=null,x=()=>{v||(v=!0,k&&(t.delete(k),k=null),i.delete(l),l.removeEventListener("transitionend",T),l.style.transition="",l.style.transform="")},T=q=>{q.propertyName==="transform"&&x()};i.set(l,()=>{v=!0,k&&(clearTimeout(k),t.delete(k),k=null),i.delete(l),l.removeEventListener("transitionend",T)}),l.addEventListener("transitionend",T),k=setTimeout(x,o+n+34),t.add(k)}),e.clear()}}}var Fn=require("@domphy/core"),ut=require("@domphy/theme");function pi(a={}){var n;let o=(0,Fn.toState)((n=a.color)!=null?n:"neutral","color");return{_onInsert:e=>{e.tagName!=="ul"&&console.warn('"unorderedList" primitive patch must use ul tag')},style:{fontSize:e=>(0,ut.themeSize)(e,"inherit"),backgroundColor:e=>(0,ut.themeColor)(e),color:e=>(0,ut.themeColor)(e,"text",o.get(e)),marginTop:0,marginBottom:0,paddingLeft:(0,ut.themeSpacing)(3),listStyleType:"disc",listStylePosition:"outside"}}}function hi(){return{style:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}}}0&&(module.exports={abbreviation,accordion,alert,avatar,badge,blockquote,breadcrumb,breadcrumbEllipsis,button,buttonGhost,buttonSwitch,card,code,combobox,command,commandItem,commandSearch,datePicker,descriptionList,details,dialog,divider,drawer,elevation,emphasis,empty,errorBoundary,fab,figure,focusRing,formGroup,grid,heading,horizontalRule,icon,image,inputCheckbox,inputColor,inputDateTime,inputFile,inputNumber,inputOTP,inputPassword,inputRadio,inputRange,inputSearch,inputSwitch,inputText,keyboard,label,link,linkButton,list,listItem,listItemButton,mark,menu,motion,orderedList,pagination,panelSection,paragraph,popover,popoverArrow,preformated,progress,rating,ringProgress,row,scrollArea,segmented,select,selectBox,selectItem,selectList,skeleton,small,spinner,splitter,splitterHandle,splitterPanel,stack,steps,strong,subscript,superscript,table,tabs,tag,textarea,timeline,timelineItem,toast,toggleGroup,toolbar,toolbarSpacer,tooltip,transitionGroup,unorderedList,visuallyHidden});
2
2
  //# sourceMappingURL=index.cjs.map