*/var mt=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],ke=mt.join(","),gt=typeof Element>"u",re=gt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ne=!gt&&Element.prototype.getRootNode?function(a){var e;return a==null||(e=a.getRootNode)===null||e===void 0?void 0:e.call(a)}:function(a){return a==null?void 0:a.ownerDocument},Fe=function a(e,t){var s;t===void 0&&(t=!0);var n=e==null||(s=e.getAttribute)===null||s===void 0?void 0:s.call(e,"inert"),r=n===""||n==="true",i=r||t&&e&&a(e.parentNode);return i},is=function(e){var t,s=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return s===""||s==="true"},bt=function(e,t,s){if(Fe(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(ke));return t&&re.call(e,ke)&&n.unshift(e),n=n.filter(s),n},yt=function a(e,t,s){for(var n=[],r=Array.from(e);r.length;){var i=r.shift();if(!Fe(i,!1))if(i.tagName==="SLOT"){var o=i.assignedElements(),l=o.length?o:i.children,c=a(l,!0,s);s.flatten?n.push.apply(n,c):n.push({scopeParent:i,candidates:c})}else{var h=re.call(i,ke);h&&s.filter(i)&&(t||!e.includes(i))&&n.push(i);var v=i.shadowRoot||typeof s.getShadowRoot=="function"&&s.getShadowRoot(i),p=!Fe(v,!1)&&(!s.shadowRootFilter||s.shadowRootFilter(i));if(v&&p){var b=a(v===!0?i.children:v.children,!0,s);s.flatten?n.push.apply(n,b):n.push({scopeParent:i,candidates:b})}else r.unshift.apply(r,i.children)}}return n},wt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},ie=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||is(e))&&!wt(e)?0:e.tabIndex},rs=function(e,t){vars=ie(e);returns<0&&t&&!wt(e)?0:s},as=function(e,t){returne.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},xt=function(e){returne.tagName==="INPUT"},os=function(e){returnxt(e)&&e.type==="hidden"},ls=function(e){vart=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(s){returns.tagName==="SUMMARY"});returnt},cs=function(e,t){for(vars=0;s<e.length;s++)if(e[s].checked&&e[s].form===t)returne[s]},us=function(e){if(!e.name)return!0;vart=e.form||Ne(e),s=function(o){returnt.querySelectorAll('input[type="radio"][name="'+o+'"]')},n;if(typeofwindow<"u"&&typeofwindow.CSS<"u"&&typeofwindow.CSS.escape=="function")n=s(window.CSS.escape(e.name));elsetry{n=s(e.name)}catch(i){returnconsole.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}varr=cs(n,e.form);return!r||r===e},ds=function(e){returnxt(e)&&e.type==="radio"},hs=function(e){returnds(e)&&!us(e)},fs=function(e){vart,s=e&&Ne(e),n=(t=s)===null||t===void0?void0:t.host,r=!1;if(s&&s!==e){vari,o,l;for(r=!!((i=n)!==null&&i!==void0&&(o=i.ownerDocument)!==null&&o!==void0&&o.contains(n)||e!=null&&(l=e.ownerDocument)!==null&&l!==void0&&l.contains(e));!r&&n;){varc,h,v;s=Ne(n),n=(c=s)===null||c===void0?void0:c.host,r=!!((h=n)!==null&&h!==void0&&(v=h.ownerDocument)!==null&&v!==void0&&v.contains(n))}}returnr},at=function(e){vart=e.getBoundingClientRect(),s=t.width,n=t.height;returns===0&&n===0},ps=function(e,t){vars=t.displayCheck,n=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;varr=re.call(e,"details>summary:first-of-type"),i=r?e.parentElement:e;if(re.call(i,"details:not([open]) *"))return!0;if(!s||s==="full"||s==="legacy-full"){if(typeofn=="function"){for(varo=e;e;){varl=e.parentElement,c=Ne(e);if(l&&!l.shadowRoot&&n(l)===!0)returnat(e);e.assignedSlot?e=e.assignedSlot:!l&&c!==e.ownerDocument?e=c.host:e=l}e=o}if(fs(e))return!e.getClientRects().length;if(s!=="legacy-full")return!0}elseif(s==="non-zero-are