1import{a as st,u as kt}from"./DbDxC6Mu.js";import{_ as Ct,o as Q,c as ye,l as Ke,G as Pt,T as jt,D as ie,t as De,H as Ze,I as Dt,q as St,y as Bt,K as Se,m as _,p as be,J as $t,L as Rt,Y as Qe,Z as we,s as Tt,j as Lt}from"./YWdxp45w.js";import{g as _e}from"./Btm7OnVM.js";const Mt={wrapper:"relative inline-flex items-center justify-center flex-shrink-0",background:"bg-gray-100 dark:bg-gray-800",rounded:"rounded-full",text:"font-medium leading-none text-gray-900 dark:text-white truncate",placeholder:"font-medium leading-none text-gray-500 dark:text-gray-400 truncate",size:{"3xs":"h-4 w-4 text-[8px]","2xs":"h-5 w-5 text-[10px]",xs:"h-6 w-6 text-xs",sm:"h-8 w-8 text-sm",md:"h-10 w-10 text-base",lg:"h-12 w-12 text-lg",xl:"h-14 w-14 text-xl","2xl":"h-16 w-16 text-2xl","3xl":"h-20 w-20 text-3xl"},chip:{base:"absolute rounded-full ring-1 ring-white dark:ring-gray-900 flex items-center justify-center text-white dark:text-gray-900 font-medium",background:"bg-{color}-500 dark:bg-{color}-400",position:{"top-right":"top-0 right-0","bottom-right":"bottom-0 right-0","top-left":"top-0 left-0","bottom-left":"bottom-0 left-0"},size:{"3xs":"h-[4px] min-w-[4px] text-[4px] p-px","2xs":"h-[5px] min-w-[5px] text-[5px] p-px",xs:"h-1.5 min-w-[0.375rem] text-[6px] p-px",sm:"h-2 min-w-[0.5rem] text-[7px] p-0.5",md:"h-2.5 min-w-[0.625rem] text-[8px] p-0.5",lg:"h-3 min-w-[0.75rem] text-[10px] p-0.5",xl:"h-3.5 min-w-[0.875rem] text-[11px] p-1","2xl":"h-4 min-w-[1rem] text-[12px] p-1","3xl":"h-5 min-w-[1.25rem] text-[14px] p-1"}},icon:{base:"text-gray-500 dark:text-gray-400 flex-shrink-0",size:{"3xs":"h-2 w-2","2xs":"h-2.5 w-2.5",xs:"h-3 w-3",sm:"h-4 w-4",md:"h-5 w-5",lg:"h-6 w-6",xl:"h-7 w-7","2xl":"h-8 w-8","3xl":"h-10 w-10"}},default:{size:"sm",icon:null,chipColor:null,chipPosition:"top-right"}},G=$t(Se.ui.strategy,Se.ui.avatar,Mt),Wt=St({components:{UIcon:st},inheritAttrs:!1,props:{as:{type:[String,Object],default:"img"},src:{type:[String,Boolean],default:null},alt:{type:String,default:null},text:{type:String,default:null},icon:{type:String,default:()=>G.default.icon},size:{type:String,default:()=>G.default.size,validator(e){return Object.keys(G.size).includes(e)}},chipColor:{type:String,default:()=>G.default.chipColor,validator(e){return["gray",...Se.ui.colors].includes(e)}},chipPosition:{type:String,default:()=>G.default.chipPosition,validator(e){return Object.keys(G.chip.position).includes(e)}},chipText:{type:[String,Number],default:null},imgClass:{type:String,default:""},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e){const{ui:t,attrs:r}=kt("avatar",Rt(e,"ui"),G),n=_(()=>typeof e.src=="boolean"?null:e.src),a=_(()=>(e.alt||"").split(" ").map(h=>h.charAt(0)).join("").substring(0,2)),o=_(()=>Qe(we(t.value.wrapper,(u.value||!n.value)&&t.value.background,t.value.rounded,t.value.size[e.size]),e.class)),f=_(()=>Qe(we(t.value.rounded,t.value.size[e.size]),e.imgClass)),i=_(()=>we(t.value.icon.base,t.value.icon.size[e.size])),s=_(()=>we(t.value.chip.base,t.value.chip.size[e.size],t.value.chip.position[e.chipPosition],t.value.chip.background.replaceAll("{color}",e.chipColor))),u=be(!1);Bt(()=>e.src,()=>{u.value&&(u.value=!1)});function l(){u.value=!0}return{ui:t,attrs:r,wrapperClass:o,imgClass:f,iconClass:i,chipClass:s,url:n,placeholder:a,error:u,onError:l}}});function zt(e,t,r,n,a,o){const f=st;return Q(),ye("span",{class:ie(e.wrapperClass)},[e.url&&!e.error?(Q(),Ke(jt(e.as),Pt({key:0,class:e.imgClass,alt:e.alt,src:e.url},e.attrs,{onError:e.onError}),null,16,["class","alt","src","onError"])):e.text?(Q(),ye("span",{key:1,class:ie(e.ui.text)},De(e.text),3)):e.icon?(Q(),Ke(f,{key:2,name:e.icon,class:ie(e.iconClass)},null,8,["name","class"])):e.placeholder?(Q(),ye("span",{key:3,class:ie(e.ui.placeholder)},De(e.placeholder),3)):Ze("",!0),e.chipColor?(Q(),ye("span",{key:4,class:ie(e.chipClass)},De(e.chipText),3)):Ze("",!0),Dt(e.$slots,"default")],2)}const Fr=Ct(Wt,[["render",zt]]);function $(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function K(e){var t=$(e).Element;return e instanceof t||e instanceof Element}function R(e){var t=$(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Re(e){if(typeof ShadowRoot>"u")return!1;var t=$(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}
vendor: 8,494 bytes, line 1
1var J=Math.max,Ee=Math.min,ee=Math.round;function Be(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function lt(){return!/^((?!chrome|android).)*safari/i.test(Be())}function te(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&R(e)&&(a=e.offsetWidth>0&&ee(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ee(n.height)/e.offsetHeight||1);var f=K(e)?$(e):window,i=f.visualViewport,s=!lt()&&r,u=(n.left+(s&&i?i.offsetLeft:0))/a,l=(n.top+(s&&i?i.offsetTop:0))/o,h=n.width/a,m=n.height/o;return{width:h,height:m,top:l,right:u+h,bottom:l+m,left:u,x:u,y:l}}function Te(e){var t=$(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Ht(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Vt(e){return e===$(e)||!R(e)?Te(e):Ht(e)}function H(e){return e?(e.nodeName||"").toLowerCase():null}function I(e){return((K(e)?e.ownerDocument:e.document)||window.document).documentElement}function Le(e){return te(I(e)).left+Te(e).scrollLeft}function V(e){return $(e).getComputedStyle(e)}function Me(e){var t=V(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function Nt(e){var t=e.getBoundingClientRect(),r=ee(t.width)/e.offsetWidth||1,n=ee(t.height)/e.offsetHeight||1;return r!==1||n!==1}function It(e,t,r){r===void 0&&(r=!1);var n=R(t),a=R(t)&&Nt(t),o=I(t),f=te(e,a,r),i={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!r)&&((H(t)!=="body"||Me(o))&&(i=Vt(t)),R(t)?(s=te(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):o&&(s.x=Le(o))),{x:f.left+i.scrollLeft-s.x,y:f.top+i.scrollTop-s.y,width:f.width,height:f.height}}function We(e){var t=te(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Ae(e){return H(e)==="html"?e:e.assignedSlot||e.parentNode||(Re(e)?e.host:null)||I(e)}function ft(e){return["html","body","#document"].indexOf(H(e))>=0?e.ownerDocument.body:R(e)&&Me(e)?e:ft(Ae(e))}function le(e,t){var r;t===void 0&&(t=[]);var n=ft(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=$(n),f=a?[o].concat(o.visualViewport||[],Me(n)?n:[]):n,i=t.concat(f);return a?i:i.concat(le(Ae(f)))}function qt(e){return["table","td","th"].indexOf(H(e))>=0}function et(e){return!R(e)||V(e).position==="fixed"?null:e.offsetParent}function Ft(e){var t=/firefox/i.test(Be()),r=/Trident/i.test(Be());if(r&&R(e)){var n=V(e);if(n.position==="fixed")return null}var a=Ae(e);for(Re(a)&&(a=a.host);R(a)&&["html","body"].indexOf(H(a))<0;){var o=V(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function ce(e){for(var t=$(e),r=et(e);r&&qt(r)&&V(r).position==="static";)r=et(r);return r&&(H(r)==="html"||H(r)==="body"&&V(r).position==="static")?t:r||Ft(e)||t}var S="top",M="bottom",W="right",B="left",ze="auto",pe=[S,M,W,B],re="start",ue="end",Ut="clippingParents",ut="viewport",se="popper",Xt="reference",tt=pe.reduce(function(e,t){return e.concat([t+"-"+re,t+"-"+ue])},[]),ct=[].concat(pe,[ze]).reduce(function(e,t){return e.concat([t,t+"-"+re,t+"-"+ue])},[]),Yt="beforeRead",Gt="read",Jt="afterRead",Kt="beforeMain",Zt="main",Qt="afterMain",_t="beforeWrite",er="write",tr="afterWrite",rr=[Yt,Gt,Jt,Kt,Zt,Qt,_t,er,tr];function nr(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var f=[].concat(o.requires||[],o.requiresIfExists||[]);f.forEach(function(i){if(!r.has(i)){var s=t.get(i);s&&a(s)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),n}function ar(e){var t=nr(e);return rr.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function or(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function ir(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}function sr(e,t){var r=$(e),n=I(e),a=r.visualViewport,o=n.clientWidth,f=n.clientHeight,i=0,s=0;if(a){o=a.width,f=a.height;var u=lt();(u||!u&&t==="fixed")&&(i=a.offsetLeft,s=a.offsetTop)}return{width:o,height:f,x:i+Le(e),y:s}}function lr(e){var t,r=I(e),n=Te(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=J(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),f=J(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),i=-n.scrollLeft+Le(e),s=-n.scrollTop;return V(a||r).direction==="rtl"&&(i+=J(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:f,x:i,y:s}}function pt(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Re(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function $e(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function fr(e,t){var r=te(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function rt(e,t,r){return t===ut?$e(sr(e,r)):K(t)?fr(t,r):$e(lr(I(e)))}function ur(e){var t=le(Ae(e)),r=["absolute","fixed"].indexOf(V(e).position)>=0,n=r&&R(e)?ce(e):e;return K(n)?t.filter(function(a){return K(a)&&pt(a,n)&&H(a)!=="body"}):[]}function cr(e,t,r,n){var a=t==="clippingParents"?ur(e):[].concat(t),o=[].concat(a,[r]),f=o[0],i=o.reduce(function(s,u){var l=rt(e,u,n);return s.top=J(l.top,s.top),s.right=Ee(l.right,s.right),s.bottom=Ee(l.bottom,s.bottom),s.left=J(l.left,s.left),s},rt(e,f,n));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function z(e){return e.split("-")[0]}function ne(e){return e.split("-")[1]}function He(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function vt(e){var t=e.reference,r=e.element,n=e.placement,a=n?z(n):null,o=n?ne(n):null,f=t.x+t.width/2-r.width/2,i=t.y+t.height/2-r.height/2,s;switch(a){case S:s={x:f,y:t.y-r.height};break;case M:s={x:f,y:t.y+t.height};break;case W:s={x:t.x+t.width,y:i};break;case B:s={x:t.x-r.width,y:i};break;default:s={x:t.x,y:t.y}}var u=a?He(a):null;if(u!=null){var l=u==="y"?"height":"width";switch(o){case re:s[u]=s[u]-(t[l]/2-r[l]/2);break;case ue:s[u]=s[u]+(t[l]/2-r[l]/2);break}}return s}function dt(){return{top:0,right:0,bottom:0,left:0}}function mt(e){return Object.assign({},dt(),e)}function ht(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}function Ve(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.strategy,f=o===void 0?e.strategy:o,i=r.boundary,s=i===void 0?Ut:i,u=r.rootBoundary,l=u===void 0?ut:u,h=r.elementContext,m=h===void 0?se:h,c=r.altBoundary,g=c===void 0?!1:c,d=r.padding,v=d===void 0?0:d,y=mt(typeof v!="number"?v:ht(v,pe)),b=m===se?Xt:se,E=e.rects.popper,p=e.elements[g?b:m],w=cr(K(p)?p:p.contextElement||I(e.elements.popper),s,l,f),x=te(e.elements.reference),O=vt({reference:x,element:E,placement:a}),C=$e(Object.assign({},E,O)),k=m===se?C:x,A={top:w.top-k.top+y.top,bottom:k.bottom-w.bottom+y.bottom,left:w.left-k.left+y.left,right:k.right-w.right+y.right},P=e.modifiersData.offset;if(m===se&&P){var T=P[a];Object.keys(A).forEach(function(j){var q=[W,M].indexOf(j)>=0?1:-1,F=[S,M].indexOf(j)>=0?"y":"x";A[j]+=T[F]*q})}return A}var nt={placement:"bottom",modifiers:[],strategy:"absolute"};function at(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function pr(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,a=t.defaultOptions,o=a===void 0?nt:a;return function(i,s,u){u===void 0&&(u=o);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},nt,o),modifiersData:{},elements:{reference:i,popper:s},attributes:{},styles:{}},h=[],m=!1,c={state:l,setOptions:function(y){var b=typeof y=="function"?y(l.options):y;d(),l.options=Object.assign({},o,l.options,b),l.scrollParents={reference:K(i)?le(i):i.contextElement?le(i.contextElement):[],popper:le(s)};var E=ar(ir([].concat(n,l.options.modifiers)));return l.orderedModifiers=E.filter(function(p){return p.enabled}),g(),c.update()}
vendor: 8,644 bytes, line 1
1,forceUpdate:function(){if(!m){var y=l.elements,b=y.reference,E=y.popper;if(at(b,E)){l.rects={reference:It(b,ce(E),l.options.strategy==="fixed"),popper:We(E)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(A){return l.modifiersData[A.name]=Object.assign({},A.data)});for(var p=0;p<l.orderedModifiers.length;p++){if(l.reset===!0){l.reset=!1,p=-1;continue}var w=l.orderedModifiers[p],x=w.fn,O=w.options,C=O===void 0?{}:O,k=w.name;typeof x=="function"&&(l=x({state:l,options:C,name:k,instance:c})||l)}}}},update:or(function(){return new Promise(function(v){c.forceUpdate(),v(l)})}),destroy:function(){d(),m=!0}};if(!at(i,s))return c;c.setOptions(u).then(function(v){!m&&u.onFirstUpdate&&u.onFirstUpdate(v)});function g(){l.orderedModifiers.forEach(function(v){var y=v.name,b=v.options,E=b===void 0?{}:b,p=v.effect;if(typeof p=="function"){var w=p({state:l,name:y,instance:c,options:E}),x=function(){};h.push(w||x)}})}function d(){h.forEach(function(v){return v()}),h=[]}return c}}var xe={passive:!0};function vr(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,f=n.resize,i=f===void 0?!0:f,s=$(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(l){l.addEventListener("scroll",r.update,xe)}),i&&s.addEventListener("resize",r.update,xe),function(){o&&u.forEach(function(l){l.removeEventListener("scroll",r.update,xe)}),i&&s.removeEventListener("resize",r.update,xe)}}const gt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:vr,data:{}};function dr(e){var t=e.state,r=e.name;t.modifiersData[r]=vt({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const mr={name:"popperOffsets",enabled:!0,phase:"read",fn:dr,data:{}};var hr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gr(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:ee(r*a)/a||0,y:ee(n*a)/a||0}}function ot(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,f=e.offsets,i=e.position,s=e.gpuAcceleration,u=e.adaptive,l=e.roundOffsets,h=e.isFixed,m=f.x,c=m===void 0?0:m,g=f.y,d=g===void 0?0:g,v=typeof l=="function"?l({x:c,y:d}):{x:c,y:d};c=v.x,d=v.y;var y=f.hasOwnProperty("x"),b=f.hasOwnProperty("y"),E=B,p=S,w=window;if(u){var x=ce(r),O="clientHeight",C="clientWidth";if(x===$(r)&&(x=I(r),V(x).position!=="static"&&i==="absolute"&&(O="scrollHeight",C="scrollWidth")),x=x,a===S||(a===B||a===W)&&o===ue){p=M;var k=h&&x===w&&w.visualViewport?w.visualViewport.height:x[O];d-=k-n.height,d*=s?1:-1}if(a===B||(a===S||a===M)&&o===ue){E=W;var A=h&&x===w&&w.visualViewport?w.visualViewport.width:x[C];c-=A-n.width,c*=s?1:-1}}var P=Object.assign({position:i},u&&hr),T=l===!0?gr({x:c,y:d},$(r)):{x:c,y:d};if(c=T.x,d=T.y,s){var j;return Object.assign({},P,(j={},j[p]=b?"0":"",j[E]=y?"0":"",j.transform=(w.devicePixelRatio||1)<=1?"translate("+c+"px, "+d+"px)":"translate3d("+c+"px, "+d+"px, 0)",j))}return Object.assign({},P,(t={},t[p]=b?d+"px":"",t[E]=y?c+"px":"",t.transform="",t))}function yr(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,f=o===void 0?!0:o,i=r.roundOffsets,s=i===void 0?!0:i,u={placement:z(t.placement),variation:ne(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ot(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:f,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ot(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const yt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:yr,data:{}};function wr(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!R(o)||!H(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(f){var i=a[f];i===!1?o.removeAttribute(f):o.setAttribute(f,i===!0?"":i)}))})}function xr(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],o=t.attributes[n]||{},f=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),i=f.reduce(function(s,u){return s[u]="",s},{});!R(a)||!H(a)||(Object.assign(a.style,i),Object.keys(o).forEach(function(s){a.removeAttribute(s)}))})}}const br={name:"applyStyles",enabled:!0,phase:"write",fn:wr,effect:xr,requires:["computeStyles"]};var Or=[gt,mr,yt,br],Er={left:"right",right:"left",bottom:"top",top:"bottom"};function Oe(e){return e.replace(/left|right|bottom|top/g,function(t){return Er[t]})}var Ar={start:"end",end:"start"};function it(e){return e.replace(/start|end/g,function(t){return Ar[t]})}function kr(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,f=r.padding,i=r.flipVariations,s=r.allowedAutoPlacements,u=s===void 0?ct:s,l=ne(n),h=l?i?tt:tt.filter(function(g){return ne(g)===l}):pe,m=h.filter(function(g){return u.indexOf(g)>=0});m.length===0&&(m=h);var c=m.reduce(function(g,d){return g[d]=Ve(e,{placement:d,boundary:a,rootBoundary:o,padding:f})[z(d)],g},{});return Object.keys(c).sort(function(g,d){return c[g]-c[d]})}function Cr(e){if(z(e)===ze)return[];var t=Oe(e);return[it(e),t,it(t)]}function Pr(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,f=r.altAxis,i=f===void 0?!0:f,s=r.fallbackPlacements,u=r.padding,l=r.boundary,h=r.rootBoundary,m=r.altBoundary,c=r.flipVariations,g=c===void 0?!0:c,d=r.allowedAutoPlacements,v=t.options.placement,y=z(v),b=y===v,E=s||(b||!g?[Oe(v)]:Cr(v)),p=[v].concat(E).reduce(function(Z,N){return Z.concat(z(N)===ze?kr(t,{placement:N,boundary:l,rootBoundary:h,padding:u,flipVariations:g,allowedAutoPlacements:d}):N)},[]),w=t.rects.reference,x=t.rects.popper,O=new Map,C=!0,k=p[0],A=0;A<p.length;A++){var P=p[A],T=z(P),j=ne(P)===re,q=[S,M].indexOf(T)>=0,F=q?"width":"height",D=Ve(t,{placement:P,boundary:l,rootBoundary:h,altBoundary:m,padding:u}),L=q?j?W:B:j?M:S;w[F]>x[F]&&(L=Oe(L));var ve=Oe(L),U=[];if(o&&U.push(D[T]<=0),i&&U.push(D[L]<=0,D[ve]<=0),U.every(function(Z){return Z})){k=P,C=!1;break}O.set(P,U)}if(C)for(var de=g?3:1,ke=function(N){var oe=p.find(function(he){var X=O.get(he);if(X)return X.slice(0,N).every(function(Ce){return Ce})});if(oe)return k=oe,"break"},ae=de;ae>0;ae--){var me=ke(ae);if(me==="break")break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}}const jr={name:"flip",enabled:!0,phase:"main",fn:Pr,requiresIfExists:["offset"],data:{_skip:!1}};function Dr(e,t,r){var n=z(e),a=[B,S].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,f=o[0],i=o[1];return f=f||0,i=(i||0)*a,[B,W].indexOf(n)>=0?{x:i,y:f}:{x:f,y:i}}function Sr(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,f=ct.reduce(function(l,h){return l[h]=Dr(h,t.rects,o),l},{}),i=f[t.placement],s=i.x,u=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=f}const Br={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Sr};function $r(e){return e==="x"?"y":"x"}function fe(e,t,r){return J(e,Ee(t,r))}function Rr(e,t,r){var n=fe(e,t,r);return n>r?r:n}function Tr(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=a===void 0?!0:a,f=r.altAxis,i=f===void 0?!1:f,s=r.boundary,u=r.rootBoundary,l=r.altBoundary,h=r.padding,m=r.tether,c=m===void 0?!0:m,g=r.tetherOffset,d=g===void 0?0:g,v=Ve(t,{boundary:s,rootBoundary:u,padding:h,altBoundary:l}),y=z(t.placement),b=ne(t.placement),E=!b,p=He(y),w=$r(p),x=t.modifiersData.popperOffsets,O=t.rects.reference,C=t.rects.popper,k=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,A=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(x){if(o){var j,q=p==="y"?S:B,F=p==="y"?M:W,D=p==="y"?"height":"width",L=x[p],ve=L+v[q],U=L-v[F],de=c?-C[D]/2:0,ke=b===re?O[D]:C[D],ae=b===re?-C[D]:-O[D],me=t.elements.arrow,Z=c&&me?We(me):{width:0,height:0},N=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:dt(),oe=N[q],he=N[F],X=fe(0,O[D],Z[D]),Ce=E?O[D]
1/2-de-X-oe-A.mainAxis:ke-X-oe-A.mainAxis,wt=E?-O[D]/2+de+X+he+A.mainAxis:ae+X+he+A.mainAxis,Pe=t.elements.arrow&&ce(t.elements.arrow),xt=Pe?p==="y"?Pe.clientTop||0:Pe.clientLeft||0:0,Ne=(j=P?.[p])!=null?j:0,bt=L+Ce-Ne-xt,Ot=L+wt-Ne,Ie=fe(c?Ee(ve,bt):ve,L,c?J(U,Ot):U);x[p]=Ie,T[p]=Ie-L}if(i){var qe,Et=p==="x"?S:B,At=p==="x"?M:W,Y=x[w],ge=w==="y"?"height":"width",Fe=Y+v[Et],Ue=Y-v[At],je=[S,B].indexOf(y)!==-1,Xe=(qe=P?.[w])!=null?qe:0,Ye=je?Fe:Y-O[ge]-C[ge]-Xe+A.altAxis,Ge=je?Y+O[ge]+C[ge]-Xe-A.altAxis:Ue,Je=c&&je?Rr(Ye,Y,Ge):fe(c?Ye:Fe,Y,c?Ge:Ue);x[w]=Je,T[w]=Je-Y}t.modifiersData[n]=T}}const Lr={name:"preventOverflow",enabled:!0,phase:"main",fn:Tr,requiresIfExists:["offset"]};var Mr=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,mt(typeof t!="number"?t:ht(t,pe))};function Wr(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,f=r.modifiersData.popperOffsets,i=z(r.placement),s=He(i),u=[B,W].indexOf(i)>=0,l=u?"height":"width";if(!(!o||!f)){var h=Mr(a.padding,r),m=We(o),c=s==="y"?S:B,g=s==="y"?M:W,d=r.rects.reference[l]+r.rects.reference[s]-f[s]-r.rects.popper[l],v=f[s]-r.rects.reference[s],y=ce(o),b=y?s==="y"?y.clientHeight||0:y.clientWidth||0:0,E=d/2-v/2,p=h[c],w=b-m[l]-h[g],x=b/2-m[l]/2+E,O=fe(p,x,w),C=s;r.modifiersData[n]=(t={},t[C]=O,t.centerOffset=O-x,t)}}function zr(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||pt(t.elements.popper,a)&&(t.elements.arrow=a))}const Hr={name:"arrow",enabled:!0,phase:"main",fn:Wr,effect:zr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},Vr=pr({defaultModifiers:[...Or,Br,jr,Lr,yt,gt,Hr]});function Ur({locked:e=!1,overflowPadding:t=8,offsetDistance:r=8,offsetSkid:n=0,gpuAcceleration:a=!0,adaptive:o=!0,scroll:f=!0,resize:i=!0,arrow:s=!1,placement:u,strategy:l},h){const m=be(null),c=be(null),g=be(null);return Tt(()=>{Lt(d=>{if(!c.value||!m.value)return;const v=_e(c),y=_e(m);if(!(v instanceof HTMLElement)||!y)return;const b={modifiers:[{name:"flip",enabled:!e},{name:"preventOverflow",options:{padding:t}},{name:"offset",options:{offset:[n,r]}},{name:"computeStyles",options:{adaptive:o,gpuAcceleration:a}},{name:"eventListeners",options:{scroll:f,resize:i}},{name:"arrow",enabled:s}]};u&&(b.placement=u),l&&(b.strategy=l),g.value=Vr(y,v,b),d(g.value.destroy)})}),[m,c,g]}export{Fr as _,Ur as u};
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.