vendor: 6,288 bytes, line 1
1import{r as c,z as pe}from"./components-TiuikKBW.js";import{j as R}from"./jsx-runtime-u17CrQMm.js";import{b as Le,u as te}from"./index-DeyABJcb.js";import{r as Ne,R as Ae}from"./index-C1oDB35l.js";function K(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function en(e,t){const n=c.createContext(t),r=i=>{const{children:s,...a}=i,v=c.useMemo(()=>a,Object.values(a));return R.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 tn(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 R.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,De(o,...t)]}function De(...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}var ne=globalThis?.document?c.useLayoutEffect:()=>{},ke=pe[" useInsertionEffect ".trim().toString()]||ne;function nn({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=Fe({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=Ie(d)?d(e):d;f!==e&&s.current?.(f)}else i(d)},[a,e,i,s]);return[v,l]}function Fe({defaultProp:e,onChange:t}){const[n,r]=c.useState(e),o=c.useRef(n),i=c.useRef(t);return ke(()=>{i.current=t},[t]),c.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function Ie(e){return typeof e=="function"}function Me(e){const t=We(e),n=c.forwardRef((r,o)=>{const{children:i,...s}=r,a=c.Children.toArray(i),v=a.find(Be);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 R.jsx(t,{...s,ref:o,children:c.isValidElement(l)?c.cloneElement(l,void 0,d):null})}return R.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function We(e){const t=c.forwardRef((n,r)=>{const{children:o,...i}=n;if(c.isValidElement(o)){const s=je(o),a=_e(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 ye=Symbol("radix.slottable");function rn(e){const t=({children:n})=>R.jsx(R.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=ye,t}function Be(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ye}function _e(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 je(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 Ue=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],H=Ue.reduce((e,t)=>{const n=Me(`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),R.jsx(v,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function $e(e,t){e&&Ne.flushSync(()=>e.dispatchEvent(t))}function I(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>t.current?.(...n),[])}function He(e,t=globalThis?.document){const n=I(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 Ve="DismissableLayer",J="dismissableLayer.update",Ke="dismissableLayer.pointerDownOutside",Xe="dismissableLayer.focusOutside",oe,Ee=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ye=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...v}=e,l=c.useContext(Ee),[d,f]=c.useState(null),h=d?.ownerDocument??globalThis?.document,[,y]=c.useState({}),w=te(t,E=>f(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=Ze(E=>{const T=E.target,L=[...l.branches].some(F=>F.contains(T));!S||L||(o?.(E),s?.(E),E.defaultPrevented||a?.())},h),P=qe(E=>{const T=E.target;[...l.branches].some(F=>F.contains(T))||(i?.(E),s?.(E),E.defaultPrevented||a?.())},h);return He(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&&(oe=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),ae(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=oe)}},[d,h,n,l]),c.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),ae())},[d,l]),c.useEffect(()=>{const E=()=>y({});
vendor: 5,717 bytes, line 1
1return document.addEventListener(J,E),()=>document.removeEventListener(J,E)},[]),R.jsx(H.div,{...v,ref:w,style:{pointerEvents:b?S?"auto":"none":void 0,...e.style},onFocusCapture:K(e.onFocusCapture,P.onFocusCapture),onBlurCapture:K(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:K(e.onPointerDownCapture,C.onPointerDownCapture)})});Ye.displayName=Ve;var ze="DismissableLayerBranch",Ge=c.forwardRef((e,t)=>{const n=c.useContext(Ee),r=c.useRef(null),o=te(t,r);return c.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),R.jsx(H.div,{...e,ref:o})});Ge.displayName=ze;function Ze(e,t=globalThis?.document){const n=I(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let v=function(){ge(Ke,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 qe(e,t=globalThis?.document){const n=I(e),r=c.useRef(!1);return c.useEffect(()=>{const o=i=>{i.target&&!r.current&&ge(Xe,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 ae(){const e=new CustomEvent(J);document.dispatchEvent(e)}function ge(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?$e(o,i):o.dispatchEvent(i)}var X=0;function on(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ce()),document.body.insertAdjacentElement("beforeend",e[1]??ce()),X++,()=>{X===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),X--}},[])}function ce(){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 Y="focusScope.autoFocusOnMount",z="focusScope.autoFocusOnUnmount",ie={bubbles:!1,cancelable:!0},Qe="FocusScope",Je=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,v]=c.useState(null),l=I(o),d=I(i),f=c.useRef(null),h=te(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:x(f.current,{select:!0})},m=function(b){if(y.paused||!a)return;const S=b.relatedTarget;S!==null&&(a.contains(S)||x(f.current,{select:!0}))},p=function(b){if(document.activeElement===document.body)for(const C of b)C.removedNodes.length>0&&x(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){ue.add(y);const u=document.activeElement;if(!a.contains(u)){const p=new CustomEvent(Y,ie);a.addEventListener(Y,l),a.dispatchEvent(p),p.defaultPrevented||(et(at(be(a)),{select:!0}),document.activeElement===u&&x(a))}return()=>{a.removeEventListener(Y,l),setTimeout(()=>{const p=new CustomEvent(z,ie);a.addEventListener(z,d),a.dispatchEvent(p),p.defaultPrevented||x(u??document.body,{select:!0}),a.removeEventListener(z,d),ue.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]=tt(g);b&&S?!u.shiftKey&&p===S?(u.preventDefault(),n&&x(b,{select:!0})):u.shiftKey&&p===b&&(u.preventDefault(),n&&x(S,{select:!0})):p===g&&u.preventDefault()}},[n,r,y.paused]);return R.jsx(H.div,{tabIndex:-1,...s,ref:h,onKeyDown:w})});Je.displayName=Qe;function et(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(x(r,{select:t}),document.activeElement!==n)return}function tt(e){const t=be(e),n=se(t,e),r=se(t.reverse(),e);return[n,r]}function be(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 se(e,t){for(const n of e)if(!nt(n,{upTo:t}))return n}function nt(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 rt(e){return e instanceof HTMLInputElement&&"select"in e}function x(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&rt(e)&&t&&e.select()}}var ue=ot();function ot(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=le(e,t),e.unshift(t)},remove(t){e=le(e,t),e[0]?.resume()}}}function le(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function at(e){return e.filter(t=>t.tagName!=="A")}var ct=pe[" useId ".trim().toString()]||(()=>{}),it=0;function an(e){const[t,n]=c.useState(ct());return ne(()=>{n(r=>r??String(it++))},[e]),t?`radix-${t}`:""}var st="Portal",ut=c.forwardRef((e,t)=>
vendor: 13,089 bytes, lines 1-41
1{const{container:n,...r}=e,[o,i]=c.useState(!1);ne(()=>i(!0),[]);const s=n||o&&globalThis?.document?.body;return s?Ae.createPortal(R.jsx(H.div,{...r,ref:t}),s):null});ut.displayName=st;var lt=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},N=new WeakMap,W=new WeakMap,B={},G=0,Se=function(e){return e&&(e.host||Se(e.parentNode))},ft=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Se(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})},dt=function(e,t,n,r){var o=ft(t,Array.isArray(e)?e:[e]);B[n]||(B[n]=new WeakMap);var i=B[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=(N.get(h)||0)+1,m=(i.get(h)||0)+1;N.set(h,u),i.set(h,m),s.push(h),u===1&&w&&W.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(),G++,function(){s.forEach(function(f){var h=N.get(f)-1,y=i.get(f)-1;N.set(f,h),i.set(f,y),h||(W.has(f)||f.removeAttribute(r),W.delete(f)),y||f.removeAttribute(n)}),G--,G||(N=new WeakMap,N=new WeakMap,W=new WeakMap,B={})}},cn=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=lt(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),dt(r,o,n,"aria-hidden")):function(){return null}},O=function(){return O=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},O.apply(this,arguments)};function we(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 vt(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 U="right-scroll-bar-position",$="width-before-scroll-bar",ht="with-scroll-bars-hidden",mt="--removed-body-scroll-bar-size";function Z(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function pt(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 yt=typeof window<"u"?c.useLayoutEffect:c.useEffect,fe=new WeakMap;function Et(e,t){var n=pt(null,function(r){return e.forEach(function(o){return Z(o,r)})});return yt(function(){var r=fe.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||Z(a,null)}),i.forEach(function(a){o.has(a)||Z(a,s)})}fe.set(n,e)},[e]),n}function gt(e){return e}function bt(e,t){t===void 0&&(t=gt);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;n=[],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 St(e){e===void 0&&(e={});var t=bt(null);return t.options=O({async:!0,ssr:!1},e),t}var Ce=function(e){var t=e.sideCar,n=we(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,O({},n))};Ce.isSideCarExport=!0;function wt(e,t){return e.useMedium(t),Ce}var Pe=St(),q=function(){},V=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:q,onWheelCapture:q,onTouchMoveCapture:q}),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=we(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=h,P=Et([n,t]),E=O(O({},S),o);return c.createElement(c.Fragment,null,d&&c.createElement(C,{sideCar:Pe,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),O(O({},E),{ref:P})):c.createElement(g,O({},E,{className:v,ref:P}),a))});V.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};V.classNames={fullWidth:$,zeroRight:U};var Ct=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Pt(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ct();return t&&e.setAttribute("nonce",t),e}function Rt(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ot(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var xt=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Pt())&&(Rt(t,n),Ot(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Tt=function(){var e=xt();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Re=function(){var e=Tt(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Lt={left:0,top:0,right:0,gap:0},Q=function(e){return parseInt(e||"",10)||0},Nt=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)]},At=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Lt;var t=Nt(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])}},Dt=Re(),k="data-scroll-locked",kt=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(ht,` { 3 overflow: hidden `).concat(r,`; 4 padding-right: `).concat(a,"px ").concat(r,`; 5 } 6 body[`).concat(k,`] { 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(U,` { 20 right: `).concat(a,"px ").concat(r,`; 21 } 22 23 .`).concat($,` { 24 margin-right: `).concat(a,"px ").concat(r,`; 25 } 26 27 .`).concat(U," .").concat(U,` { 28 right: 0 `).concat(r,`; 29 } 30 31 .`).concat($," .").concat($,` { 32 margin-right: 0 `).concat(r,`; 33 } 34 35 body[`).concat(k,`] { 36 `).concat(mt,": ").concat(a,`px; 37 } 38`)},de=function(){var e=parseInt(document.body.getAttribute(k)||"0",10);return isFinite(e)?e:0},Ft=function(){c.useEffect(function(){return document.body.setAttribute(k,(de()+1).toString()),function(){var e=de()-1;e<=0?document.body.removeAttribute(k):document.body.setAttribute(k,e.toString())}},[])},It=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Ft();var i=c.useMemo(function(){return At(o)},[o]);return c.createElement(Dt,{styles:kt(i,!t,o,n?"":"!important")})},ee=!1;if(typeof window<"u")try{var _=Object.defineProperty({},"passive",{get:function(){return ee=!0,!0}});window.addEventListener("test",_,_),window.removeEventListener("test",_,_)}catch{ee=!1}var A=ee?{passive:!1}:!1,Mt=function(e){return e.tagName==="TEXTAREA"},Oe=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Mt(e)&&n[t]==="visible")},Wt=function(e){return Oe(e,"overflowY")},Bt=function(e){return Oe(e,"overflowX")},ve=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=xe(e,r);if(o){var i=Te(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},_t=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},jt=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},xe=function(e,t){return e==="v"?Wt(t):Bt(t)},Te=function(e,t){return e==="v"?_t(t):jt(t)},Ut=function(e,t){return e==="h"&&t==="rtl"?-1:1},$t=function(e,t,n,r,o){var i=Ut(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,v=t.contains(a),l=!1,d=s>0,f=0,h=0;do{if(!a)break;var y=Te(e,a),w=y[0],u=y[1],m=y[2],p=u-m-i*w;(w||p)&&xe(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},j=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},he=function(e){return[e.deltaX,e.deltaY]},me=function(e){return e&&"current"in e?e.current:e},Ht=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Vt=function(e){return` 39 .block-interactivity-`.concat(e,` {pointer-events: none;} 40 .allow-interactivity-`).concat(e,` {pointer-events: all;} 41`)},Kt=0,D=[];function Xt(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(Kt++)[0],i=c.useState(Re)[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=vt([e.lockRef.current],(e.shards||[]).map(me),!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=j(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,P=u.target,E=Math.abs(b)>Math.abs(S)?"h":"v";if("touches"in u&&E==="h"&&P.type==="range")return!1;var T=window.getSelection(),L=T&&T.anchorNode,F=L?L===P||L.contains(P):!1;if(F)return!1;var M=ve(E,P);if(!M)return!0;if(M?C=E:(C=E==="v"?"h":"v",M=ve(E,P)),!M)return!1;if(!r.current&&"changedTouches"in u&&(b||S)&&(r.current=C),!C)return!0;var re=r.current||C;return $t(re,m,u,re==="h"?b:S)},[]),v=c.useCallback(function(u){var m=u;if(!(!D.length||D[D.length-1]!==i)){var p="deltaY"in m?he(m):j(m),g=t.current.filter(function(C){return C.name===m.type&&(C.target===m.target||m.target===C.shadowParent)&&Ht(C.delta,p)})[0];if(g&&g.should){m.cancelable&&m.preventDefault();return}if(!g){var b=(s.current.shards||[]).map(me).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:Yt(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=j(u),r.current=void 0},[]),f=c.useCallback(function(u){l(u.type,he(u),u.target,a(u,e.lockRef.current))},[]),h=c.useCallback(function(u){l(u.type,j(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:Vt(o)}):null,y?c.createElement(It,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Yt(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const zt=wt(Pe,Xt);var Gt=c.forwardRef(function(e,t){return c.createElement(V,O({},e,{ref:t,sideCar:zt}))});Gt.classNames=V.classNames;export{Ye as D,Je as F,H as P,Gt as R,nn as a,an as b,K as c,ut as d,en as e,tn as f,on as g,cn as h,Me as i,I as j,rn as k,$e as l,ne 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.