-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path25af48741c0e49ddbdd4085dda99b7d7b863a8c7-13ef8d395e47879c4811.js
1 lines (1 loc) · 22.9 KB
/
25af48741c0e49ddbdd4085dda99b7d7b863a8c7-13ef8d395e47879c4811.js
1
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[378],{56:function(e,t,n){n.d(t,{T0:function(){return i}});var r,o=n(9474);function a(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=r||n.nc;return t&&e.setAttribute("nonce",t),e}var c=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=a())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},i=function(){var e,t=(e=c(),function(t,n){o.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}}},784:function(e,t,n){n.d(t,{A:function(){return qe}});var r=n(9474),o=n(6743),a=n(3360),c=n(8626),i=n(5457),u=n(2025),s=n(8854),l=n(2791),d=n(7021),f=n(3274),p="focusScope.autoFocusOnMount",m="focusScope.autoFocusOnUnmount",v={bubbles:!1,cancelable:!0},h=r.forwardRef(((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:c,onUnmountAutoFocus:i,...u}=e,[s,h]=r.useState(null),b=(0,d.c)(c),C=(0,d.c)(i),x=r.useRef(null),N=(0,a.s)(t,(e=>h(e))),R=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect((()=>{if(o){let e=function(e){if(R.paused||!s)return;const t=e.target;s.contains(t)?x.current=t:E(x.current,{select:!0})},t=function(e){if(R.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||E(x.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&E(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[o,s,R.paused]),r.useEffect((()=>{if(s){w.add(R);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(p,v);s.addEventListener(p,b),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(E(r,{select:t}),document.activeElement!==n)return}((e=g(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&E(s))}return()=>{s.removeEventListener(p,b),setTimeout((()=>{const e=new CustomEvent(m,v);s.addEventListener(m,C),s.dispatchEvent(e),e.defaultPrevented||E(t??document.body,{select:!0}),s.removeEventListener(m,C),w.remove(R)}),0)}}var e}),[s,b,C,R]);const S=r.useCallback((e=>{if(!n&&!o)return;if(R.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){const t=e.currentTarget,[o,a]=function(e){const t=g(e),n=y(t,e),r=y(t.reverse(),e);return[n,r]}(t);o&&a?e.shiftKey||r!==a?e.shiftKey&&r===o&&(e.preventDefault(),n&&E(a,{select:!0})):(e.preventDefault(),n&&E(o,{select:!0})):r===t&&e.preventDefault()}}),[n,o,R.paused]);return(0,f.jsx)(l.sG.div,{tabIndex:-1,...u,ref:N,onKeyDown:S})}));function g(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function y(e,t){for(const n of e)if(!b(n,{upTo:t}))return n}function b(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function E(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}h.displayName="FocusScope";var w=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=C(e,t),e.unshift(t)},remove(t){e=C(e,t),e[0]?.resume()}}}();function C(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var x=n(7799),N=n(3629),R=0;function S(){r.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??k()),document.body.insertAdjacentElement("beforeend",e[1]??k()),R++,()=>{1===R&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),R--}}),[])}function k(){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 A=n(5482),D=n(5826),M=n(8787),T=(0,n(9694).f)(),j=function(){},O=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useState({onScrollCapture:j,onWheelCapture:j,onTouchMoveCapture:j}),a=o[0],c=o[1],i=e.forwardProps,u=e.children,s=e.className,l=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noIsolation,v=e.inert,h=e.allowPinchZoom,g=e.as,y=void 0===g?"div":g,b=e.gapMode,E=(0,A.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=p,C=(0,M.S)([n,t]),x=(0,A.Cl)((0,A.Cl)({},E),a);return r.createElement(r.Fragment,null,d&&r.createElement(w,{sideCar:T,removeScrollBar:l,shards:f,noIsolation:m,inert:v,setCallbacks:c,allowPinchZoom:!!h,lockRef:n,gapMode:b}),i?r.cloneElement(r.Children.only(u),(0,A.Cl)((0,A.Cl)({},x),{ref:C})):r.createElement(y,(0,A.Cl)({},x,{className:s,ref:C}),u))}));O.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},O.classNames={fullWidth:D.pN,zeroRight:D.Mi};var I=n(7510),_=n(2934),F=n(56),L=!1;if("undefined"!=typeof window)try{var P=Object.defineProperty({},"passive",{get:function(){return L=!0,!0}});window.addEventListener("test",P,P),window.removeEventListener("test",P,P)}catch(Ye){L=!1}var W=!!L&&{passive:!1},B=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},K=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),X(e,r)){var o=q(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},X=function(e,t){return"v"===e?function(e){return B(e,"overflowY")}(t):function(e){return B(e,"overflowX")}(t)},q=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Y=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},G=function(e){return[e.deltaX,e.deltaY]},Z=function(e){return e&&"current"in e?e.current:e},H=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},$=0,z=[];function U(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var V=(0,I.m)(T,(function(e){var t=r.useRef([]),n=r.useRef([0,0]),o=r.useRef(),a=r.useState($++)[0],c=r.useState(F.T0)[0],i=r.useRef(e);r.useEffect((function(){i.current=e}),[e]),r.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(0,A.fX)([e.lockRef.current],(e.shards||[]).map(Z),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[e.inert,e.lockRef.current,e.shards]);var u=r.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var r,a=Y(e),c=n.current,u="deltaX"in e?e.deltaX:c[0]-a[0],s="deltaY"in e?e.deltaY:c[1]-a[1],l=e.target,d=Math.abs(u)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===l.type)return!1;var f=K(d,l);if(!f)return!0;if(f?r=d:(r="v"===d?"h":"v",f=K(d,l)),!f)return!1;if(!o.current&&"changedTouches"in e&&(u||s)&&(o.current=r),!r)return!0;var p=o.current||r;return function(e,t,n,r,o){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),c=a*r,i=n.target,u=t.contains(i),s=!1,l=c>0,d=0,f=0;do{var p=q(e,i),m=p[0],v=p[1]-p[2]-a*m;(m||v)&&X(e,i)&&(d+=v,f+=m),i=i instanceof ShadowRoot?i.host:i.parentNode}while(!u&&i!==document.body||u&&(t.contains(i)||t===i));return(l&&(o&&Math.abs(d)<1||!o&&c>d)||!l&&(o&&Math.abs(f)<1||!o&&-c>f))&&(s=!0),s}(p,t,e,"h"===p?u:s,!0)}),[]),s=r.useCallback((function(e){var n=e;if(z.length&&z[z.length-1]===c){var r="deltaY"in n?G(n):Y(n),o=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var a=(i.current.shards||[]).map(Z).filter(Boolean).filter((function(e){return e.contains(n.target)}));(a.length>0?u(n,a[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),l=r.useCallback((function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:U(r)};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),d=r.useCallback((function(e){n.current=Y(e),o.current=void 0}),[]),f=r.useCallback((function(t){l(t.type,G(t),t.target,u(t,e.lockRef.current))}),[]),p=r.useCallback((function(t){l(t.type,Y(t),t.target,u(t,e.lockRef.current))}),[]);r.useEffect((function(){return z.push(c),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,W),document.addEventListener("touchmove",s,W),document.addEventListener("touchstart",d,W),function(){z=z.filter((function(e){return e!==c})),document.removeEventListener("wheel",s,W),document.removeEventListener("touchmove",s,W),document.removeEventListener("touchstart",d,W)}}),[]);var m=e.removeScrollBar,v=e.inert;return r.createElement(r.Fragment,null,v?r.createElement(c,{styles:H(a)}):null,m?r.createElement(_.jp,{gapMode:e.gapMode}):null)})),J=r.forwardRef((function(e,t){return r.createElement(O,(0,A.Cl)({},e,{ref:t,sideCar:V}))}));J.classNames=O.classNames;var Q=J,ee=n(2684),te=n(873),ne="Dialog",[re,oe]=(0,c.A)(ne),[ae,ce]=re(ne),ie=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:a,onOpenChange:c,modal:s=!0}=e,l=r.useRef(null),d=r.useRef(null),[p=!1,m]=(0,u.i)({prop:o,defaultProp:a,onChange:c});return(0,f.jsx)(ae,{scope:t,triggerRef:l,contentRef:d,contentId:(0,i.B)(),titleId:(0,i.B)(),descriptionId:(0,i.B)(),open:p,onOpenChange:m,onOpenToggle:r.useCallback((()=>m((e=>!e))),[m]),modal:s,children:n})};ie.displayName=ne;var ue="DialogTrigger",se=r.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,c=ce(ue,n),i=(0,a.s)(t,c.triggerRef);return(0,f.jsx)(l.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":Ae(c.open),...r,ref:i,onClick:(0,o.m)(e.onClick,c.onOpenToggle)})}));se.displayName=ue;var le="DialogPortal",[de,fe]=re(le,{forceMount:void 0}),pe=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:a}=e,c=ce(le,t);return(0,f.jsx)(de,{scope:t,forceMount:n,children:r.Children.map(o,(e=>(0,f.jsx)(N.C,{present:n||c.open,children:(0,f.jsx)(x.Z,{asChild:!0,container:a,children:e})})))})};pe.displayName=le;var me="DialogOverlay",ve=r.forwardRef(((e,t)=>{const n=fe(me,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=ce(me,e.__scopeDialog);return a.modal?(0,f.jsx)(N.C,{present:r||a.open,children:(0,f.jsx)(he,{...o,ref:t})}):null}));ve.displayName=me;var he=r.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=ce(me,n);return(0,f.jsx)(Q,{as:te.DX,allowPinchZoom:!0,shards:[o.contentRef],children:(0,f.jsx)(l.sG.div,{"data-state":Ae(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),ge="DialogContent",ye=r.forwardRef(((e,t)=>{const n=fe(ge,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=ce(ge,e.__scopeDialog);return(0,f.jsx)(N.C,{present:r||a.open,children:a.modal?(0,f.jsx)(be,{...o,ref:t}):(0,f.jsx)(Ee,{...o,ref:t})})}));ye.displayName=ge;var be=r.forwardRef(((e,t)=>{const n=ce(ge,e.__scopeDialog),c=r.useRef(null),i=(0,a.s)(t,n.contentRef,c);return r.useEffect((()=>{const e=c.current;if(e)return(0,ee.Eq)(e)}),[]),(0,f.jsx)(we,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.m)(e.onCloseAutoFocus,(e=>{e.preventDefault(),n.triggerRef.current?.focus()})),onPointerDownOutside:(0,o.m)(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:(0,o.m)(e.onFocusOutside,(e=>e.preventDefault()))})})),Ee=r.forwardRef(((e,t)=>{const n=ce(ge,e.__scopeDialog),o=r.useRef(!1),a=r.useRef(!1);return(0,f.jsx)(we,{...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,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));const r=t.target,c=n.triggerRef.current?.contains(r);c&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})})),we=r.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:c,onCloseAutoFocus:i,...u}=e,l=ce(ge,n),d=r.useRef(null),p=(0,a.s)(t,d);return S(),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(h,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:c,onUnmountAutoFocus:i,children:(0,f.jsx)(s.qW,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Ae(l.open),...u,ref:p,onDismiss:()=>l.onOpenChange(!1)})}),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(je,{titleId:l.titleId}),(0,f.jsx)(Oe,{contentRef:d,descriptionId:l.descriptionId})]})]})})),Ce="DialogTitle",xe=r.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=ce(Ce,n);return(0,f.jsx)(l.sG.h2,{id:o.titleId,...r,ref:t})}));xe.displayName=Ce;var Ne="DialogDescription",Re=r.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=ce(Ne,n);return(0,f.jsx)(l.sG.p,{id:o.descriptionId,...r,ref:t})}));Re.displayName=Ne;var Se="DialogClose",ke=r.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,a=ce(Se,n);return(0,f.jsx)(l.sG.button,{type:"button",...r,ref:t,onClick:(0,o.m)(e.onClick,(()=>a.onOpenChange(!1)))})}));function Ae(e){return e?"open":"closed"}ke.displayName=Se;var De="DialogTitleWarning",[Me,Te]=(0,c.q)(De,{contentName:ge,titleName:Ce,docsSlug:"dialog"}),je=({titleId:e})=>{const t=Te(De),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return r.useEffect((()=>{if(e){document.getElementById(e)||console.error(n)}}),[n,e]),null},Oe=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Te("DialogDescriptionWarning").contentName}}.`;return r.useEffect((()=>{const r=e.current?.getAttribute("aria-describedby");if(t&&r){document.getElementById(t)||console.warn(n)}}),[n,e,t]),null},Ie=ie,_e=se,Fe=pe,Le=ve,Pe=ye,We=xe,Be=ke,Ke=n(9980),Xe=n(9443);var qe=e=>r.createElement(Ie,{open:e.open,onOpenChange:e.setOpen},r.createElement(_e,{asChild:!0},r.createElement("button",{disabled:e.disabled,className:(0,Xe.A)("inline-flex items-center justify-center rounded-md bg-pink-500 px-3 py-2 text-xs font-bold text-white transition-colors hover:bg-pink-700",e.disabled?"cursor-not-allowed opacity-50":"")},e.buttonTitle)),r.createElement(Fe,null,r.createElement(Le,{className:"dialog-overlay fixed inset-0 z-50 bg-black/20 dark:bg-black/80"}),r.createElement(Pe,{className:(0,Xe.A)("dialog-content fixed left-1/2 top-1/2 z-[60] w-[90vw] -translate-x-1/2 -translate-y-1/2 rounded-md bg-white p-6 shadow-md","focus:outline-none","dark:bg-slate-800","sm:max-w-[450px]")},r.createElement(We,{className:"m-0 font-medium"},e.modalTitle),r.createElement(Be,{className:(0,Xe.A)("absolute right-2 top-2 inline-flex h-6 w-6 items-center justify-center rounded-full text-slate-400/80 transition-colors","hover:bg-slate-200/50","dark:text-slate-700/90","dark:hover:bg-slate-600"),"aria-label":"Close"},r.createElement(Ke.g,{icon:["fas","xmark"]})),e.children)))},2684:function(e,t,n){n.d(t,{Eq:function(){return l}});var r=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},o=new WeakMap,a=new WeakMap,c={},i=0,u=function(e){return e&&(e.host||u(e.parentNode))},s=function(e,t,n,r){var s=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=u(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);c[n]||(c[n]=new WeakMap);var l=c[n],d=[],f=new Set,p=new Set(s),m=function(e){e&&!f.has(e)&&(f.add(e),m(e.parentNode))};s.forEach(m);var v=function(e){e&&!p.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(f.has(e))v(e);else try{var t=e.getAttribute(r),c=null!==t&&"false"!==t,i=(o.get(e)||0)+1,u=(l.get(e)||0)+1;o.set(e,i),l.set(e,u),d.push(e),1===i&&c&&a.set(e,!0),1===u&&e.setAttribute(n,"true"),c||e.setAttribute(r,"true")}catch(s){console.error("aria-hidden: cannot operate on ",e,s)}}))};return v(t),f.clear(),i++,function(){d.forEach((function(e){var t=o.get(e)-1,c=l.get(e)-1;o.set(e,t),l.set(e,c),t||(a.has(e)||e.removeAttribute(r),a.delete(e)),c||e.removeAttribute(n)})),--i||(o=new WeakMap,o=new WeakMap,a=new WeakMap,c={})}},l=function(e,t,n){void 0===n&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),a=t||r(e);return a?(o.push.apply(o,Array.from(a.querySelectorAll("[aria-live]"))),s(o,a,n,"aria-hidden")):function(){return null}}},2934:function(e,t,n){n.d(t,{jp:function(){return p}});var r=n(9474),o=n(56),a=n(5826),c={left:0,top:0,right:0,gap:0},i=function(e){return parseInt(e||"",10)||0},u=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return c;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[i(n),i(r),i(o)]}(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])}},s=(0,o.T0)(),l="data-scroll-locked",d=function(e,t,n,r){var o=e.left,c=e.top,i=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n .".concat(a.E9," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(u,"px ").concat(r,";\n }\n body[").concat(l,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(c,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(a.Mi," {\n right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(a.pN," {\n margin-right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(a.Mi," .").concat(a.Mi," {\n right: 0 ").concat(r,";\n }\n \n .").concat(a.pN," .").concat(a.pN," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(l,"] {\n ").concat(a.xi,": ").concat(u,"px;\n }\n")},f=function(){var e=parseInt(document.body.getAttribute(l)||"0",10);return isFinite(e)?e:0},p=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,a=void 0===o?"margin":o;r.useEffect((function(){return document.body.setAttribute(l,(f()+1).toString()),function(){var e=f()-1;e<=0?document.body.removeAttribute(l):document.body.setAttribute(l,e.toString())}}),[]);var c=r.useMemo((function(){return u(a)}),[a]);return r.createElement(s,{styles:d(c,!t,a,n?"":"!important")})}},5482:function(e,t,n){n.d(t,{Cl:function(){return r},Tt:function(){return o},fX:function(){return a}});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(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}Object.create;function a(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError},5826:function(e,t,n){n.d(t,{E9:function(){return a},Mi:function(){return r},pN:function(){return o},xi:function(){return c}});var r="right-scroll-bar-position",o="width-before-scroll-bar",a="with-scroll-bars-hidden",c="--removed-body-scroll-bar-size"},7510:function(e,t,n){n.d(t,{m:function(){return c}});var r=n(5482),o=n(9474),a=function(e){var t=e.sideCar,n=(0,r.Tt)(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return o.createElement(a,(0,r.Cl)({},n))};function c(e,t){return e.useMedium(t),a}a.isSideCarExport=!0},8787:function(e,t,n){n.d(t,{S:function(){return i}});var r=n(9474);function o(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var a="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,c=new WeakMap;function i(e,t){var n,i,u,s=(n=t||null,i=function(t){return e.forEach((function(e){return o(e,t)}))},(u=(0,r.useState)((function(){return{value:n,callback:i,facade:{get current(){return u.value},set current(e){var t=u.value;t!==e&&(u.value=e,u.callback(e,t))}}}}))[0]).callback=i,u.facade);return a((function(){var t=c.get(s);if(t){var n=new Set(t),r=new Set(e),a=s.current;n.forEach((function(e){r.has(e)||o(e,null)})),r.forEach((function(e){n.has(e)||o(e,a)}))}c.set(s,e)}),[e]),s}},9694:function(e,t,n){n.d(t,{f:function(){return c}});var r=n(5482);function o(e){return e}function a(e,t){void 0===t&&(t=o);var n=[],r=!1;return{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(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},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 o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},c=function(){return Promise.resolve().then(a)};c(),n={push:function(e){t.push(e),c()},filter:function(e){return t=t.filter(e),n}}}}}function c(e){void 0===e&&(e={});var t=a(null);return t.options=(0,r.Cl)({async:!0,ssr:!1},e),t}}}]);