1import{c as Je}from"./createRuntimeFn-62c9670f.esm-BkdTE7RR.js";import{b as Be}from"./chunk-TXNLRTCE-D0ay-Vg0.js";import{m as Qt,W as Gt,z as en,c as tn,i as Qe,r as nn,l as rn,o as $t,y as Ge}from"./index--A5jPPAS.js";import{r as C,j as N,f as St}from"./client-BLZHgAOY.js";import{u as on}from"./index-Cu0hS8cE.js";var sn=C.forwardRef((e,t)=>{var n=e,{rotate:r,width:o,height:i,color:s,colorToken:c,size:m,vectorEffect:f="non-scaling-stroke",hasDot:w,dotProps:g}=n,x=Qt(n,["rotate","width","height","color","colorToken","size","vectorEffect","hasDot","dotProps"]);return N.jsx(Gt,{hasDot:w,dotProps:g,rotate:r,width:o,height:i,color:s,colorToken:c,size:m,ref:t,children:N.jsx("svg",en(tn({width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x),{children:N.jsx("path",{d:"M17 7L7 17M7 7L17 17",stroke:"currentColor",strokeWidth:"1.2",vectorEffect:f,strokeLinecap:"round",strokeLinejoin:"round"})}))})}),cn={xsmall:"16px",small:"24px",medium:"32px",large:"64px"},ln=Je({defaultClassName:"_1y1un832",variantClassNames:{variant:{default:"_1y1un833",primary:"_1y1un834",critical:"_1y1un835",warning:"_1y1un836",on:"_1y1un837",inverse:"_1y1un838"}},defaultVariants:{},compoundVariants:[]}),it={size:"--clay-spinner-size",speed:"--clay-spinner-speed"},Ie=C.forwardRef(function({variant:e,size:t="xsmall",speed:n="1s",className:r,style:o,role:i="status","aria-label":s="Loading",...c},m){return N.jsx("span",{ref:m,role:i,"aria-label":s,className:Qe(ln({variant:e}),r),style:{[it.size]:cn[t],[it.speed]:n,...o},...c,children:N.jsx("svg",{width:"100%",height:"100%",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:N.jsx("path",{d:"M14.75 8C15.1642 8 15.5039 7.66338 15.4625 7.25123C15.3501 6.13087 14.9865 5.04679 14.3948 4.08126C13.6721 2.90192 12.6373 1.9454 11.4049 1.31745C10.1725 0.689506 8.79046 0.414598 7.41156 0.52312C6.03265 0.631642 4.71062 1.11937 3.59161 1.93237C2.4726 2.74538 1.60022 3.85199 1.0709 5.12988C0.541588 6.40776 0.375962 7.80712 0.592338 9.17326C0.808713 10.5394 1.39866 11.8191 2.29696 12.8709C3.03239 13.7319 3.95104 14.4128 4.98183 14.8659C5.36102 15.0326 5.78614 14.8136 5.91414 14.4196C6.04214 14.0257 5.82382 13.6068 5.44891 13.4307C4.67966 13.0693 3.99324 12.5473 3.43756 11.8967C2.71893 11.0553 2.24697 10.0315 2.07387 8.93861C1.90077 7.8457 2.03327 6.7262 2.45672 5.7039C2.88017 4.6816 3.57808 3.7963 4.47329 3.1459C5.36849 2.49549 6.42612 2.10531 7.52924 2.0185C8.63237 1.93168 9.73801 2.1516 10.7239 2.65396C11.7099 3.15632 12.5377 3.92153 13.1158 4.86501C13.5629 5.59453 13.8472 6.40866 13.9532 7.25194C14.0048 7.66292 14.3358 8 14.75 8Z",fill:"currentColor"})})})}),an="gqvui13",un=Je({defaultClassName:"gqvui10",variantClassNames:{type:{format:"gqvui11",custom:"gqvui12"}},defaultVariants:{},compoundVariants:[]}),fn=Object.create,Tt=Object.defineProperty,dn=Object.getOwnPropertyDescriptor,mn=Object.getOwnPropertyNames,hn=Object.getPrototypeOf,gn=Object.prototype.hasOwnProperty,Ot=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pn=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of mn(t))!gn.call(e,o)&&o!==n&&Tt(e,o,{get:()=>t[o],enumerable:!(r=dn(t,o))||r.enumerable});return e},vn=(e,t,n)=>(n=e!=null?fn(hn(e)):{},pn(Tt(n,"default",{value:e,enumerable:!0}),e)),wn=Ot((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs=r()})(e,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",s="second",c="minute",m="hour",f="day",w="week",g="month",x="quarter",d="year",R="date",p="Invalid Date",E=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,D={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(l){var v=["th","st","nd","rd"],h=l%100;return"["+l+(v[(h-20)%10]||v[h]||v[0])+"]"}},M=function(l,v,h){var u=String(l);return!u||u.length>=v?l:""+Array(v+1-u.length).join(h)+l},O={s:M,z:function(l){var v=-l.utcOffset(),h=Math.abs(v),u=Math.floor(h/60),a=h%60;return(v<=0?"+":"-")+M(u,2,"0")+":"+M(a,2,"0")},m:function l(v,h){if(v.date()<h.date())return-l(h,v);
vendor: 4,122 bytes, line 1
1var u=12*(h.year()-v.year())+(h.month()-v.month()),a=v.clone().add(u,g),y=h-a<0,b=v.clone().add(u+(y?-1:1),g);return+(-(u+(h-a)/(y?a-b:b-a))||0)},a:function(l){return l<0?Math.ceil(l)||0:Math.floor(l)},p:function(l){return{M:g,y:d,w,d:f,D:R,h:m,m:c,s,ms:i,Q:x}[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(l){return l===void 0}},S="en",j={};j[S]=D;var B="$isDayjsObject",I=function(l){return l instanceof F||!(!l||!l[B])},W=function l(v,h,u){var a;if(!v)return S;if(typeof v=="string"){var y=v.toLowerCase();j[y]&&(a=y),h&&(j[y]=h,a=y);var b=v.split("-");if(!a&&b.length>1)return l(b[0])}else{var _=v.name;j[_]=v,a=_}return!u&&a&&(S=a),a||!u&&S},P=function(l,v){if(I(l))return l.clone();var h=typeof v=="object"?v:{};return h.date=l,h.args=arguments,new F(h)},A=O;A.l=W,A.i=I,A.w=function(l,v){return P(l,{locale:v.$L,utc:v.$u,x:v.$x,$offset:v.$offset})};var F=function(){function l(h){this.$L=W(h.locale,null,!0),this.parse(h),this.$x=this.$x||h.x||{},this[B]=!0}var v=l.prototype;return v.parse=function(h){this.$d=function(u){var a=u.date,y=u.utc;if(a===null)return new Date(NaN);if(A.u(a))return new Date;if(a instanceof Date)return new Date(a);if(typeof a=="string"&&!/Z$/i.test(a)){var b=a.match(E);if(b){var _=b[2]-1||0,$=(b[7]||"0").substring(0,3);return y?new Date(Date.UTC(b[1],_,b[3]||1,b[4]||0,b[5]||0,b[6]||0,$)):new Date(b[1],_,b[3]||1,b[4]||0,b[5]||0,b[6]||0,$)}}return new Date(a)}(h),this.init()},v.init=function(){var h=this.$d;this.$y=h.getFullYear(),this.$M=h.getMonth(),this.$D=h.getDate(),this.$W=h.getDay(),this.$H=h.getHours(),this.$m=h.getMinutes(),this.$s=h.getSeconds(),this.$ms=h.getMilliseconds()},v.$utils=function(){return A},v.isValid=function(){return this.$d.toString()!==p},v.isSame=function(h,u){var a=P(h);return this.startOf(u)<=a&&a<=this.endOf(u)},v.isAfter=function(h,u){return P(h)<this.startOf(u)},v.isBefore=function(h,u){return this.endOf(u)<P(h)},v.$g=function(h,u,a){return A.u(h)?this[u]:this.set(a,h)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(h,u){var a=this,y=!!A.u(u)||u,b=A.p(h),_=function(H,z){var Z=A.w(a.$u?Date.UTC(a.$y,z,H):new Date(a.$y,z,H),a);return y?Z:Z.endOf(f)},$=function(H,z){return A.w(a.toDate()[H].apply(a.toDate("s"),(y?[0,0,0,0]:[23,59,59,999]).slice(z)),a)},k=this.$W,V=this.$M,Y=this.$D,X="set"+(this.$u?"UTC":"");switch(b){case d:return y?_(1,0):_(31,11);case g:return y?_(1,V):_(0,V+1);case w:var U=this.$locale().weekStart||0,q=(k<U?k+7:k)-U;return _(y?Y-q:Y+(6-q),V);case f:case R:return $(X+"Hours",0);case m:return $(X+"Minutes",1);case c:return $(X+"Seconds",2);case s:return $(X+"Milliseconds",3);default:return this.clone()}},v.endOf=function(h){return this.startOf(h,!1)},v.$set=function(h,u){var a,y=A.p(h),b="set"+(this.$u?"UTC":""),_=(a={},a[f]=b+"Date",a[R]=b+"Date",a[g]=b+"Month",a[d]=b+"FullYear",a[m]=b+"Hours",a[c]=b+"Minutes",a[s]=b+"Seconds",a[i]=b+"Milliseconds",a)[y],$=y===f?this.$D+(u-this.$W):u;if(y===g||y===d){var k=this.clone().set(R,1);k.$d[_]($),k.init(),this.$d=k.set(R,Math.min(this.$D,k.daysInMonth())).$d}else _&&this.$d[_]($);return this.init(),this},v.set=function(h,u){return this.clone().$set(h,u)},v.get=function(h){return this[A.p(h)]()},v.add=function(h,u){var a,y=this;h=Number(h);var b=A.p(u),_=function(V){var Y=P(y);return A.w(Y.date(Y.date()+Math.round(V*h)),y)};if(b===g)return this.set(g,this.$M+h);if(b===d)return this.set(d,this.$y+h);if(b===f)return _(1);if(b===w)return _(7);var $=(a={},a[c]=r,a[m]=o,a[s]=n,a)[b]||1,k=this.$d.getTime()+h*$;return A.w(k,this)},v.subtract=function(h,u){return this.add(-1*h,u)},v.format=function(h){var u=this,a=this.$locale();if(!this.isValid())return a.invalidDate||p;var y=h||"YYYY-MM-DDTHH:mm:ssZ",b=A.z(this),_=this.$H,$=this.$m,k=this.$M,V=a.weekdays,Y=a.months,X=a.meridiem,U=function(z,Z,J,fe){return z&&(z[Z]||z(u,y))||J[Z].slice(0,fe)},q=function(z){return A.s(_%12||12,z,"0")},H=X||function(z,Z,J){var fe=z<12?"AM":"PM";return J?fe.toLowerCase():fe};return y.replace(T,function(z,Z){return Z||function(J){switch(J){case"YY":return String(u.$y).slice(-2);
1case"YYYY":return A.s(u.$y,4,"0");case"M":return k+1;case"MM":return A.s(k+1,2,"0");case"MMM":return U(a.monthsShort,k,Y,3);case"MMMM":return U(Y,k);case"D":return u.$D;case"DD":return A.s(u.$D,2,"0");case"d":return String(u.$W);case"dd":return U(a.weekdaysMin,u.$W,V,2);case"ddd":return U(a.weekdaysShort,u.$W,V,3);case"dddd":return V[u.$W];case"H":return String(_);case"HH":return A.s(_,2,"0");case"h":return q(1);case"hh":return q(2);case"a":return H(_,$,!0);case"A":return H(_,$,!1);case"m":return String($);case"mm":return A.s($,2,"0");case"s":return String(u.$s);case"ss":return A.s(u.$s,2,"0");case"SSS":return A.s(u.$ms,3,"0");case"Z":return b}return null}(z)||b.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(h,u,a){var y,b=this,_=A.p(u),$=P(h),k=($.utcOffset()-this.utcOffset())*r,V=this-$,Y=function(){return A.m(b,$)};switch(_){case d:y=Y()/12;break;case g:y=Y();break;case x:y=Y()/3;break;case w:y=(V-k)/6048e5;break;case f:y=(V-k)/864e5;break;case m:y=V/o;break;case c:y=V/r;break;case s:y=V/n;break;default:y=V}return a?y:A.a(y)},v.daysInMonth=function(){return this.endOf(g).$D},v.$locale=function(){return j[this.$L]},v.locale=function(h,u){if(!h)return this.$L;var a=this.clone(),y=W(h,u,!0);return y&&(a.$L=y),a},v.clone=function(){return A.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},l}(),L=F.prototype;return P.prototype=L,[["$ms",i],["$s",s],["$m",c],["$H",m],["$W",f],["$M",g],["$y",d],["$D",R]].forEach(function(l){L[l[1]]=function(v){return this.$g(v,l[0],l[1])}}),P.extend=function(l,v){return l.$i||(l(v,F,P),l.$i=!0),P},P.locale=W,P.isDayjs=I,P.unix=function(l){return P(1e3*l)},P.en=j[S],P.Ls=j,P.p={},P})}),yn=Ot((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r(wn()):typeof define=="function"&&define.amd?define(["dayjs"],r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_locale_ko=r(n.dayjs)})(e,function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var o=r(n),i={name:"ko",weekdays:"ì¼ìì¼_ììì¼_íìì¼_ììì¼_목ìì¼_ê¸ìì¼_í ìì¼".split("_"),weekdaysShort:"ì¼_ì_í_ì_목_ê¸_í ".split("_"),weekdaysMin:"ì¼_ì_í_ì_목_ê¸_í ".split("_"),months:"1ì_2ì_3ì_4ì_5ì_6ì_7ì_8ì_9ì_10ì_11ì_12ì".split("_"),monthsShort:"1ì_2ì_3ì_4ì_5ì_6ì_7ì_8ì_9ì_10ì_11ì_12ì".split("_"),ordinal:function(s){return s+"ì¼"},formats:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYYë
MMMM Dì¼",LLL:"YYYYë
MMMM Dì¼ A h:mm",LLLL:"YYYYë
MMMM Dì¼ dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYYë
MMMM Dì¼",lll:"YYYYë
MMMM Dì¼ A h:mm",llll:"YYYYë
MMMM Dì¼ dddd A h:mm"},meridiem:function(s){return s<12?"ì¤ì ":"ì¤í"},relativeTime:{future:"%s í",past:"%s ì ",s:"ëª ì´",m:"1ë¶",mm:"%dë¶",h:"í ìê°",hh:"%dìê°",d:"í루",dd:"%dì¼",M:"í ë¬",MM:"%dë¬",y:"ì¼ ë
",yy:"%dë
"}};return o.default.locale(i,null,!0),i})}),Cn={top:"bottom",right:"left",bottom:"top",left:"right"},Ee=8,xn=12,et=6,bn="iuz6eh0";function _e(){return typeof window<"u"}function ve(e){return At(e)?(e.nodeName||"").toLowerCase():"#document"}function ee(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function le(e){var t;return(t=(At(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function At(e){return _e()?e instanceof Node||e instanceof ee(e).Node:!1}function K(e){return _e()?e instanceof Element||e instanceof ee(e).Element:!1}function Q(e){return _e()?e instanceof HTMLElement||e instanceof ee(e).HTMLElement:!1}function $e(e){return!_e()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ee(e).ShadowRoot}const Rn=new Set(["inline","contents"]);function Re(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=te(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Rn.has(o)}const En=new Set(["table","td","th"]);function Dn(e){return En.has(ve(e))}const Mn=[":popover-open",":modal"];function ke(e){return Mn.some(t=>{try{return e.matches(t)}catch{return!1}})}const Pn=["transform","translate","scale","rotate","perspective"],$n=["transform","translate","scale","rotate","perspective","filter"],Sn=["paint","layout","strict","content"];function tt(e){const t=je(),n=K(e)?te(e):e;return Pn.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||$n.some(r=>(n.willChange||"").includes(r))||Sn.some(r=>(n.contain||"").includes(r))}function Tn(e){let t=ie(e);for(;Q(t)&&!se(t);){if(tt(t))return t;if(ke(t))return null;t=ie(t)}return null}function je(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}
1const On=new Set(["html","body","#document"]);function se(e){return On.has(ve(e))}function te(e){return ee(e).getComputedStyle(e)}function Ye(e){return K(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ie(e){if(ve(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$e(e)&&e.host||le(e);return $e(t)?t.host:t}function Lt(e){const t=ie(e);return se(t)?e.ownerDocument?e.ownerDocument.body:e.body:Q(t)&&Re(t)?t:Lt(t)}function me(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Lt(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=ee(o);if(i){const c=Xe(s);return t.concat(s,s.visualViewport||[],Re(o)?o:[],c&&n?me(c):[])}return t.concat(o,me(o,[],n))}function Xe(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const An=["top","right","bottom","left"],ct=["start","end"],lt=An.reduce((e,t)=>e.concat(t,t+"-"+ct[0],t+"-"+ct[1]),[]),Ce=Math.min,he=Math.max,Se=Math.round,re=e=>({x:e,y:e}),Ln={left:"right",right:"left",bottom:"top",top:"bottom"},_n={start:"end",end:"start"};function Ue(e,t,n){return he(e,Ce(t,n))}function we(e,t){return typeof e=="function"?e(t):e}function ce(e){return e.split("-")[0]}function oe(e){return e.split("-")[1]}function _t(e){return e==="x"?"y":"x"}function nt(e){return e==="y"?"height":"width"}const kn=new Set(["top","bottom"]);function ae(e){return kn.has(ce(e))?"y":"x"}function rt(e){return _t(ae(e))}function kt(e,t,n){n===void 0&&(n=!1);const r=oe(e),o=rt(e),i=nt(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Oe(s)),[s,Oe(s)]}function jn(e){const t=Oe(e);return[Te(e),t,Te(t)]}function Te(e){return e.replace(/start|end/g,t=>_n[t])}const at=["left","right"],ut=["right","left"],Yn=["top","bottom"],Nn=["bottom","top"];function Bn(e,t,n){switch(e){case"top":case"bottom":return n?t?ut:at:t?at:ut;case"left":case"right":return t?Yn:Nn;default:return[]}}function In(e,t,n,r){const o=oe(e);let i=Bn(ce(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Te)))),i}function Oe(e){return e.replace(/left|right|bottom|top/g,t=>Ln[t])}function Fn(e){return{top:0,right:0,bottom:0,left:0,...e}}function jt(e){return typeof e!="number"?Fn(e):{top:e,right:e,bottom:e,left:e}}function Ae(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}const Wn="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Ze(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&$e(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function ye(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Fe(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function Hn(e){return e.matches("html,body")}function de(e){return e?.ownerDocument||document}function Vn(e){return Q(e)&&e.matches(Wn)}function Me(e,t,n){return n===void 0&&(n=!0),e.filter(o=>{var i;return o.parentId===t&&(!n||((i=o.context)==null?void 0:i.open))}).flatMap(o=>[o,...Me(e,o.id,n)])}function qn(e){return"nativeEvent"in e}function xe(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var zn=typeof document<"u",Kn=function(){},pe=zn?C.useLayoutEffect:Kn;const Xn={...St};function De(e){const t=C.useRef(e);return pe(()=>{t.current=e}),t}const Un=Xn.useInsertionEffect,Zn=Un||(e=>e());function ne(e){const t=C.useRef(()=>{});return Zn(()=>{t.current=e}),C.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}function ft(e,t,n){let{reference:r,floating:o}=e;const i=ae(t),s=rt(t),c=nt(s),m=ce(t),f=i==="y",w=r.x+r.width/2-o.width/2,g=r.y+r.height/2-o.height/2,x=r[c]/2-o[c]/2;let d;switch(m){case"top":d={x:w,y:r.y-o.height};break;case"bottom":d={x:w,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:g};break;case"left":d={x:r.x-o.width,y:g};break;default:d={x:r.x,y:r.y}}switch(oe(t)){case"start":d[s]-=x*(n&&f?-1:1);break;case"end":d[s]+=x*(n&&f?-1:1);break}return d}const Jn=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}
1=n,c=i.filter(Boolean),m=await(s.isRTL==null?void 0:s.isRTL(t));let f=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:w,y:g}=ft(f,r,m),x=r,d={},R=0;for(let p=0;p<c.length;p++){const{name:E,fn:T}=c[p],{x:D,y:M,data:O,reset:S}=await T({x:w,y:g,initialPlacement:r,placement:x,strategy:o,middlewareData:d,rects:f,platform:s,elements:{reference:e,floating:t}});w=D??w,g=M??g,d={...d,[E]:{...d[E],...O}},S&&R<=50&&(R++,typeof S=="object"&&(S.placement&&(x=S.placement),S.rects&&(f=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:w,y:g}=ft(f,x,m)),p=-1)}return{x:w,y:g,placement:x,strategy:o,middlewareData:d}};async function ot(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:c,strategy:m}=e,{boundary:f="clippingAncestors",rootBoundary:w="viewport",elementContext:g="floating",altBoundary:x=!1,padding:d=0}=we(t,e),R=jt(d),E=c[x?g==="floating"?"reference":"floating":g],T=Ae(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(E)))==null||n?E:E.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:f,rootBoundary:w,strategy:m})),D=g==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,M=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),O=await(i.isElement==null?void 0:i.isElement(M))?await(i.getScale==null?void 0:i.getScale(M))||{x:1,y:1}:{x:1,y:1},S=Ae(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:D,offsetParent:M,strategy:m}):D);return{top:(T.top-S.top+R.top)/O.y,bottom:(S.bottom-T.bottom+R.bottom)/O.y,left:(T.left-S.left+R.left)/O.x,right:(S.right-T.right+R.right)/O.x}}const Qn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:c,middlewareData:m}=t,{element:f,padding:w=0}=we(e,t)||{};if(f==null)return{};const g=jt(w),x={x:n,y:r},d=rt(o),R=nt(d),p=await s.getDimensions(f),E=d==="y",T=E?"top":"left",D=E?"bottom":"right",M=E?"clientHeight":"clientWidth",O=i.reference[R]+i.reference[d]-x[d]-i.floating[R],S=x[d]-i.reference[d],j=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let B=j?j[M]:0;(!B||!await(s.isElement==null?void 0:s.isElement(j)))&&(B=c.floating[M]||i.floating[R]);const I=O/2-S/2,W=B/2-p[R]/2-1,P=Ce(g[T],W),A=Ce(g[D],W),F=P,L=B-p[R]-A,l=B/2-p[R]/2+I,v=Ue(F,l,L),h=!m.arrow&&oe(o)!=null&&l!==v&&i.reference[R]/2-(l<F?P:A)-p[R]/2<0,u=h?l<F?l-F:l-L:0;return{[d]:x[d]+u,data:{[d]:v,centerOffset:l-v-u,...h&&{alignmentOffset:u}},reset:h}}});function Gn(e,t,n){return(e?[...n.filter(o=>oe(o)===e),...n.filter(o=>oe(o)!==e)]:n.filter(o=>ce(o)===o)).filter(o=>e?oe(o)===e||(t?Te(o)!==o:!1):!0)}const er=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,o;const{rects:i,middlewareData:s,placement:c,platform:m,elements:f}=t,{crossAxis:w=!1,alignment:g,allowedPlacements:x=lt,autoAlignment:d=!0,...R}=we(e,t),p=g!==void 0||x===lt?Gn(g||null,d,x):x,E=await ot(t,R),T=((n=s.autoPlacement)==null?void 0:n.index)||0,D=p[T];if(D==null)return{};const M=kt(D,i,await(m.isRTL==null?void 0:m.isRTL(f.floating)));if(c!==D)return{reset:{placement:p[0]}};const O=[E[ce(D)],E[M[0]],E[M[1]]],S=[...((r=s.autoPlacement)==null?void 0:r.overflows)||[],{placement:D,overflows:O}],j=p[T+1];if(j)return{data:{index:T+1,overflows:S},reset:{placement:j}};const B=S.map(P=>{const A=oe(P.placement);return[P.placement,A&&w?P.overflows.slice(0,2).reduce((F,L)=>F+L,0):P.overflows[0],P.overflows]}).sort((P,A)=>P[1]-A[1]),W=((o=B.filter(P=>P[2].slice(0,oe(P[0])?2:3).every(A=>A<=0))[0])==null?void 0:o[0])||B[0][0];return W!==c?{data:{index:T+1,overflows:S},reset:{placement:W}}:{}}}},tr=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:c,platform:m,elements:f}=t,{mainAxis:w=!0,crossAxis:g=!0,fallbackPlacements:x,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:R="none",flipAlignment:p=!0,...E}=we(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const T=ce(o),D=ae(c),M=ce(c)===c,O=await(m.isRTL==null?void 0:m.isRTL(f.floating)),S=x||(M||!p?[Oe(c)]:jn(c)),j=R!=="none";!x&&j&&S.push(...In(c,p,R,O));const B=[c,...S],I=await ot(t,E),W=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(w&&W.push(I[T]),g){const l=kt(o,s,O);W.push(I[l[0]],I[l[1]])}if(P=[...P,{placement:o,overflows:W}],!W.every(l=>l<=0)){var A,F;const l=(((A=i.flip)==null?void 0:A.index)||0)+1,v=B[l];if(v&&(!(g==="alignment"?D!==ae(v):!1)||P.every(a=>ae(a.placement)===D?a.overflows[0]>0:!0)))return{data:{index:l,overflows:P},reset:{placement:v}};let h=(F=P.filter(u=>u.overflows[0]<=0).sort((u,a)=>u.overflows[1]-a.overflows[1])[0])==null?void 0:F.placement;if(!h)switch(d){case"bestFit":{var L;const u=(L=P.filter(a=>{if(j){const y=ae(a.placement);return y===D||y==="y"}return!0}).map(a=>[a.placement,a.overflows.filter(y=>y>0).reduce((y,b)=>y+b,0)]).sort((a,y)=>a[1]-y[1])[0])==null?void 0:L[0];u&&(h=u);break}case"initialPlacement":h=c;break}if(o!==h)return{reset:{placement:h}}}return{}}}},nr=new Set(["left","top"]);async function rr(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=ce(n),c=oe(n),m=ae(n)==="y",f=nr.has(s)?-1:1,w=i&&m?-1:1,g=we(t,e);let{mainAxis:x,crossAxis:d,alignmentAxis:R}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}
vendor: 9,465 bytes, line 1
1:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return c&&typeof R=="number"&&(d=c==="end"?R*-1:R),m?{x:d*w,y:x*f}:{x:x*f,y:d*w}}const or=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:c}=t,m=await rr(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+m.x,y:i+m.y,data:{...m,placement:s}}}}},sr=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:E=>{let{x:T,y:D}=E;return{x:T,y:D}}},...m}=we(e,t),f={x:n,y:r},w=await ot(t,m),g=ae(ce(o)),x=_t(g);let d=f[x],R=f[g];if(i){const E=x==="y"?"top":"left",T=x==="y"?"bottom":"right",D=d+w[E],M=d-w[T];d=Ue(D,d,M)}if(s){const E=g==="y"?"top":"left",T=g==="y"?"bottom":"right",D=R+w[E],M=R-w[T];R=Ue(D,R,M)}const p=c.fn({...t,[x]:d,[g]:R});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[x]:i,[g]:s}}}}}};function Yt(e){const t=te(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Q(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,c=Se(n)!==i||Se(r)!==s;return c&&(n=i,r=s),{width:n,height:r,$:c}}function Nt(e){return K(e)?e:e.contextElement}function ge(e){const t=Nt(e);if(!Q(t))return re(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Yt(t);let s=(i?Se(n.width):n.width)/r,c=(i?Se(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const ir=re(0);function Bt(e){const t=ee(e);return!je()||!t.visualViewport?ir:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function cr(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ee(e)?!1:t}function be(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Nt(e);let s=re(1);t&&(r?K(r)&&(s=ge(r)):s=ge(e));const c=cr(i,n,r)?Bt(i):re(0);let m=(o.left+c.x)/s.x,f=(o.top+c.y)/s.y,w=o.width/s.x,g=o.height/s.y;if(i){const x=ee(i),d=r&&K(r)?ee(r):r;let R=x,p=Xe(R);for(;p&&r&&d!==R;){const E=ge(p),T=p.getBoundingClientRect(),D=te(p),M=T.left+(p.clientLeft+parseFloat(D.paddingLeft))*E.x,O=T.top+(p.clientTop+parseFloat(D.paddingTop))*E.y;m*=E.x,f*=E.y,w*=E.x,g*=E.y,m+=M,f+=O,R=ee(p),p=Xe(R)}}return Ae({width:w,height:g,x:m,y:f})}function Ne(e,t){const n=Ye(e).scrollLeft;return t?t.left+n:be(le(e)).left+n}function It(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ne(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function lr(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=le(r),c=t?ke(t.floating):!1;if(r===s||c&&i)return n;let m={scrollLeft:0,scrollTop:0},f=re(1);const w=re(0),g=Q(r);if((g||!g&&!i)&&((ve(r)!=="body"||Re(s))&&(m=Ye(r)),Q(r))){const d=be(r);f=ge(r),w.x=d.x+r.clientLeft,w.y=d.y+r.clientTop}const x=s&&!g&&!i?It(s,m):re(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-m.scrollLeft*f.x+w.x+x.x,y:n.y*f.y-m.scrollTop*f.y+w.y+x.y}}function ar(e){return Array.from(e.getClientRects())}function ur(e){const t=le(e),n=Ye(e),r=e.ownerDocument.body,o=he(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=he(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Ne(e);const c=-n.scrollTop;return te(r).direction==="rtl"&&(s+=he(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:c}}const dt=25;function fr(e,t){const n=ee(e),r=le(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,c=0,m=0;if(o){i=o.width,s=o.height;const w=je();(!w||w&&t==="fixed")&&(c=o.offsetLeft,m=o.offsetTop)}const f=Ne(r);if(f<=0){const w=r.ownerDocument,g=w.body,x=getComputedStyle(g),d=w.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,R=Math.abs(r.clientWidth-g.clientWidth-d);R<=dt&&(i-=R)}else f<=dt&&(i+=f);return{width:i,height:s,x:c,y:m}}const dr=new Set(["absolute","fixed"]);function mr(e,t){const n=be(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Q(e)?ge(e):re(1),s=e.clientWidth*i.x,c=e.clientHeight*i.y,m=o*i.x,f=r*i.y;return{width:s,height:c,x:m,y:f}}function mt(e,t,n){let r;if(t==="viewport")r=fr(e,n);else if(t==="document")r=ur(le(e));else if(K(t))r=mr(t,n);else{const o=Bt(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ae(r)}function Ft(e,t){const n=ie(e);return n===t||!K(n)||se(n)?!1:te(n).position==="fixed"||Ft(n,t)}function hr(e,t){const n=t.get(e);if(n)return n;let r=me(e,[],!1).filter(c=>K(c)&&ve(c)!=="body"),o=null;const i=te(e).position==="fixed";let s=i?ie(e):e;for(;K(s)&&!se(s);){const c=te(s),m=tt(s);!m&&c.position==="fixed"&&(o=null),(i?!m&&!o:!m&&c.position==="static"&&!!o&&dr.has(o.position)||Re(s)&&!m&&Ft(e,s))?r=r.filter(w=>w!==s):o=c,s=ie(s)}return t.set(e,r),r}function gr(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?ke(t)?[]:hr(t,this._c):[].concat(n),r],c=s[0],m=s.reduce((f,w)=>{const g=mt(t,w,o);return f.top=he(g.top,f.top),f.right=Ce(g.right,f.right),f.bottom=Ce(g.bottom,f.bottom),f.left=he(g.left,f.left),f},mt(t,c,o));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function pr(e){const{width:t,height:n}=Yt(e);return{width:t,height:n}}function vr(e,t,n){const r=Q(t),o=le(t),i=n==="fixed",s=be(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const m=re(0);function f(){m.x=Ne(o)}if(r||!r&&!i)if((ve(t)!=="body"||Re(o))&&(c=Ye(t)),r){const d=be(t,!0,i,t);m.x=d.x+t.clientLeft,m.y=d.y+t.clientTop}else o&&f();i&&!r&&o&&f();const w=o&&!r&&!i?It(o,c):re(0),g=s.left+c.scrollLeft-m.x-w.x,x=s.top+c.scrollTop-m.y-w.y;return{x:g,y:x,width:s.width,height:s.height}}function We(e){return te(e).position==="static"}function ht(e,t){if(!Q(e)||te(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return le(e)===n&&(n=n.ownerDocument.body),n}function Wt(e,t){const n=ee(e);if(ke(e))return n;if(!Q(e)){let o=ie(e);for(;o&&!se(o);){if(K(o)&&!We(o))return o;o=ie(o)}return n}let r=ht(e,t);for(;r&&Dn(r)&&We(r);)r=ht(r,t);return r&&se(r)&&We(r)&&!tt(r)?n:r||Tn(e)||n}const wr=async function(e){const t=this.getOffsetParent||Wt,n=this.getDimensions,r=await n(e.floating);return{reference:vr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function yr(e){return te(e).direction==="rtl"}const Cr={convertOffsetParentRelativeRectToViewportRelativeRect:lr,getDocumentElement:le,getClippingRect:gr,getOffsetParent:Wt,getElementRects:wr,getClientRects:ar,getDimensions:pr,getScale:ge,isElement:K,isRTL:yr},xr=or,br=er,Rr=sr,Er=tr,gt=Qn,Dr=(e,t,n)=>{const r=new Map,o={platform:Cr,...n},i={...o.platform,_c:r};return Jn(e,t,{...o,platform:i})};var Mr=typeof document<"u",Pr=function(){},Pe=Mr?C.useLayoutEffect:Pr;function Le(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,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Le(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Le(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Ht(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pt(e,t){const n=Ht(e);return Math.round(t*n)/n}function He(e){const t=C.useRef(e);return Pe(()=>{t.current=e}),t}function $r(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:m,open:f}=e,[w,g]=C.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[x,d]=C.useState(r);Le(x,r)||d(r);const[R,p]=C.useState(null),[E,T]=C.useState(null),D=C.useCallback(a=>{a!==j.current&&(j.current=a,p(a))},[]),M=C.useCallback(a=>{a!==B.current&&(B.current=a,T(a))},[]),O=i||R,S=s||E,j=C.useRef(null),B=C.useRef(null),I=C.useRef(w),W=m!=null,P=He(m),A=He(o),F=He(f),L=C.useCallback(()=>{if(!j.current||!B.current)return;const a={placement:t,strategy:n,middleware:x};A.current&&(a.platform=A.current),Dr(j.current,B.current,a).then(y=>{const b={...y,isPositioned:F.current!==!1};l.current&&!Le(I.current,b)&&(I.current=b,nn.flushSync(()=>{g(b)}))})},[x,t,n,A,F]);Pe(()=>{f===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,g(a=>({...a,isPositioned:!1})))},[f]);const l=C.useRef(!1);Pe(()=>(l.current=!0,()=>{l.current=!1}),[]),Pe(()=>{if(O&&(j.current=O),S&&(B.current=S),O&&S){if(P.current)return P.current(O,S,L);L()}},[O,S,L,P,W]);const v=C.useMemo(()=>({reference:j,floating:B,setReference:D,setFloating:M}),[D,M]),h=C.useMemo(()=>({reference:O,floating:S}),[O,S]),u=C.useMemo(()=>{const a={position:n,left:0,top:0};if(!h.floating)return a;const y=pt(h.floating,w.x),b=pt(h.floating,w.y);return c?{...a,transform:"translate("+y+"px, "+b+"px)",...Ht(h.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:y,top:b}},[n,c,h.floating,w.x,w.y]);return C.useMemo(()=>({...w,update:L,refs:v,elements:h,floatingStyles:u}),[w,L,v,h,u])}const Sr=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?gt({element:r.current,padding:o}).fn(n):{}:r?gt({element:r,padding:o}).fn(n):{}}}},Tr=(e,t)=>({...xr(e),options:[e,t]}),Or=(e,t)=>({...Rr(e),options:[e,t]}),Ar=(e,t)=>({...Er(e),options:[e,t]}),Lr=(e,t)=>
1({...br(e),options:[e,t]}),_r=(e,t)=>({...Sr(e),options:[e,t]}),kr="data-floating-ui-focusable",vt="active",wt="selected",jr={...St};let yt=!1,Yr=0;const Ct=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Yr++;function Nr(){const[e,t]=C.useState(()=>yt?Ct():void 0);return pe(()=>{e==null&&t(Ct())},[]),C.useEffect(()=>{yt=!0},[]),e}const Br=jr.useId,Ir=Br||Nr;function Fr(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const Wr=C.createContext(null),Hr=C.createContext(null),Vt=()=>{var e;return((e=C.useContext(Wr))==null?void 0:e.id)||null},st=()=>C.useContext(Hr);function qt(e){return"data-floating-ui-"+e}function G(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const xt=qt("safe-polygon");function Ve(e,t,n){if(n&&!xe(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r?.[t]}return e?.[t]}function qe(e){return typeof e=="function"?e():e}function Vr(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:s}=e,{enabled:c=!0,delay:m=0,handleClose:f=null,mouseOnly:w=!1,restMs:g=0,move:x=!0}=t,d=st(),R=Vt(),p=De(f),E=De(m),T=De(n),D=De(g),M=C.useRef(),O=C.useRef(-1),S=C.useRef(),j=C.useRef(-1),B=C.useRef(!0),I=C.useRef(!1),W=C.useRef(()=>{}),P=C.useRef(!1),A=ne(()=>{var u;const a=(u=o.current.openEvent)==null?void 0:u.type;return a?.includes("mouse")&&a!=="mousedown"});C.useEffect(()=>{if(!c)return;function u(a){let{open:y}=a;y||(G(O),G(j),B.current=!0,P.current=!1)}return i.on("openchange",u),()=>{i.off("openchange",u)}},[c,i]),C.useEffect(()=>{if(!c||!p.current||!n)return;function u(y){A()&&r(!1,y,"hover")}const a=de(s.floating).documentElement;return a.addEventListener("mouseleave",u),()=>{a.removeEventListener("mouseleave",u)}},[s.floating,n,r,c,p,A]);const F=C.useCallback(function(u,a,y){a===void 0&&(a=!0),y===void 0&&(y="hover");const b=Ve(E.current,"close",M.current);b&&!S.current?(G(O),O.current=window.setTimeout(()=>r(!1,u,y),b)):a&&(G(O),r(!1,u,y))},[E,r]),L=ne(()=>{W.current(),S.current=void 0}),l=ne(()=>{if(I.current){const u=de(s.floating).body;u.style.pointerEvents="",u.removeAttribute(xt),I.current=!1}}),v=ne(()=>o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1);C.useEffect(()=>{if(!c)return;function u($){if(G(O),B.current=!1,w&&!xe(M.current)||qe(D.current)>0&&!Ve(E.current,"open"))return;const k=Ve(E.current,"open",M.current);k?O.current=window.setTimeout(()=>{T.current||r(!0,$,"hover")},k):n||r(!0,$,"hover")}function a($){if(v()){l();return}W.current();const k=de(s.floating);if(G(j),P.current=!1,p.current&&o.current.floatingContext){n||G(O),S.current=p.current({...o.current.floatingContext,tree:d,x:$.clientX,y:$.clientY,onClose(){l(),L(),v()||F($,!0,"safe-polygon")}});const Y=S.current;k.addEventListener("mousemove",Y),W.current=()=>{k.removeEventListener("mousemove",Y)};return}(M.current==="touch"?!Ze(s.floating,$.relatedTarget):!0)&&F($)}function y($){v()||o.current.floatingContext&&(p.current==null||p.current({...o.current.floatingContext,tree:d,x:$.clientX,y:$.clientY,onClose(){l(),L(),v()||F($)}})($))}function b(){G(O)}function _($){v()||F($,!1)}if(K(s.domReference)){const $=s.domReference,k=s.floating;return n&&$.addEventListener("mouseleave",y),x&&$.addEventListener("mousemove",u,{once:!0}),$.addEventListener("mouseenter",u),$.addEventListener("mouseleave",a),k&&(k.addEventListener("mouseleave",y),k.addEventListener("mouseenter",b),k.addEventListener("mouseleave",_)),()=>{n&&$.removeEventListener("mouseleave",y),x&&$.removeEventListener("mousemove",u),$.removeEventListener("mouseenter",u),$.removeEventListener("mouseleave",a),k&&(k.removeEventListener("mouseleave",y),k.removeEventListener("mouseenter",b),k.removeEventListener("mouseleave",_))}}},[s,c,e,w,x,F,L,l,r,n,T,d,E,p,o,v,D]),pe(()=>{var u;if(c&&n&&(u=p.current)!=null&&(u=u.__options)!=null&&u.blockPointerEvents&&A()){I.current=!0;const y=s.floating;if(K(s.domReference)&&y){var a;const b=de(s.floating).body;b.setAttribute(xt,"");const _=s.domReference,$=d==null||(a=d.nodesRef.current.find(k=>k.id===R))==null||(a=a.context)==null?void 0:a.elements.floating;return $&&($.style.pointerEvents=""),b.style.pointerEvents="none",_.style.pointerEvents="auto",y.style.pointerEvents="auto",()=>{b.style.pointerEvents="",_.style.pointerEvents="",y.style.pointerEvents=""}}}},[c,n,R,s,d,p,A]),pe(()=>{n||(M.current=void 0,P.current=!1,L(),l())},[n,L,l]),C.useEffect(()=>()=>{L(),G(O),G(j),l()},[c,s.domReference,L,l]);const h=C.useMemo(()=>{function u(a){M.current=a.pointerType}return{onPointerDown:u,onPointerEnter:u,onMouseMove(a){const{nativeEvent:y}=a;function b(){!B.current&&!T.current&&r(!0,y,"hover")}w&&!xe(M.current)||n||qe(D.current)===0||P.current&&a.movementX**2+a.movementY**2<2||(G(j),M.current==="touch"?b():(P.current=!0,j.current=window.setTimeout(b,qe(D.current))))}}},[w,r,n,T,D]);return C.useMemo(()=>c?{reference:h}:{},[c,h])}function ze(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;
1if(n&&$e(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function qr(e){return"composedPath"in e?e.composedPath()[0]:e.target}function bt(e){return Q(e.target)&&e.target.tagName==="BUTTON"}function zr(e){return Q(e.target)&&e.target.tagName==="A"}function Rt(e){return Vn(e)}function Kr(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:s=!0,event:c="click",toggle:m=!0,ignoreMouse:f=!1,keyboardHandlers:w=!0,stickIfOpen:g=!0}=t,x=C.useRef(),d=C.useRef(!1),R=C.useMemo(()=>({onPointerDown(p){x.current=p.pointerType},onMouseDown(p){const E=x.current;p.button===0&&c!=="click"&&(xe(E,!0)&&f||(n&&m&&(!(o.current.openEvent&&g)||o.current.openEvent.type==="mousedown")?r(!1,p.nativeEvent,"click"):(p.preventDefault(),r(!0,p.nativeEvent,"click"))))},onClick(p){const E=x.current;if(c==="mousedown"&&x.current){x.current=void 0;return}xe(E,!0)&&f||(n&&m&&(!(o.current.openEvent&&g)||o.current.openEvent.type==="click")?r(!1,p.nativeEvent,"click"):r(!0,p.nativeEvent,"click"))},onKeyDown(p){x.current=void 0,!(p.defaultPrevented||!w||bt(p))&&(p.key===" "&&!Rt(i)&&(p.preventDefault(),d.current=!0),!zr(p)&&p.key==="Enter"&&r(!(n&&m),p.nativeEvent,"click"))},onKeyUp(p){p.defaultPrevented||!w||bt(p)||Rt(i)||p.key===" "&&d.current&&(d.current=!1,r(!(n&&m),p.nativeEvent,"click"))}}),[o,i,c,f,w,r,n,g,m]);return C.useMemo(()=>s?{reference:R}:{},[s,R])}const Xr={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Ur={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Et=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e?.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e?.outsidePress)!=null?n:!0}};function Zr(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:s=!0,escapeKey:c=!0,outsidePress:m=!0,outsidePressEvent:f="pointerdown",referencePress:w=!1,referencePressEvent:g="pointerdown",ancestorScroll:x=!1,bubbles:d,capture:R}=t,p=st(),E=ne(typeof m=="function"?m:()=>!1),T=typeof m=="function"?E:m,D=C.useRef(!1),{escapeKey:M,outsidePress:O}=Et(d),{escapeKey:S,outsidePress:j}=Et(R),B=C.useRef(!1),I=ne(l=>{var v;if(!n||!s||!c||l.key!=="Escape"||B.current)return;const h=(v=i.current.floatingContext)==null?void 0:v.nodeId,u=p?Me(p.nodesRef.current,h):[];if(!M&&(l.stopPropagation(),u.length>0)){let a=!0;if(u.forEach(y=>{var b;if((b=y.context)!=null&&b.open&&!y.context.dataRef.current.__escapeKeyBubbles){a=!1;return}}),!a)return}r(!1,qn(l)?l.nativeEvent:l,"escape-key")}),W=ne(l=>{var v;const h=()=>{var u;I(l),(u=ye(l))==null||u.removeEventListener("keydown",h)};(v=ye(l))==null||v.addEventListener("keydown",h)}),P=ne(l=>{var v;const h=i.current.insideReactTree;i.current.insideReactTree=!1;const u=D.current;if(D.current=!1,f==="click"&&u||h||typeof T=="function"&&!T(l))return;const a=ye(l),y="["+qt("inert")+"]",b=de(o.floating).querySelectorAll(y);let _=K(a)?a:null;for(;_&&!se(_);){const Y=ie(_);if(se(Y)||!K(Y))break;_=Y}if(b.length&&K(a)&&!Hn(a)&&!Ze(a,o.floating)&&Array.from(b).every(Y=>!Ze(_,Y)))return;if(Q(a)&&L){const Y=se(a),X=te(a),U=/auto|scroll/,q=Y||U.test(X.overflowX),H=Y||U.test(X.overflowY),z=q&&a.clientWidth>0&&a.scrollWidth>a.clientWidth,Z=H&&a.clientHeight>0&&a.scrollHeight>a.clientHeight,J=X.direction==="rtl",fe=Z&&(J?l.offsetX<=a.offsetWidth-a.clientWidth:l.offsetX>a.clientWidth),Jt=z&&l.offsetY>a.clientHeight;if(fe||Jt)return}const $=(v=i.current.floatingContext)==null?void 0:v.nodeId,k=p&&Me(p.nodesRef.current,$).some(Y=>{var X;return Fe(l,(X=Y.context)==null?void 0:X.elements.floating)});if(Fe(l,o.floating)||Fe(l,o.domReference)||k)return;const V=p?Me(p.nodesRef.current,$):[];if(V.length>0){let Y=!0;if(V.forEach(X=>{var U;if((U=X.context)!=null&&U.open&&!X.context.dataRef.current.__outsidePressBubbles){Y=!1;return}}),!Y)return}r(!1,l,"outside-press")}),A=ne(l=>{var v;const h=()=>{var u;P(l),(u=ye(l))==null||u.removeEventListener(f,h)};(v=ye(l))==null||v.addEventListener(f,h)});C.useEffect(()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=M,i.current.__outsidePressBubbles=O;let l=-1;function v(b){r(!1,b,"ancestor-scroll")}function h(){window.clearTimeout(l),B.current=!0}function u(){l=window.setTimeout(()=>{B.current=!1},je()?5:0)}const a=de(o.floating);c&&(a.addEventListener("keydown",S?W:I,S),a.addEventListener("compositionstart",h),a.addEventListener("compositionend",u)),T&&a.addEventListener(f,j?A:P,j);let y=[];return x&&(K(o.domReference)&&(y=me(o.domReference)),K(o.floating)&&(y=y.concat(me(o.floating))),!K(o.reference)&&o.reference&&o.reference.contextElement&&(y=y.concat(me(o.reference.contextElement)))),y=y.filter(b=>{var _;
1return b!==((_=a.defaultView)==null?void 0:_.visualViewport)}),y.forEach(b=>{b.addEventListener("scroll",v,{passive:!0})}),()=>{c&&(a.removeEventListener("keydown",S?W:I,S),a.removeEventListener("compositionstart",h),a.removeEventListener("compositionend",u)),T&&a.removeEventListener(f,j?A:P,j),y.forEach(b=>{b.removeEventListener("scroll",v)}),window.clearTimeout(l)}},[i,o,c,T,f,n,r,x,s,M,O,I,S,W,P,j,A]),C.useEffect(()=>{i.current.insideReactTree=!1},[i,T,f]);const F=C.useMemo(()=>({onKeyDown:I,...w&&{[Xr[g]]:l=>{r(!1,l.nativeEvent,"reference-press")},...g!=="click"&&{onClick(l){r(!1,l.nativeEvent,"reference-press")}}}}),[I,r,w,g]),L=C.useMemo(()=>({onKeyDown:I,onMouseDown(){D.current=!0},onMouseUp(){D.current=!0},[Ur[f]]:()=>{i.current.insideReactTree=!0}}),[I,f,i]);return C.useMemo(()=>s?{reference:F,floating:L}:{},[s,F,L])}function Jr(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Ir(),i=C.useRef({}),[s]=C.useState(()=>Fr()),c=Vt()!=null,[m,f]=C.useState(r.reference),w=ne((d,R,p)=>{i.current.openEvent=d?R:void 0,s.emit("openchange",{open:d,event:R,reason:p,nested:c}),n?.(d,R,p)}),g=C.useMemo(()=>({setPositionReference:f}),[]),x=C.useMemo(()=>({reference:m||r.reference||null,floating:r.floating||null,domReference:r.reference}),[m,r.reference,r.floating]);return C.useMemo(()=>({dataRef:i,open:t,onOpenChange:w,elements:x,events:s,floatingId:o,refs:g}),[t,w,x,s,o,g])}function Qr(e){e===void 0&&(e={});const{nodeId:t}=e,n=Jr({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=C.useState(null),[c,m]=C.useState(null),w=o?.domReference||i,g=C.useRef(null),x=st();pe(()=>{w&&(g.current=w)},[w]);const d=$r({...e,elements:{...o,...c&&{reference:c}}}),R=C.useCallback(M=>{const O=K(M)?{getBoundingClientRect:()=>M.getBoundingClientRect(),getClientRects:()=>M.getClientRects(),contextElement:M}:M;m(O),d.refs.setReference(O)},[d.refs]),p=C.useCallback(M=>{(K(M)||M===null)&&(g.current=M,s(M)),(K(d.refs.reference.current)||d.refs.reference.current===null||M!==null&&!K(M))&&d.refs.setReference(M)},[d.refs]),E=C.useMemo(()=>({...d.refs,setReference:p,setPositionReference:R,domReference:g}),[d.refs,p,R]),T=C.useMemo(()=>({...d.elements,domReference:w}),[d.elements,w]),D=C.useMemo(()=>({...d,...r,refs:E,elements:T,nodeId:t}),[d,E,T,t,r]);return pe(()=>{r.dataRef.current.floatingContext=D;const M=x?.nodesRef.current.find(O=>O.id===t);M&&(M.context=D)}),C.useMemo(()=>({...d,context:D,refs:E,elements:T}),[d,E,T,D])}function Ke(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[vt]:s,[wt]:c,...m}=e;i=m}return{...n==="floating"&&{tabIndex:-1,[kr]:""},...i,...t.map(s=>{const c=s?s[n]:null;return typeof c=="function"?e?c(e):null:c}).concat(e).reduce((s,c)=>(c&&Object.entries(c).forEach(m=>{let[f,w]=m;if(!(o&&[vt,wt].includes(f)))if(f.indexOf("on")===0){if(r.has(f)||r.set(f,[]),typeof w=="function"){var g;(g=r.get(f))==null||g.push(w),s[f]=function(){for(var x,d=arguments.length,R=new Array(d),p=0;p<d;p++)R[p]=arguments[p];return(x=r.get(f))==null?void 0:x.map(E=>E(...R)).find(E=>E!==void 0)}}}else s[f]=w}),s),{})}}function Gr(e){e===void 0&&(e=[]);const t=e.map(c=>c?.reference),n=e.map(c=>c?.floating),r=e.map(c=>c?.item),o=C.useCallback(c=>Ke(c,e,"reference"),t),i=C.useCallback(c=>Ke(c,e,"floating"),n),s=C.useCallback(c=>Ke(c,e,"item"),r);return C.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s}),[o,i,s])}function zt(e,t,n){return n===void 0&&(n=!0),e.filter(o=>{var i;return o.parentId===t&&(!n||((i=o.context)==null?void 0:i.open))}).flatMap(o=>[o,...zt(e,o.id,n)])}function Dt(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let s=0,c=i-1;s<i;c=s++){const[m,f]=t[s]||[0,0],[w,g]=t[c]||[0,0];f>=r!=g>=r&&n<=(w-m)*(r-f)/(g-f)+m&&(o=!o)}return o}function eo(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function to(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,o={current:-1};let i=!1,s=null,c=null,m=typeof performance<"u"?performance.now():0;function f(g,x){const d=performance.now(),R=d-m;if(s===null||c===null||R===0)return s=g,c=x,m=d,null;const p=g-s,E=x-c,D=Math.sqrt(p*p+E*E)/R;return s=g,c=x,m=d,D}const w=g=>{let{x,y:d,placement:R,elements:p,onClose:E,nodeId:T,tree:D}=g;return function(O){function S(){G(o),E()}if(G(o),!p.domReference||!p.floating||R==null||x==null||d==null)return;const{clientX:j,clientY:B}=O,I=[j,B],W=qr(O),P=O.type==="mouseleave",A=ze(p.floating,W),F=ze(p.domReference,W),L=p.domReference.getBoundingClientRect(),l=p.floating.getBoundingClientRect(),v=R.split("-")[0],h=x>l.right-l.width/2,u=d>l.bottom-l.height/2,a=eo(I,L),y=l.width>L.width,b=l.height>L.height,_=(y?L:l).left,$=(y?L:l).right,k=(b?L:l).top,V=(b?L:l).bottom;if(A&&(i=!0,!P))return;if(F&&(i=!1),F&&!P){i=!0;return}if(P&&K(O.relatedTarget)&&ze(p.floating,O.relatedTarget)||D&&zt(D.nodesRef.current,T).length)return;if(v==="top"&&d>=L.bottom-1||v==="bottom"&&d<=L.top+1||v==="left"&&x>=L.right-1||v==="right"&&x<=L.left+1)return S();let Y=[];switch(v){case"top":Y=[[_,L.top+1],[_,l.bottom-1],[$,l.bottom-1],[$,L.top+1]];break;case"bottom":Y=[[_,l.top+1],[_,L.bottom-1],[$,L.bottom-1],[$,l.top+1]];break;case"left":Y=[[l.right-1,V],[l.right-1,k],[L.left+1,k],[L.left+1,V]];break;case"right":Y=[[L.right-1,V],[L.right-1,k],[l.left+1,k],[l.left+1,V]];break}function X(U){let[q,H]=U;switch(v){case"top":{const z=[y?q+t/2:h?q+t*4:q-t*4,H+t+1],Z=[y?q-t/2:h?q+t*4:q-t*4,H+t+1],J=[[l.left,h||y?l.bottom-t:l.top],[l.right,h?y?l.bottom-t:l.top:l.bottom-t]];return[z,Z,...J]}case"bottom":{const z=[y?q+t/2:h?q+t*4:q-t*4,H-t],Z=[y?q-t/2:h?q+t*4:q-t*4,H-t],J=[[l.left,h||y?l.top+t:l.bottom],[l.right,h?y?l.top+t:l.bottom:l.top+t]];return[z,Z,...J]}case"left":{const z=[q+t+1,b?H+t/2:u?H+t*4:H-t*4],Z=[q+t+1,b?H-t/2:u?H+t*4:H-t*4];return[...[[u||b?l.right-t:l.left,l.top],[u?b?l.right-t:l.left:l.right-t,l.bottom]],z,Z]}case"right":{const z=[q-t,b?H+t/2:u?H+t*4:H-t*4],Z=[q-t,b?H-t/2:u?H+t*4:H-t*4],J=[[u||b?l.left+t:l.right,l.top],[u?b?l.left+t:l.right:l.left+t,l.bottom]];return[z,Z,...J]}}}if(!Dt([j,B],Y)){if(i&&!a)return S();if(!P&&r){const U=f(O.clientX,O.clientY);if(U!==null&&U<.1)return S()}Dt([j,B],X([x,d]))?!i&&r&&(o.current=window.setTimeout(S,40)):S()}}};return w.__options={blockPointerEvents:n},w}var no=(e,t,n)=>{switch(n){case"top-start":case"bottom-start":return{top:t,left:Ee};case"top-end":case"bottom-end":return{top:t,right:Ee};case"right-start":case"left-start":return{top:Ee,left:e};case"right-end":case"left-end":return{bottom:Ee,left:e};default:return{top:t,left:e}}},ro=C.forwardRef(function({x:e,y:t,placement:n,icon:r,width:o=xn,height:i=et},s){let c=n?.split("-")[0],m=Cn[c];return N.jsx("div",{ref:s,style:{display:"flex",width:o,height:i,position:"absolute",...no(e,t,n),[m]:`-${i}px`,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[c],transform:{top:"rotate(180deg)",bottom:"",left:"translateY(50%) rotate(90deg) translateX(50%)",right:"translateY(50%) rotate(-90deg) translateX(-50%)"}[c]},children:r??N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:o,height:i,viewBox:`0 0 ${o} ${i}`,fill:"none",children:N.jsx("path",{d:"M6.70711 0.707107C6.31658 0.316583 5.68342 0.316583 5.29289 0.707107L0 6L12 6L6.70711 0.707107Z",fill:on.semantic.color.surface})})})}),Kt=C.createContext({open:!1,onArrowChange:()=>{},onPlacementChange:()=>{},onMiddlewareChange:()=>{},floating:{},interactions:{}}),oo=({open:e,onArrowChange:t,onPlacementChange:n,onMiddlewareChange:r,floating:o,interactions:i,children:s})=>{let c=C.useMemo(()=>({open:e,onArrowChange:t,onPlacementChange:n,onMiddlewareChange:r,floating:o,interactions:i}),[e,t,n,r,o,i]);return N.jsx(Kt.Provider,{value:c,children:s})},Xt=()=>C.useContext(Kt),so=C.forwardRef(function({placement:e="bottom",offset:t,arrow:n,zIndex:r,middlewares:o,children:i,style:s,...c},m){let{open:f,floating:{refs:{setFloating:w,floating:g},floatingStyles:x,middlewareData:d},interactions:{getFloatingProps:R},onArrowChange:p,onPlacementChange:E,onMiddlewareChange:T}=Xt();C.useImperativeHandle(m,()=>g.current),C.useEffect(()=>{E(e)},[E,e]);let D=[];return o?.includes("flip")&&D.push(Ar()),o?.includes("shift")&&D.push(Or()),o?.includes("autoPlacement")&&D.push(Lr()),
1C.useEffect(()=>{T([Tr(t??{mainAxis:n?et:0}),...D])},[T,t,n,D]),f?N.jsxs("div",{ref:w,style:{animation:`${bn} 200ms ease-in-out forwards`,...x,...s,zIndex:r??void 0},...R(),...c,children:[i,n&&N.jsx(ro,{ref:p,x:d.arrow?.x,y:d.arrow?.y,placement:e,icon:n===!0?void 0:n.icon,width:n===!0?void 0:n.width,height:n===!0?void 0:n.height})]}):null}),io=C.forwardRef(function({children:e,asChild:t,...n},r){let o=t?Ge:"button",{floating:{refs:{setReference:i,reference:s}},interactions:{getReferenceProps:c}}=Xt();return C.useImperativeHandle(r,()=>s.current),N.jsx(o,{ref:i,...c(),...n,children:e})}),co="Popper.Trigger",lo="Popper.Content",ao="Popper.Portal",uo=function({defaultOpen:e=!1,open:t,onOpenChange:n,action:r="click",dismissible:o=!0,toggleable:i=!0,strategy:s="absolute",children:c}){let[m,f]=C.useState(null),[w,g]=C.useState("bottom"),[x,d]=C.useState([]),[R,p]=$t({value:t,defaultValue:e,onChange:n}),E=Qr({open:R,onOpenChange:p,placement:w,strategy:s,middleware:[m&&_r({element:m}),...x]}),T=Kr(E.context,{enabled:r==="click",toggle:i}),D=Zr(E.context,{enabled:o}),M=Vr(E.context,{enabled:r==="hover",handleClose:to()}),O=Gr([T,D,M]);return N.jsx(oo,{open:R,onArrowChange:f,onPlacementChange:g,onMiddlewareChange:d,floating:E,interactions:O,children:c})},ue=Object.assign(uo,{Trigger:io,Content:so,Portal:rn});ue.Trigger.displayName=co;ue.Content.displayName=lo;ue.Portal.displayName=ao;var Ut=C.createContext({onClose:()=>null}),fo=({onClose:e,children:t})=>{let n=C.useMemo(()=>({onClose:e}),[e]);return N.jsx(Ut.Provider,{value:n,children:t})},mo=()=>C.useContext(Ut),Mt=4,Pt=C.forwardRef(function({title:e,description:t,placement:n,offset:r,arrow:o,closeButton:i=!1,className:s,children:c,zIndex:m,...f},w){let{onClose:g}=mo(),x=r??{mainAxis:o?et+Mt:Mt},d=c?"custom":"format";return N.jsx(ue.Content,{placement:n,offset:x,arrow:o,zIndex:m,children:N.jsxs("div",{ref:w,className:Qe(s,un({type:d})),...f,children:[e&&N.jsx(Be,{variant:"label-small-bold",asChild:typeof e!="string",children:e}),t&&N.jsx(Be,{variant:"body-small",color:"text-sub",asChild:typeof t!="string",children:t}),d==="custom"&&N.jsx(Be,{variant:"label-small",asChild:typeof c!="string",children:c}),i&&N.jsx("button",{type:"button",className:an,onClick:g,"aria-label":"Tooltip Close",children:N.jsx(sn,{})})]})})}),ho=C.forwardRef(function({portal:e,...t},n){return e?N.jsx(ue.Portal,{children:N.jsx(Pt,{ref:n,...t})}):N.jsx(Pt,{ref:n,...t})});vn(yn());var go=C.forwardRef(function({asChild:e,children:t,...n},r){return N.jsx(ue.Trigger,{ref:r,asChild:e,...n,children:t})}),po="Tooltip.Trigger",vo="Tooltip.Content",wo=C.forwardRef(function({defaultOpen:e,open:t,onOpenChange:n,action:r="hover",asChild:o,children:i,...s},c){let m=o?Ge:"div",[f,w]=$t({value:t,defaultValue:e,onChange:n});return N.jsx(ue,{open:f,onOpenChange:w,action:r,children:N.jsx(fo,{onClose:()=>w(!1),children:N.jsx(m,{ref:c,...s,children:i})})})}),Zt=Object.assign(wo,{Trigger:go,Content:ho});Zt.Trigger.displayName=po;Zt.Content.displayName=vo;var yo=Je({defaultClassName:"a433qg0",variantClassNames:{size:{medium:"a433qg1",large:"a433qg2",small:"a433qg3",tiny:"a433qg4"},variant:{primary:"a433qg5","primary-tonal":"a433qg6",secondary:"a433qg7",outlined:"a433qg8",critical:"a433qg9","critical-tonal":"a433qga",accent:"a433qgb","accent-tonal":"a433qgc"},rounded:{true:"a433qgd"},fullWidth:{true:"a433qge"}},defaultVariants:{size:"medium",variant:"primary"},compoundVariants:[]}),Do=C.forwardRef(function({variant:e="primary",tonal:t=!1,size:n="medium",rounded:r=!1,fullWidth:o=!1,disabled:i=!1,loading:s=!1,children:c,leadingIcon:m,trailingIcon:f,asChild:w,className:g,style:x,onClick:d,...R},p){let E=w?Ge:"button",T=t&&(S=>S==="primary"||S==="critical"||S==="accent")(e)?`${e}-tonal`:e,D=()=>s&&!m&&!f?N.jsx(Ie,{size:"xsmall"}):m?s?N.jsx(Ie,{size:"xsmall"}):m:null,M=()=>f?s?N.jsx(Ie,{size:"xsmall"}):f:null,O=()=>w?c:N.jsxs(N.Fragment,{children:[D(),c,M()]});return N.jsx(E,{ref:p,disabled:s||i,"aria-busy":s||void 0,"data-loading":s,className:Qe(yo({variant:T,size:n,rounded:r,fullWidth:o}),g),style:x,onClick:d,...R,children:O()})});export{Do as O,Ie as P,ho as c,go as d,Zt as y};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.