vendor: 4,150 bytes, line 1
1import{r as c,j as x,f as Oe,k as he,l as xe}from"./main-DjpDVKU1.js";import{c as Le,u as ee}from"./index-Bo5GXCU4.js";function V(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function Zt(e,t){const n=c.createContext(t),r=i=>{const{children:s,...a}=i,v=c.useMemo(()=>a,Object.values(a));return x.jsx(n.Provider,{value:v,children:s})};r.displayName=e+"Provider";function o(i){const s=c.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function qt(e,t=[]){let n=[];function r(i,s){const a=c.createContext(s),v=n.length;n=[...n,s];const l=f=>{const{scope:h,children:y,...w}=f,u=h?.[e]?.[v]||a,m=c.useMemo(()=>w,Object.values(w));return x.jsx(u.Provider,{value:m,children:y})};l.displayName=i+"Provider";function d(f,h){const y=h?.[e]?.[v]||a,w=c.useContext(y);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[l,d]}const o=()=>{const i=n.map(s=>c.createContext(s));return function(a){const v=a?.[e]||i;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:v}}),[a,v])}};return o.scopeName=e,[r,Te(o,...t)]}function Te(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:v,scopeName:l})=>{const f=v(i)[`__scope${l}`];return{...a,...f}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Ae(e){const t=De(e),n=c.forwardRef((r,o)=>{const{children:i,...s}=r,a=c.Children.toArray(i),v=a.find(ke);if(v){const l=v.props.children,d=a.map(f=>f===v?c.Children.count(l)>1?c.Children.only(null):c.isValidElement(l)?l.props.children:null:f);return x.jsx(t,{...s,ref:o,children:c.isValidElement(l)?c.cloneElement(l,void 0,d):null})}return x.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function De(e){const t=c.forwardRef((n,r)=>{const{children:o,...i}=n;if(c.isValidElement(o)){const s=Ie(o),a=Fe(i,o.props);return o.type!==c.Fragment&&(a.ref=r?Le(r,s):s),c.cloneElement(o,a)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ne=Symbol("radix.slottable");function ke(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ne}function Fe(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const v=i(...a);return o(...a),v}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Ie(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Me=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],U=Me.reduce((e,t)=>{const n=Ae(`Primitive.${t}`),r=c.forwardRef((o,i)=>{const{asChild:s,...a}=o,v=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(v,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function We(e,t){e&&Oe.flushSync(()=>e.dispatchEvent(t))}function F(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>t.current?.(...n),[])}function Be(e,t=globalThis?.document){const n=F(e);c.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var _e="DismissableLayer",Q="dismissableLayer.update",je="dismissableLayer.pointerDownOutside",Ue="dismissableLayer.focusOutside",ne,me=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),He=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...v}=e,l=c.useContext(me),[d,f]=c.useState(null),h=d?.ownerDocument??globalThis?.document,[,y]=c.useState({}),w=ee(t,E=>
vendor: 11,210 bytes, line 1
1f(E)),u=Array.from(l.layers),[m]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),p=u.indexOf(m),g=d?u.indexOf(d):-1,b=l.layersWithOutsidePointerEventsDisabled.size>0,S=g>=p,C=Ke(E=>{const O=E.target,k=[...l.branches].some($=>$.contains(O));!S||k||(o?.(E),s?.(E),E.defaultPrevented||a?.())},h),R=Xe(E=>{const O=E.target;[...l.branches].some($=>$.contains(O))||(i?.(E),s?.(E),E.defaultPrevented||a?.())},h);return Be(E=>{g===l.layers.size-1&&(r?.(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},h),c.useEffect(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(ne=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),re(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=ne)}},[d,h,n,l]),c.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),re())},[d,l]),c.useEffect(()=>{const E=()=>y({});return document.addEventListener(Q,E),()=>document.removeEventListener(Q,E)},[]),x.jsx(U.div,{...v,ref:w,style:{pointerEvents:b?S?"auto":"none":void 0,...e.style},onFocusCapture:V(e.onFocusCapture,R.onFocusCapture),onBlurCapture:V(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:V(e.onPointerDownCapture,C.onPointerDownCapture)})});He.displayName=_e;var $e="DismissableLayerBranch",Ve=c.forwardRef((e,t)=>{const n=c.useContext(me),r=c.useRef(null),o=ee(t,r);return c.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),x.jsx(U.div,{...e,ref:o})});Ve.displayName=$e;function Ke(e,t=globalThis?.document){const n=F(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let v=function(){pe(je,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=v,t.addEventListener("click",o.current,{once:!0})):v()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Xe(e,t=globalThis?.document){const n=F(e),r=c.useRef(!1);return c.useEffect(()=>{const o=i=>{i.target&&!r.current&&pe(Ue,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function re(){const e=new CustomEvent(Q);document.dispatchEvent(e)}function pe(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?We(o,i):o.dispatchEvent(i)}var K=0;function Qt(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??oe()),document.body.insertAdjacentElement("beforeend",e[1]??oe()),K++,()=>{K===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),K--}},[])}function oe(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var X="focusScope.autoFocusOnMount",Y="focusScope.autoFocusOnUnmount",ae={bubbles:!1,cancelable:!0},Ye="FocusScope",ze=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,v]=c.useState(null),l=F(o),d=F(i),f=c.useRef(null),h=ee(t,u=>v(u)),y=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let u=function(b){if(y.paused||!a)return;const S=b.target;a.contains(S)?f.current=S:L(f.current,{select:!0})},m=function(b){if(y.paused||!a)return;const S=b.relatedTarget;S!==null&&(a.contains(S)||L(f.current,{select:!0}))},p=function(b){if(document.activeElement===document.body)for(const C of b)C.removedNodes.length>0&&L(a)};document.addEventListener("focusin",u),document.addEventListener("focusout",m);const g=new MutationObserver(p);return a&&g.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",m),g.disconnect()}}},[r,a,y.paused]),c.useEffect(()=>{if(a){ie.add(y);const u=document.activeElement;if(!a.contains(u)){const p=new CustomEvent(X,ae);a.addEventListener(X,l),a.dispatchEvent(p),p.defaultPrevented||(Ge(et(ye(a)),{select:!0}),document.activeElement===u&&L(a))}return()=>{a.removeEventListener(X,l),setTimeout(()=>{const p=new CustomEvent(Y,ae);a.addEventListener(Y,d),a.dispatchEvent(p),p.defaultPrevented||L(u??document.body,{select:!0}),a.removeEventListener(Y,d),ie.remove(y)},0)}}},[a,l,d,y]);const w=c.useCallback(u=>{if(!n&&!r||y.paused)return;const m=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,p=document.activeElement;if(m&&p){const g=u.currentTarget,[b,S]=Ze(g);b&&S?!u.shiftKey&&p===S?(u.preventDefault(),n&&L(b,{select:!0})):u.shiftKey&&p===b&&(u.preventDefault(),n&&L(S,{select:!0})):p===g&&u.preventDefault()}},[n,r,y.paused]);return x.jsx(U.div,{tabIndex:-1,...s,ref:h,onKeyDown:w})});ze.displayName=Ye;function Ge(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(L(r,{select:t}),document.activeElement!==n)return}function Ze(e){const t=ye(e),n=ce(t,e),r=ce(t.reverse(),e);return[n,r]}function ye(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ce(e,t){for(const n of e)if(!qe(n,{upTo:t}))return n}function qe(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Qe(e){return e instanceof HTMLInputElement&&"select"in e}function L(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Qe(e)&&t&&e.select()}}var ie=Je();function Je(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=se(e,t),e.unshift(t)},remove(t){e=se(e,t),e[0]?.resume()}}}function se(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function et(e){return e.filter(t=>t.tagName!=="A")}var te=globalThis?.document?c.useLayoutEffect:()=>{},tt=he[" useId ".trim().toString()]||(()=>{}),nt=0;function Jt(e){const[t,n]=c.useState(tt());return te(()=>{n(r=>r??String(nt++))},[e]),e||(t?`radix-${t}`:"")}var rt="Portal",ot=c.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=c.useState(!1);te(()=>i(!0),[]);const s=n||o&&globalThis?.document?.body;return s?xe.createPortal(x.jsx(U.div,{...r,ref:t}),s):null});ot.displayName=rt;var at=he[" useInsertionEffect ".trim().toString()]||te;function en({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=ct({defaultProp:t,onChange:n}),a=e!==void 0,v=a?e:o;{const d=c.useRef(e!==void 0);c.useEffect(()=>{const f=d.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const l=c.useCallback(d=>{if(a){const f=it(d)?d(e):d;f!==e&&s.current?.(f)}else i(d)},[a,e,i,s]);return[v,l]}function ct({defaultProp:e,onChange:t}){const[n,r]=c.useState(e),o=c.useRef(n),i=c.useRef(t);return at(()=>{i.current=t},[t]),c.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function it(e){return typeof e=="function"}var st=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},T=new WeakMap,I=new WeakMap,M={},z=0,Ee=function(e){return e&&(e.host||Ee(e.parentNode))},ut=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ee(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},lt=function(e,t,n,r){var o=ut(t,Array.isArray(e)?e:[e]);M[n]||(M[n]=new WeakMap);var i=M[n],s=[],a=new Set,v=new Set(o),l=function(f){!f||a.has(f)||(a.add(f),l(f.parentNode))};o.forEach(l);var d=function(f){!f||v.has(f)||Array.prototype.forEach.call(f.children,function(h){if(a.has(h))d(h);else try{var y=h.getAttribute(r),w=y!==null&&y!=="false",u=(T.get(h)||0)+1,m=(i.get(h)||0)+1;T.set(h,u),i.set(h,m),s.push(h),u===1&&w&&I.set(h,!0),m===1&&h.setAttribute(n,"true"),w||h.setAttribute(r,"true")}catch(p){console.error("aria-hidden: cannot operate on ",h,p)}})};return d(t),a.clear(),z++,function(){s.forEach(function(f){var h=T.get(f)-1,y=i.get(f)-1;T.set(f,h),i.set(f,y),h||(I.has(f)||f.removeAttribute(r),I.delete(f)),y||f.removeAttribute(n)}),z--,z||(T=new WeakMap,T=new WeakMap,I=new WeakMap,M={})}},tn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=st(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),lt(r,o,n,"aria-hidden")):function(){return null}},P=function(){return P=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},P.apply(this,arguments)};function ge(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function ft(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var _="right-scroll-bar-position",j="width-before-scroll-bar",dt="with-scroll-bars-hidden",vt="--removed-body-scroll-bar-size";function G(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ht(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var mt=typeof window<"u"?c.useLayoutEffect:c.useEffect,ue=new WeakMap;function pt(e,t){var n=ht(null,function(r){return e.forEach(function(o){return G(o,r)})});return mt(function(){var r=ue.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||G(a,null)}),i.forEach(function(a){o.has(a)||G(a,s)})}ue.set(n,e)},[e]),n}function yt(e){return e}function Et(e,t){t===void 0&&(t=yt);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;
vendor: 5,706 bytes, lines 1-38
1n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var v=function(){var d=s;s=[],d.forEach(i)},l=function(){return Promise.resolve().then(v)};l(),n={push:function(d){s.push(d),l()},filter:function(d){return s=s.filter(d),n}}}};return o}function gt(e){e===void 0&&(e={});var t=Et(null);return t.options=P({async:!0,ssr:!1},e),t}var be=function(e){var t=e.sideCar,n=ge(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,P({},n))};be.isSideCarExport=!0;function bt(e,t){return e.useMedium(t),be}var Se=gt(),Z=function(){},H=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:Z,onWheelCapture:Z,onTouchMoveCapture:Z}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,v=e.className,l=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,y=e.noRelative,w=e.noIsolation,u=e.inert,m=e.allowPinchZoom,p=e.as,g=p===void 0?"div":p,b=e.gapMode,S=ge(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=h,R=pt([n,t]),E=P(P({},S),o);return c.createElement(c.Fragment,null,d&&c.createElement(C,{sideCar:Se,removeScrollBar:l,shards:f,noRelative:y,noIsolation:w,inert:u,setCallbacks:i,allowPinchZoom:!!m,lockRef:n,gapMode:b}),s?c.cloneElement(c.Children.only(a),P(P({},E),{ref:R})):c.createElement(g,P({},E,{className:v,ref:R}),a))});H.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};H.classNames={fullWidth:j,zeroRight:_};var St=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function wt(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=St();return t&&e.setAttribute("nonce",t),e}function Ct(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Pt(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Rt=function(){var e=0,t=null;return{add:function(n){e==0&&(t=wt())&&(Ct(t,n),Pt(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ot=function(){var e=Rt();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},we=function(){var e=Ot(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},xt={left:0,top:0,right:0,gap:0},q=function(e){return parseInt(e||"",10)||0},Lt=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[q(n),q(r),q(o)]},Tt=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return xt;var t=Lt(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])}},At=we(),N="data-scroll-locked",Dt=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),` 2 .`.concat(dt,` { 3 overflow: hidden `).concat(r,`; 4 padding-right: `).concat(a,"px ").concat(r,`; 5 } 6 body[`).concat(N,`] { 7 overflow: hidden `).concat(r,`; 8 overscroll-behavior: contain; 9 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 10 padding-left: `.concat(o,`px; 11 padding-top: `).concat(i,`px; 12 padding-right: `).concat(s,`px; 13 margin-left:0; 14 margin-top:0; 15 margin-right: `).concat(a,"px ").concat(r,`; 16 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),` 17 } 18 19 .`).concat(_,` { 20 right: `).concat(a,"px ").concat(r,`; 21 } 22 23 .`).concat(j,` { 24 margin-right: `).concat(a,"px ").concat(r,`; 25 } 26 27 .`).concat(_," .").concat(_,` { 28 right: 0 `).concat(r,`; 29 } 30 31 .`).concat(j," .").concat(j,` { 32 margin-right: 0 `).concat(r,`; 33 } 34 35 body[`).concat(N,`] { 36 `).concat(vt,": ").concat(a,`px; 37 } 38`)},le=function(){var e=parseInt(document.body.getAttribute(N)||"0",10);return isFinite(e)?e:0},Nt=function(){c.useEffect(function(){return document.body.setAttribute(N,(le()+1).toString()),function(){var e=le()-1;e<=0?document.body.removeAttribute(N):document.body.setAttribute(N,e.toString())}},[])},kt=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Nt();var i=c.useMemo(function(){return Tt(o)},[o]);return c.createElement(At,{styles:Dt(i,!t,o,n?"":"!important")})},J=!1;if(typeof window<"u")try{var W=Object.defineProperty({},"passive",{get:function(){return J=!0,!0}});window.addEventListener("test",W,W),window.removeEventListener("test",W,W)}catch{J=!1}var A=J?{passive:!1}:!1,Ft=function(e){return e.tagName==="TEXTAREA"},Ce=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ft(e)&&n[t]==="visible")},It=function(e){return Ce(e,"overflowY")},Mt=function(e){return Ce(e,"overflowX")},fe=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Pe(e,r);if(o){var i=Re(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Wt=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Bt=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Pe=function(e,t){return e==="v"?It(t):Mt(t)},Re=function(e,t){return e==="v"?Wt(t):Bt(t)},_t=function(e,t){return e==="h"&&t==="rtl"?-1:1},jt=function(e,t,n,r,o){var i=_t(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,v=t.contains(a),l=!1,d=s>0,f=0,h=0;
vendor: 3,719 bytes, lines 38-41
38do{if(!a)break;var y=Re(e,a),w=y[0],u=y[1],m=y[2],p=u-m-i*w;(w||p)&&Pe(e,a)&&(f+=p,h+=w);var g=a.parentNode;a=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!v&&a!==document.body||v&&(t.contains(a)||t===a));return(d&&Math.abs(f)<1||!d&&Math.abs(h)<1)&&(l=!0),l},B=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},de=function(e){return[e.deltaX,e.deltaY]},ve=function(e){return e&&"current"in e?e.current:e},Ut=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ht=function(e){return` 39 .block-interactivity-`.concat(e,` {pointer-events: none;} 40 .allow-interactivity-`).concat(e,` {pointer-events: all;} 41`)},$t=0,D=[];function Vt(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState($t++)[0],i=c.useState(we)[0],s=c.useRef(e);c.useEffect(function(){s.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var u=ft([e.lockRef.current],(e.shards||[]).map(ve),!0).filter(Boolean);return u.forEach(function(m){return m.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),u.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=c.useCallback(function(u,m){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!s.current.allowPinchZoom;var p=B(u),g=n.current,b="deltaX"in u?u.deltaX:g[0]-p[0],S="deltaY"in u?u.deltaY:g[1]-p[1],C,R=u.target,E=Math.abs(b)>Math.abs(S)?"h":"v";if("touches"in u&&E==="h"&&R.type==="range")return!1;var O=fe(E,R);if(!O)return!0;if(O?C=E:(C=E==="v"?"h":"v",O=fe(E,R)),!O)return!1;if(!r.current&&"changedTouches"in u&&(b||S)&&(r.current=C),!C)return!0;var k=r.current||C;return jt(k,m,u,k==="h"?b:S)},[]),v=c.useCallback(function(u){var m=u;if(!(!D.length||D[D.length-1]!==i)){var p="deltaY"in m?de(m):B(m),g=t.current.filter(function(C){return C.name===m.type&&(C.target===m.target||m.target===C.shadowParent)&&Ut(C.delta,p)})[0];if(g&&g.should){m.cancelable&&m.preventDefault();return}if(!g){var b=(s.current.shards||[]).map(ve).filter(Boolean).filter(function(C){return C.contains(m.target)}),S=b.length>0?a(m,b[0]):!s.current.noIsolation;S&&m.cancelable&&m.preventDefault()}}},[]),l=c.useCallback(function(u,m,p,g){var b={name:u,delta:m,target:p,should:g,shadowParent:Kt(p)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(S){return S!==b})},1)},[]),d=c.useCallback(function(u){n.current=B(u),r.current=void 0},[]),f=c.useCallback(function(u){l(u.type,de(u),u.target,a(u,e.lockRef.current))},[]),h=c.useCallback(function(u){l(u.type,B(u),u.target,a(u,e.lockRef.current))},[]);c.useEffect(function(){return D.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",v,A),document.addEventListener("touchmove",v,A),document.addEventListener("touchstart",d,A),function(){D=D.filter(function(u){return u!==i}),document.removeEventListener("wheel",v,A),document.removeEventListener("touchmove",v,A),document.removeEventListener("touchstart",d,A)}},[]);var y=e.removeScrollBar,w=e.inert;return c.createElement(c.Fragment,null,w?c.createElement(i,{styles:Ht(o)}):null,y?c.createElement(kt,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Kt(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Xt=bt(Se,Vt);var Yt=c.forwardRef(function(e,t){return c.createElement(H,P({},e,{ref:t,sideCar:Xt}))});Yt.classNames=H.classNames;export{He as D,ze as F,U as P,Yt as R,Ae as a,F as b,qt as c,en as d,Jt as e,V as f,ot as g,tn as h,Qt as i,Zt as j,te as u};
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.