vendor: 10,901 bytes, lines 1-41
1import{s as e}from"./rolldown-runtime-BcKkbAw3.js";import{_ as t,g as n}from"./react-vendor-BriIVOc-.js";import{a as r,o as i,s as a,t as o}from"./tslib.es6--gc0a04Q.js";var s=e(t());a();var c=`right-scroll-bar-position`,l=`width-before-scroll-bar`,u=`with-scroll-bars-hidden`,d=`--removed-body-scroll-bar-size`;function f(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function p(e,t){var n=(0,s.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var m=typeof window<`u`?s.useLayoutEffect:s.useEffect,h=new WeakMap;function g(e,t){var n=p(t||null,function(t){return e.forEach(function(e){return f(e,t)})});return m(function(){var t=h.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||f(e,null)}),i.forEach(function(e){r.has(e)||f(e,a)})}h.set(n,e)},[e]),n}function _(e){return e}function v(e,t){t===void 0&&(t=_);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function y(e){e===void 0&&(e={});var t=v(null);return t.options=o({async:!0,ssr:!1},e),t}a();var b=function(e){var t=e.sideCar,n=r(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw Error(`Sidecar medium not found`);return s.createElement(i,o({},n))};b.isSideCarExport=!0;function x(e,t){return e.useMedium(t),b}var S=y();a();var C=function(){},w=s.forwardRef(function(e,t){var n=s.useRef(null),i=s.useState({onScrollCapture:C,onWheelCapture:C,onTouchMoveCapture:C}),a=i[0],c=i[1],l=e.forwardProps,u=e.children,d=e.className,f=e.removeScrollBar,p=e.enabled,m=e.shards,h=e.sideCar,_=e.noRelative,v=e.noIsolation,y=e.inert,b=e.allowPinchZoom,x=e.as,w=x===void 0?`div`:x,T=e.gapMode,ee=r(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),E=h,D=g([n,t]),O=o(o({},ee),a);return s.createElement(s.Fragment,null,p&&s.createElement(E,{sideCar:S,removeScrollBar:f,shards:m,noRelative:_,noIsolation:v,inert:y,setCallbacks:c,allowPinchZoom:!!b,lockRef:n,gapMode:T}),l?s.cloneElement(s.Children.only(u),o(o({},O),{ref:D})):s.createElement(w,o({},O,{className:d,ref:D}),u))});w.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},w.classNames={fullWidth:l,zeroRight:c};var T=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function ee(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=T();return t&&e.setAttribute(`nonce`,t),e}function E(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function D(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var O=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ee())&&(E(t,n),D(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},k=function(){var e=O();return function(t,n){s.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},A=function(){var e=k();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},j={left:0,top:0,right:0,gap:0},M=function(e){return parseInt(e||``,10)||0},te=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[M(n),M(r),M(i)]},ne=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return j;var t=te(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},re=A(),ie=`data-scroll-locked`,ae=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),` 2 .${u} { 3 overflow: hidden ${r}; 4 padding-right: ${s}px ${r}; 5 } 6 body[${ie}] { 7 overflow: hidden ${r}; 8 overscroll-behavior: contain; 9 ${[t&&`position: relative ${r};`,n===`margin`&&` 10 padding-left: ${i}px; 11 padding-top: ${a}px; 12 padding-right: ${o}px; 13 margin-left:0; 14 margin-top:0; 15 margin-right: ${s}px ${r}; 16 `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)} 17 } 18 19 .${c} { 20 right: ${s}px ${r}; 21 } 22 23 .${l} { 24 margin-right: ${s}px ${r}; 25 } 26 27 .${c} .${c} { 28 right: 0 ${r}; 29 } 30 31 .${l} .${l} { 32 margin-right: 0 ${r}; 33 } 34 35 body[${ie}] { 36 ${d}: ${s}px; 37 } 38`},oe=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},se=function(){s.useEffect(function(){return document.body.setAttribute(ie,(oe()+1).toString()),function(){var e=oe()-1;e<=0?document.body.removeAttribute(ie):document.body.setAttribute(ie,e.toString())}},[])},ce=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;se();var a=s.useMemo(function(){return ne(i)},[i]);return s.createElement(re,{styles:ae(a,!t,i,n?``:`!important`)})},le=!1;if(typeof window<`u`)try{var ue=Object.defineProperty({},"passive",{get:function(){return le=!0,!0}});window.addEventListener(`test`,ue,ue),window.removeEventListener(`test`,ue,ue)}catch{le=!1}var N=le?{passive:!1}:!1,de=function(e){return e.tagName===`TEXTAREA`},fe=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!de(e)&&n[t]===`visible`)},pe=function(e){return fe(e,`overflowY`)},me=function(e){return fe(e,`overflowX`)},he=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),ve(e,r)){var i=ye(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ge=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},_e=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},ve=function(e,t){return e===`v`?pe(t):me(t)},ye=function(e,t){return e===`v`?ge(t):_e(t)},be=function(e,t){return e===`h`&&t===`rtl`?-1:1},xe=function(e,t,n,r,i){var a=be(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=ye(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&ve(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l};a();var Se=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ce=function(e){return[e.deltaX,e.deltaY]},we=function(e){return e&&`current`in e?e.current:e},Te=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ee=function(e){return` 39 .block-interactivity-${e} {pointer-events: none;} 40 .allow-interactivity-${e} {pointer-events: all;} 41`},De=0,P=[];function Oe(e){var t=s.useRef([]),n=s.useRef([0,0]),r=s.useRef(),a=s.useState(De++)[0],o=s.useState(A)[0],c=s.useRef(e);s.useEffect(function(){c.current=e},[e]),s.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${a}`);var t=i([e.lockRef.current],(e.shards||[]).map(we),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${a}`)}),function(){document.body.classList.remove(`block-interactivity-${a}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${a}`)})}}},[e.inert,e.lockRef.current,e.shards]);var l=s.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!c.current.allowPinchZoom;var i=Se(e),a=n.current,o=`deltaX`in e?e.deltaX:a[0]-i[0],s=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(o)>Math.abs(s)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=he(d,u);if(!f)return!0;if(f?l=d:(l=d===`v`?`h`:`v`,f=he(d,u)),!f)return!1;if(!r.current&&`changedTouches`in e&&(o||s)&&(r.current=l),!l)return!0;var p=r.current||l;return xe(p,t,e,p===`h`?o:s,!0)},[]),u=s.useCallback(function(e){var n=e;if(!(!P.length||P[P.length-1]!==o)){var r=`deltaY`in n?Ce(n):Se(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Te(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var a=(c.current.shards||[]).map(we).filter(Boolean).filter(function(e){return e.contains(n.target)});(a.length>0?l(n,a[0]):!c.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),d=s.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:ke(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),f=s.useCallback(function(e){n.current=Se(e),r.current=void 0},[]),p=s.useCallback(function(t){d(t.type,Ce(t),t.target,l(t,e.lockRef.current))},[]),m=s.useCallback(function(t){d(t.type,Se(t),t.target,l(t,e.lockRef.current))},[]);s.useEffect(function(){return P.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener(`wheel`,u,N),document.addEventListener(`touchmove`,u,N),document.addEventListener(`touchstart`,f,N),function(){P=P.filter(function(e){return e!==o}),document.removeEventListener(`wheel`,u,N),document.removeEventListener(`touchmove`,u,N),document.removeEventListener(`touchstart`,f,N)}},[]);var h=e.removeScrollBar,g=e.inert;return s.createElement(s.Fragment,null,g?s.createElement(o,{styles:Ee(a)}):null,h?s.createElement(ce,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ke(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Ae=x(S,Oe);a();var je=s.forwardRef(function(e,t){return s.createElement(w,o({},e,{ref:t,sideCar:Ae}))});je.classNames=w.classNames;var Me=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},F=new WeakMap,Ne=new WeakMap,Pe={},Fe=0,Ie=function(e){return e&&(e.host||Ie(e.parentNode))},Le=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Ie(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Re=function(e,t,n,r){var i=Le(t,Array.isArray(e)?e:[e]);Pe[n]||(Pe[n]=new WeakMap);var a=Pe[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};
vendor: 4,126 bytes, line 41
41i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(F.get(e)||0)+1,l=(a.get(e)||0)+1;F.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Ne.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Fe++,function(){o.forEach(function(e){var t=F.get(e)-1,i=a.get(e)-1;F.set(e,t),a.set(e,i),t||(Ne.has(e)||e.removeAttribute(r),Ne.delete(e)),i||e.removeAttribute(n)}),Fe--,Fe||(F=new WeakMap,F=new WeakMap,Ne=new WeakMap,Pe={})}},ze=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Me(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Re(r,i,n,`aria-hidden`)):function(){return null}},Be=[`top`,`right`,`bottom`,`left`],I=Math.min,L=Math.max,Ve=Math.round,He=Math.floor,R=e=>({x:e,y:e}),Ue={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function We(e,t,n){return L(e,I(t,n))}function z(e,t){return typeof e==`function`?e(t):e}function B(e){return e.split(`-`)[0]}function V(e){return e.split(`-`)[1]}function Ge(e){return e===`x`?`y`:`x`}function Ke(e){return e===`y`?`height`:`width`}function H(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function qe(e){return Ge(H(e))}function Je(e,t,n){n===void 0&&(n=!1);let r=V(e),i=qe(e),a=Ke(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=rt(o)),[o,rt(o)]}function Ye(e){let t=rt(e);return[Xe(e),t,Xe(t)]}function Xe(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Ze=[`left`,`right`],Qe=[`right`,`left`],$e=[`top`,`bottom`],et=[`bottom`,`top`];function tt(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Qe:Ze:t?Ze:Qe;case`left`:case`right`:return t?$e:et;default:return[]}}function nt(e,t,n,r){let i=V(e),a=tt(B(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Xe)))),a}function rt(e){let t=B(e);return Ue[t]+e.slice(t.length)}function it(e){return{top:0,right:0,bottom:0,left:0,...e}}function at(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:it(e)}function ot(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function st(e,t,n){let{reference:r,floating:i}=e,a=H(t),o=qe(t),s=Ke(o),c=B(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(V(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1)}return p}async function ct(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=z(t,e),p=at(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=ot(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=ot(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var lt=50,ut=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:ct},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}
vendor: 8,184 bytes, line 41
41),{x:u,y:d}=st(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<lt&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=st(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},dt=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=z(e,t)||{};if(l==null)return{};let d=at(u),f={x:n,y:r},p=qe(i),m=Ke(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,ee=I(d[_],T),E=I(d[v],T),D=ee,O=C-h[m]-E,k=C/2-h[m]/2+w,A=We(D,k,O),j=!c.arrow&&V(i)!=null&&k!==A&&a.reference[m]/2-(k<D?ee:E)-h[m]/2<0,M=j?k<D?k-D:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),ft=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=z(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=B(r),_=H(o),v=B(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[rt(o)]:Ye(o)),x=p!==`none`;!d&&x&&b.push(...nt(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Je(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===H(t)||T.every(e=>H(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=H(e.placement);return t===_||t===`y`}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]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function pt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function mt(e){return Be.some(t=>e[t]>=0)}var ht=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=z(e,t);switch(i){case`referenceHidden`:{let e=pt(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:mt(e)}}}case`escaped`:{let e=pt(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:mt(e)}}}default:return{}}}}},gt=new Set([`left`,`top`]);async function _t(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=B(n),s=V(n),c=H(n)===`y`,l=gt.has(o)?-1:1,u=a&&c?-1:1,d=z(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var vt=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await _t(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},yt=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=z(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=H(B(i)),p=Ge(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=We(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=We(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},bt=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=z(e,t),u={x:n,y:r},d=H(i),f=Ge(d),p=u[f],m=u[d],h=z(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=gt.has(B(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},xt=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=z(e,t),u=await o.detectOverflow(t,l),d=B(i),f=V(i),p=H(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=I(h-u[g],v),x=I(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=L(u.left,0),t=L(u.right,0),n=L(u.top,0),r=L(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:L(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:L(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function St(){return typeof window<`u`}function U(e){return Ct(e)?(e.nodeName||``).toLowerCase():`#document`}function W(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function G(e){return((Ct(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Ct(e){return St()?e instanceof Node||e instanceof W(e).Node:!1}function K(e){return St()?e instanceof Element||e instanceof W(e).Element:!1}function q(e){return St()?e instanceof HTMLElement||e instanceof W(e).HTMLElement:!1}function wt(e){return!St()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof W(e).ShadowRoot}function J(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Z(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Tt(e){return/^(table|td|th)$/.test(U(e))}function Et(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Dt=/transform|translate|scale|rotate|perspective|filter/,Ot=/paint|layout|strict|content/,Y=e=>!!e&&e!==`none`,kt;function At(e){let t=K(e)?Z(e):e;return Y(t.transform)||Y(t.translate)||Y(t.scale)||Y(t.rotate)||Y(t.perspective)||!Mt()&&(Y(t.backdropFilter)||Y(t.filter))||Dt.test(t.willChange||``)||Ot.test(t.contain||``)}function jt(e){let t=Q(e);for(;q(t)&&!X(t);){if(At(t))return t;if(Et(t))return null;t=Q(t)}return null}function Mt(){return kt??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),kt}function X(e){return/^(html|body|#document)$/.test(U(e))}function Z(e){return W(e).getComputedStyle(e)}function Nt(e){return K(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Q(e){if(U(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||wt(e)&&e.host||G(e);return wt(t)?t.host:t}function Pt(e){let t=Q(e);return X(t)?e.ownerDocument?e.ownerDocument.body:e.body:q(t)&&J(t)?t:Pt(t)}function Ft(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Pt(e),i=r===e.ownerDocument?.body,a=W(r);if(i){let e=It(a);
vendor: 6,400 bytes, line 41
41return t.concat(a,a.visualViewport||[],J(r)?r:[],e&&n?Ft(e):[])}return t.concat(r,Ft(r,[],n))}function It(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Lt(e){let t=Z(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=q(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Ve(n)!==a||Ve(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Rt(e){return K(e)?e:e.contextElement}function zt(e){let t=Rt(e);if(!q(t))return R(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Lt(t),o=(a?Ve(n.width):n.width)/r,s=(a?Ve(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Bt=R(0);function Vt(e){let t=W(e);return!Mt()||!t.visualViewport?Bt:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ht(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==W(e)?!1:t}function $(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Rt(e),o=R(1);t&&(r?K(r)&&(o=zt(r)):o=zt(e));let s=Ht(a,n,r)?Vt(a):R(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=W(a),t=r&&K(r)?W(r):r,n=e,i=It(n);for(;i&&r&&t!==n;){let e=zt(i),t=i.getBoundingClientRect(),r=Z(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=W(i),i=It(n)}}return ot({width:u,height:d,x:c,y:l})}function Ut(e,t){let n=Nt(e).scrollLeft;return t?t.left+n:$(G(e)).left+n}function Wt(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ut(e,n),y:n.top+t.scrollTop}}function Gt(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=G(r),s=t?Et(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=R(1),u=R(0),d=q(r);if((d||!d&&!a)&&((U(r)!==`body`||J(o))&&(c=Nt(r)),d)){let e=$(r);l=zt(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Wt(o,c):R(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Kt(e){return Array.from(e.getClientRects())}function qt(e){let t=G(e),n=Nt(e),r=e.ownerDocument.body,i=L(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=L(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Ut(e),s=-n.scrollTop;return Z(r).direction===`rtl`&&(o+=L(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Jt=25;function Yt(e,t){let n=W(e),r=G(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Mt();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Ut(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Jt&&(a-=o)}else l<=Jt&&(a+=l);return{width:a,height:o,x:s,y:c}}function Xt(e,t){let n=$(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=q(e)?zt(e):R(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Zt(e,t,n){let r;if(t===`viewport`)r=Yt(e,n);else if(t===`document`)r=qt(G(e));else if(K(t))r=Xt(t,n);else{let n=Vt(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ot(r)}function Qt(e,t){let n=Q(e);return n===t||!K(n)||X(n)?!1:Z(n).position===`fixed`||Qt(n,t)}function $t(e,t){let n=t.get(e);if(n)return n;let r=Ft(e,[],!1).filter(e=>K(e)&&U(e)!==`body`),i=null,a=Z(e).position===`fixed`,o=a?Q(e):e;for(;K(o)&&!X(o);){let t=Z(o),n=At(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||J(o)&&!n&&Qt(e,o))?r=r.filter(e=>e!==o):i=t,o=Q(o)}return t.set(e,r),r}function en(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Et(t)?[]:$t(t,this._c):[].concat(n),r],o=Zt(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Zt(t,a[e],i);s=L(n.top,s),c=I(n.right,c),l=I(n.bottom,l),u=L(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function tn(e){let{width:t,height:n}=Lt(e);return{width:t,height:n}}function nn(e,t,n){let r=q(t),i=G(t),a=n===`fixed`,o=$(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=R(0);function l(){c.x=Ut(i)}if(r||!r&&!a){if((U(t)!==`body`||J(i))&&(s=Nt(t)),r){let e=$(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l()}a&&!r&&i&&l();let u=i&&!r&&!a?Wt(i,s):R(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function rn(e){return Z(e).position===`static`}function an(e,t){if(!q(e)||Z(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return G(e)===n&&(n=n.ownerDocument.body),n}function on(e,t){let n=W(e);if(Et(e))return n;if(!q(e)){let t=Q(e);for(;t&&!X(t);){if(K(t)&&!rn(t))return t;t=Q(t)}return n}let r=an(e,t);for(;r&&Tt(r)&&rn(r);)r=an(r,t);return r&&X(r)&&rn(r)&&!At(r)?n:r||jt(e)||n}var sn=async function(e){let t=this.getOffsetParent||on,n=this.getDimensions,r=await n(e.floating);return{reference:nn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function cn(e){return Z(e).direction===`rtl`}var ln={convertOffsetParentRelativeRectToViewportRelativeRect:Gt,getDocumentElement:G,getClippingRect:en,getOffsetParent:on,getElementRects:sn,getClientRects:Kt,getDimensions:tn,getScale:zt,isElement:K,isRTL:cn};function un(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function dn(e,t){let n=null,r,i=G(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=He(d),h=He(i.clientWidth-(u+f)),g=He(i.clientHeight-(d+p)),_=He(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:L(0,I(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!un(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function fn(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Rt(e),u=i||a?[...l?Ft(l):[],...t?Ft(t):[]]:[];
vendor: 4,267 bytes, line 41
41u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?dn(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?$(e):null;c&&g();function g(){let t=$(e);h&&!un(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var pn=vt,mn=yt,hn=ft,gn=xt,_n=ht,vn=dt,yn=bt,bn=(e,t,n)=>{let r=new Map,i={platform:ln,...n},a={...i.platform,_c:r};return ut(e,t,{...i,platform:a})},xn=e(n(),1),Sn=typeof document<`u`?s.useLayoutEffect:function(){};function Cn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Cn(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Cn(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function wn(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Tn(e,t){let n=wn(e);return Math.round(t*n)/n}function En(e){let t=s.useRef(e);return Sn(()=>{t.current=e}),t}function Dn(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:c=!0,whileElementsMounted:l,open:u}=e,[d,f]=s.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=s.useState(r);Cn(p,r)||m(r);let[h,g]=s.useState(null),[_,v]=s.useState(null),y=s.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),b=s.useCallback(e=>{e!==w.current&&(w.current=e,v(e))},[]),x=a||h,S=o||_,C=s.useRef(null),w=s.useRef(null),T=s.useRef(d),ee=l!=null,E=En(l),D=En(i),O=En(u),k=s.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:p};D.current&&(e.platform=D.current),bn(C.current,w.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!Cn(T.current,t)&&(T.current=t,xn.flushSync(()=>{f(t)}))})},[p,t,n,D,O]);Sn(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);let A=s.useRef(!1);Sn(()=>(A.current=!0,()=>{A.current=!1}),[]),Sn(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(E.current)return E.current(x,S,k);k()}},[x,S,k,E,ee]);let j=s.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),M=s.useMemo(()=>({reference:x,floating:S}),[x,S]),te=s.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=Tn(M.floating,d.x),r=Tn(M.floating,d.y);return c?{...e,transform:`translate(`+t+`px, `+r+`px)`,...wn(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,c,M.floating,d.x,d.y]);return s.useMemo(()=>({...d,update:k,refs:j,elements:M,floatingStyles:te}),[d,k,j,M,te])}var On=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:vn({element:r.current,padding:i}).fn(n):r?vn({element:r,padding:i}).fn(n):{}}}},kn=(e,t)=>{let n=pn(e);return{name:n.name,fn:n.fn,options:[e,t]}},An=(e,t)=>{let n=mn(e);return{name:n.name,fn:n.fn,options:[e,t]}},jn=(e,t)=>({fn:yn(e).fn,options:[e,t]}),Mn=(e,t)=>{let n=hn(e);return{name:n.name,fn:n.fn,options:[e,t]}},Nn=(e,t)=>{let n=gn(e);return{name:n.name,fn:n.fn,options:[e,t]}},Pn=(e,t)=>{let n=_n(e);return{name:n.name,fn:n.fn,options:[e,t]}},Fn=(e,t)=>{let n=On(e);return{name:n.name,fn:n.fn,options:[e,t]}};export{R as A,x as B,J as C,ut as D,Mt as E,Ve as F,g as H,ze as I,je as L,L as M,I as N,ft as O,ot as P,ce as R,X as S,Et as T,l as U,y as V,c as W,Q as _,kn as a,K as b,Dn as c,jt as d,G as f,Ft as g,Nt as h,jn as i,He as j,vt as k,fn as l,U as m,Mn as n,An as o,It as p,Pn as r,Nn as s,Fn as t,Z as u,W as v,Tt as w,q as x,At as y,A as z};
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.