@ctrl/dom 0.1.9 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +0 -37
- package/dist/dom/_chunks/{src-BbkJRbbx.js → src-C8w0qc4Q.js} +1 -1
- package/dist/dom/index.js +1 -1
- package/dist/dom/internal.js +1 -1
- package/dist/dom/types/css/CSSStyleDeclaration.d.ts +8 -6
- package/dist/dom/types/css/declarations.d.ts +23 -1
- package/dist/react/_chunks/pure-C0WlxYhN.js +1 -0
- package/dist/react/_chunks/pure-DABEr3FU.cjs +1 -0
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/pure.cjs +1 -1
- package/dist/react/pure.js +1 -1
- package/dist/react/types/act-compat.d.ts +8 -0
- package/dist/react/types/config.d.ts +9 -0
- package/package.json +1 -1
- package/dist/react/_chunks/pure-DR8LsIAA.cjs +0 -1
- package/dist/react/_chunks/pure-ajnRI-Fp.js +0 -1
|
@@ -6,7 +6,7 @@ import{AsyncResource as e}from"node:async_hooks";import{setTimeout as t}from"nod
|
|
|
6
6
|
`).length;throw new XMLParseError(`${e} (line ${n}, column ${this.pos-t.lastIndexOf(`
|
|
7
7
|
`)})`)}startsWith(e){return this.src.startsWith(e,this.pos)}skipWs(){let e=this.pos;for(;this.pos<this.src.length&&isWs(this.src.charCodeAt(this.pos));)this.pos++;return this.pos>e}name(){let e=this.src,t=this.pos;for((t>=e.length||!isNameStartCode(e.charCodeAt(t)))&&this.fail(`expected a name`),this.pos++;this.pos<e.length&&isNameCode(e.charCodeAt(this.pos));)this.pos++;return e.slice(t,this.pos)}expect(e){this.startsWith(e)||this.fail(`expected "${e}"`),this.pos+=e.length}reference(){this.pos++;let e=this.src;if(e.charCodeAt(this.pos)===35){this.pos++;let t=!1;e.charCodeAt(this.pos)===120&&(t=!0,this.pos++);let n=this.pos;for(;this.pos<e.length&&e.charCodeAt(this.pos)!==59;)this.pos++;let r=e.slice(n,this.pos);r!==``&&(t?/^[0-9a-fA-F]+$/:/^[0-9]+$/).test(r)||this.fail(`invalid character reference`),this.expect(`;`);let i=parseInt(r,t?16:10);return i===9||i===10||i===13||i>=32&&i<=55295||i>=57344&&i<=65533||i>=65536&&i<=1114111||this.fail(`character reference to an invalid character`),String.fromCodePoint(i)}let t=this.name();this.expect(`;`);let n=to[t];if(n!==void 0)return n;let r=this.entities.get(t);if(r!==void 0)return r;this.fail(`undefined entity "${t}"`)}comment(e){this.pos+=4;let t=this.src.indexOf(`--`,this.pos);t<0&&this.fail(`unterminated comment`),this.src.charCodeAt(t+2)!==62&&(this.pos=t,this.fail(`"--" is not allowed in comments`));let n=this.src.slice(this.pos,t);checkChars(n,this),appendDetached(new Comment(n,this.doc)[j],e),this.pos=t+3}pi(e){this.pos+=2;let t=this.name();t.includes(`:`)&&this.fail(`processing instruction target contains a colon`);let n=``;if(this.startsWith(`?>`))this.pos+=2;else{this.skipWs()||this.fail(`expected whitespace after the processing instruction target`);let e=this.src.indexOf(`?>`,this.pos);e<0&&this.fail(`unterminated processing instruction`),n=this.src.slice(this.pos,e),this.pos=e+2}if(t.toLowerCase()===`xml`){if(e===null)return;this.fail(`XML declaration not at the start of the document`)}checkChars(n,this),e!==null&&appendDetached(new ProcessingInstruction(t,n,this.doc)[j],e)}quoted(){let e=this.src.charCodeAt(this.pos);e!==34&&e!==39&&this.fail(`expected a quoted string`);let t=this.src.indexOf(e===34?`"`:`'`,this.pos+1);t<0&&this.fail(`unterminated quoted string`);let n=this.src.slice(this.pos+1,t);return this.pos=t+1,n}doctype(e){this.pos+=9,this.skipWs()||this.fail(`expected whitespace after DOCTYPE`);let t=this.name(),n=``,r=``;this.skipWs(),this.startsWith(`PUBLIC`)?(this.pos+=6,this.skipWs(),n=this.quoted(),this.skipWs()||this.fail(`expected whitespace and a system literal after the public identifier`),r=this.quoted()):this.startsWith(`SYSTEM`)&&(this.pos+=6,this.skipWs(),r=this.quoted()),this.skipWs(),this.src.charCodeAt(this.pos)===91&&(this.internalSubset(),this.skipWs()),this.expect(`>`),appendDetached(new DocumentType(this.doc,t,n,r)[j],e)}internalSubset(){let e=this.src;for(this.pos++;this.pos<e.length;){if(e.charCodeAt(this.pos)===93){this.pos++;return}if(this.startsWith(`<!--`)){let t=e.indexOf(`-->`,this.pos+4);t<0&&this.fail(`unterminated comment`),this.pos=t+3}else if(this.startsWith(`<!ENTITY`)){this.pos+=8,this.skipWs();let t=!1;e.charCodeAt(this.pos)===37&&(t=!0,this.pos++,this.skipWs());let n=this.name();if(this.skipWs(),e.charCodeAt(this.pos)===34||e.charCodeAt(this.pos)===39){let e=this.quoted();t||this.entities.has(n)||e.includes(`<`)||e.includes(`&`)||this.entities.set(n,e)}this.skipToDeclEnd()}else if(this.startsWith(`<?`)){let t=e.indexOf(`?>`,this.pos);t<0&&this.fail(`unterminated processing instruction`),this.pos=t+2}else this.startsWith(`<!`)?(this.pos+=2,this.skipToDeclEnd()):this.pos++}this.fail(`unterminated DOCTYPE internal subset`)}skipToDeclEnd(){let e=this.src;for(;this.pos<e.length;){let t=e.charCodeAt(this.pos);if(t===34||t===39)this.quoted();else if(t===62){this.pos++;return}else this.pos++}this.fail(`unterminated markup declaration`)}lookup(e,t){let n=e.bindings.get(t);return n===void 0||n===``?null:n}element(e,t){let n=this.src;this.pos++;let r=this.name(),i=[],a=[],o=!1;for(;;){let e=this.skipWs();this.pos>=n.length&&this.fail(`unexpected end of input in a start tag`);let t=n.charCodeAt(this.pos);if(t===62){this.pos++;break}if(t===47){this.expect(`/>`),o=!0;break}e||this.fail(`expected whitespace between attributes`);let r=this.name();this.skipWs(),this.expect(`=`),this.skipWs();let s=this.attributeValue();i.includes(r)&&this.fail(`duplicate attribute "${r}"`),i.push(r),a.push(s)}let s=t;for(let e=0;e<i.length;e++){let n=i[e];if(n===`xmlns`||n.startsWith(`xmlns:`)){s===t&&(s={bindings:new Map(t.bindings)});let r=n===`xmlns`?``:n.slice(6),i=a[e];r===`xml`&&i!==`http://www.w3.org/XML/1998/namespace`&&this.fail(`the xml prefix cannot be rebound`),r===`xmlns`&&this.fail(`the xmlns prefix cannot be declared`),r!==``&&i===``&&this.fail(`empty namespace for prefix "${r}"`),(i===`http://www.w3.org/2000/xmlns/`||i===`http://www.w3.org/XML/1998/namespace`&&r!==`xml`)&&this.fail(`reserved namespace`),s.bindings.set(r,i)}}let c=r.indexOf(`:`),l=null,u=r,d;c>=0?(l=r.slice(0,c),u=r.slice(c+1),(l===``||u===``||u.includes(`:`))&&this.fail(`invalid qualified name "${r}"`),d=this.lookup(s,l),d===null&&this.fail(`unbound namespace prefix "${l}"`)):d=this.lookup(s,``);let m=createElementImpl(this.doc,u,d,l),h=/* @__PURE__ */ new Set;for(let e=0;e<i.length;e++){let t=i[e],n=t.indexOf(`:`),r=null,o=t,c=null;t===`xmlns`?c=S:n>=0&&(r=t.slice(0,n),o=t.slice(n+1),(r===``||o===``||o.includes(`:`))&&this.fail(`invalid attribute name "${t}"`),r===`xmlns`?c=S:r===`xml`?c=se:(c=this.lookup(s,r),c===null&&this.fail(`unbound namespace prefix "${r}"`)));let l=(c??``)+` `+o;h.has(l)&&this.fail(`duplicate attribute "${t}"`),h.add(l),appendAttributeDetached(m,o,a[e],c,r)}appendDetached(m,e),!o&&(this.content(m,s),this.expect(`</`),this.name()!==r&&this.fail(`mismatched end tag: expected "</${r}>"`),this.skipWs(),this.expect(`>`))}attributeValue(){let e=this.src,t=e.charCodeAt(this.pos);t!==34&&t!==39&&this.fail(`expected a quoted attribute value`),this.pos++;let n=``,r=this.pos;for(;;){this.pos>=e.length&&this.fail(`unterminated attribute value`);let i=e.charCodeAt(this.pos);if(i===t)break;i===60&&this.fail(`"<" is not allowed in attribute values`),i===38?(n+=e.slice(r,this.pos),n+=this.reference(),r=this.pos):((i===9||i===10||i===13)&&(n+=e.slice(r,this.pos)+` `,r=this.pos+1),this.pos++)}return n+=e.slice(r,this.pos),this.pos++,checkChars(n,this),n}content(e,t){let n=this.src,r=``;for(;;){this.pos>=n.length&&this.fail(`unexpected end of input: unclosed element`);let i=n.charCodeAt(this.pos);if(i===60){if(n.charCodeAt(this.pos+1)===47)break;if(this.flushText(e,r),r=``,this.startsWith(`<!--`))this.comment(e);else if(this.startsWith(`<![CDATA[`)){let t=n.indexOf(`]]>`,this.pos+9);t<0&&this.fail(`unterminated CDATA section`);let r=n.slice(this.pos+9,t);checkChars(r,this),appendDetached(new CDATASection(r,this.doc)[j],e),this.pos=t+3}else this.startsWith(`<?`)?this.pi(e):this.startsWith(`<!`)?this.fail(`unexpected markup declaration`):this.element(e,t);continue}if(i===38){r+=this.reference();continue}let a=this.pos;for(;this.pos<n.length;){let e=n.charCodeAt(this.pos);if(e===60||e===38)break;this.pos++}let o=n.slice(a,this.pos);o.includes(`]]>`)&&(this.pos=a+o.indexOf(`]]>`),this.fail(`"]]>" is not allowed in content`)),r+=o}this.flushText(e,r)}flushText(e,t){if(t===``)return;checkChars(t,this);let n=e.last;n!==null&&n.type===3?n.data+=t:appendDetached(new Text(t,this.doc)[j],e)}parseDocument(e){let t=this.src;t.charCodeAt(0)===65279&&(this.pos=1),this.startsWith(`<?xml`)&&isWs(t.charCodeAt(this.pos+5))&&this.pi(null);let n={bindings:/* @__PURE__ */ new Map([[`xml`,se]])},r=!1,i=!1;for(;this.skipWs(),!(this.pos>=t.length);)this.startsWith(`<!--`)?this.comment(e):this.startsWith(`<?`)?this.pi(e):this.startsWith(`<!DOCTYPE`)?((i||r)&&this.fail(`unexpected DOCTYPE`),i=!0,this.doctype(e)):t.charCodeAt(this.pos)===60&&this.pos+1<t.length&&isNameStartCode(t.charCodeAt(this.pos+1))?(r&&this.fail(`junk after document element`),r=!0,this.element(e,n)):r?this.fail(`junk after document element`):this.fail(t.charCodeAt(this.pos)===60?`not well-formed`:`text outside of the document element`);r||this.fail(`no root element found`)}parseFragment(e,t){this.src+=`</`,this.content(e,t),this.pos!==this.src.length-2&&this.fail(`not well-formed`)}};function parseXML(e,t,n){let r=new DocumentFragment(t)[j];try{new XMLParser(String(e).toWellFormed(),t).parseDocument(r)}catch(e){if(!(e instanceof XMLParseError))throw e;let n=createElementImpl(t,`parsererror`,`http://www.mozilla.org/newlayout/xml/parsererror.xml`,null);appendDetached(new Text(e.message,t)[j],n),append(n,t[j]);return}append(r,t[j])}function parseXMLFragment(e,t){let n=t.doc,r=new DocumentFragment(n)[j],i=/* @__PURE__ */ new Map([[`xml`,se]]),a=[];for(let e=t;e!==null;e=e.parent)e.type===1&&a.push(e);for(let e=a.length-1;e>=0;e--){let t=a[e];t.prefix!==null&&t.ns!==null&&i.set(t.prefix,t.ns);let n=t.attrs;if(n!==null)for(let e of n)e.ns===`http://www.w3.org/2000/xmlns/`&&i.set(e.prefix===null?``:e.localName,e.value)}i.set(``,t.type===1?t.ns??``:x);try{new XMLParser(String(e),n).parseFragment(r,{bindings:i})}catch(e){throw e instanceof XMLParseError?new DOMException(`The provided markup is not well-formed XML: ${e.message}.`,`SyntaxError`):e}return r}var DomSink=class extends TreeSink{nodes;hooked;modeTarget;otherNs;constructor(){super(),this.nodes=[],this.hooked=[],this.modeTarget=null,this.otherNs=null}begin(e){this.nodes.length=0,this.hooked.length=0,this.modeTarget=e,this.otherNs=null}finish(){let e=this.hooked;for(let t=0;t<e.length;t++)e[t].node._childrenChangedSteps();e.length=0,this.nodes.length=0,this.modeTarget=null}register(e){let t=this.nodes;return t.push(e),t.length-1}parentOf(e,t){return e>=0?this.nodes[e]:this.nodes[t].parent}createElement(e,t,n,r,i,a,o,s,c){let l=this.parentOf(n,r).doc,u=createElementImpl(l,e,t===0?x:t===1?ie:t===2?ae:this.otherNs,null);if(c)for(let e=0;e<s;e++){let t=o[e];t===0?appendAttributeDetached(u,i[e],a[e],null,null):t===1?appendAttributeDetached(u,i[e],a[e],oe,`xlink`):t===2?appendAttributeDetached(u,i[e],a[e],se,`xml`):t===3&&appendAttributeDetached(u,i[e],a[e],S,i[e]===`xmlns`?null:`xmlns`)}else for(let e=0;e<s;e++)appendAttributeDetached(u,i[e],a[e],null,null);return Di&&t===0&&ceParserCreated(u),u.flags&16&&this.hooked.push(u),this.register(u)}insert(e,t,n){let r=this.nodes[n],i=this.parentOf(e,t);r.parent!==null&&remove(r,!0),r.doc!==i.doc&&adopt(r,i.doc),t<0?appendDetached(r,i):insertDetached(r,i,this.nodes[t])}insertText(e,t,n){let r=this.parentOf(e,t),i=t>=0?this.nodes[t]:null,a=i===null?r.last:i.prev;if(a!==null&&a.type===3){a.data+=n;return}let o=new Text(n,r.doc)[j];i===null?appendDetached(o,r):insertDetached(o,r,i)}insertComment(e,t,n){let r=this.parentOf(e,t),i=new Comment(n,r.doc)[j];t<0?appendDetached(i,r):insertDetached(i,r,this.nodes[t])}insertProcessingInstruction(e,t,n,r){let i=this.parentOf(e,t),a=new ProcessingInstruction(n,r,i.doc)[j];t<0?appendDetached(a,i):insertDetached(a,i,this.nodes[t])}insertDoctype(e,t,n,r){let i=this.nodes[e];for(let e=i.first;e!==null;e=e.next)if(e.type===1||e.type===10)return;appendDetached(new DocumentType(i.doc,t,n,r)[j],i)}remove(e){let t=this.nodes[e];t.parent!==null&&remove(t,!0)}hasParent(e){return this.nodes[e].parent!==null}reparentChildren(e,t){let n=this.nodes[e],r=this.nodes[t];for(let e=n.first;e!==null;e=n.first)remove(e,!0),appendDetached(e,r)}addMissingAttributes(e,t,n,r){let i=this.nodes[e];if(i.type===1)for(let e=0;e<r;e++)findAttributeByName(i,t[e])===null&&appendAttributeDetached(i,t[e],n[e],null,null)}templateContents(e){let t=this.nodes[e].node.content;return t==null?e:this.register(t[j])}attachDeclarativeShadowRoot(e,t,n,r,i,a){let o=this.nodes[e].node;if(o[U]!=null)return-1;try{let e=attachShadowRoot(o,t===`closed`?`closed`:`open`,a,r,n,i===`manual`?`manual`:`named`);return e[xt]=!0,e[Re]=!0,this.register(e[j])}catch{return-1}}associateForm(e,t){let n=this.nodes[e].node;typeof n._parserAssociateForm==`function`&&n._parserAssociateForm(this.nodes[t].node)}setDocumentMode(e){let t=this.modeTarget;t!==null&&(t[Dn]=e===1?`quirks`:e===2?`limited-quirks`:`no-quirks`)}};let no=null,ro=!1;function acquire(){return ro?new TreeBuilder(new DomSink):(ro=!0,no??=new TreeBuilder(new DomSink))}function release(e){e===no&&(ro=!1)}const io=new ParseOptions,ao=new ParseOptions;function toOptions(e){if(e===void 0)return io;let t=ao;return t.scripting=e.scripting===!0,t.allowDeclarativeShadowRoots=e.allowDeclarativeShadowRoots===!0,t.processingInstructions=e.processingInstructions===!0,t.iframeSrcdoc=!1,t}function nsCode(e){return e===`http://www.w3.org/1999/xhtml`?0:e===`http://www.w3.org/2000/svg`?1:e===`http://www.w3.org/1998/Math/MathML`?2:3}function parseFragment(e,t,n){let r=t.doc;if(!r[M])return parseXMLFragment(e,t);let i=new DocumentFragment(r)[j],a=acquire(),o=a.sink;try{o.begin(null);let s=o.register(i),c=o.register(t),l=nsCode(t.ns);l===3&&(o.otherNs=t.ns);let u=-1;for(let e=t;e!==null;e=e.parent)if(e.type===1&&e.tag===Y.form&&e.ns===`http://www.w3.org/1999/xhtml`){u=o.register(e);break}let d=r[Dn]===`quirks`?1:r[Dn]===`limited-quirks`?2:0,m=l===2?attr(t,`encoding`)??``:``;a.parseFragment(e,s,c,t.name,l,m,u,d,toOptions(n)),o.finish()}finally{o.nodes.length=0,release(a)}return i}function parseDocument(e,t,n){let r=new DocumentFragment(t)[j],i=acquire(),a=i.sink;try{a.begin(t),t[Dn]=`no-quirks`;let o=a.register(r);i.parseDocument(e,o,toOptions(n)),a.finish()}finally{a.nodes.length=0,release(i)}append(r,t[j])}function setHTMLUnsafe(e,t){let n=e;if(e.type!==1){let t=e.node[A];if(t===null)throw TypeError(`setHTMLUnsafe: no context element`);n=t[j]}let r=parseFragment(t,n,{allowDeclarativeShadowRoots:!0}),i=e;if(e.type===1&&e.tag===Y.template&&e.ns===`http://www.w3.org/1999/xhtml`){let t=e.node.content;t!==void 0&&(i=t[j])}i.node._replaceAll(r.node)}function parseHTMLUnsafe(e,t){parseDocument(e,t,{allowDeclarativeShadowRoots:!0})}function isVoidTag(e){switch(e){case Y.area:case Y.base:case Y.basefont:case Y.bgsound:case Y.br:case Y.col:case Y.embed:case Y.frame:case Y.hr:case Y.img:case Y.input:case Y.keygen:case Y.link:case Y.meta:case Y.param:case Y.source:case Y.track:case Y.wbr:return!0}return!1}function isRawTextTag(e){switch(e){case Y.style:case Y.script:case Y.xmp:case Y.iframe:case Y.noembed:case Y.noframes:case Y.plaintext:return!0}return!1}function escapeText(e){let t=e.length,n=0;for(;n<t;n++){let t=e.charCodeAt(n);if(t===38||t===60||t===62||t===160)break}if(n===t)return e;let r=e.slice(0,n),i=n;for(;n<t;n++){let t=e.charCodeAt(n),a=``;if(t===38)a=`&`;else if(t===60)a=`<`;else if(t===62)a=`>`;else if(t===160)a=` `;else continue;r+=e.slice(i,n)+a,i=n+1}return r+e.slice(i)}function escapeAttribute(e){let t=e.length,n=0;for(;n<t;n++){let t=e.charCodeAt(n);if(t===38||t===34||t===60||t===62||t===160)break}if(n===t)return e;let r=e.slice(0,n),i=n;for(;n<t;n++){let t=e.charCodeAt(n),a=``;if(t===38)a=`&`;else if(t===34)a=`"`;else if(t===60)a=`<`;else if(t===62)a=`>`;else if(t===160)a=` `;else continue;r+=e.slice(i,n)+a,i=n+1}return r+e.slice(i)}function serializedAttrName(e,t,n){return e===null?n:e===`http://www.w3.org/XML/1998/namespace`?`xml:`+n:e===`http://www.w3.org/2000/xmlns/`?n===`xmlns`?`xmlns`:`xmlns:`+n:e===`http://www.w3.org/1999/xlink`?`xlink:`+n:t}function templateContentsOf(e){let t=e.node.content;return t==null?e:t[j]}let oo=``,so=!1,co=null;function htmlChildren(e){if(e.type===1){if(e.ns===`http://www.w3.org/1999/xhtml`&&isVoidTag(e.tag))return;(so||co!==null)&&htmlShadowRoot(e),e.tag===Y.template&&e.ns===`http://www.w3.org/1999/xhtml`&&(e=templateContentsOf(e))}for(let t=e.first;t!==null;t=t.next)switch(t.type){case 1:htmlElement(t);break;case 3:case 4:{let e=t.parent;e!==null&&e.type===1&&e.ns===`http://www.w3.org/1999/xhtml`&&isRawTextTag(e.tag)?oo+=t.data:oo+=escapeText(t.data);break}case 8:oo+=`<!--`+t.data+`-->`;break;case 7:oo+=`<?`+t.name+` `+t.data+`?>`;break;case 10:oo+=`<!DOCTYPE `+t.name+`>`}}function htmlElement(e){let t=e.ns,n=t===`http://www.w3.org/1999/xhtml`||t===`http://www.w3.org/2000/svg`||t===`http://www.w3.org/1998/Math/MathML`||e.prefix===null?e.name:e.prefix+`:`+e.name,r=`<`+n,i=e.attrs;if(i!==null)for(let e=0;e<i.length;e++){let t=i[e];r+=` `+(t.ns===null?t.localName:serializedAttrName(t.ns,t.name,t.localName))+`="`+escapeAttribute(t.value)+`"`}oo+=r+`>`,!(t===`http://www.w3.org/1999/xhtml`&&isVoidTag(e.tag))&&(htmlChildren(e),oo+=`</`+n+`>`)}function htmlShadowRoot(e){let t=e.node[U];if(t==null||!(so&&t[vr]||co!==null&&co.includes(t)))return;let n=`<template shadowrootmode="`+(t[Dn]===`open`?`open`:`closed`)+`"`;t[wt]&&(n+=` shadowrootdelegatesfocus=""`),t[vr]&&(n+=` shadowrootserializable=""`),t[wr]===`manual`&&(n+=` shadowrootslotassignment="manual"`),t[tt]&&(n+=` shadowrootclonable=""`),oo+=n+`>`,htmlChildren(t[j]),oo+=`</template>`}function runHtml(e,t,n,r){let i=oo,a=so,o=co;oo=``,so=t,co=n;try{if(r)switch(e.type){case 1:htmlElement(e);break;case 9:case 11:htmlChildren(e);break;default:{let t=e.parent;e.type===3||e.type===4?oo=t!==null&&t.type===1&&t.ns===`http://www.w3.org/1999/xhtml`&&isRawTextTag(t.tag)?e.data:escapeText(e.data):e.type===8?oo=`<!--`+e.data+`-->`:e.type===7?oo=`<?`+e.name+` `+e.data+`?>`:e.type===10&&(oo=`<!DOCTYPE `+e.name+`>`)}}else htmlChildren(e);return oo}finally{oo=i,so=a,co=o}}function inHTMLDocument(e){return e.doc[M]}function serializeChildren(e){if(inHTMLDocument(e))return runHtml(e,!1,null,!1);let t=``,n=e;e.type===1&&e.tag===Y.template&&e.ns===`http://www.w3.org/1999/xhtml`&&(n=templateContentsOf(e));for(let e=n.first;e!==null;e=e.next)t+=serializeXML(e,!0);return t}function serializeNode(e){return inHTMLDocument(e)?runHtml(e,!1,null,!0):serializeXML(e,!0)}function getHTML(e,t){let n=t?.serializableShadowRoots===!0,r=t?.shadowRoots;return runHtml(e,n,r!==void 0&&r.length!==0?r:null,!1)}var XmlError=class extends Error{};function invalid(e){throw new XmlError(e)}function copyMap(e){let t=/* @__PURE__ */ new Map;for(let[n,r]of e)t.set(n,r.slice());return t}function preferredPrefix(e,t,n){let r=e.get(n);if(r===void 0||r.length===0)return null;for(let e=0;e<r.length;e++)if(r[e]===t)return r[e];return r[r.length-1]}function prefixFound(e,t,n){let r=e.get(n);return r!==void 0&&r.includes(t)}function addPrefix(e,t,n){let r=e.get(n);r===void 0?e.set(n,[t]):r.push(t)}var PrefixIndex=class{value=1};function generatePrefix(e,t,n){let r=`ns`+String(n.value++);return addPrefix(e,r,t),r}function hasInvalidXmlChars(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n!==9&&n!==10&&n!==13){if(n<32||n===65534||n===65535)return!0;if(n>=55296&&n<=56319){let n=t+1<e.length?e.charCodeAt(t+1):0;if(n<56320||n>57343)return!0;t++}else if(n>=56320&&n<=57343)return!0}}return!1}function isNameStart(e){return e>=97&&e<=122||e>=65&&e<=90||e===58||e===95||e>=192&&e!==215&&e!==247}function isXmlName(e){if(e.length===0||!isNameStart(e.charCodeAt(0)))return!1;for(let t=1;t<e.length;t++){let n=e.charCodeAt(t);if(!(isNameStart(n)||n>=48&&n<=57||n===45||n===46||n===183))return!1}return!0}function escapeXmlText(e){let t=``,n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r),a=``;if(i===38)a=`&`;else if(i===60)a=`<`;else if(i===62)a=`>`;else continue;t+=e.slice(n,r)+a,n=r+1}return n===0?e:t+e.slice(n)}function serializeAttrValue(e,t){if(e===null)return``;t&&hasInvalidXmlChars(e)&&invalid(`attribute value contains invalid characters`);let n=``,r=0;for(let t=0;t<e.length;t++){let i=e.charCodeAt(t),a=``;if(i===38)a=`&`;else if(i===34)a=`"`;else if(i===60)a=`<`;else if(i===62)a=`>`;else if(i===9)a=`	`;else if(i===10)a=`
`;else if(i===13)a=`
`;else continue;n+=e.slice(r,t)+a,r=t+1}return r===0?e:n+e.slice(r)}function prefixBound(e,t){for(let n of e.values())if(n.includes(t))return!0;return!1}const lo=/* @__PURE__ */ new Set([`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`embed`,`frame`,`hr`,`img`,`input`,`keygen`,`link`,`menuitem`,`meta`,`param`,`source`,`track`,`wbr`]);function recordNamespaceInformation(e,t,n){let r=null,i=e.attrs;if(i===null)return null;for(let e=0;e<i.length;e++){let a=i[e];if(a.ns!==`http://www.w3.org/2000/xmlns/`)continue;if(a.prefix===null){r=a.value;continue}let o=a.localName,s=a.value;s!==`http://www.w3.org/XML/1998/namespace`&&(s===``&&(s=null),!prefixFound(t,o,s)&&(addPrefix(t,o,s),n.set(o,s??``)))}return r}function serializeAttributes(e,t,n,r,i,a){let o=``,s=e.attrs;if(s===null)return o;let c=a?/* @__PURE__ */ new Set:null;for(let e=0;e<s.length;e++){let l=s[e];if(c!==null){let e=(l.ns??``)+`\0`+l.localName;c.has(e)&&invalid(`duplicate attribute`),c.add(e)}let u=l.ns;if(u===null&&l.localName===`xmlns`){a&&invalid(`invalid attribute name`);continue}let d=null;if(u!==null){if(d=preferredPrefix(t,l.prefix,u),u===`http://www.w3.org/2000/xmlns/`){if(l.value===`http://www.w3.org/XML/1998/namespace`||l.prefix===null&&i||l.prefix!==null&&(!r.has(l.localName)||r.get(l.localName)!==l.value))continue;a&&l.value===`http://www.w3.org/2000/xmlns/`&&invalid(`xmlns namespace declared as a value`),a&&l.value===``&&invalid(`empty namespace declaration`),l.prefix===`xmlns`&&(d=`xmlns`)}else d===null&&(u===`http://www.w3.org/1999/xlink`&&l.prefix!==null&&!r.has(l.prefix)&&!prefixBound(t,l.prefix)?(d=l.prefix,addPrefix(t,d,u)):d=generatePrefix(t,u,n),o+=` xmlns:`+d+`="`+serializeAttrValue(u,a)+`"`)}o+=` `,d!==null&&(o+=d+`:`),a&&(l.localName.includes(`:`)||!isXmlName(l.localName)||l.localName===`xmlns`&&u===null)&&invalid(`invalid attribute name`),o+=l.localName+`="`+serializeAttrValue(l.value,a)+`"`}return o}function serializeElementXML(e,t,n,r,i){let a=e.name;i&&(a.includes(`:`)||!isXmlName(a))&&invalid(`invalid element name`);let o=`<`,s=``,c=!1,l=!1;n=copyMap(n);let u=/* @__PURE__ */ new Map,d=recordNamespaceInformation(e,n,u),m=t,h=e.ns;if(m===h)d!==null&&(l=!0),s=h===`http://www.w3.org/XML/1998/namespace`?`xml:`+a:a,o+=s;else{let t=e.prefix,c=preferredPrefix(n,t,h);t===`xmlns`&&(i&&invalid(`element prefix xmlns`),c=t),c===null?t===null?d===null||d!==h?(l=!0,s=a,m=h,o+=s+` xmlns="`+serializeAttrValue(h,i)+`"`):(s=a,m=h,o+=s):(u.has(t)?t=generatePrefix(n,h,r):addPrefix(n,t,h),s=t+`:`+a,o+=s+` xmlns:`+t+`="`+serializeAttrValue(h,i)+`"`,d!==null&&(m=d===``?null:d)):(s=c+`:`+a,d!==null&&d!==`http://www.w3.org/XML/1998/namespace`&&(m=d===``?null:d),o+=s)}o+=serializeAttributes(e,n,r,u,l,i);let _=h===`http://www.w3.org/1999/xhtml`&&a===`template`?templateContentsOf(e):e;if(h===`http://www.w3.org/1999/xhtml`&&_.first===null&&lo.has(a)?(o+=` /`,c=!0):h!==`http://www.w3.org/1999/xhtml`&&_.first===null&&(o+=`/`,c=!0),o+=`>`,c)return o;for(let e=_.first;e!==null;e=e.next)o+=xmlNode(e,m,n,r,i);return o+`</`+s+`>`}function xmlNode(e,t,n,r,i){switch(e.type){case 1:return serializeElementXML(e,t,n,r,i);case 9:{if(i){let t=!1;for(let n=e.first;n!==null;n=n.next)n.type===1&&(t=!0);t||invalid(`document without a document element`)}let a=``;for(let o=e.first;o!==null;o=o.next)a+=xmlNode(o,t,n,r,i);return a}case 11:{let a=``;for(let o=e.first;o!==null;o=o.next)a+=xmlNode(o,t,n,r,i);return a}case 8:{let t=e.data;return i&&(hasInvalidXmlChars(t)||t.includes(`--`)||t.endsWith(`-`))&&invalid(`invalid comment`),`<!--`+t+`-->`}case 3:{let t=e.data;return i&&hasInvalidXmlChars(t)&&invalid(`invalid text`),escapeXmlText(t)}case 4:return`<![CDATA[`+e.data+`]]>`;case 10:{let t=e.node;i&&(hasInvalidXmlChars(t.publicId)&&invalid(`invalid doctype public id`),(hasInvalidXmlChars(t.systemId)||t.systemId.includes(`"`)&&t.systemId.includes(`'`))&&invalid(`invalid doctype system id`));let n=`<!DOCTYPE `+e.name;return t.publicId!==``&&(n+=` PUBLIC "`+t.publicId+`"`),t.systemId!==``&&t.publicId===``&&(n+=` SYSTEM`),t.systemId!==``&&(n+=` "`+t.systemId+`"`),n+`>`}case 7:return i&&(e.name.includes(`:`)||e.name.toLowerCase()===`xml`||hasInvalidXmlChars(e.data)||e.data.includes(`?>`))&&invalid(`invalid processing instruction`),`<?`+e.name+` `+e.data+`?>`}return``}function serializeXML(e,t){let n=/* @__PURE__ */ new Map;n.set(se,[`xml`]);try{return xmlNode(e,null,n,new PrefixIndex,t)}catch(e){throw e instanceof XmlError?new DOMException(`The node could not be serialized as XML: ${e.message}.`,`InvalidStateError`):e}}let uo=null;function setShadowHostCustomStateCheck(e){uo=e}var ShadowRoot=class extends DocumentFragment{[Dn];[wt];[wr];[tt];[vr];[xt];[Re];constructor(e,t,n,r,i,a,o){if(arguments.length<3)throw TypeError(`Illegal constructor`);super(e);let s=this[j];s.flags|=32,t[j].flags&1&&(s.flags|=1),this[A]=t,this[Dn]=n,this[wt]=r,this[wr]=i,this[tt]=a,this[vr]=o,this[xt]=!1,this[Re]=uo!==null&&uo(t)}get mode(){return this[Dn]}get host(){return this[A]}get delegatesFocus(){return this[wt]}get slotAssignment(){return this[wr]}get clonable(){return this[tt]}get serializable(){return this[vr]}get innerHTML(){return serializeChildren(this[j])}set innerHTML(e){let t=parseFragment(e===null?``:String(e),this[A][j]);this._replaceAll(t.node)}getHTML(e){return getHTML(this[j],e)}setHTMLUnsafe(e){setHTMLUnsafe(this[j],String(e))}get activeElement(){let e=this[j],t=e.doc[k];for(;t!==null;){let n=treeRoot(t);if(n===e)return t.node;if(!(n.flags&32))return null;let r=n.node[A];t=r===null?null:r[j]}return null}elementFromPoint(e,t){return null}elementsFromPoint(e,t){return[]}};Object.defineProperty(ShadowRoot.prototype,Symbol.toStringTag,{value:`ShadowRoot`,configurable:!0});const fo=[];function orderedSet(e){let t=e.length;if(t<2)return e;for(let n=1;n<t;n++){let t=e[n];for(let r=0;r<n;r++)if(e[r]===t){let t=[];for(let n of e)t.includes(n)||t.push(n);return t}}return e}function validateToken(e){if(e===``)throw new DOMException(`The token provided must not be empty.`,`SyntaxError`);for(let t=0;t<e.length;t++)if(isAsciiWhitespace(e.charCodeAt(t)))throw new DOMException(`The token provided ('${e}') contains HTML space characters, which are not valid in tokens.`,`InvalidCharacterError`)}let po=null;var mo=class DOMTokenList{#e;#t;#n;#r;#i;constructor(e,t,n=null){this.#e=e,this.#t=t,this.#n=n,this.#r=null,this.#i=fo,po===null&&(po=indexGetterTable(DOMTokenList.prototype,(e,t)=>e.item(t)??void 0,16))}#a(){let e=this.#e;if(this.#t===`class`){let t=classTokens(e);return t!==this.#r&&(this.#r=t,this.#i=orderedSet(t)),this.#i}let t=attr(e,this.#t);return t!==this.#r&&(this.#r=t,this.#i=t===null||t===``?fo:orderedSet(splitOnAsciiWhitespace(t))),this.#i}#o(e){let t=this.#e;(e.length!==0||attr(t,this.#t)!==null)&&setAttribute(t,this.#t,e.join(` `))}get length(){let e=this.#a().length;return e>po.count&&ensureIndexGetters(po,e),e}item(e){let t=this.#a(),n=Number(e)>>>0;return n<t.length?t[n]:null}contains(e){return this.#a().includes(String(e))}add(...e){let t=e.map(String);for(let e of t)validateToken(e);let n=this.#a().slice();for(let e of t)n.includes(e)||n.push(e);this.#o(n)}remove(...e){let t=e.map(String);for(let e of t)validateToken(e);let n=this.#a().filter(e=>!t.includes(e));this.#o(n)}toggle(e,t){let n=String(e);validateToken(n);let r=this.#a();return r.includes(n)?t===void 0||!t?(this.#o(r.filter(e=>e!==n)),!1):!0:t===void 0||t?(this.#o([...r,n]),!0):!1}replace(e,t){let n=String(e),r=String(t);if(n===``||r===``)throw new DOMException(`The token provided must not be empty.`,`SyntaxError`);validateToken(n),validateToken(r);let i=this.#a();if(!i.includes(n))return!1;let a=[],o=!1;for(let e of i)e===n||e===r?o||=(a.push(r),!0):a.push(e);return this.#o(a),!0}supports(e){let t=this.#n;if(t===null)throw TypeError(`'${this.#t}' attribute has no supported tokens`);return t.includes(String(e).toLowerCase())}get value(){return attr(this.#e,this.#t)??``}set value(e){setAttribute(this.#e,this.#t,String(e))}toString(){return this.value}_clear(){removeAttribute(this.#e,this.#t)}};Object.defineProperties(mo.prototype,{forEach:{value:Array.prototype.forEach,writable:!0,enumerable:!0,configurable:!0},entries:{value:Array.prototype.entries,writable:!0,enumerable:!0,configurable:!0},keys:{value:Array.prototype.keys,writable:!0,enumerable:!0,configurable:!0},values:{value:Array.prototype.values,writable:!0,enumerable:!0,configurable:!0},[Symbol.iterator]:{value:Array.prototype.values,writable:!0,configurable:!0},[Symbol.toStringTag]:{value:`DOMTokenList`,configurable:!0}});function toAttributeName(e){let t=`data-`;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t+=r>=65&&r<=90?`-`+String.fromCharCode(r+32):e[n]}return t}function toPropertyName(e){if(!e.startsWith(`data-`))return null;let t=``;for(let n=5;n<e.length;n++){let r=e.charCodeAt(n);if(r>=65&&r<=90)return null;if(r===45&&n+1<e.length){let r=e.charCodeAt(n+1);if(r>=97&&r<=122){t+=String.fromCharCode(r-32),n++;continue}}t+=e[n]}return t}function getNamed(e,t){let n=e.attrs;if(n!==null)for(let e=0;e<n.length;e++){let r=n[e];if(r.ns===null&&toPropertyName(r.localName)===t)return r.value}}function supportedNames$1(e){let t=[],n=e.attrs;if(n===null)return t;for(let e=0;e<n.length;e++){let r=n[e];if(r.ns!==null)continue;let i=toPropertyName(r.localName);i!==null&&t.push(i)}return t}__name(supportedNames$1,`supportedNames`);function setNamed(e,t,n){for(let e=0;e<t.length-1;e++){let n=t.charCodeAt(e+1);if(t.charCodeAt(e)===45&&n>=97&&n<=122)throw new DOMException(`'${t}' is not a valid property name.`,`SyntaxError`)}let r=toAttributeName(t);if(!isValidAttributeLocalName(r))throw new DOMException(`'${r}' is not a valid attribute name.`,`InvalidCharacterError`);setAttribute(e,r,n)}function deleteNamed(e,t){let n=findAttributeByNamespace(e,null,toAttributeName(t));n!==null&&removeAttributeRecord(e,n)}const ho=Symbol(`DOMStringMap owner`),_o={get(e,t,n){if(typeof t==`string`){let n=getNamed(e[ho],t);if(n!==void 0)return n}else if(t===ho)return;return Reflect.get(e,t,n)},set(e,t,n,r){return typeof t==`string`?(setNamed(e[ho],t,String(n)),!0):t!==ho&&Reflect.set(e,t,n,r)},has(e,t){return typeof t==`string`&&getNamed(e[ho],t)!==void 0||t!==ho&&Reflect.has(e,t)},deleteProperty(e,t){return typeof t==`string`?(deleteNamed(e[ho],t),!0):t===ho||Reflect.deleteProperty(e,t)},ownKeys(e){let t=supportedNames$1(e[ho]);for(let n of Reflect.ownKeys(e))n!==ho&&!t.includes(n)&&t.push(n);return t},getOwnPropertyDescriptor(e,t){if(typeof t==`string`){let n=getNamed(e[ho],t);if(n!==void 0)return{value:n,writable:!0,enumerable:!0,configurable:!0}}else if(t===ho)return;return Reflect.getOwnPropertyDescriptor(e,t)},defineProperty(e,t,n){return typeof t==`string`?n.get!==void 0||n.set!==void 0?!1:(setNamed(e[ho],t,String(n.value)),!0):t!==ho&&Reflect.defineProperty(e,t,n)}};function createDOMStringMap(e){let t=Object.create(DOMStringMap.prototype);return t[ho]=e,new Proxy(t,_o)}var DOMStringMap=class{constructor(e){return createDOMStringMap(e)}};Object.defineProperty(DOMStringMap.prototype,Symbol.toStringTag,{value:`DOMStringMap`,configurable:!0});var Attr=class extends Node{[Qn];[z];constructor(e,t,n,r,i,a,o=null){super(2,e);let s=this[j];s.name=t,s.data=n,s.ns=r,s.prefix=i,this[z]=a,this[Qn]=o}get namespaceURI(){return this[j].ns}get prefix(){return this[j].prefix}get localName(){return this[j].name}get name(){let e=this[j];return e.prefix===null?e.name:e.prefix+`:`+e.name}get value(){return attrValue(this)}set value(e){setAttrValue(this,String(e))}get ownerElement(){return this[z]}get specified(){return!0}_attach(e,t){this[z]=e,this[Qn]=t,this[j].doc=e[j].doc}_detach(){let e=this[Qn];e!==null&&(this[j].data=e.value),this[z]=null,this[Qn]=null}};function attrNode(e,t){let n=t.attr;return n===null&&(n=new Attr(e.doc,t.localName,t.value,t.ns,t.prefix,e.node,t),t.attr=n),n}function setAttributeNode(e,t){let n=t[z];if(n!==null&&n[j]!==e)throw new DOMException(`The attribute is in use by another element.`,`InUseAttributeError`);let r=t[j],i=findAttributeByNamespace(e,r.ns,r.name);if(i!==null&&i.attr===t)return t;let a=new AttrRecord(r.name,t.value,r.ns,r.prefix);if(a.attr=t,i!==null){let n=attrNode(e,i),r=e.attrs;return r[r.indexOf(i)]=a,t._attach(e.node,a),n._detach(),handleAttributeChanges(e,a,i.value,a.value),n}return t._attach(e.node,a),appendAttribute(e,a),null}function removeAttributeNode(e,t){let n=t[Qn],r=e.attrs;if(n===null||r===null||!r.includes(n))throw new DOMException(`The attribute is not an attribute of this element.`,`NotFoundError`);return removeAttributeRecord(e,n),t}let vo=null;const yo=Symbol(`NamedNodeMap.element`),isArrayIndex=e=>/^(?:0|[1-9]\d*)$/.test(e)&&Number(e)<4294967295;function namedAttribute(e,t){let n=e[yo];return n.flags&2&&/[A-Z]/.test(t)?null:findAttributeByName(n,t)}function named(e,t){return typeof t==`string`&&!(t in e)&&!isArrayIndex(t)?namedAttribute(e,t):null}const bo={get(e,t){if(typeof t==`symbol`||t in e)return e[t];let n=isArrayIndex(t)?null:namedAttribute(e,t);return n===null?void 0:attrNode(e[yo],n)},has(e,t){return t in e||named(e,t)!==null},getOwnPropertyDescriptor(e,t){let n=named(e,t);return n===null?t===yo?void 0:Reflect.getOwnPropertyDescriptor(e,t):{value:attrNode(e[yo],n),writable:!1,enumerable:!1,configurable:!0}},ownKeys(e){let t=Reflect.ownKeys(e).filter(e=>e!==yo),n=e[yo].attrs;if(n!==null)for(let r=0;r<n.length;r++){let i=n[r].name;!t.includes(i)&&named(e,i)!==null&&t.push(i)}return t}};function byName(e,t){let n=String(t);return findAttributeByName(e,e.flags&2?asciiLowercase$1(n):n)}var xo=class NamedNodeMap{constructor(e){return Object.defineProperty(this,yo,{value:e,configurable:!0}),vo===null&&(vo=indexGetterTable(NamedNodeMap.prototype,(e,t)=>e.item(t)??void 0,16)),new Proxy(this,bo)}get length(){let e=this[yo].attrs,t=e===null?0:e.length;return t>vo.count&&ensureIndexGetters(vo,t),t}item(e){let t=this[yo],n=t.attrs,r=Number(e)>>>0;return n===null||r>=n.length?null:attrNode(t,n[r])}getNamedItem(e){let t=byName(this[yo],e);return t===null?null:attrNode(this[yo],t)}getNamedItemNS(e,t){let n=this[yo],r=findAttributeByNamespace(n,e===``||e===void 0?null:e,String(t));return r===null?null:attrNode(n,r)}setNamedItem(e){return setAttributeNode(this[yo],e)}setNamedItemNS(e){return setAttributeNode(this[yo],e)}removeNamedItem(e){let t=this[yo],n=byName(this[yo],e);if(n===null)throw new DOMException(`No item with name '${e}' was found.`,`NotFoundError`);let r=attrNode(t,n);return removeAttributeRecord(t,n),r}removeNamedItemNS(e,t){let n=this[yo],r=findAttributeByNamespace(n,e===``||e===void 0?null:e,String(t));if(r===null)throw new DOMException(`No item with name '${e}::${t}' was found.`,`NotFoundError`);let i=attrNode(n,r);return removeAttributeRecord(n,r),i}};Object.defineProperties(xo.prototype,{[Symbol.iterator]:{value:Array.prototype.values,writable:!0,configurable:!0},[Symbol.toStringTag]:{value:`NamedNodeMap`,configurable:!0}});function isValidElementLocalName(e){let t=e.length;if(t===0)return!1;let n=e.charCodeAt(0);if(n>=97&&n<=122||n>=65&&n<=90){for(let n=1;n<t;n++){let t=e.charCodeAt(n);if(t===32||t===9||t===10||t===12||t===13||t===0||t===47||t===62)return!1}return!0}if(n!==58&&n!==95&&n<128)return!1;for(let n=1;n<t;n++){let t=e.charCodeAt(n);if(!(t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===45||t===46||t===58||t===95||t>=128))return!1}return!0}function isValidNamespacePrefix(e){let t=e.length;if(t===0)return!1;for(let n=0;n<t;n++){let t=e.charCodeAt(n);if(t===32||t===9||t===10||t===12||t===13||t===0||t===47||t===62)return!1}return!0}function isValidDoctypeName(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n===32||n===9||n===10||n===12||n===13||n===0||n===62)return!1}return!0}const So=`A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\u{10000}-\\u{EFFFF}`,Co=RegExp(`^[:${So}][:${So}\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`,`u`);function isXMLName(e){return Co.test(e)}function validateAndExtract(e,t,n){e===``&&(e=null);let r=null,i=t,a=t.indexOf(`:`);if(a!==-1&&(r=t.slice(0,a),i=t.slice(a+1),!isValidNamespacePrefix(r)))throw new DOMException(`"${r}" is not a valid namespace prefix.`,`InvalidCharacterError`);if(n===`attribute`?!isValidAttributeLocalName(i):!isValidElementLocalName(i))throw new DOMException(`"${t}" is not a valid qualified name.`,`InvalidCharacterError`);if(r!==null&&e===null)throw new DOMException(`A prefix was given but no namespace was provided.`,`NamespaceError`);if(r===`xml`&&e!==`http://www.w3.org/XML/1998/namespace`)throw new DOMException(`A prefix of "xml" was given but the namespace was not the XML namespace.`,`NamespaceError`);if((t===`xmlns`||r===`xmlns`)&&e!==`http://www.w3.org/2000/xmlns/`)throw new DOMException(`A prefix or qualifiedName of "xmlns" was given but the namespace was not the XMLNS namespace.`,`NamespaceError`);if(e===`http://www.w3.org/2000/xmlns/`&&t!==`xmlns`&&r!==`xmlns`)throw new DOMException(`The XMLNS namespace was given but neither the prefix nor qualifiedName was "xmlns".`,`NamespaceError`);return{namespace:e,prefix:r,localName:i}}let setPoint,setRect;var DOMPointReadOnly=class{#e;#t;#n;#r;static{setPoint=(e,t,n)=>{t===0?e.#e=n:t===1?e.#t=n:t===2?e.#n=n:e.#r=n}}constructor(e=0,t=0,n=0,r=1){this.#e=Number(e),this.#t=Number(t),this.#n=Number(n),this.#r=Number(r)}static fromPoint(e={}){return new this(e.x,e.y,e.z,e.w)}get x(){return this.#e}get y(){return this.#t}get z(){return this.#n}get w(){return this.#r}matrixTransform(e){let t=e[F],n=this.#e,r=this.#t,i=this.#n,a=this.#r;return new wo(t[0]*n+t[4]*r+t[8]*i+t[12]*a,t[1]*n+t[5]*r+t[9]*i+t[13]*a,t[2]*n+t[6]*r+t[10]*i+t[14]*a,t[3]*n+t[7]*r+t[11]*i+t[15]*a)}toJSON(){return{x:this.#e,y:this.#t,z:this.#n,w:this.#r}}},wo=class DOMPoint extends DOMPointReadOnly{static fromPoint(e={}){return new DOMPoint(e.x,e.y,e.z,e.w)}get x(){return super.x}set x(e){setPoint(this,0,Number(e))}get y(){return super.y}set y(e){setPoint(this,1,Number(e))}get z(){return super.z}set z(e){setPoint(this,2,Number(e))}get w(){return super.w}set w(e){setPoint(this,3,Number(e))}},DOMRectReadOnly=class{#e;#t;#n;#r;static{setRect=(e,t,n)=>{t===0?e.#e=n:t===1?e.#t=n:t===2?e.#n=n:e.#r=n}}constructor(e=0,t=0,n=0,r=0){this.#e=Number(e),this.#t=Number(t),this.#n=Number(n),this.#r=Number(r)}static fromRect(e={}){return new this(e.x,e.y,e.width,e.height)}get x(){return this.#e}get y(){return this.#t}get width(){return this.#n}get height(){return this.#r}get top(){return Math.min(this.#t,this.#t+this.#r)}get right(){return Math.max(this.#e,this.#e+this.#n)}get bottom(){return Math.max(this.#t,this.#t+this.#r)}get left(){return Math.min(this.#e,this.#e+this.#n)}toJSON(){return{x:this.#e,y:this.#t,width:this.#n,height:this.#r,top:this.top,right:this.right,bottom:this.bottom,left:this.left}}},To=class DOMRect extends DOMRectReadOnly{static fromRect(e={}){return new DOMRect(e.x,e.y,e.width,e.height)}get x(){return super.x}set x(e){setRect(this,0,Number(e))}get y(){return super.y}set y(e){setRect(this,1,Number(e))}get width(){return super.width}set width(e){setRect(this,2,Number(e))}get height(){return super.height}set height(e){setRect(this,3,Number(e))}},DOMRectList=class{[er];constructor(e=[]){this[er]=e;for(let t=0;t<e.length;t++)Object.defineProperty(this,t,{value:e[t],enumerable:!0});hideInternals(this)}get length(){return this[er].length}item(e){return this[er][e]??null}[Symbol.iterator](){return this[er][Symbol.iterator]()}};const Eo=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function multiply(e,t){let n=Array.from({length:16},()=>0);for(let r=0;r<4;r++)for(let i=0;i<4;i++){let a=0;for(let n=0;n<4;n++)a+=e[n*4+i]*t[r*4+n];n[r*4+i]=a}return n}var DOMMatrixReadOnly=class{[F];[gn];constructor(e){if(e===void 0||e===``||e===`none`)this[F]=Eo.slice(),this[gn]=!0;else if(Array.isArray(e)||ArrayBuffer.isView(e)){let t=Array.from(e,Number);if(t.length===6)this[F]=[t[0],t[1],0,0,t[2],t[3],0,0,0,0,1,0,t[4],t[5],0,1],this[gn]=!0;else if(t.length===16)this[F]=t,this[gn]=!1;else throw TypeError(`Failed to construct 'DOMMatrix': The sequence must contain 6 elements for a 2D matrix or 16 elements for a 3D matrix.`)}else{let t=/^\s*matrix\(([^)]*)\)\s*$/.exec(String(e));if(t===null)throw new DOMException(`Failed to construct 'DOMMatrix': Failed to parse '${String(e)}'.`,`SyntaxError`);let n=t[1].split(/[\s,]+/).filter(Boolean).map(Number);this[F]=[n[0],n[1],0,0,n[2],n[3],0,0,0,0,1,0,n[4],n[5],0,1],this[gn]=!0}hideInternals(this)}static fromMatrix(e={}){let t=new this;return(e.a!==void 0||e.m11!==void 0)&&(t[F][0]=e.m11??e.a??1,t[F][1]=e.m12??e.b??0,t[F][4]=e.m21??e.c??0,t[F][5]=e.m22??e.d??1,t[F][12]=e.m41??e.e??0,t[F][13]=e.m42??e.f??0),t}static fromFloat64Array(e){return new this(Array.from(e))}static fromFloat32Array(e){return new this(Array.from(e))}get a(){return this[F][0]}get b(){return this[F][1]}get c(){return this[F][4]}get d(){return this[F][5]}get e(){return this[F][12]}get f(){return this[F][13]}get m11(){return this[F][0]}get m12(){return this[F][1]}get m13(){return this[F][2]}get m14(){return this[F][3]}get m21(){return this[F][4]}get m22(){return this[F][5]}get m23(){return this[F][6]}get m24(){return this[F][7]}get m31(){return this[F][8]}get m32(){return this[F][9]}get m33(){return this[F][10]}get m34(){return this[F][11]}get m41(){return this[F][12]}get m42(){return this[F][13]}get m43(){return this[F][14]}get m44(){return this[F][15]}get is2D(){return this[gn]}get isIdentity(){for(let e=0;e<16;e++)if(this[F][e]!==Eo[e])return!1;return!0}multiply(e){let t=new Do(multiply(this[F],e[F]));return t[gn]=this[gn]&&e[gn],t}translate(e=0,t=0,n=0){let r=new Do([1,0,0,0,0,1,0,0,0,0,1,0,e,t,n,1]);return r[gn]=n===0,this.multiply(r)}scale(e=1,t=e,n=1){let r=new Do([e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1]);return r[gn]=n===1,this.multiply(r)}inverse(){let[e,t,,,n,r,,,,,,,i,a]=this[F],o=e*r-t*n;if(!this[gn]||o===0){let e=new Do(Array.from({length:16},()=>NaN));return e[gn]=!1,e}return new Do([r/o,-t/o,-n/o,e/o,(n*a-r*i)/o,(t*i-e*a)/o])}transformPoint(e={}){return wo.fromPoint(e).matrixTransform(this)}toFloat64Array(){return Float64Array.from(this[F])}toFloat32Array(){return Float32Array.from(this[F])}toJSON(){let e={a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f},t=[`m11`,`m12`,`m13`,`m14`,`m21`,`m22`,`m23`,`m24`,`m31`,`m32`,`m33`,`m34`,`m41`,`m42`,`m43`,`m44`];for(let n=0;n<16;n++)e[t[n]]=this[F][n];return e.is2D=this[gn],e.isIdentity=this.isIdentity,e}toString(){return this[gn]?`matrix(${this.a}, ${this.b}, ${this.c}, ${this.d}, ${this.e}, ${this.f})`:`matrix3d(${this[F].join(`, `)})`}},Do=class DOMMatrix extends DOMMatrixReadOnly{static fromMatrix(e={}){return DOMMatrixReadOnly.fromMatrix.call(DOMMatrix,e)}get a(){return this[F][0]}set a(e){this[F][0]=Number(e)}get b(){return this[F][1]}set b(e){this[F][1]=Number(e)}get c(){return this[F][4]}set c(e){this[F][4]=Number(e)}get d(){return this[F][5]}set d(e){this[F][5]=Number(e)}get e(){return this[F][12]}set e(e){this[F][12]=Number(e)}get f(){return this[F][13]}set f(e){this[F][13]=Number(e)}};exposeMembers(DOMPointReadOnly,wo,DOMRectReadOnly,To,DOMRectList,DOMMatrixReadOnly,Do);function isPotentialCustomElementName(e){let t=e.charCodeAt(0);return t>=97&&t<=122&&e.includes(`-`)}var Oo=class Element extends Node{constructor(e,t,n,r){super(1,e);let i=this[j];i.name=t,i.ns=n,i.prefix=r,n===`http://www.w3.org/1999/xhtml`&&(e[M]&&(i.flags|=2),i.tag=tagId(t),i.tag===0&&isPotentialCustomElementName(t)&&(i.flags|=128))}get namespaceURI(){return this[j].ns}get prefix(){return this[j].prefix}get localName(){return this[j].name}get tagName(){return htmlUppercasedQualifiedName(this[j])}get id(){return this[j].id}set id(e){setAttribute(this[j],`id`,String(e))}get className(){return getAttribute(this[j],`class`)??``}set className(e){setAttribute(this[j],`class`,String(e))}get classList(){return this[$e]??=new mo(this[j],`class`)}set classList(e){this.classList.value=e}get dataset(){return this[bt]??=createDOMStringMap(this[j])}get part(){let e=ko.get(this);return e===void 0&&ko.set(this,e=new mo(this[j],`part`)),e}set part(e){this.part.value=e}get attributes(){return this[Le]??=new xo(this[j])}get slot(){return attr(this[j],`slot`)??``}set slot(e){let t=this[j],n=String(e),r=findAttributeByNamespace(t,null,`slot`);r===null?appendAttribute(t,new AttrRecord(`slot`,n,null,null)):changeAttribute(t,r,n)}hasAttributes(){let e=this[j].attrs;return e!==null&&e.length!==0}getAttributeNames(){let e=this[j].attrs;return e===null?[]:e.map(e=>e.name)}getAttribute(e){return getAttribute(this[j],String(e))}getAttributeNS(e,t){let n=findAttributeByNamespace(this[j],e===``||e===void 0?null:e,String(t));return n===null?null:n.value}setAttribute(e,t){setAttribute(this[j],String(e),String(t))}setAttributeNS(e,t,n){let{namespace:r,prefix:i,localName:a}=validateAndExtract(e===void 0?null:e,String(t),`attribute`),o=this[j],s=String(n),c=findAttributeByNamespace(o,r,a);c===null?appendAttribute(o,new AttrRecord(a,s,r,i)):changeAttribute(o,c,s)}getAttributeNode(e){let t=this[j],n=String(e),r=findAttributeByName(t,t.flags&2?asciiLowercase$1(n):n);return r===null?null:attrNode(t,r)}getAttributeNodeNS(e,t){let n=this[j],r=findAttributeByNamespace(n,e===``||e===void 0?null:e,String(t));return r===null?null:attrNode(n,r)}setAttributeNode(e){return setAttributeNode(this[j],e)}setAttributeNodeNS(e){return setAttributeNode(this[j],e)}removeAttributeNode(e){return removeAttributeNode(this[j],e)}removeAttribute(e){removeAttribute(this[j],String(e))}removeAttributeNS(e,t){let n=findAttributeByNamespace(this[j],e===``||e===void 0?null:e,String(t));n!==null&&removeAttributeRecord(this[j],n)}toggleAttribute(e,t){let n=this[j],r=String(e);if(!isValidAttributeLocalName(r))throw new DOMException(`"${r}" is not a valid attribute name.`,`InvalidCharacterError`);let i=n.flags&2?asciiLowercase$1(r):r,a=findAttributeByName(n,i);return a===null?t===void 0||t?(appendAttribute(n,new AttrRecord(i,``,null,null)),!0):!1:t===void 0||!t?(removeAttributeRecord(n,a),!1):!0}hasAttribute(e){return getAttribute(this[j],String(e))!==null}hasAttributeNS(e,t){return findAttributeByNamespace(this[j],e===``||e===void 0?null:e,String(t))!==null}matches(e){return matches(this[j],String(e))}webkitMatchesSelector(e){return this.matches(e)}closest(e){let t=closest(this[j],String(e));return t===null?null:t.node}getElementsByTagName(e){return getElementsByTagName(this[j],String(e))}getElementsByTagNameNS(e,t){return getElementsByTagNameNS(this[j],e,String(t))}getElementsByClassName(e){return getElementsByClassName(this[j],String(e))}get innerHTML(){return serializeChildren(this[j])}set innerHTML(e){let t=this[j],n=parseFragment(e===null?``:String(e),t);if(t.tag===Y.template&&t.ns===`http://www.w3.org/1999/xhtml`){let e=this.content;if(e!=null){e._replaceAll(n.node);return}}this._replaceAll(n.node)}getHTML(e){return getHTML(this[j],e)}setHTMLUnsafe(e){setHTMLUnsafe(this[j],String(e))}get outerHTML(){return serializeNode(this[j])}set outerHTML(e){let t=this[j],n=t.parent;if(n===null)return;if(n.type===9)throw new DOMException(`Cannot set outerHTML of the document element.`,`NoModificationAllowedError`);let r=n.type===11?t.doc.createElement(`body`)[j]:n,i=parseFragment(e===null?``:String(e),r);n.node.replaceChild(i.node,this)}insertAdjacentHTML(e,t){let n=asciiLowercase$1(String(e)),r=this[j],i;if(n===`beforebegin`||n===`afterend`){let e=r.parent;if(e===null||e.type===9)throw new DOMException(`The element has no parent.`,`NoModificationAllowedError`);i=e}else if(n===`afterbegin`||n===`beforeend`)i=r;else throw new DOMException(`"${e}" is not a valid position.`,`SyntaxError`);(i.type!==1||i.ns===`http://www.w3.org/1999/xhtml`&&i.name===`html`&&i.flags&2)&&(i=r.doc.createElement(`body`)[j]);let a=parseFragment(String(t),i).node;insertAdjacent(this,n,a)}insertAdjacentElement(e,t){if(!(t instanceof Element))throw TypeError(`Failed to execute 'insertAdjacentElement' on 'Element': parameter 2 is not of type 'Element'.`);return insertAdjacent(this,asciiLowercase$1(String(e)),t)}insertAdjacentText(e,t){insertAdjacent(this,asciiLowercase$1(String(e)),this[j].doc.createTextNode(String(t)))}get shadowRoot(){let e=this[U];return e!=null&&e.mode===`open`?e:null}attachShadow(e){if(typeof e!=`object`||!e)throw TypeError(`Failed to execute 'attachShadow' on 'Element': 1 argument required, but only 0 present.`);let t=e.mode;if(t!==`open`&&t!==`closed`)throw TypeError(`Failed to execute 'attachShadow' on 'Element': The provided value '${String(t)}' is not a valid enum value of type ShadowRootMode.`);let n=e.slotAssignment??`named`;if(n!==`named`&&n!==`manual`)throw TypeError(`Failed to execute 'attachShadow' on 'Element': The provided value '${String(n)}' is not a valid enum value of type SlotAssignmentMode.`);return attachShadowRoot(this,t,!!e.clonable,!!e.serializable,!!e.delegatesFocus,n)}get assignedSlot(){if(Yi===0)return null;let e=assignedSlot(this[j]);if(e===null)return null;let t=this[j].parent,n=t===null||!(t.flags&512)?null:t.node[U];return n!=null&&n.mode===`open`?e.node:null}getBoundingClientRect(){return new To}getClientRects(){return new DOMRectList}checkVisibility(e){return!!(this[j].flags&1)}get scrollTop(){return 0}set scrollTop(e){}get scrollLeft(){return 0}set scrollLeft(e){}get scrollWidth(){return 0}get scrollHeight(){return 0}get clientTop(){return 0}get clientLeft(){return 0}get clientWidth(){return 0}get clientHeight(){return 0}scroll(e,t){}scrollTo(e,t){}scrollBy(e,t){}scrollIntoView(e){}_connectedSteps(){}_disconnectedSteps(){}_attributeChangedSteps(e,t,n,r){}_childrenChangedSteps(){}_adoptingSteps(e){}_movingSteps(e,t){}_cloningSteps(e,t){}};installParentNode(Oo),installChildNode(Oo),installNonDocumentTypeChildNode(Oo);function insertAdjacent(e,t,n){switch(t){case`beforebegin`:{let t=e.parentNode;return t===null?null:t.insertBefore(n,e)}case`afterbegin`:return e.insertBefore(n,e.firstChild);case`beforeend`:return e.appendChild(n);case`afterend`:{let t=e.parentNode;return t===null?null:t.insertBefore(n,e.nextSibling)}}throw new DOMException(`"${t}" is not a valid position.`,`SyntaxError`)}const ko=/* @__PURE__ */ new WeakMap,Ao=/* @__PURE__ */ new Set([`article`,`aside`,`blockquote`,`body`,`div`,`footer`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`header`,`main`,`nav`,`p`,`section`,`span`]);let jo=!1;function attachShadowRoot(e,t,n,r,i,a){let o=e[j];if(o.ns!==`http://www.w3.org/1999/xhtml`)throw new DOMException(`This element does not support attachShadow`,`NotSupportedError`);let s=o.name;if(!(o.flags&128)&&!Ao.has(s))throw new DOMException(`Failed to execute 'attachShadow' on 'Element': This element does not support attachShadow`,`NotSupportedError`);let c=e._shadowDisabled;if(typeof c==`function`&&c.call(e))throw new DOMException(`Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host whose custom element definition disables it.`,`NotSupportedError`);let l=e[U];if(l!=null){if(!l[xt]||l[Dn]!==t)throw new DOMException(`Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.`,`NotSupportedError`);return l._replaceAll(null),l[xt]=!1,l}let u=new ShadowRoot(o.doc,e,t,i,a,n,r);return e[U]=u,o.flags|=512,_shadowRootAttached(),jo||(jo=!0,setAssignedSlotLookup(e=>{let t=assignedSlotForEventPath(e);return t===null?null:t.node})),u}const Mo=/* @__PURE__ */ new WeakMap;function cachedCollection(e,t,n){let r=Mo.get(e);r===void 0&&Mo.set(e,r=/* @__PURE__ */ new Map);let i=r.get(t);return i===void 0&&r.set(t,i=Sa._descendants(e,n)),i}function getElementsByTagName(e,t){if(t===`*`)return cachedCollection(e,`t*`,null);let n=asciiLowercase$1(t),r=e.doc[M],i=t.indexOf(`:`),a=i===-1?null:t.slice(0,i),o=i===-1?t:t.slice(i+1),s=i===-1?null:n.slice(0,i),c=i===-1?n:n.slice(i+1);return cachedCollection(e,`t`+t,e=>r&&e.ns===`http://www.w3.org/1999/xhtml`?e.name===c&&e.prefix===s:e.name===o&&e.prefix===a)}function getElementsByTagNameNS(e,t,n){let r=t===``||t==null?null:String(t),i=`n`+(r??``)+`\0`+(r===null?`0`:`1`)+n;return r===`*`&&n===`*`?cachedCollection(e,i,null):r===`*`?cachedCollection(e,i,e=>e.name===n):n===`*`?cachedCollection(e,i,e=>e.ns===r):cachedCollection(e,i,e=>e.ns===r&&e.name===n)}function getElementsByClassName(e,t){let n=[];for(let e of splitOnAsciiWhitespace(t))n.includes(e)||n.push(e);if(n.length===0)return cachedCollection(e,`c`,()=>!1);if(e.doc[Dn]===`quirks`){let r=n.map(asciiLowercase$1);return cachedCollection(e,`q`+t,e=>{let t=classTokens(e);outer:for(let e=0;e<r.length;e++){for(let n=0;n<t.length;n++)if(asciiLowercase$1(t[n])===r[e])continue outer;return!1}return!0})}if(n.length===1){let r=n[0];return cachedCollection(e,`c`+t,e=>{let t=classTokens(e);for(let e=0;e<t.length;e++)if(t[e]===r)return!0;return!1})}return cachedCollection(e,`c`+t,e=>{let t=classTokens(e);for(let e=0;e<n.length;e++)if(!t.includes(n[e]))return!1;return!0})}const No=/* @__PURE__ */ `abort.auxclick.beforeinput.beforematch.beforetoggle.blur.cancel.canplay.canplaythrough.change.click.close.command.contextlost.contextmenu.contextrestored.copy.cuechange.cut.dblclick.drag.dragend.dragenter.dragleave.dragover.dragstart.drop.durationchange.emptied.ended.error.focus.formdata.input.invalid.keydown.keypress.keyup.load.loadeddata.loadedmetadata.loadstart.mousedown.mouseenter.mouseleave.mousemove.mouseout.mouseover.mouseup.paste.pause.play.playing.progress.ratechange.reset.resize.scroll.scrollend.securitypolicyviolation.seeked.seeking.select.slotchange.stalled.submit.suspend.timeupdate.toggle.volumechange.waiting.webkitanimationend.webkitanimationiteration.webkitanimationstart.webkittransitionend.wheel.gotpointercapture.lostpointercapture.pointerdown.pointermove.pointerrawupdate.pointerup.pointercancel.pointerover.pointerout.pointerenter.pointerleave.touchstart.touchend.touchmove.touchcancel.animationstart.animationiteration.animationend.animationcancel.transitionrun.transitionstart.transitionend.transitioncancel.selectstart.selectionchange`.split(`.`),Po=[`afterprint`,`beforeprint`,`beforeunload`,`hashchange`,`languagechange`,`message`,`messageerror`,`offline`,`online`,`pagehide`,`pagereveal`,`pageshow`,`pageswap`,`popstate`,`rejectionhandled`,`storage`,`unhandledrejection`,`unload`],Fo=[`blur`,`error`,`focus`,`load`,`resize`,`scroll`],Io=[`readystatechange`,`visibilitychange`];var HandlerEntry=class{value;listener;constructor(){this.value=null,this.listener=null}};const Lo=/* @__PURE__ */ new WeakMap;function makeProcessingListener(e){return function(t){let n=e.value;if(typeof n!=`function`)return;let r=n,i=t._s,a=i.currentTarget;if(t instanceof ErrorEvent&&i.type===`error`&&isWindow(a)){r.call(a,t.message,t.filename,t.lineno,t.colno,t.error)===!0&&setCanceledFlag(i);return}let o=r.call(a,t);t instanceof BeforeUnloadEvent&&i.type===`beforeunload`?o!=null&&(setCanceledFlag(i),t.returnValue===``&&(t.returnValue=String(o))):o===!1&&setCanceledFlag(i)}}function getEventHandler(e,t){let n=Lo.get(e);return n===void 0?null:n.get(t)?.value??null}function setEventHandler(e,t,n){let r=n!==null&&(typeof n==`object`||typeof n==`function`)?n:null,i=Lo.get(e);if(r===null){let n=i?.get(t);if(n===void 0)return;n.value=null,n.listener!==null&&(removeEventListener(e,t,n.listener,!1),n.listener=null);return}i===void 0&&Lo.set(e,i=/* @__PURE__ */ new Map);let a=i.get(t);a===void 0&&i.set(t,a=new HandlerEntry),a.value=r,a.listener===null&&(a.listener=makeProcessingListener(a),addEventListener(e,t,a.listener,!1))}const Ro=/* @__PURE__ */ new Map;function handlerAccessor(e,t){if(t===null){let t=Ro.get(e);return t===void 0&&(t={get(){return getEventHandler(this,e)},set(t){setEventHandler(this,e,t)}},Ro.set(e,t)),t}return{get(){let n=t(this);return n===null?null:getEventHandler(n,e)},set(n){let r=t(this);r!==null&&setEventHandler(r,e,n)}}}const zo={webkitanimationend:`webkitAnimationEnd`,webkitanimationiteration:`webkitAnimationIteration`,webkitanimationstart:`webkitAnimationStart`,webkittransitionend:`webkitTransitionEnd`};function addHandler(e,t,n){let{get:r,set:i}=handlerAccessor(zo[t]??t,n);e[`on`+t]={configurable:!0,enumerable:!0,get:r,set:i}}function bodyWindow(e){let t=e[j];return t===void 0?null:t.doc[q]}function installEventHandlers(e,t){let n={};if(t===`body`){for(let e of Fo)addHandler(n,e,bodyWindow);for(let e of Po)addHandler(n,e,bodyWindow)}else{for(let e of No)addHandler(n,e,null);if(t===`window`)for(let e of Po)addHandler(n,e,null);if(t===`document`)for(let e of Io)addHandler(n,e,null)}Object.defineProperties(e,n)}const Bo=Symbol(`already constructed`),Vo=/* @__PURE__ */ new WeakMap,Ho=/* @__PURE__ */ new WeakSet,Uo=/* @__PURE__ */ new WeakSet,Wo=/* @__PURE__ */ new WeakMap,Go=/* @__PURE__ */ new WeakMap;let Ko=0;const qo=/* @__PURE__ */ new Set([`annotation-xml`,`color-profile`,`font-face`,`font-face-src`,`font-face-uri`,`font-face-format`,`font-face-name`,`missing-glyph`]),Jo=RegExp(`^[a-z][\\-.0-9_a-z\\u00B7\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u037D\\u037F-\\u1FFF\\u200C\\u200D\\u203F\\u2040\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\u{10000}-\\u{EFFFF}]*$`,`u`);function isValidCustomElementName(e){return e.includes(`-`)&&Jo.test(e)&&!qo.has(e)}var CustomElementRegistry=class{[Ge];[We];[Yr];[ir];[q];constructor(e=null){this[Ge]=/* @__PURE__ */ new Map,this[We]=/* @__PURE__ */ new Map,this[Yr]=/* @__PURE__ */ new Map,this[ir]=!1,this[q]=e}define(e,t,n){if(typeof t!=`function`)throw TypeError(`Failed to execute 'define' on 'CustomElementRegistry': parameter 2 is not of type 'Function'.`);if(e=String(e),!isConstructor(t))throw TypeError(`Failed to execute 'define' on 'CustomElementRegistry': The provided value is not a constructor.`);if(!isValidCustomElementName(e))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': "${e}" is not a valid custom element name`,`SyntaxError`);if(this[Ge].has(e))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${e}" has already been used with this registry`,`NotSupportedError`);if(this[We].has(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry`,`NotSupportedError`);let r=e,i=n?.extends;if(i!=null){let e=String(i);if(isValidCustomElementName(e))throw new DOMException(`"${e}" is a valid custom element name and cannot be extended.`,`NotSupportedError`);if(elementClassFor(e,`http://www.w3.org/1999/xhtml`).name===`HTMLUnknownElement`)throw new DOMException(`"${e}" is not a known HTML element and cannot be extended.`,`NotSupportedError`);r=e}if(this[ir])throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': an element definition is already running.`,`NotSupportedError`);this[ir]=!0;let a=!1,o=!1,s=!1,c=/* @__PURE__ */ new Set,l=null,u=null,d=null,m=null,h=null,_=null,v=null,ee=null,y=null;try{let e=t.prototype;if(typeof e!=`object`||!e)throw TypeError(`Failed to execute 'define' on 'CustomElementRegistry': The prototype of the constructor is not an object.`);let n=e,cb=e=>{let t=n[e];if(t===void 0)return null;if(typeof t!=`function`)throw TypeError(`Failed to execute 'define' on 'CustomElementRegistry': The '${e}' callback is not a function.`);return t};if(l=cb(`connectedCallback`),u=cb(`disconnectedCallback`),m=cb(`connectedMoveCallback`),d=cb(`adoptedCallback`),h=cb(`attributeChangedCallback`),h!==null){let e=t.observedAttributes;if(e!==void 0)for(let t of toSequence(e))c.add(String(t))}let r=t.disabledFeatures;if(r!==void 0)for(let e of toSequence(r)){let t=String(e);t===`internals`?o=!0:t===`shadow`&&(s=!0)}a=!!t.formAssociated,a&&(_=cb(`formAssociatedCallback`),v=cb(`formResetCallback`),ee=cb(`formDisabledCallback`),y=cb(`formStateRestoreCallback`))}finally{this[ir]=!1}let te={name:e,localName:r,constructor:t,observedAttributes:c,connectedCallback:l,disconnectedCallback:u,adoptedCallback:d,attributeChangedCallback:h,connectedMoveCallback:m,formAssociatedCallback:_,formResetCallback:v,formDisabledCallback:ee,formStateRestoreCallback:y,formAssociated:a,disableInternals:o,disableShadow:s,constructionStack:[],registry:this};this[Ge].set(e,te),this[We].set(t,te),Wo.set(t,te),Ko++,setCEActive();let ne=this[q]?.document;if(ne!=null){let e=[];collectCandidates(ne[j],te,e);for(let t of e)enqueueUpgrade(t,te);flushReactions()}let re=this[Yr].get(e);re!==void 0&&(re.resolve(t),this[Yr].delete(e))}get(e){return this[Ge].get(String(e))?.constructor}getName(e){if(typeof e!=`function`)throw TypeError(`Failed to execute 'getName' on 'CustomElementRegistry': parameter 1 is not of type 'Function'.`);return this[We].get(e)?.name??null}whenDefined(e){if(e=String(e),!isValidCustomElementName(e))return Promise.reject(new DOMException(`"${e}" is not a valid custom element name`,`SyntaxError`));let t=this[Ge].get(e);if(t!==void 0)return Promise.resolve(t.constructor);let n=this[Yr].get(e);if(n===void 0){let{promise:t,resolve:r}=Promise.withResolvers();n={promise:t,resolve:r},this[Yr].set(e,n)}return n.promise}upgrade(e){let t=[];forEachShadowIncludingInclusiveDescendant(e[j],e=>{e.type===1&&t.push(e.node)});for(let e of t)tryToUpgrade(e);flushReactions()}_lookup(e,t,n){if(e!==`http://www.w3.org/1999/xhtml`)return null;let r=this[Ge].get(t);if(r!==void 0&&r.localName===t)return r;if(n!==null){let e=this[Ge].get(n);if(e!==void 0&&e.localName===t)return e}return null}};const Yo={construct:()=>({})};function isConstructor(e){try{return new new Proxy(e,Yo),!0}catch{return!1}}function toSequence(e){if(e===null||typeof e!=`object`&&typeof e!=`function`||typeof e[Symbol.iterator]!=`function`)throw TypeError(`The value provided is not iterable.`);return Array.from(e)}function forEachShadowIncludingInclusiveDescendant(e,t){for(let n=e;n!==null;n=nextInTree(n,e))if(t(n),n.type===1){let e=n.node[U];e!=null&&forEachShadowIncludingInclusiveDescendant(e[j],t)}}function collectCandidates(e,t,n){forEachShadowIncludingInclusiveDescendant(e,e=>{if(e.type!==1||e.ns!==`http://www.w3.org/1999/xhtml`||e.name!==t.localName)return;let r=e.node;(t.localName===t.name||Go.get(r)===t.name)&&n.push(r)})}const Xo=/* @__PURE__ */ new WeakMap;function customElementRegistryFor(e){let t=Xo.get(e);return t===void 0&&(t=new CustomElementRegistry(e),Xo.set(e,t)),t}function lookupDefinition(e,t,n,r){if(Ko===0||t!==`http://www.w3.org/1999/xhtml`)return null;let i=e[q];if(i===null)return null;let a=Xo.get(i);return a===void 0?null:a._lookup(t,n,r)}function isDefined(e){return e.flags&1024?!0:e.flags&128?!isValidCustomElementName(e.name):Zo===0||!Go.has(e.node)}function definitionOf(e){return Vo.get(e)}function isValueOf(e){return Go.get(e)??null}let Zo=0;function setIsValue(e,t){Go.has(e)||Zo++,Go.set(e,t),setCEActive()}function isPrecustomizedOrCustom(e){return!!(e[j].flags&1024)||Uo.has(e)}let Qo=null;function htmlElementConstructorSteps(e){let t;try{t=Xo.get(currentWindow())}catch{t=void 0}let n=t?.[We].get(e)??Wo.get(e);if(n===void 0||isBuiltinInterface(e))throw TypeError(`Illegal constructor`);let r=null;for(let t=Object.getPrototypeOf(e);t!==null&&t!==Function.prototype;t=Object.getPrototypeOf(t))if(isBuiltinInterface(t)){r=t;break}if(n.localName===n.name){if(r!==null&&r.name!==`HTMLElement`)throw TypeError(`Illegal constructor: autonomous custom elements must extend HTMLElement`)}else if(r!==null&&!usesInterface(r,n.localName))throw TypeError(`Illegal constructor: the custom element does not extend the interface of its local name`);let i=n.constructionStack;if(i.length===0)return{upgrade:null,doc:Qo??n.registry[q]?.document??currentWindow().document,localName:n.localName,def:n,active:r};let a=i[i.length-1];if(a===Bo)throw TypeError(`Failed to construct custom element: this element was already constructed`);let o=e.prototype;return typeof o==`object`&&o||(o=(r??elementClassFor(`x-x`,`http://www.w3.org/1999/xhtml`)).prototype),Object.setPrototypeOf(a,o),i[i.length-1]=Bo,{upgrade:a,doc:null,localName:``,def:null,active:null}}function usesInterface(e,t){return localNamesForInterface(e).includes(t)?!0:e.name===`HTMLElement`&&elementClassFor(t,`http://www.w3.org/1999/xhtml`).name===`HTMLElement`}function initNewCustomElement(e,t,n){let r=Object.getPrototypeOf(e);r!==null&&Object.getPrototypeOf(r)===null&&Object.hasOwn(r,`isPrototypeOf`)&&r.constructor?.prototype===r&&Object.setPrototypeOf(e,(n??elementClassFor(`x-x`,`http://www.w3.org/1999/xhtml`)).prototype),markCustom(e,t),t.localName!==t.name&&setIsValue(e,t.name)}function markCustom(e,t){let n=e[j];Vo.set(e,t),n.flags|=1028,t.formAssociated&&(n.flags|=16392),t.attributeChangedCallback!==null&&t.observedAttributes.size!==0&&(n.flags|=8),t.adoptedCallback!==null&&(n.flags|=be)}function createElementSync(e,t,n,r,i){if(Ko===0&&i===null)return null;let a=lookupDefinition(e,n,t,i);if(a!==null&&a.name!==a.localName){let i=createElementImpl(e,t,n,r),o=i.node;setIsValue(o,a.name),i.flags|=4;try{upgrade(o,a)}catch(e){reportException(e)}return i}if(a!==null){let i=a.constructor,o=Qo;Qo=e;try{let n=new i;if(typeof n!=`object`||!n||!(n instanceof elementClassFor(`x-x`,`http://www.w3.org/1999/xhtml`)))throw TypeError(`The custom element constructor did not produce an HTMLElement.`);let a=n[j];if(a.attrs!==null&&a.attrs.length!==0)throw new DOMException(`The result must not have attributes`,`NotSupportedError`);if(a.first!==null)throw new DOMException(`The result must not have children`,`NotSupportedError`);if(a.parent!==null)throw new DOMException(`The result must not have a parent`,`NotSupportedError`);if(a.doc!==e)throw new DOMException(`The result must be in the same document`,`NotSupportedError`);if(a.name!==t)throw new DOMException(`The result must have the same localName`,`NotSupportedError`);return a.prefix=r,a}catch(i){return reportException(i),failedElement(e,t,n,r)}finally{Qo=o}}let o=createElementImpl(e,t,n,r);return i!==null&&n===`http://www.w3.org/1999/xhtml`&&(setIsValue(o.node,i),o.flags|=4),o}function failedElement(e,t,n,r){let i=new(elementClassFor(`applet`,x))(e,t,n,r),a=i[j];return a.flags&=-5,Ho.add(i),a}function createElementUnsync(e,t,n,r,i){let a=createElementImpl(e,t,n,r);return n===`http://www.w3.org/1999/xhtml`&&initUnsync(a,i),a}function initUnsync(e,t){let n=e.node,r=lookupDefinition(e.doc,x,e.name,t);r===null?t!==null&&(setIsValue(n,t),e.flags|=4):(r.name!==r.localName&&setIsValue(n,r.name),e.flags|=4,enqueueUpgrade(n,r))}function cloneElement(e,t){return createElementUnsync(e,t.name,t.ns,t.prefix,t.ns===`http://www.w3.org/1999/xhtml`?Go.get(t.node)??null:null)}function parserCreated(e){$o=!0;try{initUnsync(e,e.attrs===null?null:attr(e,`is`))}finally{$o=!1}}let $o=!1,es=[];function releaseDeferred(e){let t=null,n=null;for(let r=0;r<es.length;r++){let i=es[r],a=i[j];for(;a.parent!==null;)a=a.parent;!e&&a.type===11&&!(a.flags&32)?(n??=[]).push(i):(t??=[]).push(i)}es=n??[],t!==null&&(is=is.length===0?t:t.concat(is))}setCustomElementCreate(createElementSync),setShadowHostCustomStateCheck(isPrecustomizedOrCustom),setCustomElementCloneHooks(cloneElement,parserCreated);let ts=null;function setFaceUpgradeHook(e){ts=e}function upgrade(e,t){let n=e[j];if(n.flags&1024||Ho.has(e)||Uo.has(e))return;Vo.set(e,t),Ho.add(e);let r=rs.get(e);r===void 0&&rs.set(e,r=[]);let i=n.attrs;if(i!==null&&t.attributeChangedCallback!==null)for(let e=0;e<i.length;e++){let n=i[e];t.observedAttributes.has(n.localName)&&r.push({kind:ns,def:t,fn:t.attributeChangedCallback,args:[n.localName,null,n.value,n.ns]})}n.flags&1&&t.connectedCallback!==null&&r.push({kind:ns,def:t,fn:t.connectedCallback,args:[]}),t.constructionStack.push(e);try{if(t.disableShadow&&e[U]!=null)throw new DOMException(`Failed to upgrade the custom element: its definition disables shadow roots, but it already has one.`,`NotSupportedError`);Uo.add(e);let r=t.constructor,i=new r;if(i!==e){if(typeof i!=`object`||!i||i[j]!==n)throw TypeError(`Custom element constructors must call super() first and must not return a different object.`);n.node=e}}catch(t){Vo.delete(e);let n=rs.get(e);throw n!==void 0&&(n.length=0),t}finally{Uo.delete(e),t.constructionStack.pop()}Ho.delete(e),markCustom(e,t),t.formAssociated&&(n.doc[K]++,ts!==null&&ts(n))}function tryToUpgrade(e){let t=e[j];if(t.flags&1024||Ho.has(e))return;let n=lookupDefinition(t.doc,t.ns,t.name,Go.get(e)??null);n!==null&&enqueueUpgrade(e,n)}const ns=1,rs=/* @__PURE__ */ new WeakMap;let is=[],as=!1;function pushReaction(e,t){let n=rs.get(e);n===void 0&&(n=[],rs.set(e,n)),n.push(t),$o?es.push(e):is.push(e),setCEReactionsPending(!0),as||(as=!0,queueMicrotask(backupFlush))}let os=0;function outsideCEReactions(e){os++;try{return e()}finally{os--}}function backupFlush(){as=!1,es.length!==0&&releaseDeferred(!0),flushReactions()}function enqueueUpgrade(e,t){pushReaction(e,{kind:0,def:t,fn:null,args:[]})}function enqueueCallback(e,t,n){let r=Vo.get(e);if(r===void 0)return;let i=r[t];i!==null&&(t!==`attributeChangedCallback`||r.observedAttributes.has(n[0]))&&pushReaction(e,{kind:1,def:r,fn:i,args:n})}function enqueueFormCallback(e,t,n){let r=Vo.get(e);if(r===void 0)return;let i=r[t];i!==null&&pushReaction(e,{kind:1,def:r,fn:i,args:n})}function flushReactions(){if(os===0){for(es.length!==0&&releaseDeferred(!1);is.length!==0;){let e=is;is=[];for(let t=0;t<e.length;t++){let n=e[t],r=rs.get(n);for(;r.length!==0;){let e=r.shift();try{e.kind===0?upgrade(n,e.def):e.fn.apply(n,e.args)}catch(e){reportException(e)}}}}setCEReactionsPending(es.length!==0)}}setCEReactionsFlush(flushReactions);function reportException(e,t=null){reportException$1(e,t)}function ceConnected(e){Ko!==0&&(e[j].flags&1024?enqueueCallback(e,`connectedCallback`,[]):tryToUpgrade(e))}function ceDisconnected(e){e[j].flags&1024&&enqueueCallback(e,`disconnectedCallback`,[])}function ceAttributeChanged(e,t,n,r,i){e[j].flags&1024&&enqueueCallback(e,`attributeChangedCallback`,[t,n,r,i])}function ceMoved(e){let t=e[j];if(!(t.flags&1024)||!(t.flags&1))return;let n=Vo.get(e);if(n===void 0)return;if(n.connectedMoveCallback!==null){pushReaction(e,{kind:1,def:n,fn:n.connectedMoveCallback,args:[]});return}let r=n.disconnectedCallback,i=n.connectedCallback;(r!==null||i!==null)&&pushReaction(e,{kind:1,def:n,fn:function(){r!==null&&r.call(this),i!==null&&i.call(this)},args:[]})}function ceAdopted(e,t,n){e[j].flags&1024&&enqueueCallback(e,`adoptedCallback`,[t,n])}function shadowDisabled(e){if(Ko===0)return!1;let t=e[j],n=Vo.get(e)??lookupDefinition(t.doc,t.ns,t.name,Go.get(e)??null);return n!=null&&n.disableShadow}const ss=2147483647;function contentAttr(e,t){let n=e.attrs;if(n===null)return null;for(let e=0;e<n.length;e++){let r=n[e];if(r.localName===t&&(r.rare===null||r.rare.ns===null))return r.value}return null}function lower(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n>=65&&n<=90)return e.replace(/[A-Z]+/g,e=>e.toLowerCase())}return e}function names(e){let t=[];for(let n of e.split(` `)){if(n===``)continue;let e=n.indexOf(`=`);e===-1?t.push([n,lower(n)]):t.push([n.slice(0,e),n.slice(e+1)])}return t}function defineAccessor(e,t,n,r){Object.defineProperty(e.prototype,t,{get:n,set:r,configurable:!0,enumerable:!0})}function parseInteger(e){let t=e.length,n=0;for(;n<t&&isAsciiWhitespace(e.charCodeAt(n));)n++;if(n===t)return NaN;let r=1,i=e.charCodeAt(n);if(i===45?(r=-1,n++):i===43&&n++,n===t||(i=e.charCodeAt(n),i<48||i>57))return NaN;let a=0;for(;n<t&&(i=e.charCodeAt(n),!(i<48||i>57));)a=a*10+(i-48),n++;return a>0x38d7ea4c68000&&(a=1/0),r*a+0}function parseNonNegativeInteger(e){let t=parseInteger(e);return t>=0?t+0:NaN}function parseFloatingPoint(e){let t=0,n=e.length;for(;t<n&&isAsciiWhitespace(e.charCodeAt(t));)t++;let r=/^[-+]?(?:\d+(?:\.\d+)?|\.\d+)(?:[eE][-+]?\d+)?/.exec(t===0?e:e.slice(t));if(r===null)return NaN;let i=Number(r[0]);return Number.isFinite(i)?i===0?0:i:NaN}function indexSizeError(e){return new DOMException(e,`IndexSizeError`)}function str(e,t){for(let[n,r]of names(t))defineAccessor(e,n,function(){return contentAttr(this[j],r)??``},function(e){setAttribute(this[j],r,String(e))})}function strNullEmpty(e,t){for(let[n,r]of names(t))defineAccessor(e,n,function(){return contentAttr(this[j],r)??``},function(e){setAttribute(this[j],r,e===null?``:String(e))})}function nullableStr(e,t){for(let[n,r]of names(t))defineAccessor(e,n,function(){return contentAttr(this[j],r)},function(e){e==null?removeAttribute(this[j],r):setAttribute(this[j],r,String(e))})}function bool(e,t){for(let[n,r]of names(t))defineAccessor(e,n,function(){return contentAttr(this[j],r)!==null},function(e){e?setAttribute(this[j],r,``):removeAttribute(this[j],r)})}function url(e,t){for(let[n,r]of names(t))defineAccessor(e,n,function(){let e=this[j],t=contentAttr(e,r);return t===null?``:resolveURL(e,t)??t},function(e){setAttribute(this[j],r,String(e))})}function resolveURL(e,t){let n=e.doc.baseURI,r=URL.parse(t,n);return r===null?null:r.href}function long(e,t,n=0){for(let[r,i]of names(t))defineAccessor(e,r,function(){let e=contentAttr(this[j],i);if(e===null)return n;let t=parseInteger(e);return t>=-2147483648&&t<=ss?t:n},function(e){setAttribute(this[j],i,String(Number(e)|0))})}function nonNegativeLong(e,t,n=-1){for(let[r,i]of names(t))defineAccessor(e,r,function(){let e=contentAttr(this[j],i);if(e===null)return n;let t=parseNonNegativeInteger(e);return t<=ss?t:n},function(e){let t=Number(e)|0;if(t<0)throw indexSizeError(`The value provided (${t}) is negative.`);setAttribute(this[j],i,String(t))})}function ulong(e,t,n=0,r=!1){let i=+!!r;for(let[a,o]of names(t))defineAccessor(e,a,function(){let e=contentAttr(this[j],o);if(e===null)return n;let t=parseNonNegativeInteger(e);return t>=i&&t<=ss?t:n},function(e){let t=Number(e)>>>0;if(r&&t===0)throw indexSizeError(`The value provided is 0, which is not a positive number.`);t>ss&&(t=n),setAttribute(this[j],o,String(t))})}function clampedUlong(e,t,n,r,i,a){defineAccessor(e,t,function(){let e=contentAttr(this[j],n);if(e===null)return r;let t=parseNonNegativeInteger(e);return Number.isNaN(t)?r:t<i?i:t>a?a:t},function(e){let t=Number(e)>>>0;t>ss&&(t=r),setAttribute(this[j],n,String(t))})}function enumerated(e,t,n){let r=/* @__PURE__ */ new Map;for(let e of n.keywords){let t=e.indexOf(`:`);t===-1?r.set(e,e):r.set(e.slice(0,t),e.slice(t+1))}let i=n.missing===void 0?``:n.missing,a=n.invalid??``,o=n.empty??a,s=i===null;for(let[n,c]of names(t))defineAccessor(e,n,function(){let e=contentAttr(this[j],c);return e===null?i:e===``?r.get(``)??o:r.get(lower(e))??a},function(e){s&&e==null?removeAttribute(this[j],c):setAttribute(this[j],c,String(e))})}const cs={keywords:[`anonymous`,`use-credentials`],missing:null,invalid:`anonymous`,empty:`anonymous`},ls={keywords:[`no-referrer`,`no-referrer-when-downgrade`,`same-origin`,`origin`,`strict-origin`,`origin-when-cross-origin`,`strict-origin-when-cross-origin`,`unsafe-url`]},us={keywords:[`lazy`,`eager`],missing:`eager`,invalid:`eager`},ds={keywords:[`high`,`low`,`auto`],missing:`auto`,invalid:`auto`};function tokenList(e,t,n,r=null){let i=Symbol(t);defineAccessor(e,t,function(){let e=this[i];return e===void 0&&(e=new mo(this[j],n,r),Object.defineProperty(this,i,{value:e})),e},function(e){setAttribute(this[j],n,String(e))})}const fs=2147483647;function readNonNegativeLong(e,t,n){let r=contentAttr(e,t);if(r===null)return n;let i=parseNonNegativeInteger(r);return i<=fs?i:n}function readPositiveUnsigned(e,t,n){let r=contentAttr(e,t);if(r===null)return n;let i=parseNonNegativeInteger(r);return i>=1&&i<=fs?i:n}function positiveWithFallback(e,t,n,r){Object.defineProperty(e.prototype,t,{get(){return readPositiveUnsigned(this[j],n,r)},set(e){let t=toUnsignedLong(e);setAttribute(this[j],n,String(t>=1&&t<=fs?t:r))},enumerable:!0,configurable:!0})}function toUnsignedLong(e){let t=Number(e);return Number.isFinite(t)?Math.trunc(t)>>>0:0}function reflectActionURL(e,t){let n=contentAttr(e,t);if(n===null||n===``)return e.doc.URL;let r=URL.parse(n,e.doc.baseURI);return r===null?n:r.href}function isWS(e){return e===32||e===9||e===10||e===12||e===13}function stripNewlines(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n===10||n===13)return e.replace(/[\r\n]/g,``)}return e}function trimASCII(e){let t=0,n=e.length;for(;t<n&&isWS(e.charCodeAt(t));)t++;for(;n>t&&isWS(e.charCodeAt(n-1));)n--;return t===0&&n===e.length?e:e.slice(t,n)}function stripAndCollapseWS(e){return trimASCII(e).replace(/[\t\n\f\r ]+/g,` `)}function normalizeNewlines(e){return e.indexOf(`\r`)===-1?e:e.replace(/\r\n?/g,`
|
|
8
8
|
`)}function fireEvent$1(e,t,n,r,i=!1){let a=new Event(t,{bubbles:n,cancelable:r,composed:i});return setTrusted(a),dispatch(a,e)}__name(fireEvent$1,`fireEvent`);function dispatchTrusted$1(e,t){return setTrusted(t),dispatch(t,e)}__name(dispatchTrusted$1,`dispatchTrusted`);const ps=[`hidden`,`text`,`search`,`tel`,`url`,`email`,`password`,`date`,`month`,`week`,`time`,`datetime-local`,`number`,`range`,`color`,`checkbox`,`radio`,`file`,`submit`,`image`,`reset`,`button`],ms=/* @__PURE__ */ new Map;for(let e=0;e<ps.length;e++)ms.set(ps[e],e);function inputTypeFromAttr(e){if(e===null)return 1;let t=ms.get(e);return t===void 0?ms.get(asciiLowercase$1(e))??1:t}function inputType(e){return inputTypeFromAttr(attr(e,`type`))}function valueMode(e){switch(e){case 0:case 18:case 19:case 20:case 21:return 1;case 15:case 16:return 2;case 17:return 3;default:return 0}}function supportsSelectionType(e){return e===1||e===2||e===3||e===4||e===6}function isTextualType(e){return e>=1&&e<=6}function isNumericType(e){return e>=7&&e<=13}function lengthApplies(e){return e>=1&&e<=6}function readonlyApplies(e){return e>=1&&e<=12}function requiredApplies(e){return e>=1&&e<=12||e===15||e===16||e===17}function placeholderApplies(e){return e>=1&&e<=6||e===12}function listApplies(e){return e>=1&&e<=5||e>=7&&e<=14}function isListed(e){let t=e.tag;return!!(e.flags&16384)||t===Y.input||t===Y.button||t===Y.select||t===Y.textarea||t===Y.fieldset||t===Y.output||t===Y.object}function isSubmittable(e){let t=e.tag;return!!(e.flags&16384)||t===Y.input||t===Y.button||t===Y.select||t===Y.textarea}function isResettable(e){let t=e.tag;return!!(e.flags&16384)||t===Y.input||t===Y.select||t===Y.textarea||t===Y.output}function isLabelable(e){switch(e.tag){case Y.button:case Y.meter:case Y.output:case Y.progress:case Y.select:case Y.textarea:return!0;case Y.input:return inputType(e)!==0}return!!(e.flags&xe)}function elementByIdInTree(e,t){if(t===``)return null;let n=treeRoot(e);return n.type===9?e.doc._idLookup(t):walkForId(n,t)}function walkForId(e,t){for(let n=nextElementInTree(e,e);n!==null;n=nextElementInTree(n,e))if(n.id===t)return n;return null}function formOwner(e){if(gs!==0){let t=hs.get(e);if(t!==void 0){if(parserAssociationValid(e,t))return t.form;hs.delete(e),gs--}}if(e.tag!==Y.img){let t=attr(e,`form`);if(t!==null&&e.flags&1){let n=elementByIdInTree(e,t);return n!==null&&n.tag===Y.form?n:null}}for(let t=e.parent;t!==null;t=t.parent)if(t.tag===Y.form)return t;return null}var ParserAssociation=class{form;gen;constructor(e,t){this.form=e,this.gen=t}};const hs=/* @__PURE__ */ new WeakMap;let gs=0;function formGeneration(e){return e.node[Fe]}function parserAssociateForm(e,t){t.tag===Y.form&&(hs.has(e)||gs++,hs.set(e,new ParserAssociation(t,formGeneration(t))),e.flags|=4,t.flags|=4)}function clearParserAssociation(e){gs!==0&&hs.delete(e)&&gs--}function parserAssociationValid(e,t){return isListed(e)&&attr(e,`form`)!==null||formGeneration(t.form)!==t.gen?!1:treeRoot(e)===treeRoot(t.form)}function formControls(e,t,n){let r=treeRoot(e);for(let i=r.type===1?r:nextElementInTree(r,r);i!==null;i=nextElementInTree(i,r))isListed(i)&&(n||i.tag!==Y.input||inputType(i)!==19)&&formOwner(i)===e&&t.push(i);return t}function firstLegend(e){for(let t=e.first;t!==null;t=t.next)if(t.tag===Y.legend)return t;return null}function inDisabledFieldset(e){let t=e;for(let n=e.parent;n!==null;t=n,n=n.parent)if(n.tag===Y.fieldset&&attr(n,`disabled`)!==null){if(t.tag===Y.legend&&firstLegend(n)===t)continue;return!0}return!1}function isActuallyDisabled(e){if(e.flags&16384)return attr(e,`disabled`)!==null||inDisabledFieldset(e);switch(e.tag){case Y.button:case Y.input:case Y.select:case Y.textarea:case Y.fieldset:return attr(e,`disabled`)!==null||inDisabledFieldset(e);case Y.optgroup:return attr(e,`disabled`)!==null;case Y.option:{if(attr(e,`disabled`)!==null)return!0;let t=e.parent;return t!==null&&t.tag===Y.optgroup&&attr(t,`disabled`)!==null}}return!1}function hasDatalistAncestor(e){for(let t=e.parent;t!==null;t=t.parent)if(t.tag===Y.datalist)return!0;return!1}function labeledControl(e){let t=attr(e,`for`);if(t!==null){let n=elementByIdInTree(e,t);return n!==null&&isLabelable(n)?n:null}for(let t=nextElementInTree(e,e);t!==null;t=nextElementInTree(t,e))if(isLabelable(t))return t;return null}function labelsFor(e,t){let n=treeRoot(e);for(let r=n.type===1?n:nextElementInTree(n,n);r!==null;r=nextElementInTree(r,n))r.tag===Y.label&&labeledControl(r)===e&&t.push(r);return t}var SnapshotCache=class{items=[];version=-1;doc=null;_dropSnapshot(){this.items=[],this.version=-1,this.doc=null}},ComputedNodeList=class extends ji{constructor(){super(null),Object.defineProperty(this,Ke,{value:new SnapshotCache})}_snapshot(){let e=this[Ke],t=this._ownerDocument();if(e.version===t[K]&&e.doc===t)return e.items;let n=this._compute();return e.items=n,e.version=t[K],e.doc=t,n.length!==0&&holdSnapshot(t,e,this._root()),n.length>_s.count&&ensureIndexGetters(_s,n.length),n}get length(){return this._snapshot().length}item(e){let t=this._snapshot(),n=e>>>0;return n<t.length?t[n]:null}};const _s=indexGetterTable(ComputedNodeList.prototype,(e,t)=>{let n=e._snapshot();return t<n.length?n[t]:void 0});var LabelsNodeList=class extends ComputedNodeList{constructor(e){super(),Object.defineProperty(this,D,{value:e})}_ownerDocument(){return this[D].doc}_root(){return this[D]}_compute(){let e=labelsFor(this[D],[]),t=Array(e.length);for(let n=0;n<e.length;n++)t[n]=e[n].node;return t}},NameNodeList=class extends ComputedNodeList{constructor(e,t){super(),Object.defineProperty(this,D,{value:e}),Object.defineProperty(this,L,{value:t})}_ownerDocument(){return this[D].doc}_root(){return this[D]}_compute(){let e=this[D],t=this[L],n=[];for(let r=firstElementChild(e);r!==null;r=nextElementInTree(r,e))r.ns===`http://www.w3.org/1999/xhtml`&&r.attrs!==null&&attr(r,`name`)===t&&n.push(r.node);return n}},RadioNodeList=class extends ComputedNodeList{constructor(e,t){super(),Object.defineProperty(this,Ht,{value:e}),Object.defineProperty(this,L,{value:t})}_ownerDocument(){return this[Ht].doc}_root(){return this[Ht]}_compute(){let e=this[Ht].node._controls(),t=[],n=this[L];for(let r=0;r<e.length;r++){let i=e[r];(i.id===n||attr(i,`name`)===n)&&t.push(i.node)}return t}get value(){let e=this._snapshot();for(let t=0;t<e.length;t++){let n=e[t][j];if(n.tag===Y.input&&inputType(n)===16&&e[t].checked)return attr(n,`value`)??`on`}return``}set value(e){let t=String(e),n=this._snapshot();for(let e=0;e<n.length;e++){let r=n[e][j];if(r.tag===Y.input&&inputType(r)===16&&(attr(r,`value`)??`on`)===t){n[e].checked=!0;return}}}};Object.defineProperty(RadioNodeList.prototype,Symbol.toStringTag,{value:`RadioNodeList`,configurable:!0});var HTMLFormControlsCollection=class extends Sa{constructor(e){super(e,!1,null)}_collect(e){let t=this._s.root.node._controls();for(let n=0;n<t.length;n++)e.push(t[n].node)}namedItem(e){let t=String(e);if(t===``)return null;let n=this._snapshot(),r=null,i=0;for(let e=0;e<n.length;e++){let a=n[e][j];if((a.id===t||attr(a,`name`)===t)&&(i===0&&(r=n[e]),i++,i>1))break}return i<=1?r:new RadioNodeList(this._s.root,t)}};Object.defineProperty(HTMLFormControlsCollection.prototype,Symbol.toStringTag,{value:`HTMLFormControlsCollection`,configurable:!0});function createFormControlsCollection(e){return withNamedProperties(new HTMLFormControlsCollection(e))}function listOfOptions(e,t){let n=e.first,r=0;for(;n!==null;){let i=!1;if(n.type===1){let e=n.ns===`http://www.w3.org/1999/xhtml`?n.tag:0;e===Y.option?t.push(n):i=e===Y.optgroup?r===0:e!==Y.select&&e!==Y.hr&&e!==Y.datalist}if(i&&n.first!==null)n.ns===`http://www.w3.org/1999/xhtml`&&n.tag===Y.optgroup&&r++,n=n.first;else{for(;n!==null&&n.next===null;){if(n=n.parent,n===e||n===null)return t;n.ns===`http://www.w3.org/1999/xhtml`&&n.tag===Y.optgroup&&r--}if(n===null)return t;n=n.next}}return t}var HTMLOptionsCollection=class extends Sa{constructor(e){super(e,!1,null)}_collect(e){let t=listOfOptions(this._s.root,[]);for(let n=0;n<t.length;n++)e.push(t[n].node);ensureOptionIndexAccessors(e.length+1)}_setIndex(e,t){let n=this._s.root.node,r=this._snapshot();if(t==null){e<r.length&&r[e].remove();return}if(typeof t!=`object`||!(j in t)||t[j].tag!==Y.option)throw TypeError(`Failed to set an indexed property on 'HTMLOptionsCollection': parameter 2 is not of type 'HTMLOptionElement'.`);let i=e-r.length;if(i>0){let e=this._s.root.doc,t=e.createDocumentFragment();for(let n=0;n<i;n++)t.appendChild(e.createElement(`option`));n.appendChild(t)}if(i>=0)n.appendChild(t);else{let n=r[e];n.parentNode.replaceChild(t,n)}}get length(){return this._snapshot().length}set length(e){let t=Number(e)>>>0,n=this._s.root.node,r=this._snapshot(),i=r.length;if(t>i){if(t-i>1e5)return;let e=this._s.root.doc,r=e.createDocumentFragment();for(let n=i;n<t;n++)r.appendChild(e.createElement(`option`));n.appendChild(r)}else if(t<i){let e=r.slice(t);for(let t=0;t<e.length;t++)e[t].remove()}}add(e,t=null){let n=this._s.root.node;if(typeof e!=`object`||!e||!(j in e))throw TypeError(`Failed to execute 'add' on 'HTMLOptionsCollection': parameter 1 is not of type 'HTMLOptionElement or HTMLOptGroupElement'.`);let r=e[j].tag;if(r!==Y.option&&r!==Y.optgroup)throw TypeError(`Failed to execute 'add' on 'HTMLOptionsCollection': parameter 1 is not of type 'HTMLOptionElement or HTMLOptGroupElement'.`);for(let t=this._s.root;t!==null;t=t.parent)if(t===e[j])throw new DOMException(`The new element is an ancestor of the select element.`,`HierarchyRequestError`);let i=null;if(typeof t==`number`)i=this._snapshot()[t]??null;else if(t!=null){i=t;let e=!1;for(let n=t[j].parent;n!==null;n=n.parent)if(n===this._s.root){e=!0;break}if(!e)throw new DOMException(`The node before which the new node is to be inserted is not in this select.`,`NotFoundError`)}e!==i&&(i===null?n:i.parentNode).insertBefore(e,i)}remove(e){let t=this._snapshot(),n=Number(e)|0;t.length===0||n<0||n>=t.length||t[n].remove()}get selectedIndex(){return this._s.root.node.selectedIndex}set selectedIndex(e){this._s.root.node.selectedIndex=e}};let vs=0;const ys=[{proto:HTMLOptionsCollection.prototype,coll:e=>e}];function addOptionIndexHost(e,t){ys.push({proto:e,coll:t}),defineOptionIndices(ys[ys.length-1],0,vs)}function defineOptionIndices(e,t,n){let r=e.coll;for(let i=t;i<n;i++)Object.defineProperty(e.proto,i,{get(){return r(this).item(i)??void 0},set(e){r(this)._setIndex(i,e)},enumerable:!1,configurable:!0})}function ensureOptionIndexAccessors(e){if(e<=vs)return;let t=Math.max(e,vs*2,32);for(let e of ys)defineOptionIndices(e,vs,t);vs=t}ensureOptionIndexAccessors(32);var ValidityState=class{[D];constructor(e){this[D]=e,hideInternals(this)}get valueMissing(){return!!(this[D]._validityFlags()&1)}get typeMismatch(){return!!(this[D]._validityFlags()&2)}get patternMismatch(){return!!(this[D]._validityFlags()&4)}get tooLong(){return!!(this[D]._validityFlags()&8)}get tooShort(){return!!(this[D]._validityFlags()&16)}get rangeUnderflow(){return!!(this[D]._validityFlags()&32)}get rangeOverflow(){return!!(this[D]._validityFlags()&64)}get stepMismatch(){return!!(this[D]._validityFlags()&128)}get badInput(){return!!(this[D]._validityFlags()&256)}get customError(){return!!(this[D]._validityFlags()&512)}get valid(){return this[D]._validityFlags()===0}get[Symbol.toStringTag](){return`ValidityState`}};exposeMembers(ValidityState);function isInvalidCandidate(e){return!e._barredFromValidation()&&e._validityFlags()!==0}function checkValidityOf(e){return!isInvalidCandidate(e)||(fireEvent$1(e,`invalid`,!1,!0),!1)}const bs={get willValidate(){return!this._barredFromValidation()},get validity(){let e=this;return e[Wr]??=new ValidityState(e)},get validationMessage(){let e=this;if(e._barredFromValidation())return``;let t=e._validityFlags();return t===0?``:t&512?e[w]:builtinMessage(e,t)},checkValidity(){return checkValidityOf(this)},reportValidity(){return checkValidityOf(this)},setCustomValidity(e){this[w]=normalizeNewlines(String(e))}};function installConstraintValidation(e){for(let t of Reflect.ownKeys(bs))Object.defineProperty(e.prototype,t,Object.getOwnPropertyDescriptor(bs,t))}function builtinMessage(e,t){return e[j].doc[q]?.[R]?.validationMessages===`browser`?e._validationMessage(t):`Constraints not satisfied`}const xs=`Please fill out this field.`,Ss=`Please enter a valid value.`;function msgEmail(e){let t=e.indexOf(`@`);return t===-1?`Please include an '@' in the email address. '${e}' is missing an '@'.`:t===e.length-1?`Please enter a part following '@'. '${e}' is incomplete.`:t===0?`Please enter a part followed by '@'. '${e}' is incomplete.`:`Please enter an email address.`}function characters(e){return e===1?`1 character`:`${e} characters`}function msgTooLong(e,t){return`Please shorten this text to ${characters(e)} or less (you are currently using ${characters(t)}).`}function msgTooShort(e,t){return`Please lengthen this text to ${characters(e)} or more (you are currently using ${characters(t)}).`}function msgUnderflow(e,t){return t?`Value must be ${e} or later.`:`Value must be greater than or equal to ${e}.`}function msgOverflow(e,t){return t?`Value must be ${e} or earlier.`:`Value must be less than or equal to ${e}.`}function msgStep(e,t){if(e!==null&&t!==null)return`Please enter a valid value. The two nearest valid values are ${e} and ${t}.`;let n=e??t;return n===null?Ss:`Please enter a valid value. The nearest valid value is ${n}.`}const Cs=[[`valueMissing`,1],[`typeMismatch`,2],[`patternMismatch`,4],[`tooLong`,8],[`tooShort`,16],[`rangeUnderflow`,32],[`rangeOverflow`,64],[`stepMismatch`,128],[`badInput`,256],[`customError`,512]];var FaceState=class{impl;value;state;flags;message;anchor;validity;labels;lastOwner;lastDisabled;[w];[Wr];constructor(e){this.impl=e,this.value=null,this.state=null,this.flags=0,this.message=``,this.anchor=null,this.validity=null,this.labels=null,this.lastOwner=null,this.lastDisabled=!1,this[w]=``,this[Wr]=null}_validityFlags(){return this.flags}_barredFromValidation(){let e=this.impl;return isActuallyDisabled(e)||attr(e,`readonly`)!==null||hasDatalistAncestor(e)}_validationMessage(e){return this.message}};const ws=/* @__PURE__ */ new WeakMap;function isFACE(e){return!!(e.flags&xe)}function faceState(e){let t=ws.get(e);return t===void 0&&(t=new FaceState(e),ws.set(e,t)),t}function validatableOf(e){return isFACE(e)?faceState(e):e.node}function assertFACE(e,t){if(!isFACE(e))throw new DOMException(`Failed to execute '${t}' on 'ElementInternals': The target element is not a form-associated custom element.`,`NotSupportedError`)}function internalsSetFormValue(e,t,n){assertFACE(e,`setFormValue`);let r=faceState(e);r.value=cloneSubmission(t),r.state=n===void 0?r.value:cloneSubmission(n)}function cloneSubmission(e){if(e==null)return null;if(e instanceof FormData){let t=new FormData;for(let[n,r]of e)t.append(n,r);return t}return e instanceof File?e:String(e)}function internalsForm(e){assertFACE(e,`form`);let t=formOwner(e);return t===null?null:t.node}function internalsLabels(e){assertFACE(e,`labels`);let t=faceState(e);return t.labels??=new LabelsNodeList(e)}function internalsSetValidity(e,t,n,r){assertFACE(e,`setValidity`);let i=0;if(t!=null)for(let[e,n]of Cs)t[e]&&(i|=n);if(i!==0&&(n===void 0||String(n)===``))throw TypeError(`Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.`);if(r!=null){let t=r[j];if(t===void 0||t.type!==1||t.ns!==`http://www.w3.org/1999/xhtml`)throw TypeError(`Failed to execute 'setValidity' on 'ElementInternals': parameter 3 is not of type 'HTMLElement'.`);let n=!1;for(let r=t;r!==null;r=r.parent??r.node[A]?.[j]??null)if(r===e){n=!0;break}if(!n)throw new DOMException(`Failed to execute 'setValidity' on 'ElementInternals': The validation anchor is not a shadow-including descendant of the element.`,`NotFoundError`)}let a=faceState(e);a.flags=i,a.message=i===0?``:String(n).replace(/\r\n?/g,`
|
|
9
|
-
`),a.anchor=r??null}function internalsWillValidate(e){return assertFACE(e,`willValidate`),!faceState(e)._barredFromValidation()}function internalsValidity(e){assertFACE(e,`validity`);let t=faceState(e);return t.validity??=new ValidityState(t)}function internalsValidationMessage(e){assertFACE(e,`validationMessage`);let t=faceState(e);return t._barredFromValidation()?``:t.message}function internalsCheckValidity(e,t=`checkValidity`){assertFACE(e,t);let n=faceState(e);return n._barredFromValidation()||n.flags===0?!0:(fireEvent$1(e.node,`invalid`,!1,!0),!1)}function faceEntries(e,t){let n=ws.get(e)?.value??null;if(n===null)return;if(n instanceof FormData){for(let[e,r]of n)t.push([e,r]);return}let r=attr(e,`name`);r!==null&&r!==``&&t.push([r,n])}function invoke(e,t,n){enqueueFormCallback(e.node,t,n)}function faceReset(e){invoke(e,`formResetCallback`,[])}function flushFaceReactions(){flushReactions()}function faceStateMaybeChanged(e){let t=faceState(e),n=formOwner(e);n!==t.lastOwner&&(t.lastOwner=n,invoke(e,`formAssociatedCallback`,[n===null?null:n.node]));let r=isActuallyDisabled(e);r!==t.lastDisabled&&(t.lastDisabled=r,invoke(e,`formDisabledCallback`,[r]))}setFaceUpgradeHook(faceStateMaybeChanged);function isNewline(e){return e===10||e===13||e===12}function isWhitespace(e){return e===32||e===9||e===10||e===13||e===12}function isDigit(e){return e>=48&&e<=57}function isHexDigit(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function hexValue(e){return e<=57?e-48:e<=70?e-65+10:e-97+10}function isNonAsciiIdent(e){return e<183?!1:e===183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e===8204||e===8205||e===8255||e===8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=55296&&e<=57343||e>=63744&&e<=64975||e>=65008&&e<=65533}function isIdentStart(e){return e>=97&&e<=122||e>=65&&e<=90||e===95||isNonAsciiIdent(e)}function isIdentChar(e){return isIdentStart(e)||isDigit(e)||e===45}function isNonPrintable(e){return e>=0&&e<=8||e===11||e>=14&&e<=31||e===127}var CSSTokenizer=class{src;len;pos;type;start;end;value;num;isInteger;unit;hashId;sign;comments;constructor(e){this.src=e,this.len=e.length,this.pos=0,this.type=0,this.start=0,this.end=0,this.value=``,this.num=0,this.isInteger=!0,this.unit=``,this.hashId=!1,this.sign=``,this.comments=0}reset(e){this.pos=e}code(e){return e<this.len?this.src.charCodeAt(e):-1}validEscape(e){return this.code(e)===92&&!isNewline(this.code(e+1))}startsIdent(e){let t=this.code(e);if(t===45){let t=this.code(e+1);return isIdentStart(t)||t===45||this.validEscape(e+1)}return isIdentStart(t)?!0:this.validEscape(e)}startsNumber(e){let t=this.code(e);if(t===43||t===45){let t=this.code(e+1);return isDigit(t)?!0:t===46&&isDigit(this.code(e+2))}return isDigit(t===46?this.code(e+1):t)}consumeEscape(){let e=this.code(this.pos);if(e===-1)return`�`;if(isHexDigit(e)){let e=0,t=0;for(;t<6&&isHexDigit(this.code(this.pos));)e=e*16+hexValue(this.code(this.pos)),this.pos++,t++;let n=this.code(this.pos);return n===13&&this.code(this.pos+1)===10?this.pos+=2:isWhitespace(n)&&this.pos++,e===0||e>=55296&&e<=57343||e>1114111?`�`:String.fromCodePoint(e)}if(this.pos++,e===0)return`�`;if(e>=55296&&e<=56319){let e=this.code(this.pos);if(e>=56320&&e<=57343)return this.pos++,this.src.slice(this.pos-2,this.pos)}return this.src.slice(this.pos-1,this.pos)}consumeName(){let e=this.pos;for(;this.pos<this.len;){let e=this.src.charCodeAt(this.pos);if(isIdentChar(e)&&e!==0)this.pos++;else break}if(!this.validEscape(this.pos)&&this.code(this.pos)!==0)return this.src.slice(e,this.pos);let t=this.src.slice(e,this.pos);for(;this.pos<this.len;){let e=this.src.charCodeAt(this.pos);if(e===0)t+=`�`,this.pos++;else if(isIdentChar(e))t+=this.src.slice(this.pos,this.pos+1),this.pos++;else if(this.validEscape(this.pos))this.pos++,t+=this.consumeEscape();else break}return t}consumeNumber(){let e=this.pos,t=!0,n=this.code(this.pos);for(this.sign=``,(n===43||n===45)&&(this.sign=n===43?`+`:`-`,this.pos++);isDigit(this.code(this.pos));)this.pos++;if(this.code(this.pos)===46&&isDigit(this.code(this.pos+1)))for(this.pos+=2,t=!1;isDigit(this.code(this.pos));)this.pos++;if(n=this.code(this.pos),n===69||n===101){let e=this.code(this.pos+1);if(isDigit(e))for(this.pos+=2,t=!1;isDigit(this.code(this.pos));)this.pos++;else if((e===43||e===45)&&isDigit(this.code(this.pos+2)))for(this.pos+=3,t=!1;isDigit(this.code(this.pos));)this.pos++}this.num=Number(this.src.slice(e,this.pos)),this.isInteger=t}consumeNumeric(){return this.consumeNumber(),this.startsIdent(this.pos)?(this.unit=this.consumeName(),this.value=this.unit,12):this.code(this.pos)===37?(this.pos++,11):10}consumeString(e){let t=this.pos;for(;this.pos<this.len;){let n=this.src.charCodeAt(this.pos);if(n===e)return this.value=this.src.slice(t,this.pos),this.pos++,5;if(n===92||n===0||isNewline(n))break;this.pos++}let n=this.src.slice(t,this.pos);for(;;){if(this.pos>=this.len)return this.value=n,5;let t=this.src.charCodeAt(this.pos);if(t===e)return this.pos++,this.value=n,5;if(isNewline(t))return this.value=n,6;if(t===92){let e=this.code(this.pos+1);e===-1?this.pos++:isNewline(e)?this.pos+=e===13&&this.code(this.pos+2)===10?3:2:(this.pos++,n+=this.consumeEscape())}else t===0?(n+=`�`,this.pos++):(n+=this.src.slice(this.pos,this.pos+1),this.pos++)}}consumeBadUrl(){for(;this.pos<this.len;){if(this.src.charCodeAt(this.pos)===41){this.pos++;break}this.validEscape(this.pos)?(this.pos++,this.consumeEscape()):this.pos++}return this.value=``,8}consumeUrl(){for(;isWhitespace(this.code(this.pos));)this.pos++;let e=``;for(;;){if(this.pos>=this.len)return this.value=e,7;let t=this.src.charCodeAt(this.pos);if(t===41)return this.pos++,this.value=e,7;if(isWhitespace(t)){for(;isWhitespace(this.code(this.pos));)this.pos++;let t=this.code(this.pos);return t===41?(this.pos++,this.value=e,7):t===-1?(this.value=e,7):this.consumeBadUrl()}if(t===34||t===39||t===40||isNonPrintable(t))return this.pos++,this.consumeBadUrl();if(t===92){if(this.validEscape(this.pos))this.pos++,e+=this.consumeEscape();else return this.consumeBadUrl()}else t===0?(e+=`�`,this.pos++):(e+=this.src.slice(this.pos,this.pos+1),this.pos++)}}consumeIdentLike(){let e=this.consumeName();if(this.value=e,this.code(this.pos)===40){if(this.pos++,e.length===3&&asciiLower3(e)===`url`){let e=this.pos;for(;isWhitespace(this.code(e))&&isWhitespace(this.code(e+1));)e++;let t=this.code(e),n=isWhitespace(t)?this.code(e+1):t;return n===34||n===39?2:this.consumeUrl()}return 2}return 1}skipComments(){for(;this.code(this.pos)===47&&this.code(this.pos+1)===42;){let e=this.src.indexOf(`*/`,this.pos+2);this.pos=e===-1?this.len:e+2,this.comments++}}next(){this.skipComments(),this.start=this.pos,this.value=``;let e=this.consumeToken();return this.type=e,this.end=this.pos,e}consumeToken(){if(this.pos>=this.len)return 0;let e=this.src.charCodeAt(this.pos);if(isWhitespace(e)){for(this.pos++;isWhitespace(this.code(this.pos));)this.pos++;return 13}switch(e){case 34:case 39:return this.pos++,this.consumeString(e);case 35:return isIdentChar(this.code(this.pos+1))||this.validEscape(this.pos+1)?(this.pos++,this.hashId=this.startsIdent(this.pos),this.value=this.consumeName(),4):this.delim();case 40:return this.pos++,21;case 41:return this.pos++,22;case 43:return this.startsNumber(this.pos)?this.consumeNumeric():this.delim();case 44:return this.pos++,18;case 45:return this.startsNumber(this.pos)?this.consumeNumeric():this.code(this.pos+1)===45&&this.code(this.pos+2)===62?(this.pos+=3,15):this.startsIdent(this.pos)?this.consumeIdentLike():this.delim();case 46:return this.startsNumber(this.pos)?this.consumeNumeric():this.delim();case 58:return this.pos++,16;case 59:return this.pos++,17;case 60:return this.code(this.pos+1)===33&&this.code(this.pos+2)===45&&this.code(this.pos+3)===45?(this.pos+=4,14):this.delim();case 64:return this.startsIdent(this.pos+1)?(this.pos++,this.value=this.consumeName(),3):this.delim();case 91:return this.pos++,19;case 92:return this.validEscape(this.pos)?this.consumeIdentLike():this.delim();case 93:return this.pos++,20;case 123:return this.pos++,23;case 125:return this.pos++,24}return isDigit(e)?this.consumeNumeric():isIdentStart(e)||e===0?this.consumeIdentLike():this.delim()}delim(){let e=this.src.charCodeAt(this.pos);if(e>=55296&&e<=56319){let e=this.code(this.pos+1);if(e>=56320&&e<=57343)return this.value=this.src.slice(this.pos,this.pos+2),this.pos+=2,9}return this.value=this.src.slice(this.pos,this.pos+1),this.pos++,9}};function asciiLower3(e){return e.toLowerCase()}var RawDecl=class{name;value;important;constructor(e,t,n){this.name=e,this.value=t,this.important=n}},RawRule=class{kind;name;prelude;hasBlock;decls;leading;rules;constructor(e,t,n,r){this.kind=e,this.name=t,this.prelude=n,this.hasBlock=r,this.decls=[],this.leading=0,this.rules=[]}};function closerFor(e){return e===2||e===21?22:e===19?20:e===23?24:0}function stripComments(e){let t=new CSSTokenizer(e),n=``,r=0,i=t.next();for(;i!==0;)t.start!==r&&n!==``&&t.type!==13&&!n.endsWith(` `)&&needsSeparator(n.charCodeAt(n.length-1),e.charCodeAt(t.start))&&(n+=`/**/`),n+=e.slice(t.start,t.end),r=t.end,i=t.next();return n.trim()}function needsSeparator(e,t){return(e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122||e===45||e===95||e>=128)&&(t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===45||t===95||t>=128)}function isAsciiCaseInsensitive(e,t){return e.length===t.length&&e.toLowerCase()===t}var CSSParser=class{src;t;peeked;stack;valueStart;valueEnd;importantEnd;important;valueHasBlock;valueOtherCount;constructor(e){this.src=e,this.t=new CSSTokenizer(e),this.peeked=!1,this.stack=[],this.valueStart=0,this.valueEnd=0,this.importantEnd=0,this.important=!1,this.valueHasBlock=!1,this.valueOtherCount=0}advance(){return this.peeked?(this.peeked=!1,this.t.type):this.t.next()}reconsume(){this.peeked=!0}advanceNonWs(){let e=this.advance();for(;e===13;)e=this.advance();return e}mark(){return this.t.start}restore(e){this.t.reset(e),this.peeked=!1}skipBlock(e){let t=this.stack,n=t.length;for(t.push(closerFor(e));t.length>n;){let e=this.t.next();if(e===0)break;e===t[t.length-1]?t.pop():(e===2||e===21||e===19||e===23)&&t.push(closerFor(e))}t.length=n}text(e,t,n){let r=this.src.slice(e,t);return this.t.comments!==n&&r.indexOf(`/*`)!==-1?stripComments(r):r}parseStylesheet(){let e=[];for(;;){let t=this.advance();if(t===0)break;if(t!==13&&t!==14&&t!==15){if(t===3){let t=this.consumeAtRule(!1);t!==null&&e.push(t)}else{this.reconsume();let t=this.consumeQualifiedRule(!1);t!==null&&e.push(t)}}}return e}consumeAtRule(e){let t=this.t.value,n=this.t.comments,r=-1,i=-1;for(;;){let a=this.advance();if(a===17||a===0)return new RawRule(2,t,r===-1?``:this.text(r,i,n),!1);if(a===24){if(e)return this.reconsume(),new RawRule(2,t,r===-1?``:this.text(r,i,n),!1);r===-1&&(r=this.t.start),i=this.t.end}else{if(a===23){let e=new RawRule(2,t,r===-1?``:this.text(r,i,n),!0);return this.consumeBlockContents(e),e}a!==13&&(r===-1&&(r=this.t.start),(a===2||a===21||a===19)&&this.skipBlock(a),i=this.t.end)}}}consumeQualifiedRule(e){let t=this.t.comments,n=-1,r=-1;for(;;){let i=this.advance();if(i===0)return null;if(i===24){if(e)return this.reconsume(),null;n===-1&&(n=this.t.start),r=this.t.end}else{if(i===17&&e)return null;if(i===23){let e=n===-1?``:this.text(n,r,t);if(e.charCodeAt(0)===45&&e.charCodeAt(1)===45&&e.indexOf(`:`)!==-1)return this.skipBlock(23),null;let i=new RawRule(1,``,e,!0);return this.consumeBlockContents(i),i}i!==13&&(n===-1&&(n=this.t.start),(i===2||i===21||i===19)&&this.skipBlock(i),r=this.t.end)}}}consumeBlockContents(e){for(;;){let t=this.advance();if(t===0||t===24)return;if(t===13||t===17)continue;if(t===3){let t=this.consumeAtRule(!0);t!==null&&e.rules.push(t);continue}let n=this.mark();if(t===1){let t=this.consumeDeclaration();if(t!==null){e.decls.push(t);let n=e.rules.length;if(n===0)e.leading=e.decls.length;else{let r=e.rules[n-1];r.kind!==3&&(r=new RawRule(3,``,``,!1),e.rules.push(r)),r.decls.push(t),r.leading=r.decls.length}continue}this.restore(n)}else this.reconsume();let r=this.consumeQualifiedRule(!0);r!==null&&e.rules.push(r)}}consumeDeclaration(){let e=this.t.value;if(this.advanceNonWs()!==16)return null;let t=this.t.comments;if(this.scanValue(),this.valueStart===-1)return e.charCodeAt(0)===45&&e.charCodeAt(1)===45?new RawDecl(e,``,this.important):new RawDecl(e,``,!1);let n=this.important?this.importantEnd:this.valueEnd,r=n<=this.valueStart?``:this.text(this.valueStart,n,t).trim();return(e.charCodeAt(0)!==45||e.charCodeAt(1)!==45)&&this.valueHasBlock&&this.valueOtherCount>0?null:new RawDecl(e,r,this.important)}scanValue(){this.valueStart=-1,this.valueEnd=-1,this.importantEnd=-1,this.important=!1,this.valueHasBlock=!1,this.valueOtherCount=0;let e=0,t=0,n=-1,r=-1,i=-1;for(;;){let a=this.advance();if(a===0||a===17)break;if(a===24){this.reconsume();break}if(a===13)continue;this.valueStart===-1&&(this.valueStart=this.t.start);let o=0;a===9&&this.t.value===`!`?o=1:a===1&&isAsciiCaseInsensitive(this.t.value,`important`)&&(o=2),a===23?this.valueHasBlock=!0:this.valueOtherCount++,(a===2||a===21||a===19||a===23)&&this.skipBlock(a),n=r,r=i,i=this.t.end,t=e,e=o}this.valueEnd=i,e===2&&t===1&&(this.important=!0,this.importantEnd=n===-1?this.valueStart:n,this.valueHasBlock&&(this.valueOtherCount-=2))}};function parseStylesheet(e){return new CSSParser(e).parseStylesheet()}function parseRule(e){let t=new CSSParser(e),n=t.advanceNonWs();if(n===0)return null;let r=null;return n===3?r=t.consumeAtRule(!1):(t.reconsume(),r=t.consumeQualifiedRule(!1)),r===null||(n=t.advanceNonWs(),n!==0)?null:r}function parseDeclarationList(e){let t=new CSSParser(e),n=new RawRule(1,``,``,!0);for(t.consumeBlockContents(n);t.t.type!==0;){let e=new RawRule(1,``,``,!0);t.consumeBlockContents(e);for(let t=0;t<e.decls.length;t++)n.decls.push(e.decls[t])}return n.decls}const Ts=[`-webkit-align-content`,0,``,``,`-webkit-align-items`,0,``,``,`-webkit-align-self`,0,``,``,`-webkit-animation`,0,``,`animation-name animation-duration animation-timing-function animation-delay animation-iteration-count animation-direction animation-fill-mode animation-play-state animation-timeline`,`-webkit-animation-delay`,0,``,``,`-webkit-animation-direction`,0,``,``,`-webkit-animation-duration`,0,``,``,`-webkit-animation-fill-mode`,0,``,``,`-webkit-animation-iteration-count`,0,``,``,`-webkit-animation-name`,0,``,``,`-webkit-animation-play-state`,0,``,``,`-webkit-animation-timing-function`,0,``,``,`-webkit-appearance`,0,``,``,`-webkit-backface-visibility`,0,``,``,`-webkit-background-clip`,0,``,``,`-webkit-background-origin`,0,``,``,`-webkit-background-size`,0,``,``,`-webkit-border-bottom-left-radius`,0,``,``,`-webkit-border-bottom-right-radius`,0,``,``,`-webkit-border-radius`,0,``,`border-top-left-radius border-top-right-radius border-bottom-right-radius border-bottom-left-radius`,`-webkit-border-top-left-radius`,0,``,``,`-webkit-border-top-right-radius`,0,``,``,`-webkit-box-align`,0,``,``,`-webkit-box-flex`,0,``,``,`-webkit-box-ordinal-group`,0,``,``,`-webkit-box-orient`,0,``,``,`-webkit-box-pack`,0,``,``,`-webkit-box-shadow`,0,``,`box-shadow-color box-shadow-offset box-shadow-blur box-shadow-spread box-shadow-position`,`-webkit-box-sizing`,0,``,``,`-webkit-filter`,0,``,``,`-webkit-flex`,0,``,`flex-grow flex-shrink flex-basis`,`-webkit-flex-basis`,0,``,``,`-webkit-flex-direction`,0,``,``,`-webkit-flex-flow`,0,``,`flex-direction flex-wrap`,`-webkit-flex-grow`,0,``,``,`-webkit-flex-shrink`,0,``,``,`-webkit-flex-wrap`,0,``,``,`-webkit-justify-content`,0,``,``,`-webkit-line-clamp`,0,`none`,`max-lines block-ellipsis continue`,`-webkit-mask`,0,``,`mask-image mask-position mask-size mask-repeat mask-origin mask-clip mask-composite mask-mode`,`-webkit-mask-box-image`,0,``,`mask-border-source mask-border-slice mask-border-width mask-border-outset mask-border-repeat mask-border-mode`,`-webkit-mask-box-image-outset`,0,``,``,`-webkit-mask-box-image-repeat`,0,``,``,`-webkit-mask-box-image-slice`,0,``,``,`-webkit-mask-box-image-source`,0,``,``,`-webkit-mask-box-image-width`,0,``,``,`-webkit-mask-clip`,0,``,``,`-webkit-mask-composite`,0,``,``,`-webkit-mask-image`,0,``,``,`-webkit-mask-origin`,0,``,``,`-webkit-mask-position`,0,``,``,`-webkit-mask-repeat`,0,``,``,`-webkit-mask-size`,0,``,``,`-webkit-order`,0,``,``,`-webkit-perspective`,0,``,``,`-webkit-perspective-origin`,0,``,``,`-webkit-text-fill-color`,1,`currentcolor`,``,`-webkit-text-size-adjust`,0,``,``,`-webkit-text-stroke`,1,``,`-webkit-text-stroke-width -webkit-text-stroke-color`,`-webkit-text-stroke-color`,1,`currentcolor`,``,`-webkit-text-stroke-width`,1,`0`,``,`-webkit-transform`,0,``,``,`-webkit-transform-origin`,0,``,``,`-webkit-transform-style`,0,``,``,`-webkit-transition`,0,``,`transition-property transition-duration transition-timing-function transition-delay transition-behavior`,`-webkit-transition-delay`,0,``,``,`-webkit-transition-duration`,0,``,``,`-webkit-transition-property`,0,``,``,`-webkit-transition-timing-function`,0,``,``,`-webkit-user-select`,0,``,``,`accent-color`,1,`auto`,``,`align-content`,0,`normal`,``,`align-items`,0,`normal`,``,`align-self`,0,`auto`,``,`alignment-baseline`,0,`baseline`,``,`all`,0,``,``,`anchor-name`,0,`none`,``,`anchor-scope`,0,`none`,``,`animation`,0,``,`animation-name animation-duration animation-timing-function animation-delay animation-iteration-count animation-direction animation-fill-mode animation-play-state animation-timeline`,`animation-composition`,0,`replace`,``,`animation-delay`,0,``,`animation-delay-start animation-delay-end`,`animation-delay-end`,0,`0s`,``,`animation-delay-start`,0,`0s`,``,`animation-direction`,0,`normal`,``,`animation-duration`,0,`auto`,``,`animation-fill-mode`,0,`none`,``,`animation-iteration-count`,0,`1`,``,`animation-name`,0,`none`,``,`animation-play-state`,0,`running`,``,`animation-range`,0,``,`animation-range-start animation-range-end`,`animation-range-center`,0,`normal`,``,`animation-range-end`,0,`normal`,``,`animation-range-start`,0,`normal`,``,`animation-timeline`,0,`auto`,``,`animation-timing-function`,0,`ease`,``,`animation-trigger`,0,`none`,``,`appearance`,0,`none`,``,`aspect-ratio`,0,`auto`,``,`backdrop-filter`,0,`none`,``,`backface-visibility`,0,`visible`,``,`background`,0,``,`background-image background-position background-size background-repeat background-attachment background-origin background-clip background-color`,`background-attachment`,0,`scroll`,``,`background-blend-mode`,0,`normal`,``,`background-clip`,0,`border-box`,``,`background-color`,0,`transparent`,``,`background-image`,0,`none`,``,`background-origin`,0,`padding-box`,``,`background-position`,0,`0% 0%`,`background-position-x background-position-y`,`background-position-block`,0,`0%`,``,`background-position-inline`,0,`0%`,``,`background-position-x`,0,`0%`,``,`background-position-y`,0,`0%`,``,`background-repeat`,0,`repeat`,``,`background-repeat-block`,0,`repeat`,``,`background-repeat-inline`,0,`repeat`,``,`background-repeat-x`,0,`repeat`,``,`background-repeat-y`,0,`repeat`,``,`background-size`,0,`auto`,``,`background-tbd`,0,``,``,`baseline-shift`,0,`0`,``,`baseline-source`,0,`auto`,``,`block-ellipsis`,1,`no-ellipsis`,``,`block-size`,0,`auto`,``,`block-step`,0,``,`block-step-size block-step-insert block-step-align block-step-round`,`block-step-align`,0,`auto`,``,`block-step-insert`,0,`margin-box`,``,`block-step-round`,0,`up`,``,`block-step-size`,0,`none`,``,`bookmark-label`,0,`content(text)`,``,`bookmark-level`,0,`none`,``,`bookmark-state`,0,`open`,``,`border`,0,``,`border-width border-style border-color`,`border-block`,0,``,`border-block-start border-block-end`,`border-block-clip`,0,``,`border-block-start-clip border-block-end-clip`,`border-block-color`,0,``,`border-block-start-color border-block-end-color`,`border-block-end`,0,``,`border-block-end-width border-block-end-style border-block-end-color`,`border-block-end-clip`,0,`none`,``,`border-block-end-color`,0,`currentcolor`,``,`border-block-end-radius`,0,`0`,`border-end-start-radius border-end-end-radius`,`border-block-end-style`,0,`none`,``,`border-block-end-width`,0,`medium`,``,`border-block-start`,0,``,`border-block-start-width border-block-start-style border-block-start-color`,`border-block-start-clip`,0,`none`,``,`border-block-start-color`,0,`currentcolor`,``,`border-block-start-radius`,0,`0`,`border-start-start-radius border-start-end-radius`,`border-block-start-style`,0,`none`,``,`border-block-start-width`,0,`medium`,``,`border-block-style`,0,``,`border-block-start-style border-block-end-style`,`border-block-width`,0,``,`border-block-start-width border-block-end-width`,`border-bottom`,0,``,`border-bottom-width border-bottom-style border-bottom-color`,`border-bottom-clip`,0,`none`,``,`border-bottom-color`,0,`currentcolor`,``,`border-bottom-left-radius`,0,`0`,``,`border-bottom-radius`,0,`0`,`border-bottom-left-radius border-bottom-right-radius`,`border-bottom-right-radius`,0,`0`,``,`border-bottom-style`,0,`none`,``,`border-bottom-width`,0,`medium`,``,`border-boundary`,1,`none`,``,`border-clip`,0,``,`border-top-clip border-right-clip border-bottom-clip border-left-clip`,`border-collapse`,1,`separate`,``,`border-color`,0,``,`border-top-color border-right-color border-bottom-color border-left-color`,`border-end-end-radius`,0,`0`,``,`border-end-start-radius`,0,`0`,``,`border-image`,0,``,`border-image-source border-image-slice border-image-width border-image-outset border-image-repeat`,`border-image-outset`,0,`0`,``,`border-image-repeat`,0,`stretch`,``,`border-image-slice`,0,`100%`,``,`border-image-source`,0,`none`,``,`border-image-width`,0,`1`,``,`border-inline`,0,``,`border-inline-start border-inline-end`,`border-inline-clip`,0,``,`border-inline-start-clip border-inline-end-clip`,`border-inline-color`,0,``,`border-inline-start-color border-inline-end-color`,`border-inline-end`,0,``,`border-inline-end-width border-inline-end-style border-inline-end-color`,`border-inline-end-clip`,0,`none`,``,`border-inline-end-color`,0,`currentcolor`,``,`border-inline-end-radius`,0,`0`,`border-start-end-radius border-end-end-radius`,`border-inline-end-style`,0,`none`,``,`border-inline-end-width`,0,`medium`,``,`border-inline-start`,0,``,`border-inline-start-width border-inline-start-style border-inline-start-color`,`border-inline-start-clip`,0,`none`,``,`border-inline-start-color`,0,`currentcolor`,``,`border-inline-start-radius`,0,`0`,`border-start-start-radius border-end-start-radius`,`border-inline-start-style`,0,`none`,``,`border-inline-start-width`,0,`medium`,``,`border-inline-style`,0,``,`border-inline-start-style border-inline-end-style`,`border-inline-width`,0,``,`border-inline-start-width border-inline-end-width`,`border-left`,0,``,`border-left-width border-left-style border-left-color`,`border-left-clip`,0,`none`,``,`border-left-color`,0,`currentcolor`,``,`border-left-radius`,0,`0`,`border-top-left-radius border-bottom-left-radius`,`border-left-style`,0,`none`,``,`border-left-width`,0,`medium`,``,`border-limit`,0,`all`,``,`border-radius`,0,``,`border-top-left-radius border-top-right-radius border-bottom-right-radius border-bottom-left-radius`,`border-right`,0,``,`border-right-width border-right-style border-right-color`,`border-right-clip`,0,`none`,``,`border-right-color`,0,`currentcolor`,``,`border-right-radius`,0,`0`,`border-top-right-radius border-bottom-right-radius`,`border-right-style`,0,`none`,``,`border-right-width`,0,`medium`,``,`border-shape`,0,`none`,``,`border-spacing`,1,`0px 0px`,``,`border-start-end-radius`,0,`0`,``,`border-start-start-radius`,0,`0`,``,`border-style`,0,``,`border-top-style border-right-style border-bottom-style border-left-style`,`border-top`,0,``,`border-top-width border-top-style border-top-color`,`border-top-clip`,0,`none`,``,`border-top-color`,0,`currentcolor`,``,`border-top-left-radius`,0,`0`,``,`border-top-radius`,0,`0`,`border-top-left-radius border-top-right-radius`,`border-top-right-radius`,0,`0`,``,`border-top-style`,0,`none`,``,`border-top-width`,0,`medium`,``,`border-width`,0,``,`border-top-width border-right-width border-bottom-width border-left-width`,`bottom`,0,`auto`,``,`box-decoration-break`,0,`slice`,``,`box-shadow`,0,`none`,`box-shadow-color box-shadow-offset box-shadow-blur box-shadow-spread box-shadow-position`,`box-shadow-blur`,0,`0`,``,`box-shadow-color`,0,`currentcolor`,``,`box-shadow-offset`,0,`none`,``,`box-shadow-position`,0,`outset`,``,`box-shadow-spread`,0,`0`,``,`box-sizing`,0,`content-box`,``,`box-snap`,1,`none`,``,`break-after`,0,`auto`,``,`break-before`,0,`auto`,``,`break-inside`,0,`auto`,``,`caption-side`,1,`top`,``,`caret`,1,`auto`,`caret-color caret-animation caret-shape`,`caret-animation`,1,`auto`,``,`caret-color`,1,`auto`,``,`caret-shape`,1,`auto`,``,`clear`,0,`none`,``,`clip`,0,`auto`,``,`clip-path`,0,`none`,``,`clip-rule`,1,`nonzero`,``,`color`,1,`CanvasText`,``,`color-adjust`,0,``,`print-color-adjust`,`color-interpolation`,1,`sRGB`,``,`color-interpolation-filters`,1,`linearRGB`,``,`color-scheme`,1,`normal`,``,`column-count`,0,`auto`,``,`column-fill`,0,`balance`,``,`column-gap`,0,`normal`,``,`column-height`,0,`auto`,``,`column-rule`,0,``,`column-rule-width column-rule-style column-rule-color`,`column-rule-break`,0,`normal`,``,`column-rule-color`,0,`currentcolor`,``,`column-rule-inset`,0,``,`column-rule-inset-cap-start column-rule-inset-cap-end column-rule-inset-junction-start column-rule-inset-junction-end`,`column-rule-inset-cap`,0,``,`column-rule-inset-cap-start column-rule-inset-cap-end`,`column-rule-inset-cap-end`,0,`0`,``,`column-rule-inset-cap-start`,0,`0`,``,`column-rule-inset-end`,0,``,`column-rule-inset-cap-end column-rule-inset-junction-end`,`column-rule-inset-junction`,0,``,`column-rule-inset-junction-start column-rule-inset-junction-end`,`column-rule-inset-junction-end`,0,`0`,``,`column-rule-inset-junction-start`,0,`0`,``,`column-rule-inset-start`,0,``,`column-rule-inset-cap-start column-rule-inset-junction-start`,`column-rule-style`,0,`none`,``,`column-rule-visibility-items`,0,`normal`,``,`column-rule-width`,0,`medium`,``,`column-span`,0,`none`,``,`column-width`,0,``,``,`column-wrap`,0,`auto`,``,`columns`,0,``,`column-width column-count column-height`,`contain`,0,`none`,``,`contain-intrinsic-block-size`,0,`none`,``,`contain-intrinsic-height`,0,`none`,``,`contain-intrinsic-inline-size`,0,`none`,``,`contain-intrinsic-size`,0,``,`contain-intrinsic-width contain-intrinsic-height`,`contain-intrinsic-width`,0,`none`,``,`container`,0,``,`container-name container-type`,`container-name`,0,`none`,``,`container-type`,0,`normal`,``,`content`,0,`normal`,``,`content-visibility`,0,`visible`,``,`continue`,0,`auto`,``,`copy-into`,0,`none`,``,`corner`,0,`0`,`border-radius corner-shape`,`corner-block-end`,0,`0`,`border-block-end-radius corner-block-end-shape`,`corner-block-end-shape`,0,``,`corner-end-start-shape corner-end-end-shape`,`corner-block-start`,0,`0`,`border-block-start-radius corner-block-start-shape`,`corner-block-start-shape`,0,``,`corner-start-start-shape corner-start-end-shape`,`corner-bottom`,0,`0`,`border-bottom-radius corner-bottom-shape`,`corner-bottom-left`,0,`0`,`border-bottom-left-radius corner-bottom-left-shape`,`corner-bottom-left-shape`,0,`round`,``,`corner-bottom-right`,0,`0`,`border-bottom-right-radius corner-bottom-right-shape`,`corner-bottom-right-shape`,0,`round`,``,`corner-bottom-shape`,0,``,`corner-bottom-left-shape corner-bottom-right-shape`,`corner-end-end`,0,`0`,`border-end-end-radius corner-end-end-shape`,`corner-end-end-shape`,0,`round`,``,`corner-end-start`,0,`0`,`border-end-start-radius corner-end-start-shape`,`corner-end-start-shape`,0,`round`,``,`corner-inline-end`,0,`0`,`border-inline-end-radius corner-inline-end-shape`,`corner-inline-end-shape`,0,``,`corner-start-end-shape corner-end-end-shape`,`corner-inline-start`,0,`0`,`border-inline-start-radius corner-inline-start-shape`,`corner-inline-start-shape`,0,``,`corner-start-start-shape corner-end-start-shape`,`corner-left`,0,`0`,`border-left-radius corner-left-shape`,`corner-left-shape`,0,``,`corner-top-left-shape corner-bottom-left-shape`,`corner-right`,0,`0`,`border-right-radius corner-right-shape`,`corner-right-shape`,0,``,`corner-top-right-shape corner-bottom-right-shape`,`corner-shape`,0,`round`,`corner-top-left-shape corner-top-right-shape corner-bottom-right-shape corner-bottom-left-shape`,`corner-start-end`,0,`0`,`border-start-end-radius corner-start-end-shape`,`corner-start-end-shape`,0,`round`,``,`corner-start-start`,0,`0`,`border-start-start-radius corner-start-start-shape`,`corner-start-start-shape`,0,`round`,``,`corner-top`,0,`0`,`border-top-radius corner-top-shape`,`corner-top-left`,0,`0`,`border-top-left-radius corner-top-left-shape`,`corner-top-left-shape`,0,`round`,``,`corner-top-right`,0,`0`,`border-top-right-radius corner-top-right-shape`,`corner-top-right-shape`,0,`round`,``,`corner-top-shape`,0,``,`corner-top-left-shape corner-top-right-shape`,`counter-increment`,0,`none`,``,`counter-reset`,0,`none`,``,`counter-set`,0,`none`,``,`cue`,0,``,`cue-before cue-after`,`cue-after`,0,`none`,``,`cue-before`,0,`none`,``,`cursor`,1,`auto`,``,`cx`,0,`0`,``,`cy`,0,`0`,``,`d`,0,`none`,``,`direction`,1,`ltr`,``,`display`,0,`inline`,``,`dominant-baseline`,1,`auto`,``,`dynamic-range-limit`,1,`no-limit`,``,`empty-cells`,1,`show`,``,`event-trigger`,0,`none`,``,`event-trigger-name`,0,`none`,``,`event-trigger-source`,0,`none`,``,`field-sizing`,0,`fixed`,``,`fill`,1,`black`,``,`fill-break`,0,`bounding-box`,``,`fill-color`,1,`currentcolor`,``,`fill-image`,1,`none`,``,`fill-opacity`,1,`1`,``,`fill-origin`,0,`match-parent`,``,`fill-position`,1,`0% 0%`,``,`fill-repeat`,1,`repeat`,``,`fill-rule`,1,`nonzero`,``,`fill-size`,1,`auto`,``,`filter`,0,`none`,``,`flex`,0,`0 1 auto`,`flex-grow flex-shrink flex-basis`,`flex-basis`,0,`auto`,``,`flex-direction`,0,`row`,``,`flex-flow`,0,``,`flex-direction flex-wrap`,`flex-grow`,0,`0`,``,`flex-line-count`,0,`1`,``,`flex-shrink`,0,`1`,``,`flex-wrap`,0,`nowrap`,``,`float`,0,`none`,``,`float-defer`,0,`none`,``,`float-offset`,0,`0`,``,`float-reference`,0,`inline`,``,`flood-color`,0,`black`,``,`flood-opacity`,0,`1`,``,`flow-from`,0,`none`,``,`flow-into`,0,`none`,``,`flow-tolerance`,0,`normal`,``,`font`,1,``,`font-style font-variant font-weight font-stretch font-size line-height font-family`,`font-family`,1,``,``,`font-feature-settings`,1,`normal`,``,`font-kerning`,1,`auto`,``,`font-language-override`,1,`normal`,``,`font-optical-sizing`,1,`auto`,``,`font-palette`,1,`normal`,``,`font-size`,1,`medium`,``,`font-size-adjust`,1,`none`,``,`font-stretch`,0,``,``,`font-style`,1,`normal`,``,`font-synthesis`,1,`weight style small-caps position`,`font-synthesis-weight font-synthesis-style font-synthesis-small-caps`,`font-synthesis-position`,1,`auto`,``,`font-synthesis-small-caps`,1,`auto`,``,`font-synthesis-style`,1,`auto`,``,`font-synthesis-weight`,1,`auto`,``,`font-variant`,1,`normal`,`font-variant-ligatures font-variant-caps font-variant-alternates font-variant-numeric font-variant-east-asian font-variant-position font-variant-emoji`,`font-variant-alternates`,1,`normal`,``,`font-variant-caps`,1,`normal`,``,`font-variant-east-asian`,1,`normal`,``,`font-variant-emoji`,1,`normal`,``,`font-variant-ligatures`,1,`normal`,``,`font-variant-numeric`,1,`normal`,``,`font-variant-position`,1,`normal`,``,`font-variation-settings`,1,`normal`,``,`font-weight`,1,`normal`,``,`font-width`,1,`normal`,``,`footnote-display`,0,`block`,``,`footnote-policy`,0,`auto`,``,`forced-color-adjust`,1,`auto`,``,`frame-sizing`,0,`auto`,``,`gap`,0,``,`row-gap column-gap`,`glyph-orientation-vertical`,0,``,``,`grid`,0,`none`,`grid-template-rows grid-template-columns grid-template-areas grid-auto-rows grid-auto-columns grid-auto-flow`,`grid-area`,0,`auto`,`grid-row-start grid-column-start grid-row-end grid-column-end`,`grid-auto-columns`,0,`auto`,``,`grid-auto-flow`,0,`row`,``,`grid-auto-rows`,0,`auto`,``,`grid-column`,0,`auto`,`grid-column-start grid-column-end`,`grid-column-end`,0,`auto`,``,`grid-column-gap`,0,``,``,`grid-column-start`,0,`auto`,``,`grid-gap`,0,``,`row-gap column-gap`,`grid-row`,0,`auto`,`grid-row-start grid-row-end`,`grid-row-end`,0,`auto`,``,`grid-row-gap`,0,``,``,`grid-row-start`,0,`auto`,``,`grid-template`,0,`none`,`grid-template-rows grid-template-columns grid-template-areas`,`grid-template-areas`,0,`none`,``,`grid-template-columns`,0,`none`,``,`grid-template-rows`,0,`none`,``,`hanging-punctuation`,1,`none`,``,`height`,0,`auto`,``,`hyphenate-character`,1,`auto`,``,`hyphenate-limit-chars`,1,`auto`,``,`hyphenate-limit-last`,1,`none`,``,`hyphenate-limit-lines`,1,`no-limit`,``,`hyphenate-limit-zone`,1,`0`,``,`hyphens`,1,`manual`,``,`image-animation`,1,`normal`,``,`image-orientation`,1,`from-image`,``,`image-rendering`,1,`auto`,``,`image-resolution`,1,`1dppx`,``,`initial-letter`,0,`normal`,``,`initial-letter-align`,1,`alphabetic`,``,`initial-letter-wrap`,1,`none`,``,`inline-size`,0,`auto`,``,`inline-sizing`,1,`normal`,``,`input-security`,0,`auto`,``,`inset`,0,`auto`,`top right bottom left`,`inset-block`,0,`auto`,`inset-block-start inset-block-end`,`inset-block-end`,0,`auto`,``,`inset-block-start`,0,`auto`,``,`inset-inline`,0,`auto`,`inset-inline-start inset-inline-end`,`inset-inline-end`,0,`auto`,``,`inset-inline-start`,0,`auto`,``,`interactivity`,1,`auto`,``,`interest-delay`,0,``,`interest-delay-start interest-delay-end`,`interest-delay-end`,1,`normal`,``,`interest-delay-start`,1,`normal`,``,`interpolate-size`,1,`numeric-only`,``,`isolation`,0,`auto`,``,`justify-content`,0,`normal`,``,`justify-items`,0,`legacy`,``,`justify-self`,0,`auto`,``,`left`,0,`auto`,``,`letter-spacing`,1,`normal`,``,`lighting-color`,0,`white`,``,`line-break`,1,`auto`,``,`line-clamp`,0,`none`,`max-lines block-ellipsis continue`,`line-fit-edge`,1,`leading`,``,`line-grid`,0,`match-parent`,``,`line-height`,1,`normal`,``,`line-height-step`,1,`0`,``,`line-padding`,1,`0`,``,`line-snap`,1,`none`,``,`link-parameters`,0,`none`,``,`list-style`,0,``,`list-style-type list-style-position list-style-image`,`list-style-image`,1,`none`,``,`list-style-position`,1,`outside`,``,`list-style-type`,1,`disc`,``,`margin`,0,`0`,`margin-top margin-right margin-bottom margin-left`,`margin-block`,0,``,`margin-block-start margin-block-end`,`margin-block-end`,0,`0`,``,`margin-block-start`,0,`0`,``,`margin-bottom`,0,`0`,``,`margin-break`,0,`auto`,``,`margin-inline`,0,``,`margin-inline-start margin-inline-end`,`margin-inline-end`,0,`0`,``,`margin-inline-start`,0,`0`,``,`margin-left`,0,`0`,``,`margin-right`,0,`0`,``,`margin-top`,0,`0`,``,`margin-trim`,0,`none`,``,`marker`,1,``,`marker-start marker-mid marker-end`,`marker-end`,1,`none`,``,`marker-mid`,1,`none`,``,`marker-side`,1,`match-self`,``,`marker-start`,1,`none`,``,`mask`,0,``,`mask-image mask-position mask-size mask-repeat mask-origin mask-clip mask-composite mask-mode`,`mask-border`,0,``,`mask-border-source mask-border-slice mask-border-width mask-border-outset mask-border-repeat mask-border-mode`,`mask-border-mode`,0,`alpha`,``,`mask-border-outset`,0,`0`,``,`mask-border-repeat`,0,`stretch`,``,`mask-border-slice`,0,`0`,``,`mask-border-source`,0,`none`,``,`mask-border-width`,0,`auto`,``,`mask-clip`,0,`border-box`,``,`mask-composite`,0,`add`,``,`mask-image`,0,`none`,``,`mask-mode`,0,`match-source`,``,`mask-origin`,0,`border-box`,``,`mask-position`,0,`0% 0%`,``,`mask-repeat`,0,`repeat`,``,`mask-size`,0,`auto`,``,`mask-type`,0,`luminance`,``,`math-depth`,1,`0`,``,`math-shift`,1,`normal`,``,`math-style`,1,`normal`,``,`max-block-size`,0,`none`,``,`max-height`,0,`none`,``,`max-inline-size`,0,`none`,``,`max-lines`,0,`none`,``,`max-size`,0,`none`,`max-width max-height`,`max-width`,0,`none`,``,`min-block-size`,0,`auto`,``,`min-height`,0,`auto`,``,`min-inline-size`,0,`auto`,``,`min-intrinsic-sizing`,0,`legacy`,``,`min-size`,0,`auto`,`min-width min-height`,`min-width`,0,`auto`,``,`mix-blend-mode`,0,`normal`,``,`nav-down`,0,`auto`,``,`nav-left`,0,`auto`,``,`nav-right`,0,`auto`,``,`nav-up`,0,`auto`,``,`object-fit`,0,`fill`,``,`object-position`,0,`50% 50%`,``,`object-view-box`,0,`none`,``,`offset`,0,``,`offset-path offset-distance offset-rotate offset-anchor offset-position`,`offset-anchor`,0,`auto`,``,`offset-distance`,0,`0`,``,`offset-path`,0,`none`,``,`offset-position`,0,`normal`,``,`offset-rotate`,0,`auto`,``,`opacity`,0,`1`,``,`order`,0,`0`,``,`orphans`,1,`2`,``,`outline`,0,``,`outline-width outline-style outline-color`,`outline-color`,0,`auto`,``,`outline-offset`,0,`0`,``,`outline-style`,0,`none`,``,`outline-width`,0,`medium`,``,`overflow`,0,`visible`,`overflow-x overflow-y`,`overflow-anchor`,0,`auto`,``,`overflow-block`,0,`visible`,``,`overflow-clip-margin`,0,`0px`,`overflow-clip-margin-top overflow-clip-margin-right overflow-clip-margin-bottom overflow-clip-margin-left`,`overflow-clip-margin-block`,0,`0px`,`overflow-clip-margin-block-start overflow-clip-margin-block-end`,`overflow-clip-margin-block-end`,0,`0px`,``,`overflow-clip-margin-block-start`,0,`0px`,``,`overflow-clip-margin-bottom`,0,`0px`,``,`overflow-clip-margin-inline`,0,`0px`,`overflow-clip-margin-inline-start overflow-clip-margin-inline-end`,`overflow-clip-margin-inline-end`,0,`0px`,``,`overflow-clip-margin-inline-start`,0,`0px`,``,`overflow-clip-margin-left`,0,`0px`,``,`overflow-clip-margin-right`,0,`0px`,``,`overflow-clip-margin-top`,0,`0px`,``,`overflow-inline`,0,`visible`,``,`overflow-wrap`,1,`normal`,``,`overflow-x`,0,`visible`,``,`overflow-y`,0,`visible`,``,`overlay`,0,`none`,``,`overscroll-behavior`,0,`auto auto`,`overscroll-behavior-x overscroll-behavior-y`,`overscroll-behavior-block`,0,`auto`,``,`overscroll-behavior-inline`,0,`auto`,``,`overscroll-behavior-x`,0,`auto`,``,`overscroll-behavior-y`,0,`auto`,``,`padding`,0,`0`,`padding-top padding-right padding-bottom padding-left`,`padding-block`,0,``,`padding-block-start padding-block-end`,`padding-block-end`,0,`0`,``,`padding-block-start`,0,`0`,``,`padding-bottom`,0,`0`,``,`padding-inline`,0,``,`padding-inline-start padding-inline-end`,`padding-inline-end`,0,`0`,``,`padding-inline-start`,0,`0`,``,`padding-left`,0,`0`,``,`padding-right`,0,`0`,``,`padding-top`,0,`0`,``,`page`,0,`auto`,``,`page-break-after`,0,`auto`,``,`page-break-before`,0,`auto`,``,`page-break-inside`,0,`auto`,``,`paint-order`,1,`normal`,``,`path-length`,0,`none`,``,`pause`,0,``,`pause-before pause-after`,`pause-after`,0,`none`,``,`pause-before`,0,`none`,``,`perspective`,0,`none`,``,`perspective-origin`,0,`50% 50%`,``,`place-content`,0,`normal`,`align-content justify-content`,`place-items`,0,``,`align-items justify-items`,`place-self`,0,`auto`,`align-self justify-self`,`pointer-events`,1,`auto`,``,`pointer-timeline`,0,``,`pointer-timeline-name pointer-timeline-axis`,`pointer-timeline-axis`,0,`block`,``,`pointer-timeline-name`,0,`none`,``,`position`,0,`static`,``,`position-anchor`,0,`normal`,``,`position-area`,0,`none`,``,`position-try`,0,``,`position-try-order position-try-fallbacks`,`position-try-fallbacks`,0,`none`,``,`position-try-order`,0,`normal`,``,`position-visibility`,0,`anchor-visible`,``,`print-color-adjust`,1,`economy`,``,`quotes`,1,`auto`,``,`r`,0,`0`,``,`reading-flow`,0,`normal`,``,`reading-order`,0,`0`,``,`region-fragment`,0,`auto`,``,`resize`,0,`none`,``,`rest`,0,``,`rest-before rest-after`,`rest-after`,0,`none`,``,`rest-before`,0,`none`,``,`right`,0,`auto`,``,`rotate`,0,`none`,``,`row-gap`,0,`normal`,``,`row-rule`,0,``,`row-rule-width row-rule-style row-rule-color`,`row-rule-break`,0,`normal`,``,`row-rule-color`,0,`currentcolor`,``,`row-rule-inset`,0,``,`row-rule-inset-cap-start row-rule-inset-cap-end row-rule-inset-junction-start row-rule-inset-junction-end`,`row-rule-inset-cap`,0,``,`row-rule-inset-cap-start row-rule-inset-cap-end`,`row-rule-inset-cap-end`,0,`0`,``,`row-rule-inset-cap-start`,0,`0`,``,`row-rule-inset-end`,0,``,`row-rule-inset-cap-end row-rule-inset-junction-end`,`row-rule-inset-junction`,0,``,`row-rule-inset-junction-start row-rule-inset-junction-end`,`row-rule-inset-junction-end`,0,`0`,``,`row-rule-inset-junction-start`,0,`0`,``,`row-rule-inset-start`,0,``,`row-rule-inset-cap-start row-rule-inset-junction-start`,`row-rule-style`,0,`none`,``,`row-rule-visibility-items`,0,`normal`,``,`row-rule-width`,0,`medium`,``,`ruby-align`,1,`space-around`,``,`ruby-merge`,1,`separate`,``,`ruby-overhang`,1,`auto`,``,`ruby-position`,1,`alternate`,``,`rule`,0,``,`column-rule row-rule`,`rule-break`,0,``,`column-rule-break row-rule-break`,`rule-color`,0,``,`column-rule-color row-rule-color`,`rule-inset`,0,``,`column-rule-inset row-rule-inset`,`rule-inset-cap`,0,``,`column-rule-inset-cap`,`rule-inset-end`,0,``,`column-rule-inset-end row-rule-inset-end`,`rule-inset-junction`,0,``,`column-rule-inset-junction`,`rule-inset-start`,0,``,`column-rule-inset-start row-rule-inset-start`,`rule-overlap`,0,`row-over-column`,``,`rule-style`,0,``,`column-rule-style row-rule-style`,`rule-visibility-items`,0,``,`column-rule-visibility-items`,`rule-width`,0,``,`column-rule-width row-rule-width`,`rx`,0,`auto`,``,`ry`,0,`auto`,``,`scale`,0,`none`,``,`scroll-axis-lock`,0,`auto`,``,`scroll-behavior`,0,`auto`,``,`scroll-initial-target`,0,`none`,``,`scroll-margin`,0,`0`,`scroll-margin-top scroll-margin-right scroll-margin-bottom scroll-margin-left`,`scroll-margin-block`,0,`0`,`scroll-margin-block-start scroll-margin-block-end`,`scroll-margin-block-end`,0,`0`,``,`scroll-margin-block-start`,0,`0`,``,`scroll-margin-bottom`,0,`0`,``,`scroll-margin-inline`,0,`0`,`scroll-margin-inline-start scroll-margin-inline-end`,`scroll-margin-inline-end`,0,`0`,``,`scroll-margin-inline-start`,0,`0`,``,`scroll-margin-left`,0,`0`,``,`scroll-margin-right`,0,`0`,``,`scroll-margin-top`,0,`0`,``,`scroll-marker-group`,0,`none`,``,`scroll-padding`,0,`auto`,`scroll-padding-top scroll-padding-right scroll-padding-bottom scroll-padding-left`,`scroll-padding-block`,0,`auto`,`scroll-padding-block-start scroll-padding-block-end`,`scroll-padding-block-end`,0,`auto`,``,`scroll-padding-block-start`,0,`auto`,``,`scroll-padding-bottom`,0,`auto`,``,`scroll-padding-inline`,0,`auto`,`scroll-padding-inline-start scroll-padding-inline-end`,`scroll-padding-inline-end`,0,`auto`,``,`scroll-padding-inline-start`,0,`auto`,``,`scroll-padding-left`,0,`auto`,``,`scroll-padding-right`,0,`auto`,``,`scroll-padding-top`,0,`auto`,``,`scroll-snap-align`,0,`none`,``,`scroll-snap-stop`,0,`normal`,``,`scroll-snap-type`,0,`none`,``,`scroll-target-group`,0,`none`,``,`scroll-timeline`,0,``,`scroll-timeline-name scroll-timeline-axis`,`scroll-timeline-axis`,0,`block`,``,`scroll-timeline-name`,0,`none`,``,`scrollbar-color`,1,`auto`,``,`scrollbar-gutter`,0,`auto`,``,`scrollbar-width`,0,`auto`,``,`shape-image-threshold`,0,`0`,``,`shape-inside`,0,`auto`,``,`shape-margin`,0,`0`,``,`shape-outside`,0,`none`,``,`shape-padding`,0,`0`,``,`shape-rendering`,1,`auto`,``,`size`,0,`auto`,`width height`,`slider-orientation`,0,`auto`,``,`spatial-navigation-action`,0,`auto`,``,`spatial-navigation-contain`,0,`auto`,``,`spatial-navigation-function`,0,`normal`,``,`speak`,1,`auto`,``,`speak-as`,1,`normal`,``,`stop-color`,0,``,``,`stop-opacity`,0,``,``,`string-set`,0,`none`,``,`stroke`,1,`none`,``,`stroke-align`,1,`center`,``,`stroke-alignment`,1,`center`,``,`stroke-break`,0,`bounding-box`,``,`stroke-color`,1,`transparent`,``,`stroke-dash-corner`,1,`none`,``,`stroke-dash-justify`,1,`none`,``,`stroke-dashadjust`,1,`none`,``,`stroke-dasharray`,1,`none`,``,`stroke-dashcorner`,1,`none`,``,`stroke-dashoffset`,1,`0`,``,`stroke-image`,1,`none`,``,`stroke-linecap`,1,`butt`,``,`stroke-linejoin`,1,`miter`,``,`stroke-miterlimit`,1,`4`,``,`stroke-opacity`,1,`1`,``,`stroke-origin`,0,`match-parent`,``,`stroke-position`,1,`0% 0%`,``,`stroke-repeat`,1,`repeat`,``,`stroke-size`,1,`auto`,``,`stroke-width`,1,`1px`,``,`tab-size`,1,`8`,``,`table-layout`,0,`auto`,``,`text-align`,1,`start`,`text-align-all text-align-last`,`text-align-all`,1,`start`,``,`text-align-last`,1,`auto`,``,`text-anchor`,1,`start`,``,`text-autospace`,1,`normal`,``,`text-box`,0,`normal`,``,`text-box-edge`,1,`auto`,``,`text-box-trim`,0,`none`,``,`text-combine-upright`,1,`none`,``,`text-decoration`,0,``,`text-decoration-line text-decoration-thickness text-decoration-style text-decoration-color`,`text-decoration-color`,0,`currentcolor`,``,`text-decoration-inset`,0,`0`,``,`text-decoration-line`,0,`none`,``,`text-decoration-skip`,1,``,`text-decoration-skip-self text-decoration-skip-box text-decoration-skip-spaces text-decoration-skip-ink`,`text-decoration-skip-box`,1,`none`,``,`text-decoration-skip-ink`,1,`auto`,``,`text-decoration-skip-self`,0,`auto`,``,`text-decoration-skip-spaces`,1,`start end`,``,`text-decoration-style`,0,`solid`,``,`text-decoration-thickness`,0,`auto`,``,`text-emphasis`,0,``,`text-emphasis-style text-emphasis-color`,`text-emphasis-color`,1,`currentcolor`,``,`text-emphasis-position`,1,`over right`,``,`text-emphasis-skip`,1,`spaces punctuation`,``,`text-emphasis-style`,1,`none`,``,`text-fit`,1,`none`,``,`text-group-align`,0,`none`,``,`text-indent`,1,`0`,``,`text-justify`,1,`auto`,``,`text-orientation`,1,`mixed`,``,`text-overflow`,0,`clip`,``,`text-rendering`,1,`auto`,``,`text-shadow`,1,`none`,``,`text-size-adjust`,1,`auto`,``,`text-spacing`,1,``,`text-spacing-trim text-autospace`,`text-spacing-trim`,1,`normal`,``,`text-transform`,1,`none`,``,`text-underline-offset`,1,`auto`,``,`text-underline-position`,1,`auto`,``,`text-wrap`,0,`wrap`,`text-wrap-mode text-wrap-style`,`text-wrap-mode`,1,`wrap`,``,`text-wrap-style`,1,`auto`,``,`timeline-scope`,0,`none`,``,`timeline-trigger`,0,``,`timeline-trigger-name timeline-trigger-source timeline-trigger-activation-range timeline-trigger-active-range`,`timeline-trigger-activation-range`,0,``,`timeline-trigger-activation-range-start timeline-trigger-activation-range-end`,`timeline-trigger-activation-range-end`,0,`normal`,``,`timeline-trigger-activation-range-start`,0,`normal`,``,`timeline-trigger-active-range`,0,``,`timeline-trigger-active-range-start timeline-trigger-active-range-end`,`timeline-trigger-active-range-end`,0,`auto`,``,`timeline-trigger-active-range-start`,0,`auto`,``,`timeline-trigger-name`,0,`none`,``,`timeline-trigger-source`,0,`auto`,``,`top`,0,`auto`,``,`touch-action`,0,`auto`,``,`transform`,0,`none`,``,`transform-box`,0,`view-box`,``,`transform-origin`,0,`50% 50%`,``,`transform-style`,0,`flat`,``,`transition`,0,``,`transition-property transition-duration transition-timing-function transition-delay transition-behavior`,`transition-behavior`,0,`normal`,``,`transition-delay`,0,`0s`,``,`transition-duration`,0,`0s`,``,`transition-property`,0,`all`,``,`transition-timing-function`,0,`ease`,``,`translate`,0,`none`,``,`trigger-scope`,0,`none`,``,`unicode-bidi`,0,`normal`,``,`user-select`,0,`auto`,``,`vector-effect`,0,`none`,``,`vertical-align`,0,`baseline`,`alignment-baseline baseline-shift baseline-source`,`view-timeline`,0,``,`view-timeline-name view-timeline-axis`,`view-timeline-axis`,0,`block`,``,`view-timeline-inset`,0,`auto`,``,`view-timeline-name`,0,`none`,``,`view-transition-class`,0,`none`,``,`view-transition-group`,0,`normal`,``,`view-transition-name`,0,`none`,``,`view-transition-scope`,0,`none`,``,`visibility`,1,`visible`,``,`voice-balance`,1,`center`,``,`voice-duration`,0,`auto`,``,`voice-family`,1,`implementation-dependent`,``,`voice-pitch`,1,`medium`,``,`voice-range`,1,`medium`,``,`voice-rate`,1,`normal`,``,`voice-stress`,1,`normal`,``,`voice-volume`,1,`medium`,``,`white-space`,0,`normal`,`white-space-collapse text-wrap-mode`,`white-space-collapse`,1,`collapse`,``,`white-space-trim`,0,`none`,``,`widows`,1,`2`,``,`width`,0,`auto`,``,`will-change`,0,`auto`,``,`window-drag`,1,`none`,``,`word-break`,1,`normal`,``,`word-space-transform`,1,`none`,``,`word-spacing`,1,`normal`,``,`word-wrap`,0,``,``,`wrap-after`,0,`auto`,``,`wrap-before`,0,`auto`,``,`wrap-flow`,0,`auto`,``,`wrap-inside`,0,`auto`,``,`wrap-through`,0,`wrap`,``,`writing-mode`,1,`horizontal-tb`,``,`x`,0,`0`,``,`y`,0,`0`,``,`z-index`,0,`auto`,``,`zoom`,0,`1`,``];var PropInfo=class{name;inherited;initial;specLonghands;constructor(e,t,n,r){this.name=e,this.inherited=t,this.initial=n,this.specLonghands=r}};const Es={color:`rgb(0, 0, 0)`,"background-color":`rgba(0, 0, 0, 0)`,"border-top-color":`currentcolor`,"border-right-color":`currentcolor`,"border-bottom-color":`currentcolor`,"border-left-color":`currentcolor`,"outline-color":`currentcolor`,"border-block-start-color":`currentcolor`,"border-block-end-color":`currentcolor`,"border-inline-start-color":`currentcolor`,"border-inline-end-color":`currentcolor`,"text-decoration-color":`currentcolor`,"column-rule-color":`currentcolor`,"caret-color":`currentcolor`,"text-emphasis-color":`currentcolor`,"-webkit-text-fill-color":`currentcolor`,"-webkit-text-stroke-color":`currentcolor`,"margin-top":`0px`,"margin-right":`0px`,"margin-bottom":`0px`,"margin-left":`0px`,"padding-top":`0px`,"padding-right":`0px`,"padding-bottom":`0px`,"padding-left":`0px`,"border-top-width":`medium`,"border-right-width":`medium`,"border-bottom-width":`medium`,"border-left-width":`medium`,"outline-width":`medium`,"column-rule-width":`medium`,"border-top-left-radius":`0px`,"border-top-right-radius":`0px`,"border-bottom-right-radius":`0px`,"border-bottom-left-radius":`0px`,"font-size":`16px`,"font-weight":`400`,"font-family":`"Times New Roman"`,"font-style":`normal`,"font-variant":`normal`,"line-height":`normal`,"letter-spacing":`normal`,"word-spacing":`0px`,"text-indent":`0px`,"outline-offset":`0px`,"min-width":`auto`,"min-height":`auto`,"max-width":`none`,"max-height":`none`,"flex-basis":`auto`,"flex-grow":`0`,"flex-shrink":`1`,order:`0`,"background-image":`none`,"background-position-x":`0%`,"background-position-y":`0%`,"background-position":`0% 0%`,"background-size":`auto`,"background-repeat":`repeat`,"background-origin":`padding-box`,"background-clip":`border-box`,"background-attachment":`scroll`,"border-image":`none`,"border-spacing":`0px 0px`,"transition-duration":`0s`,"transition-delay":`0s`,"animation-duration":`0s`,"animation-delay":`0s`,"text-align":`start`,opacity:`1`,"z-index":`auto`,"row-gap":`normal`,"column-gap":`normal`,"user-select":`auto`,"-webkit-user-select":`auto`,content:`normal`,quotes:`auto`,"list-style-type":`disc`,"vertical-align":`baseline`,"white-space":`normal`,"text-transform":`none`};let Ds=null,Os=null;function buildTable(){Ds=/* @__PURE__ */ new Map,Os=[];for(let e=0;e<Ts.length;e+=4){let t=Ts[e],n=Ts[e+1]===1,r=Es[t]??Ts[e+2],i=Ts[e+3];Ds.set(t,new PropInfo(t,n,r,i===``?null:i.split(` `))),Os.push(t)}for(let e of Os){if(!e.startsWith(`-webkit-`))continue;let t=Ds.get(e),n=Ds.get(e.slice(8));n!==void 0&&t.initial===``&&t.specLonghands===null&&(t.inherited=n.inherited,t.initial=n.initial)}}function propertyInfo(e){return Ds===null&&buildTable(),Ds.get(e)}function isSupportedProperty(e){return Ds===null&&buildTable(),Ds.has(e)}function isCustomPropertyName(e){return e.length>2&&e.charCodeAt(0)===45&&e.charCodeAt(1)===45}function allPropertyNames(){return Os===null&&buildTable(),Os}let ks=null;function computedPropertyNames(){if(ks!==null)return ks;ks=[],Ds===null&&buildTable();for(let e of Os){let t=Ds.get(e);e.charCodeAt(0)!==45&&t.specLonghands===null&&ks.push(e)}return ks}function cssPropertyToIDLAttribute(e,t){t&&e.charCodeAt(0)===45&&(e=e.slice(1));let n=``,r=!1;for(let t=0;t<e.length;t++){let i=e[t];i===`-`?r=!0:r?(r=!1,n+=i.toUpperCase()):n+=i}return n}const As={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},js={accentcolor:30207,accentcolortext:16777215,activetext:16711680,buttonborder:7763574,buttonface:15724527,buttontext:0,canvas:16777215,canvastext:0,field:16777215,fieldtext:0,graytext:8421504,highlight:11916799,highlighttext:0,linktext:238,mark:16776960,marktext:0,selecteditem:30207,selecteditemtext:16777215,visitedtext:5577355},Ms=/* @__PURE__ */ new Set([`lab`,`lch`,`oklab`,`oklch`,`color`,`color-mix`,`light-dark`,`device-cmyk`,`contrast-color`]);function isNamedColor(e){return As[e]!==void 0||js[e]!==void 0||e===`transparent`||e===`currentcolor`}var RGBA=class{r;g;b;a;constructor(e,t,n,r){this.r=e,this.g=t,this.b=n,this.a=r}};function clamp$1(e,t,n){return e<t?t:e>n?n:e}__name(clamp$1,`clamp`);function formatAlpha(e){let t=Math.round(clamp$1(e,0,1)*255),n=Math.round(t/255*100)/100;return Math.round(n*255)!==t&&(n=Math.round(t/255*1e3)/1e3),String(n)}function serializeRGBA(e){let t=Math.round(clamp$1(e.r,0,255)),n=Math.round(clamp$1(e.g,0,255)),r=Math.round(clamp$1(e.b,0,255)),i=clamp$1(e.a,0,1);return i>=1?`rgb(${t}, ${n}, ${r})`:`rgba(${t}, ${n}, ${r}, ${formatAlpha(i)})`}function fromPacked(e,t){return new RGBA(e>>16&255,e>>8&255,e&255,t)}function hexDigit(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e>=65&&e<=70?e-55:-1}function parseHex(e){let t=e.length;if(t!==3&&t!==4&&t!==6&&t!==8)return null;let n=[];for(let r=0;r<t;r++){let t=hexDigit(e.charCodeAt(r));if(t===-1)return null;n.push(t)}return t<=4?new RGBA(n[0]*17,n[1]*17,n[2]*17,t===4?n[3]*17/255:1):new RGBA(n[0]*16+n[1],n[2]*16+n[3],n[4]*16+n[5],t===8?(n[6]*16+n[7])/255:1)}function splitArgs(e){let t=e.trim();if(t.indexOf(`,`)!==-1){let e=t.split(`,`).map(e=>e.trim());for(let t of e)if(t===``||/\s/.test(t))return null;return e}let n=t.indexOf(`/`),r=(n===-1?t:t.slice(0,n)).trim().split(/\s+/);if(n!==-1){let e=t.slice(n+1).trim();if(e===``||/\s/.test(e))return null;r.push(e)}return r}const Ns=/^([+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?)(%|deg|grad|rad|turn)?$/i;function parseChannel(e,t){if(e.toLowerCase()===`none`)return 0;let n=Ns.exec(e);if(n===null)return null;let r=Number(n[1]);return n[2]===void 0?r:n[2]===`%`?r/100*t:null}function parseAlpha(e){if(e===void 0)return 1;let t=parseChannel(e,1);return t===null?null:clamp$1(t,0,1)}function parseHue(e){if(e.toLowerCase()===`none`)return 0;let t=Ns.exec(e);if(t===null)return null;let n=Number(t[1]),r=t[2]?.toLowerCase();return r===void 0||r===`deg`?n:r===`grad`?n*360/400:r===`rad`?n*180/Math.PI:r===`turn`?n*360:null}function hslToRgb(e,t,n){e=(e%360+360)%360,t=clamp$1(t,0,1),n=clamp$1(n,0,1);let f=r=>{let i=(r+e/30)%12,a=t*Math.min(n,1-n);return n-a*Math.max(-1,Math.min(i-3,9-i,1))};return[f(0)*255,f(8)*255,f(4)*255]}function hwbToRgb(e,t,n){if(t+n>=1){let e=t/(t+n)*255;return[e,e,e]}let r=hslToRgb(e,1,.5);for(let e=0;e<3;e++)r[e]=r[e]/255*(1-t-n)*255+t*255;return r}function parseColorFunction(e,t){let n=splitArgs(t);if(n===null||n.length!==3&&n.length!==4)return null;if(e===`rgb`||e===`rgba`){let e=parseChannel(n[0],255),t=parseChannel(n[1],255),r=parseChannel(n[2],255),i=parseAlpha(n[3]);return e===null||t===null||r===null||i===null?null:new RGBA(e,t,r,i)}if(e===`hsl`||e===`hsla`||e===`hwb`){let t=parseHue(n[0]),r=parseChannel(n[1],1),i=parseChannel(n[2],1),a=parseAlpha(n[3]);if(t===null||r===null||i===null||a===null)return null;let o=n[1].endsWith(`%`)?r:r/100,s=n[2].endsWith(`%`)?i:i/100,[c,l,u]=e===`hwb`?hwbToRgb(t,o,s):hslToRgb(t,o,s);return new RGBA(c,l,u,a)}return null}function normalizeColor(e){let t=e.trim();if(t===``)return null;if(t.charCodeAt(0)===35){let e=parseHex(t.slice(1));return e===null?null:serializeRGBA(e)}let n=t.indexOf(`(`);if(n===-1){let e=t.toLowerCase();return isNamedColor(e)?e:null}if(!t.endsWith(`)`))return null;let r=t.slice(0,n).toLowerCase(),i=t.slice(n+1,-1);if(Is.test(i)&&(Ps.has(r)||Fs.has(r)))return normalizeRelativeColor(r,i);if(Ms.has(r))return normalizeOtherColorFunction(r,i,t);let a=parseColorFunction(r,i);return a===null?null:serializeRGBA(a)}const Ps=/* @__PURE__ */ new Set([`rgb`,`rgba`,`hsl`,`hsla`,`hwb`]),Fs=/* @__PURE__ */ new Set([`lab`,`lch`,`oklab`,`oklch`]),Is=/^\s*from\s/i,Ls=/^(calc|min|max|clamp|round|mod|rem|abs|sign|sin|cos|tan|asin|acos|atan|atan2|pow|sqrt|hypot|log|exp)\(/i,Rs={lab:[100,125,125],lch:[100,150,0],oklab:[1,.4,.4],oklch:[1,.4,0]},zs=/* @__PURE__ */ new Set([`srgb`,`srgb-linear`,`display-p3`,`display-p3-linear`,`a98-rgb`,`prophoto-rgb`,`rec2020`,`xyz`,`xyz-d50`,`xyz-d65`]),Bs=/* @__PURE__ */ new Set([`hsl`,`hwb`,`lch`,`oklch`]),Vs=/* @__PURE__ */ new Set([`srgb`,`srgb-linear`,`display-p3`,`display-p3-linear`,`a98-rgb`,`prophoto-rgb`,`rec2020`,`lab`,`oklab`,`xyz`,`xyz-d50`,`xyz-d65`]),Hs=/* @__PURE__ */ new Set([`shorter`,`longer`,`increasing`,`decreasing`]);function roundSig(e,t){return e===0?`0`:formatNumber(Number(e.toPrecision(t)))}function alphaText(e){if(e.type===1)return e.lower===`none`?`none`:null;let t;if(e.type===10)t=e.num;else if(e.type===11)t=e.num/100;else return null;return t=clamp$1(t,0,1),t===1?``:formatNumber(Math.round(t*1e3)/1e3)}function channelsAndAlpha(e){let t=[],n=null,r=!1;for(let i=0;i<e.length;i++){let a=e[i];if(a.type!==100){if(a.type===18)return null;if(a.type===9){if(a.value!==`/`||r)return null;r=!0}else if(r){if(n!==null)return null;n=a}else t.push(a)}}return r&&n===null?null:[t,n]}function withAlpha(e,t){if(t===null)return e+`)`;let n=alphaText(t);return n===null?null:n===``?e+`)`:e+` / `+n+`)`}function normalizeCanonical(e,t){let n=channelsAndAlpha(t);if(n===null||n[0].length!==3)return null;let[r,i]=n,a=Rs[e],o=e===`lch`||e===`oklch`,s=e===`lab`||e===`lch`?100:1,c=e+`(`;for(let e=0;e<3;e++){let t=r[e],n;if(t.type===1&&t.lower===`none`)n=`none`;else if(o&&e===2){let e;if(t.type===10)e=t.num;else if(t.type===12){let n=parseHue(t.text);if(n===null)return null;e=n}else return null;n=roundSig((e%360+360)%360,6)}else{let r;if(t.type===10)r=t.num;else if(t.type===11)r=t.num/100*a[e];else return null;e===0?r=clamp$1(r,0,s):o&&e===1&&r<0&&(r=0),n=roundSig(r,6)}c+=(e===0?``:` `)+n}return withAlpha(c,i)}function normalizeColorFn(e){let t=0;for(;t<e.length&&e[t].type===100;)t++;let n=e[t];if(n===void 0||n.type!==1||!zs.has(n.lower))return null;let r=channelsAndAlpha(e.slice(t+1));if(r===null||r[0].length!==3)return null;let[i,a]=r,o=`color(`+(n.lower===`xyz`?`xyz-d65`:n.lower);for(let e of i)if(e.type===1&&e.lower===`none`)o+=` none`;else if(e.type===10)o+=` `+roundSig(e.num,5);else if(e.type===11)o+=` `+roundSig(e.num/100,5);else return null;return withAlpha(o,a)}function commaArgs(e){let t=[[]];for(let n of e)n.type===18?t.push([]):n.type!==100&&t[t.length-1].push(n);return t}function colorComponent(e){return e.type===4||e.type===1||e.type===2?normalizeColor(e.text):null}function normalizeColorMix(e){let t=commaArgs(e);if(t.length!==3)return null;let n=t[0];if(n.length<2||n[0].type!==1||n[0].lower!==`in`||n[1].type!==1)return null;let r=n[1].lower,i=`in `+r;if(Bs.has(r)){if(n.length===4){if(n[2].type!==1||!Hs.has(n[2].lower)||n[3].type!==1||n[3].lower!==`hue`)return null;i+=` `+n[2].lower+` hue`}else if(n.length!==2)return null}else if(!Vs.has(r)||n.length!==2)return null;let a=[],o=[];for(let e=1;e<=2;e++){let n=t[e];if(n.length<1||n.length>2)return null;let r=null,i=null;for(let e of n)if(e.type===11&&i===null){if(e.num<0||e.num>100)return null;i=e.num}else if(r!==null||(r=colorComponent(e),r===null))return null;if(r===null)return null;a.push(r),o.push(i)}let[s,c]=o;if(s===0&&c===0)return null;let l=a[0],u=a[1];if(s!==null&&c!==null)l+=` `+formatNumber(s)+`%`,u+=` `+formatNumber(c)+`%`;else if(s!==null||c!==null){let e=s===null?100-c:s;e!==50&&(l+=` `+formatNumber(e)+`%`)}return`color-mix(`+i+`, `+l+`, `+u+`)`}function normalizeLightDark(e){let t=commaArgs(e);if(t.length!==2||t[0].length!==1||t[1].length!==1)return null;let n=colorComponent(t[0][0]),r=colorComponent(t[1][0]);return n===null||r===null?null:`light-dark(`+n+`, `+r+`)`}function normalizeRelativeColor(e,t){let n=splitComponents(t);if(n===null)return null;let r=(e===`rgba`?`rgb`:e===`hsla`?`hsl`:e)+`(from`,i=!1;for(let e=0;e<n.length;e++){let t=n[e];if(t.type!==100&&!(e===0||t.type===1&&t.lower===`from`&&!i&&r.endsWith(`(from`))){if(i)r+=` `+(t.type===1?t.lower:t.text);else{let e=colorComponent(t);if(e===null)return null;r+=` `+e,i=!0}}}return i?r+`)`:null}function normalizeOtherColorFunction(e,t,n){let r=splitComponents(t);if(r===null)return null;for(let t of r)if(t.type===2&&Ls.test(t.text))return e+n.slice(e.length);switch(e){case`lab`:case`lch`:case`oklab`:case`oklch`:return normalizeCanonical(e,r);case`color`:return normalizeColorFn(r);case`color-mix`:return normalizeColorMix(r);case`light-dark`:return normalizeLightDark(r);default:return e+n.slice(e.length)}}function computeColor(e,t){let n=e.trim(),r=n.toLowerCase();if(r===`currentcolor`)return t;if(r===`transparent`)return`rgba(0, 0, 0, 0)`;let i=As[r]??js[r];if(i!==void 0)return serializeRGBA(fromPacked(i,1));if(n.charCodeAt(0)===35){let e=parseHex(n.slice(1));return e===null?n:serializeRGBA(e)}let a=n.indexOf(`(`);if(a!==-1&&n.endsWith(`)`)){let e=parseColorFunction(n.slice(0,a).toLowerCase(),n.slice(a+1,-1));if(e!==null)return serializeRGBA(e)}return n}var Comp=class{type;text;lower;num;isInteger;value;constructor(e,t,n,r,i,a){this.type=e,this.text=t,this.lower=n,this.num=r,this.isInteger=i,this.value=a}};function splitComponents(e){let t=new CSSTokenizer(e),n=[],r=[];for(;;){let i=t.next();if(i===0)break;switch(i){case 13:n.length!==0&&n[n.length-1].type!==100&&n.push(new Comp(100,` `,``,0,!0,``));continue;case 6:case 8:case 17:case 22:case 20:case 24:case 23:return null;case 9:if(t.value===`!`)return null;n.push(new Comp(9,t.value,t.value,0,!0,t.value));continue;case 2:case 21:case 19:{let a=t.start,o=i===2?t.value.toLowerCase():``;for(r.length=0,r.push(i===19?20:22);r.length>0;){let e=t.next();if(e===0)break;if(e===6||e===8)return null;if(e===r[r.length-1])r.pop();else if(e===2||e===21)r.push(22);else if(e===19)r.push(20);else if(e===23)r.push(24);else if(e===22||e===20||e===24)return null}let s=e.slice(a,t.end);for(let e=r.length-1;e>=0;e--)s+=r[e]===22?`)`:r[e]===20?`]`:`}`;n.push(new Comp(i,s,o,0,!0,``));continue}default:n.push(new Comp(i,e.slice(t.start,t.end),i===1?t.value.toLowerCase():i===12?t.unit.toLowerCase():``,t.num,t.isInteger,t.value))}}return n.length!==0&&n[n.length-1].type===100&&n.pop(),n}function significant(e){let t=[];for(let n=0;n<e.length;n++)e[n].type!==100&&t.push(e[n]);return t}function formatNumber(e){if(Object.is(e,-0))return`0`;let t=String(e);return t.indexOf(`e`)===-1?t:Math.abs(e)<1e-6?`0`:e.toFixed(0)}const Us=/* @__PURE__ */ new Set(/* @__PURE__ */ `px.em.rem.ex.rex.ch.rch.cap.rcap.ic.ric.lh.rlh.vw.vh.vi.vb.vmin.vmax.svw.svh.svi.svb.svmin.svmax.lvw.lvh.lvi.lvb.lvmin.lvmax.dvw.dvh.dvi.dvb.dvmin.dvmax.cqw.cqh.cqi.cqb.cqmin.cqmax.cm.mm.q.in.pt.pc`.split(`.`)),Ws=/* @__PURE__ */ new Set([`s`,`ms`]),Gs=/* @__PURE__ */ new Set([`deg`,`grad`,`rad`,`turn`]),Ks=/* @__PURE__ */ new Set(/* @__PURE__ */ `calc.min.max.clamp.round.mod.rem.sin.cos.tan.asin.acos.atan.atan2.pow.sqrt.hypot.log.exp.abs.sign.env.-webkit-calc.-moz-calc.calc-size.anchor.anchor-size`.split(`.`)),qs=1024;var Grammar=class{types;keywords;fns;max;constructor(e,t,n,r){this.types=e,this.keywords=t,this.fns=n,this.max=r}};const Js=new Grammar(2048,/* @__PURE__ */ new Set,/* @__PURE__ */ new Set,1);function grammar(e){let t=0,n=/* @__PURE__ */ new Set,r=/* @__PURE__ */ new Set,i=1;for(let a of e.split(` `)){if(a===``)continue;let e=a.endsWith(`+`)?a.slice(0,-1):a;switch(a.endsWith(`+`)&&e.length===1&&(t|=qs),e){case`L`:t|=1;continue;case`P`:t|=2;continue;case`N`:t|=4;continue;case`I`:t|=8;continue;case`C`:t|=16;continue;case`T`:t|=32;continue;case`A`:t|=64;continue;case`S`:t|=128;continue;case`U`:t|=256;continue}a===`#`?t|=4096:a.startsWith(`*`)?i=Number(a.slice(1)):a.endsWith(`()`)?r.add(a.slice(0,-2)):n.add(a)}return new Grammar(t,n,r,i)}const Ys=`L+ P+ auto min-content max-content fit-content stretch -webkit-fill-available -moz-available -webkit-min-content -webkit-max-content -webkit-fit-content fit-content()`,Xs=`L+ P+ none min-content max-content fit-content stretch -webkit-fill-available -moz-available fit-content()`,Zs=`L P auto`,Qs=`L P auto`,$s=`L+ P+`,ec=`none hidden dotted dashed solid double groove ridge inset outset`,tc=`L+ thin medium thick`,nc=`L+ P+ *2`,rc=`visible hidden clip scroll auto overlay -webkit-paged-x -webkit-paged-y`,ic={width:Ys,height:Ys,"min-width":Ys,"min-height":Ys,"inline-size":Ys,"block-size":Ys,"min-inline-size":Ys,"min-block-size":Ys,"max-width":Xs,"max-height":Xs,"max-inline-size":Xs,"max-block-size":Xs,top:Zs,right:Zs,bottom:Zs,left:Zs,"inset-block-start":Zs,"inset-block-end":Zs,"inset-inline-start":Zs,"inset-inline-end":Zs,"margin-top":Qs,"margin-right":Qs,"margin-bottom":Qs,"margin-left":Qs,"margin-block-start":Qs,"margin-block-end":Qs,"margin-inline-start":Qs,"margin-inline-end":Qs,"padding-top":$s,"padding-right":$s,"padding-bottom":$s,"padding-left":$s,"padding-block-start":$s,"padding-block-end":$s,"padding-inline-start":$s,"padding-inline-end":$s,"border-top-width":tc,"border-right-width":tc,"border-bottom-width":tc,"border-left-width":tc,"outline-width":tc,"column-rule-width":tc,"border-top-style":ec,"border-right-style":ec,"border-bottom-style":ec,"border-left-style":ec,"outline-style":ec+` auto`,"column-rule-style":ec,"border-block-start-color":`C`,"border-block-end-color":`C`,"border-inline-start-color":`C`,"border-inline-end-color":`C`,"border-top-color":`C`,"border-right-color":`C`,"border-bottom-color":`C`,"border-left-color":`C`,color:`C`,"background-color":`C`,"outline-color":`C invert`,"caret-color":`C auto`,"text-decoration-color":`C`,"column-rule-color":`C`,"accent-color":`C auto`,"flood-color":`C`,"lighting-color":`C`,"stop-color":`C`,"text-emphasis-color":`C`,"-webkit-text-fill-color":`C`,"-webkit-text-stroke-color":`C`,"border-top-left-radius":nc,"border-top-right-radius":nc,"border-bottom-right-radius":nc,"border-bottom-left-radius":nc,opacity:`N P`,"fill-opacity":`N P`,"stroke-opacity":`N P`,"flood-opacity":`N P`,"stop-opacity":`N P`,"z-index":`I auto`,order:`I`,"flex-grow":`N+`,"flex-shrink":`N+`,"flex-basis":`L+ P+ auto content min-content max-content fit-content`,"line-height":`N+ L+ P+ normal`,"font-size":`L+ P+ xx-small x-small small medium large x-large xx-large xxx-large larger smaller math`,"font-weight":`N+ normal bold bolder lighter`,"font-style":`normal italic oblique`,"font-variant":`normal none small-caps all-small-caps petite-caps all-petite-caps unicase titling-caps`,"font-stretch":`P+ normal ultra-condensed extra-condensed condensed semi-condensed semi-expanded expanded extra-expanded ultra-expanded`,visibility:`visible hidden collapse`,"pointer-events":`auto none visiblepainted visiblefill visiblestroke visible painted fill stroke all bounding-box`,position:`static relative absolute fixed sticky -webkit-sticky`,float:`left right none inline-start inline-end`,clear:`none left right both inline-start inline-end`,"box-sizing":`content-box border-box`,"overflow-x":rc,"overflow-y":rc,"overflow-block":rc,"overflow-inline":rc,"text-align":`start end left right center justify match-parent justify-all -webkit-left -webkit-right -webkit-center -moz-left -moz-right -moz-center`,"white-space":`normal pre nowrap pre-wrap break-spaces pre-line`,"user-select":`auto text none contain all`,"-webkit-user-select":`auto text none contain all`,"background-image":`U none # linear-gradient() radial-gradient() conic-gradient() repeating-linear-gradient() repeating-radial-gradient() repeating-conic-gradient() image-set() -webkit-image-set() url() image() cross-fade() element() paint() -webkit-linear-gradient() -webkit-radial-gradient() -webkit-gradient()`,"background-attachment":`# scroll fixed local`,"background-origin":`# border-box padding-box content-box`,"background-clip":`# border-box padding-box content-box text border-area`,"background-repeat":`# repeat-x repeat-y repeat space round no-repeat *2`,"background-size":`# L+ P+ auto cover contain *2`,"list-style-type":`*1`,"text-transform":`none capitalize uppercase lowercase full-width full-size-kana math-auto`,"word-break":`normal keep-all break-all break-word auto-phrase`,"text-overflow":`clip ellipsis`,"vertical-align":`L P baseline sub super text-top text-bottom middle top bottom`,"table-layout":`auto fixed`,"border-collapse":`collapse separate`,"empty-cells":`show hide`,"caption-side":`top bottom`,"list-style-position":`inside outside`,resize:`none both horizontal vertical block inline`,"object-fit":`fill contain cover none scale-down`,isolation:`auto isolate`,"mix-blend-mode":`normal multiply screen overlay darken lighten color-dodge color-burn hard-light soft-light difference exclusion hue saturation color luminosity plus-darker plus-lighter`,"backface-visibility":`visible hidden`,"flex-direction":`row row-reverse column column-reverse`,"flex-wrap":`nowrap wrap wrap-reverse`,"animation-duration":`# T+ auto`,"transition-duration":`# T+`,"animation-delay":`# T`,"transition-delay":`# T`,"animation-iteration-count":`# N+ infinite`,"animation-direction":`# normal reverse alternate alternate-reverse`,"animation-fill-mode":`# none forwards backwards both`,"animation-play-state":`# running paused`,"tab-size":`N+ L+`,"row-gap":`L+ P+ normal`,"column-gap":`L+ P+ normal`,"outline-offset":`L`,"letter-spacing":`L P normal`,"word-spacing":`L P normal`,"text-indent":`L P`,"aspect-ratio":`*1`,inset:`L P auto *4`,cursor:`# U N *3 auto default none context-menu help pointer progress wait cell crosshair text vertical-text alias copy move no-drop not-allowed grab grabbing e-resize n-resize ne-resize nw-resize s-resize se-resize sw-resize w-resize ew-resize ns-resize nesw-resize nwse-resize col-resize row-resize all-scroll zoom-in zoom-out -webkit-grab -webkit-grabbing -webkit-zoom-in -webkit-zoom-out hand`,"unicode-bidi":`normal embed isolate bidi-override isolate-override plaintext`,direction:`ltr rtl`,"writing-mode":`horizontal-tb vertical-rl vertical-lr sideways-rl sideways-lr`,"content-visibility":`visible auto hidden`,"scroll-behavior":`auto smooth`,"touch-action":`*1`,"will-change":`*1`,appearance:`none auto menulist-button textfield base-select button checkbox listbox menulist meter progress-bar push-button radio searchfield slider-horizontal square-button textarea`,"-webkit-appearance":`*1`},ac=/* @__PURE__ */ new Map;function grammarFor(e){let t=ac.get(e);if(t!==void 0)return t;let n=ic[e];return t=n===void 0||n===`*1`?Js:grammar(n),ac.set(e,t),t}function isCSSWideKeyword(e){return e===`inherit`||e===`initial`||e===`unset`||e===`revert`||e===`revert-layer`}function normalizeComponent(e,t){let n=t.types,r=!!(n&qs);switch(e.type){case 1:return t.keywords.has(e.lower)?e.lower:n&16?normalizeColor(e.text):null;case 10:return n&8&&e.isInteger&&(!r||e.num>=0)||n&4&&(!r||e.num>=0)?formatNumber(e.num):e.num===0&&n&1?`0px`:null;case 11:return n&2&&(!r||e.num>=0)?formatNumber(e.num)+`%`:null;case 12:return r&&e.num<0?null:n&1&&Us.has(e.lower)||n&32&&Ws.has(e.lower)||n&64&&Gs.has(e.lower)?formatNumber(e.num)+e.lower:null;case 4:return n&16?normalizeColor(e.text):null;case 5:return n&128?serializeString$1(e.value):null;case 7:return n&256?serializeUrl(e.value):null;case 2:{let r=e.lower;if(r===`url`&&n&256){let t=splitComponents(e.text.slice(4,-1));return t!==null&&t.length===1&&t[0].type===5?serializeUrl(t[0].value):e.text}if(n&111&&Ks.has(r))return e.text;if(n&16){let t=normalizeColor(e.text);if(t!==null)return t}return t.fns.has(r)?oc.has(r)?normalizeGradient(e):e.text:null}}return null}const oc=/* @__PURE__ */ new Set([`linear-gradient`,`radial-gradient`,`conic-gradient`,`repeating-linear-gradient`,`repeating-radial-gradient`,`repeating-conic-gradient`]);function normalizeGradient(e){let t=e.text.indexOf(`(`),n=splitComponents(e.text.slice(t+1,-1));if(n===null)return null;let r=e.lower,i=r.endsWith(`linear-gradient`),a=r.endsWith(`radial-gradient`),o=r.endsWith(`conic-gradient`),s=[],c=0,l=[],u=!1;for(let e=0;e<=n.length;e++){let t=e<n.length?n[e]:null;if(t===null||t.type===18){if(l.length===0)return null;if(u&&c++,s.length===0&&!u){let e=l.join(` `);i&&e===`to bottom`?l=[]:(a||o)&&(l.length>=2&&l[l.length-2]===`at`&&l[l.length-1]===`center`&&(l.length-=2),a&&(l=l.filter(e=>e!==`ellipse`&&e!==`farthest-corner`))),l.length!==0&&s.push(l.join(` `))}else s.push(l.join(` `));l=[],u=!1;continue}if(t.type===100)continue;let r=null;(t.type===4||t.type===1||t.type===2)&&(r=normalizeColor(t.text),r!==null&&(u=!0)),r===null&&(r=t.type===1?t.lower:t.type===12?t.text.toLowerCase():t.type===2?t.lower+t.text.slice(t.lower.length):t.text),l.push(r)}return c<2?null:r+`(`+s.join(`, `)+`)`}function normalizePaint(e){let t=significant(e);if(t.length!==1)return verbatimComps(e);let n=t[0];switch(n.type){case 1:return n.lower===`none`||n.lower===`context-fill`||n.lower===`context-stroke`?n.lower:normalizeColor(n.text);case 7:return serializeUrl(n.value);case 4:return normalizeColor(n.text);case 2:return n.lower===`url`?normalizeComponent(n,uc):normalizeColor(n.text)??n.text}return verbatimComps(e)}function normalizeImageLoose(e){let t=significant(e);if(t.length===1){let e=t[0];if(e.type===7)return serializeUrl(e.value);if(e.type===1)return e.lower===`none`?`none`:e.text;if(e.type===2&&oc.has(e.lower))return normalizeGradient(e)??e.text}return verbatimComps(e)}function verbatimComps(e){let t=``;for(let n of e)t+=n.text;return t}function serializeString$1(e){let t=`"`;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t+=r===0?`�`:r>=1&&r<=31||r===127?`\\`+r.toString(16)+` `:r===34||r===92?`\\`+e[n]:e[n]}return t+`"`}__name(serializeString$1,`serializeString`);function serializeUrl(e){return`url(`+serializeString$1(e)+`)`}function containsVar(e){return e.indexOf(`(`)===-1?!1:/var\(/i.test(e)||/env\(/i.test(e)||/attr\(/i.test(e)}function verbatim(e){return e.trim()}const sc=/* @__PURE__ */ new Set([`block`,`inline`,`run-in`]),cc=/* @__PURE__ */ new Set([`flow`,`flow-root`,`table`,`flex`,`grid`,`ruby`,`math`]),lc=/* @__PURE__ */ new Set(/* @__PURE__ */ `none.contents.block.inline.inline-block.flex.inline-flex.grid.inline-grid.flow-root.list-item.table.inline-table.table-row.table-cell.table-column.table-column-group.table-header-group.table-footer-group.table-row-group.table-caption.run-in.ruby.ruby-text.ruby-base.ruby-base-container.ruby-text-container.flow.math.-webkit-box.-webkit-inline-box.-moz-box.-moz-inline-box.inline-list-item.-webkit-flex.-webkit-inline-flex.-ms-flexbox.-ms-inline-flexbox.-ms-grid.-ms-inline-grid`.split(`.`));function normalizeDisplay(e){let t=[];for(let n of e)if(n.type!==100){if(n.type!==1)return null;t.push(n.lower)}if(t.length===1)return lc.has(t[0])?t[0]:null;if(t.length>3)return null;let n=``,r=``,i=!1;for(let e of t)if(sc.has(e)&&n===``)n=e;else if(cc.has(e)&&r===``)r=e;else if(e===`list-item`&&!i)i=!0;else return null;return i&&r!==``&&r!==`flow`&&r!==`flow-root`?null:(n===``&&(n=`block`),r===``&&(r=`flow`),i?(n===`block`?``:n+` `)+(r===`flow-root`?`flow-root `:``)+`list-item`:n===`block`?r===`flow`?`block`:r:n===`inline`?r===`flow`?`inline`:r===`flow-root`?`inline-block`:r===`table`||r===`flex`||r===`grid`?`inline-`+r:`inline `+r:n+(r===`flow`?``:` `+r))}function normalizeContent(e){let t=``;for(let n of e)if(n.type===100)t+=` `;else{if(n.type===18)return null;n.type===5?t+=serializeString$1(n.value):n.type===7?t+=serializeUrl(n.value):n.type===1?t+=isCSSWideKeyword(n.lower)||n.lower===`none`||n.lower===`normal`||n.lower.endsWith(`-quote`)?n.lower:n.text:t+=n.text}return t===``?null:t}const uc=new Grammar(256,/* @__PURE__ */ new Set,/* @__PURE__ */ new Set,1),dc={display:normalizeDisplay,content:normalizeContent,fill:normalizePaint,stroke:normalizePaint,"list-style-image":normalizeImageLoose,"border-image-source":normalizeImageLoose,"mask-image":normalizeImageLoose,"-webkit-mask-image":normalizeImageLoose},fc=/* @__PURE__ */ new Map;function normalizeLonghand(e,t){let n=fc.get(e);if(n===void 0)fc.set(e,n=/* @__PURE__ */ new Map);else{let e=n.get(t);if(e!==void 0)return e}let r=normalizeLonghandValue(e,t);return n.size===256&&n.clear(),n.set(t,r),r}function normalizeLonghandValue(e,t){let n=t.trim();if(n===``)return null;let r=splitComponents(n);if(r===null)return null;if(r.length===1&&r[0].type===1&&isCSSWideKeyword(r[0].lower))return r[0].lower;if(containsVar(n))return verbatim(n);let i=dc[e];if(i!==void 0)return i(r);let a=grammarFor(e);return a.types===2048?verbatim(n):normalizeComps(r,a)}function normalizeComps(e,t){let n=``,r=0,i=``;for(let a=0;a<e.length;a++){let o=e[a];if(o.type===100)continue;if(o.type===18&&t.types&4096){if(r===0)return null;r=0,i=`, `;continue}if(++r>t.max||o.type===18||o.type===9)return null;let s=normalizeComponent(o,t);if(s===null)return null;n=n===``?s:n+(r===1?i:` `)+s}return r===0?null:n}function normalizeCustom(e){let t=e.trim();return t===``||splitComponents(t)===null&&/[;!]/.test(t)?null:t}const pc=[`top`,`right`,`bottom`,`left`];function box(e,t){return pc.map(n=>e+n+t)}const mc=box(`border-`,`-width`),hc=box(`border-`,`-style`),gc=box(`border-`,`-color`),_c=/* @__PURE__ */ new Map([[`margin`,box(`margin-`,``)],[`padding`,box(`padding-`,``)],[`border-width`,mc],[`border-style`,hc],[`border-color`,gc],[`border-top`,[`border-top-width`,`border-top-style`,`border-top-color`]],[`border-right`,[`border-right-width`,`border-right-style`,`border-right-color`]],[`border-bottom`,[`border-bottom-width`,`border-bottom-style`,`border-bottom-color`]],[`border-left`,[`border-left-width`,`border-left-style`,`border-left-color`]],[`border`,[...mc,...hc,...gc,`border-image`]],[`flex`,[`flex-grow`,`flex-shrink`,`flex-basis`]],[`background`,[`background-image`,`background-position-x`,`background-position-y`,`background-size`,`background-repeat`,`background-origin`,`background-clip`,`background-attachment`,`background-color`]],[`background-position`,[`background-position-x`,`background-position-y`]],[`font`,[`font-style`,`font-variant`,`font-weight`,`font-size`,`line-height`,`font-family`]]]),vc=/* @__PURE__ */ new Map;for(let[e,t]of _c)for(let n of t){let t=vc.get(n);t===void 0&&vc.set(n,t=[]),t.push(e)}for(let e of vc.values())e.sort((e,t)=>_c.get(t).length-_c.get(e).length);function isExpandedShorthand(e){return _c.has(e)}function longhandsOf(e){return _c.get(e)}function shorthandsContaining(e){return vc.get(e)}function items(e){let t=splitComponents(e);if(t===null)return null;let n=[];for(let e of t)e.type!==100&&n.push(e);return n}function expandBox(e,t){let n=items(t);if(n===null||n.length<1||n.length>4)return null;let r=grammarFor(e[0]),i=[];for(let e of n){if(e.type===18||e.type===9)return null;let t=normalizeComponent(e,r);if(t===null)return null;i.push(t)}let a=i[0],o=i[1]??a;return[a,o,i[2]??a,i[3]??o]}const yc=/* @__PURE__ */ new Set([`none`,`hidden`,`dotted`,`dashed`,`solid`,`double`,`groove`,`ridge`,`inset`,`outset`]);function parseBorderSide(e){let t=items(e);if(t===null||t.length<1||t.length>3)return null;let n=``,r=``,i=``,a=grammarFor(`border-top-width`);for(let e of t){if(e.type===1&&yc.has(e.lower)){if(r!==``)return null;r=e.lower;continue}let t=normalizeComponent(e,a);if(t!==null){if(n!==``)return null;n=t;continue}let o=normalizeColor(e.text);if(o!==null&&e.type!==10){if(i!==``)return null;i=o}else return null}return[n||`medium`,r||`none`,i||`currentcolor`]}const bc=/* @__PURE__ */ new Set([`auto`,`content`,`min-content`,`max-content`,`fit-content`]);function expandFlex(e){let t=items(e);if(t===null||t.length<1||t.length>3)return null;if(t.length===1&&t[0].type===1){if(t[0].lower===`none`)return[`0`,`0`,`auto`];if(t[0].lower===`auto`)return[`1`,`1`,`auto`]}let n=grammarFor(`flex-basis`),num=e=>e!==void 0&&e.type===10&&e.num>=0?formatNumber(e.num):null,basisOf=e=>e.type===1&&!bc.has(e.lower)?null:normalizeComponent(e,n),r,i=null,a=null,o=0;if((r=num(t[0]))!==null){if(o=1,(i=num(t[1]))!==null&&(o=2),o<t.length){if(a=basisOf(t[o]),a===null)return null;o++}}else{if(a=basisOf(t[0]),a===null)return null;o=1,(r=num(t[1]))!==null&&(o=2,(i=num(t[2]))!==null&&(o=3))}return o===t.length?r===null?[`1`,`1`,a]:[r,i??`1`,a??`0%`]:null}const xc=/* @__PURE__ */ new Set([`left`,`center`,`right`,`top`,`bottom`]),Sc=/* @__PURE__ */ new Set([`repeat-x`,`repeat-y`,`repeat`,`space`,`round`,`no-repeat`]),Cc=/* @__PURE__ */ new Set([`scroll`,`fixed`,`local`]),wc=/* @__PURE__ */ new Set([`border-box`,`padding-box`,`content-box`]),Tc=/* @__PURE__ */ new Set([`linear-gradient`,`radial-gradient`,`conic-gradient`,`repeating-linear-gradient`,`repeating-radial-gradient`,`repeating-conic-gradient`,`image-set`,`-webkit-image-set`,`image`,`cross-fade`,`element`,`paint`,`-webkit-linear-gradient`,`-webkit-radial-gradient`,`-webkit-gradient`,`-moz-linear-gradient`,`-moz-radial-gradient`]);function isPositionComp(e){return e.type===1?xc.has(e.lower):normalizeComponent(e,grammarFor(`margin-top`))!==null&&e.type!==1}function positionComp(e){return e.type===1?e.lower:normalizeComponent(e,grammarFor(`margin-top`))}function parsePosition(e){if(e.length<1||e.length>4)return null;let t=e.map(positionComp),isY=e=>e===`top`||e===`bottom`,isX=e=>e===`left`||e===`right`;if(t.length===1)return isY(t[0])?[`center`,t[0]]:[t[0],`center`];if(t.length===2)return isY(t[0])||isX(t[1])?isY(t[1])||isX(t[0])?null:[t[1],t[0]]:[t[0],t[1]];let n,r;return t.length===3?xc.has(t[1])?(n=t[0],r=t[1]+` `+t[2]):(n=t[0]+` `+t[1],r=t[2]):(n=t[0]+` `+t[1],r=t[2]+` `+t[3]),isY(n.split(` `)[0])?[r,n]:[n,r]}const Ec=[`none`,`0%`,`0%`,`auto`,`repeat`,`padding-box`,`border-box`,`scroll`,`transparent`];function parseBackgroundLayer(e,t){let n=``,r=``,i=``,a=``,o=``,s=``,c=``,l=``,u=``,d=0;for(;d<e.length;){let m=e[d];if(m.type===1&&m.lower===`none`&&n===``)n=`none`,d++;else if(m.type===7||m.type===2&&(m.lower===`url`||Tc.has(m.lower))){if(n!==``)return null;n=m.type===7?serializeUrl(m.value):normalizeComponent(m,grammarFor(`background-image`))??m.text,d++}else if(isPositionComp(m)&&r===``){let t=d;for(;t<e.length&&t-d<4&&isPositionComp(e[t]);)t++;let n=parsePosition(e.slice(d,t));if(n===null)return null;if(r=n[0],i=n[1],d=t,d<e.length&&e[d].type===9&&e[d].value===`/`){d++;let t=grammarFor(`background-size`),n=[];for(;d<e.length&&n.length<2;){let r=normalizeComponent(e[d],t);if(r===null||(n.push(r),d++,r===`cover`||r===`contain`))break}if(n.length===0)return null;a=n.join(` `)}}else if(m.type===1&&Sc.has(m.lower)&&o===``){if(o=m.lower,m.lower!==`repeat-x`&&m.lower!==`repeat-y`&&d+1<e.length){let t=e[d+1];t.type===1&&Sc.has(t.lower)&&t.lower!==`repeat-x`&&t.lower!==`repeat-y`&&(o+=` `+t.lower,d++)}d++}else if(m.type===1&&Cc.has(m.lower)&&l===``)l=m.lower,d++;else if(m.type===1&&wc.has(m.lower)){if(s===``)s=m.lower;else if(c===``)c=m.lower;else return null;d++}else{if(t&&u===``){let e=normalizeColor(m.text);if(e!==null&&m.type!==10){u=e,d++;continue}}return null}}c===``&&s!==``&&(c=s);let m=[n,r,i,a,o,s,c,l,u];for(let e=0;e<m.length;e++)m[e]===``&&(m[e]=Ec[e]);return m}const Dc=/* @__PURE__ */ new Set([`caption`,`icon`,`menu`,`message-box`,`small-caption`,`status-bar`]),Oc=/* @__PURE__ */ new Set([`italic`,`oblique`]),kc=/* @__PURE__ */ new Set([`small-caps`]),Ac=/* @__PURE__ */ new Set([`bold`,`bolder`,`lighter`]),jc=/* @__PURE__ */ new Set([`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`]);function expandFont(e){let t=items(e);if(t===null||t.length<2||t.length===1&&t[0].type===1&&Dc.has(t[0].lower))return null;let n=``,r=``,i=``,a=0,o=0;for(;a<t.length&&a<4;a++){let e=t[a];if(e.type===1){if(e.lower===`normal`){o++;continue}if(Oc.has(e.lower)&&n===``){n=e.lower;continue}if(kc.has(e.lower)&&r===``){r=e.lower;continue}if(Ac.has(e.lower)&&i===``){i=e.lower;continue}if(jc.has(e.lower))continue;break}if(e.type===10&&i===``&&e.num>=1&&e.num<=1e3)i=formatNumber(e.num);else break}if(a>=t.length)return null;let s=normalizeComponent(t[a],grammarFor(`font-size`));if(s===null)return null;a++;let c=`normal`;if(a<t.length&&t[a].type===9&&t[a].value===`/`){if(a++,a>=t.length)return null;let e=normalizeComponent(t[a],grammarFor(`line-height`));if(e===null)return null;c=e,a++}if(a>=t.length)return null;let l=``;for(;a<t.length;a++){let e=t[a];if(e.type===18){l+=`,`;continue}if(e.type===10||e.type===9)return null;let n=e.type===5?`"`+e.value.replace(/(["\\])/g,`\\$1`)+`"`:e.text;l+=(l===``||l.endsWith(`,`))&&l===``?n:` `+n}return o>3?null:[n||`normal`,r||`normal`,i||`normal`,s,c,l]}function expandShorthand(e,t){switch(e){case`margin`:case`padding`:case`border-width`:case`border-style`:case`border-color`:return expandBox(_c.get(e),t);case`border-top`:case`border-right`:case`border-bottom`:case`border-left`:return parseBorderSide(t);case`border`:{let e=parseBorderSide(t);return e===null?null:[e[0],e[0],e[0],e[0],e[1],e[1],e[1],e[1],e[2],e[2],e[2],e[2],`none`]}case`flex`:return expandFlex(t);case`background-position`:{let e=items(t);if(e===null)return null;for(let t of e)if(!isPositionComp(t))return null;return parsePosition(e)}case`background`:{let e=items(t);if(e===null||e.length===0)return null;let n=0,r=0,i=null;for(let t=0;t<=e.length;t++)if(t===e.length||e[t].type===18){let a=parseBackgroundLayer(e.slice(n,t),t===e.length);if(a===null)return null;i=a,r++,n=t+1}return r>1?Ic:i}case`font`:return expandFont(t)}return null}const Mc=/* @__PURE__ */ new Map([[`outline`,[`outline-color`,`outline-style`,`outline-width`]],[`overflow`,[`overflow-x`,`overflow-y`]],[`gap`,[`row-gap`,`column-gap`]],[`inset`,[`top`,`right`,`bottom`,`left`]],[`list-style`,[`list-style-position`,`list-style-image`,`list-style-type`]],[`flex-flow`,[`flex-direction`,`flex-wrap`]]]);function pendingLonghandsMap(){return new Map([..._c,...Mc])}function cascadeLonghandsOf(e){return _c.get(e)??Mc.get(e)}function isCascadeOnlyShorthand(e){return Mc.has(e)}const Nc=/* @__PURE__ */ new Set([`visible`,`hidden`,`clip`,`scroll`,`auto`,`overlay`]),Pc=/* @__PURE__ */ new Set([`row`,`row-reverse`,`column`,`column-reverse`]),Fc=/* @__PURE__ */ new Set([`nowrap`,`wrap`,`wrap-reverse`]);function expandCascadeShorthand(e,t){switch(e){case`outline`:{let e=items(t);if(e===null||e.length<1||e.length>3)return null;let n=``,r=``,i=``,a=grammarFor(`outline-width`);for(let t of e){if(t.type===1&&(yc.has(t.lower)||t.lower===`auto`)&&t.lower!==`hidden`){if(r!==``)return null;r=t.lower;continue}let e=normalizeComponent(t,a);if(e!==null){if(n!==``)return null;n=e;continue}let o=normalizeColor(t.text);if(o!==null&&t.type!==10){if(i!==``)return null;i=o}else return null}return[i||`currentcolor`,r||`none`,n||`medium`]}case`overflow`:case`flex-flow`:{let n=items(t);if(n===null||n.length<1||n.length>2)return null;for(let e of n)if(e.type!==1)return null;if(e===`overflow`){for(let e of n)if(!Nc.has(e.lower))return null;return[n[0].lower,(n[1]??n[0]).lower]}let r=``,i=``;for(let e of n)if(Pc.has(e.lower)&&r===``)r=e.lower;else if(Fc.has(e.lower)&&i===``)i=e.lower;else return null;return[r||`row`,i||`nowrap`]}case`gap`:{let e=items(t);if(e===null||e.length<1||e.length>2)return null;let n=grammarFor(`row-gap`),r=[];for(let t of e){let e=normalizeComponent(t,n);if(e===null)return null;r.push(e)}return[r[0],r[1]??r[0]]}case`inset`:return expandBox(Mc.get(`inset`),t);case`list-style`:{let e=items(t);if(e===null||e.length<1||e.length>3)return null;let n=``,r=``,i=``,a=0;for(let t of e)if(t.type===1&&(t.lower===`inside`||t.lower===`outside`)&&n===``)n=t.lower;else if(t.type===1&&t.lower===`none`)a++;else if((t.type===7||t.type===2&&Tc.has(t.lower))&&r===``)r=t.type===7?serializeUrl(t.value):t.text;else if((t.type===1||t.type===5||t.type===2&&t.lower===`symbols`)&&i===``)i=t.type===1?t.lower:t.text;else return null;return a>+(r===``)+ +(i===``)?null:(a!==0&&(r===``&&(r=`none`),i===``&&(i=`none`)),[n||`outside`,r||`none`,i||`disc`])}}return null}function serializeCascadeShorthand(e,t){switch(e){case`overflow`:case`gap`:return t[0]===t[1]?t[0]:t[0]+` `+t[1];case`inset`:return serializeBox(t);case`outline`:case`list-style`:case`flex-flow`:return t.join(` `)}return``}const Ic=[];function serializeBox(e){let[t,n,r,i]=e;return i===n?r===t?n===t?t:t+` `+n:t+` `+n+` `+r:t+` `+n+` `+r+` `+i}function serializeSide(e,t,n,r){if(r)return e+` `+t+` `+n;let i=[];return e!==`medium`&&i.push(e),t!==`none`&&i.push(t),n!==`currentcolor`&&i.push(n),i.length===0?e:i.join(` `)}function serializeShorthand(e,t,n){let r=0;for(let e of t)isCSSWideKeyword(e)&&r++;if(r!==0){if(r!==t.length)return``;for(let e of t)if(e!==t[0])return``;return t[0]}switch(e){case`margin`:case`padding`:case`border-width`:case`border-style`:case`border-color`:return serializeBox(t);case`border-top`:case`border-right`:case`border-bottom`:case`border-left`:return serializeSide(t[0],t[1],t[2],n);case`border`:for(let e=0;e<3;e++){let n=e*4;if(t[n]!==t[n+1]||t[n]!==t[n+2]||t[n]!==t[n+3])return``}return t[12]===`none`?serializeSide(t[0],t[4],t[8],n):``;case`flex`:return t[0]+` `+t[1]+` `+t[2];case`background-position`:return t[0]+` `+t[1];case`background`:{if(n)return`${t[8]} ${t[0]} ${t[7]} ${t[4]} ${t[1]} ${t[2]} / ${t[3]} ${t[5]} ${t[6]}`.replace(/\s+/g,` `);let e=[];return t[0]!==`none`&&e.push(t[0]),(t[1]!==`0%`||t[2]!==`0%`||t[3]!==`auto`)&&e.push(t[1]+` `+t[2]+(t[3]===`auto`?``:` / `+t[3])),t[4]!==`repeat`&&e.push(t[4]),t[7]!==`scroll`&&e.push(t[7]),(t[5]!==`padding-box`||t[6]!==`border-box`)&&e.push(t[5]===t[6]?t[5]:t[5]+` `+t[6]),t[8]!==`transparent`&&t[8]!==`rgba(0, 0, 0, 0)`&&e.push(t[8]),e.length===0?`none`:e.join(` `)}case`font`:{let e=[];return t[0]!==`normal`&&e.push(t[0]),t[1]!==`normal`&&e.push(t[1]),t[2]!==`normal`&&!(n&&t[2]===`400`)&&e.push(t[2]),e.push(t[3]+(t[4]===`normal`?``:` / `+t[4])),e.push(t[5]),e.join(` `)}}return``}var DeclBlock=class{names;values;important;dirty;namesChanged;constructor(){this.names=[],this.values=[],this.important=[],this.dirty=!1,this.namesChanged=!1}get length(){return this.names.length}indexOf(e){let t=this.names;for(let n=0;n<t.length;n++)if(t[n]===e)return n;return-1}clear(){this.names.length!==0&&(this.namesChanged=!0),this.names.length=0,this.values.length=0,this.important.length=0}put(e,t,n){let r=this.indexOf(e);r===-1?(this.names.push(e),this.values.push(t),this.important.push(n),this.dirty=!0,this.namesChanged=!0):(this.values[r]!==t||this.important[r]!==n)&&(this.values[r]=t,this.important[r]=n,this.dirty=!0)}putParsed(e,t,n){let r=this.indexOf(e);if(r!==-1){if(this.important[r]&&!n)return;this.names.splice(r,1),this.values.splice(r,1),this.important.splice(r,1)}this.names.push(e),this.values.push(t),this.important.push(n),this.namesChanged=!0}removeOne(e){let t=this.indexOf(e);return t!==-1&&(this.names.splice(t,1),this.values.splice(t,1),this.important.splice(t,1),this.dirty=!0,this.namesChanged=!0,!0)}setValue(e,t,n,r){if(isCustomPropertyName(e)){let i=normalizeCustom(t);return i!==null&&(r?this.putParsed(e,i,n):this.put(e,i,n),!0)}if(isExpandedShorthand(e)){let i=longhandsOf(e),a=t.trim(),o=splitComponents(a);if(o===null||a===``)return!1;if(o.length===1&&o[0].type===1&&isCSSWideKeyword(o[0].lower)){for(let e of i)this.putOrParsed(e,o[0].lower,n,r);return this.removeOne(e),!0}let s=null;if(!containsVar(a)&&(s=expandShorthand(e,a),s===null))return!1;if(s===null||s===Ic){for(let e of i)this.removeOne(e);return this.putOrParsed(e,a,n,r),!0}this.removeOne(e);for(let e=0;e<i.length;e++)this.putOrParsed(i[e],s[e],n,r);return!0}if(!isSupportedProperty(e))return!1;let i=normalizeLonghand(e,t);return i!==null&&(this.putOrParsed(e,i,n,r),!0)}putOrParsed(e,t,n,r){r?this.putParsed(e,t,n):this.put(e,t,n)}parse(e){this.clear(),e!==``&&this.addRaw(parseDeclarationList(e))}addRaw(e){for(let t=0;t<e.length;t++){let n=e[t],r=isCustomPropertyName(n.name)?n.name:n.name.toLowerCase();this.setValue(r,n.value,n.important,!0)}}remove(e){let t=this.removeOne(e),n=longhandsOf(e);if(n!==void 0)for(let e of n)this.removeOne(e)&&(t=!0);return t}getPropertyValue(e){let t=this.indexOf(e);if(t!==-1)return this.values[t];let n=longhandsOf(e);if(n===void 0)return``;let r=[],i=-1;for(let e of n){let t=this.indexOf(e);if(t===-1)return``;let n=+!!this.important[t];if(i===-1)i=n;else if(i!==n)return``;r.push(this.values[t])}return serializeShorthand(e,r,!1)}getPropertyPriority(e){let t=this.indexOf(e);if(t!==-1)return this.important[t]?`important`:``;let n=longhandsOf(e);if(n===void 0)return``;for(let e of n){let t=this.indexOf(e);if(t===-1||!this.important[t])return``}return`important`}serialize(){let e=this.names,t=e.length;if(t===0)return``;let n=``,r=null;for(let i=0;i<t;i++){let a=e[i];if(r!==null&&r.has(a))continue;let o=shorthandsContaining(a),s=!1;if(o!==void 0)for(let e=0;e<o.length&&!s;e++){let a=o[e],c=longhandsOf(a),l=c.length<=t;for(let e=0;e<c.length&&l;e++){let t=this.indexOf(c[e]);l=t!==-1&&this.important[t]===this.important[i]&&(r===null||!r.has(c[e]))}if(!l)continue;let u=Array(c.length);for(let e=0;e<c.length;e++)u[e]=this.values[this.indexOf(c[e])];let d=serializeShorthand(a,u,!1);if(d!==``){r===null&&(r=/* @__PURE__ */ new Set);for(let e of c)r.add(e);n+=(n===``?``:` `)+a+`: `+d+(this.important[i]?` !important;`:`;`),s=!0}}s||(n+=(n===``?``:` `)+a+`: `+this.values[i]+(this.important[i]?` !important;`:`;`))}return n}};function parseDeclBlock(e){let t=new DeclBlock;return t.parse(e),t}var CSSStyleDeclaration=class{[z];[Fn];[C];[Xn];[Rr];[dn];constructor(e=null,t=null,n=null){if(Lc||installAccessors(),this[z]=e,this[Fn]=n,this[C]=t??new DeclBlock,this[Xn]=!1,this[Rr]=!1,this[dn]=0,e!==null){let t=attr(e[j],`style`);t!==null&&t!==``&&this[C].parse(t)}this[C].names.length!==0&&this._syncIndices()}_attributeChanged(e){this[Rr]||(this[C].parse(e??``),this._syncIndices())}_changed(){this._syncIndices();let e=this[z];if(e!==null){this[Rr]=!0;try{setAttribute(e[j],`style`,this[C].serialize())}finally{this[Rr]=!1}}else this[Fn]!==null&&this[Fn]._declarationsChanged()}_syncIndices(){let e=this[C];if(!e.namesChanged)return;e.namesChanged=!1;let t=e.names,n=this,r=t.length;for(let e=0;e<r;e++)n[e]!==t[e]&&(n[e]=t[e]);for(let e=r;e<this[dn];e++)delete n[e];this[dn]=r}_checkWritable(){if(this[Xn])throw new DOMException(`Failed to execute on 'CSSStyleDeclaration': These styles are computed, and therefore read-only.`,`NoModificationAllowedError`)}get cssText(){return this[Xn]?``:this[C].serialize()}set cssText(e){this._checkWritable(),this[C].parse(e===null?``:String(e)),this._changed()}get length(){return this[C].names.length}item(e){return this[C].names[e>>>0]??``}getPropertyValue(e){let t=String(e);return this[C].getPropertyValue(isCustomPropertyName(t)?t:t.toLowerCase())}getPropertyPriority(e){let t=String(e);return this[C].getPropertyPriority(isCustomPropertyName(t)?t:t.toLowerCase())}setProperty(e,t,n=``){this._checkWritable();let r=String(e);isCustomPropertyName(r)||(r=r.toLowerCase());let i=t===null?``:idlString(t);if(i===``){this.removeProperty(r);return}let a=n===null?``:idlString(n),o=!1;if(a!==``){if(a.toLowerCase()!==`important`)return;o=!0}let s=this[C];s.dirty=!1,s.setValue(r,i,o,!1)&&s.dirty&&this._changed()}removeProperty(e){this._checkWritable();let t=String(e);isCustomPropertyName(t)||(t=t.toLowerCase());let n=this[C].getPropertyValue(t);return this[C].remove(t)&&this._changed(),n}get parentRule(){return this[Fn]}get cssFloat(){return this.getPropertyValue(`float`)}set cssFloat(e){this._setNamed(`float`,e)}_setNamed(e,t){this[Xn]||this.setProperty(e,t===null?``:idlString(t))}*[Symbol.iterator](){let e=this.length;for(let t=0;t<e;t++)yield this.item(t)}get[Symbol.toStringTag](){return`CSSStyleDeclaration`}};let Lc=!1;function installAccessors(){Lc=!0;let e=CSSStyleDeclaration.prototype,t=Object.create(null),define=(n,r)=>{Object.hasOwn(t,n)||Object.hasOwn(e,n)||Object.defineProperty(t,n,r)};for(let e of allPropertyNames()){let t={get(){return this.getPropertyValue(e)},set(t){this._setNamed(e,t)},enumerable:!0,configurable:!0};define(e,t),e.indexOf(`-`)!==-1&&(define(cssPropertyToIDLAttribute(e,!1),t),e.startsWith(`-webkit-`)&&define(cssPropertyToIDLAttribute(e,!0),t))}Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.setPrototypeOf(e,t)}function idlString(e){if(typeof e==`symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return String(e)}const Rc=[`jsdom-26`,`jsdom-30`,`modern`],zc=`jsdom-30`,Bc=Rc,Vc=[`jsdom-30`,`modern`],Hc=[`modern`],handlers=e=>e.map(e=>`on${e}`),on=(e,t)=>t.map(t=>`${e}.${t}`),Uc=handlers([`gotpointercapture`,`lostpointercapture`,`pointercancel`,`pointerdown`,`pointerenter`,`pointerleave`,`pointermove`,`pointerout`,`pointerover`,`pointerrawupdate`,`pointerup`]),Wc=handlers([`animationcancel`,`animationend`,`animationiteration`,`animationstart`,`command`,`selectionchange`,`selectstart`,`transitioncancel`,`transitionend`,`transitionrun`,`transitionstart`]),Gc=[`Document`,`HTMLElement`,`SVGElement`,`MathMLElement`],Kc=[{globals:[`PointerEvent`,...Uc],members:Gc.flatMap(e=>on(e,Uc)),profiles:Vc,reason:"jsdom 27 added pointer events. Libraries pick pointer or mouse/touch code paths by detecting `PointerEvent` or `onpointerdown` (React Aria caches the choice at import), so suites written for jsdom 26 break when they exist, and again when they `delete global.PointerEvent` after installing a fake."},{globals:[`matchMedia`,`MediaQueryList`,`MediaQueryListEvent`],profiles:Hc,reason:"No jsdom has matchMedia. Suites install their own (mock-match-media only polyfills it when it is missing: React Aria's `setMedia({pointer: 'coarse'})` did nothing with ours present) and components feature-detect it."},{globals:[`ResizeObserver`],profiles:Hc,reason:`No jsdom has ResizeObserver, and libraries detect it to pick their browser path: Base UI's ScrollArea then calls getAnimations(), which nothing implements. Suites written for jsdom install their own (Sentry's MockResizeObserver).`},{members:[`HTMLElement.inert`],profiles:Hc,reason:"No jsdom has the `inert` IDL attribute. Libraries that find it mark content outside a modal `inert` instead of `aria-hidden` (React Aria's ariaHideOutside, Radix's hideOthers), which stock Testing Library's queries do not treat as inaccessible. The content attribute makes subtrees inert in every profile."},{globals:[`visualViewport`],profiles:Hc,reason:"Without layout its numbers mislead positioning libraries (Floating UI), which fall back to the document element when it is absent, as under jsdom. `createWindow({ visualViewport })` overrides the profile."},{globals:[`CSS`,`CSSConditionRule`,`CSSContainerRule`,`CSSFontFaceRule`,`CSSGroupingRule`,`CSSKeyframeRule`,`CSSKeyframesRule`,`CSSLayerBlockRule`,`CSSLayerStatementRule`,`CSSNamespaceRule`,`CSSNestedDeclarations`,`CSSPageRule`,`CSSRuleList`,`CSSScopeRule`,`CSSSupportsRule`],members:[`HTMLStyleElement.disabled`],profiles:Bc,reason:"CSSOM classes are only reached through style sheets jsdom 26 also parses (its rule objects come from the cssom package). `CSS.escape`/`CSS.supports` behave as the polyfills suites install, which replace ours by assignment."},{globals:[`BeforeUnloadEvent`,`PromiseRejectionEvent`,`TransitionEvent`],members:[`MouseEvent.movementX`,`MouseEvent.movementY`,`CustomElementRegistry.getName`],profiles:Bc,reason:`Event classes and members nothing feature-detects; our own dispatch creates these events.`},{globals:[`AnimationEvent`,`ClipboardEvent`,`CommandEvent`,`DragEvent`,`FormDataEvent`,`TextEvent`,`ToggleEvent`,`Touch`,`TouchList`,...Wc,`onpagereveal`,`onpageswap`],members:[...[`Document`,`HTMLElement`,`SVGElement`].flatMap(e=>on(e,Wc)),...on(`HTMLBodyElement`,[`onpagereveal`,`onpageswap`]),...on(`HTMLFrameSetElement`,[`onpagereveal`,`onpageswap`]),`TouchEvent.getModifierState`,`PopStateEvent.hasUAVisualTransition`,`InputEvent.dataTransfer`],profiles:Bc,reason:`Event classes and handler attributes for events our dispatch fires (popover toggle, command, form data, drag, clipboard, animation/transition). Libraries construct or listen for them; none switch code paths on their presence.`},{globals:[`Clipboard`,`ClipboardItem`,`DataTransfer`,`DataTransferItem`,`DataTransferItemList`],members:[`Navigator.clipboard`],profiles:Bc,reason:"user-event's `setup()` replaces `navigator.clipboard` with its stub either way, and builds DataTransfer objects for drag/paste whether or not the DOM has the class."},{globals:[`IntersectionObserver`],profiles:Bc,reason:`Component libraries construct it unconditionally and crash when it is missing; ours never reports entries (no layout), and suites that need entries install a mock by assignment.`},{globals:/* @__PURE__ */ `SVGAElement.SVGCircleElement.SVGClipPathElement.SVGEllipseElement.SVGFilterElement.SVGForeignObjectElement.SVGGeometryElement.SVGGradientElement.SVGImageElement.SVGLineElement.SVGLinearGradientElement.SVGMarkerElement.SVGMaskElement.SVGPathElement.SVGPatternElement.SVGPolygonElement.SVGPolylineElement.SVGRadialGradientElement.SVGRectElement.SVGScriptElement.SVGStopElement.SVGStyleElement.SVGTSpanElement.SVGTextContentElement.SVGTextElement.SVGTextPathElement.SVGTextPositioningElement.SVGUseElement.SVGViewElement.MathMLElement`.split(`.`),members:[`SVGElement.autofocus`,...on(`SVGGraphicsElement`,[`getBBox`,`getCTM`,`getScreenCTM`]),...on(`SVGSVGElement`,[`animationsPaused`,`checkEnclosure`,`checkIntersection`,`createSVGAngle`,`createSVGLength`,`createSVGMatrix`,`createSVGPoint`,`createSVGTransform`,`deselectAll`,`getCurrentTime`,`getEnclosureList`,`getIntersectionList`,`pauseAnimations`,`setCurrentTime`,`unpauseAnimations`])],profiles:Bc,reason:`Element classes for markup jsdom creates as plain SVGElement/Element (instanceof checks only), and SVG geometry that returns zeros without layout; suites that need numbers assign their own getBBox.`},{globals:[`DOMMatrix`,`DOMMatrixReadOnly`,`DOMPoint`,`DOMPointReadOnly`,`DOMRectList`],members:[`Range.getBoundingClientRect`,`Range.getClientRects`],profiles:Bc,reason:"Geometry values (zeros without layout). Editors call `range.getBoundingClientRect()`, which jsdom lacks; suites mock it by assignment."},{globals:[`CSSPropertyRule`,`CSSStartingStyleRule`,`CustomStateSet`,`DOMStringList`,`MediaError`,`TimeRanges`,`VisualViewport`],members:[...on(`CSSRule`,[`DOCUMENT_RULE`,`REGION_STYLE_RULE`,`VIEWPORT_RULE`]),...on(`CSSRule.static`,[`DOCUMENT_RULE`,`REGION_STYLE_RULE`,`VIEWPORT_RULE`]),`CSSStyleDeclaration.cssFloat`,...on(`ElementInternals`,[`ariaActiveDescendantElement`,`ariaBrailleLabel`,`ariaBrailleRoleDescription`,`ariaControlsElements`,`ariaDescribedByElements`,`ariaDetailsElements`,`ariaErrorMessageElements`,`ariaFlowToElements`,`ariaLabelledByElements`,`ariaOwnsElements`,`checkValidity`,`form`,`reportValidity`,`setFormValue`,`setValidity`,`states`,`validationMessage`,`validity`,`willValidate`])],profiles:Bc,reason:`Interfaces reached only through objects that create them (style sheets, form-associated custom elements, media elements).`},{globals:[`cancelIdleCallback`,`requestIdleCallback`,`clientInformation`,`closed`,`crossOriginIsolated`,`isSecureContext`,`opener`,`reportError`],members:[`History.scrollRestoration`,...on(`Screen`,[`availLeft`,`availTop`,`isExtended`]),...on(`Navigator`,[`deviceMemory`,`doNotTrack`,`maxTouchPoints`,`oscpu`,`pdfViewerEnabled`,`registerProtocolHandler`,`sendBeacon`,`unregisterProtocolHandler`,`userActivation`,`vibrate`,`webdriver`])],profiles:Bc,reason:`Window and navigator members with browser defaults (no touch points, not a webdriver). Fake timers fake requestIdleCallback like the other timer functions; libraries that fall back to setTimeout without it behave the same.`},{members:[...on(`Document`,[`adoptedStyleSheets`,`alinkColor`,`bgColor`,`designMode`,`domain`,`fgColor`,`linkColor`,`moveBefore`,`scrollingElement`,`vlinkColor`]),`Document.static.parseHTMLUnsafe`,`DocumentFragment.moveBefore`,...on(`Element`,[`ariaActiveDescendantElement`,`ariaBrailleLabel`,`ariaBrailleRoleDescription`,`ariaControlsElements`,`ariaDescribedByElements`,`ariaDetailsElements`,`ariaErrorMessageElements`,`ariaFlowToElements`,`ariaLabelledByElements`,`ariaOwnsElements`,`checkVisibility`,`dataset`,`getHTML`,`moveBefore`,`part`,`scroll`,`scrollBy`,`scrollIntoView`,`scrollTo`,`setHTMLUnsafe`]),...on(`ShadowRoot`,[`adoptedStyleSheets`,`clonable`,`delegatesFocus`,`elementFromPoint`,`elementsFromPoint`,`getHTML`,`serializable`,`setHTMLUnsafe`,`slotAssignment`,`styleSheets`]),...on(`Selection`,[`direction`,`getComposedRanges`,`modify`])],profiles:Bc,reason:"DOM members suites written for jsdom stub by assignment when they need them (`Element.prototype.scrollIntoView = vi.fn()`), which replaces ours. `Element.dataset` is on Element (jsdom: on HTMLElement and SVGElement)."},{members:[...on(`HTMLElement`,[`accessKeyLabel`,`autocapitalize`,`autocorrect`,`autofocus`,`contentEditable`,`enterKeyHint`,`hidePopover`,`innerText`,`inputMode`,`isContentEditable`,`outerText`,`popover`,`showPopover`,`spellcheck`,`togglePopover`,`writingSuggestions`]),...on(`HTMLButtonElement`,[`command`,`commandForElement`,`formAction`,`formEnctype`,`formMethod`,`popoverTargetAction`,`popoverTargetElement`]),...on(`HTMLInputElement`,[`formAction`,`formEnctype`,`formMethod`,`height`,`popoverTargetAction`,`popoverTargetElement`,`showPicker`,`width`]),...on(`HTMLDialogElement`,[`close`,`closedBy`,`requestClose`,`returnValue`,`show`,`showModal`]),...on(`HTMLAnchorElement`,[`ping`,`referrerPolicy`]),...on(`HTMLAreaElement`,[`download`,`hreflang`,`ping`,`referrerPolicy`,`type`]),...on(`HTMLCanvasElement`,[`captureStream`,`transferControlToOffscreen`]),`HTMLDetailsElement.name`,`HTMLEmbedElement.getSVGDocument`,...on(`HTMLFormElement`,[`autocomplete`,`encoding`,`rel`,`relList`]),...on(`HTMLIFrameElement`,[`allow`,`loading`,`referrerPolicy`,`sandbox`]),...on(`HTMLImageElement`,[`decode`,`decoding`,`fetchPriority`,`loading`,`referrerPolicy`,`x`,`y`]),...on(`HTMLLinkElement`,[`as`,`blocking`,`disabled`,`fetchPriority`,`imageSizes`,`imageSrcset`,`integrity`,`referrerPolicy`,`sizes`]),...on(`HTMLMarqueeElement`,[`loop`,`start`,`stop`]),...on(`HTMLMediaElement`,[`disableRemotePlayback`,`error`,`fastSeek`,`getStartDate`,`loading`,`mediaKeys`,`preservesPitch`,`setMediaKeys`,`setSinkId`,`sinkId`,`srcObject`]),`HTMLMetaElement.media`,...on(`HTMLObjectElement`,[`contentWindow`,`getSVGDocument`]),...on(`HTMLScriptElement`,[`async`,`blocking`,`fetchPriority`,`integrity`,`noModule`,`referrerPolicy`]),`HTMLScriptElement.static.supports`,...on(`HTMLSelectElement`,[`autocomplete`,`showPicker`]),`HTMLSlotElement.assign`,...on(`HTMLSourceElement`,[`height`,`width`]),`HTMLStyleElement.blocking`,...on(`HTMLTemplateElement`,[`shadowRootClonable`,`shadowRootDelegatesFocus`,`shadowRootMode`,`shadowRootSerializable`,`shadowRootSlotAssignment`]),`HTMLTrackElement.track`,...on(`HTMLVideoElement`,[`cancelVideoFrameCallback`,`disablePictureInPicture`,`getVideoPlaybackQuality`,`requestPictureInPicture`,`requestVideoFrameCallback`])],profiles:Bc,reason:"Reflected attributes and element behavior we implement (popover, dialog, invoker commands, innerText). Where jsdom lacks a method, suites assign their own (`HTMLDialogElement.prototype.showModal = vi.fn()`), which replaces ours."}];function resolveCompat(e){if(e===void 0)return zc;if(Rc.includes(e))return e;throw TypeError(`Unknown compat profile ${JSON.stringify(e)}: expected ${Rc.map(e=>JSON.stringify(e)).join(`, `)}.`)}const qc=/* @__PURE__ */ new Map;function hiddenGlobals(e){let t=qc.get(e);if(t===void 0){let n=/* @__PURE__ */ new Set;for(let t of Kc)if(!(t.globals===void 0||t.profiles.includes(e)))for(let e of t.globals)n.add(e);qc.set(e,t=n)}return t}function compatExposes(e,t){for(let n of Kc)if(n.globals?.includes(t)||n.members?.includes(t))return n.profiles.includes(e);return!0}const Jc=/* @__PURE__ */ new Map;function deferCompatMember(e,t,n){let r=Object.getOwnPropertyDescriptor(e,n);if(r===void 0)throw Error(`deferCompatMember: ${t}.${n} is not defined`);delete e[n],Jc.set(`${t}.${n}`,{owner:e,descriptor:r})}const Yc=/* @__PURE__ */ new Map;function deferredCompatMembers(){return Jc}let Xc=null;function gatedMembers(){if(Xc!==null)return Xc;Xc=[];for(let e of Kc)if(e.members!==void 0&&e.profiles.length!==Rc.length)for(let t of e.members){let n=t.split(`.`),r=n.length===3&&n[1]===`static`;Xc.push({key:t,iface:n[0],member:n[n.length-1],isStatic:r,profiles:e.profiles})}return Xc}function installCompatMembers(e,t){let n=[];for(let r of gatedMembers()){let i=t[r.iface];if(i===void 0)continue;let a=r.isStatic?i:i.prototype;if(a===void 0)continue;let o=r.profiles.includes(e),s=Object.hasOwn(a,r.member);if(o&&!s){let e=Jc.get(r.key)?.descriptor??Yc.get(r.key);if(e===void 0)continue;Object.defineProperty(a,r.member,e),n.push(()=>delete a[r.member])}else if(!o&&s){let e=Object.getOwnPropertyDescriptor(a,r.member);Yc.set(r.key,e),delete a[r.member],n.push(()=>Object.defineProperty(a,r.member,e))}}return()=>{for(let e=n.length-1;e>=0;e--)n[e]()}}function fireAnEvent(e,t,n,r,i=!1){let a=n===void 0?new Event(e,r):new n(e,r);return a._s.flags|=128,dispatch(a,t,i)}function dispatchTrusted(e,t){return e._s.flags|=128,dispatch(e,t)}function fireSyntheticPointerEvent(e,t,n,r){let i=t[j],a=i===void 0?null:i.doc[q],o=new PointerEvent(e,{pointerId:-1,...r,bubbles:!0,cancelable:!0,composed:!0,view:a});return n||(o._s.flags|=128),dispatch(o,t)}function fireEvent(e,t,n=!1,r=!1){return fireAnEvent(t,e,void 0,{bubbles:n,cancelable:r})}function fireFocusEvent(e,t,n,r,i){fireAnEvent(t,e,FocusEvent,{bubbles:r,cancelable:!1,composed:!0,relatedTarget:n,view:i,detail:0})}function fireToggleEvent(e,t,n,r,i,a=null){return fireAnEvent(t,e,ToggleEvent,{bubbles:!1,cancelable:i,oldState:n,newState:r,source:a})}function fireSyntheticClick(e){return fireSyntheticPointerEvent(`click`,e,!0)}function queueElementTask(e,t){let n=(`doc`in e?e:e[j]).doc[q]??currentWindowOrNull();n===null?setTimeout(t,0):n._task(t,0)}var NodeCache=class{roleVersion;role;roleAttr;nameVersion;name;styleVersion;styleSheetVersion;style;computedStyle;ariaNameStyleVersion;ariaHiddenVersion;ariaHiddenStyleVersion;ariaHiddenBits;constructor(){this.roleVersion=-1,this.role=``,this.roleAttr=null,this.nameVersion=-1,this.name=``,this.styleVersion=-1,this.styleSheetVersion=-1,this.style=null,this.computedStyle=null,this.ariaNameStyleVersion=-1,this.ariaHiddenVersion=-1,this.ariaHiddenStyleVersion=-1,this.ariaHiddenBits=0}};function nodeCache(e){let t=e.cache;return t===null&&(e.cache=t=new NodeCache),t}function hex(e){return e.toString(16)}function serializeIdentifier(e){let t=``,n=e.length,r=n>0?e.charCodeAt(0):-1;for(let i=0;i<n;i++){let a=e.charCodeAt(i);t+=a===0?`�`:a>=1&&a<=31||a===127||i===0&&a>=48&&a<=57||i===1&&a>=48&&a<=57&&r===45?`\\`+hex(a)+` `:i===0&&a===45&&n===1?`\\-`:a>=128||a===45||a===95||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?e[i]:`\\`+e[i]}return t}function serializeString(e){let t=`"`;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t+=r===0?`�`:r>=1&&r<=31||r===127?`\\`+hex(r)+` `:r===34||r===92?`\\`+e[n]:e[n]}return t+`"`}function serializeAnPlusB(e,t){if(e===0)return String(t);let n=e===1?`n`:e===-1?`-n`:String(e)+`n`;return t>0?n+=`+`+String(t):t<0&&(n+=String(t)),n}let Zc=null;function withNamespaceContext(e,t){let n=Zc;Zc=e??null;try{return t()}finally{Zc=n}}function hasDefaultNamespace(){return Zc!==null&&Zc.defaultNamespace!==void 0}function serializeNamespace(e){switch(e.nsKind){case 1:return hasDefaultNamespace()?`*|`:``;case 2:return`|`;case 3:return prefixIsDefault(e.nsPrefix)?``:serializeIdentifier(e.nsPrefix)+`|`}return``}function prefixIsDefault(e){if(!hasDefaultNamespace()||Zc.namespaces===void 0)return!1;let t=Zc.namespaces.get(e);return t!==void 0&&t===Zc.defaultNamespace}function attrOp(e){switch(e){case 1:return`=`;case 2:return`~=`;case 3:return`|=`;case 4:return`^=`;case 5:return`$=`;case 6:return`*=`}return``}function joinArgs(e,t,n){let r=``;for(let i=0;i<e.length;i++)i>0&&(r+=t),r+=n?serializeIdentifier(e[i]):e[i];return r}function serializeSimple(e){switch(e.kind){case 1:return serializeNamespace(e)+serializeIdentifier(e.name);case 2:return serializeNamespace(e)+`*`;case 3:return`#`+serializeIdentifier(e.name);case 4:return`.`+serializeIdentifier(e.name);case 5:{let t=`[`;return e.nsKind===1?t+=`*|`:e.nsKind===3&&(t+=serializeIdentifier(e.nsPrefix)+`|`),t+=serializeIdentifier(e.name),e.op!==0&&(t+=attrOp(e.op)+serializeString(e.value),e.caseFlag===1?t+=` i`:e.caseFlag===2&&(t+=` s`)),t+`]`}case 6:{let t=e.pseudo;if(t===5||t===6||t===7||t===8){let t=`:`+e.name+`(`+serializeAnPlusB(e.a,e.b);return e.list!==null&&(t+=` of `+serializeSelectorList(e.list)),t+`)`}if(t===11){let t=`:`+e.name+`(`;for(let n=0;n<e.args.length;n++)n>0&&(t+=`, `),t+=needsString(e.args[n])?serializeString(e.args[n]):serializeIdentifier(e.args[n]);return t+`)`}return t===12||t===13?`:`+e.name+`(`+serializeIdentifier(e.args[0])+`)`:t===88?e.args.length===0?`:heading`:`:heading(`+joinArgs(e.args,`, `,!1)+`)`:e.list===null?`:`+e.name:`:`+e.name+`(`+serializeSelectorList(e.list)+`)`}case 7:return e.list===null?e.pseudo===3||e.args.length!==0?`::`+e.name+`(`+joinArgs(e.args,` `,!0)+`)`:`::`+e.name:`::`+e.name+`(`+serializeSelectorList(e.list)+`)`}return``}function needsString(e){if(e.length===0)return!0;let t=e.charCodeAt(0);return t===42||t>=48&&t<=57}function serializeCompound(e){let t=``,n=e.simples.length;for(let r=0;r<n;r++){let i=e.simples[r];r===0&&n>1&&i.kind===2&&(i.nsKind===1&&!hasDefaultNamespace()||i.nsKind===0||i.nsKind===3&&prefixIsDefault(i.nsPrefix))||(t+=serializeSimple(i))}return t}function combinator(e){switch(e){case 1:return` `;case 2:return` > `;case 3:return` + `;case 4:return` ~ `}return` `}function serializeComplex(e){if(e.invalid)return e.text;let t=``;e.leading!==0&&e.leading!==1&&(t+=combinator(e.leading).slice(1));for(let n=0;n<e.compounds.length;n++)n>0&&(t+=combinator(e.combinators[n-1])),t+=serializeCompound(e.compounds[n]);return t}function serializeSelectorList(e){let t=``;for(let n=0;n<e.items.length;n++)n>0&&(t+=`, `),t+=serializeComplex(e.items[n]);return t}var CompiledSelector=class{text;specificity;keyKind;key;pseudoElement;volatile;h0;h1;h2;h3;direct;[vt];[pn];constructor(e,t){this.text=e.text,this.specificity=e.specificity;let n=subjectKey(e);this.keyKind=n.kind,this.key=n.value,this.pseudoElement=e.pseudoElement,this.volatile=t.volatile;let r=ancestorHashes(e);this.h0=r.length>0?r[0]:-1,this.h1=r.length>1?r[1]:-1,this.h2=r.length>2?r[2]:-1,this.h3=r.length>3?r[3]:-1,this.direct=!t.usesScope&&t.nthTests.length===0,this[vt]=e,this[pn]=t}get specificityTuple(){return unpackSpecificity(this.specificity)}};function compileSelectorList(e,t){let n=new SelectorParser(e).parseSelectorList();if(n===null)return null;let r=[];for(let e=0;e<n.items.length;e++){let i=new CompileInfo;if(t?.namespaces!==void 0){let e=t.namespaces;i.resolve=t=>e.has(t)?e.get(t):void 0}t!==void 0&&`defaultNamespace`in t&&(i.defaultNs=t.defaultNamespace);let a=compileComplex(n.items[e],i);if(i.error!==``)return null;r.push(new CompiledSelector(a,i))}return{text:e,serialized:serializeSelectorList(n),selectors:r}}function isSupportedSelector(e){let t=new SelectorParser(e).parseSelectorList();if(t===null)return!1;for(let e=0;e<t.items.length;e++){let n=new CompileInfo;if(compileComplex(t.items[e],n),n.error!==``||n.forgivingDropped)return!1}return!0}function serializeSelector(e,t){let n=new SelectorParser(e).parseSelectorList();return n===null?null:t===void 0?serializeSelectorList(n):withNamespaceContext(t,()=>serializeSelectorList(n))}function normalizePseudo(e){let t=0;for(;t<e.length&&e.charCodeAt(t)===58;)t++;return t===0?e:e.slice(t)}function matchesSelector(e,t,n,r){let i=n==null||n===``?``:normalizePseudo(n);if(e.pseudoElement!==i)return!1;let a=setScope(r?.scope??null),o=r?.shadowHost===void 0?null:setHostContext(r.shadowHost);try{return r?.shadowHost!==void 0&&r.shadowHost===t?matchFeaturelessHost(e[vt],t):matchComplex(e[vt],t)}finally{setScope(a),r?.shadowHost!==void 0&&setHostContext(o),e[pn].nthTests.length!==0&&resetMemos(e[pn])}}function matchesSelectorDirect(e,t,n){return e.pseudoElement===n?e.direct?e[vt].fn(t):matchesSelector(e,t,n):!1}const Qc={width:1024,height:768,devicePixelRatio:1,mediaType:`screen`};var Tok=class{type;text;lower;num;unit;constructor(e,t,n,r,i){this.type=e,this.text=t,this.lower=n,this.num=r,this.unit=i}};function tokenize(e){let t=new CSSTokenizer(e),n=[];for(;;){let r=t.next();if(r===0)break;let i=r===1||r===2?t.value.toLowerCase():r===9?t.value:``;n.push(new Tok(r,e.slice(t.start,t.end),i,t.num,r===12?t.unit.toLowerCase():``))}return n}var MQNode=class{kind;children;name;op;value;op2;value2;constructor(e){this.kind=e,this.children=[],this.name=``,this.op=``,this.value=null,this.op2=``,this.value2=null}},MediaQuery=class{text;negated;type;condition;invalid;constructor(e,t,n,r,i){this.text=e,this.negated=t,this.type=n,this.condition=r,this.invalid=i}},MQParser=class{toks;i;constructor(e){this.toks=e,this.i=0}ws(){for(;this.i<this.toks.length&&this.toks[this.i].type===13;)this.i++}peek(){return this.ws(),this.i<this.toks.length?this.toks[this.i]:null}ident(e){let t=this.peek();return t!==null&&t.type===1&&t.lower===e&&(this.i++,!0)}atEnd(){return this.peek()===null}condition(e){if(this.ident(`not`)){let e=this.inParens();if(e===null)return null;let t=new MQNode(1);return t.children.push(e),t}let t=this.inParens();if(t===null)return null;let n=this.peek();if(n===null||n.type!==1||n.lower!==`and`&&n.lower!==`or`)return t;let r=n.lower;if(r===`or`&&!e)return null;let i=new MQNode(r===`and`?2:3);for(i.children.push(t);this.ident(r);){let e=this.inParens();if(e===null)return null;i.children.push(e)}let a=this.peek();return a!==null&&a.type===1&&(a.lower===`and`||a.lower===`or`)?null:i}inParens(){let e=this.peek();if(e===null)return null;if(e.type===2)return this.i++,this.skipToClose()?new MQNode(5):null;if(e.type!==21)return null;this.i++;let t=this.i,n=this.peek();if(n!==null&&(n.type===21||n.type===1&&n.lower===`not`||n.type===2)){let e=this.condition(!0);if(e!==null){let t=this.peek();if(t!==null&&t.type===22)return this.i++,e}this.i=t}let r=this.feature();if(r!==null){let e=this.peek();if(e!==null&&e.type===22)return this.i++,r}return this.i=t,this.skipToClose()?new MQNode(5):null}skipToClose(){let e=1;for(;this.i<this.toks.length;){let t=this.toks[this.i++].type;if(t===21||t===2||t===19||t===23)e++;else if((t===22||t===20||t===24)&&(e--,e===0))return!0}return!1}value(){let e=this.peek();if(e===null)return null;if(e.type===10){this.i++;let t=this.i,n=this.peek();if(n!==null&&n.type===9&&n.lower===`/`){this.i++;let t=this.peek();return t!==null&&t.type===10?(this.i++,[e,t]):null}return this.i=t,[e]}return e.type===12||e.type===1||e.type===11?(this.i++,[e]):null}op(){let e=this.peek();if(e===null||e.type!==9)return``;let t=e.lower;return t!==`<`&&t!==`>`&&t!==`=`?``:(this.i++,t!==`=`&&this.i<this.toks.length&&this.toks[this.i].type===9&&this.toks[this.i].lower===`=`?(this.i++,t+`=`):t)}feature(){let e=this.peek();if(e===null)return null;if(e.type===1){let t=this.i;this.i++;let n=new MQNode(4);n.name=e.lower;let r=this.peek();if(r!==null&&r.type===22)return n;if(r!==null&&r.type===16){this.i++;let e=this.value();return e===null?null:(n.op=`:`,n.value=e,n)}let i=this.op();if(i!==``){let e=this.value();return e===null?null:(n.op=i,n.value=e,n)}this.i=t}let t=this.value();if(t===null)return null;let n=this.op();if(n===``)return null;let r=this.peek();if(r===null||r.type!==1)return null;this.i++;let i=new MQNode(4);i.name=r.lower,i.op=flip$1(n),i.value=t;let a=this.op();if(a!==``){if(n[0]!==a[0]||n===`=`||a===`=`)return null;let e=this.value();if(e===null)return null;i.op2=a,i.value2=e}return i}};function flip$1(e){switch(e){case`<`:return`>`;case`<=`:return`>=`;case`>`:return`<`;case`>=`:return`<=`}return e}__name(flip$1,`flip`);const $c=/* @__PURE__ */ new Set([`all`,`screen`,`print`,`speech`,`tty`,`tv`,`projection`,`handheld`,`braille`,`embossed`,`aural`]);function serializeTokens(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];switch(r.type){case 13:t!==``&&!t.endsWith(` `)&&!t.endsWith(`(`)&&(t+=` `);break;case 1:t+=r.lower;break;case 16:for(t=t.trimEnd()+`: `;n+1<e.length&&e[n+1].type===13;)n++;break;case 22:t=t.trimEnd()+`)`;break;case 10:t+=formatNumber(r.num);break;case 12:t+=formatNumber(r.num)+r.unit;break;case 9:if(r.lower===`/`)for(t=t.trimEnd()+` / `;n+1<e.length&&e[n+1].type===13;)n++;else t+=r.text;break;default:t+=r.text}}return t.trim()}function parseQuery(e){let t=new MQParser(e),n=serializeTokens(e),r=new MediaQuery(`not all`,!1,`all`,null,!0);if(t.atEnd())return r;let i=t.peek();if(i.type===1&&i.lower!==`not`&&i.lower!==`only`&&i.lower!==`and`&&i.lower!==`or`){let e=i.lower;t.i++;let a=null;return t.ident(`and`)&&(a=t.condition(!1),a===null)||!t.atEnd()||e===`layer`?r:new MediaQuery(n,!1,e,a,!1)}if(i.type===1&&(i.lower===`not`||i.lower===`only`)){let e=t.i,a=i.lower;t.i++;let o=t.peek();if(o!==null&&o.type===1&&o.lower!==`and`&&o.lower!==`or`&&o.lower!==`not`&&o.lower!==`only`){t.i++;let e=null;return t.ident(`and`)&&(e=t.condition(!1),e===null)||!t.atEnd()?r:new MediaQuery(n,a===`not`,o.lower,e,!1)}t.i=e}let a=t.condition(!0);return a===null||!t.atEnd()?r:new MediaQuery(n,!1,`all`,a,!1)}const el=/* @__PURE__ */ new Map;function parseMediaQueryList(e){let t=el.get(e);if(t!==void 0)return t;let n=tokenize(e),r=[],i=0,a=0,o=!1;for(let e=0;e<=n.length;e++){let t=e<n.length?n[e]:null;if(t!==null&&(t.type===21||t.type===2||t.type===19?a++:(t.type===22||t.type===20)&&a--,t.type!==13&&(o=!0)),t===null||t.type===18&&a===0){let a=n.slice(i,e);(t!==null||o)&&r.push(parseQuery(a)),i=e+1}}return r.length===1&&r[0].invalid&&n.every(e=>e.type===13)&&(r.length=0),el.size>500&&el.clear(),el.set(e,r),r}function serializeMediaQueryList(e){let t=``;for(let n=0;n<e.length;n++)t+=(n===0?``:`, `)+e[n].text;return t}function lengthPx(e){if(e.type===10)return e.num===0?0:null;if(e.type!==12)return null;switch(e.unit){case`px`:return e.num;case`em`:case`rem`:return e.num*16;case`in`:return e.num*96;case`cm`:return e.num*96/2.54;case`mm`:return e.num*96/25.4;case`pt`:return e.num*96/72;case`pc`:return e.num*16;case`q`:return e.num*96/101.6;case`vw`:return null}return null}function resolutionDppx(e){if(e.type!==12)return null;switch(e.unit){case`dppx`:case`x`:return e.num;case`dpi`:return e.num/96;case`dpcm`:return e.num*2.54/96}return null}function compare(e,t,n){let r=1e-9;switch(t){case`:`:case`=`:return Math.abs(e-n)<r;case`<`:return e<n-r;case`<=`:return e<=n+r;case`>`:return e>n+r;case`>=`:return e>=n-r}return!1}const tl={orientation:``,"prefers-color-scheme":`light`,"prefers-reduced-motion":`no-preference`,"prefers-reduced-transparency":`no-preference`,"prefers-reduced-data":`no-preference`,"prefers-contrast":`no-preference`,"forced-colors":`none`,"inverted-colors":`none`,hover:`hover`,"any-hover":`hover`,pointer:`fine`,"any-pointer":`fine`,"display-mode":`browser`,scripting:`enabled`,update:`fast`,"overflow-block":`scroll`,"overflow-inline":`scroll`,"color-gamut":`srgb`,"dynamic-range":`standard`,"video-dynamic-range":`standard`};function evalNode(e,t){switch(e.kind){case 6:return 1;case 5:return-1;case 1:{let n=evalNode(e.children[0],t);return n===-1?-1:1-n}case 2:{let n=1;for(let r of e.children){let e=evalNode(r,t);if(e===0)return 0;e===-1&&(n=-1)}return n}case 3:{let n=0;for(let r of e.children){let e=evalNode(r,t);if(e===1)return 1;e===-1&&(n=-1)}return n}case 4:return evalFeature(e,t)}return-1}function evalFeature(e,t){let n=e.name,r=e.op;if(n.startsWith(`-webkit-`)&&(n=n.slice(8)),r===`:`&&(n.startsWith(`min-`)||n.startsWith(`max-`)))r=n.startsWith(`min-`)?`>=`:`<=`,n=n.slice(4);else if(n.startsWith(`min-`)||n.startsWith(`max-`))return-1;let i=t.features?.[n],a=i===void 0?void 0:String(i),o=null,s=`range`;switch(n){case`width`:case`device-width`:o=t.width;break;case`height`:case`device-height`:o=t.height;break;case`aspect-ratio`:case`device-aspect-ratio`:o=t.height===0?0:t.width/t.height,s=`ratio`;break;case`resolution`:case`device-pixel-ratio`:o=t.devicePixelRatio,s=n===`resolution`?`resolution`:`number`;break;case`color`:o=8,s=`integer`;break;case`color-index`:case`monochrome`:case`grid`:o=0,s=`integer`;break;default:s=`discrete`}if(a!==void 0&&s!==`discrete`){let e=Number(a);Number.isNaN(e)||(o=e)}if(s===`discrete`){if(r!==``&&r!==`:`)return-1;let i=a??tl[n];if(n===`orientation`&&(i=a??(t.height>=t.width?`portrait`:`landscape`)),i===void 0)return-1;if(r===``)return+(i!==`none`&&i!==`no-preference`);let o=e.value;return o.length!==1||o[0].type!==1?0:+(o[0].lower===i)}if(o===null)return-1;if(r===``)return o===0?0:1;let check=(e,t)=>{let n=null;return s===`range`?n=e.length===1?lengthPx(e[0]):null:s===`ratio`?e.length===2?n=e[1].num===0?1/0:e[0].num/e[1].num:e.length===1&&e[0].type===10&&(n=e[0].num):s===`resolution`?n=e.length===1?resolutionDppx(e[0]):null:e.length===1&&e[0].type===10&&(n=e[0].num),n===null?-1:+!!compare(o,t,n)},c=check(e.value,r);return e.value2===null||c!==1?c:check(e.value2,e.op2)}function evaluateMediaQuery$1(e,t){if(e.invalid)return!1;let n=t.mediaType??`screen`,r=e.type===`all`||e.type===n;$c.has(e.type)||(r=!1);let i=r;return i&&e.condition!==null&&(i=evalNode(e.condition,t)===1),e.negated?!i:i}__name(evaluateMediaQuery$1,`evaluateMediaQuery`);function evaluateMediaQueryList$1(e,t){if(e.length===0)return!0;for(let n=0;n<e.length;n++)if(evaluateMediaQuery$1(e[n],t))return!0;return!1}__name(evaluateMediaQueryList$1,`evaluateMediaQueryList`);function matchMediaText(e,t){return evaluateMediaQueryList$1(parseMediaQueryList(e),t)}function splitSelectorList(e){let t=[],n=new CSSTokenizer(e),r=0,i=0;for(;;){let a=n.next();if(a===0)break;a===2||a===21||a===19?r++:a===22||a===20?r--:a===18&&r===0&&(t.push(e.slice(i,n.start).trim()),i=n.end)}return t.push(e.slice(i).trim()),t}function containsNesting(e){if(e.indexOf(`&`)===-1)return!1;let t=new CSSTokenizer(e);for(;;){let e=t.next();if(e===0)return!1;if(e===9&&t.value===`&`)return!0}}function resolveNested(e,t){let n=[],r=t.length===1&&isGluableCompound(t[0])?t[0]:`:is(`+t.join(`, `)+`)`;for(let t of splitSelectorList(e)){if(t===``)continue;let e=t;containsNesting(e)||(e=`& `+e),n.push(replaceNesting(e,r))}return n}function isGluableCompound(e){let t=e.charCodeAt(0);if(t!==46&&t!==35&&t!==91&&t!==58)return!1;let n=new CSSTokenizer(e),r=0;for(;;){let e=n.next();if(e===0)return!0;if(e===2||e===21||e===19)r++;else if(e===22||e===20)r--;else if(r===0&&(e===13||e===18||e===9&&(n.value===`>`||n.value===`+`||n.value===`~`||n.value===`|`)))return!1}}function replaceNesting(e,t){let n=new CSSTokenizer(e),r=``,i=0;for(;;){let a=n.next();if(a===0)break;a===9&&n.value===`&`&&(r+=e.slice(i,n.start)+t,i=n.end)}return r+e.slice(i)}function supportsDeclaration(e,t){let n=isCustomPropertyName(e)?e:e.toLowerCase();return isCustomPropertyName(n)?t.trim()!==``||!0:new DeclBlock().setValue(n,t,!1,!1)}var Cursor=class{src;t;type;constructor(e){this.src=e,this.t=new CSSTokenizer(e),this.type=0,this.next()}next(){do this.type=this.t.next();while(this.type===13)}block(){let e=this.t.end,t=1,n=e;for(;t>0;){let e=this.t.next();if(e===0)return null;e===21||e===2||e===19?t++:(e===22||e===20)&&(t--,n=this.t.start)}return this.next(),this.src.slice(e,n)}};function condition(e){if(e.type===1&&e.t.value.toLowerCase()===`not`){e.next();let t=inParens(e);return t===-1?-1:1-t}let t=inParens(e);if(t===-1)return-1;if(e.type!==1)return t;let n=e.t.value.toLowerCase();if(n!==`and`&&n!==`or`)return-1;for(;e.type===1&&e.t.value.toLowerCase()===n;){e.next();let r=inParens(e);if(r===-1)return-1;t=n===`and`?t&r:t|r}return e.type===1?-1:t}function inParens(e){if(e.type===2){let t=e.t.value.toLowerCase(),n=e.block();return n===null?-1:t===`selector`?+!!isSupportedSelector(n.trim()):0}if(e.type!==21)return-1;let t=e.block();if(t===null)return-1;let n=new Cursor(t);if(n.type===21||n.type===2||n.type===1&&n.t.value.toLowerCase()===`not`){let e=condition(n);if(e!==-1&&n.type===0)return e}return declaration(t)}function declaration(e){let t=new CSSTokenizer(e),n=t.next();for(;n===13;)n=t.next();if(n!==1)return 0;let r=t.value;for(n=t.next();n===13;)n=t.next();if(n!==16)return 0;let i=e.slice(t.end).trim(),a=/!\s*important\s*$/i.exec(i);return a!==null&&(i=i.slice(0,a.index).trim()),+!!supportsDeclaration(r,i)}function evaluateSupportsCondition(e){let t=new Cursor(e),n=condition(t);return n!==-1&&t.type===0?n===1:declaration(e)===1}var CSSRuleList=class{[V];[dn];constructor(e){this[V]=e,this[dn]=0,this._sync()}_setRules(e){this[V]=e,this._sync()}_sync(){let e=this,t=this[V];for(let n=0;n<t.length;n++)e[n]=t[n];for(let n=t.length;n<this[dn];n++)delete e[n];this[dn]=t.length}get length(){return this[V].length}item(e){return this[V][e>>>0]??null}*[Symbol.iterator](){yield*this[V]}get[Symbol.toStringTag](){return`CSSRuleList`}},MediaList=class{[qn];[z];[dn];constructor(e,t){this[qn]=e===``?[]:parseMediaQueryList(e),this[z]=t,this[dn]=0,this._sync()}_sync(){let e=this,t=this[qn];for(let n=0;n<t.length;n++)e[n]=t[n].text;for(let n=t.length;n<this[dn];n++)delete e[n];this[dn]=t.length}get mediaText(){return serializeMediaQueryList(this[qn])}set mediaText(e){let t=e===null?``:String(e);this[qn]=t===``?[]:parseMediaQueryList(t).slice(),this._sync(),this[z]?._changed()}get length(){return this[qn].length}item(e){return this[qn][e>>>0]?.text??null}appendMedium(e){let t=parseMediaQueryList(String(e));if(t.length===1){for(let e of this[qn])if(e.text===t[0].text)return;this[qn]=[...this[qn],t[0]],this._sync(),this[z]?._changed()}}deleteMedium(e){if(arguments.length===0)throw TypeError(`Failed to execute 'deleteMedium' on 'MediaList': 1 argument required, but only 0 present.`);let t=parseMediaQueryList(String(e));if(t.length!==1)return;let n=this[qn].length;if(this[qn]=this[qn].filter(e=>e.text!==t[0].text),this[qn].length===n)throw new DOMException(`Failed to execute 'deleteMedium' on 'MediaList': Failed to delete the medium.`,`NotFoundError`);this._sync(),this[z]?._changed()}toString(){return this.mediaText}*[Symbol.iterator](){for(let e of this[qn])yield e.text}get[Symbol.toStringTag](){return`MediaList`}},StyleSheetList=class{[Cr];[dn];constructor(){this[Cr]=[],this[dn]=0}_set(e){this[Cr]=e;let t=this;for(let n=0;n<e.length;n++)t[n]=e[n];for(let n=e.length;n<this[dn];n++)delete t[n];this[dn]=e.length}get length(){return this[Cr].length}item(e){return this[Cr][e>>>0]??null}*[Symbol.iterator](){yield*this[Cr]}get[Symbol.toStringTag](){return`StyleSheetList`}},StyleSheet=class{[Nn];[I];[Ot];[Pr];[tn];constructor(e,t,n,r){this[Nn]=e,this[I]=new MediaList(t,this),this[Ot]=!1,this[Pr]=n,this[tn]=r}_changed(){}get type(){return`text/css`}get href(){return this[tn]}get ownerNode(){return this[Nn]}get parentStyleSheet(){return null}get title(){let e=this[Nn],t=e===null?this[Pr]:e.getAttribute(`title`);return t===``?null:t}get media(){return this[I]}set media(e){this[I].mediaText=String(e)}get disabled(){return this[Ot]}set disabled(e){let t=!!e;t!==this[Ot]&&(this[Ot]=t,this._changed())}};function syntaxError(e,t,n){return new DOMException(`Failed to execute '${e}' on '${t}': Failed to parse the rule '${n}'.`,`SyntaxError`)}var nl=class CSSStyleSheet extends StyleSheet{[V];[bn];[jt];[ot];[kt];[Pn];[kn];[St];[K];constructor(e){let t=e?.media;super(null,t===void 0?``:typeof t==`string`?t:t.mediaText,null,null),this[V]=[],this[bn]=null,this[jt]=null,this[ot]=!0,this[kt]=!1,this[Pn]=null,this[kn]=null,this[St]=void 0,this[K]=0,e?.disabled&&(this[Ot]=!0),this[jt]=currentWindowOrNull()?.document??null,e?.baseURL!==void 0&&(this[tn]=null)}static _forOwner(e,t,n,r){let i=new CSSStyleSheet;return i[ot]=!1,i[Nn]=e,i[jt]=e[j].doc,i[tn]=r,i[Pr]=e.getAttribute(`title`),n!==``&&(i[I].mediaText=n),i._setText(t),i}_changed(){this[K]++;let e=this[jt];e!==null&&e[Dr]++}_setText(e){for(let e of this[V])e[Sr]=null;this[V]=[],this[kn]=null,this[St]=void 0;let t=e===``?[]:parseStylesheet(e),n=!1;for(let e of t){let t=e.kind===2?e.name.toLowerCase():``;if(t===`import`&&this[ot]||(t===`import`||t===`namespace`)&&(n&&t===`import`||n&&this[V].some(e=>!(e instanceof CSSImportRule)&&!(e instanceof CSSNamespaceRule)&&!(e instanceof CSSLayerStatementRule))))continue;let r=createRule(e,null,this,!1,!1);r!==null&&(r instanceof CSSImportRule||r instanceof CSSLayerStatementRule||r instanceof CSSNamespaceRule||(n=!0),r[Sr]=this,this[V].push(r),r instanceof CSSNamespaceRule&&this._registerNamespace(r))}this[bn]?._setRules(this[V]),this._changed()}_registerNamespace(e){e[Un]===``?this[St]=e[Br]===``?null:e[Br]:(this[kn]??=/* @__PURE__ */ new Map).set(e[Un],e[Br]===``?null:e[Br])}get parentStyleSheet(){return this[Pn]===null?null:this[Pn].parentStyleSheet}get ownerRule(){return this[Pn]}get cssRules(){return this[bn]??=new CSSRuleList(this[V])}get rules(){return this.cssRules}insertRule(e,t=0){if(arguments.length===0)throw TypeError(`Failed to execute 'insertRule' on 'CSSStyleSheet': 1 argument required, but only 0 present.`);if(this[kt])throw new DOMException(`Failed to execute 'insertRule' on 'CSSStyleSheet': Cannot modify a sheet while it is being replaced.`,`NotAllowedError`);let n=String(e),r=t>>>0;if(r>this[V].length)throw new DOMException(`Failed to execute 'insertRule' on 'CSSStyleSheet': The index provided (${r}) is larger than the maximum index (${this[V].length}).`,`IndexSizeError`);let i=parseRule(n);if(i===null||(i.kind===2?i.name.toLowerCase():``)===`import`&&this[ot])throw syntaxError(`insertRule`,`CSSStyleSheet`,n);let a=createRule(i,null,this,!1,!1);if(a===null)throw syntaxError(`insertRule`,`CSSStyleSheet`,n);if(a instanceof CSSImportRule)for(let e=0;e<r;e++){let t=this[V][e];if(!(t instanceof CSSImportRule)&&!(t instanceof CSSLayerStatementRule))throw new DOMException(`Failed to execute 'insertRule' on 'CSSStyleSheet': @import rules must precede all rules except @charset and @layer statements.`,`HierarchyRequestError`)}else if(!(a instanceof CSSNamespaceRule)&&!(a instanceof CSSLayerStatementRule)){for(let e=r;e<this[V].length;e++)if(this[V][e]instanceof CSSImportRule||this[V][e]instanceof CSSNamespaceRule)throw new DOMException(`Failed to execute 'insertRule' on 'CSSStyleSheet': Rules cannot be inserted before @import or @namespace rules.`,`HierarchyRequestError`)}else if(a instanceof CSSNamespaceRule){for(let e of this[V])if(!(e instanceof CSSImportRule)&&!(e instanceof CSSNamespaceRule)&&!(e instanceof CSSLayerStatementRule))throw new DOMException(`Failed to execute 'insertRule' on 'CSSStyleSheet': Failed to insert a @namespace rule after other rules.`,`InvalidStateError`);this._registerNamespace(a)}return a[Sr]=this,this[V].splice(r,0,a),this[bn]?._sync(),this._changed(),r}deleteRule(e){if(arguments.length===0)throw TypeError(`Failed to execute 'deleteRule' on 'CSSStyleSheet': 1 argument required, but only 0 present.`);if(this[kt])throw new DOMException(`Failed to execute 'deleteRule' on 'CSSStyleSheet': Cannot modify a sheet while it is being replaced.`,`NotAllowedError`);let t=e>>>0;if(t>=this[V].length)throw new DOMException(`Failed to execute 'deleteRule' on 'CSSStyleSheet': The index provided (${t}) is larger than the maximum index (${Math.max(0,this[V].length-1)}).`,`IndexSizeError`);let[n]=this[V].splice(t,1);n[Sr]=null,this[bn]?._sync(),this._changed()}addRule(e=`undefined`,t=`undefined`,n){let r=String(e)+` { `+String(t)+` }`;return String(t)===``&&(r=String(e)+` { }`),this.insertRule(r,n===void 0?this[V].length:n),-1}removeRule(e=0){this.deleteRule(e)}replace(e){if(!this[ot]||this[kt])return Promise.reject(new DOMException(`Failed to execute 'replace' on 'CSSStyleSheet': Can't call replace on non-constructed CSSStyleSheets.`,`NotAllowedError`));this[kt]=!0;let t=String(e);return Promise.resolve().then(()=>(this._setText(t),this[kt]=!1,this))}replaceSync(e){if(!this[ot]||this[kt])throw new DOMException(`Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.`,`NotAllowedError`);this._setText(String(e))}get[Symbol.toStringTag](){return`CSSStyleSheet`}},rl=class CSSRule{[Sr];[B];static STYLE_RULE=1;static CHARSET_RULE=2;static IMPORT_RULE=3;static MEDIA_RULE=4;static FONT_FACE_RULE=5;static PAGE_RULE=6;static KEYFRAMES_RULE=7;static KEYFRAME_RULE=8;static MARGIN_RULE=9;static NAMESPACE_RULE=10;static COUNTER_STYLE_RULE=11;static SUPPORTS_RULE=12;static DOCUMENT_RULE=13;static FONT_FEATURE_VALUES_RULE=14;static VIEWPORT_RULE=15;static REGION_STYLE_RULE=16;constructor(){if(new.target===CSSRule)throw TypeError(`Illegal constructor`);this[Sr]=null,this[B]=null}get type(){return 0}get cssText(){return``}set cssText(e){}get parentRule(){return this[B]}get parentStyleSheet(){let e=this;for(;e[B]!==null;)e=e[B];return e[Sr]}_changed(){this.parentStyleSheet?._changed()}_declarationsChanged(){this._changed()}};for(let[e,t]of Object.entries({STYLE_RULE:1,CHARSET_RULE:2,IMPORT_RULE:3,MEDIA_RULE:4,FONT_FACE_RULE:5,PAGE_RULE:6,KEYFRAMES_RULE:7,KEYFRAME_RULE:8,MARGIN_RULE:9,NAMESPACE_RULE:10,COUNTER_STYLE_RULE:11,SUPPORTS_RULE:12,DOCUMENT_RULE:13,FONT_FEATURE_VALUES_RULE:14,VIEWPORT_RULE:15,REGION_STYLE_RULE:16}))Object.defineProperty(rl.prototype,e,{value:t,enumerable:!0});function indent(e){return` `+e.replace(/\n/g,`
|
|
9
|
+
`),a.anchor=r??null}function internalsWillValidate(e){return assertFACE(e,`willValidate`),!faceState(e)._barredFromValidation()}function internalsValidity(e){assertFACE(e,`validity`);let t=faceState(e);return t.validity??=new ValidityState(t)}function internalsValidationMessage(e){assertFACE(e,`validationMessage`);let t=faceState(e);return t._barredFromValidation()?``:t.message}function internalsCheckValidity(e,t=`checkValidity`){assertFACE(e,t);let n=faceState(e);return n._barredFromValidation()||n.flags===0?!0:(fireEvent$1(e.node,`invalid`,!1,!0),!1)}function faceEntries(e,t){let n=ws.get(e)?.value??null;if(n===null)return;if(n instanceof FormData){for(let[e,r]of n)t.push([e,r]);return}let r=attr(e,`name`);r!==null&&r!==``&&t.push([r,n])}function invoke(e,t,n){enqueueFormCallback(e.node,t,n)}function faceReset(e){invoke(e,`formResetCallback`,[])}function flushFaceReactions(){flushReactions()}function faceStateMaybeChanged(e){let t=faceState(e),n=formOwner(e);n!==t.lastOwner&&(t.lastOwner=n,invoke(e,`formAssociatedCallback`,[n===null?null:n.node]));let r=isActuallyDisabled(e);r!==t.lastDisabled&&(t.lastDisabled=r,invoke(e,`formDisabledCallback`,[r]))}setFaceUpgradeHook(faceStateMaybeChanged);function isNewline(e){return e===10||e===13||e===12}function isWhitespace(e){return e===32||e===9||e===10||e===13||e===12}function isDigit(e){return e>=48&&e<=57}function isHexDigit(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function hexValue(e){return e<=57?e-48:e<=70?e-65+10:e-97+10}function isNonAsciiIdent(e){return e<183?!1:e===183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e===8204||e===8205||e===8255||e===8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=55296&&e<=57343||e>=63744&&e<=64975||e>=65008&&e<=65533}function isIdentStart(e){return e>=97&&e<=122||e>=65&&e<=90||e===95||isNonAsciiIdent(e)}function isIdentChar(e){return isIdentStart(e)||isDigit(e)||e===45}function isNonPrintable(e){return e>=0&&e<=8||e===11||e>=14&&e<=31||e===127}var CSSTokenizer=class{src;len;pos;type;start;end;value;num;isInteger;unit;hashId;sign;comments;constructor(e){this.src=e,this.len=e.length,this.pos=0,this.type=0,this.start=0,this.end=0,this.value=``,this.num=0,this.isInteger=!0,this.unit=``,this.hashId=!1,this.sign=``,this.comments=0}reset(e){this.pos=e}code(e){return e<this.len?this.src.charCodeAt(e):-1}validEscape(e){return this.code(e)===92&&!isNewline(this.code(e+1))}startsIdent(e){let t=this.code(e);if(t===45){let t=this.code(e+1);return isIdentStart(t)||t===45||this.validEscape(e+1)}return isIdentStart(t)?!0:this.validEscape(e)}startsNumber(e){let t=this.code(e);if(t===43||t===45){let t=this.code(e+1);return isDigit(t)?!0:t===46&&isDigit(this.code(e+2))}return isDigit(t===46?this.code(e+1):t)}consumeEscape(){let e=this.code(this.pos);if(e===-1)return`�`;if(isHexDigit(e)){let e=0,t=0;for(;t<6&&isHexDigit(this.code(this.pos));)e=e*16+hexValue(this.code(this.pos)),this.pos++,t++;let n=this.code(this.pos);return n===13&&this.code(this.pos+1)===10?this.pos+=2:isWhitespace(n)&&this.pos++,e===0||e>=55296&&e<=57343||e>1114111?`�`:String.fromCodePoint(e)}if(this.pos++,e===0)return`�`;if(e>=55296&&e<=56319){let e=this.code(this.pos);if(e>=56320&&e<=57343)return this.pos++,this.src.slice(this.pos-2,this.pos)}return this.src.slice(this.pos-1,this.pos)}consumeName(){let e=this.pos;for(;this.pos<this.len;){let e=this.src.charCodeAt(this.pos);if(isIdentChar(e)&&e!==0)this.pos++;else break}if(!this.validEscape(this.pos)&&this.code(this.pos)!==0)return this.src.slice(e,this.pos);let t=this.src.slice(e,this.pos);for(;this.pos<this.len;){let e=this.src.charCodeAt(this.pos);if(e===0)t+=`�`,this.pos++;else if(isIdentChar(e))t+=this.src.slice(this.pos,this.pos+1),this.pos++;else if(this.validEscape(this.pos))this.pos++,t+=this.consumeEscape();else break}return t}consumeNumber(){let e=this.pos,t=!0,n=this.code(this.pos);for(this.sign=``,(n===43||n===45)&&(this.sign=n===43?`+`:`-`,this.pos++);isDigit(this.code(this.pos));)this.pos++;if(this.code(this.pos)===46&&isDigit(this.code(this.pos+1)))for(this.pos+=2,t=!1;isDigit(this.code(this.pos));)this.pos++;if(n=this.code(this.pos),n===69||n===101){let e=this.code(this.pos+1);if(isDigit(e))for(this.pos+=2,t=!1;isDigit(this.code(this.pos));)this.pos++;else if((e===43||e===45)&&isDigit(this.code(this.pos+2)))for(this.pos+=3,t=!1;isDigit(this.code(this.pos));)this.pos++}this.num=Number(this.src.slice(e,this.pos)),this.isInteger=t}consumeNumeric(){return this.consumeNumber(),this.startsIdent(this.pos)?(this.unit=this.consumeName(),this.value=this.unit,12):this.code(this.pos)===37?(this.pos++,11):10}consumeString(e){let t=this.pos;for(;this.pos<this.len;){let n=this.src.charCodeAt(this.pos);if(n===e)return this.value=this.src.slice(t,this.pos),this.pos++,5;if(n===92||n===0||isNewline(n))break;this.pos++}let n=this.src.slice(t,this.pos);for(;;){if(this.pos>=this.len)return this.value=n,5;let t=this.src.charCodeAt(this.pos);if(t===e)return this.pos++,this.value=n,5;if(isNewline(t))return this.value=n,6;if(t===92){let e=this.code(this.pos+1);e===-1?this.pos++:isNewline(e)?this.pos+=e===13&&this.code(this.pos+2)===10?3:2:(this.pos++,n+=this.consumeEscape())}else t===0?(n+=`�`,this.pos++):(n+=this.src.slice(this.pos,this.pos+1),this.pos++)}}consumeBadUrl(){for(;this.pos<this.len;){if(this.src.charCodeAt(this.pos)===41){this.pos++;break}this.validEscape(this.pos)?(this.pos++,this.consumeEscape()):this.pos++}return this.value=``,8}consumeUrl(){for(;isWhitespace(this.code(this.pos));)this.pos++;let e=``;for(;;){if(this.pos>=this.len)return this.value=e,7;let t=this.src.charCodeAt(this.pos);if(t===41)return this.pos++,this.value=e,7;if(isWhitespace(t)){for(;isWhitespace(this.code(this.pos));)this.pos++;let t=this.code(this.pos);return t===41?(this.pos++,this.value=e,7):t===-1?(this.value=e,7):this.consumeBadUrl()}if(t===34||t===39||t===40||isNonPrintable(t))return this.pos++,this.consumeBadUrl();if(t===92){if(this.validEscape(this.pos))this.pos++,e+=this.consumeEscape();else return this.consumeBadUrl()}else t===0?(e+=`�`,this.pos++):(e+=this.src.slice(this.pos,this.pos+1),this.pos++)}}consumeIdentLike(){let e=this.consumeName();if(this.value=e,this.code(this.pos)===40){if(this.pos++,e.length===3&&asciiLower3(e)===`url`){let e=this.pos;for(;isWhitespace(this.code(e))&&isWhitespace(this.code(e+1));)e++;let t=this.code(e),n=isWhitespace(t)?this.code(e+1):t;return n===34||n===39?2:this.consumeUrl()}return 2}return 1}skipComments(){for(;this.code(this.pos)===47&&this.code(this.pos+1)===42;){let e=this.src.indexOf(`*/`,this.pos+2);this.pos=e===-1?this.len:e+2,this.comments++}}next(){this.skipComments(),this.start=this.pos,this.value=``;let e=this.consumeToken();return this.type=e,this.end=this.pos,e}consumeToken(){if(this.pos>=this.len)return 0;let e=this.src.charCodeAt(this.pos);if(isWhitespace(e)){for(this.pos++;isWhitespace(this.code(this.pos));)this.pos++;return 13}switch(e){case 34:case 39:return this.pos++,this.consumeString(e);case 35:return isIdentChar(this.code(this.pos+1))||this.validEscape(this.pos+1)?(this.pos++,this.hashId=this.startsIdent(this.pos),this.value=this.consumeName(),4):this.delim();case 40:return this.pos++,21;case 41:return this.pos++,22;case 43:return this.startsNumber(this.pos)?this.consumeNumeric():this.delim();case 44:return this.pos++,18;case 45:return this.startsNumber(this.pos)?this.consumeNumeric():this.code(this.pos+1)===45&&this.code(this.pos+2)===62?(this.pos+=3,15):this.startsIdent(this.pos)?this.consumeIdentLike():this.delim();case 46:return this.startsNumber(this.pos)?this.consumeNumeric():this.delim();case 58:return this.pos++,16;case 59:return this.pos++,17;case 60:return this.code(this.pos+1)===33&&this.code(this.pos+2)===45&&this.code(this.pos+3)===45?(this.pos+=4,14):this.delim();case 64:return this.startsIdent(this.pos+1)?(this.pos++,this.value=this.consumeName(),3):this.delim();case 91:return this.pos++,19;case 92:return this.validEscape(this.pos)?this.consumeIdentLike():this.delim();case 93:return this.pos++,20;case 123:return this.pos++,23;case 125:return this.pos++,24}return isDigit(e)?this.consumeNumeric():isIdentStart(e)||e===0?this.consumeIdentLike():this.delim()}delim(){let e=this.src.charCodeAt(this.pos);if(e>=55296&&e<=56319){let e=this.code(this.pos+1);if(e>=56320&&e<=57343)return this.value=this.src.slice(this.pos,this.pos+2),this.pos+=2,9}return this.value=this.src.slice(this.pos,this.pos+1),this.pos++,9}};function asciiLower3(e){return e.toLowerCase()}var RawDecl=class{name;value;important;constructor(e,t,n){this.name=e,this.value=t,this.important=n}},RawRule=class{kind;name;prelude;hasBlock;decls;leading;rules;constructor(e,t,n,r){this.kind=e,this.name=t,this.prelude=n,this.hasBlock=r,this.decls=[],this.leading=0,this.rules=[]}};function closerFor(e){return e===2||e===21?22:e===19?20:e===23?24:0}function stripComments(e){let t=new CSSTokenizer(e),n=``,r=0,i=t.next();for(;i!==0;)t.start!==r&&n!==``&&t.type!==13&&!n.endsWith(` `)&&needsSeparator(n.charCodeAt(n.length-1),e.charCodeAt(t.start))&&(n+=`/**/`),n+=e.slice(t.start,t.end),r=t.end,i=t.next();return n.trim()}function needsSeparator(e,t){return(e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122||e===45||e===95||e>=128)&&(t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===45||t===95||t>=128)}function isAsciiCaseInsensitive(e,t){return e.length===t.length&&e.toLowerCase()===t}var CSSParser=class{src;t;peeked;stack;valueStart;valueEnd;importantEnd;important;valueHasBlock;valueOtherCount;constructor(e){this.src=e,this.t=new CSSTokenizer(e),this.peeked=!1,this.stack=[],this.valueStart=0,this.valueEnd=0,this.importantEnd=0,this.important=!1,this.valueHasBlock=!1,this.valueOtherCount=0}advance(){return this.peeked?(this.peeked=!1,this.t.type):this.t.next()}reconsume(){this.peeked=!0}advanceNonWs(){let e=this.advance();for(;e===13;)e=this.advance();return e}mark(){return this.t.start}restore(e){this.t.reset(e),this.peeked=!1}skipBlock(e){let t=this.stack,n=t.length;for(t.push(closerFor(e));t.length>n;){let e=this.t.next();if(e===0)break;e===t[t.length-1]?t.pop():(e===2||e===21||e===19||e===23)&&t.push(closerFor(e))}t.length=n}text(e,t,n){let r=this.src.slice(e,t);return this.t.comments!==n&&r.indexOf(`/*`)!==-1?stripComments(r):r}parseStylesheet(){let e=[];for(;;){let t=this.advance();if(t===0)break;if(t!==13&&t!==14&&t!==15){if(t===3){let t=this.consumeAtRule(!1);t!==null&&e.push(t)}else{this.reconsume();let t=this.consumeQualifiedRule(!1);t!==null&&e.push(t)}}}return e}consumeAtRule(e){let t=this.t.value,n=this.t.comments,r=-1,i=-1;for(;;){let a=this.advance();if(a===17||a===0)return new RawRule(2,t,r===-1?``:this.text(r,i,n),!1);if(a===24){if(e)return this.reconsume(),new RawRule(2,t,r===-1?``:this.text(r,i,n),!1);r===-1&&(r=this.t.start),i=this.t.end}else{if(a===23){let e=new RawRule(2,t,r===-1?``:this.text(r,i,n),!0);return this.consumeBlockContents(e),e}a!==13&&(r===-1&&(r=this.t.start),(a===2||a===21||a===19)&&this.skipBlock(a),i=this.t.end)}}}consumeQualifiedRule(e){let t=this.t.comments,n=-1,r=-1;for(;;){let i=this.advance();if(i===0)return null;if(i===24){if(e)return this.reconsume(),null;n===-1&&(n=this.t.start),r=this.t.end}else{if(i===17&&e)return null;if(i===23){let e=n===-1?``:this.text(n,r,t);if(e.charCodeAt(0)===45&&e.charCodeAt(1)===45&&e.indexOf(`:`)!==-1)return this.skipBlock(23),null;let i=new RawRule(1,``,e,!0);return this.consumeBlockContents(i),i}i!==13&&(n===-1&&(n=this.t.start),(i===2||i===21||i===19)&&this.skipBlock(i),r=this.t.end)}}}consumeBlockContents(e){for(;;){let t=this.advance();if(t===0||t===24)return;if(t===13||t===17)continue;if(t===3){let t=this.consumeAtRule(!0);t!==null&&e.rules.push(t);continue}let n=this.mark();if(t===1){let t=this.consumeDeclaration();if(t!==null){e.decls.push(t);let n=e.rules.length;if(n===0)e.leading=e.decls.length;else{let r=e.rules[n-1];r.kind!==3&&(r=new RawRule(3,``,``,!1),e.rules.push(r)),r.decls.push(t),r.leading=r.decls.length}continue}this.restore(n)}else this.reconsume();let r=this.consumeQualifiedRule(!0);r!==null&&e.rules.push(r)}}consumeDeclaration(){let e=this.t.value;if(this.advanceNonWs()!==16)return null;let t=this.t.comments;if(this.scanValue(),this.valueStart===-1)return e.charCodeAt(0)===45&&e.charCodeAt(1)===45?new RawDecl(e,``,this.important):new RawDecl(e,``,!1);let n=this.important?this.importantEnd:this.valueEnd,r=n<=this.valueStart?``:this.text(this.valueStart,n,t).trim();return(e.charCodeAt(0)!==45||e.charCodeAt(1)!==45)&&this.valueHasBlock&&this.valueOtherCount>0?null:new RawDecl(e,r,this.important)}scanValue(){this.valueStart=-1,this.valueEnd=-1,this.importantEnd=-1,this.important=!1,this.valueHasBlock=!1,this.valueOtherCount=0;let e=0,t=0,n=-1,r=-1,i=-1;for(;;){let a=this.advance();if(a===0||a===17)break;if(a===24){this.reconsume();break}if(a===13)continue;this.valueStart===-1&&(this.valueStart=this.t.start);let o=0;a===9&&this.t.value===`!`?o=1:a===1&&isAsciiCaseInsensitive(this.t.value,`important`)&&(o=2),a===23?this.valueHasBlock=!0:this.valueOtherCount++,(a===2||a===21||a===19||a===23)&&this.skipBlock(a),n=r,r=i,i=this.t.end,t=e,e=o}this.valueEnd=i,e===2&&t===1&&(this.important=!0,this.importantEnd=n===-1?this.valueStart:n,this.valueHasBlock&&(this.valueOtherCount-=2))}};function parseStylesheet(e){return new CSSParser(e).parseStylesheet()}function parseRule(e){let t=new CSSParser(e),n=t.advanceNonWs();if(n===0)return null;let r=null;return n===3?r=t.consumeAtRule(!1):(t.reconsume(),r=t.consumeQualifiedRule(!1)),r===null||(n=t.advanceNonWs(),n!==0)?null:r}function parseDeclarationList(e){let t=new CSSParser(e),n=new RawRule(1,``,``,!0);for(t.consumeBlockContents(n);t.t.type!==0;){let e=new RawRule(1,``,``,!0);t.consumeBlockContents(e);for(let t=0;t<e.decls.length;t++)n.decls.push(e.decls[t])}return n.decls}const Ts=[`-webkit-align-content`,0,``,``,`-webkit-align-items`,0,``,``,`-webkit-align-self`,0,``,``,`-webkit-animation`,0,``,`animation-name animation-duration animation-timing-function animation-delay animation-iteration-count animation-direction animation-fill-mode animation-play-state animation-timeline`,`-webkit-animation-delay`,0,``,``,`-webkit-animation-direction`,0,``,``,`-webkit-animation-duration`,0,``,``,`-webkit-animation-fill-mode`,0,``,``,`-webkit-animation-iteration-count`,0,``,``,`-webkit-animation-name`,0,``,``,`-webkit-animation-play-state`,0,``,``,`-webkit-animation-timing-function`,0,``,``,`-webkit-appearance`,0,``,``,`-webkit-backface-visibility`,0,``,``,`-webkit-background-clip`,0,``,``,`-webkit-background-origin`,0,``,``,`-webkit-background-size`,0,``,``,`-webkit-border-bottom-left-radius`,0,``,``,`-webkit-border-bottom-right-radius`,0,``,``,`-webkit-border-radius`,0,``,`border-top-left-radius border-top-right-radius border-bottom-right-radius border-bottom-left-radius`,`-webkit-border-top-left-radius`,0,``,``,`-webkit-border-top-right-radius`,0,``,``,`-webkit-box-align`,0,``,``,`-webkit-box-flex`,0,``,``,`-webkit-box-ordinal-group`,0,``,``,`-webkit-box-orient`,0,``,``,`-webkit-box-pack`,0,``,``,`-webkit-box-shadow`,0,``,`box-shadow-color box-shadow-offset box-shadow-blur box-shadow-spread box-shadow-position`,`-webkit-box-sizing`,0,``,``,`-webkit-filter`,0,``,``,`-webkit-flex`,0,``,`flex-grow flex-shrink flex-basis`,`-webkit-flex-basis`,0,``,``,`-webkit-flex-direction`,0,``,``,`-webkit-flex-flow`,0,``,`flex-direction flex-wrap`,`-webkit-flex-grow`,0,``,``,`-webkit-flex-shrink`,0,``,``,`-webkit-flex-wrap`,0,``,``,`-webkit-justify-content`,0,``,``,`-webkit-line-clamp`,0,`none`,`max-lines block-ellipsis continue`,`-webkit-mask`,0,``,`mask-image mask-position mask-size mask-repeat mask-origin mask-clip mask-composite mask-mode`,`-webkit-mask-box-image`,0,``,`mask-border-source mask-border-slice mask-border-width mask-border-outset mask-border-repeat mask-border-mode`,`-webkit-mask-box-image-outset`,0,``,``,`-webkit-mask-box-image-repeat`,0,``,``,`-webkit-mask-box-image-slice`,0,``,``,`-webkit-mask-box-image-source`,0,``,``,`-webkit-mask-box-image-width`,0,``,``,`-webkit-mask-clip`,0,``,``,`-webkit-mask-composite`,0,``,``,`-webkit-mask-image`,0,``,``,`-webkit-mask-origin`,0,``,``,`-webkit-mask-position`,0,``,``,`-webkit-mask-repeat`,0,``,``,`-webkit-mask-size`,0,``,``,`-webkit-order`,0,``,``,`-webkit-perspective`,0,``,``,`-webkit-perspective-origin`,0,``,``,`-webkit-text-fill-color`,1,`currentcolor`,``,`-webkit-text-size-adjust`,0,``,``,`-webkit-text-stroke`,1,``,`-webkit-text-stroke-width -webkit-text-stroke-color`,`-webkit-text-stroke-color`,1,`currentcolor`,``,`-webkit-text-stroke-width`,1,`0`,``,`-webkit-transform`,0,``,``,`-webkit-transform-origin`,0,``,``,`-webkit-transform-style`,0,``,``,`-webkit-transition`,0,``,`transition-property transition-duration transition-timing-function transition-delay transition-behavior`,`-webkit-transition-delay`,0,``,``,`-webkit-transition-duration`,0,``,``,`-webkit-transition-property`,0,``,``,`-webkit-transition-timing-function`,0,``,``,`-webkit-user-select`,0,``,``,`accent-color`,1,`auto`,``,`align-content`,0,`normal`,``,`align-items`,0,`normal`,``,`align-self`,0,`auto`,``,`alignment-baseline`,0,`baseline`,``,`all`,0,``,``,`anchor-name`,0,`none`,``,`anchor-scope`,0,`none`,``,`animation`,0,``,`animation-name animation-duration animation-timing-function animation-delay animation-iteration-count animation-direction animation-fill-mode animation-play-state animation-timeline`,`animation-composition`,0,`replace`,``,`animation-delay`,0,``,`animation-delay-start animation-delay-end`,`animation-delay-end`,0,`0s`,``,`animation-delay-start`,0,`0s`,``,`animation-direction`,0,`normal`,``,`animation-duration`,0,`auto`,``,`animation-fill-mode`,0,`none`,``,`animation-iteration-count`,0,`1`,``,`animation-name`,0,`none`,``,`animation-play-state`,0,`running`,``,`animation-range`,0,``,`animation-range-start animation-range-end`,`animation-range-center`,0,`normal`,``,`animation-range-end`,0,`normal`,``,`animation-range-start`,0,`normal`,``,`animation-timeline`,0,`auto`,``,`animation-timing-function`,0,`ease`,``,`animation-trigger`,0,`none`,``,`appearance`,0,`none`,``,`aspect-ratio`,0,`auto`,``,`backdrop-filter`,0,`none`,``,`backface-visibility`,0,`visible`,``,`background`,0,``,`background-image background-position background-size background-repeat background-attachment background-origin background-clip background-color`,`background-attachment`,0,`scroll`,``,`background-blend-mode`,0,`normal`,``,`background-clip`,0,`border-box`,``,`background-color`,0,`transparent`,``,`background-image`,0,`none`,``,`background-origin`,0,`padding-box`,``,`background-position`,0,`0% 0%`,`background-position-x background-position-y`,`background-position-block`,0,`0%`,``,`background-position-inline`,0,`0%`,``,`background-position-x`,0,`0%`,``,`background-position-y`,0,`0%`,``,`background-repeat`,0,`repeat`,``,`background-repeat-block`,0,`repeat`,``,`background-repeat-inline`,0,`repeat`,``,`background-repeat-x`,0,`repeat`,``,`background-repeat-y`,0,`repeat`,``,`background-size`,0,`auto`,``,`background-tbd`,0,``,``,`baseline-shift`,0,`0`,``,`baseline-source`,0,`auto`,``,`block-ellipsis`,1,`no-ellipsis`,``,`block-size`,0,`auto`,``,`block-step`,0,``,`block-step-size block-step-insert block-step-align block-step-round`,`block-step-align`,0,`auto`,``,`block-step-insert`,0,`margin-box`,``,`block-step-round`,0,`up`,``,`block-step-size`,0,`none`,``,`bookmark-label`,0,`content(text)`,``,`bookmark-level`,0,`none`,``,`bookmark-state`,0,`open`,``,`border`,0,``,`border-width border-style border-color`,`border-block`,0,``,`border-block-start border-block-end`,`border-block-clip`,0,``,`border-block-start-clip border-block-end-clip`,`border-block-color`,0,``,`border-block-start-color border-block-end-color`,`border-block-end`,0,``,`border-block-end-width border-block-end-style border-block-end-color`,`border-block-end-clip`,0,`none`,``,`border-block-end-color`,0,`currentcolor`,``,`border-block-end-radius`,0,`0`,`border-end-start-radius border-end-end-radius`,`border-block-end-style`,0,`none`,``,`border-block-end-width`,0,`medium`,``,`border-block-start`,0,``,`border-block-start-width border-block-start-style border-block-start-color`,`border-block-start-clip`,0,`none`,``,`border-block-start-color`,0,`currentcolor`,``,`border-block-start-radius`,0,`0`,`border-start-start-radius border-start-end-radius`,`border-block-start-style`,0,`none`,``,`border-block-start-width`,0,`medium`,``,`border-block-style`,0,``,`border-block-start-style border-block-end-style`,`border-block-width`,0,``,`border-block-start-width border-block-end-width`,`border-bottom`,0,``,`border-bottom-width border-bottom-style border-bottom-color`,`border-bottom-clip`,0,`none`,``,`border-bottom-color`,0,`currentcolor`,``,`border-bottom-left-radius`,0,`0`,``,`border-bottom-radius`,0,`0`,`border-bottom-left-radius border-bottom-right-radius`,`border-bottom-right-radius`,0,`0`,``,`border-bottom-style`,0,`none`,``,`border-bottom-width`,0,`medium`,``,`border-boundary`,1,`none`,``,`border-clip`,0,``,`border-top-clip border-right-clip border-bottom-clip border-left-clip`,`border-collapse`,1,`separate`,``,`border-color`,0,``,`border-top-color border-right-color border-bottom-color border-left-color`,`border-end-end-radius`,0,`0`,``,`border-end-start-radius`,0,`0`,``,`border-image`,0,``,`border-image-source border-image-slice border-image-width border-image-outset border-image-repeat`,`border-image-outset`,0,`0`,``,`border-image-repeat`,0,`stretch`,``,`border-image-slice`,0,`100%`,``,`border-image-source`,0,`none`,``,`border-image-width`,0,`1`,``,`border-inline`,0,``,`border-inline-start border-inline-end`,`border-inline-clip`,0,``,`border-inline-start-clip border-inline-end-clip`,`border-inline-color`,0,``,`border-inline-start-color border-inline-end-color`,`border-inline-end`,0,``,`border-inline-end-width border-inline-end-style border-inline-end-color`,`border-inline-end-clip`,0,`none`,``,`border-inline-end-color`,0,`currentcolor`,``,`border-inline-end-radius`,0,`0`,`border-start-end-radius border-end-end-radius`,`border-inline-end-style`,0,`none`,``,`border-inline-end-width`,0,`medium`,``,`border-inline-start`,0,``,`border-inline-start-width border-inline-start-style border-inline-start-color`,`border-inline-start-clip`,0,`none`,``,`border-inline-start-color`,0,`currentcolor`,``,`border-inline-start-radius`,0,`0`,`border-start-start-radius border-end-start-radius`,`border-inline-start-style`,0,`none`,``,`border-inline-start-width`,0,`medium`,``,`border-inline-style`,0,``,`border-inline-start-style border-inline-end-style`,`border-inline-width`,0,``,`border-inline-start-width border-inline-end-width`,`border-left`,0,``,`border-left-width border-left-style border-left-color`,`border-left-clip`,0,`none`,``,`border-left-color`,0,`currentcolor`,``,`border-left-radius`,0,`0`,`border-top-left-radius border-bottom-left-radius`,`border-left-style`,0,`none`,``,`border-left-width`,0,`medium`,``,`border-limit`,0,`all`,``,`border-radius`,0,``,`border-top-left-radius border-top-right-radius border-bottom-right-radius border-bottom-left-radius`,`border-right`,0,``,`border-right-width border-right-style border-right-color`,`border-right-clip`,0,`none`,``,`border-right-color`,0,`currentcolor`,``,`border-right-radius`,0,`0`,`border-top-right-radius border-bottom-right-radius`,`border-right-style`,0,`none`,``,`border-right-width`,0,`medium`,``,`border-shape`,0,`none`,``,`border-spacing`,1,`0px 0px`,``,`border-start-end-radius`,0,`0`,``,`border-start-start-radius`,0,`0`,``,`border-style`,0,``,`border-top-style border-right-style border-bottom-style border-left-style`,`border-top`,0,``,`border-top-width border-top-style border-top-color`,`border-top-clip`,0,`none`,``,`border-top-color`,0,`currentcolor`,``,`border-top-left-radius`,0,`0`,``,`border-top-radius`,0,`0`,`border-top-left-radius border-top-right-radius`,`border-top-right-radius`,0,`0`,``,`border-top-style`,0,`none`,``,`border-top-width`,0,`medium`,``,`border-width`,0,``,`border-top-width border-right-width border-bottom-width border-left-width`,`bottom`,0,`auto`,``,`box-decoration-break`,0,`slice`,``,`box-shadow`,0,`none`,`box-shadow-color box-shadow-offset box-shadow-blur box-shadow-spread box-shadow-position`,`box-shadow-blur`,0,`0`,``,`box-shadow-color`,0,`currentcolor`,``,`box-shadow-offset`,0,`none`,``,`box-shadow-position`,0,`outset`,``,`box-shadow-spread`,0,`0`,``,`box-sizing`,0,`content-box`,``,`box-snap`,1,`none`,``,`break-after`,0,`auto`,``,`break-before`,0,`auto`,``,`break-inside`,0,`auto`,``,`caption-side`,1,`top`,``,`caret`,1,`auto`,`caret-color caret-animation caret-shape`,`caret-animation`,1,`auto`,``,`caret-color`,1,`auto`,``,`caret-shape`,1,`auto`,``,`clear`,0,`none`,``,`clip`,0,`auto`,``,`clip-path`,0,`none`,``,`clip-rule`,1,`nonzero`,``,`color`,1,`CanvasText`,``,`color-adjust`,0,``,`print-color-adjust`,`color-interpolation`,1,`sRGB`,``,`color-interpolation-filters`,1,`linearRGB`,``,`color-scheme`,1,`normal`,``,`column-count`,0,`auto`,``,`column-fill`,0,`balance`,``,`column-gap`,0,`normal`,``,`column-height`,0,`auto`,``,`column-rule`,0,``,`column-rule-width column-rule-style column-rule-color`,`column-rule-break`,0,`normal`,``,`column-rule-color`,0,`currentcolor`,``,`column-rule-inset`,0,``,`column-rule-inset-cap-start column-rule-inset-cap-end column-rule-inset-junction-start column-rule-inset-junction-end`,`column-rule-inset-cap`,0,``,`column-rule-inset-cap-start column-rule-inset-cap-end`,`column-rule-inset-cap-end`,0,`0`,``,`column-rule-inset-cap-start`,0,`0`,``,`column-rule-inset-end`,0,``,`column-rule-inset-cap-end column-rule-inset-junction-end`,`column-rule-inset-junction`,0,``,`column-rule-inset-junction-start column-rule-inset-junction-end`,`column-rule-inset-junction-end`,0,`0`,``,`column-rule-inset-junction-start`,0,`0`,``,`column-rule-inset-start`,0,``,`column-rule-inset-cap-start column-rule-inset-junction-start`,`column-rule-style`,0,`none`,``,`column-rule-visibility-items`,0,`normal`,``,`column-rule-width`,0,`medium`,``,`column-span`,0,`none`,``,`column-width`,0,``,``,`column-wrap`,0,`auto`,``,`columns`,0,``,`column-width column-count column-height`,`contain`,0,`none`,``,`contain-intrinsic-block-size`,0,`none`,``,`contain-intrinsic-height`,0,`none`,``,`contain-intrinsic-inline-size`,0,`none`,``,`contain-intrinsic-size`,0,``,`contain-intrinsic-width contain-intrinsic-height`,`contain-intrinsic-width`,0,`none`,``,`container`,0,``,`container-name container-type`,`container-name`,0,`none`,``,`container-type`,0,`normal`,``,`content`,0,`normal`,``,`content-visibility`,0,`visible`,``,`continue`,0,`auto`,``,`copy-into`,0,`none`,``,`corner`,0,`0`,`border-radius corner-shape`,`corner-block-end`,0,`0`,`border-block-end-radius corner-block-end-shape`,`corner-block-end-shape`,0,``,`corner-end-start-shape corner-end-end-shape`,`corner-block-start`,0,`0`,`border-block-start-radius corner-block-start-shape`,`corner-block-start-shape`,0,``,`corner-start-start-shape corner-start-end-shape`,`corner-bottom`,0,`0`,`border-bottom-radius corner-bottom-shape`,`corner-bottom-left`,0,`0`,`border-bottom-left-radius corner-bottom-left-shape`,`corner-bottom-left-shape`,0,`round`,``,`corner-bottom-right`,0,`0`,`border-bottom-right-radius corner-bottom-right-shape`,`corner-bottom-right-shape`,0,`round`,``,`corner-bottom-shape`,0,``,`corner-bottom-left-shape corner-bottom-right-shape`,`corner-end-end`,0,`0`,`border-end-end-radius corner-end-end-shape`,`corner-end-end-shape`,0,`round`,``,`corner-end-start`,0,`0`,`border-end-start-radius corner-end-start-shape`,`corner-end-start-shape`,0,`round`,``,`corner-inline-end`,0,`0`,`border-inline-end-radius corner-inline-end-shape`,`corner-inline-end-shape`,0,``,`corner-start-end-shape corner-end-end-shape`,`corner-inline-start`,0,`0`,`border-inline-start-radius corner-inline-start-shape`,`corner-inline-start-shape`,0,``,`corner-start-start-shape corner-end-start-shape`,`corner-left`,0,`0`,`border-left-radius corner-left-shape`,`corner-left-shape`,0,``,`corner-top-left-shape corner-bottom-left-shape`,`corner-right`,0,`0`,`border-right-radius corner-right-shape`,`corner-right-shape`,0,``,`corner-top-right-shape corner-bottom-right-shape`,`corner-shape`,0,`round`,`corner-top-left-shape corner-top-right-shape corner-bottom-right-shape corner-bottom-left-shape`,`corner-start-end`,0,`0`,`border-start-end-radius corner-start-end-shape`,`corner-start-end-shape`,0,`round`,``,`corner-start-start`,0,`0`,`border-start-start-radius corner-start-start-shape`,`corner-start-start-shape`,0,`round`,``,`corner-top`,0,`0`,`border-top-radius corner-top-shape`,`corner-top-left`,0,`0`,`border-top-left-radius corner-top-left-shape`,`corner-top-left-shape`,0,`round`,``,`corner-top-right`,0,`0`,`border-top-right-radius corner-top-right-shape`,`corner-top-right-shape`,0,`round`,``,`corner-top-shape`,0,``,`corner-top-left-shape corner-top-right-shape`,`counter-increment`,0,`none`,``,`counter-reset`,0,`none`,``,`counter-set`,0,`none`,``,`cue`,0,``,`cue-before cue-after`,`cue-after`,0,`none`,``,`cue-before`,0,`none`,``,`cursor`,1,`auto`,``,`cx`,0,`0`,``,`cy`,0,`0`,``,`d`,0,`none`,``,`direction`,1,`ltr`,``,`display`,0,`inline`,``,`dominant-baseline`,1,`auto`,``,`dynamic-range-limit`,1,`no-limit`,``,`empty-cells`,1,`show`,``,`event-trigger`,0,`none`,``,`event-trigger-name`,0,`none`,``,`event-trigger-source`,0,`none`,``,`field-sizing`,0,`fixed`,``,`fill`,1,`black`,``,`fill-break`,0,`bounding-box`,``,`fill-color`,1,`currentcolor`,``,`fill-image`,1,`none`,``,`fill-opacity`,1,`1`,``,`fill-origin`,0,`match-parent`,``,`fill-position`,1,`0% 0%`,``,`fill-repeat`,1,`repeat`,``,`fill-rule`,1,`nonzero`,``,`fill-size`,1,`auto`,``,`filter`,0,`none`,``,`flex`,0,`0 1 auto`,`flex-grow flex-shrink flex-basis`,`flex-basis`,0,`auto`,``,`flex-direction`,0,`row`,``,`flex-flow`,0,``,`flex-direction flex-wrap`,`flex-grow`,0,`0`,``,`flex-line-count`,0,`1`,``,`flex-shrink`,0,`1`,``,`flex-wrap`,0,`nowrap`,``,`float`,0,`none`,``,`float-defer`,0,`none`,``,`float-offset`,0,`0`,``,`float-reference`,0,`inline`,``,`flood-color`,0,`black`,``,`flood-opacity`,0,`1`,``,`flow-from`,0,`none`,``,`flow-into`,0,`none`,``,`flow-tolerance`,0,`normal`,``,`font`,1,``,`font-style font-variant font-weight font-stretch font-size line-height font-family`,`font-family`,1,``,``,`font-feature-settings`,1,`normal`,``,`font-kerning`,1,`auto`,``,`font-language-override`,1,`normal`,``,`font-optical-sizing`,1,`auto`,``,`font-palette`,1,`normal`,``,`font-size`,1,`medium`,``,`font-size-adjust`,1,`none`,``,`font-stretch`,0,``,``,`font-style`,1,`normal`,``,`font-synthesis`,1,`weight style small-caps position`,`font-synthesis-weight font-synthesis-style font-synthesis-small-caps`,`font-synthesis-position`,1,`auto`,``,`font-synthesis-small-caps`,1,`auto`,``,`font-synthesis-style`,1,`auto`,``,`font-synthesis-weight`,1,`auto`,``,`font-variant`,1,`normal`,`font-variant-ligatures font-variant-caps font-variant-alternates font-variant-numeric font-variant-east-asian font-variant-position font-variant-emoji`,`font-variant-alternates`,1,`normal`,``,`font-variant-caps`,1,`normal`,``,`font-variant-east-asian`,1,`normal`,``,`font-variant-emoji`,1,`normal`,``,`font-variant-ligatures`,1,`normal`,``,`font-variant-numeric`,1,`normal`,``,`font-variant-position`,1,`normal`,``,`font-variation-settings`,1,`normal`,``,`font-weight`,1,`normal`,``,`font-width`,1,`normal`,``,`footnote-display`,0,`block`,``,`footnote-policy`,0,`auto`,``,`forced-color-adjust`,1,`auto`,``,`frame-sizing`,0,`auto`,``,`gap`,0,``,`row-gap column-gap`,`glyph-orientation-vertical`,0,``,``,`grid`,0,`none`,`grid-template-rows grid-template-columns grid-template-areas grid-auto-rows grid-auto-columns grid-auto-flow`,`grid-area`,0,`auto`,`grid-row-start grid-column-start grid-row-end grid-column-end`,`grid-auto-columns`,0,`auto`,``,`grid-auto-flow`,0,`row`,``,`grid-auto-rows`,0,`auto`,``,`grid-column`,0,`auto`,`grid-column-start grid-column-end`,`grid-column-end`,0,`auto`,``,`grid-column-gap`,0,``,``,`grid-column-start`,0,`auto`,``,`grid-gap`,0,``,`row-gap column-gap`,`grid-row`,0,`auto`,`grid-row-start grid-row-end`,`grid-row-end`,0,`auto`,``,`grid-row-gap`,0,``,``,`grid-row-start`,0,`auto`,``,`grid-template`,0,`none`,`grid-template-rows grid-template-columns grid-template-areas`,`grid-template-areas`,0,`none`,``,`grid-template-columns`,0,`none`,``,`grid-template-rows`,0,`none`,``,`hanging-punctuation`,1,`none`,``,`height`,0,`auto`,``,`hyphenate-character`,1,`auto`,``,`hyphenate-limit-chars`,1,`auto`,``,`hyphenate-limit-last`,1,`none`,``,`hyphenate-limit-lines`,1,`no-limit`,``,`hyphenate-limit-zone`,1,`0`,``,`hyphens`,1,`manual`,``,`image-animation`,1,`normal`,``,`image-orientation`,1,`from-image`,``,`image-rendering`,1,`auto`,``,`image-resolution`,1,`1dppx`,``,`initial-letter`,0,`normal`,``,`initial-letter-align`,1,`alphabetic`,``,`initial-letter-wrap`,1,`none`,``,`inline-size`,0,`auto`,``,`inline-sizing`,1,`normal`,``,`input-security`,0,`auto`,``,`inset`,0,`auto`,`top right bottom left`,`inset-block`,0,`auto`,`inset-block-start inset-block-end`,`inset-block-end`,0,`auto`,``,`inset-block-start`,0,`auto`,``,`inset-inline`,0,`auto`,`inset-inline-start inset-inline-end`,`inset-inline-end`,0,`auto`,``,`inset-inline-start`,0,`auto`,``,`interactivity`,1,`auto`,``,`interest-delay`,0,``,`interest-delay-start interest-delay-end`,`interest-delay-end`,1,`normal`,``,`interest-delay-start`,1,`normal`,``,`interpolate-size`,1,`numeric-only`,``,`isolation`,0,`auto`,``,`justify-content`,0,`normal`,``,`justify-items`,0,`legacy`,``,`justify-self`,0,`auto`,``,`left`,0,`auto`,``,`letter-spacing`,1,`normal`,``,`lighting-color`,0,`white`,``,`line-break`,1,`auto`,``,`line-clamp`,0,`none`,`max-lines block-ellipsis continue`,`line-fit-edge`,1,`leading`,``,`line-grid`,0,`match-parent`,``,`line-height`,1,`normal`,``,`line-height-step`,1,`0`,``,`line-padding`,1,`0`,``,`line-snap`,1,`none`,``,`link-parameters`,0,`none`,``,`list-style`,0,``,`list-style-type list-style-position list-style-image`,`list-style-image`,1,`none`,``,`list-style-position`,1,`outside`,``,`list-style-type`,1,`disc`,``,`margin`,0,`0`,`margin-top margin-right margin-bottom margin-left`,`margin-block`,0,``,`margin-block-start margin-block-end`,`margin-block-end`,0,`0`,``,`margin-block-start`,0,`0`,``,`margin-bottom`,0,`0`,``,`margin-break`,0,`auto`,``,`margin-inline`,0,``,`margin-inline-start margin-inline-end`,`margin-inline-end`,0,`0`,``,`margin-inline-start`,0,`0`,``,`margin-left`,0,`0`,``,`margin-right`,0,`0`,``,`margin-top`,0,`0`,``,`margin-trim`,0,`none`,``,`marker`,1,``,`marker-start marker-mid marker-end`,`marker-end`,1,`none`,``,`marker-mid`,1,`none`,``,`marker-side`,1,`match-self`,``,`marker-start`,1,`none`,``,`mask`,0,``,`mask-image mask-position mask-size mask-repeat mask-origin mask-clip mask-composite mask-mode`,`mask-border`,0,``,`mask-border-source mask-border-slice mask-border-width mask-border-outset mask-border-repeat mask-border-mode`,`mask-border-mode`,0,`alpha`,``,`mask-border-outset`,0,`0`,``,`mask-border-repeat`,0,`stretch`,``,`mask-border-slice`,0,`0`,``,`mask-border-source`,0,`none`,``,`mask-border-width`,0,`auto`,``,`mask-clip`,0,`border-box`,``,`mask-composite`,0,`add`,``,`mask-image`,0,`none`,``,`mask-mode`,0,`match-source`,``,`mask-origin`,0,`border-box`,``,`mask-position`,0,`0% 0%`,``,`mask-repeat`,0,`repeat`,``,`mask-size`,0,`auto`,``,`mask-type`,0,`luminance`,``,`math-depth`,1,`0`,``,`math-shift`,1,`normal`,``,`math-style`,1,`normal`,``,`max-block-size`,0,`none`,``,`max-height`,0,`none`,``,`max-inline-size`,0,`none`,``,`max-lines`,0,`none`,``,`max-size`,0,`none`,`max-width max-height`,`max-width`,0,`none`,``,`min-block-size`,0,`auto`,``,`min-height`,0,`auto`,``,`min-inline-size`,0,`auto`,``,`min-intrinsic-sizing`,0,`legacy`,``,`min-size`,0,`auto`,`min-width min-height`,`min-width`,0,`auto`,``,`mix-blend-mode`,0,`normal`,``,`nav-down`,0,`auto`,``,`nav-left`,0,`auto`,``,`nav-right`,0,`auto`,``,`nav-up`,0,`auto`,``,`object-fit`,0,`fill`,``,`object-position`,0,`50% 50%`,``,`object-view-box`,0,`none`,``,`offset`,0,``,`offset-path offset-distance offset-rotate offset-anchor offset-position`,`offset-anchor`,0,`auto`,``,`offset-distance`,0,`0`,``,`offset-path`,0,`none`,``,`offset-position`,0,`normal`,``,`offset-rotate`,0,`auto`,``,`opacity`,0,`1`,``,`order`,0,`0`,``,`orphans`,1,`2`,``,`outline`,0,``,`outline-width outline-style outline-color`,`outline-color`,0,`auto`,``,`outline-offset`,0,`0`,``,`outline-style`,0,`none`,``,`outline-width`,0,`medium`,``,`overflow`,0,`visible`,`overflow-x overflow-y`,`overflow-anchor`,0,`auto`,``,`overflow-block`,0,`visible`,``,`overflow-clip-margin`,0,`0px`,`overflow-clip-margin-top overflow-clip-margin-right overflow-clip-margin-bottom overflow-clip-margin-left`,`overflow-clip-margin-block`,0,`0px`,`overflow-clip-margin-block-start overflow-clip-margin-block-end`,`overflow-clip-margin-block-end`,0,`0px`,``,`overflow-clip-margin-block-start`,0,`0px`,``,`overflow-clip-margin-bottom`,0,`0px`,``,`overflow-clip-margin-inline`,0,`0px`,`overflow-clip-margin-inline-start overflow-clip-margin-inline-end`,`overflow-clip-margin-inline-end`,0,`0px`,``,`overflow-clip-margin-inline-start`,0,`0px`,``,`overflow-clip-margin-left`,0,`0px`,``,`overflow-clip-margin-right`,0,`0px`,``,`overflow-clip-margin-top`,0,`0px`,``,`overflow-inline`,0,`visible`,``,`overflow-wrap`,1,`normal`,``,`overflow-x`,0,`visible`,``,`overflow-y`,0,`visible`,``,`overlay`,0,`none`,``,`overscroll-behavior`,0,`auto auto`,`overscroll-behavior-x overscroll-behavior-y`,`overscroll-behavior-block`,0,`auto`,``,`overscroll-behavior-inline`,0,`auto`,``,`overscroll-behavior-x`,0,`auto`,``,`overscroll-behavior-y`,0,`auto`,``,`padding`,0,`0`,`padding-top padding-right padding-bottom padding-left`,`padding-block`,0,``,`padding-block-start padding-block-end`,`padding-block-end`,0,`0`,``,`padding-block-start`,0,`0`,``,`padding-bottom`,0,`0`,``,`padding-inline`,0,``,`padding-inline-start padding-inline-end`,`padding-inline-end`,0,`0`,``,`padding-inline-start`,0,`0`,``,`padding-left`,0,`0`,``,`padding-right`,0,`0`,``,`padding-top`,0,`0`,``,`page`,0,`auto`,``,`page-break-after`,0,`auto`,``,`page-break-before`,0,`auto`,``,`page-break-inside`,0,`auto`,``,`paint-order`,1,`normal`,``,`path-length`,0,`none`,``,`pause`,0,``,`pause-before pause-after`,`pause-after`,0,`none`,``,`pause-before`,0,`none`,``,`perspective`,0,`none`,``,`perspective-origin`,0,`50% 50%`,``,`place-content`,0,`normal`,`align-content justify-content`,`place-items`,0,``,`align-items justify-items`,`place-self`,0,`auto`,`align-self justify-self`,`pointer-events`,1,`auto`,``,`pointer-timeline`,0,``,`pointer-timeline-name pointer-timeline-axis`,`pointer-timeline-axis`,0,`block`,``,`pointer-timeline-name`,0,`none`,``,`position`,0,`static`,``,`position-anchor`,0,`normal`,``,`position-area`,0,`none`,``,`position-try`,0,``,`position-try-order position-try-fallbacks`,`position-try-fallbacks`,0,`none`,``,`position-try-order`,0,`normal`,``,`position-visibility`,0,`anchor-visible`,``,`print-color-adjust`,1,`economy`,``,`quotes`,1,`auto`,``,`r`,0,`0`,``,`reading-flow`,0,`normal`,``,`reading-order`,0,`0`,``,`region-fragment`,0,`auto`,``,`resize`,0,`none`,``,`rest`,0,``,`rest-before rest-after`,`rest-after`,0,`none`,``,`rest-before`,0,`none`,``,`right`,0,`auto`,``,`rotate`,0,`none`,``,`row-gap`,0,`normal`,``,`row-rule`,0,``,`row-rule-width row-rule-style row-rule-color`,`row-rule-break`,0,`normal`,``,`row-rule-color`,0,`currentcolor`,``,`row-rule-inset`,0,``,`row-rule-inset-cap-start row-rule-inset-cap-end row-rule-inset-junction-start row-rule-inset-junction-end`,`row-rule-inset-cap`,0,``,`row-rule-inset-cap-start row-rule-inset-cap-end`,`row-rule-inset-cap-end`,0,`0`,``,`row-rule-inset-cap-start`,0,`0`,``,`row-rule-inset-end`,0,``,`row-rule-inset-cap-end row-rule-inset-junction-end`,`row-rule-inset-junction`,0,``,`row-rule-inset-junction-start row-rule-inset-junction-end`,`row-rule-inset-junction-end`,0,`0`,``,`row-rule-inset-junction-start`,0,`0`,``,`row-rule-inset-start`,0,``,`row-rule-inset-cap-start row-rule-inset-junction-start`,`row-rule-style`,0,`none`,``,`row-rule-visibility-items`,0,`normal`,``,`row-rule-width`,0,`medium`,``,`ruby-align`,1,`space-around`,``,`ruby-merge`,1,`separate`,``,`ruby-overhang`,1,`auto`,``,`ruby-position`,1,`alternate`,``,`rule`,0,``,`column-rule row-rule`,`rule-break`,0,``,`column-rule-break row-rule-break`,`rule-color`,0,``,`column-rule-color row-rule-color`,`rule-inset`,0,``,`column-rule-inset row-rule-inset`,`rule-inset-cap`,0,``,`column-rule-inset-cap`,`rule-inset-end`,0,``,`column-rule-inset-end row-rule-inset-end`,`rule-inset-junction`,0,``,`column-rule-inset-junction`,`rule-inset-start`,0,``,`column-rule-inset-start row-rule-inset-start`,`rule-overlap`,0,`row-over-column`,``,`rule-style`,0,``,`column-rule-style row-rule-style`,`rule-visibility-items`,0,``,`column-rule-visibility-items`,`rule-width`,0,``,`column-rule-width row-rule-width`,`rx`,0,`auto`,``,`ry`,0,`auto`,``,`scale`,0,`none`,``,`scroll-axis-lock`,0,`auto`,``,`scroll-behavior`,0,`auto`,``,`scroll-initial-target`,0,`none`,``,`scroll-margin`,0,`0`,`scroll-margin-top scroll-margin-right scroll-margin-bottom scroll-margin-left`,`scroll-margin-block`,0,`0`,`scroll-margin-block-start scroll-margin-block-end`,`scroll-margin-block-end`,0,`0`,``,`scroll-margin-block-start`,0,`0`,``,`scroll-margin-bottom`,0,`0`,``,`scroll-margin-inline`,0,`0`,`scroll-margin-inline-start scroll-margin-inline-end`,`scroll-margin-inline-end`,0,`0`,``,`scroll-margin-inline-start`,0,`0`,``,`scroll-margin-left`,0,`0`,``,`scroll-margin-right`,0,`0`,``,`scroll-margin-top`,0,`0`,``,`scroll-marker-group`,0,`none`,``,`scroll-padding`,0,`auto`,`scroll-padding-top scroll-padding-right scroll-padding-bottom scroll-padding-left`,`scroll-padding-block`,0,`auto`,`scroll-padding-block-start scroll-padding-block-end`,`scroll-padding-block-end`,0,`auto`,``,`scroll-padding-block-start`,0,`auto`,``,`scroll-padding-bottom`,0,`auto`,``,`scroll-padding-inline`,0,`auto`,`scroll-padding-inline-start scroll-padding-inline-end`,`scroll-padding-inline-end`,0,`auto`,``,`scroll-padding-inline-start`,0,`auto`,``,`scroll-padding-left`,0,`auto`,``,`scroll-padding-right`,0,`auto`,``,`scroll-padding-top`,0,`auto`,``,`scroll-snap-align`,0,`none`,``,`scroll-snap-stop`,0,`normal`,``,`scroll-snap-type`,0,`none`,``,`scroll-target-group`,0,`none`,``,`scroll-timeline`,0,``,`scroll-timeline-name scroll-timeline-axis`,`scroll-timeline-axis`,0,`block`,``,`scroll-timeline-name`,0,`none`,``,`scrollbar-color`,1,`auto`,``,`scrollbar-gutter`,0,`auto`,``,`scrollbar-width`,0,`auto`,``,`shape-image-threshold`,0,`0`,``,`shape-inside`,0,`auto`,``,`shape-margin`,0,`0`,``,`shape-outside`,0,`none`,``,`shape-padding`,0,`0`,``,`shape-rendering`,1,`auto`,``,`size`,0,`auto`,`width height`,`slider-orientation`,0,`auto`,``,`spatial-navigation-action`,0,`auto`,``,`spatial-navigation-contain`,0,`auto`,``,`spatial-navigation-function`,0,`normal`,``,`speak`,1,`auto`,``,`speak-as`,1,`normal`,``,`stop-color`,0,``,``,`stop-opacity`,0,``,``,`string-set`,0,`none`,``,`stroke`,1,`none`,``,`stroke-align`,1,`center`,``,`stroke-alignment`,1,`center`,``,`stroke-break`,0,`bounding-box`,``,`stroke-color`,1,`transparent`,``,`stroke-dash-corner`,1,`none`,``,`stroke-dash-justify`,1,`none`,``,`stroke-dashadjust`,1,`none`,``,`stroke-dasharray`,1,`none`,``,`stroke-dashcorner`,1,`none`,``,`stroke-dashoffset`,1,`0`,``,`stroke-image`,1,`none`,``,`stroke-linecap`,1,`butt`,``,`stroke-linejoin`,1,`miter`,``,`stroke-miterlimit`,1,`4`,``,`stroke-opacity`,1,`1`,``,`stroke-origin`,0,`match-parent`,``,`stroke-position`,1,`0% 0%`,``,`stroke-repeat`,1,`repeat`,``,`stroke-size`,1,`auto`,``,`stroke-width`,1,`1px`,``,`tab-size`,1,`8`,``,`table-layout`,0,`auto`,``,`text-align`,1,`start`,`text-align-all text-align-last`,`text-align-all`,1,`start`,``,`text-align-last`,1,`auto`,``,`text-anchor`,1,`start`,``,`text-autospace`,1,`normal`,``,`text-box`,0,`normal`,``,`text-box-edge`,1,`auto`,``,`text-box-trim`,0,`none`,``,`text-combine-upright`,1,`none`,``,`text-decoration`,0,``,`text-decoration-line text-decoration-thickness text-decoration-style text-decoration-color`,`text-decoration-color`,0,`currentcolor`,``,`text-decoration-inset`,0,`0`,``,`text-decoration-line`,0,`none`,``,`text-decoration-skip`,1,``,`text-decoration-skip-self text-decoration-skip-box text-decoration-skip-spaces text-decoration-skip-ink`,`text-decoration-skip-box`,1,`none`,``,`text-decoration-skip-ink`,1,`auto`,``,`text-decoration-skip-self`,0,`auto`,``,`text-decoration-skip-spaces`,1,`start end`,``,`text-decoration-style`,0,`solid`,``,`text-decoration-thickness`,0,`auto`,``,`text-emphasis`,0,``,`text-emphasis-style text-emphasis-color`,`text-emphasis-color`,1,`currentcolor`,``,`text-emphasis-position`,1,`over right`,``,`text-emphasis-skip`,1,`spaces punctuation`,``,`text-emphasis-style`,1,`none`,``,`text-fit`,1,`none`,``,`text-group-align`,0,`none`,``,`text-indent`,1,`0`,``,`text-justify`,1,`auto`,``,`text-orientation`,1,`mixed`,``,`text-overflow`,0,`clip`,``,`text-rendering`,1,`auto`,``,`text-shadow`,1,`none`,``,`text-size-adjust`,1,`auto`,``,`text-spacing`,1,``,`text-spacing-trim text-autospace`,`text-spacing-trim`,1,`normal`,``,`text-transform`,1,`none`,``,`text-underline-offset`,1,`auto`,``,`text-underline-position`,1,`auto`,``,`text-wrap`,0,`wrap`,`text-wrap-mode text-wrap-style`,`text-wrap-mode`,1,`wrap`,``,`text-wrap-style`,1,`auto`,``,`timeline-scope`,0,`none`,``,`timeline-trigger`,0,``,`timeline-trigger-name timeline-trigger-source timeline-trigger-activation-range timeline-trigger-active-range`,`timeline-trigger-activation-range`,0,``,`timeline-trigger-activation-range-start timeline-trigger-activation-range-end`,`timeline-trigger-activation-range-end`,0,`normal`,``,`timeline-trigger-activation-range-start`,0,`normal`,``,`timeline-trigger-active-range`,0,``,`timeline-trigger-active-range-start timeline-trigger-active-range-end`,`timeline-trigger-active-range-end`,0,`auto`,``,`timeline-trigger-active-range-start`,0,`auto`,``,`timeline-trigger-name`,0,`none`,``,`timeline-trigger-source`,0,`auto`,``,`top`,0,`auto`,``,`touch-action`,0,`auto`,``,`transform`,0,`none`,``,`transform-box`,0,`view-box`,``,`transform-origin`,0,`50% 50%`,``,`transform-style`,0,`flat`,``,`transition`,0,``,`transition-property transition-duration transition-timing-function transition-delay transition-behavior`,`transition-behavior`,0,`normal`,``,`transition-delay`,0,`0s`,``,`transition-duration`,0,`0s`,``,`transition-property`,0,`all`,``,`transition-timing-function`,0,`ease`,``,`translate`,0,`none`,``,`trigger-scope`,0,`none`,``,`unicode-bidi`,0,`normal`,``,`user-select`,0,`auto`,``,`vector-effect`,0,`none`,``,`vertical-align`,0,`baseline`,`alignment-baseline baseline-shift baseline-source`,`view-timeline`,0,``,`view-timeline-name view-timeline-axis`,`view-timeline-axis`,0,`block`,``,`view-timeline-inset`,0,`auto`,``,`view-timeline-name`,0,`none`,``,`view-transition-class`,0,`none`,``,`view-transition-group`,0,`normal`,``,`view-transition-name`,0,`none`,``,`view-transition-scope`,0,`none`,``,`visibility`,1,`visible`,``,`voice-balance`,1,`center`,``,`voice-duration`,0,`auto`,``,`voice-family`,1,`implementation-dependent`,``,`voice-pitch`,1,`medium`,``,`voice-range`,1,`medium`,``,`voice-rate`,1,`normal`,``,`voice-stress`,1,`normal`,``,`voice-volume`,1,`medium`,``,`white-space`,0,`normal`,`white-space-collapse text-wrap-mode`,`white-space-collapse`,1,`collapse`,``,`white-space-trim`,0,`none`,``,`widows`,1,`2`,``,`width`,0,`auto`,``,`will-change`,0,`auto`,``,`window-drag`,1,`none`,``,`word-break`,1,`normal`,``,`word-space-transform`,1,`none`,``,`word-spacing`,1,`normal`,``,`word-wrap`,0,``,``,`wrap-after`,0,`auto`,``,`wrap-before`,0,`auto`,``,`wrap-flow`,0,`auto`,``,`wrap-inside`,0,`auto`,``,`wrap-through`,0,`wrap`,``,`writing-mode`,1,`horizontal-tb`,``,`x`,0,`0`,``,`y`,0,`0`,``,`z-index`,0,`auto`,``,`zoom`,0,`1`,``];var PropInfo=class{name;inherited;initial;specLonghands;constructor(e,t,n,r){this.name=e,this.inherited=t,this.initial=n,this.specLonghands=r}};const Es={color:`rgb(0, 0, 0)`,"background-color":`rgba(0, 0, 0, 0)`,"border-top-color":`currentcolor`,"border-right-color":`currentcolor`,"border-bottom-color":`currentcolor`,"border-left-color":`currentcolor`,"outline-color":`currentcolor`,"border-block-start-color":`currentcolor`,"border-block-end-color":`currentcolor`,"border-inline-start-color":`currentcolor`,"border-inline-end-color":`currentcolor`,"text-decoration-color":`currentcolor`,"column-rule-color":`currentcolor`,"caret-color":`currentcolor`,"text-emphasis-color":`currentcolor`,"-webkit-text-fill-color":`currentcolor`,"-webkit-text-stroke-color":`currentcolor`,"margin-top":`0px`,"margin-right":`0px`,"margin-bottom":`0px`,"margin-left":`0px`,"padding-top":`0px`,"padding-right":`0px`,"padding-bottom":`0px`,"padding-left":`0px`,"border-top-width":`medium`,"border-right-width":`medium`,"border-bottom-width":`medium`,"border-left-width":`medium`,"outline-width":`medium`,"column-rule-width":`medium`,"border-top-left-radius":`0px`,"border-top-right-radius":`0px`,"border-bottom-right-radius":`0px`,"border-bottom-left-radius":`0px`,"font-size":`16px`,"font-weight":`400`,"font-family":`"Times New Roman"`,"font-style":`normal`,"font-variant":`normal`,"line-height":`normal`,"letter-spacing":`normal`,"word-spacing":`0px`,"text-indent":`0px`,"outline-offset":`0px`,"min-width":`auto`,"min-height":`auto`,"max-width":`none`,"max-height":`none`,"flex-basis":`auto`,"flex-grow":`0`,"flex-shrink":`1`,order:`0`,"background-image":`none`,"background-position-x":`0%`,"background-position-y":`0%`,"background-position":`0% 0%`,"background-size":`auto`,"background-repeat":`repeat`,"background-origin":`padding-box`,"background-clip":`border-box`,"background-attachment":`scroll`,"border-image":`none`,"border-spacing":`0px 0px`,"transition-duration":`0s`,"transition-delay":`0s`,"animation-duration":`0s`,"animation-delay":`0s`,"text-align":`start`,opacity:`1`,"z-index":`auto`,"row-gap":`normal`,"column-gap":`normal`,"user-select":`auto`,"-webkit-user-select":`auto`,content:`normal`,quotes:`auto`,"list-style-type":`disc`,"vertical-align":`baseline`,"white-space":`normal`,"text-transform":`none`};let Ds=null,Os=null;function buildTable(){Ds=/* @__PURE__ */ new Map,Os=[];for(let e=0;e<Ts.length;e+=4){let t=Ts[e],n=Ts[e+1]===1,r=Es[t]??Ts[e+2],i=Ts[e+3];Ds.set(t,new PropInfo(t,n,r,i===``?null:i.split(` `))),Os.push(t)}for(let e of Os){if(!e.startsWith(`-webkit-`))continue;let t=Ds.get(e),n=Ds.get(e.slice(8));n!==void 0&&t.initial===``&&t.specLonghands===null&&(t.inherited=n.inherited,t.initial=n.initial)}}function propertyInfo(e){return Ds===null&&buildTable(),Ds.get(e)}function isSupportedProperty(e){return Ds===null&&buildTable(),Ds.has(e)}function isCustomPropertyName(e){return e.length>2&&e.charCodeAt(0)===45&&e.charCodeAt(1)===45}function allPropertyNames(){return Os===null&&buildTable(),Os}let ks=null;function computedPropertyNames(){if(ks!==null)return ks;ks=[],Ds===null&&buildTable();for(let e of Os){let t=Ds.get(e);e.charCodeAt(0)!==45&&t.specLonghands===null&&ks.push(e)}return ks}function cssPropertyToIDLAttribute(e,t){t&&e.charCodeAt(0)===45&&(e=e.slice(1));let n=``,r=!1;for(let t=0;t<e.length;t++){let i=e[t];i===`-`?r=!0:r?(r=!1,n+=i.toUpperCase()):n+=i}return n}const As={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},js={accentcolor:30207,accentcolortext:16777215,activetext:16711680,buttonborder:7763574,buttonface:15724527,buttontext:0,canvas:16777215,canvastext:0,field:16777215,fieldtext:0,graytext:8421504,highlight:11916799,highlighttext:0,linktext:238,mark:16776960,marktext:0,selecteditem:30207,selecteditemtext:16777215,visitedtext:5577355},Ms=/* @__PURE__ */ new Set([`lab`,`lch`,`oklab`,`oklch`,`color`,`color-mix`,`light-dark`,`device-cmyk`,`contrast-color`]);function isNamedColor(e){return As[e]!==void 0||js[e]!==void 0||e===`transparent`||e===`currentcolor`}var RGBA=class{r;g;b;a;constructor(e,t,n,r){this.r=e,this.g=t,this.b=n,this.a=r}};function clamp$1(e,t,n){return e<t?t:e>n?n:e}__name(clamp$1,`clamp`);function formatAlpha(e){let t=Math.round(clamp$1(e,0,1)*255),n=Math.round(t/255*100)/100;return Math.round(n*255)!==t&&(n=Math.round(t/255*1e3)/1e3),String(n)}function serializeRGBA(e){let t=Math.round(clamp$1(e.r,0,255)),n=Math.round(clamp$1(e.g,0,255)),r=Math.round(clamp$1(e.b,0,255)),i=clamp$1(e.a,0,1);return i>=1?`rgb(${t}, ${n}, ${r})`:`rgba(${t}, ${n}, ${r}, ${formatAlpha(i)})`}function fromPacked(e,t){return new RGBA(e>>16&255,e>>8&255,e&255,t)}function hexDigit(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e>=65&&e<=70?e-55:-1}function parseHex(e){let t=e.length;if(t!==3&&t!==4&&t!==6&&t!==8)return null;let n=[];for(let r=0;r<t;r++){let t=hexDigit(e.charCodeAt(r));if(t===-1)return null;n.push(t)}return t<=4?new RGBA(n[0]*17,n[1]*17,n[2]*17,t===4?n[3]*17/255:1):new RGBA(n[0]*16+n[1],n[2]*16+n[3],n[4]*16+n[5],t===8?(n[6]*16+n[7])/255:1)}function splitArgs(e){let t=e.trim();if(t.indexOf(`,`)!==-1){let e=t.split(`,`).map(e=>e.trim());for(let t of e)if(t===``||/\s/.test(t))return null;return e}let n=t.indexOf(`/`),r=(n===-1?t:t.slice(0,n)).trim().split(/\s+/);if(n!==-1){let e=t.slice(n+1).trim();if(e===``||/\s/.test(e))return null;r.push(e)}return r}const Ns=/^([+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?)(%|deg|grad|rad|turn)?$/i;function parseChannel(e,t){if(e.toLowerCase()===`none`)return 0;let n=Ns.exec(e);if(n===null)return null;let r=Number(n[1]);return n[2]===void 0?r:n[2]===`%`?r/100*t:null}function parseAlpha(e){if(e===void 0)return 1;let t=parseChannel(e,1);return t===null?null:clamp$1(t,0,1)}function parseHue(e){if(e.toLowerCase()===`none`)return 0;let t=Ns.exec(e);if(t===null)return null;let n=Number(t[1]),r=t[2]?.toLowerCase();return r===void 0||r===`deg`?n:r===`grad`?n*360/400:r===`rad`?n*180/Math.PI:r===`turn`?n*360:null}function hslToRgb(e,t,n){e=(e%360+360)%360,t=clamp$1(t,0,1),n=clamp$1(n,0,1);let f=r=>{let i=(r+e/30)%12,a=t*Math.min(n,1-n);return n-a*Math.max(-1,Math.min(i-3,9-i,1))};return[f(0)*255,f(8)*255,f(4)*255]}function hwbToRgb(e,t,n){if(t+n>=1){let e=t/(t+n)*255;return[e,e,e]}let r=hslToRgb(e,1,.5);for(let e=0;e<3;e++)r[e]=r[e]/255*(1-t-n)*255+t*255;return r}function parseColorFunction(e,t){let n=splitArgs(t);if(n===null||n.length!==3&&n.length!==4)return null;if(e===`rgb`||e===`rgba`){let e=parseChannel(n[0],255),t=parseChannel(n[1],255),r=parseChannel(n[2],255),i=parseAlpha(n[3]);return e===null||t===null||r===null||i===null?null:new RGBA(e,t,r,i)}if(e===`hsl`||e===`hsla`||e===`hwb`){let t=parseHue(n[0]),r=parseChannel(n[1],1),i=parseChannel(n[2],1),a=parseAlpha(n[3]);if(t===null||r===null||i===null||a===null)return null;let o=n[1].endsWith(`%`)?r:r/100,s=n[2].endsWith(`%`)?i:i/100,[c,l,u]=e===`hwb`?hwbToRgb(t,o,s):hslToRgb(t,o,s);return new RGBA(c,l,u,a)}return null}function normalizeColor(e){let t=e.trim();if(t===``)return null;if(t.charCodeAt(0)===35){let e=parseHex(t.slice(1));return e===null?null:serializeRGBA(e)}let n=t.indexOf(`(`);if(n===-1){let e=t.toLowerCase();return isNamedColor(e)?e:null}if(!t.endsWith(`)`))return null;let r=t.slice(0,n).toLowerCase(),i=t.slice(n+1,-1);if(Is.test(i)&&(Ps.has(r)||Fs.has(r)))return normalizeRelativeColor(r,i);if(Ms.has(r))return normalizeOtherColorFunction(r,i,t);let a=parseColorFunction(r,i);return a===null?null:serializeRGBA(a)}const Ps=/* @__PURE__ */ new Set([`rgb`,`rgba`,`hsl`,`hsla`,`hwb`]),Fs=/* @__PURE__ */ new Set([`lab`,`lch`,`oklab`,`oklch`]),Is=/^\s*from\s/i,Ls=/^(calc|min|max|clamp|round|mod|rem|abs|sign|sin|cos|tan|asin|acos|atan|atan2|pow|sqrt|hypot|log|exp)\(/i,Rs={lab:[100,125,125],lch:[100,150,0],oklab:[1,.4,.4],oklch:[1,.4,0]},zs=/* @__PURE__ */ new Set([`srgb`,`srgb-linear`,`display-p3`,`display-p3-linear`,`a98-rgb`,`prophoto-rgb`,`rec2020`,`xyz`,`xyz-d50`,`xyz-d65`]),Bs=/* @__PURE__ */ new Set([`hsl`,`hwb`,`lch`,`oklch`]),Vs=/* @__PURE__ */ new Set([`srgb`,`srgb-linear`,`display-p3`,`display-p3-linear`,`a98-rgb`,`prophoto-rgb`,`rec2020`,`lab`,`oklab`,`xyz`,`xyz-d50`,`xyz-d65`]),Hs=/* @__PURE__ */ new Set([`shorter`,`longer`,`increasing`,`decreasing`]);function roundSig(e,t){return e===0?`0`:formatNumber(Number(e.toPrecision(t)))}function alphaText(e){if(e.type===1)return e.lower===`none`?`none`:null;let t;if(e.type===10)t=e.num;else if(e.type===11)t=e.num/100;else return null;return t=clamp$1(t,0,1),t===1?``:formatNumber(Math.round(t*1e3)/1e3)}function channelsAndAlpha(e){let t=[],n=null,r=!1;for(let i=0;i<e.length;i++){let a=e[i];if(a.type!==100){if(a.type===18)return null;if(a.type===9){if(a.value!==`/`||r)return null;r=!0}else if(r){if(n!==null)return null;n=a}else t.push(a)}}return r&&n===null?null:[t,n]}function withAlpha(e,t){if(t===null)return e+`)`;let n=alphaText(t);return n===null?null:n===``?e+`)`:e+` / `+n+`)`}function normalizeCanonical(e,t){let n=channelsAndAlpha(t);if(n===null||n[0].length!==3)return null;let[r,i]=n,a=Rs[e],o=e===`lch`||e===`oklch`,s=e===`lab`||e===`lch`?100:1,c=e+`(`;for(let e=0;e<3;e++){let t=r[e],n;if(t.type===1&&t.lower===`none`)n=`none`;else if(o&&e===2){let e;if(t.type===10)e=t.num;else if(t.type===12){let n=parseHue(t.text);if(n===null)return null;e=n}else return null;n=roundSig((e%360+360)%360,6)}else{let r;if(t.type===10)r=t.num;else if(t.type===11)r=t.num/100*a[e];else return null;e===0?r=clamp$1(r,0,s):o&&e===1&&r<0&&(r=0),n=roundSig(r,6)}c+=(e===0?``:` `)+n}return withAlpha(c,i)}function normalizeColorFn(e){let t=0;for(;t<e.length&&e[t].type===100;)t++;let n=e[t];if(n===void 0||n.type!==1||!zs.has(n.lower))return null;let r=channelsAndAlpha(e.slice(t+1));if(r===null||r[0].length!==3)return null;let[i,a]=r,o=`color(`+(n.lower===`xyz`?`xyz-d65`:n.lower);for(let e of i)if(e.type===1&&e.lower===`none`)o+=` none`;else if(e.type===10)o+=` `+roundSig(e.num,5);else if(e.type===11)o+=` `+roundSig(e.num/100,5);else return null;return withAlpha(o,a)}function commaArgs(e){let t=[[]];for(let n of e)n.type===18?t.push([]):n.type!==100&&t[t.length-1].push(n);return t}function colorComponent(e){return e.type===4||e.type===1||e.type===2?normalizeColor(e.text):null}function normalizeColorMix(e){let t=commaArgs(e);if(t.length!==3)return null;let n=t[0];if(n.length<2||n[0].type!==1||n[0].lower!==`in`||n[1].type!==1)return null;let r=n[1].lower,i=`in `+r;if(Bs.has(r)){if(n.length===4){if(n[2].type!==1||!Hs.has(n[2].lower)||n[3].type!==1||n[3].lower!==`hue`)return null;i+=` `+n[2].lower+` hue`}else if(n.length!==2)return null}else if(!Vs.has(r)||n.length!==2)return null;let a=[],o=[];for(let e=1;e<=2;e++){let n=t[e];if(n.length<1||n.length>2)return null;let r=null,i=null;for(let e of n)if(e.type===11&&i===null){if(e.num<0||e.num>100)return null;i=e.num}else if(r!==null||(r=colorComponent(e),r===null))return null;if(r===null)return null;a.push(r),o.push(i)}let[s,c]=o;if(s===0&&c===0)return null;let l=a[0],u=a[1];if(s!==null&&c!==null)l+=` `+formatNumber(s)+`%`,u+=` `+formatNumber(c)+`%`;else if(s!==null||c!==null){let e=s===null?100-c:s;e!==50&&(l+=` `+formatNumber(e)+`%`)}return`color-mix(`+i+`, `+l+`, `+u+`)`}function normalizeLightDark(e){let t=commaArgs(e);if(t.length!==2||t[0].length!==1||t[1].length!==1)return null;let n=colorComponent(t[0][0]),r=colorComponent(t[1][0]);return n===null||r===null?null:`light-dark(`+n+`, `+r+`)`}function normalizeRelativeColor(e,t){let n=splitComponents(t);if(n===null)return null;let r=(e===`rgba`?`rgb`:e===`hsla`?`hsl`:e)+`(from`,i=!1;for(let e=0;e<n.length;e++){let t=n[e];if(t.type!==100&&!(e===0||t.type===1&&t.lower===`from`&&!i&&r.endsWith(`(from`))){if(i)r+=` `+(t.type===1?t.lower:t.text);else{let e=colorComponent(t);if(e===null)return null;r+=` `+e,i=!0}}}return i?r+`)`:null}function normalizeOtherColorFunction(e,t,n){let r=splitComponents(t);if(r===null)return null;for(let t of r)if(t.type===2&&Ls.test(t.text))return e+n.slice(e.length);switch(e){case`lab`:case`lch`:case`oklab`:case`oklch`:return normalizeCanonical(e,r);case`color`:return normalizeColorFn(r);case`color-mix`:return normalizeColorMix(r);case`light-dark`:return normalizeLightDark(r);default:return e+n.slice(e.length)}}function computeColor(e,t){let n=e.trim(),r=n.toLowerCase();if(r===`currentcolor`)return t;if(r===`transparent`)return`rgba(0, 0, 0, 0)`;let i=As[r]??js[r];if(i!==void 0)return serializeRGBA(fromPacked(i,1));if(n.charCodeAt(0)===35){let e=parseHex(n.slice(1));return e===null?n:serializeRGBA(e)}let a=n.indexOf(`(`);if(a!==-1&&n.endsWith(`)`)){let e=parseColorFunction(n.slice(0,a).toLowerCase(),n.slice(a+1,-1));if(e!==null)return serializeRGBA(e)}return n}var Comp=class{type;text;lower;num;isInteger;value;constructor(e,t,n,r,i,a){this.type=e,this.text=t,this.lower=n,this.num=r,this.isInteger=i,this.value=a}};function splitComponents(e){let t=new CSSTokenizer(e),n=[],r=[];for(;;){let i=t.next();if(i===0)break;switch(i){case 13:n.length!==0&&n[n.length-1].type!==100&&n.push(new Comp(100,` `,``,0,!0,``));continue;case 6:case 8:case 17:case 22:case 20:case 24:case 23:return null;case 9:if(t.value===`!`)return null;n.push(new Comp(9,t.value,t.value,0,!0,t.value));continue;case 2:case 21:case 19:{let a=t.start,o=i===2?t.value.toLowerCase():``;for(r.length=0,r.push(i===19?20:22);r.length>0;){let e=t.next();if(e===0)break;if(e===6||e===8)return null;if(e===r[r.length-1])r.pop();else if(e===2||e===21)r.push(22);else if(e===19)r.push(20);else if(e===23)r.push(24);else if(e===22||e===20||e===24)return null}let s=e.slice(a,t.end);for(let e=r.length-1;e>=0;e--)s+=r[e]===22?`)`:r[e]===20?`]`:`}`;n.push(new Comp(i,s,o,0,!0,``));continue}default:n.push(new Comp(i,e.slice(t.start,t.end),i===1?t.value.toLowerCase():i===12?t.unit.toLowerCase():``,t.num,t.isInteger,t.value))}}return n.length!==0&&n[n.length-1].type===100&&n.pop(),n}function significant(e){let t=[];for(let n=0;n<e.length;n++)e[n].type!==100&&t.push(e[n]);return t}function formatNumber(e){if(Object.is(e,-0))return`0`;let t=String(e);return t.indexOf(`e`)===-1?t:Math.abs(e)<1e-6?`0`:e.toFixed(0)}const Us=/* @__PURE__ */ new Set(/* @__PURE__ */ `px.em.rem.ex.rex.ch.rch.cap.rcap.ic.ric.lh.rlh.vw.vh.vi.vb.vmin.vmax.svw.svh.svi.svb.svmin.svmax.lvw.lvh.lvi.lvb.lvmin.lvmax.dvw.dvh.dvi.dvb.dvmin.dvmax.cqw.cqh.cqi.cqb.cqmin.cqmax.cm.mm.q.in.pt.pc`.split(`.`)),Ws=/* @__PURE__ */ new Set([`s`,`ms`]),Gs=/* @__PURE__ */ new Set([`deg`,`grad`,`rad`,`turn`]),Ks=/* @__PURE__ */ new Set(/* @__PURE__ */ `calc.min.max.clamp.round.mod.rem.sin.cos.tan.asin.acos.atan.atan2.pow.sqrt.hypot.log.exp.abs.sign.env.-webkit-calc.-moz-calc.calc-size.anchor.anchor-size`.split(`.`)),qs=1024;var Grammar=class{types;keywords;fns;max;constructor(e,t,n,r){this.types=e,this.keywords=t,this.fns=n,this.max=r}};const Js=new Grammar(2048,/* @__PURE__ */ new Set,/* @__PURE__ */ new Set,1);function grammar(e){let t=0,n=/* @__PURE__ */ new Set,r=/* @__PURE__ */ new Set,i=1;for(let a of e.split(` `)){if(a===``)continue;let e=a.endsWith(`+`)?a.slice(0,-1):a;switch(a.endsWith(`+`)&&e.length===1&&(t|=qs),e){case`L`:t|=1;continue;case`P`:t|=2;continue;case`N`:t|=4;continue;case`I`:t|=8;continue;case`C`:t|=16;continue;case`T`:t|=32;continue;case`A`:t|=64;continue;case`S`:t|=128;continue;case`U`:t|=256;continue}a===`#`?t|=4096:a.startsWith(`*`)?i=Number(a.slice(1)):a.endsWith(`()`)?r.add(a.slice(0,-2)):n.add(a)}return new Grammar(t,n,r,i)}const Ys=`L+ P+ auto min-content max-content fit-content stretch -webkit-fill-available -moz-available -webkit-min-content -webkit-max-content -webkit-fit-content fit-content()`,Xs=`L+ P+ none min-content max-content fit-content stretch -webkit-fill-available -moz-available fit-content()`,Zs=`L P auto`,Qs=`L P auto`,$s=`L+ P+`,ec=`none hidden dotted dashed solid double groove ridge inset outset`,tc=`L+ thin medium thick`,nc=`L+ P+ *2`,rc=`visible hidden clip scroll auto overlay -webkit-paged-x -webkit-paged-y`,ic={width:Ys,height:Ys,"min-width":Ys,"min-height":Ys,"inline-size":Ys,"block-size":Ys,"min-inline-size":Ys,"min-block-size":Ys,"max-width":Xs,"max-height":Xs,"max-inline-size":Xs,"max-block-size":Xs,top:Zs,right:Zs,bottom:Zs,left:Zs,"inset-block-start":Zs,"inset-block-end":Zs,"inset-inline-start":Zs,"inset-inline-end":Zs,"margin-top":Qs,"margin-right":Qs,"margin-bottom":Qs,"margin-left":Qs,"margin-block-start":Qs,"margin-block-end":Qs,"margin-inline-start":Qs,"margin-inline-end":Qs,"padding-top":$s,"padding-right":$s,"padding-bottom":$s,"padding-left":$s,"padding-block-start":$s,"padding-block-end":$s,"padding-inline-start":$s,"padding-inline-end":$s,"border-top-width":tc,"border-right-width":tc,"border-bottom-width":tc,"border-left-width":tc,"outline-width":tc,"column-rule-width":tc,"border-top-style":ec,"border-right-style":ec,"border-bottom-style":ec,"border-left-style":ec,"outline-style":ec+` auto`,"column-rule-style":ec,"border-block-start-color":`C`,"border-block-end-color":`C`,"border-inline-start-color":`C`,"border-inline-end-color":`C`,"border-top-color":`C`,"border-right-color":`C`,"border-bottom-color":`C`,"border-left-color":`C`,color:`C`,"background-color":`C`,"outline-color":`C invert`,"caret-color":`C auto`,"text-decoration-color":`C`,"column-rule-color":`C`,"accent-color":`C auto`,"flood-color":`C`,"lighting-color":`C`,"stop-color":`C`,"text-emphasis-color":`C`,"-webkit-text-fill-color":`C`,"-webkit-text-stroke-color":`C`,"border-top-left-radius":nc,"border-top-right-radius":nc,"border-bottom-right-radius":nc,"border-bottom-left-radius":nc,opacity:`N P`,"fill-opacity":`N P`,"stroke-opacity":`N P`,"flood-opacity":`N P`,"stop-opacity":`N P`,"z-index":`I auto`,order:`I`,"flex-grow":`N+`,"flex-shrink":`N+`,"flex-basis":`L+ P+ auto content min-content max-content fit-content`,"line-height":`N+ L+ P+ normal`,"font-size":`L+ P+ xx-small x-small small medium large x-large xx-large xxx-large larger smaller math`,"font-weight":`N+ normal bold bolder lighter`,"font-style":`normal italic oblique`,"font-variant":`normal none small-caps all-small-caps petite-caps all-petite-caps unicase titling-caps`,"font-stretch":`P+ normal ultra-condensed extra-condensed condensed semi-condensed semi-expanded expanded extra-expanded ultra-expanded`,visibility:`visible hidden collapse`,"pointer-events":`auto none visiblepainted visiblefill visiblestroke visible painted fill stroke all bounding-box`,position:`static relative absolute fixed sticky -webkit-sticky`,float:`left right none inline-start inline-end`,clear:`none left right both inline-start inline-end`,"box-sizing":`content-box border-box`,"overflow-x":rc,"overflow-y":rc,"overflow-block":rc,"overflow-inline":rc,"text-align":`start end left right center justify match-parent justify-all -webkit-left -webkit-right -webkit-center -moz-left -moz-right -moz-center`,"white-space":`normal pre nowrap pre-wrap break-spaces pre-line`,"user-select":`auto text none contain all`,"-webkit-user-select":`auto text none contain all`,"background-image":`U none # linear-gradient() radial-gradient() conic-gradient() repeating-linear-gradient() repeating-radial-gradient() repeating-conic-gradient() image-set() -webkit-image-set() url() image() cross-fade() element() paint() -webkit-linear-gradient() -webkit-radial-gradient() -webkit-gradient()`,"background-attachment":`# scroll fixed local`,"background-origin":`# border-box padding-box content-box`,"background-clip":`# border-box padding-box content-box text border-area`,"background-repeat":`# repeat-x repeat-y repeat space round no-repeat *2`,"background-size":`# L+ P+ auto cover contain *2`,"list-style-type":`*1`,"text-transform":`none capitalize uppercase lowercase full-width full-size-kana math-auto`,"word-break":`normal keep-all break-all break-word auto-phrase`,"text-overflow":`clip ellipsis`,"vertical-align":`L P baseline sub super text-top text-bottom middle top bottom`,"table-layout":`auto fixed`,"border-collapse":`collapse separate`,"empty-cells":`show hide`,"caption-side":`top bottom`,"list-style-position":`inside outside`,resize:`none both horizontal vertical block inline`,"object-fit":`fill contain cover none scale-down`,isolation:`auto isolate`,"mix-blend-mode":`normal multiply screen overlay darken lighten color-dodge color-burn hard-light soft-light difference exclusion hue saturation color luminosity plus-darker plus-lighter`,"backface-visibility":`visible hidden`,"flex-direction":`row row-reverse column column-reverse`,"flex-wrap":`nowrap wrap wrap-reverse`,"animation-duration":`# T+ auto`,"transition-duration":`# T+`,"animation-delay":`# T`,"transition-delay":`# T`,"animation-iteration-count":`# N+ infinite`,"animation-direction":`# normal reverse alternate alternate-reverse`,"animation-fill-mode":`# none forwards backwards both`,"animation-play-state":`# running paused`,"tab-size":`N+ L+`,"row-gap":`L+ P+ normal`,"column-gap":`L+ P+ normal`,"outline-offset":`L`,"letter-spacing":`L P normal`,"word-spacing":`L P normal`,"text-indent":`L P`,"aspect-ratio":`*1`,inset:`L P auto *4`,cursor:`# U N *3 auto default none context-menu help pointer progress wait cell crosshair text vertical-text alias copy move no-drop not-allowed grab grabbing e-resize n-resize ne-resize nw-resize s-resize se-resize sw-resize w-resize ew-resize ns-resize nesw-resize nwse-resize col-resize row-resize all-scroll zoom-in zoom-out -webkit-grab -webkit-grabbing -webkit-zoom-in -webkit-zoom-out hand`,"unicode-bidi":`normal embed isolate bidi-override isolate-override plaintext`,direction:`ltr rtl`,"writing-mode":`horizontal-tb vertical-rl vertical-lr sideways-rl sideways-lr`,"content-visibility":`visible auto hidden`,"scroll-behavior":`auto smooth`,"touch-action":`*1`,"will-change":`*1`,appearance:`none auto menulist-button textfield base-select button checkbox listbox menulist meter progress-bar push-button radio searchfield slider-horizontal square-button textarea`,"-webkit-appearance":`*1`},ac=/* @__PURE__ */ new Map;function grammarFor(e){let t=ac.get(e);if(t!==void 0)return t;let n=ic[e];return t=n===void 0||n===`*1`?Js:grammar(n),ac.set(e,t),t}function isCSSWideKeyword(e){return e===`inherit`||e===`initial`||e===`unset`||e===`revert`||e===`revert-layer`}function normalizeComponent(e,t){let n=t.types,r=!!(n&qs);switch(e.type){case 1:return t.keywords.has(e.lower)?e.lower:n&16?normalizeColor(e.text):null;case 10:return n&8&&e.isInteger&&(!r||e.num>=0)||n&4&&(!r||e.num>=0)?formatNumber(e.num):e.num===0&&n&1?`0px`:null;case 11:return n&2&&(!r||e.num>=0)?formatNumber(e.num)+`%`:null;case 12:return r&&e.num<0?null:n&1&&Us.has(e.lower)||n&32&&Ws.has(e.lower)||n&64&&Gs.has(e.lower)?formatNumber(e.num)+e.lower:null;case 4:return n&16?normalizeColor(e.text):null;case 5:return n&128?serializeString$1(e.value):null;case 7:return n&256?serializeUrl(e.value):null;case 2:{let r=e.lower;if(r===`url`&&n&256){let t=splitComponents(e.text.slice(4,-1));return t!==null&&t.length===1&&t[0].type===5?serializeUrl(t[0].value):e.text}if(n&111&&Ks.has(r))return e.text;if(n&16){let t=normalizeColor(e.text);if(t!==null)return t}return t.fns.has(r)?oc.has(r)?normalizeGradient(e):e.text:null}}return null}const oc=/* @__PURE__ */ new Set([`linear-gradient`,`radial-gradient`,`conic-gradient`,`repeating-linear-gradient`,`repeating-radial-gradient`,`repeating-conic-gradient`]);function normalizeGradient(e){let t=e.text.indexOf(`(`),n=splitComponents(e.text.slice(t+1,-1));if(n===null)return null;let r=e.lower,i=r.endsWith(`linear-gradient`),a=r.endsWith(`radial-gradient`),o=r.endsWith(`conic-gradient`),s=[],c=0,l=[],u=!1;for(let e=0;e<=n.length;e++){let t=e<n.length?n[e]:null;if(t===null||t.type===18){if(l.length===0)return null;if(u&&c++,s.length===0&&!u){let e=l.join(` `);i&&e===`to bottom`?l=[]:(a||o)&&(l.length>=2&&l[l.length-2]===`at`&&l[l.length-1]===`center`&&(l.length-=2),a&&(l=l.filter(e=>e!==`ellipse`&&e!==`farthest-corner`))),l.length!==0&&s.push(l.join(` `))}else s.push(l.join(` `));l=[],u=!1;continue}if(t.type===100)continue;let r=null;(t.type===4||t.type===1||t.type===2)&&(r=normalizeColor(t.text),r!==null&&(u=!0)),r===null&&(r=t.type===1?t.lower:t.type===12?t.text.toLowerCase():t.type===2?t.lower+t.text.slice(t.lower.length):t.text),l.push(r)}return c<2?null:r+`(`+s.join(`, `)+`)`}function normalizePaint(e){let t=significant(e);if(t.length!==1)return verbatimComps(e);let n=t[0];switch(n.type){case 1:return n.lower===`none`||n.lower===`context-fill`||n.lower===`context-stroke`?n.lower:normalizeColor(n.text);case 7:return serializeUrl(n.value);case 4:return normalizeColor(n.text);case 2:return n.lower===`url`?normalizeComponent(n,uc):normalizeColor(n.text)??n.text}return verbatimComps(e)}function normalizeImageLoose(e){let t=significant(e);if(t.length===1){let e=t[0];if(e.type===7)return serializeUrl(e.value);if(e.type===1)return e.lower===`none`?`none`:e.text;if(e.type===2&&oc.has(e.lower))return normalizeGradient(e)??e.text}return verbatimComps(e)}function verbatimComps(e){let t=``;for(let n of e)t+=n.text;return t}function serializeString$1(e){let t=`"`;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t+=r===0?`�`:r>=1&&r<=31||r===127?`\\`+r.toString(16)+` `:r===34||r===92?`\\`+e[n]:e[n]}return t+`"`}__name(serializeString$1,`serializeString`);function serializeUrl(e){return`url(`+serializeString$1(e)+`)`}function containsVar(e){return e.indexOf(`(`)===-1?!1:/var\(/i.test(e)||/env\(/i.test(e)||/attr\(/i.test(e)}function verbatim(e){return e.trim()}const sc=/* @__PURE__ */ new Set([`block`,`inline`,`run-in`]),cc=/* @__PURE__ */ new Set([`flow`,`flow-root`,`table`,`flex`,`grid`,`ruby`,`math`]),lc=/* @__PURE__ */ new Set(/* @__PURE__ */ `none.contents.block.inline.inline-block.flex.inline-flex.grid.inline-grid.flow-root.list-item.table.inline-table.table-row.table-cell.table-column.table-column-group.table-header-group.table-footer-group.table-row-group.table-caption.run-in.ruby.ruby-text.ruby-base.ruby-base-container.ruby-text-container.flow.math.-webkit-box.-webkit-inline-box.-moz-box.-moz-inline-box.inline-list-item.-webkit-flex.-webkit-inline-flex.-ms-flexbox.-ms-inline-flexbox.-ms-grid.-ms-inline-grid`.split(`.`));function normalizeDisplay(e){let t=[];for(let n of e)if(n.type!==100){if(n.type!==1)return null;t.push(n.lower)}if(t.length===1)return lc.has(t[0])?t[0]:null;if(t.length>3)return null;let n=``,r=``,i=!1;for(let e of t)if(sc.has(e)&&n===``)n=e;else if(cc.has(e)&&r===``)r=e;else if(e===`list-item`&&!i)i=!0;else return null;return i&&r!==``&&r!==`flow`&&r!==`flow-root`?null:(n===``&&(n=`block`),r===``&&(r=`flow`),i?(n===`block`?``:n+` `)+(r===`flow-root`?`flow-root `:``)+`list-item`:n===`block`?r===`flow`?`block`:r:n===`inline`?r===`flow`?`inline`:r===`flow-root`?`inline-block`:r===`table`||r===`flex`||r===`grid`?`inline-`+r:`inline `+r:n+(r===`flow`?``:` `+r))}function normalizeContent(e){let t=``;for(let n of e)if(n.type===100)t+=` `;else{if(n.type===18)return null;n.type===5?t+=serializeString$1(n.value):n.type===7?t+=serializeUrl(n.value):n.type===1?t+=isCSSWideKeyword(n.lower)||n.lower===`none`||n.lower===`normal`||n.lower.endsWith(`-quote`)?n.lower:n.text:t+=n.text}return t===``?null:t}const uc=new Grammar(256,/* @__PURE__ */ new Set,/* @__PURE__ */ new Set,1),dc={display:normalizeDisplay,content:normalizeContent,fill:normalizePaint,stroke:normalizePaint,"list-style-image":normalizeImageLoose,"border-image-source":normalizeImageLoose,"mask-image":normalizeImageLoose,"-webkit-mask-image":normalizeImageLoose},fc=/* @__PURE__ */ new Map;function normalizeLonghand(e,t){let n=fc.get(e);if(n===void 0)fc.set(e,n=/* @__PURE__ */ new Map);else{let e=n.get(t);if(e!==void 0)return e}let r=normalizeLonghandValue(e,t);return n.size===256&&n.clear(),n.set(t,r),r}function normalizeLonghandValue(e,t){let n=t.trim();if(n===``)return null;let r=splitComponents(n);if(r===null)return null;if(r.length===1&&r[0].type===1&&isCSSWideKeyword(r[0].lower))return r[0].lower;if(containsVar(n))return verbatim(n);let i=dc[e];if(i!==void 0)return i(r);let a=grammarFor(e);return a.types===2048?verbatim(n):normalizeComps(r,a)}function normalizeComps(e,t){let n=``,r=0,i=``;for(let a=0;a<e.length;a++){let o=e[a];if(o.type===100)continue;if(o.type===18&&t.types&4096){if(r===0)return null;r=0,i=`, `;continue}if(++r>t.max||o.type===18||o.type===9)return null;let s=normalizeComponent(o,t);if(s===null)return null;n=n===``?s:n+(r===1?i:` `)+s}return r===0?null:n}function normalizeCustom(e){let t=e.trim();return t===``||splitComponents(t)===null&&/[;!]/.test(t)?null:t}const pc=[`top`,`right`,`bottom`,`left`];function box(e,t){return pc.map(n=>e+n+t)}const mc=box(`border-`,`-width`),hc=box(`border-`,`-style`),gc=box(`border-`,`-color`),_c=/* @__PURE__ */ new Map([[`margin`,box(`margin-`,``)],[`padding`,box(`padding-`,``)],[`border-width`,mc],[`border-style`,hc],[`border-color`,gc],[`border-top`,[`border-top-width`,`border-top-style`,`border-top-color`]],[`border-right`,[`border-right-width`,`border-right-style`,`border-right-color`]],[`border-bottom`,[`border-bottom-width`,`border-bottom-style`,`border-bottom-color`]],[`border-left`,[`border-left-width`,`border-left-style`,`border-left-color`]],[`border`,[...mc,...hc,...gc,`border-image`]],[`flex`,[`flex-grow`,`flex-shrink`,`flex-basis`]],[`background`,[`background-image`,`background-position-x`,`background-position-y`,`background-size`,`background-repeat`,`background-origin`,`background-clip`,`background-attachment`,`background-color`]],[`background-position`,[`background-position-x`,`background-position-y`]],[`font`,[`font-style`,`font-variant`,`font-weight`,`font-size`,`line-height`,`font-family`]]]),vc=/* @__PURE__ */ new Map;for(let[e,t]of _c)for(let n of t){let t=vc.get(n);t===void 0&&vc.set(n,t=[]),t.push(e)}for(let e of vc.values())e.sort((e,t)=>_c.get(t).length-_c.get(e).length);function isExpandedShorthand(e){return _c.has(e)}function longhandsOf(e){return _c.get(e)}function shorthandsContaining(e){return vc.get(e)}function items(e){let t=splitComponents(e);if(t===null)return null;let n=[];for(let e of t)e.type!==100&&n.push(e);return n}function expandBox(e,t){let n=items(t);if(n===null||n.length<1||n.length>4)return null;let r=grammarFor(e[0]),i=[];for(let e of n){if(e.type===18||e.type===9)return null;let t=normalizeComponent(e,r);if(t===null)return null;i.push(t)}let a=i[0],o=i[1]??a;return[a,o,i[2]??a,i[3]??o]}const yc=/* @__PURE__ */ new Set([`none`,`hidden`,`dotted`,`dashed`,`solid`,`double`,`groove`,`ridge`,`inset`,`outset`]);function parseBorderSide(e){let t=items(e);if(t===null||t.length<1||t.length>3)return null;let n=``,r=``,i=``,a=grammarFor(`border-top-width`);for(let e of t){if(e.type===1&&yc.has(e.lower)){if(r!==``)return null;r=e.lower;continue}let t=normalizeComponent(e,a);if(t!==null){if(n!==``)return null;n=t;continue}let o=normalizeColor(e.text);if(o!==null&&e.type!==10){if(i!==``)return null;i=o}else return null}return[n||`medium`,r||`none`,i||`currentcolor`]}const bc=/* @__PURE__ */ new Set([`auto`,`content`,`min-content`,`max-content`,`fit-content`]);function expandFlex(e){let t=items(e);if(t===null||t.length<1||t.length>3)return null;if(t.length===1&&t[0].type===1){if(t[0].lower===`none`)return[`0`,`0`,`auto`];if(t[0].lower===`auto`)return[`1`,`1`,`auto`]}let n=grammarFor(`flex-basis`),num=e=>e!==void 0&&e.type===10&&e.num>=0?formatNumber(e.num):null,basisOf=e=>e.type===1&&!bc.has(e.lower)?null:normalizeComponent(e,n),r,i=null,a=null,o=0;if((r=num(t[0]))!==null){if(o=1,(i=num(t[1]))!==null&&(o=2),o<t.length){if(a=basisOf(t[o]),a===null)return null;o++}}else{if(a=basisOf(t[0]),a===null)return null;o=1,(r=num(t[1]))!==null&&(o=2,(i=num(t[2]))!==null&&(o=3))}return o===t.length?r===null?[`1`,`1`,a]:[r,i??`1`,a??`0%`]:null}const xc=/* @__PURE__ */ new Set([`left`,`center`,`right`,`top`,`bottom`]),Sc=/* @__PURE__ */ new Set([`repeat-x`,`repeat-y`,`repeat`,`space`,`round`,`no-repeat`]),Cc=/* @__PURE__ */ new Set([`scroll`,`fixed`,`local`]),wc=/* @__PURE__ */ new Set([`border-box`,`padding-box`,`content-box`]),Tc=/* @__PURE__ */ new Set([`linear-gradient`,`radial-gradient`,`conic-gradient`,`repeating-linear-gradient`,`repeating-radial-gradient`,`repeating-conic-gradient`,`image-set`,`-webkit-image-set`,`image`,`cross-fade`,`element`,`paint`,`-webkit-linear-gradient`,`-webkit-radial-gradient`,`-webkit-gradient`,`-moz-linear-gradient`,`-moz-radial-gradient`]);function isPositionComp(e){return e.type===1?xc.has(e.lower):normalizeComponent(e,grammarFor(`margin-top`))!==null&&e.type!==1}function positionComp(e){return e.type===1?e.lower:normalizeComponent(e,grammarFor(`margin-top`))}function parsePosition(e){if(e.length<1||e.length>4)return null;let t=e.map(positionComp),isY=e=>e===`top`||e===`bottom`,isX=e=>e===`left`||e===`right`;if(t.length===1)return isY(t[0])?[`center`,t[0]]:[t[0],`center`];if(t.length===2)return isY(t[0])||isX(t[1])?isY(t[1])||isX(t[0])?null:[t[1],t[0]]:[t[0],t[1]];let n,r;return t.length===3?xc.has(t[1])?(n=t[0],r=t[1]+` `+t[2]):(n=t[0]+` `+t[1],r=t[2]):(n=t[0]+` `+t[1],r=t[2]+` `+t[3]),isY(n.split(` `)[0])?[r,n]:[n,r]}const Ec=[`none`,`0%`,`0%`,`auto`,`repeat`,`padding-box`,`border-box`,`scroll`,`transparent`];function parseBackgroundLayer(e,t){let n=``,r=``,i=``,a=``,o=``,s=``,c=``,l=``,u=``,d=0;for(;d<e.length;){let m=e[d];if(m.type===1&&m.lower===`none`&&n===``)n=`none`,d++;else if(m.type===7||m.type===2&&(m.lower===`url`||Tc.has(m.lower))){if(n!==``)return null;n=m.type===7?serializeUrl(m.value):normalizeComponent(m,grammarFor(`background-image`))??m.text,d++}else if(isPositionComp(m)&&r===``){let t=d;for(;t<e.length&&t-d<4&&isPositionComp(e[t]);)t++;let n=parsePosition(e.slice(d,t));if(n===null)return null;if(r=n[0],i=n[1],d=t,d<e.length&&e[d].type===9&&e[d].value===`/`){d++;let t=grammarFor(`background-size`),n=[];for(;d<e.length&&n.length<2;){let r=normalizeComponent(e[d],t);if(r===null||(n.push(r),d++,r===`cover`||r===`contain`))break}if(n.length===0)return null;a=n.join(` `)}}else if(m.type===1&&Sc.has(m.lower)&&o===``){if(o=m.lower,m.lower!==`repeat-x`&&m.lower!==`repeat-y`&&d+1<e.length){let t=e[d+1];t.type===1&&Sc.has(t.lower)&&t.lower!==`repeat-x`&&t.lower!==`repeat-y`&&(o+=` `+t.lower,d++)}d++}else if(m.type===1&&Cc.has(m.lower)&&l===``)l=m.lower,d++;else if(m.type===1&&wc.has(m.lower)){if(s===``)s=m.lower;else if(c===``)c=m.lower;else return null;d++}else{if(t&&u===``){let e=normalizeColor(m.text);if(e!==null&&m.type!==10){u=e,d++;continue}}return null}}c===``&&s!==``&&(c=s);let m=[n,r,i,a,o,s,c,l,u];for(let e=0;e<m.length;e++)m[e]===``&&(m[e]=Ec[e]);return m}const Dc=/* @__PURE__ */ new Set([`caption`,`icon`,`menu`,`message-box`,`small-caption`,`status-bar`]),Oc=/* @__PURE__ */ new Set([`italic`,`oblique`]),kc=/* @__PURE__ */ new Set([`small-caps`]),Ac=/* @__PURE__ */ new Set([`bold`,`bolder`,`lighter`]),jc=/* @__PURE__ */ new Set([`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`]);function expandFont(e){let t=items(e);if(t===null||t.length<2||t.length===1&&t[0].type===1&&Dc.has(t[0].lower))return null;let n=``,r=``,i=``,a=0,o=0;for(;a<t.length&&a<4;a++){let e=t[a];if(e.type===1){if(e.lower===`normal`){o++;continue}if(Oc.has(e.lower)&&n===``){n=e.lower;continue}if(kc.has(e.lower)&&r===``){r=e.lower;continue}if(Ac.has(e.lower)&&i===``){i=e.lower;continue}if(jc.has(e.lower))continue;break}if(e.type===10&&i===``&&e.num>=1&&e.num<=1e3)i=formatNumber(e.num);else break}if(a>=t.length)return null;let s=normalizeComponent(t[a],grammarFor(`font-size`));if(s===null)return null;a++;let c=`normal`;if(a<t.length&&t[a].type===9&&t[a].value===`/`){if(a++,a>=t.length)return null;let e=normalizeComponent(t[a],grammarFor(`line-height`));if(e===null)return null;c=e,a++}if(a>=t.length)return null;let l=``;for(;a<t.length;a++){let e=t[a];if(e.type===18){l+=`,`;continue}if(e.type===10||e.type===9)return null;let n=e.type===5?`"`+e.value.replace(/(["\\])/g,`\\$1`)+`"`:e.text;l+=(l===``||l.endsWith(`,`))&&l===``?n:` `+n}return o>3?null:[n||`normal`,r||`normal`,i||`normal`,s,c,l]}function expandShorthand(e,t){switch(e){case`margin`:case`padding`:case`border-width`:case`border-style`:case`border-color`:return expandBox(_c.get(e),t);case`border-top`:case`border-right`:case`border-bottom`:case`border-left`:return parseBorderSide(t);case`border`:{let e=parseBorderSide(t);return e===null?null:[e[0],e[0],e[0],e[0],e[1],e[1],e[1],e[1],e[2],e[2],e[2],e[2],`none`]}case`flex`:return expandFlex(t);case`background-position`:{let e=items(t);if(e===null)return null;for(let t of e)if(!isPositionComp(t))return null;return parsePosition(e)}case`background`:{let e=items(t);if(e===null||e.length===0)return null;let n=0,r=0,i=null;for(let t=0;t<=e.length;t++)if(t===e.length||e[t].type===18){let a=parseBackgroundLayer(e.slice(n,t),t===e.length);if(a===null)return null;i=a,r++,n=t+1}return r>1?Ic:i}case`font`:return expandFont(t)}return null}const Mc=/* @__PURE__ */ new Map([[`outline`,[`outline-color`,`outline-style`,`outline-width`]],[`overflow`,[`overflow-x`,`overflow-y`]],[`gap`,[`row-gap`,`column-gap`]],[`inset`,[`top`,`right`,`bottom`,`left`]],[`list-style`,[`list-style-position`,`list-style-image`,`list-style-type`]],[`flex-flow`,[`flex-direction`,`flex-wrap`]]]);function pendingLonghandsMap(){return new Map([..._c,...Mc])}function cascadeLonghandsOf(e){return _c.get(e)??Mc.get(e)}function isCascadeOnlyShorthand(e){return Mc.has(e)}const Nc=/* @__PURE__ */ new Set([`visible`,`hidden`,`clip`,`scroll`,`auto`,`overlay`]),Pc=/* @__PURE__ */ new Set([`row`,`row-reverse`,`column`,`column-reverse`]),Fc=/* @__PURE__ */ new Set([`nowrap`,`wrap`,`wrap-reverse`]);function expandCascadeShorthand(e,t){switch(e){case`outline`:{let e=items(t);if(e===null||e.length<1||e.length>3)return null;let n=``,r=``,i=``,a=grammarFor(`outline-width`);for(let t of e){if(t.type===1&&(yc.has(t.lower)||t.lower===`auto`)&&t.lower!==`hidden`){if(r!==``)return null;r=t.lower;continue}let e=normalizeComponent(t,a);if(e!==null){if(n!==``)return null;n=e;continue}let o=normalizeColor(t.text);if(o!==null&&t.type!==10){if(i!==``)return null;i=o}else return null}return[i||`currentcolor`,r||`none`,n||`medium`]}case`overflow`:case`flex-flow`:{let n=items(t);if(n===null||n.length<1||n.length>2)return null;for(let e of n)if(e.type!==1)return null;if(e===`overflow`){for(let e of n)if(!Nc.has(e.lower))return null;return[n[0].lower,(n[1]??n[0]).lower]}let r=``,i=``;for(let e of n)if(Pc.has(e.lower)&&r===``)r=e.lower;else if(Fc.has(e.lower)&&i===``)i=e.lower;else return null;return[r||`row`,i||`nowrap`]}case`gap`:{let e=items(t);if(e===null||e.length<1||e.length>2)return null;let n=grammarFor(`row-gap`),r=[];for(let t of e){let e=normalizeComponent(t,n);if(e===null)return null;r.push(e)}return[r[0],r[1]??r[0]]}case`inset`:return expandBox(Mc.get(`inset`),t);case`list-style`:{let e=items(t);if(e===null||e.length<1||e.length>3)return null;let n=``,r=``,i=``,a=0;for(let t of e)if(t.type===1&&(t.lower===`inside`||t.lower===`outside`)&&n===``)n=t.lower;else if(t.type===1&&t.lower===`none`)a++;else if((t.type===7||t.type===2&&Tc.has(t.lower))&&r===``)r=t.type===7?serializeUrl(t.value):t.text;else if((t.type===1||t.type===5||t.type===2&&t.lower===`symbols`)&&i===``)i=t.type===1?t.lower:t.text;else return null;return a>+(r===``)+ +(i===``)?null:(a!==0&&(r===``&&(r=`none`),i===``&&(i=`none`)),[n||`outside`,r||`none`,i||`disc`])}}return null}function serializeCascadeShorthand(e,t){switch(e){case`overflow`:case`gap`:return t[0]===t[1]?t[0]:t[0]+` `+t[1];case`inset`:return serializeBox(t);case`outline`:case`list-style`:case`flex-flow`:return t.join(` `)}return``}const Ic=[];function serializeBox(e){let[t,n,r,i]=e;return i===n?r===t?n===t?t:t+` `+n:t+` `+n+` `+r:t+` `+n+` `+r+` `+i}function serializeSide(e,t,n,r){if(r)return e+` `+t+` `+n;let i=[];return e!==`medium`&&i.push(e),t!==`none`&&i.push(t),n!==`currentcolor`&&i.push(n),i.length===0?e:i.join(` `)}function serializeShorthand(e,t,n){let r=0;for(let e of t)isCSSWideKeyword(e)&&r++;if(r!==0){if(r!==t.length)return``;for(let e of t)if(e!==t[0])return``;return t[0]}switch(e){case`margin`:case`padding`:case`border-width`:case`border-style`:case`border-color`:return serializeBox(t);case`border-top`:case`border-right`:case`border-bottom`:case`border-left`:return serializeSide(t[0],t[1],t[2],n);case`border`:for(let e=0;e<3;e++){let n=e*4;if(t[n]!==t[n+1]||t[n]!==t[n+2]||t[n]!==t[n+3])return``}return t[12]===`none`?serializeSide(t[0],t[4],t[8],n):``;case`flex`:return t[0]+` `+t[1]+` `+t[2];case`background-position`:return t[0]+` `+t[1];case`background`:{if(n)return`${t[8]} ${t[0]} ${t[7]} ${t[4]} ${t[1]} ${t[2]} / ${t[3]} ${t[5]} ${t[6]}`.replace(/\s+/g,` `);let e=[];return t[0]!==`none`&&e.push(t[0]),(t[1]!==`0%`||t[2]!==`0%`||t[3]!==`auto`)&&e.push(t[1]+` `+t[2]+(t[3]===`auto`?``:` / `+t[3])),t[4]!==`repeat`&&e.push(t[4]),t[7]!==`scroll`&&e.push(t[7]),(t[5]!==`padding-box`||t[6]!==`border-box`)&&e.push(t[5]===t[6]?t[5]:t[5]+` `+t[6]),t[8]!==`transparent`&&t[8]!==`rgba(0, 0, 0, 0)`&&e.push(t[8]),e.length===0?`none`:e.join(` `)}case`font`:{let e=[];return t[0]!==`normal`&&e.push(t[0]),t[1]!==`normal`&&e.push(t[1]),t[2]!==`normal`&&!(n&&t[2]===`400`)&&e.push(t[2]),e.push(t[3]+(t[4]===`normal`?``:` / `+t[4])),e.push(t[5]),e.join(` `)}}return``}var DeclBlock=class{names;values;important;dirty;namesChanged;serialized;serializedCount;constructor(){this.names=[],this.values=[],this.important=[],this.dirty=!1,this.namesChanged=!1,this.serialized=``,this.serializedCount=0}get length(){return this.names.length}indexOf(e){let t=this.names;for(let n=0;n<t.length;n++)if(t[n]===e)return n;return-1}clear(){this.names.length!==0&&(this.namesChanged=!0),this.names.length=0,this.values.length=0,this.important.length=0,this.serialized=``,this.serializedCount=0}put(e,t,n){let r=this.indexOf(e);r===-1?(this.names.push(e),this.values.push(t),this.important.push(n),this.dirty=!0,this.namesChanged=!0):(this.values[r]!==t||this.important[r]!==n)&&(this.values[r]=t,this.important[r]=n,this.dirty=!0,this.serializedCount=-1)}putParsed(e,t,n){let r=this.indexOf(e);if(r!==-1){if(this.important[r]&&!n)return;this.names.splice(r,1),this.values.splice(r,1),this.important.splice(r,1),this.serializedCount=-1}this.names.push(e),this.values.push(t),this.important.push(n),this.namesChanged=!0}removeOne(e){let t=this.indexOf(e);return t!==-1&&(this.names.splice(t,1),this.values.splice(t,1),this.important.splice(t,1),this.dirty=!0,this.namesChanged=!0,this.serializedCount=-1,!0)}setValue(e,t,n,r){if(isCustomPropertyName(e)){let i=normalizeCustom(t);return i!==null&&(r?this.putParsed(e,i,n):this.put(e,i,n),!0)}if(isExpandedShorthand(e)){let i=longhandsOf(e),a=t.trim(),o=splitComponents(a);if(o===null||a===``)return!1;if(o.length===1&&o[0].type===1&&isCSSWideKeyword(o[0].lower)){for(let e of i)this.putOrParsed(e,o[0].lower,n,r);return this.removeOne(e),!0}let s=null;if(!containsVar(a)&&(s=expandShorthand(e,a),s===null))return!1;if(s===null||s===Ic){for(let e of i)this.removeOne(e);return this.putOrParsed(e,a,n,r),!0}this.removeOne(e);for(let e=0;e<i.length;e++)this.putOrParsed(i[e],s[e],n,r);return!0}if(!isSupportedProperty(e))return!1;let i=normalizeLonghand(e,t);return i!==null&&(this.putOrParsed(e,i,n,r),!0)}putOrParsed(e,t,n,r){r?this.putParsed(e,t,n):this.put(e,t,n)}parse(e){this.clear(),e!==``&&this.addRaw(parseDeclarationList(e))}addRaw(e){for(let t=0;t<e.length;t++){let n=e[t],r=isCustomPropertyName(n.name)?n.name:n.name.toLowerCase();this.setValue(r,n.value,n.important,!0)}}remove(e){let t=this.removeOne(e),n=longhandsOf(e);if(n!==void 0)for(let e of n)this.removeOne(e)&&(t=!0);return t}getPropertyValue(e){let t=this.indexOf(e);if(t!==-1)return this.values[t];let n=longhandsOf(e);if(n===void 0)return``;let r=[],i=-1;for(let e of n){let t=this.indexOf(e);if(t===-1)return``;let n=+!!this.important[t];if(i===-1)i=n;else if(i!==n)return``;r.push(this.values[t])}return serializeShorthand(e,r,!1)}getPropertyPriority(e){let t=this.indexOf(e);if(t!==-1)return this.important[t]?`important`:``;let n=longhandsOf(e);if(n===void 0)return``;for(let e of n){let t=this.indexOf(e);if(t===-1||!this.important[t])return``}return`important`}serialize(){let e=this.names,t=e.length,n=this.serializedCount;if(n===t)return this.serialized;if(n>=0){let r=this.serialized;for(;n<t;n++){let t=shorthandsContaining(e[n]);if(t!==void 0&&this.completesShorthand(t))break;r+=(r===``?``:` `)+serializeDeclaration(e[n],this.values[n],this.important[n])}if(n===t)return this.serialized=r,this.serializedCount=t,r}let r=this.serializeAll();return this.serialized=r,this.serializedCount=t,r}completesShorthand(e){for(let t=0;t<e.length;t++){let n=longhandsOf(e[t]),r=!0;for(let e=0;e<n.length&&r;e++)r=this.indexOf(n[e])!==-1;if(r)return!0}return!1}serializeAll(){let e=this.names,t=e.length;if(t===0)return``;let n=``,r=null;for(let i=0;i<t;i++){let a=e[i];if(r!==null&&r.has(a))continue;let o=shorthandsContaining(a),s=!1;if(o!==void 0)for(let e=0;e<o.length&&!s;e++){let a=o[e],c=longhandsOf(a),l=c.length<=t;for(let e=0;e<c.length&&l;e++){let t=this.indexOf(c[e]);l=t!==-1&&this.important[t]===this.important[i]&&(r===null||!r.has(c[e]))}if(!l)continue;let u=Array(c.length);for(let e=0;e<c.length;e++)u[e]=this.values[this.indexOf(c[e])];let d=serializeShorthand(a,u,!1);if(d!==``){r===null&&(r=/* @__PURE__ */ new Set);for(let e of c)r.add(e);n+=(n===``?``:` `)+serializeDeclaration(a,d,this.important[i]),s=!0}}s||(n+=(n===``?``:` `)+serializeDeclaration(a,this.values[i],this.important[i]))}return n}};function serializeDeclaration(e,t,n){return e+`: `+t+(n?` !important;`:`;`)}function parseDeclBlock(e){let t=new DeclBlock;return t.parse(e),t}var CSSStyleDeclaration=class{[z];[Fn];[C];[Xn];[Rr];[dn];constructor(e=null,t=null,n=null){if(Lc||installAccessors(),this[z]=e,this[Fn]=n,this[C]=t??new DeclBlock,this[Xn]=!1,this[Rr]=!1,this[dn]=0,e!==null){let t=attr(e[j],`style`);t!==null&&t!==``&&this[C].parse(t)}this[C].names.length!==0&&this._syncIndices()}_attributeChanged(e){this[Rr]||(this[C].parse(e??``),this._syncIndices())}_changed(){this._syncIndices();let e=this[z];if(e!==null){this[Rr]=!0;try{setAttribute(e[j],`style`,this[C].serialize())}finally{this[Rr]=!1}}else this[Fn]!==null&&this[Fn]._declarationsChanged()}_syncIndices(){let e=this[C];if(!e.namesChanged)return;e.namesChanged=!1;let t=e.names,n=this,r=t.length;for(let e=0;e<r;e++)n[e]!==t[e]&&(n[e]=t[e]);for(let e=r;e<this[dn];e++)delete n[e];this[dn]=r}_checkWritable(){if(this[Xn])throw new DOMException(`Failed to execute on 'CSSStyleDeclaration': These styles are computed, and therefore read-only.`,`NoModificationAllowedError`)}get cssText(){return this[Xn]?``:this[C].serialize()}set cssText(e){this._checkWritable(),this[C].parse(e===null?``:String(e)),this._changed()}get length(){return this[C].names.length}item(e){return this[C].names[e>>>0]??``}getPropertyValue(e){let t=String(e);return this[C].getPropertyValue(isCustomPropertyName(t)?t:t.toLowerCase())}getPropertyPriority(e){let t=String(e);return this[C].getPropertyPriority(isCustomPropertyName(t)?t:t.toLowerCase())}setProperty(e,t,n=``){this._checkWritable();let r=String(e);isCustomPropertyName(r)||(r=r.toLowerCase());let i=t===null?``:idlString(t);if(i===``){this.removeProperty(r);return}let a=n===null?``:idlString(n),o=!1;if(a!==``){if(a.toLowerCase()!==`important`)return;o=!0}let s=this[C];s.dirty=!1,s.setValue(r,i,o,!1)&&s.dirty&&this._changed()}removeProperty(e){this._checkWritable();let t=String(e);isCustomPropertyName(t)||(t=t.toLowerCase());let n=this[C].getPropertyValue(t);return this[C].remove(t)&&this._changed(),n}get parentRule(){return this[Fn]}get cssFloat(){return this.getPropertyValue(`float`)}set cssFloat(e){this._setNamed(`float`,e)}_setNamed(e,t){this[Xn]||this.setProperty(e,t===null?``:idlString(t))}*[Symbol.iterator](){let e=this.length;for(let t=0;t<e;t++)yield this.item(t)}get[Symbol.toStringTag](){return`CSSStyleDeclaration`}};let Lc=!1;function installAccessors(){Lc=!0;let e=CSSStyleDeclaration.prototype,t=Object.create(null),define=(n,r)=>{Object.hasOwn(t,n)||Object.hasOwn(e,n)||Object.defineProperty(t,n,r)};for(let e of allPropertyNames()){let t={get(){return this.getPropertyValue(e)},set(t){this._setNamed(e,t)},enumerable:!0,configurable:!0};define(e,t),e.indexOf(`-`)!==-1&&(define(cssPropertyToIDLAttribute(e,!1),t),e.startsWith(`-webkit-`)&&define(cssPropertyToIDLAttribute(e,!0),t))}Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.setPrototypeOf(e,t)}function idlString(e){if(typeof e==`symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return String(e)}const Rc=[`jsdom-26`,`jsdom-30`,`modern`],zc=`jsdom-30`,Bc=Rc,Vc=[`jsdom-30`,`modern`],Hc=[`modern`],handlers=e=>e.map(e=>`on${e}`),on=(e,t)=>t.map(t=>`${e}.${t}`),Uc=handlers([`gotpointercapture`,`lostpointercapture`,`pointercancel`,`pointerdown`,`pointerenter`,`pointerleave`,`pointermove`,`pointerout`,`pointerover`,`pointerrawupdate`,`pointerup`]),Wc=handlers([`animationcancel`,`animationend`,`animationiteration`,`animationstart`,`command`,`selectionchange`,`selectstart`,`transitioncancel`,`transitionend`,`transitionrun`,`transitionstart`]),Gc=[`Document`,`HTMLElement`,`SVGElement`,`MathMLElement`],Kc=[{globals:[`PointerEvent`,...Uc],members:Gc.flatMap(e=>on(e,Uc)),profiles:Vc,reason:"jsdom 27 added pointer events. Libraries pick pointer or mouse/touch code paths by detecting `PointerEvent` or `onpointerdown` (React Aria caches the choice at import), so suites written for jsdom 26 break when they exist, and again when they `delete global.PointerEvent` after installing a fake."},{globals:[`matchMedia`,`MediaQueryList`,`MediaQueryListEvent`],profiles:Hc,reason:"No jsdom has matchMedia. Suites install their own (mock-match-media only polyfills it when it is missing: React Aria's `setMedia({pointer: 'coarse'})` did nothing with ours present) and components feature-detect it."},{globals:[`ResizeObserver`],profiles:Hc,reason:`No jsdom has ResizeObserver, and libraries detect it to pick their browser path: Base UI's ScrollArea then calls getAnimations(), which nothing implements. Suites written for jsdom install their own (Sentry's MockResizeObserver).`},{members:[`HTMLElement.inert`],profiles:Hc,reason:"No jsdom has the `inert` IDL attribute. Libraries that find it mark content outside a modal `inert` instead of `aria-hidden` (React Aria's ariaHideOutside, Radix's hideOthers), which stock Testing Library's queries do not treat as inaccessible. The content attribute makes subtrees inert in every profile."},{globals:[`visualViewport`],profiles:Hc,reason:"Without layout its numbers mislead positioning libraries (Floating UI), which fall back to the document element when it is absent, as under jsdom. `createWindow({ visualViewport })` overrides the profile."},{globals:[`CSS`,`CSSConditionRule`,`CSSContainerRule`,`CSSFontFaceRule`,`CSSGroupingRule`,`CSSKeyframeRule`,`CSSKeyframesRule`,`CSSLayerBlockRule`,`CSSLayerStatementRule`,`CSSNamespaceRule`,`CSSNestedDeclarations`,`CSSPageRule`,`CSSRuleList`,`CSSScopeRule`,`CSSSupportsRule`],members:[`HTMLStyleElement.disabled`],profiles:Bc,reason:"CSSOM classes are only reached through style sheets jsdom 26 also parses (its rule objects come from the cssom package). `CSS.escape`/`CSS.supports` behave as the polyfills suites install, which replace ours by assignment."},{globals:[`BeforeUnloadEvent`,`PromiseRejectionEvent`,`TransitionEvent`],members:[`MouseEvent.movementX`,`MouseEvent.movementY`,`CustomElementRegistry.getName`],profiles:Bc,reason:`Event classes and members nothing feature-detects; our own dispatch creates these events.`},{globals:[`AnimationEvent`,`ClipboardEvent`,`CommandEvent`,`DragEvent`,`FormDataEvent`,`TextEvent`,`ToggleEvent`,`Touch`,`TouchList`,...Wc,`onpagereveal`,`onpageswap`],members:[...[`Document`,`HTMLElement`,`SVGElement`].flatMap(e=>on(e,Wc)),...on(`HTMLBodyElement`,[`onpagereveal`,`onpageswap`]),...on(`HTMLFrameSetElement`,[`onpagereveal`,`onpageswap`]),`TouchEvent.getModifierState`,`PopStateEvent.hasUAVisualTransition`,`InputEvent.dataTransfer`],profiles:Bc,reason:`Event classes and handler attributes for events our dispatch fires (popover toggle, command, form data, drag, clipboard, animation/transition). Libraries construct or listen for them; none switch code paths on their presence.`},{globals:[`Clipboard`,`ClipboardItem`,`DataTransfer`,`DataTransferItem`,`DataTransferItemList`],members:[`Navigator.clipboard`],profiles:Bc,reason:"user-event's `setup()` replaces `navigator.clipboard` with its stub either way, and builds DataTransfer objects for drag/paste whether or not the DOM has the class."},{globals:[`IntersectionObserver`],profiles:Bc,reason:`Component libraries construct it unconditionally and crash when it is missing; ours never reports entries (no layout), and suites that need entries install a mock by assignment.`},{globals:/* @__PURE__ */ `SVGAElement.SVGCircleElement.SVGClipPathElement.SVGEllipseElement.SVGFilterElement.SVGForeignObjectElement.SVGGeometryElement.SVGGradientElement.SVGImageElement.SVGLineElement.SVGLinearGradientElement.SVGMarkerElement.SVGMaskElement.SVGPathElement.SVGPatternElement.SVGPolygonElement.SVGPolylineElement.SVGRadialGradientElement.SVGRectElement.SVGScriptElement.SVGStopElement.SVGStyleElement.SVGTSpanElement.SVGTextContentElement.SVGTextElement.SVGTextPathElement.SVGTextPositioningElement.SVGUseElement.SVGViewElement.MathMLElement`.split(`.`),members:[`SVGElement.autofocus`,...on(`SVGGraphicsElement`,[`getBBox`,`getCTM`,`getScreenCTM`]),...on(`SVGSVGElement`,[`animationsPaused`,`checkEnclosure`,`checkIntersection`,`createSVGAngle`,`createSVGLength`,`createSVGMatrix`,`createSVGPoint`,`createSVGTransform`,`deselectAll`,`getCurrentTime`,`getEnclosureList`,`getIntersectionList`,`pauseAnimations`,`setCurrentTime`,`unpauseAnimations`])],profiles:Bc,reason:`Element classes for markup jsdom creates as plain SVGElement/Element (instanceof checks only), and SVG geometry that returns zeros without layout; suites that need numbers assign their own getBBox.`},{globals:[`DOMMatrix`,`DOMMatrixReadOnly`,`DOMPoint`,`DOMPointReadOnly`,`DOMRectList`],members:[`Range.getBoundingClientRect`,`Range.getClientRects`],profiles:Bc,reason:"Geometry values (zeros without layout). Editors call `range.getBoundingClientRect()`, which jsdom lacks; suites mock it by assignment."},{globals:[`CSSPropertyRule`,`CSSStartingStyleRule`,`CustomStateSet`,`DOMStringList`,`MediaError`,`TimeRanges`,`VisualViewport`],members:[...on(`CSSRule`,[`DOCUMENT_RULE`,`REGION_STYLE_RULE`,`VIEWPORT_RULE`]),...on(`CSSRule.static`,[`DOCUMENT_RULE`,`REGION_STYLE_RULE`,`VIEWPORT_RULE`]),`CSSStyleDeclaration.cssFloat`,...on(`ElementInternals`,[`ariaActiveDescendantElement`,`ariaBrailleLabel`,`ariaBrailleRoleDescription`,`ariaControlsElements`,`ariaDescribedByElements`,`ariaDetailsElements`,`ariaErrorMessageElements`,`ariaFlowToElements`,`ariaLabelledByElements`,`ariaOwnsElements`,`checkValidity`,`form`,`reportValidity`,`setFormValue`,`setValidity`,`states`,`validationMessage`,`validity`,`willValidate`])],profiles:Bc,reason:`Interfaces reached only through objects that create them (style sheets, form-associated custom elements, media elements).`},{globals:[`cancelIdleCallback`,`requestIdleCallback`,`clientInformation`,`closed`,`crossOriginIsolated`,`isSecureContext`,`opener`,`reportError`],members:[`History.scrollRestoration`,...on(`Screen`,[`availLeft`,`availTop`,`isExtended`]),...on(`Navigator`,[`deviceMemory`,`doNotTrack`,`maxTouchPoints`,`oscpu`,`pdfViewerEnabled`,`registerProtocolHandler`,`sendBeacon`,`unregisterProtocolHandler`,`userActivation`,`vibrate`,`webdriver`])],profiles:Bc,reason:`Window and navigator members with browser defaults (no touch points, not a webdriver). Fake timers fake requestIdleCallback like the other timer functions; libraries that fall back to setTimeout without it behave the same.`},{members:[...on(`Document`,[`adoptedStyleSheets`,`alinkColor`,`bgColor`,`designMode`,`domain`,`fgColor`,`linkColor`,`moveBefore`,`scrollingElement`,`vlinkColor`]),`Document.static.parseHTMLUnsafe`,`DocumentFragment.moveBefore`,...on(`Element`,[`ariaActiveDescendantElement`,`ariaBrailleLabel`,`ariaBrailleRoleDescription`,`ariaControlsElements`,`ariaDescribedByElements`,`ariaDetailsElements`,`ariaErrorMessageElements`,`ariaFlowToElements`,`ariaLabelledByElements`,`ariaOwnsElements`,`checkVisibility`,`dataset`,`getHTML`,`moveBefore`,`part`,`scroll`,`scrollBy`,`scrollIntoView`,`scrollTo`,`setHTMLUnsafe`]),...on(`ShadowRoot`,[`adoptedStyleSheets`,`clonable`,`delegatesFocus`,`elementFromPoint`,`elementsFromPoint`,`getHTML`,`serializable`,`setHTMLUnsafe`,`slotAssignment`,`styleSheets`]),...on(`Selection`,[`direction`,`getComposedRanges`,`modify`])],profiles:Bc,reason:"DOM members suites written for jsdom stub by assignment when they need them (`Element.prototype.scrollIntoView = vi.fn()`), which replaces ours. `Element.dataset` is on Element (jsdom: on HTMLElement and SVGElement)."},{members:[...on(`HTMLElement`,[`accessKeyLabel`,`autocapitalize`,`autocorrect`,`autofocus`,`contentEditable`,`enterKeyHint`,`hidePopover`,`innerText`,`inputMode`,`isContentEditable`,`outerText`,`popover`,`showPopover`,`spellcheck`,`togglePopover`,`writingSuggestions`]),...on(`HTMLButtonElement`,[`command`,`commandForElement`,`formAction`,`formEnctype`,`formMethod`,`popoverTargetAction`,`popoverTargetElement`]),...on(`HTMLInputElement`,[`formAction`,`formEnctype`,`formMethod`,`height`,`popoverTargetAction`,`popoverTargetElement`,`showPicker`,`width`]),...on(`HTMLDialogElement`,[`close`,`closedBy`,`requestClose`,`returnValue`,`show`,`showModal`]),...on(`HTMLAnchorElement`,[`ping`,`referrerPolicy`]),...on(`HTMLAreaElement`,[`download`,`hreflang`,`ping`,`referrerPolicy`,`type`]),...on(`HTMLCanvasElement`,[`captureStream`,`transferControlToOffscreen`]),`HTMLDetailsElement.name`,`HTMLEmbedElement.getSVGDocument`,...on(`HTMLFormElement`,[`autocomplete`,`encoding`,`rel`,`relList`]),...on(`HTMLIFrameElement`,[`allow`,`loading`,`referrerPolicy`,`sandbox`]),...on(`HTMLImageElement`,[`decode`,`decoding`,`fetchPriority`,`loading`,`referrerPolicy`,`x`,`y`]),...on(`HTMLLinkElement`,[`as`,`blocking`,`disabled`,`fetchPriority`,`imageSizes`,`imageSrcset`,`integrity`,`referrerPolicy`,`sizes`]),...on(`HTMLMarqueeElement`,[`loop`,`start`,`stop`]),...on(`HTMLMediaElement`,[`disableRemotePlayback`,`error`,`fastSeek`,`getStartDate`,`loading`,`mediaKeys`,`preservesPitch`,`setMediaKeys`,`setSinkId`,`sinkId`,`srcObject`]),`HTMLMetaElement.media`,...on(`HTMLObjectElement`,[`contentWindow`,`getSVGDocument`]),...on(`HTMLScriptElement`,[`async`,`blocking`,`fetchPriority`,`integrity`,`noModule`,`referrerPolicy`]),`HTMLScriptElement.static.supports`,...on(`HTMLSelectElement`,[`autocomplete`,`showPicker`]),`HTMLSlotElement.assign`,...on(`HTMLSourceElement`,[`height`,`width`]),`HTMLStyleElement.blocking`,...on(`HTMLTemplateElement`,[`shadowRootClonable`,`shadowRootDelegatesFocus`,`shadowRootMode`,`shadowRootSerializable`,`shadowRootSlotAssignment`]),`HTMLTrackElement.track`,...on(`HTMLVideoElement`,[`cancelVideoFrameCallback`,`disablePictureInPicture`,`getVideoPlaybackQuality`,`requestPictureInPicture`,`requestVideoFrameCallback`])],profiles:Bc,reason:"Reflected attributes and element behavior we implement (popover, dialog, invoker commands, innerText). Where jsdom lacks a method, suites assign their own (`HTMLDialogElement.prototype.showModal = vi.fn()`), which replaces ours."}];function resolveCompat(e){if(e===void 0)return zc;if(Rc.includes(e))return e;throw TypeError(`Unknown compat profile ${JSON.stringify(e)}: expected ${Rc.map(e=>JSON.stringify(e)).join(`, `)}.`)}const qc=/* @__PURE__ */ new Map;function hiddenGlobals(e){let t=qc.get(e);if(t===void 0){let n=/* @__PURE__ */ new Set;for(let t of Kc)if(!(t.globals===void 0||t.profiles.includes(e)))for(let e of t.globals)n.add(e);qc.set(e,t=n)}return t}function compatExposes(e,t){for(let n of Kc)if(n.globals?.includes(t)||n.members?.includes(t))return n.profiles.includes(e);return!0}const Jc=/* @__PURE__ */ new Map;function deferCompatMember(e,t,n){let r=Object.getOwnPropertyDescriptor(e,n);if(r===void 0)throw Error(`deferCompatMember: ${t}.${n} is not defined`);delete e[n],Jc.set(`${t}.${n}`,{owner:e,descriptor:r})}const Yc=/* @__PURE__ */ new Map;function deferredCompatMembers(){return Jc}let Xc=null;function gatedMembers(){if(Xc!==null)return Xc;Xc=[];for(let e of Kc)if(e.members!==void 0&&e.profiles.length!==Rc.length)for(let t of e.members){let n=t.split(`.`),r=n.length===3&&n[1]===`static`;Xc.push({key:t,iface:n[0],member:n[n.length-1],isStatic:r,profiles:e.profiles})}return Xc}function installCompatMembers(e,t){let n=[];for(let r of gatedMembers()){let i=t[r.iface];if(i===void 0)continue;let a=r.isStatic?i:i.prototype;if(a===void 0)continue;let o=r.profiles.includes(e),s=Object.hasOwn(a,r.member);if(o&&!s){let e=Jc.get(r.key)?.descriptor??Yc.get(r.key);if(e===void 0)continue;Object.defineProperty(a,r.member,e),n.push(()=>delete a[r.member])}else if(!o&&s){let e=Object.getOwnPropertyDescriptor(a,r.member);Yc.set(r.key,e),delete a[r.member],n.push(()=>Object.defineProperty(a,r.member,e))}}return()=>{for(let e=n.length-1;e>=0;e--)n[e]()}}function fireAnEvent(e,t,n,r,i=!1){let a=n===void 0?new Event(e,r):new n(e,r);return a._s.flags|=128,dispatch(a,t,i)}function dispatchTrusted(e,t){return e._s.flags|=128,dispatch(e,t)}function fireSyntheticPointerEvent(e,t,n,r){let i=t[j],a=i===void 0?null:i.doc[q],o=new PointerEvent(e,{pointerId:-1,...r,bubbles:!0,cancelable:!0,composed:!0,view:a});return n||(o._s.flags|=128),dispatch(o,t)}function fireEvent(e,t,n=!1,r=!1){return fireAnEvent(t,e,void 0,{bubbles:n,cancelable:r})}function fireFocusEvent(e,t,n,r,i){fireAnEvent(t,e,FocusEvent,{bubbles:r,cancelable:!1,composed:!0,relatedTarget:n,view:i,detail:0})}function fireToggleEvent(e,t,n,r,i,a=null){return fireAnEvent(t,e,ToggleEvent,{bubbles:!1,cancelable:i,oldState:n,newState:r,source:a})}function fireSyntheticClick(e){return fireSyntheticPointerEvent(`click`,e,!0)}function queueElementTask(e,t){let n=(`doc`in e?e:e[j]).doc[q]??currentWindowOrNull();n===null?setTimeout(t,0):n._task(t,0)}var NodeCache=class{roleVersion;role;roleAttr;nameVersion;name;styleVersion;styleSheetVersion;style;computedStyle;ariaNameStyleVersion;ariaHiddenVersion;ariaHiddenStyleVersion;ariaHiddenBits;constructor(){this.roleVersion=-1,this.role=``,this.roleAttr=null,this.nameVersion=-1,this.name=``,this.styleVersion=-1,this.styleSheetVersion=-1,this.style=null,this.computedStyle=null,this.ariaNameStyleVersion=-1,this.ariaHiddenVersion=-1,this.ariaHiddenStyleVersion=-1,this.ariaHiddenBits=0}};function nodeCache(e){let t=e.cache;return t===null&&(e.cache=t=new NodeCache),t}function hex(e){return e.toString(16)}function serializeIdentifier(e){let t=``,n=e.length,r=n>0?e.charCodeAt(0):-1;for(let i=0;i<n;i++){let a=e.charCodeAt(i);t+=a===0?`�`:a>=1&&a<=31||a===127||i===0&&a>=48&&a<=57||i===1&&a>=48&&a<=57&&r===45?`\\`+hex(a)+` `:i===0&&a===45&&n===1?`\\-`:a>=128||a===45||a===95||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?e[i]:`\\`+e[i]}return t}function serializeString(e){let t=`"`;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t+=r===0?`�`:r>=1&&r<=31||r===127?`\\`+hex(r)+` `:r===34||r===92?`\\`+e[n]:e[n]}return t+`"`}function serializeAnPlusB(e,t){if(e===0)return String(t);let n=e===1?`n`:e===-1?`-n`:String(e)+`n`;return t>0?n+=`+`+String(t):t<0&&(n+=String(t)),n}let Zc=null;function withNamespaceContext(e,t){let n=Zc;Zc=e??null;try{return t()}finally{Zc=n}}function hasDefaultNamespace(){return Zc!==null&&Zc.defaultNamespace!==void 0}function serializeNamespace(e){switch(e.nsKind){case 1:return hasDefaultNamespace()?`*|`:``;case 2:return`|`;case 3:return prefixIsDefault(e.nsPrefix)?``:serializeIdentifier(e.nsPrefix)+`|`}return``}function prefixIsDefault(e){if(!hasDefaultNamespace()||Zc.namespaces===void 0)return!1;let t=Zc.namespaces.get(e);return t!==void 0&&t===Zc.defaultNamespace}function attrOp(e){switch(e){case 1:return`=`;case 2:return`~=`;case 3:return`|=`;case 4:return`^=`;case 5:return`$=`;case 6:return`*=`}return``}function joinArgs(e,t,n){let r=``;for(let i=0;i<e.length;i++)i>0&&(r+=t),r+=n?serializeIdentifier(e[i]):e[i];return r}function serializeSimple(e){switch(e.kind){case 1:return serializeNamespace(e)+serializeIdentifier(e.name);case 2:return serializeNamespace(e)+`*`;case 3:return`#`+serializeIdentifier(e.name);case 4:return`.`+serializeIdentifier(e.name);case 5:{let t=`[`;return e.nsKind===1?t+=`*|`:e.nsKind===3&&(t+=serializeIdentifier(e.nsPrefix)+`|`),t+=serializeIdentifier(e.name),e.op!==0&&(t+=attrOp(e.op)+serializeString(e.value),e.caseFlag===1?t+=` i`:e.caseFlag===2&&(t+=` s`)),t+`]`}case 6:{let t=e.pseudo;if(t===5||t===6||t===7||t===8){let t=`:`+e.name+`(`+serializeAnPlusB(e.a,e.b);return e.list!==null&&(t+=` of `+serializeSelectorList(e.list)),t+`)`}if(t===11){let t=`:`+e.name+`(`;for(let n=0;n<e.args.length;n++)n>0&&(t+=`, `),t+=needsString(e.args[n])?serializeString(e.args[n]):serializeIdentifier(e.args[n]);return t+`)`}return t===12||t===13?`:`+e.name+`(`+serializeIdentifier(e.args[0])+`)`:t===88?e.args.length===0?`:heading`:`:heading(`+joinArgs(e.args,`, `,!1)+`)`:e.list===null?`:`+e.name:`:`+e.name+`(`+serializeSelectorList(e.list)+`)`}case 7:return e.list===null?e.pseudo===3||e.args.length!==0?`::`+e.name+`(`+joinArgs(e.args,` `,!0)+`)`:`::`+e.name:`::`+e.name+`(`+serializeSelectorList(e.list)+`)`}return``}function needsString(e){if(e.length===0)return!0;let t=e.charCodeAt(0);return t===42||t>=48&&t<=57}function serializeCompound(e){let t=``,n=e.simples.length;for(let r=0;r<n;r++){let i=e.simples[r];r===0&&n>1&&i.kind===2&&(i.nsKind===1&&!hasDefaultNamespace()||i.nsKind===0||i.nsKind===3&&prefixIsDefault(i.nsPrefix))||(t+=serializeSimple(i))}return t}function combinator(e){switch(e){case 1:return` `;case 2:return` > `;case 3:return` + `;case 4:return` ~ `}return` `}function serializeComplex(e){if(e.invalid)return e.text;let t=``;e.leading!==0&&e.leading!==1&&(t+=combinator(e.leading).slice(1));for(let n=0;n<e.compounds.length;n++)n>0&&(t+=combinator(e.combinators[n-1])),t+=serializeCompound(e.compounds[n]);return t}function serializeSelectorList(e){let t=``;for(let n=0;n<e.items.length;n++)n>0&&(t+=`, `),t+=serializeComplex(e.items[n]);return t}var CompiledSelector=class{text;specificity;keyKind;key;pseudoElement;volatile;h0;h1;h2;h3;direct;[vt];[pn];constructor(e,t){this.text=e.text,this.specificity=e.specificity;let n=subjectKey(e);this.keyKind=n.kind,this.key=n.value,this.pseudoElement=e.pseudoElement,this.volatile=t.volatile;let r=ancestorHashes(e);this.h0=r.length>0?r[0]:-1,this.h1=r.length>1?r[1]:-1,this.h2=r.length>2?r[2]:-1,this.h3=r.length>3?r[3]:-1,this.direct=!t.usesScope&&t.nthTests.length===0,this[vt]=e,this[pn]=t}get specificityTuple(){return unpackSpecificity(this.specificity)}};function compileSelectorList(e,t){let n=new SelectorParser(e).parseSelectorList();if(n===null)return null;let r=[];for(let e=0;e<n.items.length;e++){let i=new CompileInfo;if(t?.namespaces!==void 0){let e=t.namespaces;i.resolve=t=>e.has(t)?e.get(t):void 0}t!==void 0&&`defaultNamespace`in t&&(i.defaultNs=t.defaultNamespace);let a=compileComplex(n.items[e],i);if(i.error!==``)return null;r.push(new CompiledSelector(a,i))}return{text:e,serialized:serializeSelectorList(n),selectors:r}}function isSupportedSelector(e){let t=new SelectorParser(e).parseSelectorList();if(t===null)return!1;for(let e=0;e<t.items.length;e++){let n=new CompileInfo;if(compileComplex(t.items[e],n),n.error!==``||n.forgivingDropped)return!1}return!0}function serializeSelector(e,t){let n=new SelectorParser(e).parseSelectorList();return n===null?null:t===void 0?serializeSelectorList(n):withNamespaceContext(t,()=>serializeSelectorList(n))}function normalizePseudo(e){let t=0;for(;t<e.length&&e.charCodeAt(t)===58;)t++;return t===0?e:e.slice(t)}function matchesSelector(e,t,n,r){let i=n==null||n===``?``:normalizePseudo(n);if(e.pseudoElement!==i)return!1;let a=setScope(r?.scope??null),o=r?.shadowHost===void 0?null:setHostContext(r.shadowHost);try{return r?.shadowHost!==void 0&&r.shadowHost===t?matchFeaturelessHost(e[vt],t):matchComplex(e[vt],t)}finally{setScope(a),r?.shadowHost!==void 0&&setHostContext(o),e[pn].nthTests.length!==0&&resetMemos(e[pn])}}function matchesSelectorDirect(e,t,n){return e.pseudoElement===n?e.direct?e[vt].fn(t):matchesSelector(e,t,n):!1}const Qc={width:1024,height:768,devicePixelRatio:1,mediaType:`screen`};var Tok=class{type;text;lower;num;unit;constructor(e,t,n,r,i){this.type=e,this.text=t,this.lower=n,this.num=r,this.unit=i}};function tokenize(e){let t=new CSSTokenizer(e),n=[];for(;;){let r=t.next();if(r===0)break;let i=r===1||r===2?t.value.toLowerCase():r===9?t.value:``;n.push(new Tok(r,e.slice(t.start,t.end),i,t.num,r===12?t.unit.toLowerCase():``))}return n}var MQNode=class{kind;children;name;op;value;op2;value2;constructor(e){this.kind=e,this.children=[],this.name=``,this.op=``,this.value=null,this.op2=``,this.value2=null}},MediaQuery=class{text;negated;type;condition;invalid;constructor(e,t,n,r,i){this.text=e,this.negated=t,this.type=n,this.condition=r,this.invalid=i}},MQParser=class{toks;i;constructor(e){this.toks=e,this.i=0}ws(){for(;this.i<this.toks.length&&this.toks[this.i].type===13;)this.i++}peek(){return this.ws(),this.i<this.toks.length?this.toks[this.i]:null}ident(e){let t=this.peek();return t!==null&&t.type===1&&t.lower===e&&(this.i++,!0)}atEnd(){return this.peek()===null}condition(e){if(this.ident(`not`)){let e=this.inParens();if(e===null)return null;let t=new MQNode(1);return t.children.push(e),t}let t=this.inParens();if(t===null)return null;let n=this.peek();if(n===null||n.type!==1||n.lower!==`and`&&n.lower!==`or`)return t;let r=n.lower;if(r===`or`&&!e)return null;let i=new MQNode(r===`and`?2:3);for(i.children.push(t);this.ident(r);){let e=this.inParens();if(e===null)return null;i.children.push(e)}let a=this.peek();return a!==null&&a.type===1&&(a.lower===`and`||a.lower===`or`)?null:i}inParens(){let e=this.peek();if(e===null)return null;if(e.type===2)return this.i++,this.skipToClose()?new MQNode(5):null;if(e.type!==21)return null;this.i++;let t=this.i,n=this.peek();if(n!==null&&(n.type===21||n.type===1&&n.lower===`not`||n.type===2)){let e=this.condition(!0);if(e!==null){let t=this.peek();if(t!==null&&t.type===22)return this.i++,e}this.i=t}let r=this.feature();if(r!==null){let e=this.peek();if(e!==null&&e.type===22)return this.i++,r}return this.i=t,this.skipToClose()?new MQNode(5):null}skipToClose(){let e=1;for(;this.i<this.toks.length;){let t=this.toks[this.i++].type;if(t===21||t===2||t===19||t===23)e++;else if((t===22||t===20||t===24)&&(e--,e===0))return!0}return!1}value(){let e=this.peek();if(e===null)return null;if(e.type===10){this.i++;let t=this.i,n=this.peek();if(n!==null&&n.type===9&&n.lower===`/`){this.i++;let t=this.peek();return t!==null&&t.type===10?(this.i++,[e,t]):null}return this.i=t,[e]}return e.type===12||e.type===1||e.type===11?(this.i++,[e]):null}op(){let e=this.peek();if(e===null||e.type!==9)return``;let t=e.lower;return t!==`<`&&t!==`>`&&t!==`=`?``:(this.i++,t!==`=`&&this.i<this.toks.length&&this.toks[this.i].type===9&&this.toks[this.i].lower===`=`?(this.i++,t+`=`):t)}feature(){let e=this.peek();if(e===null)return null;if(e.type===1){let t=this.i;this.i++;let n=new MQNode(4);n.name=e.lower;let r=this.peek();if(r!==null&&r.type===22)return n;if(r!==null&&r.type===16){this.i++;let e=this.value();return e===null?null:(n.op=`:`,n.value=e,n)}let i=this.op();if(i!==``){let e=this.value();return e===null?null:(n.op=i,n.value=e,n)}this.i=t}let t=this.value();if(t===null)return null;let n=this.op();if(n===``)return null;let r=this.peek();if(r===null||r.type!==1)return null;this.i++;let i=new MQNode(4);i.name=r.lower,i.op=flip$1(n),i.value=t;let a=this.op();if(a!==``){if(n[0]!==a[0]||n===`=`||a===`=`)return null;let e=this.value();if(e===null)return null;i.op2=a,i.value2=e}return i}};function flip$1(e){switch(e){case`<`:return`>`;case`<=`:return`>=`;case`>`:return`<`;case`>=`:return`<=`}return e}__name(flip$1,`flip`);const $c=/* @__PURE__ */ new Set([`all`,`screen`,`print`,`speech`,`tty`,`tv`,`projection`,`handheld`,`braille`,`embossed`,`aural`]);function serializeTokens(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];switch(r.type){case 13:t!==``&&!t.endsWith(` `)&&!t.endsWith(`(`)&&(t+=` `);break;case 1:t+=r.lower;break;case 16:for(t=t.trimEnd()+`: `;n+1<e.length&&e[n+1].type===13;)n++;break;case 22:t=t.trimEnd()+`)`;break;case 10:t+=formatNumber(r.num);break;case 12:t+=formatNumber(r.num)+r.unit;break;case 9:if(r.lower===`/`)for(t=t.trimEnd()+` / `;n+1<e.length&&e[n+1].type===13;)n++;else t+=r.text;break;default:t+=r.text}}return t.trim()}function parseQuery(e){let t=new MQParser(e),n=serializeTokens(e),r=new MediaQuery(`not all`,!1,`all`,null,!0);if(t.atEnd())return r;let i=t.peek();if(i.type===1&&i.lower!==`not`&&i.lower!==`only`&&i.lower!==`and`&&i.lower!==`or`){let e=i.lower;t.i++;let a=null;return t.ident(`and`)&&(a=t.condition(!1),a===null)||!t.atEnd()||e===`layer`?r:new MediaQuery(n,!1,e,a,!1)}if(i.type===1&&(i.lower===`not`||i.lower===`only`)){let e=t.i,a=i.lower;t.i++;let o=t.peek();if(o!==null&&o.type===1&&o.lower!==`and`&&o.lower!==`or`&&o.lower!==`not`&&o.lower!==`only`){t.i++;let e=null;return t.ident(`and`)&&(e=t.condition(!1),e===null)||!t.atEnd()?r:new MediaQuery(n,a===`not`,o.lower,e,!1)}t.i=e}let a=t.condition(!0);return a===null||!t.atEnd()?r:new MediaQuery(n,!1,`all`,a,!1)}const el=/* @__PURE__ */ new Map;function parseMediaQueryList(e){let t=el.get(e);if(t!==void 0)return t;let n=tokenize(e),r=[],i=0,a=0,o=!1;for(let e=0;e<=n.length;e++){let t=e<n.length?n[e]:null;if(t!==null&&(t.type===21||t.type===2||t.type===19?a++:(t.type===22||t.type===20)&&a--,t.type!==13&&(o=!0)),t===null||t.type===18&&a===0){let a=n.slice(i,e);(t!==null||o)&&r.push(parseQuery(a)),i=e+1}}return r.length===1&&r[0].invalid&&n.every(e=>e.type===13)&&(r.length=0),el.size>500&&el.clear(),el.set(e,r),r}function serializeMediaQueryList(e){let t=``;for(let n=0;n<e.length;n++)t+=(n===0?``:`, `)+e[n].text;return t}function lengthPx(e){if(e.type===10)return e.num===0?0:null;if(e.type!==12)return null;switch(e.unit){case`px`:return e.num;case`em`:case`rem`:return e.num*16;case`in`:return e.num*96;case`cm`:return e.num*96/2.54;case`mm`:return e.num*96/25.4;case`pt`:return e.num*96/72;case`pc`:return e.num*16;case`q`:return e.num*96/101.6;case`vw`:return null}return null}function resolutionDppx(e){if(e.type!==12)return null;switch(e.unit){case`dppx`:case`x`:return e.num;case`dpi`:return e.num/96;case`dpcm`:return e.num*2.54/96}return null}function compare(e,t,n){let r=1e-9;switch(t){case`:`:case`=`:return Math.abs(e-n)<r;case`<`:return e<n-r;case`<=`:return e<=n+r;case`>`:return e>n+r;case`>=`:return e>=n-r}return!1}const tl={orientation:``,"prefers-color-scheme":`light`,"prefers-reduced-motion":`no-preference`,"prefers-reduced-transparency":`no-preference`,"prefers-reduced-data":`no-preference`,"prefers-contrast":`no-preference`,"forced-colors":`none`,"inverted-colors":`none`,hover:`hover`,"any-hover":`hover`,pointer:`fine`,"any-pointer":`fine`,"display-mode":`browser`,scripting:`enabled`,update:`fast`,"overflow-block":`scroll`,"overflow-inline":`scroll`,"color-gamut":`srgb`,"dynamic-range":`standard`,"video-dynamic-range":`standard`};function evalNode(e,t){switch(e.kind){case 6:return 1;case 5:return-1;case 1:{let n=evalNode(e.children[0],t);return n===-1?-1:1-n}case 2:{let n=1;for(let r of e.children){let e=evalNode(r,t);if(e===0)return 0;e===-1&&(n=-1)}return n}case 3:{let n=0;for(let r of e.children){let e=evalNode(r,t);if(e===1)return 1;e===-1&&(n=-1)}return n}case 4:return evalFeature(e,t)}return-1}function evalFeature(e,t){let n=e.name,r=e.op;if(n.startsWith(`-webkit-`)&&(n=n.slice(8)),r===`:`&&(n.startsWith(`min-`)||n.startsWith(`max-`)))r=n.startsWith(`min-`)?`>=`:`<=`,n=n.slice(4);else if(n.startsWith(`min-`)||n.startsWith(`max-`))return-1;let i=t.features?.[n],a=i===void 0?void 0:String(i),o=null,s=`range`;switch(n){case`width`:case`device-width`:o=t.width;break;case`height`:case`device-height`:o=t.height;break;case`aspect-ratio`:case`device-aspect-ratio`:o=t.height===0?0:t.width/t.height,s=`ratio`;break;case`resolution`:case`device-pixel-ratio`:o=t.devicePixelRatio,s=n===`resolution`?`resolution`:`number`;break;case`color`:o=8,s=`integer`;break;case`color-index`:case`monochrome`:case`grid`:o=0,s=`integer`;break;default:s=`discrete`}if(a!==void 0&&s!==`discrete`){let e=Number(a);Number.isNaN(e)||(o=e)}if(s===`discrete`){if(r!==``&&r!==`:`)return-1;let i=a??tl[n];if(n===`orientation`&&(i=a??(t.height>=t.width?`portrait`:`landscape`)),i===void 0)return-1;if(r===``)return+(i!==`none`&&i!==`no-preference`);let o=e.value;return o.length!==1||o[0].type!==1?0:+(o[0].lower===i)}if(o===null)return-1;if(r===``)return o===0?0:1;let check=(e,t)=>{let n=null;return s===`range`?n=e.length===1?lengthPx(e[0]):null:s===`ratio`?e.length===2?n=e[1].num===0?1/0:e[0].num/e[1].num:e.length===1&&e[0].type===10&&(n=e[0].num):s===`resolution`?n=e.length===1?resolutionDppx(e[0]):null:e.length===1&&e[0].type===10&&(n=e[0].num),n===null?-1:+!!compare(o,t,n)},c=check(e.value,r);return e.value2===null||c!==1?c:check(e.value2,e.op2)}function evaluateMediaQuery$1(e,t){if(e.invalid)return!1;let n=t.mediaType??`screen`,r=e.type===`all`||e.type===n;$c.has(e.type)||(r=!1);let i=r;return i&&e.condition!==null&&(i=evalNode(e.condition,t)===1),e.negated?!i:i}__name(evaluateMediaQuery$1,`evaluateMediaQuery`);function evaluateMediaQueryList$1(e,t){if(e.length===0)return!0;for(let n=0;n<e.length;n++)if(evaluateMediaQuery$1(e[n],t))return!0;return!1}__name(evaluateMediaQueryList$1,`evaluateMediaQueryList`);function matchMediaText(e,t){return evaluateMediaQueryList$1(parseMediaQueryList(e),t)}function splitSelectorList(e){let t=[],n=new CSSTokenizer(e),r=0,i=0;for(;;){let a=n.next();if(a===0)break;a===2||a===21||a===19?r++:a===22||a===20?r--:a===18&&r===0&&(t.push(e.slice(i,n.start).trim()),i=n.end)}return t.push(e.slice(i).trim()),t}function containsNesting(e){if(e.indexOf(`&`)===-1)return!1;let t=new CSSTokenizer(e);for(;;){let e=t.next();if(e===0)return!1;if(e===9&&t.value===`&`)return!0}}function resolveNested(e,t){let n=[],r=t.length===1&&isGluableCompound(t[0])?t[0]:`:is(`+t.join(`, `)+`)`;for(let t of splitSelectorList(e)){if(t===``)continue;let e=t;containsNesting(e)||(e=`& `+e),n.push(replaceNesting(e,r))}return n}function isGluableCompound(e){let t=e.charCodeAt(0);if(t!==46&&t!==35&&t!==91&&t!==58)return!1;let n=new CSSTokenizer(e),r=0;for(;;){let e=n.next();if(e===0)return!0;if(e===2||e===21||e===19)r++;else if(e===22||e===20)r--;else if(r===0&&(e===13||e===18||e===9&&(n.value===`>`||n.value===`+`||n.value===`~`||n.value===`|`)))return!1}}function replaceNesting(e,t){let n=new CSSTokenizer(e),r=``,i=0;for(;;){let a=n.next();if(a===0)break;a===9&&n.value===`&`&&(r+=e.slice(i,n.start)+t,i=n.end)}return r+e.slice(i)}function supportsDeclaration(e,t){let n=isCustomPropertyName(e)?e:e.toLowerCase();return isCustomPropertyName(n)?t.trim()!==``||!0:new DeclBlock().setValue(n,t,!1,!1)}var Cursor=class{src;t;type;constructor(e){this.src=e,this.t=new CSSTokenizer(e),this.type=0,this.next()}next(){do this.type=this.t.next();while(this.type===13)}block(){let e=this.t.end,t=1,n=e;for(;t>0;){let e=this.t.next();if(e===0)return null;e===21||e===2||e===19?t++:(e===22||e===20)&&(t--,n=this.t.start)}return this.next(),this.src.slice(e,n)}};function condition(e){if(e.type===1&&e.t.value.toLowerCase()===`not`){e.next();let t=inParens(e);return t===-1?-1:1-t}let t=inParens(e);if(t===-1)return-1;if(e.type!==1)return t;let n=e.t.value.toLowerCase();if(n!==`and`&&n!==`or`)return-1;for(;e.type===1&&e.t.value.toLowerCase()===n;){e.next();let r=inParens(e);if(r===-1)return-1;t=n===`and`?t&r:t|r}return e.type===1?-1:t}function inParens(e){if(e.type===2){let t=e.t.value.toLowerCase(),n=e.block();return n===null?-1:t===`selector`?+!!isSupportedSelector(n.trim()):0}if(e.type!==21)return-1;let t=e.block();if(t===null)return-1;let n=new Cursor(t);if(n.type===21||n.type===2||n.type===1&&n.t.value.toLowerCase()===`not`){let e=condition(n);if(e!==-1&&n.type===0)return e}return declaration(t)}function declaration(e){let t=new CSSTokenizer(e),n=t.next();for(;n===13;)n=t.next();if(n!==1)return 0;let r=t.value;for(n=t.next();n===13;)n=t.next();if(n!==16)return 0;let i=e.slice(t.end).trim(),a=/!\s*important\s*$/i.exec(i);return a!==null&&(i=i.slice(0,a.index).trim()),+!!supportsDeclaration(r,i)}function evaluateSupportsCondition(e){let t=new Cursor(e),n=condition(t);return n!==-1&&t.type===0?n===1:declaration(e)===1}var CSSRuleList=class{[V];[dn];constructor(e){this[V]=e,this[dn]=0,this._sync()}_setRules(e){this[V]=e,this._sync()}_sync(){let e=this,t=this[V];for(let n=0;n<t.length;n++)e[n]=t[n];for(let n=t.length;n<this[dn];n++)delete e[n];this[dn]=t.length}get length(){return this[V].length}item(e){return this[V][e>>>0]??null}*[Symbol.iterator](){yield*this[V]}get[Symbol.toStringTag](){return`CSSRuleList`}},MediaList=class{[qn];[z];[dn];constructor(e,t){this[qn]=e===``?[]:parseMediaQueryList(e),this[z]=t,this[dn]=0,this._sync()}_sync(){let e=this,t=this[qn];for(let n=0;n<t.length;n++)e[n]=t[n].text;for(let n=t.length;n<this[dn];n++)delete e[n];this[dn]=t.length}get mediaText(){return serializeMediaQueryList(this[qn])}set mediaText(e){let t=e===null?``:String(e);this[qn]=t===``?[]:parseMediaQueryList(t).slice(),this._sync(),this[z]?._changed()}get length(){return this[qn].length}item(e){return this[qn][e>>>0]?.text??null}appendMedium(e){let t=parseMediaQueryList(String(e));if(t.length===1){for(let e of this[qn])if(e.text===t[0].text)return;this[qn]=[...this[qn],t[0]],this._sync(),this[z]?._changed()}}deleteMedium(e){if(arguments.length===0)throw TypeError(`Failed to execute 'deleteMedium' on 'MediaList': 1 argument required, but only 0 present.`);let t=parseMediaQueryList(String(e));if(t.length!==1)return;let n=this[qn].length;if(this[qn]=this[qn].filter(e=>e.text!==t[0].text),this[qn].length===n)throw new DOMException(`Failed to execute 'deleteMedium' on 'MediaList': Failed to delete the medium.`,`NotFoundError`);this._sync(),this[z]?._changed()}toString(){return this.mediaText}*[Symbol.iterator](){for(let e of this[qn])yield e.text}get[Symbol.toStringTag](){return`MediaList`}},StyleSheetList=class{[Cr];[dn];constructor(){this[Cr]=[],this[dn]=0}_set(e){this[Cr]=e;let t=this;for(let n=0;n<e.length;n++)t[n]=e[n];for(let n=e.length;n<this[dn];n++)delete t[n];this[dn]=e.length}get length(){return this[Cr].length}item(e){return this[Cr][e>>>0]??null}*[Symbol.iterator](){yield*this[Cr]}get[Symbol.toStringTag](){return`StyleSheetList`}},StyleSheet=class{[Nn];[I];[Ot];[Pr];[tn];constructor(e,t,n,r){this[Nn]=e,this[I]=new MediaList(t,this),this[Ot]=!1,this[Pr]=n,this[tn]=r}_changed(){}get type(){return`text/css`}get href(){return this[tn]}get ownerNode(){return this[Nn]}get parentStyleSheet(){return null}get title(){let e=this[Nn],t=e===null?this[Pr]:e.getAttribute(`title`);return t===``?null:t}get media(){return this[I]}set media(e){this[I].mediaText=String(e)}get disabled(){return this[Ot]}set disabled(e){let t=!!e;t!==this[Ot]&&(this[Ot]=t,this._changed())}};function syntaxError(e,t,n){return new DOMException(`Failed to execute '${e}' on '${t}': Failed to parse the rule '${n}'.`,`SyntaxError`)}var nl=class CSSStyleSheet extends StyleSheet{[V];[bn];[jt];[ot];[kt];[Pn];[kn];[St];[K];constructor(e){let t=e?.media;super(null,t===void 0?``:typeof t==`string`?t:t.mediaText,null,null),this[V]=[],this[bn]=null,this[jt]=null,this[ot]=!0,this[kt]=!1,this[Pn]=null,this[kn]=null,this[St]=void 0,this[K]=0,e?.disabled&&(this[Ot]=!0),this[jt]=currentWindowOrNull()?.document??null,e?.baseURL!==void 0&&(this[tn]=null)}static _forOwner(e,t,n,r){let i=new CSSStyleSheet;return i[ot]=!1,i[Nn]=e,i[jt]=e[j].doc,i[tn]=r,i[Pr]=e.getAttribute(`title`),n!==``&&(i[I].mediaText=n),i._setText(t),i}_changed(){this[K]++;let e=this[jt];e!==null&&e[Dr]++}_setText(e){for(let e of this[V])e[Sr]=null;this[V]=[],this[kn]=null,this[St]=void 0;let t=e===``?[]:parseStylesheet(e),n=!1;for(let e of t){let t=e.kind===2?e.name.toLowerCase():``;if(t===`import`&&this[ot]||(t===`import`||t===`namespace`)&&(n&&t===`import`||n&&this[V].some(e=>!(e instanceof CSSImportRule)&&!(e instanceof CSSNamespaceRule)&&!(e instanceof CSSLayerStatementRule))))continue;let r=createRule(e,null,this,!1,!1);r!==null&&(r instanceof CSSImportRule||r instanceof CSSLayerStatementRule||r instanceof CSSNamespaceRule||(n=!0),r[Sr]=this,this[V].push(r),r instanceof CSSNamespaceRule&&this._registerNamespace(r))}this[bn]?._setRules(this[V]),this._changed()}_registerNamespace(e){e[Un]===``?this[St]=e[Br]===``?null:e[Br]:(this[kn]??=/* @__PURE__ */ new Map).set(e[Un],e[Br]===``?null:e[Br])}get parentStyleSheet(){return this[Pn]===null?null:this[Pn].parentStyleSheet}get ownerRule(){return this[Pn]}get cssRules(){return this[bn]??=new CSSRuleList(this[V])}get rules(){return this.cssRules}insertRule(e,t=0){if(arguments.length===0)throw TypeError(`Failed to execute 'insertRule' on 'CSSStyleSheet': 1 argument required, but only 0 present.`);if(this[kt])throw new DOMException(`Failed to execute 'insertRule' on 'CSSStyleSheet': Cannot modify a sheet while it is being replaced.`,`NotAllowedError`);let n=String(e),r=t>>>0;if(r>this[V].length)throw new DOMException(`Failed to execute 'insertRule' on 'CSSStyleSheet': The index provided (${r}) is larger than the maximum index (${this[V].length}).`,`IndexSizeError`);let i=parseRule(n);if(i===null||(i.kind===2?i.name.toLowerCase():``)===`import`&&this[ot])throw syntaxError(`insertRule`,`CSSStyleSheet`,n);let a=createRule(i,null,this,!1,!1);if(a===null)throw syntaxError(`insertRule`,`CSSStyleSheet`,n);if(a instanceof CSSImportRule)for(let e=0;e<r;e++){let t=this[V][e];if(!(t instanceof CSSImportRule)&&!(t instanceof CSSLayerStatementRule))throw new DOMException(`Failed to execute 'insertRule' on 'CSSStyleSheet': @import rules must precede all rules except @charset and @layer statements.`,`HierarchyRequestError`)}else if(!(a instanceof CSSNamespaceRule)&&!(a instanceof CSSLayerStatementRule)){for(let e=r;e<this[V].length;e++)if(this[V][e]instanceof CSSImportRule||this[V][e]instanceof CSSNamespaceRule)throw new DOMException(`Failed to execute 'insertRule' on 'CSSStyleSheet': Rules cannot be inserted before @import or @namespace rules.`,`HierarchyRequestError`)}else if(a instanceof CSSNamespaceRule){for(let e of this[V])if(!(e instanceof CSSImportRule)&&!(e instanceof CSSNamespaceRule)&&!(e instanceof CSSLayerStatementRule))throw new DOMException(`Failed to execute 'insertRule' on 'CSSStyleSheet': Failed to insert a @namespace rule after other rules.`,`InvalidStateError`);this._registerNamespace(a)}return a[Sr]=this,this[V].splice(r,0,a),this[bn]?._sync(),this._changed(),r}deleteRule(e){if(arguments.length===0)throw TypeError(`Failed to execute 'deleteRule' on 'CSSStyleSheet': 1 argument required, but only 0 present.`);if(this[kt])throw new DOMException(`Failed to execute 'deleteRule' on 'CSSStyleSheet': Cannot modify a sheet while it is being replaced.`,`NotAllowedError`);let t=e>>>0;if(t>=this[V].length)throw new DOMException(`Failed to execute 'deleteRule' on 'CSSStyleSheet': The index provided (${t}) is larger than the maximum index (${Math.max(0,this[V].length-1)}).`,`IndexSizeError`);let[n]=this[V].splice(t,1);n[Sr]=null,this[bn]?._sync(),this._changed()}addRule(e=`undefined`,t=`undefined`,n){let r=String(e)+` { `+String(t)+` }`;return String(t)===``&&(r=String(e)+` { }`),this.insertRule(r,n===void 0?this[V].length:n),-1}removeRule(e=0){this.deleteRule(e)}replace(e){if(!this[ot]||this[kt])return Promise.reject(new DOMException(`Failed to execute 'replace' on 'CSSStyleSheet': Can't call replace on non-constructed CSSStyleSheets.`,`NotAllowedError`));this[kt]=!0;let t=String(e);return Promise.resolve().then(()=>(this._setText(t),this[kt]=!1,this))}replaceSync(e){if(!this[ot]||this[kt])throw new DOMException(`Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.`,`NotAllowedError`);this._setText(String(e))}get[Symbol.toStringTag](){return`CSSStyleSheet`}},rl=class CSSRule{[Sr];[B];static STYLE_RULE=1;static CHARSET_RULE=2;static IMPORT_RULE=3;static MEDIA_RULE=4;static FONT_FACE_RULE=5;static PAGE_RULE=6;static KEYFRAMES_RULE=7;static KEYFRAME_RULE=8;static MARGIN_RULE=9;static NAMESPACE_RULE=10;static COUNTER_STYLE_RULE=11;static SUPPORTS_RULE=12;static DOCUMENT_RULE=13;static FONT_FEATURE_VALUES_RULE=14;static VIEWPORT_RULE=15;static REGION_STYLE_RULE=16;constructor(){if(new.target===CSSRule)throw TypeError(`Illegal constructor`);this[Sr]=null,this[B]=null}get type(){return 0}get cssText(){return``}set cssText(e){}get parentRule(){return this[B]}get parentStyleSheet(){let e=this;for(;e[B]!==null;)e=e[B];return e[Sr]}_changed(){this.parentStyleSheet?._changed()}_declarationsChanged(){this._changed()}};for(let[e,t]of Object.entries({STYLE_RULE:1,CHARSET_RULE:2,IMPORT_RULE:3,MEDIA_RULE:4,FONT_FACE_RULE:5,PAGE_RULE:6,KEYFRAMES_RULE:7,KEYFRAME_RULE:8,MARGIN_RULE:9,NAMESPACE_RULE:10,COUNTER_STYLE_RULE:11,SUPPORTS_RULE:12,DOCUMENT_RULE:13,FONT_FEATURE_VALUES_RULE:14,VIEWPORT_RULE:15,REGION_STYLE_RULE:16}))Object.defineProperty(rl.prototype,e,{value:t,enumerable:!0});function indent(e){return` `+e.replace(/\n/g,`
|
|
10
10
|
`)}function blockText(e,t){if(t.length===0)return e+` {
|
|
11
11
|
}`;let n=e+` {`;for(let e of t)n+=`
|
|
12
12
|
`+indent(e.cssText);return n+`
|