function _classCallCheck(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function composedTreeWalk(n,t,i){var r,f,s,h,e,c,l,o,u;if(n.nodeType==Node.ELEMENT_NODE){if(r=n,t&&t(r),f=r.shadowRoot,f){composedTreeWalk(f,t,f);return}if(r.localName=="content"){for(s=r,h=s.getDistributedNodes?s.getDistributedNodes():[],e=0;e<h.length;e++)composedTreeWalk(h[e],t,i);return}if(r.localName=="slot"){for(c=r,l=c.assignedNodes?c.assignedNodes({flatten:!0}):[],o=0;o<l.length;o++)composedTreeWalk(l[o],t,i);return}}for(u=n.firstChild;u!=null;)composedTreeWalk(u,t,i),u=u.nextSibling}function addInertStyle(n){if(!n.querySelector("style#inert-style")){var t=document.createElement("style");t.setAttribute("id","inert-style");t.textContent="\n[inert] {\n  pointer-events: none;\n  cursor: default;\n}\n\n[inert], [inert] * {\n  user-select: none;\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n}\n";n.appendChild(t)}}var _createClass=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),_typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol?"symbol":typeof n},inertManager;typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(n){"use strict";var u,i,t,r;if(n===null||n===undefined)throw new TypeError("Cannot convert undefined or null to object");for(u=Object(n),i=1;i<arguments.length;i++)if(t=arguments[i],t!==null&&t!==undefined)for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(u[r]=t[r]);return u},writable:!0,configurable:!0});Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(n){var i,u,f,t,r;if(this==null)throw new TypeError('"this" is null or not defined');if(i=Object(this),u=i.length>>>0,typeof n!="function")throw new TypeError("predicate must be a function");for(f=arguments[1],t=0;t<u;){if(r=i[t],n.call(f,r,t,i))return r;t++}return undefined},configurable:!0,writable:!0});Array.from||(Array.from=function(){var t=Object.prototype.toString,n=function(n){return typeof n=="function"||t.call(n)==="[object Function]"},i=function(n){var t=Number(n);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))},r=Math.pow(2,53)-1,u=function(n){var t=i(n);return Math.min(Math.max(t,0),r)};return function(t){var h=this,c=Object(t),i,o;if(t==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");if(i=arguments.length>1?arguments[1]:void undefined,typeof i!="undefined"){if(!n(i))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(o=arguments[2])}for(var f=u(c.length),s=n(h)?Object(new h(f)):new Array(f),r=0,e;r<f;)e=c[r],s[r]=i?typeof o=="undefined"?i(e,r):i.call(o,e,r):e,r+=1;return s.length=f,s}}()),function(){"use strict";function f(n){var t=this.constructor;return this.then(function(i){return t.resolve(n()).then(function(){return i})},function(i){return t.resolve(n()).then(function(){return t.reject(i)})})}function h(){}function c(n,t){return function(){n.apply(t,arguments)}}function n(t){if(!(this instanceof n))throw new TypeError("Promises must be constructed via new");if(typeof t!="function")throw new TypeError("not a function");this._state=0;this._handled=!1;this._value=undefined;this._deferreds=[];o(t,this)}function e(i,u){while(i._state===3)i=i._value;if(i._state===0){i._deferreds.push(u);return}i._handled=!0;n._immediateFn(function(){var n=i._state===1?u.onFulfilled:u.onRejected,f;if(n===null){(i._state===1?r:t)(u.promise,i._value);return}try{f=n(i._value)}catch(e){t(u.promise,e);return}r(u.promise,f)})}function r(i,r){try{if(r===i)throw new TypeError("A promise cannot be resolved with itself.");if(r&&((typeof r=="undefined"?"undefined":_typeof(r))==="object"||typeof r=="function")){var f=r.then;if(r instanceof n){i._state=3;i._value=r;u(i);return}if(typeof f=="function"){o(c(f,r),i);return}}i._state=1;i._value=r;u(i)}catch(e){t(i,e)}}function t(n,t){n._state=2;n._value=t;u(n)}function u(t){t._state===2&&t._deferreds.length===0&&n._immediateFn(function(){t._handled||n._unhandledRejectionFn(t._value)});for(var i=0,r=t._deferreds.length;i<r;i++)e(t,t._deferreds[i]);t._deferreds=null}function l(n,t,i){this.onFulfilled=typeof n=="function"?n:null;this.onRejected=typeof t=="function"?t:null;this.promise=i}function o(n,i){var u=!1;try{n(function(n){u||(u=!0,r(i,n))},function(n){u||(u=!0,t(i,n))})}catch(f){if(u)return;u=!0;t(i,f)}}var s=setTimeout,i;n.prototype["catch"]=function(n){return this.then(null,n)};n.prototype.then=function(n,t){var i=new this.constructor(h);return e(this,new l(n,t,i)),i};n.prototype["finally"]=f;n.all=function(t){return new n(function(n,i){function e(t,u){try{if(u&&((typeof u=="undefined"?"undefined":_typeof(u))==="object"||typeof u=="function")){var o=u.then;if(typeof o=="function"){o.call(u,function(n){e(t,n)},i);return}}r[t]=u;--f==0&&n(r)}catch(s){i(s)}}var r,f,u;if(!t||typeof t.length=="undefined")throw new TypeError("Promise.all accepts an array");if(r=Array.prototype.slice.call(t),r.length===0)return n([]);for(f=r.length,u=0;u<r.length;u++)e(u,r[u])})};n.resolve=function(t){return t&&(typeof t=="undefined"?"undefined":_typeof(t))==="object"&&t.constructor===n?t:new n(function(n){n(t)})};n.reject=function(t){return new n(function(n,i){i(t)})};n.race=function(t){return new n(function(n,i){for(var r=0,u=t.length;r<u;r++)t[r].then(n,i)})};n._immediateFn=typeof setImmediate=="function"&&function(n){setImmediate(n)}||function(n){s(n,0)};n._unhandledRejectionFn=function(n){typeof console!="undefined"&&console&&console.warn("Possible Unhandled Promise Rejection:",n)};i=function(){if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;if(typeof global!="undefined")return global;throw new Error("unable to locate global object");}();"Promise"in i?i.Promise.prototype["finally"]||(i.Promise.prototype["finally"]=f):i.Promise=n}(),function(){function b(n){return n&&DataView.prototype.isPrototypeOf(n)}function f(n){if(typeof n!="string"&&(n=String(n)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(n))throw new TypeError("Invalid character in header field name");return n.toLowerCase()}function c(n){return typeof n!="string"&&(n=String(n)),n}function e(n){var i={next:function(){var t=n.shift();return{done:t===undefined,value:t}}};return t.iterable&&(i[Symbol.iterator]=function(){return i}),i}function n(t){this.map={};t instanceof n?t.forEach(function(n,t){this.append(t,n)},this):Array.isArray(t)?t.forEach(function(n){this.append(n[0],n[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(n){this.append(n,t[n])},this)}function o(n){if(n.bodyUsed)return Promise.reject(new TypeError("Already read"));n.bodyUsed=!0}function l(n){return new Promise(function(t,i){n.onload=function(){t(n.result)};n.onerror=function(){i(n.error)}})}function k(n){var t=new FileReader,i=l(t);return t.readAsArrayBuffer(n),i}function d(n){var t=new FileReader,i=l(t);return t.readAsText(n),i}function g(n){for(var i=new Uint8Array(n),r=new Array(i.length),t=0;t<i.length;t++)r[t]=String.fromCharCode(i[t]);return r.join("")}function a(n){if(n.slice)return n.slice(0);var t=new Uint8Array(n.byteLength);return t.set(new Uint8Array(n)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(n){this._bodyInit=n;n?typeof n=="string"?this._bodyText=n:t.blob&&Blob.prototype.isPrototypeOf(n)?this._bodyBlob=n:t.formData&&FormData.prototype.isPrototypeOf(n)?this._bodyFormData=n:t.searchParams&&URLSearchParams.prototype.isPrototypeOf(n)?this._bodyText=n.toString():t.arrayBuffer&&t.blob&&b(n)?(this._bodyArrayBuffer=a(n.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):t.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(n)||h(n))?this._bodyArrayBuffer=a(n):this._bodyText=n=Object.prototype.toString.call(n):this._bodyText="";this.headers.get("content-type")||(typeof n=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(n)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var n=o(this);if(n)return n;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");else return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?o(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(k)}),this.text=function(){var n=o(this);if(n)return n;if(this._bodyBlob)return d(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(g(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");else return Promise.resolve(this._bodyText)},t.formData&&(this.formData=function(){return this.text().then(tt)}),this.json=function(){return this.text().then(JSON.parse)},this}function nt(n){var t=n.toUpperCase();return y.indexOf(t)>-1?t:n}function u(t,i){i=i||{};var r=i.body;if(t instanceof u){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url;this.credentials=t.credentials;i.headers||(this.headers=new n(t.headers));this.method=t.method;this.mode=t.mode;this.signal=t.signal;r||t._bodyInit==null||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=i.credentials||this.credentials||"same-origin",(i.headers||!this.headers)&&(this.headers=new n(i.headers)),this.method=nt(i.method||this.method||"GET"),this.mode=i.mode||this.mode||null,this.signal=i.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function tt(n){var t=new FormData;return n.trim().split("&").forEach(function(n){if(n){var i=n.split("="),r=i.shift().replace(/\+/g," "),u=i.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(u))}}),t}function it(t){var i=new n,r=t.replace(/\r?\n[\t ]+/g," ");return r.split(/\r?\n/).forEach(function(n){var t=n.split(":"),r=t.shift().trim(),u;r&&(u=t.join(":").trim(),i.append(r,u))}),i}function i(t,i){i||(i={});this.type="default";this.status=i.status===undefined?200:i.status;this.ok=this.status>=200&&this.status<300;this.statusText="statusText"in i?i.statusText:"OK";this.headers=new n(i.headers);this.url=i.url||"";this._initBody(t)}function w(n,f){return new Promise(function(e,o){function c(){s.abort()}var h=new u(n,f),s;if(h.signal&&h.signal.aborted)return o(new r("Aborted","AbortError"));s=new XMLHttpRequest;s.onload=function(){var n={status:s.status,statusText:s.statusText,headers:it(s.getAllResponseHeaders()||"")},t;n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");t="response"in s?s.response:s.responseText;e(new i(t,n))};s.onerror=function(){o(new TypeError("Network request failed"))};s.ontimeout=function(){o(new TypeError("Network request failed"))};s.onabort=function(){o(new r("Aborted","AbortError"))};s.open(h.method,h.url,!0);h.credentials==="include"?s.withCredentials=!0:h.credentials==="omit"&&(s.withCredentials=!1);"responseType"in s&&t.blob&&(s.responseType="blob");h.headers.forEach(function(n,t){s.setRequestHeader(t,n)});h.signal&&(h.signal.addEventListener("abort",c),s.onreadystatechange=function(){s.readyState===4&&h.signal.removeEventListener("abort",c)});s.send(typeof h._bodyInit=="undefined"?null:h._bodyInit)})}var t={searchParams:"URLSearchParams"in self,iterable:"Symbol"in self&&"iterator"in Symbol,blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(n){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self},s,h,y,p,r;t.arrayBuffer&&(s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],h=ArrayBuffer.isView||function(n){return n&&s.indexOf(Object.prototype.toString.call(n))>-1});n.prototype.append=function(n,t){n=f(n);t=c(t);var i=this.map[n];this.map[n]=i?i+", "+t:t};n.prototype["delete"]=function(n){delete this.map[f(n)]};n.prototype.get=function(n){return n=f(n),this.has(n)?this.map[n]:null};n.prototype.has=function(n){return this.map.hasOwnProperty(f(n))};n.prototype.set=function(n,t){this.map[f(n)]=c(t)};n.prototype.forEach=function(n,t){for(var i in this.map)this.map.hasOwnProperty(i)&&n.call(t,this.map[i],i,this)};n.prototype.keys=function(){var n=[];return this.forEach(function(t,i){n.push(i)}),e(n)};n.prototype.values=function(){var n=[];return this.forEach(function(t){n.push(t)}),e(n)};n.prototype.entries=function(){var n=[];return this.forEach(function(t,i){n.push([i,t])}),e(n)};t.iterable&&(n.prototype[Symbol.iterator]=n.prototype.entries);y=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];u.prototype.clone=function(){return new u(this,{body:this._bodyInit})};v.call(u.prototype);v.call(i.prototype);i.prototype.clone=function(){return new i(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})};i.error=function(){var n=new i(null,{status:0,statusText:""});return n.type="error",n};p=[301,302,303,307,308];i.redirect=function(n,t){if(p.indexOf(t)===-1)throw new RangeError("Invalid status code");return new i(null,{status:t,headers:{location:n}})};r=self.DOMException;try{new r}catch(rt){r=function(n,t){this.message=n;this.name=t;var i=Error(n);this.stack=i.stack};r.prototype=Object.create(Error.prototype);r.prototype.constructor=r}w.polyfill=!0;self.fetch||(self.fetch=w,self.Headers=n,self.Request=u,self.Response=i)}(),function(n){typeof n.matches!="function"&&(n.matches=n.msMatchesSelector||n.mozMatchesSelector||n.webkitMatchesSelector||function(n){for(var i=this,r=(i.document||i.ownerDocument).querySelectorAll(n),t=0;r[t]&&r[t]!==i;)++t;return Boolean(r[t])});typeof n.closest!="function"&&(n.closest=function(n){for(var t=this;t&&t.nodeType===1;){if(t.matches(n))return t;t=t.parentNode}return null})}(window.Element.prototype);window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(n,t){t=t||window;for(var i=0;i<this.length;i++)n.call(t,this[i],i,this)});var slice=Array.prototype.slice,matches=Element.prototype.matches||Element.prototype.msMatchesSelector,_focusableElementsString="a[href],area[href],input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),iframe,object,embed,[contenteditable]",InertRoot=function(){function n(t,i){_classCallCheck(this,n);this._inertManager=i;this._rootElement=t;this._managedNodes=new Set;this._savedAriaHidden=this._rootElement.hasAttribute("aria-hidden")?this._rootElement.getAttribute("aria-hidden"):null;this._rootElement.setAttribute("aria-hidden","true");this._makeSubtreeUnfocusable(this._rootElement);this._observer=new MutationObserver(this._onMutation.bind(this));this._observer.observe(this._rootElement,{attributes:!0,childList:!0,subtree:!0})}return _createClass(n,[{key:"destructor",value:function(){this._observer.disconnect();this._rootElement&&(this._savedAriaHidden!==null?this._rootElement.setAttribute("aria-hidden",this._savedAriaHidden):this._rootElement.removeAttribute("aria-hidden"));this._managedNodes.forEach(function(n){this._unmanageNode(n.node)},this);this._observer=null;this._rootElement=null;this._managedNodes=null;this._inertManager=null}},{key:"_makeSubtreeUnfocusable",value:function(n){var u=this,i,t,r;if(composedTreeWalk(n,function(n){return u._visitNode(n)}),i=document.activeElement,!document.body.contains(n)){for(t=n,r=undefined;t;){if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){r=t;break}t=t.parentNode}r&&(i=r.activeElement)}n.contains(i)&&(i.blur(),i===document.activeElement&&document.body.focus())}},{key:"_visitNode",value:function(n){if(n.nodeType===Node.ELEMENT_NODE){var t=n;t!==this._rootElement&&t.hasAttribute("inert")&&this._adoptInertRoot(t);(matches.call(t,_focusableElementsString)||t.hasAttribute("tabindex"))&&this._manageNode(t)}}},{key:"_manageNode",value:function(n){var t=this._inertManager.register(n,this);this._managedNodes.add(t)}},{key:"_unmanageNode",value:function(n){var t=this._inertManager.deregister(n,this);t&&this._managedNodes.delete(t)}},{key:"_unmanageSubtree",value:function(n){var t=this;composedTreeWalk(n,function(n){return t._unmanageNode(n)})}},{key:"_adoptInertRoot",value:function(n){var t=this._inertManager.getInertRoot(n);t||(this._inertManager.setInert(n,!0),t=this._inertManager.getInertRoot(n));t.managedNodes.forEach(function(n){this._manageNode(n.node)},this)}},{key:"_onMutation",value:function(n){n.forEach(function(n){var i=this,t=n.target;n.type==="childList"?(slice.call(n.addedNodes).forEach(function(n){this._makeSubtreeUnfocusable(n)},this),slice.call(n.removedNodes).forEach(function(n){this._unmanageSubtree(n)},this)):n.type==="attributes"&&(n.attributeName==="tabindex"?this._manageNode(t):t!==this._rootElement&&n.attributeName==="inert"&&t.hasAttribute("inert")&&function(){i._adoptInertRoot(t);var n=i._inertManager.getInertRoot(t);i._managedNodes.forEach(function(i){t.contains(i.node)&&n._manageNode(i.node)})}())},this)}},{key:"managedNodes",get:function(){return new Set(this._managedNodes)}},{key:"hasSavedAriaHidden",get:function(){return this._savedAriaHidden!==null}},{key:"savedAriaHidden",set:function(n){this._savedAriaHidden=n},get:function(){return this._savedAriaHidden}}]),n}(),InertNode=function(){function n(t,i){_classCallCheck(this,n);this._node=t;this._overrodeFocusMethod=!1;this._inertRoots=new Set([i]);this._savedTabIndex=null;this._destroyed=!1;this.ensureUntabbable()}return _createClass(n,[{key:"destructor",value:function(){if(this._throwIfDestroyed(),this._node&&this._node.nodeType===Node.ELEMENT_NODE){var n=this._node;this._savedTabIndex!==null?n.setAttribute("tabindex",this._savedTabIndex):n.removeAttribute("tabindex");this._overrodeFocusMethod&&delete n.focus}this._node=null;this._inertRoots=null;this._destroyed=!0}},{key:"_throwIfDestroyed",value:function(){if(this.destroyed)throw new Error("Trying to access destroyed InertNode");}},{key:"ensureUntabbable",value:function(){if(this.node.nodeType===Node.ELEMENT_NODE){var n=this.node;if(matches.call(n,_focusableElementsString)){if(n.tabIndex===-1&&this.hasSavedTabIndex)return;n.hasAttribute("tabindex")&&(this._savedTabIndex=n.tabIndex);n.setAttribute("tabindex","-1");n.nodeType===Node.ELEMENT_NODE&&(n.focus=function(){},this._overrodeFocusMethod=!0)}else n.hasAttribute("tabindex")&&(this._savedTabIndex=n.tabIndex,n.removeAttribute("tabindex"))}}},{key:"addInertRoot",value:function(n){this._throwIfDestroyed();this._inertRoots.add(n)}},{key:"removeInertRoot",value:function(n){this._throwIfDestroyed();this._inertRoots.delete(n);this._inertRoots.size===0&&this.destructor()}},{key:"destroyed",get:function(){return this._destroyed}},{key:"hasSavedTabIndex",get:function(){return this._savedTabIndex!==null}},{key:"node",get:function(){return this._throwIfDestroyed(),this._node}},{key:"savedTabIndex",set:function(n){this._throwIfDestroyed();this._savedTabIndex=n},get:function(){return this._throwIfDestroyed(),this._savedTabIndex}}]),n}(),InertManager=function(){function n(t){if(_classCallCheck(this,n),!t)throw new Error("Missing required argument; InertManager needs to wrap a document.");this._document=t;this._managedNodes=new Map;this._inertRoots=new Map;this._observer=new MutationObserver(this._watchForInert.bind(this));addInertStyle(t.head||t.body||t.documentElement);t.readyState==="loading"?t.addEventListener("DOMContentLoaded",this._onDocumentLoaded.bind(this)):this._onDocumentLoaded()}return _createClass(n,[{key:"setInert",value:function(n,t){var r,i,u;if(t){if(this._inertRoots.has(n))return;if(r=new InertRoot(n,this),n.setAttribute("inert",""),this._inertRoots.set(n,r),!this._document.body.contains(n))for(i=n.parentNode;i;)i.nodeType===11&&addInertStyle(i),i=i.parentNode}else{if(!this._inertRoots.has(n))return;u=this._inertRoots.get(n);u.destructor();this._inertRoots.delete(n);n.removeAttribute("inert")}}},{key:"getInertRoot",value:function(n){return this._inertRoots.get(n)}},{key:"register",value:function(n,t){var i=this._managedNodes.get(n);return i!==undefined?i.addInertRoot(t):i=new InertNode(n,t),this._managedNodes.set(n,i),i}},{key:"deregister",value:function(n,t){var i=this._managedNodes.get(n);return i?(i.removeInertRoot(t),i.destroyed&&this._managedNodes.delete(n),i):null}},{key:"_onDocumentLoaded",value:function(){var n=slice.call(this._document.querySelectorAll("[inert]"));n.forEach(function(n){this.setInert(n,!0)},this);this._observer.observe(this._document.body,{attributes:!0,subtree:!0,childList:!0})}},{key:"_watchForInert",value:function(n){var t=this;n.forEach(function(n){switch(n.type){case"childList":slice.call(n.addedNodes).forEach(function(n){if(n.nodeType===Node.ELEMENT_NODE){var i=slice.call(n.querySelectorAll("[inert]"));matches.call(n,"[inert]")&&i.unshift(n);i.forEach(function(n){this.setInert(n,!0)},t)}},t);break;case"attributes":if(n.attributeName!=="inert")return;var i=n.target,r=i.hasAttribute("inert");t.setInert(i,r)}},this)}}]),n}();inertManager=new InertManager(document);Element.prototype.hasOwnProperty("inert")||Object.defineProperty(Element.prototype,"inert",{enumerable:!0,get:function(){return this.hasAttribute("inert")},set:function(n){inertManager.setInert(this,n)}})