1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,37963,e=>{"use strict";function t(e,t,n){return e.slice((n-1)*t,n*t)}function n(e,t,r="en-US",o=!0){if(!t)return new Intl.NumberFormat(r,{minimumFractionDigits:2*!o,maximumFractionDigits:2*!o}).format(e);try{return new Intl.NumberFormat(r,{style:"currency",currency:t,minimumFractionDigits:2*!o,maximumFractionDigits:2*!o}).format(e)}catch{return new Intl.NumberFormat(r,{minimumFractionDigits:2*!o,maximumFractionDigits:2*!o}).format(e)+` ${t}`}}e.s(["buildQueryString",0,e=>{if(!e||0===Object.keys(e).length)return"";let t=new URLSearchParams;Object.entries(e).forEach(([e,n])=>{if(null!=n&&""!==n){if(Array.isArray(n))return void n.forEach(n=>{null!=n&&""!==n&&t.append(e,String(n))});if("object"==typeof n)return void t.append(e,JSON.stringify(n));t.append(e,String(n))}});let n=t.toString();return n?`?${n}`:""},"createSlides",0,(e,t)=>{let n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n},"createSlug",0,e=>e?e.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,""):"","formatCurrency",()=>n,"getRootDomain",0,e=>e.split(".").reverse().splice(0,2).reverse().join("."),"paginate",()=>t])},43489,53760,58950,e=>{"use strict";e.i(47167);var t=e.i(71645);function n(){return"u">typeof window}function r(e){return l(e)?(e.nodeName||"").toLowerCase():"#document"}function o(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function i(e){var t;return null==(t=(l(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function l(e){return!!n()&&(e instanceof Node||e instanceof o(e).Node)}function u(e){return!!n()&&(e instanceof Element||e instanceof o(e).Element)}function a(e){return!!n()&&(e instanceof HTMLElement||e instanceof o(e).HTMLElement)}function c(e){return!(!n()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof o(e).ShadowRoot)}let s=new Set(["inline","contents"]);function f(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=R(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!s.has(o)}let d=new Set(["table","td","th"]),m=[":popover-open",":modal"];function p(e){return m.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let v=["transform","translate","scale","rotate","perspective"],g=["transform","translate","scale","rotate","perspective","filter"],h=["paint","layout","strict","content"];function y(e){let t=w(),n=u(e)?R(e):e;return v.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||g.some(e=>(n.willChange||"").includes(e))||h.some(e=>(n.contain||"").includes(e))}function w(){return!("u"<typeof CSS)&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let b=new Set(["html","body","#document"]);function x(e){return b.has(r(e))}function R(e){return o(e).getComputedStyle(e)}function E(e){return u(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function k(e){if("html"===r(e))return e;let t=e.assignedSlot||e.parentNode||c(e)&&e.host||i(e);return c(t)?t.host:t}function C(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=k(t);return x(n)?t.ownerDocument?t.ownerDocument.body:t.body:a(n)&&f(n)?n:e(n)}(e),l=i===(null==(r=e.ownerDocument)?void 0:r.body),u=o(i);if(l){let e=L(u);return t.concat(u,u.visualViewport||[],f(i)?i:[],e&&n?C(e):[])}return t.concat(i,C(i,[],n))}function L(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}let T=["top","right","bottom","left"],S=T.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),A=Math.min,M=Math.max,P=Math.round,I=Math.floor,O=e=>({x:e,y:e}),D={left:"right",right:"left",bottom:"top",top:"bottom"},N={start:"end",end:"start"};function F(e,t){return"function"==typeof e?e(t):e}function j(e){return e.split("-")[0]}function W(e){return e.split("-")[1]}function B(e){return"x"===e?"y":"x"}function _(e){return"y"===e?"height":"width"}let H=new Set(["top","bottom"]);function U(e){return H.has(j(e))?"y":"x"}
1function V(e,t,n){void 0===n&&(n=!1);let r=W(e),o=B(U(e)),i=_(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=$(l)),[l,$(l)]}function K(e){return e.replace(/start|end/g,e=>N[e])}let q=["left","right"],z=["right","left"],X=["top","bottom"],Y=["bottom","top"];function $(e){return e.replace(/left|right|bottom|top/g,e=>D[e])}function G(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function J(e){let{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}}var Q='input:not([inert]):not([inert] *),select:not([inert]):not([inert] *),textarea:not([inert]):not([inert] *),a[href]:not([inert]):not([inert] *),button:not([inert]):not([inert] *),[tabindex]:not(slot):not([inert]):not([inert] *),audio[controls]:not([inert]):not([inert] *),video[controls]:not([inert]):not([inert] *),[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *),details>summary:first-of-type:not([inert]):not([inert] *),details:not([inert]):not([inert] *)',Z="u"<typeof Element,ee=Z?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,et=!Z&&Element.prototype.getRootNode?function(e){var t;return null==e||null==(t=e.getRootNode)?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},en=function(e,t){void 0===t&&(t=!0);var n,r=null==e||null==(n=e.getAttribute)?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):en(e.parentNode))},er=function(e){var t,n=null==e||null==(t=e.getAttribute)?void 0:t.call(e,"contenteditable");return""===n||"true"===n},eo=function(e,t,n){if(en(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Q));return t&&ee.call(e,Q)&&r.unshift(e),r=r.filter(n)},ei=function(e,t,n){for(var r=[],o=Array.from(e);o.length;){var i=o.shift();if(!en(i,!1))if("SLOT"===i.tagName){var l=i.assignedElements(),u=ei(l.length?l:i.children,!0,n);
vendor: 4,885 bytes, line 1
1n.flatten?r.push.apply(r,u):r.push({scopeParent:i,candidates:u})}else{ee.call(i,Q)&&n.filter(i)&&(t||!e.includes(i))&&r.push(i);var a=i.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(i),c=!en(a,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(a&&c){var s=ei(!0===a?i.children:a.children,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:i,candidates:s})}else o.unshift.apply(o,i.children)}}return r},el=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},eu=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||er(e))&&!el(e)?0:e.tabIndex},ea=function(e,t){var n=eu(e);return n<0&&t&&!el(e)?0:n},ec=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},es=function(e){return"INPUT"===e.tagName},ef=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},ed=function(e){if(!e.name)return!0;var t,n=e.form||et(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("u">typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=ef(t,e.form);return!o||o===e},em=function(e){return es(e)&&"radio"===e.type&&!ed(e)},ep=function(e){var t,n,r,o,i,l,u,a=e&&et(e),c=null==(t=a)?void 0:t.host,s=!1;if(a&&a!==e)for(s=!!(null!=(n=c)&&null!=(r=n.ownerDocument)&&r.contains(c)||null!=e&&null!=(o=e.ownerDocument)&&o.contains(e));!s&&c;)s=!!(null!=(l=c=null==(i=a=et(c))?void 0:i.host)&&null!=(u=l.ownerDocument)&&u.contains(c));return s},ev=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},eg=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var o=ee.call(e,"details>summary:first-of-type")?e.parentElement:e;if(ee.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return ev(e)}else{if("function"==typeof r){for(var i=e;e;){var l=e.parentElement,u=et(e);if(l&&!l.shadowRoot&&!0===r(l))return ev(e);e=e.assignedSlot?e.assignedSlot:l||u===e.ownerDocument?l:u.host}e=i}if(ep(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},eh=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!ee.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1},ey=function(e,t){return!(t.disabled||es(t)&&"hidden"===t.type||eg(t,e)||"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some(function(e){return"SUMMARY"===e.tagName})||eh(t))},ew=function(e,t){return!(em(t)||0>eu(t))&&!!ey(e,t)},eb=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||!!(t>=0)},ex=function(e){var t=[],n=[];return e.forEach(function(e,r){var o=!!e.scopeParent,i=o?e.scopeParent:e,l=ea(i,o),u=o?ex(e.candidates):i;0===l?o?t.push.apply(t,u):t.push(i):n.push({documentOrder:r,tabIndex:l,item:e,isScope:o,content:u})}),n.sort(ec).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},eR=function(e,t){return ex((t=t||{}).getShadowRoot?ei([e],t.includeContainer,{filter:ew.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:eb}):eo(e,t.includeContainer,ew.bind(null,t)))},eE=function(e,t){return(t=t||{}).getShadowRoot?ei([e],t.includeContainer,{filter:ey.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):eo(e,t.includeContainer,ey.bind(null,t))},ek=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==ee.call(e,Q)&&ew(t,e)};function eC(){let e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function eL(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function eT(){return/apple/i.test(navigator.vendor)}function eS(){let e=/android/i;return e.test(eC())||e.test(eL())}function eA(){return eL().includes("jsdom/")}let eM="data-floating-ui-focusable",eP="ArrowLeft",eI="ArrowRight";function eO(e){let t=e.activeElement;for(;(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function eD(e,t){if(!e||!t)return!1;let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;
1if(n&&c(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function eN(e){return"composedPath"in e?e.composedPath()[0]:e.target}function eF(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function ej(e){return(null==e?void 0:e.ownerDocument)||document}function eW(e){return a(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function eB(e){return!!e&&"combobox"===e.getAttribute("role")&&eW(e)}function e_(e){return e?e.hasAttribute(eM)?e:e.querySelector("["+eM+"]")||e:null}function eH(e,t,n){return void 0===n&&(n=!0),e.filter(e=>{var r;return e.parentId===t&&(!n||(null==(r=e.context)?void 0:r.open))}).flatMap(t=>[t,...eH(e,t.id,n)])}function eU(e,t){var n;let r=[],o=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;o;){let t=e.find(e=>e.id===o);o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}function eV(e){e.preventDefault(),e.stopPropagation()}function eK(e){return 0===e.mozInputSource&&!!e.isTrusted||(eS()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function eq(e){return!eA()&&(!eS()&&0===e.width&&0===e.height||eS()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function ez(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var eX="u">typeof document?t.useLayoutEffect:function(){};function eY(e){let n=t.useRef(e);return eX(()=>{n.current=e}),n}let e$={...t}.useInsertionEffect||(e=>e());function eG(e){let n=t.useRef(()=>{});return e$(()=>{n.current=e}),t.useCallback(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)},[])}function eJ(e,t,n){return Math.floor(e/t)!==n}function eQ(e,t){return t<0||t>=e.current.length}function eZ(e,t){return e1(e,{disabledIndices:t})}function e0(e,t){return e1(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function e1(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:i=1}=void 0===t?{}:t,l=n;do l+=r?-i:i;while(l>=0&&l<=e.current.length-1&&e2(e,l,o))return l}function e2(e,t,n){if("function"==typeof n)return n(t);if(n)return n.includes(t);let r=e.current[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}let e4=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function e3(e,t){let n=eR(e,e4()),r=n.length;if(0===r)return;let o=eO(ej(e)),i=n.indexOf(o);return n[-1===i?1===t?0:r-1:i+t]}function e5(e){return e3(ej(e).body,1)||e}function e9(e){return e3(ej(e).body,-1)||e}function e6(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!eD(n,r)}function e8(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}var e7=e.i(43476),te=e.i(74080);function tt(e,t,n){let r,{reference:o,floating:i}=e,l=U(t),u=B(U(t)),a=_(u),c=j(t),s="y"===l,f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,m=o[a]/2-i[a]/2;switch(c){case"top":r={x:f,y:o.y-i.height};break;case"bottom":r={x:f,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:d};break;case"left":r={x:o.x-i.width,y:d};break;default:r={x:o.x,y:o.y}}switch(W(t)){case"start":r[u]-=m*(n&&s?-1:1);break;case"end":r[u]+=m*(n&&s?-1:1)}return r}let tn=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,u=i.filter(Boolean),a=await (null==l.isRTL?void 0:l.isRTL(t)),c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:f}=tt(c,r,a),d=r,m={},p=0;for(let n=0;n<u.length;n++){let{name:i,fn:v}=u[n],{x:g,y:h,data:y,reset:w}=await v({x:s,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:m,rects:c,platform:l,elements:{reference:e,floating:t}});s=null!=g?g:s,f=null!=h?h:f,m={...m,[i]:{...m[i],...y}},w&&p<=50&&(p++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(c=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:s,y:f}=tt(c,d,a)),n=-1)}return{x:s,y:f,placement:d,strategy:o,middlewareData:m}};async function tr(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:u,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:s="viewport",elementContext:f="floating",altBoundary:d=!1,padding:m=0}=F(t,e),p=G(m),v=u[d?"floating"===f?"reference":"floating":f],g=J(await i.getClippingRect
1({element:null==(n=await (null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(u.floating)),boundary:c,rootBoundary:s,strategy:a})),h="floating"===f?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,y=await (null==i.getOffsetParent?void 0:i.getOffsetParent(u.floating)),w=await (null==i.isElement?void 0:i.isElement(y))&&await (null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=J(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:h,offsetParent:y,strategy:a}):h);return{top:(g.top-b.top+p.top)/w.y,bottom:(b.bottom-g.bottom+p.bottom)/w.y,left:(g.left-b.left+p.left)/w.x,right:(b.right-g.right+p.right)/w.x}}function to(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ti(e){return T.some(t=>e[t]>=0)}function tl(e){let t=A(...e.map(e=>e.left)),n=A(...e.map(e=>e.top));return{x:t,y:n,width:M(...e.map(e=>e.right))-t,height:M(...e.map(e=>e.bottom))-n}}let tu=new Set(["left","top"]);async function ta(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=j(n),u=W(n),a="y"===U(n),c=tu.has(l)?-1:1,s=i&&a?-1:1,f=F(t,e),{mainAxis:d,crossAxis:m,alignmentAxis:p}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return u&&"number"==typeof p&&(m="end"===u?-1*p:p),a?{x:m*s,y:d*c}:{x:d*c,y:m*s}}function tc(e){let t=R(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=a(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,u=P(n)!==i||P(r)!==l;return u&&(n=i,r=l),{width:n,height:r,$:u}}function ts(e){return u(e)?e:e.contextElement}function tf(e){let t=ts(e);if(!a(t))return O(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=tc(t),l=(i?P(n.width):n.width)/r,u=(i?P(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),u&&Number.isFinite(u)||(u=1),{x:l,y:u}}let td=O(0);function tm(e){let t=o(e);return w()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:td}function tp(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let l=e.getBoundingClientRect(),a=ts(e),c=O(1);t&&(r?u(r)&&(c=tf(r)):c=tf(e));let s=(void 0===(i=n)&&(i=!1),r&&(!i||r===o(a))&&i)?tm(a):O(0),f=(l.left+s.x)/c.x,d=(l.top+s.y)/c.y,m=l.width/c.x,p=l.height/c.y;if(a){let e=o(a),t=r&&u(r)?o(r):r,n=e,i=L(n);for(;i&&r&&t!==n;){let e=tf(i),t=i.getBoundingClientRect(),r=R(i),l=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,u=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;f*=e.x,d*=e.y,m*=e.x,p*=e.y,f+=l,d+=u,i=L(n=o(i))}}return J({width:m,height:p,x:f,y:d})}function tv(e,t){let n=E(e).scrollLeft;return t?t.left+n:tp(i(e)).left+n}function tg(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-tv(e,n),y:n.top+t.scrollTop}}let th=new Set(["absolute","fixed"]);function ty(e,t,n){var r;let l;if("viewport"===t)l=function(e,t){let n=o(e),r=i(e),l=n.visualViewport,u=r.clientWidth,a=r.clientHeight,c=0,s=0;if(l){u=l.width,a=l.height;let e=w();(!e||e&&"fixed"===t)&&(c=l.offsetLeft,s=l.offsetTop)}let f=tv(r);if(f<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(r.clientWidth-t.clientWidth-o);i<=25&&(u-=i)}else f<=25&&(u+=f);return{width:u,height:a,x:c,y:s}}(e,n);else if("document"===t){let t,n,o,u,a,c,s;r=i(e),t=i(r),n=E(r),o=r.ownerDocument.body,u=M(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=M(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),c=-n.scrollLeft+tv(r),s=-n.scrollTop,"rtl"===R(o).direction&&(c+=M(t.clientWidth,o.clientWidth)-u),l={width:u,height:a,x:c,y:s}}else if(u(t)){let e,r,o,i,u,c;r=(e=tp(t,!0,"fixed"===n)).top+t.clientTop,o=e.left+t.clientLeft,i=a(t)?tf(t):O(1),u=t.clientWidth*i.x,c=t.clientHeight*i.y,l={width:u,height:c,x:o*i.x,y:r*i.y}}else{let n=tm(e);l={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return J(l)}function tw(e){return"static"===R(e).position}function tb(e,t){if(!a(e)||"fixed"===R(e).position)return null;if(t)return t(e);let n=e.offsetParent;return i(e)===n&&(n=n.ownerDocument.body),n}function tx(e,t){var n;let i=o(e);if(p(e))return i;if(!a(e)){let t=k(e);for(;t&&!x(t);){if(u(t)&&!tw(t))return t;t=k(t)}return i}let l=tb(e,t);for(;l&&(n=l,d.has(r(n)))&&tw(l);)l=tb(l,t);return l&&x(l)&&tw(l)&&!y(l)?i:l||function(e){let t=k(e);for(;a(t)&&!x(t);){if(y(t))return t;if(p(t))break;t=k(t)}return null}(e)||i}let tR=async function(e){let t=this.getOffsetParent||tx,n=this.getDimensions,o=await n(e.floating);return{reference:function(e,t,n){let o=a(t),l=i(t),u="fixed"===n,c=tp(e,!0,u,t),s={scrollLeft:0,scrollTop:0},d=O(0);if(o||!o&&!u)if(("body"!==r(t)||f(l))&&(s=E(t)),o){let e=tp(t,!0,u,t);d.x=e.x+t.clientLeft,d.y=e.y+t.clientTop}else l&&(d.x=tv(l));u&&!o&&l&&(d.x=tv(l));let m=!l||o||u?O(0):tg(l,s);return{x:c.left+s.scrollLeft-d.x-m.x,y:c.top+s.scrollTop-d.y-m.y,width:c.width,height:c.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},tE={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:l}=e,u="fixed"===l,c=i(o),s=!!t&&p(t.floating);if(o===c||s&&u)return n;let d={scrollLeft:0,scrollTop:0},m=O(1),v=O(0),g=a(o);if((g||!g&&!u)&&(("body"!==r(o)||f(c))&&(d=E(o)),a(o))){let e=tp(o);m=tf(o),v.x=e.x+o.clientLeft,v.y=e.y+o.clientTop}let h=!c||g||u?O(0):tg(c,d);return{width:n.width*m.x,height:n.height*m.y,x:n.x*m.x-d.scrollLeft*m.x+v.x+h.x,y:n.y*m.y-d.scrollTop*m.y+v.y+h.y}},getDocumentElement:i,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e,l=[..."clippingAncestors"===n?p(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let o=C(e,[],!1).filter(e=>u(e)&&"body"!==r(e)),i=null,l="fixed"===R(e).position,a=l?k(e):e;for(;u(a)&&!x(a);){let t=R(a),n=y(a);n||"fixed"!==t.position||(i=null),(l?!n&&!i:!n&&"static"===t.position&&!!i&&th.has(i.position)||f(a)&&!n&&function e(t,n){let r=k(t);return!(r===n||!u(r)||x(r))&&("fixed"===R(r).position||e(r,n))}(e,a))?o=o.filter(e=>e!==a):i=t,a=k(a)}return t.set(e,o),o}(t,this._c):[].concat(n),o],a=l[0],c=l.reduce((e,n)=>{let r=ty(t,n,i);return e.top=M(r.top,e.top),e.right=A(r.right,e.right),e.bottom=A(r.bottom,e.bottom),e.left=M(r.left,e.left),e},ty(t,a,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:tx,getElementRects:tR,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=tc(e);return{width:t,height:n}},getScale:tf,isElement:u,isRTL:function(e){return"rtl"===R(e).direction}};function tk(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function tC(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:l=!0,ancestorResize:u=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,f=ts(e),d=l||u?[...f?C(f):[],...C(t)]:[];
1d.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let m=f&&c?function(e,t){let n,r=null,o=i(e);function l(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function i(u,a){void 0===u&&(u=!1),void 0===a&&(a=1),l();let c=e.getBoundingClientRect(),{left:s,top:f,width:d,height:m}=c;if(u||t(),!d||!m)return;let p={rootMargin:-I(f)+"px "+-I(o.clientWidth-(s+d))+"px "+-I(o.clientHeight-(f+m))+"px "+-I(s)+"px",threshold:M(0,A(1,a))||1},v=!0;function g(t){let r=t[0].intersectionRatio;if(r!==a){if(!v)return i();r?i(!1,r):n=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==r||tk(c,e.getBoundingClientRect())||i(),v=!1}try{r=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,p)}r.observe(e)}(!0),l}(f,n):null,p=-1,v=null;a&&(v=new ResizeObserver(e=>{let[r]=e;r&&r.target===f&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),n()}),f&&!s&&v.observe(f),v.observe(t));let g=s?tp(e):null;return s&&function t(){let r=tp(e);g&&!tk(g,r)&&n(),g=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{l&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=v)||e.disconnect(),v=null,s&&cancelAnimationFrame(o)}}let tL=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:u}=t,a=await ta(t,e);return l===(null==(n=u.offset)?void 0:n.placement)&&null!=(r=u.arrow)&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:l}}}}},tT=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,o,i;let{rects:l,middlewareData:u,placement:a,platform:c,elements:s}=t,{crossAxis:f=!1,alignment:d,allowedPlacements:m=S,autoAlignment:p=!0,...v}=F(e,t),g=void 0!==d||m===S?((i=d||null)?[...m.filter(e=>W(e)===i),...m.filter(e=>W(e)!==i)]:m.filter(e=>j(e)===e)).filter(e=>!i||W(e)===i||!!p&&K(e)!==e):m,h=await tr(t,v),y=(null==(n=u.autoPlacement)?void 0:n.index)||0,w=g[y];if(null==w)return{};let b=V(w,l,await (null==c.isRTL?void 0:c.isRTL(s.floating)));if(a!==w)return{reset:{placement:g[0]}};let x=[h[j(w)],h[b[0]],h[b[1]]],R=[...(null==(r=u.autoPlacement)?void 0:r.overflows)||[],{placement:w,overflows:x}],E=g[y+1];if(E)return{data:{index:y+1,overflows:R},reset:{placement:E}};let k=R.map(e=>{let t=W(e.placement);return[e.placement,t&&f?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),C=(null==(o=k.filter(e=>e[2].slice(0,W(e[0])?2:3).every(e=>e<=0))[0])?void 0:o[0])||k[0][0];return C!==a?{data:{index:y+1,overflows:R},reset:{placement:C}}:{}}}},tS=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...a}=F(e,t),c={x:n,y:r},s=await tr(t,a),f=U(j(o)),d=B(f),m=c[d],p=c[f];if(i){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=m+s[e],r=m-s[t];m=M(n,A(m,r))}if(l){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=p+s[e],r=p-s[t];p=M(n,A(p,r))}let v=u.fn({...t,[d]:m,[f]:p});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[d]:i,[f]:l}}}}}},tA=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,l;
1let u,a,c,{placement:s,middlewareData:f,rects:d,initialPlacement:m,platform:p,elements:v}=t,{mainAxis:g=!0,crossAxis:h=!0,fallbackPlacements:y,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:x=!0,...R}=F(e,t);if(null!=(n=f.arrow)&&n.alignmentOffset)return{};let E=j(s),k=U(m),C=j(m)===m,L=await (null==p.isRTL?void 0:p.isRTL(v.floating)),T=y||(C||!x?[$(m)]:(u=$(m),[K(m),u,K(u)])),S="none"!==b;!y&&S&&T.push(...(a=W(m),c=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?z:q;return t?q:z;case"left":case"right":return t?X:Y;default:return[]}}(j(m),"start"===b,L),a&&(c=c.map(e=>e+"-"+a),x&&(c=c.concat(c.map(K)))),c));let A=[m,...T],M=await tr(t,R),P=[],I=(null==(r=f.flip)?void 0:r.overflows)||[];if(g&&P.push(M[E]),h){let e=V(s,d,L);P.push(M[e[0]],M[e[1]])}if(I=[...I,{placement:s,overflows:P}],!P.every(e=>e<=0)){let e=((null==(o=f.flip)?void 0:o.index)||0)+1,t=A[e];if(t&&("alignment"!==h||k===U(t)||I.every(e=>U(e.placement)!==k||e.overflows[0]>0)))return{data:{index:e,overflows:I},reset:{placement:t}};let n=null==(i=I.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(w){case"bestFit":{let e=null==(l=I.filter(e=>{if(S){let t=U(e.placement);return t===k||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=m}if(s!==n)return{reset:{placement:n}}}return{}}}},tM=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let o,i,{placement:l,rects:u,platform:a,elements:c}=t,{apply:s=()=>{},...f}=F(e,t),d=await tr(t,f),m=j(l),p=W(l),v="y"===U(l),{width:g,height:h}=u.floating;"top"===m||"bottom"===m?(o=m,i=p===(await (null==a.isRTL?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(i=m,o="end"===p?"top":"bottom");let y=h-d.top-d.bottom,w=g-d.left-d.right,b=A(h-d[o],y),x=A(g-d[i],w),R=!t.middlewareData.shift,E=b,k=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(k=w),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(E=y),R&&!p){let e=M(d.left,0),t=M(d.right,0),n=M(d.top,0),r=M(d.bottom,0);v?k=g-2*(0!==e||0!==t?e+t:M(d.left,d.right)):E=h-2*(0!==n||0!==r?n+r:M(d.top,d.bottom))}await s({...t,availableWidth:k,availableHeight:E});let C=await a.getDimensions(c.floating);return g!==C.width||h!==C.height?{reset:{rects:!0}}:{}}}},tP=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=F(e,t);switch(r){case"referenceHidden":{let e=to(await tr(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ti(e)}}}case"escaped":{let e=to(await tr(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ti(e)}}}default:return{}}}}},tI=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:l,elements:u,middlewareData:a}=t,{element:c,padding:s=0}=F(e,t)||{};if(null==c)return{};let f=G(s),d={x:n,y:r},m=B(U(o)),p=_(m),v=await l.getDimensions(c),g="y"===m,h=g?"clientHeight":"clientWidth",y=i.reference[p]+i.reference[m]-d[m]-i.floating[p],w=d[m]-i.reference[m],b=await (null==l.getOffsetParent?void 0:l.getOffsetParent(c)),x=b?b[h]:0;x&&await (null==l.isElement?void 0:l.isElement(b))||(x=u.floating[h]||i.floating[p]);let R=x/2-v[p]/2-1,E=A(f[g?"top":"left"],R),k=A(f[g?"bottom":"right"],R),C=x-v[p]-k,L=x/2-v[p]/2+(y/2-w/2),T=M(E,A(L,C)),S=!a.arrow&&null!=W(o)&&L!==T&&i.reference[p]/2-(L<E?E:k)-v[p]/2<0,P=S?L<E?L-E:L-C:0;return{[m]:d[m]+P,data:{[m]:T,centerOffset:L-T-P,...S&&{alignmentOffset:P}},reset:S}}}),tO=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:n,elements:r,rects:o,platform:i,strategy:l}=t,{padding:u=2,x:a,y:c}=F(e,t),s=Array.from(await (null==i.getClientRects?void 0:i.getClientRects(r.reference))||[]),f=function(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let o=t[e];!r||o.y-r.y>r.height/2?n.push([o]):n[n.length-1].push(o),r=o}return n.map(e=>J(tl(e)))}(s),d=J(tl(s)),m=G(u),p=await i.getElementRects({reference:{getBoundingClientRect:function(){if(2===f.length&&f[0].left>f[1].right&&null!=a&&null!=c)return f.find(e=>a>e.left-m.left&&a<e.right+m.right&&c>e.top-m.top&&c<e.bottom+m.bottom)||d;if(f.length>=2){if("y"===U(n)){let e=f[0],t=f[f.length-1],r="top"===j(n),o=e.top,i=t.bottom,l=r?e.left:t.left,u=r?e.right:t.right;return{top:o,bottom:i,left:l,right:u,width:u-l,height:i-o,x:l,y:o}}
1let e="left"===j(n),t=M(...f.map(e=>e.right)),r=A(...f.map(e=>e.left)),o=f.filter(n=>e?n.left===r:n.right===t),i=o[0].top,l=o[o.length-1].bottom;return{top:i,bottom:l,left:r,right:t,width:t-r,height:l-i,x:r,y:i}}return d}},floating:r.floating,strategy:l});return o.reference.x!==p.reference.x||o.reference.y!==p.reference.y||o.reference.width!==p.reference.width||o.reference.height!==p.reference.height?{reset:{rects:p}}:{}}}},tD=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:u=0,mainAxis:a=!0,crossAxis:c=!0}=F(e,t),s={x:n,y:r},f=U(o),d=B(f),m=s[d],p=s[f],v=F(u,t),g="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(a){let e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+g.mainAxis,n=i.reference[d]+i.reference[e]-g.mainAxis;m<t?m=t:m>n&&(m=n)}if(c){var h,y;let e="y"===d?"width":"height",t=tu.has(j(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(h=l.offset)?void 0:h[f])||0)+(t?0:g.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:(null==(y=l.offset)?void 0:y[f])||0)-(t?g.crossAxis:0);p<n?p=n:p>r&&(p=r)}return{[d]:m,[f]:p}}}},tN=(e,t,n)=>{let r=new Map,o={platform:tE,...n},i={...o.platform,_c:r};return tn(e,t,{...o,platform:i})};e.s(["arrow",()=>tI,"autoPlacement",()=>tT,"autoUpdate",()=>tC,"computePosition",()=>tN,"detectOverflow",()=>tr,"flip",()=>tA,"hide",()=>tP,"inline",()=>tO,"limitShift",()=>tD,"offset",()=>tL,"shift",()=>tS,"size",()=>tM],53760);var tF="u">typeof document?t.useLayoutEffect:function(){};function tj(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!tj(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!tj(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function tW(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function tB(e,t){let n=tW(e);return Math.round(t*n)/n}function t_(e){let n=t.useRef(e);return tF(()=>{n.current=e}),n}function tH(e){void 0===e&&(e={});let{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:l,floating:u}={},transform:a=!0,whileElementsMounted:c,open:s}=e,[f,d]=t.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[m,p]=t.useState(o);tj(m,o)||p(o);let[v,g]=t.useState(null),[h,y]=t.useState(null),w=t.useCallback(e=>{e!==E.current&&(E.current=e,g(e))},[]),b=t.useCallback(e=>{e!==k.current&&(k.current=e,y(e))},[]),x=l||v,R=u||h,E=t.useRef(null),k=t.useRef(null),C=t.useRef(f),L=null!=c,T=t_(c),S=t_(i),A=t_(s),M=t.useCallback(()=>{if(!E.current||!k.current)return;let e={placement:n,strategy:r,middleware:m};S.current&&(e.platform=S.current),tN(E.current,k.current,e).then(e=>{let t={...e,isPositioned:!1!==A.current};P.current&&!tj(C.current,t)&&(C.current=t,te.flushSync(()=>{d(t)}))})},[m,n,r,S,A]);tF(()=>{!1===s&&C.current.isPositioned&&(C.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[s]);let P=t.useRef(!1);tF(()=>(P.current=!0,()=>{P.current=!1}),[]),tF(()=>{if(x&&(E.current=x),R&&(k.current=R),x&&R){if(T.current)return T.current(x,R,M);M()}},[x,R,M,T,L]);let I=t.useMemo(()=>({reference:E,floating:k,setReference:w,setFloating:b}),[w,b]),O=t.useMemo(()=>({reference:x,floating:R}),[x,R]),D=t.useMemo(()=>{let e={position:r,left:0,top:0};if(!O.floating)return e;let t=tB(O.floating,f.x),n=tB(O.floating,f.y);return a?{...e,transform:"translate("+t+"px, "+n+"px)",...tW(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,a,O.floating,f.x,f.y]);return t.useMemo(()=>({...f,update:M,refs:I,elements:O,floatingStyles:D}),[f,M,I,O,D])}let tU=(e,t)=>({...tL(e),options:[e,t]}),tV=(e,t)=>({...tS(e),options:[e,t]}),tK=(e,t)=>({...tA(e),options:[e,t]}),tq=(e,t)=>({...tT(e),options:[e,t]}),tz=(e,t)=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?tI({element:n.current,padding:r}).fn(t):{}:n?tI({element:n,padding:r}).fn(t):{}},options:[e,t]});function tX(e){let n=t.useRef(void 0),r=t.useCallback(t=>{let n=e.map(e=>{if(null!=e){if("function"==typeof e){let n=e(t);return"function"==typeof n?n:()=>{e(null)}}return e.current=t,()=>{e.current=null}}});return()=>
1{n.forEach(e=>null==e?void 0:e())}},e);return t.useMemo(()=>e.every(e=>null==e)?null:e=>{n.current&&(n.current(),n.current=void 0),null!=e&&(n.current=r(e))},e)}function tY(e,t){let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}e.s(["arrow",()=>tz,"autoPlacement",()=>tq,"flip",()=>tK,"offset",()=>tU,"shift",()=>tV,"useFloating",()=>tH],58950);let t$=t.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function tG(e){let{children:n,elementsRef:r,labelsRef:o}=e,[i,l]=t.useState(()=>new Set),u=t.useCallback(e=>{l(t=>new Set(t).add(e))},[]),a=t.useCallback(e=>{l(t=>{let n=new Set(t);return n.delete(e),n})},[]),c=t.useMemo(()=>{let e=new Map;return Array.from(i.keys()).sort(tY).forEach((t,n)=>{e.set(t,n)}),e},[i]);return(0,e7.jsx)(t$.Provider,{value:t.useMemo(()=>({register:u,unregister:a,map:c,elementsRef:r,labelsRef:o}),[u,a,c,r,o]),children:n})}function tJ(e){void 0===e&&(e={});let{label:n}=e,{register:r,unregister:o,map:i,elementsRef:l,labelsRef:u}=t.useContext(t$),[a,c]=t.useState(null),s=t.useRef(null),f=t.useCallback(e=>{if(s.current=e,null!==a&&(l.current[a]=e,u)){var t;let r=void 0!==n;u.current[a]=r?n:null!=(t=null==e?void 0:e.textContent)?t:null}},[a,l,u,n]);return eX(()=>{let e=s.current;if(e)return r(e),()=>{o(e)}},[r,o]),eX(()=>{let e=s.current?i.get(s.current):null;null!=e&&c(e)},[i]),t.useMemo(()=>({ref:f,index:null==a?-1:a}),[a,f])}let tQ="active",tZ="selected",t0="ArrowLeft",t1="ArrowRight",t2="ArrowUp",t4="ArrowDown",t3={...t},t5=!1,t9=0,t6=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+t9++,t8=t3.useId||function(){let[e,n]=t.useState(()=>t5?t6():void 0);return eX(()=>{null==e&&n(t6())},[]),t.useEffect(()=>{t5=!0},[]),e},t7=t.createContext(null),ne=t.createContext(null),nt=()=>{var e;return(null==(e=t.useContext(t7))?void 0:e.id)||null};function nn(e){return"data-floating-ui-"+e}function nr(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}let no=nn("safe-polygon");function ni(e,t,n){if(n&&!ez(n))return 0;if("number"==typeof e)return e;if("function"==typeof e){let n=e();return"number"==typeof n?n:null==n?void 0:n[t]}return null==e?void 0:e[t]}function nl(e){return"function"==typeof e?e():e}function nu(e,n){void 0===n&&(n={});let{open:r,onOpenChange:o,dataRef:i,events:l,elements:a}=e,{enabled:c=!0,delay:s=0,handleClose:f=null,mouseOnly:d=!1,restMs:m=0,move:p=!0}=n,v=t.useContext(ne),g=nt(),h=eY(f),y=eY(s),w=eY(r),b=eY(m),x=t.useRef(),R=t.useRef(-1),E=t.useRef(),k=t.useRef(-1),C=t.useRef(!0),L=t.useRef(!1),T=t.useRef(()=>{}),S=t.useRef(!1),A=eG(()=>{var e;let t=null==(e=i.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t});t.useEffect(()=>{if(c)return l.on("openchange",e),()=>{l.off("openchange",e)};function e(e){let{open:t}=e;t||(nr(R),nr(k),C.current=!0,S.current=!1)}},[c,l]),t.useEffect(()=>{if(!c||!h.current||!r)return;function e(e){A()&&o(!1,e,"hover")}let t=ej(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[a.floating,r,o,c,h,A]);let M=t.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");let r=ni(y.current,"close",x.current);r&&!E.current?(nr(R),R.current=window.setTimeout(()=>o(!1,e,n),r)):t&&(nr(R),o(!1,e,n))},[y,o]),P=eG(()=>{T.current(),E.current=void 0}),I=eG(()=>{if(L.current){let e=ej(a.floating).body;e.style.pointerEvents="",e.removeAttribute(no),L.current=!1}}),O=eG(()=>!!i.current.openEvent&&["click","mousedown"].includes(i.current.openEvent.type));t.useEffect(()=>{if(c&&u(a.domReference)){let o=a.domReference,i=a.floating;return r&&o.addEventListener("mouseleave",n),p&&o.addEventListener("mousemove",e,{once:!0}),o.addEventListener("mouseenter",e),o.addEventListener("mouseleave",t),i&&(i.addEventListener("mouseleave",n),i.addEventListener("mouseenter",l),i.addEventListener("mouseleave",s)),()=>{r&&o.removeEventListener("mouseleave",n),p&&o.removeEventListener("mousemove",e),o.removeEventListener("mouseenter",e),o.removeEventListener("mouseleave",t),i&&(i.removeEventListener("mouseleave",n),i.removeEventListener("mouseenter",l),i.removeEventListener("mouseleave",s))}}function e(e){if(nr(R),C.current=!1,d&&!ez(x.current)||nl(b.current)>0&&!ni(y.current,"open"))return;let t=ni(y.current,"open",x.current);t?R.current=window.setTimeout(()=>{w.current||o(!0,e,"hover")},t):r||o(!0,e,"hover")}function t(e){if(O())return void I();T.current();let t=ej(a.floating);if(nr(k),S.current=!1,h.current&&i.current.floatingContext){r||nr(R),E.current=h.current({...i.current.floatingContext,tree:v,x:e.clientX,y:e.clientY,onClose(){I(),P(),O()||M(e,!0,"safe-polygon")}});let n=E.current;t.addEventListener("mousemove",n),T.current=()=>{t.removeEventListener("mousemove",n)};return}"touch"===x.current&&eD(a.floating,e.relatedTarget)||M(e)}function n(e){O()||i.current.floatingContext&&(null==h.current||h.current({...i.current.floatingContext,tree:v,x:e.clientX,y:e.clientY,onClose(){I(),P(),O()||M(e)}})(e))}function l(){nr(R)}function s(e){O()||M(e,!1)}},[a,c,e,d,p,M,P,I,o,r,w,v,y,h,i,O,b]),eX(()=>{var e,t;if(c&&r&&null!=(e=h.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&A()){L.current=!0;let e=a.floating;if(u(a.domReference)&&e){let n=ej(a.floating).body;n.setAttribute(no,"");let r=a.domReference,o=null==v||null==(t=v.nodesRef.current.find(e=>e.id===g))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}},[c,r,g,a,v,h,A]),eX(()=>{r||(x.current=void 0,S.current=!1,P(),I())},[r,P,I]),t.useEffect(()=>()=>{P(),nr(R),nr(k),I()},[c,a.domReference,P,I]);let D=t.useMemo(()=>{function e(e){x.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function n(){C.current||w.current||o(!0,t,"hover")}d&&!ez(x.current)||r||0===nl(b.current)||S.current&&e.movementX**2+e.movementY**2<2||(nr(k),"touch"===x.current?n():(S.current=!0,k.current=window.setTimeout(n,nl(b.current))))}}},[d,o,r,w,b]);return t.useMemo(()=>c?{reference:D}:{},[c,D])}let na=0;function nc(e,t){void 0===t&&(t={});let{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(na);let i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():na=requestAnimationFrame(i)}function ns(e,t){if(!e||!t)return!1;let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;
1if(n&&c(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}let nf={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function nd(e){return"inert"===e?nf.inert:"aria-hidden"===e?nf["aria-hidden"]:nf.none}let nm=new WeakSet,np={},nv=0,ng=e=>e&&(e.host||ng(e.parentNode));function nh(e,t,n){var o,i,l;let u,a,c,s,f,d,m;void 0===t&&(t=!1),void 0===n&&(n=!1);let p=((null==(o=e[0])?void 0:o.ownerDocument)||document).body;return i=e.concat(Array.from(p.querySelectorAll('[aria-live],[role="status"],output'))),l=t,u="data-floating-ui-inert",a=n?"inert":l?"aria-hidden":null,c=i.map(e=>{if(p.contains(e))return e;let t=ng(e);return p.contains(t)?t:null}).filter(e=>null!=e),s=new Set,f=new Set(c),d=[],np[u]||(np[u]=new WeakMap),m=np[u],c.forEach(function e(t){!(!t||s.has(t))&&(s.add(t),t.parentNode&&e(t.parentNode))}),function e(t){!t||f.has(t)||[].forEach.call(t.children,t=>{if("script"!==r(t))if(s.has(t))e(t);else{let e=a?t.getAttribute(a):null,n=null!==e&&"false"!==e,r=nd(a),o=(r.get(t)||0)+1,i=(m.get(t)||0)+1;r.set(t,o),m.set(t,i),d.push(t),1===o&&n&&nm.add(t),1===i&&t.setAttribute(u,""),!n&&a&&t.setAttribute(a,"inert"===a?"":"true")}})}(p),s.clear(),nv++,()=>{d.forEach(e=>{let t=nd(a),n=(t.get(e)||0)-1,r=(m.get(e)||0)-1;t.set(e,n),m.set(e,r),n||(!nm.has(e)&&a&&e.removeAttribute(a),nm.delete(e)),r||e.removeAttribute(u)}),--nv||(nf.inert=new WeakMap,nf["aria-hidden"]=new WeakMap,nf.none=new WeakMap,nm=new WeakSet,np={})}}let ny={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},nw=t.forwardRef(function(e,n){let[r,o]=t.useState();eX(()=>{eT()&&o("button")},[]);let i={ref:n,tabIndex:0,role:r,"aria-hidden":!r||void 0,[nn("focus-guard")]:"",style:ny};return(0,e7.jsx)("span",{...e,...i})}),nb=t.createContext(null),nx=nn("portal");function nR(e){let{children:n,id:r,root:o,preserveTabOrder:i=!0}=e,u=function(e){void 0===e&&(e={});let{id:n,root:r}=e,o=t8(),i=nE(),[u,a]=t.useState(null),c=t.useRef(null);return eX(()=>()=>{null==u||u.remove(),queueMicrotask(()=>{c.current=null})},[u]),eX(()=>{if(!o||c.current)return;let e=n?document.getElementById(n):null;if(!e)return;let t=document.createElement("div");t.id=o,t.setAttribute(nx,""),e.appendChild(t),c.current=t,a(t)},[n,o]),eX(()=>{if(null===r||!o||c.current)return;let e=r||(null==i?void 0:i.portalNode);e&&!l(e)&&(e=e.current),e=e||document.body;let t=null;n&&((t=document.createElement("div")).id=n,e.appendChild(t));let u=document.createElement("div");u.id=o,u.setAttribute(nx,""),(e=t||e).appendChild(u),c.current=u,a(u)},[n,r,o,i]),u}({id:r,root:o}),[a,c]=t.useState(null),s=t.useRef(null),f=t.useRef(null),d=t.useRef(null),m=t.useRef(null),p=null==a?void 0:a.modal,v=null==a?void 0:a.open,g=!!a&&!a.modal&&a.open&&i&&!!(o||u);return t.useEffect(()=>{if(u&&i&&!p)return u.addEventListener("focusin",e,!0),u.addEventListener("focusout",e,!0),()=>{u.removeEventListener("focusin",e,!0),u.removeEventListener("focusout",e,!0)};function e(e){u&&e6(e)&&("focusin"===e.type?e8:function(e){eR(e,e4()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})})(u)}},[u,i,p]),t.useEffect(()=>{!u||v||e8(u)},[v,u]),(0,e7.jsxs)(nb.Provider,{value:t.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:s,afterOutsideRef:f,beforeInsideRef:d,afterInsideRef:m,portalNode:u,setFocusManagerState:c}),[i,u]),children:[g&&u&&(0,e7.jsx)(nw,{"data-type":"outside",ref:s,onFocus:e=>{if(e6(e,u)){var t;null==(t=d.current)||t.focus()}else{let e=e9(a?a.domReference:null);null==e||e.focus()}}}),g&&u&&(0,e7.jsx)("span",{"aria-owns":u.id,style:ny}),u&&te.createPortal(n,u),g&&u&&(0,e7.jsx)(nw,{"data-type":"outside",ref:f,onFocus:e=>{if(e6(e,u)){var t;null==(t=m.current)||t.focus()}else{let t=e5(a?a.domReference:null);null==t||t.focus(),(null==a?void 0:a.closeOnFocusOut)&&(null==a||a.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}let nE=()=>t.useContext(nb);function nk(e){return t.useMemo(()=>t=>{e.forEach(e=>{e&&(e.current=t)})},e)}let nC=[];function nL(){nC=nC.filter(e=>e.isConnected)}function nT(){return nL(),nC[nC.length-1]}function nS(e,t){var n;if(!t.current.includes("floating")&&!(null!=(n=e.getAttribute("role"))&&n.includes("dialog")))return;let r=e4(),o=eE(e,r).filter(e=>{let t=e.getAttribute("data-tabindex")||"";return ek(e,r)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),i=e.getAttribute("tabindex");t.current.includes("floating")||0===o.length?"0"!==i&&e.setAttribute("tabindex","0"):("-1"!==i||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}let nA=t.forwardRef(function(e,t){return(0,e7.jsx)("button",{...e,type:"button",ref:t,tabIndex:-1,style:ny})});
1function nM(e){let{context:n,children:o,disabled:i=!1,order:l=["content"],guards:u=!0,initialFocus:c=0,returnFocus:s=!0,restoreFocus:f=!1,modal:d=!0,visuallyHiddenDismiss:m=!1,closeOnFocusOut:p=!0,outsideElementsInert:v=!1,getInsideElements:g=()=>[]}=e,{open:h,onOpenChange:y,events:w,dataRef:b,elements:{domReference:x,floating:R}}=n,E=eG(()=>{var e;return null==(e=b.current.floatingContext)?void 0:e.nodeId}),k=eG(g),C="number"==typeof c&&c<0,L=eB(x)&&C,T="u">typeof HTMLElement&&"inert"in HTMLElement.prototype,S=!T||u,A=!S||T&&v,M=eY(l),P=eY(c),I=eY(s),O=t.useContext(ne),D=nE(),N=t.useRef(null),F=t.useRef(null),j=t.useRef(!1),W=t.useRef(!1),B=t.useRef(-1),_=t.useRef(-1),H=null!=D,U=e_(R),V=eG(function(e){return void 0===e&&(e=U),e?eR(e,e4()):[]}),K=eG(e=>{let t=V(e);return M.current.map(e=>x&&"reference"===e?x:U&&"floating"===e?U:t).filter(Boolean).flat()});t.useEffect(()=>{if(i||!d)return;function e(e){if("Tab"===e.key){eD(U,eO(ej(U)))&&0===V().length&&!L&&eV(e);let t=K(),n=eN(e);"reference"===M.current[0]&&n===x&&(eV(e),e.shiftKey?nc(t[t.length-1]):nc(t[1])),"floating"===M.current[1]&&n===U&&e.shiftKey&&(eV(e),nc(t[0]))}}let t=ej(U);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[i,x,U,d,M,L,V,K]),t.useEffect(()=>{if(!i&&R)return R.addEventListener("focusin",e),()=>{R.removeEventListener("focusin",e)};function e(e){let t=eN(e),n=V().indexOf(t);-1!==n&&(B.current=n)}},[i,R,V]),t.useEffect(()=>{if(i||!p)return;function e(){W.current=!0,setTimeout(()=>{W.current=!1})}function t(e){let t=e.relatedTarget,n=e.currentTarget,r=eN(e);queueMicrotask(()=>{let o=E(),i=!(eD(x,t)||eD(R,t)||eD(t,R)||eD(null==D?void 0:D.portalNode,t)||null!=t&&t.hasAttribute(nn("focus-guard"))||O&&(eH(O.nodesRef.current,o).find(e=>{var n,r;return eD(null==(n=e.context)?void 0:n.elements.floating,t)||eD(null==(r=e.context)?void 0:r.elements.domReference,t)})||eU(O.nodesRef.current,o).find(e=>{var n,r,o;return[null==(n=e.context)?void 0:n.elements.floating,e_(null==(r=e.context)?void 0:r.elements.floating)].includes(t)||(null==(o=e.context)?void 0:o.elements.domReference)===t})));if(n===x&&U&&nS(U,M),f&&n!==x&&!(null!=r&&r.isConnected)&&eO(ej(U))===ej(U).body){a(U)&&U.focus();let e=B.current,t=V(),n=t[e]||t[t.length-1]||U;a(n)&&n.focus()}if(b.current.insideReactTree){b.current.insideReactTree=!1;return}(L||!d)&&t&&i&&!W.current&&t!==nT()&&(j.current=!0,y(!1,e,"focus-out"))})}let n=!!(!O&&D);function r(){nr(_),b.current.insideReactTree=!0,_.current=window.setTimeout(()=>{b.current.insideReactTree=!1})}if(R&&a(x))return x.addEventListener("focusout",t),x.addEventListener("pointerdown",e),R.addEventListener("focusout",t),n&&R.addEventListener("focusout",r,!0),()=>{x.removeEventListener("focusout",t),x.removeEventListener("pointerdown",e),R.removeEventListener("focusout",t),n&&R.removeEventListener("focusout",r,!0)}},[i,x,R,U,d,O,D,y,p,f,V,L,E,M,b]);let q=t.useRef(null),z=t.useRef(null),X=nk([q,null==D?void 0:D.beforeInsideRef]),Y=nk([z,null==D?void 0:D.afterInsideRef]);function $(e){return!i&&m&&d?(0,e7.jsx)(nA,{ref:"start"===e?N:F,onClick:e=>y(!1,e.nativeEvent),children:"string"==typeof m?m:"Dismiss"}):null}t.useEffect(()=>{var e,t;if(i||!R)return;let n=Array.from((null==D||null==(e=D.portalNode)?void 0:e.querySelectorAll("["+nn("portal")+"]"))||[]),r=[R,null==(t=(O?eU(O.nodesRef.current,E()):[]).find(e=>{var t;return eB((null==(t=e.context)?void 0:t.elements.domReference)||null)}))||null==(t=t.context)?void 0:t.elements.domReference,...n,...k(),N.current,F.current,q.current,z.current,null==D?void 0:D.beforeOutsideRef.current,null==D?void 0:D.afterOutsideRef.current,M.current.includes("reference")||L?x:null].filter(e=>null!=e),o=d||L?nh(r,!A,A):nh(r);return()=>{o()}},[i,x,R,d,M,D,L,S,A,O,E,k]),eX(()=>{if(i||!a(U))return;let e=eO(ej(U));queueMicrotask(()=>{let t=K(U),n=P.current,r=("number"==typeof n?t[n]:n.current)||U,o=eD(U,e);C||o||!h||nc(r,{preventScroll:r===U})})},[i,h,U,C,K,P]),eX(()=>{var e;if(i||!U)return;let t=ej(U);function n(e){let{reason:t,event:n,nested:r}=e;if(["hover","safe-polygon"].includes(t)&&"mouseleave"===n.type&&(j.current=!0),"outside-press"===t)if(r)j.current=!1;else if(eK(n)||eq(n))j.current=!1;else{let e=!1;document.createElement("div").focus({get preventScroll(){return e=!0,!1}}),e?j.current=!1:j.current=!0}}e=eO(t),nL(),e&&"body"!==r(e)&&(nC.push(e),nC.length>20&&(nC=nC.slice(-20))),w.on("openchange",n);let o=t.createElement("span");return o.setAttribute("tabindex","-1"),o.setAttribute("aria-hidden","true"),Object.assign(o.style,ny),H&&x&&x.insertAdjacentElement("afterend",o),()=>{w.off("openchange",n);let e=eO(t),r=eD(R,e)||O&&eH(O.nodesRef.current,E(),!1).some(t=>{var n;return eD(null==(n=t.context)?void 0:n.elements.floating,e)}),i=function(){if("boolean"==typeof I.current){let e=x||nT();return e&&e.isConnected?e:o}return I.current.current||o}();queueMicrotask(()=>{let n,l=ek(i,n=e4())?i:eR(i,n)[0]||i;I.current&&!j.current&&a(l)&&(l===e||e===t.body||r)&&l.focus({preventScroll:!0}),o.remove()})}},[i,R,U,I,b,w,O,H,x,E]),t.useEffect(()=>(queueMicrotask(()=>{j.current=!1}),()=>{queueMicrotask(nL)}),[i]),eX(()=>
1{if(!i&&D)return D.setFocusManagerState({modal:d,closeOnFocusOut:p,open:h,onOpenChange:y,domReference:x}),()=>{D.setFocusManagerState(null)}},[i,D,d,h,y,p,x]),eX(()=>{i||U&&nS(U,M)},[i,U,M]);let G=!i&&S&&(!d||!L)&&(H||d);return(0,e7.jsxs)(e7.Fragment,{children:[G&&(0,e7.jsx)(nw,{"data-type":"inside",ref:X,onFocus:e=>{if(d){let e=K();nc("reference"===l[0]?e[0]:e[e.length-1])}else if(null!=D&&D.preserveTabOrder&&D.portalNode)if(j.current=!1,e6(e,D.portalNode)){let e=e5(x);null==e||e.focus()}else{var t;null==(t=D.beforeOutsideRef.current)||t.focus()}}}),!L&&$("start"),o,$("end"),G&&(0,e7.jsx)(nw,{"data-type":"inside",ref:Y,onFocus:e=>{if(d)nc(K()[0]);else if(null!=D&&D.preserveTabOrder&&D.portalNode)if(p&&(j.current=!0),e6(e,D.portalNode)){let e=e9(x);null==e||e.focus()}else{var t;null==(t=D.afterOutsideRef.current)||t.focus()}}})]})}let nP=0,nI="--floating-ui-scrollbar-width",nO=()=>{},nD=t.forwardRef(function(e,t){let{lockScroll:n=!1,...r}=e;return eX(()=>{if(n)return 1==++nP&&(nO=function(){let e=eC(),t=/iP(hone|ad|od)|iOS/.test(e)||"MacIntel"===e&&navigator.maxTouchPoints>1,n=document.body.style,r=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",o=window.innerWidth-document.documentElement.clientWidth,i=n.left?parseFloat(n.left):window.scrollX,l=n.top?parseFloat(n.top):window.scrollY;if(n.overflow="hidden",n.setProperty(nI,o+"px"),o&&(n[r]=o+"px"),t){var u,a;let e=(null==(u=window.visualViewport)?void 0:u.offsetLeft)||0;Object.assign(n,{position:"fixed",top:-(l-Math.floor((null==(a=window.visualViewport)?void 0:a.offsetTop)||0))+"px",left:-(i-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(n,{overflow:"",[r]:""}),n.removeProperty(nI),t&&(Object.assign(n,{position:"",top:"",left:"",right:""}),window.scrollTo(i,l))}}()),()=>{0==--nP&&nO()}},[n]),(0,e7.jsx)("div",{ref:t,...r,style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}})});function nN(e){return a(e.target)&&"BUTTON"===e.target.tagName}function nF(e,n){void 0===n&&(n={});let{open:r,onOpenChange:o,dataRef:i,elements:{domReference:l}}=e,{enabled:u=!0,event:c="click",toggle:s=!0,ignoreMouse:f=!1,keyboardHandlers:d=!0,stickIfOpen:m=!0}=n,p=t.useRef(),v=t.useRef(!1),g=t.useMemo(()=>({onPointerDown(e){p.current=e.pointerType},onMouseDown(e){let t=p.current;0!==e.button||"click"===c||ez(t,!0)&&f||(r&&s&&(!i.current.openEvent||!m||"mousedown"===i.current.openEvent.type)?o(!1,e.nativeEvent,"click"):(e.preventDefault(),o(!0,e.nativeEvent,"click")))},onClick(e){let t=p.current;if("mousedown"===c&&p.current){p.current=void 0;return}ez(t,!0)&&f||(r&&s&&(!i.current.openEvent||!m||"click"===i.current.openEvent.type)?o(!1,e.nativeEvent,"click"):o(!0,e.nativeEvent,"click"))},onKeyDown(e){p.current=void 0,!(e.defaultPrevented||!d||nN(e))&&(" "!==e.key||eW(l)||(e.preventDefault(),v.current=!0),a(e.target)&&"A"===e.target.tagName||"Enter"!==e.key||(r&&s?o(!1,e.nativeEvent,"click"):o(!0,e.nativeEvent,"click")))},onKeyUp(e){!(e.defaultPrevented||!d||nN(e)||eW(l))&&" "===e.key&&v.current&&(v.current=!1,r&&s?o(!1,e.nativeEvent,"click"):o(!0,e.nativeEvent,"click"))}}),[i,l,c,f,d,o,r,m,s]);return t.useMemo(()=>u?{reference:g}:{},[u,g])}let nj={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},nW={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},nB=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function n_(e,n){void 0===n&&(n={});let{open:r,onOpenChange:o,elements:i,dataRef:l}=e,{enabled:c=!0,escapeKey:s=!0,outsidePress:f=!0,outsidePressEvent:d="pointerdown",referencePress:m=!1,referencePressEvent:p="pointerdown",ancestorScroll:v=!1,bubbles:g,capture:h}=n,y=t.useContext(ne),b=eG("function"==typeof f?f:()=>!1),E="function"==typeof f?b:f,L=t.useRef(!1),{escapeKey:T,outsidePress:S}=nB(g),{escapeKey:A,outsidePress:M}=nB(h),P=t.useRef(!1),I=eG(e=>{var t;if(!r||!c||!s||"Escape"!==e.key||P.current)return;let n=null==(t=l.current.floatingContext)?void 0:t.nodeId,i=y?eH(y.nodesRef.current,n):[];if(!T&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}o(!1,"nativeEvent"in e?e.nativeEvent:e,"escape-key")}),O=eG(e=>{var t;let n=()=>{var t;I(e),null==(t=eN(e))||t.removeEventListener("keydown",n)};null==(t=eN(e))||t.addEventListener("keydown",n)}),D=eG(e=>{var t;let n=l.current.insideReactTree;l.current.insideReactTree=!1;let r=L.current;if(L.current=!1,"click"===d&&r||n||"function"==typeof E&&!E(e))return;let c=eN(e),s="["+nn("inert")+"]",f=ej(i.floating).querySelectorAll(s),m=u(c)?c:null;for(;m&&!x(m);){let e=k(m);if(x(e)||!u(e))break;m=e}if(f.length&&u(c)&&!c.matches("html,body")&&!eD(c,i.floating)&&Array.from(f).every(e=>!eD(m,e)))return;if(a(c)&&j){let t=x(c),n=R(c),r=/auto|scroll/,o=t||r.test(n.overflowX),i=t||r.test(n.overflowY),l=o&&c.clientWidth>0&&c.scrollWidth>c.clientWidth,u=i&&c.clientHeight>0&&c.scrollHeight>c.clientHeight,a="rtl"===n.direction,s=u&&(a?e.offsetX<=c.offsetWidth-c.clientWidth:e.offsetX>c.clientWidth),f=l&&e.offsetY>c.clientHeight;if(s||f)return}let p=null==(t=l.current.floatingContext)?void 0:t.nodeId,v=y&&eH(y.nodesRef.current,p).some(t=>{var n;return eF(e,null==(n=t.context)?void 0:n.elements.floating)});if(eF(e,i.floating)||eF(e,i.domReference)||v)return;let g=y?eH(y.nodesRef.current,p):[];if(g.length>0){let e=!0;if(g.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}o(!1,e,"outside-press")}),N=eG(e=>{var t;let n=()=>{var t;D(e),null==(t=eN(e))||t.removeEventListener(d,n)};null==(t=eN(e))||t.addEventListener(d,n)});t.useEffect(()=>{if(!r||!c)return;l.current.__escapeKeyBubbles=T,l.current.__outsidePressBubbles=S;let e=-1;function t(e){o(!1,e,"ancestor-scroll")}function n(){window.clearTimeout(e),P.current=!0}function a(){e=window.setTimeout(()=>{P.current=!1},5*!!w())}let f=ej(i.floating);
1s&&(f.addEventListener("keydown",A?O:I,A),f.addEventListener("compositionstart",n),f.addEventListener("compositionend",a)),E&&f.addEventListener(d,M?N:D,M);let m=[];return v&&(u(i.domReference)&&(m=C(i.domReference)),u(i.floating)&&(m=m.concat(C(i.floating))),!u(i.reference)&&i.reference&&i.reference.contextElement&&(m=m.concat(C(i.reference.contextElement)))),(m=m.filter(e=>{var t;return e!==(null==(t=f.defaultView)?void 0:t.visualViewport)})).forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{s&&(f.removeEventListener("keydown",A?O:I,A),f.removeEventListener("compositionstart",n),f.removeEventListener("compositionend",a)),E&&f.removeEventListener(d,M?N:D,M),m.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[l,i,s,E,d,r,o,v,c,T,S,I,A,O,D,M,N]),t.useEffect(()=>{l.current.insideReactTree=!1},[l,E,d]);let F=t.useMemo(()=>({onKeyDown:I,...m&&{[nj[p]]:e=>{o(!1,e.nativeEvent,"reference-press")},..."click"!==p&&{onClick(e){o(!1,e.nativeEvent,"reference-press")}}}}),[I,o,m,p]),j=t.useMemo(()=>({onKeyDown:I,onMouseDown(){L.current=!0},onMouseUp(){L.current=!0},[nW[d]]:()=>{l.current.insideReactTree=!0}}),[I,d,l]);return t.useMemo(()=>c?{reference:F,floating:j}:{},[c,F,j])}function nH(e){void 0===e&&(e={});let{nodeId:n}=e,r=function(e){let{open:n=!1,onOpenChange:r,elements:o}=e,i=t8(),l=t.useRef({}),[u]=t.useState(()=>{let e;return e=new Map,{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}),a=null!=nt(),[c,s]=t.useState(o.reference),f=eG((e,t,n)=>{l.current.openEvent=e?t:void 0,u.emit("openchange",{open:e,event:t,reason:n,nested:a}),null==r||r(e,t,n)}),d=t.useMemo(()=>({setPositionReference:s}),[]),m=t.useMemo(()=>({reference:c||o.reference||null,floating:o.floating||null,domReference:o.reference}),[c,o.reference,o.floating]);return t.useMemo(()=>({dataRef:l,open:n,onOpenChange:f,elements:m,events:u,floatingId:i,refs:d}),[n,f,m,u,i,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||r,i=o.elements,[l,a]=t.useState(null),[c,s]=t.useState(null),f=(null==i?void 0:i.domReference)||l,d=t.useRef(null),m=t.useContext(ne);eX(()=>{f&&(d.current=f)},[f]);let p=tH({...e,elements:{...i,...c&&{reference:c}}}),v=t.useCallback(e=>{let t=u(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;s(t),p.refs.setReference(t)},[p.refs]),g=t.useCallback(e=>{(u(e)||null===e)&&(d.current=e,a(e)),(u(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!u(e))&&p.refs.setReference(e)},[p.refs]),h=t.useMemo(()=>({...p.refs,setReference:g,setPositionReference:v,domReference:d}),[p.refs,g,v]),y=t.useMemo(()=>({...p.elements,domReference:f}),[p.elements,f]),w=t.useMemo(()=>({...p,...o,refs:h,elements:y,nodeId:n}),[p,h,y,n,o]);return eX(()=>{o.dataRef.current.floatingContext=w;let e=null==m?void 0:m.nodesRef.current.find(e=>e.id===n);e&&(e.context=w)}),t.useMemo(()=>({...p,context:w,refs:h,elements:y}),[p,h,y,w])}function nU(){return eC().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints&&eT()}function nV(e,n){void 0===n&&(n={});let{open:r,onOpenChange:i,events:l,dataRef:c,elements:s}=e,{enabled:f=!0,visibleOnly:d=!0}=n,m=t.useRef(!1),p=t.useRef(-1),v=t.useRef(!0);t.useEffect(()=>{if(!f)return;let e=o(s.domReference);function t(){!r&&a(s.domReference)&&s.domReference===eO(ej(s.domReference))&&(m.current=!0)}function n(){v.current=!0}function i(){v.current=!1}return e.addEventListener("blur",t),nU()&&(e.addEventListener("keydown",n,!0),e.addEventListener("pointerdown",i,!0)),()=>{e.removeEventListener("blur",t),nU()&&(e.removeEventListener("keydown",n,!0),e.removeEventListener("pointerdown",i,!0))}},[s.domReference,r,f]),t.useEffect(()=>{if(f)return l.on("openchange",e),()=>{l.off("openchange",e)};function e(e){let{reason:t}=e;("reference-press"===t||"escape-key"===t)&&(m.current=!0)}},[l,f]),t.useEffect(()=>()=>{nr(p)},[]);let g=t.useMemo(()=>({onMouseLeave(){m.current=!1},onFocus(e){if(m.current)return;let t=eN(e.nativeEvent);if(d&&u(t)){if(nU()&&!e.relatedTarget){if(!v.current&&!eW(t))return}else if(!function(e){if(!e||eA())return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}(t))return}i(!0,e.nativeEvent,"focus")},onBlur(e){m.current=!1;let t=e.relatedTarget,n=e.nativeEvent,r=u(t)&&t.hasAttribute(nn("focus-guard"))&&"outside"===t.getAttribute("data-type");p.current=window.setTimeout(()=>{var e;let o=eO(s.domReference?s.domReference.ownerDocument:document);!t&&o===s.domReference||eD(null==(e=c.current.floatingContext)?void 0:e.refs.floating.current,o)||eD(s.domReference,o)||r||i(!1,n,"focus")})}}),[c,s.domReference,i,d]);return t.useMemo(()=>f?{reference:g}:{},[f,g])}function nK(e,t,n){let r=new Map,o="item"===n,i=e;if(o&&e){let{[tQ]:t,[tZ]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,"data-floating-ui-focusable":""},...i,...t.map(t=>{let r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>
1(t&&Object.entries(t).forEach(t=>{let[n,i]=t;if(!(o&&[tQ,tZ].includes(n)))if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof i){var l;null==(l=r.get(n))||l.push(i),e[n]=function(){for(var e,t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)}}}else e[n]=i}),e),{})}}function nq(e){void 0===e&&(e=[]);let n=e.map(e=>null==e?void 0:e.reference),r=e.map(e=>null==e?void 0:e.floating),o=e.map(e=>null==e?void 0:e.item),i=t.useCallback(t=>nK(t,e,"reference"),n),l=t.useCallback(t=>nK(t,e,"floating"),r),u=t.useCallback(t=>nK(t,e,"item"),o);return t.useMemo(()=>({getReferenceProps:i,getFloatingProps:l,getItemProps:u}),[i,l,u])}function nz(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function nX(e,t){return nz(t,e===t2||e===t4,e===t0||e===t1)}function nY(e,t,n){return nz(t,e===t4,n?e===t0:e===t1)||"Enter"===e||" "===e||""===e}function n$(e,t,n){return nz(t,n?e===t0:e===t1,e===t4)}function nG(e,t,n,r){return"both"===t||"horizontal"===t&&r&&r>1?"Escape"===e:nz(t,n?e===t1:e===t0,e===t2)}function nJ(e,n){let{open:r,onOpenChange:o,elements:i,floatingId:l}=e,{listRef:u,activeIndex:c,onNavigate:s=()=>{},enabled:f=!0,selectedIndex:d=null,allowEscape:m=!1,loop:p=!1,nested:v=!1,rtl:g=!1,virtual:h=!1,focusItemOnOpen:y="auto",focusItemOnHover:w=!0,openOnArrowKeyDown:b=!0,disabledIndices:x,orientation:R="vertical",parentOrientation:E,cols:k=1,scrollItemIntoView:C=!0,virtualItemRef:L,itemSizes:T,dense:S=!1}=n,A=eY(e_(i.floating)),M=nt(),P=t.useContext(ne);eX(()=>{e.dataRef.current.orientation=R},[e,R]);let O=eG(()=>{s(-1===F.current?null:F.current)}),D=eB(i.domReference),N=t.useRef(y),F=t.useRef(null!=d?d:-1),j=t.useRef(null),W=t.useRef(!0),B=t.useRef(O),_=t.useRef(!!i.floating),H=t.useRef(r),U=t.useRef(!1),V=t.useRef(!1),K=eY(x),q=eY(r),z=eY(C),X=eY(d),[Y,$]=t.useState(),[G,J]=t.useState(),Q=eG(()=>{function e(e){if(h){var t;null!=(t=e.id)&&t.endsWith("-fui-option")&&(e.id=l+"-"+Math.random().toString(16).slice(2,10)),$(e.id),null==P||P.events.emit("virtualfocus",e),L&&(L.current=e)}else nc(e,{sync:U.current,preventScroll:!0})}let t=u.current[F.current],n=V.current;t&&e(t),(U.current?e=>e():requestAnimationFrame)(()=>{let r=u.current[F.current]||t;if(!r)return;t||e(r);let o=z.current;o&&ee&&(n||!W.current)&&(null==r.scrollIntoView||r.scrollIntoView("boolean"==typeof o?{block:"nearest",inline:"nearest"}:o))})});eX(()=>{f&&(r&&i.floating?N.current&&null!=d&&(V.current=!0,F.current=d,O()):_.current&&(F.current=-1,B.current()))},[f,r,i.floating,d,O]),eX(()=>{if(f&&r&&i.floating)if(null==c){if(U.current=!1,null!=X.current)return;if(_.current&&(F.current=-1,Q()),(!H.current||!_.current)&&N.current&&(null!=j.current||!0===N.current&&null==j.current)){let e=0,t=()=>{null==u.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(F.current=null==j.current||nY(j.current,R,g)||v?eZ(u,K.current):e0(u,K.current),j.current=null,O())};t()}}else eQ(u,c)||(F.current=c,Q(),V.current=!1)},[f,r,i.floating,c,X,v,u,R,g,O,Q,K]),eX(()=>{var e;if(!f||i.floating||!P||h||!_.current)return;let t=P.nodesRef.current,n=null==(e=t.find(e=>e.id===M))||null==(e=e.context)?void 0:e.elements.floating,r=eO(ej(i.floating)),o=t.some(e=>e.context&&eD(e.context.elements.floating,r));n&&!o&&W.current&&n.focus({preventScroll:!0})},[f,i.floating,P,M,h]),eX(()=>{if(f&&P&&h&&!M)return P.events.on("virtualfocus",e),()=>{P.events.off("virtualfocus",e)};function e(e){J(e.id),L&&(L.current=e)}},[f,P,h,M,L]),eX(()=>{B.current=O,H.current=r,_.current=!!i.floating}),eX(()=>{r||(j.current=null,N.current=y)},[r,y]);let Z=null!=c,ee=t.useMemo(()=>{function e(e){if(!q.current)return;let t=u.current.indexOf(e);-1!==t&&F.current!==t&&(F.current=t,O())}return{onFocus(t){let{currentTarget:n}=t;U.current=!0,e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},onMouseMove(t){let{currentTarget:n}=t;U.current=!0,V.current=!1,w&&e(n)},onPointerLeave(e){let{pointerType:t}=e;if(W.current&&"touch"!==t&&(U.current=!0,w&&(F.current=-1,O(),!h))){var n;null==(n=A.current)||n.focus({preventScroll:!0})}}}},[q,A,w,u,O,h]),et=t.useCallback(()=>{var e;return null!=E?E:null==P||null==(e=P.nodesRef.current.find(e=>e.id===M))||null==(e=e.context)||null==(e=e.dataRef)?void 0:e.current.orientation},[M,P,E]),en=eG(e=>{if(W.current=!1,U.current=!0,229===e.which||!q.current&&e.currentTarget===A.current)return;
1if(v&&nG(e.key,R,g,k)){nX(e.key,et())||eV(e),o(!1,e.nativeEvent,"list-navigation"),a(i.domReference)&&(h?null==P||P.events.emit("virtualfocus",i.domReference):i.domReference.focus());return}let t=F.current,n=eZ(u,x),l=e0(u,x);if(D||("Home"===e.key&&(eV(e),F.current=n,O()),"End"===e.key&&(eV(e),F.current=l,O())),k>1){var c;let t,r,o=T||Array.from({length:u.current.length},()=>({width:1,height:1})),i=(t=[],r=0,o.forEach((e,n)=>{let{width:o,height:i}=e,l=!1;for(S&&(r=0);!l;){let e=[];for(let t=0;t<o;t++)for(let n=0;n<i;n++)e.push(r+t+n*k);r%k+o<=k&&e.every(e=>null==t[e])?(e.forEach(e=>{t[e]=n}),l=!0):r++}}),[...t]),a=i.findIndex(e=>null!=e&&!e2(u,e,x)),s=i.reduce((e,t,n)=>null==t||e2(u,t,x)?e:n,-1),f=i[function(e,t){let{event:n,orientation:r,loop:o,rtl:i,cols:l,disabledIndices:u,minIndex:a,maxIndex:c,prevIndex:s,stopEvent:f=!1}=t,d=s;if("ArrowUp"===n.key){if(f&&eV(n),-1===s)d=c;else if(d=e1(e,{startingIndex:d,amount:l,decrement:!0,disabledIndices:u}),o&&(s-l<a||d<0)){let e=s%l,t=c%l,n=c-(t-e);d=t===e?c:t>e?n:n-l}eQ(e,d)&&(d=s)}if("ArrowDown"===n.key&&(f&&eV(n),-1===s?d=a:(d=e1(e,{startingIndex:s,amount:l,disabledIndices:u}),o&&s+l>c&&(d=e1(e,{startingIndex:s%l-l,amount:l,disabledIndices:u}))),eQ(e,d)&&(d=s)),"both"===r){let t=I(s/l);n.key===(i?eP:eI)&&(f&&eV(n),s%l!=l-1?(d=e1(e,{startingIndex:s,disabledIndices:u}),o&&eJ(d,l,t)&&(d=e1(e,{startingIndex:s-s%l-1,disabledIndices:u}))):o&&(d=e1(e,{startingIndex:s-s%l-1,disabledIndices:u})),eJ(d,l,t)&&(d=s)),n.key===(i?eI:eP)&&(f&&eV(n),s%l!=0?(d=e1(e,{startingIndex:s,decrement:!0,disabledIndices:u}),o&&eJ(d,l,t)&&(d=e1(e,{startingIndex:s+(l-s%l),decrement:!0,disabledIndices:u}))):o&&(d=e1(e,{startingIndex:s+(l-s%l),decrement:!0,disabledIndices:u})),eJ(d,l,t)&&(d=s));let r=I(c/l)===t;eQ(e,d)&&(d=o&&r?n.key===(i?eI:eP)?c:e1(e,{startingIndex:s-s%l-1,disabledIndices:u}):s)}return d}({current:i.map(e=>null!=e?u.current[e]:null)},{event:e,orientation:R,loop:p,rtl:g,cols:k,disabledIndices:(c=[...("function"!=typeof x?x:null)||u.current.map((e,t)=>e2(u,t,x)?t:void 0),void 0],i.flatMap((e,t)=>c.includes(e)?[t]:[])),minIndex:a,maxIndex:s,prevIndex:function(e,t,n,r,o){if(-1===e)return -1;let i=n.indexOf(e),l=t[e];switch(o){case"tl":return i;case"tr":if(!l)return i;return i+l.width-1;case"bl":if(!l)return i;return i+(l.height-1)*r;case"br":return n.lastIndexOf(e)}}(F.current>l?n:F.current,o,i,k,e.key===t4?"bl":e.key===(g?t0:t1)?"tr":"tl"),stopEvent:!0})];if(null!=f&&(F.current=f,O()),"both"===R)return}if(nX(e.key,R)){if(eV(e),r&&!h&&eO(e.currentTarget.ownerDocument)===e.currentTarget){F.current=nY(e.key,R,g)?n:l,O();return}nY(e.key,R,g)?p?F.current=t>=l?m&&t!==u.current.length?-1:n:e1(u,{startingIndex:t,disabledIndices:x}):F.current=Math.min(l,e1(u,{startingIndex:t,disabledIndices:x})):p?F.current=t<=n?m&&-1!==t?u.current.length:l:e1(u,{startingIndex:t,decrement:!0,disabledIndices:x}):F.current=Math.max(n,e1(u,{startingIndex:t,decrement:!0,disabledIndices:x})),eQ(u,F.current)&&(F.current=-1),O()}}),er=t.useMemo(()=>h&&r&&Z&&{"aria-activedescendant":G||Y},[h,r,Z,G,Y]),eo=t.useMemo(()=>({"aria-orientation":"both"===R?void 0:R,...!D?er:{},onKeyDown:en,onPointerMove(){W.current=!0}}),[er,en,R,D]),ei=t.useMemo(()=>{function e(e){"auto"===y&&eK(e.nativeEvent)&&(N.current=!0)}function t(e){N.current=y,"auto"===y&&eq(e.nativeEvent)&&(N.current=!0)}return{...er,onKeyDown(e){W.current=!1;let t=e.key.startsWith("Arrow"),n=["Home","End"].includes(e.key),i=n$(e.key,R,g),l=nG(e.key,R,g,k),a=n$(e.key,et(),g),c=nX(e.key,R),s=(v?a:c)||"Enter"===e.key||""===e.key.trim();if(h&&r){var f,m,p,y,w;let r,o,a=null==P?void 0:P.nodesRef.current.find(e=>null==e.parentId),s=P&&a?(f=P.nodesRef.current,m=a.id,o=-1,!function e(t,n){n>o&&(r=t,o=n),eH(f,t).forEach(t=>{e(t.id,n+1)})}(m,0),f.find(e=>e.id===r)):null;if((t||n)&&s&&L){let t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(i||l){let n=(null==(p=s.context)?void 0:p.elements.domReference)===e.currentTarget,r=l&&!n?null==(y=s.context)?void 0:y.elements.domReference:i?u.current.find(e=>(null==e?void 0:e.id)===Y):null;r&&(eV(e),r.dispatchEvent(t),J(void 0))}if((c||n)&&s.context&&s.context.open&&s.parentId&&e.currentTarget!==s.context.elements.domReference){eV(e),null==(w=s.context.elements.domReference)||w.dispatchEvent(t);return}}return en(e)}if(r||b||!t){if(s){let t=nX(e.key,et());j.current=v&&t?null:e.key}if(v){a&&(eV(e),r?(F.current=eZ(u,K.current),O()):o(!0,e.nativeEvent,"list-navigation"));return}c&&(null!=d&&(F.current=d),eV(e),!r&&b?o(!0,e.nativeEvent,"list-navigation"):en(e),r&&O())}},onFocus(){r&&!h&&(F.current=-1,O())},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[Y,er,k,en,K,y,u,v,O,o,r,b,R,et,g,d,P,h,L]);return t.useMemo(()=>f?{reference:ei,floating:eo,item:ee}:{},[f,ei,eo,ee])}let nQ=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function nZ(e,n){var r,o;void 0===n&&(n={});let{open:i,elements:l,floatingId:u}=e,{enabled:a=!0,role:c="dialog"}
1=n,s=t8(),f=(null==(r=l.domReference)?void 0:r.id)||s,d=t.useMemo(()=>{var e;return(null==(e=e_(l.floating))?void 0:e.id)||u},[l.floating,u]),m=null!=(o=nQ.get(c))?o:c,p=null!=nt(),v=t.useMemo(()=>"tooltip"===m||"label"===c?{["aria-"+("label"===c?"labelledby":"describedby")]:i?d:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":"alertdialog"===m?"dialog":m,"aria-controls":i?d:void 0,..."listbox"===m&&{role:"combobox"},..."menu"===m&&{id:f},..."menu"===m&&p&&{role:"menuitem"},..."select"===c&&{"aria-autocomplete":"none"},..."combobox"===c&&{"aria-autocomplete":"list"}},[m,d,p,i,f,c]),g=t.useMemo(()=>{let e={id:d,...m&&{role:m}};return"tooltip"===m||"label"===c?e:{...e,..."menu"===m&&{"aria-labelledby":f}}},[m,d,f,c]),h=t.useCallback(e=>{let{active:t,selected:n}=e,r={role:"option",...t&&{id:d+"-fui-option"}};switch(c){case"select":case"combobox":return{...r,"aria-selected":n}}return{}},[d,c]);return t.useMemo(()=>a?{reference:v,floating:g,item:h}:{},[a,v,g,h])}function n0(e,n){var r;let{open:o,dataRef:i}=e,{listRef:l,activeIndex:u,onMatch:a,onTypingChange:c,enabled:s=!0,findMatch:f=null,resetMs:d=750,ignoreKeys:m=[],selectedIndex:p=null}=n,v=t.useRef(-1),g=t.useRef(""),h=t.useRef(null!=(r=null!=p?p:u)?r:-1),y=t.useRef(null),w=eG(a),b=eG(c),x=eY(f),R=eY(m);eX(()=>{o&&(nr(v),y.current=null,g.current="")},[o]),eX(()=>{if(o&&""===g.current){var e;h.current=null!=(e=null!=p?p:u)?e:-1}},[o,p,u]);let E=eG(e=>{e?i.current.typing||(i.current.typing=e,b(e)):i.current.typing&&(i.current.typing=e,b(e))}),k=eG(e=>{function t(e,t,n){let r=x.current?x.current(t,n):t.find(e=>(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase()))===0);return r?e.indexOf(r):-1}let n=l.current;if(g.current.length>0&&" "!==g.current[0]&&(-1===t(n,n,g.current)?E(!1):" "===e.key&&eV(e)),null==n||R.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;o&&" "!==e.key&&(eV(e),E(!0)),n.every(e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())})&&g.current===e.key&&(g.current="",h.current=y.current),g.current+=e.key,nr(v),v.current=window.setTimeout(()=>{g.current="",h.current=y.current,E(!1)},d);let r=h.current,i=t(n,[...n.slice((r||0)+1),...n.slice(0,(r||0)+1)],g.current);-1!==i?(w(i),y.current=i):" "!==e.key&&(g.current="",E(!1))}),C=t.useMemo(()=>({onKeyDown:k}),[k]),L=t.useMemo(()=>({onKeyDown:k,onKeyUp(e){" "===e.key&&E(!1)}}),[k,E]);return t.useMemo(()=>s?{reference:C,floating:L}:{},[s,C,L])}function n1(e,t){let[n,r]=e,o=!1,i=t.length;for(let e=0,l=i-1;e<i;l=e++){let[i,u]=t[e]||[0,0],[a,c]=t[l]||[0,0];u>=r!=c>=r&&n<=(a-i)*(r-u)/(c-u)+i&&(o=!o)}return o}function n2(e){void 0===e&&(e={});let{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,o={current:-1},i=!1,l=null,a=null,c="u">typeof performance?performance.now():0,s=e=>{let{x:n,y:s,placement:f,elements:d,onClose:m,nodeId:p,tree:v}=e;return function(e){function g(){nr(o),m()}if(nr(o),!d.domReference||!d.floating||null==f||null==n||null==s)return;let{clientX:h,clientY:y}=e,w=[h,y],b="composedPath"in e?e.composedPath()[0]:e.target,x="mouseleave"===e.type,R=ns(d.floating,b),E=ns(d.domReference,b),k=d.domReference.getBoundingClientRect(),C=d.floating.getBoundingClientRect(),L=f.split("-")[0],T=n>C.right-C.width/2,S=s>C.bottom-C.height/2,A=w[0]>=k.x&&w[0]<=k.x+k.width&&w[1]>=k.y&&w[1]<=k.y+k.height,M=C.width>k.width,P=C.height>k.height,I=(M?k:C).left,O=(M?k:C).right,D=(P?k:C).top,N=(P?k:C).bottom;if(R&&(i=!0,!x))return;if(E&&(i=!1),E&&!x){i=!0;return}if(x&&u(e.relatedTarget)&&ns(d.floating,e.relatedTarget)||v&&function e(t,n,r){return void 0===r&&(r=!0),t.filter(e=>{var t;return e.parentId===n&&(!r||(null==(t=e.context)?void 0:t.open))}).flatMap(n=>[n,...e(t,n.id,r)])}(v.nodesRef.current,p).length)return;if("top"===L&&s>=k.bottom-1||"bottom"===L&&s<=k.top+1||"left"===L&&n>=k.right-1||"right"===L&&n<=k.left+1)return g();let F=[];switch(L){case"top":F=[[I,k.top+1],[I,C.bottom-1],[O,C.bottom-1],[O,k.top+1]];break;case"bottom":F=[[I,C.top+1],[I,k.bottom-1],[O,k.bottom-1],[O,C.top+1]];break;case"left":F=[[C.right-1,N],[C.right-1,D],[k.left+1,D],[k.left+1,N]];break;case"right":F=[[k.right-1,N],[k.right-1,D],[C.left+1,D],[C.left+1,N]]}if(!n1([h,y],F)){if(i&&!A)return g();if(!x&&r){let t=function(e,t){let n=performance.now(),r=n-c;if(null===l||null===a||0===r)return l=e,a=t,c=n,null;let o=e-l,i=t-a,u=Math.sqrt(o*o+i*i);return l=e,a=t,c=n,u/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return g()}n1([h,y],function(e){let[n,r]=e;switch(L){case"top":{let e=[[C.left,T||M?C.bottom-t:C.top],[C.right,T?M?C.bottom-t:C.top:C.bottom-t]];return[[M?n+t/2:T?n+4*t:n-4*t,r+t+1],[M?n-t/2:T?n+4*t:n-4*t,r+t+1],...e]}case"bottom":{let e=[[C.left,T||M?C.top+t:C.bottom],[C.right,T?M?C.top+t:C.bottom:C.top+t]];return[[M?n+t/2:T?n+4*t:n-4*t,r-t],[M?n-t/2:T?n+4*t:n-4*t,r-t],...e]}case"left":return[[S||P?C.right-t:C.left,C.top],[S?P?C.right-t:C.left:C.right-t,C.bottom],[n+t+1,P?r+t/2:S?r+4*t:r-4*t],[n+t+1,P?r-t/2:S?r+4*t:r-4*t]];case"right":{let e=[[S||P?C.left+t:C.right,C.top],[S?P?C.left+t:C.right:C.left+t,C.bottom]];return[[n-t,P?r+t/2:S?r+4*t:r-4*t],[n-t,P?r-t/2:S?r+4*t:r-4*t],...e]}}}([n,s]))?!i&&r&&(o.current=window.setTimeout(g,40)):g()}}};return s.__options={blockPointerEvents:n},s}e.s(["FloatingFocusManager",()=>nM,"FloatingList",()=>tG,"FloatingOverlay",()=>nD,"FloatingPortal",()=>nR,"safePolygon",()=>n2,"useClick",()=>nF,"useDismiss",()=>n_,"useFloating",()=>nH,"useFocus",()=>nV,"useHover",()=>nu,"useInteractions",()=>nq,"useListItem",()=>tJ,"useListNavigation",()=>nJ,"useMergeRefs",()=>tX,"useRole",()=>nZ,"useTypeahead",()=>n0],43489)},55301,18999,e=>{"use strict";var t=e.i(43489),n=e.i(53760),r=e.i(58950);let o=({arrowRef:e,placement:t})=>{let n=[];return n.push((0,r.offset)(8)),n.push("auto"===t?(0,r.autoPlacement)():(0,r.flip)()),n.push((0,r.shift)({padding:8})),e?.current&&n.push((0,r.arrow)({element:e.current})),n},i=({placement:e})=>"auto"===e?void 0:e,l=({placement:e})=>
1({top:"bottom",right:"left",bottom:"top",left:"right"})[e.split("-")[0]];e.s(["getArrowPlacement",()=>l,"getMiddleware",()=>o,"getPlacement",()=>i],18999);let u=({open:e,arrowRef:r,placement:l="top",setOpen:u})=>(0,t.useFloating)({placement:i({placement:l}),open:e,onOpenChange:u,whileElementsMounted:n.autoUpdate,middleware:o({placement:l,arrowRef:r})}),a=({context:e,trigger:n,role:r="tooltip",interactions:o=[]})=>(0,t.useInteractions)([(0,t.useClick)(e,{enabled:"click"===n}),(0,t.useHover)(e,{enabled:"hover"===n,handleClose:(0,t.safePolygon)()}),(0,t.useDismiss)(e),(0,t.useRole)(e,{role:r}),...o]);e.s(["useBaseFloating",()=>u,"useFloatingInteractions",()=>a],55301)},71363,e=>{"use strict";var t=e.i(43476),n=e.i(2499),r=e.i(99929),o=e.i(24525),i=e.i(23362),l=e.i(43489),u=e.i(53760),a=e.i(71645),c=e.i(81014),s=e.i(55301),f=e.i(18999);function d({animation:e="duration-300",arrow:n=!0,children:r,className:o,content:i,placement:d="top",style:m="dark",theme:p,trigger:v="hover",minWidth:g,...h}){let y=(0,a.useRef)(null),[w,b]=(0,a.useState)(!1),x=(0,s.useBaseFloating)({open:w,placement:d,arrowRef:y,setOpen:b}),{context:R,middlewareData:{arrow:{x:E,y:k}={}},refs:C,strategy:L,update:T,x:S,y:A}=x,M=(0,l.useFocus)(R),{getFloatingProps:P,getReferenceProps:I}=(0,s.useFloatingInteractions)({context:R,role:"tooltip",trigger:v,interactions:[M]});return(0,a.useEffect)(()=>{if(C.reference.current&&C.floating.current&&w)return(0,u.autoUpdate)(C.reference.current,C.floating.current,T)},[w,C.floating,C.reference,T]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{ref:C.setReference,className:p.target,"data-testid":"flowbite-tooltip-target",...I(),children:r}),(0,t.jsxs)("div",{ref:C.setFloating,"data-testid":"flowbite-tooltip",...P({className:(0,c.twMerge)(p.base,e&&`${p.animation} ${e}`,!w&&p.hidden,p.style[m],o),style:{position:L,top:A??" ",left:S??" ",minWidth:g},...h}),children:[(0,t.jsx)("div",{className:p.content,children:i}),n&&(0,t.jsx)("div",{className:(0,c.twMerge)(p.arrow.base,"dark"===m&&p.arrow.style.dark,"light"===m&&p.arrow.style.light,"auto"===m&&p.arrow.style.auto),"data-testid":"flowbite-tooltip-arrow",ref:y,style:{top:k??" ",left:E??" ",right:" ",bottom:" ",[(0,f.getArrowPlacement)({placement:x.placement})]:p.arrow.placement},children:"Â "})]})]})}d.displayName="Floating";let m=(0,e.i(42278).createTheme)({target:"w-fit",animation:"transition-opacity",arrow:{base:"absolute z-10 h-2 w-2 rotate-45",style:{dark:"bg-gray-900 dark:bg-gray-700",light:"bg-white",auto:"bg-white dark:bg-gray-700"},placement:"-4px"},base:"absolute z-10 inline-block rounded-lg px-3 py-2 text-sm font-medium shadow-sm",hidden:"invisible opacity-0",style:{dark:"bg-gray-900 text-white dark:bg-gray-700",light:"border border-gray-200 bg-white text-gray-900",auto:"border border-gray-200 bg-white text-gray-900 dark:border-none dark:bg-gray-700 dark:text-white"},content:"relative z-20"});function p(e){let l=(0,i.useThemeProvider)(),u=(0,o.useResolveTheme)([m,l.theme?.tooltip,e.theme],[(0,n.get)(l.clearTheme,"tooltip"),e.clearTheme],[(0,n.get)(l.applyTheme,"tooltip"),e.applyTheme]),{animation:a="duration-300",arrow:c=!0,children:s,className:f,content:p,placement:v="top",style:g="dark",trigger:h="hover",...y}=(0,r.resolveProps)(e,l.props?.tooltip);return(0,t.jsx)(d,{animation:a,arrow:c,content:p,placement:v,style:g,theme:u,trigger:h,className:f,...y,children:s})}p.displayName="Tooltip",e.s(["Tooltip",()=>p],71363)},32095,e=>{"use strict";let t=(0,e.i(75254).default)("graduation-cap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);e.s(["GraduationCap",()=>t],32095)}]);
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.