PageSourceSearch

https://my.aheadhealth.com/_next/static/chunks/9012701cbaf88da1.js

js aheadhealth.com collected 2026-10-04 14:43:46 UTC 50,518 bytes, 6 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="216e52dc-6d24-5f3a-85d1-045b3bc82cbd")}catch(e){}}();
3(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,258950,953760,553289,e=>{"use strict";let t;e.s(["arrow",()=>eW,"flip",()=>ez,"hide",()=>eY,"limitShift",()=>ej,"offset",()=>eF,"shift",()=>eH,"size",()=>eN,"useFloating",()=>eL],258950),e.s(["arrow",()=>eP,"autoPlacement",()=>ew,"autoUpdate",()=>ep,"computePosition",()=>eD,"flip",()=>ey,"hide",()=>eb,"inline",()=>eR,"limitShift",()=>eC,"offset",()=>eg,"shift",()=>ev,"size",()=>ex],953760);let n=["top","right","bottom","left"],r=n.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),o=Math.min,i=Math.max,l=Math.round,a=Math.floor,u=e=>({x:e,y:e}),s={left:"right",right:"left",bottom:"top",top:"bottom"};function c(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function d(e){return e.split("-")[1]}function h(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function p(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function g(e,t,n){void 0===n&&(n=!1);let r=d(e),o=h(p(e)),i=m(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=P(l)),[l,P(l)]}function w(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let v=["left","right"],y=["right","left"],x=["top","bottom"],b=["bottom","top"];function P(e){let t=f(e);return s[t]+e.slice(t.length)}function R(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function C(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function D(e,t,n){let r,{reference:o,floating:i}=e,l=p(t),a=h(p(t)),u=m(a),s=f(t),c="y"===l,g=o.x+o.width/2-i.width/2,w=o.y+o.height/2-i.height/2,v=o[u]/2-i[u]/2;switch(s){case"top":r={x:g,y:o.y-i.height};break;case"bottom":r={x:g,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:w};break;case"left":r={x:o.x-i.width,y:w};break;default:r={x:o.x,y:o.y}}switch(d(t)){case"start":r[a]-=v*(n&&c?-1:1);break;case"end":r[a]+=v*(n&&c?-1:1)}return r}async function S(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:s="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:h=!1,padding:m=0}=c(t,e),p=R(m),g=a[h?"floating"===d?"reference":"floating":d],w=C(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:s,rootBoundary:f,strategy:u})),v="floating"===d?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,y=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),x=await (null==i.isElement?void 0:i.isElement(y))&&await (null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=C(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:y,strategy:u}):v);return{top:(w.top-b.top+p.top)/x.y,bottom:(b.bottom-w.bottom+p.bottom)/x.y,left:(w.left-b.left+p.left)/x.x,right:(b.right-w.right+p.right)/x.x}}let O=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:S},u=await (null==l.isRTL?void 0:l.isRTL(t)),s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=D(s,r,u),d=r,h=0,m={};for(let n=0;n<i.length;n++){let p=i[n];if(!p)continue;let{name:g,fn:w}=p,{x:v,y:y,data:x,reset:b}=await w({x:c,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:m,rects:s,platform:a,elements:{reference:e,floating:t}});c=null!=v?v:c,f=null!=y?y:f,m[g]={...m[g],...x},b&&h<50&&(h++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(s=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:c,y:f}=D(s,d,u)),n=-1)}return{x:c,y:f,placement:d,strategy:o,middlewareData:m}};function M(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function A(e){return n.some(t=>e[t]>=0)}function T(e){let t=o(...e.map(e=>e.left)),n=o(...e.map(e=>e.top));return{x:t,y:n,width:i(...e.map(e=>e.right))-t,height:i(...e.map(e=>e.bottom))-n}}let k=new Set(["left","top"]);async function E(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=f(n),a=d(n),u="y"===p(n),s=k.has(l)?-1:1,h=i&&u?-1:1,m=c(t,e),{mainAxis:g,crossAxis:w,alignmentAxis:v}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}
3:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return a&&"number"==typeof v&&(w="end"===a?-1*v:v),u?{x:w*h,y:g*s}:{x:g*s,y:w*h}}function L(){return"undefined"!=typeof window}function F(e){return z(e)?(e.nodeName||"").toLowerCase():"#document"}function H(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function j(e){var t;return null==(t=(z(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function z(e){return!!L()&&(e instanceof Node||e instanceof H(e).Node)}function N(e){return!!L()&&(e instanceof Element||e instanceof H(e).Element)}function Y(e){return!!L()&&(e instanceof HTMLElement||e instanceof H(e).HTMLElement)}function W(e){return!!L()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof H(e).ShadowRoot)}function B(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=V(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function q(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let G=/transform|translate|scale|rotate|perspective|filter/,I=/paint|layout|strict|content/,Q=e=>!!e&&"none"!==e;function _(e){let t=N(e)?V(e):e;return Q(t.transform)||Q(t.translate)||Q(t.scale)||Q(t.rotate)||Q(t.perspective)||!X()&&(Q(t.backdropFilter)||Q(t.filter))||G.test(t.willChange||"")||I.test(t.contain||"")}function X(){return null==t&&(t="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function U(e){return/^(html|body|#document)$/.test(F(e))}function V(e){return H(e).getComputedStyle(e)}function $(e){return N(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function K(e){if("html"===F(e))return e;let t=e.assignedSlot||e.parentNode||W(e)&&e.host||j(e);return W(t)?t.host:t}function Z(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=K(t);return U(n)?t.ownerDocument?t.ownerDocument.body:t.body:Y(n)&&B(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=H(o);if(!i)return t.concat(o,Z(o,[],n));{let e=J(l);return t.concat(l,l.visualViewport||[],B(o)?o:[],e&&n?Z(e):[])}}function J(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ee(e){let t=V(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=Y(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,u=l(n)!==i||l(r)!==a;return u&&(n=i,r=a),{width:n,height:r,$:u}}function et(e){return N(e)?e:e.contextElement}function en(e){let t=et(e);if(!Y(t))return u(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ee(t),a=(i?l(n.width):n.width)/r,s=(i?l(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let er=u(0);function eo(e){let t=H(e);return X()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:er}function ei(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=et(e),a=u(1);t&&(r?N(r)&&(a=en(r)):a=en(e));let s=(void 0===(o=n)&&(o=!1),r&&(!o||r===H(l))&&o)?eo(l):u(0),c=(i.left+s.x)/a.x,f=(i.top+s.y)/a.y,d=i.width/a.x,h=i.height/a.y;if(l){let e=H(l),t=r&&N(r)?H(r):r,n=e,o=J(n);for(;o&&r&&t!==n;){let e=en(o),t=o.getBoundingClientRect(),r=V(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,f*=e.y,d*=e.x,h*=e.y,c+=i,f+=l,o=J(n=H(o))}}return C({width:d,height:h,x:c,y:f})}function el(e,t){let n=$(e).scrollLeft;return t?t.left+n:ei(j(e)).left+n}function ea(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-el(e,n),y:n.top+t.scrollTop}}function eu(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=H(e),r=j(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=X();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}let s=el(r);if(s<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-o);l<=25&&(i-=l)}else s<=25&&(i+=s);return{width:i,height:l,x:a,y:u}}(e,n);else if("document"===t)r=function(e){let t=j(e),n=$(e),r=e.ownerDocument.body,o=i(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=i(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+el(e),u=-n.scrollTop;return"rtl"===V(r).direction&&(a+=i(t.clientWidth,r.clientWidth)-o),{width:o,height:l,x:a,y:u}}(j(e));else if(N(t))r=function(e,t){let n=ei(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Y(e)?en(e):u(1),l=e.clientWidth*i.x,a=e.clientHeight*i.y;return{width:l,height:a,x:o*i.x,y:r*i.y}}(t,n);else{let n=eo(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return C(r)}function es(e){return"static"===V(e).position}function ec(e,t){if(!Y(e)||"fixed"===V(e).position)return null;if(t)return t(e);let n=e.offsetParent;return j(e)===n&&(n=n.ownerDocument.body),n}function ef(e,t){var n;let r=H(e);if(q(e))return r;if(!Y(e)){let t=K(e);for(;t&&!U(t);){if(N(t)&&!es(t))return t;t=K(t)}return r}let o=ec(e,t);for(;o&&(n=o,/^(table|td|th)$/.test(F(n)))&&es(o);)o=ec(o,t);return o&&U(o)&&es(o)&&!_(o)?r:o||function(e){let t=K(e);for(;Y(t)&&!U(t);){if(_(t))return t;if(q(t))break;t=K(t)}return null}(e)||r}let ed=async function(e){let t=this.getOffsetParent||ef,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=Y(t),o=j(t),i="fixed"===n,l=ei(e,!0,i,t),a={scrollLeft:0,scrollTop:0},s=u(0);if(r||!r&&!i)if(("body"!==F(t)||B(o))&&(a=$(t)),r){let e=ei(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=el(o));i&&!r&&o&&(s.x=el(o));let c=!o||r||i?u(0):ea(o,a);return{x:l.left+a.scrollLeft-s.x-c.x,y:l.top+a.scrollTop-s.y-c.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eh={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=j(r),a=!!t&&q(t.floating);if(r===l||a&&i)return n;let s={scrollLeft:0,scrollTop:0},c=u(1),f=u(0),d=Y(r);
3if((d||!d&&!i)&&(("body"!==F(r)||B(l))&&(s=$(r)),d)){let e=ei(r);c=en(r),f.x=e.x+r.clientLeft,f.y=e.y+r.clientTop}let h=!l||d||i?u(0):ea(l,s);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+f.x+h.x,y:n.y*c.y-s.scrollTop*c.y+f.y+h.y}},getDocumentElement:j,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:l}=e,a=[..."clippingAncestors"===n?q(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=Z(e,[],!1).filter(e=>N(e)&&"body"!==F(e)),o=null,i="fixed"===V(e).position,l=i?K(e):e;for(;N(l)&&!U(l);){let t=V(l),n=_(l);n||"fixed"!==t.position||(o=null),(i?n||o:!(!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||B(l)&&!n&&function e(t,n){let r=K(t);return!(r===n||!N(r)||U(r))&&("fixed"===V(r).position||e(r,n))}(e,l)))?o=t:r=r.filter(e=>e!==l),l=K(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],u=eu(t,a[0],l),s=u.top,c=u.right,f=u.bottom,d=u.left;for(let e=1;e<a.length;e++){let n=eu(t,a[e],l);s=i(n.top,s),c=o(n.right,c),f=o(n.bottom,f),d=i(n.left,d)}return{width:c-d,height:f-s,x:d,y:s}},getOffsetParent:ef,getElementRects:ed,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ee(e);return{width:t,height:n}},getScale:en,isElement:N,isRTL:function(e){return"rtl"===V(e).direction}};function em(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ep(e,t,n,r){let l;void 0===r&&(r={});let{ancestorScroll:u=!0,ancestorResize:s=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,h=et(e),m=u||s?[...h?Z(h):[],...t?Z(t):[]]:[];m.forEach(e=>{u&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let p=h&&f?function(e,t){let n,r=null,l=j(e);function u(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function s(c,f){void 0===c&&(c=!1),void 0===f&&(f=1),u();let d=e.getBoundingClientRect(),{left:h,top:m,width:p,height:g}=d;if(c||t(),!p||!g)return;let w=a(m),v=a(l.clientWidth-(h+p)),y={rootMargin:-w+"px "+-v+"px "+-a(l.clientHeight-(m+g))+"px "+-a(h)+"px",threshold:i(0,o(1,f))||1},x=!0;function b(t){let r=t[0].intersectionRatio;if(r!==f){if(!x)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||em(d,e.getBoundingClientRect())||s(),x=!1}try{r=new IntersectionObserver(b,{...y,root:l.ownerDocument})}catch(e){r=new IntersectionObserver(b,y)}r.observe(e)}(!0),u}(h,n):null,g=-1,w=null;c&&(w=new ResizeObserver(e=>{let[r]=e;r&&r.target===h&&w&&t&&(w.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=w)||e.observe(t)})),n()}),h&&!d&&w.observe(h),t&&w.observe(t));let v=d?ei(e):null;return d&&function t(){let r=ei(e);v&&!em(v,r)&&n(),v=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{u&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==p||p(),null==(e=w)||e.disconnect(),w=null,d&&cancelAnimationFrame(l)}}let eg=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:a}=t,u=await E(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}},ew=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,i,l;let{rects:a,middlewareData:u,placement:s,platform:h,elements:m}=t,{crossAxis:p=!1,alignment:v,allowedPlacements:y=r,autoAlignment:x=!0,...b}=c(e,t),P=void 0!==v||y===r?((l=v||null)?[...y.filter(e=>d(e)===l),...y.filter(e=>d(e)!==l)]:y.filter(e=>f(e)===e)).filter(e=>!l||d(e)===l||!!x&&w(e)!==e):y,R=await h.detectOverflow(t,b),C=(null==(n=u.autoPlacement)?void 0:n.index)||0,D=P[C];if(null==D)return{};let S=g(D,a,await (null==h.isRTL?void 0:h.isRTL(m.floating)));if(s!==D)return{reset:{placement:P[0]}};let O=[R[f(D)],R[S[0]],R[S[1]]],M=[...(null==(o=u.autoPlacement)?void 0:o.overflows)||[],{placement:D,overflows:O}],A=P[C+1];if(A)return{data:{index:C+1,overflows:M},reset:{placement:A}};let T=M.map(e=>{let t=d(e.placement);return[e.placement,t&&p?e.overflows.slice(0,2).reduce((e,t)=>
3e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),k=(null==(i=T.filter(e=>e[2].slice(0,d(e[0])?2:3).every(e=>e<=0))[0])?void 0:i[0])||T[0][0];return k!==s?{data:{index:C+1,overflows:M},reset:{placement:k}}:{}}}},ev=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:l,platform:a}=t,{mainAxis:u=!0,crossAxis:s=!1,limiter:d={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...m}=c(e,t),g={x:n,y:r},w=await a.detectOverflow(t,m),v=p(f(l)),y=h(v),x=g[y],b=g[v];if(u){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=x+w[e],r=x-w[t];x=i(n,o(x,r))}if(s){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=b+w[e],r=b-w[t];b=i(n,o(b,r))}let P=d.fn({...t,[y]:x,[v]:b});return{...P,data:{x:P.x-n,y:P.y-r,enabled:{[y]:u,[v]:s}}}}}},ey=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,l;let{placement:a,middlewareData:u,rects:s,initialPlacement:h,platform:m,elements:R}=t,{mainAxis:C=!0,crossAxis:D=!0,fallbackPlacements:S,fallbackStrategy:O="bestFit",fallbackAxisSideDirection:M="none",flipAlignment:A=!0,...T}=c(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let k=f(a),E=p(h),L=f(h)===h,F=await (null==m.isRTL?void 0:m.isRTL(R.floating)),H=S||(L||!A?[P(h)]:function(e){let t=P(e);return[w(e),t,w(t)]}(h)),j="none"!==M;!S&&j&&H.push(...function(e,t,n,r){let o=d(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?y:v;return t?v:y;case"left":case"right":return t?x:b;default:return[]}}(f(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(w)))),i}(h,A,M,F));let z=[h,...H],N=await m.detectOverflow(t,T),Y=[],W=(null==(r=u.flip)?void 0:r.overflows)||[];if(C&&Y.push(N[k]),D){let e=g(a,s,F);Y.push(N[e[0]],N[e[1]])}if(W=[...W,{placement:a,overflows:Y}],!Y.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=z[e];if(t&&("alignment"!==D||E===p(t)||W.every(e=>p(e.placement)!==E||e.overflows[0]>0)))return{data:{index:e,overflows:W},reset:{placement:t}};let n=null==(i=W.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(O){case"bestFit":{let e=null==(l=W.filter(e=>{if(j){let t=p(e.placement);return t===E||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=h}if(a!==n)return{reset:{placement:n}}}return{}}}},ex=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let l,a,{placement:u,rects:s,platform:h,elements:m}=t,{apply:g=()=>{},...w}=c(e,t),v=await h.detectOverflow(t,w),y=f(u),x=d(u),b="y"===p(u),{width:P,height:R}=s.floating;"top"===y||"bottom"===y?(l=y,a=x===(await (null==h.isRTL?void 0:h.isRTL(m.floating))?"start":"end")?"left":"right"):(a=y,l="end"===x?"top":"bottom");let C=R-v.top-v.bottom,D=P-v.left-v.right,S=o(R-v[l],C),O=o(P-v[a],D),M=!t.middlewareData.shift,A=S,T=O;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(T=D),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(A=C),M&&!x){let e=i(v.left,0),t=i(v.right,0),n=i(v.top,0),r=i(v.bottom,0);b?T=P-2*(0!==e||0!==t?e+t:i(v.left,v.right)):A=R-2*(0!==n||0!==r?n+r:i(v.top,v.bottom))}await g({...t,availableWidth:T,availableHeight:A});let k=await h.getDimensions(m.floating);return P!==k.width||R!==k.height?{reset:{rects:!0}}:{}}}},eb=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=c(e,t);switch(o){case"referenceHidden":{let e=M(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:A(e)}}}case"escaped":{let e=M(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:A(e)}}}default:return{}}}}},eP=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:l,rects:a,platform:u,elements:s,middlewareData:f}=t,{element:g,padding:w=0}=c(e,t)||{};if(null==g)return{};let v=R(w),y={x:n,y:r},x=h(p(l)),b=m(x),P=await u.getDimensions(g),C="y"===x,D=C?"clientHeight":"clientWidth",S=a.reference[b]+a.reference[x]-y[x]-a.floating[b],O=y[x]-a.reference[x],M=await (null==u.getOffsetParent?void 0:u.getOffsetParent(g)),A=M?M[D]:0;A&&await (null==u.isElement?void 0:u.isElement(M))||(A=s.floating[D]||a.floating[b]);let T=A/2-P[b]/2-1,k=o(v[C?"top":"left"],T),E=o(v[C?"bottom":"right"],T),L=A-P[b]-E,F=A/2-P[b]/2+(S/2-O/2),H=i(k,o(F,L)),j=!f.arrow&&null!=d(l)&&F!==H&&a.reference[b]/2-(F<k?k:E)-P[b]/2<0,z=j?F<k?F-k:F-L:0;return{[x]:y[x]+z,data:{[x]:H,centerOffset:F-H-z,...j&&{alignmentOffset:z}},reset:j}}}),eR=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:n,elements:r,rects:l,platform:a,strategy:u}=t,{padding:s=2,x:d,y:h}=c(e,t),m=Array.from(await (null==a.getClientRects?void 0:a.getClientRects(r.reference))||[]),g=function(e){let t=e.slice().sort((e,t)=>
3e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let o=t[e];!r||o.y-r.y>r.height/2?n.push([o]):n[n.length-1].push(o),r=o}return n.map(e=>C(T(e)))}(m),w=C(T(m)),v=R(s),y=await a.getElementRects({reference:{getBoundingClientRect:function(){if(2===g.length&&g[0].left>g[1].right&&null!=d&&null!=h)return g.find(e=>d>e.left-v.left&&d<e.right+v.right&&h>e.top-v.top&&h<e.bottom+v.bottom)||w;if(g.length>=2){if("y"===p(n)){let e=g[0],t=g[g.length-1],r="top"===f(n),o=e.top,i=t.bottom,l=r?e.left:t.left,a=r?e.right:t.right;return{top:o,bottom:i,left:l,right:a,width:a-l,height:i-o,x:l,y:o}}let e="left"===f(n),t=i(...g.map(e=>e.right)),r=o(...g.map(e=>e.left)),l=g.filter(n=>e?n.left===r:n.right===t),a=l[0].top,u=l[l.length-1].bottom;return{top:a,bottom:u,left:r,right:t,width:t-r,height:u-a,x:r,y:a}}return w}},floating:r.floating,strategy:u});return l.reference.x!==y.reference.x||l.reference.y!==y.reference.y||l.reference.width!==y.reference.width||l.reference.height!==y.reference.height?{reset:{rects:y}}:{}}}},eC=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:u=!0,crossAxis:s=!0}=c(e,t),d={x:n,y:r},m=p(o),g=h(m),w=d[g],v=d[m],y=c(a,t),x="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(u){let e="y"===g?"height":"width",t=i.reference[g]-i.floating[e]+x.mainAxis,n=i.reference[g]+i.reference[e]-x.mainAxis;w<t?w=t:w>n&&(w=n)}if(s){var b,P;let e="y"===g?"width":"height",t=k.has(f(o)),n=i.reference[m]-i.floating[e]+(t&&(null==(b=l.offset)?void 0:b[m])||0)+(t?0:x.crossAxis),r=i.reference[m]+i.reference[e]+(t?0:(null==(P=l.offset)?void 0:P[m])||0)-(t?x.crossAxis:0);v<n?v=n:v>r&&(v=r)}return{[g]:w,[m]:v}}}},eD=(e,t,n)=>{let r=new Map,o={platform:eh,...n},i={...o.platform,_c:r};return O(e,t,{...o,platform:i})};var eS=e.i(271645),eO=e.i(174080),eM="undefined"!=typeof document?eS.useLayoutEffect:function(){};function eA(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eA(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!eA(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eT(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ek(e,t){let n=eT(e);return Math.round(t*n)/n}function eE(e){let t=eS.useRef(e);return eM(()=>{t.current=e}),t}function eL(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:a=!0,whileElementsMounted:u,open:s}=e,[c,f]=eS.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=eS.useState(r);eA(d,r)||h(r);let[m,p]=eS.useState(null),[g,w]=eS.useState(null),v=eS.useCallback(e=>{e!==P.current&&(P.current=e,p(e))},[]),y=eS.useCallback(e=>{e!==R.current&&(R.current=e,w(e))},[]),x=i||m,b=l||g,P=eS.useRef(null),R=eS.useRef(null),C=eS.useRef(c),D=null!=u,S=eE(u),O=eE(o),M=eE(s),A=eS.useCallback(()=>{if(!P.current||!R.current)return;let e={placement:t,strategy:n,middleware:d};O.current&&(e.platform=O.current),eD(P.current,R.current,e).then(e=>{let t={...e,isPositioned:!1!==M.current};T.current&&!eA(C.current,t)&&(C.current=t,eO.flushSync(()=>{f(t)}))})},[d,t,n,O,M]);eM(()=>{!1===s&&C.current.isPositioned&&(C.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[s]);let T=eS.useRef(!1);eM(()=>(T.current=!0,()=>{T.current=!1}),[]),eM(()=>{if(x&&(P.current=x),b&&(R.current=b),x&&b){if(S.current)return S.current(x,b,A);A()}},[x,b,A,S,D]);let k=eS.useMemo(()=>({reference:P,floating:R,setReference:v,setFloating:y}),[v,y]),E=eS.useMemo(()=>({reference:x,floating:b}),[x,b]),L=eS.useMemo(()=>{let e={position:n,left:0,top:0};if(!E.floating)return e;let t=ek(E.floating,c.x),r=ek(E.floating,c.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...eT(E.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,E.floating,c.x,c.y]);return eS.useMemo(()=>({...c,update:A,refs:k,elements:E,floatingStyles:L}),[c,A,k,E,L])}let eF=(e,t)=>{let n=eg(e);return{name:n.name,fn:n.fn,options:[e,t]}},eH=(e,t)=>{let n=ev(e);return{name:n.name,fn:n.fn,options:[e,t]}},ej=(e,t)=>({fn:eC(e).fn,options:[e,t]}),ez=(e,t)=>{let n=ey(e);return{name:n.name,fn:n.fn,options:[e,t]}},eN=(e,t)=>{let n=ex(e);return{name:n.name,fn:n.fn,options:[e,t]}},eY=(e,t)=>
3{let n=eb(e);return{name:n.name,fn:n.fn,options:[e,t]}},eW=(e,t)=>{let n=(e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eP({element:n.current,padding:r}).fn(t):{}:n?eP({element:n,padding:r}).fn(t):{}}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};e.s(["Root",()=>eI],553289);var eB=e.i(248425),eq=e.i(843476),eG=eS.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,eq.jsx)(eB.Primitive.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eq.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eG.displayName="Arrow";var eI=eG},635804,e=>{"use strict";e.s(["useSize",()=>r]);var t=e.i(271645),n=e.i(934620);function r(e){let[r,o]=t.useState(void 0);return(0,n.useLayoutEffect)(()=>{if(e){o({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,r;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,r=t.blockSize}else n=e.offsetWidth,r=e.offsetHeight;o({width:n,height:r})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}o(void 0)},[e]),r}},178761,853660,e=>{"use strict";e.s(["Anchor",()=>ew,"Arrow",()=>eP,"Close",()=>eb,"Content",()=>ex,"Portal",()=>ey,"Root",()=>eg,"Trigger",()=>ev],178761);var t=e.i(271645),n=e.i(981140),r=e.i(820783),o=e.i(30030),i=e.i(726330),l=e.i(303536),a=e.i(765491),u=e.i(610772);e.s(["Anchor",()=>j,"Arrow",()=>N,"Content",()=>z,"Root",()=>H,"createPopperScope",()=>y],853660);var s=e.i(258950),c=e.i(953760),f=e.i(553289),d=e.i(248425),h=e.i(30207),m=e.i(934620),p=e.i(635804),g=e.i(843476),w="Popper",[v,y]=(0,o.createContextScope)(w),[x,b]=v(w),P=e=>{let{__scopePopper:n,children:r}=e,[o,i]=t.useState(null);return(0,g.jsx)(x,{scope:n,anchor:o,onAnchorChange:i,children:r})};P.displayName=w;var R="PopperAnchor",C=t.forwardRef((e,n)=>{let{__scopePopper:o,virtualRef:i,...l}=e,a=b(R,o),u=t.useRef(null),s=(0,r.useComposedRefs)(n,u),c=t.useRef(null);return t.useEffect(()=>{let e=c.current;c.current=(null==i?void 0:i.current)||u.current,e!==c.current&&a.onAnchorChange(c.current)}),i?null:(0,g.jsx)(d.Primitive.div,{...l,ref:s})});C.displayName=R;var D="PopperContent",[S,O]=v(D),M=t.forwardRef((e,n)=>{var o,i,l,a,u,f,w,v;let{__scopePopper:y,side:x="bottom",sideOffset:P=0,align:R="center",alignOffset:C=0,arrowPadding:O=0,avoidCollisions:M=!0,collisionBoundary:A=[],collisionPadding:T=0,sticky:k="partial",hideWhenDetached:H=!1,updatePositionStrategy:j="optimized",onPlaced:z,...N}=e,Y=b(D,y),[W,B]=t.useState(null),q=(0,r.useComposedRefs)(n,e=>B(e)),[G,I]=t.useState(null),Q=(0,p.useSize)(G),_=null!=(w=null==Q?void 0:Q.width)?w:0,X=null!=(v=null==Q?void 0:Q.height)?v:0,U="number"==typeof T?T:{top:0,right:0,bottom:0,left:0,...T},V=Array.isArray(A)?A:[A],$=V.length>0,K={padding:U,boundary:V.filter(E),altBoundary:$},{refs:Z,floatingStyles:J,placement:ee,isPositioned:et,middlewareData:en}=(0,s.useFloating)({strategy:"fixed",placement:x+("center"!==R?"-"+R:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,c.autoUpdate)(...t,{animationFrame:"always"===j})},elements:{reference:Y.anchor},middleware:[(0,s.offset)({mainAxis:P+X,alignmentAxis:C}),M&&(0,s.shift)({mainAxis:!0,crossAxis:!1,limiter:"partial"===k?(0,s.limitShift)():void 0,...K}),M&&(0,s.flip)({...K}),(0,s.size)({...K,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),G&&(0,s.arrow)({element:G,padding:O}),L({arrowWidth:_,arrowHeight:X}),H&&(0,s.hide)({strategy:"referenceHidden",...K})]}),[er,eo]=F(ee),ei=(0,h.useCallbackRef)(z);(0,m.useLayoutEffect)(()=>{et&&(null==ei||ei())},[et,ei]);let el=null==(o=en.arrow)?void 0:o.x,ea=null==(i=en.arrow)?void 0:i.y,eu=(null==(l=en.arrow)?void 0:l.centerOffset)!==0,[es,ec]=t.useState();return(0,m.useLayoutEffect)(()=>{W&&ec(window.getComputedStyle(W).zIndex)},[W]),(0,g.jsx)("div",{ref:Z.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:et?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:es,"--radix-popper-transform-origin":[null==(a=en.transformOrigin)?void 0:a.x,null==(u=en.transformOrigin)?void 0:u.y].join(" "),...(null==(f=en.hide)?void 0:f.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,g.jsx)(S,{scope:y,placedSide:er,onArrowChange:I,arrowX:el,arrowY:ea,shouldHideArrow:eu,children:(0,g.jsx)(d.Primitive.div,{"data-side":er,"data-align":eo,...N,ref:q,style:{...N.style,animation:et?void 0:"none"}})})})});M.displayName=D;var A="PopperArrow",T={top:"bottom",right:"left",bottom:"top",left:"r
3ight"},k=t.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=O(A,n),i=T[o.placedSide];return(0,g.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,g.jsx)(f.Root,{...r,ref:t,style:{...r.style,display:"block"}})})});function E(e){return null!==e}k.displayName=A;var L=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:s}=t,c=(null==(n=s.arrow)?void 0:n.centerOffset)!==0,f=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[h,m]=F(a),p={start:"0%",center:"50%",end:"100%"}[m],g=(null!=(i=null==(r=s.arrow)?void 0:r.x)?i:0)+f/2,w=(null!=(l=null==(o=s.arrow)?void 0:o.y)?l:0)+d/2,v="",y="";return"bottom"===h?(v=c?p:"".concat(g,"px"),y="".concat(-d,"px")):"top"===h?(v=c?p:"".concat(g,"px"),y="".concat(u.floating.height+d,"px")):"right"===h?(v="".concat(-d,"px"),y=c?p:"".concat(w,"px")):"left"===h&&(v="".concat(u.floating.width+d,"px"),y=c?p:"".concat(w,"px")),{data:{x:v,y}}}});function F(e){let[t,n="center"]=e.split("-");return[t,n]}var H=P,j=C,z=M,N=k,Y=e.i(774606),W=e.i(296626),B=e.i(991918),q=e.i(369340),G=e.i(186312),I=e.i(985369),Q="Popover",[_,X]=(0,o.createContextScope)(Q,[y]),U=y(),[V,$]=_(Q),K=e=>{let{__scopePopover:n,children:r,open:o,defaultOpen:i,onOpenChange:l,modal:a=!1}=e,s=U(n),c=t.useRef(null),[f,d]=t.useState(!1),[h,m]=(0,q.useControllableState)({prop:o,defaultProp:null!=i&&i,onChange:l,caller:Q});return(0,g.jsx)(H,{...s,children:(0,g.jsx)(V,{scope:n,contentId:(0,u.useId)(),triggerRef:c,open:h,onOpenChange:m,onOpenToggle:t.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:f,onCustomAnchorAdd:t.useCallback(()=>d(!0),[]),onCustomAnchorRemove:t.useCallback(()=>d(!1),[]),modal:a,children:r})})};K.displayName=Q;var Z="PopoverAnchor",J=t.forwardRef((e,n)=>{let{__scopePopover:r,...o}=e,i=$(Z,r),l=U(r),{onCustomAnchorAdd:a,onCustomAnchorRemove:u}=i;return t.useEffect(()=>(a(),()=>u()),[a,u]),(0,g.jsx)(j,{...l,...o,ref:n})});J.displayName=Z;var ee="PopoverTrigger",et=t.forwardRef((e,t)=>{let{__scopePopover:o,...i}=e,l=$(ee,o),a=U(o),u=(0,r.useComposedRefs)(t,l.triggerRef),s=(0,g.jsx)(d.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":ep(l.open),...i,ref:u,onClick:(0,n.composeEventHandlers)(e.onClick,l.onOpenToggle)});return l.hasCustomAnchor?s:(0,g.jsx)(j,{asChild:!0,...a,children:s})});et.displayName=ee;var en="PopoverPortal",[er,eo]=_(en,{forceMount:void 0}),ei=e=>{let{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=$(en,t);return(0,g.jsx)(er,{scope:t,forceMount:n,children:(0,g.jsx)(W.Presence,{present:n||i.open,children:(0,g.jsx)(Y.Portal,{asChild:!0,container:o,children:r})})})};ei.displayName=en;var el="PopoverContent",ea=t.forwardRef((e,t)=>{let n=eo(el,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=$(el,e.__scopePopover);return(0,g.jsx)(W.Presence,{present:r||i.open,children:i.modal?(0,g.jsx)(es,{...o,ref:t}):(0,g.jsx)(ec,{...o,ref:t})})});ea.displayName=el;var eu=(0,B.createSlot)("PopoverContent.RemoveScroll"),es=t.forwardRef((e,o)=>{let i=$(el,e.__scopePopover),l=t.useRef(null),a=(0,r.useComposedRefs)(o,l),u=t.useRef(!1);return t.useEffect(()=>{let e=l.current;if(e)return(0,G.hideOthers)(e)},[]),(0,g.jsx)(I.RemoveScroll,{as:eu,allowPinchZoom:!0,children:(0,g.jsx)(ef,{...e,ref:a,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,n.composeEventHandlers)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),u.current||null==(t=i.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,n.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;u.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,n.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}
3),ec=t.forwardRef((e,n)=>{let r=$(el,e.__scopePopover),o=t.useRef(!1),i=t.useRef(!1);return(0,g.jsx)(ef,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,l;null==(n=e.onCloseAutoFocus)||n.call(e,t),t.defaultPrevented||(o.current||null==(l=r.triggerRef.current)||l.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{var n,l;null==(n=e.onInteractOutside)||n.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let a=t.target;(null==(l=r.triggerRef.current)?void 0:l.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),ef=t.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:u,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:h,...m}=e,p=$(el,n),w=U(n);return(0,l.useFocusGuards)(),(0,g.jsx)(a.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:u,children:(0,g.jsx)(i.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:h,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:d,onDismiss:()=>p.onOpenChange(!1),children:(0,g.jsx)(z,{"data-state":ep(p.open),role:"dialog",id:p.contentId,...w,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),ed="PopoverClose",eh=t.forwardRef((e,t)=>{let{__scopePopover:r,...o}=e,i=$(ed,r);return(0,g.jsx)(d.Primitive.button,{type:"button",...o,ref:t,onClick:(0,n.composeEventHandlers)(e.onClick,()=>i.onOpenChange(!1))})});eh.displayName=ed;var em=t.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=U(n);return(0,g.jsx)(N,{...o,...r,ref:t})});function ep(e){return e?"open":"closed"}em.displayName="PopoverArrow";var eg=K,ew=J,ev=et,ey=ei,ex=ea,eb=eh,eP=em},907073,(e,t,n)=>{var r=e.r(453587),o=e.r(351095);t.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,function(e,r,o){i[++n]=t(e,r,o)}),i}},641015,(e,t,n)=>{var r=e.r(361884);t.exports=function(e,t,n){for(var o=-1,i=e.length;++o<i;){var l=e[o],a=t(l);if(null!=a&&(void 0===u?a==a&&!r(a):n(a,u)))var u=a,s=l}return s}},580957,(e,t,n)=>{t.exports=function(e,t){return e>t}},419530,(e,t,n)=>{var r=e.r(641015),o=e.r(580957),i=e.r(666305);t.exports=function(e,t){return e&&e.length?r(e,i(t,2),o):void 0}},945919,511048,521416,854307,e=>{"use strict";e.s(["format",()=>z,"formatDate",()=>z],945919);var t=e.i(452709),n=e.i(534048);let r={date:(0,n.buildFormatLongFn)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,n.buildFormatLongFn)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,n.buildFormatLongFn)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var o=e.i(609099),i=e.i(149857),l=e.i(459839);let a={code:"en-US",formatDistance:t.formatDistance,formatLong:r,formatRelative:o.formatRelative,localize:i.localize,match:l.match,options:{weekStartsOn:0,firstWeekContainsDate:1}};e.s(["getDefaultOptions",()=>s],511048);let u={};function s(){return u}e.s(["differenceInCalendarDays",()=>h],521416);var c=e.i(435684);function f(e){let t=(0,c.toDate)(e);return t.setHours(0,0,0,0),t}function d(e){let t=(0,c.toDate)(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-n}function h(e,t){let n=f(e),r=f(t);return Math.round((n-d(n)-(r-d(r)))/864e5)}function m(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function p(e,t){var n,r,o,i,l,a,s,f;let d=null!=(f=null!=(s=null!=(a=null!=(l=null==t?void 0:t.weekStartsOn)?l:null==t||null==(r=t.locale)||null==(n=r.options)?void 0:n.weekStartsOn)?a:u.weekStartsOn)?s:null==(i=u.locale)||null==(o=i.options)?void 0:o.weekStartsOn)?f:0,h=(0,c.toDate)(e),m=h.getDay();return h.setDate(h.getDate()-(7*(m<d)+m-d)),h.setHours(0,0,0,0),h}function g(e){return p(e,{weekStartsOn:1}
3)}function w(e){let t=(0,c.toDate)(e),n=t.getFullYear(),r=m(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);let o=g(r),i=m(e,0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);let l=g(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}function v(e,t){var n,r,o,i,l,a,s,f;let d=(0,c.toDate)(e),h=d.getFullYear(),g=null!=(f=null!=(s=null!=(a=null!=(l=null==t?void 0:t.firstWeekContainsDate)?l:null==t||null==(r=t.locale)||null==(n=r.options)?void 0:n.firstWeekContainsDate)?a:u.firstWeekContainsDate)?s:null==(i=u.locale)||null==(o=i.options)?void 0:o.firstWeekContainsDate)?f:1,w=m(e,0);w.setFullYear(h+1,0,g),w.setHours(0,0,0,0);let v=p(w,t),y=m(e,0);y.setFullYear(h,0,g),y.setHours(0,0,0,0);let x=p(y,t);return d.getTime()>=v.getTime()?h+1:d.getTime()>=x.getTime()?h:h-1}function y(e,t){let n=Math.abs(e).toString().padStart(t,"0");return(e<0?"-":"")+n}e.s(["startOfISOWeek",()=>g],854307);let x={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return y("yy"===t?r%100:r,t.length)},M(e,t){let n=e.getMonth();return"M"===t?String(n+1):y(n+1,2)},d:(e,t)=>y(e.getDate(),t.length),a(e,t){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>y(e.getHours()%12||12,t.length),H:(e,t)=>y(e.getHours(),t.length),m:(e,t)=>y(e.getMinutes(),t.length),s:(e,t)=>y(e.getSeconds(),t.length),S(e,t){let n=t.length;return y(Math.trunc(e.getMilliseconds()*Math.pow(10,n-3)),t.length)}},b={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},P={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){let t=e.getFullYear();return n.ordinalNumber(t>0?t:1-t,{unit:"year"})}return x.y(e,t)},Y:function(e,t,n,r){let o=v(e,r),i=o>0?o:1-o;return"YY"===t?y(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):y(i,t.length)},R:function(e,t){return y(w(e),t.length)},u:function(e,t){return y(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return y(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return y(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){let r=e.getMonth();switch(t){case"M":case"MM":return x.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){let r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return y(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){let o=function(e,t){let n=(0,c.toDate)(e);return Math.round((p(n,t)-function(e,t){var n,r,o,i,l,a,s,c;let f=null!=(c=null!=(s=null!=(a=null!=(l=null==t?void 0:t.firstWeekContainsDate)?l:null==t||null==(r=t.locale)||null==(n=r.options)?void 0:n.firstWeekContainsDate)?a:u.firstWeekContainsDate)?s:null==(i=u.locale)||null==(o=i.options)?void 0:o.firstWeekContainsDate)?c:1,d=v(e,t),h=m(e,0);return h.setFullYear(d,0,f),h.setHours(0,0,0,0),p(h,t)}(n,t))/6048e5)+1}(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):y(o,t.length)},I:function(e,t,n){let r=function(e){let t=(0,c.toDate)(e);return Math.round((g(t)-function(e){let t=w(e),n=m(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),g(n)}(t))/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):y(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):x.d(e,t)},D:function(e,t,n){let r=function(e){let t=(0,c.toDate)(e);return h(t,function(e){let t=(0,c.toDate)(e),n=m(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}(t))+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):y(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){let o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return y(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){let o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return y(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){let r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return y(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){let r,o=e.getHours();switch(r=12===o?b.noon:0===o?b.midnight:o/12>
3=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){let r,o=e.getHours();switch(r=o>=17?b.evening:o>=12?b.afternoon:o>=4?b.morning:b.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return x.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):x.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):y(r,t.length)},k:function(e,t,n){let r=e.getHours();return(0===r&&(r=24),"ko"===t)?n.ordinalNumber(r,{unit:"hour"}):y(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):x.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):x.s(e,t)},S:function(e,t){return x.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return C(r);case"XXXX":case"XX":return D(r);default:return D(r,":")}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"x":return C(r);case"xxxx":case"xx":return D(r);default:return D(r,":")}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+R(r,":");default:return"GMT"+D(r,":")}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+R(r,":");default:return"GMT"+D(r,":")}},t:function(e,t,n){return y(Math.trunc(e.getTime()/1e3),t.length)},T:function(e,t,n){return y(e.getTime(),t.length)}};function R(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return 0===i?n+String(o):n+String(o)+t+y(i,2)}function C(e,t){return e%60==0?(e>0?"-":"+")+y(Math.abs(e)/60,2):D(e,t)}function D(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Math.abs(e);return(e>0?"-":"+")+y(Math.trunc(n/60),2)+t+y(n%60,2)}let S=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},O=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},M={p:O,P:(e,t)=>{let n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return S(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",S(o,t)).replace("{{time}}",O(i,t))}},A=/^D+$/,T=/^Y+$/,k=["D","DD","YY","YYYY"],E=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,L=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,F=/^'([^]*?)'?$/,H=/''/g,j=/[a-zA-Z]/;function z(e,t,n){var r,o,i,l,s,f,d,h,m,p,g,w,v,y,x,b,R,C;let D=null!=(p=null!=(m=null==n?void 0:n.locale)?m:u.locale)?p:a,S=null!=(y=null!=(v=null!=(w=null!=(g=null==n?void 0:n.firstWeekContainsDate)?g:null==n||null==(o=n.locale)||null==(r=o.options)?void 0:r.firstWeekContainsDate)?w:u.firstWeekContainsDate)?v:null==(l=u.locale)||null==(i=l.options)?void 0:i.firstWeekContainsDate)?y:1,O=null!=(C=null!=(R=null!=(b=null!=(x=null==n?void 0:n.weekStartsOn)?x:null==n||null==(f=n.locale)||null==(s=f.options)?void 0:s.weekStartsOn)?b:u.weekStartsOn)?R:null==(h=u.locale)||null==(d=h.options)?void 0:d.weekStartsOn)?C:0,z=(0,c.toDate)(e);if(!((z instanceof Date||"object"==typeof z&&"[object Date]"===Object.prototype.toString.call(z)||"number"==typeof z)&&!isNaN(Number((0,c.toDate)(z)))))throw RangeError("Invalid time value");let N=t.match(L).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,M[t])(e,D.formatLong):e}).join("").match(E).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t)return{isToken:!1,value:function(e){let t=e.match(F);return t?t[1].replace(H,"'"):e}(e)};if(P[t])return{isToken:!0,value:e};
3if(t.match(j))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});D.localize.preprocessor&&(N=D.localize.preprocessor(z,N));let Y={firstWeekContainsDate:S,weekStartsOn:O,locale:D};return N.map(r=>{if(!r.isToken)return r.value;let o=r.value;return(!(null==n?void 0:n.useAdditionalWeekYearTokens)&&T.test(o)||!(null==n?void 0:n.useAdditionalDayOfYearTokens)&&A.test(o))&&function(e,t,n){let r=function(e,t,n){let r="Y"===e[0]?"years":"days of the month";return"Use `".concat(e.toLowerCase(),"` instead of `").concat(e,"` (in `").concat(t,"`) for formatting ").concat(r," to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")}(e,t,n);if(console.warn(r),k.includes(e))throw RangeError(r)}(o,t,String(e)),(0,P[o[0]])(z,o,D.localize,Y)}).join("")}}]);
4
5//# sourceMappingURL=8384fe8f9e017ee4.js.map
6//# debugId=216e52dc-6d24-5f3a-85d1-045b3bc82cbd

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.