"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3803],{93803:function(e,n,t){t.d(n,{aR:function(){return Un},iP:function(){return Zn},_T:function(){return qn},xo:function(){return Xn},fY:function(){return Wn},dh:function(){return Gn},dy:function(){return et},Ng:function(){return Zn},cC:function(){return Yn},sc:function(){return tt},OX:function(){return Wn},P1:function(){return Gn},u_:function(){return Dn},fe:function(){return Zn},ol:function(){return Yn},hz:function(){return Ln},mz:function(){return Xn},xB:function(){return Wn},ZA:function(){return Gn}});var r=t(3388),o=t(2784),a=t(31461),u=t(7896),i="data-focus-lock",c="data-focus-lock-disabled";function l(e,n){return function(e,n){var t=(0,o.useState)((function(){return{value:e,callback:n,facade:{get current(){return t.value},set current(e){var n=t.value;n!==e&&(t.value=e,t.callback(e,n))}}}}))[0];return t.callback=n,t.facade}(n,(function(n){return e.forEach((function(e){return function(e,n){return"function"===typeof e?e(n):e&&(e.current=n),e}(e,n)}))}))}var s={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},d=function(e){var n=e.children;return o.createElement(o.Fragment,null,o.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:s}),n,n&&o.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:s}))};d.propTypes={},d.defaultProps={children:null};var f=function(){return f=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},f.apply(this,arguments)};function v(e){return e}function m(e,n){void 0===n&&(n=v);var t=[],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 t.length?t[t.length-1]:e},useMedium:function(e){var o=n(e,r);return t.push(o),function(){t=t.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;t.length;){var n=t;t=[],n.forEach(e)}t={push:function(n){return e(n)},filter:function(){return t}}},assignMedium:function(e){r=!0;var n=[];if(t.length){var o=t;t=[],o.forEach(e),n=t}var a=function(){var t=n;n=[],t.forEach(e)},u=function(){return Promise.resolve().then(a)};u(),t={push:function(e){n.push(e),u()},filter:function(e){return n=n.filter(e),t}}}}}function p(e,n){return void 0===n&&(n=v),m(e,n)}function h(e){void 0===e&&(e={});var n=m(null);return n.options=f({async:!0,ssr:!1},e),n}var g=p({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),y=p(),b=p(),E=h({async:!0}),w=[],k=o.forwardRef((function(e,n){var t,r=o.useState(),a=r[0],d=r[1],f=o.useRef(),v=o.useRef(!1),m=o.useRef(null),p=e.children,h=e.disabled,b=e.noFocusGuards,k=e.persistentFocus,C=e.crossFrame,N=e.autoFocus,x=(e.allowTextSelection,e.group),O=e.className,F=e.whiteList,M=e.shards,P=void 0===M?w:M,S=e.as,T=void 0===S?"div":S,_=e.lockProps,R=void 0===_?{}:_,I=e.sideCar,A=e.returnFocus,D=e.onActivation,B=e.onDeactivation,L=o.useState({})[0],j=o.useCallback((function(){m.current=m.current||document&&document.activeElement,f.current&&D&&D(f.current),v.current=!0}),[D]),G=o.useCallback((function(){v.current=!1,B&&B(f.current)}),[B]),W=o.useCallback((function(e){var n=m.current;if(Boolean(A)&&n&&n.focus){var t="object"===typeof A?A:void 0;m.current=null,e?Promise.resolve().then((function(){return n.focus(t)})):n.focus(t)}}),[A]),Z=o.useCallback((function(e){v.current&&g.useMedium(e)}),[]),X=y.useMedium,Y=o.useCallback((function(e){f.current!==e&&(f.current=e,d(e))}),[]);var K=(0,u.Z)(((t={})[c]=h&&"disabled",t[i]=x,t),R),U=!0!==b,q=U&&"tail"!==b,$=l([n,Y]);return o.createElement(o.Fragment,null,U&&[o.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:h?-1:0,style:s}),o.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:h?-1:1,style:s})],!h&&o.createElement(I,{id:L,sideCar:E,observed:a,disabled:h,persistentFocus:k,crossFrame:C,autoFocus:N,whiteList:F,shards:P,onActivation:j,onDeactivation:G,returnFocus:W}),o.createElement(T,(0,u.Z)({ref:$},K,{className:O,onBlur:X,onFocus:Z}),p),q&&o.createElement("div",{"data-focus-guard":!0,tabIndex:h?-1:0,style:s}))}));k.propTypes={},k.defaultProps={children:void 0,disabled:!1,returnFocus:!1,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var C=k,N=t(81665),x=t(56666);var O=function(e,n){return function(t){var r,a=[];function u(){r=e(a.map((function(e){return e.props}))),n(r)}var i=function(e){function n(){return e.apply(this,arguments)||this}(0,N.Z)(n,e),n.peek=function(){return r};var i=n.prototype;return i.componentDidMount=function(){a.push(this),u()},i.componentDidUpdate=function(){u()},i.componentWillUnmount=function(){var e=a.indexOf(this);a.splice(e,1),u()},i.render=function(){return o.createElement(t,this.props)},n}(o.PureComponent);return(0,x.Z)(i,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(t)+")"),i}},F=function(e){return"INPUT"===e.tagName&&"radio"===e.type},M=function(e,n){return F(e)&&e.name?function(e,n){return n.filter(F).filter((function(n){return n.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,n):e},P=function(e){return e[0]&&e.length>1?M(e[0],e):e[0]},S=function(e,n){return e.length>1?e.indexOf(M(e[n],e)):n},T=function(e,n){return!e||e===document||e&&e.nodeType===Node.DOCUMENT_NODE||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var n=window.getComputedStyle(e,null);return!(!n||!n.getPropertyValue)&&("none"===n.getPropertyValue("display")||"hidden"===n.getPropertyValue("visibility"))}(e)&&n(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode)},_=function(e,n){var t=e.get(n);if(void 0!==t)return t;var r=T(n,_.bind(void 0,e));return e.set(n,r),r},R=function(e){return Boolean(e&&e.dataset&&e.dataset.focusGuard)},I=function(e){return!R(e)},A=function(e){return Boolean(e)},D="NEW_FOCUS",B=function(e,n,t,r){var o=e.length,a=e[0],u=e[o-1],i=R(t);if(!(e.indexOf(t)>=0)){var c=n.indexOf(t),l=r?n.indexOf(r):c,s=r?e.indexOf(r):-1,d=c-l,f=n.indexOf(a),v=n.indexOf(u),m=function(e){var n=new Set;return e.forEach((function(t){return n.add(M(t,e))})),e.filter((function(e){return n.has(e)}))}(n),p=m.indexOf(t)-(r?m.indexOf(r):c),h=S(e,0),g=S(e,o-1);return-1===c||-1===s?D:!d&&s>=0?s:c<=f&&i&&Math.abs(d)>1?g:c>=v&&i&&Math.abs(d)>1?h:d&&Math.abs(p)>1?s:c<=f?g:c>v?h:d?Math.abs(d)>1?s:(o+s+d)%o:void 0}},L=function(e){for(var n=Array(e.length),t=0;t<e.length;++t)n[t]=e[t];return n},j=function(e){return Array.isArray(e)?e:[e]},G=function(e){return e.parentNode?G(e.parentNode):e},W=function(e){return j(e).filter(Boolean).reduce((function(e,n){var t=n.getAttribute(i);return e.push.apply(e,t?function(e){for(var n=new Set,t=e.length,r=0;r<t;r+=1)for(var o=r+1;o<t;o+=1){var a=e[r].compareDocumentPosition(e[o]);(a&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&n.add(o),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&n.add(r)}return e.filter((function(e,t){return!n.has(t)}))}(L(G(n).querySelectorAll('[data-focus-lock="'+t+'"]:not(['+c+'="disabled"])'))):[n]),e}),[])},Z=function(e,n){var t=e.tabIndex-n.tabIndex,r=e.index-n.index;if(t){if(!e.tabIndex)return 1;if(!n.tabIndex)return-1}return t||r},X=function(e,n,t){return L(e).map((function(e,n){return{node:e,index:n,tabIndex:t&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}})).filter((function(e){return!n||e.tabIndex>=0})).sort(Z)},Y=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),K=Y+", [data-focus-guard]",U=function(e,n){return e.reduce((function(e,t){return e.concat(L(t.querySelectorAll(n?K:Y)),t.parentNode?L(t.parentNode.querySelectorAll(Y)).filter((function(e){return e===t})):[])}),[])},q=function(e,n){return L(e).filter((function(e){return _(n,e)})).filter((function(e){return function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))}(e)}))},$=function(e,n,t){return X(q(U(e,t),n),!0,t)},H=function(e,n){return X(q(U(e),n),!1)},z=function(e,n){return q(function(e){var n=e.querySelectorAll("[data-autofocus-inside]");return L(n).map((function(e){return U([e])})).reduce((function(e,n){return e.concat(n)}),[])}(e),n)},V=function(e,n){return void 0===n&&(n=[]),n.push(e),e.parentNode&&V(e.parentNode,n),n},Q=function(e,n){for(var t=V(e),r=V(n),o=0;o<t.length;o+=1){var a=t[o];if(r.indexOf(a)>=0)return a}return!1},J=function(e,n,t){var r=j(e),o=j(n),a=r[0],u=!1;return o.filter(Boolean).forEach((function(e){u=Q(u||e,e)||u,t.filter(Boolean).forEach((function(e){var n=Q(a,e);n&&(u=!u||n.contains(u)?n:Q(n,u))}))})),u},ee=function(e,n){var t=document&&document.activeElement,r=W(e).filter(I),o=J(t||e,e,r),a=new Map,u=H(r,a),i=$(r,a).filter((function(e){var n=e.node;return I(n)}));if(i[0]||(i=u)[0]){var c,l=H([o],a).map((function(e){return e.node})),s=function(e,n){var t=new Map;return n.forEach((function(e){return t.set(e.node,e)})),e.map((function(e){return t.get(e)})).filter(A)}(l,i),d=s.map((function(e){return e.node})),f=B(d,l,t,n);if(f===D){var v=u.map((function(e){return e.node})).filter((c=function(e,n){return e.reduce((function(e,t){return e.concat(z(t,n))}),[])}(r,a),function(e){return e.autofocus||e.dataset&&!!e.dataset.autofocus||c.indexOf(e)>=0}));return{node:v&&v.length?P(v):P(d)}}return void 0===f?f:s[f]}},ne=0,te=!1,re=function(e,n){var t,r=ee(e,n);if(!te&&r){if(ne>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),te=!0,void setTimeout((function(){te=!1}),1);ne++,(t=r.node).focus(),"contentWindow"in t&&t.contentWindow&&t.contentWindow.focus(),ne--}},oe=function(e){return Boolean(L(e.querySelectorAll("iframe")).some((function(e){return e===document.activeElement})))},ae=function(e){var n=document&&document.activeElement;return!(!n||n.dataset&&n.dataset.focusGuard)&&W(e).reduce((function(e,t){return e||t.contains(n)||oe(t)}),!1)};function ue(e){var n=window.setImmediate;"undefined"!==typeof n?n(e):setTimeout(e,1)}var ie=function(){return document&&document.activeElement===document.body||document&&L(document.querySelectorAll("[data-no-focus-lock]")).some((function(e){return e.contains(document.activeElement)}))},ce=null,le=null,se=null,de=!1,fe=function(){return!0};function ve(e,n,t,r){var o=null,a=e;do{var u=r[a];if(u.guard)u.node.dataset.focusAutoGuard&&(o=u);else{if(!u.lockItem)break;if(a!==e)return;o=null}}while((a+=t)!==n);o&&(o.node.tabIndex=0)}var me=function(e){return e&&"current"in e?e.current:e},pe=function(){var e,n=!1;if(ce){var t=ce,r=t.observed,o=t.persistentFocus,a=t.autoFocus,u=t.shards,i=t.crossFrame,c=r||se&&se.portaledElement,l=document&&document.activeElement;if(c){var s=[c].concat(u.map(me).filter(Boolean));if(l&&!function(e){return(ce.whiteList||fe)(e)}(l)||(o||(i?Boolean(de):"meanwhile"===de)||!ie()||!le&&a)&&(!c||ae(s)||(e=l,se&&se.portaledElement===e)||(document&&!le&&l&&!a?(l.blur&&l.blur(),document.body.focus()):(n=re(s,le),se={})),de=!1,le=document&&document.activeElement),document){var d=document&&document.activeElement,f=function(e){var n=W(e).filter(I),t=J(e,e,n),r=new Map,o=$([t],r,!0),a=$(n,r).filter((function(e){var n=e.node;return I(n)})).map((function(e){return e.node}));return o.map((function(e){var n=e.node;return{node:n,index:e.index,lockItem:a.indexOf(n)>=0,guard:R(n)}}))}(s),v=f.map((function(e){return e.node})).indexOf(d);v>-1&&(f.filter((function(e){var n=e.guard,t=e.node;return n&&t.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),ve(v,f.length,1,f),ve(v,-1,-1,f))}}}return n},he=function(e){pe()&&e&&(e.stopPropagation(),e.preventDefault())},ge=function(){return ue(pe)},ye=function(e){var n=e.target,t=e.currentTarget;t.contains(n)||(se={observerNode:t,portaledElement:n})},be=function(){de="just",setTimeout((function(){de="meanwhile"}),0)};g.assignSyncMedium(ye),y.assignMedium(ge),b.assignMedium((function(e){return e({moveFocusInside:re,focusInside:ae})}));var Ee=O((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var n=e.slice(-1)[0];n&&!ce&&(document.addEventListener("focusin",he,!0),document.addEventListener("focusout",ge),window.addEventListener("blur",be));var t=ce,r=t&&n&&n.id===t.id;ce=n,t&&!r&&(t.onDeactivation(),e.filter((function(e){return e.id===t.id})).length||t.returnFocus(!n)),n?(le=null,r&&t.observed===n.observed||n.onActivation(),pe(),ue(pe)):(document.removeEventListener("focusin",he,!0),document.removeEventListener("focusout",ge),window.removeEventListener("blur",be),le=null)}))((function(){return null})),we=o.forwardRef((function(e,n){return o.createElement(C,(0,u.Z)({sideCar:Ee,ref:n},e))})),ke=C.propTypes||{};ke.sideCar,(0,a.Z)(ke,["sideCar"]);we.propTypes={};var Ce=we,Ne=t(55165),xe=function(e){var n=e.initialFocusRef,t=e.finalFocusRef,r=e.contentRef,a=e.restoreFocus,u=e.children,i=e.isDisabled,c=e.autoFocus,l=e.persistentFocus,s=e.lockFocusAcrossFrames,d=o.useCallback((function(){if(null!=n&&n.current)n.current.focus();else if(null!=r&&r.current){0===(0,Ne.t5)(r.current).length&&(0,Ne.T_)(r.current,{nextTick:!0})}}),[n,r]),f=o.useCallback((function(){var e;null==t||null==(e=t.current)||e.focus()}),[t]),v=a&&!t;return o.createElement(Ce,{crossFrame:s,persistentFocus:l,autoFocus:c,disabled:i,onActivation:d,onDeactivation:f,returnFocus:v},u)};Ne.Ts&&(xe.displayName="FocusLock");var Oe=t(89822),Fe=t(41215),Me=t(32538),Pe=t(72034),Se=t(86847),Te=t(94589),_e=t(58175);var Re=function(){return Re=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},Re.apply(this,arguments)};var Ie="right-scroll-bar-position",Ae="width-before-scroll-bar",De=h(),Be=function(){},Le=o.forwardRef((function(e,n){var t=o.useRef(null),r=o.useState({onScrollCapture:Be,onWheelCapture:Be,onTouchMoveCapture:Be}),a=r[0],u=r[1],i=e.forwardProps,c=e.children,s=e.className,d=e.removeScrollBar,f=e.enabled,v=e.shards,m=e.sideCar,p=e.noIsolation,h=e.inert,g=e.allowPinchZoom,y=e.as,b=void 0===y?"div":y,E=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t}(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=m,k=l([t,n]),C=Re({},E,a);return o.createElement(o.Fragment,null,f&&o.createElement(w,{sideCar:De,removeScrollBar:d,shards:v,noIsolation:p,inert:h,setCallbacks:u,allowPinchZoom:!!g,lockRef:t}),i?o.cloneElement(o.Children.only(c),Re({},C,{ref:k})):o.createElement(b,Re({},C,{className:s,ref:k}),c))}));Le.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Le.classNames={fullWidth:Ae,zeroRight:Ie};var je,Ge=function(e){var n=e.sideCar,t=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t}(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=n.read();if(!r)throw new Error("Sidecar medium not found");return o.createElement(r,f({},t))};Ge.isSideCarExport=!0;function We(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=je||t.nc;return n&&e.setAttribute("nonce",n),e}var Ze=function(){var e=0,n=null;return{add:function(t){var r,o;0==e&&(n=We())&&(o=t,(r=n).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(n)),e++},remove:function(){!--e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},Xe=function(){var e=function(){var e=Ze();return function(n){o.useEffect((function(){return e.add(n),function(){e.remove()}}),[])}}();return function(n){var t=n.styles;return e(t),null}},Ye={left:0,top:0,right:0,gap:0},Ke=function(e){return parseInt(e||"",10)||0},Ue=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return Ye;var n=function(e){var n=window.getComputedStyle(document.body),t=n["padding"===e?"paddingLeft":"marginLeft"],r=n["padding"===e?"paddingTop":"marginTop"],o=n["padding"===e?"paddingRight":"marginRight"];return[Ke(t),Ke(r),Ke(o)]}(e),t=document.documentElement.clientWidth,r=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,r-t+n[2]-n[0])}},qe=Xe(),$e=function(e,n,t,r){var o=e.left,a=e.top,u=e.right,i=e.gap;return void 0===t&&(t="margin"),"\n  .with-scroll-bars-hidden {\n   overflow: hidden "+r+";\n   padding-right: "+i+"px "+r+";\n  }\n  body {\n    overflow: hidden "+r+";\n    "+[n&&"position: relative "+r+";","margin"===t&&"\n    padding-left: "+o+"px;\n    padding-top: "+a+"px;\n    padding-right: "+u+"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: "+i+"px "+r+";\n    ","padding"===t&&"padding-right: "+i+"px "+r+";"].filter(Boolean).join("")+"\n  }\n  \n  ."+Ie+" {\n    right: "+i+"px "+r+";\n  }\n  \n  ."+Ae+" {\n    margin-right: "+i+"px "+r+";\n  }\n  \n  ."+Ie+" ."+Ie+" {\n    right: 0 "+r+";\n  }\n  \n  ."+Ae+" ."+Ae+" {\n    margin-right: 0 "+r+";\n  }\n  \n  body {\n    --removed-body-scroll-bar-size: "+i+"px;\n  }\n"},He=function(e){var n=o.useState(Ue(e.gapMode)),t=n[0],r=n[1];o.useEffect((function(){r(Ue(e.gapMode))}),[e.gapMode]);var a=e.noRelative,u=e.noImportant,i=e.gapMode,c=void 0===i?"margin":i;return o.createElement(qe,{styles:$e(t,!a,c,u?"":"!important")})},ze=function(e,n){var t=n;do{if(Ve(e,t)){var r=Qe(e,t);if(r[1]>r[2])return!0}t=t.parentNode}while(t&&t!==document.body);return!1},Ve=function(e,n){return"v"===e?function(e){var n=window.getComputedStyle(e);return"hidden"!==n.overflowY&&!(n.overflowY===n.overflowX&&"visible"===n.overflowY)}(n):function(e){var n=window.getComputedStyle(e);return"hidden"!==n.overflowX&&!(n.overflowY===n.overflowX&&"visible"===n.overflowX)}(n)},Qe=function(e,n){return"v"===e?[(t=n).scrollTop,t.scrollHeight,t.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(n);var t},Je=!1;if("undefined"!==typeof window)try{var en=Object.defineProperty({},"passive",{get:function(){return Je=!0,!0}});window.addEventListener("test",en,en),window.removeEventListener("test",en,en)}catch(rt){Je=!1}var nn=!!Je&&{passive:!1},tn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},rn=function(e){return[e.deltaX,e.deltaY]},on=function(e){return e&&"current"in e?e.current:e},an=function(e){return"\n  .block-interactivity-"+e+" {pointer-events: none;}\n  .allow-interactivity-"+e+" {pointer-events: all;}\n"},un=0,cn=[];var ln,sn=(ln=function(e){var n=o.useRef([]),t=o.useRef([0,0]),r=o.useRef(),a=o.useState(un++)[0],u=o.useState((function(){return Xe()}))[0],i=o.useRef(e);o.useEffect((function(){i.current=e}),[e]),o.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-"+a);var n=[e.lockRef.current].concat((e.shards||[]).map(on)).filter(Boolean);return n.forEach((function(e){return e.classList.add("allow-interactivity-"+a)})),function(){document.body.classList.remove("block-interactivity-"+a),n.forEach((function(e){return e.classList.remove("allow-interactivity-"+a)}))}}}),[e.inert,e.lockRef.current,e.shards]);var c=o.useCallback((function(e,n){if("touches"in e&&2===e.touches.length)return!i.current.allowPinchZoom;var o,a=tn(e),u=t.current,c="deltaX"in e?e.deltaX:u[0]-a[0],l="deltaY"in e?e.deltaY:u[1]-a[1],s=e.target,d=Math.abs(c)>Math.abs(l)?"h":"v",f=ze(d,s);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=ze(d,s)),!f)return!1;if(!r.current&&"changedTouches"in e&&(c||l)&&(r.current=o),!o)return!0;var v=r.current||o;return function(e,n,t,r,o){var a=r,u=t.target,i=n.contains(u),c=!1,l=a>0,s=0,d=0;do{var f=Qe(e,u),v=f[0],m=f[1]-f[2]-v;(v||m)&&Ve(e,u)&&(s+=m,d+=v),u=u.parentNode}while(!i&&u!==document.body||i&&(n.contains(u)||n===u));return(l&&(o&&0===s||!o&&a>s)||!l&&(o&&0===d||!o&&-a>d))&&(c=!0),c}(v,n,e,"h"===v?c:l,!0)}),[]),l=o.useCallback((function(e){var t=e;if(cn.length&&cn[cn.length-1]===u){var r="deltaY"in t?rn(t):tn(t),o=n.current.filter((function(e){return e.name===t.type&&e.target===t.target&&(n=e.delta,o=r,n[0]===o[0]&&n[1]===o[1]);var n,o}))[0];if(o&&o.should)t.preventDefault();else if(!o){var a=(i.current.shards||[]).map(on).filter(Boolean).filter((function(e){return e.contains(t.target)}));(a.length>0?c(t,a[0]):!i.current.noIsolation)&&t.preventDefault()}}}),[]),s=o.useCallback((function(e,t,r,o){var a={name:e,delta:t,target:r,should:o};n.current.push(a),setTimeout((function(){n.current=n.current.filter((function(e){return e!==a}))}),1)}),[]),d=o.useCallback((function(e){t.current=tn(e),r.current=void 0}),[]),f=o.useCallback((function(n){s(n.type,rn(n),n.target,c(n,e.lockRef.current))}),[]),v=o.useCallback((function(n){s(n.type,tn(n),n.target,c(n,e.lockRef.current))}),[]);o.useEffect((function(){return cn.push(u),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:v}),document.addEventListener("wheel",l,nn),document.addEventListener("touchmove",l,nn),document.addEventListener("touchstart",d,nn),function(){cn=cn.filter((function(e){return e!==u})),document.removeEventListener("wheel",l,nn),document.removeEventListener("touchmove",l,nn),document.removeEventListener("touchstart",d,nn)}}),[]);var m=e.removeScrollBar,p=e.inert;return o.createElement(o.Fragment,null,p?o.createElement(u,{styles:an(a)}):null,m?o.createElement(He,{gapMode:"margin"}):null)},De.useMedium(ln),Ge),dn=o.forwardRef((function(e,n){return o.createElement(Le,Re({},e,{ref:n,sideCar:sn}))}));dn.classNames=Le.classNames;var fn=dn,vn=t(34756),mn=new WeakMap,pn=new WeakMap,hn={},gn=0,yn=function(e,n,t){void 0===n&&(n=function(e){return"undefined"===typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e)),void 0===t&&(t="data-aria-hidden");var r=Array.isArray(e)?e:[e];hn[t]||(hn[t]=new WeakMap);var o=hn[t],a=[],u=new Set,i=function(e){e&&!u.has(e)&&(u.add(e),i(e.parentNode))};r.forEach(i);var c=function(e){!e||r.indexOf(e)>=0||Array.prototype.forEach.call(e.children,(function(e){if(u.has(e))c(e);else{var n=e.getAttribute("aria-hidden"),r=null!==n&&"false"!==n,i=(mn.get(e)||0)+1,l=(o.get(e)||0)+1;mn.set(e,i),o.set(e,l),a.push(e),1===i&&r&&pn.set(e,!0),1===l&&e.setAttribute(t,"true"),r||e.setAttribute("aria-hidden","true")}}))};return c(n),u.clear(),gn++,function(){a.forEach((function(e){var n=mn.get(e)-1,r=o.get(e)-1;mn.set(e,n),o.set(e,r),n||(pn.has(e)||e.removeAttribute("aria-hidden"),pn.delete(e)),r||e.removeAttribute(t)})),--gn||(mn=new WeakMap,mn=new WeakMap,pn=new WeakMap,hn={})}};function bn(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}function En(){return En=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},En.apply(this,arguments)}var wn=["preset"],kn={slideInBottom:En({},Me.Xc,{custom:{offsetY:16,reverse:!0}}),slideInRight:En({},Me.Xc,{custom:{offsetX:16,reverse:!0}}),scale:En({},Me.Qh,{custom:{initialScale:.95,reverse:!0}}),none:{}},Cn=(0,Fe.m$)(Se.E.section),Nn=o.forwardRef((function(e,n){var t=e.preset,r=bn(e,wn),a=kn[t];return o.createElement(Cn,En({ref:n},a,r))})),xn=new(function(){function e(){this.modals=void 0,this.modals=[]}var n=e.prototype;return n.add=function(e){this.modals.push(e)},n.remove=function(e){this.modals=this.modals.filter((function(n){return n!==e}))},n.isTopModal=function(e){return this.modals[this.modals.length-1]===e},e}());function On(e){var n=e.isOpen,t=e.onClose,r=e.id,a=e.closeOnOverlayClick,u=void 0===a||a,i=e.closeOnEsc,c=void 0===i||i,l=e.useInert,s=void 0===l||l,d=e.onOverlayClick,f=e.onEsc,v=(0,o.useRef)(null),m=(0,o.useRef)(null),p=(0,vn.ZS)(r,"chakra-modal","chakra-modal--header","chakra-modal--body"),h=p[0],g=p[1],y=p[2];!function(e,n){var t=e.current;(0,o.useEffect)((function(){if(e.current&&n)return yn(e.current)}),[n,e,t])}(v,n&&s),function(e,n){(0,o.useEffect)((function(){return n&&xn.add(e),function(){xn.remove(e)}}),[n,e])}(v,n);var b=(0,o.useRef)(null),E=(0,o.useCallback)((function(e){b.current=e.target}),[]),w=(0,o.useCallback)((function(e){"Escape"===e.key&&(e.stopPropagation(),c&&(null==t||t()),null==f||f())}),[c,t,f]),k=(0,o.useState)(!1),C=k[0],N=k[1],x=(0,o.useState)(!1),O=x[0],F=x[1],M=(0,o.useCallback)((function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),En({role:"dialog"},e,{ref:(0,Pe.lq)(n,v),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":C?g:void 0,"aria-describedby":O?y:void 0,onClick:(0,Ne.v0)(e.onClick,(function(e){return e.stopPropagation()}))})}),[y,O,h,g,C]),P=(0,o.useCallback)((function(e){e.stopPropagation(),b.current===e.target&&xn.isTopModal(v)&&(u&&(null==t||t()),null==d||d())}),[t,u,d]),S=(0,o.useCallback)((function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),En({},e,{ref:(0,Pe.lq)(n,m),onClick:(0,Ne.v0)(e.onClick,P),onKeyDown:(0,Ne.v0)(e.onKeyDown,w),onMouseDown:(0,Ne.v0)(e.onMouseDown,E)})}),[w,E,P]);return{isOpen:n,onClose:t,headerId:g,bodyId:y,setBodyMounted:F,setHeaderMounted:N,dialogRef:v,overlayRef:m,getDialogProps:M,getDialogContainerProps:S}}var Fn=["className","children","containerProps"],Mn=["className","transition"],Pn=["className"],Sn=["className"],Tn=["className"],_n=["onClick","className"],Rn=(0,Pe.kr)({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),In=Rn[0],An=Rn[1],Dn=function(e){var n=e.portalProps,t=e.children,r=e.autoFocus,a=e.trapFocus,u=e.initialFocusRef,i=e.finalFocusRef,c=e.returnFocusOnClose,l=e.blockScrollOnMount,s=e.allowPinchZoom,d=e.preserveScrollBarGap,f=e.motionPreset,v=e.lockFocusAcrossFrames,m=e.onCloseComplete,p=(0,Fe.jC)("Modal",e),h=En({},On(e),{autoFocus:r,trapFocus:a,initialFocusRef:u,finalFocusRef:i,returnFocusOnClose:c,blockScrollOnMount:l,allowPinchZoom:s,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:v});return o.createElement(In,{value:h},o.createElement(Fe.Fo,{value:p},o.createElement(Te.M,{onExitComplete:m},h.isOpen&&o.createElement(Oe.h_,n,t))))};Dn.defaultProps={lockFocusAcrossFrames:!0,returnFocusOnClose:!0,scrollBehavior:"outside",trapFocus:!0,autoFocus:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale"},Ne.Ts&&(Dn.displayName="Modal");var Bn=(0,Fe.m$)(Se.E.div),Ln=(0,Fe.Gp)((function(e,n){var t=e.className,r=e.children,a=e.containerProps,u=bn(e,Fn),i=An(),c=i.getDialogProps,l=i.getDialogContainerProps,s=c(u,n),d=l(a),f=(0,Ne.cx)("chakra-modal__content",t),v=(0,Fe.yK)(),m=En({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0},v.dialog),p=En({display:"flex",width:"100vw",height:"100vh","@supports(height: -webkit-fill-available)":{height:"-webkit-fill-available"},position:"fixed",left:0,top:0},v.dialogContainer),h=An().motionPreset;return o.createElement(jn,null,o.createElement(Fe.m$.div,En({},d,{className:"chakra-modal__content-container",tabIndex:-1,__css:p}),o.createElement(Nn,En({preset:h,className:f},s,{__css:m}),r)))}));function jn(e){var n=An(),t=n.autoFocus,r=n.trapFocus,a=n.dialogRef,u=n.initialFocusRef,i=n.blockScrollOnMount,c=n.allowPinchZoom,l=n.finalFocusRef,s=n.returnFocusOnClose,d=n.preserveScrollBarGap,f=n.lockFocusAcrossFrames,v=(0,_e.oO)(),m=v[0],p=v[1];return o.useEffect((function(){!m&&p&&setTimeout(p)}),[m,p]),o.createElement(xe,{autoFocus:t,isDisabled:!r,initialFocusRef:u,finalFocusRef:l,restoreFocus:s,contentRef:a,lockFocusAcrossFrames:f},o.createElement(fn,{removeScrollBar:!d,allowPinchZoom:c,enabled:i,forwardProps:!0},e.children))}Ne.Ts&&(Ln.displayName="ModalContent");var Gn=(0,Fe.Gp)((function(e,n){var t=e.className;e.transition;var r=bn(e,Mn),a=(0,Ne.cx)("chakra-modal__overlay",t),u=En({pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh"},(0,Fe.yK)().overlay),i="none"===An().motionPreset?{}:Me.uf;return o.createElement(Bn,En({},i,{__css:u,ref:n,className:a},r))}));Ne.Ts&&(Gn.displayName="ModalOverlay");var Wn=(0,Fe.Gp)((function(e,n){var t=e.className,r=bn(e,Pn),a=An(),u=a.headerId,i=a.setHeaderMounted;o.useEffect((function(){return i(!0),function(){return i(!1)}}),[i]);var c=(0,Ne.cx)("chakra-modal__header",t),l=En({flex:0},(0,Fe.yK)().header);return o.createElement(Fe.m$.header,En({ref:n,className:c,id:u},r,{__css:l}))}));Ne.Ts&&(Wn.displayName="ModalHeader");var Zn=(0,Fe.Gp)((function(e,n){var t=e.className,r=bn(e,Sn),a=An(),u=a.bodyId,i=a.setBodyMounted;o.useEffect((function(){return i(!0),function(){return i(!1)}}),[i]);var c=(0,Ne.cx)("chakra-modal__body",t),l=(0,Fe.yK)();return o.createElement(Fe.m$.div,En({ref:n,className:c,id:u},r,{__css:l.body}))}));Ne.Ts&&(Zn.displayName="ModalBody");var Xn=(0,Fe.Gp)((function(e,n){var t=e.className,r=bn(e,Tn),a=(0,Ne.cx)("chakra-modal__footer",t),u=En({display:"flex",alignItems:"center",justifyContent:"flex-end"},(0,Fe.yK)().footer);return o.createElement(Fe.m$.footer,En({ref:n},r,{__css:u,className:a}))}));Ne.Ts&&(Xn.displayName="ModalFooter");var Yn=(0,Fe.Gp)((function(e,n){var t=e.onClick,a=e.className,u=bn(e,_n),i=An().onClose,c=(0,Ne.cx)("chakra-modal__close-btn",a),l=(0,Fe.yK)();return o.createElement(r.P,En({ref:n,__css:l.closeButton,className:c,onClick:(0,Ne.v0)(t,(function(e){e.stopPropagation(),i()}))},u))}));Ne.Ts&&(Yn.displayName="ModalCloseButton");var Kn=["leastDestructiveRef"];function Un(e){var n=e.leastDestructiveRef,t=bn(e,Kn);return o.createElement(Dn,En({},t,{initialFocusRef:n}))}var qn=(0,Fe.Gp)((function(e,n){return o.createElement(Ln,En({ref:n,role:"alertdialog"},e))})),$n=["isOpen","onClose","placement","children"],Hn=["className","children"],zn=(0,Pe.kr)(),Vn=zn[0],Qn=zn[1],Jn={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function et(e){var n,t=e.isOpen,r=e.onClose,a=e.placement,u=void 0===a?"right":a,i=e.children,c=bn(e,$n),l=(0,Fe.Fg)(),s=null==(n=l.components)?void 0:n.Drawer,d=function(e,n){var t,r;if(e)return null!=(t=null==(r=Jn[e])?void 0:r[n])?t:e}(u,l.direction);return o.createElement(Vn,{value:{placement:d}},o.createElement(Dn,En({isOpen:t,onClose:r,styleConfig:s},c),i))}var nt=(0,Fe.m$)(Me.Mi),tt=(0,Fe.Gp)((function(e,n){var t=e.className,r=e.children,a=bn(e,Hn),u=An(),i=u.getDialogProps,c=u.getDialogContainerProps,l=u.isOpen,s=i(a,n),d=c(),f=(0,Ne.cx)("chakra-modal__content",t),v=(0,Fe.yK)(),m=En({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0},v.dialog),p=En({display:"flex",width:"100vw",height:"100vh",position:"fixed",left:0,top:0},v.dialogContainer),h=Qn().placement;return o.createElement(Fe.m$.div,En({},d,{className:"chakra-modal__content-container",__css:p}),o.createElement(jn,null,o.createElement(nt,En({direction:h,in:l,className:f},s,{__css:m}),r)))}));Ne.Ts&&(tt.displayName="DrawerContent")}}]);