vendor: 4,914 bytes, lines 1-4
1(()=>{(function(){try{var M=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{},V=new M.Error().stack;V&&(M._sentryDebugIds=M._sentryDebugIds||{},M._sentryDebugIds[V]="b9753774-51b0-4df4-a3e7-faec90fc53f4",M._sentryDebugIdIdentifier="sentry-dbid-b9753774-51b0-4df4-a3e7-faec90fc53f4")}catch(K){}})();(self.webpackChunkdice_web=self.webpackChunkdice_web||[]).push([[94708],{49054:((M,V,K)=>{K.r(V),K.d(V,{focusable:()=>b,getTabIndex:()=>U,isFocusable:()=>O,isTabbable:()=>u,tabbable:()=>m});/*! 2* tabbable 6.5.0 3* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE 4*/var k=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],_=k.join(","),H=typeof Element=="undefined",B=H?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,G=!H&&Element.prototype.getRootNode?function(p){var e;return p==null||(e=p.getRootNode)===null||e===void 0?void 0:e.call(p)}:function(p){return p==null?void 0:p.ownerDocument},Z=function(e,o){var c;o===void 0&&(o=!0);var f=e==null||(c=e.getAttribute)===null||c===void 0?void 0:c.call(e,"inert"),E=f===""||f==="true",w=E||o&&e&&(typeof e.closest=="function"?e.closest("[inert]"):Z(e.parentNode));return w},ie=function(e){var o,c=e==null||(o=e.getAttribute)===null||o===void 0?void 0:o.call(e,"contenteditable");return c===""||c==="true"},Q=function(e,o,c){if(Z(e))return[];var f=Array.prototype.slice.apply(e.querySelectorAll(_));return o&&B.call(e,_)&&f.unshift(e),f=f.filter(c),f},W=function(e,o,c){for(var f=[],E=Array.from(e);E.length;){var w=E.shift();if(!Z(w,!1))if(w.tagName==="SLOT"){var P=w.assignedElements(),C=P.length?P:w.children,A=W(C,!0,c);c.flatten?f.push.apply(f,A):f.push({scopeParent:w,candidates:A})}else{var z=B.call(w,_);z&&c.filter(w)&&(o||!e.includes(w))&&f.push(w);var R=w.shadowRoot||typeof c.getShadowRoot=="function"&&c.getShadowRoot(w),ae=!Z(R,!1)&&(!c.shadowRootFilter||c.shadowRootFilter(w));if(R&&ae){var le=W(R===!0?w.children:R.children,!0,c);c.flatten?f.push.apply(f,le):f.push({scopeParent:w,candidates:le})}else E.unshift.apply(E,w.children)}}return f},ee=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},U=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||ie(e))&&!ee(e)?0:e.tabIndex},oe=function(e,o){var c=U(e);return c<0&&o&&!ee(e)?0:c},$=function(e,o){return e.tabIndex===o.tabIndex?e.documentOrder-o.documentOrder:e.tabIndex-o.tabIndex},I=function(e){return e.tagName==="INPUT"},re=function(e){return I(e)&&e.type==="hidden"},ue=function(e){var o=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(c){return c.tagName==="SUMMARY"});return o},L=function(e,o){for(var c=0;c<e.length;c++)if(e[c].checked&&e[c].form===o)return e[c]},se=function(e){if(!e.name)return!0;var o=e.form||G(e),c=function(P){return o.querySelectorAll('input[type="radio"][name="'+P+'"]')},f;if(typeof window!="undefined"&&typeof window.CSS!="undefined"&&typeof window.CSS.escape=="function")f=c(window.CSS.escape(e.name));else try{f=c(e.name)}catch(w){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",w.message),!1}var E=L(f,e.form);return!E||E===e},ce=function(e){return I(e)&&e.type==="radio"},ne=function(e){return ce(e)&&!se(e)},q=function(e){var o,c=e&&G(e),f=(o=c)===null||o===void 0?void 0:o.host,E=!1;if(c&&c!==e){var w,P,C;for(E=!!((w=f)!==null&&w!==void 0&&(P=w.ownerDocument)!==null&&P!==void 0&&P.contains(f)||e!=null&&(C=e.ownerDocument)!==null&&C!==void 0&&C.contains(e));!E&&f;){var A,z,R;c=G(f),f=(A=c)===null||A===void 0?void 0:A.host,E=!!((z=f)!==null&&z!==void 0&&(R=z.ownerDocument)!==null&&R!==void 0&&R.contains(f))}}return E},Y=function(e){var o=e.getBoundingClientRect(),c=o.width,f=o.height;return c===0&&f===0},te=function(e,o){var c=o.displayCheck,f=o.getShadowRoot;if(c==="full-native"&&"checkVisibility"in e){var E=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!E}var w=getComputedStyle(e),P=w.visibility;if(P==="hidden"||P==="collapse")return!0;var C=B.call(e,"details>summary:first-of-type"),A=C?e.parentElement:e;if(B.call(A,"details:not([open]) *"))return!0;
vendor: 4,167 bytes, lines 4-9
4if(!c||c==="full"||c==="full-native"||c==="legacy-full"){if(typeof f=="function"){for(var z=e;e;){var R=e.parentElement,ae=G(e);if(R&&!R.shadowRoot&&f(R)===!0)return Y(e);e.assignedSlot?e=e.assignedSlot:!R&&ae!==e.ownerDocument?e=ae.host:e=R}e=z}if(q(e))return!e.getClientRects().length;if(c!=="legacy-full")return!0}else if(c==="non-zero-area")return Y(e);return!1},d=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var o=e.parentElement;o;){if(o.tagName==="FIELDSET"&&o.disabled){for(var c=0;c<o.children.length;c++){var f=o.children.item(c);if(f.tagName==="LEGEND")return B.call(o,"fieldset[disabled] *")?!0:!f.contains(e)}return!0}o=o.parentElement}return!1},a=function(e,o){return!(o.disabled||re(o)||te(o,e)||ue(o)||d(o))},r=function(e,o){return!(ne(o)||U(o)<0||!a(e,o))},t=function(e){var o=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(o)||o>=0)},s=function(e){var o=[],c=[];return e.forEach(function(f,E){var w=!!f.scopeParent,P=w?f.scopeParent:f,C=oe(P,w),A=w?s(f.candidates):P;C===0?w?o.push.apply(o,A):o.push(P):c.push({documentOrder:E,tabIndex:C,item:f,isScope:w,content:A})}),c.sort($).reduce(function(f,E){return E.isScope?f.push.apply(f,E.content):f.push(E.content),f},[]).concat(o)},m=function(e,o){o=o||{};var c;return o.getShadowRoot?c=W([e],o.includeContainer,{filter:r.bind(null,o),flatten:!1,getShadowRoot:o.getShadowRoot,shadowRootFilter:t}):c=Q(e,o.includeContainer,r.bind(null,o)),s(c)},b=function(e,o){o=o||{};var c;return o.getShadowRoot?c=W([e],o.includeContainer,{filter:a.bind(null,o),flatten:!0,getShadowRoot:o.getShadowRoot}):c=Q(e,o.includeContainer,a.bind(null,o)),c},u=function(e,o){if(o=o||{},!e)throw new Error("No node provided");return B.call(e,_)===!1?!1:r(o,e)},v=k.concat("iframe:not([inert]):not([inert] *)").join(","),O=function(e,o){if(o=o||{},!e)throw new Error("No node provided");return B.call(e,v)===!1?!1:a(o,e)}}),52697:((M,V,K)=>{K.r(V),K.d(V,{createFocusTrap:()=>d});var k=K(49054);/*! 5* focus-trap 8.2.2 6* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE 7*/function _(a,r){(r==null||r>a.length)&&(r=a.length);for(var t=0,s=Array(r);t<r;t++)s[t]=a[t];return s}function H(a){if(Array.isArray(a))return _(a)}function B(a,r){var t=typeof Symbol!="undefined"&&a[Symbol.iterator]||a["@@iterator"];if(!t){if(Array.isArray(a)||(t=$(a))||r){t&&(a=t);var s=0,m=function(){};return{s:m,n:function(){return s>=a.length?{done:!0}:{done:!1,value:a[s++]}},e:function(O){throw O},f:m}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 8In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var b,u=!0,v=!1;return{s:function(){t=t.call(a)},n:function(){var O=t.next();return u=O.done,O},e:function(O){v=!0,b=O},f:function(){try{u||t.return==null||t.return()}finally{if(v)throw b}}}}function G(a,r,t){return(r=oe(r))in a?Object.defineProperty(a,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[r]=t,a}function Z(a){if(typeof Symbol!="undefined"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function ie(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 9In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q(a,r){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);r&&(s=s.filter(function(m){return Object.getOwnPropertyDescriptor(a,m).enumerable})),t.push.apply(t,s)}return t}function W(a){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Q(Object(t),!0).forEach(function(s){G(a,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):Q(Object(t)).forEach(function(s){Object.defineProperty(a,s,Object.getOwnPropertyDescriptor(t,s))})}return a}function ee(a){return H(a)||Z(a)||$(a)||ie()}function U(a,r){if(typeof a!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var s=t.call(a,r);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(a)}function oe(a){var r=U(a,"string");return typeof r=="symbol"?r:r+""}
vendor: 4,931 bytes, line 9
9function $(a,r){if(a){if(typeof a=="string")return _(a,r);var t={}.toString.call(a).slice(8,-1);return t==="Object"&&a.constructor&&(t=a.constructor.name),t==="Map"||t==="Set"?Array.from(a):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_(a,r):void 0}}var I={getActiveTrap:function(r){return(r==null?void 0:r.length)>0?r[r.length-1]:null},activateTrap:function(r,t){var s=I.getActiveTrap(r);t!==s&&I.pauseTrap(r);var m=r.indexOf(t);m===-1||r.splice(m,1),r.push(t)},deactivateTrap:function(r,t){var s=r.indexOf(t);s!==-1&&r.splice(s,1),I.unpauseTrap(r)},pauseTrap:function(r){var t=I.getActiveTrap(r);t==null||t._setPausedState(!0)},unpauseTrap:function(r){var t=I.getActiveTrap(r);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},re=function(r){return r.tagName&&r.tagName.toLowerCase()==="input"&&typeof r.select=="function"},ue=function(r){return(r==null?void 0:r.key)==="Escape"||(r==null?void 0:r.key)==="Esc"||(r==null?void 0:r.keyCode)===27},L=function(r){return(r==null?void 0:r.key)==="Tab"||(r==null?void 0:r.keyCode)===9},se=function(r){return L(r)&&!r.shiftKey},ce=function(r){return L(r)&&r.shiftKey},ne=function(r){return setTimeout(r,0)},q=function(r){for(var t=arguments.length,s=new Array(t>1?t-1:0),m=1;m<t;m++)s[m-1]=arguments[m];return typeof r=="function"?r.apply(void 0,s):r},Y=function(r){return r.target.shadowRoot&&typeof r.composedPath=="function"?r.composedPath()[0]:r.target},te=[],d=function(r,t){var s=(t==null?void 0:t.document)||document,m=(t==null?void 0:t.trapStack)||te,b=W({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,delayReturnFocus:!0,isolateSubtrees:!1,isKeyForward:se,isKeyBackward:ce},t),u={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},v,O=function(n,i,l){return n&&n[i]!==void 0?n[i]:b[l||i]},p=function(n,i){var l=typeof(i==null?void 0:i.composedPath)=="function"?i.composedPath():void 0;return u.containerGroups.findIndex(function(g){var y=g.container,S=g.tabbableNodes;return y.contains(n)||(l==null?void 0:l.includes(y))||S.find(function(h){return h===n})})},e=function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=i.hasFallback,g=l===void 0?!1:l,y=i.params,S=y===void 0?[]:y,h=b[n];if(typeof h=="function"&&(h=h.apply(void 0,ee(S))),h===!0&&(h=void 0),!h){if(h===void 0||h===!1)return h;throw new Error("`".concat(n,"` was specified but was not a node, or did not return a node"))}var F=h;if(typeof h=="string"){try{F=s.querySelector(h)}catch(T){throw new Error("`".concat(n,'` appears to be an invalid selector; error="').concat(T.message,'"'))}if(!F&&!g)throw new Error("`".concat(n,"` as selector refers to no known node"))}return F},o=function(n){var i=n.activeElement;return i?i.shadowRoot&&i.shadowRoot.activeElement!==null?o(i.shadowRoot):i:null},c=function(){var n=e("initialFocus",{hasFallback:!0});if(n===!1)return!1;if(n===void 0||n&&!(0,k.isFocusable)(n,b.tabbableOptions)){var i=o(s);if(p(i)>=0)n=i;else{var l=u.tabbableGroups[0],g=l&&l.firstTabbableNode;n=g||e("fallbackFocus")}}else n===null&&(n=e("fallbackFocus"));if(!n)throw new Error("Your focus-trap needs to have at least one focusable element");return n},f=function(){if(u.containerGroups=u.containers.map(function(n){var i=(0,k.tabbable)(n,b.tabbableOptions),l=(0,k.focusable)(n,b.tabbableOptions),g=i.length>0?i[0]:void 0,y=i.length>0?i[i.length-1]:void 0,S=l.find(function(T){return(0,k.isTabbable)(T)}),h=l.slice().reverse().find(function(T){return(0,k.isTabbable)(T)}),F=!!i.find(function(T){return(0,k.getTabIndex)(T)>0});return{container:n,tabbableNodes:i,focusableNodes:l,posTabIndexesFound:F,firstTabbableNode:g,lastTabbableNode:y,firstDomTabbableNode:S,lastDomTabbableNode:h,nextTabbableNode:function(N){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,x=i.indexOf(N);return x<0?j?l.slice(l.indexOf(N)+1).find(function(X){return(0,k.isTabbable)(X)}):l.slice(0,l.indexOf(N)).reverse().find(function(X){return(0,k.isTabbable)(X)}):i[x+(j?1:-1)]}}}),u.tabbableGroups=u.containerGroups.filter(function(n){return n.tabbableNodes.length>0}),u.tabbableGroups.length<=0&&!e("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(u.containerGroups.find(function(n){return n.posTabIndexesFound})&&u.containerGroups.length>1)throw new 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.")},E=function(n){if(n!==!1&&n!==o(document)){if(!n||!n.focus){E(c());return}n.focus({preventScroll:!!b.preventScroll}),u.mostRecentlyFocusedNode=n,re(n)&&n.select()}},w=function(n){var i=e("setReturnFocus",{params:[n]});
vendor: 8,200 bytes, line 9
9return i||(i===!1?!1:n)},P=function(n){var i=n.target,l=n.event,g=n.isBackward,y=g===void 0?!1:g;i=i||Y(l),f();var S=null;if(u.tabbableGroups.length>0){var h=p(i,l),F=h>=0?u.containerGroups[h]:void 0;if(h<0)y?S=u.tabbableGroups[u.tabbableGroups.length-1].lastTabbableNode:S=u.tabbableGroups[0].firstTabbableNode;else if(y){var T=u.tabbableGroups.findIndex(function(ve){var be=ve.firstTabbableNode;return i===be});if(T<0&&(F.container===i||(0,k.isFocusable)(i,b.tabbableOptions)&&!(0,k.isTabbable)(i,b.tabbableOptions)&&!F.nextTabbableNode(i,!1))&&(T=h),T>=0){var N=T===0?u.tabbableGroups.length-1:T-1,j=u.tabbableGroups[N];S=(0,k.getTabIndex)(i)>=0?j.lastTabbableNode:j.lastDomTabbableNode}else L(l)||(S=F.nextTabbableNode(i,!1))}else{var x=u.tabbableGroups.findIndex(function(ve){var be=ve.lastTabbableNode;return i===be});if(x<0&&(F.container===i||(0,k.isFocusable)(i,b.tabbableOptions)&&!(0,k.isTabbable)(i,b.tabbableOptions)&&!F.nextTabbableNode(i))&&(x=h),x>=0){var X=x===u.tabbableGroups.length-1?0:x+1,J=u.tabbableGroups[X];S=(0,k.getTabIndex)(i)>=0?J.firstTabbableNode:J.firstDomTabbableNode}else L(l)||(S=F.nextTabbableNode(i))}}else S=e("fallbackFocus");return S},C=function(n){var i=Y(n);if(!(p(i,n)>=0)){if(q(b.clickOutsideDeactivates,n)){v.deactivate({returnFocus:b.returnFocusOnDeactivate});return}q(b.allowOutsideClick,n)||n.preventDefault()}},A=function(n){var i=Y(n),l=p(i,n)>=0;if(l||i instanceof Document)l&&(u.mostRecentlyFocusedNode=i);else{n.stopImmediatePropagation();var g,y=!0;if(u.mostRecentlyFocusedNode)if((0,k.getTabIndex)(u.mostRecentlyFocusedNode)>0){var S=p(u.mostRecentlyFocusedNode),h=u.containerGroups[S].tabbableNodes;if(h.length>0){var F=h.findIndex(function(T){return T===u.mostRecentlyFocusedNode});F>=0&&(b.isKeyForward(u.recentNavEvent)?F+1<h.length&&(g=h[F+1],y=!1):F-1>=0&&(g=h[F-1],y=!1))}}else u.containerGroups.some(function(T){return T.tabbableNodes.some(function(N){return(0,k.getTabIndex)(N)>0})})||(y=!1);else y=!1;y&&(g=P({target:u.mostRecentlyFocusedNode,isBackward:b.isKeyBackward(u.recentNavEvent)})),E(g||u.mostRecentlyFocusedNode||c())}u.recentNavEvent=void 0},z=function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;u.recentNavEvent=n;var l=P({event:n,isBackward:i});l&&(L(n)&&n.preventDefault(),E(l))},R=function(n){(b.isKeyForward(n)||b.isKeyBackward(n))&&z(n,b.isKeyBackward(n))},ae=function(n){ue(n)&&q(b.escapeDeactivates,n)!==!1&&(n.preventDefault(),v.deactivate())},le=function(n){var i=Y(n);p(i,n)>=0||q(b.clickOutsideDeactivates,n)||q(b.allowOutsideClick,n)||(n.preventDefault(),n.stopImmediatePropagation())},pe=function(){if(u.active){I.activateTrap(m,v);var n;return b.delayInitialFocus?n=new Promise(function(i){u.delayInitialFocusTimer=ne(function(){E(c()),i()})}):E(c()),s.addEventListener("focusin",A,!0),s.addEventListener("mousedown",C,{capture:!0,passive:!1}),s.addEventListener("touchstart",C,{capture:!0,passive:!1}),s.addEventListener("click",le,{capture:!0,passive:!1}),s.addEventListener("keydown",R,{capture:!0,passive:!1}),s.addEventListener("keydown",ae),n}},ye=function(n){u.active&&!u.paused&&v._setSubtreeIsolation(!1),u.adjacentElements.clear(),u.alreadySilent.clear();var i=new Set,l=new Set,g=B(n),y;try{for(g.s();!(y=g.n()).done;){var S=y.value;i.add(S);for(var h=typeof ShadowRoot!="undefined"&&S.getRootNode()instanceof ShadowRoot,F=S;F;){i.add(F);var T=F.parentElement,N=[];T?N=T.children:!T&&h&&(N=F.getRootNode().children,T=F.getRootNode().host,h=typeof ShadowRoot!="undefined"&&T.getRootNode()instanceof ShadowRoot);var j=B(N),x;try{for(j.s();!(x=j.n()).done;){var X=x.value;l.add(X)}}catch(J){j.e(J)}finally{j.f()}F=T}}}catch(J){g.e(J)}finally{g.f()}i.forEach(function(J){l.delete(J)}),u.adjacentElements=l},he=function(){if(u.active)return s.removeEventListener("focusin",A,!0),s.removeEventListener("mousedown",C,!0),s.removeEventListener("touchstart",C,!0),s.removeEventListener("click",le,!0),s.removeEventListener("keydown",R,!0),s.removeEventListener("keydown",ae),v},me=function(n){var i=u.mostRecentlyFocusedNode;if(i){var l=n.some(function(y){var S=Array.from(y.removedNodes);return S.some(function(h){return h===i||typeof h.contains=="function"&&h.contains(i)})});if(l&&u.containers.some(function(y){return y==null?void 0:y.isConnected})){f();var g=c();E(g)}}},de=typeof window!="undefined"&&"MutationObserver"in window?new MutationObserver(me):void 0,fe=function(){de&&(de.disconnect(),u.active&&!u.paused&&u.containers.map(function(n){de.observe(n,{subtree:!0,childList:!0})}))};return v={get active(){return u.active},get paused(){return u.paused},activate:function(n){if(u.active)return this;var i=O(n,"onActivate"),l=O(n,"onPostActivate"),g=O(n,"checkCanFocusTrap"),y=I.getActiveTrap(m),S=!1;if(y&&!y.paused){var h;(h=y._setSubtreeIsolation)===null||h===void 0||h.call(y,!1),S=!0}try{g||f(),u.active=!0,u.paused=!1,u.nodeFocusedBeforeActivation=o(s),i==null||i({trap:v});var F=function(){g&&f();var j=function(){v._setSubtreeIsolation(!0),fe(),l==null||l({trap:v})},x=pe();x?x.then(j):j()};if(g)return g(u.containers.concat()).then(F,F),this;F()}catch(N){if(y===I.getActiveTrap(m)&&S){var T;(T=y._setSubtreeIsolation)===null||T===void 0||T.call(y,!0)}throw N}return this},deactivate:function(n){if(!u.active)return this;var i=W({onDeactivate:b.onDeactivate,onPostDeactivate:b.onPostDeactivate,checkCanReturnFocus:b.checkCanReturnFocus},n);clearTimeout(u.delayInitialFocusTimer),u.delayInitialFocusTimer=void 0,u.paused||v._setSubtreeIsolation(!1),u.alreadySilent.clear(),he(),u.active=!1,u.paused=!1,fe(),I.deactivateTrap(m,v);var l=O(i,"onDeactivate"),g=O(i,"onPostDeactivate"),y=O(i,"checkCanReturnFocus"),S=O(i,"delayReturnFocus"),h=O(i,"returnFocus","returnFocusOnDeactivate");l==null||l({trap:v});var F=function(){h&&E(w(u.nodeFocusedBeforeActivation)),g==null||g({trap:v})},T=function(){S&&h?ne(F):F()};return h&&y?(y(w(u.nodeFocusedBeforeActivation)).then(T,T),this):(T(),this)},pause:function(n){return u.active?(u.manuallyPaused=!0,this._setPausedState(!0,n)):this},unpause:function(n){return u.active?(u.manuallyPaused=!1,m[m.length-1]!==this?this:this._setPausedState(!1,n)):this},updateContainerElements:function(n){var i=[].concat(n).filter(Boolean);return u.containers=i.map(function(l){return typeof l=="string"?s.querySelector(l):l}),b.isolateSubtrees&&ye(u.containers),u.active&&(f(),u.paused||v._setSubtreeIsolation(!0)),fe(),this}},Object.defineProperties(v,{_isManuallyPaused:{value:function(){return u.manuallyPaused}},_setPausedState:{value:function(n,i){if(u.paused===n)return this;if(u.paused=n,n){var l=O(i,"onPause"),g=O(i,"onPostPause");l==null||l({trap:v}),he(),v._setSubtreeIsolation(!1),fe(),g==null||g({trap:v})}else{var y=O(i,"onUnpause"),S=O(i,"onPostUnpause");y==null||y({trap:v});var h=function(){f();var T=function(){v._setSubtreeIsolation(!0),fe(),S==null||S({trap:v})},N=pe();N?N.then(T):T()};h()}return this}},_setSubtreeIsolation:{value:function(n){b.isolateSubtrees&&u.adjacentElements.forEach(function(i){var l;n?b.isolateSubtrees==="aria-hidden"?((i.ariaHidden==="true"||((l=i.getAttribute("aria-hidden"))===null||l===void 0?void 0:l.toLowerCase())==="true")&&u.alreadySilent.add(i),i.setAttribute("aria-hidden","true")):((i.inert||i.hasAttribute("inert"))&&u.alreadySilent.add(i),i.setAttribute("inert",!0)):u.alreadySilent.has(i)||(b.isolateSubtrees==="aria-hidden"?i.removeAttribute("aria-hidden"):i.removeAttribute("inert"))})}}}),v.updateContainerElements(r),v}}),94708:((M,V,K)=>{function k(d){"@babel/helpers - typeof";return k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},k(d)}var _,H;function B(d,a){if(!(d instanceof a))throw new TypeError("Cannot call a class as a function")}function G(d,a){for(var r=0;r<a.length;r++){var t=a[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(d,re(t.key),t)}}function Z(d,a,r){return a&&G(d.prototype,a),r&&G(d,r),Object.defineProperty(d,"prototype",{writable:!1}),d}function ie(d,a,r){return a=U(a),Q(d,ee()?Reflect.construct(a,r||[],U(d).constructor):a.apply(d,r))}
vendor: 6,796 bytes, lines 9-11
9function Q(d,a){if(a&&(k(a)=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return W(d)}function W(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function ee(){try{var d=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(a){}return(ee=function(){return!!d})()}function U(d){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(a){return a.__proto__||Object.getPrototypeOf(a)},U(d)}function oe(d,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");d.prototype=Object.create(a&&a.prototype,{constructor:{value:d,writable:!0,configurable:!0}}),Object.defineProperty(d,"prototype",{writable:!1}),a&&$(d,a)}function $(d,a){return $=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,t){return r.__proto__=t,r},$(d,a)}function I(d,a,r){return(a=re(a))in d?Object.defineProperty(d,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):d[a]=r,d}function re(d){var a=ue(d,"string");return k(a)=="symbol"?a:a+""}function ue(d,a){if(k(d)!="object"||!d)return d;var r=d[Symbol.toPrimitive];if(r!==void 0){var t=r.call(d,a||"default");if(k(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(d)}var L=K(96540),se=K(52697),ce=se.createFocusTrap,ne=K(49054),q=ne.isFocusable,Y=parseInt((_=(H=/^(\d+)\./.exec(L.version))===null||H===void 0?void 0:H[1])!==null&&_!==void 0?_:0,10),te=(function(d){function a(r){var t;B(this,a),t=ie(this,a,[r]),I(t,"getNodeForOption",function(b){var u,v=(u=this.internalOptions[b])!==null&&u!==void 0?u:this.originalOptions[b];if(typeof v=="function"){for(var O=arguments.length,p=new Array(O>1?O-1:0),e=1;e<O;e++)p[e-1]=arguments[e];v=v.apply(void 0,p)}if(v===!0&&(v=void 0),!v){if(v===void 0||v===!1)return v;throw new Error("`".concat(b,"` was specified but was not a node, or did not return a node"))}var o=v;if(typeof v=="string"){var c;if(o=(c=this.getDocument())===null||c===void 0?void 0:c.querySelector(v),!o)throw new Error("`".concat(b,"` as selector refers to no known node"))}return o}),t.handleDeactivate=t.handleDeactivate.bind(t),t.handlePostDeactivate=t.handlePostDeactivate.bind(t),t.handleClickOutsideDeactivates=t.handleClickOutsideDeactivates.bind(t),t.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:t.handleDeactivate,onPostDeactivate:t.handlePostDeactivate,clickOutsideDeactivates:t.handleClickOutsideDeactivates},t.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var s=r.focusTrapOptions;for(var m in s)if(Object.prototype.hasOwnProperty.call(s,m)){if(m==="returnFocusOnDeactivate"||m==="onDeactivate"||m==="onPostDeactivate"||m==="checkCanReturnFocus"||m==="clickOutsideDeactivates"){t.originalOptions[m]=s[m];continue}t.internalOptions[m]=s[m]}return t.outsideClick=null,t.focusTrapElements=r.containerElements||[],t.updatePreviousElement(),t}return oe(a,d),Z(a,[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||(typeof document!="undefined"?document:void 0)}},{key:"getReturnFocusNode",value:function(){var t=this.getNodeForOption("setReturnFocus",this.previouslyFocusedElement);return t||(t===!1?!1:this.previouslyFocusedElement)}},{key:"updatePreviousElement",value:function(){var t=this.getDocument();t&&(this.previouslyFocusedElement=t.activeElement)}},{key:"deactivateTrap",value:function(){!this.focusTrap||!this.focusTrap.active||this.focusTrap.deactivate({returnFocus:!1,checkCanReturnFocus:null,onDeactivate:this.originalOptions.onDeactivate})}},{key:"handleClickOutsideDeactivates",value:function(t){var s=typeof this.originalOptions.clickOutsideDeactivates=="function"?this.originalOptions.clickOutsideDeactivates.call(null,t):this.originalOptions.clickOutsideDeactivates;return s&&(this.outsideClick={target:t.target,allowDeactivation:s}),s}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var t=this,s=function(){var b=t.getReturnFocusNode(),u=!!(t.originalOptions.returnFocusOnDeactivate&&b!==null&&b!==void 0&&b.focus&&(!t.outsideClick||t.outsideClick.allowDeactivation&&!q(t.outsideClick.target,t.internalOptions.tabbableOptions))),v=t.internalOptions.preventScroll,O=v===void 0?!1:v;u&&b.focus({preventScroll:O}),t.originalOptions.onPostDeactivate&&t.originalOptions.onPostDeactivate.call(null),t.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(s,s):s()}},{key:"setupFocusTrap",value:function(){if(this.focusTrap)this.props.active&&!this.focusTrap.active&&(this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause());else{var t=this.focusTrapElements.some(Boolean);t&&(this.focusTrap=this.props._createFocusTrap(this.focusTrapElements,this.internalOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(t){if(this.focusTrap){t.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var s=!t.active&&this.props.active,m=t.active&&!this.props.active,b=!t.paused&&this.props.paused,u=t.paused&&!this.props.paused;if(s&&(this.updatePreviousElement(),this.focusTrap.activate()),m){this.deactivateTrap();return}b&&this.focusTrap.pause(),u&&this.focusTrap.unpause()}else t.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var t=this,s=this.props.children?L.Children.only(this.props.children):void 0;if(s){if(s.type&&s.type===L.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");var m=function(v){var O=t.props.containerElements;s&&(Y>=19?typeof s.props.ref=="function"?s.props.ref(v):s.props.ref&&(s.props.ref.current=v):typeof s.ref=="function"?s.ref(v):s.ref&&(s.ref.current=v)),t.focusTrapElements=O||[v]},b=L.cloneElement(s,{ref:m});return b}return null}}])})(L.Component);te.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:ce},M.exports=te,M.exports.FocusTrap=te})}]);})(); 10 11//# sourceMappingURL=94708.28898f73c1323aabc9d6.js.map
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.