"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[48943],{9576:(e,t,n)=>{n.d(t,{K:()=>b});var o=n(25095);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n0){var n=e[e.length-1];n!==t&&n._setPausedState(!0)}var o=e.indexOf(t);-1===o||e.splice(o,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)}},c=function(e){return(null==e?void 0:e.key)==="Tab"||(null==e?void 0:e.keyCode)===9},u=function(e){return c(e)&&!e.shiftKey},l=function(e){return c(e)&&e.shiftKey},d=function(e){return setTimeout(e,0)},v=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:{},o=n.hasFallback,i=n.params,s=m[e];if("function"==typeof s&&(s=s.apply(void 0,function(e){if(Array.isArray(e))return a(e)}(t=void 0===i?[]:i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return a(e,void 0);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),!0===s&&(s=void 0),!s){if(void 0===s||!1===s)return s;throw Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var c=s;if("string"==typeof s){try{c=r.querySelector(s)}catch(t){throw Error("`".concat(e,'` appears to be an invalid selector; error="').concat(t.message,'"'))}if(!c&&!(void 0!==o&&o))throw Error("`".concat(e,"` as selector refers to no known node"))}return c},w=function(){var e=E("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!(0,o.tp)(e,m.tabbableOptions))if(g(r.activeElement)>=0)e=r.activeElement;else{var t=h.tabbableGroups[0];e=t&&t.firstTabbableNode||E("fallbackFocus")}else null===e&&(e=E("fallbackFocus"));if(!e)throw Error("Your focus-trap needs to have at least one focusable element");return e},N=function(){if(h.containerGroups=h.containers.map(function(e){var t=(0,o.Kr)(e,m.tabbableOptions),n=(0,o.nq)(e,m.tabbableOptions),a=t.length>0?t[0]:void 0,r=t.length>0?t[t.length-1]:void 0,i=n.find(function(e){return(0,o.AO)(e)}),s=n.slice().reverse().find(function(e){return(0,o.AO)(e)}),c=!!t.find(function(e){return(0,o.yT)(e)>0});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:c,firstTabbableNode:a,lastTabbableNode:r,firstDomTabbableNode:i,lastDomTabbableNode:s,nextTabbableNode:function(e){var a=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=t.indexOf(e);return r<0?a?n.slice(n.indexOf(e)+1).find(function(e){return(0,o.AO)(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return(0,o.AO)(e)}):(0,t[r+(a?1:-1)])}}}),h.tabbableGroups=h.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),h.tabbableGroups.length<=0&&!E("fallbackFocus"))throw Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(h.containerGroups.find(function(e){return e.posTabIndexesFound})&&h.containerGroups.length>1)throw Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},O=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?O(t.shadowRoot):t},T=function(e){if(!1!==e&&e!==O(document)){if(!e||!e.focus){T(w());return}e.focus({preventScroll:!!m.preventScroll}),h.mostRecentlyFocusedNode=e,e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select&&e.select()}},P=function(e){var t=E("setReturnFocus",{params:[e]});return t||!1!==t&&e},x=function(e){var t=e.target,n=e.event,a=e.isBackward,r=void 0!==a&&a;t=t||f(n),N();var i=null;if(h.tabbableGroups.length>0){var s=g(t,n),u=s>=0?h.containerGroups[s]:void 0;if(s<0)i=r?h.tabbableGroups[h.tabbableGroups.length-1].lastTabbableNode:h.tabbableGroups[0].firstTabbableNode;else if(r){var l=h.tabbableGroups.findIndex(function(e){var n=e.firstTabbableNode;return t===n});if(l<0&&(u.container===t||(0,o.tp)(t,m.tabbableOptions)&&!(0,o.AO)(t,m.tabbableOptions)&&!u.nextTabbableNode(t,!1))&&(l=s),l>=0){var d=0===l?h.tabbableGroups.length-1:l-1,v=h.tabbableGroups[d];i=(0,o.yT)(t)>=0?v.lastTabbableNode:v.lastDomTabbableNode}else c(n)||(i=u.nextTabbableNode(t,!1))}else{var p=h.tabbableGroups.findIndex(function(e){var n=e.lastTabbableNode;return t===n});if(p<0&&(u.container===t||(0,o.tp)(t,m.tabbableOptions)&&!(0,o.AO)(t,m.tabbableOptions)&&!u.nextTabbableNode(t))&&(p=s),p>=0){var b=p===h.tabbableGroups.length-1?0:p+1,y=h.tabbableGroups[b];i=(0,o.yT)(t)>=0?y.firstTabbableNode:y.firstDomTabbableNode}else c(n)||(i=u.nextTabbableNode(t))}}else i=E("fallbackFocus");return i},F=function(e){if(!(g(f(e),e)>=0)){if(v(m.clickOutsideDeactivates,e)){n.deactivate({returnFocus:m.returnFocusOnDeactivate});return}v(m.allowOutsideClick,e)||e.preventDefault()}},A=function(e){var t=f(e),n=g(t,e)>=0;if(n||t instanceof Document)n&&(h.mostRecentlyFocusedNode=t);else{e.stopImmediatePropagation();var a,r=!0;if(h.mostRecentlyFocusedNode)if((0,o.yT)(h.mostRecentlyFocusedNode)>0){var i=g(h.mostRecentlyFocusedNode),s=h.containerGroups[i].tabbableNodes;if(s.length>0){var c=s.findIndex(function(e){return e===h.mostRecentlyFocusedNode});c>=0&&(m.isKeyForward(h.recentNavEvent)?c+1=0&&(a=s[c-1],r=!1))}}else h.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return(0,o.yT)(e)>0})})||(r=!1);else r=!1;r&&(a=x({target:h.mostRecentlyFocusedNode,isBackward:m.isKeyBackward(h.recentNavEvent)})),a?T(a):T(h.mostRecentlyFocusedNode||w())}h.recentNavEvent=void 0},C=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];h.recentNavEvent=e;var n=x({event:e,isBackward:t});n&&(c(e)&&e.preventDefault(),T(n))},k=function(e){(m.isKeyForward(e)||m.isKeyBackward(e))&&C(e,m.isKeyBackward(e))},D=function(e){((null==e?void 0:e.key)==="Escape"||(null==e?void 0:e.key)==="Esc"||(null==e?void 0:e.keyCode)===27)&&!1!==v(m.escapeDeactivates,e)&&(e.preventDefault(),n.deactivate())},G=function(e){!(g(f(e),e)>=0||v(m.clickOutsideDeactivates,e))&&(v(m.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation()))},L=function(){if(h.active)return s.activateTrap(b,n),h.delayInitialFocusTimer=m.delayInitialFocus?d(function(){T(w())}):T(w()),r.addEventListener("focusin",A,!0),r.addEventListener("mousedown",F,{capture:!0,passive:!1}),r.addEventListener("touchstart",F,{capture:!0,passive:!1}),r.addEventListener("click",G,{capture:!0,passive:!1}),r.addEventListener("keydown",k,{capture:!0,passive:!1}),r.addEventListener("keydown",D),n},R=function(){if(h.active)return r.removeEventListener("focusin",A,!0),r.removeEventListener("mousedown",F,!0),r.removeEventListener("touchstart",F,!0),r.removeEventListener("click",G,!0),r.removeEventListener("keydown",k,!0),r.removeEventListener("keydown",D),n},S="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===h.mostRecentlyFocusedNode})})&&T(w())}):void 0,I=function(){S&&(S.disconnect(),h.active&&!h.paused&&h.containers.map(function(e){S.observe(e,{subtree:!0,childList:!0})}))};return Object.defineProperties(n={get active(){return h.active},get paused(){return h.paused},activate:function(e){if(h.active)return this;var t=y(e,"onActivate"),n=y(e,"onPostActivate"),o=y(e,"checkCanFocusTrap");o||N(),h.active=!0,h.paused=!1,h.nodeFocusedBeforeActivation=r.activeElement,null==t||t();var a=function(){o&&N(),L(),I(),null==n||n()};return o?o(h.containers.concat()).then(a,a):a(),this},deactivate:function(e){if(!h.active)return this;var t=i({onDeactivate:m.onDeactivate,onPostDeactivate:m.onPostDeactivate,checkCanReturnFocus:m.checkCanReturnFocus},e);clearTimeout(h.delayInitialFocusTimer),h.delayInitialFocusTimer=void 0,R(),h.active=!1,h.paused=!1,I(),s.deactivateTrap(b,n);var o=y(t,"onDeactivate"),a=y(t,"onPostDeactivate"),r=y(t,"checkCanReturnFocus"),c=y(t,"returnFocus","returnFocusOnDeactivate");null==o||o();var u=function(){d(function(){c&&T(P(h.nodeFocusedBeforeActivation)),null==a||a()})};return c&&r?r(P(h.nodeFocusedBeforeActivation)).then(u,u):u(),this},pause:function(e){return h.active?(h.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return h.active?(h.manuallyPaused=!1,b[b.length-1]!==this)?this:this._setPausedState(!1,e):this},updateContainerElements:function(e){return h.containers=[].concat(e).filter(Boolean).map(function(e){return"string"==typeof e?r.querySelector(e):e}),h.active&&N(),I(),this}},{_isManuallyPaused:{value:function(){return h.manuallyPaused}},_setPausedState:{value:function(e,t){if(h.paused===e)return this;if(h.paused=e,e){var n=y(t,"onPause"),o=y(t,"onPostPause");null==n||n(),R(),I(),null==o||o()}else{var a=y(t,"onUnpause"),r=y(t,"onPostUnpause");null==a||a(),N(),L(),I(),null==r||r()}return this}}}),n.updateContainerElements(e),n}},44052:(e,t,n)=>{n.d(t,{A:()=>v});var o=n(79630),a=n(93495),r=n(76016);function i(e,t){return e.replace(RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var s=n(12115),c=n(31097),u=n(90170),l=function(e,t){return e&&t&&t.split(" ").forEach(function(t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=i(e.className,t):e.setAttribute("class",i(e.className&&e.className.baseVal||"",t))})},d=function(e){function t(){for(var t,n=arguments.length,o=Array(n),a=0;a{n.d(t,{mh:()=>m,qY:()=>h});var o=!1;if("undefined"!=typeof window){var a={get passive(){o=!0;return}};window.addEventListener("testPassive",null,a),window.removeEventListener("testPassive",null,a)}var r="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),i=[],s=!1,c=-1,u=void 0,l=void 0,d=function(e){return i.some(function(t){return!!(t.options.allowTouchMove&&t.options.allowTouchMove(e))})},v=function(e){var t=e||window.event;return!!d(t.target)||t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1)},f=function(e){if(void 0===l){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(l=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===u&&(u=document.body.style.overflow,document.body.style.overflow="hidden")},p=function(){void 0!==l&&(document.body.style.paddingRight=l,l=void 0),void 0!==u&&(document.body.style.overflow=u,u=void 0)},b=function(e,t){var n=e.targetTouches[0].clientY-c;return!d(e.target)&&(t&&0===t.scrollTop&&n>0?v(e):t&&t.scrollHeight-t.scrollTop<=t.clientHeight&&n<0?v(e):(e.stopPropagation(),!0))},m=function(e,t){if(!e){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}i.some(function(t){return t.targetElement===e})||(i=[].concat(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,n=Array(e.length);t