@infra-cryptomate/react-components 0.0.9 → 0.0.11

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.
@@ -1,4 +1,4 @@
1
- (function(A,k){typeof exports=="object"&&typeof module<"u"?k(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],k):(A=typeof globalThis<"u"?globalThis:A||self,k(A.components={},A["react/jsx-runtime"],A.React,A.ReactDOM))})(this,function(A,k,i,Fe){"use strict";function bn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const E=bn(i),ss=bn(Fe),Bd="";function is(){for(var e=0,t,n,o="";e<arguments.length;)(t=arguments[e++])&&(n=$n(t))&&(o&&(o+=" "),o+=n);return o}function $n(e){if(typeof e=="string")return e;for(var t,n="",o=0;o<e.length;o++)e[o]&&(t=$n(e[o]))&&(n&&(n+=" "),n+=t);return n}var Lt="-";function as(e){var t=ls(e),n=e.conflictingClassGroups,o=e.conflictingClassGroupModifiers,r=o===void 0?{}:o;function s(c){var l=c.split(Lt);return l[0]===""&&l.length!==1&&l.shift(),wn(l,t)||cs(c)}function a(c,l){var u=n[c]||[];return l&&r[c]?[].concat(u,r[c]):u}return{getClassGroupId:s,getConflictingClassGroupIds:a}}function wn(e,t){var a;if(e.length===0)return t.classGroupId;var n=e[0],o=t.nextPart.get(n),r=o?wn(e.slice(1),o):void 0;if(r)return r;if(t.validators.length!==0){var s=e.join(Lt);return(a=t.validators.find(function(c){var l=c.validator;return l(s)}))==null?void 0:a.classGroupId}}var xn=/^\[(.+)\]$/;function cs(e){if(xn.test(e)){var t=xn.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function ls(e){var t=e.theme,n=e.prefix,o={nextPart:new Map,validators:[]},r=us(Object.entries(e.classGroups),n);return r.forEach(function(s){var a=s[0],c=s[1];Gt(c,o,a,t)}),o}function Gt(e,t,n,o){e.forEach(function(r){if(typeof r=="string"){var s=r===""?t:yn(t,r);s.classGroupId=n;return}if(typeof r=="function"){if(ds(r)){Gt(r(o),t,n,o);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(function(a){var c=a[0],l=a[1];Gt(l,yn(t,c),n,o)})})}function yn(e,t){var n=e;return t.split(Lt).forEach(function(o){n.nextPart.has(o)||n.nextPart.set(o,{nextPart:new Map,validators:[]}),n=n.nextPart.get(o)}),n}function ds(e){return e.isThemeGetter}function us(e,t){return t?e.map(function(n){var o=n[0],r=n[1],s=r.map(function(a){return typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(function(c){var l=c[0],u=c[1];return[t+l,u]})):a});return[o,s]}):e}function fs(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,o=new Map;function r(s,a){n.set(s,a),t++,t>e&&(t=0,o=n,n=new Map)}return{get:function(a){var c=n.get(a);if(c!==void 0)return c;if((c=o.get(a))!==void 0)return r(a,c),c},set:function(a,c){n.has(a)?n.set(a,c):r(a,c)}}}var Cn="!";function ps(e){var t=e.separator||":",n=t.length===1,o=t[0],r=t.length;return function(a){for(var c=[],l=0,u=0,f,d=0;d<a.length;d++){var v=a[d];if(l===0){if(v===o&&(n||a.slice(d,d+r)===t)){c.push(a.slice(u,d)),u=d+r;continue}if(v==="/"){f=d;continue}}v==="["?l++:v==="]"&&l--}var p=c.length===0?a:a.substring(u),g=p.startsWith(Cn),m=g?p.substring(1):p,$=f&&f>u?f-u:void 0;return{modifiers:c,hasImportantModifier:g,baseClassName:m,maybePostfixModifierPosition:$}}}function ms(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(o){var r=o[0]==="[";r?(t.push.apply(t,n.sort().concat([o])),n=[]):n.push(o)}),t.push.apply(t,n.sort()),t}function gs(e){return{cache:fs(e.cacheSize),splitModifiers:ps(e),...as(e)}}var vs=/\s+/;function hs(e,t){var n=t.splitModifiers,o=t.getClassGroupId,r=t.getConflictingClassGroupIds,s=new Set;return e.trim().split(vs).map(function(a){var c=n(a),l=c.modifiers,u=c.hasImportantModifier,f=c.baseClassName,d=c.maybePostfixModifierPosition,v=o(d?f.substring(0,d):f),p=!!d;if(!v){if(!d)return{isTailwindClass:!1,originalClassName:a};if(v=o(f),!v)return{isTailwindClass:!1,originalClassName:a};p=!1}var g=ms(l).join(":"),m=u?g+Cn:g;return{isTailwindClass:!0,modifierId:m,classGroupId:v,originalClassName:a,hasPostfixModifier:p}}).reverse().filter(function(a){if(!a.isTailwindClass)return!0;var c=a.modifierId,l=a.classGroupId,u=a.hasPostfixModifier,f=c+l;return s.has(f)?!1:(s.add(f),r(l,u).forEach(function(d){return s.add(c+d)}),!0)}).reverse().map(function(a){return a.originalClassName}).join(" ")}function bs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o,r,s,a=c;function c(u){var f=t[0],d=t.slice(1),v=d.reduce(function(p,g){return g(p)},f());return o=gs(v),r=o.cache.get,s=o.cache.set,a=l,l(u)}function l(u){var f=r(u);if(f)return f;var d=hs(u,o);return s(u,d),d}return function(){return a(is.apply(null,arguments))}}function X(e){var t=function(o){return o[e]||[]};return t.isThemeGetter=!0,t}var En=/^\[(?:([a-z-]+):)?(.+)\]$/i,$s=/^\d+\/\d+$/,ws=new Set(["px","full","screen"]),xs=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ys=/\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$/,Cs=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function pe(e){return Oe(e)||ws.has(e)||$s.test(e)||Bt(e)}function Bt(e){return Ie(e,"length",Ts)}function Es(e){return Ie(e,"size",Sn)}function Ss(e){return Ie(e,"position",Sn)}function Ps(e){return Ie(e,"url",ks)}function st(e){return Ie(e,"number",Oe)}function Oe(e){return!Number.isNaN(Number(e))}function Ms(e){return e.endsWith("%")&&Oe(e.slice(0,-1))}function qe(e){return Pn(e)||Ie(e,"number",Pn)}function W(e){return En.test(e)}function Xe(){return!0}function Ce(e){return xs.test(e)}function _s(e){return Ie(e,"",Os)}function Ie(e,t,n){var o=En.exec(e);return o?o[1]?o[1]===t:n(o[2]):!1}function Ts(e){return ys.test(e)}function Sn(){return!1}function ks(e){return e.startsWith("url(")}function Pn(e){return Number.isInteger(Number(e))}function Os(e){return Cs.test(e)}function Is(){var e=X("colors"),t=X("spacing"),n=X("blur"),o=X("brightness"),r=X("borderColor"),s=X("borderRadius"),a=X("borderSpacing"),c=X("borderWidth"),l=X("contrast"),u=X("grayscale"),f=X("hueRotate"),d=X("invert"),v=X("gap"),p=X("gradientColorStops"),g=X("gradientColorStopPositions"),m=X("inset"),$=X("margin"),h=X("opacity"),b=X("padding"),w=X("saturate"),x=X("scale"),y=X("sepia"),M=X("skew"),S=X("space"),P=X("translate"),N=function(){return["auto","contain","none"]},H=function(){return["auto","hidden","clip","visible","scroll"]},F=function(){return["auto",W,t]},T=function(){return[W,t]},B=function(){return["",pe]},G=function(){return["auto",Oe,W]},L=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},D=function(){return["solid","dashed","dotted","double","none"]},te=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},q=function(){return["start","end","center","between","around","evenly","stretch"]},_=function(){return["","0",W]},V=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},J=function(){return[Oe,st]},ne=function(){return[Oe,W]};return{cacheSize:500,theme:{colors:[Xe],spacing:[pe],blur:["none","",Ce,W],brightness:J(),borderColor:[e],borderRadius:["none","","full",Ce,W],borderSpacing:T(),borderWidth:B(),contrast:J(),grayscale:_(),hueRotate:ne(),invert:_(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[Ms,Bt],inset:F(),margin:F(),opacity:J(),padding:T(),saturate:J(),scale:J(),sepia:_(),skew:ne(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",W]}],container:["container"],columns:[{columns:[Ce]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"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"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(L(),[W])}],overflow:[{overflow:H()}],"overflow-x":[{"overflow-x":H()}],"overflow-y":[{"overflow-y":H()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",qe]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",W]}],grow:[{grow:_()}],shrink:[{shrink:_()}],order:[{order:["first","last","none",qe]}],"grid-cols":[{"grid-cols":[Xe]}],"col-start-end":[{col:["auto",{span:["full",qe]},W]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[Xe]}],"row-start-end":[{row:["auto",{span:[qe]},W]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",W]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",W]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal"].concat(q())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(q(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(q(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[$]}],mx:[{mx:[$]}],my:[{my:[$]}],ms:[{ms:[$]}],me:[{me:[$]}],mt:[{mt:[$]}],mr:[{mr:[$]}],mb:[{mb:[$]}],ml:[{ml:[$]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",W,t]}],"min-w":[{"min-w":["min","max","fit",W,pe]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Ce]},Ce,W]}],h:[{h:[W,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",W,pe]}],"max-h":[{"max-h":[W,t,"min","max","fit"]}],"font-size":[{text:["base",Ce,Bt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",st]}],"font-family":[{font:[Xe]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",W]}],"line-clamp":[{"line-clamp":["none",Oe,st]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",W,pe]}],"list-image":[{"list-image":["none",W]}],"list-style-type":[{list:["none","disc","decimal",W]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(D(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",pe]}],"underline-offset":[{"underline-offset":["auto",W,pe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(L(),[Ss])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Es]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ps]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[].concat(D(),["hidden"])}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:D()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:[""].concat(D())}],"outline-offset":[{"outline-offset":[W,pe]}],"outline-w":[{outline:[pe]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[pe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ce,_s]}],"shadow-color":[{shadow:[Xe]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":te()}],"bg-blend":[{"bg-blend":te()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Ce,W]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[y]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",W]}],duration:[{duration:ne()}],ease:[{ease:["linear","in","out","in-out",W]}],delay:[{delay:ne()}],animate:[{animate:["none","spin","ping","pulse","bounce",W]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[qe,W]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[M]}],"skew-y":[{"skew-y":[M]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",W]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],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",W]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"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","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",W]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[pe,st]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"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"],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-s","border-w-e","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-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"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","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-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var As=bs(Is);function z(...e){return As(e.filter(Boolean).join(" "))}const Mn={base:"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 dark:ring-offset-neutral-950 dark:focus-visible:ring-neutral-300",default:"bg-neutral-900 text-neutral-50 hover:bg-neutral-900/90 dark:bg-neutral-50 dark:text-neutral-900 dark:hover:bg-neutral-50/90 focus:outline-none",destructive:"bg-red-500 text-neutral-50 hover:bg-red-500/90 dark:bg-red-900 dark:text-neutral-50 dark:hover:bg-red-900/90",outline:"border border-neutral-200 bg-white hover:bg-neutral-100 hover:text-neutral-900 dark:border-neutral-800 dark:bg-neutral-950 dark:hover:bg-neutral-800 dark:hover:text-neutral-50",secondary:"bg-neutral-100 text-neutral-900 hover:bg-neutral-100/80 dark:bg-neutral-800 dark:text-neutral-50 dark:hover:bg-neutral-800/80",ghost:"hover:bg-neutral-100 hover:text-neutral-900 dark:hover:bg-neutral-800 dark:hover:text-neutral-50",link:"text-neutral-900 underline-offset-4 hover:underline dark:text-neutral-50"},Ds={default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"};var _n=(e=>(e.BASE="base",e.DEFAULT="default",e.DESTRUCTIVE="destructive",e.OUTLINE="outline",e.SECONDARY="secondary",e.GHOST="ghost",e.LINK="link",e))(_n||{}),Tn=(e=>(e.DEFAULT="default",e.SM="sm",e.LG="lg",e.ICON="icon",e))(Tn||{});const Ns=({children:e,className:t="",variant:n=_n.BASE,size:o=Tn.DEFAULT,...r})=>{const s=z(Mn.base,Mn[n],Ds[o],t);return k.jsx("button",{className:s,...r,children:e})},kn={default:"stroke-1",primary:"fill-amber-400 stroke-black",secondary:"fill-purple-400 stroke-white"},Fs={default:"w-16 h-16",sm:"w-12 h-12",md:"w-20 h-20",lg:"w-24 h-24"};var On=(e=>(e.DEFAULT="default",e.PRIMARY="primary",e.SECONDARY="secondary",e))(On||{}),In=(e=>(e.DEFAULT="default",e.SM="sm",e.MD="md",e.LG="lg",e))(In||{});const Ls=({variant:e=On.SECONDARY,size:t=In.DEFAULT,...n})=>{const o=z(Fs[t]),r=z(kn.default,kn[e],"animate-spin origin-center");return k.jsx("svg",{role:"img",className:o,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:k.jsx("path",{className:r,d:"M12,23a9.63,9.63,0,0,1-8-9.5,9.51,9.51,0,0,1,6.79-9.1A1.66,1.66,0,0,0,12,2.81h0a1.67,1.67,0,0,0-1.94-1.64A11,11,0,0,0,12,23Z"})})},Gs=({className:e="",type:t,...n})=>{const o=z("flex h-10 w-full rounded-md border border-neutral-200 bg-white px-3 py-2 text-sm ring-offset-white file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-neutral-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-950 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-neutral-800 dark:bg-neutral-950 dark:ring-offset-neutral-950 dark:placeholder:text-neutral-400 dark:focus-visible:ring-neutral-300",e);return k.jsx("input",{className:o,type:t,...n})},Bs=({className:e="",...t})=>{const n=z("flex w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e);return k.jsx("textarea",{className:n,...t})},Ws=({children:e,className:t="",...n})=>{const o=z("text-base font-medium",t);return k.jsx("p",{className:o,...n,children:e})},Hs=({children:e,className:t="",...n})=>{const o=z("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",t);return k.jsx("label",{className:o,...n,children:e})},zs={h1:"text-2xl",h2:"text-xl",h3:"text-lg",h4:"text-base",h5:"text-sm",h6:"text-xs"};var An=(e=>(e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e))(An||{});const Us=({children:e,className:t="",level:n=An.H1,...o})=>{const r=z("font-medium",zs[n],t);return i.createElement(n,{className:r,...o},e)},Vs=({className:e="",...t})=>{const n=z("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e);return k.jsx("input",{id:t.id,className:n,type:"checkbox",...t})},Dn=E.forwardRef(({className:e="",...t},n)=>{const o=z("rounded-lg border border-neutral-200 bg-white text-neutral-950 shadow-sm dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e);return k.jsx("div",{ref:n,className:o,...t})});Dn.displayName="Card";const Nn=E.forwardRef(({className:e="",...t},n)=>{const o=z("flex flex-col space-y-1.5 p-6",e);return k.jsx("div",{ref:n,className:o,...t})});Nn.displayName="CardHeader";const Fn=E.forwardRef(({className:e="",...t},n)=>{const o=z("text-2xl font-semibold leading-none tracking-tight",e);return k.jsx("h3",{ref:n,className:o,...t})});Fn.displayName="CardTitle";const Ln=E.forwardRef(({className:e="",...t},n)=>{const o=z("text-sm text-neutral-500 dark:text-neutral-400",e);return k.jsx("p",{ref:n,className:o,...t})});Ln.displayName="CardDescription";const Gn=E.forwardRef(({className:e="",...t},n)=>{const o=z("p-6 pt-0",e);return k.jsx("div",{ref:n,className:o,...t})});Gn.displayName="CardContent";const Bn=E.forwardRef(({className:e="",...t},n)=>{const o=z("flex items-center p-6 pt-0",e);return k.jsx("div",{ref:n,className:o,...t})});Bn.displayName="CardFooter";function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},C.apply(this,arguments)}function O(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Ks(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function it(...e){return t=>e.forEach(n=>Ks(n,t))}function ee(...e){return i.useCallback(it(...e),e)}function Ee(e,t=[]){let n=[];function o(s,a){const c=i.createContext(a),l=n.length;n=[...n,a];function u(d){const{scope:v,children:p,...g}=d,m=(v==null?void 0:v[e][l])||c,$=i.useMemo(()=>g,Object.values(g));return i.createElement(m.Provider,{value:$},p)}function f(d,v){const p=(v==null?void 0:v[e][l])||c,g=i.useContext(p);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${s}\``)}return u.displayName=s+"Provider",[u,f]}const r=()=>{const s=n.map(a=>i.createContext(a));return function(c){const l=(c==null?void 0:c[e])||s;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return r.scopeName=e,[o,js(r,...t)]}function js(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const a=o.reduce((c,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function ae(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var o;return(o=t.current)===null||o===void 0?void 0:o.call(t,...n)},[])}function Le({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=Rs({defaultProp:t,onChange:n}),s=e!==void 0,a=s?e:o,c=ae(n),l=i.useCallback(u=>{if(s){const d=typeof u=="function"?u(e):u;d!==e&&c(d)}else r(u)},[s,e,r,c]);return[a,l]}function Rs({defaultProp:e,onChange:t}){const n=i.useState(e),[o]=n,r=i.useRef(o),s=ae(t);return i.useEffect(()=>{r.current!==o&&(s(o),r.current=o)},[o,r,s]),n}const Ge=i.forwardRef((e,t)=>{const{children:n,...o}=e,r=i.Children.toArray(n),s=r.find(qs);if(s){const a=s.props.children,c=r.map(l=>l===s?i.Children.count(a)>1?i.Children.only(null):i.isValidElement(a)?a.props.children:null:l);return i.createElement(Wt,C({},o,{ref:t}),i.isValidElement(a)?i.cloneElement(a,void 0,c):null)}return i.createElement(Wt,C({},o,{ref:t}),n)});Ge.displayName="Slot";const Wt=i.forwardRef((e,t)=>{const{children:n,...o}=e;return i.isValidElement(n)?i.cloneElement(n,{...Xs(o,n.props),ref:t?it(t,n.ref):n.ref}):i.Children.count(n)>1?i.Children.only(null):null});Wt.displayName="SlotClone";const Ys=({children:e})=>i.createElement(i.Fragment,null,e);function qs(e){return i.isValidElement(e)&&e.type===Ys}function Xs(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...c)=>{s(...c),r(...c)}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}const K=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=i.forwardRef((o,r)=>{const{asChild:s,...a}=o,c=s?Ge:t;return i.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),i.createElement(c,C({},a,{ref:r}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Wn(e,t){e&&Fe.flushSync(()=>e.dispatchEvent(t))}function Ht(e){const t=e+"CollectionProvider",[n,o]=Ee(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=p=>{const{scope:g,children:m}=p,$=i.useRef(null),h=i.useRef(new Map).current;return i.createElement(r,{scope:g,itemMap:h,collectionRef:$},m)},c=e+"CollectionSlot",l=i.forwardRef((p,g)=>{const{scope:m,children:$}=p,h=s(c,m),b=ee(g,h.collectionRef);return i.createElement(Ge,{ref:b},$)}),u=e+"CollectionItemSlot",f="data-radix-collection-item",d=i.forwardRef((p,g)=>{const{scope:m,children:$,...h}=p,b=i.useRef(null),w=ee(g,b),x=s(u,m);return i.useEffect(()=>(x.itemMap.set(b,{ref:b,...h}),()=>void x.itemMap.delete(b))),i.createElement(Ge,{[f]:"",ref:w},$)});function v(p){const g=s(e+"CollectionConsumer",p);return i.useCallback(()=>{const $=g.collectionRef.current;if(!$)return[];const h=Array.from($.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((x,y)=>h.indexOf(x.ref.current)-h.indexOf(y.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:a,Slot:l,ItemSlot:d},v,o]}const Zs=i.createContext(void 0);function at(e){const t=i.useContext(Zs);return e||t||"ltr"}function Qs(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e);i.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o),()=>t.removeEventListener("keydown",o)},[n,t])}const zt="dismissableLayer.update",Js="dismissableLayer.pointerDownOutside",ei="dismissableLayer.focusOutside";let Hn;const ti=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zn=i.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:c,onDismiss:l,...u}=e,f=i.useContext(ti),[d,v]=i.useState(null),p=(n=d==null?void 0:d.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,g]=i.useState({}),m=ee(t,P=>v(P)),$=Array.from(f.layers),[h]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),b=$.indexOf(h),w=d?$.indexOf(d):-1,x=f.layersWithOutsidePointerEventsDisabled.size>0,y=w>=b,M=ni(P=>{const N=P.target,H=[...f.branches].some(F=>F.contains(N));!y||H||(s==null||s(P),c==null||c(P),P.defaultPrevented||l==null||l())},p),S=oi(P=>{const N=P.target;[...f.branches].some(F=>F.contains(N))||(a==null||a(P),c==null||c(P),P.defaultPrevented||l==null||l())},p);return Qs(P=>{w===f.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&l&&(P.preventDefault(),l()))},p),i.useEffect(()=>{if(d)return o&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Hn=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),Un(),()=>{o&&f.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Hn)}},[d,p,o,f]),i.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),Un())},[d,f]),i.useEffect(()=>{const P=()=>g({});return document.addEventListener(zt,P),()=>document.removeEventListener(zt,P)},[]),i.createElement(K.div,C({},u,{ref:m,style:{pointerEvents:x?y?"auto":"none":void 0,...e.style},onFocusCapture:O(e.onFocusCapture,S.onFocusCapture),onBlurCapture:O(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:O(e.onPointerDownCapture,M.onPointerDownCapture)}))});function ni(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),o=i.useRef(!1),r=i.useRef(()=>{});return i.useEffect(()=>{const s=c=>{if(c.target&&!o.current){let u=function(){Vn(Js,n,l,{discrete:!0})};const l={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}o.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function oi(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),o=i.useRef(!1);return i.useEffect(()=>{const r=s=>{s.target&&!o.current&&Vn(ei,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Un(){const e=new CustomEvent(zt);document.dispatchEvent(e)}function Vn(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Wn(r,s):r.dispatchEvent(s)}let Ut=0;function Kn(){i.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:jn()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:jn()),Ut++,()=>{Ut===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),Ut--}},[])}function jn(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Vt="focusScope.autoFocusOnMount",Kt="focusScope.autoFocusOnUnmount",Rn={bubbles:!1,cancelable:!0},Yn=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...a}=e,[c,l]=i.useState(null),u=ae(r),f=ae(s),d=i.useRef(null),v=ee(t,m=>l(m)),p=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(o){let m=function(w){if(p.paused||!c)return;const x=w.target;c.contains(x)?d.current=x:Se(d.current,{select:!0})},$=function(w){if(p.paused||!c)return;const x=w.relatedTarget;x!==null&&(c.contains(x)||Se(d.current,{select:!0}))},h=function(w){const x=document.activeElement;for(const y of w)y.removedNodes.length>0&&(c!=null&&c.contains(x)||Se(c))};document.addEventListener("focusin",m),document.addEventListener("focusout",$);const b=new MutationObserver(h);return c&&b.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",$),b.disconnect()}}},[o,c,p.paused]),i.useEffect(()=>{if(c){Zn.add(p);const m=document.activeElement;if(!c.contains(m)){const h=new CustomEvent(Vt,Rn);c.addEventListener(Vt,u),c.dispatchEvent(h),h.defaultPrevented||(ri(li(qn(c)),{select:!0}),document.activeElement===m&&Se(c))}return()=>{c.removeEventListener(Vt,u),setTimeout(()=>{const h=new CustomEvent(Kt,Rn);c.addEventListener(Kt,f),c.dispatchEvent(h),h.defaultPrevented||Se(m??document.body,{select:!0}),c.removeEventListener(Kt,f),Zn.remove(p)},0)}}},[c,u,f,p]);const g=i.useCallback(m=>{if(!n&&!o||p.paused)return;const $=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,h=document.activeElement;if($&&h){const b=m.currentTarget,[w,x]=si(b);w&&x?!m.shiftKey&&h===x?(m.preventDefault(),n&&Se(w,{select:!0})):m.shiftKey&&h===w&&(m.preventDefault(),n&&Se(x,{select:!0})):h===b&&m.preventDefault()}},[n,o,p.paused]);return i.createElement(K.div,C({tabIndex:-1},a,{ref:v,onKeyDown:g}))});function ri(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Se(o,{select:t}),document.activeElement!==n)return}function si(e){const t=qn(e),n=Xn(t,e),o=Xn(t.reverse(),e);return[n,o]}function qn(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Xn(e,t){for(const n of e)if(!ii(n,{upTo:t}))return n}function ii(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function ai(e){return e instanceof HTMLInputElement&&"select"in e}function Se(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ai(e)&&t&&e.select()}}const Zn=ci();function ci(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Qn(e,t),e.unshift(t)},remove(t){var n;e=Qn(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Qn(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function li(e){return e.filter(t=>t.tagName!=="A")}const me=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{},di=E["useId".toString()]||(()=>{});let ui=0;function Pe(e){const[t,n]=E.useState(di());return me(()=>{e||n(o=>o??String(ui++))},[e]),e||(t?`radix-${t}`:"")}const fi=["top","right","bottom","left"],Me=Math.min,ce=Math.max,ct=Math.round,lt=Math.floor,_e=e=>({x:e,y:e}),pi={left:"right",right:"left",bottom:"top",top:"bottom"},mi={start:"end",end:"start"};function jt(e,t,n){return ce(e,Me(t,n))}function be(e,t){return typeof e=="function"?e(t):e}function $e(e){return e.split("-")[0]}function Be(e){return e.split("-")[1]}function Rt(e){return e==="x"?"y":"x"}function Yt(e){return e==="y"?"height":"width"}function We(e){return["top","bottom"].includes($e(e))?"y":"x"}function qt(e){return Rt(We(e))}function gi(e,t,n){n===void 0&&(n=!1);const o=Be(e),r=qt(e),s=Yt(r);let a=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=dt(a)),[a,dt(a)]}function vi(e){const t=dt(e);return[Xt(e),t,Xt(t)]}function Xt(e){return e.replace(/start|end/g,t=>mi[t])}function hi(e,t,n){const o=["left","right"],r=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?s:a;default:return[]}}function bi(e,t,n,o){const r=Be(e);let s=hi($e(e),n==="start",o);return r&&(s=s.map(a=>a+"-"+r),t&&(s=s.concat(s.map(Xt)))),s}function dt(e){return e.replace(/left|right|bottom|top/g,t=>pi[t])}function $i(e){return{top:0,right:0,bottom:0,left:0,...e}}function Jn(e){return typeof e!="number"?$i(e):{top:e,right:e,bottom:e,left:e}}function ut(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function eo(e,t,n){let{reference:o,floating:r}=e;const s=We(t),a=qt(t),c=Yt(a),l=$e(t),u=s==="y",f=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,v=o[c]/2-r[c]/2;let p;switch(l){case"top":p={x:f,y:o.y-r.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(Be(t)){case"start":p[a]-=v*(n&&u?-1:1);break;case"end":p[a]+=v*(n&&u?-1:1);break}return p}const wi=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:a}=n,c=s.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:d}=eo(u,o,l),v=o,p={},g=0;for(let m=0;m<c.length;m++){const{name:$,fn:h}=c[m],{x:b,y:w,data:x,reset:y}=await h({x:f,y:d,initialPlacement:o,placement:v,strategy:r,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});if(f=b??f,d=w??d,p={...p,[$]:{...p[$],...x}},y&&g<=50){g++,typeof y=="object"&&(y.placement&&(v=y.placement),y.rects&&(u=y.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:r}):y.rects),{x:f,y:d}=eo(u,v,l)),m=-1;continue}}return{x:f,y:d,placement:v,strategy:r,middlewareData:p}};async function Ze(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:a,elements:c,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:v=!1,padding:p=0}=be(t,e),g=Jn(p),$=c[v?d==="floating"?"reference":"floating":d],h=ut(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement($)))==null||n?$:$.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:l})),b=d==="floating"?{...a.floating,x:o,y:r}:a.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),x=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},y=ut(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:w,strategy:l}):b);return{top:(h.top-y.top+g.top)/x.y,bottom:(y.bottom-h.bottom+g.bottom)/x.y,left:(h.left-y.left+g.left)/x.x,right:(y.right-h.right+g.right)/x.x}}const to=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:a,elements:c}=t,{element:l,padding:u=0}=be(e,t)||{};if(l==null)return{};const f=Jn(u),d={x:n,y:o},v=qt(r),p=Yt(v),g=await a.getDimensions(l),m=v==="y",$=m?"top":"left",h=m?"bottom":"right",b=m?"clientHeight":"clientWidth",w=s.reference[p]+s.reference[v]-d[v]-s.floating[p],x=d[v]-s.reference[v],y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l));let M=y?y[b]:0;(!M||!await(a.isElement==null?void 0:a.isElement(y)))&&(M=c.floating[b]||s.floating[p]);const S=w/2-x/2,P=M/2-g[p]/2-1,N=Me(f[$],P),H=Me(f[h],P),F=N,T=M-g[p]-H,B=M/2-g[p]/2+S,G=jt(F,B,T),D=Be(r)!=null&&B!=G&&s.reference[p]/2-(B<F?N:H)-g[p]/2<0?B<F?F-B:T-B:0;return{[v]:d[v]-D,data:{[v]:G,centerOffset:B-G+D}}}}),xi=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:o,middlewareData:r,rects:s,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...m}=be(e,t),$=$e(o),h=$e(a)===a,b=await(c.isRTL==null?void 0:c.isRTL(l.floating)),w=d||(h||!g?[dt(a)]:vi(a));!d&&p!=="none"&&w.push(...bi(a,g,p,b));const x=[a,...w],y=await Ze(t,m),M=[];let S=((n=r.flip)==null?void 0:n.overflows)||[];if(u&&M.push(y[$]),f){const F=gi(o,s,b);M.push(y[F[0]],y[F[1]])}if(S=[...S,{placement:o,overflows:M}],!M.every(F=>F<=0)){var P,N;const F=(((P=r.flip)==null?void 0:P.index)||0)+1,T=x[F];if(T)return{data:{index:F,overflows:S},reset:{placement:T}};let B=(N=S.filter(G=>G.overflows[0]<=0).sort((G,L)=>G.overflows[1]-L.overflows[1])[0])==null?void 0:N.placement;if(!B)switch(v){case"bestFit":{var H;const G=(H=S.map(L=>[L.placement,L.overflows.filter(D=>D>0).reduce((D,te)=>D+te,0)]).sort((L,D)=>L[1]-D[1])[0])==null?void 0:H[0];G&&(B=G);break}case"initialPlacement":B=a;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function no(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function oo(e){return fi.some(t=>e[t]>=0)}const yi=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=be(e,t);switch(o){case"referenceHidden":{const s=await Ze(t,{...r,elementContext:"reference"}),a=no(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:oo(a)}}}case"escaped":{const s=await Ze(t,{...r,altBoundary:!0}),a=no(s,n.floating);return{data:{escapedOffsets:a,escaped:oo(a)}}}default:return{}}}}};async function Ci(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),a=$e(n),c=Be(n),l=We(n)==="y",u=["left","top"].includes(a)?-1:1,f=s&&l?-1:1,d=be(t,e);let{mainAxis:v,crossAxis:p,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return c&&typeof g=="number"&&(p=c==="end"?g*-1:g),l?{x:p*f,y:v*u}:{x:v*u,y:p*f}}const Ei=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,r=await Ci(t,e);return{x:n+r.x,y:o+r.y,data:r}}}},Si=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:$=>{let{x:h,y:b}=$;return{x:h,y:b}}},...l}=be(e,t),u={x:n,y:o},f=await Ze(t,l),d=We($e(r)),v=Rt(d);let p=u[v],g=u[d];if(s){const $=v==="y"?"top":"left",h=v==="y"?"bottom":"right",b=p+f[$],w=p-f[h];p=jt(b,p,w)}if(a){const $=d==="y"?"top":"left",h=d==="y"?"bottom":"right",b=g+f[$],w=g-f[h];g=jt(b,g,w)}const m=c.fn({...t,[v]:p,[d]:g});return{...m,data:{x:m.x-n,y:m.y-o}}}}},Pi=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:a}=t,{offset:c=0,mainAxis:l=!0,crossAxis:u=!0}=be(e,t),f={x:n,y:o},d=We(r),v=Rt(d);let p=f[v],g=f[d];const m=be(c,t),$=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const w=v==="y"?"height":"width",x=s.reference[v]-s.floating[w]+$.mainAxis,y=s.reference[v]+s.reference[w]-$.mainAxis;p<x?p=x:p>y&&(p=y)}if(u){var h,b;const w=v==="y"?"width":"height",x=["top","left"].includes($e(r)),y=s.reference[d]-s.floating[w]+(x&&((h=a.offset)==null?void 0:h[d])||0)+(x?0:$.crossAxis),M=s.reference[d]+s.reference[w]+(x?0:((b=a.offset)==null?void 0:b[d])||0)-(x?$.crossAxis:0);g<y?g=y:g>M&&(g=M)}return{[v]:p,[d]:g}}}},Mi=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:s}=t,{apply:a=()=>{},...c}=be(e,t),l=await Ze(t,c),u=$e(n),f=Be(n),d=We(n)==="y",{width:v,height:p}=o.floating;let g,m;u==="top"||u==="bottom"?(g=u,m=f===(await(r.isRTL==null?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(m=u,g=f==="end"?"top":"bottom");const $=p-l[g],h=v-l[m],b=!t.middlewareData.shift;let w=$,x=h;if(d){const M=v-l.left-l.right;x=f||b?Me(h,M):M}else{const M=p-l.top-l.bottom;w=f||b?Me($,M):M}if(b&&!f){const M=ce(l.left,0),S=ce(l.right,0),P=ce(l.top,0),N=ce(l.bottom,0);d?x=v-2*(M!==0||S!==0?M+S:ce(l.left,l.right)):w=p-2*(P!==0||N!==0?P+N:ce(l.top,l.bottom))}await a({...t,availableWidth:x,availableHeight:w});const y=await r.getDimensions(s.floating);return v!==y.width||p!==y.height?{reset:{rects:!0}}:{}}}};function Te(e){return ro(e)?(e.nodeName||"").toLowerCase():"#document"}function le(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function we(e){var t;return(t=(ro(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ro(e){return e instanceof Node||e instanceof le(e).Node}function xe(e){return e instanceof Element||e instanceof le(e).Element}function ve(e){return e instanceof HTMLElement||e instanceof le(e).HTMLElement}function so(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof le(e).ShadowRoot}function Qe(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=fe(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function _i(e){return["table","td","th"].includes(Te(e))}function Zt(e){const t=Qt(),n=fe(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Ti(e){let t=He(e);for(;ve(t)&&!ft(t);){if(Zt(t))return t;t=He(t)}return null}function Qt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ft(e){return["html","body","#document"].includes(Te(e))}function fe(e){return le(e).getComputedStyle(e)}function pt(e){return xe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function He(e){if(Te(e)==="html")return e;const t=e.assignedSlot||e.parentNode||so(e)&&e.host||we(e);return so(t)?t.host:t}function io(e){const t=He(e);return ft(t)?e.ownerDocument?e.ownerDocument.body:e.body:ve(t)&&Qe(t)?t:io(t)}function mt(e,t){var n;t===void 0&&(t=[]);const o=io(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),s=le(o);return r?t.concat(s,s.visualViewport||[],Qe(o)?o:[]):t.concat(o,mt(o))}function ao(e){const t=fe(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=ve(e),s=r?e.offsetWidth:n,a=r?e.offsetHeight:o,c=ct(n)!==s||ct(o)!==a;return c&&(n=s,o=a),{width:n,height:o,$:c}}function Jt(e){return xe(e)?e:e.contextElement}function ze(e){const t=Jt(e);if(!ve(t))return _e(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=ao(t);let a=(s?ct(n.width):n.width)/o,c=(s?ct(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const ki=_e(0);function co(e){const t=le(e);return!Qt()||!t.visualViewport?ki:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Oi(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==le(e)?!1:t}function Ae(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=Jt(e);let a=_e(1);t&&(o?xe(o)&&(a=ze(o)):a=ze(e));const c=Oi(s,n,o)?co(s):_e(0);let l=(r.left+c.x)/a.x,u=(r.top+c.y)/a.y,f=r.width/a.x,d=r.height/a.y;if(s){const v=le(s),p=o&&xe(o)?le(o):o;let g=v.frameElement;for(;g&&o&&p!==v;){const m=ze(g),$=g.getBoundingClientRect(),h=fe(g),b=$.left+(g.clientLeft+parseFloat(h.paddingLeft))*m.x,w=$.top+(g.clientTop+parseFloat(h.paddingTop))*m.y;l*=m.x,u*=m.y,f*=m.x,d*=m.y,l+=b,u+=w,g=le(g).frameElement}}return ut({width:f,height:d,x:l,y:u})}function Ii(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=ve(n),s=we(n);if(n===s)return t;let a={scrollLeft:0,scrollTop:0},c=_e(1);const l=_e(0);if((r||!r&&o!=="fixed")&&((Te(n)!=="body"||Qe(s))&&(a=pt(n)),ve(n))){const u=Ae(n);c=ze(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*c.x,height:t.height*c.y,x:t.x*c.x-a.scrollLeft*c.x+l.x,y:t.y*c.y-a.scrollTop*c.y+l.y}}function Ai(e){return Array.from(e.getClientRects())}function lo(e){return Ae(we(e)).left+pt(e).scrollLeft}function Di(e){const t=we(e),n=pt(e),o=e.ownerDocument.body,r=ce(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=ce(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+lo(e);const c=-n.scrollTop;return fe(o).direction==="rtl"&&(a+=ce(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:a,y:c}}function Ni(e,t){const n=le(e),o=we(e),r=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,c=0,l=0;if(r){s=r.width,a=r.height;const u=Qt();(!u||u&&t==="fixed")&&(c=r.offsetLeft,l=r.offsetTop)}return{width:s,height:a,x:c,y:l}}function Fi(e,t){const n=Ae(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=ve(e)?ze(e):_e(1),a=e.clientWidth*s.x,c=e.clientHeight*s.y,l=r*s.x,u=o*s.y;return{width:a,height:c,x:l,y:u}}function uo(e,t,n){let o;if(t==="viewport")o=Ni(e,n);else if(t==="document")o=Di(we(e));else if(xe(t))o=Fi(t,n);else{const r=co(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return ut(o)}function fo(e,t){const n=He(e);return n===t||!xe(n)||ft(n)?!1:fe(n).position==="fixed"||fo(n,t)}function Li(e,t){const n=t.get(e);if(n)return n;let o=mt(e).filter(c=>xe(c)&&Te(c)!=="body"),r=null;const s=fe(e).position==="fixed";let a=s?He(e):e;for(;xe(a)&&!ft(a);){const c=fe(a),l=Zt(a);!l&&c.position==="fixed"&&(r=null),(s?!l&&!r:!l&&c.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Qe(a)&&!l&&fo(e,a))?o=o.filter(f=>f!==a):r=c,a=He(a)}return t.set(e,o),o}function Gi(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const a=[...n==="clippingAncestors"?Li(t,this._c):[].concat(n),o],c=a[0],l=a.reduce((u,f)=>{const d=uo(t,f,r);return u.top=ce(d.top,u.top),u.right=Me(d.right,u.right),u.bottom=Me(d.bottom,u.bottom),u.left=ce(d.left,u.left),u},uo(t,c,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Bi(e){return ao(e)}function Wi(e,t,n){const o=ve(t),r=we(t),s=n==="fixed",a=Ae(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const l=_e(0);if(o||!o&&!s)if((Te(t)!=="body"||Qe(r))&&(c=pt(t)),o){const u=Ae(t,!0,s,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else r&&(l.x=lo(r));return{x:a.left+c.scrollLeft-l.x,y:a.top+c.scrollTop-l.y,width:a.width,height:a.height}}function po(e,t){return!ve(e)||fe(e).position==="fixed"?null:t?t(e):e.offsetParent}function mo(e,t){const n=le(e);if(!ve(e))return n;let o=po(e,t);for(;o&&_i(o)&&fe(o).position==="static";)o=po(o,t);return o&&(Te(o)==="html"||Te(o)==="body"&&fe(o).position==="static"&&!Zt(o))?n:o||Ti(e)||n}const Hi=async function(e){let{reference:t,floating:n,strategy:o}=e;const r=this.getOffsetParent||mo,s=this.getDimensions;return{reference:Wi(t,await r(n),o),floating:{x:0,y:0,...await s(n)}}};function zi(e){return fe(e).direction==="rtl"}const Ui={convertOffsetParentRelativeRectToViewportRelativeRect:Ii,getDocumentElement:we,getClippingRect:Gi,getOffsetParent:mo,getElementRects:Hi,getClientRects:Ai,getDimensions:Bi,getScale:ze,isElement:xe,isRTL:zi};function Vi(e,t){let n=null,o;const r=we(e);function s(){clearTimeout(o),n&&n.disconnect(),n=null}function a(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),s();const{left:u,top:f,width:d,height:v}=e.getBoundingClientRect();if(c||t(),!d||!v)return;const p=lt(f),g=lt(r.clientWidth-(u+d)),m=lt(r.clientHeight-(f+v)),$=lt(u),b={rootMargin:-p+"px "+-g+"px "+-m+"px "+-$+"px",threshold:ce(0,Me(1,l))||1};let w=!0;function x(y){const M=y[0].intersectionRatio;if(M!==l){if(!w)return a();M?a(!1,M):o=setTimeout(()=>{a(!1,1e-7)},100)}w=!1}try{n=new IntersectionObserver(x,{...b,root:r.ownerDocument})}catch{n=new IntersectionObserver(x,b)}n.observe(e)}return a(!0),s}function Ki(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=Jt(e),f=r||s?[...u?mt(u):[],...mt(t)]:[];f.forEach(h=>{r&&h.addEventListener("scroll",n,{passive:!0}),s&&h.addEventListener("resize",n)});const d=u&&c?Vi(u,n):null;let v=-1,p=null;a&&(p=new ResizeObserver(h=>{let[b]=h;b&&b.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{p&&p.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let g,m=l?Ae(e):null;l&&$();function $(){const h=Ae(e);m&&(h.x!==m.x||h.y!==m.y||h.width!==m.width||h.height!==m.height)&&n(),m=h,g=requestAnimationFrame($)}return n(),()=>{f.forEach(h=>{r&&h.removeEventListener("scroll",n),s&&h.removeEventListener("resize",n)}),d&&d(),p&&p.disconnect(),p=null,l&&cancelAnimationFrame(g)}}const ji=(e,t,n)=>{const o=new Map,r={platform:Ui,...n},s={...r.platform,_c:o};return wi(e,t,{...r,platform:s})},Ri=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?to({element:o.current,padding:r}).fn(n):{}:o?to({element:o,padding:r}).fn(n):{}}}};var gt=typeof document<"u"?i.useLayoutEffect:i.useEffect;function vt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(o=n;o--!==0;)if(!vt(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!vt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function go(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function vo(e,t){const n=go(e);return Math.round(t*n)/n}function ho(e){const t=E.useRef(e);return gt(()=>{t.current=e}),t}function Yi(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:a}={},transform:c=!0,whileElementsMounted:l,open:u}=e,[f,d]=E.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,p]=E.useState(o);vt(v,o)||p(o);const[g,m]=E.useState(null),[$,h]=E.useState(null),b=E.useCallback(D=>{D!=M.current&&(M.current=D,m(D))},[m]),w=E.useCallback(D=>{D!==S.current&&(S.current=D,h(D))},[h]),x=s||g,y=a||$,M=E.useRef(null),S=E.useRef(null),P=E.useRef(f),N=ho(l),H=ho(r),F=E.useCallback(()=>{if(!M.current||!S.current)return;const D={placement:t,strategy:n,middleware:v};H.current&&(D.platform=H.current),ji(M.current,S.current,D).then(te=>{const q={...te,isPositioned:!0};T.current&&!vt(P.current,q)&&(P.current=q,ss.flushSync(()=>{d(q)}))})},[v,t,n,H]);gt(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,d(D=>({...D,isPositioned:!1})))},[u]);const T=E.useRef(!1);gt(()=>(T.current=!0,()=>{T.current=!1}),[]),gt(()=>{if(x&&(M.current=x),y&&(S.current=y),x&&y){if(N.current)return N.current(x,y,F);F()}},[x,y,F,N]);const B=E.useMemo(()=>({reference:M,floating:S,setReference:b,setFloating:w}),[b,w]),G=E.useMemo(()=>({reference:x,floating:y}),[x,y]),L=E.useMemo(()=>{const D={position:n,left:0,top:0};if(!G.floating)return D;const te=vo(G.floating,f.x),q=vo(G.floating,f.y);return c?{...D,transform:"translate("+te+"px, "+q+"px)",...go(G.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:te,top:q}},[n,c,G.floating,f.x,f.y]);return E.useMemo(()=>({...f,update:F,refs:B,elements:G,floatingStyles:L}),[f,F,B,G,L])}function bo(e){const[t,n]=i.useState(void 0);return me(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let a,c;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,c=u.blockSize}else a=e.offsetWidth,c=e.offsetHeight;n({width:a,height:c})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}const $o="Popper",[wo,ht]=Ee($o),[qi,xo]=wo($o),Xi=e=>{const{__scopePopper:t,children:n}=e,[o,r]=i.useState(null);return i.createElement(qi,{scope:t,anchor:o,onAnchorChange:r},n)},Zi="PopperAnchor",Qi=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=xo(Zi,n),a=i.useRef(null),c=ee(t,a);return i.useEffect(()=>{s.onAnchorChange((o==null?void 0:o.current)||a.current)}),o?null:i.createElement(K.div,C({},r,{ref:c}))}),yo="PopperContent",[Ji,Hd]=wo(yo),ea=i.forwardRef((e,t)=>{var n,o,r,s,a,c,l,u;const{__scopePopper:f,side:d="bottom",sideOffset:v=0,align:p="center",alignOffset:g=0,arrowPadding:m=0,collisionBoundary:$=[],collisionPadding:h=0,sticky:b="partial",hideWhenDetached:w=!1,avoidCollisions:x=!0,onPlaced:y,...M}=e,S=xo(yo,f),[P,N]=i.useState(null),H=ee(t,se=>N(se)),[F,T]=i.useState(null),B=bo(F),G=(n=B==null?void 0:B.width)!==null&&n!==void 0?n:0,L=(o=B==null?void 0:B.height)!==null&&o!==void 0?o:0,D=d+(p!=="center"?"-"+p:""),te=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},q=Array.isArray($)?$:[$],_=q.length>0,V={padding:te,boundary:q.filter(ta),altBoundary:_},{refs:J,floatingStyles:ne,placement:Z,isPositioned:re,middlewareData:ie}=Yi({strategy:"fixed",placement:D,whileElementsMounted:Ki,elements:{reference:S.anchor},middleware:[Ei({mainAxis:v+L,alignmentAxis:g}),x&&Si({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?Pi():void 0,...V}),x&&xi({...V}),Mi({...V,apply:({elements:se,rects:nt,availableWidth:ot,availableHeight:rt})=>{const{width:Ld,height:Gd}=nt.reference,Ft=se.floating.style;Ft.setProperty("--radix-popper-available-width",`${ot}px`),Ft.setProperty("--radix-popper-available-height",`${rt}px`),Ft.setProperty("--radix-popper-anchor-width",`${Ld}px`),Ft.setProperty("--radix-popper-anchor-height",`${Gd}px`)}}),F&&Ri({element:F,padding:m}),na({arrowWidth:G,arrowHeight:L}),w&&yi({strategy:"referenceHidden"})]}),[de,I]=Co(Z),U=ae(y);me(()=>{re&&(U==null||U())},[re,U]);const Q=(r=ie.arrow)===null||r===void 0?void 0:r.x,j=(s=ie.arrow)===null||s===void 0?void 0:s.y,R=((a=ie.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[Y,ue]=i.useState();return me(()=>{P&&ue(window.getComputedStyle(P).zIndex)},[P]),i.createElement("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...ne,transform:re?ne.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[(c=ie.transformOrigin)===null||c===void 0?void 0:c.x,(l=ie.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},i.createElement(Ji,{scope:f,placedSide:de,onArrowChange:T,arrowX:Q,arrowY:j,shouldHideArrow:R},i.createElement(K.div,C({"data-side":de,"data-align":I},M,{ref:H,style:{...M.style,animation:re?void 0:"none",opacity:(u=ie.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))});function ta(e){return e!==null}const na=e=>({name:"transformOrigin",options:e,fn(t){var n,o,r,s,a;const{placement:c,rects:l,middlewareData:u}=t,d=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,v=d?0:e.arrowWidth,p=d?0:e.arrowHeight,[g,m]=Co(c),$={start:"0%",center:"50%",end:"100%"}[m],h=((o=(r=u.arrow)===null||r===void 0?void 0:r.x)!==null&&o!==void 0?o:0)+v/2,b=((s=(a=u.arrow)===null||a===void 0?void 0:a.y)!==null&&s!==void 0?s:0)+p/2;let w="",x="";return g==="bottom"?(w=d?$:`${h}px`,x=`${-p}px`):g==="top"?(w=d?$:`${h}px`,x=`${l.floating.height+p}px`):g==="right"?(w=`${-p}px`,x=d?$:`${b}px`):g==="left"&&(w=`${l.floating.width+p}px`,x=d?$:`${b}px`),{data:{x:w,y:x}}}});function Co(e){const[t,n="center"]=e.split("-");return[t,n]}const en=Xi,Eo=Qi,So=ea,Po=i.forwardRef((e,t)=>{var n;const{container:o=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...r}=e;return o?Fe.createPortal(i.createElement(K.div,C({},r,{ref:t})),o):null});function oa(e,t){return i.useReducer((n,o)=>{const r=t[n][o];return r??n},e)}const Ue=e=>{const{present:t,children:n}=e,o=ra(t),r=typeof n=="function"?n({present:o.isPresent}):i.Children.only(n),s=ee(o.ref,r.ref);return typeof n=="function"||o.isPresent?i.cloneElement(r,{ref:s}):null};Ue.displayName="Presence";function ra(e){const[t,n]=i.useState(),o=i.useRef({}),r=i.useRef(e),s=i.useRef("none"),a=e?"mounted":"unmounted",[c,l]=oa(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=bt(o.current);s.current=c==="mounted"?u:"none"},[c]),me(()=>{const u=o.current,f=r.current;if(f!==e){const v=s.current,p=bt(u);e?l("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(f&&v!==p?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),me(()=>{if(t){const u=d=>{const p=bt(o.current).includes(d.animationName);d.target===t&&p&&Fe.flushSync(()=>l("ANIMATION_END"))},f=d=>{d.target===t&&(s.current=bt(o.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(u=>{u&&(o.current=getComputedStyle(u)),n(u)},[])}}function bt(e){return(e==null?void 0:e.animationName)||"none"}const tn="rovingFocusGroup.onEntryFocus",sa={bubbles:!1,cancelable:!0},nn="RovingFocusGroup",[on,Mo,ia]=Ht(nn),[aa,$t]=Ee(nn,[ia]),[ca,la]=aa(nn),da=i.forwardRef((e,t)=>i.createElement(on.Provider,{scope:e.__scopeRovingFocusGroup},i.createElement(on.Slot,{scope:e.__scopeRovingFocusGroup},i.createElement(ua,C({},e,{ref:t}))))),ua=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:u,...f}=e,d=i.useRef(null),v=ee(t,d),p=at(s),[g=null,m]=Le({prop:a,defaultProp:c,onChange:l}),[$,h]=i.useState(!1),b=ae(u),w=Mo(n),x=i.useRef(!1),[y,M]=i.useState(0);return i.useEffect(()=>{const S=d.current;if(S)return S.addEventListener(tn,b),()=>S.removeEventListener(tn,b)},[b]),i.createElement(ca,{scope:n,orientation:o,dir:p,loop:r,currentTabStopId:g,onItemFocus:i.useCallback(S=>m(S),[m]),onItemShiftTab:i.useCallback(()=>h(!0),[]),onFocusableItemAdd:i.useCallback(()=>M(S=>S+1),[]),onFocusableItemRemove:i.useCallback(()=>M(S=>S-1),[])},i.createElement(K.div,C({tabIndex:$||y===0?-1:0,"data-orientation":o},f,{ref:v,style:{outline:"none",...e.style},onMouseDown:O(e.onMouseDown,()=>{x.current=!0}),onFocus:O(e.onFocus,S=>{const P=!x.current;if(S.target===S.currentTarget&&P&&!$){const N=new CustomEvent(tn,sa);if(S.currentTarget.dispatchEvent(N),!N.defaultPrevented){const H=w().filter(L=>L.focusable),F=H.find(L=>L.active),T=H.find(L=>L.id===g),G=[F,T,...H].filter(Boolean).map(L=>L.ref.current);_o(G)}}x.current=!1}),onBlur:O(e.onBlur,()=>h(!1))})))}),fa="RovingFocusGroupItem",pa=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:s,...a}=e,c=Pe(),l=s||c,u=la(fa,n),f=u.currentTabStopId===l,d=Mo(n),{onFocusableItemAdd:v,onFocusableItemRemove:p}=u;return i.useEffect(()=>{if(o)return v(),()=>p()},[o,v,p]),i.createElement(on.ItemSlot,{scope:n,id:l,focusable:o,active:r},i.createElement(K.span,C({tabIndex:f?0:-1,"data-orientation":u.orientation},a,{ref:t,onMouseDown:O(e.onMouseDown,g=>{o?u.onItemFocus(l):g.preventDefault()}),onFocus:O(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:O(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const m=va(g,u.orientation,u.dir);if(m!==void 0){g.preventDefault();let h=d().filter(b=>b.focusable).map(b=>b.ref.current);if(m==="last")h.reverse();else if(m==="prev"||m==="next"){m==="prev"&&h.reverse();const b=h.indexOf(g.currentTarget);h=u.loop?ha(h,b+1):h.slice(b+1)}setTimeout(()=>_o(h))}})})))}),ma={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ga(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function va(e,t,n){const o=ga(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return ma[o]}function _o(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function ha(e,t){return e.map((n,o)=>e[(t+o)%e.length])}const To=da,ko=pa;var ba=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ve=new WeakMap,wt=new WeakMap,xt={},rn=0,Oo=function(e){return e&&(e.host||Oo(e.parentNode))},$a=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=Oo(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},wa=function(e,t,n,o){var r=$a(t,Array.isArray(e)?e:[e]);xt[n]||(xt[n]=new WeakMap);var s=xt[n],a=[],c=new Set,l=new Set(r),u=function(d){!d||c.has(d)||(c.add(d),u(d.parentNode))};r.forEach(u);var f=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(v){if(c.has(v))f(v);else{var p=v.getAttribute(o),g=p!==null&&p!=="false",m=(Ve.get(v)||0)+1,$=(s.get(v)||0)+1;Ve.set(v,m),s.set(v,$),a.push(v),m===1&&g&&wt.set(v,!0),$===1&&v.setAttribute(n,"true"),g||v.setAttribute(o,"true")}})};return f(t),c.clear(),rn++,function(){a.forEach(function(d){var v=Ve.get(d)-1,p=s.get(d)-1;Ve.set(d,v),s.set(d,p),v||(wt.has(d)||d.removeAttribute(o),wt.delete(d)),p||d.removeAttribute(n)}),rn--,rn||(Ve=new WeakMap,Ve=new WeakMap,wt=new WeakMap,xt={})}},Io=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=t||ba(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live]"))),wa(o,r,n,"aria-hidden")):function(){return null}},he=function(){return he=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},he.apply(this,arguments)};function Ao(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function xa(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,s;o<r;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var yt="right-scroll-bar-position",Ct="width-before-scroll-bar",ya="with-scroll-bars-hidden",Ca="--removed-body-scroll-bar-size";function Ea(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Sa(e,t){var n=i.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}function Pa(e,t){return Sa(t||null,function(n){return e.forEach(function(o){return Ea(o,n)})})}function Ma(e){return e}function _a(e,t){t===void 0&&(t=Ma);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,o);return n.push(a),function(){n=n.filter(function(c){return c!==a})}},assignSyncMedium:function(s){for(o=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){o=!0;var a=[];if(n.length){var c=n;n=[],c.forEach(s),a=n}var l=function(){var f=a;a=[],f.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),n}}}};return r}function Ta(e){e===void 0&&(e={});var t=_a(null);return t.options=he({async:!0,ssr:!1},e),t}var Do=function(e){var t=e.sideCar,n=Ao(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return E.createElement(o,he({},n))};Do.isSideCarExport=!0;function ka(e,t){return e.useMedium(t),Do}var No=Ta(),sn=function(){},Et=E.forwardRef(function(e,t){var n=E.useRef(null),o=E.useState({onScrollCapture:sn,onWheelCapture:sn,onTouchMoveCapture:sn}),r=o[0],s=o[1],a=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,v=e.sideCar,p=e.noIsolation,g=e.inert,m=e.allowPinchZoom,$=e.as,h=$===void 0?"div":$,b=Ao(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=v,x=Pa([n,t]),y=he(he({},b),r);return E.createElement(E.Fragment,null,f&&E.createElement(w,{sideCar:No,removeScrollBar:u,shards:d,noIsolation:p,inert:g,setCallbacks:s,allowPinchZoom:!!m,lockRef:n}),a?E.cloneElement(E.Children.only(c),he(he({},y),{ref:x})):E.createElement(h,he({},y,{className:l,ref:x}),c))});Et.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Et.classNames={fullWidth:Ct,zeroRight:yt};var Fo,Oa=function(){if(Fo)return Fo;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ia(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Oa();return t&&e.setAttribute("nonce",t),e}function Aa(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Da(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Na=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ia())&&(Aa(t,n),Da(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Fa=function(){var e=Na();return function(t,n){E.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Lo=function(){var e=Fa(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},La={left:0,top:0,right:0,gap:0},an=function(e){return parseInt(e||"",10)||0},Ga=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[an(n),an(o),an(r)]},Ba=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return La;var t=Ga(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},Wa=Lo(),Ha=function(e,t,n,o){var r=e.left,s=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),`
1
+ (function(A,k){typeof exports=="object"&&typeof module<"u"?k(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],k):(A=typeof globalThis<"u"?globalThis:A||self,k(A.components={},A["react/jsx-runtime"],A.React,A.ReactDOM))})(this,function(A,k,i,Le){"use strict";function bn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const E=bn(i),is=bn(Le),Bd="";function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},C.apply(this,arguments)}function as(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function st(...e){return t=>e.forEach(n=>as(n,t))}function ee(...e){return i.useCallback(st(...e),e)}const Oe=i.forwardRef((e,t)=>{const{children:n,...o}=e,r=i.Children.toArray(n),s=r.find(ls);if(s){const a=s.props.children,c=r.map(l=>l===s?i.Children.count(a)>1?i.Children.only(null):i.isValidElement(a)?a.props.children:null:l);return i.createElement(Lt,C({},o,{ref:t}),i.isValidElement(a)?i.cloneElement(a,void 0,c):null)}return i.createElement(Lt,C({},o,{ref:t}),n)});Oe.displayName="Slot";const Lt=i.forwardRef((e,t)=>{const{children:n,...o}=e;return i.isValidElement(n)?i.cloneElement(n,{...ds(o,n.props),ref:t?st(t,n.ref):n.ref}):i.Children.count(n)>1?i.Children.only(null):null});Lt.displayName="SlotClone";const cs=({children:e})=>i.createElement(i.Fragment,null,e);function ls(e){return i.isValidElement(e)&&e.type===cs}function ds(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...c)=>{s(...c),r(...c)}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function us(){for(var e=0,t,n,o="";e<arguments.length;)(t=arguments[e++])&&(n=$n(t))&&(o&&(o+=" "),o+=n);return o}function $n(e){if(typeof e=="string")return e;for(var t,n="",o=0;o<e.length;o++)e[o]&&(t=$n(e[o]))&&(n&&(n+=" "),n+=t);return n}var Gt="-";function fs(e){var t=ms(e),n=e.conflictingClassGroups,o=e.conflictingClassGroupModifiers,r=o===void 0?{}:o;function s(c){var l=c.split(Gt);return l[0]===""&&l.length!==1&&l.shift(),wn(l,t)||ps(c)}function a(c,l){var u=n[c]||[];return l&&r[c]?[].concat(u,r[c]):u}return{getClassGroupId:s,getConflictingClassGroupIds:a}}function wn(e,t){var a;if(e.length===0)return t.classGroupId;var n=e[0],o=t.nextPart.get(n),r=o?wn(e.slice(1),o):void 0;if(r)return r;if(t.validators.length!==0){var s=e.join(Gt);return(a=t.validators.find(function(c){var l=c.validator;return l(s)}))==null?void 0:a.classGroupId}}var xn=/^\[(.+)\]$/;function ps(e){if(xn.test(e)){var t=xn.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function ms(e){var t=e.theme,n=e.prefix,o={nextPart:new Map,validators:[]},r=vs(Object.entries(e.classGroups),n);return r.forEach(function(s){var a=s[0],c=s[1];Bt(c,o,a,t)}),o}function Bt(e,t,n,o){e.forEach(function(r){if(typeof r=="string"){var s=r===""?t:yn(t,r);s.classGroupId=n;return}if(typeof r=="function"){if(gs(r)){Bt(r(o),t,n,o);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(function(a){var c=a[0],l=a[1];Bt(l,yn(t,c),n,o)})})}function yn(e,t){var n=e;return t.split(Gt).forEach(function(o){n.nextPart.has(o)||n.nextPart.set(o,{nextPart:new Map,validators:[]}),n=n.nextPart.get(o)}),n}function gs(e){return e.isThemeGetter}function vs(e,t){return t?e.map(function(n){var o=n[0],r=n[1],s=r.map(function(a){return typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(function(c){var l=c[0],u=c[1];return[t+l,u]})):a});return[o,s]}):e}function hs(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,o=new Map;function r(s,a){n.set(s,a),t++,t>e&&(t=0,o=n,n=new Map)}return{get:function(a){var c=n.get(a);if(c!==void 0)return c;if((c=o.get(a))!==void 0)return r(a,c),c},set:function(a,c){n.has(a)?n.set(a,c):r(a,c)}}}var Cn="!";function bs(e){var t=e.separator||":",n=t.length===1,o=t[0],r=t.length;return function(a){for(var c=[],l=0,u=0,f,d=0;d<a.length;d++){var v=a[d];if(l===0){if(v===o&&(n||a.slice(d,d+r)===t)){c.push(a.slice(u,d)),u=d+r;continue}if(v==="/"){f=d;continue}}v==="["?l++:v==="]"&&l--}var p=c.length===0?a:a.substring(u),g=p.startsWith(Cn),m=g?p.substring(1):p,$=f&&f>u?f-u:void 0;return{modifiers:c,hasImportantModifier:g,baseClassName:m,maybePostfixModifierPosition:$}}}function $s(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(o){var r=o[0]==="[";r?(t.push.apply(t,n.sort().concat([o])),n=[]):n.push(o)}),t.push.apply(t,n.sort()),t}function ws(e){return{cache:hs(e.cacheSize),splitModifiers:bs(e),...fs(e)}}var xs=/\s+/;function ys(e,t){var n=t.splitModifiers,o=t.getClassGroupId,r=t.getConflictingClassGroupIds,s=new Set;return e.trim().split(xs).map(function(a){var c=n(a),l=c.modifiers,u=c.hasImportantModifier,f=c.baseClassName,d=c.maybePostfixModifierPosition,v=o(d?f.substring(0,d):f),p=!!d;if(!v){if(!d)return{isTailwindClass:!1,originalClassName:a};if(v=o(f),!v)return{isTailwindClass:!1,originalClassName:a};p=!1}var g=$s(l).join(":"),m=u?g+Cn:g;return{isTailwindClass:!0,modifierId:m,classGroupId:v,originalClassName:a,hasPostfixModifier:p}}).reverse().filter(function(a){if(!a.isTailwindClass)return!0;var c=a.modifierId,l=a.classGroupId,u=a.hasPostfixModifier,f=c+l;return s.has(f)?!1:(s.add(f),r(l,u).forEach(function(d){return s.add(c+d)}),!0)}).reverse().map(function(a){return a.originalClassName}).join(" ")}function Cs(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o,r,s,a=c;function c(u){var f=t[0],d=t.slice(1),v=d.reduce(function(p,g){return g(p)},f());return o=ws(v),r=o.cache.get,s=o.cache.set,a=l,l(u)}function l(u){var f=r(u);if(f)return f;var d=ys(u,o);return s(u,d),d}return function(){return a(us.apply(null,arguments))}}function X(e){var t=function(o){return o[e]||[]};return t.isThemeGetter=!0,t}var En=/^\[(?:([a-z-]+):)?(.+)\]$/i,Es=/^\d+\/\d+$/,Ss=new Set(["px","full","screen"]),Ps=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ms=/\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$/,_s=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function pe(e){return Ie(e)||Ss.has(e)||Es.test(e)||Wt(e)}function Wt(e){return Ae(e,"length",Ds)}function Ts(e){return Ae(e,"size",Sn)}function ks(e){return Ae(e,"position",Sn)}function Os(e){return Ae(e,"url",Ns)}function it(e){return Ae(e,"number",Ie)}function Ie(e){return!Number.isNaN(Number(e))}function Is(e){return e.endsWith("%")&&Ie(e.slice(0,-1))}function qe(e){return Pn(e)||Ae(e,"number",Pn)}function W(e){return En.test(e)}function Xe(){return!0}function Ce(e){return Ps.test(e)}function As(e){return Ae(e,"",Fs)}function Ae(e,t,n){var o=En.exec(e);return o?o[1]?o[1]===t:n(o[2]):!1}function Ds(e){return Ms.test(e)}function Sn(){return!1}function Ns(e){return e.startsWith("url(")}function Pn(e){return Number.isInteger(Number(e))}function Fs(e){return _s.test(e)}function Ls(){var e=X("colors"),t=X("spacing"),n=X("blur"),o=X("brightness"),r=X("borderColor"),s=X("borderRadius"),a=X("borderSpacing"),c=X("borderWidth"),l=X("contrast"),u=X("grayscale"),f=X("hueRotate"),d=X("invert"),v=X("gap"),p=X("gradientColorStops"),g=X("gradientColorStopPositions"),m=X("inset"),$=X("margin"),h=X("opacity"),b=X("padding"),w=X("saturate"),x=X("scale"),y=X("sepia"),M=X("skew"),S=X("space"),P=X("translate"),N=function(){return["auto","contain","none"]},H=function(){return["auto","hidden","clip","visible","scroll"]},F=function(){return["auto",W,t]},T=function(){return[W,t]},B=function(){return["",pe]},G=function(){return["auto",Ie,W]},L=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},D=function(){return["solid","dashed","dotted","double","none"]},te=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},q=function(){return["start","end","center","between","around","evenly","stretch"]},_=function(){return["","0",W]},V=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},J=function(){return[Ie,it]},ne=function(){return[Ie,W]};return{cacheSize:500,theme:{colors:[Xe],spacing:[pe],blur:["none","",Ce,W],brightness:J(),borderColor:[e],borderRadius:["none","","full",Ce,W],borderSpacing:T(),borderWidth:B(),contrast:J(),grayscale:_(),hueRotate:ne(),invert:_(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[Is,Wt],inset:F(),margin:F(),opacity:J(),padding:T(),saturate:J(),scale:J(),sepia:_(),skew:ne(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",W]}],container:["container"],columns:[{columns:[Ce]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"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"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(L(),[W])}],overflow:[{overflow:H()}],"overflow-x":[{"overflow-x":H()}],"overflow-y":[{"overflow-y":H()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",qe]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",W]}],grow:[{grow:_()}],shrink:[{shrink:_()}],order:[{order:["first","last","none",qe]}],"grid-cols":[{"grid-cols":[Xe]}],"col-start-end":[{col:["auto",{span:["full",qe]},W]}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":[Xe]}],"row-start-end":[{row:["auto",{span:[qe]},W]}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",W]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",W]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal"].concat(q())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(q(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(q(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[$]}],mx:[{mx:[$]}],my:[{my:[$]}],ms:[{ms:[$]}],me:[{me:[$]}],mt:[{mt:[$]}],mr:[{mr:[$]}],mb:[{mb:[$]}],ml:[{ml:[$]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",W,t]}],"min-w":[{"min-w":["min","max","fit",W,pe]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Ce]},Ce,W]}],h:[{h:[W,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",W,pe]}],"max-h":[{"max-h":[W,t,"min","max","fit"]}],"font-size":[{text:["base",Ce,Wt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",it]}],"font-family":[{font:[Xe]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",W]}],"line-clamp":[{"line-clamp":["none",Ie,it]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",W,pe]}],"list-image":[{"list-image":["none",W]}],"list-style-type":[{list:["none","disc","decimal",W]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(D(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",pe]}],"underline-offset":[{"underline-offset":["auto",W,pe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(L(),[ks])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ts]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Os]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[].concat(D(),["hidden"])}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:D()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:[""].concat(D())}],"outline-offset":[{"outline-offset":[W,pe]}],"outline-w":[{outline:[pe]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[pe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ce,As]}],"shadow-color":[{shadow:[Xe]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":te()}],"bg-blend":[{"bg-blend":te()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Ce,W]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[y]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",W]}],duration:[{duration:ne()}],ease:[{ease:["linear","in","out","in-out",W]}],delay:[{delay:ne()}],animate:[{animate:["none","spin","ping","pulse","bounce",W]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[qe,W]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[M]}],"skew-y":[{"skew-y":[M]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",W]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],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",W]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"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","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",W]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[pe,it]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","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","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"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"],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-s","border-w-e","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-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"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","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-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var Gs=Cs(Ls);function z(...e){return Gs(e.filter(Boolean).join(" "))}const Mn={base:"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-950 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 dark:ring-offset-neutral-950 dark:focus-visible:ring-neutral-300 focus:outline-none",default:"bg-neutral-900 text-neutral-50 hover:bg-neutral-900/90 dark:bg-neutral-50 dark:text-neutral-900 dark:hover:bg-neutral-50/90",destructive:"bg-red-500 text-neutral-50 hover:bg-red-500/90 dark:bg-red-900 dark:text-neutral-50 dark:hover:bg-red-900/90",outline:"border border-neutral-200 bg-white hover:bg-neutral-100 hover:text-neutral-900 dark:border-neutral-800 dark:bg-neutral-950 dark:hover:bg-neutral-800 dark:hover:text-neutral-50",secondary:"bg-neutral-100 text-neutral-900 hover:bg-neutral-100/80 dark:bg-neutral-800 dark:text-neutral-50 dark:hover:bg-neutral-800/80",ghost:"hover:bg-neutral-100 hover:text-neutral-900 dark:hover:bg-neutral-800 dark:hover:text-neutral-50",link:"text-neutral-900 underline-offset-4 hover:underline dark:text-neutral-50"},Bs={default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"};var _n=(e=>(e.BASE="base",e.DEFAULT="default",e.DESTRUCTIVE="destructive",e.OUTLINE="outline",e.SECONDARY="secondary",e.GHOST="ghost",e.LINK="link",e))(_n||{}),Tn=(e=>(e.DEFAULT="default",e.SM="sm",e.LG="lg",e.ICON="icon",e))(Tn||{});const kn=i.forwardRef(({className:e="",variant:t=_n.BASE,size:n=Tn.DEFAULT,asChild:o=!1,...r},s)=>{const a=o?Oe:"button",c=z(Mn.base,Mn[t],Bs[n],e);return k.jsx(a,{className:c,ref:s,...r})});kn.displayName="Button";const On={default:"stroke-1",primary:"fill-amber-400 stroke-black",secondary:"fill-purple-400 stroke-white"},Ws={default:"w-16 h-16",sm:"w-12 h-12",md:"w-20 h-20",lg:"w-24 h-24"};var In=(e=>(e.DEFAULT="default",e.PRIMARY="primary",e.SECONDARY="secondary",e))(In||{}),An=(e=>(e.DEFAULT="default",e.SM="sm",e.MD="md",e.LG="lg",e))(An||{});const Hs=({variant:e=In.SECONDARY,size:t=An.DEFAULT,...n})=>{const o=z(Ws[t]),r=z(On.default,On[e],"animate-spin origin-center");return k.jsx("svg",{role:"img",className:o,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:k.jsx("path",{className:r,d:"M12,23a9.63,9.63,0,0,1-8-9.5,9.51,9.51,0,0,1,6.79-9.1A1.66,1.66,0,0,0,12,2.81h0a1.67,1.67,0,0,0-1.94-1.64A11,11,0,0,0,12,23Z"})})},zs=({className:e="",type:t,...n})=>{const o=z("flex h-10 w-full rounded-md border border-neutral-200 bg-white px-3 py-2 text-sm ring-offset-white file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-neutral-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-neutral-950 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:border-neutral-800 dark:bg-neutral-950 dark:ring-offset-neutral-950 dark:placeholder:text-neutral-400 dark:focus-visible:ring-neutral-300",e);return k.jsx("input",{className:o,type:t,...n})},Us=({className:e="",...t})=>{const n=z("flex w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e);return k.jsx("textarea",{className:n,...t})},Vs=({children:e,className:t="",...n})=>{const o=z("text-base font-medium",t);return k.jsx("p",{className:o,...n,children:e})},Ks=({children:e,className:t="",...n})=>{const o=z("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",t);return k.jsx("label",{className:o,...n,children:e})},js={h1:"text-2xl",h2:"text-xl",h3:"text-lg",h4:"text-base",h5:"text-sm",h6:"text-xs"};var Dn=(e=>(e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e))(Dn||{});const Rs=({children:e,className:t="",level:n=Dn.H1,...o})=>{const r=z("font-medium",js[n],t);return i.createElement(n,{className:r,...o},e)},Ys=({className:e="",...t})=>{const n=z("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e);return k.jsx("input",{id:t.id,className:n,type:"checkbox",...t})},Nn=E.forwardRef(({className:e="",...t},n)=>{const o=z(e,"rounded-lg border border-neutral-200 bg-white text-neutral-950 shadow-sm dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50");return k.jsx("div",{ref:n,className:o,...t})});Nn.displayName="Card";const Fn=E.forwardRef(({className:e="",...t},n)=>{const o=z(e,"flex flex-col space-y-1.5 p-6");return k.jsx("div",{ref:n,className:o,...t})});Fn.displayName="CardHeader";const Ln=E.forwardRef(({className:e="",...t},n)=>{const o=z(e,"text-2xl font-semibold leading-none tracking-tight");return k.jsx("h3",{ref:n,className:o,...t})});Ln.displayName="CardTitle";const Gn=E.forwardRef(({className:e="",...t},n)=>{const o=z(e,"text-sm text-neutral-500 dark:text-neutral-400");return k.jsx("p",{ref:n,className:o,...t})});Gn.displayName="CardDescription";const Bn=E.forwardRef(({className:e="",...t},n)=>{const o=z(e,"p-6 pt-0");return k.jsx("div",{ref:n,className:o,...t})});Bn.displayName="CardContent";const Wn=E.forwardRef(({className:e="",...t},n)=>{const o=z(e,"flex items-center p-6 pt-0");return k.jsx("div",{ref:n,className:o,...t})});Wn.displayName="CardFooter";function O(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function Ee(e,t=[]){let n=[];function o(s,a){const c=i.createContext(a),l=n.length;n=[...n,a];function u(d){const{scope:v,children:p,...g}=d,m=(v==null?void 0:v[e][l])||c,$=i.useMemo(()=>g,Object.values(g));return i.createElement(m.Provider,{value:$},p)}function f(d,v){const p=(v==null?void 0:v[e][l])||c,g=i.useContext(p);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${s}\``)}return u.displayName=s+"Provider",[u,f]}const r=()=>{const s=n.map(a=>i.createContext(a));return function(c){const l=(c==null?void 0:c[e])||s;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return r.scopeName=e,[o,qs(r,...t)]}function qs(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const a=o.reduce((c,{useScope:l,scopeName:u})=>{const d=l(s)[`__scope${u}`];return{...c,...d}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function ae(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var o;return(o=t.current)===null||o===void 0?void 0:o.call(t,...n)},[])}function Ge({prop:e,defaultProp:t,onChange:n=()=>{}}){const[o,r]=Xs({defaultProp:t,onChange:n}),s=e!==void 0,a=s?e:o,c=ae(n),l=i.useCallback(u=>{if(s){const d=typeof u=="function"?u(e):u;d!==e&&c(d)}else r(u)},[s,e,r,c]);return[a,l]}function Xs({defaultProp:e,onChange:t}){const n=i.useState(e),[o]=n,r=i.useRef(o),s=ae(t);return i.useEffect(()=>{r.current!==o&&(s(o),r.current=o)},[o,r,s]),n}const K=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=i.forwardRef((o,r)=>{const{asChild:s,...a}=o,c=s?Oe:t;return i.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),i.createElement(c,C({},a,{ref:r}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Hn(e,t){e&&Le.flushSync(()=>e.dispatchEvent(t))}function Ht(e){const t=e+"CollectionProvider",[n,o]=Ee(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=p=>{const{scope:g,children:m}=p,$=i.useRef(null),h=i.useRef(new Map).current;return i.createElement(r,{scope:g,itemMap:h,collectionRef:$},m)},c=e+"CollectionSlot",l=i.forwardRef((p,g)=>{const{scope:m,children:$}=p,h=s(c,m),b=ee(g,h.collectionRef);return i.createElement(Oe,{ref:b},$)}),u=e+"CollectionItemSlot",f="data-radix-collection-item",d=i.forwardRef((p,g)=>{const{scope:m,children:$,...h}=p,b=i.useRef(null),w=ee(g,b),x=s(u,m);return i.useEffect(()=>(x.itemMap.set(b,{ref:b,...h}),()=>void x.itemMap.delete(b))),i.createElement(Oe,{[f]:"",ref:w},$)});function v(p){const g=s(e+"CollectionConsumer",p);return i.useCallback(()=>{const $=g.collectionRef.current;if(!$)return[];const h=Array.from($.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((x,y)=>h.indexOf(x.ref.current)-h.indexOf(y.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:a,Slot:l,ItemSlot:d},v,o]}const Zs=i.createContext(void 0);function at(e){const t=i.useContext(Zs);return e||t||"ltr"}function Qs(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e);i.useEffect(()=>{const o=r=>{r.key==="Escape"&&n(r)};return t.addEventListener("keydown",o),()=>t.removeEventListener("keydown",o)},[n,t])}const zt="dismissableLayer.update",Js="dismissableLayer.pointerDownOutside",ei="dismissableLayer.focusOutside";let zn;const ti=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Un=i.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:c,onDismiss:l,...u}=e,f=i.useContext(ti),[d,v]=i.useState(null),p=(n=d==null?void 0:d.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,g]=i.useState({}),m=ee(t,P=>v(P)),$=Array.from(f.layers),[h]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),b=$.indexOf(h),w=d?$.indexOf(d):-1,x=f.layersWithOutsidePointerEventsDisabled.size>0,y=w>=b,M=ni(P=>{const N=P.target,H=[...f.branches].some(F=>F.contains(N));!y||H||(s==null||s(P),c==null||c(P),P.defaultPrevented||l==null||l())},p),S=oi(P=>{const N=P.target;[...f.branches].some(F=>F.contains(N))||(a==null||a(P),c==null||c(P),P.defaultPrevented||l==null||l())},p);return Qs(P=>{w===f.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&l&&(P.preventDefault(),l()))},p),i.useEffect(()=>{if(d)return o&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(zn=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),Vn(),()=>{o&&f.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=zn)}},[d,p,o,f]),i.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),Vn())},[d,f]),i.useEffect(()=>{const P=()=>g({});return document.addEventListener(zt,P),()=>document.removeEventListener(zt,P)},[]),i.createElement(K.div,C({},u,{ref:m,style:{pointerEvents:x?y?"auto":"none":void 0,...e.style},onFocusCapture:O(e.onFocusCapture,S.onFocusCapture),onBlurCapture:O(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:O(e.onPointerDownCapture,M.onPointerDownCapture)}))});function ni(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),o=i.useRef(!1),r=i.useRef(()=>{});return i.useEffect(()=>{const s=c=>{if(c.target&&!o.current){let u=function(){Kn(Js,n,l,{discrete:!0})};const l={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=u,t.addEventListener("click",r.current,{once:!0})):u()}o.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",s),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function oi(e,t=globalThis==null?void 0:globalThis.document){const n=ae(e),o=i.useRef(!1);return i.useEffect(()=>{const r=s=>{s.target&&!o.current&&Kn(ei,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Vn(){const e=new CustomEvent(zt);document.dispatchEvent(e)}function Kn(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Hn(r,s):r.dispatchEvent(s)}let Ut=0;function jn(){i.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Rn()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Rn()),Ut++,()=>{Ut===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),Ut--}},[])}function Rn(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Vt="focusScope.autoFocusOnMount",Kt="focusScope.autoFocusOnUnmount",Yn={bubbles:!1,cancelable:!0},qn=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:r,onUnmountAutoFocus:s,...a}=e,[c,l]=i.useState(null),u=ae(r),f=ae(s),d=i.useRef(null),v=ee(t,m=>l(m)),p=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(o){let m=function(w){if(p.paused||!c)return;const x=w.target;c.contains(x)?d.current=x:Se(d.current,{select:!0})},$=function(w){if(p.paused||!c)return;const x=w.relatedTarget;x!==null&&(c.contains(x)||Se(d.current,{select:!0}))},h=function(w){const x=document.activeElement;for(const y of w)y.removedNodes.length>0&&(c!=null&&c.contains(x)||Se(c))};document.addEventListener("focusin",m),document.addEventListener("focusout",$);const b=new MutationObserver(h);return c&&b.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",$),b.disconnect()}}},[o,c,p.paused]),i.useEffect(()=>{if(c){Qn.add(p);const m=document.activeElement;if(!c.contains(m)){const h=new CustomEvent(Vt,Yn);c.addEventListener(Vt,u),c.dispatchEvent(h),h.defaultPrevented||(ri(li(Xn(c)),{select:!0}),document.activeElement===m&&Se(c))}return()=>{c.removeEventListener(Vt,u),setTimeout(()=>{const h=new CustomEvent(Kt,Yn);c.addEventListener(Kt,f),c.dispatchEvent(h),h.defaultPrevented||Se(m??document.body,{select:!0}),c.removeEventListener(Kt,f),Qn.remove(p)},0)}}},[c,u,f,p]);const g=i.useCallback(m=>{if(!n&&!o||p.paused)return;const $=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,h=document.activeElement;if($&&h){const b=m.currentTarget,[w,x]=si(b);w&&x?!m.shiftKey&&h===x?(m.preventDefault(),n&&Se(w,{select:!0})):m.shiftKey&&h===w&&(m.preventDefault(),n&&Se(x,{select:!0})):h===b&&m.preventDefault()}},[n,o,p.paused]);return i.createElement(K.div,C({tabIndex:-1},a,{ref:v,onKeyDown:g}))});function ri(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Se(o,{select:t}),document.activeElement!==n)return}function si(e){const t=Xn(e),n=Zn(t,e),o=Zn(t.reverse(),e);return[n,o]}function Xn(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Zn(e,t){for(const n of e)if(!ii(n,{upTo:t}))return n}function ii(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function ai(e){return e instanceof HTMLInputElement&&"select"in e}function Se(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ai(e)&&t&&e.select()}}const Qn=ci();function ci(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Jn(e,t),e.unshift(t)},remove(t){var n;e=Jn(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Jn(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function li(e){return e.filter(t=>t.tagName!=="A")}const me=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{},di=E["useId".toString()]||(()=>{});let ui=0;function Pe(e){const[t,n]=E.useState(di());return me(()=>{e||n(o=>o??String(ui++))},[e]),e||(t?`radix-${t}`:"")}const fi=["top","right","bottom","left"],Me=Math.min,ce=Math.max,ct=Math.round,lt=Math.floor,_e=e=>({x:e,y:e}),pi={left:"right",right:"left",bottom:"top",top:"bottom"},mi={start:"end",end:"start"};function jt(e,t,n){return ce(e,Me(t,n))}function be(e,t){return typeof e=="function"?e(t):e}function $e(e){return e.split("-")[0]}function Be(e){return e.split("-")[1]}function Rt(e){return e==="x"?"y":"x"}function Yt(e){return e==="y"?"height":"width"}function We(e){return["top","bottom"].includes($e(e))?"y":"x"}function qt(e){return Rt(We(e))}function gi(e,t,n){n===void 0&&(n=!1);const o=Be(e),r=qt(e),s=Yt(r);let a=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=dt(a)),[a,dt(a)]}function vi(e){const t=dt(e);return[Xt(e),t,Xt(t)]}function Xt(e){return e.replace(/start|end/g,t=>mi[t])}function hi(e,t,n){const o=["left","right"],r=["right","left"],s=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?s:a;default:return[]}}function bi(e,t,n,o){const r=Be(e);let s=hi($e(e),n==="start",o);return r&&(s=s.map(a=>a+"-"+r),t&&(s=s.concat(s.map(Xt)))),s}function dt(e){return e.replace(/left|right|bottom|top/g,t=>pi[t])}function $i(e){return{top:0,right:0,bottom:0,left:0,...e}}function eo(e){return typeof e!="number"?$i(e):{top:e,right:e,bottom:e,left:e}}function ut(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function to(e,t,n){let{reference:o,floating:r}=e;const s=We(t),a=qt(t),c=Yt(a),l=$e(t),u=s==="y",f=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,v=o[c]/2-r[c]/2;let p;switch(l){case"top":p={x:f,y:o.y-r.height};break;case"bottom":p={x:f,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(Be(t)){case"start":p[a]-=v*(n&&u?-1:1);break;case"end":p[a]+=v*(n&&u?-1:1);break}return p}const wi=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:a}=n,c=s.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:d}=to(u,o,l),v=o,p={},g=0;for(let m=0;m<c.length;m++){const{name:$,fn:h}=c[m],{x:b,y:w,data:x,reset:y}=await h({x:f,y:d,initialPlacement:o,placement:v,strategy:r,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});if(f=b??f,d=w??d,p={...p,[$]:{...p[$],...x}},y&&g<=50){g++,typeof y=="object"&&(y.placement&&(v=y.placement),y.rects&&(u=y.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:r}):y.rects),{x:f,y:d}=to(u,v,l)),m=-1;continue}}return{x:f,y:d,placement:v,strategy:r,middlewareData:p}};async function Ze(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:a,elements:c,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:v=!1,padding:p=0}=be(t,e),g=eo(p),$=c[v?d==="floating"?"reference":"floating":d],h=ut(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement($)))==null||n?$:$.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:l})),b=d==="floating"?{...a.floating,x:o,y:r}:a.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),x=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},y=ut(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:w,strategy:l}):b);return{top:(h.top-y.top+g.top)/x.y,bottom:(y.bottom-h.bottom+g.bottom)/x.y,left:(h.left-y.left+g.left)/x.x,right:(y.right-h.right+g.right)/x.x}}const no=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:a,elements:c}=t,{element:l,padding:u=0}=be(e,t)||{};if(l==null)return{};const f=eo(u),d={x:n,y:o},v=qt(r),p=Yt(v),g=await a.getDimensions(l),m=v==="y",$=m?"top":"left",h=m?"bottom":"right",b=m?"clientHeight":"clientWidth",w=s.reference[p]+s.reference[v]-d[v]-s.floating[p],x=d[v]-s.reference[v],y=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l));let M=y?y[b]:0;(!M||!await(a.isElement==null?void 0:a.isElement(y)))&&(M=c.floating[b]||s.floating[p]);const S=w/2-x/2,P=M/2-g[p]/2-1,N=Me(f[$],P),H=Me(f[h],P),F=N,T=M-g[p]-H,B=M/2-g[p]/2+S,G=jt(F,B,T),D=Be(r)!=null&&B!=G&&s.reference[p]/2-(B<F?N:H)-g[p]/2<0?B<F?F-B:T-B:0;return{[v]:d[v]-D,data:{[v]:G,centerOffset:B-G+D}}}}),xi=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:o,middlewareData:r,rects:s,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...m}=be(e,t),$=$e(o),h=$e(a)===a,b=await(c.isRTL==null?void 0:c.isRTL(l.floating)),w=d||(h||!g?[dt(a)]:vi(a));!d&&p!=="none"&&w.push(...bi(a,g,p,b));const x=[a,...w],y=await Ze(t,m),M=[];let S=((n=r.flip)==null?void 0:n.overflows)||[];if(u&&M.push(y[$]),f){const F=gi(o,s,b);M.push(y[F[0]],y[F[1]])}if(S=[...S,{placement:o,overflows:M}],!M.every(F=>F<=0)){var P,N;const F=(((P=r.flip)==null?void 0:P.index)||0)+1,T=x[F];if(T)return{data:{index:F,overflows:S},reset:{placement:T}};let B=(N=S.filter(G=>G.overflows[0]<=0).sort((G,L)=>G.overflows[1]-L.overflows[1])[0])==null?void 0:N.placement;if(!B)switch(v){case"bestFit":{var H;const G=(H=S.map(L=>[L.placement,L.overflows.filter(D=>D>0).reduce((D,te)=>D+te,0)]).sort((L,D)=>L[1]-D[1])[0])==null?void 0:H[0];G&&(B=G);break}case"initialPlacement":B=a;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function oo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ro(e){return fi.some(t=>e[t]>=0)}const yi=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...r}=be(e,t);switch(o){case"referenceHidden":{const s=await Ze(t,{...r,elementContext:"reference"}),a=oo(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:ro(a)}}}case"escaped":{const s=await Ze(t,{...r,altBoundary:!0}),a=oo(s,n.floating);return{data:{escapedOffsets:a,escaped:ro(a)}}}default:return{}}}}};async function Ci(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),a=$e(n),c=Be(n),l=We(n)==="y",u=["left","top"].includes(a)?-1:1,f=s&&l?-1:1,d=be(t,e);let{mainAxis:v,crossAxis:p,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return c&&typeof g=="number"&&(p=c==="end"?g*-1:g),l?{x:p*f,y:v*u}:{x:v*u,y:p*f}}const Ei=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,r=await Ci(t,e);return{x:n+r.x,y:o+r.y,data:r}}}},Si=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:$=>{let{x:h,y:b}=$;return{x:h,y:b}}},...l}=be(e,t),u={x:n,y:o},f=await Ze(t,l),d=We($e(r)),v=Rt(d);let p=u[v],g=u[d];if(s){const $=v==="y"?"top":"left",h=v==="y"?"bottom":"right",b=p+f[$],w=p-f[h];p=jt(b,p,w)}if(a){const $=d==="y"?"top":"left",h=d==="y"?"bottom":"right",b=g+f[$],w=g-f[h];g=jt(b,g,w)}const m=c.fn({...t,[v]:p,[d]:g});return{...m,data:{x:m.x-n,y:m.y-o}}}}},Pi=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:s,middlewareData:a}=t,{offset:c=0,mainAxis:l=!0,crossAxis:u=!0}=be(e,t),f={x:n,y:o},d=We(r),v=Rt(d);let p=f[v],g=f[d];const m=be(c,t),$=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const w=v==="y"?"height":"width",x=s.reference[v]-s.floating[w]+$.mainAxis,y=s.reference[v]+s.reference[w]-$.mainAxis;p<x?p=x:p>y&&(p=y)}if(u){var h,b;const w=v==="y"?"width":"height",x=["top","left"].includes($e(r)),y=s.reference[d]-s.floating[w]+(x&&((h=a.offset)==null?void 0:h[d])||0)+(x?0:$.crossAxis),M=s.reference[d]+s.reference[w]+(x?0:((b=a.offset)==null?void 0:b[d])||0)-(x?$.crossAxis:0);g<y?g=y:g>M&&(g=M)}return{[v]:p,[d]:g}}}},Mi=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:s}=t,{apply:a=()=>{},...c}=be(e,t),l=await Ze(t,c),u=$e(n),f=Be(n),d=We(n)==="y",{width:v,height:p}=o.floating;let g,m;u==="top"||u==="bottom"?(g=u,m=f===(await(r.isRTL==null?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(m=u,g=f==="end"?"top":"bottom");const $=p-l[g],h=v-l[m],b=!t.middlewareData.shift;let w=$,x=h;if(d){const M=v-l.left-l.right;x=f||b?Me(h,M):M}else{const M=p-l.top-l.bottom;w=f||b?Me($,M):M}if(b&&!f){const M=ce(l.left,0),S=ce(l.right,0),P=ce(l.top,0),N=ce(l.bottom,0);d?x=v-2*(M!==0||S!==0?M+S:ce(l.left,l.right)):w=p-2*(P!==0||N!==0?P+N:ce(l.top,l.bottom))}await a({...t,availableWidth:x,availableHeight:w});const y=await r.getDimensions(s.floating);return v!==y.width||p!==y.height?{reset:{rects:!0}}:{}}}};function Te(e){return so(e)?(e.nodeName||"").toLowerCase():"#document"}function le(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function we(e){var t;return(t=(so(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function so(e){return e instanceof Node||e instanceof le(e).Node}function xe(e){return e instanceof Element||e instanceof le(e).Element}function ve(e){return e instanceof HTMLElement||e instanceof le(e).HTMLElement}function io(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof le(e).ShadowRoot}function Qe(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=fe(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function _i(e){return["table","td","th"].includes(Te(e))}function Zt(e){const t=Qt(),n=fe(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Ti(e){let t=He(e);for(;ve(t)&&!ft(t);){if(Zt(t))return t;t=He(t)}return null}function Qt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ft(e){return["html","body","#document"].includes(Te(e))}function fe(e){return le(e).getComputedStyle(e)}function pt(e){return xe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function He(e){if(Te(e)==="html")return e;const t=e.assignedSlot||e.parentNode||io(e)&&e.host||we(e);return io(t)?t.host:t}function ao(e){const t=He(e);return ft(t)?e.ownerDocument?e.ownerDocument.body:e.body:ve(t)&&Qe(t)?t:ao(t)}function mt(e,t){var n;t===void 0&&(t=[]);const o=ao(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),s=le(o);return r?t.concat(s,s.visualViewport||[],Qe(o)?o:[]):t.concat(o,mt(o))}function co(e){const t=fe(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=ve(e),s=r?e.offsetWidth:n,a=r?e.offsetHeight:o,c=ct(n)!==s||ct(o)!==a;return c&&(n=s,o=a),{width:n,height:o,$:c}}function Jt(e){return xe(e)?e:e.contextElement}function ze(e){const t=Jt(e);if(!ve(t))return _e(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=co(t);let a=(s?ct(n.width):n.width)/o,c=(s?ct(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const ki=_e(0);function lo(e){const t=le(e);return!Qt()||!t.visualViewport?ki:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Oi(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==le(e)?!1:t}function De(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=Jt(e);let a=_e(1);t&&(o?xe(o)&&(a=ze(o)):a=ze(e));const c=Oi(s,n,o)?lo(s):_e(0);let l=(r.left+c.x)/a.x,u=(r.top+c.y)/a.y,f=r.width/a.x,d=r.height/a.y;if(s){const v=le(s),p=o&&xe(o)?le(o):o;let g=v.frameElement;for(;g&&o&&p!==v;){const m=ze(g),$=g.getBoundingClientRect(),h=fe(g),b=$.left+(g.clientLeft+parseFloat(h.paddingLeft))*m.x,w=$.top+(g.clientTop+parseFloat(h.paddingTop))*m.y;l*=m.x,u*=m.y,f*=m.x,d*=m.y,l+=b,u+=w,g=le(g).frameElement}}return ut({width:f,height:d,x:l,y:u})}function Ii(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=ve(n),s=we(n);if(n===s)return t;let a={scrollLeft:0,scrollTop:0},c=_e(1);const l=_e(0);if((r||!r&&o!=="fixed")&&((Te(n)!=="body"||Qe(s))&&(a=pt(n)),ve(n))){const u=De(n);c=ze(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*c.x,height:t.height*c.y,x:t.x*c.x-a.scrollLeft*c.x+l.x,y:t.y*c.y-a.scrollTop*c.y+l.y}}function Ai(e){return Array.from(e.getClientRects())}function uo(e){return De(we(e)).left+pt(e).scrollLeft}function Di(e){const t=we(e),n=pt(e),o=e.ownerDocument.body,r=ce(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=ce(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+uo(e);const c=-n.scrollTop;return fe(o).direction==="rtl"&&(a+=ce(t.clientWidth,o.clientWidth)-r),{width:r,height:s,x:a,y:c}}function Ni(e,t){const n=le(e),o=we(e),r=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,c=0,l=0;if(r){s=r.width,a=r.height;const u=Qt();(!u||u&&t==="fixed")&&(c=r.offsetLeft,l=r.offsetTop)}return{width:s,height:a,x:c,y:l}}function Fi(e,t){const n=De(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=ve(e)?ze(e):_e(1),a=e.clientWidth*s.x,c=e.clientHeight*s.y,l=r*s.x,u=o*s.y;return{width:a,height:c,x:l,y:u}}function fo(e,t,n){let o;if(t==="viewport")o=Ni(e,n);else if(t==="document")o=Di(we(e));else if(xe(t))o=Fi(t,n);else{const r=lo(e);o={...t,x:t.x-r.x,y:t.y-r.y}}return ut(o)}function po(e,t){const n=He(e);return n===t||!xe(n)||ft(n)?!1:fe(n).position==="fixed"||po(n,t)}function Li(e,t){const n=t.get(e);if(n)return n;let o=mt(e).filter(c=>xe(c)&&Te(c)!=="body"),r=null;const s=fe(e).position==="fixed";let a=s?He(e):e;for(;xe(a)&&!ft(a);){const c=fe(a),l=Zt(a);!l&&c.position==="fixed"&&(r=null),(s?!l&&!r:!l&&c.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Qe(a)&&!l&&po(e,a))?o=o.filter(f=>f!==a):r=c,a=He(a)}return t.set(e,o),o}function Gi(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const a=[...n==="clippingAncestors"?Li(t,this._c):[].concat(n),o],c=a[0],l=a.reduce((u,f)=>{const d=fo(t,f,r);return u.top=ce(d.top,u.top),u.right=Me(d.right,u.right),u.bottom=Me(d.bottom,u.bottom),u.left=ce(d.left,u.left),u},fo(t,c,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Bi(e){return co(e)}function Wi(e,t,n){const o=ve(t),r=we(t),s=n==="fixed",a=De(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const l=_e(0);if(o||!o&&!s)if((Te(t)!=="body"||Qe(r))&&(c=pt(t)),o){const u=De(t,!0,s,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else r&&(l.x=uo(r));return{x:a.left+c.scrollLeft-l.x,y:a.top+c.scrollTop-l.y,width:a.width,height:a.height}}function mo(e,t){return!ve(e)||fe(e).position==="fixed"?null:t?t(e):e.offsetParent}function go(e,t){const n=le(e);if(!ve(e))return n;let o=mo(e,t);for(;o&&_i(o)&&fe(o).position==="static";)o=mo(o,t);return o&&(Te(o)==="html"||Te(o)==="body"&&fe(o).position==="static"&&!Zt(o))?n:o||Ti(e)||n}const Hi=async function(e){let{reference:t,floating:n,strategy:o}=e;const r=this.getOffsetParent||go,s=this.getDimensions;return{reference:Wi(t,await r(n),o),floating:{x:0,y:0,...await s(n)}}};function zi(e){return fe(e).direction==="rtl"}const Ui={convertOffsetParentRelativeRectToViewportRelativeRect:Ii,getDocumentElement:we,getClippingRect:Gi,getOffsetParent:go,getElementRects:Hi,getClientRects:Ai,getDimensions:Bi,getScale:ze,isElement:xe,isRTL:zi};function Vi(e,t){let n=null,o;const r=we(e);function s(){clearTimeout(o),n&&n.disconnect(),n=null}function a(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),s();const{left:u,top:f,width:d,height:v}=e.getBoundingClientRect();if(c||t(),!d||!v)return;const p=lt(f),g=lt(r.clientWidth-(u+d)),m=lt(r.clientHeight-(f+v)),$=lt(u),b={rootMargin:-p+"px "+-g+"px "+-m+"px "+-$+"px",threshold:ce(0,Me(1,l))||1};let w=!0;function x(y){const M=y[0].intersectionRatio;if(M!==l){if(!w)return a();M?a(!1,M):o=setTimeout(()=>{a(!1,1e-7)},100)}w=!1}try{n=new IntersectionObserver(x,{...b,root:r.ownerDocument})}catch{n=new IntersectionObserver(x,b)}n.observe(e)}return a(!0),s}function Ki(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,u=Jt(e),f=r||s?[...u?mt(u):[],...mt(t)]:[];f.forEach(h=>{r&&h.addEventListener("scroll",n,{passive:!0}),s&&h.addEventListener("resize",n)});const d=u&&c?Vi(u,n):null;let v=-1,p=null;a&&(p=new ResizeObserver(h=>{let[b]=h;b&&b.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{p&&p.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let g,m=l?De(e):null;l&&$();function $(){const h=De(e);m&&(h.x!==m.x||h.y!==m.y||h.width!==m.width||h.height!==m.height)&&n(),m=h,g=requestAnimationFrame($)}return n(),()=>{f.forEach(h=>{r&&h.removeEventListener("scroll",n),s&&h.removeEventListener("resize",n)}),d&&d(),p&&p.disconnect(),p=null,l&&cancelAnimationFrame(g)}}const ji=(e,t,n)=>{const o=new Map,r={platform:Ui,...n},s={...r.platform,_c:o};return wi(e,t,{...r,platform:s})},Ri=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?no({element:o.current,padding:r}).fn(n):{}:o?no({element:o,padding:r}).fn(n):{}}}};var gt=typeof document<"u"?i.useLayoutEffect:i.useEffect;function vt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(o=n;o--!==0;)if(!vt(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!vt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function vo(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ho(e,t){const n=vo(e);return Math.round(t*n)/n}function bo(e){const t=E.useRef(e);return gt(()=>{t.current=e}),t}function Yi(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:a}={},transform:c=!0,whileElementsMounted:l,open:u}=e,[f,d]=E.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,p]=E.useState(o);vt(v,o)||p(o);const[g,m]=E.useState(null),[$,h]=E.useState(null),b=E.useCallback(D=>{D!=M.current&&(M.current=D,m(D))},[m]),w=E.useCallback(D=>{D!==S.current&&(S.current=D,h(D))},[h]),x=s||g,y=a||$,M=E.useRef(null),S=E.useRef(null),P=E.useRef(f),N=bo(l),H=bo(r),F=E.useCallback(()=>{if(!M.current||!S.current)return;const D={placement:t,strategy:n,middleware:v};H.current&&(D.platform=H.current),ji(M.current,S.current,D).then(te=>{const q={...te,isPositioned:!0};T.current&&!vt(P.current,q)&&(P.current=q,is.flushSync(()=>{d(q)}))})},[v,t,n,H]);gt(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,d(D=>({...D,isPositioned:!1})))},[u]);const T=E.useRef(!1);gt(()=>(T.current=!0,()=>{T.current=!1}),[]),gt(()=>{if(x&&(M.current=x),y&&(S.current=y),x&&y){if(N.current)return N.current(x,y,F);F()}},[x,y,F,N]);const B=E.useMemo(()=>({reference:M,floating:S,setReference:b,setFloating:w}),[b,w]),G=E.useMemo(()=>({reference:x,floating:y}),[x,y]),L=E.useMemo(()=>{const D={position:n,left:0,top:0};if(!G.floating)return D;const te=ho(G.floating,f.x),q=ho(G.floating,f.y);return c?{...D,transform:"translate("+te+"px, "+q+"px)",...vo(G.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:te,top:q}},[n,c,G.floating,f.x,f.y]);return E.useMemo(()=>({...f,update:F,refs:B,elements:G,floatingStyles:L}),[f,F,B,G,L])}function $o(e){const[t,n]=i.useState(void 0);return me(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let a,c;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,c=u.blockSize}else a=e.offsetWidth,c=e.offsetHeight;n({width:a,height:c})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}const wo="Popper",[xo,ht]=Ee(wo),[qi,yo]=xo(wo),Xi=e=>{const{__scopePopper:t,children:n}=e,[o,r]=i.useState(null);return i.createElement(qi,{scope:t,anchor:o,onAnchorChange:r},n)},Zi="PopperAnchor",Qi=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...r}=e,s=yo(Zi,n),a=i.useRef(null),c=ee(t,a);return i.useEffect(()=>{s.onAnchorChange((o==null?void 0:o.current)||a.current)}),o?null:i.createElement(K.div,C({},r,{ref:c}))}),Co="PopperContent",[Ji,Hd]=xo(Co),ea=i.forwardRef((e,t)=>{var n,o,r,s,a,c,l,u;const{__scopePopper:f,side:d="bottom",sideOffset:v=0,align:p="center",alignOffset:g=0,arrowPadding:m=0,collisionBoundary:$=[],collisionPadding:h=0,sticky:b="partial",hideWhenDetached:w=!1,avoidCollisions:x=!0,onPlaced:y,...M}=e,S=yo(Co,f),[P,N]=i.useState(null),H=ee(t,se=>N(se)),[F,T]=i.useState(null),B=$o(F),G=(n=B==null?void 0:B.width)!==null&&n!==void 0?n:0,L=(o=B==null?void 0:B.height)!==null&&o!==void 0?o:0,D=d+(p!=="center"?"-"+p:""),te=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},q=Array.isArray($)?$:[$],_=q.length>0,V={padding:te,boundary:q.filter(ta),altBoundary:_},{refs:J,floatingStyles:ne,placement:Z,isPositioned:re,middlewareData:ie}=Yi({strategy:"fixed",placement:D,whileElementsMounted:Ki,elements:{reference:S.anchor},middleware:[Ei({mainAxis:v+L,alignmentAxis:g}),x&&Si({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?Pi():void 0,...V}),x&&xi({...V}),Mi({...V,apply:({elements:se,rects:nt,availableWidth:ot,availableHeight:rt})=>{const{width:Ld,height:Gd}=nt.reference,Ft=se.floating.style;Ft.setProperty("--radix-popper-available-width",`${ot}px`),Ft.setProperty("--radix-popper-available-height",`${rt}px`),Ft.setProperty("--radix-popper-anchor-width",`${Ld}px`),Ft.setProperty("--radix-popper-anchor-height",`${Gd}px`)}}),F&&Ri({element:F,padding:m}),na({arrowWidth:G,arrowHeight:L}),w&&yi({strategy:"referenceHidden"})]}),[de,I]=Eo(Z),U=ae(y);me(()=>{re&&(U==null||U())},[re,U]);const Q=(r=ie.arrow)===null||r===void 0?void 0:r.x,j=(s=ie.arrow)===null||s===void 0?void 0:s.y,R=((a=ie.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[Y,ue]=i.useState();return me(()=>{P&&ue(window.getComputedStyle(P).zIndex)},[P]),i.createElement("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...ne,transform:re?ne.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[(c=ie.transformOrigin)===null||c===void 0?void 0:c.x,(l=ie.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},i.createElement(Ji,{scope:f,placedSide:de,onArrowChange:T,arrowX:Q,arrowY:j,shouldHideArrow:R},i.createElement(K.div,C({"data-side":de,"data-align":I},M,{ref:H,style:{...M.style,animation:re?void 0:"none",opacity:(u=ie.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))});function ta(e){return e!==null}const na=e=>({name:"transformOrigin",options:e,fn(t){var n,o,r,s,a;const{placement:c,rects:l,middlewareData:u}=t,d=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,v=d?0:e.arrowWidth,p=d?0:e.arrowHeight,[g,m]=Eo(c),$={start:"0%",center:"50%",end:"100%"}[m],h=((o=(r=u.arrow)===null||r===void 0?void 0:r.x)!==null&&o!==void 0?o:0)+v/2,b=((s=(a=u.arrow)===null||a===void 0?void 0:a.y)!==null&&s!==void 0?s:0)+p/2;let w="",x="";return g==="bottom"?(w=d?$:`${h}px`,x=`${-p}px`):g==="top"?(w=d?$:`${h}px`,x=`${l.floating.height+p}px`):g==="right"?(w=`${-p}px`,x=d?$:`${b}px`):g==="left"&&(w=`${l.floating.width+p}px`,x=d?$:`${b}px`),{data:{x:w,y:x}}}});function Eo(e){const[t,n="center"]=e.split("-");return[t,n]}const en=Xi,So=Qi,Po=ea,Mo=i.forwardRef((e,t)=>{var n;const{container:o=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...r}=e;return o?Le.createPortal(i.createElement(K.div,C({},r,{ref:t})),o):null});function oa(e,t){return i.useReducer((n,o)=>{const r=t[n][o];return r??n},e)}const Ue=e=>{const{present:t,children:n}=e,o=ra(t),r=typeof n=="function"?n({present:o.isPresent}):i.Children.only(n),s=ee(o.ref,r.ref);return typeof n=="function"||o.isPresent?i.cloneElement(r,{ref:s}):null};Ue.displayName="Presence";function ra(e){const[t,n]=i.useState(),o=i.useRef({}),r=i.useRef(e),s=i.useRef("none"),a=e?"mounted":"unmounted",[c,l]=oa(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=bt(o.current);s.current=c==="mounted"?u:"none"},[c]),me(()=>{const u=o.current,f=r.current;if(f!==e){const v=s.current,p=bt(u);e?l("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(f&&v!==p?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,l]),me(()=>{if(t){const u=d=>{const p=bt(o.current).includes(d.animationName);d.target===t&&p&&Le.flushSync(()=>l("ANIMATION_END"))},f=d=>{d.target===t&&(s.current=bt(o.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(u=>{u&&(o.current=getComputedStyle(u)),n(u)},[])}}function bt(e){return(e==null?void 0:e.animationName)||"none"}const tn="rovingFocusGroup.onEntryFocus",sa={bubbles:!1,cancelable:!0},nn="RovingFocusGroup",[on,_o,ia]=Ht(nn),[aa,$t]=Ee(nn,[ia]),[ca,la]=aa(nn),da=i.forwardRef((e,t)=>i.createElement(on.Provider,{scope:e.__scopeRovingFocusGroup},i.createElement(on.Slot,{scope:e.__scopeRovingFocusGroup},i.createElement(ua,C({},e,{ref:t}))))),ua=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:u,...f}=e,d=i.useRef(null),v=ee(t,d),p=at(s),[g=null,m]=Ge({prop:a,defaultProp:c,onChange:l}),[$,h]=i.useState(!1),b=ae(u),w=_o(n),x=i.useRef(!1),[y,M]=i.useState(0);return i.useEffect(()=>{const S=d.current;if(S)return S.addEventListener(tn,b),()=>S.removeEventListener(tn,b)},[b]),i.createElement(ca,{scope:n,orientation:o,dir:p,loop:r,currentTabStopId:g,onItemFocus:i.useCallback(S=>m(S),[m]),onItemShiftTab:i.useCallback(()=>h(!0),[]),onFocusableItemAdd:i.useCallback(()=>M(S=>S+1),[]),onFocusableItemRemove:i.useCallback(()=>M(S=>S-1),[])},i.createElement(K.div,C({tabIndex:$||y===0?-1:0,"data-orientation":o},f,{ref:v,style:{outline:"none",...e.style},onMouseDown:O(e.onMouseDown,()=>{x.current=!0}),onFocus:O(e.onFocus,S=>{const P=!x.current;if(S.target===S.currentTarget&&P&&!$){const N=new CustomEvent(tn,sa);if(S.currentTarget.dispatchEvent(N),!N.defaultPrevented){const H=w().filter(L=>L.focusable),F=H.find(L=>L.active),T=H.find(L=>L.id===g),G=[F,T,...H].filter(Boolean).map(L=>L.ref.current);To(G)}}x.current=!1}),onBlur:O(e.onBlur,()=>h(!1))})))}),fa="RovingFocusGroupItem",pa=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:s,...a}=e,c=Pe(),l=s||c,u=la(fa,n),f=u.currentTabStopId===l,d=_o(n),{onFocusableItemAdd:v,onFocusableItemRemove:p}=u;return i.useEffect(()=>{if(o)return v(),()=>p()},[o,v,p]),i.createElement(on.ItemSlot,{scope:n,id:l,focusable:o,active:r},i.createElement(K.span,C({tabIndex:f?0:-1,"data-orientation":u.orientation},a,{ref:t,onMouseDown:O(e.onMouseDown,g=>{o?u.onItemFocus(l):g.preventDefault()}),onFocus:O(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:O(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){u.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const m=va(g,u.orientation,u.dir);if(m!==void 0){g.preventDefault();let h=d().filter(b=>b.focusable).map(b=>b.ref.current);if(m==="last")h.reverse();else if(m==="prev"||m==="next"){m==="prev"&&h.reverse();const b=h.indexOf(g.currentTarget);h=u.loop?ha(h,b+1):h.slice(b+1)}setTimeout(()=>To(h))}})})))}),ma={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ga(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function va(e,t,n){const o=ga(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return ma[o]}function To(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function ha(e,t){return e.map((n,o)=>e[(t+o)%e.length])}const ko=da,Oo=pa;var ba=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ve=new WeakMap,wt=new WeakMap,xt={},rn=0,Io=function(e){return e&&(e.host||Io(e.parentNode))},$a=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=Io(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},wa=function(e,t,n,o){var r=$a(t,Array.isArray(e)?e:[e]);xt[n]||(xt[n]=new WeakMap);var s=xt[n],a=[],c=new Set,l=new Set(r),u=function(d){!d||c.has(d)||(c.add(d),u(d.parentNode))};r.forEach(u);var f=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(v){if(c.has(v))f(v);else{var p=v.getAttribute(o),g=p!==null&&p!=="false",m=(Ve.get(v)||0)+1,$=(s.get(v)||0)+1;Ve.set(v,m),s.set(v,$),a.push(v),m===1&&g&&wt.set(v,!0),$===1&&v.setAttribute(n,"true"),g||v.setAttribute(o,"true")}})};return f(t),c.clear(),rn++,function(){a.forEach(function(d){var v=Ve.get(d)-1,p=s.get(d)-1;Ve.set(d,v),s.set(d,p),v||(wt.has(d)||d.removeAttribute(o),wt.delete(d)),p||d.removeAttribute(n)}),rn--,rn||(Ve=new WeakMap,Ve=new WeakMap,wt=new WeakMap,xt={})}},Ao=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=t||ba(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live]"))),wa(o,r,n,"aria-hidden")):function(){return null}},he=function(){return he=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},he.apply(this,arguments)};function Do(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function xa(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,s;o<r;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var yt="right-scroll-bar-position",Ct="width-before-scroll-bar",ya="with-scroll-bars-hidden",Ca="--removed-body-scroll-bar-size";function Ea(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Sa(e,t){var n=i.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}function Pa(e,t){return Sa(t||null,function(n){return e.forEach(function(o){return Ea(o,n)})})}function Ma(e){return e}function _a(e,t){t===void 0&&(t=Ma);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var a=t(s,o);return n.push(a),function(){n=n.filter(function(c){return c!==a})}},assignSyncMedium:function(s){for(o=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){o=!0;var a=[];if(n.length){var c=n;n=[],c.forEach(s),a=n}var l=function(){var f=a;a=[],f.forEach(s)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),n}}}};return r}function Ta(e){e===void 0&&(e={});var t=_a(null);return t.options=he({async:!0,ssr:!1},e),t}var No=function(e){var t=e.sideCar,n=Do(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return E.createElement(o,he({},n))};No.isSideCarExport=!0;function ka(e,t){return e.useMedium(t),No}var Fo=Ta(),sn=function(){},Et=E.forwardRef(function(e,t){var n=E.useRef(null),o=E.useState({onScrollCapture:sn,onWheelCapture:sn,onTouchMoveCapture:sn}),r=o[0],s=o[1],a=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,v=e.sideCar,p=e.noIsolation,g=e.inert,m=e.allowPinchZoom,$=e.as,h=$===void 0?"div":$,b=Do(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=v,x=Pa([n,t]),y=he(he({},b),r);return E.createElement(E.Fragment,null,f&&E.createElement(w,{sideCar:Fo,removeScrollBar:u,shards:d,noIsolation:p,inert:g,setCallbacks:s,allowPinchZoom:!!m,lockRef:n}),a?E.cloneElement(E.Children.only(c),he(he({},y),{ref:x})):E.createElement(h,he({},y,{className:l,ref:x}),c))});Et.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Et.classNames={fullWidth:Ct,zeroRight:yt};var Lo,Oa=function(){if(Lo)return Lo;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ia(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Oa();return t&&e.setAttribute("nonce",t),e}function Aa(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Da(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Na=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ia())&&(Aa(t,n),Da(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Fa=function(){var e=Na();return function(t,n){E.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Go=function(){var e=Fa(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},La={left:0,top:0,right:0,gap:0},an=function(e){return parseInt(e||"",10)||0},Ga=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[an(n),an(o),an(r)]},Ba=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return La;var t=Ga(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},Wa=Go(),Ha=function(e,t,n,o){var r=e.left,s=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),`
2
2
  .`.concat(ya,` {
3
3
  overflow: hidden `).concat(o,`;
4
4
  padding-right: `).concat(c,"px ").concat(o,`;
@@ -35,7 +35,7 @@
35
35
  body {
36
36
  `).concat(Ca,": ").concat(c,`px;
37
37
  }
38
- `)},za=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o,s=E.useMemo(function(){return Ba(r)},[r]);return E.createElement(Wa,{styles:Ha(s,!t,r,n?"":"!important")})},cn=!1;if(typeof window<"u")try{var St=Object.defineProperty({},"passive",{get:function(){return cn=!0,!0}});window.addEventListener("test",St,St),window.removeEventListener("test",St,St)}catch{cn=!1}var Ke=cn?{passive:!1}:!1,Ua=function(e){return e.tagName==="TEXTAREA"},Go=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ua(e)&&n[t]==="visible")},Va=function(e){return Go(e,"overflowY")},Ka=function(e){return Go(e,"overflowX")},Bo=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Wo(e,n);if(o){var r=Ho(e,n),s=r[1],a=r[2];if(s>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},ja=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},Ra=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},Wo=function(e,t){return e==="v"?Va(t):Ka(t)},Ho=function(e,t){return e==="v"?ja(t):Ra(t)},Ya=function(e,t){return e==="h"&&t==="rtl"?-1:1},qa=function(e,t,n,o,r){var s=Ya(e,window.getComputedStyle(t).direction),a=s*o,c=n.target,l=t.contains(c),u=!1,f=a>0,d=0,v=0;do{var p=Ho(e,c),g=p[0],m=p[1],$=p[2],h=m-$-s*g;(g||h)&&Wo(e,c)&&(d+=h,v+=g),c=c.parentNode}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return(f&&(r&&d===0||!r&&a>d)||!f&&(r&&v===0||!r&&-a>v))&&(u=!0),u},Pt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},zo=function(e){return[e.deltaX,e.deltaY]},Uo=function(e){return e&&"current"in e?e.current:e},Xa=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Za=function(e){return`
38
+ `)},za=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o,s=E.useMemo(function(){return Ba(r)},[r]);return E.createElement(Wa,{styles:Ha(s,!t,r,n?"":"!important")})},cn=!1;if(typeof window<"u")try{var St=Object.defineProperty({},"passive",{get:function(){return cn=!0,!0}});window.addEventListener("test",St,St),window.removeEventListener("test",St,St)}catch{cn=!1}var Ke=cn?{passive:!1}:!1,Ua=function(e){return e.tagName==="TEXTAREA"},Bo=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ua(e)&&n[t]==="visible")},Va=function(e){return Bo(e,"overflowY")},Ka=function(e){return Bo(e,"overflowX")},Wo=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Ho(e,n);if(o){var r=zo(e,n),s=r[1],a=r[2];if(s>a)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},ja=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},Ra=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},Ho=function(e,t){return e==="v"?Va(t):Ka(t)},zo=function(e,t){return e==="v"?ja(t):Ra(t)},Ya=function(e,t){return e==="h"&&t==="rtl"?-1:1},qa=function(e,t,n,o,r){var s=Ya(e,window.getComputedStyle(t).direction),a=s*o,c=n.target,l=t.contains(c),u=!1,f=a>0,d=0,v=0;do{var p=zo(e,c),g=p[0],m=p[1],$=p[2],h=m-$-s*g;(g||h)&&Ho(e,c)&&(d+=h,v+=g),c=c.parentNode}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return(f&&(r&&d===0||!r&&a>d)||!f&&(r&&v===0||!r&&-a>v))&&(u=!0),u},Pt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Uo=function(e){return[e.deltaX,e.deltaY]},Vo=function(e){return e&&"current"in e?e.current:e},Xa=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Za=function(e){return`
39
39
  .block-interactivity-`.concat(e,` {pointer-events: none;}
40
40
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
41
- `)},Qa=0,je=[];function Ja(e){var t=E.useRef([]),n=E.useRef([0,0]),o=E.useRef(),r=E.useState(Qa++)[0],s=E.useState(function(){return Lo()})[0],a=E.useRef(e);E.useEffect(function(){a.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var m=xa([e.lockRef.current],(e.shards||[]).map(Uo),!0).filter(Boolean);return m.forEach(function($){return $.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),m.forEach(function($){return $.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var c=E.useCallback(function(m,$){if("touches"in m&&m.touches.length===2)return!a.current.allowPinchZoom;var h=Pt(m),b=n.current,w="deltaX"in m?m.deltaX:b[0]-h[0],x="deltaY"in m?m.deltaY:b[1]-h[1],y,M=m.target,S=Math.abs(w)>Math.abs(x)?"h":"v";if("touches"in m&&S==="h"&&M.type==="range")return!1;var P=Bo(S,M);if(!P)return!0;if(P?y=S:(y=S==="v"?"h":"v",P=Bo(S,M)),!P)return!1;if(!o.current&&"changedTouches"in m&&(w||x)&&(o.current=y),!y)return!0;var N=o.current||y;return qa(N,$,m,N==="h"?w:x,!0)},[]),l=E.useCallback(function(m){var $=m;if(!(!je.length||je[je.length-1]!==s)){var h="deltaY"in $?zo($):Pt($),b=t.current.filter(function(y){return y.name===$.type&&y.target===$.target&&Xa(y.delta,h)})[0];if(b&&b.should){$.cancelable&&$.preventDefault();return}if(!b){var w=(a.current.shards||[]).map(Uo).filter(Boolean).filter(function(y){return y.contains($.target)}),x=w.length>0?c($,w[0]):!a.current.noIsolation;x&&$.cancelable&&$.preventDefault()}}},[]),u=E.useCallback(function(m,$,h,b){var w={name:m,delta:$,target:h,should:b};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(x){return x!==w})},1)},[]),f=E.useCallback(function(m){n.current=Pt(m),o.current=void 0},[]),d=E.useCallback(function(m){u(m.type,zo(m),m.target,c(m,e.lockRef.current))},[]),v=E.useCallback(function(m){u(m.type,Pt(m),m.target,c(m,e.lockRef.current))},[]);E.useEffect(function(){return je.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:v}),document.addEventListener("wheel",l,Ke),document.addEventListener("touchmove",l,Ke),document.addEventListener("touchstart",f,Ke),function(){je=je.filter(function(m){return m!==s}),document.removeEventListener("wheel",l,Ke),document.removeEventListener("touchmove",l,Ke),document.removeEventListener("touchstart",f,Ke)}},[]);var p=e.removeScrollBar,g=e.inert;return E.createElement(E.Fragment,null,g?E.createElement(s,{styles:Za(r)}):null,p?E.createElement(za,{gapMode:"margin"}):null)}const ec=ka(No,Ja);var Vo=E.forwardRef(function(e,t){return E.createElement(Et,he({},e,{ref:t,sideCar:ec}))});Vo.classNames=Et.classNames;const Ko=Vo,ln=["Enter"," "],tc=["ArrowDown","PageUp","Home"],jo=["ArrowUp","PageDown","End"],nc=[...tc,...jo],oc={ltr:[...ln,"ArrowRight"],rtl:[...ln,"ArrowLeft"]},rc={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Mt="Menu",[Je,sc,ic]=Ht(Mt),[De,Ro]=Ee(Mt,[ic,ht,$t]),_t=ht(),Yo=$t(),[qo,ke]=De(Mt),[ac,et]=De(Mt),cc=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:r,onOpenChange:s,modal:a=!0}=e,c=_t(t),[l,u]=i.useState(null),f=i.useRef(!1),d=ae(s),v=at(r);return i.useEffect(()=>{const p=()=>{f.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>f.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),i.createElement(en,c,i.createElement(qo,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u},i.createElement(ac,{scope:t,onClose:i.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:f,dir:v,modal:a},o)))},Xo=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=_t(n);return i.createElement(Eo,C({},r,o,{ref:t}))}),Zo="MenuPortal",[lc,Qo]=De(Zo,{forceMount:void 0}),dc=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:r}=e,s=ke(Zo,t);return i.createElement(lc,{scope:t,forceMount:n},i.createElement(Ue,{present:n||s.open},i.createElement(Po,{asChild:!0,container:r},o)))},ge="MenuContent",[uc,dn]=De(ge),fc=i.forwardRef((e,t)=>{const n=Qo(ge,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=ke(ge,e.__scopeMenu),a=et(ge,e.__scopeMenu);return i.createElement(Je.Provider,{scope:e.__scopeMenu},i.createElement(Ue,{present:o||s.open},i.createElement(Je.Slot,{scope:e.__scopeMenu},a.modal?i.createElement(pc,C({},r,{ref:t})):i.createElement(mc,C({},r,{ref:t})))))}),pc=i.forwardRef((e,t)=>{const n=ke(ge,e.__scopeMenu),o=i.useRef(null),r=ee(t,o);return i.useEffect(()=>{const s=o.current;if(s)return Io(s)},[]),i.createElement(un,C({},e,{ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:O(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),mc=i.forwardRef((e,t)=>{const n=ke(ge,e.__scopeMenu);return i.createElement(un,C({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),un=i.forwardRef((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:c,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:v,onDismiss:p,disableOutsideScroll:g,...m}=e,$=ke(ge,n),h=et(ge,n),b=_t(n),w=Yo(n),x=sc(n),[y,M]=i.useState(null),S=i.useRef(null),P=ee(t,S,$.onContentChange),N=i.useRef(0),H=i.useRef(""),F=i.useRef(0),T=i.useRef(null),B=i.useRef("right"),G=i.useRef(0),L=g?Ko:i.Fragment,D=g?{as:Ge,allowPinchZoom:!0}:void 0,te=_=>{var V,J;const ne=H.current+_,Z=x().filter(Q=>!Q.disabled),re=document.activeElement,ie=(V=Z.find(Q=>Q.ref.current===re))===null||V===void 0?void 0:V.textValue,de=Z.map(Q=>Q.textValue),I=Ac(de,ne,ie),U=(J=Z.find(Q=>Q.textValue===I))===null||J===void 0?void 0:J.ref.current;(function Q(j){H.current=j,window.clearTimeout(N.current),j!==""&&(N.current=window.setTimeout(()=>Q(""),1e3))})(ne),U&&setTimeout(()=>U.focus())};i.useEffect(()=>()=>window.clearTimeout(N.current),[]),Kn();const q=i.useCallback(_=>{var V,J;return B.current===((V=T.current)===null||V===void 0?void 0:V.side)&&Nc(_,(J=T.current)===null||J===void 0?void 0:J.area)},[]);return i.createElement(uc,{scope:n,searchRef:H,onItemEnter:i.useCallback(_=>{q(_)&&_.preventDefault()},[q]),onItemLeave:i.useCallback(_=>{var V;q(_)||((V=S.current)===null||V===void 0||V.focus(),M(null))},[q]),onTriggerLeave:i.useCallback(_=>{q(_)&&_.preventDefault()},[q]),pointerGraceTimerRef:F,onPointerGraceIntentChange:i.useCallback(_=>{T.current=_},[])},i.createElement(L,D,i.createElement(Yn,{asChild:!0,trapped:r,onMountAutoFocus:O(s,_=>{var V;_.preventDefault(),(V=S.current)===null||V===void 0||V.focus()}),onUnmountAutoFocus:a},i.createElement(zn,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:v,onDismiss:p},i.createElement(To,C({asChild:!0},w,{dir:h.dir,orientation:"vertical",loop:o,currentTabStopId:y,onCurrentTabStopIdChange:M,onEntryFocus:O(l,_=>{h.isUsingKeyboardRef.current||_.preventDefault()})}),i.createElement(So,C({role:"menu","aria-orientation":"vertical","data-state":ir($.open),"data-radix-menu-content":"",dir:h.dir},b,m,{ref:P,style:{outline:"none",...m.style},onKeyDown:O(m.onKeyDown,_=>{const J=_.target.closest("[data-radix-menu-content]")===_.currentTarget,ne=_.ctrlKey||_.altKey||_.metaKey,Z=_.key.length===1;J&&(_.key==="Tab"&&_.preventDefault(),!ne&&Z&&te(_.key));const re=S.current;if(_.target!==re||!nc.includes(_.key))return;_.preventDefault();const de=x().filter(I=>!I.disabled).map(I=>I.ref.current);jo.includes(_.key)&&de.reverse(),Oc(de)}),onBlur:O(e.onBlur,_=>{_.currentTarget.contains(_.target)||(window.clearTimeout(N.current),H.current="")}),onPointerMove:O(e.onPointerMove,tt(_=>{const V=_.target,J=G.current!==_.clientX;if(_.currentTarget.contains(V)&&J){const ne=_.clientX>G.current?"right":"left";B.current=ne,G.current=_.clientX}}))})))))))}),Jo=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return i.createElement(K.div,C({role:"group"},o,{ref:t}))}),gc=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return i.createElement(K.div,C({},o,{ref:t}))}),fn="MenuItem",er="menu.itemSelect",pn=i.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...r}=e,s=i.useRef(null),a=et(fn,e.__scopeMenu),c=dn(fn,e.__scopeMenu),l=ee(t,s),u=i.useRef(!1),f=()=>{const d=s.current;if(!n&&d){const v=new CustomEvent(er,{bubbles:!0,cancelable:!0});d.addEventListener(er,p=>o==null?void 0:o(p),{once:!0}),Wn(d,v),v.defaultPrevented?u.current=!1:a.onClose()}};return i.createElement(tr,C({},r,{ref:l,disabled:n,onClick:O(e.onClick,f),onPointerDown:d=>{var v;(v=e.onPointerDown)===null||v===void 0||v.call(e,d),u.current=!0},onPointerUp:O(e.onPointerUp,d=>{var v;u.current||(v=d.currentTarget)===null||v===void 0||v.click()}),onKeyDown:O(e.onKeyDown,d=>{const v=c.searchRef.current!=="";n||v&&d.key===" "||ln.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})}))}),tr=i.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:r,...s}=e,a=dn(fn,n),c=Yo(n),l=i.useRef(null),u=ee(t,l),[f,d]=i.useState(!1),[v,p]=i.useState("");return i.useEffect(()=>{const g=l.current;if(g){var m;p(((m=g.textContent)!==null&&m!==void 0?m:"").trim())}},[s.children]),i.createElement(Je.ItemSlot,{scope:n,disabled:o,textValue:r??v},i.createElement(ko,C({asChild:!0},c,{focusable:!o}),i.createElement(K.div,C({role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0},s,{ref:u,onPointerMove:O(e.onPointerMove,tt(g=>{o?a.onItemLeave(g):(a.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus())})),onPointerLeave:O(e.onPointerLeave,tt(g=>a.onItemLeave(g))),onFocus:O(e.onFocus,()=>d(!0)),onBlur:O(e.onBlur,()=>d(!1))}))))}),vc=i.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...r}=e;return i.createElement(or,{scope:e.__scopeMenu,checked:n},i.createElement(pn,C({role:"menuitemcheckbox","aria-checked":kt(n)?"mixed":n},r,{ref:t,"data-state":mn(n),onSelect:O(r.onSelect,()=>o==null?void 0:o(kt(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),hc="MenuRadioGroup",[bc,$c]=De(hc,{value:void 0,onValueChange:()=>{}}),wc=i.forwardRef((e,t)=>{const{value:n,onValueChange:o,...r}=e,s=ae(o);return i.createElement(bc,{scope:e.__scopeMenu,value:n,onValueChange:s},i.createElement(Jo,C({},r,{ref:t})))}),xc="MenuRadioItem",yc=i.forwardRef((e,t)=>{const{value:n,...o}=e,r=$c(xc,e.__scopeMenu),s=n===r.value;return i.createElement(or,{scope:e.__scopeMenu,checked:s},i.createElement(pn,C({role:"menuitemradio","aria-checked":s},o,{ref:t,"data-state":mn(s),onSelect:O(o.onSelect,()=>{var a;return(a=r.onValueChange)===null||a===void 0?void 0:a.call(r,n)},{checkForDefaultPrevented:!1})})))}),nr="MenuItemIndicator",[or,Cc]=De(nr,{checked:!1}),Ec=i.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...r}=e,s=Cc(nr,n);return i.createElement(Ue,{present:o||kt(s.checked)||s.checked===!0},i.createElement(K.span,C({},r,{ref:t,"data-state":mn(s.checked)})))}),Sc=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return i.createElement(K.div,C({role:"separator","aria-orientation":"horizontal"},o,{ref:t}))}),rr="MenuSub",[Pc,sr]=De(rr),Mc=e=>{const{__scopeMenu:t,children:n,open:o=!1,onOpenChange:r}=e,s=ke(rr,t),a=_t(t),[c,l]=i.useState(null),[u,f]=i.useState(null),d=ae(r);return i.useEffect(()=>(s.open===!1&&d(!1),()=>d(!1)),[s.open,d]),i.createElement(en,a,i.createElement(qo,{scope:t,open:o,onOpenChange:d,content:u,onContentChange:f},i.createElement(Pc,{scope:t,contentId:Pe(),triggerId:Pe(),trigger:c,onTriggerChange:l},n)))},Tt="MenuSubTrigger",_c=i.forwardRef((e,t)=>{const n=ke(Tt,e.__scopeMenu),o=et(Tt,e.__scopeMenu),r=sr(Tt,e.__scopeMenu),s=dn(Tt,e.__scopeMenu),a=i.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:l}=s,u={__scopeMenu:e.__scopeMenu},f=i.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return i.useEffect(()=>f,[f]),i.useEffect(()=>{const d=c.current;return()=>{window.clearTimeout(d),l(null)}},[c,l]),i.createElement(Xo,C({asChild:!0},u),i.createElement(tr,C({id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":ir(n.open)},e,{ref:it(t,r.onTriggerChange),onClick:d=>{var v;(v=e.onClick)===null||v===void 0||v.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:O(e.onPointerMove,tt(d=>{s.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(s.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:O(e.onPointerLeave,tt(d=>{var v;f();const p=(v=n.content)===null||v===void 0?void 0:v.getBoundingClientRect();if(p){var g;const m=(g=n.content)===null||g===void 0?void 0:g.dataset.side,$=m==="right",h=$?-5:5,b=p[$?"left":"right"],w=p[$?"right":"left"];s.onPointerGraceIntentChange({area:[{x:d.clientX+h,y:d.clientY},{x:b,y:p.top},{x:w,y:p.top},{x:w,y:p.bottom},{x:b,y:p.bottom}],side:m}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(d),d.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:O(e.onKeyDown,d=>{const v=s.searchRef.current!=="";if(!(e.disabled||v&&d.key===" ")&&oc[o.dir].includes(d.key)){var p;n.onOpenChange(!0),(p=n.content)===null||p===void 0||p.focus(),d.preventDefault()}})})))}),Tc="MenuSubContent",kc=i.forwardRef((e,t)=>{const n=Qo(ge,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=ke(ge,e.__scopeMenu),a=et(ge,e.__scopeMenu),c=sr(Tc,e.__scopeMenu),l=i.useRef(null),u=ee(t,l);return i.createElement(Je.Provider,{scope:e.__scopeMenu},i.createElement(Ue,{present:o||s.open},i.createElement(Je.Slot,{scope:e.__scopeMenu},i.createElement(un,C({id:c.contentId,"aria-labelledby":c.triggerId},r,{ref:u,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var d;a.isUsingKeyboardRef.current&&((d=l.current)===null||d===void 0||d.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:O(e.onFocusOutside,f=>{f.target!==c.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:O(e.onEscapeKeyDown,f=>{a.onClose(),f.preventDefault()}),onKeyDown:O(e.onKeyDown,f=>{const d=f.currentTarget.contains(f.target),v=rc[a.dir].includes(f.key);if(d&&v){var p;s.onOpenChange(!1),(p=c.trigger)===null||p===void 0||p.focus(),f.preventDefault()}})})))))});function ir(e){return e?"open":"closed"}function kt(e){return e==="indeterminate"}function mn(e){return kt(e)?"indeterminate":e?"checked":"unchecked"}function Oc(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Ic(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function Ac(e,t,n){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=Ic(e,Math.max(s,0));r.length===1&&(a=a.filter(u=>u!==n));const l=a.find(u=>u.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function Dc(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s].x,l=t[s].y,u=t[a].x,f=t[a].y;l>o!=f>o&&n<(u-c)*(o-l)/(f-l)+c&&(r=!r)}return r}function Nc(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Dc(n,t)}function tt(e){return t=>t.pointerType==="mouse"?e(t):void 0}const Fc=cc,Lc=Xo,Gc=dc,Bc=fc,Wc=Jo,Hc=gc,zc=pn,Uc=vc,Vc=wc,Kc=yc,jc=Ec,Rc=Sc,Yc=Mc,qc=_c,Xc=kc,ar="DropdownMenu",[Zc,zd]=Ee(ar,[Ro]),oe=Ro(),[Qc,cr]=Zc(ar),Jc=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:r,defaultOpen:s,onOpenChange:a,modal:c=!0}=e,l=oe(t),u=i.useRef(null),[f=!1,d]=Le({prop:r,defaultProp:s,onChange:a});return i.createElement(Qc,{scope:t,triggerId:Pe(),triggerRef:u,contentId:Pe(),open:f,onOpenChange:d,onOpenToggle:i.useCallback(()=>d(v=>!v),[d]),modal:c},i.createElement(Fc,C({},l,{open:f,onOpenChange:d,dir:o,modal:c}),n))},el="DropdownMenuTrigger",tl=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...r}=e,s=cr(el,n),a=oe(n);return i.createElement(Lc,C({asChild:!0},a),i.createElement(K.button,C({type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":o?"":void 0,disabled:o},r,{ref:it(t,s.triggerRef),onPointerDown:O(e.onPointerDown,c=>{!o&&c.button===0&&c.ctrlKey===!1&&(s.onOpenToggle(),s.open||c.preventDefault())}),onKeyDown:O(e.onKeyDown,c=>{o||(["Enter"," "].includes(c.key)&&s.onOpenToggle(),c.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})))}),nl=e=>{const{__scopeDropdownMenu:t,...n}=e,o=oe(t);return i.createElement(Gc,C({},o,n))},ol="DropdownMenuContent",rl=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=cr(ol,n),s=oe(n),a=i.useRef(!1);return i.createElement(Bc,C({id:r.contentId,"aria-labelledby":r.triggerId},s,o,{ref:t,onCloseAutoFocus:O(e.onCloseAutoFocus,c=>{var l;a.current||(l=r.triggerRef.current)===null||l===void 0||l.focus(),a.current=!1,c.preventDefault()}),onInteractOutside:O(e.onInteractOutside,c=>{const l=c.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,f=l.button===2||u;(!r.modal||f)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),sl=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return i.createElement(Wc,C({},r,o,{ref:t}))}),il=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return i.createElement(Hc,C({},r,o,{ref:t}))}),al=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return i.createElement(zc,C({},r,o,{ref:t}))}),cl=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return i.createElement(Uc,C({},r,o,{ref:t}))}),ll=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return i.createElement(Vc,C({},r,o,{ref:t}))}),dl=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return i.createElement(Kc,C({},r,o,{ref:t}))}),ul=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return i.createElement(jc,C({},r,o,{ref:t}))}),fl=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return i.createElement(Rc,C({},r,o,{ref:t}))}),pl=e=>{const{__scopeDropdownMenu:t,children:n,open:o,onOpenChange:r,defaultOpen:s}=e,a=oe(t),[c=!1,l]=Le({prop:o,defaultProp:s,onChange:r});return i.createElement(Yc,C({},a,{open:c,onOpenChange:l}),n)},ml=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return i.createElement(qc,C({},r,o,{ref:t}))}),gl=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return i.createElement(Xc,C({},r,o,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),vl=Jc,hl=tl,lr=nl,dr=rl,bl=sl,ur=il,fr=al,pr=cl,$l=ll,mr=dl,gr=ul,vr=fl,wl=pl,hr=ml,br=gl;var xl={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const yl=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ot=(e,t)=>{const n=i.forwardRef(({color:o="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:a,children:c,...l},u)=>i.createElement("svg",{ref:u,...xl,width:r,height:r,stroke:o,strokeWidth:a?Number(s)*24/Number(r):s,className:`lucide lucide-${yl(e)}`,...l},[...t.map(([f,d])=>i.createElement(f,d)),...(Array.isArray(c)?c:[c])||[]]));return n.displayName=`${e}`,n},$r=Ot("Check",[["polyline",{points:"20 6 9 17 4 12",key:"10jjfj"}]]),Cl=Ot("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),El=Ot("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),wr=Ot("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),Sl=vl,Pl=hl,Ml=bl,_l=lr,Tl=wl,kl=$l,xr=E.forwardRef(({className:e="",inset:t,children:n,...o},r)=>k.jsxs(hr,{ref:r,className:z(t===!0?"pl-8":"",e,"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-neutral-100 data-[state=open]:bg-neutral-100 dark:focus:bg-neutral-800 dark:data-[state=open]:bg-neutral-800"),...o,children:[n,k.jsx(El,{className:"ml-auto h-4 w-4"})]}));xr.displayName=hr.displayName;const yr=E.forwardRef(({className:e="",...t},n)=>k.jsx(br,{ref:n,className:z(e,"z-50 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white p-1 text-neutral-950 shadow-lg 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50"),...t}));yr.displayName=br.displayName;const Cr=E.forwardRef(({className:e="",sideOffset:t=4,...n},o)=>k.jsx(lr,{children:k.jsx(dr,{ref:o,sideOffset:t,className:z(e,"z-50 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white p-1 text-neutral-950 shadow-md 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50"),...n})}));Cr.displayName=dr.displayName;const Er=E.forwardRef(({className:e="",inset:t,...n},o)=>k.jsx(fr,{ref:o,className:z(t===!0?"pl-8":"",e,"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50"),...n}));Er.displayName=fr.displayName;const Sr=E.forwardRef(({className:e="",children:t,checked:n,...o},r)=>k.jsxs(pr,{ref:r,className:z(e,"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50"),checked:n,...o,children:[k.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:k.jsx(gr,{children:k.jsx($r,{className:"h-4 w-4"})})}),t]}));Sr.displayName=pr.displayName;const Pr=E.forwardRef(({className:e="",children:t,...n},o)=>k.jsxs(mr,{ref:o,className:z(e,"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50"),...n,children:[k.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:k.jsx(gr,{children:k.jsx(wr,{className:"h-2 w-2 fill-current"})})}),t]}));Pr.displayName=mr.displayName;const Mr=E.forwardRef(({className:e="",inset:t,...n},o)=>k.jsx(ur,{ref:o,className:z(t===!0?"pl-8":"",e,"px-2 py-1.5 text-sm font-semibold"),...n}));Mr.displayName=ur.displayName;const _r=E.forwardRef(({className:e="",...t},n)=>k.jsx(vr,{ref:n,className:z(e,"-mx-1 my-1 h-px bg-neutral-100 dark:bg-neutral-800"),...t}));_r.displayName=vr.displayName;const Tr=({className:e="",...t})=>k.jsx("span",{className:z(e,"ml-auto text-xs tracking-widest opacity-60"),...t});Tr.displayName="DropdownMenuShortcut";function kr(e){const t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const Or="Radio",[Ol,Ir]=Ee(Or),[Il,Al]=Ol(Or),Dl=i.forwardRef((e,t)=>{const{__scopeRadio:n,name:o,checked:r=!1,required:s,disabled:a,value:c="on",onCheck:l,...u}=e,[f,d]=i.useState(null),v=ee(t,m=>d(m)),p=i.useRef(!1),g=f?!!f.closest("form"):!0;return i.createElement(Il,{scope:n,checked:r,disabled:a},i.createElement(K.button,C({type:"button",role:"radio","aria-checked":r,"data-state":Ar(r),"data-disabled":a?"":void 0,disabled:a,value:c},u,{ref:v,onClick:O(e.onClick,m=>{r||l==null||l(),g&&(p.current=m.isPropagationStopped(),p.current||m.stopPropagation())})})),g&&i.createElement(Ll,{control:f,bubbles:!p.current,name:o,value:c,checked:r,required:s,disabled:a,style:{transform:"translateX(-100%)"}}))}),Nl="RadioIndicator",Fl=i.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:o,...r}=e,s=Al(Nl,n);return i.createElement(Ue,{present:o||s.checked},i.createElement(K.span,C({"data-state":Ar(s.checked),"data-disabled":s.disabled?"":void 0},r,{ref:t})))}),Ll=e=>{const{control:t,checked:n,bubbles:o=!0,...r}=e,s=i.useRef(null),a=kr(n),c=bo(t);return i.useEffect(()=>{const l=s.current,u=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(u,"checked").set;if(a!==n&&d){const v=new Event("click",{bubbles:o});d.call(l,n),l.dispatchEvent(v)}},[a,n,o]),i.createElement("input",C({type:"radio","aria-hidden":!0,defaultChecked:n},r,{tabIndex:-1,ref:s,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Ar(e){return e?"checked":"unchecked"}const Gl=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Dr="RadioGroup",[Bl,Ud]=Ee(Dr,[$t,Ir]),Nr=$t(),Fr=Ir(),[Wl,Hl]=Bl(Dr),zl=i.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:o,defaultValue:r,value:s,required:a=!1,disabled:c=!1,orientation:l,dir:u,loop:f=!0,onValueChange:d,...v}=e,p=Nr(n),g=at(u),[m,$]=Le({prop:s,defaultProp:r,onChange:d});return i.createElement(Wl,{scope:n,name:o,required:a,disabled:c,value:m,onValueChange:$},i.createElement(To,C({asChild:!0},p,{orientation:l,dir:g,loop:f}),i.createElement(K.div,C({role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":c?"":void 0,dir:g},v,{ref:t}))))}),Ul="RadioGroupItem",Vl=i.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:o,...r}=e,s=Hl(Ul,n),a=s.disabled||o,c=Nr(n),l=Fr(n),u=i.useRef(null),f=ee(t,u),d=s.value===r.value,v=i.useRef(!1);return i.useEffect(()=>{const p=m=>{Gl.includes(m.key)&&(v.current=!0)},g=()=>v.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",g),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",g)}},[]),i.createElement(ko,C({asChild:!0},c,{focusable:!a,active:d}),i.createElement(Dl,C({disabled:a,required:s.required,checked:d},l,r,{name:s.name,ref:f,onCheck:()=>s.onValueChange(r.value),onKeyDown:O(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:O(r.onFocus,()=>{var p;v.current&&((p=u.current)===null||p===void 0||p.click())})})))}),Kl=i.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...o}=e,r=Fr(n);return i.createElement(Fl,C({},r,o,{ref:t}))}),Lr=zl,Gr=Vl,jl=Kl,Br=E.forwardRef(({className:e="",...t},n)=>k.jsx(Lr,{className:z("grid gap-2",e),...t,ref:n}));Br.displayName=Lr.displayName;const Wr=E.forwardRef(({className:e="",children:t,...n},o)=>k.jsx(Gr,{ref:o,className:z("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:k.jsx(jl,{className:"flex items-center justify-center",children:k.jsx(wr,{className:"h-2.5 w-2.5 fill-current text-current"})})}));Wr.displayName=Gr.displayName;function Hr(e,[t,n]){return Math.min(n,Math.max(t,e))}const Rl=i.forwardRef((e,t)=>i.createElement(K.span,C({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),Yl=[" ","Enter","ArrowUp","ArrowDown"],ql=[" ","Enter"],It="Select",[At,gn,Xl]=Ht(It),[Re,Vd]=Ee(It,[Xl,ht]),vn=ht(),[Zl,Ne]=Re(It),[Ql,Jl]=Re(It),ed=e=>{const{__scopeSelect:t,children:n,open:o,defaultOpen:r,onOpenChange:s,value:a,defaultValue:c,onValueChange:l,dir:u,name:f,autoComplete:d,disabled:v,required:p}=e,g=vn(t),[m,$]=i.useState(null),[h,b]=i.useState(null),[w,x]=i.useState(!1),y=at(u),[M=!1,S]=Le({prop:o,defaultProp:r,onChange:s}),[P,N]=Le({prop:a,defaultProp:c,onChange:l}),H=i.useRef(null),F=m?!!m.closest("form"):!0,[T,B]=i.useState(new Set),G=Array.from(T).map(L=>L.props.value).join(";");return i.createElement(en,g,i.createElement(Zl,{required:p,scope:t,trigger:m,onTriggerChange:$,valueNode:h,onValueNodeChange:b,valueNodeHasChildren:w,onValueNodeHasChildrenChange:x,contentId:Pe(),value:P,onValueChange:N,open:M,onOpenChange:S,dir:y,triggerPointerDownPosRef:H,disabled:v},i.createElement(At.Provider,{scope:t},i.createElement(Ql,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(L=>{B(D=>new Set(D).add(L))},[]),onNativeOptionRemove:i.useCallback(L=>{B(D=>{const te=new Set(D);return te.delete(L),te})},[])},n)),F?i.createElement(jr,{key:G,"aria-hidden":!0,required:p,tabIndex:-1,name:f,autoComplete:d,value:P,onChange:L=>N(L.target.value),disabled:v},P===void 0?i.createElement("option",{value:""}):null,Array.from(T)):null))},td="SelectTrigger",nd=i.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:o=!1,...r}=e,s=vn(n),a=Ne(td,n),c=a.disabled||o,l=ee(t,a.onTriggerChange),u=gn(n),[f,d,v]=Rr(g=>{const m=u().filter(b=>!b.disabled),$=m.find(b=>b.value===a.value),h=Yr(m,g,$);h!==void 0&&a.onValueChange(h.value)}),p=()=>{c||(a.onOpenChange(!0),v())};return i.createElement(Eo,C({asChild:!0},s),i.createElement(K.button,C({type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":a.value===void 0?"":void 0},r,{ref:l,onClick:O(r.onClick,g=>{g.currentTarget.focus()}),onPointerDown:O(r.onPointerDown,g=>{const m=g.target;m.hasPointerCapture(g.pointerId)&&m.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&(p(),a.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)},g.preventDefault())}),onKeyDown:O(r.onKeyDown,g=>{const m=f.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&d(g.key),!(m&&g.key===" ")&&Yl.includes(g.key)&&(p(),g.preventDefault())})})))}),od="SelectValue",rd=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,children:s,placeholder:a,...c}=e,l=Ne(od,n),{onValueNodeHasChildrenChange:u}=l,f=s!==void 0,d=ee(t,l.onValueNodeChange);return me(()=>{u(f)},[u,f]),i.createElement(K.span,C({},c,{ref:d,style:{pointerEvents:"none"}}),l.value===void 0&&a!==void 0?a:s)}),sd=i.forwardRef((e,t)=>{const{__scopeSelect:n,children:o,...r}=e;return i.createElement(K.span,C({"aria-hidden":!0},r,{ref:t}),o||"▼")}),id=e=>i.createElement(Po,C({asChild:!0},e)),Ye="SelectContent",ad=i.forwardRef((e,t)=>{const n=Ne(Ye,e.__scopeSelect),[o,r]=i.useState();if(me(()=>{r(new DocumentFragment)},[]),!n.open){const s=o;return s?Fe.createPortal(i.createElement(zr,{scope:e.__scopeSelect},i.createElement(At.Slot,{scope:e.__scopeSelect},i.createElement("div",null,e.children))),s):null}return i.createElement(cd,C({},e,{ref:t}))}),ye=10,[zr,Dt]=Re(Ye),cd=i.forwardRef((e,t)=>{const{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:s,onPointerDownOutside:a,side:c,sideOffset:l,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:v,collisionPadding:p,sticky:g,hideWhenDetached:m,avoidCollisions:$,...h}=e,b=Ne(Ye,n),[w,x]=i.useState(null),[y,M]=i.useState(null),S=ee(t,I=>x(I)),[P,N]=i.useState(null),[H,F]=i.useState(null),T=gn(n),[B,G]=i.useState(!1),L=i.useRef(!1);i.useEffect(()=>{if(w)return Io(w)},[w]),Kn();const D=i.useCallback(I=>{const[U,...Q]=T().map(Y=>Y.ref.current),[j]=Q.slice(-1),R=document.activeElement;for(const Y of I)if(Y===R||(Y==null||Y.scrollIntoView({block:"nearest"}),Y===U&&y&&(y.scrollTop=0),Y===j&&y&&(y.scrollTop=y.scrollHeight),Y==null||Y.focus(),document.activeElement!==R))return},[T,y]),te=i.useCallback(()=>D([P,w]),[D,P,w]);i.useEffect(()=>{B&&te()},[B,te]);const{onOpenChange:q,triggerPointerDownPosRef:_}=b;i.useEffect(()=>{if(w){let I={x:0,y:0};const U=j=>{var R,Y,ue,se;I={x:Math.abs(Math.round(j.pageX)-((R=(Y=_.current)===null||Y===void 0?void 0:Y.x)!==null&&R!==void 0?R:0)),y:Math.abs(Math.round(j.pageY)-((ue=(se=_.current)===null||se===void 0?void 0:se.y)!==null&&ue!==void 0?ue:0))}},Q=j=>{I.x<=10&&I.y<=10?j.preventDefault():w.contains(j.target)||q(!1),document.removeEventListener("pointermove",U),_.current=null};return _.current!==null&&(document.addEventListener("pointermove",U),document.addEventListener("pointerup",Q,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",U),document.removeEventListener("pointerup",Q,{capture:!0})}}},[w,q,_]),i.useEffect(()=>{const I=()=>q(!1);return window.addEventListener("blur",I),window.addEventListener("resize",I),()=>{window.removeEventListener("blur",I),window.removeEventListener("resize",I)}},[q]);const[V,J]=Rr(I=>{const U=T().filter(R=>!R.disabled),Q=U.find(R=>R.ref.current===document.activeElement),j=Yr(U,I,Q);j&&setTimeout(()=>j.ref.current.focus())}),ne=i.useCallback((I,U,Q)=>{const j=!L.current&&!Q;(b.value!==void 0&&b.value===U||j)&&(N(I),j&&(L.current=!0))},[b.value]),Z=i.useCallback(()=>w==null?void 0:w.focus(),[w]),re=i.useCallback((I,U,Q)=>{const j=!L.current&&!Q;(b.value!==void 0&&b.value===U||j)&&F(I)},[b.value]),ie=o==="popper"?Ur:ld,de=ie===Ur?{side:c,sideOffset:l,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:v,collisionPadding:p,sticky:g,hideWhenDetached:m,avoidCollisions:$}:{};return i.createElement(zr,{scope:n,content:w,viewport:y,onViewportChange:M,itemRefCallback:ne,selectedItem:P,onItemLeave:Z,itemTextRefCallback:re,focusSelectedItem:te,selectedItemText:H,position:o,isPositioned:B,searchRef:V},i.createElement(Ko,{as:Ge,allowPinchZoom:!0},i.createElement(Yn,{asChild:!0,trapped:b.open,onMountAutoFocus:I=>{I.preventDefault()},onUnmountAutoFocus:O(r,I=>{var U;(U=b.trigger)===null||U===void 0||U.focus({preventScroll:!0}),I.preventDefault()})},i.createElement(zn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:I=>I.preventDefault(),onDismiss:()=>b.onOpenChange(!1)},i.createElement(ie,C({role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:I=>I.preventDefault()},h,de,{onPlaced:()=>G(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...h.style},onKeyDown:O(h.onKeyDown,I=>{const U=I.ctrlKey||I.altKey||I.metaKey;if(I.key==="Tab"&&I.preventDefault(),!U&&I.key.length===1&&J(I.key),["ArrowUp","ArrowDown","Home","End"].includes(I.key)){let j=T().filter(R=>!R.disabled).map(R=>R.ref.current);if(["ArrowUp","End"].includes(I.key)&&(j=j.slice().reverse()),["ArrowUp","ArrowDown"].includes(I.key)){const R=I.target,Y=j.indexOf(R);j=j.slice(Y+1)}setTimeout(()=>D(j)),I.preventDefault()}})}))))))}),ld=i.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:o,...r}=e,s=Ne(Ye,n),a=Dt(Ye,n),[c,l]=i.useState(null),[u,f]=i.useState(null),d=ee(t,S=>f(S)),v=gn(n),p=i.useRef(!1),g=i.useRef(!0),{viewport:m,selectedItem:$,selectedItemText:h,focusSelectedItem:b}=a,w=i.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&u&&m&&$&&h){const S=s.trigger.getBoundingClientRect(),P=u.getBoundingClientRect(),N=s.valueNode.getBoundingClientRect(),H=h.getBoundingClientRect();if(s.dir!=="rtl"){const R=H.left-P.left,Y=N.left-R,ue=S.left-Y,se=S.width+ue,nt=Math.max(se,P.width),ot=window.innerWidth-ye,rt=Hr(Y,[ye,ot-nt]);c.style.minWidth=se+"px",c.style.left=rt+"px"}else{const R=P.right-H.right,Y=window.innerWidth-N.right-R,ue=window.innerWidth-S.right-Y,se=S.width+ue,nt=Math.max(se,P.width),ot=window.innerWidth-ye,rt=Hr(Y,[ye,ot-nt]);c.style.minWidth=se+"px",c.style.right=rt+"px"}const F=v(),T=window.innerHeight-ye*2,B=m.scrollHeight,G=window.getComputedStyle(u),L=parseInt(G.borderTopWidth,10),D=parseInt(G.paddingTop,10),te=parseInt(G.borderBottomWidth,10),q=parseInt(G.paddingBottom,10),_=L+D+B+q+te,V=Math.min($.offsetHeight*5,_),J=window.getComputedStyle(m),ne=parseInt(J.paddingTop,10),Z=parseInt(J.paddingBottom,10),re=S.top+S.height/2-ye,ie=T-re,de=$.offsetHeight/2,I=$.offsetTop+de,U=L+D+I,Q=_-U;if(U<=re){const R=$===F[F.length-1].ref.current;c.style.bottom="0px";const Y=u.clientHeight-m.offsetTop-m.offsetHeight,ue=Math.max(ie,de+(R?Z:0)+Y+te),se=U+ue;c.style.height=se+"px"}else{const R=$===F[0].ref.current;c.style.top="0px";const ue=Math.max(re,L+m.offsetTop+(R?ne:0)+de)+Q;c.style.height=ue+"px",m.scrollTop=U-re+m.offsetTop}c.style.margin=`${ye}px 0`,c.style.minHeight=V+"px",c.style.maxHeight=T+"px",o==null||o(),requestAnimationFrame(()=>p.current=!0)}},[v,s.trigger,s.valueNode,c,u,m,$,h,s.dir,o]);me(()=>w(),[w]);const[x,y]=i.useState();me(()=>{u&&y(window.getComputedStyle(u).zIndex)},[u]);const M=i.useCallback(S=>{S&&g.current===!0&&(w(),b==null||b(),g.current=!1)},[w,b]);return i.createElement(dd,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:p,onScrollButtonChange:M},i.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:x}},i.createElement(K.div,C({},r,{ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}}))))}),Ur=i.forwardRef((e,t)=>{const{__scopeSelect:n,align:o="start",collisionPadding:r=ye,...s}=e,a=vn(n);return i.createElement(So,C({},a,s,{ref:t,align:o,collisionPadding:r,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[dd,ud]=Re(Ye,{}),Vr="SelectViewport",fd=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=Dt(Vr,n),s=ud(Vr,n),a=ee(t,r.onViewportChange),c=i.useRef(0);return i.createElement(i.Fragment,null,i.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),i.createElement(At.Slot,{scope:n},i.createElement(K.div,C({"data-radix-select-viewport":"",role:"presentation"},o,{ref:a,style:{position:"relative",flex:1,overflow:"auto",...o.style},onScroll:O(o.onScroll,l=>{const u=l.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=s;if(d!=null&&d.current&&f){const v=Math.abs(c.current-u.scrollTop);if(v>0){const p=window.innerHeight-ye*2,g=parseFloat(f.style.minHeight),m=parseFloat(f.style.height),$=Math.max(g,m);if($<p){const h=$+v,b=Math.min(p,h),w=h-b;f.style.height=b+"px",f.style.bottom==="0px"&&(u.scrollTop=w>0?w:0,f.style.justifyContent="flex-end")}}}c.current=u.scrollTop})}))))}),pd="SelectGroup",[md,gd]=Re(pd),vd=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=Pe();return i.createElement(md,{scope:n,id:r},i.createElement(K.div,C({role:"group","aria-labelledby":r},o,{ref:t})))}),hd="SelectLabel",bd=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=gd(hd,n);return i.createElement(K.div,C({id:r.id},o,{ref:t}))}),hn="SelectItem",[$d,Kr]=Re(hn),wd=i.forwardRef((e,t)=>{const{__scopeSelect:n,value:o,disabled:r=!1,textValue:s,...a}=e,c=Ne(hn,n),l=Dt(hn,n),u=c.value===o,[f,d]=i.useState(s??""),[v,p]=i.useState(!1),g=ee(t,h=>{var b;return(b=l.itemRefCallback)===null||b===void 0?void 0:b.call(l,h,o,r)}),m=Pe(),$=()=>{r||(c.onValueChange(o),c.onOpenChange(!1))};return i.createElement($d,{scope:n,value:o,disabled:r,textId:m,isSelected:u,onItemTextChange:i.useCallback(h=>{d(b=>{var w;return b||((w=h==null?void 0:h.textContent)!==null&&w!==void 0?w:"").trim()})},[])},i.createElement(At.ItemSlot,{scope:n,value:o,disabled:r,textValue:f},i.createElement(K.div,C({role:"option","aria-labelledby":m,"data-highlighted":v?"":void 0,"aria-selected":u&&v,"data-state":u?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1},a,{ref:g,onFocus:O(a.onFocus,()=>p(!0)),onBlur:O(a.onBlur,()=>p(!1)),onPointerUp:O(a.onPointerUp,$),onPointerMove:O(a.onPointerMove,h=>{if(r){var b;(b=l.onItemLeave)===null||b===void 0||b.call(l)}else h.currentTarget.focus({preventScroll:!0})}),onPointerLeave:O(a.onPointerLeave,h=>{if(h.currentTarget===document.activeElement){var b;(b=l.onItemLeave)===null||b===void 0||b.call(l)}}),onKeyDown:O(a.onKeyDown,h=>{var b;((b=l.searchRef)===null||b===void 0?void 0:b.current)!==""&&h.key===" "||(ql.includes(h.key)&&$(),h.key===" "&&h.preventDefault())})}))))}),Nt="SelectItemText",xd=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,...s}=e,a=Ne(Nt,n),c=Dt(Nt,n),l=Kr(Nt,n),u=Jl(Nt,n),[f,d]=i.useState(null),v=ee(t,h=>d(h),l.onItemTextChange,h=>{var b;return(b=c.itemTextRefCallback)===null||b===void 0?void 0:b.call(c,h,l.value,l.disabled)}),p=f==null?void 0:f.textContent,g=i.useMemo(()=>i.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},p),[l.disabled,l.value,p]),{onNativeOptionAdd:m,onNativeOptionRemove:$}=u;return me(()=>(m(g),()=>$(g)),[m,$,g]),i.createElement(i.Fragment,null,i.createElement(K.span,C({id:l.textId},s,{ref:v})),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Fe.createPortal(s.children,a.valueNode):null)}),yd="SelectItemIndicator",Cd=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return Kr(yd,n).isSelected?i.createElement(K.span,C({"aria-hidden":!0},o,{ref:t})):null}),Ed=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return i.createElement(K.div,C({"aria-hidden":!0},o,{ref:t}))}),jr=i.forwardRef((e,t)=>{const{value:n,...o}=e,r=i.useRef(null),s=ee(t,r),a=kr(n);return i.useEffect(()=>{const c=r.current,l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==n&&f){const d=new Event("change",{bubbles:!0});f.call(c,n),c.dispatchEvent(d)}},[a,n]),i.createElement(Rl,{asChild:!0},i.createElement("select",C({},o,{ref:s,defaultValue:n})))});jr.displayName="BubbleSelect";function Rr(e){const t=ae(e),n=i.useRef(""),o=i.useRef(0),r=i.useCallback(a=>{const c=n.current+a;t(c),function l(u){n.current=u,window.clearTimeout(o.current),u!==""&&(o.current=window.setTimeout(()=>l(""),1e3))}(c)},[t]),s=i.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,r,s]}function Yr(e,t,n){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=Sd(e,Math.max(s,0));r.length===1&&(a=a.filter(u=>u!==n));const l=a.find(u=>u.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function Sd(e,t){return e.map((n,o)=>e[(t+o)%e.length])}const Pd=ed,qr=nd,Md=rd,_d=sd,Td=id,Xr=ad,kd=fd,Od=vd,Zr=bd,Qr=wd,Id=xd,Ad=Cd,Jr=Ed,Dd=Pd,Nd=Od,Fd=Md,es=E.forwardRef(({className:e="",children:t,...n},o)=>k.jsxs(qr,{ref:o,className:z("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...n,children:[t,k.jsx(_d,{asChild:!0,children:k.jsx(Cl,{className:"h-4 w-4 opacity-50"})})]}));es.displayName=qr.displayName;const ts=E.forwardRef(({className:e="",children:t,position:n="popper",...o},r)=>k.jsx(Td,{children:k.jsx(Xr,{ref:r,className:z("relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"?"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1":"",e),position:n,...o,children:k.jsx(kd,{className:z("p-1",n==="popper"?"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]":""),children:t})})}));ts.displayName=Xr.displayName;const ns=E.forwardRef(({className:e="",...t},n)=>k.jsx(Zr,{ref:n,className:z("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));ns.displayName=Zr.displayName;const os=E.forwardRef(({className:e="",children:t,...n},o)=>k.jsxs(Qr,{ref:o,className:z("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[k.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:k.jsx(Ad,{children:k.jsx($r,{className:"h-4 w-4"})})}),k.jsx(Id,{children:t})]}));os.displayName=Qr.displayName;const rs=E.forwardRef(({className:e="",...t},n)=>k.jsx(Jr,{ref:n,className:z("-mx-1 my-1 h-px bg-muted",e),...t}));rs.displayName=Jr.displayName,A.Button=Ns,A.Card=Dn,A.CardContent=Gn,A.CardDescription=Ln,A.CardFooter=Bn,A.CardHeader=Nn,A.CardTitle=Fn,A.Checkbox=Vs,A.DropdownMenu=Sl,A.DropdownMenuCheckboxItem=Sr,A.DropdownMenuContent=Cr,A.DropdownMenuGroup=Ml,A.DropdownMenuItem=Er,A.DropdownMenuLabel=Mr,A.DropdownMenuPortal=_l,A.DropdownMenuRadioGroup=kl,A.DropdownMenuRadioItem=Pr,A.DropdownMenuSeparator=_r,A.DropdownMenuShortcut=Tr,A.DropdownMenuSub=Tl,A.DropdownMenuSubContent=yr,A.DropdownMenuSubTrigger=xr,A.DropdownMenuTrigger=Pl,A.Heading=Us,A.Input=Gs,A.Label=Hs,A.Paragraph=Ws,A.RadioGroup=Br,A.RadioGroupItem=Wr,A.Select=Dd,A.SelectContent=ts,A.SelectGroup=Nd,A.SelectItem=os,A.SelectLabel=ns,A.SelectSeparator=rs,A.SelectTrigger=es,A.SelectValue=Fd,A.Spinner=Ls,A.TextArea=Bs,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});
41
+ `)},Qa=0,je=[];function Ja(e){var t=E.useRef([]),n=E.useRef([0,0]),o=E.useRef(),r=E.useState(Qa++)[0],s=E.useState(function(){return Go()})[0],a=E.useRef(e);E.useEffect(function(){a.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var m=xa([e.lockRef.current],(e.shards||[]).map(Vo),!0).filter(Boolean);return m.forEach(function($){return $.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),m.forEach(function($){return $.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var c=E.useCallback(function(m,$){if("touches"in m&&m.touches.length===2)return!a.current.allowPinchZoom;var h=Pt(m),b=n.current,w="deltaX"in m?m.deltaX:b[0]-h[0],x="deltaY"in m?m.deltaY:b[1]-h[1],y,M=m.target,S=Math.abs(w)>Math.abs(x)?"h":"v";if("touches"in m&&S==="h"&&M.type==="range")return!1;var P=Wo(S,M);if(!P)return!0;if(P?y=S:(y=S==="v"?"h":"v",P=Wo(S,M)),!P)return!1;if(!o.current&&"changedTouches"in m&&(w||x)&&(o.current=y),!y)return!0;var N=o.current||y;return qa(N,$,m,N==="h"?w:x,!0)},[]),l=E.useCallback(function(m){var $=m;if(!(!je.length||je[je.length-1]!==s)){var h="deltaY"in $?Uo($):Pt($),b=t.current.filter(function(y){return y.name===$.type&&y.target===$.target&&Xa(y.delta,h)})[0];if(b&&b.should){$.cancelable&&$.preventDefault();return}if(!b){var w=(a.current.shards||[]).map(Vo).filter(Boolean).filter(function(y){return y.contains($.target)}),x=w.length>0?c($,w[0]):!a.current.noIsolation;x&&$.cancelable&&$.preventDefault()}}},[]),u=E.useCallback(function(m,$,h,b){var w={name:m,delta:$,target:h,should:b};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(x){return x!==w})},1)},[]),f=E.useCallback(function(m){n.current=Pt(m),o.current=void 0},[]),d=E.useCallback(function(m){u(m.type,Uo(m),m.target,c(m,e.lockRef.current))},[]),v=E.useCallback(function(m){u(m.type,Pt(m),m.target,c(m,e.lockRef.current))},[]);E.useEffect(function(){return je.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:v}),document.addEventListener("wheel",l,Ke),document.addEventListener("touchmove",l,Ke),document.addEventListener("touchstart",f,Ke),function(){je=je.filter(function(m){return m!==s}),document.removeEventListener("wheel",l,Ke),document.removeEventListener("touchmove",l,Ke),document.removeEventListener("touchstart",f,Ke)}},[]);var p=e.removeScrollBar,g=e.inert;return E.createElement(E.Fragment,null,g?E.createElement(s,{styles:Za(r)}):null,p?E.createElement(za,{gapMode:"margin"}):null)}const ec=ka(Fo,Ja);var Ko=E.forwardRef(function(e,t){return E.createElement(Et,he({},e,{ref:t,sideCar:ec}))});Ko.classNames=Et.classNames;const jo=Ko,ln=["Enter"," "],tc=["ArrowDown","PageUp","Home"],Ro=["ArrowUp","PageDown","End"],nc=[...tc,...Ro],oc={ltr:[...ln,"ArrowRight"],rtl:[...ln,"ArrowLeft"]},rc={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Mt="Menu",[Je,sc,ic]=Ht(Mt),[Ne,Yo]=Ee(Mt,[ic,ht,$t]),_t=ht(),qo=$t(),[Xo,ke]=Ne(Mt),[ac,et]=Ne(Mt),cc=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:r,onOpenChange:s,modal:a=!0}=e,c=_t(t),[l,u]=i.useState(null),f=i.useRef(!1),d=ae(s),v=at(r);return i.useEffect(()=>{const p=()=>{f.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>f.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),i.createElement(en,c,i.createElement(Xo,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u},i.createElement(ac,{scope:t,onClose:i.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:f,dir:v,modal:a},o)))},Zo=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,r=_t(n);return i.createElement(So,C({},r,o,{ref:t}))}),Qo="MenuPortal",[lc,Jo]=Ne(Qo,{forceMount:void 0}),dc=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:r}=e,s=ke(Qo,t);return i.createElement(lc,{scope:t,forceMount:n},i.createElement(Ue,{present:n||s.open},i.createElement(Mo,{asChild:!0,container:r},o)))},ge="MenuContent",[uc,dn]=Ne(ge),fc=i.forwardRef((e,t)=>{const n=Jo(ge,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=ke(ge,e.__scopeMenu),a=et(ge,e.__scopeMenu);return i.createElement(Je.Provider,{scope:e.__scopeMenu},i.createElement(Ue,{present:o||s.open},i.createElement(Je.Slot,{scope:e.__scopeMenu},a.modal?i.createElement(pc,C({},r,{ref:t})):i.createElement(mc,C({},r,{ref:t})))))}),pc=i.forwardRef((e,t)=>{const n=ke(ge,e.__scopeMenu),o=i.useRef(null),r=ee(t,o);return i.useEffect(()=>{const s=o.current;if(s)return Ao(s)},[]),i.createElement(un,C({},e,{ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:O(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),mc=i.forwardRef((e,t)=>{const n=ke(ge,e.__scopeMenu);return i.createElement(un,C({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),un=i.forwardRef((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:c,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:v,onDismiss:p,disableOutsideScroll:g,...m}=e,$=ke(ge,n),h=et(ge,n),b=_t(n),w=qo(n),x=sc(n),[y,M]=i.useState(null),S=i.useRef(null),P=ee(t,S,$.onContentChange),N=i.useRef(0),H=i.useRef(""),F=i.useRef(0),T=i.useRef(null),B=i.useRef("right"),G=i.useRef(0),L=g?jo:i.Fragment,D=g?{as:Oe,allowPinchZoom:!0}:void 0,te=_=>{var V,J;const ne=H.current+_,Z=x().filter(Q=>!Q.disabled),re=document.activeElement,ie=(V=Z.find(Q=>Q.ref.current===re))===null||V===void 0?void 0:V.textValue,de=Z.map(Q=>Q.textValue),I=Ac(de,ne,ie),U=(J=Z.find(Q=>Q.textValue===I))===null||J===void 0?void 0:J.ref.current;(function Q(j){H.current=j,window.clearTimeout(N.current),j!==""&&(N.current=window.setTimeout(()=>Q(""),1e3))})(ne),U&&setTimeout(()=>U.focus())};i.useEffect(()=>()=>window.clearTimeout(N.current),[]),jn();const q=i.useCallback(_=>{var V,J;return B.current===((V=T.current)===null||V===void 0?void 0:V.side)&&Nc(_,(J=T.current)===null||J===void 0?void 0:J.area)},[]);return i.createElement(uc,{scope:n,searchRef:H,onItemEnter:i.useCallback(_=>{q(_)&&_.preventDefault()},[q]),onItemLeave:i.useCallback(_=>{var V;q(_)||((V=S.current)===null||V===void 0||V.focus(),M(null))},[q]),onTriggerLeave:i.useCallback(_=>{q(_)&&_.preventDefault()},[q]),pointerGraceTimerRef:F,onPointerGraceIntentChange:i.useCallback(_=>{T.current=_},[])},i.createElement(L,D,i.createElement(qn,{asChild:!0,trapped:r,onMountAutoFocus:O(s,_=>{var V;_.preventDefault(),(V=S.current)===null||V===void 0||V.focus()}),onUnmountAutoFocus:a},i.createElement(Un,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:v,onDismiss:p},i.createElement(ko,C({asChild:!0},w,{dir:h.dir,orientation:"vertical",loop:o,currentTabStopId:y,onCurrentTabStopIdChange:M,onEntryFocus:O(l,_=>{h.isUsingKeyboardRef.current||_.preventDefault()})}),i.createElement(Po,C({role:"menu","aria-orientation":"vertical","data-state":ar($.open),"data-radix-menu-content":"",dir:h.dir},b,m,{ref:P,style:{outline:"none",...m.style},onKeyDown:O(m.onKeyDown,_=>{const J=_.target.closest("[data-radix-menu-content]")===_.currentTarget,ne=_.ctrlKey||_.altKey||_.metaKey,Z=_.key.length===1;J&&(_.key==="Tab"&&_.preventDefault(),!ne&&Z&&te(_.key));const re=S.current;if(_.target!==re||!nc.includes(_.key))return;_.preventDefault();const de=x().filter(I=>!I.disabled).map(I=>I.ref.current);Ro.includes(_.key)&&de.reverse(),Oc(de)}),onBlur:O(e.onBlur,_=>{_.currentTarget.contains(_.target)||(window.clearTimeout(N.current),H.current="")}),onPointerMove:O(e.onPointerMove,tt(_=>{const V=_.target,J=G.current!==_.clientX;if(_.currentTarget.contains(V)&&J){const ne=_.clientX>G.current?"right":"left";B.current=ne,G.current=_.clientX}}))})))))))}),er=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return i.createElement(K.div,C({role:"group"},o,{ref:t}))}),gc=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return i.createElement(K.div,C({},o,{ref:t}))}),fn="MenuItem",tr="menu.itemSelect",pn=i.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...r}=e,s=i.useRef(null),a=et(fn,e.__scopeMenu),c=dn(fn,e.__scopeMenu),l=ee(t,s),u=i.useRef(!1),f=()=>{const d=s.current;if(!n&&d){const v=new CustomEvent(tr,{bubbles:!0,cancelable:!0});d.addEventListener(tr,p=>o==null?void 0:o(p),{once:!0}),Hn(d,v),v.defaultPrevented?u.current=!1:a.onClose()}};return i.createElement(nr,C({},r,{ref:l,disabled:n,onClick:O(e.onClick,f),onPointerDown:d=>{var v;(v=e.onPointerDown)===null||v===void 0||v.call(e,d),u.current=!0},onPointerUp:O(e.onPointerUp,d=>{var v;u.current||(v=d.currentTarget)===null||v===void 0||v.click()}),onKeyDown:O(e.onKeyDown,d=>{const v=c.searchRef.current!=="";n||v&&d.key===" "||ln.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})}))}),nr=i.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:r,...s}=e,a=dn(fn,n),c=qo(n),l=i.useRef(null),u=ee(t,l),[f,d]=i.useState(!1),[v,p]=i.useState("");return i.useEffect(()=>{const g=l.current;if(g){var m;p(((m=g.textContent)!==null&&m!==void 0?m:"").trim())}},[s.children]),i.createElement(Je.ItemSlot,{scope:n,disabled:o,textValue:r??v},i.createElement(Oo,C({asChild:!0},c,{focusable:!o}),i.createElement(K.div,C({role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0},s,{ref:u,onPointerMove:O(e.onPointerMove,tt(g=>{o?a.onItemLeave(g):(a.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus())})),onPointerLeave:O(e.onPointerLeave,tt(g=>a.onItemLeave(g))),onFocus:O(e.onFocus,()=>d(!0)),onBlur:O(e.onBlur,()=>d(!1))}))))}),vc=i.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...r}=e;return i.createElement(rr,{scope:e.__scopeMenu,checked:n},i.createElement(pn,C({role:"menuitemcheckbox","aria-checked":kt(n)?"mixed":n},r,{ref:t,"data-state":mn(n),onSelect:O(r.onSelect,()=>o==null?void 0:o(kt(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),hc="MenuRadioGroup",[bc,$c]=Ne(hc,{value:void 0,onValueChange:()=>{}}),wc=i.forwardRef((e,t)=>{const{value:n,onValueChange:o,...r}=e,s=ae(o);return i.createElement(bc,{scope:e.__scopeMenu,value:n,onValueChange:s},i.createElement(er,C({},r,{ref:t})))}),xc="MenuRadioItem",yc=i.forwardRef((e,t)=>{const{value:n,...o}=e,r=$c(xc,e.__scopeMenu),s=n===r.value;return i.createElement(rr,{scope:e.__scopeMenu,checked:s},i.createElement(pn,C({role:"menuitemradio","aria-checked":s},o,{ref:t,"data-state":mn(s),onSelect:O(o.onSelect,()=>{var a;return(a=r.onValueChange)===null||a===void 0?void 0:a.call(r,n)},{checkForDefaultPrevented:!1})})))}),or="MenuItemIndicator",[rr,Cc]=Ne(or,{checked:!1}),Ec=i.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...r}=e,s=Cc(or,n);return i.createElement(Ue,{present:o||kt(s.checked)||s.checked===!0},i.createElement(K.span,C({},r,{ref:t,"data-state":mn(s.checked)})))}),Sc=i.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return i.createElement(K.div,C({role:"separator","aria-orientation":"horizontal"},o,{ref:t}))}),sr="MenuSub",[Pc,ir]=Ne(sr),Mc=e=>{const{__scopeMenu:t,children:n,open:o=!1,onOpenChange:r}=e,s=ke(sr,t),a=_t(t),[c,l]=i.useState(null),[u,f]=i.useState(null),d=ae(r);return i.useEffect(()=>(s.open===!1&&d(!1),()=>d(!1)),[s.open,d]),i.createElement(en,a,i.createElement(Xo,{scope:t,open:o,onOpenChange:d,content:u,onContentChange:f},i.createElement(Pc,{scope:t,contentId:Pe(),triggerId:Pe(),trigger:c,onTriggerChange:l},n)))},Tt="MenuSubTrigger",_c=i.forwardRef((e,t)=>{const n=ke(Tt,e.__scopeMenu),o=et(Tt,e.__scopeMenu),r=ir(Tt,e.__scopeMenu),s=dn(Tt,e.__scopeMenu),a=i.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:l}=s,u={__scopeMenu:e.__scopeMenu},f=i.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return i.useEffect(()=>f,[f]),i.useEffect(()=>{const d=c.current;return()=>{window.clearTimeout(d),l(null)}},[c,l]),i.createElement(Zo,C({asChild:!0},u),i.createElement(nr,C({id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":ar(n.open)},e,{ref:st(t,r.onTriggerChange),onClick:d=>{var v;(v=e.onClick)===null||v===void 0||v.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:O(e.onPointerMove,tt(d=>{s.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(s.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:O(e.onPointerLeave,tt(d=>{var v;f();const p=(v=n.content)===null||v===void 0?void 0:v.getBoundingClientRect();if(p){var g;const m=(g=n.content)===null||g===void 0?void 0:g.dataset.side,$=m==="right",h=$?-5:5,b=p[$?"left":"right"],w=p[$?"right":"left"];s.onPointerGraceIntentChange({area:[{x:d.clientX+h,y:d.clientY},{x:b,y:p.top},{x:w,y:p.top},{x:w,y:p.bottom},{x:b,y:p.bottom}],side:m}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(d),d.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:O(e.onKeyDown,d=>{const v=s.searchRef.current!=="";if(!(e.disabled||v&&d.key===" ")&&oc[o.dir].includes(d.key)){var p;n.onOpenChange(!0),(p=n.content)===null||p===void 0||p.focus(),d.preventDefault()}})})))}),Tc="MenuSubContent",kc=i.forwardRef((e,t)=>{const n=Jo(ge,e.__scopeMenu),{forceMount:o=n.forceMount,...r}=e,s=ke(ge,e.__scopeMenu),a=et(ge,e.__scopeMenu),c=ir(Tc,e.__scopeMenu),l=i.useRef(null),u=ee(t,l);return i.createElement(Je.Provider,{scope:e.__scopeMenu},i.createElement(Ue,{present:o||s.open},i.createElement(Je.Slot,{scope:e.__scopeMenu},i.createElement(un,C({id:c.contentId,"aria-labelledby":c.triggerId},r,{ref:u,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var d;a.isUsingKeyboardRef.current&&((d=l.current)===null||d===void 0||d.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:O(e.onFocusOutside,f=>{f.target!==c.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:O(e.onEscapeKeyDown,f=>{a.onClose(),f.preventDefault()}),onKeyDown:O(e.onKeyDown,f=>{const d=f.currentTarget.contains(f.target),v=rc[a.dir].includes(f.key);if(d&&v){var p;s.onOpenChange(!1),(p=c.trigger)===null||p===void 0||p.focus(),f.preventDefault()}})})))))});function ar(e){return e?"open":"closed"}function kt(e){return e==="indeterminate"}function mn(e){return kt(e)?"indeterminate":e?"checked":"unchecked"}function Oc(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Ic(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function Ac(e,t,n){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=Ic(e,Math.max(s,0));r.length===1&&(a=a.filter(u=>u!==n));const l=a.find(u=>u.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function Dc(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const c=t[s].x,l=t[s].y,u=t[a].x,f=t[a].y;l>o!=f>o&&n<(u-c)*(o-l)/(f-l)+c&&(r=!r)}return r}function Nc(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Dc(n,t)}function tt(e){return t=>t.pointerType==="mouse"?e(t):void 0}const Fc=cc,Lc=Zo,Gc=dc,Bc=fc,Wc=er,Hc=gc,zc=pn,Uc=vc,Vc=wc,Kc=yc,jc=Ec,Rc=Sc,Yc=Mc,qc=_c,Xc=kc,cr="DropdownMenu",[Zc,zd]=Ee(cr,[Yo]),oe=Yo(),[Qc,lr]=Zc(cr),Jc=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:r,defaultOpen:s,onOpenChange:a,modal:c=!0}=e,l=oe(t),u=i.useRef(null),[f=!1,d]=Ge({prop:r,defaultProp:s,onChange:a});return i.createElement(Qc,{scope:t,triggerId:Pe(),triggerRef:u,contentId:Pe(),open:f,onOpenChange:d,onOpenToggle:i.useCallback(()=>d(v=>!v),[d]),modal:c},i.createElement(Fc,C({},l,{open:f,onOpenChange:d,dir:o,modal:c}),n))},el="DropdownMenuTrigger",tl=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...r}=e,s=lr(el,n),a=oe(n);return i.createElement(Lc,C({asChild:!0},a),i.createElement(K.button,C({type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":o?"":void 0,disabled:o},r,{ref:st(t,s.triggerRef),onPointerDown:O(e.onPointerDown,c=>{!o&&c.button===0&&c.ctrlKey===!1&&(s.onOpenToggle(),s.open||c.preventDefault())}),onKeyDown:O(e.onKeyDown,c=>{o||(["Enter"," "].includes(c.key)&&s.onOpenToggle(),c.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})))}),nl=e=>{const{__scopeDropdownMenu:t,...n}=e,o=oe(t);return i.createElement(Gc,C({},o,n))},ol="DropdownMenuContent",rl=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=lr(ol,n),s=oe(n),a=i.useRef(!1);return i.createElement(Bc,C({id:r.contentId,"aria-labelledby":r.triggerId},s,o,{ref:t,onCloseAutoFocus:O(e.onCloseAutoFocus,c=>{var l;a.current||(l=r.triggerRef.current)===null||l===void 0||l.focus(),a.current=!1,c.preventDefault()}),onInteractOutside:O(e.onInteractOutside,c=>{const l=c.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,f=l.button===2||u;(!r.modal||f)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),sl=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return i.createElement(Wc,C({},r,o,{ref:t}))}),il=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return i.createElement(Hc,C({},r,o,{ref:t}))}),al=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return i.createElement(zc,C({},r,o,{ref:t}))}),cl=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return i.createElement(Uc,C({},r,o,{ref:t}))}),ll=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return i.createElement(Vc,C({},r,o,{ref:t}))}),dl=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return i.createElement(Kc,C({},r,o,{ref:t}))}),ul=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return i.createElement(jc,C({},r,o,{ref:t}))}),fl=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return i.createElement(Rc,C({},r,o,{ref:t}))}),pl=e=>{const{__scopeDropdownMenu:t,children:n,open:o,onOpenChange:r,defaultOpen:s}=e,a=oe(t),[c=!1,l]=Ge({prop:o,defaultProp:s,onChange:r});return i.createElement(Yc,C({},a,{open:c,onOpenChange:l}),n)},ml=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return i.createElement(qc,C({},r,o,{ref:t}))}),gl=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,r=oe(n);return i.createElement(Xc,C({},r,o,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),vl=Jc,hl=tl,dr=nl,ur=rl,bl=sl,fr=il,pr=al,mr=cl,$l=ll,gr=dl,vr=ul,hr=fl,wl=pl,br=ml,$r=gl;var xl={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const yl=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ot=(e,t)=>{const n=i.forwardRef(({color:o="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:a,children:c,...l},u)=>i.createElement("svg",{ref:u,...xl,width:r,height:r,stroke:o,strokeWidth:a?Number(s)*24/Number(r):s,className:`lucide lucide-${yl(e)}`,...l},[...t.map(([f,d])=>i.createElement(f,d)),...(Array.isArray(c)?c:[c])||[]]));return n.displayName=`${e}`,n},wr=Ot("Check",[["polyline",{points:"20 6 9 17 4 12",key:"10jjfj"}]]),Cl=Ot("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),El=Ot("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),xr=Ot("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),Sl=vl,Pl=hl,Ml=bl,_l=dr,Tl=wl,kl=$l,yr=E.forwardRef(({className:e="",inset:t,children:n,...o},r)=>k.jsxs(br,{ref:r,className:z(t===!0?"pl-8":"",e,"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-neutral-100 data-[state=open]:bg-neutral-100 dark:focus:bg-neutral-800 dark:data-[state=open]:bg-neutral-800"),...o,children:[n,k.jsx(El,{className:"ml-auto h-4 w-4"})]}));yr.displayName=br.displayName;const Cr=E.forwardRef(({className:e="",...t},n)=>k.jsx($r,{ref:n,className:z(e,"z-50 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white p-1 text-neutral-950 shadow-lg 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50"),...t}));Cr.displayName=$r.displayName;const Er=E.forwardRef(({className:e="",sideOffset:t=4,...n},o)=>k.jsx(dr,{children:k.jsx(ur,{ref:o,sideOffset:t,className:z(e,"z-50 min-w-[8rem] overflow-hidden rounded-md border border-neutral-200 bg-white p-1 text-neutral-950 shadow-md 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50"),...n})}));Er.displayName=ur.displayName;const Sr=E.forwardRef(({className:e="",inset:t,...n},o)=>k.jsx(pr,{ref:o,className:z(t===!0?"pl-8":"",e,"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50"),...n}));Sr.displayName=pr.displayName;const Pr=E.forwardRef(({className:e="",children:t,checked:n,...o},r)=>k.jsxs(mr,{ref:r,className:z(e,"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50"),checked:n,...o,children:[k.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:k.jsx(vr,{children:k.jsx(wr,{className:"h-4 w-4"})})}),t]}));Pr.displayName=mr.displayName;const Mr=E.forwardRef(({className:e="",children:t,...n},o)=>k.jsxs(gr,{ref:o,className:z(e,"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-neutral-100 focus:text-neutral-900 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 dark:focus:bg-neutral-800 dark:focus:text-neutral-50"),...n,children:[k.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:k.jsx(vr,{children:k.jsx(xr,{className:"h-2 w-2 fill-current"})})}),t]}));Mr.displayName=gr.displayName;const _r=E.forwardRef(({className:e="",inset:t,...n},o)=>k.jsx(fr,{ref:o,className:z(t===!0?"pl-8":"",e,"px-2 py-1.5 text-sm font-semibold"),...n}));_r.displayName=fr.displayName;const Tr=E.forwardRef(({className:e="",...t},n)=>k.jsx(hr,{ref:n,className:z(e,"-mx-1 my-1 h-px bg-neutral-100 dark:bg-neutral-800"),...t}));Tr.displayName=hr.displayName;const kr=({className:e="",...t})=>k.jsx("span",{className:z(e,"ml-auto text-xs tracking-widest opacity-60"),...t});kr.displayName="DropdownMenuShortcut";function Or(e){const t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const Ir="Radio",[Ol,Ar]=Ee(Ir),[Il,Al]=Ol(Ir),Dl=i.forwardRef((e,t)=>{const{__scopeRadio:n,name:o,checked:r=!1,required:s,disabled:a,value:c="on",onCheck:l,...u}=e,[f,d]=i.useState(null),v=ee(t,m=>d(m)),p=i.useRef(!1),g=f?!!f.closest("form"):!0;return i.createElement(Il,{scope:n,checked:r,disabled:a},i.createElement(K.button,C({type:"button",role:"radio","aria-checked":r,"data-state":Dr(r),"data-disabled":a?"":void 0,disabled:a,value:c},u,{ref:v,onClick:O(e.onClick,m=>{r||l==null||l(),g&&(p.current=m.isPropagationStopped(),p.current||m.stopPropagation())})})),g&&i.createElement(Ll,{control:f,bubbles:!p.current,name:o,value:c,checked:r,required:s,disabled:a,style:{transform:"translateX(-100%)"}}))}),Nl="RadioIndicator",Fl=i.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:o,...r}=e,s=Al(Nl,n);return i.createElement(Ue,{present:o||s.checked},i.createElement(K.span,C({"data-state":Dr(s.checked),"data-disabled":s.disabled?"":void 0},r,{ref:t})))}),Ll=e=>{const{control:t,checked:n,bubbles:o=!0,...r}=e,s=i.useRef(null),a=Or(n),c=$o(t);return i.useEffect(()=>{const l=s.current,u=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(u,"checked").set;if(a!==n&&d){const v=new Event("click",{bubbles:o});d.call(l,n),l.dispatchEvent(v)}},[a,n,o]),i.createElement("input",C({type:"radio","aria-hidden":!0,defaultChecked:n},r,{tabIndex:-1,ref:s,style:{...e.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Dr(e){return e?"checked":"unchecked"}const Gl=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Nr="RadioGroup",[Bl,Ud]=Ee(Nr,[$t,Ar]),Fr=$t(),Lr=Ar(),[Wl,Hl]=Bl(Nr),zl=i.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:o,defaultValue:r,value:s,required:a=!1,disabled:c=!1,orientation:l,dir:u,loop:f=!0,onValueChange:d,...v}=e,p=Fr(n),g=at(u),[m,$]=Ge({prop:s,defaultProp:r,onChange:d});return i.createElement(Wl,{scope:n,name:o,required:a,disabled:c,value:m,onValueChange:$},i.createElement(ko,C({asChild:!0},p,{orientation:l,dir:g,loop:f}),i.createElement(K.div,C({role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":c?"":void 0,dir:g},v,{ref:t}))))}),Ul="RadioGroupItem",Vl=i.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:o,...r}=e,s=Hl(Ul,n),a=s.disabled||o,c=Fr(n),l=Lr(n),u=i.useRef(null),f=ee(t,u),d=s.value===r.value,v=i.useRef(!1);return i.useEffect(()=>{const p=m=>{Gl.includes(m.key)&&(v.current=!0)},g=()=>v.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",g),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",g)}},[]),i.createElement(Oo,C({asChild:!0},c,{focusable:!a,active:d}),i.createElement(Dl,C({disabled:a,required:s.required,checked:d},l,r,{name:s.name,ref:f,onCheck:()=>s.onValueChange(r.value),onKeyDown:O(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:O(r.onFocus,()=>{var p;v.current&&((p=u.current)===null||p===void 0||p.click())})})))}),Kl=i.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...o}=e,r=Lr(n);return i.createElement(Fl,C({},r,o,{ref:t}))}),Gr=zl,Br=Vl,jl=Kl,Wr=E.forwardRef(({className:e="",...t},n)=>k.jsx(Gr,{className:z(e,"grid gap-2"),...t,ref:n}));Wr.displayName=Gr.displayName;const Hr=E.forwardRef(({className:e="",children:t,...n},o)=>k.jsx(Br,{ref:o,className:z(e,"aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"),...n,children:k.jsx(jl,{className:"flex items-center justify-center",children:k.jsx(xr,{className:"h-2.5 w-2.5 fill-current text-current"})})}));Hr.displayName=Br.displayName;function zr(e,[t,n]){return Math.min(n,Math.max(t,e))}const Rl=i.forwardRef((e,t)=>i.createElement(K.span,C({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),Yl=[" ","Enter","ArrowUp","ArrowDown"],ql=[" ","Enter"],It="Select",[At,gn,Xl]=Ht(It),[Re,Vd]=Ee(It,[Xl,ht]),vn=ht(),[Zl,Fe]=Re(It),[Ql,Jl]=Re(It),ed=e=>{const{__scopeSelect:t,children:n,open:o,defaultOpen:r,onOpenChange:s,value:a,defaultValue:c,onValueChange:l,dir:u,name:f,autoComplete:d,disabled:v,required:p}=e,g=vn(t),[m,$]=i.useState(null),[h,b]=i.useState(null),[w,x]=i.useState(!1),y=at(u),[M=!1,S]=Ge({prop:o,defaultProp:r,onChange:s}),[P,N]=Ge({prop:a,defaultProp:c,onChange:l}),H=i.useRef(null),F=m?!!m.closest("form"):!0,[T,B]=i.useState(new Set),G=Array.from(T).map(L=>L.props.value).join(";");return i.createElement(en,g,i.createElement(Zl,{required:p,scope:t,trigger:m,onTriggerChange:$,valueNode:h,onValueNodeChange:b,valueNodeHasChildren:w,onValueNodeHasChildrenChange:x,contentId:Pe(),value:P,onValueChange:N,open:M,onOpenChange:S,dir:y,triggerPointerDownPosRef:H,disabled:v},i.createElement(At.Provider,{scope:t},i.createElement(Ql,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(L=>{B(D=>new Set(D).add(L))},[]),onNativeOptionRemove:i.useCallback(L=>{B(D=>{const te=new Set(D);return te.delete(L),te})},[])},n)),F?i.createElement(Rr,{key:G,"aria-hidden":!0,required:p,tabIndex:-1,name:f,autoComplete:d,value:P,onChange:L=>N(L.target.value),disabled:v},P===void 0?i.createElement("option",{value:""}):null,Array.from(T)):null))},td="SelectTrigger",nd=i.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:o=!1,...r}=e,s=vn(n),a=Fe(td,n),c=a.disabled||o,l=ee(t,a.onTriggerChange),u=gn(n),[f,d,v]=Yr(g=>{const m=u().filter(b=>!b.disabled),$=m.find(b=>b.value===a.value),h=qr(m,g,$);h!==void 0&&a.onValueChange(h.value)}),p=()=>{c||(a.onOpenChange(!0),v())};return i.createElement(So,C({asChild:!0},s),i.createElement(K.button,C({type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":a.value===void 0?"":void 0},r,{ref:l,onClick:O(r.onClick,g=>{g.currentTarget.focus()}),onPointerDown:O(r.onPointerDown,g=>{const m=g.target;m.hasPointerCapture(g.pointerId)&&m.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&(p(),a.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)},g.preventDefault())}),onKeyDown:O(r.onKeyDown,g=>{const m=f.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&d(g.key),!(m&&g.key===" ")&&Yl.includes(g.key)&&(p(),g.preventDefault())})})))}),od="SelectValue",rd=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,children:s,placeholder:a,...c}=e,l=Fe(od,n),{onValueNodeHasChildrenChange:u}=l,f=s!==void 0,d=ee(t,l.onValueNodeChange);return me(()=>{u(f)},[u,f]),i.createElement(K.span,C({},c,{ref:d,style:{pointerEvents:"none"}}),l.value===void 0&&a!==void 0?a:s)}),sd=i.forwardRef((e,t)=>{const{__scopeSelect:n,children:o,...r}=e;return i.createElement(K.span,C({"aria-hidden":!0},r,{ref:t}),o||"▼")}),id=e=>i.createElement(Mo,C({asChild:!0},e)),Ye="SelectContent",ad=i.forwardRef((e,t)=>{const n=Fe(Ye,e.__scopeSelect),[o,r]=i.useState();if(me(()=>{r(new DocumentFragment)},[]),!n.open){const s=o;return s?Le.createPortal(i.createElement(Ur,{scope:e.__scopeSelect},i.createElement(At.Slot,{scope:e.__scopeSelect},i.createElement("div",null,e.children))),s):null}return i.createElement(cd,C({},e,{ref:t}))}),ye=10,[Ur,Dt]=Re(Ye),cd=i.forwardRef((e,t)=>{const{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:r,onEscapeKeyDown:s,onPointerDownOutside:a,side:c,sideOffset:l,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:v,collisionPadding:p,sticky:g,hideWhenDetached:m,avoidCollisions:$,...h}=e,b=Fe(Ye,n),[w,x]=i.useState(null),[y,M]=i.useState(null),S=ee(t,I=>x(I)),[P,N]=i.useState(null),[H,F]=i.useState(null),T=gn(n),[B,G]=i.useState(!1),L=i.useRef(!1);i.useEffect(()=>{if(w)return Ao(w)},[w]),jn();const D=i.useCallback(I=>{const[U,...Q]=T().map(Y=>Y.ref.current),[j]=Q.slice(-1),R=document.activeElement;for(const Y of I)if(Y===R||(Y==null||Y.scrollIntoView({block:"nearest"}),Y===U&&y&&(y.scrollTop=0),Y===j&&y&&(y.scrollTop=y.scrollHeight),Y==null||Y.focus(),document.activeElement!==R))return},[T,y]),te=i.useCallback(()=>D([P,w]),[D,P,w]);i.useEffect(()=>{B&&te()},[B,te]);const{onOpenChange:q,triggerPointerDownPosRef:_}=b;i.useEffect(()=>{if(w){let I={x:0,y:0};const U=j=>{var R,Y,ue,se;I={x:Math.abs(Math.round(j.pageX)-((R=(Y=_.current)===null||Y===void 0?void 0:Y.x)!==null&&R!==void 0?R:0)),y:Math.abs(Math.round(j.pageY)-((ue=(se=_.current)===null||se===void 0?void 0:se.y)!==null&&ue!==void 0?ue:0))}},Q=j=>{I.x<=10&&I.y<=10?j.preventDefault():w.contains(j.target)||q(!1),document.removeEventListener("pointermove",U),_.current=null};return _.current!==null&&(document.addEventListener("pointermove",U),document.addEventListener("pointerup",Q,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",U),document.removeEventListener("pointerup",Q,{capture:!0})}}},[w,q,_]),i.useEffect(()=>{const I=()=>q(!1);return window.addEventListener("blur",I),window.addEventListener("resize",I),()=>{window.removeEventListener("blur",I),window.removeEventListener("resize",I)}},[q]);const[V,J]=Yr(I=>{const U=T().filter(R=>!R.disabled),Q=U.find(R=>R.ref.current===document.activeElement),j=qr(U,I,Q);j&&setTimeout(()=>j.ref.current.focus())}),ne=i.useCallback((I,U,Q)=>{const j=!L.current&&!Q;(b.value!==void 0&&b.value===U||j)&&(N(I),j&&(L.current=!0))},[b.value]),Z=i.useCallback(()=>w==null?void 0:w.focus(),[w]),re=i.useCallback((I,U,Q)=>{const j=!L.current&&!Q;(b.value!==void 0&&b.value===U||j)&&F(I)},[b.value]),ie=o==="popper"?Vr:ld,de=ie===Vr?{side:c,sideOffset:l,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:v,collisionPadding:p,sticky:g,hideWhenDetached:m,avoidCollisions:$}:{};return i.createElement(Ur,{scope:n,content:w,viewport:y,onViewportChange:M,itemRefCallback:ne,selectedItem:P,onItemLeave:Z,itemTextRefCallback:re,focusSelectedItem:te,selectedItemText:H,position:o,isPositioned:B,searchRef:V},i.createElement(jo,{as:Oe,allowPinchZoom:!0},i.createElement(qn,{asChild:!0,trapped:b.open,onMountAutoFocus:I=>{I.preventDefault()},onUnmountAutoFocus:O(r,I=>{var U;(U=b.trigger)===null||U===void 0||U.focus({preventScroll:!0}),I.preventDefault()})},i.createElement(Un,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:I=>I.preventDefault(),onDismiss:()=>b.onOpenChange(!1)},i.createElement(ie,C({role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:I=>I.preventDefault()},h,de,{onPlaced:()=>G(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...h.style},onKeyDown:O(h.onKeyDown,I=>{const U=I.ctrlKey||I.altKey||I.metaKey;if(I.key==="Tab"&&I.preventDefault(),!U&&I.key.length===1&&J(I.key),["ArrowUp","ArrowDown","Home","End"].includes(I.key)){let j=T().filter(R=>!R.disabled).map(R=>R.ref.current);if(["ArrowUp","End"].includes(I.key)&&(j=j.slice().reverse()),["ArrowUp","ArrowDown"].includes(I.key)){const R=I.target,Y=j.indexOf(R);j=j.slice(Y+1)}setTimeout(()=>D(j)),I.preventDefault()}})}))))))}),ld=i.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:o,...r}=e,s=Fe(Ye,n),a=Dt(Ye,n),[c,l]=i.useState(null),[u,f]=i.useState(null),d=ee(t,S=>f(S)),v=gn(n),p=i.useRef(!1),g=i.useRef(!0),{viewport:m,selectedItem:$,selectedItemText:h,focusSelectedItem:b}=a,w=i.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&u&&m&&$&&h){const S=s.trigger.getBoundingClientRect(),P=u.getBoundingClientRect(),N=s.valueNode.getBoundingClientRect(),H=h.getBoundingClientRect();if(s.dir!=="rtl"){const R=H.left-P.left,Y=N.left-R,ue=S.left-Y,se=S.width+ue,nt=Math.max(se,P.width),ot=window.innerWidth-ye,rt=zr(Y,[ye,ot-nt]);c.style.minWidth=se+"px",c.style.left=rt+"px"}else{const R=P.right-H.right,Y=window.innerWidth-N.right-R,ue=window.innerWidth-S.right-Y,se=S.width+ue,nt=Math.max(se,P.width),ot=window.innerWidth-ye,rt=zr(Y,[ye,ot-nt]);c.style.minWidth=se+"px",c.style.right=rt+"px"}const F=v(),T=window.innerHeight-ye*2,B=m.scrollHeight,G=window.getComputedStyle(u),L=parseInt(G.borderTopWidth,10),D=parseInt(G.paddingTop,10),te=parseInt(G.borderBottomWidth,10),q=parseInt(G.paddingBottom,10),_=L+D+B+q+te,V=Math.min($.offsetHeight*5,_),J=window.getComputedStyle(m),ne=parseInt(J.paddingTop,10),Z=parseInt(J.paddingBottom,10),re=S.top+S.height/2-ye,ie=T-re,de=$.offsetHeight/2,I=$.offsetTop+de,U=L+D+I,Q=_-U;if(U<=re){const R=$===F[F.length-1].ref.current;c.style.bottom="0px";const Y=u.clientHeight-m.offsetTop-m.offsetHeight,ue=Math.max(ie,de+(R?Z:0)+Y+te),se=U+ue;c.style.height=se+"px"}else{const R=$===F[0].ref.current;c.style.top="0px";const ue=Math.max(re,L+m.offsetTop+(R?ne:0)+de)+Q;c.style.height=ue+"px",m.scrollTop=U-re+m.offsetTop}c.style.margin=`${ye}px 0`,c.style.minHeight=V+"px",c.style.maxHeight=T+"px",o==null||o(),requestAnimationFrame(()=>p.current=!0)}},[v,s.trigger,s.valueNode,c,u,m,$,h,s.dir,o]);me(()=>w(),[w]);const[x,y]=i.useState();me(()=>{u&&y(window.getComputedStyle(u).zIndex)},[u]);const M=i.useCallback(S=>{S&&g.current===!0&&(w(),b==null||b(),g.current=!1)},[w,b]);return i.createElement(dd,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:p,onScrollButtonChange:M},i.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:x}},i.createElement(K.div,C({},r,{ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...r.style}}))))}),Vr=i.forwardRef((e,t)=>{const{__scopeSelect:n,align:o="start",collisionPadding:r=ye,...s}=e,a=vn(n);return i.createElement(Po,C({},a,s,{ref:t,align:o,collisionPadding:r,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[dd,ud]=Re(Ye,{}),Kr="SelectViewport",fd=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=Dt(Kr,n),s=ud(Kr,n),a=ee(t,r.onViewportChange),c=i.useRef(0);return i.createElement(i.Fragment,null,i.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),i.createElement(At.Slot,{scope:n},i.createElement(K.div,C({"data-radix-select-viewport":"",role:"presentation"},o,{ref:a,style:{position:"relative",flex:1,overflow:"auto",...o.style},onScroll:O(o.onScroll,l=>{const u=l.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=s;if(d!=null&&d.current&&f){const v=Math.abs(c.current-u.scrollTop);if(v>0){const p=window.innerHeight-ye*2,g=parseFloat(f.style.minHeight),m=parseFloat(f.style.height),$=Math.max(g,m);if($<p){const h=$+v,b=Math.min(p,h),w=h-b;f.style.height=b+"px",f.style.bottom==="0px"&&(u.scrollTop=w>0?w:0,f.style.justifyContent="flex-end")}}}c.current=u.scrollTop})}))))}),pd="SelectGroup",[md,gd]=Re(pd),vd=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=Pe();return i.createElement(md,{scope:n,id:r},i.createElement(K.div,C({role:"group","aria-labelledby":r},o,{ref:t})))}),hd="SelectLabel",bd=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e,r=gd(hd,n);return i.createElement(K.div,C({id:r.id},o,{ref:t}))}),hn="SelectItem",[$d,jr]=Re(hn),wd=i.forwardRef((e,t)=>{const{__scopeSelect:n,value:o,disabled:r=!1,textValue:s,...a}=e,c=Fe(hn,n),l=Dt(hn,n),u=c.value===o,[f,d]=i.useState(s??""),[v,p]=i.useState(!1),g=ee(t,h=>{var b;return(b=l.itemRefCallback)===null||b===void 0?void 0:b.call(l,h,o,r)}),m=Pe(),$=()=>{r||(c.onValueChange(o),c.onOpenChange(!1))};return i.createElement($d,{scope:n,value:o,disabled:r,textId:m,isSelected:u,onItemTextChange:i.useCallback(h=>{d(b=>{var w;return b||((w=h==null?void 0:h.textContent)!==null&&w!==void 0?w:"").trim()})},[])},i.createElement(At.ItemSlot,{scope:n,value:o,disabled:r,textValue:f},i.createElement(K.div,C({role:"option","aria-labelledby":m,"data-highlighted":v?"":void 0,"aria-selected":u&&v,"data-state":u?"checked":"unchecked","aria-disabled":r||void 0,"data-disabled":r?"":void 0,tabIndex:r?void 0:-1},a,{ref:g,onFocus:O(a.onFocus,()=>p(!0)),onBlur:O(a.onBlur,()=>p(!1)),onPointerUp:O(a.onPointerUp,$),onPointerMove:O(a.onPointerMove,h=>{if(r){var b;(b=l.onItemLeave)===null||b===void 0||b.call(l)}else h.currentTarget.focus({preventScroll:!0})}),onPointerLeave:O(a.onPointerLeave,h=>{if(h.currentTarget===document.activeElement){var b;(b=l.onItemLeave)===null||b===void 0||b.call(l)}}),onKeyDown:O(a.onKeyDown,h=>{var b;((b=l.searchRef)===null||b===void 0?void 0:b.current)!==""&&h.key===" "||(ql.includes(h.key)&&$(),h.key===" "&&h.preventDefault())})}))))}),Nt="SelectItemText",xd=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:o,style:r,...s}=e,a=Fe(Nt,n),c=Dt(Nt,n),l=jr(Nt,n),u=Jl(Nt,n),[f,d]=i.useState(null),v=ee(t,h=>d(h),l.onItemTextChange,h=>{var b;return(b=c.itemTextRefCallback)===null||b===void 0?void 0:b.call(c,h,l.value,l.disabled)}),p=f==null?void 0:f.textContent,g=i.useMemo(()=>i.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},p),[l.disabled,l.value,p]),{onNativeOptionAdd:m,onNativeOptionRemove:$}=u;return me(()=>(m(g),()=>$(g)),[m,$,g]),i.createElement(i.Fragment,null,i.createElement(K.span,C({id:l.textId},s,{ref:v})),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Le.createPortal(s.children,a.valueNode):null)}),yd="SelectItemIndicator",Cd=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return jr(yd,n).isSelected?i.createElement(K.span,C({"aria-hidden":!0},o,{ref:t})):null}),Ed=i.forwardRef((e,t)=>{const{__scopeSelect:n,...o}=e;return i.createElement(K.div,C({"aria-hidden":!0},o,{ref:t}))}),Rr=i.forwardRef((e,t)=>{const{value:n,...o}=e,r=i.useRef(null),s=ee(t,r),a=Or(n);return i.useEffect(()=>{const c=r.current,l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==n&&f){const d=new Event("change",{bubbles:!0});f.call(c,n),c.dispatchEvent(d)}},[a,n]),i.createElement(Rl,{asChild:!0},i.createElement("select",C({},o,{ref:s,defaultValue:n})))});Rr.displayName="BubbleSelect";function Yr(e){const t=ae(e),n=i.useRef(""),o=i.useRef(0),r=i.useCallback(a=>{const c=n.current+a;t(c),function l(u){n.current=u,window.clearTimeout(o.current),u!==""&&(o.current=window.setTimeout(()=>l(""),1e3))}(c)},[t]),s=i.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,r,s]}function qr(e,t,n){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let a=Sd(e,Math.max(s,0));r.length===1&&(a=a.filter(u=>u!==n));const l=a.find(u=>u.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function Sd(e,t){return e.map((n,o)=>e[(t+o)%e.length])}const Pd=ed,Xr=nd,Md=rd,_d=sd,Td=id,Zr=ad,kd=fd,Od=vd,Qr=bd,Jr=wd,Id=xd,Ad=Cd,es=Ed,Dd=Pd,Nd=Od,Fd=Md,ts=E.forwardRef(({className:e="",children:t,...n},o)=>k.jsxs(Xr,{ref:o,className:z(e,"flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"),...n,children:[t,k.jsx(_d,{asChild:!0,children:k.jsx(Cl,{className:"h-4 w-4 opacity-50"})})]}));ts.displayName=Xr.displayName;const ns=E.forwardRef(({className:e="",children:t,position:n="popper",...o},r)=>k.jsx(Td,{children:k.jsx(Zr,{ref:r,className:z(e,n==="popper"?"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1":"","relative z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2"),position:n,...o,children:k.jsx(kd,{className:z(n==="popper"?"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]":"","p-1"),children:t})})}));ns.displayName=Zr.displayName;const os=E.forwardRef(({className:e="",...t},n)=>k.jsx(Qr,{ref:n,className:z(e,"py-1.5 pl-8 pr-2 text-sm font-semibold"),...t}));os.displayName=Qr.displayName;const rs=E.forwardRef(({className:e="",children:t,...n},o)=>k.jsxs(Jr,{ref:o,className:z(e,"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50"),...n,children:[k.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:k.jsx(Ad,{children:k.jsx(wr,{className:"h-4 w-4"})})}),k.jsx(Id,{children:t})]}));rs.displayName=Jr.displayName;const ss=E.forwardRef(({className:e="",...t},n)=>k.jsx(es,{ref:n,className:z(e,"-mx-1 my-1 h-px bg-muted"),...t}));ss.displayName=es.displayName,A.Button=kn,A.Card=Nn,A.CardContent=Bn,A.CardDescription=Gn,A.CardFooter=Wn,A.CardHeader=Fn,A.CardTitle=Ln,A.Checkbox=Ys,A.DropdownMenu=Sl,A.DropdownMenuCheckboxItem=Pr,A.DropdownMenuContent=Er,A.DropdownMenuGroup=Ml,A.DropdownMenuItem=Sr,A.DropdownMenuLabel=_r,A.DropdownMenuPortal=_l,A.DropdownMenuRadioGroup=kl,A.DropdownMenuRadioItem=Mr,A.DropdownMenuSeparator=Tr,A.DropdownMenuShortcut=kr,A.DropdownMenuSub=Tl,A.DropdownMenuSubContent=Cr,A.DropdownMenuSubTrigger=yr,A.DropdownMenuTrigger=Pl,A.Heading=Rs,A.Input=zs,A.Label=Ks,A.Paragraph=Vs,A.RadioGroup=Wr,A.RadioGroupItem=Hr,A.Select=Dd,A.SelectContent=ns,A.SelectGroup=Nd,A.SelectItem=rs,A.SelectLabel=os,A.SelectSeparator=ss,A.SelectTrigger=ts,A.SelectValue=Fd,A.Spinner=Hs,A.TextArea=Us,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});