*/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])"],Ce=mt.join(","),gt=typeof Element>"u",ue=gt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ne=!gt&&Element.prototype.getRootNode?function(o){var e;return o==null||(e=o.getRootNode)===null||e===void 0?void 0:e.call(o)}:function(o){return o==null?void 0:o.ownerDocument},Ie=function o(e,t){var r;t===void 0&&(t=!0);var n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),a=n===""||n==="true",i=a||t&&e&&o(e.parentNode);return i},ir=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},bt=function(e,t,r){if(Ie(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(Ce));return t&&ue.call(e,Ce)&&n.unshift(e),n=n.filter(r),n},wt=function o(e,t,r){for(var n=[],a=Array.from(e);a.length;){var i=a.shift();if(!Ie(i,!1))if(i.tagName==="SLOT"){var s=i.assignedElements(),u=s.length?s:i.children,l=o(u,!0,r);r.flatten?n.push.apply(n,l):n.push({scopeParent:i,candidates:l})}else{var h=ue.call(i,Ce);h&&r.filter(i)&&(t||!e.includes(i))&&n.push(i);var d=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),v=!Ie(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(d&&v){var y=o(d===!0?i.children:d.children,!0,r);r.flatten?n.push.apply(n,y):n.push({scopeParent:i,candidates:y})}else a.unshift.apply(a,i.children)}}return n},xt=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},se=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||ir(e))&&!xt(e)?0:e.tabIndex},or=function(e,t){varr=se(e);returnr<0&&t&&!xt(e)?0:r},sr=function(e,t){returne.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Ft=function(e){returne.tagName==="INPUT"},ur=function(e){returnFt(e)&&e.type==="hidden"},lr=function(e){vart=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){returnr.tagName==="SUMMARY"});returnt},cr=function(e,t){for(varr=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)returne[r]},fr=function(e){if(!e.name)return!0;vart=e.form||Ne(e),r=function(s){returnt.querySelectorAll('input[type="radio"][name="'+s+'"]')},n;if(typeofwindow<"u"&&typeofwindow.CSS<"u"&&typeofwindow.CSS.escape=="function")n=r(window.CSS.escape(e.name));elsetry{n=r(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}vara=cr(n,e.form);return!a||a===e},hr=function(e){returnFt(e)&&e.type==="radio"},dr=function(e){returnhr(e)&&!fr(e)},vr=function(e){vart,r=e&&Ne(e),n=(t=r)===null||t===void0?void0:t.host,a=!1;if(r&&r!==e){vari,s,u;for(a=!!((i=n)!==null&&i!==void0&&(s=i.ownerDocument)!==null&&s!==void0&&s.contains(n)||e!=null&&(u=e.ownerDocument)!==null&&u!==void0&&u.contains(e));!a&&n;){varl,h,d;r=Ne(n),n=(l=r)===null||l===void0?void0:l.host,a=!!((h=n)!==null&&h!==void0&&(d=h.ownerDocument)!==null&&d!==void0&&d.contains(n))}}returna},st=function(e){vart=e.getBoundingClientRect(),r=t.width,n=t.height;returnr===0&&n===0},pr=function(e,t){varr=t.displayCheck,n=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;vara=ue.call(e,"details>summary:first-of-type"),i=a?e.parentElement:e;if(ue.call(i,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeofn=="function"){for(vars=e;e;){varu=e.parentElement,l=Ne(e);if(u&&!u.shadowRoot&&n(u)===!0)returnst(e);e.assignedSlot?e=e.assignedSlot:!u&&l!==e.ownerDocument?e=l.host:e=u}e=s}if(vr(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}elseif(r==="non-zero-are