PageSourceSearch

https://www.hbs.edu/_next/static/chunks/1291-d7d07264fef51b43.js

js hbs.edu collected 2026-10-01 07:59:08 UTC 32,132 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1291],{11291:(e,t,n)=>{n.d(t,{Mz:()=>G,UC:()=>Y,ZL:()=>X,bL:()=>I,bm:()=>q,i3:()=>U,l9:()=>K});var r=n(55729),o=n(25269),i=n(40041),l=n(99829),a=n(20814),f=n(74249),s=n(41679),u=n(67913),c=n(20609),d=n(61486),p=n(78749),h=n(19639),g=n(97628),m=n(57640),v=n(20184),w=n(1713),x=n(6029),y=Object.defineProperty,b=(e,t)=>y(e,"name",{value:t,configurable:!0}),A="Popover",[P,R]=(0,l.A)(A,[c.Bk]),C=(0,c.Bk)(),[O,S]=P(A),E=b(e=>{let{__scopePopover:t,children:n,open:o,defaultOpen:i,onOpenChange:l,modal:a=!1}=e,f=C(t),s=r.useRef(null),[d,p]=r.useState(!1),[h,g]=(0,m.i)({prop:o,defaultProp:i??!1,onChange:l,caller:A});return(0,x.jsx)(c.bL,{...f,children:(0,x.jsx)(O,{scope:t,contentId:(0,u.B)(),triggerRef:s,open:h,onOpenChange:g,onOpenToggle:r.useCallback(()=>g(e=>!e),[g]),hasCustomAnchor:d,onCustomAnchorAdd:r.useCallback(()=>p(!0),[]),onCustomAnchorRemove:r.useCallback(()=>p(!1),[]),modal:a,children:n})})},"Popover"),L=r.forwardRef(b(function(e,t){let{__scopePopover:n,...o}=e,i=S("PopoverAnchor",n),l=C(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:f}=i;return r.useEffect(()=>(a(),()=>f()),[a,f]),(0,x.jsx)(c.Mz,{...l,...o,ref:t})},"PopoverAnchor")),j=r.forwardRef(b(function(e,t){let{__scopePopover:n,...r}=e,l=S("PopoverTrigger",n),a=C(n),f=(0,i.s)(t,l.triggerRef),s=(0,x.jsx)(h.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":V(l.open),...r,ref:f,onClick:(0,o.mK)(e.onClick,l.onOpenToggle)});return l.hasCustomAnchor?s:(0,x.jsx)(c.Mz,{asChild:!0,...a,children:s})},"PopoverTrigger")),T="PopoverPortal",[k,F]=P(T,{forceMount:void 0}),D=b(e=>{let{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=S(T,t);return(0,x.jsx)(k,{scope:t,forceMount:n,children:(0,x.jsx)(p.C,{present:n||i.open,children:(0,x.jsx)(d.Z,{asChild:!0,container:o,children:r})})})},"PopoverPortal"),M="PopoverContent",H=r.forwardRef(b(function(e,t){let n=F(M,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=S(M,e.__scopePopover);return(0,x.jsx)(p.C,{present:r||i.open,children:i.modal?(0,x.jsx)(W,{...o,ref:t}):(0,x.jsx)(_,{...o,ref:t})})},"PopoverContent")),z=(0,g.TL)("PopoverContent.RemoveScroll"),W=r.forwardRef(b(function(e,t){let n=S(M,e.__scopePopover),l=r.useRef(null),a=(0,i.s)(t,l),f=r.useRef(!1);return r.useEffect(()=>{let e=l.current;
1if(e)return(0,v.Eq)(e)},[]),(0,x.jsx)(w.A,{as:z,allowPinchZoom:!0,children:(0,x.jsx)($,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.mK)(e.onCloseAutoFocus,e=>{e.preventDefault(),f.current||n.triggerRef.current?.focus()}),onPointerDownOutside:(0,o.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;f.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,o.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),_=r.forwardRef(b(function(e,t){let n=S(M,e.__scopePopover),o=r.useRef(!1),i=r.useRef(!1);return(0,x.jsx)($,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||n.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let r=t.target;n.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})},"PopoverContentNonModal")),$=r.forwardRef(b(function(e,t){let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:h,...g}=e,m=S(M,n),v=C(n);return(0,f.Oh)(),(0,x.jsx)(s.n,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,x.jsx)(a.qW,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:h,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:p,onDismiss:()=>m.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,x.jsx)(c.UC,{"data-state":V(m.open),role:"dialog",id:m.contentId,...v,...g,ref:t,style:{...g.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)"}})})})},"PopoverContentImpl")),B=r.forwardRef(b(function(e,t){let{__scopePopover:n,...r}=e,i=S("PopoverClose",n);return(0,x.jsx)(h.sG.button,{type:"button",...r,ref:t,onClick:(0,o.mK)(e.onClick,()=>i.onOpenChange(!1))})},"PopoverClose")),N=r.forwardRef(b(function(e,t){let{__scopePopover:n,...r}=e,o=C(n);return(0,x.jsx)(c.i3,{...o,...r,ref:t})},"PopoverArrow"));function V(e){return e?"open":"closed"}b(V,"getState");var I=E,G=L,K=j,X=D,Y=H,q=B,U=N},20609:(e,t,n)=>{let r;n.d(t,{Mz:()=>eU,i3:()=>eJ,UC:()=>eZ,bL:()=>eq,Bk:()=>eM});var o=n(55729);let i=["top","right","bottom","left"],l=Math.min,a=Math.max,f=Math.round,s=Math.floor,u=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"};function d(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function g(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function v(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function w(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let x=["left","right"],y=["right","left"],b=["top","bottom"],A=["bottom","top"];function P(e){let t=p(e);return c[t]+e.slice(t.length)}function R(e){var t,n,r,o;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(o=e.left)?o:0}:{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 O(e,t,n){let r,{reference:o,floating:i}=e,l=v(t),a=g(v(t)),f=m(a),s=p(t),u=o.x+o.width/2-i.width/2,c=o.y+o.height/2-i.height/2,d=o[f]/2-i[f]/2;switch(s){case"top":r={x:u,y:o.y-i.height};break;case"bottom":r={x:u,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:c};break;case"left":r={x:o.x-i.width,y:c};break;default:r={x:o.x,y:o.y}}let w=h(t);return w&&(r[a]+=d*("end"===w?1:-1)*(n&&"y"===l?-1:1)),r}async function S(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:f}=e,{boundary:s="clippingAncestors",rootBoundary:u="viewport",elementContext:c="floating",altBoundary:p=!1,padding:h=0}=d(t,e),g=R(h),m=a[p?"floating"===c?"reference":"floating":c],v=C(await i.getClippingRect
1({element:null==(n=await (null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:s,rootBoundary:u,strategy:f})),w="floating"===c?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,x=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),y=await (null==i.isElement?void 0:i.isElement(x))&&await (null==i.getScale?void 0:i.getScale(x))||{x:1,y:1},b=C(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:x,strategy:f}):w);return{top:(v.top-b.top+g.top)/y.y,bottom:(b.bottom-v.bottom+g.bottom)/y.y,left:(v.left-b.left+g.left)/y.x,right:(b.right-v.right+g.right)/y.x}}let E=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:S},f=await (null==l.isRTL?void 0:l.isRTL(t)),s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:c}=O(s,r,f),d=r,p=0,h={};for(let n=0;n<i.length;n++){let g=i[n];if(!g)continue;let{name:m,fn:v}=g,{x:w,y:x,data:y,reset:b}=await v({x:u,y:c,initialPlacement:r,placement:d,strategy:o,middlewareData:h,rects:s,platform:a,elements:{reference:e,floating:t}});u=null!=w?w:u,c=null!=x?x:c,h[m]={...h[m],...y},b&&p<50&&(p++,"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:u,y:c}=O(s,d,f)),n=-1)}return{x:u,y:c,placement:d,strategy:o,middlewareData:h}};function L(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function j(e){return i.some(t=>e[t]>=0)}let T=new Set(["left","top"]);async function k(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=p(n),a=h(n),f="y"===v(n),s=T.has(l)?-1:1,u=i&&f?-1:1,c=d(t,e),{mainAxis:g,crossAxis:m,alignmentAxis:w}="number"==typeof c?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return a&&"number"==typeof w&&(m="end"===a?-1*w:w),f?{x:m*u,y:g*s}:{x:g*s,y:m*u}}function F(){return"undefined"!=typeof window}function D(e){return z(e)?(e.nodeName||"").toLowerCase():"#document"}function M(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function H(e){var t;return null==(t=(z(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function z(e){return!!F()&&(e instanceof Node||e instanceof M(e).Node)}function W(e){return!!F()&&(e instanceof Element||e instanceof M(e).Element)}function _(e){return!!F()&&(e instanceof HTMLElement||e instanceof M(e).HTMLElement)}function $(e){return!!F()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof M(e).ShadowRoot)}function B(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=q(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function N(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let V=/transform|translate|scale|rotate|perspective|filter/,I=/paint|layout|strict|content/,G=e=>!!e&&"none"!==e;function K(e){let t=W(e)?q(e):e;return G(t.transform)||G(t.translate)||G(t.scale)||G(t.rotate)||G(t.perspective)||!X()&&(G(t.backdropFilter)||G(t.filter))||V.test(t.willChange||"")||I.test(t.contain||"")}function X(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function Y(e){return/^(html|body|#document)$/.test(D(e))}function q(e){return M(e).getComputedStyle(e)}function U(e){return W(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Z(e){if("html"===D(e))return e;let t=e.assignedSlot||e.parentNode||$(e)&&e.host||H(e);return $(t)?t.host:t}function J(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=Z(t);return Y(n)?(t.ownerDocument||t).body:_(n)&&B(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=M(o);if(!i)return t.concat(o,J(o,[],n));{let e=Q(l);
1return t.concat(l,l.visualViewport||[],B(o)?o:[],e&&n?J(e):[])}}function Q(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ee(e){let t=q(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=_(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=f(n)!==i||f(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function et(e){return W(e)?e:e.contextElement}function en(e){let t=et(e);if(!_(t))return u(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ee(t),l=(i?f(n.width):n.width)/r,a=(i?f(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let er=u(0);function eo(e){let t=M(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?W(r)&&(a=en(r)):a=en(e));let f=(void 0===(o=n)&&(o=!1),r&&o&&r===M(l))?eo(l):u(0),s=(i.left+f.x)/a.x,c=(i.top+f.y)/a.y,d=i.width/a.x,p=i.height/a.y;if(l&&r){let e=M(l),t=W(r)?M(r):r,n=e,o=Q(n);for(;o&&t!==n;){let e=en(o),t=o.getBoundingClientRect(),r=q(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,d*=e.x,p*=e.y,s+=i,c+=l,o=Q(n=M(o))}}return C({width:d,height:p,x:s,y:c})}function el(e,t){let n=U(e).scrollLeft;return t?t.left+n:ei(H(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 ef(e,t,n){let r;if("viewport"===t||"layoutViewport"===t)r=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,o=M(e),i=H(e),l=o.visualViewport,a=i.clientWidth,f=i.clientHeight,s=0,u=0;if(l){let e=!X()||"fixed"===t;r?e||(s=-l.offsetLeft,u=-l.offsetTop):(a=l.width,f=l.height,e&&(s=l.offsetLeft,u=l.offsetTop))}if(0>=el(i)){let e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-r),l="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;l<=25&&(a-=l)}return{width:a,height:f,x:s,y:u}}(e,n,t);else if("document"===t)r=function(e){let t=U(e),n=e.ownerDocument.body,r=a(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=a(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),i=-t.scrollLeft+el(e),l=-t.scrollTop;return"rtl"===q(n).direction&&(i+=a(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:i,y:l}}(H(e));else if(W(t))r=function(e,t){let n=ei(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=en(e),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"===q(e).position}function eu(e,t){if(!_(e)||"fixed"===q(e).position)return null;if(t)return t(e);let n=e.offsetParent;return H(e)===n&&(n=n.ownerDocument.body),n}function ec(e,t){var n;let r=M(e);if(N(e))return r;if(!_(e)){let t=Z(e);for(;t&&!Y(t);){if(W(t)&&!es(t))return t;t=Z(t)}return r}let o=eu(e,t);for(;o&&(n=o,/^(table|td|th)$/.test(D(n)))&&es(o);)o=eu(o,t);return o&&Y(o)&&es(o)&&!K(o)?r:o||function(e){let t=Z(e);for(;_(t)&&!Y(t);){if(K(t))return t;if(N(t))break;t=Z(t)}return null}(e)||r}let ed=async function(e){let t=this.getOffsetParent||ec,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=_(t),o=H(t),i="fixed"===n,l=ei(e,!0,i,t),a={scrollLeft:0,scrollTop:0},f=u(0);if((r||!i)&&(("body"!==D(t)||B(o))&&(a=U(t)),r)){let e=ei(t,!0,i,t);f.x=e.x+t.clientLeft,f.y=e.y+t.clientTop}!r&&o&&(f.x=el(o));let s=!o||r||i?u(0):ea(o,a);return{x:l.left+a.scrollLeft-f.x-s.x,y:l.top+a.scrollTop-f.y-s.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}}},ep={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=H(r),a=!!t&&N(t.floating);if(r===l||a&&i)return n;let f={scrollLeft:0,scrollTop:0},s=u(1),c=u(0),d=_(r);
1if((d||!i)&&(("body"!==D(r)||B(l))&&(f=U(r)),d)){let e=ei(r);s=en(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let p=!l||d||i?u(0):ea(l,f);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-f.scrollLeft*s.x+c.x+p.x,y:n.y*s.y-f.scrollTop*s.y+c.y+p.y}},getDocumentElement:H,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?N(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=J(e,[],!1).filter(e=>W(e)&&"body"!==D(e)),o=null,i="fixed"===q(e).position,l=i?Z(e):e;for(;W(l)&&!Y(l);){let e=q(l),t=K(l),n=o?o.position:i?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?o=e:r=r.filter(e=>e!==l),l=Z(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],f=ef(t,i[0],o),s=f.top,u=f.right,c=f.bottom,d=f.left;for(let e=1;e<i.length;e++){let n=ef(t,i[e],o);s=a(n.top,s),u=l(n.right,u),c=l(n.bottom,c),d=a(n.left,d)}return{width:u-d,height:c-s,x:d,y:s}},getOffsetParent:ec,getElementRects:ed,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=ee(e);return{width:t,height:n}},getScale:en,isElement:W,isRTL:function(e){return"rtl"===q(e).direction}};function eh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eg=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:f,elements:s,middlewareData:u}=t,{element:c,padding:p=0}=d(e,t)||{};if(null==c)return{};let w=R(p),x={x:n,y:r},y=g(v(o)),b=m(y),A=await f.getDimensions(c),P="y"===y,C=P?"clientHeight":"clientWidth",O=i.reference[b]+i.reference[y]-x[y]-i.floating[b],S=x[y]-i.reference[y],E=await (null==f.getOffsetParent?void 0:f.getOffsetParent(c)),L=E?E[C]:0;L&&await (null==f.isElement?void 0:f.isElement(E))||(L=s.floating[C]||i.floating[b]);let j=L/2-A[b]/2-1,T=l(w[P?"top":"left"],j),k=l(w[P?"bottom":"right"],j),F=L-A[b]-k,D=L/2-A[b]/2+(O/2-S/2),M=a(T,l(D,F)),H=!u.arrow&&null!=h(o)&&D!==M&&i.reference[b]/2-(D<T?T:k)-A[b]/2<0,z=H?D<T?D-T:D-F:0;return{[y]:x[y]+z,data:{[y]:M,centerOffset:D-M-z,...H&&{alignmentOffset:z}},reset:H}}});var em=n(56760),ev="undefined"!=typeof document?o.useLayoutEffect:function(){};function ew(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(!ew(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)&&!ew(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ex(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ey(e,t){let n=ex(e);return Math.round(t*n)/n}function eb(e){let t=o.useRef(e);return ev(()=>{t.current=e}),t}var eA=n(19639),eP=n(6029),eR=Object.defineProperty,eC=o.forwardRef(eR(function(e,t){let{children:n,width:r=10,height:o=5,...i}=e;return(0,eP.jsx)(eA.sG.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eP.jsx)("polygon",{points:"0,0 30,0 15,10"})})},"name",{value:"Arrow",configurable:!0})),eO=n(40041),eS=n(99829),eE=n(9613),eL=n(35896),ej=n(24347),eT=Object.defineProperty,ek=(e,t)=>eT(e,"name",{value:t,configurable:!0}),eF="Popper",[eD,eM]=(0,eS.A)(eF),[eH,ez]=eD(eF),eW=ek(e=>{let{__scopePopper:t,children:n}=e,[r,i]=o.useState(null),[l,a]=o.useState(void 0);return(0,eP.jsx)(eH,{scope:t,anchor:r,onAnchorChange:i,placementState:l,setPlacementState:a,children:n})},"Popper"),e_=o.forwardRef(ek(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,l=ez("PopperAnchor",n),a=o.useRef(null),f=l.onAnchorChange,s=o.useCallback(e=>{a.current=e,e&&f(e)},[f]),u=(0,eO.s)(t,s),c=o.useRef(null);o.useEffect(()=>{if(!r)return;let e=c.current;c.current=r.current,e!==c.current&&f(c.current)});let d=l.placementState&&eY(l.placementState),p=d?.[0],h=d?.[1];return r?null:(0,eP.jsx)(eA.sG.div,{"data-radix-popper-side":p,"data-radix-popper-align":h,...i,ref:u})},"PopperAnchor")),e$="PopperContent",[eB,eN]=eD(e$),eV=o.forwardRef(ek(function(e,t){var n,r;let{__scopePopper:i,side:f="bottom",sideOffset:u=0,align:c="center",alignOffset:R=0,arrowPadding:C=0,avoidCollisions:O=!0,collisionBoundary:S=[],collisionPadding:F=0,sticky:D="partial",hideWhenDetached:z=!1,updatePositionStrategy:W="optimized",onPlaced:_,...$}=e,B=ez(e$,i),[N,V]=o.useState(null),I=(0,eO.s)(t,V),[G,K]=o.useState(null),X=(0,ej.X)(G),Y=X?.width??0,q=X?.height??0,U="number"==typeof F?F:{top:0,right:0,bottom:0,left:0,...F},Z=Array.isArray(S)?S:[S],Q=Z.length>0,ee={padding:U,boundary:Z.filter(eK),altBoundary:Q},{refs:en,floatingStyles:er,placement:eo,isPositioned:el,middlewareData:ea}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:a}={},transform:f=!0,whileElementsMounted:s,open:u}
1=e,[c,d]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=o.useState(r);ew(p,r)||h(r);let[g,m]=o.useState(null),[v,w]=o.useState(null),x=o.useCallback(e=>{e!==P.current&&(P.current=e,m(e))},[]),y=o.useCallback(e=>{e!==R.current&&(R.current=e,w(e))},[]),b=l||g,A=a||v,P=o.useRef(null),R=o.useRef(null),C=o.useRef(c),O=null!=s,S=eb(s),L=eb(i),j=eb(u),T=o.useCallback(()=>{if(!P.current||!R.current)return;let e={placement:t,strategy:n,middleware:p};L.current&&(e.platform=L.current),((e,t,n)=>{let r=new Map,o=null!=n?n:{},i={...ep,...o.platform,_c:r};return E(e,t,{...o,platform:i})})(P.current,R.current,e).then(e=>{let t={...e,isPositioned:!1!==j.current};k.current&&!ew(C.current,t)&&(C.current=t,em.flushSync(()=>{d(t)}))})},[p,t,n,L,j]);ev(()=>{!1===u&&C.current.isPositioned&&(C.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let k=o.useRef(!1);ev(()=>(k.current=!0,()=>{k.current=!1}),[]),ev(()=>{if(b&&(P.current=b),A&&(R.current=A),b&&A){if(S.current)return S.current(b,A,T);T()}},[b,A,T,S,O]);let F=o.useMemo(()=>({reference:P,floating:R,setReference:x,setFloating:y}),[x,y]),D=o.useMemo(()=>({reference:b,floating:A}),[b,A]),M=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=ey(D.floating,c.x),r=ey(D.floating,c.y);return f?{...e,transform:"translate("+t+"px, "+r+"px)",...ex(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,f,D.floating,c.x,c.y]);return o.useMemo(()=>({...c,update:T,refs:F,elements:D,floatingStyles:M}),[c,T,F,D,M])}({strategy:"fixed",placement:f+("center"!==c?"-"+c:""),whileElementsMounted:ek((...e)=>(function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:f=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,p=et(e),h=i||f?[...p?J(p):[],...t?J(t):[]]:[];h.forEach(e=>{i&&e.addEventListener("scroll",n),f&&e.addEventListener("resize",n)});let g=p&&c?function(e,t,n){let r,o=null,i=H(e);function f(){var e;clearTimeout(r),null==(e=o)||e.disconnect(),o=null}function u(n,c){void 0===n&&(n=!1),void 0===c&&(c=1),f();let d=e.getBoundingClientRect(),{left:p,top:h,width:g,height:m}=d;if(n||t(),!g||!m)return;let v=s(h),w=s(i.clientWidth-(p+g)),x={rootMargin:-v+"px "+-w+"px "+-s(i.clientHeight-(h+m))+"px "+-s(p)+"px",threshold:a(0,l(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!eh(d,e.getBoundingClientRect()))return u();if(n!==c){if(!y)return u();n?u(!1,n):r=setTimeout(()=>{u(!1,1e-7)},1e3)}y=!1}try{o=new IntersectionObserver(b,{...x,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(b,x)}o.observe(e)}let c=M(e),d=()=>u(n);return c.addEventListener("resize",d),u(!0),()=>{c.removeEventListener("resize",d),f()}}(p,n,f):null,m=-1,v=null;u&&(v=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&v&&t&&(v.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),n()}),p&&!d&&v.observe(p),t&&v.observe(t));let w=d?ei(e):null;return d&&function t(){let r=ei(e);w&&!eh(w,r)&&n(),w=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach(e=>{i&&e.removeEventListener("scroll",n),f&&e.removeEventListener("resize",n)}),null==g||g(),null==(e=v)||e.disconnect(),v=null,d&&cancelAnimationFrame(o)}})(...e,{animationFrame:"always"===W}),"whileElementsMounted"),elements:{reference:B.anchor},middleware:[((e,t)=>{var n;let r=(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:o,y:i,placement:l,middlewareData:a}=e,f=await k(e,n);return l===(null==(t=a.offset)?void 0:t.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+f.x,y:i+f.y,data:{...f,placement:l}}}});return{name:r.name,fn:r.fn,options:[e,void 0]}})({mainAxis:u+q,alignmentAxis:R}),O&&((e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:o,platform:i}=e,{mainAxis:f=!0,crossAxis:s=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=d(n,e),p={x:t,y:r},h=await i.detectOverflow(e,c),m=v(o),w=g(m),x=p[w],y=p[m],b=(e,t)=>a(t+h["y"===e?"top":"left"],l(t,t-h["y"===e?"bottom":"right"]));f&&(x=b(w,x)),s&&(y=b(m,y));let A=u.fn({...e,[w]:x,[m]:y});return{...A,data:{x:A.x-t,y:A.y-r,enabled:{[w]:f,[m]:s}}}}});return{name:r.name,fn:r.fn,options:[e,void 0]}})({mainAxis:!0,crossAxis:!1,limiter:"partial"===D?{fn:(r=void 0,r={},{options:r,fn(e){var t,n,o,i;let{x:l,y:a,placement:f,rects:s,middlewareData:u}=e,{offset:c=0,mainAxis:h=!0,crossAxis:m=!0}=d(r,e),w={x:l,y:a},x=v(f),y=g(x),b=w[y],A=w[x],P=d(c,e),R="number"==typeof P?{mainAxis:P,crossAxis:0}:{mainAxis:null!=(t=P.mainAxis)?t:0,crossAxis:null!=(n=P.crossAxis)?n:0};if(h){let e="y"===y?"height":"width",t=s.reference[y]-s.floating[e]+R.mainAxis,n=s.reference[y]+s.reference[e]-R.mainAxis;b<t?b=t:b>n&&(b=n)}if(m){let e="y"===y?"width":"height",t=T.has(p(f)),n=s.reference[x]-s.floating[e]+(t&&(null==(o=u.offset)?void 0:o[x])||0)+(t?0:R.crossAxis),r=s.reference[x]+s.reference[e]+(t?0:(null==(i=u.offset)?void 0:i[x])||0)-(t?R.crossAxis:0);A<n?A=n:A>r&&(A=r)}return{[y]:b,[x]:A}}}).fn,options:[n,void 0]}:void 0,...ee}),O&&((e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,o,i,l;
1let{placement:a,middlewareData:f,rects:s,initialPlacement:u,platform:c,elements:R}=e,{mainAxis:C=!0,crossAxis:O=!0,fallbackPlacements:S,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:L="none",flipAlignment:j=!0,...T}=d(n,e);if(null!=(t=f.arrow)&&t.alignmentOffset)return{};let k=p(a),F=v(u),D=p(u)===u,M=await (null==c.isRTL?void 0:c.isRTL(R.floating)),H=S||(D||!j?[P(u)]:function(e){let t=P(e);return[w(e),t,w(t)]}(u)),z="none"!==L;!S&&z&&H.push(...function(e,t,n,r){let o=h(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?y:x;return t?x:y;case"left":case"right":return t?b:A;default:return[]}}(p(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(w)))),i}(u,j,L,M));let W=[u,...H],_=await c.detectOverflow(e,T),$=[],B=(null==(r=f.flip)?void 0:r.overflows)||[];if(C&&$.push(_[k]),O){let e=function(e,t,n){void 0===n&&(n=!1);let r=h(e),o=g(v(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)]}(a,s,M);$.push(_[e[0]],_[e[1]])}if(B=[...B,{placement:a,overflows:$}],!$.every(e=>e<=0)){let e=((null==(o=f.flip)?void 0:o.index)||0)+1,t=W[e];if(t&&("alignment"!==O||F===v(t)||B.every(e=>v(e.placement)!==F||e.overflows[0]>0)))return{data:{index:e,overflows:B},reset:{placement:t}};let n=null==(i=B.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(E){case"bestFit":{let e=null==(l=B.filter(e=>{if(z){let t=v(e.placement);return t===F||"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=u}if(a!==n)return{reset:{placement:n}}}return{}}});return{name:r.name,fn:r.fn,options:[e,void 0]}})({...ee}),((e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){let t,r,{placement:o,rects:i,platform:f,elements:s}=e,{apply:u=()=>{},...c}=d(n,e),g=await f.detectOverflow(e,c),m=p(o),w=h(o),x="y"===v(o),{width:y,height:b}=i.floating;"top"===m||"bottom"===m?(t=m,r=w===(await (null==f.isRTL?void 0:f.isRTL(s.floating))?"start":"end")?"left":"right"):(r=m,t="end"===w?"top":"bottom");let A=b-g.top-g.bottom,P=y-g.left-g.right,R=l(b-g[t],A),C=l(y-g[r],P),O=e.middlewareData.shift,S=!O,E=R,L=C;null!=O&&O.enabled.x&&(L=P),null!=O&&O.enabled.y&&(E=A),S&&!w&&(x?L=y-2*a(g.left,g.right):E=b-2*a(g.top,g.bottom)),await u({...e,availableWidth:L,availableHeight:E});let j=await f.getDimensions(s.floating);return y!==j.width||b!==j.height?{reset:{rects:!0}}:{}}});return{name:r.name,fn:r.fn,options:[e,void 0]}})({...ee,apply:ek(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:i}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${r}px`),l.setProperty("--radix-popper-anchor-width",`${o}px`),l.setProperty("--radix-popper-anchor-height",`${i}px`)},"apply")}),G&&((e,t)=>{let n,r={name:"arrow",options:n=e,fn(e){let{element:t,padding:r}="function"==typeof n?n(e):n;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?eg({element:t.current,padding:r}).fn(e):{}:t?eg({element:t,padding:r}).fn(e):{}}};return{name:r.name,fn:r.fn,options:[e,void 0]}})({element:G,padding:C}),eX({arrowWidth:Y,arrowHeight:q}),z&&((e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t,platform:r}=e,{strategy:o="referenceHidden",...i}=d(n,e);switch(o){case"referenceHidden":{let n=L(await r.detectOverflow(e,{...i,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:j(n)}}}case"escaped":{let n=L(await r.detectOverflow(e,{...i,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:j(n)}}}default:return{}}}});return{name:r.name,fn:r.fn,options:[e,void 0]}})({strategy:"referenceHidden",...ee,boundary:Q?ee.boundary:void 0})]}),ef=B.setPlacementState;(0,eL.N)(()=>(ef(eo),()=>{ef(void 0)}),[eo,ef]);let[es,eu]=eY(eo),ec=(0,eE.c)(_);(0,eL.N)(()=>{el&&ec?.()},[el,ec]);let ed=ea.arrow?.x,eR=ea.arrow?.y,eC=ea.arrow?.centerOffset!==0,[eS,eT]=o.useState();return(0,eL.N)(()=>{N&&eT(window.getComputedStyle(N).zIndex)},[N]),(0,eP.jsx)("div",{ref:en.setFloating,"data-radix-popper-content-wrapper":"",style:{...er,transform:el?er.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eS,"--radix-popper-transform-origin":[ea.transformOrigin?.x,ea.transformOrigin?.y].join(" "),...ea.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eP.jsx)(eB,{scope:i,placedSide:es,placedAlign:eu,onArrowChange:K,arrowX:ed,arrowY:eR,shouldHideArrow:eC,children:(0,eP.jsx)(eA.sG.div,{"data-side":es,"data-align":eu,...$,ref:I,style:{...$.style,animation:el?$.style?.animation:"none"}})})})},"PopperContent")),eI={top:"bottom",right:"left",bottom:"top",left:"r
1ight"},eG=o.forwardRef(ek(function(e,t){let{__scopePopper:n,...r}=e,o=eN("PopperArrow",n),i=eI[o.placedSide];return(0,eP.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,eP.jsx)(eC,{...r,ref:t,style:{...r.style,display:"block"}})})},"PopperArrow"));function eK(e){return null!==e}ek(eK,"isNotNull");var eX=ek(e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[f,s]=eY(n),u={start:"0%",center:"50%",end:"100%"}[s],c=(o.arrow?.x??0)+l/2,d=(o.arrow?.y??0)+a/2,p="",h="";return"bottom"===f?(p=i?u:`${c}px`,h=`${-a}px`):"top"===f?(p=i?u:`${c}px`,h=`${r.floating.height+a}px`):"right"===f?(p=`${-a}px`,h=i?u:`${d}px`):"left"===f&&(p=`${r.floating.width+a}px`,h=i?u:`${d}px`),{data:{x:p,y:h}}}}),"transformOrigin");function eY(e){let[t,n="center"]=e.split("-");return[t,n]}ek(eY,"getSideAndAlignFromPlacement");var eq=eW,eU=e_,eZ=eV,eJ=eG},24347:(e,t,n)=>{n.d(t,{X:()=>i});var r=n(55729),o=n(35896);function i(e){let[t,n]=r.useState(void 0);return(0,o.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,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;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(0,Object.defineProperty)(i,"name",{value:"useSize",configurable:!0})}}]);
2//# sourceMappingURL=1291-d7d07264fef51b43.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.