PageSourceSearch

https://www.ruutu.fi/_next/static/chunks/0_-9u546oewfy.js

js ruutu.fi collected 2026-09-24 19:35:46 UTC 86,382 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="f7f2b292-93c4-02a6-2844-0427e3344525")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,229315,e=>{"use strict";let t;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 s(e){return!(!n()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof o(e).ShadowRoot)}function c(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=y(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function f(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let d=/transform|translate|scale|rotate|perspective|filter/,m=/paint|layout|strict|content/,g=e=>!!e&&"none"!==e;function v(e){let t=u(e)?y(e):e;return g(t.transform)||g(t.translate)||g(t.scale)||g(t.rotate)||g(t.perspective)||!p()&&(g(t.backdropFilter)||g(t.filter))||d.test(t.willChange||"")||m.test(t.contain||"")}function p(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function h(e){return/^(html|body|#document)$/.test(r(e))}function y(e){return o(e).getComputedStyle(e)}function b(e){if("html"===r(e))return e;let t=e.assignedSlot||e.parentNode||s(e)&&e.host||i(e);return s(t)?t.host:t}function E(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}e.s(["getComputedStyle",0,y,"getContainingBlock",0,function(e){let t=b(e);for(;a(t)&&!h(t);){if(v(t))return t;if(f(t))break;t=b(t)}return null},"getDocumentElement",0,i,"getFrameElement",0,E,"getNodeName",0,r,"getNodeScroll",0,function(e){return u(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}},"getOverflowAncestors",0,function e(t,n,r){var i;void 0===n&&(n=[]),void 0===r&&(r=!0);let l=function e(t){let n=b(t);return h(n)?t.ownerDocument?t.ownerDocument.body:t.body:a(n)&&c(n)?n:e(n)}(t),u=l===(null==(i=t.ownerDocument)?void 0:i.body),s=o(l);if(!u)return n.concat(l,e(l,[],r));{let t=E(s);return n.concat(s,s.visualViewport||[],c(l)?l:[],t&&r?e(t):[])}},"getParentNode",0,b,"getWindow",0,o,"isContainingBlock",0,v,"isElement",0,u,"isHTMLElement",0,a,"isLastTraversableNode",0,h,"isNode",0,l,"isOverflowElement",0,c,"isShadowRoot",0,s,"isTableElement",0,function(e){return/^(table|td|th)$/.test(r(e))},"isTopLayer",0,f,"isWebKit",0,p])},343084,e=>{"use strict";let t=["top","right","bottom","left"],n=t.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),r=Math.min,o=Math.max,i=Math.round,l=Math.floor,u={left:"right",right:"left",bottom:"top",top:"bottom"};function a(e){return e.split("-")[0]}function s(e){return e.split("-")[1]}function c(e){return"x"===e?"y":"x"}function f(e){return"y"===e?"height":"width"}function d(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function m(e){return c(d(e))}function g(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let v=["left","right"],p=["right","left"],h=["top","bottom"],y=["bottom","top"];function b(e){let t=a(e);return u[t]+e.slice(t.length)}e.s(["clamp",0,function(e,t,n){return o(e,r(t,n))},"createCoords",0,e=>({x:e,y:e}),"evaluate",0,function(e,t){return"function"==typeof e?e(t):e},"floor",0,l,"getAlignment",0,s,"getAlignmentAxis",0,m,"getAlignmentSides",0,function(e,t,n){void 0===n&&(n=!1);let r=s(e),o=m(e),i=f(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=b(l)),[l,b(l)]},"getAxisLength",0,f,"getExpandedPlacements",0,function(e){let t=b(e);return[g(e),t,g(t)]},"getOppositeAlignmentPlacement",0,g,"getOppositeAxis",0,c,"getOppositeAxisPlacements",0,function(e,t,n,r){let o=s(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?p:v;return t?v:p;case"left":case"right":return t?h:y;default:return[]}}(a(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(g)))),i}
vendor: 4,096 bytes, line 2
2,"getOppositePlacement",0,b,"getPaddingObject",0,function(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}},"getSide",0,a,"getSideAxis",0,d,"max",0,o,"min",0,r,"placements",0,n,"rectToClientRect",0,function(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}},"round",0,i,"sides",0,t])},167173,397126,e=>{"use strict";e.i(247167);var t=e.i(229315),n=e.i(271645),r=e.i(343084),o='input:not([inert]),select:not([inert]),textarea:not([inert]),a[href]:not([inert]),button:not([inert]),[tabindex]:not(slot):not([inert]),audio[controls]:not([inert]),video[controls]:not([inert]),[contenteditable]:not([contenteditable="false"]):not([inert]),details>summary:first-of-type:not([inert]),details:not([inert])',i="u"<typeof Element,l=i?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,u=!i&&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},a=function e(t,n){void 0===n&&(n=!0);var r,o=null==t||null==(r=t.getAttribute)?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},s=function(e){var t,n=null==e||null==(t=e.getAttribute)?void 0:t.call(e,"contenteditable");return""===n||"true"===n},c=function(e,t,n){if(a(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(o));return t&&l.call(e,o)&&r.unshift(e),r=r.filter(n)},f=function e(t,n,r){for(var i=[],u=Array.from(t);u.length;){var s=u.shift();if(!a(s,!1))if("SLOT"===s.tagName){var c=s.assignedElements(),f=e(c.length?c:s.children,!0,r);r.flatten?i.push.apply(i,f):i.push({scopeParent:s,candidates:f})}else{l.call(s,o)&&r.filter(s)&&(n||!t.includes(s))&&i.push(s);var d=s.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(s),m=!a(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(d&&m){var g=e(!0===d?s.children:d.children,!0,r);r.flatten?i.push.apply(i,g):i.push({scopeParent:s,candidates:g})}else u.unshift.apply(u,s.children)}}return i},d=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},m=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||s(e))&&!d(e)?0:e.tabIndex},g=function(e,t){var n=m(e);return n<0&&t&&!d(e)?0:n},v=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},p=function(e){return"INPUT"===e.tagName},h=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},y=function(e){if(!e.name)return!0;var t,n=e.form||u(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=h(t,e.form);return!o||o===e},b=function(e){return p(e)&&"radio"===e.type&&!y(e)},E=function(e){var t,n,r,o,i,l,a,s=e&&u(e),c=null==(t=s)?void 0:t.host,f=!1;if(s&&s!==e)for(f=!!(null!=(n=c)&&null!=(r=n.ownerDocument)&&r.contains(c)||null!=e&&null!=(o=e.ownerDocument)&&o.contains(e));!f&&c;)f=!!(null!=(l=c=null==(i=s=u(c))?void 0:i.host)&&null!=(a=l.ownerDocument)&&a.contains(c));return f},w=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},x=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=l.call(e,"details>summary:first-of-type")?e.parentElement:e;if(l.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return w(e)}else{if("function"==typeof r){for(var i=e;e;){var a=e.parentElement,s=u(e);if(a&&!a.shadowRoot&&!0===r(a))return w(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host}e=i}if(E(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}
2,R=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!!l.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1},L=function(e,t){return!(t.disabled||a(t)||p(t)&&"hidden"===t.type||x(t,e)||"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some(function(e){return"SUMMARY"===e.tagName})||R(t))},T=function(e,t){return!(b(t)||0>m(t))&&!!L(e,t)},C=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||!!(t>=0)},A=function e(t){var n=[],r=[];return t.forEach(function(t,o){var i=!!t.scopeParent,l=i?t.scopeParent:t,u=g(l,i),a=i?e(t.candidates):l;0===u?i?n.push.apply(n,a):n.push(l):r.push({documentOrder:o,tabIndex:u,item:t,isScope:i,content:a})}),r.sort(v).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},M=function(e,t){return A((t=t||{}).getShadowRoot?f([e],t.includeContainer,{filter:T.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:C}):c(e,t.includeContainer,T.bind(null,t)))};function S(){let e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function k(){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 O(){let e=/android/i;return e.test(S())||e.test(k())}function N(){return k().includes("jsdom/")}e.s(["focusable",0,function(e,t){return(t=t||{}).getShadowRoot?f([e],t.includeContainer,{filter:L.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):c(e,t.includeContainer,L.bind(null,t))},"isTabbable",0,function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==l.call(e,o)&&T(t,e)},"tabbable",0,M],397126);let P="data-floating-ui-focusable",D="ArrowLeft",I="ArrowRight";function F(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 W(e,n){if(!e||!n)return!1;let r=null==n.getRootNode?void 0:n.getRootNode();if(e.contains(n))return!0;if(r&&(0,t.isShadowRoot)(r)){let t=n;for(;t;){if(e===t)return!0;t=t.parentNode||t.host}}return!1}function H(e){return(null==e?void 0:e.ownerDocument)||document}function j(e){return(0,t.isHTMLElement)(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function B(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,...B(e,t.id,n)])}function _(e){e.preventDefault(),e.stopPropagation()}var V="u">typeof document?n.useLayoutEffect:function(){};let q={...n}.useInsertionEffect||(e=>e());function K(e,t,n){return Math.floor(e/t)!==n}function U(e,t){return t<0||t>=e.current.length}function z(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&&G(e,l,o))return l}function G(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 X=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Y(e,t){let n=M(e,X()),r=n.length;if(0===r)return;let o=F(H(e)),i=n.indexOf(o);return n[-1===i?1===t?0:r-1:i+t]}e.s(["activeElement",0,F,"contains",0,W,"createGridCellMap",0,function(e,t,n){let r=[],o=0;return e.forEach((e,i)=>{let{width:l,height:u}=e,a=!1;for(n&&(o=0);!a;){let e=[];for(let n=0;n<l;n++)for(let r=0;r<u;r++)e.push(o+n+r*t);o%t+l<=t&&e.every(e=>null==r[e])?(e.forEach(e=>{r[e]=i}),a=!0):o++}}),[...r]},"disableFocusInside",0,function(e){M(e,X()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})},"enableFocusInside",0,function(e){e.querySelectorAll("[data-tabindex]").forEach(e
2=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})},"findNonDisabledListIndex",0,z,"getDeepestNode",0,function(e,t){let n,r=-1;return!function t(o,i){i>r&&(n=o,r=i),B(e,o).forEach(e=>{t(e.id,i+1)})}(t,0),e.find(e=>e.id===n)},"getDocument",0,H,"getFloatingFocusElement",0,function(e){return e?e.hasAttribute(P)?e:e.querySelector("["+P+"]")||e:null},"getGridCellIndexOfCorner",0,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)}},"getGridCellIndices",0,function(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])},"getGridNavigatedIndex",0,function(e,t){let{event:n,orientation:o,loop:i,rtl:l,cols:u,disabledIndices:a,minIndex:s,maxIndex:c,prevIndex:f,stopEvent:d=!1}=t,m=f;if("ArrowUp"===n.key){if(d&&_(n),-1===f)m=c;else if(m=z(e,{startingIndex:m,amount:u,decrement:!0,disabledIndices:a}),i&&(f-u<s||m<0)){let e=f%u,t=c%u,n=c-(t-e);m=t===e?c:t>e?n:n-u}U(e,m)&&(m=f)}if("ArrowDown"===n.key&&(d&&_(n),-1===f?m=s:(m=z(e,{startingIndex:f,amount:u,disabledIndices:a}),i&&f+u>c&&(m=z(e,{startingIndex:f%u-u,amount:u,disabledIndices:a}))),U(e,m)&&(m=f)),"both"===o){let t=(0,r.floor)(f/u);n.key===(l?D:I)&&(d&&_(n),f%u!=u-1?(m=z(e,{startingIndex:f,disabledIndices:a}),i&&K(m,u,t)&&(m=z(e,{startingIndex:f-f%u-1,disabledIndices:a}))):i&&(m=z(e,{startingIndex:f-f%u-1,disabledIndices:a})),K(m,u,t)&&(m=f)),n.key===(l?I:D)&&(d&&_(n),f%u!=0?(m=z(e,{startingIndex:f,decrement:!0,disabledIndices:a}),i&&K(m,u,t)&&(m=z(e,{startingIndex:f+(u-f%u),decrement:!0,disabledIndices:a}))):i&&(m=z(e,{startingIndex:f+(u-f%u),decrement:!0,disabledIndices:a})),K(m,u,t)&&(m=f));let o=(0,r.floor)(c/u)===t;U(e,m)&&(m=i&&o?n.key===(l?I:D)?c:z(e,{startingIndex:f-f%u-1,disabledIndices:a}):f)}return m},"getMaxListIndex",0,function(e,t){return z(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})},"getMinListIndex",0,function(e,t){return z(e,{disabledIndices:t})},"getNextTabbable",0,function(e){return Y(H(e).body,1)||e},"getNodeAncestors",0,function(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},"getNodeChildren",0,B,"getPlatform",0,S,"getPreviousTabbable",0,function(e){return Y(H(e).body,-1)||e},"getTabbableOptions",0,X,"getTarget",0,function(e){return"composedPath"in e?e.composedPath()[0]:e.target},"getUserAgent",0,k,"isEventTargetWithin",0,function(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))},"isIndexOutOfListBounds",0,U,"isListIndexDisabled",0,G,"isMac",0,function(){return S().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints},"isMouseLikePointerType",0,function(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)},"isOutsideEvent",0,function(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!W(n,r)},"isReactEvent",0,function(e){return"nativeEvent"in e},"isRootElement",0,function(e){return e.matches("html,body")},"isSafari",0,function(){return/apple/i.test(navigator.vendor)},"isTypeableCombobox",0,function(e){return!!e&&"combobox"===e.getAttribute("role")&&j(e)},"isTypeableElement",0,j,"isVirtualClick",0,function(e){return 0===e.mozInputSource&&!!e.isTrusted||(O()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)},"isVirtualPointerEvent",0,function(e){return!N()&&(!O()&&0===e.width&&0===e.height||O()&&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)},"matchesFocusVisible",0,function(e){if(!e||N())return!0;try{return e.matches(":focus-visible")}catch(e){return!0}},"stopEvent",0,_,"useEffectEvent",0,function(e){let t=n.useRef(()=>{});return q(()=>{t.current=e}),n.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])},"useLatestRef",0,function(e){let t=n.useRef(e);return V(()=>{t.current=e}),t},"useModernLayoutEffect",0,V],167173)},101534,e=>{"use strict";var t=e.i(343084);function n(e,n,r){let o,{reference:i,floating:l}=e,u=(0,t.getSideAxis)(n),a=(0,t.getAlignmentAxis)(n),s=(0,t.getAxisLength)(a),c=(0,t.getSide)(n),f="y"===u,d=i.x+i.width/2-l.width/2,m=i.y+i.height/2-l.height/2,g=i[s]/2-l[s]/2;switch(c){case"top":o={x:d,y:i.y-l.height};break;case"bottom":o={x:d,y:i.y+i.height};break;case"right":o={x:i.x+i.width,y:m};break;case"left":o={x:i.x-l.width,y:m};break;default:o={x:i.x,y:i.y}}switch((0,t.getAlignment)(n)){case"start":o[a]-=g*(r&&f?-1:1);break;case"end":o[a]+=g*(r&&f?-1:1)}return o}async function r(e,n){var r;void 0===n&&(n={});let{x:o,y:i,platform:l,rects:u,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:m=!1,padding:g=0}
2=(0,t.evaluate)(n,e),v=(0,t.getPaddingObject)(g),p=a[m?"floating"===d?"reference":"floating":d],h=(0,t.rectToClientRect)(await l.getClippingRect({element:null==(r=await (null==l.isElement?void 0:l.isElement(p)))||r?p:p.contextElement||await (null==l.getDocumentElement?void 0:l.getDocumentElement(a.floating)),boundary:c,rootBoundary:f,strategy:s})),y="floating"===d?{x:o,y:i,width:u.floating.width,height:u.floating.height}:u.reference,b=await (null==l.getOffsetParent?void 0:l.getOffsetParent(a.floating)),E=await (null==l.isElement?void 0:l.isElement(b))&&await (null==l.getScale?void 0:l.getScale(b))||{x:1,y:1},w=(0,t.rectToClientRect)(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:b,strategy:s}):y);return{top:(h.top-w.top+v.top)/E.y,bottom:(w.bottom-h.bottom+v.bottom)/E.y,left:(h.left-w.left+v.left)/E.x,right:(w.right-h.right+v.right)/E.x}}let o=async(e,t,o)=>{let{placement:i="bottom",strategy:l="absolute",middleware:u=[],platform:a}=o,s=a.detectOverflow?a:{...a,detectOverflow:r},c=await (null==a.isRTL?void 0:a.isRTL(t)),f=await a.getElementRects({reference:e,floating:t,strategy:l}),{x:d,y:m}=n(f,i,c),g=i,v=0,p={};for(let r=0;r<u.length;r++){let o=u[r];if(!o)continue;let{name:h,fn:y}=o,{x:b,y:E,data:w,reset:x}=await y({x:d,y:m,initialPlacement:i,placement:g,strategy:l,middlewareData:p,rects:f,platform:s,elements:{reference:e,floating:t}});d=null!=b?b:d,m=null!=E?E:m,p[h]={...p[h],...w},x&&v<50&&(v++,"object"==typeof x&&(x.placement&&(g=x.placement),x.rects&&(f=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:l}):x.rects),{x:d,y:m}=n(f,g,c)),r=-1)}return{x:d,y:m,placement:g,strategy:l,middlewareData:p}};function i(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function l(e){return t.sides.some(t=>e[t]>=0)}function u(e){let n=(0,t.min)(...e.map(e=>e.left)),r=(0,t.min)(...e.map(e=>e.top));return{x:n,y:r,width:(0,t.max)(...e.map(e=>e.right))-n,height:(0,t.max)(...e.map(e=>e.bottom))-r}}let a=new Set(["left","top"]);async function s(e,n){let{placement:r,platform:o,elements:i}=e,l=await (null==o.isRTL?void 0:o.isRTL(i.floating)),u=(0,t.getSide)(r),s=(0,t.getAlignment)(r),c="y"===(0,t.getSideAxis)(r),f=a.has(u)?-1:1,d=l&&c?-1:1,m=(0,t.evaluate)(n,e),{mainAxis:g,crossAxis:v,alignmentAxis:p}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return s&&"number"==typeof p&&(v="end"===s?-1*p:p),c?{x:v*d,y:g*f}:{x:g*f,y:v*d}}e.s(["arrow",0,e=>({name:"arrow",options:e,async fn(n){let{x:r,y:o,placement:i,rects:l,platform:u,elements:a,middlewareData:s}=n,{element:c,padding:f=0}=(0,t.evaluate)(e,n)||{};if(null==c)return{};let d=(0,t.getPaddingObject)(f),m={x:r,y:o},g=(0,t.getAlignmentAxis)(i),v=(0,t.getAxisLength)(g),p=await u.getDimensions(c),h="y"===g,y=h?"clientHeight":"clientWidth",b=l.reference[v]+l.reference[g]-m[g]-l.floating[v],E=m[g]-l.reference[g],w=await (null==u.getOffsetParent?void 0:u.getOffsetParent(c)),x=w?w[y]:0;x&&await (null==u.isElement?void 0:u.isElement(w))||(x=a.floating[y]||l.floating[v]);let R=x/2-p[v]/2-1,L=(0,t.min)(d[h?"top":"left"],R),T=(0,t.min)(d[h?"bottom":"right"],R),C=x-p[v]-T,A=x/2-p[v]/2+(b/2-E/2),M=(0,t.clamp)(L,A,C),S=!s.arrow&&null!=(0,t.getAlignment)(i)&&A!==M&&l.reference[v]/2-(A<L?L:T)-p[v]/2<0,k=S?A<L?A-L:A-C:0;return{[g]:m[g]+k,data:{[g]:M,centerOffset:A-M-k,...S&&{alignmentOffset:k}},reset:S}}}),"autoPlacement",0,function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(n){var r,o,i,l;let{rects:u,middlewareData:a,placement:s,platform:c,elements:f}=n,{crossAxis:d=!1,alignment:m,allowedPlacements:g=t.placements,autoAlignment:v=!0,...p}=(0,t.evaluate)(e,n),h=void 0!==m||g===t.placements?((l=m||null)?[...g.filter(e=>(0,t.getAlignment)(e)===l),...g.filter(e=>(0,t.getAlignment)(e)!==l)]:g.filter(e=>(0,t.getSide)(e)===e)).filter(e=>!l||(0,t.getAlignment)(e)===l||!!v&&(0,t.getOppositeAlignmentPlacement)(e)!==e):g,y=await c.detectOverflow(n,p),b=(null==(r=a.autoPlacement)?void 0:r.index)||0,E=h[b];if(null==E)return{};let w=(0,t.getAlignmentSides)(E,u,await (null==c.isRTL?void 0:c.isRTL(f.floating)));if(s!==E)return{reset:{placement:h[0]}};let x=[y[(0,t.getSide)(E)],y[w[0]],y[w[1]]],R=[...(null==(o=a.autoPlacement)?void 0:o.overflows)||[],{placement:E,overflows:x}],L=h[b+1];if(L)return{data:{index:b+1,overflows:R},reset:{placement:L}};let T=R.map(e=>{let n=(0,t.getAlignment)(e.placement);return[e.placement,n&&d?e.overflows.slice(0,2).reduce((e,t)=>
2e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),C=(null==(i=T.filter(e=>e[2].slice(0,(0,t.getAlignment)(e[0])?2:3).every(e=>e<=0))[0])?void 0:i[0])||T[0][0];return C!==s?{data:{index:b+1,overflows:R},reset:{placement:C}}:{}}}},"computePosition",0,o,"detectOverflow",0,r,"flip",0,function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(n){var r,o,i,l,u;let{placement:a,middlewareData:s,rects:c,initialPlacement:f,platform:d,elements:m}=n,{mainAxis:g=!0,crossAxis:v=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:b=!0,...E}=(0,t.evaluate)(e,n);if(null!=(r=s.arrow)&&r.alignmentOffset)return{};let w=(0,t.getSide)(a),x=(0,t.getSideAxis)(f),R=(0,t.getSide)(f)===f,L=await (null==d.isRTL?void 0:d.isRTL(m.floating)),T=p||(R||!b?[(0,t.getOppositePlacement)(f)]:(0,t.getExpandedPlacements)(f)),C="none"!==y;!p&&C&&T.push(...(0,t.getOppositeAxisPlacements)(f,b,y,L));let A=[f,...T],M=await d.detectOverflow(n,E),S=[],k=(null==(o=s.flip)?void 0:o.overflows)||[];if(g&&S.push(M[w]),v){let e=(0,t.getAlignmentSides)(a,c,L);S.push(M[e[0]],M[e[1]])}if(k=[...k,{placement:a,overflows:S}],!S.every(e=>e<=0)){let e=((null==(i=s.flip)?void 0:i.index)||0)+1,n=A[e];if(n&&("alignment"!==v||x===(0,t.getSideAxis)(n)||k.every(e=>(0,t.getSideAxis)(e.placement)!==x||e.overflows[0]>0)))return{data:{index:e,overflows:k},reset:{placement:n}};let r=null==(l=k.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:l.placement;if(!r)switch(h){case"bestFit":{let e=null==(u=k.filter(e=>{if(C){let n=(0,t.getSideAxis)(e.placement);return n===x||"y"===n}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:u[0];e&&(r=e);break}case"initialPlacement":r=f}if(a!==r)return{reset:{placement:r}}}return{}}}},"hide",0,function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(n){let{rects:r,platform:o}=n,{strategy:u="referenceHidden",...a}=(0,t.evaluate)(e,n);switch(u){case"referenceHidden":{let e=i(await o.detectOverflow(n,{...a,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:l(e)}}}case"escaped":{let e=i(await o.detectOverflow(n,{...a,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:l(e)}}}default:return{}}}}},"inline",0,function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(n){let{placement:r,elements:o,rects:i,platform:l,strategy:a}=n,{padding:s=2,x:c,y:f}=(0,t.evaluate)(e,n),d=Array.from(await (null==l.getClientRects?void 0:l.getClientRects(o.reference))||[]),m=function(e){let n=e.slice().sort((e,t)=>e.y-t.y),r=[],o=null;for(let e=0;e<n.length;e++){let t=n[e];!o||t.y-o.y>o.height/2?r.push([t]):r[r.length-1].push(t),o=t}return r.map(e=>(0,t.rectToClientRect)(u(e)))}(d),g=(0,t.rectToClientRect)(u(d)),v=(0,t.getPaddingObject)(s),p=await l.getElementRects({reference:{getBoundingClientRect:function(){if(2===m.length&&m[0].left>m[1].right&&null!=c&&null!=f)return m.find(e=>c>e.left-v.left&&c<e.right+v.right&&f>e.top-v.top&&f<e.bottom+v.bottom)||g;if(m.length>=2){if("y"===(0,t.getSideAxis)(r)){let e=m[0],n=m[m.length-1],o="top"===(0,t.getSide)(r),i=e.top,l=n.bottom,u=o?e.left:n.left,a=o?e.right:n.right;return{top:i,bottom:l,left:u,right:a,width:a-u,height:l-i,x:u,y:i}}let e="left"===(0,t.getSide)(r),n=(0,t.max)(...m.map(e=>e.right)),o=(0,t.min)(...m.map(e=>e.left)),i=m.filter(t=>e?t.left===o:t.right===n),l=i[0].top,u=i[i.length-1].bottom;return{top:l,bottom:u,left:o,right:n,width:n-o,height:u-l,x:o,y:l}}return g}},floating:o.floating,strategy:a});return i.reference.x!==p.reference.x||i.reference.y!==p.reference.y||i.reference.width!==p.reference.width||i.reference.height!==p.reference.height?{reset:{rects:p}}:{}}}},"limitShift",0,function(e){return void 0===e&&(e={}),{options:e,fn(n){let{x:r,y:o,placement:i,rects:l,middlewareData:u}=n,{offset:s=0,mainAxis:c=!0,crossAxis:f=!0}=(0,t.evaluate)(e,n),d={x:r,y:o},m=(0,t.getSideAxis)(i),g=(0,t.getOppositeAxis)(m),v=d[g],p=d[m],h=(0,t.evaluate)(s,n),y="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e="y"===g?"height":"width",t=l.reference[g]-l.floating[e]+y.mainAxis,n=l.reference[g]+l.reference[e]-y.mainAxis;v<t?v=t:v>n&&(v=n)}if(f){var b,E;let e="y"===g?"width":"height",n=a.has((0,t.getSide)(i)),r=l.reference[m]-l.floating[e]+(n&&(null==(b=u.offset)?void 0:b[m])||0)+(n?0:y.crossAxis),o=l.reference[m]+l.reference[e]+(n?0:(null==(E=u.offset)?void 0:E[m])||0)-(n?y.crossAxis:0);p<r?p=r:p>o&&(p=o)}return{[g]:v,[m]:p}}}},"offset",0,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 s(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}}}}},"shift",0,function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(n){let{x:r,y:o,placement:i,platform:l}=n,{mainAxis:u=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=(0,t.evaluate)(e,n),f={x:r,y:o},d=await l.detectOverflow(n,c),m=(0,t.getSideAxis)((0,t.getSide)(i)),g=(0,t.getOppositeAxis)(m),v=f[g],p=f[m];if(u){let e="y"===g?"top":"left",n="y"===g?"bottom":"right",r=v+d[e],o=v-d[n];v=(0,t.clamp)(r,v,o)}
2if(a){let e="y"===m?"top":"left",n="y"===m?"bottom":"right",r=p+d[e],o=p-d[n];p=(0,t.clamp)(r,p,o)}let h=s.fn({...n,[g]:v,[m]:p});return{...h,data:{x:h.x-r,y:h.y-o,enabled:{[g]:u,[m]:a}}}}}},"size",0,function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(n){var r,o;let i,l,{placement:u,rects:a,platform:s,elements:c}=n,{apply:f=()=>{},...d}=(0,t.evaluate)(e,n),m=await s.detectOverflow(n,d),g=(0,t.getSide)(u),v=(0,t.getAlignment)(u),p="y"===(0,t.getSideAxis)(u),{width:h,height:y}=a.floating;"top"===g||"bottom"===g?(i=g,l=v===(await (null==s.isRTL?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(l=g,i="end"===v?"top":"bottom");let b=y-m.top-m.bottom,E=h-m.left-m.right,w=(0,t.min)(y-m[i],b),x=(0,t.min)(h-m[l],E),R=!n.middlewareData.shift,L=w,T=x;if(null!=(r=n.middlewareData.shift)&&r.enabled.x&&(T=E),null!=(o=n.middlewareData.shift)&&o.enabled.y&&(L=b),R&&!v){let e=(0,t.max)(m.left,0),n=(0,t.max)(m.right,0),r=(0,t.max)(m.top,0),o=(0,t.max)(m.bottom,0);p?T=h-2*(0!==e||0!==n?e+n:(0,t.max)(m.left,m.right)):L=y-2*(0!==r||0!==o?r+o:(0,t.max)(m.top,m.bottom))}await f({...n,availableWidth:T,availableHeight:L});let C=await s.getDimensions(c.floating);return h!==C.width||y!==C.height?{reset:{rects:!0}}:{}}}}])},258950,953760,e=>{"use strict";var t=e.i(343084),n=e.i(101534),r=e.i(229315);function o(e){let n=(0,r.getComputedStyle)(e),o=parseFloat(n.width)||0,i=parseFloat(n.height)||0,l=(0,r.isHTMLElement)(e),u=l?e.offsetWidth:o,a=l?e.offsetHeight:i,s=(0,t.round)(o)!==u||(0,t.round)(i)!==a;return s&&(o=u,i=a),{width:o,height:i,$:s}}function i(e){return(0,r.isElement)(e)?e:e.contextElement}function l(e){let n=i(e);if(!(0,r.isHTMLElement)(n))return(0,t.createCoords)(1);let l=n.getBoundingClientRect(),{width:u,height:a,$:s}=o(n),c=(s?(0,t.round)(l.width):l.width)/u,f=(s?(0,t.round)(l.height):l.height)/a;return c&&Number.isFinite(c)||(c=1),f&&Number.isFinite(f)||(f=1),{x:c,y:f}}let u=(0,t.createCoords)(0);function a(e){let t=(0,r.getWindow)(e);return(0,r.isWebKit)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:u}function s(e,n,o,u){var s;void 0===n&&(n=!1),void 0===o&&(o=!1);let c=e.getBoundingClientRect(),f=i(e),d=(0,t.createCoords)(1);n&&(u?(0,r.isElement)(u)&&(d=l(u)):d=l(e));let m=(void 0===(s=o)&&(s=!1),u&&(!s||u===(0,r.getWindow)(f))&&s)?a(f):(0,t.createCoords)(0),g=(c.left+m.x)/d.x,v=(c.top+m.y)/d.y,p=c.width/d.x,h=c.height/d.y;if(f){let e=(0,r.getWindow)(f),t=u&&(0,r.isElement)(u)?(0,r.getWindow)(u):u,n=e,o=(0,r.getFrameElement)(n);for(;o&&u&&t!==n;){let e=l(o),t=o.getBoundingClientRect(),i=(0,r.getComputedStyle)(o),u=t.left+(o.clientLeft+parseFloat(i.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(i.paddingTop))*e.y;g*=e.x,v*=e.y,p*=e.x,h*=e.y,g+=u,v+=a,n=(0,r.getWindow)(o),o=(0,r.getFrameElement)(n)}}return(0,t.rectToClientRect)({width:p,height:h,x:g,y:v})}function c(e,t){let n=(0,r.getNodeScroll)(e).scrollLeft;return t?t.left+n:s((0,r.getDocumentElement)(e)).left+n}function f(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-c(e,n),y:n.top+t.scrollTop}}function d(e,n,o){var i;let u;if("viewport"===n)u=function(e,t){let n=(0,r.getWindow)(e),o=(0,r.getDocumentElement)(e),i=n.visualViewport,l=o.clientWidth,u=o.clientHeight,a=0,s=0;if(i){l=i.width,u=i.height;let e=(0,r.isWebKit)();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,s=i.offsetTop)}let f=c(o);if(f<=0){let e=o.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(o.clientWidth-t.clientWidth-r);i<=25&&(l-=i)}else f<=25&&(l+=f);return{width:l,height:u,x:a,y:s}}(e,o);else if("document"===n){let n,o,l,a,s,f,d;i=(0,r.getDocumentElement)(e),n=(0,r.getDocumentElement)(i),o=(0,r.getNodeScroll)(i),l=i.ownerDocument.body,a=(0,t.max)(n.scrollWidth,n.clientWidth,l.scrollWidth,l.clientWidth),s=(0,t.max)(n.scrollHeight,n.clientHeight,l.scrollHeight,l.clientHeight),f=-o.scrollLeft+c(i),d=-o.scrollTop,"rtl"===(0,r.getComputedStyle)(l).direction&&(f+=(0,t.max)(n.clientWidth,l.clientWidth)-a),u={width:a,height:s,x:f,y:d}}else if((0,r.isElement)(n)){let e,i,a,c,f,d;i=(e=s(n,!0,"fixed"===o)).top+n.clientTop,a=e.left+n.clientLeft,c=(0,r.isHTMLElement)(n)?l(n):(0,t.createCoords)(1),f=n.clientWidth*c.x,d=n.clientHeight*c.y,u={width:f,height:d,x:a*c.x,y:i*c.y}}else{let t=a(e);u={x:n.x-t.x,y:n.y-t.y,width:n.width,height:n.height}}return(0,t.rectToClientRect)(u)}function m(e){return"static"===(0,r.getComputedStyle)(e).position}function g(e,t){if(!(0,r.isHTMLElement)(e)||"fixed"===(0,r.getComputedStyle)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,r.getDocumentElement)(e)===n&&(n=n.ownerDocument.body),n}function v(e,t){let n=(0,r.getWindow)(e);if((0,r.isTopLayer)(e))return n;if(!(0,r.isHTMLElement)(e)){let t=(0,r.getParentNode)(e);for(;t&&!(0,r.isLastTraversableNode)(t);){if((0,r.isElement)(t)&&!m(t))return t;t=(0,r.getParentNode)(t)}return n}let o=g(e,t);for(;o&&(0,r.isTableElement)(o)&&m(o);)o=g(o,t);return o&&(0,r.isLastTraversableNode)(o)&&m(o)&&!(0,r.isContainingBlock)(o)?n:o||(0,r.getContainingBlock)(e)||n}let p=async function(e){let n=this.getOffsetParent||v,o=this.getDimensions,i=await o(e.floating);return{reference:function(e,n,o){let i=(0,r.isHTMLElement)(n),l=(0,r.getDocumentElement)(n),u="fixed"===o,a=s(e,!0,u,n),d={scrollLeft:0,scrollTop:0},m=(0,t.createCoords)(0);if(i||!i&&!u)if(("body"!==(0,r.getNodeName)(n)||(0,r.isOverflowElement)(l))&&(d=(0,r.getNodeScroll)(n)),i){let e=s(n,!0,u,n);m.x=e.x+n.clientLeft,m.y=e.y+n.clientTop}else l&&(m.x=c(l));u&&!i&&l&&(m.x=c(l));let g=!l||i||u?(0,t.createCoords)(0):f(l,d);return{x:a.left+d.scrollLeft-m.x-g.x,y:a.top+d.scrollTop-m.y-g.y,width:a.width,height:a.height}}(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},h={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:n,rect:o,offsetParent:i,strategy:u}=e,a="fixed"===u,c=(0,r.getDocumentElement)(i),d=!!n&&(0,r.isTopLayer)(n.floating);if(i===c||d&&a)return o;let m={scrollLeft:0,scrollTop:0},g=(0,t.createCoords)(1),v=(0,t.createCoords)(0),p=(0,r.isHTMLElement)(i);if((p||!p&&!a)&&(("body"!==(0,r.getNodeName)(i)||(0,r.isOverflowElement)(c))&&(m=(0,r.getNodeScroll)(i)),p)){let e=s(i);g=l(i),v.x=e.x+i.clientLeft,v.y=e.y+i.clientTop}let h=!c||p||a?(0,t.createCoords)(0):f(c,m);return{width:o.width*g.x,height:o.height*g.y,x:o.x*g.x-m.scrollLeft*g.x+v.x+h.x,y:o.y*g.y-m.scrollTop*g.y+v.
2y+h.y}},getDocumentElement:r.getDocumentElement,getClippingRect:function(e){let{element:n,boundary:o,rootBoundary:i,strategy:l}=e,u=[..."clippingAncestors"===o?(0,r.isTopLayer)(n)?[]:function(e,t){let n=t.get(e);if(n)return n;let o=(0,r.getOverflowAncestors)(e,[],!1).filter(e=>(0,r.isElement)(e)&&"body"!==(0,r.getNodeName)(e)),i=null,l="fixed"===(0,r.getComputedStyle)(e).position,u=l?(0,r.getParentNode)(e):e;for(;(0,r.isElement)(u)&&!(0,r.isLastTraversableNode)(u);){let t=(0,r.getComputedStyle)(u),n=(0,r.isContainingBlock)(u);n||"fixed"!==t.position||(i=null),(l?n||i:!(!n&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||(0,r.isOverflowElement)(u)&&!n&&function e(t,n){let o=(0,r.getParentNode)(t);return!(o===n||!(0,r.isElement)(o)||(0,r.isLastTraversableNode)(o))&&("fixed"===(0,r.getComputedStyle)(o).position||e(o,n))}(e,u)))?i=t:o=o.filter(e=>e!==u),u=(0,r.getParentNode)(u)}return t.set(e,o),o}(n,this._c):[].concat(o),i],a=d(n,u[0],l),s=a.top,c=a.right,f=a.bottom,m=a.left;for(let e=1;e<u.length;e++){let r=d(n,u[e],l);s=(0,t.max)(r.top,s),c=(0,t.min)(r.right,c),f=(0,t.min)(r.bottom,f),m=(0,t.max)(r.left,m)}return{width:c-m,height:f-s,x:m,y:s}},getOffsetParent:v,getElementRects:p,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=o(e);return{width:t,height:n}},getScale:l,isElement:r.isElement,isRTL:function(e){return"rtl"===(0,r.getComputedStyle)(e).direction}};function y(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}n.detectOverflow;let b=n.offset,E=n.autoPlacement,w=n.shift,x=n.flip,R=n.size,L=n.hide,T=n.arrow,C=n.inline,A=n.limitShift,M=(e,t,r)=>{let o=new Map,i={platform:h,...r},l={...i.platform,_c:o};return(0,n.computePosition)(e,t,{...i,platform:l})};e.s(["arrow",0,T,"autoPlacement",0,E,"autoUpdate",0,function(e,n,o,l){let u;void 0===l&&(l={});let{ancestorScroll:a=!0,ancestorResize:c=!0,elementResize:f="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:m=!1}=l,g=i(e),v=a||c?[...g?(0,r.getOverflowAncestors)(g):[],...n?(0,r.getOverflowAncestors)(n):[]]:[];v.forEach(e=>{a&&e.addEventListener("scroll",o,{passive:!0}),c&&e.addEventListener("resize",o)});let p=g&&d?function(e,n){let o,i=null,l=(0,r.getDocumentElement)(e);function u(){var e;clearTimeout(o),null==(e=i)||e.disconnect(),i=null}return!function r(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),u();let c=e.getBoundingClientRect(),{left:f,top:d,width:m,height:g}=c;if(a||n(),!m||!g)return;let v={rootMargin:-(0,t.floor)(d)+"px "+-(0,t.floor)(l.clientWidth-(f+m))+"px "+-(0,t.floor)(l.clientHeight-(d+g))+"px "+-(0,t.floor)(f)+"px",threshold:(0,t.max)(0,(0,t.min)(1,s))||1},p=!0;function h(t){let n=t[0].intersectionRatio;if(n!==s){if(!p)return r();n?r(!1,n):o=setTimeout(()=>{r(!1,1e-7)},1e3)}1!==n||y(c,e.getBoundingClientRect())||r(),p=!1}try{i=new IntersectionObserver(h,{...v,root:l.ownerDocument})}catch(e){i=new IntersectionObserver(h,v)}i.observe(e)}(!0),u}(g,o):null,h=-1,b=null;f&&(b=new ResizeObserver(e=>{let[t]=e;t&&t.target===g&&b&&n&&(b.unobserve(n),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=b)||e.observe(n)})),o()}),g&&!m&&b.observe(g),n&&b.observe(n));let E=m?s(e):null;return m&&function t(){let n=s(e);E&&!y(E,n)&&o(),E=n,u=requestAnimationFrame(t)}(),o(),()=>{var e;v.forEach(e=>{a&&e.removeEventListener("scroll",o),c&&e.removeEventListener("resize",o)}),null==p||p(),null==(e=b)||e.disconnect(),b=null,m&&cancelAnimationFrame(u)}},"computePosition",0,M,"flip",0,x,"hide",0,L,"inline",0,C,"limitShift",0,A,"offset",0,b,"shift",0,w,"size",0,R],953760);var S=e.i(271645),k=e.i(174080),O="u">typeof document?S.useLayoutEffect:function(){};function N(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(!N(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)&&!N(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function P(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function D(e,t){let n=P(e);return Math.round(t*n)/n}function I(e){let t=S.useRef(e);return O(()=>{t.current=e}),t}e.s(["arrow",0,(e,t)=>{let n={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?T({element:n.current,padding:r}).fn(t):{}:n?T({element:n,padding:r}).fn(t):{}}};return{name:n.name,fn:n.fn,options:[e,t]}},"flip",0,(e,t)=>{let n=x(e);return{name:n.name,fn:n.fn,options:[e,t]}},"offset",0,(e,t)=>{let n=b(e);return{name:n.name,fn:n.fn,options:[e,t]}},"shift",0,(e,t)=>{let n=w(e);return{name:n.name,fn:n.fn,options:[e,t]}},"useFloating",0,function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:u=!0,whileElementsMounted:a,open:s}=e,[c,f]=S.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,m]=S.useState(r);N(d,r)||m(r);let[g,v]=S.useState(null),[p,h]=S.useState(null),y=S.useCallback(e=>
2{e!==x.current&&(x.current=e,v(e))},[]),b=S.useCallback(e=>{e!==R.current&&(R.current=e,h(e))},[]),E=i||g,w=l||p,x=S.useRef(null),R=S.useRef(null),L=S.useRef(c),T=null!=a,C=I(a),A=I(o),F=I(s),W=S.useCallback(()=>{if(!x.current||!R.current)return;let e={placement:t,strategy:n,middleware:d};A.current&&(e.platform=A.current),M(x.current,R.current,e).then(e=>{let t={...e,isPositioned:!1!==F.current};H.current&&!N(L.current,t)&&(L.current=t,k.flushSync(()=>{f(t)}))})},[d,t,n,A,F]);O(()=>{!1===s&&L.current.isPositioned&&(L.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[s]);let H=S.useRef(!1);O(()=>(H.current=!0,()=>{H.current=!1}),[]),O(()=>{if(E&&(x.current=E),w&&(R.current=w),E&&w){if(C.current)return C.current(E,w,W);W()}},[E,w,W,C,T]);let j=S.useMemo(()=>({reference:x,floating:R,setReference:y,setFloating:b}),[y,b]),B=S.useMemo(()=>({reference:E,floating:w}),[E,w]),_=S.useMemo(()=>{let e={position:n,left:0,top:0};if(!B.floating)return e;let t=D(B.floating,c.x),r=D(B.floating,c.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...P(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,B.floating,c.x,c.y]);return S.useMemo(()=>({...c,update:W,refs:j,elements:B,floatingStyles:_}),[c,W,j,B,_])}],258950)},543489,e=>{"use strict";var t=e.i(271645),n=e.i(167173),r=e.i(843476),o=e.i(229315),i=e.i(397126),l=e.i(174080),u=e.i(258950);function a(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.i(343084);let s=t.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}}),c="active",f="selected",d="ArrowLeft",m="ArrowRight",g="ArrowUp",v="ArrowDown",p={...t},h=!1,y=0,b=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+y++,E=p.useId||function(){let[e,r]=t.useState(()=>h?b():void 0);return(0,n.useModernLayoutEffect)(()=>{null==e&&r(b())},[]),t.useEffect(()=>{h=!0},[]),e},w=t.forwardRef(function(e,i){let{context:{placement:l,elements:{floating:u},middlewareData:{arrow:a,shift:s}},width:c=14,height:f=7,tipRadius:d=0,strokeWidth:m=0,staticOffset:g,stroke:v,d:p,style:{transform:h,...y}={},...b}=e,w=E(),[x,R]=t.useState(!1);if((0,n.useModernLayoutEffect)(()=>{u&&"rtl"===(0,o.getComputedStyle)(u).direction&&R(!0)},[u]),!u)return null;let[L,T]=l.split("-"),C="top"===L||"bottom"===L,A=g;(C&&null!=s&&s.x||!C&&null!=s&&s.y)&&(A=null);let M=2*m,S=M/2,k=c/2*(-(d/8)+1),O=f/2*d/4,N=!!p,P=A&&"end"===T?"bottom":"top",D=A&&"end"===T?"right":"left";A&&x&&(D="end"===T?"left":"right");let I=(null==a?void 0:a.x)!=null?A||a.x:"",F=(null==a?void 0:a.y)!=null?A||a.y:"",W=p||"M0,0 H"+c+(" L"+(c-k))+","+(f-O)+(" Q"+c/2+","+f+" "+k)+","+(f-O)+" Z",H={top:N?"rotate(180deg)":"",left:N?"rotate(90deg)":"rotate(-90deg)",bottom:N?"":"rotate(180deg)",right:N?"rotate(-90deg)":"rotate(90deg)"}[L];return(0,r.jsxs)("svg",{...b,"aria-hidden":!0,ref:i,width:N?c:c+M,height:c,viewBox:"0 0 "+c+" "+(f>c?f:c),style:{position:"absolute",pointerEvents:"none",[D]:I,[P]:F,[L]:C||N?"100%":"calc(100% - "+M/2+"px)",transform:[H,h].filter(e=>!!e).join(" "),...y},children:[M>0&&(0,r.jsx)("path",{clipPath:"url(#"+w+")",fill:"none",stroke:v,strokeWidth:M+ +!p,d:W}),(0,r.jsx)("path",{stroke:M&&!p?b.fill:"none",d:W}),(0,r.jsx)("clipPath",{id:w,children:(0,r.jsx)("rect",{x:-S,y:S*(N?-1:1),width:c+M,height:c})})]})}),x=t.createContext(null),R=t.createContext(null),L=()=>{var e;return(null==(e=t.useContext(x))?void 0:e.id)||null};function T(e){return"data-floating-ui-"+e}function C(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}let A=T("safe-polygon");function M(e,t,r){if(r&&!(0,n.isMouseLikePointerType)(r))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 S(e){return"function"==typeof e?e():e}let k=0;function O(e,t){void 0===t&&(t={});let{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(k);let i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():k=requestAnimationFrame(i)}function N(e,t){if(!e||!t)return!1;let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;
vendor: 4,233 bytes, line 2
2if(n&&(0,o.isShadowRoot)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}let P={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function D(e){return"inert"===e?P.inert:"aria-hidden"===e?P["aria-hidden"]:P.none}let I=new WeakSet,F={},W=0;function H(e,t,n){var r,i,l;let u,a,s,c,f,d,m;void 0===t&&(t=!1),void 0===n&&(n=!1);let g=((null==(r=e[0])?void 0:r.ownerDocument)||document).body;return i=e.concat(Array.from(g.querySelectorAll('[aria-live],[role="status"],output'))),l=t,u="data-floating-ui-inert",a=n?"inert":l?"aria-hidden":null,s=i.map(e=>{if(g.contains(e))return e;let t=function e(t){return t?(0,o.isShadowRoot)(t)?t.host:e(t.parentNode):null}(e);return g.contains(t)?t:null}).filter(e=>null!=e),c=new Set,f=new Set(s),d=[],F[u]||(F[u]=new WeakMap),m=F[u],s.forEach(function e(t){!(!t||c.has(t))&&(c.add(t),t.parentNode&&e(t.parentNode))}),function e(t){!t||f.has(t)||[].forEach.call(t.children,t=>{if("script"!==(0,o.getNodeName)(t))if(c.has(t))e(t);else{let e=a?t.getAttribute(a):null,n=null!==e&&"false"!==e,r=D(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&&I.add(t),1===i&&t.setAttribute(u,""),!n&&a&&t.setAttribute(a,"inert"===a?"":"true")}})}(g),c.clear(),W++,()=>{d.forEach(e=>{let t=D(a),n=(t.get(e)||0)-1,r=(m.get(e)||0)-1;t.set(e,n),m.set(e,r),n||(!I.has(e)&&a&&e.removeAttribute(a),I.delete(e)),r||e.removeAttribute(u)}),--W||(P.inert=new WeakMap,P["aria-hidden"]=new WeakMap,P.none=new WeakMap,I=new WeakSet,F={})}}let j={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},B=t.forwardRef(function(e,o){let[i,l]=t.useState();(0,n.useModernLayoutEffect)(()=>{(0,n.isSafari)()&&l("button")},[]);let u={ref:o,tabIndex:0,role:i,"aria-hidden":!i||void 0,[T("focus-guard")]:"",style:j};return(0,r.jsx)("span",{...e,...u})}),_={clipPath:"inset(50%)",position:"fixed",top:0,left:0},V=t.createContext(null),q=T("portal");function K(e){return t.useMemo(()=>t=>{e.forEach(e=>{e&&(e.current=t)})},e)}let U=[];function z(){U=U.filter(e=>{var t;return null==(t=e.deref())?void 0:t.isConnected})}function G(){z();let e=U[U.length-1];return null==e?void 0:e.deref()}function X(e,t){var r;if(!t.current.includes("floating")&&!(null!=(r=e.getAttribute("role"))&&r.includes("dialog")))return;let o=(0,n.getTabbableOptions)(),l=(0,i.focusable)(e,o).filter(e=>{let t=e.getAttribute("data-tabindex")||"";return(0,i.isTabbable)(e,o)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),u=e.getAttribute("tabindex");t.current.includes("floating")||0===l.length?"0"!==u&&e.setAttribute("tabindex","0"):("-1"!==u||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}let Y=t.forwardRef(function(e,t){return(0,r.jsx)("button",{...e,type:"button",ref:t,tabIndex:-1,style:j})});function $(e){return(0,o.isHTMLElement)(e.target)&&"BUTTON"===e.target.tagName}function Z(e){return(0,n.isTypeableElement)(e)}let Q={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},J={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},ee=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 et(){return(0,n.isMac)()&&(0,n.isSafari)()}function en(e,t,n){let r=new Map,o="item"===n,i=e;if(o&&e){let{[c]:t,[f]: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)=>(t&&Object.entries(t).forEach(t=>{let[n,i]=t;if(!(o&&[c,f].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 er(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function eo(e,t){return er(t,e===g||e===v,e===d||e===m)}
2function ei(e,t,n){return er(t,e===v,n?e===d:e===m)||"Enter"===e||" "===e||""===e}function el(e,t,n){return er(t,n?e===d:e===m,e===v)}function eu(e,t,n,r){return"both"===t||"horizontal"===t&&r&&r>1?"Escape"===e:er(t,n?e===m:e===d,e===g)}let ea=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]),es=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,t)=>(t?"-":"")+e.toLowerCase());function ec(e,t){return"function"==typeof e?e(t):e}function ef(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,s]=t[l]||[0,0];u>=r!=s>=r&&n<=(a-i)*(r-u)/(s-u)+i&&(o=!o)}return o}e.s(["FloatingArrow",0,w,"FloatingFocusManager",0,function(e){let{context:l,children:u,disabled:a=!1,order:s=["content"],guards:c=!0,initialFocus:f=0,returnFocus:d=!0,restoreFocus:m=!1,modal:g=!0,visuallyHiddenDismiss:v=!1,closeOnFocusOut:p=!0,outsideElementsInert:h=!1,getInsideElements:y=()=>[]}=e,{open:b,onOpenChange:E,events:w,dataRef:x,elements:{domReference:L,floating:A}}=l,M=(0,n.useEffectEvent)(()=>{var e;return null==(e=x.current.floatingContext)?void 0:e.nodeId}),S=(0,n.useEffectEvent)(y),k="number"==typeof f&&f<0,N=(0,n.isTypeableCombobox)(L)&&k,P="u">typeof HTMLElement&&"inert"in HTMLElement.prototype,D=!P||c,I=!D||P&&h,F=(0,n.useLatestRef)(s),W=(0,n.useLatestRef)(f),_=(0,n.useLatestRef)(d),q=t.useContext(R),$=t.useContext(V),Z=t.useRef(null),Q=t.useRef(null),J=t.useRef(!1),ee=t.useRef(!1),et=t.useRef(-1),en=t.useRef(-1),er=null!=$,eo=(0,n.getFloatingFocusElement)(A),ei=(0,n.useEffectEvent)(function(e){return void 0===e&&(e=eo),e?(0,i.tabbable)(e,(0,n.getTabbableOptions)()):[]}),el=(0,n.useEffectEvent)(e=>{let t=ei(e);return F.current.map(e=>L&&"reference"===e?L:eo&&"floating"===e?eo:t).filter(Boolean).flat()});t.useEffect(()=>{if(a||!g)return;function e(e){if("Tab"===e.key){(0,n.contains)(eo,(0,n.activeElement)((0,n.getDocument)(eo)))&&0===ei().length&&!N&&(0,n.stopEvent)(e);let t=el(),r=(0,n.getTarget)(e);"reference"===F.current[0]&&r===L&&((0,n.stopEvent)(e),e.shiftKey?O(t[t.length-1]):O(t[1])),"floating"===F.current[1]&&r===eo&&e.shiftKey&&((0,n.stopEvent)(e),O(t[0]))}}let t=(0,n.getDocument)(eo);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[a,L,eo,g,F,N,ei,el]),t.useEffect(()=>{if(!a&&A)return A.addEventListener("focusin",e),()=>{A.removeEventListener("focusin",e)};function e(e){let t=(0,n.getTarget)(e),r=ei().indexOf(t);-1!==r&&(et.current=r)}},[a,A,ei]),t.useEffect(()=>{if(a||!p)return;function e(){ee.current=!0,setTimeout(()=>{ee.current=!1})}function t(e){let t=e.relatedTarget,r=e.currentTarget,i=(0,n.getTarget)(e);queueMicrotask(()=>{let l=M(),u=!((0,n.contains)(L,t)||(0,n.contains)(A,t)||(0,n.contains)(t,A)||(0,n.contains)(null==$?void 0:$.portalNode,t)||null!=t&&t.hasAttribute(T("focus-guard"))||q&&((0,n.getNodeChildren)(q.nodesRef.current,l).find(e=>{var r,o;return(0,n.contains)(null==(r=e.context)?void 0:r.elements.floating,t)||(0,n.contains)(null==(o=e.context)?void 0:o.elements.domReference,t)})||(0,n.getNodeAncestors)(q.nodesRef.current,l).find(e=>{var r,o,i;return[null==(r=e.context)?void 0:r.elements.floating,(0,n.getFloatingFocusElement)(null==(o=e.context)?void 0:o.elements.floating)].includes(t)||(null==(i=e.context)?void 0:i.elements.domReference)===t})));if(r===L&&eo&&X(eo,F),m&&r!==L&&!(null!=i&&i.isConnected)&&(0,n.activeElement)((0,n.getDocument)(eo))===(0,n.getDocument)(eo).body){(0,o.isHTMLElement)(eo)&&eo.focus();let e=et.current,t=ei(),n=t[e]||t[t.length-1]||eo;(0,o.isHTMLElement)(n)&&n.focus()}if(x.current.insideReactTree){x.current.insideReactTree=!1;return}(N||!g)&&t&&u&&!ee.current&&t!==G()&&(J.current=!0,E(!1,e,"focus-out"))})}let r=!!(!q&&$);function i(){C(en),x.current.insideReactTree=!0,en.current=window.setTimeout(()=>{x.current.insideReactTree=!1})}if(A&&(0,o.isHTMLElement)(L))return L.addEventListener("focusout",t),L.addEventListener("pointerdown",e),A.addEventListener("focusout",t),r&&A.addEventListener("focusout",i,!0),()=>{L.removeEventListener("focusout",t),L.removeEventListener("pointerdown",e),A.removeEventListener("focusout",t),r&&A.removeEventListener("focusout",i,!0)}}
vendor: 4,440 bytes, line 2
2,[a,L,A,eo,g,q,$,E,p,m,ei,N,M,F,x]);let eu=t.useRef(null),ea=t.useRef(null),es=K([eu,null==$?void 0:$.beforeInsideRef]),ec=K([ea,null==$?void 0:$.afterInsideRef]);function ef(e){return!a&&v&&g?(0,r.jsx)(Y,{ref:"start"===e?Z:Q,onClick:e=>E(!1,e.nativeEvent),children:"string"==typeof v?v:"Dismiss"}):null}t.useEffect(()=>{var e,t;if(a||!A)return;let r=Array.from((null==$||null==(e=$.portalNode)?void 0:e.querySelectorAll("["+T("portal")+"]"))||[]),o=[A,null==(t=(q?(0,n.getNodeAncestors)(q.nodesRef.current,M()):[]).find(e=>{var t;return(0,n.isTypeableCombobox)((null==(t=e.context)?void 0:t.elements.domReference)||null)}))||null==(t=t.context)?void 0:t.elements.domReference,...r,...S(),Z.current,Q.current,eu.current,ea.current,null==$?void 0:$.beforeOutsideRef.current,null==$?void 0:$.afterOutsideRef.current,F.current.includes("reference")||N?L:null].filter(e=>null!=e),i=g||N?H(o,!I,I):H(o);return()=>{i()}},[a,L,A,g,F,$,N,D,I,q,M,S]),(0,n.useModernLayoutEffect)(()=>{if(a||!(0,o.isHTMLElement)(eo))return;let e=(0,n.getDocument)(eo),t=(0,n.activeElement)(e);queueMicrotask(()=>{let e=el(eo),r=W.current,o=("number"==typeof r?e[r]:r.current)||eo,i=(0,n.contains)(eo,t);k||i||!b||O(o,{preventScroll:o===eo})})},[a,b,eo,k,el,W]),(0,n.useModernLayoutEffect)(()=>{var e;if(a||!eo)return;let t=(0,n.getDocument)(eo);function r(e){let{reason:t,event:r,nested:o}=e;if(["hover","safe-polygon"].includes(t)&&"mouseleave"===r.type&&(J.current=!0),"outside-press"===t)if(o)J.current=!1;else if((0,n.isVirtualClick)(r)||(0,n.isVirtualPointerEvent)(r))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=(0,n.activeElement)(t),z(),e&&"body"!==(0,o.getNodeName)(e)&&(U.push(new WeakRef(e)),U.length>20&&(U=U.slice(-20))),w.on("openchange",r);let l=t.createElement("span");return l.setAttribute("tabindex","-1"),l.setAttribute("aria-hidden","true"),Object.assign(l.style,j),er&&L&&L.insertAdjacentElement("afterend",l),()=>{w.off("openchange",r);let e=(0,n.activeElement)(t),u=(0,n.contains)(A,e)||q&&(0,n.getNodeChildren)(q.nodesRef.current,M(),!1).some(t=>{var r;return(0,n.contains)(null==(r=t.context)?void 0:r.elements.floating,e)}),a=function(){if("boolean"==typeof _.current){let e=L||G();return e&&e.isConnected?e:l}return _.current.current||l}();queueMicrotask(()=>{let r,s=(r=(0,n.getTabbableOptions)(),(0,i.isTabbable)(a,r)?a:(0,i.tabbable)(a,r)[0]||a);_.current&&!J.current&&(0,o.isHTMLElement)(s)&&(s===e||e===t.body||u)&&s.focus({preventScroll:!0}),l.remove()})}},[a,A,eo,_,x,w,q,er,L,M]),t.useEffect(()=>(queueMicrotask(()=>{J.current=!1}),()=>{queueMicrotask(z)}),[a]),(0,n.useModernLayoutEffect)(()=>{if(!a&&$)return $.setFocusManagerState({modal:g,closeOnFocusOut:p,open:b,onOpenChange:E,domReference:L}),()=>{$.setFocusManagerState(null)}},[a,$,g,b,E,p,L]),(0,n.useModernLayoutEffect)(()=>{a||eo&&X(eo,F)},[a,eo,F]);let ed=!a&&D&&(!g||!N)&&(er||g);return(0,r.jsxs)(r.Fragment,{children:[ed&&(0,r.jsx)(B,{"data-type":"inside",ref:es,onFocus:e=>{if(g){let e=el();O("reference"===s[0]?e[0]:e[e.length-1])}else if(null!=$&&$.preserveTabOrder&&$.portalNode)if(J.current=!1,(0,n.isOutsideEvent)(e,$.portalNode)){let e=(0,n.getNextTabbable)(L);null==e||e.focus()}else{var t;null==(t=$.beforeOutsideRef.current)||t.focus()}}}),!N&&ef("start"),u,ef("end"),ed&&(0,r.jsx)(B,{"data-type":"inside",ref:ec,onFocus:e=>{if(g)O(el()[0]);else if(null!=$&&$.preserveTabOrder&&$.portalNode)if(p&&(J.current=!0),(0,n.isOutsideEvent)(e,$.portalNode)){let e=(0,n.getPreviousTabbable)(L);null==e||e.focus()}else{var t;null==(t=$.afterOutsideRef.current)||t.focus()}}})]})},"FloatingList",0,function(e){let{children:n,elementsRef:o,labelsRef:i}=e,[l,u]=t.useState(()=>new Set),c=t.useCallback(e=>{u(t=>new Set(t).add(e))},[]),f=t.useCallback(e=>{u(t=>{let n=new Set(t);return n.delete(e),n})},[]),d=t.useMemo(()=>{let e=new Map;return Array.from(l.keys()).sort(a).forEach((t,n)=>{e.set(t,n)}),e},[l]);return(0,r.jsx)(s.Provider,{value:t.useMemo(()=>({register:c,unregister:f,map:d,elementsRef:o,labelsRef:i}),[c,f,d,o,i]),children:n})},"FloatingPortal",0,function(e){let{children:i,id:u,root:a,preserveTabOrder:s=!0}=e,c=function(e){void 0===e&&(e={});let{id:r,root:i}=e,l=E(),u=t.useContext(V),[a,s]=t.useState(null),c=t.useRef(null);return(0,n.useModernLayoutEffect)(()=>()=>{null==a||a.remove(),queueMicrotask(()=>{c.current=null})},[a]),(0,n.useModernLayoutEffect)(()=>
2{if(!l||c.current)return;let e=r?document.getElementById(r):null;if(!e)return;let t=document.createElement("div");t.id=l,t.setAttribute(q,""),e.appendChild(t),c.current=t,s(t)},[r,l]),(0,n.useModernLayoutEffect)(()=>{if(null===i||!l||c.current)return;let e=i||(null==u?void 0:u.portalNode);e&&!(0,o.isNode)(e)&&(e=e.current),e=e||document.body;let t=null;r&&((t=document.createElement("div")).id=r,e.appendChild(t));let n=document.createElement("div");n.id=l,n.setAttribute(q,""),(e=t||e).appendChild(n),c.current=n,s(n)},[r,i,l,u]),a}({id:u,root:a}),[f,d]=t.useState(null),m=t.useRef(null),g=t.useRef(null),v=t.useRef(null),p=t.useRef(null),h=null==f?void 0:f.modal,y=null==f?void 0:f.open,b=!!f&&!f.modal&&f.open&&s&&!!(a||c);return t.useEffect(()=>{if(c&&s&&!h)return c.addEventListener("focusin",e,!0),c.addEventListener("focusout",e,!0),()=>{c.removeEventListener("focusin",e,!0),c.removeEventListener("focusout",e,!0)};function e(e){c&&(0,n.isOutsideEvent)(e)&&("focusin"===e.type?n.enableFocusInside:n.disableFocusInside)(c)}},[c,s,h]),t.useEffect(()=>{!c||y||(0,n.enableFocusInside)(c)},[y,c]),(0,r.jsxs)(V.Provider,{value:t.useMemo(()=>({preserveTabOrder:s,beforeOutsideRef:m,afterOutsideRef:g,beforeInsideRef:v,afterInsideRef:p,portalNode:c,setFocusManagerState:d}),[s,c]),children:[b&&c&&(0,r.jsx)(B,{"data-type":"outside",ref:m,onFocus:e=>{if((0,n.isOutsideEvent)(e,c)){var t;null==(t=v.current)||t.focus()}else{let e=f?f.domReference:null,t=(0,n.getPreviousTabbable)(e);null==t||t.focus()}}}),b&&c&&(0,r.jsx)("span",{"aria-owns":c.id,style:_}),c&&l.createPortal(i,c),b&&c&&(0,r.jsx)(B,{"data-type":"outside",ref:g,onFocus:e=>{if((0,n.isOutsideEvent)(e,c)){var t;null==(t=p.current)||t.focus()}else{let t=f?f.domReference:null,r=(0,n.getNextTabbable)(t);null==r||r.focus(),(null==f?void 0:f.closeOnFocusOut)&&(null==f||f.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})},"safePolygon",0,function(e){void 0===e&&(e={});let{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,i={current:-1},l=!1,u=null,a=null,s="u">typeof performance?performance.now():0,c=e=>{let{x:n,y:c,placement:f,elements:d,onClose:m,nodeId:g,tree:v}=e;return function(e){function p(){C(i),m()}if(C(i),!d.domReference||!d.floating||null==f||null==n||null==c)return;let{clientX:h,clientY:y}=e,b=[h,y],E="composedPath"in e?e.composedPath()[0]:e.target,w="mouseleave"===e.type,x=N(d.floating,E),R=N(d.domReference,E),L=d.domReference.getBoundingClientRect(),T=d.floating.getBoundingClientRect(),A=f.split("-")[0],M=n>T.right-T.width/2,S=c>T.bottom-T.height/2,k=b[0]>=L.x&&b[0]<=L.x+L.width&&b[1]>=L.y&&b[1]<=L.y+L.height,O=T.width>L.width,P=T.height>L.height,D=(O?L:T).left,I=(O?L:T).right,F=(P?L:T).top,W=(P?L:T).bottom;if(x&&(l=!0,!w))return;if(R&&(l=!1),R&&!w){l=!0;return}if(w&&(0,o.isElement)(e.relatedTarget)&&N(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,g).length)return;if("top"===A&&c>=L.bottom-1||"bottom"===A&&c<=L.top+1||"left"===A&&n>=L.right-1||"right"===A&&n<=L.left+1)return p();let H=[];switch(A){case"top":H=[[D,L.top+1],[D,T.bottom-1],[I,T.bottom-1],[I,L.top+1]];break;case"bottom":H=[[D,T.top+1],[D,L.bottom-1],[I,L.bottom-1],[I,T.top+1]];break;case"left":H=[[T.right-1,W],[T.right-1,F],[L.left+1,F],[L.left+1,W]];break;case"right":H=[[L.right-1,W],[L.right-1,F],[T.left+1,F],[T.left+1,W]]}if(!ef([h,y],H)){if(l&&!k)return p();if(!w&&r){let t=function(e,t){let n=performance.now(),r=n-s;if(null===u||null===a||0===r)return u=e,a=t,s=n,null;let o=e-u,i=t-a,l=Math.sqrt(o*o+i*i);return u=e,a=t,s=n,l/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return p()}ef([h,y],function(e){let[n,r]=e;switch(A){case"top":{let e=[[T.left,M||O?T.bottom-t:T.top],[T.right,M?O?T.bottom-t:T.top:T.bottom-t]];return[[O?n+t/2:M?n+4*t:n-4*t,r+t+1],[O?n-t/2:M?n+4*t:n-4*t,r+t+1],...e]}case"bottom":{let e=[[T.left,M||O?T.top+t:T.bottom],[T.right,M?O?T.top+t:T.bottom:T.top+t]];return[[O?n+t/2:M?n+4*t:n-4*t,r-t],[O?n-t/2:M?n+4*t:n-4*t,r-t],...e]}case"left":return[[S||P?T.right-t:T.left,T.top],[S?P?T.right-t:T.left:T.right-t,T.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?T.left+t:T.right,T.top],[S?P?T.left+t:T.right:T.left+t,T.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,c]))?!l&&r&&(i.current=window.setTimeout(p,40)):p()}}};return c.__options={blockPointerEvents:n},c},"useClick",0,function(e,r){void 0===r&&(r={});let{open:i,onOpenChange:l,dataRef:u,elements:{domReference:a}}=e,{enabled:s=!0,event:c="click",toggle:f=!0,ignoreMouse:d=!1,keyboardHandlers:m=!0,stickIfOpen:g=!0}=r,v=t.useRef(),p=t.useRef(!1),h=t.useMemo(()=>({onPointerDown(e){v.current=e.pointerType},onMouseDown(e){let t=v.current;0!==e.button||"click"===c||(0,n.isMouseLikePointerType)(t,!0)&&d||(i&&f&&(!u.current.openEvent||!g||"mousedown"===u.current.openEvent.type)?l(!1,e.nativeEvent,"click"):(e.preventDefault(),l(!0,e.nativeEvent,"click")))},onClick(e){let t=v.current;if("mousedown"===c&&v.current){v.current=void 0;return}(0,n.isMouseLikePointerType)(t,!0)&&d||(i&&f&&(!u.current.openEvent||!g||"click"===u.current.openEvent.type)?l(!1,e.nativeEvent,"click"):l(!0,e.nativeEvent,"click"))},onKeyDown(e){v.current=void 0,!(e.defaultPrevented||!m||$(e))&&(" "!==e.key||Z(a)||(e.preventDefault(),p.current=!0),(0,o.isHTMLElement)(e.target)&&"A"===e.target.tagName||"Enter"!==e.key||(i&&f?l(!1,e.nativeEvent,"click"):l(!0,e.nativeEvent,"click")))},onKeyUp(e){!(e.defaultPrevented||!m||$(e)||Z(a))&&" "===e.key&&p.current&&(p.current=!1,i&&f?l(!1,e.nativeEvent,"click"):l(!0,e.nativeEvent,"click"))}}),[u,a,c,d,m,l,i,g,f]);return t.useMemo(()=>s?{reference:h}:{},[s,h])},"useDismiss",0,function(e,r){void 0===r&&(r={});let{open:i,onOpenChange:l,elements:u,dataRef:a}=e,{enabled:s=!0,escapeKey:c=!0,outsidePress:f=!0,outsidePressEvent:d="pointerdown",referencePress:m=!1,referencePressEvent:g="pointerdown",ancestorScroll:v=!1,bubbles:p,capture:h}=r,y=t.useContext(R),b=(0,n.useEffectEvent)("function"==typeof f?f:()=>!1),E="function"==typeof f?b:f,w=t.useRef(!1),{escapeKey:x,outsidePress:L}=ee(p),{escapeKey:C,outsidePress:A}=ee(h),M=t.useRef(!1),S=(0,n.useEffectEvent)(e=>{var t;if(!i||!s||!c||"Escape"!==e.key||M.current)return;let r=null==(t=a.current.floatingContext)?void 0:t.nodeId,o=y?(0,n.getNodeChildren)(y.nodesRef.current,r):[];if(!x&&(e.stopPropagation(),o.length>0)){let e=!0;
vendor: 23,228 bytes, lines 2-4
2if(o.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}l(!1,(0,n.isReactEvent)(e)?e.nativeEvent:e,"escape-key")}),k=(0,n.useEffectEvent)(e=>{var t;let r=()=>{var t;S(e),null==(t=(0,n.getTarget)(e))||t.removeEventListener("keydown",r)};null==(t=(0,n.getTarget)(e))||t.addEventListener("keydown",r)}),O=(0,n.useEffectEvent)(e=>{var t;let r=a.current.insideReactTree;a.current.insideReactTree=!1;let i=w.current;if(w.current=!1,"click"===d&&i||r||"function"==typeof E&&!E(e))return;let s=(0,n.getTarget)(e),c="["+T("inert")+"]",f=(0,n.getDocument)(u.floating).querySelectorAll(c),m=(0,o.isElement)(s)?s:null;for(;m&&!(0,o.isLastTraversableNode)(m);){let e=(0,o.getParentNode)(m);if((0,o.isLastTraversableNode)(e)||!(0,o.isElement)(e))break;m=e}if(f.length&&(0,o.isElement)(s)&&!(0,n.isRootElement)(s)&&!(0,n.contains)(s,u.floating)&&Array.from(f).every(e=>!(0,n.contains)(m,e)))return;if((0,o.isHTMLElement)(s)&&D){let t=(0,o.isLastTraversableNode)(s),n=(0,o.getComputedStyle)(s),r=/auto|scroll/,i=t||r.test(n.overflowX),l=t||r.test(n.overflowY),u=i&&s.clientWidth>0&&s.scrollWidth>s.clientWidth,a=l&&s.clientHeight>0&&s.scrollHeight>s.clientHeight,c="rtl"===n.direction,f=a&&(c?e.offsetX<=s.offsetWidth-s.clientWidth:e.offsetX>s.clientWidth),d=u&&e.offsetY>s.clientHeight;if(f||d)return}let g=null==(t=a.current.floatingContext)?void 0:t.nodeId,v=y&&(0,n.getNodeChildren)(y.nodesRef.current,g).some(t=>{var r;return(0,n.isEventTargetWithin)(e,null==(r=t.context)?void 0:r.elements.floating)});if((0,n.isEventTargetWithin)(e,u.floating)||(0,n.isEventTargetWithin)(e,u.domReference)||v)return;let p=y?(0,n.getNodeChildren)(y.nodesRef.current,g):[];if(p.length>0){let e=!0;if(p.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}l(!1,e,"outside-press")}),N=(0,n.useEffectEvent)(e=>{var t;let r=()=>{var t;O(e),null==(t=(0,n.getTarget)(e))||t.removeEventListener(d,r)};null==(t=(0,n.getTarget)(e))||t.addEventListener(d,r)});t.useEffect(()=>{if(!i||!s)return;a.current.__escapeKeyBubbles=x,a.current.__outsidePressBubbles=L;let e=-1;function t(e){l(!1,e,"ancestor-scroll")}function r(){window.clearTimeout(e),M.current=!0}function f(){e=window.setTimeout(()=>{M.current=!1},5*!!(0,o.isWebKit)())}let m=(0,n.getDocument)(u.floating);c&&(m.addEventListener("keydown",C?k:S,C),m.addEventListener("compositionstart",r),m.addEventListener("compositionend",f)),E&&m.addEventListener(d,A?N:O,A);let g=[];return v&&((0,o.isElement)(u.domReference)&&(g=(0,o.getOverflowAncestors)(u.domReference)),(0,o.isElement)(u.floating)&&(g=g.concat((0,o.getOverflowAncestors)(u.floating))),!(0,o.isElement)(u.reference)&&u.reference&&u.reference.contextElement&&(g=g.concat((0,o.getOverflowAncestors)(u.reference.contextElement)))),(g=g.filter(e=>{var t;return e!==(null==(t=m.defaultView)?void 0:t.visualViewport)})).forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{c&&(m.removeEventListener("keydown",C?k:S,C),m.removeEventListener("compositionstart",r),m.removeEventListener("compositionend",f)),E&&m.removeEventListener(d,A?N:O,A),g.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[a,u,c,E,d,i,l,v,s,x,L,S,C,k,O,A,N]),t.useEffect(()=>{a.current.insideReactTree=!1},[a,E,d]);let P=t.useMemo(()=>({onKeyDown:S,...m&&{[Q[g]]:e=>{l(!1,e.nativeEvent,"reference-press")},..."click"!==g&&{onClick(e){l(!1,e.nativeEvent,"reference-press")}}}}),[S,l,m,g]),D=t.useMemo(()=>{function e(e){0===e.button&&(w.current=!0)}return{onKeyDown:S,onMouseDown:e,onMouseUp:e,[J[d]]:()=>{a.current.insideReactTree=!0}}},[S,d,a]);return t.useMemo(()=>s?{reference:P,floating:D}:{},[s,P,D])},"useFloating",0,function(e){void 0===e&&(e={});let{nodeId:r}=e,i=function(e){let{open:r=!1,onOpenChange:o,elements:i}=e,l=E(),u=t.useRef({}),[a]=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)}}}),s=null!=L(),[c,f]=t.useState(i.reference),d=(0,n.useEffectEvent)((e,t,n)=>{u.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:n,nested:s}),null==o||o(e,t,n)}),m=t.useMemo(()=>({setPositionReference:f}),[]),g=t.useMemo(()=>({reference:c||i.reference||null,floating:i.floating||null,domReference:i.reference}),[c,i.reference,i.floating]);return t.useMemo(()=>({dataRef:u,open:r,onOpenChange:d,elements:g,events:a,floatingId:l,refs:m}),[r,d,g,a,l,m])}({...e,elements:{reference:null,floating:null,...e.elements}}),l=e.rootContext||i,a=l.elements,[s,c]=t.useState(null),[f,d]=t.useState(null),m=(null==a?void 0:a.domReference)||s,g=t.useRef(null),v=t.useContext(R);(0,n.useModernLayoutEffect)(()=>{m&&(g.current=m)},[m]);let p=(0,u.useFloating)({...e,elements:{...a,...f&&{reference:f}}}),h=t.useCallback(e=>{let t=(0,o.isElement)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;d(t),p.refs.setReference(t)},[p.refs]),y=t.useCallback(e=>{((0,o.isElement)(e)||null===e)&&(g.current=e,c(e)),((0,o.isElement)(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!(0,o.isElement)(e))&&p.refs.setReference(e)},[p.refs]),b=t.useMemo(()=>({...p.refs,setReference:y,setPositionReference:h,domReference:g}),[p.refs,y,h]),w=t.useMemo(()=>({...p.elements,domReference:m}),[p.elements,m]),x=t.useMemo(()=>({...p,...l,refs:b,elements:w,nodeId:r}),[p,b,w,r,l]);return(0,n.useModernLayoutEffect)(()=>{l.dataRef.current.floatingContext=x;let e=null==v?void 0:v.nodesRef.current.find(e=>e.id===r);e&&(e.context=x)}),t.useMemo(()=>({...p,context:x,refs:b,elements:w}),[p,b,w,x])},"useFocus",0,function(e,r){void 0===r&&(r={});let{open:i,onOpenChange:l,events:u,dataRef:a,elements:s}=e,{enabled:c=!0,visibleOnly:f=!0}=r,d=t.useRef(!1),m=t.useRef(-1),g=t.useRef(!0);t.useEffect(()=>{if(!c)return;let e=(0,o.getWindow)(s.domReference);function t(){!i&&(0,o.isHTMLElement)(s.domReference)&&s.domReference===(0,n.activeElement)((0,n.getDocument)(s.domReference))&&(d.current=!0)}function r(){g.current=!0}function l(){g.current=!1}return e.addEventListener("blur",t),et()&&(e.addEventListener("keydown",r,!0),e.addEventListener("pointerdown",l,!0)),()=>{e.removeEventListener("blur",t),et()&&(e.removeEventListener("keydown",r,!0),e.removeEventListener("pointerdown",l,!0))}},[s.domReference,i,c]),t.useEffect(()=>{if(c)return u.on("openchange",e),()=>{u.off("openchange",e)};function e(e){let{reason:t}=e;("reference-press"===t||"escape-key"===t)&&(d.current=!0)}},[u,c]),t.useEffect(()=>()=>{C(m)},[]);let v=t.useMemo(()=>({onMouseLeave(){d.current=!1},onFocus(e){if(d.current)return;let t=(0,n.getTarget)(e.nativeEvent);if(f&&(0,o.isElement)(t)){if(et()&&!e.relatedTarget){if(!g.current&&!(0,n.isTypeableElement)(t))return}else if(!(0,n.matchesFocusVisible)(t))return}l(!0,e.nativeEvent,"focus")},onBlur(e){d.current=!1;let t=e.relatedTarget,r=e.nativeEvent,i=(0,o.isElement)(t)&&t.hasAttribute(T("focus-guard"))&&"outside"===t.getAttribute("data-type");m.current=window.setTimeout(()=>{var e;let o=(0,n.activeElement)(s.domReference?s.domReference.ownerDocument:document);!t&&o===s.domReference||(0,n.contains)(null==(e=a.current.floatingContext)?void 0:e.refs.floating.current,o)||(0,n.contains)(s.domReference,o)||i||l(!1,r,"focus")})}}),[a,s.domReference,l,f]);return t.useMemo(()=>c?{reference:v}:{},[c,v])},"useHover",0,function(e,r){void 0===r&&(r={});let{open:i,onOpenChange:l,dataRef:u,events:a,elements:s}=e,{enabled:c=!0,delay:f=0,handleClose:d=null,mouseOnly:m=!1,restMs:g=0,move:v=!0}=r,p=t.useContext(R),h=L(),y=(0,n.useLatestRef)(d),b=(0,n.useLatestRef)(f),E=(0,n.useLatestRef)(i),w=(0,n.useLatestRef)(g),x=t.useRef(),T=t.useRef(-1),k=t.useRef(),O=t.useRef(-1),N=t.useRef(!0),P=t.useRef(!1),D=t.useRef(()=>{}),I=t.useRef(!1),F=(0,n.useEffectEvent)(()=>{var e;let t=null==(e=u.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t});t.useEffect(()=>{if(c)return a.on("openchange",e),()=>{a.off("openchange",e)};function e(e){let{open:t}=e;t||(C(T),C(O),N.current=!0,I.current=!1)}},[c,a]),t.useEffect(()=>{if(!c||!y.current||!i)return;function e(e){F()&&l(!1,e,"hover")}let t=(0,n.getDocument)(s.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[s.floating,i,l,c,y,F]);let W=t.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");let r=M(b.current,"close",x.current);r&&!k.current?(C(T),T.current=window.setTimeout(()=>l(!1,e,n),r)):t&&(C(T),l(!1,e,n))},[b,l]),H=(0,n.useEffectEvent)(()=>{D.current(),k.current=void 0}),j=(0,n.useEffectEvent)(()=>{if(P.current){let e=(0,n.getDocument)(s.floating).body;e.style.pointerEvents="",e.removeAttribute(A),P.current=!1}}),B=(0,n.useEffectEvent)(()=>!!u.current.openEvent&&["click","mousedown"].includes(u.current.openEvent.type));t.useEffect(()=>{if(c&&(0,o.isElement)(s.domReference)){let n=s.domReference,o=s.floating;return i&&n.addEventListener("mouseleave",r),v&&n.addEventListener("mousemove",e,{once:!0}),n.addEventListener("mouseenter",e),n.addEventListener("mouseleave",t),o&&(o.addEventListener("mouseleave",r),o.addEventListener("mouseenter",a),o.addEventListener("mouseleave",f)),()=>{i&&n.removeEventListener("mouseleave",r),v&&n.removeEventListener("mousemove",e),n.removeEventListener("mouseenter",e),n.removeEventListener("mouseleave",t),o&&(o.removeEventListener("mouseleave",r),o.removeEventListener("mouseenter",a),o.removeEventListener("mouseleave",f))}}function e(e){if(C(T),N.current=!1,m&&!(0,n.isMouseLikePointerType)(x.current)||S(w.current)>0&&!M(b.current,"open"))return;let t=M(b.current,"open",x.current);t?T.current=window.setTimeout(()=>{E.current||l(!0,e,"hover")},t):i||l(!0,e,"hover")}function t(e){if(B())return void j();D.current();let t=(0,n.getDocument)(s.floating);if(C(O),I.current=!1,y.current&&u.current.floatingContext){i||C(T),k.current=y.current({...u.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){j(),H(),B()||W(e,!0,"safe-polygon")}});let n=k.current;t.addEventListener("mousemove",n),D.current=()=>{t.removeEventListener("mousemove",n)};return}"touch"===x.current&&(0,n.contains)(s.floating,e.relatedTarget)||W(e)}function r(e){B()||u.current.floatingContext&&(null==y.current||y.current({...u.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){j(),H(),B()||W(e)}})(e))}function a(){C(T)}function f(e){B()||W(e,!1)}},[s,c,e,m,v,W,H,j,l,i,E,p,b,y,u,B,w]),(0,n.useModernLayoutEffect)(()=>{var e,t;if(c&&i&&null!=(e=y.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&F()){P.current=!0;let e=s.floating;if((0,o.isElement)(s.domReference)&&e){let r=(0,n.getDocument)(s.floating).body;r.setAttribute(A,"");let o=s.domReference,i=null==p||null==(t=p.nodesRef.current.find(e=>e.id===h))||null==(t=t.context)?void 0:t.elements.floating;return i&&(i.style.pointerEvents=""),r.style.pointerEvents="none",o.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{r.style.pointerEvents="",o.style.pointerEvents="",e.style.pointerEvents=""}}}},[c,i,h,s,p,y,F]),(0,n.useModernLayoutEffect)(()=>{i||(x.current=void 0,I.current=!1,H(),j())},[i,H,j]),t.useEffect(()=>()=>{H(),C(T),C(O),j()},[c,s.domReference,H,j]);let _=t.useMemo(()=>{function e(e){x.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function r(){N.current||E.current||l(!0,t,"hover")}m&&!(0,n.isMouseLikePointerType)(x.current)||i||0===S(w.current)||I.current&&e.movementX**2+e.movementY**2<2||(C(O),"touch"===x.current?r():(I.current=!0,O.current=window.setTimeout(r,S(w.current))))}}},[m,l,i,E,w]);return t.useMemo(()=>c?{reference:_}:{},[c,_])},"useInteractions",0,function(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=>en(t,e,"reference"),n),l=t.useCallback(t=>en(t,e,"floating"),r),u=t.useCallback(t=>en(t,e,"item"),o);return t.useMemo(()=>({getReferenceProps:i,getFloatingProps:l,getItemProps:u}),[i,l,u])},"useListItem",0,function(e){void 0===e&&(e={});let{label:r}=e,{register:o,unregister:i,map:l,elementsRef:u,labelsRef:a}=t.useContext(s),[c,f]=t.useState(null),d=t.useRef(null),m=t.useCallback(e=>{if(d.current=e,null!==c&&(u.current[c]=e,a)){var t;let n=void 0!==r;a.current[c]=n?r:null!=(t=null==e?void 0:e.textContent)?t:null}},[c,u,a,r]);return(0,n.useModernLayoutEffect)(()=>{let e=d.current;if(e)return o(e),()=>{i(e)}},[o,i]),(0,n.useModernLayoutEffect)(()=>{let e=d.current?l.get(d.current):null;null!=e&&f(e)},[l]),t.useMemo(()=>({ref:m,index:null==c?-1:c}),[c,m])},"useListNavigation",0,function(e,r){let{open:i,onOpenChange:l,elements:u,floatingId:a}=e,{listRef:s,activeIndex:c,onNavigate:f=()=>{},enabled:g=!0,selectedIndex:p=null,allowEscape:h=!1,loop:y=!1,nested:b=!1,rtl:E=!1,virtual:w=!1,focusItemOnOpen:x="auto",focusItemOnHover:T=!0,openOnArrowKeyDown:C=!0,disabledIndices:A,orientation:M="vertical",parentOrientation:S,cols:k=1,scrollItemIntoView:N=!0,virtualItemRef:P,itemSizes:D,dense:I=!1}=r,F=(0,n.getFloatingFocusElement)(u.floating),W=(0,n.useLatestRef)(F),H=L(),j=t.useContext(R);(0,n.useModernLayoutEffect)(()=>{e.dataRef.current.orientation=M},[e,M]);let B=(0,n.useEffectEvent)(()=>{f(-1===q.current?null:q.current)}),_=(0,n.isTypeableCombobox)(u.domReference),V=t.useRef(x),q=t.useRef(null!=p?p:-1),K=t.useRef(null),U=t.useRef(!0),z=t.useRef(B),G=t.useRef(!!u.floating),X=t.useRef(i),Y=t.useRef(!1),$=t.useRef(!1),Z=(0,n.useLatestRef)(A),Q=(0,n.useLatestRef)(i),J=(0,n.useLatestRef)(N),ee=(0,n.useLatestRef)(p),[et,en]=t.useState(),[er,ea]=t.useState(),es=(0,n.useEffectEvent)(()=>{function e(e){if(w){var t;null!=(t=e.id)&&t.endsWith("-fui-option")&&(e.id=a+"-"+Math.random().toString(16).slice(2,10)),en(e.id),null==j||j.events.emit("virtualfocus",e),P&&(P.current=e)}else O(e,{sync:Y.current,preventScroll:!0})}let t=s.current[q.current],n=$.current;t&&e(t),(Y.current?e=>e():requestAnimationFrame)(()=>{let r=s.current[q.current]||t;if(!r)return;t||e(r);let o=J.current;o&&ef&&(n||!U.current)&&(null==r.scrollIntoView||r.scrollIntoView("boolean"==typeof o?{block:"nearest",inline:"nearest"}:o))})});(0,n.useModernLayoutEffect)(()=>{g&&(i&&u.floating?V.current&&null!=p&&($.current=!0,q.current=p,B()):G.current&&(q.current=-1,z.current()))},[g,i,u.floating,p,B]),(0,n.useModernLayoutEffect)(()=>{if(g&&i&&u.floating)if(null==c){if(Y.current=!1,null!=ee.current)return;if(G.current&&(q.current=-1,es()),(!X.current||!G.current)&&V.current&&(null!=K.current||!0===V.current&&null==K.current)){let e=0,t=()=>{null==s.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(q.current=null==K.current||ei(K.current,M,E)||b?(0,n.getMinListIndex)(s,Z.current):(0,n.getMaxListIndex)(s,Z.current),K.current=null,B())};t()}}else(0,n.isIndexOutOfListBounds)(s,c)||(q.current=c,es(),$.current=!1)},[g,i,u.floating,c,ee,b,s,M,E,B,es,Z]),(0,n.useModernLayoutEffect)(()=>{var e;if(!g||u.floating||!j||w||!G.current)return;let t=j.nodesRef.current,r=null==(e=t.find(e=>e.id===H))||null==(e=e.context)?void 0:e.elements.floating,o=(0,n.activeElement)((0,n.getDocument)(u.floating)),i=t.some(e=>e.context&&(0,n.contains)(e.context.elements.floating,o));r&&!i&&U.current&&r.focus({preventScroll:!0})},[g,u.floating,j,H,w]),(0,n.useModernLayoutEffect)(()=>{if(g&&j&&w&&!H)return j.events.on("virtualfocus",e),()=>{j.events.off("virtualfocus",e)};function e(e){ea(e.id),P&&(P.current=e)}},[g,j,w,H,P]),(0,n.useModernLayoutEffect)(()=>{z.current=B,X.current=i,G.current=!!u.floating}),(0,n.useModernLayoutEffect)(()=>{i||(K.current=null,V.current=x)},[i,x]);let ec=null!=c,ef=t.useMemo(()=>{function e(e){if(!Q.current)return;let t=s.current.indexOf(e);-1!==t&&q.current!==t&&(q.current=t,B())}return{onFocus(t){let{currentTarget:n}=t;Y.current=!0,e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},onMouseMove(t){let{currentTarget:n}=t;Y.current=!0,$.current=!1,T&&e(n)},onPointerLeave(e){let{pointerType:t}=e;if(U.current&&"touch"!==t&&(Y.current=!0,T&&(q.current=-1,B(),!w))){var n;null==(n=W.current)||n.focus({preventScroll:!0})}}}},[Q,W,T,s,B,w]),ed=t.useCallback(()=>{var e;return null!=S?S:null==j||null==(e=j.nodesRef.current.find(e=>e.id===H))||null==(e=e.context)||null==(e=e.dataRef)?void 0:e.current.orientation},[H,j,S]),em=(0,n.useEffectEvent)(e=>{if(U.current=!1,Y.current=!0,229===e.which||!Q.current&&e.currentTarget===W.current)return;if(b&&eu(e.key,M,E,k)){eo(e.key,ed())||(0,n.stopEvent)(e),l(!1,e.nativeEvent,"list-navigation"),(0,o.isHTMLElement)(u.domReference)&&(w?null==j||j.events.emit("virtualfocus",u.domReference):u.domReference.focus());return}let t=q.current,r=(0,n.getMinListIndex)(s,A),a=(0,n.getMaxListIndex)(s,A);if(_||("Home"===e.key&&((0,n.stopEvent)(e),q.current=r,B()),"End"===e.key&&((0,n.stopEvent)(e),q.current=a,B())),k>1){let t=D||Array.from({length:s.current.length},()=>({width:1,height:1})),o=(0,n.createGridCellMap)(t,k,I),i=o.findIndex(e=>null!=e&&!(0,n.isListIndexDisabled)(s,e,A)),l=o.reduce((e,t,r)=>null==t||(0,n.isListIndexDisabled)(s,t,A)?e:r,-1),u=o[(0,n.getGridNavigatedIndex)({current:o.map(e=>null!=e?s.current[e]:null)},{event:e,orientation:M,loop:y,rtl:E,cols:k,disabledIndices:(0,n.getGridCellIndices)([...("function"!=typeof A?A:null)||s.current.map((e,t)=>(0,n.isListIndexDisabled)(s,t,A)?t:void 0),void 0],o),minIndex:i,maxIndex:l,prevIndex:(0,n.getGridCellIndexOfCorner)(q.current>a?r:q.current,t,o,k,e.key===v?"bl":e.key===(E?d:m)?"tr":"tl"),stopEvent:!0})];if(null!=u&&(q.current=u,B()),"both"===M)return}if(eo(e.key,M)){if((0,n.stopEvent)(e),i&&!w&&(0,n.activeElement)(e.currentTarget.ownerDocument)===e.currentTarget){q.current=ei(e.key,M,E)?r:a,B();return}ei(e.key,M,E)?y?q.current=t>=a?h&&t!==s.current.length?-1:r:(0,n.findNonDisabledListIndex)(s,{startingIndex:t,disabledIndices:A}):q.current=Math.min(a,(0,n.findNonDisabledListIndex)(s,{startingIndex:t,disabledIndices:A})):y?q.current=t<=r?h&&-1!==t?s.current.length:a:(0,n.findNonDisabledListIndex)(s,{startingIndex:t,decrement:!0,disabledIndices:A}):q.current=Math.max(r,(0,n.findNonDisabledListIndex)(s,{startingIndex:t,decrement:!0,disabledIndices:A})),(0,n.isIndexOutOfListBounds)(s,q.current)&&(q.current=-1),B()}}),eg=t.useMemo(()=>w&&i&&ec&&{"aria-activedescendant":er||et},[w,i,ec,er,et]),ev=t.useMemo(()=>({"aria-orientation":"both"===M?void 0:M,...!_?eg:{},onKeyDown:em,onPointerMove(){U.current=!0}}),[eg,em,M,_]),ep=t.useMemo(()=>{function e(e){"auto"===x&&(0,n.isVirtualClick)(e.nativeEvent)&&(V.current=!0)}function t(e){V.current=x,"auto"===x&&(0,n.isVirtualPointerEvent)(e.nativeEvent)&&(V.current=!0)}return{...eg,onKeyDown(e){U.current=!1;let t=e.key.startsWith("Arrow"),r=["Home","End"].includes(e.key),o=el(e.key,M,E),u=eu(e.key,M,E,k),a=el(e.key,ed(),E),c=eo(e.key,M),f=(b?a:c)||"Enter"===e.key||""===e.key.trim();if(w&&i){let i=null==j?void 0:j.nodesRef.current.find(e=>null==e.parentId),l=j&&i?(0,n.getDeepestNode)(j.nodesRef.current,i.id):null;if((t||r)&&l&&P){var d,m,g;let t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(o||u){let r=(null==(d=l.context)?void 0:d.elements.domReference)===e.currentTarget,i=u&&!r?null==(m=l.context)?void 0:m.elements.domReference:o?s.current.find(e=>(null==e?void 0:e.id)===et):null;i&&((0,n.stopEvent)(e),i.dispatchEvent(t),ea(void 0))}if((c||r)&&l.context&&l.context.open&&l.parentId&&e.currentTarget!==l.context.elements.domReference){(0,n.stopEvent)(e),null==(g=l.context.elements.domReference)||g.dispatchEvent(t);return}}return em(e)}if(i||C||!t){if(f){let t=eo(e.key,ed());K.current=b&&t?null:e.key}if(b){a&&((0,n.stopEvent)(e),i?(q.current=(0,n.getMinListIndex)(s,Z.current),B()):l(!0,e.nativeEvent,"list-navigation"));return}c&&(null!=p&&(q.current=p),(0,n.stopEvent)(e),!i&&C?l(!0,e.nativeEvent,"list-navigation"):em(e),i&&B())}},onFocus(){i&&!w&&(q.current=-1,B())},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}},[et,eg,k,em,Z,x,s,b,B,l,i,C,M,ed,E,p,j,w,P]);return t.useMemo(()=>g?{reference:ep,floating:ev,item:ef}:{},[g,ep,ev,ef])},"useMergeRefs",0,function(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()=>{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)},"useRole",0,function(e,r){var o,i;void 0===r&&(r={});let{open:l,elements:u,floatingId:a}=e,{enabled:s=!0,role:c="dialog"}=r,f=E(),d=(null==(o=u.domReference)?void 0:o.id)||f,m=t.useMemo(()=>{var e;return(null==(e=(0,n.getFloatingFocusElement)(u.floating))?void 0:e.id)||a},[u.floating,a]),g=null!=(i=ea.get(c))?i:c,v=null!=L(),p=t.useMemo(()=>"tooltip"===g||"label"===c?{["aria-"+("label"===c?"labelledby":"describedby")]:l?m:void 0}:{"aria-expanded":l?"true":"false","aria-haspopup":"alertdialog"===g?"dialog":g,"aria-controls":l?m:void 0,..."listbox"===g&&{role:"combobox"},..."menu"===g&&{id:d},..."menu"===g&&v&&{role:"menuitem"},..."select"===c&&{"aria-autocomplete":"none"},..."combobox"===c&&{"aria-autocomplete":"list"}},[g,m,v,l,d,c]),h=t.useMemo(()=>{let e={id:m,...g&&{role:g}};return"tooltip"===g||"label"===c?e:{...e,..."menu"===g&&{"aria-labelledby":d}}},[g,m,d,c]),y=t.useCallback(e=>{let{active:t,selected:n}=e,r={role:"option",...t&&{id:m+"-fui-option"}};switch(c){case"select":case"combobox":return{...r,"aria-selected":n}}return{}},[m,c]);return t.useMemo(()=>s?{reference:p,floating:h,item:y}:{},[s,p,h,y])},"useTransitionStyles",0,function(e,r){void 0===r&&(r={});let{initial:o={opacity:0},open:i,close:u,common:a,duration:s=250}=r,c=e.placement,f=c.split("-")[0],d=t.useMemo(()=>({side:f,placement:c}),[f,c]),m="number"==typeof s,g=(m?s:s.open)||0,v=(m?s:s.close)||0,[p,h]=t.useState(()=>({...ec(a,d),...ec(o,d)})),{isMounted:y,status:b}=function(e,r){void 0===r&&(r={});let{open:o,elements:{floating:i}}=e,{duration:u=250}=r,a=("number"==typeof u?u:u.close)||0,[s,c]=t.useState("unmounted"),f=function(e,n){let[r,o]=t.useState(e);return e&&!r&&o(!0),t.useEffect(()=>{if(!e&&r){let e=setTimeout(()=>o(!1),n);return()=>clearTimeout(e)}},[e,r,n]),r}(o,a);return f||"close"!==s||c("unmounted"),(0,n.useModernLayoutEffect)(()=>{if(i){if(o){c("initial");let e=requestAnimationFrame(()=>{l.flushSync(()=>{c("open")})});return()=>{cancelAnimationFrame(e)}}c("close")}},[o,i]),{isMounted:f,status:s}}(e,{duration:s}),E=(0,n.useLatestRef)(o),w=(0,n.useLatestRef)(i),x=(0,n.useLatestRef)(u),R=(0,n.useLatestRef)(a);return(0,n.useModernLayoutEffect)(()=>{let e=ec(E.current,d),t=ec(x.current,d),n=ec(R.current,d),r=ec(w.current,d)||Object.keys(e).reduce((e,t)=>(e[t]="",e),{});if("initial"===b&&h(t=>({transitionProperty:t.transitionProperty,...n,...e})),"open"===b&&h({transitionProperty:Object.keys(r).map(es).join(","),transitionDuration:g+"ms",...n,...r}),"close"===b){let r=t||e;h({transitionProperty:Object.keys(r).map(es).join(","),transitionDuration:v+"ms",...n,...r})}},[v,x,E,w,R,g,b,d]),{isMounted:y,styles:p}}])}]);
3
4//# debugId=f7f2b292-93c4-02a6-2844-0427e3344525

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.