studiograph 1.3.44-next.21 → 1.3.44-next.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/web/_app/immutable/assets/4.DfrppcF_.css +1 -0
  2. package/dist/web/_app/immutable/assets/{8.DKYjn_lM.css → 8.BrXOeHJA.css} +1 -1
  3. package/dist/web/_app/immutable/chunks/{C1S8fyYX.js → -2EMa1ML.js} +1 -1
  4. package/dist/web/_app/immutable/chunks/{B1c_qzmY.js → B0qTqRR8.js} +1 -1
  5. package/dist/web/_app/immutable/chunks/{DO03XMS-.js → B17cx9Sm.js} +1 -1
  6. package/dist/web/_app/immutable/chunks/{DIBaaeCL.js → BSBiehHY.js} +1 -1
  7. package/dist/web/_app/immutable/chunks/{CwnWYvfz.js → BasUgd5N.js} +1 -1
  8. package/dist/web/_app/immutable/chunks/{CCA2E2CK.js → BenpwI6m.js} +1 -1
  9. package/dist/web/_app/immutable/chunks/{BgRr0V7g.js → BjAmYrTY.js} +1 -1
  10. package/dist/web/_app/immutable/chunks/{csGnu8Rb.js → BvwzgaXa.js} +1 -1
  11. package/dist/web/_app/immutable/chunks/{BN6gr1HX.js → BzfUn14C.js} +1 -1
  12. package/dist/web/_app/immutable/chunks/{BVhp5b7F.js → CDFdgZ9U.js} +1 -1
  13. package/dist/web/_app/immutable/chunks/{Dgs7g6Xf.js → CLw5zKi0.js} +1 -1
  14. package/dist/web/_app/immutable/chunks/{usxM-xOh.js → COik51fd.js} +1 -1
  15. package/dist/web/_app/immutable/chunks/{DkuxRPZv.js → CStpN6HQ.js} +1 -1
  16. package/dist/web/_app/immutable/chunks/CX_fJaNF.js +1 -0
  17. package/dist/web/_app/immutable/chunks/{NuvuAeCX.js → CbwDFpOn.js} +1 -1
  18. package/dist/web/_app/immutable/chunks/{BKHfe9E-.js → CieeblIr.js} +1 -1
  19. package/dist/web/_app/immutable/chunks/{BzjUB_Ym.js → CoAsXxNb.js} +1 -1
  20. package/dist/web/_app/immutable/chunks/CvAezToa.js +1 -0
  21. package/dist/web/_app/immutable/chunks/{pQmxOXKv.js → CyzLSh3b.js} +1 -1
  22. package/dist/web/_app/immutable/chunks/{D8mTIH9Y.js → DAD7hf2c.js} +1 -1
  23. package/dist/web/_app/immutable/chunks/{CwUXqlAx.js → DC1nGnOD.js} +1 -1
  24. package/dist/web/_app/immutable/chunks/{Ca2kuiZq.js → DLe_R6S0.js} +1 -1
  25. package/dist/web/_app/immutable/chunks/{DD3_vCgV.js → DN_2uSjw.js} +1 -1
  26. package/dist/web/_app/immutable/chunks/DQmnydAv.js +1 -0
  27. package/dist/web/_app/immutable/chunks/DkilSMcP.js +5 -0
  28. package/dist/web/_app/immutable/chunks/{D-H9HeD_.js → DkoZfYJt.js} +1 -1
  29. package/dist/web/_app/immutable/chunks/{DYLAPjKD.js → DkyV2KO_.js} +1 -1
  30. package/dist/web/_app/immutable/chunks/{DeyUjeaz.js → Dt6bIUGm.js} +1 -1
  31. package/dist/web/_app/immutable/chunks/{BZ2Q53D5.js → DtsqpIgr.js} +1 -1
  32. package/dist/web/_app/immutable/chunks/{yUs562n0.js → Dvv4bkXH.js} +1 -1
  33. package/dist/web/_app/immutable/chunks/{C74mA5aC.js → DwG0Us6L.js} +1 -1
  34. package/dist/web/_app/immutable/chunks/{y7AXCX7T.js → FQq1g0yX.js} +1 -1
  35. package/dist/web/_app/immutable/chunks/{BdNoKWAr.js → fgXuQcv7.js} +2 -2
  36. package/dist/web/_app/immutable/chunks/{BpdrS9kL.js → h2NtTN7K.js} +1 -1
  37. package/dist/web/_app/immutable/chunks/{DLZAjAct.js → owhS8Kw_.js} +1 -1
  38. package/dist/web/_app/immutable/chunks/{DHholpIc.js → wWaI7EIw.js} +1 -1
  39. package/dist/web/_app/immutable/entry/{app.Ci1ytk_v.js → app.CfPTwl0D.js} +2 -2
  40. package/dist/web/_app/immutable/entry/start.CzvcbWLa.js +1 -0
  41. package/dist/web/_app/immutable/nodes/{0.D4NmzO9T.js → 0.4O4jT99H.js} +2 -2
  42. package/dist/web/_app/immutable/nodes/{1.B49NrV3g.js → 1.YWRiTXrL.js} +1 -1
  43. package/dist/web/_app/immutable/nodes/{10.OXZpT8w9.js → 10.D-El_Hsa.js} +1 -1
  44. package/dist/web/_app/immutable/nodes/{2.DaqdIYKU.js → 2.ViGoUIc6.js} +4 -4
  45. package/dist/web/_app/immutable/nodes/{3.Q_RC4D9P.js → 3.BbexcpeM.js} +1 -1
  46. package/dist/web/_app/immutable/nodes/4.C2H0fLm7.js +11 -0
  47. package/dist/web/_app/immutable/nodes/{5.U-zEu0Mw.js → 5.BQEbSnbz.js} +1 -1
  48. package/dist/web/_app/immutable/nodes/{6.SYsyu9GD.js → 6.ChylSlHg.js} +1 -1
  49. package/dist/web/_app/immutable/nodes/{7.BLgQGI-C.js → 7.DxQsYoNz.js} +1 -1
  50. package/dist/web/_app/immutable/nodes/8.C6L2M9te.js +1 -0
  51. package/dist/web/_app/immutable/nodes/{9.D0aRCiZD.js → 9.BzQNdaYi.js} +1 -1
  52. package/dist/web/_app/version.json +1 -1
  53. package/dist/web/index.html +11 -11
  54. package/package.json +1 -1
  55. package/dist/web/_app/immutable/assets/4.B3dbj90y.css +0 -1
  56. package/dist/web/_app/immutable/chunks/1BE_eYuA.js +0 -1
  57. package/dist/web/_app/immutable/chunks/Mtmwulo1.js +0 -1
  58. package/dist/web/_app/immutable/chunks/e8QVPHqJ.js +0 -5
  59. package/dist/web/_app/immutable/chunks/oz3vOf3Y.js +0 -1
  60. package/dist/web/_app/immutable/entry/start.DNk71wbw.js +0 -1
  61. package/dist/web/_app/immutable/nodes/4.CIDSQYhF.js +0 -11
  62. package/dist/web/_app/immutable/nodes/8.67Laxdj-.js +0 -1
@@ -1 +1 @@
1
- import{aU as cr,A as re,aE as dr,a7 as ur,aB as mr,j as fr,aV as pr,p as br,a0 as gr,b as hr,c as Te,ae as Ge,r as Pe}from"./CCA2E2CK.js";import{c as vr,a as he,b as De}from"./usxM-xOh.js";import{b as yr}from"./BKHfe9E-.js";import{a as Re,s as _e}from"./DkuxRPZv.js";import{i as wr,b as Ie}from"./yUs562n0.js";import{p as te,r as xr}from"./DHholpIc.js";function Tt(e,r,o=r){var t=new WeakSet;cr(e,"input",async n=>{var s=n?e.defaultValue:e.value;if(s=ve(e)?ye(s):s,o(s),re!==null&&t.add(re),await dr(),s!==(s=r())){var a=e.selectionStart,m=e.selectionEnd,d=e.value.length;if(e.value=s??"",m!==null){var f=e.value.length;a===m&&m===d&&f>d?(e.selectionStart=f,e.selectionEnd=f):(e.selectionStart=a,e.selectionEnd=Math.min(m,f))}}}),(fr&&e.defaultValue!==e.value||ur(r)==null&&e.value)&&(o(ve(e)?ye(e.value):e.value),re!==null&&t.add(re)),mr(()=>{var n=r();if(e===document.activeElement){var s=pr??re;if(t.has(s))return}ve(e)&&n===ye(e.value)||e.type==="date"&&!n&&!e.value||n!==e.value&&(e.value=n??"")})}function ve(e){var r=e.type;return r==="number"||r==="range"}function ye(e){return e===""?null:+e}const kr=(e,r)=>{const o=new Array(e.length+r.length);for(let t=0;t<e.length;t++)o[t]=e[t];for(let t=0;t<r.length;t++)o[e.length+t]=r[t];return o},Cr=(e,r)=>({classGroupId:e,validator:r}),Ke=(e=new Map,r=null,o)=>({nextPart:e,validators:r,classGroupId:o}),pe="-",Ne=[],zr="arbitrary..",Ar=e=>{const r=Mr(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Sr(a);const m=a.split(pe),d=m[0]===""&&m.length>1?1:0;return Ye(m,d,r)},getConflictingClassGroupIds:(a,m)=>{if(m){const d=t[a],f=o[a];return d?f?kr(f,d):d:f||Ne}return o[a]||Ne}}},Ye=(e,r,o)=>{if(e.length-r===0)return o.classGroupId;const n=e[r],s=o.nextPart.get(n);if(s){const f=Ye(e,r+1,s);if(f)return f}const a=o.validators;if(a===null)return;const m=r===0?e.join(pe):e.slice(r).join(pe),d=a.length;for(let f=0;f<d;f++){const z=a[f];if(z.validator(m))return z.classGroupId}},Sr=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=e.slice(1,-1),o=r.indexOf(":"),t=r.slice(0,o);return t?zr+t:void 0})(),Mr=e=>{const{theme:r,classGroups:o}=e;return Vr(o,r)},Vr=(e,r)=>{const o=Ke();for(const t in e){const n=e[t];Ae(n,o,t,r)}return o},Ae=(e,r,o,t)=>{const n=e.length;for(let s=0;s<n;s++){const a=e[s];Tr(a,r,o,t)}},Tr=(e,r,o,t)=>{if(typeof e=="string"){Gr(e,r,o);return}if(typeof e=="function"){Pr(e,r,o,t);return}Rr(e,r,o,t)},Gr=(e,r,o)=>{const t=e===""?r:qe(r,e);t.classGroupId=o},Pr=(e,r,o,t)=>{if(_r(e)){Ae(e(t),r,o,t);return}r.validators===null&&(r.validators=[]),r.validators.push(Cr(o,e))},Rr=(e,r,o,t)=>{const n=Object.entries(e),s=n.length;for(let a=0;a<s;a++){const[m,d]=n[a];Ae(d,qe(r,m),o,t)}},qe=(e,r)=>{let o=e;const t=r.split(pe),n=t.length;for(let s=0;s<n;s++){const a=t[s];let m=o.nextPart.get(a);m||(m=Ke(),o.nextPart.set(a,m)),o=m}return o},_r=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Ir=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=Object.create(null),t=Object.create(null);const n=(s,a)=>{o[s]=a,r++,r>e&&(r=0,t=o,o=Object.create(null))};return{get(s){let a=o[s];if(a!==void 0)return a;if((a=t[s])!==void 0)return n(s,a),a},set(s,a){s in o?o[s]=a:n(s,a)}}},xe="!",Ee=":",Nr=[],Oe=(e,r,o,t,n)=>({modifiers:e,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:t,isExternal:n}),Er=e=>{const{prefix:r,experimentalParseClassName:o}=e;let t=n=>{const s=[];let a=0,m=0,d=0,f;const z=n.length;for(let k=0;k<z;k++){const G=n[k];if(a===0&&m===0){if(G===Ee){s.push(n.slice(d,k)),d=k+1;continue}if(G==="/"){f=k;continue}}G==="["?a++:G==="]"?a--:G==="("?m++:G===")"&&m--}const A=s.length===0?n:n.slice(d);let S=A,g=!1;A.endsWith(xe)?(S=A.slice(0,-1),g=!0):A.startsWith(xe)&&(S=A.slice(1),g=!0);const _=f&&f>d?f-d:void 0;return Oe(s,g,S,_)};if(r){const n=r+Ee,s=t;t=a=>a.startsWith(n)?s(a.slice(n.length)):Oe(Nr,!1,a,void 0,!0)}if(o){const n=t;t=s=>o({className:s,parseClassName:n})}return t},Or=e=>{const r=new Map;return e.orderSensitiveModifiers.forEach((o,t)=>{r.set(o,1e6+t)}),o=>{const t=[];let n=[];for(let s=0;s<o.length;s++){const a=o[s],m=a[0]==="[",d=r.has(a);m||d?(n.length>0&&(n.sort(),t.push(...n),n=[]),t.push(a)):n.push(a)}return n.length>0&&(n.sort(),t.push(...n)),t}},Lr=e=>({cache:Ir(e.cacheSize),parseClassName:Er(e),sortModifiers:Or(e),...Ar(e)}),jr=/\s+/,Br=(e,r)=>{const{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:n,sortModifiers:s}=r,a=[],m=e.trim().split(jr);let d="";for(let f=m.length-1;f>=0;f-=1){const z=m[f],{isExternal:A,modifiers:S,hasImportantModifier:g,baseClassName:_,maybePostfixModifierPosition:k}=o(z);if(A){d=z+(d.length>0?" "+d:d);continue}let G=!!k,O=t(G?_.substring(0,k):_);if(!O){if(!G){d=z+(d.length>0?" "+d:d);continue}if(O=t(_),!O){d=z+(d.length>0?" "+d:d);continue}G=!1}const j=S.length===0?"":S.length===1?S[0]:s(S).join(":"),I=g?j+xe:j,K=I+O;if(a.indexOf(K)>-1)continue;a.push(K);const P=n(O,G);for(let F=0;F<P.length;++F){const J=P[F];a.push(I+J)}d=z+(d.length>0?" "+d:d)}return d},Fr=(...e)=>{let r=0,o,t,n="";for(;r<e.length;)(o=e[r++])&&(t=Xe(o))&&(n&&(n+=" "),n+=t);return n},Xe=e=>{if(typeof e=="string")return e;let r,o="";for(let t=0;t<e.length;t++)e[t]&&(r=Xe(e[t]))&&(o&&(o+=" "),o+=r);return o},ke=(e,...r)=>{let o,t,n,s;const a=d=>{const f=r.reduce((z,A)=>A(z),e());return o=Lr(f),t=o.cache.get,n=o.cache.set,s=m,m(d)},m=d=>{const f=t(d);if(f)return f;const z=Br(d,o);return n(d,z),z};return s=a,(...d)=>s(Fr(...d))},Wr=[],V=e=>{const r=o=>o[e]||Wr;return r.isThemeGetter=!0,r},Je=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,He=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ur=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Dr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Kr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Yr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,qr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Y=e=>Ur.test(e),b=e=>!!e&&!Number.isNaN(Number(e)),q=e=>!!e&&Number.isInteger(Number(e)),we=e=>e.endsWith("%")&&b(e.slice(0,-1)),U=e=>Dr.test(e),Qe=()=>!0,Jr=e=>Kr.test(e)&&!Yr.test(e),Se=()=>!1,Hr=e=>qr.test(e),Qr=e=>Xr.test(e),Zr=e=>!i(e)&&!l(e),$r=e=>X(e,er,Se),i=e=>Je.test(e),H=e=>X(e,rr,Jr),Le=e=>X(e,it,b),et=e=>X(e,or,Qe),rt=e=>X(e,tr,Se),je=e=>X(e,Ze,Se),tt=e=>X(e,$e,Qr),de=e=>X(e,sr,Hr),l=e=>He.test(e),oe=e=>Q(e,rr),ot=e=>Q(e,tr),Be=e=>Q(e,Ze),st=e=>Q(e,er),nt=e=>Q(e,$e),ue=e=>Q(e,sr,!0),at=e=>Q(e,or,!0),X=(e,r,o)=>{const t=Je.exec(e);return t?t[1]?r(t[1]):o(t[2]):!1},Q=(e,r,o=!1)=>{const t=He.exec(e);return t?t[1]?r(t[1]):o:!1},Ze=e=>e==="position"||e==="percentage",$e=e=>e==="image"||e==="url",er=e=>e==="length"||e==="size"||e==="bg-size",rr=e=>e==="length",it=e=>e==="number",tr=e=>e==="family-name",or=e=>e==="number"||e==="weight",sr=e=>e==="shadow",Ce=()=>{const e=V("color"),r=V("font"),o=V("text"),t=V("font-weight"),n=V("tracking"),s=V("leading"),a=V("breakpoint"),m=V("container"),d=V("spacing"),f=V("radius"),z=V("shadow"),A=V("inset-shadow"),S=V("text-shadow"),g=V("drop-shadow"),_=V("blur"),k=V("perspective"),G=V("aspect"),O=V("ease"),j=V("animate"),I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...K(),l,i],F=()=>["auto","hidden","clip","visible","scroll"],J=()=>["auto","contain","none"],u=()=>[l,i,d],R=()=>[Y,"full","auto",...u()],$=()=>[q,"none","subgrid",l,i],ee=()=>["auto",{span:["full",q,l,i]},q,l,i],Z=()=>[q,"auto",l,i],ne=()=>["auto","min","max","fr",l,i],h=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],v=()=>["start","end","center","stretch","center-safe","end-safe"],p=()=>["auto",...u()],y=()=>[Y,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...u()],w=()=>[Y,"screen","full","dvw","lvw","svw","min","max","fit",...u()],C=()=>[Y,"screen","full","lh","dvh","lvh","svh","min","max","fit",...u()],c=()=>[e,l,i],B=()=>[...K(),Be,je,{position:[l,i]}],N=()=>["no-repeat",{repeat:["","x","y","space","round"]}],L=()=>["auto","cover","contain",st,$r,{size:[l,i]}],W=()=>[we,oe,H],x=()=>["","none","full",f,l,i],M=()=>["",b,oe,H],ae=()=>["solid","dashed","dotted","double"],Me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>[b,we,Be,je],Ve=()=>["","none",_,l,i],ie=()=>["none",b,l,i],le=()=>["none",b,l,i],ge=()=>[b,l,i],ce=()=>[Y,"full",...u()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[U],breakpoint:[U],color:[Qe],container:[U],"drop-shadow":[U],ease:["in","out","in-out"],font:[Zr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[U],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[U],shadow:[U],spacing:["px",b],text:[U],"text-shadow":[U],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Y,i,l,G]}],container:["container"],columns:[{columns:[b,i,l,m]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{"inset-s":R(),start:R()}],end:[{"inset-e":R(),end:R()}],"inset-bs":[{"inset-bs":R()}],"inset-be":[{"inset-be":R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[q,"auto",l,i]}],basis:[{basis:[Y,"full","auto",m,...u()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[b,Y,"auto","initial","none",i]}],grow:[{grow:["",b,l,i]}],shrink:[{shrink:["",b,l,i]}],order:[{order:[q,"first","last","none",l,i]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ne()}],"auto-rows":[{"auto-rows":ne()}],gap:[{gap:u()}],"gap-x":[{"gap-x":u()}],"gap-y":[{"gap-y":u()}],"justify-content":[{justify:[...h(),"normal"]}],"justify-items":[{"justify-items":[...v(),"normal"]}],"justify-self":[{"justify-self":["auto",...v()]}],"align-content":[{content:["normal",...h()]}],"align-items":[{items:[...v(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...v(),{baseline:["","last"]}]}],"place-content":[{"place-content":h()}],"place-items":[{"place-items":[...v(),"baseline"]}],"place-self":[{"place-self":["auto",...v()]}],p:[{p:u()}],px:[{px:u()}],py:[{py:u()}],ps:[{ps:u()}],pe:[{pe:u()}],pbs:[{pbs:u()}],pbe:[{pbe:u()}],pt:[{pt:u()}],pr:[{pr:u()}],pb:[{pb:u()}],pl:[{pl:u()}],m:[{m:p()}],mx:[{mx:p()}],my:[{my:p()}],ms:[{ms:p()}],me:[{me:p()}],mbs:[{mbs:p()}],mbe:[{mbe:p()}],mt:[{mt:p()}],mr:[{mr:p()}],mb:[{mb:p()}],ml:[{ml:p()}],"space-x":[{"space-x":u()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":u()}],"space-y-reverse":["space-y-reverse"],size:[{size:y()}],"inline-size":[{inline:["auto",...w()]}],"min-inline-size":[{"min-inline":["auto",...w()]}],"max-inline-size":[{"max-inline":["none",...w()]}],"block-size":[{block:["auto",...C()]}],"min-block-size":[{"min-block":["auto",...C()]}],"max-block-size":[{"max-block":["none",...C()]}],w:[{w:[m,"screen",...y()]}],"min-w":[{"min-w":[m,"screen","none",...y()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[a]},...y()]}],h:[{h:["screen","lh",...y()]}],"min-h":[{"min-h":["screen","lh","none",...y()]}],"max-h":[{"max-h":["screen","lh",...y()]}],"font-size":[{text:["base",o,oe,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,at,et]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",we,i]}],"font-family":[{font:[ot,rt,r]}],"font-features":[{"font-features":[i]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,l,i]}],"line-clamp":[{"line-clamp":[b,"none",l,Le]}],leading:[{leading:[s,...u()]}],"list-image":[{"list-image":["none",l,i]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",l,i]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:c()}],"text-color":[{text:c()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[b,"from-font","auto",l,H]}],"text-decoration-color":[{decoration:c()}],"underline-offset":[{"underline-offset":[b,"auto",l,i]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:u()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l,i]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l,i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:B()}],"bg-repeat":[{bg:N()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},q,l,i],radial:["",l,i],conic:[q,l,i]},nt,tt]}],"bg-color":[{bg:c()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:c()}],"gradient-via":[{via:c()}],"gradient-to":[{to:c()}],rounded:[{rounded:x()}],"rounded-s":[{"rounded-s":x()}],"rounded-e":[{"rounded-e":x()}],"rounded-t":[{"rounded-t":x()}],"rounded-r":[{"rounded-r":x()}],"rounded-b":[{"rounded-b":x()}],"rounded-l":[{"rounded-l":x()}],"rounded-ss":[{"rounded-ss":x()}],"rounded-se":[{"rounded-se":x()}],"rounded-ee":[{"rounded-ee":x()}],"rounded-es":[{"rounded-es":x()}],"rounded-tl":[{"rounded-tl":x()}],"rounded-tr":[{"rounded-tr":x()}],"rounded-br":[{"rounded-br":x()}],"rounded-bl":[{"rounded-bl":x()}],"border-w":[{border:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-bs":[{"border-bs":M()}],"border-w-be":[{"border-be":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":M()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"hidden","none"]}],"border-color":[{border:c()}],"border-color-x":[{"border-x":c()}],"border-color-y":[{"border-y":c()}],"border-color-s":[{"border-s":c()}],"border-color-e":[{"border-e":c()}],"border-color-bs":[{"border-bs":c()}],"border-color-be":[{"border-be":c()}],"border-color-t":[{"border-t":c()}],"border-color-r":[{"border-r":c()}],"border-color-b":[{"border-b":c()}],"border-color-l":[{"border-l":c()}],"divide-color":[{divide:c()}],"outline-style":[{outline:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[b,l,i]}],"outline-w":[{outline:["",b,oe,H]}],"outline-color":[{outline:c()}],shadow:[{shadow:["","none",z,ue,de]}],"shadow-color":[{shadow:c()}],"inset-shadow":[{"inset-shadow":["none",A,ue,de]}],"inset-shadow-color":[{"inset-shadow":c()}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:c()}],"ring-offset-w":[{"ring-offset":[b,H]}],"ring-offset-color":[{"ring-offset":c()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":c()}],"text-shadow":[{"text-shadow":["none",S,ue,de]}],"text-shadow-color":[{"text-shadow":c()}],opacity:[{opacity:[b,l,i]}],"mix-blend":[{"mix-blend":[...Me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Me()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[b]}],"mask-image-linear-from-pos":[{"mask-linear-from":T()}],"mask-image-linear-to-pos":[{"mask-linear-to":T()}],"mask-image-linear-from-color":[{"mask-linear-from":c()}],"mask-image-linear-to-color":[{"mask-linear-to":c()}],"mask-image-t-from-pos":[{"mask-t-from":T()}],"mask-image-t-to-pos":[{"mask-t-to":T()}],"mask-image-t-from-color":[{"mask-t-from":c()}],"mask-image-t-to-color":[{"mask-t-to":c()}],"mask-image-r-from-pos":[{"mask-r-from":T()}],"mask-image-r-to-pos":[{"mask-r-to":T()}],"mask-image-r-from-color":[{"mask-r-from":c()}],"mask-image-r-to-color":[{"mask-r-to":c()}],"mask-image-b-from-pos":[{"mask-b-from":T()}],"mask-image-b-to-pos":[{"mask-b-to":T()}],"mask-image-b-from-color":[{"mask-b-from":c()}],"mask-image-b-to-color":[{"mask-b-to":c()}],"mask-image-l-from-pos":[{"mask-l-from":T()}],"mask-image-l-to-pos":[{"mask-l-to":T()}],"mask-image-l-from-color":[{"mask-l-from":c()}],"mask-image-l-to-color":[{"mask-l-to":c()}],"mask-image-x-from-pos":[{"mask-x-from":T()}],"mask-image-x-to-pos":[{"mask-x-to":T()}],"mask-image-x-from-color":[{"mask-x-from":c()}],"mask-image-x-to-color":[{"mask-x-to":c()}],"mask-image-y-from-pos":[{"mask-y-from":T()}],"mask-image-y-to-pos":[{"mask-y-to":T()}],"mask-image-y-from-color":[{"mask-y-from":c()}],"mask-image-y-to-color":[{"mask-y-to":c()}],"mask-image-radial":[{"mask-radial":[l,i]}],"mask-image-radial-from-pos":[{"mask-radial-from":T()}],"mask-image-radial-to-pos":[{"mask-radial-to":T()}],"mask-image-radial-from-color":[{"mask-radial-from":c()}],"mask-image-radial-to-color":[{"mask-radial-to":c()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":K()}],"mask-image-conic-pos":[{"mask-conic":[b]}],"mask-image-conic-from-pos":[{"mask-conic-from":T()}],"mask-image-conic-to-pos":[{"mask-conic-to":T()}],"mask-image-conic-from-color":[{"mask-conic-from":c()}],"mask-image-conic-to-color":[{"mask-conic-to":c()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:B()}],"mask-repeat":[{mask:N()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",l,i]}],filter:[{filter:["","none",l,i]}],blur:[{blur:Ve()}],brightness:[{brightness:[b,l,i]}],contrast:[{contrast:[b,l,i]}],"drop-shadow":[{"drop-shadow":["","none",g,ue,de]}],"drop-shadow-color":[{"drop-shadow":c()}],grayscale:[{grayscale:["",b,l,i]}],"hue-rotate":[{"hue-rotate":[b,l,i]}],invert:[{invert:["",b,l,i]}],saturate:[{saturate:[b,l,i]}],sepia:[{sepia:["",b,l,i]}],"backdrop-filter":[{"backdrop-filter":["","none",l,i]}],"backdrop-blur":[{"backdrop-blur":Ve()}],"backdrop-brightness":[{"backdrop-brightness":[b,l,i]}],"backdrop-contrast":[{"backdrop-contrast":[b,l,i]}],"backdrop-grayscale":[{"backdrop-grayscale":["",b,l,i]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b,l,i]}],"backdrop-invert":[{"backdrop-invert":["",b,l,i]}],"backdrop-opacity":[{"backdrop-opacity":[b,l,i]}],"backdrop-saturate":[{"backdrop-saturate":[b,l,i]}],"backdrop-sepia":[{"backdrop-sepia":["",b,l,i]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":u()}],"border-spacing-x":[{"border-spacing-x":u()}],"border-spacing-y":[{"border-spacing-y":u()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",l,i]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[b,"initial",l,i]}],ease:[{ease:["linear","initial",O,l,i]}],delay:[{delay:[b,l,i]}],animate:[{animate:["none",j,l,i]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,l,i]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:ie()}],"rotate-x":[{"rotate-x":ie()}],"rotate-y":[{"rotate-y":ie()}],"rotate-z":[{"rotate-z":ie()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:ge()}],"skew-x":[{"skew-x":ge()}],"skew-y":[{"skew-y":ge()}],transform:[{transform:[l,i,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ce()}],"translate-x":[{"translate-x":ce()}],"translate-y":[{"translate-y":ce()}],"translate-z":[{"translate-z":ce()}],"translate-none":["translate-none"],accent:[{accent:c()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:c()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l,i]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-mbs":[{"scroll-mbs":u()}],"scroll-mbe":[{"scroll-mbe":u()}],"scroll-mt":[{"scroll-mt":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pbs":[{"scroll-pbs":u()}],"scroll-pbe":[{"scroll-pbe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l,i]}],fill:[{fill:["none",...c()]}],"stroke-w":[{stroke:[b,oe,H,Le]}],stroke:[{stroke:["none",...c()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},lt=(e,{cacheSize:r,prefix:o,experimentalParseClassName:t,extend:n={},override:s={}})=>(se(e,"cacheSize",r),se(e,"prefix",o),se(e,"experimentalParseClassName",t),me(e.theme,s.theme),me(e.classGroups,s.classGroups),me(e.conflictingClassGroups,s.conflictingClassGroups),me(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),se(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),fe(e.theme,n.theme),fe(e.classGroups,n.classGroups),fe(e.conflictingClassGroups,n.conflictingClassGroups),fe(e.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),nr(e,n,"orderSensitiveModifiers"),e),se=(e,r,o)=>{o!==void 0&&(e[r]=o)},me=(e,r)=>{if(r)for(const o in r)se(e,o,r[o])},fe=(e,r)=>{if(r)for(const o in r)nr(e,r,o)},nr=(e,r,o)=>{const t=r[o];t!==void 0&&(e[o]=e[o]?e[o].concat(t):t)},ct=(e,...r)=>typeof e=="function"?ke(Ce,e,...r):ke(()=>lt(Ce(),e),...r),ar=ke(Ce);function Fe(...e){return ar(yr(e))}var dt=/\s+/g,ut=e=>typeof e!="string"||!e?e:e.replace(dt," ").trim(),be=(...e)=>{const r=[],o=t=>{if(!t&&t!==0&&t!==0n)return;if(Array.isArray(t)){for(let s=0,a=t.length;s<a;s++)o(t[s]);return}const n=typeof t;if(n==="string"||n==="number"||n==="bigint"){if(n==="number"&&t!==t)return;r.push(String(t))}else if(n==="object"){const s=Object.keys(t);for(let a=0,m=s.length;a<m;a++){const d=s[a];t[d]&&r.push(d)}}};for(let t=0,n=e.length;t<n;t++){const s=e[t];s!=null&&o(s)}return r.length>0?ut(r.join(" ")):void 0},We=e=>e===!1?"false":e===!0?"true":e===0?"0":e,E=e=>{if(!e||typeof e!="object")return!0;for(const r in e)return!1;return!0},mt=(e,r)=>{if(e===r)return!0;if(!e||!r)return!1;const o=Object.keys(e),t=Object.keys(r);if(o.length!==t.length)return!1;for(let n=0;n<o.length;n++){const s=o[n];if(!t.includes(s)||e[s]!==r[s])return!1}return!0},ft=(e,r)=>{for(const o in r)if(Object.prototype.hasOwnProperty.call(r,o)){const t=r[o];o in e?e[o]=be(e[o],t):e[o]=t}return e},ir=(e,r)=>{for(let o=0;o<e.length;o++){const t=e[o];Array.isArray(t)?ir(t,r):t&&r.push(t)}},lr=(...e)=>{const r=[];ir(e,r);const o=[];for(let t=0;t<r.length;t++)r[t]&&o.push(r[t]);return o},ze=(e,r)=>{const o={};for(const t in e){const n=e[t];if(t in r){const s=r[t];Array.isArray(n)||Array.isArray(s)?o[t]=lr(s,n):typeof n=="object"&&typeof s=="object"&&n&&s?o[t]=ze(n,s):o[t]=s+" "+n}else o[t]=n}for(const t in r)t in e||(o[t]=r[t]);return o},pt={twMerge:!0,twMergeConfig:{}};function bt(){let e=null,r={},o=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(t){e=t},get cachedTwMergeConfig(){return r},set cachedTwMergeConfig(t){r=t},get didTwMergeConfigChange(){return o},set didTwMergeConfigChange(t){o=t},reset(){e=null,r={},o=!1}}}var D=bt(),gt=e=>{const r=(t,n)=>{const{extend:s=null,slots:a={},variants:m={},compoundVariants:d=[],compoundSlots:f=[],defaultVariants:z={}}=t,A={...pt,...n},S=s?.base?be(s.base,t?.base):t?.base,g=s?.variants&&!E(s.variants)?ze(m,s.variants):m,_=s?.defaultVariants&&!E(s.defaultVariants)?{...s.defaultVariants,...z}:z;!E(A.twMergeConfig)&&!mt(A.twMergeConfig,D.cachedTwMergeConfig)&&(D.didTwMergeConfigChange=!0,D.cachedTwMergeConfig=A.twMergeConfig);const k=E(s?.slots),G=E(a)?{}:{base:be(t?.base,k&&s?.base),...a},O=k?G:ft({...s?.slots},E(G)?{base:t?.base}:G),j=E(s?.compoundVariants)?d:lr(s?.compoundVariants,d),I=P=>{if(E(g)&&E(a)&&k)return e(S,P?.class,P?.className)(A);if(j&&!Array.isArray(j))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof j}`);if(f&&!Array.isArray(f))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof f}`);const F=(h,v=g,p=null,y=null)=>{const w=v[h];if(!w||E(w))return null;const C=y?.[h]??P?.[h];if(C===null)return null;const c=We(C);if(typeof c=="object")return null;const B=_?.[h],N=c??We(B);return w[N||"false"]},J=()=>{if(!g)return null;const h=Object.keys(g),v=[];for(let p=0;p<h.length;p++){const y=F(h[p],g);y&&v.push(y)}return v},u=(h,v)=>{if(!g||typeof g!="object")return null;const p=[];for(const y in g){const w=F(y,g,h,v),C=h==="base"&&typeof w=="string"?w:w&&w[h];C&&p.push(C)}return p},R={};for(const h in P){const v=P[h];v!==void 0&&(R[h]=v)}const $=(h,v)=>{const p=typeof P?.[h]=="object"?{[h]:P[h]?.initial}:{};return{..._,...R,...p,...v}},ee=(h=[],v)=>{const p=[],y=h.length;for(let w=0;w<y;w++){const{class:C,className:c,...B}=h[w];let N=!0;const L=$(null,v);for(const W in B){const x=B[W],M=L[W];if(Array.isArray(x)){if(!x.includes(M)){N=!1;break}}else{if((x==null||x===!1)&&(M==null||M===!1))continue;if(M!==x){N=!1;break}}}N&&(C&&p.push(C),c&&p.push(c))}return p},Z=h=>{const v=ee(j,h);if(!Array.isArray(v))return v;const p={},y=e;for(let w=0;w<v.length;w++){const C=v[w];if(typeof C=="string")p.base=y(p.base,C)(A);else if(typeof C=="object")for(const c in C)p[c]=y(p[c],C[c])(A)}return p},ne=h=>{if(f.length<1)return null;const v={},p=$(null,h);for(let y=0;y<f.length;y++){const{slots:w=[],class:C,className:c,...B}=f[y];if(!E(B)){let N=!0;for(const L in B){const W=p[L],x=B[L];if(W===void 0||(Array.isArray(x)?!x.includes(W):x!==W)){N=!1;break}}if(!N)continue}for(let N=0;N<w.length;N++){const L=w[N];v[L]||(v[L]=[]),v[L].push([C,c])}}return v};if(!E(a)||!k){const h={};if(typeof O=="object"&&!E(O)){const v=e;for(const p in O)h[p]=y=>{const w=Z(y),C=ne(y);return v(O[p],u(p,y),w?w[p]:void 0,C?C[p]:void 0,y?.class,y?.className)(A)}}return h}return e(S,J(),ee(j),P?.class,P?.className)(A)},K=()=>{if(!(!g||typeof g!="object"))return Object.keys(g)};return I.variantKeys=K(),I.extend=s,I.base=S,I.slots=O,I.variants=g,I.defaultVariants=_,I.compoundSlots=f,I.compoundVariants=j,I};return{tv:r,createTV:t=>(n,s)=>r(n,s?ze(t,s):t)}},ht=e=>E(e)?ar:ct({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),vt=(e,r)=>{const o=be(e);return!o||!(r?.twMerge??!0)?o:((!D.cachedTwMerge||D.didTwMergeConfigChange)&&(D.didTwMergeConfigChange=!1,D.cachedTwMerge=ht(D.cachedTwMergeConfig)),D.cachedTwMerge(o)||void 0)},yt=(...e)=>r=>vt(e,r),{tv:wt}=gt(yt);const Ue=wt({base:"inline-flex shrink-0 items-center justify-center gap-1.5 rounded-[4px] font-normal whitespace-nowrap transition-[color,background] duration-150 cursor-pointer disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",variants:{variant:{default:"bg-[var(--color-bg-surface)] text-[var(--color-text-primary)] border border-[var(--color-border)] hover:bg-[var(--color-bg-hover)]",ghost:"bg-transparent text-[var(--color-text-tertiary)] hover:text-[var(--color-text-secondary)] hover:bg-[var(--color-bg-hover)]",outline:"bg-transparent text-[var(--color-text-secondary)] border border-[var(--color-border)] hover:bg-[var(--color-bg-hover)]",accent:"bg-[var(--color-accent)] text-white hover:bg-[var(--color-accent-hover)] border border-transparent",destructive:"bg-[var(--color-destructive)] text-white hover:bg-[var(--color-destructive-hover)]",link:"text-[var(--color-accent)] underline-offset-4 hover:underline"},size:{default:"h-7 px-3 text-xs",sm:"h-6 px-2 text-[12px]",lg:"h-8 px-4 text-sm",icon:"size-7 p-0"}},defaultVariants:{variant:"default",size:"default"}});var xt=De("<a><!></a>"),kt=De("<button><!></button>");function Gt(e,r){br(r,!0);let o=te(r,"variant",3,"default"),t=te(r,"size",3,"default"),n=te(r,"ref",15,null),s=te(r,"href",3,void 0),a=te(r,"type",3,"button"),m=xr(r,["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children"]);var d=vr(),f=gr(d);{var z=S=>{var g=xt();Re(g,k=>({class:k,href:r.disabled?void 0:s(),"aria-disabled":r.disabled,role:r.disabled?"link":void 0,tabindex:r.disabled?-1:void 0,...m}),[()=>Fe(Ue({variant:o(),size:t()}),r.class)]);var _=Te(g);_e(_,()=>r.children??Ge),Pe(g),Ie(g,k=>n(k),()=>n()),he(S,g)},A=S=>{var g=kt();Re(g,k=>({class:k,type:a(),disabled:r.disabled,...m}),[()=>Fe(Ue({variant:o(),size:t()}),r.class)]);var _=Te(g);_e(_,()=>r.children??Ge),Pe(g),Ie(g,k=>n(k),()=>n()),he(S,g)};wr(f,S=>{s()?S(z):S(A,!1)})}he(e,d),hr()}export{Gt as B,Ue as a,Tt as b,Fe as c,wt as t};
1
+ import{aU as cr,A as re,aE as dr,a7 as ur,aB as mr,j as fr,aV as pr,p as br,a0 as gr,b as hr,c as Te,ae as Ge,r as Pe}from"./BenpwI6m.js";import{c as vr,a as he,b as De}from"./COik51fd.js";import{b as yr}from"./CieeblIr.js";import{a as Re,s as _e}from"./CStpN6HQ.js";import{i as wr,b as Ie}from"./Dvv4bkXH.js";import{p as te,r as xr}from"./wWaI7EIw.js";function Tt(e,r,o=r){var t=new WeakSet;cr(e,"input",async n=>{var s=n?e.defaultValue:e.value;if(s=ve(e)?ye(s):s,o(s),re!==null&&t.add(re),await dr(),s!==(s=r())){var a=e.selectionStart,m=e.selectionEnd,d=e.value.length;if(e.value=s??"",m!==null){var f=e.value.length;a===m&&m===d&&f>d?(e.selectionStart=f,e.selectionEnd=f):(e.selectionStart=a,e.selectionEnd=Math.min(m,f))}}}),(fr&&e.defaultValue!==e.value||ur(r)==null&&e.value)&&(o(ve(e)?ye(e.value):e.value),re!==null&&t.add(re)),mr(()=>{var n=r();if(e===document.activeElement){var s=pr??re;if(t.has(s))return}ve(e)&&n===ye(e.value)||e.type==="date"&&!n&&!e.value||n!==e.value&&(e.value=n??"")})}function ve(e){var r=e.type;return r==="number"||r==="range"}function ye(e){return e===""?null:+e}const kr=(e,r)=>{const o=new Array(e.length+r.length);for(let t=0;t<e.length;t++)o[t]=e[t];for(let t=0;t<r.length;t++)o[e.length+t]=r[t];return o},Cr=(e,r)=>({classGroupId:e,validator:r}),Ke=(e=new Map,r=null,o)=>({nextPart:e,validators:r,classGroupId:o}),pe="-",Ne=[],zr="arbitrary..",Ar=e=>{const r=Mr(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Sr(a);const m=a.split(pe),d=m[0]===""&&m.length>1?1:0;return Ye(m,d,r)},getConflictingClassGroupIds:(a,m)=>{if(m){const d=t[a],f=o[a];return d?f?kr(f,d):d:f||Ne}return o[a]||Ne}}},Ye=(e,r,o)=>{if(e.length-r===0)return o.classGroupId;const n=e[r],s=o.nextPart.get(n);if(s){const f=Ye(e,r+1,s);if(f)return f}const a=o.validators;if(a===null)return;const m=r===0?e.join(pe):e.slice(r).join(pe),d=a.length;for(let f=0;f<d;f++){const z=a[f];if(z.validator(m))return z.classGroupId}},Sr=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=e.slice(1,-1),o=r.indexOf(":"),t=r.slice(0,o);return t?zr+t:void 0})(),Mr=e=>{const{theme:r,classGroups:o}=e;return Vr(o,r)},Vr=(e,r)=>{const o=Ke();for(const t in e){const n=e[t];Ae(n,o,t,r)}return o},Ae=(e,r,o,t)=>{const n=e.length;for(let s=0;s<n;s++){const a=e[s];Tr(a,r,o,t)}},Tr=(e,r,o,t)=>{if(typeof e=="string"){Gr(e,r,o);return}if(typeof e=="function"){Pr(e,r,o,t);return}Rr(e,r,o,t)},Gr=(e,r,o)=>{const t=e===""?r:qe(r,e);t.classGroupId=o},Pr=(e,r,o,t)=>{if(_r(e)){Ae(e(t),r,o,t);return}r.validators===null&&(r.validators=[]),r.validators.push(Cr(o,e))},Rr=(e,r,o,t)=>{const n=Object.entries(e),s=n.length;for(let a=0;a<s;a++){const[m,d]=n[a];Ae(d,qe(r,m),o,t)}},qe=(e,r)=>{let o=e;const t=r.split(pe),n=t.length;for(let s=0;s<n;s++){const a=t[s];let m=o.nextPart.get(a);m||(m=Ke(),o.nextPart.set(a,m)),o=m}return o},_r=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Ir=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=Object.create(null),t=Object.create(null);const n=(s,a)=>{o[s]=a,r++,r>e&&(r=0,t=o,o=Object.create(null))};return{get(s){let a=o[s];if(a!==void 0)return a;if((a=t[s])!==void 0)return n(s,a),a},set(s,a){s in o?o[s]=a:n(s,a)}}},xe="!",Ee=":",Nr=[],Oe=(e,r,o,t,n)=>({modifiers:e,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:t,isExternal:n}),Er=e=>{const{prefix:r,experimentalParseClassName:o}=e;let t=n=>{const s=[];let a=0,m=0,d=0,f;const z=n.length;for(let k=0;k<z;k++){const G=n[k];if(a===0&&m===0){if(G===Ee){s.push(n.slice(d,k)),d=k+1;continue}if(G==="/"){f=k;continue}}G==="["?a++:G==="]"?a--:G==="("?m++:G===")"&&m--}const A=s.length===0?n:n.slice(d);let S=A,g=!1;A.endsWith(xe)?(S=A.slice(0,-1),g=!0):A.startsWith(xe)&&(S=A.slice(1),g=!0);const _=f&&f>d?f-d:void 0;return Oe(s,g,S,_)};if(r){const n=r+Ee,s=t;t=a=>a.startsWith(n)?s(a.slice(n.length)):Oe(Nr,!1,a,void 0,!0)}if(o){const n=t;t=s=>o({className:s,parseClassName:n})}return t},Or=e=>{const r=new Map;return e.orderSensitiveModifiers.forEach((o,t)=>{r.set(o,1e6+t)}),o=>{const t=[];let n=[];for(let s=0;s<o.length;s++){const a=o[s],m=a[0]==="[",d=r.has(a);m||d?(n.length>0&&(n.sort(),t.push(...n),n=[]),t.push(a)):n.push(a)}return n.length>0&&(n.sort(),t.push(...n)),t}},Lr=e=>({cache:Ir(e.cacheSize),parseClassName:Er(e),sortModifiers:Or(e),...Ar(e)}),jr=/\s+/,Br=(e,r)=>{const{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:n,sortModifiers:s}=r,a=[],m=e.trim().split(jr);let d="";for(let f=m.length-1;f>=0;f-=1){const z=m[f],{isExternal:A,modifiers:S,hasImportantModifier:g,baseClassName:_,maybePostfixModifierPosition:k}=o(z);if(A){d=z+(d.length>0?" "+d:d);continue}let G=!!k,O=t(G?_.substring(0,k):_);if(!O){if(!G){d=z+(d.length>0?" "+d:d);continue}if(O=t(_),!O){d=z+(d.length>0?" "+d:d);continue}G=!1}const j=S.length===0?"":S.length===1?S[0]:s(S).join(":"),I=g?j+xe:j,K=I+O;if(a.indexOf(K)>-1)continue;a.push(K);const P=n(O,G);for(let F=0;F<P.length;++F){const J=P[F];a.push(I+J)}d=z+(d.length>0?" "+d:d)}return d},Fr=(...e)=>{let r=0,o,t,n="";for(;r<e.length;)(o=e[r++])&&(t=Xe(o))&&(n&&(n+=" "),n+=t);return n},Xe=e=>{if(typeof e=="string")return e;let r,o="";for(let t=0;t<e.length;t++)e[t]&&(r=Xe(e[t]))&&(o&&(o+=" "),o+=r);return o},ke=(e,...r)=>{let o,t,n,s;const a=d=>{const f=r.reduce((z,A)=>A(z),e());return o=Lr(f),t=o.cache.get,n=o.cache.set,s=m,m(d)},m=d=>{const f=t(d);if(f)return f;const z=Br(d,o);return n(d,z),z};return s=a,(...d)=>s(Fr(...d))},Wr=[],V=e=>{const r=o=>o[e]||Wr;return r.isThemeGetter=!0,r},Je=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,He=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ur=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Dr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Kr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Yr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,qr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Y=e=>Ur.test(e),b=e=>!!e&&!Number.isNaN(Number(e)),q=e=>!!e&&Number.isInteger(Number(e)),we=e=>e.endsWith("%")&&b(e.slice(0,-1)),U=e=>Dr.test(e),Qe=()=>!0,Jr=e=>Kr.test(e)&&!Yr.test(e),Se=()=>!1,Hr=e=>qr.test(e),Qr=e=>Xr.test(e),Zr=e=>!i(e)&&!l(e),$r=e=>X(e,er,Se),i=e=>Je.test(e),H=e=>X(e,rr,Jr),Le=e=>X(e,it,b),et=e=>X(e,or,Qe),rt=e=>X(e,tr,Se),je=e=>X(e,Ze,Se),tt=e=>X(e,$e,Qr),de=e=>X(e,sr,Hr),l=e=>He.test(e),oe=e=>Q(e,rr),ot=e=>Q(e,tr),Be=e=>Q(e,Ze),st=e=>Q(e,er),nt=e=>Q(e,$e),ue=e=>Q(e,sr,!0),at=e=>Q(e,or,!0),X=(e,r,o)=>{const t=Je.exec(e);return t?t[1]?r(t[1]):o(t[2]):!1},Q=(e,r,o=!1)=>{const t=He.exec(e);return t?t[1]?r(t[1]):o:!1},Ze=e=>e==="position"||e==="percentage",$e=e=>e==="image"||e==="url",er=e=>e==="length"||e==="size"||e==="bg-size",rr=e=>e==="length",it=e=>e==="number",tr=e=>e==="family-name",or=e=>e==="number"||e==="weight",sr=e=>e==="shadow",Ce=()=>{const e=V("color"),r=V("font"),o=V("text"),t=V("font-weight"),n=V("tracking"),s=V("leading"),a=V("breakpoint"),m=V("container"),d=V("spacing"),f=V("radius"),z=V("shadow"),A=V("inset-shadow"),S=V("text-shadow"),g=V("drop-shadow"),_=V("blur"),k=V("perspective"),G=V("aspect"),O=V("ease"),j=V("animate"),I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...K(),l,i],F=()=>["auto","hidden","clip","visible","scroll"],J=()=>["auto","contain","none"],u=()=>[l,i,d],R=()=>[Y,"full","auto",...u()],$=()=>[q,"none","subgrid",l,i],ee=()=>["auto",{span:["full",q,l,i]},q,l,i],Z=()=>[q,"auto",l,i],ne=()=>["auto","min","max","fr",l,i],h=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],v=()=>["start","end","center","stretch","center-safe","end-safe"],p=()=>["auto",...u()],y=()=>[Y,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...u()],w=()=>[Y,"screen","full","dvw","lvw","svw","min","max","fit",...u()],C=()=>[Y,"screen","full","lh","dvh","lvh","svh","min","max","fit",...u()],c=()=>[e,l,i],B=()=>[...K(),Be,je,{position:[l,i]}],N=()=>["no-repeat",{repeat:["","x","y","space","round"]}],L=()=>["auto","cover","contain",st,$r,{size:[l,i]}],W=()=>[we,oe,H],x=()=>["","none","full",f,l,i],M=()=>["",b,oe,H],ae=()=>["solid","dashed","dotted","double"],Me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>[b,we,Be,je],Ve=()=>["","none",_,l,i],ie=()=>["none",b,l,i],le=()=>["none",b,l,i],ge=()=>[b,l,i],ce=()=>[Y,"full",...u()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[U],breakpoint:[U],color:[Qe],container:[U],"drop-shadow":[U],ease:["in","out","in-out"],font:[Zr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[U],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[U],shadow:[U],spacing:["px",b],text:[U],"text-shadow":[U],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Y,i,l,G]}],container:["container"],columns:[{columns:[b,i,l,m]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{"inset-s":R(),start:R()}],end:[{"inset-e":R(),end:R()}],"inset-bs":[{"inset-bs":R()}],"inset-be":[{"inset-be":R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[q,"auto",l,i]}],basis:[{basis:[Y,"full","auto",m,...u()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[b,Y,"auto","initial","none",i]}],grow:[{grow:["",b,l,i]}],shrink:[{shrink:["",b,l,i]}],order:[{order:[q,"first","last","none",l,i]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ne()}],"auto-rows":[{"auto-rows":ne()}],gap:[{gap:u()}],"gap-x":[{"gap-x":u()}],"gap-y":[{"gap-y":u()}],"justify-content":[{justify:[...h(),"normal"]}],"justify-items":[{"justify-items":[...v(),"normal"]}],"justify-self":[{"justify-self":["auto",...v()]}],"align-content":[{content:["normal",...h()]}],"align-items":[{items:[...v(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...v(),{baseline:["","last"]}]}],"place-content":[{"place-content":h()}],"place-items":[{"place-items":[...v(),"baseline"]}],"place-self":[{"place-self":["auto",...v()]}],p:[{p:u()}],px:[{px:u()}],py:[{py:u()}],ps:[{ps:u()}],pe:[{pe:u()}],pbs:[{pbs:u()}],pbe:[{pbe:u()}],pt:[{pt:u()}],pr:[{pr:u()}],pb:[{pb:u()}],pl:[{pl:u()}],m:[{m:p()}],mx:[{mx:p()}],my:[{my:p()}],ms:[{ms:p()}],me:[{me:p()}],mbs:[{mbs:p()}],mbe:[{mbe:p()}],mt:[{mt:p()}],mr:[{mr:p()}],mb:[{mb:p()}],ml:[{ml:p()}],"space-x":[{"space-x":u()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":u()}],"space-y-reverse":["space-y-reverse"],size:[{size:y()}],"inline-size":[{inline:["auto",...w()]}],"min-inline-size":[{"min-inline":["auto",...w()]}],"max-inline-size":[{"max-inline":["none",...w()]}],"block-size":[{block:["auto",...C()]}],"min-block-size":[{"min-block":["auto",...C()]}],"max-block-size":[{"max-block":["none",...C()]}],w:[{w:[m,"screen",...y()]}],"min-w":[{"min-w":[m,"screen","none",...y()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[a]},...y()]}],h:[{h:["screen","lh",...y()]}],"min-h":[{"min-h":["screen","lh","none",...y()]}],"max-h":[{"max-h":["screen","lh",...y()]}],"font-size":[{text:["base",o,oe,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,at,et]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",we,i]}],"font-family":[{font:[ot,rt,r]}],"font-features":[{"font-features":[i]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,l,i]}],"line-clamp":[{"line-clamp":[b,"none",l,Le]}],leading:[{leading:[s,...u()]}],"list-image":[{"list-image":["none",l,i]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",l,i]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:c()}],"text-color":[{text:c()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[b,"from-font","auto",l,H]}],"text-decoration-color":[{decoration:c()}],"underline-offset":[{"underline-offset":[b,"auto",l,i]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:u()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l,i]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l,i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:B()}],"bg-repeat":[{bg:N()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},q,l,i],radial:["",l,i],conic:[q,l,i]},nt,tt]}],"bg-color":[{bg:c()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:c()}],"gradient-via":[{via:c()}],"gradient-to":[{to:c()}],rounded:[{rounded:x()}],"rounded-s":[{"rounded-s":x()}],"rounded-e":[{"rounded-e":x()}],"rounded-t":[{"rounded-t":x()}],"rounded-r":[{"rounded-r":x()}],"rounded-b":[{"rounded-b":x()}],"rounded-l":[{"rounded-l":x()}],"rounded-ss":[{"rounded-ss":x()}],"rounded-se":[{"rounded-se":x()}],"rounded-ee":[{"rounded-ee":x()}],"rounded-es":[{"rounded-es":x()}],"rounded-tl":[{"rounded-tl":x()}],"rounded-tr":[{"rounded-tr":x()}],"rounded-br":[{"rounded-br":x()}],"rounded-bl":[{"rounded-bl":x()}],"border-w":[{border:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-bs":[{"border-bs":M()}],"border-w-be":[{"border-be":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":M()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"hidden","none"]}],"border-color":[{border:c()}],"border-color-x":[{"border-x":c()}],"border-color-y":[{"border-y":c()}],"border-color-s":[{"border-s":c()}],"border-color-e":[{"border-e":c()}],"border-color-bs":[{"border-bs":c()}],"border-color-be":[{"border-be":c()}],"border-color-t":[{"border-t":c()}],"border-color-r":[{"border-r":c()}],"border-color-b":[{"border-b":c()}],"border-color-l":[{"border-l":c()}],"divide-color":[{divide:c()}],"outline-style":[{outline:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[b,l,i]}],"outline-w":[{outline:["",b,oe,H]}],"outline-color":[{outline:c()}],shadow:[{shadow:["","none",z,ue,de]}],"shadow-color":[{shadow:c()}],"inset-shadow":[{"inset-shadow":["none",A,ue,de]}],"inset-shadow-color":[{"inset-shadow":c()}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:c()}],"ring-offset-w":[{"ring-offset":[b,H]}],"ring-offset-color":[{"ring-offset":c()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":c()}],"text-shadow":[{"text-shadow":["none",S,ue,de]}],"text-shadow-color":[{"text-shadow":c()}],opacity:[{opacity:[b,l,i]}],"mix-blend":[{"mix-blend":[...Me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Me()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[b]}],"mask-image-linear-from-pos":[{"mask-linear-from":T()}],"mask-image-linear-to-pos":[{"mask-linear-to":T()}],"mask-image-linear-from-color":[{"mask-linear-from":c()}],"mask-image-linear-to-color":[{"mask-linear-to":c()}],"mask-image-t-from-pos":[{"mask-t-from":T()}],"mask-image-t-to-pos":[{"mask-t-to":T()}],"mask-image-t-from-color":[{"mask-t-from":c()}],"mask-image-t-to-color":[{"mask-t-to":c()}],"mask-image-r-from-pos":[{"mask-r-from":T()}],"mask-image-r-to-pos":[{"mask-r-to":T()}],"mask-image-r-from-color":[{"mask-r-from":c()}],"mask-image-r-to-color":[{"mask-r-to":c()}],"mask-image-b-from-pos":[{"mask-b-from":T()}],"mask-image-b-to-pos":[{"mask-b-to":T()}],"mask-image-b-from-color":[{"mask-b-from":c()}],"mask-image-b-to-color":[{"mask-b-to":c()}],"mask-image-l-from-pos":[{"mask-l-from":T()}],"mask-image-l-to-pos":[{"mask-l-to":T()}],"mask-image-l-from-color":[{"mask-l-from":c()}],"mask-image-l-to-color":[{"mask-l-to":c()}],"mask-image-x-from-pos":[{"mask-x-from":T()}],"mask-image-x-to-pos":[{"mask-x-to":T()}],"mask-image-x-from-color":[{"mask-x-from":c()}],"mask-image-x-to-color":[{"mask-x-to":c()}],"mask-image-y-from-pos":[{"mask-y-from":T()}],"mask-image-y-to-pos":[{"mask-y-to":T()}],"mask-image-y-from-color":[{"mask-y-from":c()}],"mask-image-y-to-color":[{"mask-y-to":c()}],"mask-image-radial":[{"mask-radial":[l,i]}],"mask-image-radial-from-pos":[{"mask-radial-from":T()}],"mask-image-radial-to-pos":[{"mask-radial-to":T()}],"mask-image-radial-from-color":[{"mask-radial-from":c()}],"mask-image-radial-to-color":[{"mask-radial-to":c()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":K()}],"mask-image-conic-pos":[{"mask-conic":[b]}],"mask-image-conic-from-pos":[{"mask-conic-from":T()}],"mask-image-conic-to-pos":[{"mask-conic-to":T()}],"mask-image-conic-from-color":[{"mask-conic-from":c()}],"mask-image-conic-to-color":[{"mask-conic-to":c()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:B()}],"mask-repeat":[{mask:N()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",l,i]}],filter:[{filter:["","none",l,i]}],blur:[{blur:Ve()}],brightness:[{brightness:[b,l,i]}],contrast:[{contrast:[b,l,i]}],"drop-shadow":[{"drop-shadow":["","none",g,ue,de]}],"drop-shadow-color":[{"drop-shadow":c()}],grayscale:[{grayscale:["",b,l,i]}],"hue-rotate":[{"hue-rotate":[b,l,i]}],invert:[{invert:["",b,l,i]}],saturate:[{saturate:[b,l,i]}],sepia:[{sepia:["",b,l,i]}],"backdrop-filter":[{"backdrop-filter":["","none",l,i]}],"backdrop-blur":[{"backdrop-blur":Ve()}],"backdrop-brightness":[{"backdrop-brightness":[b,l,i]}],"backdrop-contrast":[{"backdrop-contrast":[b,l,i]}],"backdrop-grayscale":[{"backdrop-grayscale":["",b,l,i]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b,l,i]}],"backdrop-invert":[{"backdrop-invert":["",b,l,i]}],"backdrop-opacity":[{"backdrop-opacity":[b,l,i]}],"backdrop-saturate":[{"backdrop-saturate":[b,l,i]}],"backdrop-sepia":[{"backdrop-sepia":["",b,l,i]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":u()}],"border-spacing-x":[{"border-spacing-x":u()}],"border-spacing-y":[{"border-spacing-y":u()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",l,i]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[b,"initial",l,i]}],ease:[{ease:["linear","initial",O,l,i]}],delay:[{delay:[b,l,i]}],animate:[{animate:["none",j,l,i]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,l,i]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:ie()}],"rotate-x":[{"rotate-x":ie()}],"rotate-y":[{"rotate-y":ie()}],"rotate-z":[{"rotate-z":ie()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:ge()}],"skew-x":[{"skew-x":ge()}],"skew-y":[{"skew-y":ge()}],transform:[{transform:[l,i,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ce()}],"translate-x":[{"translate-x":ce()}],"translate-y":[{"translate-y":ce()}],"translate-z":[{"translate-z":ce()}],"translate-none":["translate-none"],accent:[{accent:c()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:c()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l,i]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-mbs":[{"scroll-mbs":u()}],"scroll-mbe":[{"scroll-mbe":u()}],"scroll-mt":[{"scroll-mt":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pbs":[{"scroll-pbs":u()}],"scroll-pbe":[{"scroll-pbe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l,i]}],fill:[{fill:["none",...c()]}],"stroke-w":[{stroke:[b,oe,H,Le]}],stroke:[{stroke:["none",...c()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},lt=(e,{cacheSize:r,prefix:o,experimentalParseClassName:t,extend:n={},override:s={}})=>(se(e,"cacheSize",r),se(e,"prefix",o),se(e,"experimentalParseClassName",t),me(e.theme,s.theme),me(e.classGroups,s.classGroups),me(e.conflictingClassGroups,s.conflictingClassGroups),me(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),se(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),fe(e.theme,n.theme),fe(e.classGroups,n.classGroups),fe(e.conflictingClassGroups,n.conflictingClassGroups),fe(e.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),nr(e,n,"orderSensitiveModifiers"),e),se=(e,r,o)=>{o!==void 0&&(e[r]=o)},me=(e,r)=>{if(r)for(const o in r)se(e,o,r[o])},fe=(e,r)=>{if(r)for(const o in r)nr(e,r,o)},nr=(e,r,o)=>{const t=r[o];t!==void 0&&(e[o]=e[o]?e[o].concat(t):t)},ct=(e,...r)=>typeof e=="function"?ke(Ce,e,...r):ke(()=>lt(Ce(),e),...r),ar=ke(Ce);function Fe(...e){return ar(yr(e))}var dt=/\s+/g,ut=e=>typeof e!="string"||!e?e:e.replace(dt," ").trim(),be=(...e)=>{const r=[],o=t=>{if(!t&&t!==0&&t!==0n)return;if(Array.isArray(t)){for(let s=0,a=t.length;s<a;s++)o(t[s]);return}const n=typeof t;if(n==="string"||n==="number"||n==="bigint"){if(n==="number"&&t!==t)return;r.push(String(t))}else if(n==="object"){const s=Object.keys(t);for(let a=0,m=s.length;a<m;a++){const d=s[a];t[d]&&r.push(d)}}};for(let t=0,n=e.length;t<n;t++){const s=e[t];s!=null&&o(s)}return r.length>0?ut(r.join(" ")):void 0},We=e=>e===!1?"false":e===!0?"true":e===0?"0":e,E=e=>{if(!e||typeof e!="object")return!0;for(const r in e)return!1;return!0},mt=(e,r)=>{if(e===r)return!0;if(!e||!r)return!1;const o=Object.keys(e),t=Object.keys(r);if(o.length!==t.length)return!1;for(let n=0;n<o.length;n++){const s=o[n];if(!t.includes(s)||e[s]!==r[s])return!1}return!0},ft=(e,r)=>{for(const o in r)if(Object.prototype.hasOwnProperty.call(r,o)){const t=r[o];o in e?e[o]=be(e[o],t):e[o]=t}return e},ir=(e,r)=>{for(let o=0;o<e.length;o++){const t=e[o];Array.isArray(t)?ir(t,r):t&&r.push(t)}},lr=(...e)=>{const r=[];ir(e,r);const o=[];for(let t=0;t<r.length;t++)r[t]&&o.push(r[t]);return o},ze=(e,r)=>{const o={};for(const t in e){const n=e[t];if(t in r){const s=r[t];Array.isArray(n)||Array.isArray(s)?o[t]=lr(s,n):typeof n=="object"&&typeof s=="object"&&n&&s?o[t]=ze(n,s):o[t]=s+" "+n}else o[t]=n}for(const t in r)t in e||(o[t]=r[t]);return o},pt={twMerge:!0,twMergeConfig:{}};function bt(){let e=null,r={},o=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(t){e=t},get cachedTwMergeConfig(){return r},set cachedTwMergeConfig(t){r=t},get didTwMergeConfigChange(){return o},set didTwMergeConfigChange(t){o=t},reset(){e=null,r={},o=!1}}}var D=bt(),gt=e=>{const r=(t,n)=>{const{extend:s=null,slots:a={},variants:m={},compoundVariants:d=[],compoundSlots:f=[],defaultVariants:z={}}=t,A={...pt,...n},S=s?.base?be(s.base,t?.base):t?.base,g=s?.variants&&!E(s.variants)?ze(m,s.variants):m,_=s?.defaultVariants&&!E(s.defaultVariants)?{...s.defaultVariants,...z}:z;!E(A.twMergeConfig)&&!mt(A.twMergeConfig,D.cachedTwMergeConfig)&&(D.didTwMergeConfigChange=!0,D.cachedTwMergeConfig=A.twMergeConfig);const k=E(s?.slots),G=E(a)?{}:{base:be(t?.base,k&&s?.base),...a},O=k?G:ft({...s?.slots},E(G)?{base:t?.base}:G),j=E(s?.compoundVariants)?d:lr(s?.compoundVariants,d),I=P=>{if(E(g)&&E(a)&&k)return e(S,P?.class,P?.className)(A);if(j&&!Array.isArray(j))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof j}`);if(f&&!Array.isArray(f))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof f}`);const F=(h,v=g,p=null,y=null)=>{const w=v[h];if(!w||E(w))return null;const C=y?.[h]??P?.[h];if(C===null)return null;const c=We(C);if(typeof c=="object")return null;const B=_?.[h],N=c??We(B);return w[N||"false"]},J=()=>{if(!g)return null;const h=Object.keys(g),v=[];for(let p=0;p<h.length;p++){const y=F(h[p],g);y&&v.push(y)}return v},u=(h,v)=>{if(!g||typeof g!="object")return null;const p=[];for(const y in g){const w=F(y,g,h,v),C=h==="base"&&typeof w=="string"?w:w&&w[h];C&&p.push(C)}return p},R={};for(const h in P){const v=P[h];v!==void 0&&(R[h]=v)}const $=(h,v)=>{const p=typeof P?.[h]=="object"?{[h]:P[h]?.initial}:{};return{..._,...R,...p,...v}},ee=(h=[],v)=>{const p=[],y=h.length;for(let w=0;w<y;w++){const{class:C,className:c,...B}=h[w];let N=!0;const L=$(null,v);for(const W in B){const x=B[W],M=L[W];if(Array.isArray(x)){if(!x.includes(M)){N=!1;break}}else{if((x==null||x===!1)&&(M==null||M===!1))continue;if(M!==x){N=!1;break}}}N&&(C&&p.push(C),c&&p.push(c))}return p},Z=h=>{const v=ee(j,h);if(!Array.isArray(v))return v;const p={},y=e;for(let w=0;w<v.length;w++){const C=v[w];if(typeof C=="string")p.base=y(p.base,C)(A);else if(typeof C=="object")for(const c in C)p[c]=y(p[c],C[c])(A)}return p},ne=h=>{if(f.length<1)return null;const v={},p=$(null,h);for(let y=0;y<f.length;y++){const{slots:w=[],class:C,className:c,...B}=f[y];if(!E(B)){let N=!0;for(const L in B){const W=p[L],x=B[L];if(W===void 0||(Array.isArray(x)?!x.includes(W):x!==W)){N=!1;break}}if(!N)continue}for(let N=0;N<w.length;N++){const L=w[N];v[L]||(v[L]=[]),v[L].push([C,c])}}return v};if(!E(a)||!k){const h={};if(typeof O=="object"&&!E(O)){const v=e;for(const p in O)h[p]=y=>{const w=Z(y),C=ne(y);return v(O[p],u(p,y),w?w[p]:void 0,C?C[p]:void 0,y?.class,y?.className)(A)}}return h}return e(S,J(),ee(j),P?.class,P?.className)(A)},K=()=>{if(!(!g||typeof g!="object"))return Object.keys(g)};return I.variantKeys=K(),I.extend=s,I.base=S,I.slots=O,I.variants=g,I.defaultVariants=_,I.compoundSlots=f,I.compoundVariants=j,I};return{tv:r,createTV:t=>(n,s)=>r(n,s?ze(t,s):t)}},ht=e=>E(e)?ar:ct({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),vt=(e,r)=>{const o=be(e);return!o||!(r?.twMerge??!0)?o:((!D.cachedTwMerge||D.didTwMergeConfigChange)&&(D.didTwMergeConfigChange=!1,D.cachedTwMerge=ht(D.cachedTwMergeConfig)),D.cachedTwMerge(o)||void 0)},yt=(...e)=>r=>vt(e,r),{tv:wt}=gt(yt);const Ue=wt({base:"inline-flex shrink-0 items-center justify-center gap-1.5 rounded-[4px] font-normal whitespace-nowrap transition-[color,background] duration-150 cursor-pointer disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",variants:{variant:{default:"bg-[var(--color-bg-surface)] text-[var(--color-text-primary)] border border-[var(--color-border)] hover:bg-[var(--color-bg-hover)]",ghost:"bg-transparent text-[var(--color-text-tertiary)] hover:text-[var(--color-text-secondary)] hover:bg-[var(--color-bg-hover)]",outline:"bg-transparent text-[var(--color-text-secondary)] border border-[var(--color-border)] hover:bg-[var(--color-bg-hover)]",accent:"bg-[var(--color-accent)] text-white hover:bg-[var(--color-accent-hover)] border border-transparent",destructive:"bg-[var(--color-destructive)] text-white hover:bg-[var(--color-destructive-hover)]",link:"text-[var(--color-accent)] underline-offset-4 hover:underline"},size:{default:"h-7 px-3 text-xs",sm:"h-6 px-2 text-[12px]",lg:"h-8 px-4 text-sm",icon:"size-7 p-0"}},defaultVariants:{variant:"default",size:"default"}});var xt=De("<a><!></a>"),kt=De("<button><!></button>");function Gt(e,r){br(r,!0);let o=te(r,"variant",3,"default"),t=te(r,"size",3,"default"),n=te(r,"ref",15,null),s=te(r,"href",3,void 0),a=te(r,"type",3,"button"),m=xr(r,["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children"]);var d=vr(),f=gr(d);{var z=S=>{var g=xt();Re(g,k=>({class:k,href:r.disabled?void 0:s(),"aria-disabled":r.disabled,role:r.disabled?"link":void 0,tabindex:r.disabled?-1:void 0,...m}),[()=>Fe(Ue({variant:o(),size:t()}),r.class)]);var _=Te(g);_e(_,()=>r.children??Ge),Pe(g),Ie(g,k=>n(k),()=>n()),he(S,g)},A=S=>{var g=kt();Re(g,k=>({class:k,type:a(),disabled:r.disabled,...m}),[()=>Fe(Ue({variant:o(),size:t()}),r.class)]);var _=Te(g);_e(_,()=>r.children??Ge),Pe(g),Ie(g,k=>n(k),()=>n()),he(S,g)};wr(f,S=>{s()?S(z):S(A,!1)})}he(e,d),hr()}export{Gt as B,Ue as a,Tt as b,Fe as c,wt as t};
@@ -1 +1 @@
1
- import{e as r,f as w,g as n,s as e}from"./CCA2E2CK.js";import{s as f,g as A,b as _,e as v}from"./BgRr0V7g.js";function B(){let a=r(w([])),s=r(null),l=r(!1),o=r(!1),i=r(""),u=r(null),c=r(!1),g=r(null);async function d(){try{const[t,h]=await Promise.all([_(),v()]);e(a,t.insights??[],!0),e(s,t.generatedAt??null,!0),e(i,h.home_brief??"",!0),e(u,h.accent_color??null,!0),e(o,!0),e(c,!0)}catch(t){console.error("Failed to load insights:",t),e(o,!0),e(c,!0)}}async function m(){e(l,!0),e(g,null);try{const t=await A();e(a,t.insights??[],!0),e(s,t.generatedAt??null,!0),e(o,!0)}catch(t){console.error("Failed to generate insights:",t),e(g,t?.message??"Failed to generate insights",!0)}finally{e(l,!1)}}async function y(t){e(i,t,!0),await f({home_brief:t})}async function b(t){e(u,t,!0),await f({accent_color:t})}async function p(){await f({home_brief:""}),e(i,""),e(a,[],!0),e(s,null)}return{get insights(){return n(a)},get generatedAt(){return n(s)},get loading(){return n(l)},get loaded(){return n(o)},get homeBrief(){return n(i)},get accentColor(){return n(u)},get briefLoaded(){return n(c)},get error(){return n(g)},load:d,generate:m,saveBrief:y,saveAccentColor:b,reset:p}}const I=B();export{I as insightsStore};
1
+ import{e as r,f as w,g as n,s as e}from"./BenpwI6m.js";import{s as f,g as A,b as _,e as v}from"./BjAmYrTY.js";function B(){let a=r(w([])),s=r(null),l=r(!1),o=r(!1),i=r(""),u=r(null),c=r(!1),g=r(null);async function d(){try{const[t,h]=await Promise.all([_(),v()]);e(a,t.insights??[],!0),e(s,t.generatedAt??null,!0),e(i,h.home_brief??"",!0),e(u,h.accent_color??null,!0),e(o,!0),e(c,!0)}catch(t){console.error("Failed to load insights:",t),e(o,!0),e(c,!0)}}async function m(){e(l,!0),e(g,null);try{const t=await A();e(a,t.insights??[],!0),e(s,t.generatedAt??null,!0),e(o,!0)}catch(t){console.error("Failed to generate insights:",t),e(g,t?.message??"Failed to generate insights",!0)}finally{e(l,!1)}}async function y(t){e(i,t,!0),await f({home_brief:t})}async function b(t){e(u,t,!0),await f({accent_color:t})}async function p(){await f({home_brief:""}),e(i,""),e(a,[],!0),e(s,null)}return{get insights(){return n(a)},get generatedAt(){return n(s)},get loading(){return n(l)},get loaded(){return n(o)},get homeBrief(){return n(i)},get accentColor(){return n(u)},get briefLoaded(){return n(c)},get error(){return n(g)},load:d,generate:m,saveBrief:y,saveAccentColor:b,reset:p}}const I=B();export{I as insightsStore};
@@ -1 +1 @@
1
- import{s as A}from"./csGnu8Rb.js";import{a as f,s as M,f as x}from"./usxM-xOh.js";import{i as k}from"./DIBaaeCL.js";import{p as B,l as u,s as b,d as p,g as o,a as C,c as g,n as N,r as m,b as P,m as _,t as R}from"./CCA2E2CK.js";import{i as S}from"./yUs562n0.js";import{a as Y}from"./DkuxRPZv.js";import{l as v,p as h}from"./DHholpIc.js";const j=()=>{const e=A;return{page:{subscribe:e.page.subscribe},navigating:{subscribe:e.navigating.subscribe},updated:e.updated}},L={subscribe(e){return j().page.subscribe(e)}};var q=x("<title> </title>"),D=x('<svg><!><path d="M17 15 17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"></path></svg>');function O(e,s){const t=v(s,["children","$$slots","$$events","$$legacy"]),w=v(t,["size","title"]);B(s,!1);const a=_(),c=_();let d=h(s,"size",8,16),r=h(s,"title",8,void 0);u(()=>(p(t),p(r())),()=>{b(a,t["aria-label"]||t["aria-labelledby"]||r())}),u(()=>(o(a),p(t)),()=>{b(c,{"aria-hidden":o(a)?void 0:!0,role:o(a)?"img":void 0,focusable:Number(t.tabindex)===0?!0:void 0})}),C(),k();var i=D();Y(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...o(c),...w}));var y=g(i);{var z=n=>{var l=q(),$=g(l,!0);m(l),R(()=>M($,r())),f(n,l)};S(y,n=>{r()&&n(z)})}N(),m(i),f(e,i),P()}export{O as A,L as p};
1
+ import{s as A}from"./BvwzgaXa.js";import{a as f,s as M,f as x}from"./COik51fd.js";import{i as k}from"./BSBiehHY.js";import{p as B,l as u,s as b,d as p,g as o,a as C,c as g,n as N,r as m,b as P,m as _,t as R}from"./BenpwI6m.js";import{i as S}from"./Dvv4bkXH.js";import{a as Y}from"./CStpN6HQ.js";import{l as v,p as h}from"./wWaI7EIw.js";const j=()=>{const e=A;return{page:{subscribe:e.page.subscribe},navigating:{subscribe:e.navigating.subscribe},updated:e.updated}},L={subscribe(e){return j().page.subscribe(e)}};var q=x("<title> </title>"),D=x('<svg><!><path d="M17 15 17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"></path></svg>');function O(e,s){const t=v(s,["children","$$slots","$$events","$$legacy"]),w=v(t,["size","title"]);B(s,!1);const a=_(),c=_();let d=h(s,"size",8,16),r=h(s,"title",8,void 0);u(()=>(p(t),p(r())),()=>{b(a,t["aria-label"]||t["aria-labelledby"]||r())}),u(()=>(o(a),p(t)),()=>{b(c,{"aria-hidden":o(a)?void 0:!0,role:o(a)?"img":void 0,focusable:Number(t.tabindex)===0?!0:void 0})}),C(),k();var i=D();Y(i,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...o(c),...w}));var y=g(i);{var z=n=>{var l=q(),$=g(l,!0);m(l),R(()=>M($,r())),f(n,l)};S(y,n=>{r()&&n(z)})}N(),m(i),f(e,i),P()}export{O as A,L as p};
@@ -1 +1 @@
1
- import{h as y,i as _,_ as o,$ as u,j as t,C as g,X as i,w as l,k as d,x as p,o as m}from"./CCA2E2CK.js";function C(n,r){let s=null,E=t;var a;if(t){s=p;for(var e=m(document.head);e!==null&&(e.nodeType!==g||e.data!==n);)e=i(e);if(e===null)l(!1);else{var f=i(e);e.remove(),d(f)}}t||(a=document.head.appendChild(y()));try{_(()=>r(a),o|u)}finally{E&&(l(!0),d(s))}}export{C as h};
1
+ import{h as y,i as _,_ as o,$ as u,j as t,C as g,X as i,w as l,k as d,x as p,o as m}from"./BenpwI6m.js";function C(n,r){let s=null,E=t;var a;if(t){s=p;for(var e=m(document.head);e!==null&&(e.nodeType!==g||e.data!==n);)e=i(e);if(e===null)l(!1);else{var f=i(e);e.remove(),d(f)}}t||(a=document.head.appendChild(y()));try{_(()=>r(a),o|u)}finally{E&&(l(!0),d(s))}}export{C as h};
@@ -0,0 +1 @@
1
+ import{c as p,a as l,p as _e,b as z,s as pe,f as se}from"./COik51fd.js";import{p as h,a0 as v,ae as le,b as y,g as f,a3 as q,c as w,r as A,a4 as B,t as N,l as te,s as re,d as X,a as me,n as he,m as oe}from"./BenpwI6m.js";import{s as m,a as ie}from"./CStpN6HQ.js";import{c as E}from"./CbwDFpOn.js";import{p as s,s as I,r as G,l as ae}from"./wWaI7EIw.js";import{p as x,U as ye,h as K,f as be,V as Ce,W as De,X as Pe,Y as Se,Z as Oe,_ as ne,m as j,T as Fe,$ as xe,a0 as we}from"./DkilSMcP.js";import{c as R}from"./DAD7hf2c.js";import{i as Y}from"./Dvv4bkXH.js";import{c as J,s as L}from"./CieeblIr.js";import{i as Ae}from"./BSBiehHY.js";function ze(a,e){h(e,!0);let t=s(e,"open",15,!1),n=s(e,"onOpenChange",3,x),r=s(e,"onOpenChangeComplete",3,x);ye.create({variant:K(()=>"dialog"),open:K(()=>t(),i=>{t(i),n()(i)}),onOpenChangeComplete:K(()=>r())});var c=p(),u=v(c);m(u,()=>e.children??le),l(a,c),y()}var He=z("<!> <!>",1),Me=z("<!> <div><!></div>",1);function Ve(a,e){const t=_e();h(e,!0);let n=s(e,"id",19,()=>be(t)),r=s(e,"ref",15,null),c=s(e,"forceMount",3,!1),u=s(e,"onCloseAutoFocus",3,x),i=s(e,"onOpenAutoFocus",3,x),d=s(e,"onEscapeKeydown",3,x),b=s(e,"onInteractOutside",3,x),g=s(e,"trapFocus",3,!0),_=s(e,"preventScroll",3,!0),C=s(e,"restoreScrollDelay",3,null),D=G(e,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const o=Ce.create({id:K(()=>n()),ref:K(()=>r(),S=>r(S))}),P=B(()=>j(D,o.props));var Z=p(),Q=v(Z);{var k=S=>{De(S,{get ref(){return o.opts.ref},loop:!0,get trapFocus(){return g()},get enabled(){return o.root.opts.open.current},get onOpenAutoFocus(){return i()},get onCloseAutoFocus(){return u()},focusScope:(ce,de)=>{let $=()=>de?.().props;Pe(ce,I(()=>f(P),{get enabled(){return o.root.opts.open.current},get ref(){return o.opts.ref},onEscapeKeydown:T=>{d()(T),!T.defaultPrevented&&o.root.handleClose()},children:(T,We)=>{Se(T,I(()=>f(P),{get ref(){return o.opts.ref},get enabled(){return o.root.opts.open.current},onInteractOutside:W=>{b()(W),!W.defaultPrevented&&o.root.handleClose()},children:(W,Ye)=>{Oe(W,I(()=>f(P),{get ref(){return o.opts.ref},get enabled(){return o.root.opts.open.current},children:(ue,Be)=>{var ee=p(),fe=v(ee);{var ve=F=>{var H=He(),M=v(H);{var V=O=>{ne(O,{get preventScroll(){return _()},get restoreScrollDelay(){return C()}})};Y(M,O=>{o.root.opts.open.current&&O(V)})}var U=q(M,2);{let O=B(()=>({props:j(f(P),$()),...o.snippetProps}));m(U,()=>e.child,()=>f(O))}l(F,H)},ge=F=>{var H=Me(),M=v(H);ne(M,{get preventScroll(){return _()}});var V=q(M,2);ie(V,O=>({...O}),[()=>j(f(P),$())]);var U=w(V);m(U,()=>e.children??le),A(V),l(F,H)};Y(fe,F=>{e.child?F(ve):F(ge,!1)})}l(ue,ee)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};Y(Q,S=>{(o.shouldRender||c())&&S(k)})}l(a,Z),y()}function et(a,e){h(e,!0);let t=s(e,"open",15,!1),n=G(e,["$$slots","$$events","$$legacy","open","onOpenChange","children"]);var r=p(),c=v(r);E(c,()=>ze,(u,i)=>{i(u,I({get onOpenChange(){return e.onOpenChange}},()=>n,{get open(){return t()},set open(d){t(d)},children:(d,b)=>{var g=p(),_=v(g);m(_,()=>e.children),l(d,g)},$$slots:{default:!0}}))}),l(a,r),y()}var Ee=z("<!> <!>",1);function tt(a,e){h(e,!0);let t=s(e,"size",3,"md"),n=G(e,["$$slots","$$events","$$legacy","children","class","size"]);var r=p(),c=v(r);E(c,()=>Fe,(u,i)=>{i(u,{children:(d,b)=>{var g=Ee(),_=v(g);E(_,()=>xe,(D,o)=>{o(D,{class:"dialog-overlay"})});var C=q(_,2);{let D=B(()=>R("dialog-content",`dialog-${t()}`,e.class));E(C,()=>Ve,(o,P)=>{P(o,I({get class(){return f(D)}},()=>n,{children:(Z,Q)=>{var k=p(),S=v(k);m(S,()=>e.children),l(Z,k)},$$slots:{default:!0}}))})}l(d,g)},$$slots:{default:!0}})}),l(a,r),y()}var Ie=z("<div><!></div>");function rt(a,e){h(e,!0);var t=Ie(),n=w(t);m(n,()=>e.children),A(t),N(r=>L(t,1,r),[()=>J(R("dialog-header",e.class))]),l(a,t),y()}function ot(a,e){h(e,!0);var t=p(),n=v(t);{let r=B(()=>R("dialog-title",e.class));E(n,()=>we,(c,u)=>{u(c,{get class(){return f(r)},children:(i,d)=>{var b=p(),g=v(b);m(g,()=>e.children),l(i,b)},$$slots:{default:!0}})})}l(a,t),y()}var Ke=z("<div><!></div>");function at(a,e){h(e,!0);var t=Ke(),n=w(t);m(n,()=>e.children),A(t),N(r=>L(t,1,r),[()=>J(R("dialog-body",e.class))]),l(a,t),y()}var Re=z("<div><!></div>");function nt(a,e){h(e,!0);var t=Re(),n=w(t);m(n,()=>e.children),A(t),N(r=>L(t,1,r),[()=>J(R("dialog-footer",e.class))]),l(a,t),y()}var Ze=se("<title> </title>"),ke=se('<svg><!><path d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"></path><path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"></path></svg>');function st(a,e){const t=ae(e,["children","$$slots","$$events","$$legacy"]),n=ae(t,["size","title"]);h(e,!1);const r=oe(),c=oe();let u=s(e,"size",8,16),i=s(e,"title",8,void 0);te(()=>(X(t),X(i())),()=>{re(r,t["aria-label"]||t["aria-labelledby"]||i())}),te(()=>(f(r),X(t)),()=>{re(c,{"aria-hidden":f(r)?void 0:!0,role:f(r)?"img":void 0,focusable:Number(t.tabindex)===0?!0:void 0})}),me(),Ae();var d=ke();ie(d,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:u(),height:u(),...f(c),...n}));var b=w(d);{var g=_=>{var C=Ze(),D=w(C,!0);A(C),N(()=>pe(D,i())),l(_,C)};Y(b,_=>{i()&&_(g)})}he(2),A(d),l(a,d),y()}export{st as C,tt as D,rt as a,ot as b,at as c,nt as d,et as e};
@@ -0,0 +1,5 @@
1
+ import{l as Qn,o as V,c as M,a as C,p as Ht,b as ct,m as io,u as so}from"./COik51fd.js";import{aM as ao,j as co,q as uo,bx as lo,i as fo,e as T,by as Pn,N as ho,g as l,s as y,aZ as Zt,a4 as x,f as Bt,aX as go,a1 as Tn,aW as po,a6 as mo,a2 as Z,a7 as Ve,aE as vo,p as k,a0 as P,b as N,ae as L,c as St,r as At,bz as yo,bA as $n,a3 as ge,aD as bo}from"./BenpwI6m.js";import{s as D,a as Ot}from"./CStpN6HQ.js";import{p as v,r as W,s as J}from"./wWaI7EIw.js";import{B as wo,i as nt,b as tr}from"./Dvv4bkXH.js";import{c as Et}from"./CbwDFpOn.js";import{c as Ct,a as er}from"./DAD7hf2c.js";import{b as Be}from"./CieeblIr.js";function xo(){return Symbol(ao)}const So=Symbol("NaN");function Ao(e,t,n){co&&uo();var r=new wo(e),o=!lo();fo(()=>{var s=t();s!==s&&(s=So),o&&s!==null&&typeof s=="object"&&(s={}),r.ensure(s,n)})}class Oo extends Map{#t=new Map;#e=T(0);#n=T(0);#r=Pn||-1;constructor(t){if(super(),t){for(var[n,r]of t)super.set(n,r);this.#n.v=super.size}}#o(t){return Pn===this.#r?T(t):ho(t)}has(t){var n=this.#t,r=n.get(t);if(r===void 0)if(super.has(t))r=this.#o(0),n.set(t,r);else return l(this.#e),!1;return l(r),!0}forEach(t,n){this.#i(),super.forEach(t,n)}get(t){var n=this.#t,r=n.get(t);if(r===void 0)if(super.has(t))r=this.#o(0),n.set(t,r);else{l(this.#e);return}return l(r),super.get(t)}set(t,n){var r=this.#t,o=r.get(t),s=super.get(t),i=super.set(t,n),a=this.#e;if(o===void 0)o=this.#o(0),r.set(t,o),y(this.#n,super.size),Zt(a);else if(s!==n){Zt(o);var c=a.reactions===null?null:new Set(a.reactions),u=c===null||!o.reactions?.every(h=>c.has(h));u&&Zt(a)}return i}delete(t){var n=this.#t,r=n.get(t),o=super.delete(t);return r!==void 0&&(n.delete(t),y(r,-1)),o&&(y(this.#n,super.size),Zt(this.#e)),o}clear(){if(super.size!==0){super.clear();var t=this.#t;y(this.#n,0);for(var n of t.values())y(n,-1);Zt(this.#e),t.clear()}}#i(){l(this.#e);var t=this.#t;if(this.#n.v!==t.size){for(var n of super.keys())if(!t.has(n)){var r=this.#o(0);t.set(n,r)}}for([,r]of this.#t)l(r)}keys(){return l(this.#e),super.keys()}values(){return this.#i(),super.values()}entries(){return this.#i(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return l(this.#n),super.size}}function Eo(e){return typeof e=="function"}function oe(e){return e!==null&&typeof e=="object"}const Co=["string","number","bigint","boolean"];function ze(e){return e==null||Co.includes(typeof e)?!0:Array.isArray(e)?e.every(t=>ze(t)):typeof e=="object"?Object.getPrototypeOf(e)===Object.prototype:!1}const Wt=Symbol("box"),Me=Symbol("is-writable");function w(e,t){const n=x(e);return t?{[Wt]:!0,[Me]:!0,get current(){return l(n)},set current(r){t(r)}}:{[Wt]:!0,get current(){return e()}}}function ie(e){return oe(e)&&Wt in e}function Je(e){return ie(e)&&Me in e}function nr(e){return ie(e)?e:Eo(e)?w(e):ut(e)}function Po(e){return Object.entries(e).reduce((t,[n,r])=>ie(r)?(Je(r)?Object.defineProperty(t,n,{get(){return r.current},set(o){r.current=o}}):Object.defineProperty(t,n,{get(){return r.current}}),t):Object.assign(t,{[n]:r}),{})}function To(e){return Je(e)?{[Wt]:!0,get current(){return e.current}}:e}function ut(e){let t=T(Bt(e));return{[Wt]:!0,[Me]:!0,get current(){return l(t)},set current(n){y(t,n,!0)}}}function Dt(e){let t=T(Bt(e));return{[Wt]:!0,[Me]:!0,get current(){return l(t)},set current(n){y(t,n,!0)}}}Dt.from=nr;Dt.with=w;Dt.flatten=Po;Dt.readonly=To;Dt.isBox=ie;Dt.isWritableBox=Je;function rr(...e){return function(t){for(const n of e)if(n){if(t.defaultPrevented)return;typeof n=="function"?n.call(this,t):n.current?.call(this,t)}}}var Mn=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Mo=/\n/g,Fo=/^\s*/,Io=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ro=/^:\s*/,ko=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,No=/^[;\s]*/,Do=/^\s+|\s+$/g,_o=`
2
+ `,Fn="/",In="*",It="",Bo="comment",Lo="declaration";function Wo(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(g){var p=g.match(Mo);p&&(n+=p.length);var b=g.lastIndexOf(_o);r=~b?g.length-b:r+g.length}function s(){var g={line:n,column:r};return function(p){return p.position=new i(g),u(),p}}function i(g){this.start=g,this.end={line:n,column:r},this.source=t.source}i.prototype.content=e;function a(g){var p=new Error(t.source+":"+n+":"+r+": "+g);if(p.reason=g,p.filename=t.source,p.line=n,p.column=r,p.source=e,!t.silent)throw p}function c(g){var p=g.exec(e);if(p){var b=p[0];return o(b),e=e.slice(b.length),p}}function u(){c(Fo)}function h(g){var p;for(g=g||[];p=d();)p!==!1&&g.push(p);return g}function d(){var g=s();if(!(Fn!=e.charAt(0)||In!=e.charAt(1))){for(var p=2;It!=e.charAt(p)&&(In!=e.charAt(p)||Fn!=e.charAt(p+1));)++p;if(p+=2,It===e.charAt(p-1))return a("End of comment missing");var b=e.slice(2,p-2);return r+=2,o(b),e=e.slice(p),r+=2,g({type:Bo,comment:b})}}function m(){var g=s(),p=c(Io);if(p){if(d(),!c(Ro))return a("property missing ':'");var b=c(ko),S=g({type:Lo,property:Rn(p[0].replace(Mn,It)),value:b?Rn(b[0].replace(Mn,It)):It});return c(No),S}}function f(){var g=[];h(g);for(var p;p=m();)p!==!1&&(g.push(p),h(g));return g}return u(),f()}function Rn(e){return e?e.replace(Do,It):It}function Ko(e,t){let n=null;if(!e||typeof e!="string")return n;const r=Wo(e),o=typeof t=="function";return r.forEach(s=>{if(s.type!=="declaration")return;const{property:i,value:a}=s;o?t(i,a,s):a&&(n=n||{},n[i]=a)}),n}const Vo=/\d/,zo=["-","_","/","."];function Ho(e=""){if(!Vo.test(e))return e!==e.toLowerCase()}function jo(e){const t=[];let n="",r,o;for(const s of e){const i=zo.includes(s);if(i===!0){t.push(n),n="",r=void 0;continue}const a=Ho(s);if(o===!1){if(r===!1&&a===!0){t.push(n),n=s,r=a;continue}if(r===!0&&a===!1&&n.length>1){const c=n.at(-1);t.push(n.slice(0,Math.max(0,n.length-1))),n=c+s,r=a;continue}}n+=s,r=a,o=i}return t.push(n),t}function or(e){return e?jo(e).map(t=>Go(t)).join(""):""}function Uo(e){return Yo(or(e||""))}function Go(e){return e?e[0].toUpperCase()+e.slice(1):""}function Yo(e){return e?e[0].toLowerCase()+e.slice(1):""}function te(e){if(!e)return{};const t={};function n(r,o){if(r.startsWith("-moz-")||r.startsWith("-webkit-")||r.startsWith("-ms-")||r.startsWith("-o-")){t[or(r)]=o;return}if(r.startsWith("--")){t[r]=o;return}t[Uo(r)]=o}return Ko(e,n),t}function Rt(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}function Xo(e,t){const n=RegExp(e,"g");return r=>{if(typeof r!="string")throw new TypeError(`expected an argument of type string, but got ${typeof r}`);return r.match(n)?r.replace(n,t):r}}const qo=Xo(/[A-Z]/,e=>`-${e.toLowerCase()}`);function Zo(e){if(!e||typeof e!="object"||Array.isArray(e))throw new TypeError(`expected an argument of type object, but got ${typeof e}`);return Object.keys(e).map(t=>`${qo(t)}: ${e[t]};`).join(`
3
+ `)}function ir(e={}){return Zo(e).replace(`
4
+ `," ")}const Jo=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],Qo=new Set(Jo);function $o(e){return Qo.has(e)}function tt(...e){const t={...e[0]};for(let n=1;n<e.length;n++){const r=e[n];if(r){for(const o of Object.keys(r)){const s=t[o],i=r[o],a=typeof s=="function",c=typeof i=="function";if(a&&$o(o)){const u=s,h=i;t[o]=rr(u,h)}else if(a&&c)t[o]=Rt(s,i);else if(o==="class"){const u=ze(s),h=ze(i);u&&h?t[o]=Be(s,i):u?t[o]=Be(s):h&&(t[o]=Be(i))}else if(o==="style"){const u=typeof s=="object",h=typeof i=="object",d=typeof s=="string",m=typeof i=="string";if(u&&h)t[o]={...s,...i};else if(u&&m){const f=te(i);t[o]={...s,...f}}else if(d&&h){const f=te(s);t[o]={...f,...i}}else if(d&&m){const f=te(s),g=te(i);t[o]={...f,...g}}else u?t[o]=s:h?t[o]=i:d?t[o]=s:m&&(t[o]=i)}else t[o]=i!==void 0?i:s}for(const o of Object.getOwnPropertySymbols(r)){const s=t[o],i=r[o];t[o]=i!==void 0?i:s}}}return typeof t.style=="object"&&(t.style=ir(t.style).replaceAll(`
5
+ `," ")),t.hidden===!1&&(t.hidden=void 0,delete t.hidden),t.disabled===!1&&(t.disabled=void 0,delete t.disabled),t}const sr=typeof window<"u"?window:void 0;function ti(e){let t=e.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}class ei{#t;#e;constructor(t={}){const{window:n=sr,document:r=n?.document}=t;n!==void 0&&(this.#t=r,this.#e=Qn(o=>{const s=V(n,"focusin",o),i=V(n,"focusout",o);return()=>{s(),i()}}))}get current(){return this.#e?.(),this.#t?ti(this.#t):null}}new ei;function ni(e){return typeof e=="function"}class Pt{#t;#e;constructor(t){this.#t=t,this.#e=Symbol(t)}get key(){return this.#e}exists(){return go(this.#e)}get(){const t=Tn(this.#e);if(t===void 0)throw new Error(`Context "${this.#t}" not found`);return t}getOr(t){const n=Tn(this.#e);return n===void 0?t:n}set(t){return po(this.#e,t)}}function ri(e,t){switch(e){case"post":Z(t);break;case"pre":mo(t);break}}function ar(e,t,n,r={}){const{lazy:o=!1}=r;let s=!o,i=Array.isArray(e)?[]:void 0;ri(t,()=>{const a=Array.isArray(e)?e.map(u=>u()):e();if(!s){s=!0,i=a;return}const c=Ve(()=>n(a,i));return i=a,c})}function H(e,t,n){ar(e,"post",t,n)}function oi(e,t,n){ar(e,"pre",t,n)}H.pre=oi;function kn(e){return ni(e)?e():e}class ii{#t={width:0,height:0};#e=!1;#n;#r;#o;#i=x(()=>(l(this.#s)?.(),this.getSize().width));#a=x(()=>(l(this.#s)?.(),this.getSize().height));#s=x(()=>{const t=kn(this.#r);if(t)return Qn(n=>{if(!this.#o)return;const r=new this.#o.ResizeObserver(o=>{this.#e=!0;for(const s of o){const i=this.#n.box==="content-box"?s.contentBoxSize:s.borderBoxSize,a=Array.isArray(i)?i:[i];this.#t.width=a.reduce((c,u)=>Math.max(c,u.inlineSize),0),this.#t.height=a.reduce((c,u)=>Math.max(c,u.blockSize),0)}n()});return r.observe(t),()=>{this.#e=!1,r.disconnect()}})});constructor(t,n={box:"border-box"}){this.#o=n.window??sr,this.#n=n,this.#r=t,this.#t={width:0,height:0}}calculateSize(){const t=kn(this.#r);if(!t||!this.#o)return;const n=t.offsetWidth,r=t.offsetHeight;if(this.#n.box==="border-box")return{width:n,height:r};const o=this.#o.getComputedStyle(t),s=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),i=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),a=parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),c=parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),u=n-s-a,h=r-i-c;return{width:u,height:h}}getSize(){return this.#e?this.#t:this.calculateSize()??this.#t}get current(){return l(this.#s)?.(),this.getSize()}get width(){return l(this.#i)}get height(){return l(this.#a)}}function _t(e){Z(()=>()=>{e()})}function cr(e,t){return setTimeout(t,e)}function lt(e){vo().then(e)}const si=1,ai=9,ci=11;function He(e){return oe(e)&&e.nodeType===si&&typeof e.nodeName=="string"}function ur(e){return oe(e)&&e.nodeType===ai}function ui(e){return oe(e)&&e.constructor?.name==="VisualViewport"}function li(e){return oe(e)&&e.nodeType!==void 0}function lr(e){return li(e)&&e.nodeType===ci&&"host"in e}function di(e,t){if(!e||!t||!He(e)||!He(t))return!1;const n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&lr(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function se(e){return ur(e)?e:ui(e)?e.document:e?.ownerDocument??document}function Qe(e){return lr(e)?Qe(e.host):ur(e)?e.defaultView??window:He(e)?e.ownerDocument?.defaultView??window:window}function fi(e){let t=e.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}class $e{element;#t=x(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return l(this.#t)}set root(t){y(this.#t,t)}constructor(t){typeof t=="function"?this.element=w(t):this.element=t}getDocument=()=>se(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>fi(this.root);isActiveElement=t=>t===this.getActiveElement();getElementById(t){return this.root.getElementById(t)}querySelector=t=>this.root?this.root.querySelector(t):null;querySelectorAll=t=>this.root?this.root.querySelectorAll(t):[];setTimeout=(t,n)=>this.getWindow().setTimeout(t,n);clearTimeout=t=>this.getWindow().clearTimeout(t)}function Q(e,t){return{[xo()]:n=>ie(e)?(e.current=n,Ve(()=>t?.(n)),()=>{"isConnected"in n&&n.isConnected||(e.current=null,t?.(null))}):(e(n),Ve(()=>t?.(n)),()=>{"isConnected"in n&&n.isConnected||(e(null),t?.(null))})}}function tn(e){return e?"true":"false"}function Kt(e){return e?"":void 0}function fc(e){return e?!0:void 0}function Fe(e){return e?"open":"closed"}function hc(e,t){return t?"mixed":e?"true":"false"}class hi{#t;#e;attrs;constructor(t){this.#t=t.getVariant?t.getVariant():null,this.#e=this.#t?`data-${this.#t}-`:`data-${t.component}-`,this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(t.parts.map(n=>[n,this.getAttr(n)]))}getAttr(t,n){return n?`data-${n}-${t}`:`${this.#e}${t}`}selector(t,n){return`[${this.getAttr(t,n)}]`}}function dr(e){const t=new hi(e);return{...t.attrs,selector:t.selector,getAttr:t.getAttr}}const ne="ArrowDown",ae="ArrowLeft",ce="ArrowRight",pe="ArrowUp",fr="End",Ie="Enter",gi="Escape",hr="Home",pi="PageDown",mi="PageUp",jt=" ",vi="Tab";function yi(e){return window.getComputedStyle(e).getPropertyValue("direction")}function bi(e="ltr",t="horizontal"){return{horizontal:e==="rtl"?ae:ce,vertical:ne}[t]}function wi(e="ltr",t="horizontal"){return{horizontal:e==="rtl"?ce:ae,vertical:pe}[t]}function xi(e="ltr",t="horizontal"){return["ltr","rtl"].includes(e)||(e="ltr"),["horizontal","vertical"].includes(t)||(t="horizontal"),{nextKey:bi(e,t),prevKey:wi(e,t)}}const gr=typeof document<"u",Nn=Si();function Si(){return gr&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function ht(e){return e instanceof HTMLElement}function je(e){return e instanceof Element}function pr(e){return e instanceof Element||e instanceof SVGElement}function gc(e){return e.pointerType==="touch"}function Ai(e){return e!==null}function Oi(e){return e instanceof HTMLInputElement&&"select"in e}class Ei{#t;#e=Dt(null);constructor(t){this.#t=t}getCandidateNodes(){return this.#t.rootNode.current?this.#t.candidateSelector?Array.from(this.#t.rootNode.current.querySelectorAll(this.#t.candidateSelector)):this.#t.candidateAttr?Array.from(this.#t.rootNode.current.querySelectorAll(`[${this.#t.candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){const t=this.getCandidateNodes();t.length&&t[0]?.focus()}handleKeydown(t,n,r=!1){const o=this.#t.rootNode.current;if(!o||!t)return;const s=this.getCandidateNodes();if(!s.length)return;const i=s.indexOf(t),a=yi(o),{nextKey:c,prevKey:u}=xi(a,this.#t.orientation.current),h=this.#t.loop.current,d={[c]:i+1,[u]:i-1,[hr]:0,[fr]:s.length-1};if(r){const g=c===ne?ce:ne,p=u===pe?ae:pe;d[g]=i+1,d[p]=i-1}let m=d[n.key];if(m===void 0)return;n.preventDefault(),m<0&&h?m=s.length-1:m===s.length&&h&&(m=0);const f=s[m];if(f)return f.focus(),this.#e.current=f.id,this.#t.onCandidateFocus?.(f),f}getTabIndex(t){const n=this.getCandidateNodes(),r=this.#e.current!==null;return t&&!r&&n[0]===t?(this.#e.current=t.id,0):t?.id===this.#e.current?0:-1}setCurrentTabStopId(t){this.#e.current=t}focusCurrentTabStop(){const t=this.#e.current;if(!t)return;const n=this.#t.rootNode.current?.querySelector(`#${t}`);!n||!ht(n)||n.focus()}}class Ci{#t;#e=null;constructor(t){this.#t=t,_t(()=>this.#n())}#n(){this.#e&&(window.cancelAnimationFrame(this.#e),this.#e=null)}run(t){this.#n();const n=this.#t.ref.current;if(n){if(typeof n.getAnimations!="function"){this.#r(t);return}this.#e=window.requestAnimationFrame(()=>{const r=n.getAnimations();if(r.length===0){this.#r(t);return}Promise.allSettled(r.map(o=>o.finished)).then(()=>{this.#r(t)})})}}#r(t){const n=()=>{t()};this.#t.afterTick?lt(n):n()}}class Ue{#t;#e;#n;#r=T(!1);constructor(t){this.#t=t,y(this.#r,t.open.current,!0),this.#e=t.enabled??!0,this.#n=new Ci({ref:this.#t.ref,afterTick:this.#t.open}),H(()=>this.#t.open.current,n=>{n&&y(this.#r,!0),this.#e&&this.#n.run(()=>{n===this.#t.open.current&&(this.#t.open.current||y(this.#r,!1),this.#t.onComplete?.())})})}get shouldRender(){return l(this.#r)}}function B(){}function Ut(e,t){return`bits-${e}`}const Pi=dr({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),mt=new Pt("Dialog.Root | AlertDialog.Root");class en{static create(t){const n=mt.getOr(null);return mt.set(new en(t,n))}opts;#t=T(null);get triggerNode(){return l(this.#t)}set triggerNode(t){y(this.#t,t,!0)}#e=T(null);get contentNode(){return l(this.#e)}set contentNode(t){y(this.#e,t,!0)}#n=T(null);get overlayNode(){return l(this.#n)}set overlayNode(t){y(this.#n,t,!0)}#r=T(null);get descriptionNode(){return l(this.#r)}set descriptionNode(t){y(this.#r,t,!0)}#o=T(void 0);get contentId(){return l(this.#o)}set contentId(t){y(this.#o,t,!0)}#i=T(void 0);get titleId(){return l(this.#i)}set titleId(t){y(this.#i,t,!0)}#a=T(void 0);get triggerId(){return l(this.#a)}set triggerId(t){y(this.#a,t,!0)}#s=T(void 0);get descriptionId(){return l(this.#s)}set descriptionId(t){y(this.#s,t,!0)}#c=T(null);get cancelNode(){return l(this.#c)}set cancelNode(t){y(this.#c,t,!0)}#l=T(0);get nestedOpenCount(){return l(this.#l)}set nestedOpenCount(t){y(this.#l,t,!0)}depth;parent;contentPresence;overlayPresence;constructor(t,n){this.opts=t,this.parent=n,this.depth=n?n.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Ue({ref:w(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Ue({ref:w(()=>this.overlayNode),open:this.opts.open,enabled:!0}),H(()=>this.opts.open.current,r=>{this.parent&&(r?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),_t(()=>{this.opts.open.current&&this.parent?.decrementNested()})}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}getBitsAttr=t=>Pi.getAttr(t,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#u=x(()=>({"data-state":Fe(this.opts.open.current)}));get sharedProps(){return l(this.#u)}set sharedProps(t){y(this.#u,t)}}class mr{static create(t){return new mr(t,mt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Q(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===jt||t.key===Ie)&&(t.preventDefault(),this.root.handleClose())}#t=x(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return l(this.#t)}set props(t){y(this.#t,t)}}class nn{static create(t){return new nn(t,mt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Q(this.opts.ref)}#t=x(()=>({id:this.opts.id.current,[this.root.getBitsAttr("action")]:"",...this.root.sharedProps,...this.attachment}));get props(){return l(this.#t)}set props(t){y(this.#t,t)}}class rn{static create(t){return new rn(t,mt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.root.titleId=this.opts.id.current,this.attachment=Q(this.opts.ref),H.pre(()=>this.opts.id.current,r=>{this.root.titleId=r})}#t=x(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment}));get props(){return l(this.#t)}set props(t){y(this.#t,t)}}class on{static create(t){return new on(t,mt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.root.descriptionId=this.opts.id.current,this.attachment=Q(this.opts.ref,r=>{this.root.descriptionNode=r}),H.pre(()=>this.opts.id.current,r=>{this.root.descriptionId=r})}#t=x(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment}));get props(){return l(this.#t)}set props(t){y(this.#t,t)}}class sn{static create(t){return new sn(t,mt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Q(this.opts.ref,r=>{this.root.contentNode=r,this.root.contentId=r?.id})}#t=x(()=>({open:this.root.opts.open.current}));get snippetProps(){return l(this.#t)}set snippetProps(t){y(this.#t,t)}#e=x(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":Kt(this.root.nestedOpenCount>0),"data-nested":Kt(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return l(this.#e)}set props(t){y(this.#e,t)}get shouldRender(){return this.root.contentPresence.shouldRender}}class an{static create(t){return new an(t,mt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Q(this.opts.ref,r=>this.root.overlayNode=r)}#t=x(()=>({open:this.root.opts.open.current}));get snippetProps(){return l(this.#t)}set snippetProps(t){y(this.#t,t)}#e=x(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":Kt(this.root.nestedOpenCount>0),"data-nested":Kt(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return l(this.#e)}set props(t){y(this.#e,t)}get shouldRender(){return this.root.overlayPresence.shouldRender}}class cn{static create(t){return new cn(t,mt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Q(this.opts.ref,r=>this.root.cancelNode=r),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===jt||t.key===Ie)&&(t.preventDefault(),this.root.handleClose())}#t=x(()=>({id:this.opts.id.current,[this.root.getBitsAttr("cancel")]:"",onclick:this.onclick,onkeydown:this.onkeydown,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return l(this.#t)}set props(t){y(this.#t,t)}}function Ti(e,t){k(t,!0);let n=v(t,"open",15,!1),r=v(t,"onOpenChange",3,B),o=v(t,"onOpenChangeComplete",3,B);en.create({variant:w(()=>"alert-dialog"),open:w(()=>n(),a=>{n(a),r()(a)}),onOpenChangeComplete:w(()=>o())});var s=M(),i=P(s);D(i,()=>t.children??L),C(e,s),N()}var Mi=ct("<div><!></div>");function Fi(e,t){const n=Ht();k(t,!0);let r=v(t,"id",19,()=>Ut(n)),o=v(t,"ref",15,null),s=v(t,"level",3,2),i=W(t,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const a=rn.create({id:w(()=>r()),level:w(()=>s()),ref:w(()=>o(),f=>o(f))}),c=x(()=>tt(i,a.props));var u=M(),h=P(u);{var d=f=>{var g=M(),p=P(g);D(p,()=>t.child,()=>({props:l(c)})),C(f,g)},m=f=>{var g=Mi();Ot(g,()=>({...l(c)}));var p=St(g);D(p,()=>t.children??L),At(g),C(f,g)};nt(h,f=>{t.child?f(d):f(m,!1)})}C(e,u),N()}var Ii=ct("<button><!></button>");function Ri(e,t){const n=Ht();k(t,!0);let r=v(t,"id",19,()=>Ut(n)),o=v(t,"ref",15,null),s=W(t,["$$slots","$$events","$$legacy","children","child","id","ref"]);const i=nn.create({id:w(()=>r()),ref:w(()=>o(),m=>o(m))}),a=x(()=>tt(s,i.props));var c=M(),u=P(c);{var h=m=>{var f=M(),g=P(f);D(g,()=>t.child,()=>({props:l(a)})),C(m,f)},d=m=>{var f=Ii();Ot(f,()=>({...l(a)}));var g=St(f);D(g,()=>t.children??L),At(f),C(m,f)};nt(u,m=>{t.child?m(h):m(d,!1)})}C(e,c),N()}var ki=ct("<button><!></button>");function Ni(e,t){const n=Ht();k(t,!0);let r=v(t,"id",19,()=>Ut(n)),o=v(t,"ref",15,null),s=v(t,"disabled",3,!1),i=W(t,["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]);const a=cn.create({id:w(()=>r()),ref:w(()=>o(),f=>o(f)),disabled:w(()=>!!s())}),c=x(()=>tt(i,a.props));var u=M(),h=P(u);{var d=f=>{var g=M(),p=P(g);D(p,()=>t.child,()=>({props:l(c)})),C(f,g)},m=f=>{var g=ki();Ot(g,()=>({...l(c)}));var p=St(g);D(p,()=>t.children??L),At(g),C(f,g)};nt(h,f=>{t.child?f(d):f(m,!1)})}C(e,u),N()}function Di(e,t){var n=M(),r=P(n);Ao(r,()=>t.children,o=>{var s=M(),i=P(s);D(i,()=>t.children??L),C(o,s)}),C(e,n)}const _i=new Pt("BitsConfig");function Bi(){const e=new Li(null,{});return _i.getOr(e).opts}class Li{opts;constructor(t,n){const r=Wi(t,n);this.opts={defaultPortalTo:r(o=>o.defaultPortalTo),defaultLocale:r(o=>o.defaultLocale)}}}function Wi(e,t){return n=>w(()=>{const o=n(t)?.current;if(o!==void 0)return o;if(e!==null)return n(e.opts)?.current})}function Ki(e,t){return n=>{const r=Bi();return w(()=>{const o=n();if(o!==void 0)return o;const s=e(r).current;return s!==void 0?s:t})}}const Vi=Ki(e=>e.defaultPortalTo,"body");function zi(e,t){k(t,!0);const n=Vi(()=>t.to),r=yo();let o=x(s);function s(){if(!gr||t.disabled)return null;let d=null;return typeof n.current=="string"?d=document.querySelector(n.current):d=n.current,d}let i;function a(){i&&(so(i),i=null)}H([()=>l(o),()=>t.disabled],([d,m])=>{if(!d||m){a();return}return i=io(Di,{target:d,props:{children:t.children},context:r}),()=>{a()}});var c=M(),u=P(c);{var h=d=>{var m=M(),f=P(m);D(f,()=>t.children??L),C(d,m)};nt(u,d=>{t.disabled&&d(h)})}C(e,c),N()}class Hi{eventName;options;constructor(t,n={bubbles:!0,cancelable:!0}){this.eventName=t,this.options=n}createEvent(t){return new CustomEvent(this.eventName,{...this.options,detail:t})}dispatch(t,n){const r=this.createEvent(n);return t.dispatchEvent(r),r}listen(t,n,r){const o=s=>{n(s)};return V(t,this.eventName,o,r)}}function Dn(e,t=500){let n=null;const r=(...o)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...o)},t)};return r.destroy=()=>{n!==null&&(clearTimeout(n),n=null)},r}function vr(e,t){return e===t||e.contains(t)}function yr(e){return e?.ownerDocument??document}function ji(e,t){const{clientX:n,clientY:r}=e,o=t.getBoundingClientRect();return n<o.left||n>o.right||r<o.top||r>o.bottom}const Ge=[Ie,jt],Ui=[ne,mi,hr],br=[pe,pi,fr],Gi=[...Ui,...br],Yi={ltr:[...Ge,ce],rtl:[...Ge,ae]},pc={ltr:[ae],rtl:[ce]};function me(e){return e.pointerType==="mouse"}function Xi(e,{select:t=!1}={}){if(!e||!e.focus)return;const n=se(e);if(n.activeElement===e)return;const r=n.activeElement;e.focus({preventScroll:!0}),e!==r&&Oi(e)&&t&&e.select()}function qi(e,{select:t=!1}={},n){const r=n();for(const o of e)if(Xi(o,{select:t}),n()!==r)return!0}let Jt=T(!1);class bt{static _refs=0;static _cleanup;constructor(){Z(()=>(bt._refs===0&&(bt._cleanup=$n(()=>{const t=[],n=o=>{y(Jt,!1)},r=o=>{y(Jt,!0)};return t.push(V(document,"pointerdown",n,{capture:!0}),V(document,"pointermove",n,{capture:!0}),V(document,"keydown",r,{capture:!0})),Rt(...t)})),bt._refs++,()=>{bt._refs--,bt._refs===0&&(y(Jt,!1),bt._cleanup?.())}))}get current(){return l(Jt)}set current(t){y(Jt,t,!0)}}var wr=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],ve=wr.join(","),xr=typeof Element>"u",kt=xr?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ye=!xr&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},be=function(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),s=o===""||o==="true",i=s||n&&t&&(typeof t.closest=="function"?t.closest("[inert]"):be(t.parentNode));return i},Zi=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},Sr=function(t,n,r){if(be(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(ve));return n&&kt.call(t,ve)&&o.unshift(t),o=o.filter(r),o},we=function(t,n,r){for(var o=[],s=Array.from(t);s.length;){var i=s.shift();if(!be(i,!1))if(i.tagName==="SLOT"){var a=i.assignedElements(),c=a.length?a:i.children,u=we(c,!0,r);r.flatten?o.push.apply(o,u):o.push({scopeParent:i,candidates:u})}else{var h=kt.call(i,ve);h&&r.filter(i)&&(n||!t.includes(i))&&o.push(i);var d=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),m=!be(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(d&&m){var f=we(d===!0?i.children:d.children,!0,r);r.flatten?o.push.apply(o,f):o.push({scopeParent:i,candidates:f})}else s.unshift.apply(s,i.children)}}return o},Ar=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Or=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Zi(t))&&!Ar(t)?0:t.tabIndex},Ji=function(t,n){var r=Or(t);return r<0&&n&&!Ar(t)?0:r},Qi=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},Er=function(t){return t.tagName==="INPUT"},$i=function(t){return Er(t)&&t.type==="hidden"},ts=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},es=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},ns=function(t){if(!t.name)return!0;var n=t.form||ye(t),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(t.name));else try{o=r(t.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var s=es(o,t.form);return!s||s===t},rs=function(t){return Er(t)&&t.type==="radio"},os=function(t){return rs(t)&&!ns(t)},is=function(t){var n,r=t&&ye(t),o=(n=r)===null||n===void 0?void 0:n.host,s=!1;if(r&&r!==t){var i,a,c;for(s=!!((i=o)!==null&&i!==void 0&&(a=i.ownerDocument)!==null&&a!==void 0&&a.contains(o)||t!=null&&(c=t.ownerDocument)!==null&&c!==void 0&&c.contains(t));!s&&o;){var u,h,d;r=ye(o),o=(u=r)===null||u===void 0?void 0:u.host,s=!!((h=o)!==null&&h!==void 0&&(d=h.ownerDocument)!==null&&d!==void 0&&d.contains(o))}}return s},_n=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},ss=function(t,n){var r=n.displayCheck,o=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var s=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}if(getComputedStyle(t).visibility==="hidden")return!0;var i=kt.call(t,"details>summary:first-of-type"),a=i?t.parentElement:t;if(kt.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof o=="function"){for(var c=t;t;){var u=t.parentElement,h=ye(t);if(u&&!u.shadowRoot&&o(u)===!0)return _n(t);t.assignedSlot?t=t.assignedSlot:!u&&h!==t.ownerDocument?t=h.host:t=u}t=c}if(is(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return _n(t);return!1},as=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return kt.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},xe=function(t,n){return!(n.disabled||$i(n)||ss(n,t)||ts(n)||as(n))},Ye=function(t,n){return!(os(n)||Or(n)<0||!xe(t,n))},cs=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Cr=function(t){var n=[],r=[];return t.forEach(function(o,s){var i=!!o.scopeParent,a=i?o.scopeParent:o,c=Ji(a,i),u=i?Cr(o.candidates):a;c===0?i?n.push.apply(n,u):n.push(a):r.push({documentOrder:s,tabIndex:c,item:o,isScope:i,content:u})}),r.sort(Qi).reduce(function(o,s){return s.isScope?o.push.apply(o,s.content):o.push(s.content),o},[]).concat(n)},Pr=function(t,n){n=n||{};var r;return n.getShadowRoot?r=we([t],n.includeContainer,{filter:Ye.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:cs}):r=Sr(t,n.includeContainer,Ye.bind(null,n)),Cr(r)},Tr=function(t,n){n=n||{};var r;return n.getShadowRoot?r=we([t],n.includeContainer,{filter:xe.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=Sr(t,n.includeContainer,xe.bind(null,n)),r},un=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return kt.call(t,ve)===!1?!1:Ye(n,t)},us=wr.concat("iframe:not([inert]):not([inert] *)").join(","),Mr=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return kt.call(t,us)===!1?!1:xe(n,t)};function ee(){return{getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"}}function ls(e,t){if(!un(e,ee()))return ds(e,t);const n=se(e),r=Pr(n.body,ee());t==="prev"&&r.reverse();const o=r.indexOf(e);return o===-1?n.body:r.slice(o+1)[0]}function ds(e,t){const n=se(e);if(!Mr(e,ee()))return n.body;const r=Tr(n.body,ee());t==="prev"&&r.reverse();const o=r.indexOf(e);return o===-1?n.body:r.slice(o+1).find(i=>un(i,ee()))??n.body}function fs(e,t){return e.length!==t.length?!1:e.every((n,r)=>Fr(n,t[r]))}function Fr(e,t){return Number.isNaN(e)&&Number.isNaN(t)?!0:Array.isArray(e)&&Array.isArray(t)?fs(e,t):typeof e=="object"&&typeof t=="object"?hs(e,t):Object.is(e,t)}function hs(e,t){if(typeof e!="object"||typeof t!="object"||e===null||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n)if(!r.includes(o)||!Fr(e[o],t[o]))return!1;return!0}function mc(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===e.length-1?n?e[0]:void 0:e[t+1]}function vc(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===0?n?e[e.length-1]:void 0:e[t-1]}function yc(e,t,n,r=!0){if(e.length===0||t<0||t>=e.length)return;let o=t+n;return r?o=(o%e.length+e.length)%e.length:o=Math.max(0,Math.min(o,e.length-1)),e[o]}function bc(e,t,n,r=!0){if(e.length===0||t<0||t>=e.length)return;let o=t-n;return r?o=(o%e.length+e.length)%e.length:o=Math.max(0,Math.min(o,e.length-1)),e[o]}function Ir(e,t,n){const r=t.toLowerCase();if(r.endsWith(" ")){const d=r.slice(0,-1);if(e.filter(p=>p.toLowerCase().startsWith(d)).length<=1)return Ir(e,d,n);const f=n?.toLowerCase();if(f&&f.startsWith(d)&&f.charAt(d.length)===" "&&t.trim()===d)return n;const g=e.filter(p=>p.toLowerCase().startsWith(r));if(g.length>0){const p=n?e.indexOf(n):-1;return Bn(g,Math.max(p,0)).find(O=>O!==n)||n}}const s=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,i=s.toLowerCase(),a=n?e.indexOf(n):-1;let c=Bn(e,Math.max(a,0));s.length===1&&(c=c.filter(d=>d!==n));const h=c.find(d=>d?.toLowerCase().startsWith(i));return h!==n?h:void 0}function Bn(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const gs={afterMs:1e4,onChange:B};function Rr(e,t){const{afterMs:n,onChange:r,getWindow:o}={...gs,...t};let s=null,i=T(Bt(e));function a(){return o().setTimeout(()=>{y(i,e,!0),r?.(e)},n)}return Z(()=>()=>{s&&o().clearTimeout(s)}),w(()=>l(i),c=>{y(i,c,!0),r?.(c),s&&o().clearTimeout(s),s=a()})}class ps{#t;#e;#n=x(()=>this.#t.onMatch?this.#t.onMatch:t=>t.focus());#r=x(()=>this.#t.getCurrentItem?this.#t.getCurrentItem:this.#t.getActiveElement);constructor(t){this.#t=t,this.#e=Rr("",{afterMs:1e3,getWindow:t.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t,n){if(!n.length)return;this.#e.current=this.#e.current+t;const r=l(this.#r)(),o=n.find(c=>c===r)?.textContent?.trim()??"",s=n.map(c=>c.textContent?.trim()??""),i=Ir(s,this.#e.current,o),a=n.find(c=>c.textContent?.trim()===i);return a&&l(this.#n)(a),a}resetTypeahead(){this.#e.current=""}get search(){return this.#e.current}}class ms{#t;#e;#n;#r=T(null);constructor(t){this.#t=t,this.#e=x(()=>this.#t.enabled()),this.#n=Rr(!1,{afterMs:t.transitTimeout??300,onChange:n=>{l(this.#e)&&this.#t.setIsPointerInTransit?.(n)},getWindow:()=>Qe(this.#t.triggerNode())}),H([t.triggerNode,t.contentNode,t.enabled],([n,r,o])=>{if(!n||!r||!o)return;const s=a=>{this.#i(a,r)},i=a=>{this.#i(a,n)};return Rt(V(n,"pointerleave",s),V(r,"pointerleave",i))}),H(()=>l(this.#r),()=>{const n=o=>{if(!l(this.#r))return;const s=o.target;if(!je(s))return;const i={x:o.clientX,y:o.clientY},a=t.triggerNode()?.contains(s)||t.contentNode()?.contains(s),c=!ws(i,l(this.#r));a?this.#o():c&&(this.#o(),t.onPointerExit())},r=se(t.triggerNode()??t.contentNode());if(r)return V(r,"pointermove",n)})}#o(){y(this.#r,null),this.#n.current=!1}#i(t,n){const r=t.currentTarget;if(!ht(r))return;const o={x:t.clientX,y:t.clientY},s=vs(o,r.getBoundingClientRect()),i=ys(o,s),a=bs(n.getBoundingClientRect()),c=xs([...i,...a]);y(this.#r,c,!0),this.#n.current=!0}}function vs(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function ys(e,t,n=5){const r=n*1.5;switch(t){case"top":return[{x:e.x-n,y:e.y+n},{x:e.x,y:e.y-r},{x:e.x+n,y:e.y+n}];case"bottom":return[{x:e.x-n,y:e.y-n},{x:e.x,y:e.y+r},{x:e.x+n,y:e.y-n}];case"left":return[{x:e.x+n,y:e.y-n},{x:e.x-r,y:e.y},{x:e.x+n,y:e.y+n}];case"right":return[{x:e.x-n,y:e.y-n},{x:e.x+r,y:e.y},{x:e.x-n,y:e.y+n}]}}function bs(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function ws(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s].x,c=t[s].y,u=t[i].x,h=t[i].y;c>r!=h>r&&n<(u-a)*(r-c)/(h-c)+a&&(o=!o)}return o}function xs(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Ss(t)}function Ss(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const As="data-context-menu-trigger",Os="data-context-menu-content",kr=new Pt("Menu.Root"),Vt=new Pt("Menu.Root | Menu.Sub"),ln=new Pt("Menu.Content"),Nr=new Hi("bitsmenuopen",{bubbles:!1,cancelable:!0}),Es=dr({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});class Dr{static create(t){const n=new Dr(t);return kr.set(n)}opts;isUsingKeyboard=new bt;#t=T(!1);get ignoreCloseAutoFocus(){return l(this.#t)}set ignoreCloseAutoFocus(t){y(this.#t,t,!0)}#e=T(!1);get isPointerInTransit(){return l(this.#e)}set isPointerInTransit(t){y(this.#e,t,!0)}constructor(t){this.opts=t}getBitsAttr=t=>Es.getAttr(t,this.opts.variant.current)}class dn{static create(t,n){return Vt.set(new dn(t,n,null))}opts;root;parentMenu;contentId=w(()=>"");#t=T(null);get contentNode(){return l(this.#t)}set contentNode(t){y(this.#t,t,!0)}contentPresence;#e=T(null);get triggerNode(){return l(this.#e)}set triggerNode(t){y(this.#e,t,!0)}constructor(t,n,r){this.opts=t,this.root=n,this.parentMenu=r,this.contentPresence=new Ue({ref:w(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),r&&H(()=>r.opts.open.current,()=>{r.opts.open.current||(this.opts.open.current=!1)})}toggleOpen(){this.opts.open.current=!this.opts.open.current}onOpen(){this.opts.open.current=!0}onClose(){this.opts.open.current=!1}}class _r{static create(t){return ln.set(new _r(t,Vt.get()))}opts;parentMenu;rovingFocusGroup;domContext;attachment;#t=T("");get search(){return l(this.#t)}set search(t){y(this.#t,t,!0)}#e=0;#n;#r=T(!1);get mounted(){return l(this.#r)}set mounted(t){y(this.#r,t,!0)}#o;constructor(t,n){this.opts=t,this.parentMenu=n,this.domContext=new $e(t.ref),this.attachment=Q(this.opts.ref,r=>{this.parentMenu.contentNode!==r&&(this.parentMenu.contentNode=r)}),n.contentId=t.id,this.#o=t.isSub??!1,this.onkeydown=this.onkeydown.bind(this),this.onblur=this.onblur.bind(this),this.onfocus=this.onfocus.bind(this),this.handleInteractOutside=this.handleInteractOutside.bind(this),new ms({contentNode:()=>this.parentMenu.contentNode,triggerNode:()=>this.parentMenu.triggerNode,enabled:()=>this.parentMenu.opts.open.current&&!!this.parentMenu.triggerNode?.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger")),onPointerExit:()=>{this.parentMenu.opts.open.current=!1},setIsPointerInTransit:r=>{this.parentMenu.root.isPointerInTransit=r}}),this.#n=new ps({getActiveElement:()=>this.domContext.getActiveElement(),getWindow:()=>this.domContext.getWindow()}).handleTypeaheadSearch,this.rovingFocusGroup=new Ei({rootNode:w(()=>this.parentMenu.contentNode),candidateAttr:this.parentMenu.root.getBitsAttr("item"),loop:this.opts.loop,orientation:w(()=>"vertical")}),H(()=>this.parentMenu.contentNode,r=>{if(!r)return;const o=()=>{lt(()=>{this.parentMenu.root.isUsingKeyboard.current&&this.rovingFocusGroup.focusFirstCandidate()})};return Nr.listen(r,o)}),Z(()=>{this.parentMenu.opts.open.current||this.domContext.getWindow().clearTimeout(this.#e)})}#i(){const t=this.parentMenu.contentNode;return t?Array.from(t.querySelectorAll(`[${this.parentMenu.root.getBitsAttr("item")}]:not([data-disabled])`)):[]}#a(){return this.parentMenu.root.isPointerInTransit}onCloseAutoFocus=t=>{this.opts.onCloseAutoFocus.current?.(t),!(t.defaultPrevented||this.#o)&&this.parentMenu.triggerNode&&un(this.parentMenu.triggerNode)&&(t.preventDefault(),this.parentMenu.triggerNode.focus())};handleTabKeyDown(t){let n=this.parentMenu;for(;n.parentMenu!==null;)n=n.parentMenu;if(!n.triggerNode)return;t.preventDefault();const r=ls(n.triggerNode,t.shiftKey?"prev":"next");r?(this.parentMenu.root.ignoreCloseAutoFocus=!0,n.onClose(),lt(()=>{r.focus(),lt(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})})):this.domContext.getDocument().body.focus()}onkeydown(t){if(t.defaultPrevented)return;if(t.key===vi){this.handleTabKeyDown(t);return}const n=t.target,r=t.currentTarget;if(!ht(n)||!ht(r))return;const o=n.closest(`[${this.parentMenu.root.getBitsAttr("content")}]`)?.id===this.parentMenu.contentId.current,s=t.ctrlKey||t.altKey||t.metaKey,i=t.key.length===1;if(this.rovingFocusGroup.handleKeydown(n,t)||t.code==="Space")return;const c=this.#i();o&&!s&&i&&this.#n(t.key,c),t.target?.id===this.parentMenu.contentId.current&&Gi.includes(t.key)&&(t.preventDefault(),br.includes(t.key)&&c.reverse(),qi(c,{select:!1},()=>this.domContext.getActiveElement()))}onblur(t){je(t.currentTarget)&&je(t.target)&&(t.currentTarget.contains?.(t.target)||(this.domContext.getWindow().clearTimeout(this.#e),this.search=""))}onfocus(t){this.parentMenu.root.isUsingKeyboard.current&&lt(()=>this.rovingFocusGroup.focusFirstCandidate())}onItemEnter(){return this.#a()}onItemLeave(t){if(t.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger"))||this.#a()||this.parentMenu.root.isUsingKeyboard.current)return;this.parentMenu.contentNode?.focus(),this.rovingFocusGroup.setCurrentTabStopId("")}onTriggerLeave(){return!!this.#a()}handleInteractOutside(t){if(!pr(t.target))return;const n=this.parentMenu.triggerNode?.id;if(t.target.id===n){t.preventDefault();return}t.target.closest(`#${n}`)&&t.preventDefault()}get shouldRender(){return this.parentMenu.contentPresence.shouldRender}#s=x(()=>({open:this.parentMenu.opts.open.current}));get snippetProps(){return l(this.#s)}set snippetProps(t){y(this.#s,t)}#c=x(()=>({id:this.opts.id.current,role:"menu","aria-orientation":"vertical",[this.parentMenu.root.getBitsAttr("content")]:"","data-state":Fe(this.parentMenu.opts.open.current),onkeydown:this.onkeydown,onblur:this.onblur,onfocus:this.onfocus,dir:this.parentMenu.root.opts.dir.current,style:{pointerEvents:"auto",contain:"layout style"},...this.attachment}));get props(){return l(this.#c)}set props(t){y(this.#c,t)}popperProps={onCloseAutoFocus:t=>this.onCloseAutoFocus(t)}}class Br{opts;content;attachment;#t=T(!1);constructor(t,n){this.opts=t,this.content=n,this.attachment=Q(this.opts.ref),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this),this.onfocus=this.onfocus.bind(this),this.onblur=this.onblur.bind(this)}onpointermove(t){if(!t.defaultPrevented&&me(t))if(this.opts.disabled.current)this.content.onItemLeave(t);else{if(this.content.onItemEnter())return;const r=t.currentTarget;if(!ht(r))return;r.focus()}}onpointerleave(t){t.defaultPrevented||me(t)&&this.content.onItemLeave(t)}onfocus(t){lt(()=>{t.defaultPrevented||this.opts.disabled.current||y(this.#t,!0)})}onblur(t){lt(()=>{t.defaultPrevented||y(this.#t,!1)})}#e=x(()=>({id:this.opts.id.current,tabindex:-1,role:"menuitem","aria-disabled":tn(this.opts.disabled.current),"data-disabled":Kt(this.opts.disabled.current),"data-highlighted":l(this.#t)?"":void 0,[this.content.parentMenu.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onfocus:this.onfocus,onblur:this.onblur,...this.attachment}));get props(){return l(this.#e)}set props(t){y(this.#e,t)}}class Lr{static create(t){const n=new Br(t,ln.get());return new Lr(t,n)}opts;item;root;#t=!1;constructor(t,n){this.opts=t,this.item=n,this.root=n.content.parentMenu.root,this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this)}#e(){if(this.item.opts.disabled.current)return;const t=new CustomEvent("menuitemselect",{bubbles:!0,cancelable:!0});if(this.opts.onSelect.current(t),t.defaultPrevented){this.item.content.parentMenu.root.isUsingKeyboard.current=!1;return}this.opts.closeOnSelect.current&&this.item.content.parentMenu.root.opts.onClose()}onkeydown(t){const n=this.item.content.search!=="";if(!(this.item.opts.disabled.current||n&&t.key===jt)&&Ge.includes(t.key)){if(!ht(t.currentTarget))return;t.currentTarget.click(),t.preventDefault()}}onclick(t){this.item.opts.disabled.current||this.#e()}onpointerup(t){if(!t.defaultPrevented&&!this.#t){if(!ht(t.currentTarget))return;t.currentTarget?.click()}}onpointerdown(t){this.#t=!0}#n=x(()=>tt(this.item.props,{onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown}));get props(){return l(this.#n)}set props(t){y(this.#n,t)}}class Wr{static create(t){const n=ln.get(),r=new Br(t,n),o=Vt.get();return new Wr(t,r,n,o)}opts;item;content;submenu;attachment;#t=null;constructor(t,n,r,o){this.opts=t,this.item=n,this.content=r,this.submenu=o,this.attachment=Q(this.opts.ref,s=>this.submenu.triggerNode=s),this.onpointerleave=this.onpointerleave.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),_t(()=>{this.#e()})}#e(){this.#t!==null&&(this.content.domContext.getWindow().clearTimeout(this.#t),this.#t=null)}onpointermove(t){me(t)&&!this.item.opts.disabled.current&&!this.submenu.opts.open.current&&!this.#t&&!this.content.parentMenu.root.isPointerInTransit&&(this.#t=this.content.domContext.setTimeout(()=>{this.submenu.onOpen(),this.#e()},this.opts.openDelay.current))}onpointerleave(t){me(t)&&this.#e()}onkeydown(t){const n=this.content.search!=="";this.item.opts.disabled.current||n&&t.key===jt||Yi[this.submenu.root.opts.dir.current].includes(t.key)&&(t.currentTarget.click(),t.preventDefault())}onclick(t){if(this.item.opts.disabled.current||!ht(t.currentTarget))return;t.currentTarget.focus();const n=new CustomEvent("menusubtriggerselect",{bubbles:!0,cancelable:!0});this.opts.onSelect.current(n),this.submenu.opts.open.current||(this.submenu.onOpen(),lt(()=>{const r=this.submenu.contentNode;r&&Nr.dispatch(r)}))}#n=x(()=>tt({"aria-haspopup":"menu","aria-expanded":tn(this.submenu.opts.open.current),"data-state":Fe(this.submenu.opts.open.current),"aria-controls":this.submenu.opts.open.current?this.submenu.contentId.current:void 0,[this.submenu.root.getBitsAttr("sub-trigger")]:"",onclick:this.onclick,onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onkeydown:this.onkeydown,...this.attachment},this.item.props));get props(){return l(this.#n)}set props(t){y(this.#n,t)}}class Kr{static create(t){return new Kr(t,kr.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Q(this.opts.ref)}#t=x(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("separator")]:"",...this.attachment}));get props(){return l(this.#t)}set props(t){y(this.#t,t)}}class Vr{static create(t){return new Vr(t,Vt.get())}opts;parentMenu;attachment;constructor(t,n){this.opts=t,this.parentMenu=n,this.attachment=Q(this.opts.ref,r=>this.parentMenu.triggerNode=r)}onclick=t=>{this.opts.disabled.current||t.detail!==0||(this.parentMenu.toggleOpen(),t.preventDefault())};onpointerdown=t=>{if(!this.opts.disabled.current){if(t.pointerType==="touch")return t.preventDefault();t.button===0&&t.ctrlKey===!1&&(this.parentMenu.toggleOpen(),this.parentMenu.opts.open.current||t.preventDefault())}};onpointerup=t=>{this.opts.disabled.current||t.pointerType==="touch"&&(t.preventDefault(),this.parentMenu.toggleOpen())};onkeydown=t=>{if(!this.opts.disabled.current){if(t.key===jt||t.key===Ie){this.parentMenu.toggleOpen(),t.preventDefault();return}t.key===ne&&(this.parentMenu.onOpen(),t.preventDefault())}};#t=x(()=>{if(this.parentMenu.opts.open.current&&this.parentMenu.contentId.current)return this.parentMenu.contentId.current});#e=x(()=>({id:this.opts.id.current,disabled:this.opts.disabled.current,"aria-haspopup":"menu","aria-expanded":tn(this.parentMenu.opts.open.current),"aria-controls":l(this.#t),"data-disabled":Kt(this.opts.disabled.current),"data-state":Fe(this.parentMenu.opts.open.current),[this.parentMenu.root.getBitsAttr("trigger")]:"",onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown,...this.attachment}));get props(){return l(this.#e)}set props(t){y(this.#e,t)}}class wc{static create(t){const n=Vt.get();return Vt.set(new dn(t,n.root,n))}}globalThis.bitsDismissableLayers??=new Map;class fn{static create(t){return new fn(t)}opts;#t;#e;#n={pointerdown:!1};#r=!1;#o=!1;#i=void 0;#a;#s=B;constructor(t){this.opts=t,this.#e=t.interactOutsideBehavior,this.#t=t.onInteractOutside,this.#a=t.onFocusOutside,Z(()=>{this.#i=yr(this.opts.ref.current)});let n=B;const r=()=>{this.#f(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),n()};H([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return cr(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,this.#e),n(),n=this.#l())}),r}),_t(()=>{this.#f.destroy(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),this.#s(),n()})}#c=t=>{t.defaultPrevented||this.opts.ref.current&&lt(()=>{!this.opts.ref.current||this.#m(t.target)||t.target&&!this.#o&&this.#a.current?.(t)})};#l(){return Rt(V(this.#i,"pointerdown",Rt(this.#h,this.#p),{capture:!0}),V(this.#i,"pointerdown",Rt(this.#g,this.#d)),V(this.#i,"focusin",this.#c))}#u=t=>{let n=t;n.defaultPrevented&&(n=Ln(t)),this.#t.current(t)};#d=Dn(t=>{if(!this.opts.ref.current){this.#s();return}const n=this.opts.isValidEvent.current(t,this.opts.ref.current)||Ts(t,this.opts.ref.current);if(!this.#r||this.#v()||!n){this.#s();return}let r=t;if(r.defaultPrevented&&(r=Ln(r)),this.#e.current!=="close"&&this.#e.current!=="defer-otherwise-close"){this.#s();return}t.pointerType==="touch"?(this.#s(),this.#s=V(this.#i,"click",this.#u,{once:!0})):this.#t.current(r)},10);#h=t=>{this.#n[t.type]=!0};#g=t=>{this.#n[t.type]=!1};#p=()=>{this.opts.ref.current&&(this.#r=Ps(this.opts.ref.current))};#m=t=>this.opts.ref.current?vr(this.opts.ref.current,t):!1;#f=Dn(()=>{for(const t in this.#n)this.#n[t]=!1;this.#r=!1},20);#v(){return Object.values(this.#n).some(Boolean)}#y=()=>{this.#o=!0};#b=()=>{this.#o=!1};props={onfocuscapture:this.#y,onblurcapture:this.#b}}function Cs(e=[...globalThis.bitsDismissableLayers]){return e.findLast(([t,{current:n}])=>n==="close"||n==="ignore")}function Ps(e){const t=[...globalThis.bitsDismissableLayers],n=Cs(t);if(n)return n[0].opts.ref.current===e;const[r]=t[0];return r.opts.ref.current===e}function Ts(e,t){const n=e.target;if(!pr(n))return!1;const r=!!n.closest(`[${As}]`);if("button"in e&&e.button>0&&!r)return!1;if("button"in e&&e.button===0&&r)return!0;const o=!!t.closest(`[${Os}]`);return r&&o?!1:yr(n).documentElement.contains(n)&&!vr(t,n)&&ji(e,t)}function Ln(e){const t=e.currentTarget,n=e.target;let r;e instanceof PointerEvent?r=new PointerEvent(e.type,e):r=new PointerEvent("pointerdown",e);let o=!1;return new Proxy(r,{get:(i,a)=>a==="currentTarget"?t:a==="target"?n:a==="preventDefault"?()=>{o=!0,typeof i.preventDefault=="function"&&i.preventDefault()}:a==="defaultPrevented"?o:a in i?i[a]:e[a]})}function zr(e,t){k(t,!0);let n=v(t,"interactOutsideBehavior",3,"close"),r=v(t,"onInteractOutside",3,B),o=v(t,"onFocusOutside",3,B),s=v(t,"isValidEvent",3,()=>!1);const i=fn.create({id:w(()=>t.id),interactOutsideBehavior:w(()=>n()),onInteractOutside:w(()=>r()),enabled:w(()=>t.enabled),onFocusOutside:w(()=>o()),isValidEvent:w(()=>s()),ref:t.ref});var a=M(),c=P(a);D(c,()=>t.children??L,()=>({props:i.props})),C(e,a),N()}globalThis.bitsEscapeLayers??=new Map;class hn{static create(t){return new hn(t)}opts;domContext;constructor(t){this.opts=t,this.domContext=new $e(this.opts.ref);let n=B;H(()=>t.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,t.escapeKeydownBehavior),n=this.#t()),()=>{n(),globalThis.bitsEscapeLayers.delete(this)}))}#t=()=>V(this.domContext.getDocument(),"keydown",this.#e,{passive:!1});#e=t=>{if(t.key!==gi||!Ms(this))return;const n=new KeyboardEvent(t.type,t);t.preventDefault();const r=this.opts.escapeKeydownBehavior.current;r!=="close"&&r!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(n)}}function Ms(e){const t=[...globalThis.bitsEscapeLayers],n=t.findLast(([o,{current:s}])=>s==="close"||s==="ignore");if(n)return n[0]===e;const[r]=t[0];return r===e}function Hr(e,t){k(t,!0);let n=v(t,"escapeKeydownBehavior",3,"close"),r=v(t,"onEscapeKeydown",3,B);hn.create({escapeKeydownBehavior:w(()=>n()),onEscapeKeydown:w(()=>r()),enabled:w(()=>t.enabled),ref:t.ref});var o=M(),s=P(o);D(s,()=>t.children??L),C(e,o),N()}class gn{static instance;#t=ut([]);#e=new WeakMap;#n=new WeakMap;static getInstance(){return this.instance||(this.instance=new gn),this.instance}register(t){const n=this.getActive();n&&n!==t&&n.pause();const r=document.activeElement;r&&r!==document.body&&this.#n.set(t,r),this.#t.current=this.#t.current.filter(o=>o!==t),this.#t.current.unshift(t)}unregister(t){this.#t.current=this.#t.current.filter(r=>r!==t);const n=this.getActive();n&&n.resume()}getActive(){return this.#t.current[0]}setFocusMemory(t,n){this.#e.set(t,n)}getFocusMemory(t){return this.#e.get(t)}isActiveScope(t){return this.getActive()===t}setPreFocusMemory(t,n){this.#n.set(t,n)}getPreFocusMemory(t){return this.#n.get(t)}clearPreFocusMemory(t){this.#n.delete(t)}}class pn{#t=!1;#e=null;#n=gn.getInstance();#r=[];#o;constructor(t){this.#o=t}get paused(){return this.#t}pause(){this.#t=!0}resume(){this.#t=!1}#i(){for(const t of this.#r)t();this.#r=[]}mount(t){this.#e&&this.unmount(),this.#e=t,this.#n.register(this),this.#c(),this.#a()}unmount(){this.#e&&(this.#i(),this.#s(),this.#n.unregister(this),this.#n.clearPreFocusMemory(this),this.#e=null)}#a(){if(!this.#e)return;const t=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});this.#o.onOpenAutoFocus.current(t),t.defaultPrevented||requestAnimationFrame(()=>{if(!this.#e)return;const n=this.#u();n?(n.focus(),this.#n.setFocusMemory(this,n)):this.#e.focus()})}#s(){const t=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if(this.#o.onCloseAutoFocus.current?.(t),!t.defaultPrevented){const n=this.#n.getPreFocusMemory(this);if(n&&document.contains(n))try{n.focus()}catch{document.body.focus()}}}#c(){if(!this.#e||!this.#o.trap.current)return;const t=this.#e,n=t.ownerDocument,r=i=>{if(this.#t||!this.#n.isActiveScope(this))return;const a=i.target;if(!a)return;if(t.contains(a))this.#n.setFocusMemory(this,a);else{const u=this.#n.getFocusMemory(this);if(u&&t.contains(u)&&Mr(u))i.preventDefault(),u.focus();else{const h=this.#u(),d=this.#d()[0];(h||d||t).focus()}}},o=i=>{if(!this.#o.loop||this.#t||i.key!=="Tab"||!this.#n.isActiveScope(this))return;const a=this.#l();if(a.length===0)return;const c=a[0],u=a[a.length-1];!i.shiftKey&&n.activeElement===u?(i.preventDefault(),c.focus()):i.shiftKey&&n.activeElement===c&&(i.preventDefault(),u.focus())};this.#r.push(V(n,"focusin",r,{capture:!0}),V(t,"keydown",o));const s=new MutationObserver(()=>{const i=this.#n.getFocusMemory(this);if(i&&!t.contains(i)){const a=this.#u(),c=this.#d()[0],u=a||c;u?(u.focus(),this.#n.setFocusMemory(this,u)):t.focus()}});s.observe(t,{childList:!0,subtree:!0}),this.#r.push(()=>s.disconnect())}#l(){return this.#e?Pr(this.#e,{includeContainer:!1,getShadowRoot:!0}):[]}#u(){return this.#l()[0]||null}#d(){return this.#e?Tr(this.#e,{includeContainer:!1,getShadowRoot:!0}):[]}static use(t){let n=null;return H([()=>t.ref.current,()=>t.enabled.current],([r,o])=>{r&&o?(n||(n=new pn(t)),n.mount(r)):n&&(n.unmount(),n=null)}),_t(()=>{n?.unmount()}),{get props(){return{tabindex:-1}}}}}function jr(e,t){k(t,!0);let n=v(t,"enabled",3,!1),r=v(t,"trapFocus",3,!1),o=v(t,"loop",3,!1),s=v(t,"onCloseAutoFocus",3,B),i=v(t,"onOpenAutoFocus",3,B);const a=pn.use({enabled:w(()=>n()),trap:w(()=>r()),loop:o(),onCloseAutoFocus:w(()=>s()),onOpenAutoFocus:w(()=>i()),ref:t.ref});var c=M(),u=P(c);D(u,()=>t.focusScope??L,()=>({props:a.props})),C(e,c),N()}globalThis.bitsTextSelectionLayers??=new Map;class mn{static create(t){return new mn(t)}opts;domContext;#t=B;constructor(t){this.opts=t,this.domContext=new $e(t.ref);let n=B;H(()=>this.opts.enabled.current,r=>(r&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),n(),n=this.#e()),()=>{n(),this.#r(),globalThis.bitsTextSelectionLayers.delete(this)}))}#e(){return Rt(V(this.domContext.getDocument(),"pointerdown",this.#n),V(this.domContext.getDocument(),"pointerup",rr(this.#r,this.opts.onPointerUp.current)))}#n=t=>{const n=this.opts.ref.current,r=t.target;!ht(n)||!ht(r)||!this.opts.enabled.current||!Is(this)||!di(n,r)||(this.opts.onPointerDown.current(t),!t.defaultPrevented&&(this.#t=Fs(n,this.domContext.getDocument().body)))};#r=()=>{this.#t(),this.#t=B}}const Wn=e=>e.style.userSelect||e.style.webkitUserSelect;function Fs(e,t){const n=Wn(t),r=Wn(e);return le(t,"none"),le(e,"text"),()=>{le(t,n),le(e,r)}}function le(e,t){e.style.userSelect=t,e.style.webkitUserSelect=t}function Is(e){const t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;const n=t.at(-1);return n?n[0]===e:!1}function Ur(e,t){k(t,!0);let n=v(t,"preventOverflowTextSelection",3,!0),r=v(t,"onPointerDown",3,B),o=v(t,"onPointerUp",3,B);mn.create({id:w(()=>t.id),onPointerDown:w(()=>r()),onPointerUp:w(()=>o()),enabled:w(()=>t.enabled&&n()),ref:t.ref});var s=M(),i=P(s);D(i,()=>t.children??L),C(e,s),N()}globalThis.bitsIdCounter??={current:0};function vn(e="bits"){return globalThis.bitsIdCounter.current++,`${e}-${globalThis.bitsIdCounter.current}`}class Rs{#t;#e=0;#n=T();#r;constructor(t){this.#t=t}#o(){this.#e-=1,this.#r&&this.#e<=0&&(this.#r(),y(this.#n,void 0),this.#r=void 0)}get(...t){return this.#e+=1,l(this.#n)===void 0&&(this.#r=$n(()=>{y(this.#n,this.#t(...t),!0)})),Z(()=>()=>{this.#o()}),l(this.#n)}}const he=new Oo;let de=T(null),Le=null,Qt=null,$t=!1;const Kn=w(()=>{for(const e of he.values())if(e)return!0;return!1});let We=null;const ks=new Rs(()=>{function e(){document.body.setAttribute("style",l(de)??""),document.body.style.removeProperty("--scrollbar-width"),Nn&&Le?.(),y(de,null)}function t(){Qt!==null&&(window.clearTimeout(Qt),Qt=null)}function n(o,s){t(),$t=!0,We=Date.now();const i=We,a=()=>{Qt=null,We===i&&(Gr(he)?$t=!1:($t=!1,s()))},c=o===null?24:o;Qt=window.setTimeout(a,c)}function r(){l(de)===null&&he.size===0&&!$t&&y(de,document.body.getAttribute("style"),!0)}return H(()=>Kn.current,()=>{if(!Kn.current)return;r(),$t=!1;const o=getComputedStyle(document.documentElement),s=getComputedStyle(document.body),i=o.scrollbarGutter?.includes("stable")||s.scrollbarGutter?.includes("stable"),a=window.innerWidth-document.documentElement.clientWidth,u={padding:Number.parseInt(s.paddingRight??"0",10)+a,margin:Number.parseInt(s.marginRight??"0",10)};a>0&&!i&&(document.body.style.paddingRight=`${u.padding}px`,document.body.style.marginRight=`${u.margin}px`,document.body.style.setProperty("--scrollbar-width",`${a}px`)),document.body.style.overflow="hidden",Nn&&(Le=V(document,"touchmove",h=>{h.target===document.documentElement&&(h.touches.length>1||h.preventDefault())},{passive:!1})),lt(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),_t(()=>()=>{Le?.()}),{get lockMap(){return he},resetBodyStyle:e,scheduleCleanupIfNoNewLocks:n,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}});class Ns{#t=vn();#e;#n=()=>null;#r;locked;constructor(t,n=()=>null){this.#e=t,this.#n=n,this.#r=ks.get(),this.#r&&(this.#r.cancelPendingCleanup(),this.#r.ensureInitialStyleCaptured(),this.#r.lockMap.set(this.#t,this.#e??!1),this.locked=w(()=>this.#r.lockMap.get(this.#t)??!1,r=>this.#r.lockMap.set(this.#t,r)),_t(()=>{if(this.#r.lockMap.delete(this.#t),Gr(this.#r.lockMap))return;const r=this.#n();this.#r.scheduleCleanupIfNoNewLocks(r,()=>{this.#r.resetBodyStyle()})}))}}function Gr(e){for(const[t,n]of e)if(n)return!0;return!1}function Se(e,t){k(t,!0);let n=v(t,"preventScroll",3,!0),r=v(t,"restoreScrollDelay",3,null);n()&&new Ns(n(),()=>r()),N()}var Ds=ct("<!> <!>",1),_s=ct("<!> <div><!></div>",1);function Bs(e,t){const n=Ht();k(t,!0);let r=v(t,"id",19,()=>Ut(n)),o=v(t,"ref",15,null),s=v(t,"forceMount",3,!1),i=v(t,"interactOutsideBehavior",3,"ignore"),a=v(t,"onCloseAutoFocus",3,B),c=v(t,"onEscapeKeydown",3,B),u=v(t,"onOpenAutoFocus",3,B),h=v(t,"onInteractOutside",3,B),d=v(t,"preventScroll",3,!0),m=v(t,"trapFocus",3,!0),f=v(t,"restoreScrollDelay",3,null),g=W(t,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","interactOutsideBehavior","onCloseAutoFocus","onEscapeKeydown","onOpenAutoFocus","onInteractOutside","preventScroll","trapFocus","restoreScrollDelay"]);const p=sn.create({id:w(()=>r()),ref:w(()=>o(),A=>o(A))}),b=x(()=>tt(g,p.props));var S=M(),O=P(S);{var E=A=>{jr(A,{get ref(){return p.opts.ref},loop:!0,get trapFocus(){return m()},get enabled(){return p.root.opts.open.current},get onCloseAutoFocus(){return a()},onOpenAutoFocus:F=>{u()(F),!F.defaultPrevented&&(F.preventDefault(),cr(0,()=>p.opts.ref.current?.focus()))},focusScope:(F,_)=>{let j=()=>_?.().props;Hr(F,J(()=>l(b),{get enabled(){return p.root.opts.open.current},get ref(){return p.opts.ref},onEscapeKeydown:R=>{c()(R),!R.defaultPrevented&&p.root.handleClose()},children:(R,K)=>{zr(R,J(()=>l(b),{get ref(){return p.opts.ref},get enabled(){return p.root.opts.open.current},get interactOutsideBehavior(){return i()},onInteractOutside:U=>{h()(U),!U.defaultPrevented&&p.root.handleClose()},children:(U,G)=>{Ur(U,J(()=>l(b),{get ref(){return p.opts.ref},get enabled(){return p.root.opts.open.current},children:(ot,z)=>{var it=M(),$=P(it);{var Y=q=>{var Tt=Ds(),Xt=P(Tt);{var qt=Mt=>{Se(Mt,{get preventScroll(){return d()},get restoreScrollDelay(){return f()}})};nt(Xt,Mt=>{p.root.opts.open.current&&Mt(qt)})}var _e=ge(Xt,2);{let Mt=x(()=>({props:tt(l(b),j()),...p.snippetProps}));D(_e,()=>t.child,()=>l(Mt))}C(q,Tt)},X=q=>{var Tt=_s(),Xt=P(Tt);Se(Xt,{get preventScroll(){return d()}});var qt=ge(Xt,2);Ot(qt,Mt=>({...Mt}),[()=>tt(l(b),j())]);var _e=St(qt);D(_e,()=>t.children??L),At(qt),C(q,Tt)};nt($,q=>{t.child?q(Y):q(X,!1)})}C(ot,it)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};nt(O,A=>{(p.shouldRender||s())&&A(E)})}C(e,S),N()}var Ls=ct("<div><!></div>");function Ws(e,t){const n=Ht();k(t,!0);let r=v(t,"id",19,()=>Ut(n)),o=v(t,"forceMount",3,!1),s=v(t,"ref",15,null),i=W(t,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const a=an.create({id:w(()=>r()),ref:w(()=>s(),m=>s(m))}),c=x(()=>tt(i,a.props));var u=M(),h=P(u);{var d=m=>{var f=M(),g=P(f);{var p=S=>{var O=M(),E=P(O);{let A=x(()=>({props:tt(l(c)),...a.snippetProps}));D(E,()=>t.child,()=>l(A))}C(S,O)},b=S=>{var O=Ls();Ot(O,A=>({...A}),[()=>tt(l(c))]);var E=St(O);D(E,()=>t.children??L,()=>a.snippetProps),At(O),C(S,O)};nt(g,S=>{t.child?S(p):S(b,!1)})}C(m,f)};nt(h,m=>{(a.shouldRender||o())&&m(d)})}C(e,u),N()}var Ks=ct("<div><!></div>");function Vs(e,t){const n=Ht();k(t,!0);let r=v(t,"id",19,()=>Ut(n)),o=v(t,"ref",15,null),s=W(t,["$$slots","$$events","$$legacy","id","children","child","ref"]);const i=on.create({id:w(()=>r()),ref:w(()=>o(),m=>o(m))}),a=x(()=>tt(s,i.props));var c=M(),u=P(c);{var h=m=>{var f=M(),g=P(f);D(g,()=>t.child,()=>({props:l(a)})),C(m,f)},d=m=>{var f=Ks();Ot(f,()=>({...l(a)}));var g=St(f);D(g,()=>t.children??L),At(f),C(m,f)};nt(u,m=>{t.child?m(h):m(d,!1)})}C(e,c),N()}const zs=["top","right","bottom","left"],wt=Math.min,et=Math.max,Ae=Math.round,fe=Math.floor,ft=e=>({x:e,y:e}),Hs={left:"right",right:"left",bottom:"top",top:"bottom"},js={start:"end",end:"start"};function Xe(e,t,n){return et(e,wt(t,n))}function vt(e,t){return typeof e=="function"?e(t):e}function yt(e){return e.split("-")[0]}function Gt(e){return e.split("-")[1]}function yn(e){return e==="x"?"y":"x"}function bn(e){return e==="y"?"height":"width"}const Us=new Set(["top","bottom"]);function dt(e){return Us.has(yt(e))?"y":"x"}function wn(e){return yn(dt(e))}function Gs(e,t,n){n===void 0&&(n=!1);const r=Gt(e),o=wn(e),s=bn(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Oe(i)),[i,Oe(i)]}function Ys(e){const t=Oe(e);return[qe(e),t,qe(t)]}function qe(e){return e.replace(/start|end/g,t=>js[t])}const Vn=["left","right"],zn=["right","left"],Xs=["top","bottom"],qs=["bottom","top"];function Zs(e,t,n){switch(e){case"top":case"bottom":return n?t?zn:Vn:t?Vn:zn;case"left":case"right":return t?Xs:qs;default:return[]}}function Js(e,t,n,r){const o=Gt(e);let s=Zs(yt(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(qe)))),s}function Oe(e){return e.replace(/left|right|bottom|top/g,t=>Hs[t])}function Qs(e){return{top:0,right:0,bottom:0,left:0,...e}}function Yr(e){return typeof e!="number"?Qs(e):{top:e,right:e,bottom:e,left:e}}function Ee(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Hn(e,t,n){let{reference:r,floating:o}=e;const s=dt(t),i=wn(t),a=bn(i),c=yt(t),u=s==="y",h=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,m=r[a]/2-o[a]/2;let f;switch(c){case"top":f={x:h,y:r.y-o.height};break;case"bottom":f={x:h,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(Gt(t)){case"start":f[i]-=m*(n&&u?-1:1);break;case"end":f[i]+=m*(n&&u?-1:1);break}return f}async function $s(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:d="floating",altBoundary:m=!1,padding:f=0}=vt(t,e),g=Yr(f),b=a[m?d==="floating"?"reference":"floating":d],S=Ee(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:h,strategy:c})),O=d==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),A=await(s.isElement==null?void 0:s.isElement(E))?await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1}:{x:1,y:1},I=Ee(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:O,offsetParent:E,strategy:c}):O);return{top:(S.top-I.top+g.top)/A.y,bottom:(I.bottom-S.bottom+g.bottom)/A.y,left:(S.left-I.left+g.left)/A.x,right:(I.right-S.right+g.right)/A.x}}const ta=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:h,y:d}=Hn(u,r,c),m=r,f={},g=0;for(let b=0;b<a.length;b++){var p;const{name:S,fn:O}=a[b],{x:E,y:A,data:I,reset:F}=await O({x:h,y:d,initialPlacement:r,placement:m,strategy:o,middlewareData:f,rects:u,platform:{...i,detectOverflow:(p=i.detectOverflow)!=null?p:$s},elements:{reference:e,floating:t}});h=E??h,d=A??d,f={...f,[S]:{...f[S],...I}},F&&g<=50&&(g++,typeof F=="object"&&(F.placement&&(m=F.placement),F.rects&&(u=F.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):F.rects),{x:h,y:d}=Hn(u,m,c)),b=-1)}return{x:h,y:d,placement:m,strategy:o,middlewareData:f}},ea=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=t,{element:u,padding:h=0}=vt(e,t)||{};if(u==null)return{};const d=Yr(h),m={x:n,y:r},f=wn(o),g=bn(f),p=await i.getDimensions(u),b=f==="y",S=b?"top":"left",O=b?"bottom":"right",E=b?"clientHeight":"clientWidth",A=s.reference[g]+s.reference[f]-m[f]-s.floating[g],I=m[f]-s.reference[f],F=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let _=F?F[E]:0;(!_||!await(i.isElement==null?void 0:i.isElement(F)))&&(_=a.floating[E]||s.floating[g]);const j=A/2-I/2,R=_/2-p[g]/2-1,K=wt(d[S],R),U=wt(d[O],R),G=K,ot=_-p[g]-U,z=_/2-p[g]/2+j,it=Xe(G,z,ot),$=!c.arrow&&Gt(o)!=null&&z!==it&&s.reference[g]/2-(z<G?K:U)-p[g]/2<0,Y=$?z<G?z-G:z-ot:0;return{[f]:m[f]+Y,data:{[f]:it,centerOffset:z-it-Y,...$&&{alignmentOffset:Y}},reset:$}}}),na=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:h=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...b}=vt(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const S=yt(o),O=dt(a),E=yt(a)===a,A=await(c.isRTL==null?void 0:c.isRTL(u.floating)),I=m||(E||!p?[Oe(a)]:Ys(a)),F=g!=="none";!m&&F&&I.push(...Js(a,p,g,A));const _=[a,...I],j=await c.detectOverflow(t,b),R=[];let K=((r=s.flip)==null?void 0:r.overflows)||[];if(h&&R.push(j[S]),d){const z=Gs(o,i,A);R.push(j[z[0]],j[z[1]])}if(K=[...K,{placement:o,overflows:R}],!R.every(z=>z<=0)){var U,G;const z=(((U=s.flip)==null?void 0:U.index)||0)+1,it=_[z];if(it&&(!(d==="alignment"?O!==dt(it):!1)||K.every(X=>dt(X.placement)===O?X.overflows[0]>0:!0)))return{data:{index:z,overflows:K},reset:{placement:it}};let $=(G=K.filter(Y=>Y.overflows[0]<=0).sort((Y,X)=>Y.overflows[1]-X.overflows[1])[0])==null?void 0:G.placement;if(!$)switch(f){case"bestFit":{var ot;const Y=(ot=K.filter(X=>{if(F){const q=dt(X.placement);return q===O||q==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(q=>q>0).reduce((q,Tt)=>q+Tt,0)]).sort((X,q)=>X[1]-q[1])[0])==null?void 0:ot[0];Y&&($=Y);break}case"initialPlacement":$=a;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function jn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Un(e){return zs.some(t=>e[t]>=0)}const ra=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=vt(e,t);switch(o){case"referenceHidden":{const i=await r.detectOverflow(t,{...s,elementContext:"reference"}),a=jn(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Un(a)}}}case"escaped":{const i=await r.detectOverflow(t,{...s,altBoundary:!0}),a=jn(i,n.floating);return{data:{escapedOffsets:a,escaped:Un(a)}}}default:return{}}}}},Xr=new Set(["left","top"]);async function oa(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=yt(n),a=Gt(n),c=dt(n)==="y",u=Xr.has(i)?-1:1,h=s&&c?-1:1,d=vt(t,e);let{mainAxis:m,crossAxis:f,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof g=="number"&&(f=a==="end"?g*-1:g),c?{x:f*h,y:m*u}:{x:m*u,y:f*h}}const ia=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,c=await oa(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},sa=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:S=>{let{x:O,y:E}=S;return{x:O,y:E}}},...u}=vt(e,t),h={x:n,y:r},d=await s.detectOverflow(t,u),m=dt(yt(o)),f=yn(m);let g=h[f],p=h[m];if(i){const S=f==="y"?"top":"left",O=f==="y"?"bottom":"right",E=g+d[S],A=g-d[O];g=Xe(E,g,A)}if(a){const S=m==="y"?"top":"left",O=m==="y"?"bottom":"right",E=p+d[S],A=p-d[O];p=Xe(E,p,A)}const b=c.fn({...t,[f]:g,[m]:p});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[f]:i,[m]:a}}}}}},aa=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=vt(e,t),h={x:n,y:r},d=dt(o),m=yn(d);let f=h[m],g=h[d];const p=vt(a,t),b=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const E=m==="y"?"height":"width",A=s.reference[m]-s.floating[E]+b.mainAxis,I=s.reference[m]+s.reference[E]-b.mainAxis;f<A?f=A:f>I&&(f=I)}if(u){var S,O;const E=m==="y"?"width":"height",A=Xr.has(yt(o)),I=s.reference[d]-s.floating[E]+(A&&((S=i.offset)==null?void 0:S[d])||0)+(A?0:b.crossAxis),F=s.reference[d]+s.reference[E]+(A?0:((O=i.offset)==null?void 0:O[d])||0)-(A?b.crossAxis:0);g<I?g=I:g>F&&(g=F)}return{[m]:f,[d]:g}}}},ca=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:c=()=>{},...u}=vt(e,t),h=await i.detectOverflow(t,u),d=yt(o),m=Gt(o),f=dt(o)==="y",{width:g,height:p}=s.floating;let b,S;d==="top"||d==="bottom"?(b=d,S=m===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(S=d,b=m==="end"?"top":"bottom");const O=p-h.top-h.bottom,E=g-h.left-h.right,A=wt(p-h[b],O),I=wt(g-h[S],E),F=!t.middlewareData.shift;let _=A,j=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=O),F&&!m){const K=et(h.left,0),U=et(h.right,0),G=et(h.top,0),ot=et(h.bottom,0);f?j=g-2*(K!==0||U!==0?K+U:et(h.left,h.right)):_=p-2*(G!==0||ot!==0?G+ot:et(h.top,h.bottom))}await c({...t,availableWidth:j,availableHeight:_});const R=await i.getDimensions(a.floating);return g!==R.width||p!==R.height?{reset:{rects:!0}}:{}}}};function Re(){return typeof window<"u"}function Yt(e){return qr(e)?(e.nodeName||"").toLowerCase():"#document"}function rt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function pt(e){var t;return(t=(qr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function qr(e){return Re()?e instanceof Node||e instanceof rt(e).Node:!1}function st(e){return Re()?e instanceof Element||e instanceof rt(e).Element:!1}function gt(e){return Re()?e instanceof HTMLElement||e instanceof rt(e).HTMLElement:!1}function Gn(e){return!Re()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof rt(e).ShadowRoot}const ua=new Set(["inline","contents"]);function ue(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=at(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!ua.has(o)}const la=new Set(["table","td","th"]);function da(e){return la.has(Yt(e))}const fa=[":popover-open",":modal"];function ke(e){return fa.some(t=>{try{return e.matches(t)}catch{return!1}})}const ha=["transform","translate","scale","rotate","perspective"],ga=["transform","translate","scale","rotate","perspective","filter"],pa=["paint","layout","strict","content"];function xn(e){const t=Sn(),n=st(e)?at(e):e;return ha.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||ga.some(r=>(n.willChange||"").includes(r))||pa.some(r=>(n.contain||"").includes(r))}function ma(e){let t=xt(e);for(;gt(t)&&!zt(t);){if(xn(t))return t;if(ke(t))return null;t=xt(t)}return null}function Sn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const va=new Set(["html","body","#document"]);function zt(e){return va.has(Yt(e))}function at(e){return rt(e).getComputedStyle(e)}function Ne(e){return st(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xt(e){if(Yt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Gn(e)&&e.host||pt(e);return Gn(t)?t.host:t}function Zr(e){const t=xt(e);return zt(t)?e.ownerDocument?e.ownerDocument.body:e.body:gt(t)&&ue(t)?t:Zr(t)}function re(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Zr(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=rt(o);if(s){const a=Ze(i);return t.concat(i,i.visualViewport||[],ue(o)?o:[],a&&n?re(a):[])}return t.concat(o,re(o,[],n))}function Ze(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Jr(e){const t=at(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=gt(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=Ae(n)!==s||Ae(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function An(e){return st(e)?e:e.contextElement}function Lt(e){const t=An(e);if(!gt(t))return ft(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Jr(t);let i=(s?Ae(n.width):n.width)/r,a=(s?Ae(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const ya=ft(0);function Qr(e){const t=rt(e);return!Sn()||!t.visualViewport?ya:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ba(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==rt(e)?!1:t}function Nt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=An(e);let i=ft(1);t&&(r?st(r)&&(i=Lt(r)):i=Lt(e));const a=ba(s,n,r)?Qr(s):ft(0);let c=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,h=o.width/i.x,d=o.height/i.y;if(s){const m=rt(s),f=r&&st(r)?rt(r):r;let g=m,p=Ze(g);for(;p&&r&&f!==g;){const b=Lt(p),S=p.getBoundingClientRect(),O=at(p),E=S.left+(p.clientLeft+parseFloat(O.paddingLeft))*b.x,A=S.top+(p.clientTop+parseFloat(O.paddingTop))*b.y;c*=b.x,u*=b.y,h*=b.x,d*=b.y,c+=E,u+=A,g=rt(p),p=Ze(g)}}return Ee({width:h,height:d,x:c,y:u})}function De(e,t){const n=Ne(e).scrollLeft;return t?t.left+n:Nt(pt(e)).left+n}function $r(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-De(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function wa(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=pt(r),a=t?ke(t.floating):!1;if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},u=ft(1);const h=ft(0),d=gt(r);if((d||!d&&!s)&&((Yt(r)!=="body"||ue(i))&&(c=Ne(r)),gt(r))){const f=Nt(r);u=Lt(r),h.x=f.x+r.clientLeft,h.y=f.y+r.clientTop}const m=i&&!d&&!s?$r(i,c):ft(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+h.x+m.x,y:n.y*u.y-c.scrollTop*u.y+h.y+m.y}}function xa(e){return Array.from(e.getClientRects())}function Sa(e){const t=pt(e),n=Ne(e),r=e.ownerDocument.body,o=et(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=et(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+De(e);const a=-n.scrollTop;return at(r).direction==="rtl"&&(i+=et(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const Yn=25;function Aa(e,t){const n=rt(e),r=pt(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,c=0;if(o){s=o.width,i=o.height;const h=Sn();(!h||h&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const u=De(r);if(u<=0){const h=r.ownerDocument,d=h.body,m=getComputedStyle(d),f=h.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,g=Math.abs(r.clientWidth-d.clientWidth-f);g<=Yn&&(s-=g)}else u<=Yn&&(s+=u);return{width:s,height:i,x:a,y:c}}const Oa=new Set(["absolute","fixed"]);function Ea(e,t){const n=Nt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=gt(e)?Lt(e):ft(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=o*s.x,u=r*s.y;return{width:i,height:a,x:c,y:u}}function Xn(e,t,n){let r;if(t==="viewport")r=Aa(e,n);else if(t==="document")r=Sa(pt(e));else if(st(t))r=Ea(t,n);else{const o=Qr(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ee(r)}function to(e,t){const n=xt(e);return n===t||!st(n)||zt(n)?!1:at(n).position==="fixed"||to(n,t)}function Ca(e,t){const n=t.get(e);if(n)return n;let r=re(e,[],!1).filter(a=>st(a)&&Yt(a)!=="body"),o=null;const s=at(e).position==="fixed";let i=s?xt(e):e;for(;st(i)&&!zt(i);){const a=at(i),c=xn(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&Oa.has(o.position)||ue(i)&&!c&&to(e,i))?r=r.filter(h=>h!==i):o=a,i=xt(i)}return t.set(e,r),r}function Pa(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?ke(t)?[]:Ca(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((u,h)=>{const d=Xn(t,h,o);return u.top=et(d.top,u.top),u.right=wt(d.right,u.right),u.bottom=wt(d.bottom,u.bottom),u.left=et(d.left,u.left),u},Xn(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Ta(e){const{width:t,height:n}=Jr(e);return{width:t,height:n}}function Ma(e,t,n){const r=gt(t),o=pt(t),s=n==="fixed",i=Nt(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=ft(0);function u(){c.x=De(o)}if(r||!r&&!s)if((Yt(t)!=="body"||ue(o))&&(a=Ne(t)),r){const f=Nt(t,!0,s,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else o&&u();s&&!r&&o&&u();const h=o&&!r&&!s?$r(o,a):ft(0),d=i.left+a.scrollLeft-c.x-h.x,m=i.top+a.scrollTop-c.y-h.y;return{x:d,y:m,width:i.width,height:i.height}}function Ke(e){return at(e).position==="static"}function qn(e,t){if(!gt(e)||at(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return pt(e)===n&&(n=n.ownerDocument.body),n}function eo(e,t){const n=rt(e);if(ke(e))return n;if(!gt(e)){let o=xt(e);for(;o&&!zt(o);){if(st(o)&&!Ke(o))return o;o=xt(o)}return n}let r=qn(e,t);for(;r&&da(r)&&Ke(r);)r=qn(r,t);return r&&zt(r)&&Ke(r)&&!xn(r)?n:r||ma(e)||n}const Fa=async function(e){const t=this.getOffsetParent||eo,n=this.getDimensions,r=await n(e.floating);return{reference:Ma(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ia(e){return at(e).direction==="rtl"}const Ra={convertOffsetParentRelativeRectToViewportRelativeRect:wa,getDocumentElement:pt,getClippingRect:Pa,getOffsetParent:eo,getElementRects:Fa,getClientRects:xa,getDimensions:Ta,getScale:Lt,isElement:st,isRTL:Ia};function no(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ka(e,t){let n=null,r;const o=pt(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const u=e.getBoundingClientRect(),{left:h,top:d,width:m,height:f}=u;if(a||t(),!m||!f)return;const g=fe(d),p=fe(o.clientWidth-(h+m)),b=fe(o.clientHeight-(d+f)),S=fe(h),E={rootMargin:-g+"px "+-p+"px "+-b+"px "+-S+"px",threshold:et(0,wt(1,c))||1};let A=!0;function I(F){const _=F[0].intersectionRatio;if(_!==c){if(!A)return i();_?i(!1,_):r=setTimeout(()=>{i(!1,1e-7)},1e3)}_===1&&!no(u,e.getBoundingClientRect())&&i(),A=!1}try{n=new IntersectionObserver(I,{...E,root:o.ownerDocument})}catch{n=new IntersectionObserver(I,E)}n.observe(e)}return i(!0),s}function Na(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=An(e),h=o||s?[...u?re(u):[],...re(t)]:[];h.forEach(S=>{o&&S.addEventListener("scroll",n,{passive:!0}),s&&S.addEventListener("resize",n)});const d=u&&a?ka(u,n):null;let m=-1,f=null;i&&(f=new ResizeObserver(S=>{let[O]=S;O&&O.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var E;(E=f)==null||E.observe(t)})),n()}),u&&!c&&f.observe(u),f.observe(t));let g,p=c?Nt(e):null;c&&b();function b(){const S=Nt(e);p&&!no(p,S)&&n(),p=S,g=requestAnimationFrame(b)}return n(),()=>{var S;h.forEach(O=>{o&&O.removeEventListener("scroll",n),s&&O.removeEventListener("resize",n)}),d?.(),(S=f)==null||S.disconnect(),f=null,c&&cancelAnimationFrame(g)}}const Da=ia,_a=sa,Ba=na,La=ca,Wa=ra,Ka=ea,Va=aa,za=(e,t,n)=>{const r=new Map,o={platform:Ra,...n},s={...o.platform,_c:r};return ta(e,t,{...o,platform:s})};function Ft(e){return typeof e=="function"?e():e}function ro(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Zn(e,t){const n=ro(e);return Math.round(t*n)/n}function xc(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function Ha(e){const t=e.whileElementsMounted,n=x(()=>Ft(e.open)??!0),r=x(()=>Ft(e.middleware)),o=x(()=>Ft(e.transform)??!0),s=x(()=>Ft(e.placement)??"bottom"),i=x(()=>Ft(e.strategy)??"absolute"),a=x(()=>Ft(e.sideOffset)??0),c=x(()=>Ft(e.alignOffset)??0),u=e.reference;let h=T(0),d=T(0);const m=ut(null);let f=T(Bt(l(i))),g=T(Bt(l(s))),p=T(Bt({})),b=T(!1),S=!1;const O=x(()=>{const R=m.current?Zn(m.current,l(h)):l(h),K=m.current?Zn(m.current,l(d)):l(d);return l(o)?{position:l(f),left:"0",top:"0",transform:`translate(${R}px, ${K}px)`,...m.current&&ro(m.current)>=1.5&&{willChange:"transform"}}:{position:l(f),left:`${R}px`,top:`${K}px`}});let E;function A(){u.current===null||m.current===null||za(u.current,m.current,{middleware:l(r),placement:l(s),strategy:l(i)}).then(R=>{const K=u.current;if(ja(K)){y(p,{...l(p),hide:{...l(p).hide,referenceHidden:!0}},!0);return}if(!l(n)&&l(h)!==0&&l(d)!==0){const G=Math.max(Math.abs(l(a)),Math.abs(l(c)),15);if(R.x<=G&&R.y<=G)return}y(h,R.x,!0),y(d,R.y,!0),y(f,R.strategy,!0),y(g,R.placement,!0),y(p,R.middlewareData,!0),y(b,!0)})}function I(){typeof E=="function"&&(E(),E=void 0)}function F(){if(I(),t===void 0){A();return}l(n)&&(u.current===null||m.current===null||(E=t(u.current,m.current,A)))}function _(){l(n)||y(b,!1)}function j(){return[l(r),l(s),l(i),l(a),l(c),l(n)]}return Z(()=>{t===void 0&&l(n)&&A()}),Z(F),Z(()=>{if(t!==void 0){if(j(),!l(n)){S=!1;return}if(!l(b)){S=!1;return}if(!S){S=!0;return}A()}}),Z(_),Z(()=>I),{floating:m,reference:u,get strategy(){return l(f)},get placement(){return l(g)},get middlewareData(){return l(p)},get isPositioned(){return l(b)},get floatingStyles(){return l(O)},get update(){return A}}}function ja(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const Ua={top:"bottom",right:"left",bottom:"top",left:"right"},On=new Pt("Floating.Root"),Jn=new Pt("Floating.Content"),En=new Pt("Floating.Root");class Ce{static create(t=!1){return t?En.set(new Ce):On.set(new Ce)}anchorNode=ut(null);customAnchorNode=ut(null);triggerNode=ut(null);constructor(){Z(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}}class Pe{static create(t,n=!1){return n?Jn.set(new Pe(t,En.get())):Jn.set(new Pe(t,On.get()))}opts;root;contentRef=ut(null);wrapperRef=ut(null);arrowRef=ut(null);contentAttachment=Q(this.contentRef);wrapperAttachment=Q(this.wrapperRef);arrowAttachment=Q(this.arrowRef);arrowId=ut(vn());#t=x(()=>{if(typeof this.opts.style=="string")return te(this.opts.style);if(!this.opts.style)return{}});#e=void 0;#n=new ii(()=>this.arrowRef.current??void 0);#r=x(()=>this.#n?.width??0);#o=x(()=>this.#n?.height??0);#i=x(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#a=x(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#s=x(()=>l(this.#a).length>0);get hasExplicitBoundaries(){return l(this.#s)}set hasExplicitBoundaries(t){y(this.#s,t)}#c=x(()=>({padding:this.opts.collisionPadding.current,boundary:l(this.#a).filter(Ai),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return l(this.#c)}set detectOverflowOptions(t){y(this.#c,t)}#l=T(void 0);#u=T(void 0);#d=T(void 0);#h=T(void 0);#g=x(()=>[Da({mainAxis:this.opts.sideOffset.current+l(this.#o),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&_a({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?Va():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Ba({...this.detectOverflowOptions}),La({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:s}=t.reference;y(this.#l,n,!0),y(this.#u,r,!0),y(this.#d,o,!0),y(this.#h,s,!0)}}),this.arrowRef.current&&Ka({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),Ga({arrowWidth:l(this.#r),arrowHeight:l(this.#o)}),this.opts.hideWhenDetached.current&&Wa({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return l(this.#g)}set middleware(t){y(this.#g,t)}floating;#p=x(()=>Ya(this.floating.placement));get placedSide(){return l(this.#p)}set placedSide(t){y(this.#p,t)}#m=x(()=>Xa(this.floating.placement));get placedAlign(){return l(this.#m)}set placedAlign(t){y(this.#m,t)}#f=x(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return l(this.#f)}set arrowX(t){y(this.#f,t)}#v=x(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return l(this.#v)}set arrowY(t){y(this.#v,t)}#y=x(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return l(this.#y)}set cannotCenterArrow(t){y(this.#y,t)}#b=T();get contentZIndex(){return l(this.#b)}set contentZIndex(t){y(this.#b,t,!0)}#w=x(()=>Ua[this.placedSide]);get arrowBaseSide(){return l(this.#w)}set arrowBaseSide(t){y(this.#w,t)}#x=x(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${l(this.#l)}px`,"--bits-floating-available-height":`${l(this.#u)}px`,"--bits-floating-anchor-width":`${l(this.#d)}px`,"--bits-floating-anchor-height":`${l(this.#h)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...l(this.#t)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return l(this.#x)}set wrapperProps(t){y(this.#x,t)}#S=x(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:ir({...l(this.#t)}),...this.contentAttachment}));get props(){return l(this.#S)}set props(t){y(this.#S,t)}#A=x(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0}));get arrowStyle(){return l(this.#A)}set arrowStyle(t){y(this.#A,t)}constructor(t,n){this.opts=t,this.root=n,this.#e=t.updatePositionStrategy,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),H(()=>t.customAnchor.current,r=>{this.root.customAnchorNode.current=r}),this.floating=Ha({strategy:()=>this.opts.strategy.current,placement:()=>l(this.#i),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>Na(...r,{animationFrame:this.#e?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),Z(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),H(()=>this.contentRef.current,r=>{if(!r||!this.opts.enabled.current)return;const o=Qe(r),s=o.requestAnimationFrame(()=>{if(this.contentRef.current!==r||!this.opts.enabled.current)return;const i=o.getComputedStyle(r).zIndex;i!==this.contentZIndex&&(this.contentZIndex=i)});return()=>{o.cancelAnimationFrame(s)}}),Z(()=>{this.floating.floating.current=this.wrapperRef.current})}}class Te{static create(t,n=!1){return n?new Te(t,En.get()):new Te(t,On.get())}opts;root;constructor(t,n){this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=nr(t.virtualEl.current):n.triggerNode=t.ref}}function Ga(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[u,h]=Cn(n),d={start:"0%",center:"50%",end:"100%"}[h],m=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+c/2;let g="",p="";return u==="bottom"?(g=i?d:`${m}px`,p=`${-c}px`):u==="top"?(g=i?d:`${m}px`,p=`${r.floating.height+c}px`):u==="right"?(g=`${-c}px`,p=i?d:`${f}px`):u==="left"&&(g=`${r.floating.width+c}px`,p=i?d:`${f}px`),{data:{x:g,y:p}}}}}function Cn(e){const[t,n="center"]=e.split("-");return[t,n]}function Ya(e){return Cn(e)[0]}function Xa(e){return Cn(e)[1]}function Sc(e,t){k(t,!0);let n=v(t,"tooltip",3,!1);Ce.create(n());var r=M(),o=P(r);D(o,()=>t.children??L),C(e,r),N()}function Ac(e,t){k(t,!0);let n=v(t,"tooltip",3,!1);Te.create({id:w(()=>t.id),virtualEl:w(()=>t.virtualEl),ref:t.ref},n());var r=M(),o=P(r);D(o,()=>t.children??L),C(e,r),N()}function qa(e,t){k(t,!0);let n=v(t,"side",3,"bottom"),r=v(t,"sideOffset",3,0),o=v(t,"align",3,"center"),s=v(t,"alignOffset",3,0),i=v(t,"arrowPadding",3,0),a=v(t,"avoidCollisions",3,!0),c=v(t,"collisionBoundary",19,()=>[]),u=v(t,"collisionPadding",3,0),h=v(t,"hideWhenDetached",3,!1),d=v(t,"onPlaced",3,()=>{}),m=v(t,"sticky",3,"partial"),f=v(t,"updatePositionStrategy",3,"optimized"),g=v(t,"strategy",3,"fixed"),p=v(t,"dir",3,"ltr"),b=v(t,"style",19,()=>({})),S=v(t,"wrapperId",19,vn),O=v(t,"customAnchor",3,null),E=v(t,"tooltip",3,!1);const A=Pe.create({side:w(()=>n()),sideOffset:w(()=>r()),align:w(()=>o()),alignOffset:w(()=>s()),id:w(()=>t.id),arrowPadding:w(()=>i()),avoidCollisions:w(()=>a()),collisionBoundary:w(()=>c()),collisionPadding:w(()=>u()),hideWhenDetached:w(()=>h()),onPlaced:w(()=>d()),sticky:w(()=>m()),updatePositionStrategy:w(()=>f()),strategy:w(()=>g()),dir:w(()=>p()),style:w(()=>b()),enabled:w(()=>t.enabled),wrapperId:w(()=>S()),customAnchor:w(()=>O())},E()),I=x(()=>tt(A.wrapperProps,{style:{pointerEvents:"auto"}}));var F=M(),_=P(F);D(_,()=>t.content??L,()=>({props:A.props,wrapperProps:l(I)})),C(e,F),N()}function Za(e,t){k(t,!0),bo(()=>{t.onPlaced?.()});var n=M(),r=P(n);D(r,()=>t.content??L,()=>({props:{},wrapperProps:{}})),C(e,n),N()}function Ja(e,t){let n=v(t,"isStatic",3,!1),r=W(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var o=M(),s=P(o);{var i=c=>{Za(c,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},a=c=>{qa(c,J({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>r))};nt(s,c=>{n()?c(i):c(a,!1)})}C(e,o)}var Qa=ct("<!> <!>",1);function oo(e,t){k(t,!0);let n=v(t,"interactOutsideBehavior",3,"close"),r=v(t,"trapFocus",3,!0),o=v(t,"isValidEvent",3,()=>!1),s=v(t,"customAnchor",3,null),i=v(t,"isStatic",3,!1),a=v(t,"tooltip",3,!1),c=v(t,"contentPointerEvents",3,"auto"),u=W(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip","contentPointerEvents"]);Ja(e,{get isStatic(){return i()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get enabled(){return t.enabled},get tooltip(){return a()},content:(d,m)=>{let f=()=>m?.().props,g=()=>m?.().wrapperProps;var p=Qa(),b=P(p);{var S=A=>{Se(A,{get preventScroll(){return t.preventScroll}})},O=A=>{Se(A,{get preventScroll(){return t.preventScroll}})};nt(b,A=>{t.forceMount&&t.enabled?A(S):t.forceMount||A(O,1)})}var E=ge(b,2);jr(E,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return r()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(I,F)=>{let _=()=>F?.().props;Hr(I,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(j,R)=>{zr(j,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return o()},get enabled(){return t.enabled},get ref(){return t.ref},children:(U,G)=>{let ot=()=>G?.().props;Ur(U,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(z,it)=>{var $=M(),Y=P($);{let X=x(()=>({props:tt(u,f(),ot(),_(),{style:{pointerEvents:c()}}),wrapperProps:g()}));D(Y,()=>t.popper??L,()=>l(X))}C(z,$)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),C(d,p)},$$slots:{content:!0}}),N()}function Oc(e,t){let n=v(t,"interactOutsideBehavior",3,"close"),r=v(t,"trapFocus",3,!0),o=v(t,"isValidEvent",3,()=>!1),s=v(t,"customAnchor",3,null),i=v(t,"isStatic",3,!1),a=W(t,["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);var c=M(),u=P(c);{var h=d=>{oo(d,J({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return i()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return o()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>a))};nt(u,d=>{t.shouldRender&&d(h)})}C(e,c)}function Ec(e,t){let n=v(t,"interactOutsideBehavior",3,"close"),r=v(t,"trapFocus",3,!0),o=v(t,"isValidEvent",3,()=>!1),s=v(t,"customAnchor",3,null),i=v(t,"isStatic",3,!1),a=W(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);oo(e,J({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return i()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return o()},get onFocusOutside(){return t.onFocusOutside}},()=>a,{forceMount:!0}))}function Cc(e,t){k(t,!0);let n=v(t,"open",15,!1),r=W(t,["$$slots","$$events","$$legacy","open"]);var o=M(),s=P(o);Et(s,()=>Ti,(i,a)=>{a(i,J(()=>r,{get open(){return n()},set open(c){n(c)}}))}),C(e,o),N()}function $a(e,t){let n=W(t,["$$slots","$$events","$$legacy"]);var r=M(),o=P(r);Et(o,()=>zi,(s,i)=>{i(s,J(()=>n))}),C(e,r)}function Pc(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class"]);var o=M(),s=P(o);{let i=x(()=>Ct("text-lg font-semibold",t.class));Et(s,()=>Fi,(a,c)=>{c(a,J({"data-slot":"alert-dialog-title",get class(){return l(i)}},()=>r,{get ref(){return n()},set ref(u){n(u)}}))})}C(e,o),N()}function Tc(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class"]);var o=M(),s=P(o);{let i=x(()=>t.class||Ct(er()));Et(s,()=>Ri,(a,c)=>{c(a,J({"data-slot":"alert-dialog-action",get class(){return l(i)}},()=>r,{get ref(){return n()},set ref(u){n(u)}}))})}C(e,o),N()}function Mc(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class"]);var o=M(),s=P(o);{let i=x(()=>t.class||Ct(er({variant:"ghost"})));Et(s,()=>Ni,(a,c)=>{c(a,J({"data-slot":"alert-dialog-cancel",get class(){return l(i)}},()=>r,{get ref(){return n()},set ref(u){n(u)}}))})}C(e,o),N()}var tc=ct("<div><!></div>");function Fc(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class","children"]);var o=tc();Ot(o,i=>({"data-slot":"alert-dialog-footer",class:i,...r}),[()=>Ct("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t.class)]);var s=St(o);D(s,()=>t.children??L),At(o),tr(o,i=>n(i),()=>n()),C(e,o),N()}var ec=ct("<div><!></div>");function Ic(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class","children"]);var o=ec();Ot(o,i=>({"data-slot":"alert-dialog-header",class:i,...r}),[()=>Ct("flex flex-col gap-2 text-center sm:text-start",t.class)]);var s=St(o);D(s,()=>t.children??L),At(o),tr(o,i=>n(i),()=>n()),C(e,o),N()}function nc(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class"]);var o=M(),s=P(o);{let i=x(()=>Ct("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t.class));Et(s,()=>Ws,(a,c)=>{c(a,J({"data-slot":"alert-dialog-overlay",get class(){return l(i)}},()=>r,{get ref(){return n()},set ref(u){n(u)}}))})}C(e,o),N()}var rc=ct("<!> <!>",1);function Rc(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class","portalProps"]);$a(e,J(()=>t.portalProps,{children:(o,s)=>{var i=rc(),a=P(i);nc(a,{});var c=ge(a,2);{let u=x(()=>Ct("bg-[var(--color-bg-elevated)] border-[var(--color-border)] text-[var(--color-text-primary)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t.class));Et(c,()=>Bs,(h,d)=>{d(h,J({"data-slot":"alert-dialog-content",get class(){return l(u)}},()=>r,{get ref(){return n()},set ref(m){n(m)}}))})}C(o,i)},$$slots:{default:!0}})),N()}function kc(e,t){k(t,!0);let n=v(t,"ref",15,null),r=W(t,["$$slots","$$events","$$legacy","ref","class"]);var o=M(),s=P(o);{let i=x(()=>Ct("text-[var(--color-text-secondary)] text-sm",t.class));Et(s,()=>Vs,(a,c)=>{c(a,J({"data-slot":"alert-dialog-description",get class(){return l(i)}},()=>r,{get ref(){return n()},set ref(u){n(u)}}))})}C(e,o),N()}export{Ws as $,Rc as A,Tc as B,Pt as C,$e as D,Ie as E,Ac as F,Cc as G,Lr as H,Kr as I,_r as J,Nr as K,pc as L,wc as M,Wr as N,Dr as O,Ue as P,dn as Q,Vr as R,jt as S,zi as T,en as U,sn as V,jr as W,Hr as X,zr as Y,Ur as Z,Se as _,Q as a,Fi as a0,ir as a1,Rr as a2,Ir as a3,ps as a4,pe as a5,ne as a6,vi as a7,mi as a8,hr as a9,pi as aa,fr as ab,mc as ac,vc as ad,yc as ae,bc as af,_t as ag,Nn as ah,fc as ai,lt as aj,Ei as ak,Ao as al,mr as am,Oo as an,Vs as ao,Kt as b,tn as c,dr as d,fs as e,Ut as f,hc as g,w as h,ht as i,se as j,je as k,gc as l,tt as m,Fe as n,un as o,B as p,Ec as q,Oc as r,xc as s,Sc as t,Ic as u,Pc as v,H as w,kc as x,Fc as y,Mc as z};