1/*! For license information please see 8092.c4143553.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[8092],{1672(e,t,n){n.d(t,{A:()=>X});var o=function(){return o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};function r(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}Object.create;function i(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError;var a=n(65043),l="right-scroll-bar-position",c="width-before-scroll-bar";function s(e,t){return"function"===typeof e?e(t):e&&(e.current=t),e}var u="undefined"!==typeof window?a.useLayoutEffect:a.useEffect,d=new WeakMap;function f(e,t){var n=function(e,t){var n=(0,a.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}(t||null,function(t){return e.forEach(function(e){return s(e,t)})});return u(function(){var t=d.get(n);if(t){var o=new Set(t),r=new Set(e),i=n.current;o.forEach(function(e){r.has(e)||s(e,null)}),r.forEach(function(e){o.has(e)||s(e,i)})}d.set(n,e)},[e]),n}function p(e){return e}function h(e,t){void 0===t&&(t=p);var n=[],o=!1;return{read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var r=t(e,o);return n.push(r),function(){n=n.filter(function(e){return e!==r})}},assignSyncMedium:function(e){for(o=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){o=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}var v=function(e){void 0===e&&(e={});var t=h(null);return t.options=o({async:!0,ssr:!1},e),t}(),m=function(){},g=a.forwardRef(function(e,t){var n=a.useRef(null),i=a.useState({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:m}),l=i[0],c=i[1],s=e.forwardProps,u=e.children,d=e.className,p=e.removeScrollBar,h=e.enabled,g=e.shards,y=e.sideCar,w=e.noRelative,x=e.noIsolation,b=e.inert,A=e.allowPinchZoom,S=e.as,E=void 0===S?"div":S,C=e.gapMode,R=r(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=y,T=f([n,t]),O=o(o({},R),l);return a.createElement(a.Fragment,null,h&&a.createElement(P,{sideCar:v,removeScrollBar:p,shards:g,noRelative:w,noIsolation:x,inert:b,setCallbacks:c,allowPinchZoom:!!A,lockRef:n,gapMode:C}),s?a.cloneElement(a.Children.only(u),o(o({},O),{ref:T})):a.createElement(E,o({},O,{className:d,ref:T}),u))});g.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},g.classNames={fullWidth:c,zeroRight:l};var y,w=function(e){var t=e.sideCar,n=r(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return a.createElement(i,o({},n))};w.isSideCarExport=!0;function x(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=y||n.nc;return t&&e.setAttribute("nonce",t),e}var b=function(){var e=0,t=null;return{add:function(n){var o,r;0==e&&(t=x())&&(r=n,(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},A=function(){var e=function(){var e=b();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}}();return function(t){var n=t.styles,o=t.dynamic;return e(n,o),null}},S={left:0,top:0,right:0,gap:0},E=function(e){return parseInt(e||"",10)||0},C=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return S;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],o=t["padding"===e?"paddingTop":"marginTop"],r=t["padding"===e?"paddingRight":"marginRight"];return[E(n),E(o),E(r)]}(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},R=A(),P="data-scroll-locked",T=function(e,t,n,o){var r=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(o,";\n padding-right: ").concat(s,"px ").concat(o,";\n }\n body[").concat(P,"] {\n overflow: hidden ").concat(o,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(o,";"),"margin"===n&&"\n padding-left: ".concat(r,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(o,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(o,";
2")].filter(Boolean).join(""),"\n }\n \n .").concat(l," {\n right: ").concat(s,"px ").concat(o,";\n }\n \n .").concat(c," {\n margin-right: ").concat(s,"px ").concat(o,";\n }\n \n .").concat(l," .").concat(l," {\n right: 0 ").concat(o,";\n }\n \n .").concat(c," .").concat(c," {\n margin-right: 0 ").concat(o,";\n }\n \n body[").concat(P,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},O=function(){var e=parseInt(document.body.getAttribute(P)||"0",10);return isFinite(e)?e:0},L=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=void 0===o?"margin":o;a.useEffect(function(){return document.body.setAttribute(P,(O()+1).toString()),function(){var e=O()-1;e<=0?document.body.removeAttribute(P):document.body.setAttribute(P,e.toString())}},[]);var i=a.useMemo(function(){return C(r)},[r]);return a.createElement(R,{styles:T(i,!t,r,n?"":"!important")})},k=!1;if("undefined"!==typeof window)try{var D=Object.defineProperty({},"passive",{get:function(){return k=!0,!0}});window.addEventListener("test",D,D),window.removeEventListener("test",D,D)}catch(U){k=!1}var _=!!k&&{passive:!1},N=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},j=function(e,t){var n=t.ownerDocument,o=t;do{if("undefined"!==typeof ShadowRoot&&o instanceof ShadowRoot&&(o=o.host),M(e,o)){var r=I(e,o);if(r[1]>r[2])return!0}o=o.parentNode}while(o&&o!==n.body);return!1},M=function(e,t){return"v"===e?function(e){return N(e,"overflowY")}(t):function(e){return N(e,"overflowX")}(t)},I=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},W=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},F=function(e){return[e.deltaX,e.deltaY]},B=function(e){return e&&"current"in e?e.current:e},H=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},K=0,V=[];function z(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const G=(q=function(e){var t=a.useRef([]),n=a.useRef([0,0]),o=a.useRef(),r=a.useState(K++)[0],l=a.useState(A)[0],c=a.useRef(e);a.useEffect(function(){c.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var t=i([e.lockRef.current],(e.shards||[]).map(B),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var s=a.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!c.current.allowPinchZoom;var r,i=W(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-i[0],s="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(l)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var h=j(d,u);if(!h)return!0;if(h?r=d:(r="v"===d?"h":"v",h=j(d,u)),!h)return!1;if(!o.current&&"changedTouches"in e&&(l||s)&&(o.current=r),!r)return!0;var v=o.current||r;return function(e,t,n,o,r){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*o,l=n.target,c=t.contains(l),s=!1,u=a>0,d=0,f=0;do{if(!l)break;var p=I(e,l),h=p[0],v=p[1]-p[2]-i*h;(h||v)&&M(e,l)&&(d+=v,f+=h);var m=l.parentNode;l=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(u&&(r&&Math.abs(d)<1||!r&&a>d)||!u&&(r&&Math.abs(f)<1||!r&&-a>f))&&(s=!0),s}(v,t,e,"h"===v?l:s,!0)},[]),u=a.useCallback(function(e){var n=e;if(V.length&&V[V.length-1]===l){var o="deltaY"in n?F(n):W(n),r=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,r=o,t[0]===r[0]&&t[1]===r[1]);var t,r})[0];if(r&&r.should)n.cancelable&&n.preventDefault();
2else if(!r){var i=(c.current.shards||[]).map(B).filter(Boolean).filter(function(e){return e.contains(n.target)});(i.length>0?s(n,i[0]):!c.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),d=a.useCallback(function(e,n,o,r){var i={name:e,delta:n,target:o,should:r,shadowParent:z(o)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),f=a.useCallback(function(e){n.current=W(e),o.current=void 0},[]),p=a.useCallback(function(t){d(t.type,F(t),t.target,s(t,e.lockRef.current))},[]),h=a.useCallback(function(t){d(t.type,W(t),t.target,s(t,e.lockRef.current))},[]);a.useEffect(function(){return V.push(l),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",u,_),document.addEventListener("touchmove",u,_),document.addEventListener("touchstart",f,_),function(){V=V.filter(function(e){return e!==l}),document.removeEventListener("wheel",u,_),document.removeEventListener("touchmove",u,_),document.removeEventListener("touchstart",f,_)}},[]);var v=e.removeScrollBar,m=e.inert;return a.createElement(a.Fragment,null,m?a.createElement(l,{styles:H(r)}):null,v?a.createElement(L,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},v.useMedium(q),w);var q,Y=a.forwardRef(function(e,t){return a.createElement(g,o({},e,{ref:t,sideCar:G}))});Y.classNames=g.classNames;const X=Y},15711(e,t,n){n.d(t,{A:()=>o});const o=(0,n(77784).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},26318(e,t,n){n.d(t,{UC:()=>To,YJ:()=>Lo,In:()=>Ro,q7:()=>Do,VF:()=>No,p4:()=>_o,JU:()=>ko,ZL:()=>Po,bL:()=>So,wn:()=>Mo,PP:()=>jo,wv:()=>Io,l9:()=>Eo,WT:()=>Co,LM:()=>Oo});var o=n(53986),r=n(89379),i=n(65043),a=n(97950),l=n(21664),c=n(30858),s=n(95094),u=n(82814),d=n(21862),f=n(14204),p=n(91184),h=n(86590),v=n(60276),m=n(54490);const g=["top","right","bottom","left"],y=Math.min,w=Math.max,x=Math.round,b=Math.floor,A=e=>({x:e,y:e}),S={left:"right",right:"left",bottom:"top",top:"bottom"},E={start:"end",end:"start"};function C(e,t,n){return w(e,y(t,n))}function R(e,t){return"function"===typeof e?e(t):e}function P(e){return e.split("-")[0]}function T(e){return e.split("-")[1]}function O(e){return"x"===e?"y":"x"}function L(e){return"y"===e?"height":"width"}const k=new Set(["top","bottom"]);function D(e){return k.has(P(e))?"y":"x"}function _(e){return O(D(e))}function N(e){return e.replace(/start|end/g,e=>E[e])}const j=["left","right"],M=["right","left"],I=["top","bottom"],W=["bottom","top"];function F(e,t,n,o){const r=T(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?M:j:t?j:M;case"left":case"right":return t?I:W;default:return[]}}(P(e),"start"===n,o);return r&&(i=i.map(e=>e+"-"+r),t&&(i=i.concat(i.map(N)))),i}function B(e){return e.replace(/left|right|bottom|top/g,e=>S[e])}function H(e){return"number"!==typeof e?function(e){return(0,r.A)({top:0,right:0,bottom:0,left:0},e)}(e):{top:e,right:e,bottom:e,left:e}}function K(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}const V=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],z=["strategy"],G=["mainAxis","crossAxis","limiter"],q=["apply"];function Y(e,t,n){let{reference:o,floating:r}=e;const i=D(t),a=_(t),l=L(a),c=P(t),s="y"===i,u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,f=o[l]/2-r[l]/2;let p;switch(c){case"top":p={x:u,y:o.y-r.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}switch(T(t)){case"start":p[a]-=f*(n&&s?-1:1);break;case"end":p[a]+=f*(n&&s?-1:1)}return p}async function X(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:a,elements:l,strategy:c}=e,{boundary:s="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=R(t,e),h=H(p),v=l[f?"floating"===d?"reference":"floating":d],m=K(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:s,rootBoundary:u,strategy:c})),g="floating"===d?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),w=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},x=K(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:y,strategy:c}):g);return{top:(m.top-x.top+h.top)/w.y,bottom:(x.bottom-m.bottom+h.bottom)/w.y,left:(m.left-x.left+h.left)/w.x,right:(x.right-m.right+h.right)/w.x}}function U(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Z(e){return g.some(t=>e[t]>=0)}const $=new Set(["left","top"]);function J(){return"undefined"!==typeof window}function Q(e){return ne(e)?(e.nodeName||"").toLowerCase():"#document"}function ee(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function te(e){var t;return null==(t=(ne(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ne(e){return!!J()&&(e instanceof Node||e instanceof ee(e).Node)}function oe(e){return!!J()&&(e instanceof Element||e instanceof ee(e).Element)}function re(e){return!!J()&&(e instanceof HTMLElement||e instanceof ee(e).HTMLElement)}function ie(e){return!(!J()||"undefined"===typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ee(e).ShadowRoot)}const ae=new Set(["inline","contents"]);function le(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=we(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!ae.has(r)}const ce=new Set(["table","td","th"]);function se(e){return ce.has(Q(e))}const ue=[":popover-open",":modal"];function de(e){return ue.some(t=>{try{return e.matches(t)}catch(n){return!1}})}const fe=["transform","translate","scale","rotate","perspective"],pe=["transform","translate","scale","rotate","perspective","filter"],he=["paint","layout","strict","content"];function ve(e){const t=me(),n=oe(e)?we(e):e;return fe.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||pe.s
vendor: 8,559 bytes, line 2
2ome(e=>(n.willChange||"").includes(e))||he.some(e=>(n.contain||"").includes(e))}function me(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const ge=new Set(["html","body","#document"]);function ye(e){return ge.has(Q(e))}function we(e){return ee(e).getComputedStyle(e)}function xe(e){return oe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function be(e){if("html"===Q(e))return e;const t=e.assignedSlot||e.parentNode||ie(e)&&e.host||te(e);return ie(t)?t.host:t}function Ae(e){const t=be(e);return ye(t)?e.ownerDocument?e.ownerDocument.body:e.body:re(t)&&le(t)?t:Ae(t)}function Se(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=Ae(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),a=ee(r);if(i){const e=Ee(a);return t.concat(a,a.visualViewport||[],le(r)?r:[],e&&n?Se(e):[])}return t.concat(r,Se(r,[],n))}function Ee(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ce(e){const t=we(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=re(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:o,l=x(n)!==i||x(o)!==a;return l&&(n=i,o=a),{width:n,height:o,$:l}}function Re(e){return oe(e)?e:e.contextElement}function Pe(e){const t=Re(e);if(!re(t))return A(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=Ce(t);let a=(i?x(n.width):n.width)/o,l=(i?x(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const Te=A(0);function Oe(e){const t=ee(e);return me()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Te}function Le(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=Re(e);let a=A(1);t&&(o?oe(o)&&(a=Pe(o)):a=Pe(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ee(e))&&t}(i,n,o)?Oe(i):A(0);let c=(r.left+l.x)/a.x,s=(r.top+l.y)/a.y,u=r.width/a.x,d=r.height/a.y;if(i){const e=ee(i),t=o&&oe(o)?ee(o):o;let n=e,r=Ee(n);for(;r&&o&&t!==n;){const e=Pe(r),t=r.getBoundingClientRect(),o=we(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;c*=e.x,s*=e.y,u*=e.x,d*=e.y,c+=i,s+=a,n=ee(r),r=Ee(n)}}return K({width:u,height:d,x:c,y:s})}function ke(e,t){const n=xe(e).scrollLeft;return t?t.left+n:Le(te(e)).left+n}function De(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ke(e,n),y:n.top+t.scrollTop}}const _e=new Set(["absolute","fixed"]);function Ne(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=ee(e),o=te(e),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){i=r.width,a=r.height;const e=me();(!e||e&&"fixed"===t)&&(l=r.offsetLeft,c=r.offsetTop)}const s=ke(o);if(s<=0){const e=o.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(o.clientWidth-t.clientWidth-r);a<=25&&(i-=a)}else s<=25&&(i+=s);return{width:i,height:a,x:l,y:c}}(e,n);else if("document"===t)o=function(e){const t=te(e),n=xe(e),o=e.ownerDocument.body,r=w(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=w(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+ke(e);const l=-n.scrollTop;return"rtl"===we(o).direction&&(a+=w(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:l}}(te(e));else if(oe(t))o=function(e,t){const n=Le(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=re(e)?Pe(e):A(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:o*i.y}}(t,n);else{const n=Oe(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return K(o)}function je(e,t){const n=be(e);return!(n===t||!oe(n)||ye(n))&&("fixed"===we(n).position||je(n,t))}function Me(e,t,n){const o=re(t),r=te(t),i="fixed"===n,a=Le(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=A(0);function s(){c.x=ke(r)}if(o||!o&&!i)if(("body"!==Q(t)||le(r))&&(l=xe(t)),o){const e=Le(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else r&&s();i&&!o&&r&&s();const u=!r||o||i?A(0):De(r,l);return{x:a.left+l.scrollLeft-c.x-u.x,y:a.top+l.scrollTop-c.y-u.y,width:a.width,height:a.height}}function Ie(e){return"static"===we(e).position}function We(e,t){if(!re(e)||"fixed"===we(e).position)return null;if(t)return t(e);let n=e.offsetParent;return te(e)===n&&(n=n.ownerDocument.body),n}function Fe(e,t){const n=ee(e);if(de(e))return n;if(!re(e)){let t=be(e);for(;t&&!ye(t);){if(oe(t)&&!Ie(t))return t;t=be(t)}return n}let o=We(e,t);for(;o&&se(o)&&Ie(o);)o=We(o,t);return o&&ye(o)&&Ie(o)&&!ve(o)?n:o||function(e){let t=be(e);for(;re(t)&&!ye(t);){if(ve(t))return t;if(de(t))return null;t=be(t)}return null}(e)||n}const Be={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i="fixed"===r,a=te(o),l=!!t&&de(t.floating);if(o===a||l&&i)return n;let c={scrollLeft:0,scrollTop:0},s=A(1);const u=A(0),d=re(o);if((d||!d&&!i)&&(("body"!==Q(o)||le(a))&&(c=xe(o)),re(o))){const e=Le(o);s=Pe(o),u.x=e.x+o.clientLeft,u.y=e.y+o.clientTop}const f=!a||d||i?A(0):De(a,c);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-c.scrollLeft*s.x+u.x+f.x,y:n.y*s.y-c.scrollTop*s.y+u.y+f.y}},getDocumentElement:te,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?de(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let o=Se(e,[],!1).filter(e=>oe(e)&&"body"!==Q(e)),r=null;const i="fixed"===we(e).position;let a=i?be(e):e;for(;oe(a)&&!ye(a);){const t=we(a),n=ve(a);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&_e.has(r.position)||le(a)&&!n&&je(e,a))?o=o.filter(e=>e!==a):r=t,a=be(a)}return t.set(e,o),o}(t,this._c):[].concat(n),o],a=i[0],l=i.reduce((e,n)=>{const o=Ne(t,n,r);return e.top=w(o.top,e.top),e.right=y(o.right,e.right),e.bottom=y(o.bottom,e.bottom),e.left=w(o.left,e.left),e},Ne(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Fe,getElementRects:async function(e){const t=this.getOffsetParent||Fe,n=this.getDimensions,o=await n(e.floating);return{reference:Me(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Ce(e);return{width:t,height:n}},getScale:Pe,isElement:oe,isRTL:function(e){return"rtl"===we(e).direction}};function He(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ke(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:l="function"===typeof ResizeObserver,layoutShift:c="function"===typeof IntersectionObserver,animationFrame:s=!1}=o,u=Re(e),d=i||a?[...u?Se(u):[],...Se(t)]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});const f=u&&c?function(e,t){let n,o=null;const i=te(e);function a(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function l(c,s){void 0===c&&(c=!1),void 0===s&&(s=1),a();const u=e.getBoundingClientRect(),{left:d,top:f,width:p,height:h}=u;if(c||t(),!p||!h)return;const v={rootMargin:-b(f)+"px "+-b(i.clientWidth-(d+p))+"px "+-b(i.clientHeight-(f+h))+"px "+-b(d)+"px",threshold:w(0,y(1,s))||1};let m=!0;function g(t){const o=t[0].intersectionRatio;if(o!==s){if(!m)return l();o?l(!1,o):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==o||He(u,e.getBoundingClientRect())||l(),m=!1}try{o=new IntersectionObserver(g,(0,r.A)((0,r.A)({},v),{},{root:i.ownerDocument}))}catch(x){o=new IntersectionObserver(g,v)}o.observe(e)}(!0),a}(u,n):null;let p,h=-1,v=null;l&&(v=new ResizeObserver(e=>{let[o]=e;o&&o.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),n()}),u&&!s&&v.observe(u),v.observe(t));let m=s?Le(e):null;return s&&function t(){const o=Le(e);m&&!He(m,o)&&n();m=o,p=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=v)||e.disconnect(),v=null,s&&cancelAnimationFrame(p)}}const Ve=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:i,y:a,placement:l,middlewareData:c}=t,s=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=P(n),l=T(n),c="y"===D(n),s=$.has(a)?-1:1,u=i&&c?-1:1,d=R(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"===typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}
2:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"===typeof h&&(p="end"===l?-1*h:h),c?{x:p*u,y:f*s}:{x:f*s,y:p*u}}(t,e);return l===(null==(n=c.offset)?void 0:n.placement)&&null!=(o=c.arrow)&&o.alignmentOffset?{}:{x:i+s.x,y:a+s.y,data:(0,r.A)((0,r.A)({},s),{},{placement:l})}}}},ze=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:a}=t,l=R(e,t),{mainAxis:c=!0,crossAxis:s=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}}}=l,d=(0,o.A)(l,G),f={x:n,y:i},p=await X(t,d),h=D(P(a)),v=O(h);let m=f[v],g=f[h];if(c){const e="y"===v?"bottom":"right";m=C(m+p["y"===v?"top":"left"],m,m-p[e])}if(s){const e="y"===h?"bottom":"right";g=C(g+p["y"===h?"top":"left"],g,g-p[e])}const y=u.fn((0,r.A)((0,r.A)({},t),{},{[v]:m,[h]:g}));return(0,r.A)((0,r.A)({},y),{},{data:{x:y.x-n,y:y.y-i,enabled:{[v]:c,[h]:s}}})}}},Ge=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:l,initialPlacement:c,platform:s,elements:u}=t,d=R(e,t),{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0}=d,y=(0,o.A)(d,V);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const w=P(i),x=D(c),b=P(c)===c,A=await(null==s.isRTL?void 0:s.isRTL(u.floating)),S=h||(b||!g?[B(c)]:function(e){const t=B(e);return[N(e),t,N(t)]}(c)),E="none"!==m;!h&&E&&S.push(...F(c,g,m,A));const C=[c,...S],O=await X(t,y),k=[];let j=(null==(r=a.flip)?void 0:r.overflows)||[];if(f&&k.push(O[w]),p){const e=function(e,t,n){void 0===n&&(n=!1);const o=T(e),r=_(e),i=L(r);let a="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=B(a)),[a,B(a)]}(i,l,A);k.push(O[e[0]],O[e[1]])}if(j=[...j,{placement:i,overflows:k}],!k.every(e=>e<=0)){var M,I;const e=((null==(M=a.flip)?void 0:M.index)||0)+1,t=C[e];if(t){if(!("alignment"===p&&x!==D(t))||j.every(e=>D(e.placement)!==x||e.overflows[0]>0))return{data:{index:e,overflows:j},reset:{placement:t}}}let n=null==(I=j.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:I.placement;if(!n)switch(v){case"bestFit":{var W;const e=null==(W=j.filter(e=>{if(E){const t=D(e.placement);return t===x||"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:W[0];e&&(n=e);break}case"initialPlacement":n=c}if(i!==n)return{reset:{placement:n}}}return{}}}},qe=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:a,rects:l,platform:c,elements:s}=t,u=R(e,t),{apply:d=()=>{}}=u,f=(0,o.A)(u,q),p=await X(t,f),h=P(a),v=T(a),m="y"===D(a),{width:g,height:x}=l.floating;let b,A;"top"===h||"bottom"===h?(b=h,A=v===(await(null==c.isRTL?void 0:c.isRTL(s.floating))?"start":"end")?"left":"right"):(A=h,b="end"===v?"top":"bottom");const S=x-p.top-p.bottom,E=g-p.left-p.right,C=y(x-p[b],S),O=y(g-p[A],E),L=!t.middlewareData.shift;let k=C,_=O;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(_=E),null!=(i=t.middlewareData.shift)&&i.enabled.y&&(k=S),L&&!v){const e=w(p.left,0),t=w(p.right,0),n=w(p.top,0),o=w(p.bottom,0);m?_=g-2*(0!==e||0!==t?e+t:w(p.left,p.right)):k=x-2*(0!==n||0!==o?n+o:w(p.top,p.bottom))}await d((0,r.A)((0,r.A)({},t),{},{availableWidth:_,availableHeight:k}));const N=await c.getDimensions(s.floating);return g!==N.width||x!==N.height?{reset:{rects:!0}}:{}}}},Ye=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,i=R(e,t),{strategy:a="referenceHidden"}=i,l=(0,o.A)(i,z);switch(a){case"referenceHidden":{const e=U(await X(t,(0,r.A)((0,r.A)({},l),{},{elementContext:"reference"})),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Z(e)}}}case"escaped":{const e=U(await X(t,(0,r.A)((0,r.A)({},l),{},{altBoundary:!0})),n.floating);return{data:{escapedOffsets:e,escaped:Z(e)}}}default:return{}}}}},Xe=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:i,rects:a,platform:l,elements:c,middlewareData:s}=t,{element:u,padding:d=0}=R(e,t)||{};if(null==u)return{};const f=H(d),p={x:n,y:o},h=_(i),v=L(h),m=await l.getDimensions(u),g="y"===h,w=g?"top":"left",x=g?"bottom":"right",b=g?"clientHeight":"clientWidth",A=a.reference[v]+a.reference[h]-p[h]-a.floating[v],S=p[h]-a.reference[h],E=await(null==l.getOffsetParent?void 0:l.getOffsetParent(u));let P=E?E[b]:0;P&&await(null==l.isElement?void 0:l.isElement(E))||(P=c.floating[b]||a.floating[v]);const O=A/2-S/2,k=P/2-m[v]/2-1,D=y(f[w],k),N=y(f[x],k),j=D,M=P-m[v]-N,I=P/2-m[v]/2+O,W=C(j,I,M),F=!s.arrow&&null!=T(i)&&I!==W&&a.reference[v]/2-(I<j?D:N)-m[v]/2<0,B=F?I<j?I-j:I-M:0;return{[h]:p[h]+B,data:(0,r.A)({[h]:W,centerOffset:I-W-B},F&&{alignmentOffset:B}),reset:F}}}),Ue=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:i,rects:a,middlewareData:l}=t,{offset:c=0,mainAxis:s=!0,crossAxis:u=!0}=R(e,t),d={x:n,y:o},f=D(i),p=O(f);let h=d[p],v=d[f];const m=R(c,t),g="number"===typeof m?{mainAxis:m,crossAxis:0}:(0,r.A)({mainAxis:0,crossAxis:0},m);if(s){const e="y"===p?"height":"width",t=a.reference[p]-a.floating[e]+g.mainAxis,n=a.reference[p]+a.reference[e]-g.mainAxis;h<t?h=t:h>n&&(h=n)}if(u){var y,w;const e="y"===p?"width":"height",t=$.has(P(i)),n=a.reference[f]-a.floating[e]+(t&&(null==(y=l.offset)?void 0:y[f])||0)+(t?0:g.crossAxis),o=a.reference[f]+a.reference[e]+(t?0:(null==(w=l.offset)?void 0:w[f])||0)-(t?g.crossAxis:0);v<n?v=n:v>o&&(v=o)}return{[p]:h,[f]:v}}}},Ze=(e,t,n)=>{const o=new Map,i=(0,r.A)({platform:Be},n),a=(0,r.A)((0,r.A)({},i.platform),{},{_c:o});return(async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:l}
2=n,c=a.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=Y(u,o,s),p=o,h={},v=0;for(let m=0;m<c.length;m++){const{name:n,fn:a}=c[m],{x:g,y:y,data:w,reset:x}=await a({x:d,y:f,initialPlacement:o,placement:p,strategy:i,middlewareData:h,rects:u,platform:l,elements:{reference:e,floating:t}});d=null!=g?g:d,f=null!=y?y:f,h=(0,r.A)((0,r.A)({},h),{},{[n]:(0,r.A)((0,r.A)({},h[n]),w)}),x&&v<=50&&(v++,"object"===typeof x&&(x.placement&&(p=x.placement),x.rects&&(u=!0===x.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):x.rects),({x:d,y:f}=Y(u,p,s))),m=-1)}return{x:d,y:f,placement:p,strategy:i,middlewareData:h}})(e,t,(0,r.A)((0,r.A)({},i),{},{platform:a}))};var $e="undefined"!==typeof document?i.useLayoutEffect:function(){};function Je(e,t){if(e===t)return!0;if(typeof e!==typeof t)return!1;if("function"===typeof e&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&"object"===typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;0!==o--;)if(!Je(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;0!==o--;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;0!==o--;){const n=r[o];if(("_owner"!==n||!e.$$typeof)&&!Je(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Qe(e){if("undefined"===typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function et(e,t){const n=Qe(e);return Math.round(t*n)/n}function tt(e){const t=i.useRef(e);return $e(()=>{t.current=e}),t}const nt=(e,t)=>(0,r.A)((0,r.A)({},ze(e)),{},{options:[e,t]}),ot=(e,t)=>(0,r.A)((0,r.A)({},Ue(e)),{},{options:[e,t]}),rt=(e,t)=>(0,r.A)((0,r.A)({},Ge(e)),{},{options:[e,t]}),it=(e,t)=>(0,r.A)((0,r.A)({},qe(e)),{},{options:[e,t]}),at=(e,t)=>(0,r.A)((0,r.A)({},Ye(e)),{},{options:[e,t]}),lt=(e,t)=>(0,r.A)((0,r.A)({},(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:o}="function"===typeof e?e(t):e;return n&&(r=n,{}.hasOwnProperty.call(r,"current"))?null!=n.current?Xe({element:n.current,padding:o}).fn(t):{}:n?Xe({element:n,padding:o}).fn(t):{};var r}}))(e)),{},{options:[e,t]});var ct=n(87914),st=n(70579);const ut=["children","width","height"];var dt=i.forwardRef((e,t)=>{const{children:n,width:i=10,height:a=5}=e,l=(0,o.A)(e,ut);return(0,st.jsx)(ct.sG.svg,(0,r.A)((0,r.A)({},l),{},{ref:t,width:i,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,st.jsx)("polygon",{points:"0,0 30,0 15,10"})}))});dt.displayName="Arrow";var ft=dt,pt=n(87490),ht=n(70503),vt=n(93124);const mt=["__scopePopper","virtualRef"],gt=["__scopePopper","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","onPlaced"],yt=["__scopePopper"];var wt="Popper",[xt,bt]=(0,d.A)(wt),[At,St]=xt(wt),Et=e=>{const{__scopePopper:t,children:n}=e,[o,r]=i.useState(null);return(0,st.jsx)(At,{scope:t,anchor:o,onAnchorChange:r,children:n})};Et.displayName=wt;var Ct="PopperAnchor",Rt=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:a}=e,l=(0,o.A)(e,mt),c=St(Ct,n),s=i.useRef(null),d=(0,u.s)(t,s),f=i.useRef(null);return i.useEffect(()=>{const e=f.current;f.current=(null===a||void 0===a?void 0:a.current)||s.current,e!==f.current&&c.onAnchorChange(f.current)}),a?null:(0,st.jsx)(ct.sG.div,(0,r.A)((0,r.A)({},l),{},{ref:d}))});Rt.displayName=Ct;var Pt="PopperContent",[Tt,Ot]=xt(Pt),Lt=i.forwardRef((e,t)=>{var n,l,c,s,d,f,p,h;const{__scopePopper:v,side:m="bottom",sideOffset:g=0,align:y="center",alignOffset:w=0,arrowPadding:x=0,avoidCollisions:b=!0,collisionBoundary:A=[],collisionPadding:S=0,sticky:E="partial",hideWhenDetached:C=!1,updatePositionStrategy:R="optimized",onPlaced:P}=e,T=(0,o.A)(e,gt),O=St(Pt,v),[L,k]=i.useState(null),D=(0,u.s)(t,e=>k(e)),[_,N]=i.useState(null),j=(0,vt.X)(_),M=null!==(n=null===j||void 0===j?void 0:j.width)&&void 0!==n?n:0,I=null!==(l=null===j||void 0===j?void 0:j.height)&&void 0!==l?l:0,W=m+("center"!==y?"-"+y:""),F="number"===typeof S?S:(0,r.A)({top:0,right:0,bottom:0,left:0},S),B=Array.isArray(A)?A:[A],H=B.length>0,K={padding:F,boundary:B.filter(Nt),altBoundary:H},{refs:V,floatingStyles:z,placement:G,isPositioned:q,middlewareData:Y}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:l,elements:{reference:c,floating:s}={},transform:u=!0,whileElementsMounted:d,open:f}=e,[p,h]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,m]=i.useState(o);Je(v,o)||m(o);const[g,y]=i.useState(null),[w,x]=i.useState(null),b=i.useCallback(e=>
2{e!==C.current&&(C.current=e,y(e))},[]),A=i.useCallback(e=>{e!==R.current&&(R.current=e,x(e))},[]),S=c||g,E=s||w,C=i.useRef(null),R=i.useRef(null),P=i.useRef(p),T=null!=d,O=tt(d),L=tt(l),k=tt(f),D=i.useCallback(()=>{if(!C.current||!R.current)return;const e={placement:t,strategy:n,middleware:v};L.current&&(e.platform=L.current),Ze(C.current,R.current,e).then(e=>{const t=(0,r.A)((0,r.A)({},e),{},{isPositioned:!1!==k.current});_.current&&!Je(P.current,t)&&(P.current=t,a.flushSync(()=>{h(t)}))})},[v,t,n,L,k]);$e(()=>{!1===f&&P.current.isPositioned&&(P.current.isPositioned=!1,h(e=>(0,r.A)((0,r.A)({},e),{},{isPositioned:!1})))},[f]);const _=i.useRef(!1);$e(()=>(_.current=!0,()=>{_.current=!1}),[]),$e(()=>{if(S&&(C.current=S),E&&(R.current=E),S&&E){if(O.current)return O.current(S,E,D);D()}},[S,E,D,O,T]);const N=i.useMemo(()=>({reference:C,floating:R,setReference:b,setFloating:A}),[b,A]),j=i.useMemo(()=>({reference:S,floating:E}),[S,E]),M=i.useMemo(()=>{const e={position:n,left:0,top:0};if(!j.floating)return e;const t=et(j.floating,p.x),o=et(j.floating,p.y);return u?(0,r.A)((0,r.A)({},e),{},{transform:"translate("+t+"px, "+o+"px)"},Qe(j.floating)>=1.5&&{willChange:"transform"}):{position:n,left:t,top:o}},[n,u,j.floating,p.x,p.y]);return i.useMemo(()=>(0,r.A)((0,r.A)({},p),{},{update:D,refs:N,elements:j,floatingStyles:M}),[p,D,N,j,M])}({strategy:"fixed",placement:W,whileElementsMounted:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ke(...t,{animationFrame:"always"===R})},elements:{reference:O.anchor},middleware:[(X={mainAxis:g+I,alignmentAxis:w},(0,r.A)((0,r.A)({},Ve(X)),{},{options:[X,U]})),b&&nt((0,r.A)({mainAxis:!0,crossAxis:!1,limiter:"partial"===E?ot():void 0},K)),b&&rt((0,r.A)({},K)),it((0,r.A)((0,r.A)({},K),{},{apply:e=>{let{elements:t,rects:n,availableWidth:o,availableHeight:r}=e;const{width:i,height:a}=n.reference,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(o,"px")),l.setProperty("--radix-popper-available-height","".concat(r,"px")),l.setProperty("--radix-popper-anchor-width","".concat(i,"px")),l.setProperty("--radix-popper-anchor-height","".concat(a,"px"))}})),_&<({element:_,padding:x}),jt({arrowWidth:M,arrowHeight:I}),C&&at((0,r.A)({strategy:"referenceHidden"},K))]});var X,U;const[Z,$]=Mt(G),J=(0,pt.c)(P);(0,ht.N)(()=>{q&&(null===J||void 0===J||J())},[q,J]);const Q=null===(c=Y.arrow)||void 0===c?void 0:c.x,ee=null===(s=Y.arrow)||void 0===s?void 0:s.y,te=0!==(null===(d=Y.arrow)||void 0===d?void 0:d.centerOffset),[ne,oe]=i.useState();return(0,ht.N)(()=>{L&&oe(window.getComputedStyle(L).zIndex)},[L]),(0,st.jsx)("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:(0,r.A)((0,r.A)({},z),{},{transform:q?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[null===(f=Y.transformOrigin)||void 0===f?void 0:f.x,null===(p=Y.transformOrigin)||void 0===p?void 0:p.y].join(" ")},(null===(h=Y.hide)||void 0===h?void 0:h.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}),dir:e.dir,children:(0,st.jsx)(Tt,{scope:v,placedSide:Z,onArrowChange:N,arrowX:Q,arrowY:ee,shouldHideArrow:te,children:(0,st.jsx)(ct.sG.div,(0,r.A)((0,r.A)({"data-side":Z,"data-align":$},T),{},{ref:D,style:(0,r.A)((0,r.A)({},T.style),{},{animation:q?void 0:"none"})}))})})});Lt.displayName=Pt;var kt="PopperArrow",Dt={top:"bottom",right:"left",bottom:"top",left:"right"},_t=i.forwardRef(function(e,t){const{__scopePopper:n}=e,i=(0,o.A)(e,yt),a=Ot(kt,n),l=Dt[a.placedSide];return(0,st.jsx)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:(0,st.jsx)(ft,(0,r.A)((0,r.A)({},i),{},{ref:t,style:(0,r.A)((0,r.A)({},i.style),{},{display:"block"})}))})});function Nt(e){return null!==e}_t.displayName=kt;var jt=e=>({name:"transformOrigin",options:e,fn(t){var n,o,r,i,a;const{placement:l,rects:c,middlewareData:s}=t,u=0!==(null===(n=s.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[p,h]=Mt(l),v={start:"0%",center:"50%",end:"100%"}[h],m=(null!==(o=null===(r=s.arrow)||void 0===r?void 0:r.x)&&void 0!==o?o:0)+d/2,g=(null!==(i=null===(a=s.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let y="",w="";return"bottom"===p?(y=u?v:"".concat(m,"px"),w="".concat(-f,"px")):"top"===p?(y=u?v:"".concat(m,"px"),w="".concat(c.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),w=u?v:"".concat(g,"px")):"left"===p&&(y="".concat(c.floating.width+f,"px"),w=u?v:"".concat(g,"px")),{data:{x:y,y:w}}}});function Mt(e){const[t,n="center"]=e.split("-");return[t,n]}var It=Et,Wt=Rt,Ft=Lt,Bt=_t,Ht=n(33321);const Kt=["children"],Vt=["children"];
2function zt(e){const t=Gt(e),n=i.forwardRef((e,n)=>{const{children:a}=e,l=(0,o.A)(e,Kt),c=i.Children.toArray(a),s=c.find(Yt);if(s){const e=s.props.children,o=c.map(t=>t===s?i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null:t);return(0,st.jsx)(t,(0,r.A)((0,r.A)({},l),{},{ref:n,children:i.isValidElement(e)?i.cloneElement(e,void 0,o):null}))}return(0,st.jsx)(t,(0,r.A)((0,r.A)({},l),{},{ref:n,children:a}))});return n.displayName="".concat(e,".Slot"),n}function Gt(e){const t=i.forwardRef((e,t)=>{const{children:n}=e,a=(0,o.A)(e,Vt);if(i.isValidElement(n)){const e=function(e){var t,n;let o=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,r=o&&"isReactWarning"in o&&o.isReactWarning;if(r)return e.ref;if(o=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get,r=o&&"isReactWarning"in o&&o.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n=(0,r.A)({},t);for(const o in t){const i=e[o],a=t[o];/^on[A-Z]/.test(o)?i&&a?n[o]=function(){const e=a(...arguments);return i(...arguments),e}:i&&(n[o]=i):"style"===o?n[o]=(0,r.A)((0,r.A)({},i),a):"className"===o&&(n[o]=[i,a].filter(Boolean).join(" "))}return(0,r.A)((0,r.A)({},e),n)}(a,n.props);return n.type!==i.Fragment&&(o.ref=t?(0,u.t)(t,e):e),i.cloneElement(n,o)}return i.Children.count(n)>1?i.Children.only(null):null});return t.displayName="".concat(e,".SlotClone"),t}var qt=Symbol("radix.slottable");function Yt(e){return i.isValidElement(e)&&"function"===typeof e.type&&"__radixId"in e.type&&e.type.__radixId===qt}var Xt=n(13642),Ut=n(23168),Zt=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),$t=i.forwardRef((e,t)=>(0,st.jsx)(ct.sG.span,(0,r.A)((0,r.A)({},e),{},{ref:t,style:(0,r.A)((0,r.A)({},Zt),e.style)})));$t.displayName="VisuallyHidden";var Jt=n(55754),Qt=n(1672);const en=["__scopeSelect","disabled"],tn=["__scopeSelect","className","style","children","placeholder"],nn=["__scopeSelect","children"],on=["__scopeSelect","position","onCloseAutoFocus","onEscapeKeyDown","onPointerDownOutside","side","sideOffset","align","alignOffset","arrowPadding","collisionBoundary","collisionPadding","sticky","hideWhenDetached","avoidCollisions"],rn=["__scopeSelect","onPlaced"],an=["__scopeSelect","align","collisionPadding"],ln=["__scopeSelect","nonce"],cn=["__scopeSelect"],sn=["__scopeSelect"],un=["__scopeSelect","value","disabled","textValue"],dn=["__scopeSelect","className","style"],fn=["__scopeSelect"],pn=["__scopeSelect","onAutoScroll"],hn=["__scopeSelect"],vn=["__scopeSelect"],mn=["__scopeSelect","value"];var gn=[" ","Enter","ArrowUp","ArrowDown"],yn=[" ","Enter"],wn="Select",[xn,bn,An]=(0,s.N)(wn),[Sn,En]=(0,d.A)(wn,[An,bt]),Cn=bt(),[Rn,Pn]=Sn(wn),[Tn,On]=Sn(wn),Ln=e=>{const{__scopeSelect:t,children:n,open:o,defaultOpen:a,onOpenChange:l,value:c,defaultValue:s,onValueChange:u,dir:d,name:p,autoComplete:h,disabled:v,required:g,form:y}=e,w=Cn(t),[x,b]=i.useState(null),[A,S]=i.useState(null),[E,C]=i.useState(!1),R=(0,f.jH)(d),[P,T]=(0,Xt.i)({prop:o,defaultProp:null!==a&&void 0!==a&&a,onChange:l,caller:wn}),[O,L]=(0,Xt.i)({prop:c,defaultProp:s,onChange:u,caller:wn}),k=i.useRef(null),D=!x||(y||!!x.closest("form")),[_,N]=i.useState(new Set),j=Array.from(_).map(e=>e.props.value).join(";");return(0,st.jsx)(It,(0,r.A)((0,r.A)({},w),{},{children:(0,st.jsxs)(Rn,{required:g,scope:t,trigger:x,onTriggerChange:b,valueNode:A,onValueNodeChange:S,valueNodeHasChildren:E,onValueNodeHasChildrenChange:C,contentId:(0,m.B)(),value:O,onValueChange:L,open:P,onOpenChange:T,dir:R,triggerPointerDownPosRef:k,disabled:v,children:[(0,st.jsx)(xn.Provider,{scope:t,children:(0,st.jsx)(Tn,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(e=>{N(t=>new Set(t).add(e))},[]),onNativeOptionRemove:i.useCallback(e=>{N(t=>{const n=new Set(t);return n.delete(e),n})},[]),children:n})}),D?(0,st.jsxs)(wo,{"aria-hidden":!0,required:g,tabIndex:-1,name:p,autoComplete:h,value:O,onChange:e=>L(e.target.value),disabled:v,form:y,children:[void 0===O?(0,st.jsx)("option",{value:""}):null,Array.from(_)]},j):null]})}))};Ln.displayName=wn;var kn="SelectTrigger",Dn=i.forwardRef((e,t)=>
2{const{__scopeSelect:n,disabled:a=!1}=e,l=(0,o.A)(e,en),s=Cn(n),d=Pn(kn,n),f=d.disabled||a,p=(0,u.s)(t,d.onTriggerChange),h=bn(n),v=i.useRef("touch"),[m,g,y]=bo(e=>{const t=h().filter(e=>!e.disabled),n=t.find(e=>e.value===d.value),o=Ao(t,e,n);void 0!==o&&d.onValueChange(o.value)}),w=e=>{f||(d.onOpenChange(!0),y()),e&&(d.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,st.jsx)(Wt,(0,r.A)((0,r.A)({asChild:!0},s),{},{children:(0,st.jsx)(ct.sG.button,(0,r.A)((0,r.A)({type:"button",role:"combobox","aria-controls":d.contentId,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:f,"data-disabled":f?"":void 0,"data-placeholder":xo(d.value)?"":void 0},l),{},{ref:p,onClick:(0,c.mK)(l.onClick,e=>{e.currentTarget.focus(),"mouse"!==v.current&&w(e)}),onPointerDown:(0,c.mK)(l.onPointerDown,e=>{v.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(w(e),e.preventDefault())}),onKeyDown:(0,c.mK)(l.onKeyDown,e=>{const t=""!==m.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||g(e.key),t&&" "===e.key||gn.includes(e.key)&&(w(),e.preventDefault())})}))}))});Dn.displayName=kn;var _n="SelectValue",Nn=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:i,style:a,children:l,placeholder:c=""}=e,s=(0,o.A)(e,tn),d=Pn(_n,n),{onValueNodeHasChildrenChange:f}=d,p=void 0!==l,h=(0,u.s)(t,d.onValueNodeChange);return(0,ht.N)(()=>{f(p)},[f,p]),(0,st.jsx)(ct.sG.span,(0,r.A)((0,r.A)({},s),{},{ref:h,style:{pointerEvents:"none"},children:xo(d.value)?(0,st.jsx)(st.Fragment,{children:c}):l}))});Nn.displayName=_n;var jn=i.forwardRef((e,t)=>{const{__scopeSelect:n,children:i}=e,a=(0,o.A)(e,nn);return(0,st.jsx)(ct.sG.span,(0,r.A)((0,r.A)({"aria-hidden":!0},a),{},{ref:t,children:i||"\u25bc"}))});jn.displayName="SelectIcon";var Mn=e=>(0,st.jsx)(Ht.Z,(0,r.A)({asChild:!0},e));Mn.displayName="SelectPortal";var In="SelectContent",Wn=i.forwardRef((e,t)=>{const n=Pn(In,e.__scopeSelect),[o,l]=i.useState();if((0,ht.N)(()=>{l(new DocumentFragment)},[]),!n.open){const t=o;return t?a.createPortal((0,st.jsx)(Bn,{scope:e.__scopeSelect,children:(0,st.jsx)(xn.Slot,{scope:e.__scopeSelect,children:(0,st.jsx)("div",{children:e.children})})}),t):null}return(0,st.jsx)(Vn,(0,r.A)((0,r.A)({},e),{},{ref:t}))});Wn.displayName=In;var Fn=10,[Bn,Hn]=Sn(In),Kn=zt("SelectContent.RemoveScroll"),Vn=i.forwardRef((e,t)=>{const{__scopeSelect:n,position:a="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:s,onPointerDownOutside:d,side:f,sideOffset:m,align:g,alignOffset:y,arrowPadding:w,collisionBoundary:x,collisionPadding:b,sticky:A,hideWhenDetached:S,avoidCollisions:E}=e,C=(0,o.A)(e,on),R=Pn(In,n),[P,T]=i.useState(null),[O,L]=i.useState(null),k=(0,u.s)(t,e=>T(e)),[D,_]=i.useState(null),[N,j]=i.useState(null),M=bn(n),[I,W]=i.useState(!1),F=i.useRef(!1);i.useEffect(()=>{if(P)return(0,Jt.Eq)(P)},[P]),(0,h.Oh)();const B=i.useCallback(e=>{const[t,...n]=M().map(e=>e.ref.current),[o]=n.slice(-1),r=document.activeElement;for(const i of e){if(i===r)return;if(null===i||void 0===i||i.scrollIntoView({block:"nearest"}),i===t&&O&&(O.scrollTop=0),i===o&&O&&(O.scrollTop=O.scrollHeight),null===i||void 0===i||i.focus(),document.activeElement!==r)return}},[M,O]),H=i.useCallback(()=>B([D,P]),[B,D,P]);i.useEffect(()=>{I&&H()},[I,H]);const{onOpenChange:K,triggerPointerDownPosRef:V}=R;i.useEffect(()=>{if(P){let e={x:0,y:0};const t=t=>{var n,o,r,i;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(o=V.current)||void 0===o?void 0:o.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(r=null===(i=V.current)||void 0===i?void 0:i.y)&&void 0!==r?r:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():P.contains(n.target)||K(!1),document.removeEventListener("pointermove",t),V.current=null};return null!==V.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[P,K,V]),i.useEffect(()=>{const e=()=>K(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[K]);const[z,G]=bo(e=>{const t=M().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),o=Ao(t,e,n);o&&setTimeout(()=>
2o.ref.current.focus())}),q=i.useCallback((e,t,n)=>{const o=!F.current&&!n;(void 0!==R.value&&R.value===t||o)&&(_(e),o&&(F.current=!0))},[R.value]),Y=i.useCallback(()=>null===P||void 0===P?void 0:P.focus(),[P]),X=i.useCallback((e,t,n)=>{const o=!F.current&&!n;(void 0!==R.value&&R.value===t||o)&&j(e)},[R.value]),U="popper"===a?Gn:zn,Z=U===Gn?{side:f,sideOffset:m,align:g,alignOffset:y,arrowPadding:w,collisionBoundary:x,collisionPadding:b,sticky:A,hideWhenDetached:S,avoidCollisions:E}:{};return(0,st.jsx)(Bn,{scope:n,content:P,viewport:O,onViewportChange:L,itemRefCallback:q,selectedItem:D,onItemLeave:Y,itemTextRefCallback:X,focusSelectedItem:H,selectedItemText:N,position:a,isPositioned:I,searchRef:z,children:(0,st.jsx)(Qt.A,{as:Kn,allowPinchZoom:!0,children:(0,st.jsx)(v.n,{asChild:!0,trapped:R.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,c.mK)(l,e=>{var t;null===(t=R.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,st.jsx)(p.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:d,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:(0,st.jsx)(U,(0,r.A)((0,r.A)((0,r.A)({role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:e=>e.preventDefault()},C),Z),{},{onPlaced:()=>W(!0),ref:k,style:(0,r.A)({display:"flex",flexDirection:"column",outline:"none"},C.style),onKeyDown:(0,c.mK)(C.onKeyDown,e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||G(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=M().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,o=t.indexOf(n);t=t.slice(o+1)}setTimeout(()=>B(t)),e.preventDefault()}})}))})})})})});Vn.displayName="SelectContentImpl";var zn=i.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:a}=e,c=(0,o.A)(e,rn),s=Pn(In,n),d=Hn(In,n),[f,p]=i.useState(null),[h,v]=i.useState(null),m=(0,u.s)(t,e=>v(e)),g=bn(n),y=i.useRef(!1),w=i.useRef(!0),{viewport:x,selectedItem:b,selectedItemText:A,focusSelectedItem:S}=d,E=i.useCallback(()=>{if(s.trigger&&s.valueNode&&f&&h&&x&&b&&A){const e=s.trigger.getBoundingClientRect(),t=h.getBoundingClientRect(),n=s.valueNode.getBoundingClientRect(),o=A.getBoundingClientRect();if("rtl"!==s.dir){const r=o.left-t.left,i=n.left-r,a=e.left-i,c=e.width+a,s=Math.max(c,t.width),u=window.innerWidth-Fn,d=(0,l.q)(i,[Fn,Math.max(Fn,u-s)]);f.style.minWidth=c+"px",f.style.left=d+"px"}else{const r=t.right-o.right,i=window.innerWidth-n.right-r,a=window.innerWidth-e.right-i,c=e.width+a,s=Math.max(c,t.width),u=window.innerWidth-Fn,d=(0,l.q)(i,[Fn,Math.max(Fn,u-s)]);f.style.minWidth=c+"px",f.style.right=d+"px"}const r=g(),i=window.innerHeight-2*Fn,c=x.scrollHeight,u=window.getComputedStyle(h),d=parseInt(u.borderTopWidth,10),p=parseInt(u.paddingTop,10),v=parseInt(u.borderBottomWidth,10),m=d+p+c+parseInt(u.paddingBottom,10)+v,w=Math.min(5*b.offsetHeight,m),S=window.getComputedStyle(x),E=parseInt(S.paddingTop,10),C=parseInt(S.paddingBottom,10),R=e.top+e.height/2-Fn,P=i-R,T=b.offsetHeight/2,O=d+p+(b.offsetTop+T),L=m-O;if(O<=R){const e=r.length>0&&b===r[r.length-1].ref.current;f.style.bottom="0px";const t=h.clientHeight-x.offsetTop-x.offsetHeight,n=O+Math.max(P,T+(e?C:0)+t+v);f.style.height=n+"px"}else{const e=r.length>0&&b===r[0].ref.current;f.style.top="0px";const t=Math.max(R,d+x.offsetTop+(e?E:0)+T)+L;f.style.height=t+"px",x.scrollTop=O-R+x.offsetTop}f.style.margin="".concat(Fn,"px 0"),f.style.minHeight=w+"px",f.style.maxHeight=i+"px",null===a||void 0===a||a(),requestAnimationFrame(()=>y.current=!0)}},[g,s.trigger,s.valueNode,f,h,x,b,A,s.dir,a]);(0,ht.N)(()=>E(),[E]);const[C,R]=i.useState();(0,ht.N)(()=>{h&&R(window.getComputedStyle(h).zIndex)},[h]);const P=i.useCallback(e=>{e&&!0===w.current&&(E(),null===S||void 0===S||S(),w.current=!1)},[E,S]);return(0,st.jsx)(qn,{scope:n,contentWrapper:f,shouldExpandOnScrollRef:y,onScrollButtonChange:P,children:(0,st.jsx)("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:(0,st.jsx)(ct.sG.div,(0,r.A)((0,r.A)({},c),{},{ref:m,style:(0,r.A)({boxSizing:"border-box",maxHeight:"100%"},c.style)}))})})});zn.displayName="SelectItemAlignedPosition";var Gn=i.forwardRef((e,t)=>
2{const{__scopeSelect:n,align:i="start",collisionPadding:a=Fn}=e,l=(0,o.A)(e,an),c=Cn(n);return(0,st.jsx)(Ft,(0,r.A)((0,r.A)((0,r.A)({},c),l),{},{ref:t,align:i,collisionPadding:a,style:(0,r.A)((0,r.A)({boxSizing:"border-box"},l.style),{"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"})}))});Gn.displayName="SelectPopperPosition";var[qn,Yn]=Sn(In,{}),Xn="SelectViewport",Un=i.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:a}=e,l=(0,o.A)(e,ln),s=Hn(Xn,n),d=Yn(Xn,n),f=(0,u.s)(t,s.onViewportChange),p=i.useRef(0);return(0,st.jsxs)(st.Fragment,{children:[(0,st.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),(0,st.jsx)(xn.Slot,{scope:n,children:(0,st.jsx)(ct.sG.div,(0,r.A)((0,r.A)({"data-radix-select-viewport":"",role:"presentation"},l),{},{ref:f,style:(0,r.A)({position:"relative",flex:1,overflow:"hidden auto"},l.style),onScroll:(0,c.mK)(l.onScroll,e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:o}=d;if(null!==o&&void 0!==o&&o.current&&n){const e=Math.abs(p.current-t.scrollTop);if(e>0){const o=window.innerHeight-2*Fn,r=parseFloat(n.style.minHeight),i=parseFloat(n.style.height),a=Math.max(r,i);if(a<o){const r=a+e,i=Math.min(o,r),l=r-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=l>0?l:0,n.style.justifyContent="flex-end")}}}p.current=t.scrollTop})}))})]})});Un.displayName=Xn;var Zn="SelectGroup",[$n,Jn]=Sn(Zn),Qn=i.forwardRef((e,t)=>{const{__scopeSelect:n}=e,i=(0,o.A)(e,cn),a=(0,m.B)();return(0,st.jsx)($n,{scope:n,id:a,children:(0,st.jsx)(ct.sG.div,(0,r.A)((0,r.A)({role:"group","aria-labelledby":a},i),{},{ref:t}))})});Qn.displayName=Zn;var eo="SelectLabel",to=i.forwardRef((e,t)=>{const{__scopeSelect:n}=e,i=(0,o.A)(e,sn),a=Jn(eo,n);return(0,st.jsx)(ct.sG.div,(0,r.A)((0,r.A)({id:a.id},i),{},{ref:t}))});to.displayName=eo;var no="SelectItem",[oo,ro]=Sn(no),io=i.forwardRef((e,t)=>{const{__scopeSelect:n,value:a,disabled:l=!1,textValue:s}=e,d=(0,o.A)(e,un),f=Pn(no,n),p=Hn(no,n),h=f.value===a,[v,g]=i.useState(null!==s&&void 0!==s?s:""),[y,w]=i.useState(!1),x=(0,u.s)(t,e=>{var t;return null===(t=p.itemRefCallback)||void 0===t?void 0:t.call(p,e,a,l)}),b=(0,m.B)(),A=i.useRef("touch"),S=()=>{l||(f.onValueChange(a),f.onOpenChange(!1))};if(""===a)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,st.jsx)(oo,{scope:n,value:a,disabled:l,textId:b,isSelected:h,onItemTextChange:i.useCallback(e=>{g(t=>{var n;return t||(null!==(n=null===e||void 0===e?void 0:e.textContent)&&void 0!==n?n:"").trim()})},[]),children:(0,st.jsx)(xn.ItemSlot,{scope:n,value:a,disabled:l,textValue:v,children:(0,st.jsx)(ct.sG.div,(0,r.A)((0,r.A)({role:"option","aria-labelledby":b,"data-highlighted":y?"":void 0,"aria-selected":h&&y,"data-state":h?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1},d),{},{ref:x,onFocus:(0,c.mK)(d.onFocus,()=>w(!0)),onBlur:(0,c.mK)(d.onBlur,()=>w(!1)),onClick:(0,c.mK)(d.onClick,()=>{"mouse"!==A.current&&S()}),onPointerUp:(0,c.mK)(d.onPointerUp,()=>{"mouse"===A.current&&S()}),onPointerDown:(0,c.mK)(d.onPointerDown,e=>{A.current=e.pointerType}),onPointerMove:(0,c.mK)(d.onPointerMove,e=>{var t;(A.current=e.pointerType,l)?null===(t=p.onItemLeave)||void 0===t||t.call(p):"mouse"===A.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,c.mK)(d.onPointerLeave,e=>{var t;e.currentTarget===document.activeElement&&(null===(t=p.onItemLeave)||void 0===t||t.call(p))}),onKeyDown:(0,c.mK)(d.onKeyDown,e=>{var t;""!==(null===(t=p.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(yn.includes(e.ke
2y)&&S()," "===e.key&&e.preventDefault())})}))})})});io.displayName=no;var ao="SelectItemText",lo=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:l,style:c}=e,s=(0,o.A)(e,dn),d=Pn(ao,n),f=Hn(ao,n),p=ro(ao,n),h=On(ao,n),[v,m]=i.useState(null),g=(0,u.s)(t,e=>m(e),p.onItemTextChange,e=>{var t;return null===(t=f.itemTextRefCallback)||void 0===t?void 0:t.call(f,e,p.value,p.disabled)}),y=null===v||void 0===v?void 0:v.textContent,w=i.useMemo(()=>(0,st.jsx)("option",{value:p.value,disabled:p.disabled,children:y},p.value),[p.disabled,p.value,y]),{onNativeOptionAdd:x,onNativeOptionRemove:b}=h;return(0,ht.N)(()=>(x(w),()=>b(w)),[x,b,w]),(0,st.jsxs)(st.Fragment,{children:[(0,st.jsx)(ct.sG.span,(0,r.A)((0,r.A)({id:p.textId},s),{},{ref:g})),p.isSelected&&d.valueNode&&!d.valueNodeHasChildren?a.createPortal(s.children,d.valueNode):null]})});lo.displayName=ao;var co="SelectItemIndicator",so=i.forwardRef((e,t)=>{const{__scopeSelect:n}=e,i=(0,o.A)(e,fn);return ro(co,n).isSelected?(0,st.jsx)(ct.sG.span,(0,r.A)((0,r.A)({"aria-hidden":!0},i),{},{ref:t})):null});so.displayName=co;var uo="SelectScrollUpButton",fo=i.forwardRef((e,t)=>{const n=Hn(uo,e.__scopeSelect),o=Yn(uo,e.__scopeSelect),[a,l]=i.useState(!1),c=(0,u.s)(t,o.onScrollButtonChange);return(0,ht.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;
2l(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),a?(0,st.jsx)(vo,(0,r.A)((0,r.A)({},e),{},{ref:c,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null});fo.displayName=uo;var po="SelectScrollDownButton",ho=i.forwardRef((e,t)=>{const n=Hn(po,e.__scopeSelect),o=Yn(po,e.__scopeSelect),[a,l]=i.useState(!1),c=(0,u.s)(t,o.onScrollButtonChange);return(0,ht.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;l(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),a?(0,st.jsx)(vo,(0,r.A)((0,r.A)({},e),{},{ref:c,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null});ho.displayName=po;var vo=i.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:a}=e,l=(0,o.A)(e,pn),s=Hn("SelectScrollButton",n),u=i.useRef(null),d=bn(n),f=i.useCallback(()=>{null!==u.current&&(window.clearInterval(u.current),u.current=null)},[]);return i.useEffect(()=>()=>f(),[f]),(0,ht.N)(()=>{var e;const t=d().find(e=>e.ref.current===document.activeElement);null===t||void 0===t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})},[d]),(0,st.jsx)(ct.sG.div,(0,r.A)((0,r.A)({"aria-hidden":!0},l),{},{ref:t,style:(0,r.A)({flexShrink:0},l.style),onPointerDown:(0,c.mK)(l.onPointerDown,()=>{null===u.current&&(u.current=window.setInterval(a,50))}),onPointerMove:(0,c.mK)(l.onPointerMove,()=>{var e;null===(e=s.onItemLeave)||void 0===e||e.call(s),null===u.current&&(u.current=window.setInterval(a,50))}),onPointerLeave:(0,c.mK)(l.onPointerLeave,()=>{f()})}))}),mo=i.forwardRef((e,t)=>{const{__scopeSelect:n}=e,i=(0,o.A)(e,hn);return(0,st.jsx)(ct.sG.div,(0,r.A)((0,r.A)({"aria-hidden":!0},i),{},{ref:t}))});mo.displayName="SelectSeparator";var go="SelectArrow",yo=i.forwardRef((e,t)=>{const{__scopeSelect:n}=e,i=(0,o.A)(e,vn),a=Cn(n),l=Pn(go,n),c=Hn(go,n);return l.open&&"popper"===c.position?(0,st.jsx)(Bt,(0,r.A)((0,r.A)((0,r.A)({},a),i),{},{ref:t})):null});yo.displayName=go;var wo=i.forwardRef((e,t)=>{let{__scopeSelect:n,value:a}=e,l=(0,o.A)(e,mn);const c=i.useRef(null),s=(0,u.s)(t,c),d=(0,Ut.Z)(a);return i.useEffect(()=>{const e=c.current;if(!e)return;const t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,"value").set;if(d!==a&&n){const t=new Event("change",{bubbles:!0});n.call(e,a),e.dispatchEvent(t)}},[d,a]),(0,st.jsx)(ct.sG.select,(0,r.A)((0,r.A)({},l),{},{style:(0,r.A)((0,r.A)({},Zt),l.style),ref:s,defaultValue:a}))});function xo(e){return""===e||void 0===e}function bo(e){const t=(0,pt.c)(e),n=i.useRef(""),o=i.useRef(0),r=i.useCallback(e=>{const r=n.current+e;t(r),function e(t){n.current=t,window.clearTimeout(o.current),""!==t&&(o.current=window.setTimeout(()=>e(""),1e3))}(r)},[t]),a=i.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,r,a]}function Ao(e,t,n){const o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,r=n?e.indexOf(n):-1;let i=(a=e,l=Math.max(r,0),a.map((e,t)=>a[(l+t)%a.length]));var a,l;1===o.length&&(i=i.filter(e=>e!==n));const c=i.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}wo.displayName="SelectBubbleInput";var So=Ln,Eo=Dn,Co=Nn,Ro=jn,Po=Mn,To=Wn,Oo=Un,Lo=Qn,ko=to,Do=io,_o=lo,No=so,jo=fo,Mo=ho,Io=mo},33321(e,t,n){n.d(t,{Z:()=>d});var o=n(89379),r=n(53986),i=n(65043),a=n(97950),l=n(87914),c=n(70503),s=n(70579);const u=["container"];var d=i.forwardRef((e,t)=>{var n;const{container:d}=e,f=(0,r.A)(e,u),[p,h]=i.useState(!1);(0,c.N)(()=>h(!0),[]);const v=d||p&&(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body);return v?a.createPortal((0,s.jsx)(l.sG.div,(0,o.A)((0,o.A)({},f),{},{ref:t})),v):null});d.displayName="Portal"},54490(e,t,n){var o;n.d(t,{B:()=>c});var r=n(65043),i=n(70503),a=(o||(o=n.t(r,2)))[" useId ".trim().toString()]||(()=>{}),l=0;function c(e){const[t,n]=r.useState(a());return(0,i.N)(()=>{e||n(e=>null!==e&&void 0!==e?e:String(l++))},[e]),e||(t?"radix-".concat(t):"")}},55754(e,t,n){n.d(t,{Eq:()=>u});var o=function(e){return"undefined"===typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},r=new WeakMap,i=new WeakMap,a={},l=0,c=function(e){return e&&(e.host||c(e.parentNode))},s=function(e,t,n,o){var s=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=c(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);a[n]||(a[n]=new WeakMap);var u=a[n],d=[],f=new Set,p=new Set(s),h=function(e){e&&!f.has(e)&&(f.add(e),h(e.parentNode))};
2s.forEach(h);var v=function(e){e&&!p.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(f.has(e))v(e);else try{var t=e.getAttribute(o),a=null!==t&&"false"!==t,l=(r.get(e)||0)+1,c=(u.get(e)||0)+1;r.set(e,l),u.set(e,c),d.push(e),1===l&&a&&i.set(e,!0),1===c&&e.setAttribute(n,"true"),a||e.setAttribute(o,"true")}catch(s){console.error("aria-hidden: cannot operate on ",e,s)}})};return v(t),f.clear(),l++,function(){d.forEach(function(e){var t=r.get(e)-1,a=u.get(e)-1;r.set(e,t),u.set(e,a),t||(i.has(e)||e.removeAttribute(o),i.delete(e)),a||e.removeAttribute(n)}),--l||(r=new WeakMap,r=new WeakMap,i=new WeakMap,a={})}},u=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||o(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),s(r,i,n,"aria-hidden")):function(){return null}}},60276(e,t,n){n.d(t,{n:()=>h});var o=n(89379),r=n(53986),i=n(65043),a=n(82814),l=n(87914),c=n(87490),s=n(70579);const u=["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"];var d="focusScope.autoFocusOnMount",f="focusScope.autoFocusOnUnmount",p={bubbles:!1,cancelable:!0},h=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:h=!1,onMountAutoFocus:g,onUnmountAutoFocus:x}=e,b=(0,r.A)(e,u),[A,S]=i.useState(null),E=(0,c.c)(g),C=(0,c.c)(x),R=i.useRef(null),P=(0,a.s)(t,e=>S(e)),T=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(h){let e=function(e){if(T.paused||!A)return;const t=e.target;A.contains(t)?R.current=t:y(R.current,{select:!0})},t=function(e){if(T.paused||!A)return;const t=e.relatedTarget;null!==t&&(A.contains(t)||y(R.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&y(A)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const o=new MutationObserver(n);return A&&o.observe(A,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),o.disconnect()}}},[h,A,T.paused]),i.useEffect(()=>{if(A){w.add(T);const t=document.activeElement;if(!A.contains(t)){const n=new CustomEvent(d,p);A.addEventListener(d,E),A.dispatchEvent(n),n.defaultPrevented||(!function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=document.activeElement;for(const o of e)if(y(o,{select:t}),document.activeElement!==n)return}((e=v(A),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&y(A))}return()=>{A.removeEventListener(d,E),setTimeout(()=>{const e=new CustomEvent(f,p);A.addEventListener(f,C),A.dispatchEvent(e),e.defaultPrevented||y(null!==t&&void 0!==t?t:document.body,{select:!0}),A.removeEventListener(f,C),w.remove(T)},0)}}var e},[A,E,C,T]);const O=i.useCallback(e=>{if(!n&&!h)return;if(T.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=v(e),n=m(t,e),o=m(t.reverse(),e);return[n,o]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&y(i,{select:!0})):(e.preventDefault(),n&&y(r,{select:!0})):o===t&&e.preventDefault()}},[n,h,T.paused]);return(0,s.jsx)(l.sG.div,(0,o.A)((0,o.A)({tabIndex:-1},b),{},{ref:P,onKeyDown:O}))});function v(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function m(e,t){for(const n of e)if(!g(n,{upTo:t}))return n}function g(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==n&&e===n)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function y(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}h.displayName="FocusScope";var w=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null===n||void 0===n||n.pause()),e=x(e,t),e.unshift(t)},remove(t){var n;e=x(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function x(e,t){const n=[...e],o=n.indexOf(t);return-1!==o&&n.splice(o,1),n}}
2,86590(e,t,n){n.d(t,{Oh:()=>i});var o=n(65043),r=0;function i(){o.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:a()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:a()),r++,()=>{1===r&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),r--}},[])}function a(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},87490(e,t,n){n.d(t,{c:()=>r});var o=n(65043);function r(e){const t=o.useRef(e);return o.useEffect(()=>{t.current=e}),o.useMemo(()=>function(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return null===(e=t.current)||void 0===e?void 0:e.call(t,...o)},[])}},91184(e,t,n){n.d(t,{qW:()=>g});var o=n(89379),r=n(53986),i=n(65043),a=n(30858),l=n(87914),c=n(82814),s=n(87490);var u=n(70579);const d=["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"];var f,p="dismissableLayer.update",h="dismissableLayer.pointerDownOutside",v="dismissableLayer.focusOutside",m=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),g=i.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:g=!1,onEscapeKeyDown:y,onPointerDownOutside:b,onFocusOutside:A,onInteractOutside:S,onDismiss:E}=e,C=(0,r.A)(e,d),R=i.useContext(m),[P,T]=i.useState(null),O=null!==(n=null===P||void 0===P?void 0:P.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,L]=i.useState({}),k=(0,c.s)(t,e=>T(e)),D=Array.from(R.layers),[_]=[...R.layersWithOutsidePointerEventsDisabled].slice(-1),N=D.indexOf(_),j=P?D.indexOf(P):-1,M=R.layersWithOutsidePointerEventsDisabled.size>0,I=j>=N,W=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document;const n=(0,s.c)(e),o=i.useRef(!1),r=i.useRef(()=>{});return i.useEffect(()=>{const e=e=>{if(e.target&&!o.current){let o=function(){x(h,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",r.current),r.current=o,t.addEventListener("click",r.current,{once:!0})):o()}else t.removeEventListener("click",r.current);o.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}(e=>{const t=e.target,n=[...R.branches].some(e=>e.contains(t));I&&!n&&(null===b||void 0===b||b(e),null===S||void 0===S||S(e),e.defaultPrevented||null===E||void 0===E||E())},O),F=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document;const n=(0,s.c)(e),o=i.useRef(!1);return i.useEffect(()=>{const e=e=>{if(e.target&&!o.current){x(v,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{const t=e.target;[...R.branches].some(e=>e.contains(t))||(null===A||void 0===A||A(e),null===S||void 0===S||S(e),e.defaultPrevented||null===E||void 0===E||E())},O);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document;const n=(0,s.c)(e);i.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{j===R.layers.size-1&&(null===y||void 0===y||y(e),!e.defaultPrevented&&E&&(e.preventDefault(),E()))},O),i.useEffect(()=>{if(P)return g&&(0===R.layersWithOutsidePointerEventsDisabled.size&&(f=O.body.style.pointerEvents,O.body.style.pointerEvents="none"),R.layersWithOutsidePointerEventsDisabled.add(P)),R.layers.add(P),w(),()=>{g&&1===R.layersWithOutsidePointerEventsDisabled.size&&(O.body.style.pointerEvents=f)}},[P,O,g,R]),i.useEffect(()=>()=>{P&&(R.layers.delete(P),R.layersWithOutsidePointerEventsDisabled.delete(P),w())},[P,R]),i.useEffect(()=>{const e=()=>L({});return document.addEventListener(p,e),()=>document.removeEventListener(p,e)},[]),(0,u.jsx)(l.sG.div,(0,o.A)((0,o.A)({},C),{},{ref:k,style:(0,o.A)({pointerEvents:M?I?"auto":"none":void 0},e.style),onFocusCapture:(0,a.mK)(e.onFocusCapture,F.onFocusCapture),onBlurCapture:(0,a.mK)(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:(0,a.mK)(e.onPointerDownCapture,W.onPointerDownCapture)}))});g.displayName="DismissableLayer";var y=i.forwardRef((e,t)=>
2{const n=i.useContext(m),r=i.useRef(null),a=(0,c.s)(t,r);return i.useEffect(()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,u.jsx)(l.sG.div,(0,o.A)((0,o.A)({},e),{},{ref:a}))});function w(){const e=new CustomEvent(p);document.dispatchEvent(e)}function x(e,t,n,o){let{discrete:r}=o;const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,l.hO)(i,a):i.dispatchEvent(a)}y.displayName="DismissableLayerBranch"}}]); 3//# sourceMappingURL=8092.c4143553.chunk.js.map
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.