PageSourceSearch

https://timganmath.edu.sg/_next/static/chunks/3411-f838635b5cc0d2b0.js

js timganmath.edu.sg collected 2026-09-30 14:35:51 UTC 47,183 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3411],{5162:(e,t,r)=>{let n,o,i;r.d(t,{UC:()=>ro,In:()=>rr,q7:()=>rl,VF:()=>rs,p4:()=>ra,ZL:()=>rn,bL:()=>t8,wn:()=>rc,PP:()=>ru,l9:()=>re,WT:()=>rt,LM:()=>ri});var l=r(12115),a=r(47650);function s(e,[t,r]){return Math.min(r,Math.max(t,e))}var u=r(70379),c=r(64831),f=r(47527),d=r(68599),p=r(1933),h=r(98454),m=r(32007),g=r(69885),v=r(89971);let w=["top","right","bottom","left"],y=Math.min,x=Math.max,b=Math.round,S=Math.floor,C=e=>({x:e,y:e}),R={left:"right",right:"left",bottom:"top",top:"bottom"},T={start:"end",end:"start"};function A(e,t){return"function"==typeof e?e(t):e}function E(e){return e.split("-")[0]}function P(e){return e.split("-")[1]}function j(e){return"x"===e?"y":"x"}function L(e){return"y"===e?"height":"width"}let k=new Set(["top","bottom"]);function N(e){return k.has(E(e))?"y":"x"}function D(e){return e.replace(/start|end/g,e=>T[e])}let O=["left","right"],M=["right","left"],I=["top","bottom"],H=["bottom","top"];function W(e){return e.replace(/left|right|bottom|top/g,e=>R[e])}function B(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function F(e){let{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function V(e,t,r){let n,{reference:o,floating:i}=e,l=N(t),a=j(N(t)),s=L(a),u=E(t),c="y"===l,f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,p=o[s]/2-i[s]/2;switch(u){case"top":n={x:f,y:o.y-i.height};break;case"bottom":n={x:f,y:o.y+o.height};break;case"right":n={x:o.x+o.width,y:d};break;case"left":n={x:o.x-i.width,y:d};break;default:n={x:o.x,y:o.y}}switch(P(t)){case"start":n[a]-=p*(r&&c?-1:1);break;case"end":n[a]+=p*(r&&c?-1:1)}return n}async function _(e,t){var r;void 0===t&&(t={});let{x:n,y:o,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=A(t,e),h=B(p),m=a[d?"floating"===f?"reference":"floating":f],g=F(await i.getClippingRect({element:null==(r=await (null==i.isElement?void 0:i.isElement(m)))||r?m:m.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:s})),v="floating"===f?{x:n,y:o,width:l.floating.width,height:l.floating.height}:l.reference,w=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),y=await (null==i.isElement?void 0:i.isElement(w))&&await (null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},x=F(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:w,strategy:s}):v);return{top:(g.top-x.top+h.top)/y.y,bottom:(x.bottom-g.bottom+h.bottom)/y.y,left:(g.left-x.left+h.left)/y.x,right:(x.right-g.right+h.right)/y.x}}let K=async(e,t,r)=>{let{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:l}=r,a=i.filter(Boolean),s=await (null==l.isRTL?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=V(u,n,s),d=n,p={},h=0;for(let r=0;r<a.length;r++){var m;let{name:i,fn:g}=a[r],{x:v,y:w,data:y,reset:x}=await g({x:c,y:f,initialPlacement:n,placement:d,strategy:o,middlewareData:p,rects:u,platform:{...l,detectOverflow:null!=(m=l.detectOverflow)?m:_},elements:{reference:e,floating:t}});c=null!=v?v:c,f=null!=w?w:f,p={...p,[i]:{...p[i],...y}},x&&h<=50&&(h++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(u=!0===x.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:c,y:f}=V(u,d,s)),r=-1)}return{x:c,y:f,placement:d,strategy:o,middlewareData:p}};function z(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function G(e){return w.some(t=>e[t]>=0)}let $=new Set(["left","top"]);async function U(e,t){let{placement:r,platform:n,elements:o}=e,i=await (null==n.isRTL?void 0:n.isRTL(o.floating)),l=E(r),a=P(r),s="y"===N(r),u=$.has(l)?-1:1,c=i&&s?-1:1,f=A(t,e),{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}
1:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),s?{x:p*c,y:d*u}:{x:d*u,y:p*c}}function q(){return"u">typeof window}function X(e){return Q(e)?(e.nodeName||"").toLowerCase():"#document"}function Y(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Z(e){var t;return null==(t=(Q(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Q(e){return!!q()&&(e instanceof Node||e instanceof Y(e).Node)}function J(e){return!!q()&&(e instanceof Element||e instanceof Y(e).Element)}function ee(e){return!!q()&&(e instanceof HTMLElement||e instanceof Y(e).HTMLElement)}function et(e){return!(!q()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Y(e).ShadowRoot)}let er=new Set(["inline","contents"]);function en(e){let{overflow:t,overflowX:r,overflowY:n,display:o}=eh(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!er.has(o)}let eo=new Set(["table","td","th"]),ei=[":popover-open",":modal"];function el(e){return ei.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let ea=["transform","translate","scale","rotate","perspective"],es=["transform","translate","scale","rotate","perspective","filter"],eu=["paint","layout","strict","content"];function ec(e){let t=ef(),r=J(e)?eh(e):e;return ea.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||es.some(e=>(r.willChange||"").includes(e))||eu.some(e=>(r.contain||"").includes(e))}function ef(){return!("u"<typeof CSS)&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let ed=new Set(["html","body","#document"]);function ep(e){return ed.has(X(e))}function eh(e){return Y(e).getComputedStyle(e)}function em(e){return J(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eg(e){if("html"===X(e))return e;let t=e.assignedSlot||e.parentNode||et(e)&&e.host||Z(e);return et(t)?t.host:t}function ev(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let o=function e(t){let r=eg(t);return ep(r)?t.ownerDocument?t.ownerDocument.body:t.body:ee(r)&&en(r)?r:e(r)}(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),l=Y(o);if(i){let e=ew(l);return t.concat(l,l.visualViewport||[],en(o)?o:[],e&&r?ev(e):[])}return t.concat(o,ev(o,[],r))}function ew(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ey(e){let t=eh(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,o=ee(e),i=o?e.offsetWidth:r,l=o?e.offsetHeight:n,a=b(r)!==i||b(n)!==l;return a&&(r=i,n=l),{width:r,height:n,$:a}}function ex(e){return J(e)?e:e.contextElement}function eb(e){let t=ex(e);if(!ee(t))return C(1);let r=t.getBoundingClientRect(),{width:n,height:o,$:i}=ey(t),l=(i?b(r.width):r.width)/n,a=(i?b(r.height):r.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let eS=C(0);function eC(e){let t=Y(e);return ef()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eS}function eR(e,t,r,n){var o;void 0===t&&(t=!1),void 0===r&&(r=!1);let i=e.getBoundingClientRect(),l=ex(e),a=C(1);t&&(n?J(n)&&(a=eb(n)):a=eb(e));let s=(void 0===(o=r)&&(o=!1),n&&(!o||n===Y(l))&&o)?eC(l):C(0),u=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,f=i.width/a.x,d=i.height/a.y;if(l){let e=Y(l),t=n&&J(n)?Y(n):n,r=e,o=ew(r);for(;o&&n&&t!==r;){let e=eb(o),t=o.getBoundingClientRect(),n=eh(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;u*=e.x,c*=e.y,f*=e.x,d*=e.y,u+=i,c+=l,o=ew(r=Y(o))}}return F({width:f,height:d,x:u,y:c})}function eT(e,t){let r=em(e).scrollLeft;return t?t.left+r:eR(Z(e)).left+r}function eA(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-eT(e,r),y:r.top+t.scrollTop}}let eE=new Set(["absolute","fixed"]);function eP(e,t,r){var n;let o;if("viewport"===t)o=function(e,t){let r=Y(e),n=Z(e),o=r.visualViewport,i=n.clientWidth,l=n.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;let e=ef();
1(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}let u=eT(n);if(u<=0){let e=n.ownerDocument,t=e.body,r=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,l=Math.abs(n.clientWidth-t.clientWidth-o);l<=25&&(i-=l)}else u<=25&&(i+=u);return{width:i,height:l,x:a,y:s}}(e,r);else if("document"===t){let t,r,i,l,a,s,u;n=Z(e),t=Z(n),r=em(n),i=n.ownerDocument.body,l=x(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=x(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+eT(n),u=-r.scrollTop,"rtl"===eh(i).direction&&(s+=x(t.clientWidth,i.clientWidth)-l),o={width:l,height:a,x:s,y:u}}else if(J(t)){let e,n,i,l,a,s;n=(e=eR(t,!0,"fixed"===r)).top+t.clientTop,i=e.left+t.clientLeft,l=ee(t)?eb(t):C(1),a=t.clientWidth*l.x,s=t.clientHeight*l.y,o={width:a,height:s,x:i*l.x,y:n*l.y}}else{let r=eC(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return F(o)}function ej(e){return"static"===eh(e).position}function eL(e,t){if(!ee(e)||"fixed"===eh(e).position)return null;if(t)return t(e);let r=e.offsetParent;return Z(e)===r&&(r=r.ownerDocument.body),r}function ek(e,t){var r;let n=Y(e);if(el(e))return n;if(!ee(e)){let t=eg(e);for(;t&&!ep(t);){if(J(t)&&!ej(t))return t;t=eg(t)}return n}let o=eL(e,t);for(;o&&(r=o,eo.has(X(r)))&&ej(o);)o=eL(o,t);return o&&ep(o)&&ej(o)&&!ec(o)?n:o||function(e){let t=eg(e);for(;ee(t)&&!ep(t);){if(ec(t))return t;if(el(t))break;t=eg(t)}return null}(e)||n}let eN=async function(e){let t=this.getOffsetParent||ek,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=ee(t),o=Z(t),i="fixed"===r,l=eR(e,!0,i,t),a={scrollLeft:0,scrollTop:0},s=C(0);if(n||!n&&!i)if(("body"!==X(t)||en(o))&&(a=em(t)),n){let e=eR(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=eT(o));i&&!n&&o&&(s.x=eT(o));let u=!o||n||i?C(0):eA(o,a);return{x:l.left+a.scrollLeft-s.x-u.x,y:l.top+a.scrollTop-s.y-u.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},eD={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e,i="fixed"===o,l=Z(n),a=!!t&&el(t.floating);if(n===l||a&&i)return r;let s={scrollLeft:0,scrollTop:0},u=C(1),c=C(0),f=ee(n);if((f||!f&&!i)&&(("body"!==X(n)||en(l))&&(s=em(n)),ee(n))){let e=eR(n);u=eb(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}let d=!l||f||i?C(0):eA(l,s);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-s.scrollLeft*u.x+c.x+d.x,y:r.y*u.y-s.scrollTop*u.y+c.y+d.y}},getDocumentElement:Z,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e,i=[..."clippingAncestors"===r?el(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=ev(e,[],!1).filter(e=>J(e)&&"body"!==X(e)),o=null,i="fixed"===eh(e).position,l=i?eg(e):e;for(;J(l)&&!ep(l);){let t=eh(l),r=ec(l);r||"fixed"!==t.position||(o=null),(i?!r&&!o:!r&&"static"===t.position&&!!o&&eE.has(o.position)||en(l)&&!r&&function e(t,r){let n=eg(t);return!(n===r||!J(n)||ep(n))&&("fixed"===eh(n).position||e(n,r))}(e,l))?n=n.filter(e=>e!==l):o=t,l=eg(l)}return t.set(e,n),n}(t,this._c):[].concat(r),n],l=i[0],a=i.reduce((e,r)=>{let n=eP(t,r,o);return e.top=x(n.top,e.top),e.right=y(n.right,e.right),e.bottom=y(n.bottom,e.bottom),e.left=x(n.left,e.left),e},eP(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:ek,getElementRects:eN,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=ey(e);return{width:t,height:r}},getScale:eb,isElement:J,isRTL:function(e){return"rtl"===eh(e).direction}};function eO(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eM=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:o,rects:i,platform:l,elements:a,middlewareData:s}=t,{element:u,padding:c=0}=A(e,t)||{};if(null==u)return{};let f=B(c),d={x:r,y:n},p=j(N(o)),h=L(p),m=await l.getDimensions(u),g="y"===p,v=g?"clientHeight":"clientWidth",w=i.reference[h]+i.reference[p]-d[p]-i.floating[h],b=d[p]-i.reference[p],S=await (null==l.getOffsetParent?void 0:l.getOffsetParent(u)),C=S?S[v]:0;C&&await (null==l.isElement?void 0:l.isElement(S))||(C=a.floating[v]||i.floating[h]);let R=C/2-m[h]/2-1,T=y(f[g?"top":"left"],R),E=y(f[g?"bottom":"right"],R),k=C-m[h]-E,D=C/2-m[h]/2+(w/2-b/2),O=x(T,y(D,k)),M=!s.arrow&&null!=P(o)&&D!==O&&i.reference[h]/2-(D<T?T:E)-m[h]/2<0,I=M?D<T?D-T:D-k:0;return{[p]:d[p]+I,data:{[p]:O,centerOffset:D-O-I,...M&&{alignmentOffset:I}},reset:M}}});var eI="u">typeof document?l.useLayoutEffect:function(){};function eH(e,t){let r,n,o;if(e===t)return!0;
1if(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((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!eH(e[n],t[n]))return!1;return!0}if((r=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!=n--;){let r=o[n];if(("_owner"!==r||!e.$$typeof)&&!eH(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function eW(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eB(e,t){let r=eW(e);return Math.round(t*r)/r}function eF(e){let t=l.useRef(e);return eI(()=>{t.current=e}),t}var eV=r(99354),e_=r(95155),eK=l.forwardRef((e,t)=>{let{children:r,width:n=10,height:o=5,...i}=e;return(0,e_.jsx)(eV.sG.svg,{...i,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,e_.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eK.displayName="Arrow";var ez=r(17347),eG=r(66294),e$=r(63509),eU="Popper",[eq,eX]=(0,d.A)(eU),[eY,eZ]=eq(eU),eQ=e=>{let{__scopePopper:t,children:r}=e,[n,o]=l.useState(null);return(0,e_.jsx)(eY,{scope:t,anchor:n,onAnchorChange:o,children:r})};eQ.displayName=eU;var eJ="PopperAnchor",e0=l.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:n,...o}=e,i=eZ(eJ,r),a=l.useRef(null),s=(0,f.s)(t,a),u=l.useRef(null);return l.useEffect(()=>{let e=u.current;u.current=n?.current||a.current,e!==u.current&&i.onAnchorChange(u.current)}),n?null:(0,e_.jsx)(eV.sG.div,{...o,ref:s})});e0.displayName=eJ;var e1="PopperContent",[e5,e2]=eq(e1),e9=l.forwardRef((e,t)=>{var r,n,o,i,s,u,c,d,p,h,m,g,v,w,b,C,R,T,k,B,F;let{__scopePopper:V,side:_="bottom",sideOffset:q=0,align:X="center",alignOffset:Y=0,arrowPadding:Q=0,avoidCollisions:J=!0,collisionBoundary:ee=[],collisionPadding:et=0,sticky:er="partial",hideWhenDetached:en=!1,updatePositionStrategy:eo="optimized",onPlaced:ei,...el}=e,ea=eZ(e1,V),[es,eu]=l.useState(null),ec=(0,f.s)(t,e=>eu(e)),[ef,ed]=l.useState(null),ep=(0,e$.X)(ef),eh=ep?.width??0,em=ep?.height??0,eg="number"==typeof et?et:{top:0,right:0,bottom:0,left:0,...et},ew=Array.isArray(ee)?ee:[ee],ey=ew.length>0,eb={padding:eg,boundary:ew.filter(e7),altBoundary:ey},{refs:eS,floatingStyles:eC,placement:eT,isPositioned:eA,middlewareData:eE}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:s}={},transform:u=!0,whileElementsMounted:c,open:f}=e,[d,p]=l.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=l.useState(n);eH(h,n)||m(n);let[g,v]=l.useState(null),[w,y]=l.useState(null),x=l.useCallback(e=>{e!==R.current&&(R.current=e,v(e))},[]),b=l.useCallback(e=>{e!==T.current&&(T.current=e,y(e))},[]),S=i||g,C=s||w,R=l.useRef(null),T=l.useRef(null),A=l.useRef(d),E=null!=c,P=eF(c),j=eF(o),L=eF(f),k=l.useCallback(()=>{var e,n;let o,i,l;if(!R.current||!T.current)return;let s={placement:t,strategy:r,middleware:h};j.current&&(s.platform=j.current),(e=R.current,n=T.current,o=new Map,l={...(i={platform:eD,...s}).platform,_c:o},K(e,n,{...i,platform:l})).then(e=>{let t={...e,isPositioned:!1!==L.current};N.current&&!eH(A.current,t)&&(A.current=t,a.flushSync(()=>{p(t)}))})},[h,t,r,j,L]);eI(()=>{!1===f&&A.current.isPositioned&&(A.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[f]);let N=l.useRef(!1);eI(()=>(N.current=!0,()=>{N.current=!1}),[]),eI(()=>{if(S&&(R.current=S),C&&(T.current=C),S&&C){if(P.current)return P.current(S,C,k);k()}},[S,C,k,P,E]);let D=l.useMemo(()=>({reference:R,floating:T,setReference:x,setFloating:b}),[x,b]),O=l.useMemo(()=>({reference:S,floating:C}),[S,C]),M=l.useMemo(()=>{let e={position:r,left:0,top:0};if(!O.floating)return e;let t=eB(O.floating,d.x),n=eB(O.floating,d.y);return u?{...e,transform:"translate("+t+"px, "+n+"px)",...eW(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,u,O.floating,d.x,d.y]);return l.useMemo(()=>({...d,update:k,refs:D,elements:O,floatingStyles:M}),[d,k,D,O,M])}({strategy:"fixed",placement:_+("center"!==X?"-"+X:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,t,r,n){let o;void 0===n&&(n={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=n,c=ex(e),f=i||l?[...c?ev(c):[],...ev(t)]:[];
1f.forEach(e=>{i&&e.addEventListener("scroll",r,{passive:!0}),l&&e.addEventListener("resize",r)});let d=c&&s?function(e,t){let r,n=null,o=Z(e);function i(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function l(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),i();let u=e.getBoundingClientRect(),{left:c,top:f,width:d,height:p}=u;if(a||t(),!d||!p)return;let h={rootMargin:-S(f)+"px "+-S(o.clientWidth-(c+d))+"px "+-S(o.clientHeight-(f+p))+"px "+-S(c)+"px",threshold:x(0,y(1,s))||1},m=!0;function g(t){let n=t[0].intersectionRatio;if(n!==s){if(!m)return l();n?l(!1,n):r=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==n||eO(u,e.getBoundingClientRect())||l(),m=!1}try{n=new IntersectionObserver(g,{...h,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(g,h)}n.observe(e)}(!0),i}(c,r):null,p=-1,h=null;a&&(h=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),r()}),c&&!u&&h.observe(c),h.observe(t));let m=u?eR(e):null;return u&&function t(){let n=eR(e);m&&!eO(m,n)&&r(),m=n,o=requestAnimationFrame(t)}(),r(),()=>{var e;f.forEach(e=>{i&&e.removeEventListener("scroll",r),l&&e.removeEventListener("resize",r)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,u&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===eo})},elements:{reference:ea.anchor},middleware:[{...{name:"offset",options:o=r={mainAxis:q+em,alignmentAxis:Y},async fn(e){var t,r;let{x:n,y:i,placement:l,middlewareData:a}=e,s=await U(e,o);return l===(null==(t=a.offset)?void 0:t.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:n+s.x,y:i+s.y,data:{...s,placement:l}}}},options:[r,n]},J&&{...{name:"shift",options:p=c={mainAxis:!0,crossAxis:!1,limiter:"partial"===er?{...(void 0===(u=i)&&(u={}),{options:u,fn(e){let{x:t,y:r,placement:n,rects:o,middlewareData:i}=e,{offset:l=0,mainAxis:a=!0,crossAxis:s=!0}=A(u,e),c={x:t,y:r},f=N(n),d=j(f),p=c[d],h=c[f],m=A(l,e),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(a){let e="y"===d?"height":"width",t=o.reference[d]-o.floating[e]+g.mainAxis,r=o.reference[d]+o.reference[e]-g.mainAxis;p<t?p=t:p>r&&(p=r)}if(s){var v,w;let e="y"===d?"width":"height",t=$.has(E(n)),r=o.reference[f]-o.floating[e]+(t&&(null==(v=i.offset)?void 0:v[f])||0)+(t?0:g.crossAxis),l=o.reference[f]+o.reference[e]+(t?0:(null==(w=i.offset)?void 0:w[f])||0)-(t?g.crossAxis:0);h<r?h=r:h>l&&(h=l)}return{[d]:p,[f]:h}}}),options:[i,s]}:void 0,...eb},async fn(e){let{x:t,y:r,placement:n,platform:o}=e,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...s}=A(p,e),u={x:t,y:r},c=await o.detectOverflow(e,s),f=N(E(n)),d=j(f),h=u[d],m=u[f];if(i){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",r=h+c[e],n=h-c[t];h=x(r,y(h,n))}if(l){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",r=m+c[e],n=m-c[t];m=x(r,y(m,n))}let g=a.fn({...e,[d]:h,[f]:m});return{...g,data:{x:g.x-t,y:g.y-r,enabled:{[d]:i,[f]:l}}}}},options:[c,d]},J&&{...{name:"flip",options:g=h={...eb},async fn(e){var t,r,n,o,i,l,a,s;let u,c,f,{placement:d,middlewareData:p,rects:h,initialPlacement:m,platform:v,elements:w}=e,{mainAxis:y=!0,crossAxis:x=!0,fallbackPlacements:b,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:R=!0,...T}=A(g,e);if(null!=(t=p.arrow)&&t.alignmentOffset)return{};let k=E(d),B=N(m),F=E(m)===m,V=await (null==v.isRTL?void 0:v.isRTL(w.floating)),_=b||(F||!R?[W(m)]:(u=W(m),[D(m),u,D(u)])),K="none"!==C;!b&&K&&_.push(...(c=P(m),f=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?M:O;return t?O:M;case"left":case"right":return t?I:H;default:return[]}}(E(m),"start"===C,V),c&&(f=f.map(e=>e+"-"+c),R&&(f=f.concat(f.map(D)))),f));let z=[m,..._],G=await v.detectOverflow(e,T),$=[],U=(null==(r=p.flip)?void 0:r.overflows)||[];if(y&&$.push(G[k]),x){let e,t,r,n,o=(l=d,a=h,void 0===(s=V)&&(s=!1),e=P(l),r=L(t=j(N(l))),n="x"===t?e===(s?"end":"start")?"right":"left":"start"===e?"bottom":"top",a.reference[r]>a.floating[r]&&(n=W(n)),[n,W(n)]);$.push(G[o[0]],G[o[1]])}if(U=[...U,{placement:d,overflows:$}],!$.every(e=>e<=0)){let e=((null==(n=p.flip)?void 0:n.index)||0)+1,t=z[e];if(t&&("alignment"!==x||B===N(t)||U.every(e=>N(e.placement)!==B||e.overflows[0]>0)))return{data:{index:e,overflows:U},reset:{placement:t}};let r=null==(o=U.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!r)switch(S){case"bestFit":{let e=null==(i=U.filter(e=>{if(K){let t=N(e.placement);return t===B||"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:i[0];e&&(r=e);break}case"initialPlacement":r=m}if(d!==r)return{reset:{placement:r}}}return{}}},options:[h,m]},{...{name:"size",options:b=v={...eb,apply:e=>{let{elements:t,rects:r,availableWidth:n,availableHeight:o}=e,{width:i,height:l}=r.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${o}px`),a.setProperty("--radix-popper-anchor-width",`${i}px`),a.setProperty("--radix-popper-anchor-height",`${l}px`)}},async fn(e){var t,r;let n,o,{placement:i,rects:l,platform:a,elements:s}=e,{apply:u=()=>{},...c}=A(b,e),f=await a.detectOverflow(e,c),d=E(i),p=P(i),h="y"===N(i),{width:m,height:g}=l.floating;"top"===d||"bottom"===d?(n=d,o=p===(await (null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(o=d,n="end"===p?"top":"bottom");let v=g-f.top-f.bottom,w=m-f.left-f.right,S=y(g-f[n],v),C=y(m-f[o],w),R=!e.middlewareData.shift,T=S,j=C;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(j=w),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(T=v),R&&!p){let e=x(f.left,0),t=x(f.right,0),r=x(f.top,0),n=x(f.bottom,0);h?j=m-2*(0!==e||0!==t?e+t:x(f.left,f.right)):T=g-2*(0!==r||0!==n?r+n:x(f.top,f.bottom))}await u({...e,availableWidth:j,availableHeight:T});let L=await a.getDimensions(s.floating);return m!==L.width||g!==L.height?{reset:{rects:!0}}:{}}},options:[v,w]},ef&&{...{name:"arrow",options:T=C={element:ef,padding:Q},fn(e){let{element:t,padding:r}="function"==typeof T?T(e):T;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?eM({element:t.current,padding:r}).fn(e):{}:t?eM({element:t,padding:r}).fn(e):{}}},options:[C,R]},e8({arrowWidth:eh,arrowHeight:em}),en&&{...{name:"hide",options:F=k={strategy:"referenceHidden",...eb},async fn(e){let{rects:t,platform:r}=e,{strategy:n="referenceHidden",...o}=A(F,e);switch(n){case"referenceHidden":{let n=z(await r.detectOverflow(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:G(n)}}}case"escaped":{let n=z(await r.detectOverflow(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:G(n)}}}default:return{}}}},options:[k,B]}]}),[eP,ej]=te(eT),eL=(0,ez.c)(ei);(0,eG.N)(()=>{eA&&eL?.()},[eA,eL]);let ek=eE.arrow?.x,eN=eE.arrow?.y,eK=eE.arrow?.centerOffset!==0,[eU,eq]=l.useState();return(0,eG.N)(()=>{es&&eq(window.getComputedStyle(es).zIndex)},[es]),(0,e_.jsx)("div",{ref:eS.setFloating,"data-radix-popper-content-wrapper":"",style:{...eC,transform:eA?eC.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eU,"--radix-popper-transform-origin":[eE.transformOrigin?.x,eE.transformOrigin?.y].join(" "),...eE.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,e_.jsx)(e5,{scope:V,placedSide:eP,onArrowChange:ed,arrowX:ek,arrowY:eN,shouldHideArrow:eK,children:(0,e_.jsx)(eV.sG.div,{"data-side":eP,"data-align":ej,...el,ref:ec,style:{...el.style,animation:eA?void 0:"none"}})})})});e9.displayName=e1;var e4="PopperArrow",e3={top:"bottom",right:"left",bottom:"top",left:"right"},e6=l.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,o=e2(e4,r),i=e3[o.placedSide];return(0,e_.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,e_.jsx)(eK,{...n,ref:t,style:{...n.style,display:"block"}})})});function e7(e){return null!==e}e6.displayName=e4;var e8=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[s,u]=te(r),c={start:"0%",center:"50%",end:"100%"}[u],f=(o.arrow?.x??0)+l/2,d=(o.arrow?.y??0)+a/2,p="",h="";return"bottom"===s?(p=i?c:`${f}px`,h=`${-a}px`):"top"===s?(p=i?c:`${f}px`,h=`${n.floating.height+a}px`):"right"===s?(p=`${-a}px`,h=i?c:`${d}px`):"left"===s&&(p=`${n.floating.width+a}px`,h=i?c:`${d}px`),{data:{x:p,y:h}}}});function te(e){let[t,r="center"]=e.split("-");return[t,r]}var tt=r(19040),tr=Symbol("radix.slottable");function tn(e){return l.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===tr}var to=r(98979),ti=r(83417),tl=r(40562),ta=r(22954),ts=r(78919),tu=[" ","Enter","ArrowUp","ArrowDown"],tc=[" ","Enter"],tf="Select",[td,tp,th]=(0,c.N)(tf),[tm,tg]=(0,d.A)(tf,[th,eX]),tv=eX(),[tw,ty]=tm(tf),[tx,tb]=tm(tf),tS=e=>{let{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:i,value:a,defaultValue:s,onValueChange:u,dir:c,name:f,autoComplete:d,disabled:h,required:m,form:g}=e,w=tv(t),[y,x]=l.useState(null),[b,S]=l.useState(null),[C,R]=l.useState(!1),T=(0,p.jH)(c),[A,E]=(0,to.i)({prop:n,defaultProp:o??!1,onChange:i,caller:tf}),[P,j]=(0,to.i)({prop:a,defaultProp:s,onChange:u,caller:tf}),L=l.useRef(null),k=!y||g||!!y.closest("form"),[N,D]=l.useState(new Set),O=Array.from(N).map(e=>e.props.value).join(";");return(0,e_.jsx)(eQ,{...w,children:(0,e_.jsxs)(tw,{required:m,scope:t,trigger:y,onTriggerChange:x,valueNode:b,onValueNodeChange:S,valueNodeHasChildren:C,onValueNodeHasChildrenChange:R,contentId:(0,v.B)(),value:P,onValueChange:j,open:A,onOpenChange:E,dir:T,triggerPointerDownPosRef:L,disabled:h,children:[(0,e_.jsx)(td.Provider,{scope:t,children:(0,e_.jsx)(tx,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(e=>{D(t=>new Set(t).add(e))},[]),onNativeOptionRemove:l.useCallback(e=>{D(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:r})}),k?(0,e_.jsxs)(t4,{"aria-hidden":!0,required:m,tabIndex:-1,name:f,autoComplete:d,value:P,onChange:e=>j(e.target.value),disabled:h,form:g,children:[void 0===P?(0,e_.jsx)("option",{value:""}):null,Array.from(N)]},O):null]})})};tS.displayName=tf;var tC="SelectTrigger",tR=l.forwardRef((e,t)=>
1{let{__scopeSelect:r,disabled:n=!1,...o}=e,i=tv(r),a=ty(tC,r),s=a.disabled||n,c=(0,f.s)(t,a.onTriggerChange),d=tp(r),p=l.useRef("touch"),[h,m,g]=t6(e=>{let t=d().filter(e=>!e.disabled),r=t.find(e=>e.value===a.value),n=t7(t,e,r);void 0!==n&&a.onValueChange(n.value)}),v=e=>{s||(a.onOpenChange(!0),g()),e&&(a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,e_.jsx)(e0,{asChild:!0,...i,children:(0,e_.jsx)(eV.sG.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":t3(a.value)?"":void 0,...o,ref:c,onClick:(0,u.mK)(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==p.current&&v(e)}),onPointerDown:(0,u.mK)(o.onPointerDown,e=>{p.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(v(e),e.preventDefault())}),onKeyDown:(0,u.mK)(o.onKeyDown,e=>{let t=""!==h.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),(!t||" "!==e.key)&&tu.includes(e.key)&&(v(),e.preventDefault())})})})});tR.displayName=tC;var tT="SelectValue",tA=l.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:o,children:i,placeholder:l="",...a}=e,s=ty(tT,r),{onValueNodeHasChildrenChange:u}=s,c=void 0!==i,d=(0,f.s)(t,s.onValueNodeChange);return(0,eG.N)(()=>{u(c)},[u,c]),(0,e_.jsx)(eV.sG.span,{...a,ref:d,style:{pointerEvents:"none"},children:t3(s.value)?(0,e_.jsx)(e_.Fragment,{children:l}):i})});tA.displayName=tT;var tE=l.forwardRef((e,t)=>{let{__scopeSelect:r,children:n,...o}=e;return(0,e_.jsx)(eV.sG.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});tE.displayName="SelectIcon";var tP=e=>(0,e_.jsx)(tt.Z,{asChild:!0,...e});tP.displayName="SelectPortal";var tj="SelectContent",tL=l.forwardRef((e,t)=>{let r=ty(tj,e.__scopeSelect),[n,o]=l.useState();return((0,eG.N)(()=>{o(new DocumentFragment)},[]),r.open)?(0,e_.jsx)(tO,{...e,ref:t}):n?a.createPortal((0,e_.jsx)(tk,{scope:e.__scopeSelect,children:(0,e_.jsx)(td.Slot,{scope:e.__scopeSelect,children:(0,e_.jsx)("div",{children:e.children})})}),n):null});tL.displayName=tj;var[tk,tN]=tm(tj),tD=((i=l.forwardRef((e,t)=>{let{children:r,...n}=e;if(l.isValidElement(r)){var o;let e,i,a=(o=r,(i=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(i=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),s=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==l.Fragment&&(s.ref=t?(0,f.t)(t,a):a),l.cloneElement(r,s)}return l.Children.count(r)>1?l.Children.only(null):null})).displayName="SelectContent.RemoveScroll.SlotClone",n=i,(o=l.forwardRef((e,t)=>{let{children:r,...o}=e,i=l.Children.toArray(r),a=i.find(tn);if(a){let e=a.props.children,r=i.map(t=>t!==a?t:l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null);return(0,e_.jsx)(n,{...o,ref:t,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,e_.jsx)(n,{...o,ref:t,children:r})})).displayName="SelectContent.RemoveScroll.Slot",o),tO=l.forwardRef((e,t)=>{let{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:s,sideOffset:c,align:d,alignOffset:p,arrowPadding:v,collisionBoundary:w,collisionPadding:y,sticky:x,hideWhenDetached:b,avoidCollisions:S,...C}=e,R=ty(tj,r),[T,A]=l.useState(null),[E,P]=l.useState(null),j=(0,f.s)(t,e=>A(e)),[L,k]=l.useState(null),[N,D]=l.useState(null),O=tp(r),[M,I]=l.useState(!1),H=l.useRef(!1);l.useEffect(()=>{if(T)return(0,ta.Eq)(T)},[T]),(0,m.Oh)();let W=l.useCallback(e=>{let[t,...r]=O().map(e=>e.ref.current),[n]=r.slice(-1),o=document.activeElement;for(let r of e)if(r===o||(r?.scrollIntoView({block:"nearest"}),r===t&&E&&(E.scrollTop=0),r===n&&E&&(E.scrollTop=E.scrollHeight),r?.focus(),document.activeElement!==o))return},[O,E]),B=l.useCallback(()=>W([L,T]),[W,L,T]);l.useEffect(()=>{M&&B()},[M,B]);let{onOpenChange:F,triggerPointerDownPosRef:V}=R;l.useEffect(()=>{if(T){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(V.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(V.current?.y??0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():T.contains(r.target)||F(!1),document.removeEventListener("pointermove",t),V.current=null};return null!==V.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[T,F,V]),l.useEffect(()=>{let e=()=>F(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[F]);let[_,K]=t6(e=>
1{let t=O().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=t7(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),z=l.useCallback((e,t,r)=>{let n=!H.current&&!r;(void 0!==R.value&&R.value===t||n)&&(k(e),n&&(H.current=!0))},[R.value]),G=l.useCallback(()=>T?.focus(),[T]),$=l.useCallback((e,t,r)=>{let n=!H.current&&!r;(void 0!==R.value&&R.value===t||n)&&D(e)},[R.value]),U="popper"===n?tI:tM,q=U===tI?{side:s,sideOffset:c,align:d,alignOffset:p,arrowPadding:v,collisionBoundary:w,collisionPadding:y,sticky:x,hideWhenDetached:b,avoidCollisions:S}:{};return(0,e_.jsx)(tk,{scope:r,content:T,viewport:E,onViewportChange:P,itemRefCallback:z,selectedItem:L,onItemLeave:G,itemTextRefCallback:$,focusSelectedItem:B,selectedItemText:N,position:n,isPositioned:M,searchRef:_,children:(0,e_.jsx)(ts.A,{as:tD,allowPinchZoom:!0,children:(0,e_.jsx)(g.n,{asChild:!0,trapped:R.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,u.mK)(o,e=>{R.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,e_.jsx)(h.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:(0,e_.jsx)(U,{role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:e=>e.preventDefault(),...C,...q,onPlaced:()=>I(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:(0,u.mK)(C.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||K(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=O().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>W(t)),e.preventDefault()}})})})})})})});tO.displayName="SelectContentImpl";var tM=l.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:n,...o}=e,i=ty(tj,r),a=tN(tj,r),[u,c]=l.useState(null),[d,p]=l.useState(null),h=(0,f.s)(t,e=>p(e)),m=tp(r),g=l.useRef(!1),v=l.useRef(!0),{viewport:w,selectedItem:y,selectedItemText:x,focusSelectedItem:b}=a,S=l.useCallback(()=>{if(i.trigger&&i.valueNode&&u&&d&&w&&y&&x){let e=i.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),r=i.valueNode.getBoundingClientRect(),o=x.getBoundingClientRect();if("rtl"!==i.dir){let n=o.left-t.left,i=r.left-n,l=e.left-i,a=e.width+l,c=Math.max(a,t.width),f=s(i,[10,Math.max(10,window.innerWidth-10-c)]);u.style.minWidth=a+"px",u.style.left=f+"px"}else{let n=t.right-o.right,i=window.innerWidth-r.right-n,l=window.innerWidth-e.right-i,a=e.width+l,c=Math.max(a,t.width),f=s(i,[10,Math.max(10,window.innerWidth-10-c)]);u.style.minWidth=a+"px",u.style.right=f+"px"}let l=m(),a=window.innerHeight-20,c=w.scrollHeight,f=window.getComputedStyle(d),p=parseInt(f.borderTopWidth,10),h=parseInt(f.paddingTop,10),v=parseInt(f.borderBottomWidth,10),b=p+h+c+parseInt(f.paddingBottom,10)+v,S=Math.min(5*y.offsetHeight,b),C=window.getComputedStyle(w),R=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),A=e.top+e.height/2-10,E=y.offsetHeight/2,P=p+h+(y.offsetTop+E);if(P<=A){let e=l.length>0&&y===l[l.length-1].ref.current;u.style.bottom="0px";let t=Math.max(a-A,E+(e?T:0)+(d.clientHeight-w.offsetTop-w.offsetHeight)+v);u.style.height=P+t+"px"}else{let e=l.length>0&&y===l[0].ref.current;u.style.top="0px";let t=Math.max(A,p+w.offsetTop+(e?R:0)+E);u.style.height=t+(b-P)+"px",w.scrollTop=P-A+w.offsetTop}u.style.margin="10px 0",u.style.minHeight=S+"px",u.style.maxHeight=a+"px",n?.(),requestAnimationFrame(()=>g.current=!0)}},[m,i.trigger,i.valueNode,u,d,w,y,x,i.dir,n]);(0,eG.N)(()=>S(),[S]);let[C,R]=l.useState();(0,eG.N)(()=>{d&&R(window.getComputedStyle(d).zIndex)},[d]);let T=l.useCallback(e=>{e&&!0===v.current&&(S(),b?.(),v.current=!1)},[S,b]);return(0,e_.jsx)(tH,{scope:r,contentWrapper:u,shouldExpandOnScrollRef:g,onScrollButtonChange:T,children:(0,e_.jsx)("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:(0,e_.jsx)(eV.sG.div,{...o,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});tM.displayName="SelectItemAlignedPosition";var tI=l.forwardRef((e,t)=>
1{let{__scopeSelect:r,align:n="start",collisionPadding:o=10,...i}=e,l=tv(r);return(0,e_.jsx)(e9,{...l,...i,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...i.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)"}})});tI.displayName="SelectPopperPosition";var[tH,tW]=tm(tj,{}),tB="SelectViewport",tF=l.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:n,...o}=e,i=tN(tB,r),a=tW(tB,r),s=(0,f.s)(t,i.onViewportChange),c=l.useRef(0);return(0,e_.jsxs)(e_.Fragment,{children:[(0,e_.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:n}),(0,e_.jsx)(td.Slot,{scope:r,children:(0,e_.jsx)(eV.sG.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:(0,u.mK)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=a;if(n?.current&&r){let e=Math.abs(c.current-t.scrollTop);if(e>0){let n=window.innerHeight-20,o=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(o<n){let i=o+e,l=Math.min(n,i),a=i-l;r.style.height=l+"px","0px"===r.style.bottom&&(t.scrollTop=a>0?a:0,r.style.justifyContent="flex-end")}}}c.current=t.scrollTop})})})]})});tF.displayName=tB;var tV="SelectGroup",[t_,tK]=tm(tV);l.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,o=(0,v.B)();return(0,e_.jsx)(t_,{scope:r,id:o,children:(0,e_.jsx)(eV.sG.div,{role:"group","aria-labelledby":o,...n,ref:t})})}).displayName=tV;var tz="SelectLabel";l.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,o=tK(tz,r);return(0,e_.jsx)(eV.sG.div,{id:o.id,...n,ref:t})}).displayName=tz;var tG="SelectItem",[t$,tU]=tm(tG),tq=l.forwardRef((e,t)=>{let{__scopeSelect:r,value:n,disabled:o=!1,textValue:i,...a}=e,s=ty(tG,r),c=tN(tG,r),d=s.value===n,[p,h]=l.useState(i??""),[m,g]=l.useState(!1),w=(0,f.s)(t,e=>c.itemRefCallback?.(e,n,o)),y=(0,v.B)(),x=l.useRef("touch"),b=()=>{o||(s.onValueChange(n),s.onOpenChange(!1))};if(""===n)throw 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,e_.jsx)(t$,{scope:r,value:n,disabled:o,textId:y,isSelected:d,onItemTextChange:l.useCallback(e=>{h(t=>t||(e?.textContent??"").trim())},[]),children:(0,e_.jsx)(td.ItemSlot,{scope:r,value:n,disabled:o,textValue:p,children:(0,e_.jsx)(eV.sG.div,{role:"option","aria-labelledby":y,"data-highlighted":m?"":void 0,"aria-selected":d&&m,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:w,onFocus:(0,u.mK)(a.onFocus,()=>g(!0)),onBlur:(0,u.mK)(a.onBlur,()=>g(!1)),onClick:(0,u.mK)(a.onClick,()=>{"mouse"!==x.current&&b()}),onPointerUp:(0,u.mK)(a.onPointerUp,()=>{"mouse"===x.current&&b()}),onPointerDown:(0,u.mK)(a.onPointerDown,e=>{x.current=e.pointerType}),onPointerMove:(0,u.mK)(a.onPointerMove,e=>{x.current=e.pointerType,o?c.onItemLeave?.():"mouse"===x.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,u.mK)(a.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:(0,u.mK)(a.onKeyDown,e=>{(c.searchRef?.current===""||" "!==e.key)&&(tc.includes(e.key)&&b()," "===e.key&&e.preventDefault())})})})})});tq.displayName=tG;var tX="SelectItemText",tY=l.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:o,...i}=e,s=ty(tX,r),u=tN(tX,r),c=tU(tX,r),d=tb(tX,r),[p,h]=l.useState(null),m=(0,f.s)(t,e=>h(e),c.onItemTextChange,e=>u.itemTextRefCallback?.(e,c.value,c.disabled)),g=p?.textContent,v=l.useMemo(()=>(0,e_.jsx)("option",{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:w,onNativeOptionRemove:y}=d;return(0,eG.N)(()=>(w(v),()=>y(v)),[w,y,v]),(0,e_.jsxs)(e_.Fragment,{children:[(0,e_.jsx)(eV.sG.span,{id:c.textId,...i,ref:m}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?a.createPortal(i.children,s.valueNode):null]})});tY.displayName=tX;var tZ="SelectItemIndicator",tQ=l.forwardRef((e,t)=>
1{let{__scopeSelect:r,...n}=e;return tU(tZ,r).isSelected?(0,e_.jsx)(eV.sG.span,{"aria-hidden":!0,...n,ref:t}):null});tQ.displayName=tZ;var tJ="SelectScrollUpButton",t0=l.forwardRef((e,t)=>{let r=tN(tJ,e.__scopeSelect),n=tW(tJ,e.__scopeSelect),[o,i]=l.useState(!1),a=(0,f.s)(t,n.onScrollButtonChange);return(0,eG.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){i(t.scrollTop>0)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,e_.jsx)(t2,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});t0.displayName=tJ;var t1="SelectScrollDownButton",t5=l.forwardRef((e,t)=>{let r=tN(t1,e.__scopeSelect),n=tW(t1,e.__scopeSelect),[o,i]=l.useState(!1),a=(0,f.s)(t,n.onScrollButtonChange);return(0,eG.N)(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;i(Math.ceil(t.scrollTop)<e)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,e_.jsx)(t2,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});t5.displayName=t1;var t2=l.forwardRef((e,t)=>{let{__scopeSelect:r,onAutoScroll:n,...o}=e,i=tN("SelectScrollButton",r),a=l.useRef(null),s=tp(r),c=l.useCallback(()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),(0,eG.N)(()=>{let e=s().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[s]),(0,e_.jsx)(eV.sG.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,u.mK)(o.onPointerDown,()=>{null===a.current&&(a.current=window.setInterval(n,50))}),onPointerMove:(0,u.mK)(o.onPointerMove,()=>{i.onItemLeave?.(),null===a.current&&(a.current=window.setInterval(n,50))}),onPointerLeave:(0,u.mK)(o.onPointerLeave,()=>{c()})})});l.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return(0,e_.jsx)(eV.sG.div,{"aria-hidden":!0,...n,ref:t})}).displayName="SelectSeparator";var t9="SelectArrow";l.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,o=tv(r),i=ty(t9,r),l=tN(t9,r);return i.open&&"popper"===l.position?(0,e_.jsx)(e6,{...o,...n,ref:t}):null}).displayName=t9;var t4=l.forwardRef((e,t)=>{let{__scopeSelect:r,value:n,...o}=e,i=l.useRef(null),a=(0,f.s)(t,i),s=(0,ti.Z)(n);return l.useEffect(()=>{let e=i.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(s!==n&&t){let r=new Event("change",{bubbles:!0});t.call(e,n),e.dispatchEvent(r)}},[s,n]),(0,e_.jsx)(eV.sG.select,{...o,style:{...tl.Qg,...o.style},ref:a,defaultValue:n})});function t3(e){return""===e||void 0===e}function t6(e){let t=(0,ez.c)(e),r=l.useRef(""),n=l.useRef(0),o=l.useCallback(e=>{let o=r.current+e;t(o),function e(t){r.current=t,window.clearTimeout(n.current),""!==t&&(n.current=window.setTimeout(()=>e(""),1e3))}(o)},[t]),i=l.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,i]}function t7(e,t,r){var n,o;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,l=r?e.indexOf(r):-1,a=(n=e,o=Math.max(l,0),n.map((e,t)=>n[(o+t)%n.length]));1===i.length&&(a=a.filter(e=>e!==r));let s=a.find(e=>e.textValue.toLowerCase().startsWith(i.toLowerCase()));return s!==r?s:void 0}t4.displayName="SelectBubbleInput";var t8=tS,re=tR,rt=tA,rr=tE,rn=tP,ro=tL,ri=tF,rl=tq,ra=tY,rs=tQ,ru=t0,rc=t5},9921:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(90425).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},40562:(e,t,r)=>{r.d(t,{Qg:()=>l,bL:()=>s});var n=r(12115),o=r(99354),i=r(95155),l=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"}),a=n.forwardRef((e,t)=>(0,i.jsx)(o.sG.span,{...e,ref:t,style:{...l,...e.style}}));a.displayName="VisuallyHidden";var s=a},63509:(e,t,r)=>{r.d(t,{X:()=>i});var n=r(12115),o=r(66294);function i(e){let[t,r]=n.useState(void 0);return(0,o.N)(()=>
1{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,o=t.blockSize}else n=e.offsetWidth,o=e.offsetHeight;r({width:n,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}},83417:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(12115);function o(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},91760:(e,t,r)=>{r.d(t,{b:()=>s});var n=r(12115);r(47650);var o=r(42442),i=r(95155),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,o.TL)(`Primitive.${t}`),l=n.forwardRef((e,n)=>{let{asChild:o,...l}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(o?r:t,{...l,ref:n})});return l.displayName=`Primitive.${t}`,{...e,[t]:l}},{}),a=n.forwardRef((e,t)=>(0,i.jsx)(l.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));a.displayName="Label";var s=a}}]);

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.