!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).singlefile={})}(this,(function(e){"use strict";const t="single-file-load-deferred-images-start",n="single-file-load-deferred-images-end",r="single-file-load-deferred-images-keep-zoom-level-start",a="single-file-load-deferred-images-keep-zoom-level-end",o="single-file-load-deferred-images-keep-zoom-level-reset",i="single-file-load-deferred-images-reset",s="single-file-block-cookies-start",l="single-file-block-cookies-end",c="single-file-dispatch-scroll-event-start",u="single-file-dispatch-scroll-event-end",h="single-file-block-storage-start",d="single-file-block-storage-end",p="single-file-load-image",m="single-file-image-loaded",g=(e,t,n)=>globalThis.addEventListener(e,t,n),f=e=>{try{globalThis.dispatchEvent(e)}catch(e){}},b=globalThis.CustomEvent,y=globalThis.document,w=globalThis.Document,k=globalThis.JSON;let v;function x(){return Array.from(v.values())}function A(e){e.loadDeferredImagesBlockCookies&&f(new b(s)),e.loadDeferredImagesBlockStorage&&f(new b(h)),e.loadDeferredImagesDispatchScrollEvent&&f(new b(c)),e.loadDeferredImagesKeepZoomLevel?f(new b(r)):f(new b(t))}function E(e){e.loadDeferredImagesBlockCookies&&f(new b(l)),e.loadDeferredImagesBlockStorage&&f(new b(d)),e.loadDeferredImagesDispatchScrollEvent&&f(new b(u)),e.loadDeferredImagesKeepZoomLevel?f(new b(a)):f(new b(n))}function S(e){e.loadDeferredImagesKeepZoomLevel?f(new b(o)):f(new b(i))}v=window._singleFile_fontFaces?window._singleFile_fontFaces:window._singleFile_fontFaces=new Map,y instanceof w&&(g("single-file-new-font-face",(e=>{const t=e.detail,n=Object.assign({},t);delete n.src,v.set(k.stringify(n),t)})),g("single-file-delete-font",(e=>{const t=e.detail,n=Object.assign({},t);delete n.src,v.delete(k.stringify(n))})),g("single-file-clear-fonts",(()=>v=new Map)));var T=Object.freeze({__proto__:null,getFontsData:x,loadDeferredImagesStart:A,loadDeferredImagesEnd:E,loadDeferredImagesResetZoomLevel:S,LOAD_IMAGE_EVENT:p,IMAGE_LOADED_EVENT:m});const C="[\\x20\\t\\r\\n\\f]",R=new RegExp("\\\\([\\da-f]{1,6}"+C+"?|("+C+")|.)","ig");function I(e){return e.replace(R,((e,t,n)=>{const r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)}))}var _=Object.freeze({__proto__:null,process:I});const L="single-file-",z="Page saved with SingleFile",P="SingleFile",N="_singleFile_waitForUserScript",M="__frameTree__::",O="single-file-infobar",U="\n.infobar,\n.infobar .infobar-icon,\n.infobar .infobar-link-icon {\n min-inline-size: 28px;\n min-block-size: 28px;\n box-sizing: border-box;\n}\n\n.infobar,\n.infobar .infobar-close-icon,\n.infobar .infobar-link-icon {\n opacity: 0.7;\n transition: opacity 250ms;\n}\n\n.infobar:hover,\n.infobar .infobar-close-icon:hover,\n.infobar .infobar-link-icon:hover {\n opacity: 1;\n}\n\n.infobar,\n.infobar-content {\n display: flex;\n}\n\n.infobar {\n position: fixed;\n top: 16px;\n right: 16px;\n margin-inline-start: 16px;\n margin-block-end: 16px;\n color: #2d2d2d;\n background-color: #737373;\n border: 2px solid;\n border-color: #eee;\n border-radius: 16px;\n z-index: 2147483647;\n}\n\n.infobar:valid, .infobar:not(:focus-within) .infobar-content {\n display: none;\n}\n\n.infobar:focus-within {\n background-color: #f9f9f9;\n border-color: #878787;\n border-radius: 8px;\n opacity: 1;\n transition-property: opacity, background-color, border-color, border-radius,\n color;\n}\n\n.infobar-content {\n align-items: center;\n}\n\n.infobar-content span {\n font-family: Arial, Helvetica, sans-serif;\n font-size: 14px;\n line-height: 18px;\n word-break: break-word;\n white-space: pre-wrap;\n margin-inline: 4px;\n margin-block: 4px;\n}\n\n.infobar .infobar-icon,\n.infobar .infobar-close-icon,\n.infobar .infobar-link-icon {\n cursor: pointer;\n background-position: center;\n background-repeat: no-repeat;\n}\n\n.infobar .infobar-close-icon,\n.infobar .infobar-link-icon {\n align-self: flex-start;\n}\n\n.infobar .infobar-icon {\n position: absolute;\n min-inline-size: 24px;\n min-block-size: 24px;\n}\n\n.infobar:focus-within .infobar-icon {\n z-index: -1;\n background-image: none;\n}\n\n.infobar .infobar-close-icon {\n min-inline-size: 22px;\n min-block-size: 22px;\n}\n\n.infobar .infobar-icon {\n background-color: transparent;\n background-size: 70%;\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABABAMAAABYR2ztAAABhmlDQ1BJQ0MgcHJvZmlsZQAAKJF9kj1Iw0AYht+mSkUrDnYQcchQnSyIijqWKhbBQmkrtOpgcukfNGlIUlwcBdeCgz+LVQcXZ10dXAVB8AfEydFJ0UVK/C4ptIjx4LiH9+59+e67A4RGhalm1wSgapaRisfEbG5VDLyiDwEAvZiVmKkn0osZeI6ve/j4ehfhWd7n/hz9St5kgE8kjjLdsIg3iGc2LZ3zPnGIlSSF+Jx43KACiR+5Lrv8xrnosMAzQ0YmNU8cIhaLHSx3MCsZKvE0cVhRNcoXsi4rnLc4q5Uaa9XJbxjMaytprtMcQRxLSCAJETJqKKMCCxFaNVJMpGg/5uEfdvxJcsnkKoORYwFVqJAcP/gb/O6tWZiadJOCMaD7xbY/RoHALtCs2/b3sW03TwD/M3Cltf3VBjD3SXq9rYWPgIFt4OK6rcl7wOUOMPSkS4bkSH6aQqEAvJ/RM+WAwVv6EGtu31r7OH0AMtSr5Rvg4BAYK1L2use9ezr79u+ZVv9+AFlNcp0UUpiqAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH5AsHADIRLMaOHwAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAAAPUExURQAAAIqKioyNjY2OjvDw8L2y1DEAAAABdFJOUwBA5thmAAAAAWJLR0QB/wIt3gAAAGNJREFUSMdjYCAJsLi4OBCQx6/CBQwIGIDPCBcXAkYQUsACU+AwlBVQHg6Eg5pgZBGOboIJZugDFwRwoJECJCUOhJI1wZwzqmBUwagCuipgIqTABG9h7YIKaKGAURAFEF/6AQAO4HqSoDP8bgAAAABJRU5ErkJggg==);\n}\n\n.infobar .infobar-link-icon {\n background-size: 60%;\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAAgMAAADXB5lNAAABhmlDQ1BJQ0MgcHJvZmlsZQAAKJF9kj1Iw0AYht+mSkUrDnYQcchQnSyIijqWKhbBQmkrtOpgcukfNGlIUlwcBdeCgz+LVQcXZ10dXAVB8AfEydFJ0UVK/C4ptIjx4LiH9+59+e67A4RGhalm1wSgapaRisfEbG5VDLyiDwEAvZiVmKkn0osZeI6ve/j4ehfhWd7n/hz9St5kgE8kjjLdsIg3iGc2LZ3zPnGIlSSF+Jx43KACiR+5Lrv8xrnosMAzQ0YmNU8cIhaLHSx3MCsZKvE0cVhRNcoXsi4rnLc4q5Uaa9XJbxjMaytprtMcQRxLSCAJETJqKKMCCxFaNVJMpGg/5uEfdvxJcsnkKoORYwFVqJAcP/gb/O6tWZiadJOCMaD7xbY/RoHALtCs2/b3sW03TwD/M3Cltf3VBjD3SXq9rYWPgIFt4OK6rcl7wOUOMPSkS4bkSH6aQqEAvJ/RM+WAwVv6EGtu31r7OH0AMtSr5Rvg4BAYK1L2use9ezr79u+ZVv9+AFlNcp0UUpiqAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH5AsHAB8H+DhhoQAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAAAJUExURQAAAICHi4qKioTuJAkAAAABdFJOUwBA5thmAAAAAWJLR0QCZgt8ZAAAAJJJREFUOI3t070NRCEMA2CnYAOyDyPwpHj/Va7hJ3FzV7zy3ET5JIwoAF6Jk4wzAJAkzxAYG9YRTgB+24wBgKmfrGAKTcEfAY4KRlRoIeBTgKOCERVaCPgU4Khge2GqKOBTgKOCERVaAEC/4PNcnyoSWHpjqkhwKxbcig0Q6AorXYF/+A6eIYD1lVbwG/jdA6/kA2THRAURVubcAAAAAElFTkSuQmCC);\n}\n\n.infobar .infobar-close-icon {\n appearance: none;\n background-size: 80%;\n background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAAgMAAADXB5lNAAABhmlDQ1BJQ0MgcHJvZmlsZQAAKJF9kj1Iw0AYht+mSkUrDnYQcchQnSyIijqWKhbBQmkrtOpgcukfNGlIUlwcBdeCgz+LVQcXZ10dXAVB8AfEydFJ0UVK/C4ptIjx4LiH9+59+e67A4RGhalm1wSgapaRisfEbG5VDLyiDwEAvZiVmKkn0osZeI6ve/j4ehfhWd7n/hz9St5kgE8kjjLdsIg3iGc2LZ3zPnGIlSSF+Jx43KACiR+5Lrv8xrnosMAzQ0YmNU8cIhaLHSx3MCsZKvE0cVhRNcoXsi4rnLc4q5Uaa9XJbxjMaytprtMcQRxLSCAJETJqKKMCCxFaNVJMpGg/5uEfdvxJcsnkKoORYwFVqJAcP/gb/O6tWZiadJOCMaD7xbY/RoHALtCs2/b3sW03TwD/M3Cltf3VBjD3SXq9rYWPgIFt4OK6rcl7wOUOMPSkS4bkSH6aQqEAvJ/RM+WAwVv6EGtu31r7OH0AMtSr5Rvg4BAYK1L2use9ezr79u+ZVv9+AFlNcp0UUpiqAAAACXBIWXMAAC4jAAAuIwF4pT92AAAAB3RJTUUH5AsHAB8VC4EQ6QAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAAAJUExURQAAAICHi4qKioTuJAkAAAABdFJOUwBA5thmAAAAAWJLR0QCZgt8ZAAAAJtJREFUOI3NkrsBgCAMRLFwBPdxBArcfxXFkO8rbKWAAJfHJ9faf9vuYX/749T5NmShm3bEwbe2SxeuM4+2oxDL1cDoKtVUjRy+tH78Cv2CS+wIiQNC1AEhk4AQeUTMWUJMfUJMSEJMSEY8kIx4IONroaYAimNxsXp1PA7PxwfVL8QnowwoVC0lig07wDDVUjAdbAnjwtow/z/bDW7eI4M2KruJAAAAAElFTkSuQmCC);\n}\n";function D(e,t,n){if(!e.querySelector(O)){let r;t.infobarContent?r=t.infobarContent.replace(/\\n/g,"\n").replace(/\\t/g,"\t"):t.saveDate&&(r=t.saveDate),r=r||"No info";const a=function(e,t,n){const r=e.createElement(t);return n.appendChild(r),Array.from(getComputedStyle(r)).forEach((e=>r.style.setProperty(e,"initial","important"))),r}(e,O,e.body);let o;if(n)o=a.attachShadow({mode:"open"});else{const t=e.createElement("template");t.setAttribute("shadowroot","open"),a.appendChild(t),o=t}const i=e.createElement("div"),s=e.createElement("style");s.textContent=U.replace(/ {2}/g,"").replace(/\n/g,"").replace(/: /g,":").replace(/, /g,","),i.appendChild(s);const l=e.createElement("form");l.classList.add("infobar"),i.appendChild(l);const c=e.createElement("span");c.tabIndex=-1,c.classList.add("infobar-icon"),l.appendChild(c);const u=e.createElement("span");u.tabIndex=-1,u.classList.add("infobar-content");const h=e.createElement("input");h.type="checkbox",h.required=!0,h.classList.add("infobar-close-icon"),h.title="Close",u.appendChild(h);const d=e.createElement("span");d.textContent=r,u.appendChild(d);const p=e.createElement("a");if(p.classList.add("infobar-link-icon"),p.target="_blank",p.rel="noopener noreferrer",p.title="Open source URL: "+t.saveUrl,p.href=t.saveUrl,u.appendChild(p),l.appendChild(u),n)o.appendChild(i);else{const t=e.createElement("script");let n=F.toString();n+=q.toString(),n+="("+B.toString()+")(document)",t.textContent=n,i.appendChild(t),o.innerHTML=i.outerHTML}e.body.appendChild(a)}}function q(e){const t=e.evaluate("//comment()",e,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null);let n=t&&t.singleNodeValue;if(n&&n.nodeType==Node.COMMENT_NODE&&n.textContent.includes(P)){const e=n.textContent.split("\n"),[,,t,...r]=e,a=t.match(/^ url: (.*) ?$/),o=a&&a[1];if(o){let e,t;if(r.length&&(t=r[0].split("saved date: ")[1],t&&r.shift(),r.length>1)){let t=r[0].split("info: ")[1].trim();for(let e=1;eglobalThis.addEventListener(e,t,n),Ae=globalThis.JSON;function Ee(e){e.querySelectorAll("meta[http-equiv=refresh]").forEach((e=>{e.removeAttribute("http-equiv"),e.setAttribute("disabled-http-equiv","refresh")}))}function Se(e,t,n){e.querySelectorAll("noscript:not(["+ce+"])").forEach((e=>{e.setAttribute(ce,e.textContent),e.textContent=""})),Ee(e),e.head&&e.head.querySelectorAll(pe).forEach((e=>e.hidden=!0)),e.querySelectorAll("svg foreignObject").forEach((e=>{const t=e.querySelectorAll("html > head > "+pe+", html > body > "+pe);t.length&&(Array.from(e.childNodes).forEach((e=>e.remove())),t.forEach((t=>e.appendChild(t))))}));const r=new Map;let a;return t&&e.documentElement?(e.querySelectorAll("button button, a a").forEach((t=>{const n=e.createElement("template");n.setAttribute(he,""),n.content.appendChild(t.cloneNode(!0)),r.set(t,n),t.replaceWith(n)})),a=Te(t,e,e.documentElement,n),n.moveStylesInHead&&e.querySelectorAll("body style, body ~ style").forEach((e=>{const n=Fe(t,e);n&&ze(e,n)&&(e.setAttribute(oe,""),a.markedElements.push(e))}))):a={canvases:[],images:[],posters:[],videos:[],usedFonts:[],shadowRoots:[],markedElements:[]},{canvases:a.canvases,fonts:x(),stylesheets:Ne(e),images:a.images,posters:a.posters,videos:a.videos,usedFonts:Array.from(a.usedFonts.values()),shadowRoots:a.shadowRoots,referrer:e.referrer,markedElements:a.markedElements,invalidElements:r,scrollPosition:{x:t.scrollX,y:t.scrollY},adoptedStyleSheets:Ce(e.adoptedStyleSheets)}}function Te(e,t,n,r,a={usedFonts:new Map,canvases:[],images:[],posters:[],videos:[],shadowRoots:[],markedElements:[]},o){if(n.childNodes){Array.from(n.childNodes).filter((t=>t instanceof e.HTMLElement||t instanceof e.SVGElement)).forEach((n=>{let i,s,l;if(!r.autoSaveExternalSave&&(r.removeHiddenElements||r.removeUnusedFonts||r.compressHTML)&&(l=Fe(e,n),n instanceof e.HTMLElement&&r.removeHiddenElements&&(s=(o||n.closest("html > head"))&&me.includes(n.tagName.toUpperCase())||n.closest("details"),s||(i=o||ze(n,l),i&&(n.setAttribute(J,""),a.markedElements.push(n)))),!i)){if(r.compressHTML&&l){const e=l.getPropertyValue("white-space");e&&e.startsWith("pre")&&(n.setAttribute(Z,""),a.markedElements.push(n))}r.removeUnusedFonts&&(Re(l,r,a.usedFonts),Re(Fe(e,n,":first-letter"),r,a.usedFonts),Re(Fe(e,n,":before"),r,a.usedFonts),Re(Fe(e,n,":after"),r,a.usedFonts))}!function(e,t,n,r,a,o,i){const s=n.tagName&&n.tagName.toUpperCase();if("CANVAS"==s)try{a.canvases.push({dataURI:n.toDataURL("image/png",""),backgroundColor:i.getPropertyValue("background-color")}),n.setAttribute(ae,a.canvases.length-1),a.markedElements.push(n)}catch(e){}if("IMG"==s){const t={currentSrc:o?ve:r.loadDeferredImages&&n.getAttribute(se)||n.currentSrc};if(a.images.push(t),n.setAttribute(te,a.images.length-1),a.markedElements.push(n),n.removeAttribute(se),i=i||Fe(e,n)){t.size=function(e,t,n){let r=t.naturalWidth,a=t.naturalHeight;if(!r&&!a){const o=null==t.getAttribute("style");if(n=n||Fe(e,t)){let e,i,s,l,c,u,h,d,p=!1;if("content-box"==n.getPropertyValue("box-sizing")){const e=t.style.getPropertyValue("box-sizing"),n=t.style.getPropertyPriority("box-sizing"),r=t.clientWidth;t.style.setProperty("box-sizing","border-box","important"),p=t.clientWidth!=r,e?t.style.setProperty("box-sizing",e,n):t.style.removeProperty("box-sizing")}e=Me("padding-left",n),i=Me("padding-right",n),s=Me("padding-top",n),l=Me("padding-bottom",n),p?(c=Me("border-left-width",n),u=Me("border-right-width",n),h=Me("border-top-width",n),d=Me("border-bottom-width",n)):c=u=h=d=0,r=Math.max(0,t.clientWidth-e-i-c-u),a=Math.max(0,t.clientHeight-s-l-h-d),o&&t.removeAttribute("style")}}return{pxWidth:r,pxHeight:a}}(e,n,i);const r=i.getPropertyValue("box-shadow"),a=i.getPropertyValue("background-image");r&&"none"!=r||a&&"none"!=a||!(t.size.pxWidth>1||t.size.pxHeight>1)||(t.replaceable=!0,t.backgroundColor=i.getPropertyValue("background-color"),t.objectFit=i.getPropertyValue("object-fit"),t.boxSizing=i.getPropertyValue("box-sizing"),t.objectPosition=i.getPropertyValue("object-position"))}}if("VIDEO"==s){const r=n.currentSrc;if(r&&!r.startsWith("blob:")&&!r.startsWith("data:")){const t=Fe(e,n.parentNode);a.videos.push({positionParent:t&&t.getPropertyValue("position"),src:r,size:{pxWidth:n.clientWidth,pxHeight:n.clientHeight},currentTime:n.currentTime}),n.setAttribute(re,a.videos.length-1)}if(!n.getAttribute("poster")){const e=t.createElement("canvas"),r=e.getContext("2d");e.width=n.clientWidth,e.height=n.clientHeight;try{r.drawImage(n,0,0,e.width,e.height),a.posters.push(e.toDataURL("image/png","")),n.setAttribute(ne,a.posters.length-1),a.markedElements.push(n)}catch(e){}}}"IFRAME"==s&&o&&r.removeHiddenElements&&(n.setAttribute(Q,""),a.markedElements.push(n));"INPUT"==s&&("password"!=n.type&&(n.setAttribute(ie,n.value),a.markedElements.push(n)),"radio"!=n.type&&"checkbox"!=n.type||(n.setAttribute(ie,n.checked),a.markedElements.push(n)));"TEXTAREA"==s&&(n.setAttribute(ie,n.value),a.markedElements.push(n));"SELECT"==s&&n.querySelectorAll("option").forEach((e=>{e.selected&&(e.setAttribute(ie,""),a.markedElements.push(e))}));"SCRIPT"==s&&(n.async&&""!=n.getAttribute("async")&&"async"!=n.getAttribute("async")&&(n.setAttribute(de,""),a.markedElements.push(n)),n.textContent=n.textContent.replace(/<\/script>/gi,"<\\/script>"))}(e,t,n,r,a,i,l);const c=!(n instanceof e.SVGElement)&&Ie(n);if(c&&!n.classList.contains(we)){const o={};n.setAttribute(X,a.shadowRoots.length),a.markedElements.push(n),a.shadowRoots.push(o);try{if(c.adoptedStyleSheets)if(c.adoptedStyleSheets.length)o.adoptedStyleSheets=Ce(c.adoptedStyleSheets);else if(void 0===c.adoptedStyleSheets.length){const e=e=>o.adoptedStyleSheets=e.detail.adoptedStyleSheets;n.addEventListener(W,e),n.dispatchEvent(new CustomEvent(V,{bubbles:!0})),n.removeEventListener(W,e)}}catch(e){}Te(e,t,c,r,a,i),o.content=c.innerHTML,o.mode=c.mode;try{c.adoptedStyleSheets&&void 0===c.adoptedStyleSheets.length&&n.dispatchEvent(new CustomEvent($,{bubbles:!0}))}catch(e){}}Te(e,t,n,r,a,i),!r.autoSaveExternalSave&&r.removeHiddenElements&&o&&(s||""==n.getAttribute(K)?n.parentElement&&(n.parentElement.setAttribute(K,""),a.markedElements.push(n.parentElement)):i&&(n.setAttribute(Y,""),a.markedElements.push(n)))}))}return a}function Ce(e){return e?Array.from(e).map((e=>Array.from(e.cssRules).map((e=>e.cssText)).join("\n"))):[]}function Re(e,t,n){if(e){const r=e.getPropertyValue("font-style")||"normal";e.getPropertyValue("font-family").split(",").forEach((a=>{if(a=Le(a),!t.loadedFonts||t.loadedFonts.find((e=>Le(e.family)==a&&e.style==r))){const t=De(e.getPropertyValue("font-weight")),o=e.getPropertyValue("font-variant")||"normal",i=[a,t,r,o];n.set(Ae.stringify(i),[a,t,r,o])}}))}}function Ie(e){const t=globalThis.chrome;if(e.openOrClosedShadowRoot)return e.openOrClosedShadowRoot;if(!(t&&t.dom&&t.dom.openOrClosedShadowRoot))return e.shadowRoot;try{return t.dom.openOrClosedShadowRoot(e)}catch(t){return e.shadowRoot}}function _e(e,t,n){return D(e,t,n)}function Le(e=""){return Ue(I(e.trim())).toLowerCase()}function ze(e,t){let n=!1;if(t){const r=t.getPropertyValue("display"),a=t.getPropertyValue("opacity"),o=t.getPropertyValue("visibility");if(n="none"==r,!n&&("0"==a||"hidden"==o)&&e.getBoundingClientRect){const t=e.getBoundingClientRect();n=!t.width&&!t.height}}return Boolean(n)}function Pe(e,t,n){if(e.querySelectorAll("["+ce+"]").forEach((e=>{e.textContent=e.getAttribute(ce),e.removeAttribute(ce)})),e.querySelectorAll("meta[disabled-http-equiv]").forEach((e=>{e.setAttribute("http-equiv",e.getAttribute("disabled-http-equiv")),e.removeAttribute("disabled-http-equiv")})),e.head&&e.head.querySelectorAll("*:not(base):not(link):not(meta):not(noscript):not(script):not(style):not(template):not(title)").forEach((e=>e.removeAttribute("hidden"))),!t){const n=[Y,Q,J,Z,te,ne,re,ae,ie,X,le,de];t=e.querySelectorAll(n.map((e=>"["+e+"]")).join(","))}t.forEach((e=>{e.removeAttribute(Y),e.removeAttribute(J),e.removeAttribute(K),e.removeAttribute(Q),e.removeAttribute(Z),e.removeAttribute(te),e.removeAttribute(ne),e.removeAttribute(re),e.removeAttribute(ae),e.removeAttribute(ie),e.removeAttribute(X),e.removeAttribute(le),e.removeAttribute(de),e.removeAttribute(oe)})),n&&n.forEach(((e,t)=>e.replaceWith(t)))}function Ne(e){if(e){const t=[];return e.querySelectorAll("style").forEach(((n,r)=>{try{const a=e.createElement("style");a.textContent=n.textContent,e.body.appendChild(a);const o=a.sheet;a.remove(),o&&o.cssRules.length==n.sheet.cssRules.length||(n.setAttribute(le,r),t[r]=Array.from(n.sheet.cssRules).map((e=>e.cssText)).join("\n"))}catch(e){}})),t}}function Me(e,t){if(t.getPropertyValue(e).endsWith("px"))return parseFloat(t.getPropertyValue(e))}function Oe(e){const t=e.doctype;let n="";return t&&(n=" "),n+e.documentElement.outerHTML}function Ue(e){return(e=e.match(ge)?e.replace(ge,"$1"):e.replace(fe,"$1")).trim()}function De(e){return be[e.toLowerCase().trim()]||e}function qe(e){return e.flat?e.flat():e.reduce(((e,t)=>e.concat(Array.isArray(t)?qe(t):t)),[])}function Fe(e,t,n){try{return e.getComputedStyle(t,n)}catch(e){}}var Be=Object.freeze({__proto__:null,initUserScriptHandler:function(){xe(G,(()=>globalThis[N]=async e=>{const t=new CustomEvent(e+"-request",{cancelable:!0}),n=new Promise((t=>xe(e+"-response",t)));(e=>{try{globalThis.dispatchEvent(e)}catch(e){}})(t),t.defaultPrevented&&await n}))},initDoc:Ee,preProcessDoc:Se,postProcessDoc:Pe,serialize:Oe,removeQuotes:Ue,flatten:qe,getFontWeight:De,normalizeFontFamily:Le,getShadowRoot:Ie,appendInfobar:_e,ON_BEFORE_CAPTURE_EVENT_NAME:j,ON_AFTER_CAPTURE_EVENT_NAME:H,WIN_ID_ATTRIBUTE_NAME:ee,PRESERVED_SPACE_ELEMENT_ATTRIBUTE_NAME:Z,REMOVED_CONTENT_ATTRIBUTE_NAME:Y,HIDDEN_CONTENT_ATTRIBUTE_NAME:J,HIDDEN_FRAME_ATTRIBUTE_NAME:Q,IMAGE_ATTRIBUTE_NAME:te,POSTER_ATTRIBUTE_NAME:ne,VIDEO_ATTRIBUTE_NAME:re,CANVAS_ATTRIBUTE_NAME:ae,INPUT_VALUE_ATTRIBUTE_NAME:ie,SHADOW_ROOT_ATTRIBUTE_NAME:X,STYLE_ATTRIBUTE_NAME:oe,LAZY_SRC_ATTRIBUTE_NAME:se,STYLESHEET_ATTRIBUTE_NAME:le,SELECTED_CONTENT_ATTRIBUTE_NAME:ue,INVALID_ELEMENT_ATTRIBUTE_NAME:he,ASYNC_SCRIPT_ATTRIBUTE_NAME:de,COMMENT_HEADER:z,COMMENT_HEADER_LEGACY:ye,SINGLE_FILE_UI_ELEMENT_CLASS:we,EMPTY_RESOURCE:ve,INFOBAR_TAGNAME:ke,WAIT_FOR_USERSCRIPT_PROPERTY_NAME:N,MESSAGE_PREFIX:M});const je={LAZY_SRC_ATTRIBUTE_NAME:se,SINGLE_FILE_UI_ELEMENT_CLASS:we},He=10,Ve="attributes",We=globalThis.browser,$e=globalThis.document,Ge=globalThis.MutationObserver,Ye=(e,t,n)=>globalThis.addEventListener(e,t,n),Je=(e,t,n)=>globalThis.removeEventListener(e,t,n),Ke=new Map;let Qe;async function Ze(e){if($e.documentElement){Ke.clear();const t=$e.body?Math.max($e.body.scrollHeight,$e.documentElement.scrollHeight):$e.documentElement.scrollHeight,n=$e.body?Math.max($e.body.scrollWidth,$e.documentElement.scrollWidth):$e.documentElement.scrollWidth;if(t>globalThis.innerHeight||n>globalThis.innerWidth){const r=Math.max(t-1.5*globalThis.innerHeight,0),a=Math.max(n-1.5*globalThis.innerWidth,0);if(globalThis.scrollY{let n;const r=new Set,a=new Ge((async t=>{if((t=t.filter((e=>e.type==Ve))).length){t.filter((e=>{if("src"==e.attributeName&&(e.target.setAttribute(je.LAZY_SRC_ATTRIBUTE_NAME,e.target.src),e.target.addEventListener("load",i)),"src"==e.attributeName||"srcset"==e.attributeName||e.target.tagName&&"SOURCE"==e.target.tagName.toUpperCase())return!e.target.classList||!e.target.classList.contains(je.SINGLE_FILE_UI_ELEMENT_CLASS)})).length&&(n=!0,await tt(a,e,c),r.size||await et(a,e,c))}}));async function o(t){await rt("idleTimeout",(async()=>{n?Qent(e,t,n)),t.loadDeferredImagesMaxIdleTime,t.loadDeferredImagesNativeTimeout)}async function tt(e,t,n){await rt("maxTimeout",(async()=>{await ot("loadTimeout"),await nt(e,t,n)}),10*t.loadDeferredImagesMaxIdleTime,t.loadDeferredImagesNativeTimeout)}async function nt(e,t,n){await ot("idleTimeout"),E(t),await rt("endTimeout",(async()=>{await ot("maxTimeout"),n()}),t.loadDeferredImagesMaxIdleTime/2,t.loadDeferredImagesNativeTimeout),e.disconnect()}async function rt(e,t,n,r){if(We&&We.runtime&&We.runtime.sendMessage&&!r){if(!Ke.get(e)||!Ke.get(e).pending){const r={callback:t,pending:!0};Ke.set(e,r);try{await We.runtime.sendMessage({method:"singlefile.lazyTimeout.setTimeout",type:e,delay:n})}catch(r){at(e,t,n)}r.pending=!1}}else at(e,t,n)}function at(e,t,n){const r=Ke.get(e);r&&globalThis.clearTimeout(r),Ke.set(e,t),globalThis.setTimeout(t,n)}async function ot(e){if(We&&We.runtime&&We.runtime.sendMessage)try{await We.runtime.sendMessage({method:"singlefile.lazyTimeout.clearTimeout",type:e})}catch(t){it(e)}else it(e)}function it(e){const t=Ke.get(e);Ke.delete(e),t&&globalThis.clearTimeout(t)}We&&We.runtime&&We.runtime.onMessage&&We.runtime.onMessage.addListener&&We.runtime.onMessage.addListener((e=>{if("singlefile.lazyTimeout.onTimeout"==e.method){const t=Ke.get(e.type);if(t){Ke.delete(e.type);try{t.callback()}catch(t){it(e.type)}}}}));var st=Object.freeze({__proto__:null,process:Ze,resetZoomLevel:Xe});const lt={ON_BEFORE_CAPTURE_EVENT_NAME:j,ON_AFTER_CAPTURE_EVENT_NAME:H,WIN_ID_ATTRIBUTE_NAME:ee,WAIT_FOR_USERSCRIPT_PROPERTY_NAME:N,preProcessDoc:Se,serialize:Oe,postProcessDoc:Pe,getShadowRoot:Ie},ct='iframe, frame, object[type="text/html"][data]',ut="*",ht="singlefile.frameTree.initRequest",dt="singlefile.frameTree.ackInitRequest",pt="singlefile.frameTree.cleanupRequest",mt="singlefile.frameTree.initResponse",gt="*",ft=5e3,bt=".",yt=globalThis.window==globalThis.top,wt=globalThis.browser,kt=globalThis.top,vt=globalThis.MessageChannel,xt=globalThis.document,At=globalThis.JSON;let Et,St=globalThis.sessions;var Tt,Ct,Rt;function It(){return globalThis.crypto.getRandomValues(new Uint32Array(32)).join("")}async function _t(e){const t=e.sessionId,n=globalThis[lt.WAIT_FOR_USERSCRIPT_PROPERTY_NAME];delete globalThis._singleFile_cleaningUp,yt||(Et=globalThis.frameId=e.windowId),Pt(xt,e.options,Et,t),yt||(e.options.userScriptEnabled&&n&&await n(lt.ON_BEFORE_CAPTURE_EVENT_NAME),Ut({frames:[qt(xt,globalThis,Et,e.options,e.scrolling)],sessionId:t,requestedFrameId:xt.documentElement.dataset.requestedFrameId&&Et}),e.options.userScriptEnabled&&n&&await n(lt.ON_AFTER_CAPTURE_EVENT_NAME),delete xt.documentElement.dataset.requestedFrameId)}function Lt(e){if(!globalThis._singleFile_cleaningUp){globalThis._singleFile_cleaningUp=!0;const t=e.sessionId;Ot(Ft(xt),e.windowId,t)}}function zt(e){e.frames.forEach((t=>Nt("responseTimeouts",e.sessionId,t.windowId)));const t=St.get(e.sessionId);if(t){e.requestedFrameId&&(t.requestedFrameId=e.requestedFrameId),e.frames.forEach((e=>{let n=t.frames.find((t=>e.windowId==t.windowId));n||(n={windowId:e.windowId},t.frames.push(n)),n.processed||(n.content=e.content,n.baseURI=e.baseURI,n.title=e.title,n.url=e.url,n.canvases=e.canvases,n.fonts=e.fonts,n.stylesheets=e.stylesheets,n.images=e.images,n.posters=e.posters,n.videos=e.videos,n.usedFonts=e.usedFonts,n.shadowRoots=e.shadowRoots,n.processed=e.processed,n.scrollPosition=e.scrollPosition,n.scrolling=e.scrolling,n.adoptedStyleSheets=e.adoptedStyleSheets)}));t.frames.filter((e=>!e.processed)).length||(t.frames=t.frames.sort(((e,t)=>t.windowId.split(bt).length-e.windowId.split(bt).length)),t.resolve&&(t.requestedFrameId&&t.frames.forEach((e=>{e.windowId==t.requestedFrameId&&(e.requestedFrame=!0)})),t.resolve(t.frames)))}}function Pt(e,t,n,r){const a=Ft(e);!function(e,t,n,r,a){const o=[];let i;St.get(a)?i=St.get(a).requestTimeouts:(i={},St.set(a,{requestTimeouts:i}));t.forEach(((e,t)=>{const n=r+bt+t;e.setAttribute(lt.WIN_ID_ATTRIBUTE_NAME,n),o.push({windowId:n})})),Ut({frames:o,sessionId:a,requestedFrameId:e.documentElement.dataset.requestedFrameId&&r}),t.forEach(((e,t)=>{const o=r+bt+t;try{Dt(e.contentWindow,{method:ht,windowId:o,sessionId:a,options:n,scrolling:e.scrolling})}catch(e){}i[o]=globalThis.setTimeout((()=>Ut({frames:[{windowId:o,processed:!0}],sessionId:a})),ft)})),delete e.documentElement.dataset.requestedFrameId}(e,a,t,n,r),a.length&&function(e,t,n,r,a){const o=[];t.forEach(((e,t)=>{const i=r+bt+t;let s;try{s=e.contentDocument}catch(e){}if(s)try{const t=e.contentWindow;t.stop(),Nt("requestTimeouts",a,i),Pt(s,n,i,a),o.push(qt(s,t,i,n,e.scrolling))}catch(e){o.push({windowId:i,processed:!0})}})),Ut({frames:o,sessionId:a,requestedFrameId:e.documentElement.dataset.requestedFrameId&&r}),delete e.documentElement.dataset.requestedFrameId}(e,a,t,n,r)}function Nt(e,t,n){const r=St.get(t);if(r&&r[e]){const t=r[e][n];t&&(globalThis.clearTimeout(t),delete r[e][n])}}function Mt(e,t){const n=St.get(e);n&&n.responseTimeouts&&(n.responseTimeouts[t]=globalThis.setTimeout((()=>Ut({frames:[{windowId:t,processed:!0}],sessionId:e})),1e4))}function Ot(e,t,n){e.forEach(((e,r)=>{const a=t+bt+r;e.removeAttribute(lt.WIN_ID_ATTRIBUTE_NAME);try{Dt(e.contentWindow,{method:pt,windowId:a,sessionId:n})}catch(e){}})),e.forEach(((e,r)=>{const a=t+bt+r;let o;try{o=e.contentDocument}catch(e){}if(o)try{Ot(Ft(o),a,n)}catch(e){}}))}function Ut(e){e.method=mt;try{kt.singlefile.processors.frameTree.initResponse(e)}catch(t){Dt(kt,e,!0)}}function Dt(e,t,n){if(e==kt&&wt&&wt.runtime&&wt.runtime.sendMessage)wt.runtime.sendMessage(t);else if(n){const n=new vt;e.postMessage(M+At.stringify({method:t.method,sessionId:t.sessionId}),gt,[n.port2]),n.port1.postMessage(t)}else e.postMessage(M+At.stringify(t),gt)}function qt(e,t,n,r,a){const o=lt.preProcessDoc(e,t,r),i=lt.serialize(e);lt.postProcessDoc(e,o.markedElements,o.invalidElements);return{windowId:n,content:i,baseURI:e.baseURI.split("#")[0],url:e.location.href,title:e.title,canvases:o.canvases,fonts:o.fonts,stylesheets:o.stylesheets,images:o.images,posters:o.posters,videos:o.videos,usedFonts:o.usedFonts,shadowRoots:o.shadowRoots,scrollPosition:o.scrollPosition,scrolling:a,adoptedStyleSheets:o.adoptedStyleSheets,processed:!0}}function Ft(e){let t=Array.from(e.querySelectorAll(ct));return e.querySelectorAll(ut).forEach((e=>{const n=lt.getShadowRoot(e);n&&(t=t.concat(...n.querySelectorAll(ct)))})),t}St||(St=globalThis.sessions=new Map),yt&&(Et="0",wt&&wt.runtime&&wt.runtime.onMessage&&wt.runtime.onMessage.addListener&&wt.runtime.onMessage.addListener((e=>e.method==mt?(zt(e),Promise.resolve({})):e.method==dt?(Nt("requestTimeouts",e.sessionId,e.windowId),Mt(e.sessionId,e.windowId),Promise.resolve({})):void 0))),Tt="message",Ct=async e=>{if("string"==typeof e.data&&e.data.startsWith(M)){e.preventDefault(),e.stopPropagation();const t=At.parse(e.data.substring(M.length));t.method==ht?(e.source&&Dt(e.source,{method:dt,windowId:t.windowId,sessionId:t.sessionId}),yt||(globalThis.stop(),t.options.loadDeferredImages&&Ze(t.options),await _t(t))):t.method==dt?(Nt("requestTimeouts",t.sessionId,t.windowId),Mt(t.sessionId,t.windowId)):t.method==pt?Lt(t):t.method==mt&&St.get(t.sessionId)&&(e.ports[0].onmessage=e=>zt(e.data))}},Rt=!0,globalThis.addEventListener(Tt,Ct,Rt);var Bt=Object.freeze({__proto__:null,getAsync:function(e){const t=It();return e=At.parse(At.stringify(e)),new Promise((n=>{St.set(t,{frames:[],requestTimeouts:{},responseTimeouts:{},resolve:e=>{e.sessionId=t,n(e)}}),_t({windowId:Et,sessionId:t,options:e})}))},getSync:function(e){const t=It();e=At.parse(At.stringify(e)),St.set(t,{frames:[],requestTimeouts:{},responseTimeouts:{}}),function(e){const t=e.sessionId,n=globalThis[lt.WAIT_FOR_USERSCRIPT_PROPERTY_NAME];delete globalThis._singleFile_cleaningUp,yt||(Et=globalThis.frameId=e.windowId);Pt(xt,e.options,Et,t),yt||(e.options.userScriptEnabled&&n&&n(lt.ON_BEFORE_CAPTURE_EVENT_NAME),Ut({frames:[qt(xt,globalThis,Et,e.options,e.scrolling)],sessionId:t,requestedFrameId:xt.documentElement.dataset.requestedFrameId&&Et}),e.options.userScriptEnabled&&n&&n(lt.ON_AFTER_CAPTURE_EVENT_NAME),delete xt.documentElement.dataset.requestedFrameId)}({windowId:Et,sessionId:t,options:e});const n=St.get(t).frames;return n.sessionId=t,n},cleanup:function(e){St.delete(e),Lt({windowId:Et,sessionId:e,options:{sessionId:e}})},initResponse:zt,TIMEOUT_INIT_REQUEST_MESSAGE:ft}),jt=Object.freeze({__proto__:null,frameTree:Bt,hooksFrames:T,lazy:st}),Ht=Object.create,Vt=Object.defineProperty,Wt=Object.getOwnPropertyDescriptor,$t=Object.getOwnPropertyNames,Gt=Object.getPrototypeOf,Yt=Object.prototype.hasOwnProperty,Jt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Kt=(e,t)=>{for(var n in t)Vt(e,n,{get:t[n],enumerable:!0})},Qt=Jt((e=>{var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");e.encode=function(e){if(0<=e&&e{var t=Qt();e.encode=function(e){var n,r,a="",o=(r=e)<0?1+(-r<<1):0+(r<<1);do{n=31&o,(o>>>=5)>0&&(n|=32),a+=t.encode(n)}while(o>0);return a},e.decode=function(e,n,r){var a,o,i=e.length,s=0,l=0;do{if(n>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(o=t.decode(e.charCodeAt(n++))))throw new Error("Invalid base64 digit: "+e.charAt(n-1));a=!!(32&o),s+=(o&=31)<>1;return 1==(1&e)?-t:t}(s),r.rest=n}})),Xt=Jt((e=>{e.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var t=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function r(e){var n=e.match(t);return n?{scheme:n[1],auth:n[2],host:n[3],port:n[4],path:n[5]}:null}function a(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}e.urlParse=r,e.urlGenerate=a;var o,i,s=(o=function(t){var n=t,o=r(t);if(o){if(!o.path)return t;n=o.path}for(var i=e.isAbsolute(n),s=[],l=0,c=0;;){if(l=c,-1===(c=n.indexOf("/",l))){s.push(n.slice(l));break}for(s.push(n.slice(l,c));c=0;c--)"."===(u=s[c])?s.splice(c,1):".."===u?h++:h>0&&(""===u?(s.splice(c+1,h),h=0):(s.splice(c,2),h--));return""===(n=s.join("/"))&&(n=i?"/":"."),o?(o.path=n,a(o)):n},i=[],function(e){for(var t=0;t32&&i.pop(),r});function l(e,t){""===e&&(e="."),""===t&&(t=".");var o=r(t),i=r(e);if(i&&(e=i.path||"/"),o&&!o.scheme)return i&&(o.scheme=i.scheme),a(o);if(o||t.match(n))return t;if(i&&!i.host&&!i.path)return i.host=t,a(i);var l="/"===t.charAt(0)?t:s(e.replace(/\/+$/,"")+"/"+t);return i?(i.path=l,a(i)):l}e.normalize=s,e.join=l,e.isAbsolute=function(e){return"/"===e.charAt(0)||t.test(e)},e.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0||(e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var c=!("__proto__"in Object.create(null));function u(e){return e}function h(e){if(!e)return!1;var t=e.length;if(t<9||95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function d(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}e.toSetString=c?u:function(e){return h(e)?"$"+e:e},e.fromSetString=c?u:function(e){return h(e)?e.slice(1):e},e.compareByOriginalPositions=function(e,t,n){var r=d(e.source,t.source);return 0!==r||0!==(r=e.originalLine-t.originalLine)||(0!==(r=e.originalColumn-t.originalColumn)||n)||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=e.generatedLine-t.generatedLine)?r:d(e.name,t.name)},e.compareByOriginalPositionsNoSource=function(e,t,n){var r;return 0!==(r=e.originalLine-t.originalLine)||(0!==(r=e.originalColumn-t.originalColumn)||n)||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=e.generatedLine-t.generatedLine)?r:d(e.name,t.name)},e.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||(0!==(r=e.generatedColumn-t.generatedColumn)||n)||0!==(r=d(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:d(e.name,t.name)},e.compareByGeneratedPositionsDeflatedNoLine=function(e,t,n){var r=e.generatedColumn-t.generatedColumn;return 0!==r||n||0!==(r=d(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:d(e.name,t.name)},e.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!==(n=e.generatedColumn-t.generatedColumn)||0!==(n=d(e.source,t.source))||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)?n:d(e.name,t.name)},e.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},e.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var o=r(n);if(!o)throw new Error("sourceMapURL could not be parsed");if(o.path){var i=o.path.lastIndexOf("/");i>=0&&(o.path=o.path.substring(0,i+1))}t=l(a(o),t)}return s(t)}})),en=Jt((e=>{var t=Xt(),n=Object.prototype.hasOwnProperty,r=typeof Map<"u";function a(){this._array=[],this._set=r?new Map:Object.create(null)}a.fromArray=function(e,t){for(var n=new a,r=0,o=e.length;r=0)return a}else{var o=t.toSetString(e);if(n.call(this._set,o))return this._set[o]}throw new Error('"'+e+'" is not in the set.')},a.prototype.at=function(e){if(e>=0&&e{var t=Xt();function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}n.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},n.prototype.add=function(e){!function(e,n){var r=e.generatedLine,a=n.generatedLine,o=e.generatedColumn,i=n.generatedColumn;return a>r||a==r&&i>=o||t.compareByGeneratedPositionsInflated(e,n)<=0}(this._last,e)?(this._sorted=!1,this._array.push(e)):(this._last=e,this._array.push(e))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(t.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},e.MappingList=n})),nn=Jt((e=>{var t=Zt(),n=Xt(),r=en().ArraySet,a=tn().MappingList;function o(e){e||(e={}),this._file=n.getArg(e,"file",null),this._sourceRoot=n.getArg(e,"sourceRoot",null),this._skipValidation=n.getArg(e,"skipValidation",!1),this._sources=new r,this._names=new r,this._mappings=new a,this._sourcesContents=null}o.prototype._version=3,o.fromSourceMap=function(e){var t=e.sourceRoot,r=new o({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var a={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(a.source=e.source,null!=t&&(a.source=n.relative(t,a.source)),a.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(a.name=e.name)),r.addMapping(a)})),e.sources.forEach((function(a){var o=a;null!==t&&(o=n.relative(t,a)),r._sources.has(o)||r._sources.add(o);var i=e.sourceContentFor(a);null!=i&&r.setSourceContent(a,i)})),r},o.prototype.addMapping=function(e){var t=n.getArg(e,"generated"),r=n.getArg(e,"original",null),a=n.getArg(e,"source",null),o=n.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,a,o),null!=a&&(a=String(a),this._sources.has(a)||this._sources.add(a)),null!=o&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:a,name:o})},o.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=n.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[n.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[n.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},o.prototype.applySourceMap=function(e,t,a){var o=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');o=e.file}var i=this._sourceRoot;null!=i&&(o=n.relative(i,o));var s=new r,l=new r;this._mappings.unsortedForEach((function(t){if(t.source===o&&null!=t.originalLine){var r=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=r.source&&(t.source=r.source,null!=a&&(t.source=n.join(a,t.source)),null!=i&&(t.source=n.relative(i,t.source)),t.originalLine=r.line,t.originalColumn=r.column,null!=r.name&&(t.name=r.name))}var c=t.source;null!=c&&!s.has(c)&&s.add(c);var u=t.name;null!=u&&!l.has(u)&&l.add(u)}),this),this._sources=s,this._names=l,e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&(null!=a&&(t=n.join(a,t)),null!=i&&(t=n.relative(i,t)),this.setSourceContent(t,r))}),this)},o.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r){if(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))}},o.prototype._serializeMappings=function(){for(var e,r,a,o,i=0,s=1,l=0,c=0,u=0,h=0,d="",p=this._mappings.toArray(),m=0,g=p.length;m0){if(!n.compareByGeneratedPositionsInflated(r,p[m-1]))continue;e+=","}e+=t.encode(r.generatedColumn-i),i=r.generatedColumn,null!=r.source&&(o=this._sources.indexOf(r.source),e+=t.encode(o-h),h=o,e+=t.encode(r.originalLine-1-c),c=r.originalLine-1,e+=t.encode(r.originalColumn-l),l=r.originalColumn,null!=r.name&&(a=this._names.indexOf(r.name),e+=t.encode(a-u),u=a)),d+=e}return d},o.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=n.relative(t,e));var r=n.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},o.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},o.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=o})),rn={};Kt(rn,{AtKeyword:()=>ln,BadString:()=>hn,BadUrl:()=>pn,CDC:()=>kn,CDO:()=>wn,Colon:()=>vn,Comma:()=>An,Comment:()=>_n,Delim:()=>mn,Dimension:()=>bn,EOF:()=>an,Function:()=>sn,Hash:()=>cn,Ident:()=>on,LeftCurlyBracket:()=>Rn,LeftParenthesis:()=>Tn,LeftSquareBracket:()=>En,Number:()=>gn,Percentage:()=>fn,RightCurlyBracket:()=>In,RightParenthesis:()=>Cn,RightSquareBracket:()=>Sn,Semicolon:()=>xn,String:()=>un,Url:()=>dn,WhiteSpace:()=>yn});var an=0,on=1,sn=2,ln=3,cn=4,un=5,hn=6,dn=7,pn=8,mn=9,gn=10,fn=11,bn=12,yn=13,wn=14,kn=15,vn=16,xn=17,An=18,En=19,Sn=20,Tn=21,Cn=22,Rn=23,In=24,_n=25;function Ln(e){return e>=48&&e<=57}function zn(e){return Ln(e)||e>=65&&e<=70||e>=97&&e<=102}function Pn(e){return e>=65&&e<=90}function Nn(e){return function(e){return Pn(e)||function(e){return e>=97&&e<=122}(e)}(e)||function(e){return e>=128}(e)||95===e}function Mn(e){return Nn(e)||Ln(e)||45===e}function On(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}function Un(e){return 10===e||13===e||12===e}function Dn(e){return Un(e)||32===e||9===e}function qn(e,t){return!(92!==e||Un(t)||0===t)}function Fn(e,t,n){return 45===e?Nn(t)||45===t||qn(t,n):!!Nn(e)||92===e&&qn(e,t)}function Bn(e,t,n){return 43===e||45===e?Ln(t)?2:46===t&&Ln(n)?3:0:46===e?Ln(t)?2:0:Ln(e)?1:0}function jn(e){return 65279===e||65534===e?1:0}var Hn=new Array(128),Vn=130,Wn=131,$n=132,Gn=133;for(let e=0;ee.length)return!1;for(let a=t;a=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)}var ir=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token","comment-token"];function sr(e=null,t){return null===e||e.length0?jn(t.charCodeAt(0)):0,a=sr(e.lines,n),o=sr(e.columns,n),i=e.startLine,s=e.startColumn;for(let e=r;e{})){let n=(e=String(e||"")).length,r=sr(this.offsetAndType,e.length+1),a=sr(this.balance,e.length+1),o=0,i=0,s=0,l=-1;for(this.offsetAndType=null,this.balance=null,t(e,((e,t,c)=>{switch(e){default:a[o]=n;break;case i:{let e=s&ur;for(s=a[e],i=s>>hr,a[o]=e,a[e++]=o;e>hr:0}lookupOffset(e){return(e+=this.tokenIndex)0?e>hr,this.tokenEnd=t&ur):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e>hr,this.tokenEnd=e&ur):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=0,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;13===this.tokenType||25===this.tokenType;)this.next()}skipUntilBalanced(e,t){let n,r,a=e;e:for(;a0?this.offsetAndType[a-1]&ur:this.firstCharOffset,t(this.source.charCodeAt(r))){case 1:break e;case 2:a++;break e;default:this.balance[n]===a&&(a=n)}this.skip(a-this.tokenIndex)}forEachToken(e){for(let t=0,n=this.firstCharOffset;t>hr,r,o,t)}}dump(){let e=new Array(this.tokenCount);return this.forEachToken(((t,n,r,a)=>{e[a]={idx:a,type:ir[t],chunk:this.source.substring(n,r),balance:this.balance[a]}})),e}};function mr(e,t){function n(t){return t=e.length?void(cString(e+n+1).padStart(l)+" |"+t)).join("\n")}let o=e.split(/\r\n?|\n|\f/),i=Math.max(1,t-r)-1,s=Math.min(t+r,o.length+1),l=Math.max(4,String(s).length)+1,c=0;(n+=(kr.length-1)*(o[t-1].substr(0,n-1).match(/\t/g)||[]).length)>yr&&(c=n-wr+3,n=wr-2);for(let e=i;e<=s;e++)e>=0&&e0&&o[e].length>c?"…":"")+o[e].substr(c,yr-2)+(o[e].length>c+yr-1?"…":""));return[a(i,t),new Array(n+l+2).join("-")+"^",a(t,s)].filter(Boolean).join("\n")}function xr(e,t,n,r,a){return Object.assign(br("SyntaxError",e),{source:t,offset:n,line:r,column:a,sourceFragment:e=>vr({source:t,line:r,column:a},isNaN(e)?0:e),get formattedMessage(){return`Parse error: ${e}\n`+vr({source:t,line:r,column:a},2)}})}function Ar(e){let t=this.createList(),n=!1,r={recognizer:e};for(;!this.eof;){switch(this.tokenType){case 25:this.next();continue;case 13:n=!0,this.next();continue}let a=e.getNode.call(this,r);if(void 0===a)break;n&&(e.onWhiteSpace&&e.onWhiteSpace.call(this,a,t,r),n=!1),t.push(a)}return n&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,r),t}var Er=()=>{},Sr=33,Tr=35,Cr=59,Rr=123,Ir=0;function _r(e){return function(){return this[e]()}}function Lr(e){let t=Object.create(null);for(let n in e){let r=e[n],a=r.parse||r;a&&(t[n]=a)}return t}function zr(e){let t="",n="",r=!1,a=Er,o=!1,i=new cr,s=Object.assign(new pr,function(e){let t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:Lr(e.atrule),pseudo:Lr(e.pseudo),node:Lr(e.node)};for(let n in e.parseContext)switch(typeof e.parseContext[n]){case"function":t.context[n]=e.parseContext[n];break;case"string":t.context[n]=_r(e.parseContext[n])}return{config:t,...t,...t.node}}(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:Ar,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket:e=>e===Rr?1:0,consumeUntilLeftCurlyBracketOrSemicolon:e=>e===Rr||e===Cr?1:0,consumeUntilExclamationMarkOrSemicolon:e=>e===Sr||e===Cr?1:0,consumeUntilSemicolonIncluded:e=>e===Cr?2:0,createList:()=>new fr,createSingleNodeList:e=>(new fr).appendData(e),getFirstListNode:e=>e&&e.first,getLastListNode:e=>e&&e.last,parseWithFallback(e,t){let n=this.tokenIndex;try{return e.call(this)}catch(e){if(o)throw e;let r=t.call(this,n);return o=!0,a(e,r),o=!1,r}},lookupNonWSType(e){let t;do{if(t=this.lookupType(e++),13!==t)return t}while(t!==Ir);return Ir},charCodeAt:e=>e>=0&&et.substring(e,n),substrToCursor(e){return this.source.substring(e,this.tokenStart)},cmpChar:(e,n)=>Qn(t,e,n),cmpStr:(e,n,r)=>Zn(t,e,n,r),consume(e){let t=this.tokenStart;return this.eat(e),this.substrToCursor(t)},consumeFunctionName(){let e=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(2),e},consumeNumber(e){let n=t.substring(this.tokenStart,rr(t,this.tokenStart));return this.eat(e),n},eat(e){if(this.tokenType!==e){let t=ir[e].slice(0,-6).replace(/-/g," ").replace(/^./,(e=>e.toUpperCase())),n=`${/[[\](){}]/.test(t)?`"${t}"`:t} is expected`,r=this.tokenStart;switch(e){case 1:2===this.tokenType||7===this.tokenType?(r=this.tokenEnd-1,n="Identifier is expected but function found"):n="Identifier is expected";break;case 4:this.isDelim(Tr)&&(this.next(),r++,n="Name is expected");break;case 11:10===this.tokenType&&(r=this.tokenEnd,n="Percent sign is expected")}this.error(n,r)}this.next()},eatIdent(e){(1!==this.tokenType||!1===this.lookupValue(0,e))&&this.error(`Identifier "${e}" is expected`),this.next()},eatDelim(e){this.isDelim(e)||this.error(`Delim "${String.fromCharCode(e)}" is expected`),this.next()},getLocation:(e,t)=>r?i.getLocationRange(e,t,n):null,getLocationFromList(e){if(r){let t=this.getFirstListNode(e),r=this.getLastListNode(e);return i.getLocationRange(null!==t?t.loc.start.offset-i.startOffset:this.tokenStart,null!==r?r.loc.end.offset-i.startOffset:this.tokenStart,n)}return null},error(e,n){let r=typeof n<"u"&&n=0&&Dn(e.charCodeAt(t));t--);return t+1}(t,t.length-1)):i.getLocation(this.tokenStart);throw new xr(e||"Unexpected input",t,r.offset,r.line,r.column)}});return Object.assign((function(e,l){t=e,l=l||{},s.setSource(t,mr),i.setSource(t,l.offset,l.line,l.column),n=l.filename||"",r=Boolean(l.positions),a="function"==typeof l.onParseError?l.onParseError:Er,o=!1,s.parseAtrulePrelude=!("parseAtrulePrelude"in l)||Boolean(l.parseAtrulePrelude),s.parseRulePrelude=!("parseRulePrelude"in l)||Boolean(l.parseRulePrelude),s.parseValue=!("parseValue"in l)||Boolean(l.parseValue),s.parseCustomProperty="parseCustomProperty"in l&&Boolean(l.parseCustomProperty);let{context:c="default",onComment:u}=l;if(!(c in s.context))throw new Error("Unknown context `"+c+"`");"function"==typeof u&&s.forEachToken(((e,n,r)=>{if(25===e){let e=s.getLocation(n,r),a=Zn(t,r-2,r,"*/")?t.slice(n+2,r-2):t.slice(n+2,r);u(a,e)}}));let h=s.context[c].call(s,l);return s.eof||s.error(),h}),{SyntaxError:xr,config:s.config})}var Pr,Nr,Mr,Or=(Pr=nn(),Nr=1,Mr=null!=Pr?Ht(Gt(Pr)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of $t(t))!Yt.call(e,a)&&a!==n&&Vt(e,a,{get:()=>t[a],enumerable:!(r=Wt(t,a))||r.enumerable});return e})(!Nr&&Pr&&Pr.__esModule?Mr:Vt(Mr,"default",{value:Pr,enumerable:!0}),Pr)),Ur=new Set(["Atrule","Selector","Declaration"]);var Dr={};Kt(Dr,{safe:()=>Vr,spec:()=>Hr});var qr=(e,t)=>{if(9===e&&(e=t),"string"==typeof e){let t=e.charCodeAt(0);return t>127?32768:t<<8}return e},Fr=[[1,1],[1,2],[1,7],[1,8],[1,"-"],[1,10],[1,11],[1,12],[1,15],[1,21],[3,1],[3,2],[3,7],[3,8],[3,"-"],[3,10],[3,11],[3,12],[3,15],[4,1],[4,2],[4,7],[4,8],[4,"-"],[4,10],[4,11],[4,12],[4,15],[12,1],[12,2],[12,7],[12,8],[12,"-"],[12,10],[12,11],[12,12],[12,15],["#",1],["#",2],["#",7],["#",8],["#","-"],["#",10],["#",11],["#",12],["#",15],["-",1],["-",2],["-",7],["-",8],["-","-"],["-",10],["-",11],["-",12],["-",15],[10,1],[10,2],[10,7],[10,8],[10,10],[10,11],[10,12],[10,"%"],[10,15],["@",1],["@",2],["@",7],["@",8],["@","-"],["@",15],[".",10],[".",11],[".",12],["+",10],["+",11],["+",12],["/","*"]],Br=Fr.concat([[1,4],[12,4],[4,4],[3,21],[3,5],[3,16],[11,11],[11,12],[11,2],[11,"-"],[22,1],[22,2],[22,11],[22,12],[22,4],[22,"-"]]);function jr(e){let t=new Set(e.map((([e,t])=>qr(e)<<16|qr(t))));return function(e,n,r){let a=qr(n,r),o=r.charCodeAt(0);return(45===o&&1!==n&&2!==n&&15!==n||43===o?t.has(e<<16|o<<8):t.has(e<<16|a))&&this.emit(" ",13,!0),a}}var Hr=jr(Fr),Vr=jr(Br),Wr=92;function $r(e,t){if("function"!=typeof t)e.children.forEach(this.node,this);else{let n=null;e.children.forEach((e=>{null!==n&&t.call(this,n),this.node(e),n=e}))}}function Gr(e){mr(e,((t,n,r)=>{this.token(t,e.slice(n,r))}))}function Yr(e){let t=new Map;for(let n in e.node){let r=e.node[n];"function"==typeof(r.generate||r)&&t.set(n,r.generate||r)}return function(e,n){let r="",a=0,o={node(e){if(!t.has(e.type))throw new Error("Unknown node type: "+e.type);t.get(e.type).call(i,e)},tokenBefore:Vr,token(e,t){a=this.tokenBefore(a,e,t),this.emit(t,e,!1),9===e&&t.charCodeAt(0)===Wr&&this.emit("\n",13,!0)},emit(e){r+=e},result:()=>r};n&&("function"==typeof n.decorator&&(o=n.decorator(o)),n.sourceMap&&(o=function(e){let t=new Or.SourceMapGenerator,n={line:1,column:0},r={line:0,column:0},a={line:1,column:0},o={generated:a},i=1,s=0,l=!1,c=e.node;e.node=function(e){if(e.loc&&e.loc.start&&Ur.has(e.type)){let c=e.loc.start.line,u=e.loc.start.column-1;(r.line!==c||r.column!==u)&&(r.line=c,r.column=u,n.line=i,n.column=s,l&&(l=!1,(n.line!==a.line||n.column!==a.column)&&t.addMapping(o)),l=!0,t.addMapping({source:e.loc.source,original:r,generated:n}))}c.call(this,e),l&&Ur.has(e.type)&&(a.line=i,a.column=s)};let u=e.emit;e.emit=function(e,t,n){for(let t=0;to.node(e),children:$r,token:(e,t)=>o.token(e,t),tokenize:Gr};return o.node(e),o.result()}}var{hasOwnProperty:Jr}=Object.prototype,Kr=function(){};function Qr(e){return"function"==typeof e?e:Kr}function Zr(e,t){return function(n,r,a){n.type===t&&e.call(this,n,r,a)}}function Xr(e,t){let n=t.structure,r=[];for(let e in n){if(!1===Jr.call(n,e))continue;let t=n[e],a={name:e,type:!1,nullable:!1};Array.isArray(t)||(t=[t]);for(let e of t)null===e?a.nullable=!0:"string"==typeof e?a.type="node":Array.isArray(e)&&(a.type="list");a.type&&r.push(a)}return r.length?{context:t.walkContext,fields:r}:null}function ea(e,t){let n=e.fields.slice(),r=e.context,a="string"==typeof r;return t&&n.reverse(),function(e,o,i,s){let l;a&&(l=o[r],o[r]=e);for(let r of n){let n=e[r.name];if(!r.nullable||n)if("list"===r.type){if(t?n.reduceRight(s,!1):n.reduce(s,!1))return!0}else if(i(n))return!0}a&&(o[r]=l)}}function ta({StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:a}){return{Atrule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Rule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Declaration:{StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:a}}}function na(e){let t=function(e){let t={};for(let n in e.node)if(Jr.call(e.node,n)){let r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=Xr(0,r)}return t}(e),n={},r={},a=Symbol("break-walk"),o=Symbol("skip-node");for(let e in t)Jr.call(t,e)&&null!==t[e]&&(n[e]=ea(t[e],!1),r[e]=ea(t[e],!0));let i=ta(n),s=ta(r),l=function(e,l){function c(e,t,n){let r=u.call(m,e,t,n);return r===a||r!==o&&!!(d.hasOwnProperty(e.type)&&d[e.type](e,m,c,p)||h.call(m,e,t,n)===a)}let u=Kr,h=Kr,d=n,p=(e,t,n,r)=>e||c(t,n,r),m={break:a,skip:o,root:e,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if("function"==typeof l)u=l;else if(l&&(u=Qr(l.enter),h=Qr(l.leave),l.reverse&&(d=r),l.visit)){if(i.hasOwnProperty(l.visit))d=l.reverse?s[l.visit]:i[l.visit];else if(!t.hasOwnProperty(l.visit))throw new Error("Bad value `"+l.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(", ")+")");u=Zr(u,l.visit),h=Zr(h,l.visit)}if(u===Kr&&h===Kr)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");c(e)};return l.break=a,l.skip=o,l.find=function(e,t){let n=null;return l(e,(function(e,r,o){if(t.call(this,e,r,o))return n=e,a})),n},l.findLast=function(e,t){let n=null;return l(e,{reverse:!0,enter(e,r,o){if(t.call(this,e,r,o))return n=e,a}}),n},l.findAll=function(e,t){let n=[];return l(e,(function(e,r,a){t.call(this,e,r,a)&&n.push(e)})),n},l}function ra(e){return e}function aa(e,t,n,r){let a;switch(e.type){case"Group":a=function(e,t,n,r){let a=" "===e.combinator||r?e.combinator:" "+e.combinator+" ",o=e.terms.map((e=>aa(e,t,n,r))).join(a);return e.explicit||n?(r||","===o[0]?"[":"[ ")+o+(r?"]":" ]"):o}(e,t,n,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return aa(e.term,t,n,r)+t(function(e){let{min:t,max:n,comma:r}=e;return 0===t&&0===n?r?"#?":"*":0===t&&1===n?"?":1===t&&0===n?r?"#":"+":1===t&&1===n?"":(r?"#":"")+(t===n?"{"+t+"}":"{"+t+","+(0!==n?n:"")+"}")}(e),e);case"Type":a="<"+e.name+(e.opts?t(function(e){if("Range"===e.type)return" ["+(null===e.min?"-∞":e.min)+","+(null===e.max?"∞":e.max)+"]";throw new Error("Unknown node type `"+e.type+"`")}(e.opts),e.opts):"")+">";break;case"Property":a="<'"+e.name+"'>";break;case"Keyword":a=e.name;break;case"AtKeyword":a="@"+e.name;break;case"Function":a=e.name+"(";break;case"String":case"Token":a=e.value;break;case"Comma":a=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(a,e)}function oa(e,t){let n=ra,r=!1,a=!1;return"function"==typeof t?n=t:t&&(r=Boolean(t.forceBraces),a=Boolean(t.compact),"function"==typeof t.decorate&&(n=t.decorate)),aa(e,n,r,a)}var ia={offset:0,line:1,column:1};function sa(e,t){let n=e&&e.loc&&e.loc[t];return n?"line"in n?la(n):n:null}function la({offset:e,line:t,column:n},r){let a={offset:e,line:t,column:n};if(r){let e=r.split(/\n|\r\n?|\f/);a.offset+=r.length,a.line+=e.length-1,a.column=1===e.length?a.column+r.length:e.pop().length+1}return a}var ca=function(e,t){let n=br("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},ua=function(e,t,n,r){let a=br("SyntaxMatchError",e),{css:o,mismatchOffset:i,mismatchLength:s,start:l,end:c}=function(e,t){let n,r,a=e.tokens,o=e.longestMatch,i=o1?(n=sa(s||t,"end")||la(ia,h),r=la(n)):(n=sa(s,"start")||la(sa(t,"start")||ia,h.slice(0,l)),r=sa(s,"end")||la(n,h.substr(l,c))),{css:h,mismatchOffset:l,mismatchLength:c,start:n,end:r}}(r,n);return a.rawMessage=e,a.syntax=t?oa(t):"",a.css=o,a.mismatchOffset=i,a.mismatchLength=s,a.message=e+"\n syntax: "+a.syntax+"\n value: "+(o||"")+"\n --------"+new Array(a.mismatchOffset+1).join("-")+"^",Object.assign(a,l),a.loc={source:n&&n.loc&&n.loc.source||"",start:l,end:c},a},ha=new Map,da=new Map,pa=45,ma=function(e){if(ha.has(e))return ha.get(e);let t=e.toLowerCase(),n=ha.get(t);if(void 0===n){let e=ba(t,0),r=e?"":ya(t,0);n=Object.freeze({basename:t.substr(r.length),name:t,prefix:r,vendor:r,custom:e})}return ha.set(e,n),n},ga=function(e){if(da.has(e))return da.get(e);let t=e,n=e[0];"/"===n?n="/"===e[1]?"//":"/":"_"!==n&&"*"!==n&&"$"!==n&&"#"!==n&&"+"!==n&&"&"!==n&&(n="");let r=ba(t,n.length);if(!r&&(t=t.toLowerCase(),da.has(t))){let n=da.get(t);return da.set(e,n),n}let a=r?"":ya(t,n.length),o=t.substr(0,n.length+a.length),i=Object.freeze({basename:t.substr(o.length),name:t.substr(n.length),hack:n,vendor:a,prefix:o,custom:r});return da.set(e,i),i},fa=ya;function ba(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===pa&&e.charCodeAt(t+1)===pa}function ya(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===pa&&e.charCodeAt(t+1)!==pa){let n=e.indexOf("-",t+2);if(-1!==n)return e.substring(t,n+1)}return""}var wa=["initial","inherit","unset","revert","revert-layer"],ka=43,va=45,xa=!0;function Aa(e,t){return null!==e&&9===e.type&&e.value.charCodeAt(0)===t}function Ea(e,t,n){for(;null!==e&&(13===e.type||25===e.type);)e=n(++t);return t}function Sa(e,t,n,r){if(!e)return 0;let a=e.value.charCodeAt(t);if(a===ka||a===va){if(n)return 0;t++}for(;t6)return 0}return r}function La(e,t,n){if(!e)return 0;for(;Ia(n(t),Ra);){if(++e>6)return 0;t++}return t}var za=["calc(","-moz-calc(","-webkit-calc("],Pa=new Map([[2,22],[21,22],[19,20],[23,24]]);function Na(e,t){return te.max&&"string"!=typeof e.max)return!0}return!1}function qa(e){return function(t,n,r){return null===t?0:2===t.type&&Oa(t.value,za)?function(e,t){let n=0,r=[],a=0;e:do{switch(e.type){case 24:case 22:case 20:if(e.type!==n)break e;if(n=r.pop(),0===r.length){a++;break e}break;case 2:case 21:case 19:case 23:r.push(n),n=Pa.get(e.type)}a++}while(e=t(a));return a}(t,n):e(t,n,r)}}function Fa(e){return function(t){return null===t||t.type!==e?0:1}}function Ba(e){return e&&(e=new Set(e)),function(t,n,r){if(null===t||12!==t.type)return 0;let a=rr(t.value,0);if(null!==e){let n=t.value.indexOf("\\",a),r=-1!==n&&Ua(t.value,n)?t.value.substring(a,n):t.value.substr(a);if(!1===e.has(r.toLowerCase()))return 0}return Da(r,t.value,a)?0:1}}function ja(e){return"function"!=typeof e&&(e=function(){return 0}),function(t,n,r){return null!==t&&10===t.type&&0===Number(t.value)?1:e(t,n,r)}}var Ha={"ident-token":Fa(1),"function-token":Fa(2),"at-keyword-token":Fa(3),"hash-token":Fa(4),"string-token":Fa(5),"bad-string-token":Fa(6),"url-token":Fa(7),"bad-url-token":Fa(8),"delim-token":Fa(9),"number-token":Fa(10),"percentage-token":Fa(11),"dimension-token":Fa(12),"whitespace-token":Fa(13),"CDO-token":Fa(14),"CDC-token":Fa(15),"colon-token":Fa(16),"semicolon-token":Fa(17),"comma-token":Fa(18),"[-token":Fa(19),"]-token":Fa(20),"(-token":Fa(21),")-token":Fa(22),"{-token":Fa(23),"}-token":Fa(24)},Va={string:Fa(5),ident:Fa(1),percentage:qa((function(e,t,n){return null===e||11!==e.type||Da(n,e.value,e.value.length-1)?0:1})),zero:ja(),number:qa((function(e,t,n){if(null===e)return 0;let r=rr(e.value,0);return r!==e.value.length&&!Ua(e.value,r)||Da(n,e.value,r)?0:1})),integer:qa((function(e,t,n){if(null===e||10!==e.type)return 0;let r=43===Na(e.value,0)||45===Na(e.value,0)?1:0;for(;rYa,decibel:()=>Xa,flex:()=>Za,frequency:()=>Ka,length:()=>Ga,resolution:()=>Qa,semitones:()=>eo,time:()=>Ja});var Ga=["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],Ya=["deg","grad","rad","turn"],Ja=["s","ms"],Ka=["hz","khz"],Qa=["dpi","dpcm","dppx","x"],Za=["fr"],Xa=["db"],eo=["st"],to={};function no(e,t,n){return Object.assign(br("SyntaxError",e),{input:t,offset:n,rawMessage:e,message:e+"\n "+t+"\n--"+new Array((n||t.length)+1).join("-")+"^"})}Kt(to,{SyntaxError:()=>no,generate:()=>oa,parse:()=>Ho,walk:()=>$o});var ro=class{constructor(e){this.str=e,this.pos=0}charCodeAt(e){return e/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0)),Lo={" ":1,"&&":2,"||":3,"|":4};function zo(e){return e.substringToPos(e.findWsEnd(e.pos))}function Po(e){let t=e.pos;for(;t=128||0===_o[n])break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function No(e){let t=e.pos;for(;t57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function Mo(e){let t=e.str.indexOf("'",e.pos+1);return-1===t&&(e.pos=e.str.length,e.error("Expect an apostrophe")),e.substringToPos(t+1)}function Oo(e){let t=null,n=null;return e.eat(To),t=No(e),e.charCode()===yo?(e.pos++,e.charCode()!==Ro&&(n=No(e))):n=t,e.eat(Ro),{min:Number(t),max:n?Number(n):0}}function Uo(e,t){let n=function(e){let t=null,n=!1;switch(e.charCode()){case fo:e.pos++,t={min:0,max:0};break;case bo:e.pos++,t={min:1,max:0};break;case xo:e.pos++,t={min:0,max:1};break;case uo:e.pos++,n=!0,e.charCode()===To?t=Oo(e):e.charCode()===xo?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case To:t=Oo(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}(e);return null!==n?(n.term=t,e.charCode()===uo&&e.charCodeAt(e.pos-1)===bo?Uo(e,n):n):t}function Do(e){let t=e.peek();return""===t?null:{type:"Token",value:t}}function qo(e){let t,n=null;return e.eat(ko),t=Po(e),e.charCode()===mo&&e.nextCharCode()===go&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===Eo&&(zo(e),n=function(e){let t=null,n=null,r=1;return e.eat(Eo),e.charCode()===wo&&(e.peek(),r=-1),-1==r&&e.charCode()===Io?e.peek():(t=r*Number(No(e)),0!==_o[e.charCode()]&&(t+=Po(e))),zo(e),e.eat(yo),zo(e),e.charCode()===Io?e.peek():(r=1,e.charCode()===wo&&(e.peek(),r=-1),n=r*Number(No(e)),0!==_o[e.charCode()]&&(n+=Po(e))),e.eat(So),{type:"Range",min:t,max:n}}(e)),e.eat(vo),Uo(e,{type:"Type",name:t,opts:n})}function Fo(e,t){function n(e,t){return{type:"Group",terms:e,combinator:t,disallowEmpty:!1,explicit:!1}}let r;for(t=Object.keys(t).sort(((e,t)=>Lo[e]-Lo[t]));t.length>0;){r=t.shift();let a=0,o=0;for(;a1&&(e.splice(o,a-o,n(e.slice(o,a),r)),a=o+1),o=-1))}-1!==o&&t.length&&e.splice(o,a-o,n(e.slice(o,a),r))}return r}function Bo(e){let t,n=[],r={},a=null,o=e.pos;for(;t=jo(e);)"Spaces"!==t.type&&("Combinator"===t.type?((null===a||"Combinator"===a.type)&&(e.pos=o,e.error("Unexpected combinator")),r[t.value]=!0):null!==a&&"Combinator"!==a.type&&(r[" "]=!0,n.push({type:"Combinator",value:" "})),n.push(t),a=t,o=e.pos);return null!==a&&"Combinator"===a.type&&(e.pos-=o,e.error("Unexpected combinator")),{type:"Group",terms:n,combinator:Fo(n,r)||" ",disallowEmpty:!1,explicit:!1}}function jo(e){let t=e.charCode();if(t<128&&1===_o[t])return function(e){let t=Po(e);return e.charCode()===mo?(e.pos++,{type:"Function",name:t}):Uo(e,{type:"Keyword",name:t})}(e);switch(t){case So:break;case Eo:return Uo(e,function(e){let t;return e.eat(Eo),t=Bo(e),e.eat(So),t.explicit=!0,e.charCode()===co&&(e.pos++,t.disallowEmpty=!0),t}(e));case ko:return e.nextCharCode()===po?function(e){let t;return e.eat(ko),e.eat(po),t=Po(e),e.eat(po),e.eat(vo),Uo(e,{type:"Property",name:t})}(e):qo(e);case Co:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===Co?2:1))};case ho:return e.pos++,e.eat(ho),{type:"Combinator",value:"&&"};case yo:return e.pos++,{type:"Comma"};case po:return Uo(e,{type:"String",value:Mo(e)});case lo:case ao:case oo:case so:case io:return{type:"Spaces",value:zo(e)};case Ao:return t=e.nextCharCode(),t<128&&1===_o[t]?(e.pos++,{type:"AtKeyword",name:Po(e)}):Do(e);case fo:case bo:case xo:case uo:case co:break;case To:if(t=e.nextCharCode(),t<48||t>57)return Do(e);break;default:return Do(e)}}function Ho(e){let t=new ro(e),n=Bo(t);return t.pos!==e.length&&t.error("Unexpected input"),1===n.terms.length&&"Group"===n.terms[0].type?n.terms[0]:n}var Vo=function(){};function Wo(e){return"function"==typeof e?e:Vo}function $o(e,t,n){let r=Vo,a=Vo;if("function"==typeof t?r=t:t&&(r=Wo(t.enter),a=Wo(t.leave)),r===Vo&&a===Vo)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");!function e(t){switch(r.call(n,t),t.type){case"Group":t.terms.forEach(e);break;case"Multiplier":e(t.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+t.type)}a.call(n,t)}(e)}var Go={decorator(e){let t=[],n=null;return{...e,node(t){let r=n;n=t,e.node.call(this,t),n=r},emit(e,r,a){t.push({type:r,value:e,node:a?null:n})},result:()=>t}}};function Yo(e,t){return"string"==typeof e?function(e){let t=[];return mr(e,((n,r,a)=>t.push({type:n,value:e.slice(r,a),node:null}))),t}(e):t.generate(e,Go)}var Jo={type:"Match"},Ko={type:"Mismatch"},Qo={type:"DisallowEmpty"},Zo=40,Xo=41;function ei(e,t,n){return t===Jo&&n===Ko||e===Jo&&t===Jo&&n===Jo?e:("If"===e.type&&e.else===Ko&&t===Jo&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function ti(e){return e.length>2&&e.charCodeAt(e.length-2)===Zo&&e.charCodeAt(e.length-1)===Xo}function ni(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&&ti(e.name)}function ri(e,t,n){switch(e){case" ":{let e=Jo;for(let n=t.length-1;n>=0;n--){e=ei(t[n],e,Ko)}return e}case"|":{let e=Ko,n=null;for(let r=t.length-1;r>=0;r--){let a=t[r];if(ni(a)&&(null===n&&r>0&&ni(t[r-1])&&(n=Object.create(null),e=ei({type:"Enum",map:n},Jo,e)),null!==n)){let e=(ti(a.name)?a.name.slice(0,-1):a.name).toLowerCase();if(!(e in n)){n[e]=a;continue}}n=null,e=ei(a,Jo,e)}return e}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let n=Ko;for(let r=t.length-1;r>=0;r--){let a,o=t[r];a=t.length>1?ri(e,t.filter((function(e){return e!==o})),!1):Jo,n=ei(o,a,n)}return n}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?Jo:Ko;for(let n=t.length-1;n>=0;n--){let a,o=t[n];a=t.length>1?ri(e,t.filter((function(e){return e!==o})),!0):Jo,r=ei(o,a,r)}return r}}}function ai(e){if("function"==typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=ri(e.combinator,e.terms.map(ai),!1);return e.disallowEmpty&&(t=ei(t,Qo,Ko)),t}case"Multiplier":return function(e){let t=Jo,n=ai(e.term);if(0===e.max)n=ei(n,Qo,Ko),t=ei(n,null,Ko),t.then=ei(Jo,Jo,t),e.comma&&(t.then.else=ei({type:"Comma",syntax:e},t,Ko));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==Jo&&(t=ei({type:"Comma",syntax:e},t,Ko)),t=ei(n,ei(Jo,Jo,t),Ko);if(0===e.min)t=ei(Jo,Jo,t);else for(let r=0;r=65&&a<=90&&(a|=32),a!==r)return!1}return!0}function fi(e){return null===e||(18===e.type||2===e.type||21===e.type||19===e.type||23===e.type||function(e){return 9===e.type&&"?"!==e.value}(e))}function bi(e){return null===e||(22===e.type||20===e.type||24===e.type||9===e.type&&"/"===e.value)}function yi(e,t,n){let r=function(e,t,n){function r(){do{b++,f=by&&(y=b)}function c(){w=w.type===ci?w.prev:{type:ui,syntax:u.syntax,token:w.token,prev:w},u=u.prev}let u=null,h=null,d=null,p=null,m=0,g=null,f=null,b=-1,y=0,w={type:si,syntax:null,token:null,prev:null};for(r();null===g&&++md.tokenIndex)&&(d=p,p=!1);else if(null===d){g=di;break}t=d.nextState,h=d.thenStack,u=d.syntaxStack,w=d.matchStack,b=d.tokenIndex,f=bb){for(;b":"<'"+t.name+"'>"));if(!1!==p&&null!==f&&"Type"===t.type&&("custom-ident"===t.name&&1===f.type||"length"===t.name&&"0"===f.value)){null===p&&(p=o(t,d)),t=Ko;break}u={syntax:t.syntax,opts:t.syntax.opts||null!==u&&u.opts||null,prev:u},w={type:ci,syntax:t.syntax,token:w.token,prev:w},t=r.match;break}case"Keyword":{let e=t.name;if(null!==f){let n=f.value;if(-1!==n.indexOf("\\")&&(n=n.replace(/\\[09].*$/,"")),gi(n,e)){l(),t=Jo;break}}t=Ko;break}case"AtKeyword":case"Function":if(null!==f&&gi(f.value,t.name)){l(),t=Jo;break}t=Ko;break;case"Token":if(null!==f&&f.value===t.value){l(),t=Jo;break}t=Ko;break;case"Comma":null!==f&&18===f.type?fi(w.token)?t=Ko:(l(),t=bi(f)?Ko:Jo):t=fi(w.token)||bi(f)?Jo:Ko;break;case"String":let r="",m=b;for(;m"Type"===e.type&&e.name===t))}function xi(e,t){return Ei(this,e,(e=>"Property"===e.type&&e.name===t))}function Ai(e){return Ei(this,e,(e=>"Keyword"===e.type))}function Ei(e,t,n){let r=ki.call(e,t);return null!==r&&r.some(n)}function Si(e){return"node"in e?e.node:Si(e.match[0])}function Ti(e){return"node"in e?e.node:Ti(e.match[e.match.length-1])}function Ci(e,t,n,r,a){let o=[];return null!==n.matched&&function n(i){if(null!==i.syntax&&i.syntax.type===r&&i.syntax.name===a){let n=Si(i),r=Ti(i);e.syntax.walk(t,(function(e,t,a){if(e===n){let e=new fr;do{if(e.appendData(t.data),t.data===r)break;t=t.next}while(null!==t);o.push({parent:a,nodes:e})}}))}Array.isArray(i.match)&&i.match.forEach(n)}(n.matched),o}Kt(wi,{getTrace:()=>ki,isKeyword:()=>Ai,isProperty:()=>xi,isType:()=>vi});var{hasOwnProperty:Ri}=Object.prototype;function Ii(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}function _i(e){return Boolean(e)&&Ii(e.offset)&&Ii(e.line)&&Ii(e.column)}function Li(e,t){return function(n,r){if(!n||n.constructor!==Object)return r(n,"Type of node should be an Object");for(let a in n){let o=!0;if(!1!==Ri.call(n,a)){if("type"===a)n.type!==e&&r(n,"Wrong node type `"+n.type+"`, expected `"+e+"`");else if("loc"===a){if(null===n.loc)continue;if(n.loc&&n.loc.constructor===Object)if("string"!=typeof n.loc.source)a+=".source";else if(_i(n.loc.start)){if(_i(n.loc.end))continue;a+=".end"}else a+=".start";o=!1}else if(t.hasOwnProperty(a)){o=!1;for(let e=0;!o&&e");else{if(!Array.isArray(r))throw new Error("Wrong value `"+r+"` in `"+e+"."+t+"` structure definition");o.push("List")}}a[t]=o.join(" | ")}return{docs:a,check:Li(e,r)}}var Pi=oi(wa.join(" | "));function Ni(e,t,n){let r={};for(let a in e)e[a].syntax&&(r[a]=n?e[a].syntax:oa(e[a].syntax,{compact:t}));return r}function Mi(e,t,n){let r={};for(let[a,o]of Object.entries(e))r[a]={prelude:o.prelude&&(n?o.prelude.syntax:oa(o.prelude.syntax,{compact:t})),descriptors:o.descriptors&&Ni(o.descriptors,t,n)};return r}function Oi(e,t,n){return{matched:e,iterations:n,error:t,...wi}}function Ui(e,t,n,r){let a,o=Yo(n,e.syntax);return function(e){for(let t=0;t(Object.defineProperty(o,"syntax",{value:Ho(e)}),o.syntax)}):o.syntax=e,Object.defineProperty(o,"match",{get:()=>(Object.defineProperty(o,"match",{value:oi(o.syntax,a)}),o.match)})),o}addAtrule_(e,t){!t||(this.atrules[e]={type:"Atrule",name:e,prelude:t.prelude?this.createDescriptor(t.prelude,"AtrulePrelude",e):null,descriptors:t.descriptors?Object.keys(t.descriptors).reduce(((n,r)=>(n[r]=this.createDescriptor(t.descriptors[r],"AtruleDescriptor",r,e),n)),Object.create(null)):null})}addProperty_(e,t){!t||(this.properties[e]=this.createDescriptor(t,"Property",e))}addType_(e,t){!t||(this.types[e]=this.createDescriptor(t,"Type",e))}checkAtruleName(e){if(!this.getAtrule(e))return new ca("Unknown at-rule","@"+e)}checkAtrulePrelude(e,t){let n=this.checkAtruleName(e);if(n)return n;let r=this.getAtrule(e);return!r.prelude&&t?new SyntaxError("At-rule `@"+e+"` should not contain a prelude"):!r.prelude||t||Ui(this,r.prelude,"",!1).matched?void 0:new SyntaxError("At-rule `@"+e+"` should contain a prelude")}checkAtruleDescriptorName(e,t){let n=this.checkAtruleName(e);if(n)return n;let r=this.getAtrule(e),a=ma(t);return r.descriptors?r.descriptors[a.name]||r.descriptors[a.basename]?void 0:new ca("Unknown at-rule descriptor",t):new SyntaxError("At-rule `@"+e+"` has no known descriptors")}checkPropertyName(e){if(!this.getProperty(e))return new ca("Unknown property",e)}matchAtrulePrelude(e,t){let n=this.checkAtrulePrelude(e,t);if(n)return Oi(null,n);let r=this.getAtrule(e);return r.prelude?Ui(this,r.prelude,t||"",!1):Oi(null,null)}matchAtruleDescriptor(e,t,n){let r=this.checkAtruleDescriptorName(e,t);if(r)return Oi(null,r);let a=this.getAtrule(e),o=ma(t);return Ui(this,a.descriptors[o.name]||a.descriptors[o.basename],n,!1)}matchDeclaration(e){return"Declaration"!==e.type?Oi(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,t){if(ga(e).custom)return Oi(null,new Error("Lexer matching doesn't applicable for custom properties"));let n=this.checkPropertyName(e);return n?Oi(null,n):Ui(this,this.getProperty(e),t,!0)}matchType(e,t){let n=this.getType(e);return n?Ui(this,n,t,!1):Oi(null,new ca("Unknown type",e))}match(e,t){return"string"==typeof e||e&&e.type?(("string"==typeof e||!e.match)&&(e=this.createDescriptor(e,"Type","anonymous")),Ui(this,e,t,!1)):Oi(null,new ca("Bad syntax"))}findValueFragments(e,t,n,r){return Ci(this,t,this.matchProperty(e,t),n,r)}findDeclarationValueFragments(e,t,n){return Ci(this,e.value,this.matchDeclaration(e),t,n)}findAllFragments(e,t,n){let r=[];return this.syntax.walk(e,{visit:"Declaration",enter:e=>{r.push.apply(r,this.findDeclarationValueFragments(e,t,n))}}),r}getAtrule(e,t=!0){let n=ma(e);return(n.vendor&&t?this.atrules[n.name]||this.atrules[n.basename]:this.atrules[n.name])||null}getAtrulePrelude(e,t=!0){let n=this.getAtrule(e,t);return n&&n.prelude||null}getAtruleDescriptor(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[t]||null}getProperty(e,t=!0){let n=ga(e);return(n.vendor&&t?this.properties[n.name]||this.properties[n.basename]:this.properties[n.name])||null}getType(e){return hasOwnProperty.call(this.types,e)?this.types[e]:null}validate(){function e(r,a,o,i){if(o.has(a))return o.get(a);o.set(a,!1),null!==i.syntax&&$o(i.syntax,(function(i){if("Type"!==i.type&&"Property"!==i.type)return;let s="Type"===i.type?r.types:r.properties,l="Type"===i.type?t:n;(!hasOwnProperty.call(s,i.name)||e(r,i.name,l,s[i.name]))&&o.set(a,!0)}),this)}let t=new Map,n=new Map;for(let n in this.types)e(this,n,t,this.types[n]);for(let t in this.properties)e(this,t,n,this.properties[t]);return t=[...t.keys()].filter((e=>t.get(e))),n=[...n.keys()].filter((e=>n.get(e))),t.length||n.length?{types:t,properties:n}:null}dump(e,t){return{generic:this.generic,units:this.units,types:Ni(this.types,!t,e),properties:Ni(this.properties,!t,e),atrules:Mi(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}};function qi(e,t){return"string"==typeof t&&/^\s*\|/.test(t)?"string"==typeof e?e+t:t.replace(/^\s*\|\s*/,""):t||null}function Fi(e,t){let n=Object.create(null);for(let[r,a]of Object.entries(e))if(a){n[r]={};for(let e of Object.keys(a))t.includes(e)&&(n[r][e]=a[e])}return n}function Bi(e,t){let n={...e};for(let[r,a]of Object.entries(t))switch(r){case"generic":n[r]=Boolean(a);break;case"units":n[r]={...e[r]};for(let[e,t]of Object.entries(a))n[r][e]=Array.isArray(t)?t:[];break;case"atrules":n[r]={...e[r]};for(let[e,t]of Object.entries(a)){let a=n[r][e]||{},o=n[r][e]={prelude:a.prelude||null,descriptors:{...a.descriptors}};if(t){o.prelude=t.prelude?qi(o.prelude,t.prelude):o.prelude||null;for(let[e,n]of Object.entries(t.descriptors||{}))o.descriptors[e]=n?qi(o.descriptors[e],n):null;Object.keys(o.descriptors).length||(o.descriptors=null)}}break;case"types":case"properties":n[r]={...e[r]};for(let[e,t]of Object.entries(a))n[r][e]=qi(n[r][e],t);break;case"scope":n[r]={...e[r]};for(let[e,t]of Object.entries(a))n[r][e]={...n[r][e],...t};break;case"parseContext":n[r]={...e[r],...a};break;case"atrule":case"pseudo":n[r]={...e[r],...Fi(a,["parse"])};break;case"node":n[r]={...e[r],...Fi(a,["name","structure","parse","generate","walkContext"])}}return n}function ji(e){let t=zr(e),n=na(e),r=Yr(e),{fromPlainObject:a,toPlainObject:o}=function(e){return{fromPlainObject:t=>(e(t,{enter(e){e.children&&!(e.children instanceof fr)&&(e.children=(new fr).fromArray(e.children))}}),t),toPlainObject:t=>(e(t,{leave(e){e.children&&e.children instanceof fr&&(e.children=e.children.toArray())}}),t)}}(n),i={lexer:null,createLexer:e=>new Di(e,i,i.lexer.structure),tokenize:mr,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:a,toPlainObject:o,fork(t){let n=Bi({},e);return ji("function"==typeof t?t(n,Object.assign):Bi(n,t))}};return i.lexer=new Di({generic:!0,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},i),i}var Hi=e=>ji(Bi({},e)),Vi={};Kt(Vi,{AnPlusB:()=>Wi,Atrule:()=>os,AtrulePrelude:()=>ps,AttributeSelector:()=>ws,Block:()=>zs,Brackets:()=>Hs,CDC:()=>Ys,CDO:()=>Xs,ClassSelector:()=>al,Combinator:()=>ul,Comment:()=>wl,Declaration:()=>Tl,DeclarationList:()=>Vl,Dimension:()=>Ql,Function:()=>nc,Hash:()=>lc,IdSelector:()=>wc,Identifier:()=>mc,MediaFeature:()=>Ec,MediaQuery:()=>Ic,MediaQueryList:()=>Nc,NestingSelector:()=>qc,Nth:()=>Wc,Number:()=>Kc,Operator:()=>tu,Parentheses:()=>iu,Percentage:()=>hu,PseudoClassSelector:()=>fu,PseudoElementSelector:()=>xu,Ratio:()=>Ru,Raw:()=>Ou,Rule:()=>ju,Selector:()=>Ku,SelectorList:()=>th,String:()=>sh,StyleSheet:()=>yh,TypeSelector:()=>Th,UnicodeRange:()=>Nh,Url:()=>$h,Value:()=>id,WhiteSpace:()=>hd});var Wi={};Kt(Wi,{generate:()=>as,name:()=>ts,parse:()=>rs,structure:()=>ns});var $i=43,Gi=45,Yi=110,Ji=!0,Ki=!1;function Qi(e,t){let n=this.tokenStart+e,r=this.charCodeAt(n);for((r===$i||r===Gi)&&(t&&this.error("Number sign is not allowed"),n++);n0&&this.skip(e),0===t&&(n=this.charCodeAt(this.tokenStart),n!==$i&&n!==Gi&&this.error("Number sign is expected")),Zi.call(this,0!==t),t===Gi?"-"+this.consume(10):this.consume(10)}var ts="AnPlusB",ns={a:[String,null],b:[String,null]};function rs(){let e=this.tokenStart,t=null,n=null;if(10===this.tokenType)Zi.call(this,Ki),n=this.consume(10);else if(1===this.tokenType&&this.cmpChar(this.tokenStart,Gi))switch(t="-1",Xi.call(this,1,Yi),this.tokenEnd-this.tokenStart){case 2:this.next(),n=es.call(this);break;case 3:Xi.call(this,2,Gi),this.next(),this.skipSC(),Zi.call(this,Ji),n="-"+this.consume(10);break;default:Xi.call(this,2,Gi),Qi.call(this,3,Ji),this.next(),n=this.substrToCursor(e+2)}else if(1===this.tokenType||this.isDelim($i)&&1===this.lookupType(1)){let r=0;switch(t="1",this.isDelim($i)&&(r=1,this.next()),Xi.call(this,0,Yi),this.tokenEnd-this.tokenStart){case 1:this.next(),n=es.call(this);break;case 2:Xi.call(this,1,Gi),this.next(),this.skipSC(),Zi.call(this,Ji),n="-"+this.consume(10);break;default:Xi.call(this,1,Gi),Qi.call(this,2,Ji),this.next(),n=this.substrToCursor(e+r+1)}}else if(12===this.tokenType){let r=this.charCodeAt(this.tokenStart),a=r===$i||r===Gi,o=this.tokenStart+a;for(;ods,name:()=>ls,parse:()=>hs,structure:()=>us,walkContext:()=>cs});var ls="Atrule",cs="atrule",us={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function hs(e=!1){let t,n,r=this.tokenStart,a=null,o=null;switch(this.eat(3),t=this.substrToCursor(r+1),n=t.toLowerCase(),this.skipSC(),!1===this.eof&&23!==this.tokenType&&17!==this.tokenType&&(a=this.parseAtrulePrelude?this.parseWithFallback(this.AtrulePrelude.bind(this,t,e),is):is.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case 17:this.next();break;case 23:o=hasOwnProperty.call(this.atrule,n)&&"function"==typeof this.atrule[n].block?this.atrule[n].block.call(this,e):this.Block(ss.call(this))}return{type:"Atrule",loc:this.getLocation(r,this.tokenStart),name:t,prelude:a,block:o}}function ds(e){this.token(3,"@"+e.name),null!==e.prelude&&this.node(e.prelude),e.block?this.node(e.block):this.token(17,";")}var ps={};Kt(ps,{generate:()=>ys,name:()=>ms,parse:()=>bs,structure:()=>fs,walkContext:()=>gs});var ms="AtrulePrelude",gs="atrulePrelude",fs={children:[[]]};function bs(e){let t=null;return null!==e&&(e=e.toLowerCase()),this.skipSC(),t=hasOwnProperty.call(this.atrule,e)&&"function"==typeof this.atrule[e].prelude?this.atrule[e].prelude.call(this):this.readSequence(this.scope.AtrulePrelude),this.skipSC(),!0!==this.eof&&23!==this.tokenType&&17!==this.tokenType&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}}function ys(e){this.children(e)}var ws={};Kt(ws,{generate:()=>Ls,name:()=>Rs,parse:()=>_s,structure:()=>Is});var ks=36,vs=42,xs=61,As=94,Es=124,Ss=126;function Ts(){this.eof&&this.error("Unexpected end of input");let e=this.tokenStart,t=!1;return this.isDelim(vs)?(t=!0,this.next()):this.isDelim(Es)||this.eat(1),this.isDelim(Es)?this.charCodeAt(this.tokenStart+1)!==xs?(this.next(),this.eat(1)):t&&this.error("Identifier is expected",this.tokenEnd):t&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function Cs(){let e=this.tokenStart,t=this.charCodeAt(e);return t!==xs&&t!==Ss&&t!==As&&t!==ks&&t!==vs&&t!==Es&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==xs&&(this.isDelim(xs)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}var Rs="AttributeSelector",Is={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function _s(){let e,t=this.tokenStart,n=null,r=null,a=null;return this.eat(19),this.skipSC(),e=Ts.call(this),this.skipSC(),20!==this.tokenType&&(1!==this.tokenType&&(n=Cs.call(this),this.skipSC(),r=5===this.tokenType?this.String():this.Identifier(),this.skipSC()),1===this.tokenType&&(a=this.consume(1),this.skipSC())),this.eat(20),{type:"AttributeSelector",loc:this.getLocation(t,this.tokenStart),name:e,matcher:n,value:r,flags:a}}function Ls(e){this.token(9,"["),this.node(e.name),null!==e.matcher&&(this.tokenize(e.matcher),this.node(e.value)),null!==e.flags&&this.token(1,e.flags),this.token(9,"]")}var zs={};Kt(zs,{generate:()=>js,name:()=>Ds,parse:()=>Bs,structure:()=>Fs,walkContext:()=>qs});var Ps=38;function Ns(e){return this.Raw(e,null,!0)}function Ms(){return this.parseWithFallback(this.Rule,Ns)}function Os(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function Us(){if(17===this.tokenType)return Os.call(this,this.tokenIndex);let e=this.parseWithFallback(this.Declaration,Os);return 17===this.tokenType&&this.next(),e}var Ds="Block",qs="block",Fs={children:[["Atrule","Rule","Declaration"]]};function Bs(e){let t=e?Us:Ms,n=this.tokenStart,r=this.createList();this.eat(23);e:for(;!this.eof;)switch(this.tokenType){case 24:break e;case 13:case 25:this.next();break;case 3:r.push(this.parseWithFallback(this.Atrule.bind(this,e),Ns));break;default:e&&this.isDelim(Ps)?r.push(Ms.call(this)):r.push(t.call(this))}return this.eof||this.eat(24),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function js(e){this.token(23,"{"),this.children(e,(e=>{"Declaration"===e.type&&this.token(17,";")})),this.token(24,"}")}var Hs={};Kt(Hs,{generate:()=>Gs,name:()=>Vs,parse:()=>$s,structure:()=>Ws});var Vs="Brackets",Ws={children:[[]]};function $s(e,t){let n=this.tokenStart,r=null;return this.eat(19),r=e.call(this,t),this.eof||this.eat(20),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:r}}function Gs(e){this.token(9,"["),this.children(e),this.token(9,"]")}var Ys={};Kt(Ys,{generate:()=>Zs,name:()=>Js,parse:()=>Qs,structure:()=>Ks});var Js="CDC",Ks=[];function Qs(){let e=this.tokenStart;return this.eat(15),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function Zs(){this.token(15,"--\x3e")}var Xs={};Kt(Xs,{generate:()=>rl,name:()=>el,parse:()=>nl,structure:()=>tl});var el="CDO",tl=[];function nl(){let e=this.tokenStart;return this.eat(14),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function rl(){this.token(14,"\x3c!--")}var al={};Kt(al,{generate:()=>cl,name:()=>il,parse:()=>ll,structure:()=>sl});var ol=46,il="ClassSelector",sl={name:String};function ll(){return this.eatDelim(ol),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function cl(e){this.token(9,"."),this.token(1,e.name)}var ul={};Kt(ul,{generate:()=>yl,name:()=>gl,parse:()=>bl,structure:()=>fl});var hl=43,dl=47,pl=62,ml=126,gl="Combinator",fl={name:String};function bl(){let e,t=this.tokenStart;switch(this.tokenType){case 13:e=" ";break;case 9:switch(this.charCodeAt(this.tokenStart)){case pl:case hl:case ml:this.next();break;case dl:this.next(),this.eatIdent("deep"),this.eatDelim(dl);break;default:this.error("Combinator is expected")}e=this.substrToCursor(t)}return{type:"Combinator",loc:this.getLocation(t,this.tokenStart),name:e}}function yl(e){this.tokenize(e.name)}var wl={};Kt(wl,{generate:()=>Sl,name:()=>xl,parse:()=>El,structure:()=>Al});var kl=42,vl=47,xl="Comment",Al={value:String};function El(){let e=this.tokenStart,t=this.tokenEnd;return this.eat(25),t-e+2>=2&&this.charCodeAt(t-2)===kl&&this.charCodeAt(t-1)===vl&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function Sl(e){this.token(25,"/*"+e.value+"*/")}var Tl={};Kt(Tl,{generate:()=>Bl,name:()=>Ul,parse:()=>Fl,structure:()=>ql,walkContext:()=>Dl});var Cl=33,Rl=35,Il=36,_l=38,Ll=42,zl=43,Pl=47;function Nl(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function Ml(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function Ol(){let e=this.tokenIndex,t=this.Value();return"Raw"!==t.type&&!1===this.eof&&17!==this.tokenType&&!1===this.isDelim(Cl)&&!1===this.isBalanceEdge(e)&&this.error(),t}var Ul="Declaration",Dl="declaration",ql={important:[Boolean,String],property:String,value:["Value","Raw"]};function Fl(){let e,t=this.tokenStart,n=this.tokenIndex,r=jl.call(this),a=ba(r),o=a?this.parseCustomProperty:this.parseValue,i=a?Ml:Nl,s=!1;this.skipSC(),this.eat(16);let l=this.tokenIndex;if(a||this.skipSC(),e=o?this.parseWithFallback(Ol,i):i.call(this,this.tokenIndex),a&&"Value"===e.type&&e.children.isEmpty)for(let t=l-this.tokenIndex;t<=0;t++)if(13===this.lookupType(t)){e.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}return this.isDelim(Cl)&&(s=Hl.call(this),this.skipSC()),!1===this.eof&&17!==this.tokenType&&!1===this.isBalanceEdge(n)&&this.error(),{type:"Declaration",loc:this.getLocation(t,this.tokenStart),important:s,property:r,value:e}}function Bl(e){this.token(1,e.property),this.token(16,":"),this.node(e.value),e.important&&(this.token(9,"!"),this.token(1,!0===e.important?"important":e.important))}function jl(){let e=this.tokenStart;if(9===this.tokenType)switch(this.charCodeAt(this.tokenStart)){case Ll:case Il:case zl:case Rl:case _l:this.next();break;case Pl:this.next(),this.isDelim(Pl)&&this.next()}return 4===this.tokenType?this.eat(4):this.eat(1),this.substrToCursor(e)}function Hl(){this.eat(9),this.skipSC();let e=this.consume(1);return"important"===e||e}var Vl={};Kt(Vl,{generate:()=>Kl,name:()=>Gl,parse:()=>Jl,structure:()=>Yl});var Wl=38;function $l(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}var Gl="DeclarationList",Yl={children:[["Declaration","Atrule","Rule"]]};function Jl(){let e=this.createList();for(;!this.eof;)switch(this.tokenType){case 13:case 25:case 17:this.next();break;case 3:e.push(this.parseWithFallback(this.Atrule.bind(this,!0),$l));break;default:this.isDelim(Wl)?e.push(this.parseWithFallback(this.Rule,$l)):e.push(this.parseWithFallback(this.Declaration,$l))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function Kl(e){this.children(e,(e=>{"Declaration"===e.type&&this.token(17,";")}))}var Ql={};Kt(Ql,{generate:()=>tc,name:()=>Zl,parse:()=>ec,structure:()=>Xl});var Zl="Dimension",Xl={value:String,unit:String};function ec(){let e=this.tokenStart,t=this.consumeNumber(12);return{type:"Dimension",loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}}function tc(e){this.token(12,e.value+e.unit)}var nc={};Kt(nc,{generate:()=>sc,name:()=>rc,parse:()=>ic,structure:()=>oc,walkContext:()=>ac});var rc="Function",ac="function",oc={name:String,children:[[]]};function ic(e,t){let n,r=this.tokenStart,a=this.consumeFunctionName(),o=a.toLowerCase();return n=t.hasOwnProperty(o)?t[o].call(this,t):e.call(this,t),this.eof||this.eat(22),{type:"Function",loc:this.getLocation(r,this.tokenStart),name:a,children:n}}function sc(e){this.token(2,e.name+"("),this.children(e),this.token(22,")")}var lc={};Kt(lc,{generate:()=>pc,name:()=>uc,parse:()=>dc,structure:()=>hc,xxx:()=>cc});var cc="XXX",uc="Hash",hc={value:String};function dc(){let e=this.tokenStart;return this.eat(4),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function pc(e){this.token(4,"#"+e.value)}var mc={};Kt(mc,{generate:()=>yc,name:()=>gc,parse:()=>bc,structure:()=>fc});var gc="Identifier",fc={name:String};function bc(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function yc(e){this.token(1,e.name)}var wc={};Kt(wc,{generate:()=>Ac,name:()=>kc,parse:()=>xc,structure:()=>vc});var kc="IdSelector",vc={name:String};function xc(){let e=this.tokenStart;return this.eat(4),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function Ac(e){this.token(9,"#"+e.name)}var Ec={};Kt(Ec,{generate:()=>Rc,name:()=>Sc,parse:()=>Cc,structure:()=>Tc});var Sc="MediaFeature",Tc={name:String,value:["Identifier","Number","Dimension","Ratio",null]};function Cc(){let e,t=this.tokenStart,n=null;if(this.eat(21),this.skipSC(),e=this.consume(1),this.skipSC(),22!==this.tokenType){switch(this.eat(16),this.skipSC(),this.tokenType){case 10:n=9===this.lookupNonWSType(1)?this.Ratio():this.Number();break;case 12:n=this.Dimension();break;case 1:n=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eat(22),{type:"MediaFeature",loc:this.getLocation(t,this.tokenStart),name:e,value:n}}function Rc(e){this.token(21,"("),this.token(1,e.name),null!==e.value&&(this.token(16,":"),this.node(e.value)),this.token(22,")")}var Ic={};Kt(Ic,{generate:()=>Pc,name:()=>_c,parse:()=>zc,structure:()=>Lc});var _c="MediaQuery",Lc={children:[["Identifier","MediaFeature","WhiteSpace"]]};function zc(){let e=this.createList(),t=null;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case 25:case 13:this.next();continue;case 1:t=this.Identifier();break;case 21:t=this.MediaFeature();break;default:break e}e.push(t)}return null===t&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(e),children:e}}function Pc(e){this.children(e)}var Nc={};Kt(Nc,{generate:()=>Dc,name:()=>Mc,parse:()=>Uc,structure:()=>Oc});var Mc="MediaQueryList",Oc={children:[["MediaQuery"]]};function Uc(){let e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),18===this.tokenType);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}}function Dc(e){this.children(e,(()=>this.token(18,",")))}var qc={};Kt(qc,{generate:()=>Vc,name:()=>Bc,parse:()=>Hc,structure:()=>jc});var Fc=38,Bc="NestingSelector",jc={};function Hc(){let e=this.tokenStart;return this.eatDelim(Fc),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function Vc(){this.token(9,"&")}var Wc={};Kt(Wc,{generate:()=>Jc,name:()=>$c,parse:()=>Yc,structure:()=>Gc});var $c="Nth",Gc={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function Yc(){this.skipSC();let e,t=this.tokenStart,n=t,r=null;return e=this.lookupValue(0,"odd")||this.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),n=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),r=this.SelectorList(),n=this.tokenStart),{type:"Nth",loc:this.getLocation(t,n),nth:e,selector:r}}function Jc(e){this.node(e.nth),null!==e.selector&&(this.token(1,"of"),this.node(e.selector))}var Kc={};Kt(Kc,{generate:()=>eu,name:()=>Qc,parse:()=>Xc,structure:()=>Zc});var Qc="Number",Zc={value:String};function Xc(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(10)}}function eu(e){this.token(10,e.value)}var tu={};Kt(tu,{generate:()=>ou,name:()=>nu,parse:()=>au,structure:()=>ru});var nu="Operator",ru={value:String};function au(){let e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function ou(e){this.tokenize(e.value)}var iu={};Kt(iu,{generate:()=>uu,name:()=>su,parse:()=>cu,structure:()=>lu});var su="Parentheses",lu={children:[[]]};function cu(e,t){let n=this.tokenStart,r=null;return this.eat(21),r=e.call(this,t),this.eof||this.eat(22),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:r}}function uu(e){this.token(21,"("),this.children(e),this.token(22,")")}var hu={};Kt(hu,{generate:()=>gu,name:()=>du,parse:()=>mu,structure:()=>pu});var du="Percentage",pu={value:String};function mu(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(11)}}function gu(e){this.token(11,e.value+"%")}var fu={};Kt(fu,{generate:()=>vu,name:()=>bu,parse:()=>ku,structure:()=>wu,walkContext:()=>yu});var bu="PseudoClassSelector",yu="function",wu={name:String,children:[["Raw"],null]};function ku(){let e,t,n=this.tokenStart,r=null;return this.eat(16),2===this.tokenType?(e=this.consumeFunctionName(),t=e.toLowerCase(),22==this.lookupNonWSType(0)?r=this.createList():hasOwnProperty.call(this.pseudo,t)?(this.skipSC(),r=this.pseudo[t].call(this),this.skipSC()):(r=this.createList(),r.push(this.Raw(this.tokenIndex,null,!1))),this.eat(22)):e=this.consume(1),{type:"PseudoClassSelector",loc:this.getLocation(n,this.tokenStart),name:e,children:r}}function vu(e){this.token(16,":"),null===e.children?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(22,")"))}var xu={};Kt(xu,{generate:()=>Cu,name:()=>Au,parse:()=>Tu,structure:()=>Su,walkContext:()=>Eu});var Au="PseudoElementSelector",Eu="function",Su={name:String,children:[["Raw"],null]};function Tu(){let e,t,n=this.tokenStart,r=null;return this.eat(16),this.eat(16),2===this.tokenType?(e=this.consumeFunctionName(),t=e.toLowerCase(),22==this.lookupNonWSType(0)?r=this.createList():hasOwnProperty.call(this.pseudo,t)?(this.skipSC(),r=this.pseudo[t].call(this),this.skipSC()):(r=this.createList(),r.push(this.Raw(this.tokenIndex,null,!1))),this.eat(22)):e=this.consume(1),{type:"PseudoElementSelector",loc:this.getLocation(n,this.tokenStart),name:e,children:r}}function Cu(e){this.token(16,":"),this.token(16,":"),null===e.children?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(22,")"))}var Ru={};Kt(Ru,{generate:()=>Mu,name:()=>zu,parse:()=>Nu,structure:()=>Pu});var Iu=47,_u=46;function Lu(){this.skipSC();let e=this.consume(10);for(let t=0;t0&&13===this.lookupType(-1)?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}Kt(Ou,{generate:()=>Bu,name:()=>Du,parse:()=>Fu,structure:()=>qu});var Du="Raw",qu={value:String};function Fu(e,t,n){let r,a=this.getTokenStart(e);return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),r=n&&this.tokenStart>a?Uu.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(a,r),value:this.substring(a,r)}}function Bu(e){this.tokenize(e.value)}var ju={};function Hu(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function Vu(){let e=this.SelectorList();return"Raw"!==e.type&&!1===this.eof&&23!==this.tokenType&&this.error(),e}Kt(ju,{generate:()=>Ju,name:()=>Wu,parse:()=>Yu,structure:()=>Gu,walkContext:()=>$u});var Wu="Rule",$u="rule",Gu={prelude:["SelectorList","Raw"],block:["Block"]};function Yu(){let e,t,n=this.tokenIndex,r=this.tokenStart;return e=this.parseRulePrelude?this.parseWithFallback(Vu,Hu):Hu.call(this,n),t=this.Block(!0),{type:"Rule",loc:this.getLocation(r,this.tokenStart),prelude:e,block:t}}function Ju(e){this.node(e.prelude),this.node(e.block)}var Ku={};Kt(Ku,{generate:()=>eh,name:()=>Qu,parse:()=>Xu,structure:()=>Zu});var Qu="Selector",Zu={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};function Xu(){let e=this.readSequence(this.scope.Selector);return null===this.getFirstListNode(e)&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(e),children:e}}function eh(e){this.children(e)}var th={};Kt(th,{generate:()=>ih,name:()=>nh,parse:()=>oh,structure:()=>ah,walkContext:()=>rh});var nh="SelectorList",rh="selector",ah={children:[["Selector","Raw"]]};function oh(){let e=this.createList();for(;!this.eof&&(e.push(this.Selector()),18===this.tokenType);)this.next();return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}}function ih(e){this.children(e,(()=>this.token(18,",")))}var sh={};Kt(sh,{generate:()=>bh,name:()=>mh,parse:()=>fh,structure:()=>gh});var lh={};Kt(lh,{decode:()=>dh,encode:()=>ph});var ch=92,uh=34,hh=39;function dh(e){let t=e.length,n=e.charCodeAt(0),r=n===uh||n===hh?1:0,a=1===r&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1,o="";for(let n=r;n<=a;n++){let r=e.charCodeAt(n);if(r===ch){if(n===a){n!==t-1&&(o=e.substr(n+1));break}if(r=e.charCodeAt(++n),qn(ch,r)){let t=n-1,r=tr(e,t);n=r-1,o+=or(e.substring(t+1,r))}else 13===r&&10===e.charCodeAt(n+1)&&n++}else o+=e[n]}return o}function ph(e,t){let n=t?"'":'"',r=t?hh:uh,a="",o=!1;for(let t=0;tSh,name:()=>vh,parse:()=>Eh,structure:()=>Ah,walkContext:()=>xh});var wh=33;function kh(e){return this.Raw(e,null,!1)}var vh="StyleSheet",xh="stylesheet",Ah={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function Eh(){let e,t=this.tokenStart,n=this.createList();for(;!this.eof;){switch(this.tokenType){case 13:this.next();continue;case 25:if(this.charCodeAt(this.tokenStart+2)!==wh){this.next();continue}e=this.Comment();break;case 14:e=this.CDO();break;case 15:e=this.CDC();break;case 3:e=this.parseWithFallback(this.Atrule,kh);break;default:e=this.parseWithFallback(this.Rule,kh)}n.push(e)}return{type:"StyleSheet",loc:this.getLocation(t,this.tokenStart),children:n}}function Sh(e){this.children(e)}var Th={};Kt(Th,{generate:()=>Ph,name:()=>_h,parse:()=>zh,structure:()=>Lh});var Ch=42,Rh=124;function Ih(){1!==this.tokenType&&!1===this.isDelim(Ch)&&this.error("Identifier or asterisk is expected"),this.next()}var _h="TypeSelector",Lh={name:String};function zh(){let e=this.tokenStart;return this.isDelim(Rh)?(this.next(),Ih.call(this)):(Ih.call(this),this.isDelim(Rh)&&(this.next(),Ih.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function Ph(e){this.tokenize(e.name)}var Nh={};Kt(Nh,{generate:()=>Wh,name:()=>jh,parse:()=>Vh,structure:()=>Hh});var Mh=43,Oh=45,Uh=63;function Dh(e,t){let n=0;for(let r=this.tokenStart+e;r6&&this.error("Too many hex digits",r)}return this.next(),n}function qh(e){let t=0;for(;this.isDelim(Uh);)++t>e&&this.error("Too many question marks"),this.next()}function Fh(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===Mh?"Plus sign":"Hyphen minus")+" is expected")}function Bh(){let e=0;switch(this.tokenType){case 10:if(e=Dh.call(this,1,!0),this.isDelim(Uh)){qh.call(this,6-e);break}if(12===this.tokenType||10===this.tokenType){Fh.call(this,Oh),Dh.call(this,1,!1);break}break;case 12:e=Dh.call(this,1,!0),e>0&&qh.call(this,6-e);break;default:if(this.eatDelim(Mh),1===this.tokenType){e=Dh.call(this,0,!0),e>0&&qh.call(this,6-e);break}if(this.isDelim(Uh)){this.next(),qh.call(this,5);break}this.error("Hex digit or question mark is expected")}}var jh="UnicodeRange",Hh={value:String};function Vh(){let e=this.tokenStart;return this.eatIdent("u"),Bh.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function Wh(e){this.tokenize(e.value)}var $h={};Kt($h,{generate:()=>od,name:()=>nd,parse:()=>ad,structure:()=>rd});var Gh={};Kt(Gh,{decode:()=>ed,encode:()=>td});var Yh=32,Jh=92,Kh=34,Qh=39,Zh=40,Xh=41;function ed(e){let t=e.length,n=4,r=e.charCodeAt(t-1)===Xh?t-2:t-1,a="";for(;nud,name:()=>sd,parse:()=>cd,structure:()=>ld});var sd="Value",ld={children:[[]]};function cd(){let e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}}function ud(e){this.children(e)}var hd={};Kt(hd,{generate:()=>fd,name:()=>pd,parse:()=>gd,structure:()=>md});var dd=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),pd="WhiteSpace",md={value:String};function gd(){return this.eat(13),dd}function fd(e){this.token(13,e.value)}var bd={generic:!0,generic:!0,units:{angle:["deg","grad","rad","turn"],decibel:["db"],flex:["fr"],frequency:["hz","khz"],length:["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],resolution:["dpi","dpcm","dppx","x"],semitones:["st"],time:["s","ms"]},types:{"abs()":"abs( )","absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","acos()":"acos( )","alpha-value":"|","angle-percentage":"|","angular-color-hint":"","angular-color-stop":"&&?","angular-color-stop-list":"[ [, ]?]# , ","animateable-feature":"scroll-position|contents|","asin()":"asin( )","atan()":"atan( )","atan2()":"atan2( , )",attachment:"scroll|fixed|local","attr()":"attr( ? [, ]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' ']'|'[' [|] ? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [? ]+ ? )","auto-track-list":"[? [|]]* ? [? [|]]* ?",axis:"block|inline|vertical|horizontal","baseline-position":"[first|last]? baseline","basic-shape":"||||","bg-image":"none|","bg-layer":"|| [/ ]?||||||||","bg-position":"[[left|center|right|top|bottom|]|[left|center|right|] [top|center|bottom|]|[center|[left|right] ?]&&[center|[top|bottom] ?]]","bg-size":"[|auto]{1,2}|cover|contain","blur()":"blur( )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity",box:"border-box|padding-box|content-box","brightness()":"brightness( )","calc()":"calc( )","calc-sum":" [['+'|'-'] ]*","calc-product":" ['*' |'/' ]*","calc-value":"||||( )","calc-constant":"e|pi|infinity|-infinity|NaN","cf-final-image":"|","cf-mixing-image":"?&&","circle()":"circle( []? [at ]? )","clamp()":"clamp( #{3} )","class-selector":"'.' ","clip-source":"",color:"|||||||||currentcolor|","color-stop":"|","color-stop-angle":"{1,2}","color-stop-length":"{1,2}","color-stop-list":"[ [, ]?]# , ",combinator:"'>'|'+'|'~'|['||']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat-auto":"searchfield|textarea|push-button|slider-horizontal|checkbox|radio|square-button|menulist|listbox|meter|progress-bar|button","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[? * [ *]*]!","compound-selector-list":"#","complex-selector":" [? ]*","complex-selector-list":"#","conic-gradient()":"conic-gradient( [from ]? [at ]? , )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[|contents||||||]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"","contrast()":"contrast( [] )","cos()":"cos( )",counter:"|","counter()":"counter( , ? )","counter-name":"","counter-style":"|symbols( )","counter-style-name":"","counters()":"counters( , , ? )","cross-fade()":"cross-fade( , ? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( , , , )","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( {2,3} ? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( , [first|start|last|first-except]? )|element( )","ellipse()":"ellipse( [{2}]? [at ]? )","ending-shape":"circle|ellipse","env()":"env( , ? )","exp()":"exp( )","explicit-track-list":"[? ]+ ?","family-name":"|+","feature-tag-value":" [|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":" '{' '}'","feature-value-block-list":"+","feature-value-declaration":" : + ;","feature-value-declaration-list":"","feature-value-name":"","fill-rule":"nonzero|evenodd","filter-function":"|||||||||","filter-function-list":"[|]+","final-bg-layer":"<'background-color'>|||| [/ ]?||||||||","fixed-breadth":"","fixed-repeat":"repeat( [] , [? ]+ ? )","fixed-size":"|minmax( , )|minmax( , )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|","frequency-percentage":"|","general-enclosed":"[ )]|( )","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"|fill-box|stroke-box|view-box",gradient:"||||||<-legacy-gradient>","grayscale()":"grayscale( )","grid-line":"auto||[&&?]|[span&&[||]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( [/ ]? )|hsl( , , , ? )","hsla()":"hsla( [/ ]? )|hsla( , , , ? )",hue:"|","hue-rotate()":"hue-rotate( )","hwb()":"hwb( [|none] [|none] [|none] [/ [|none]]? )","hypot()":"hypot( # )",image:"||||||","image()":"image( ? [? , ?]! )","image-set()":"image-set( # )","image-set-option":"[|] [||type( )]","image-src":"|","image-tags":"ltr|rtl","inflexible-breadth":"|min-content|max-content|auto","inset()":"inset( {1,4} [round <'border-radius'>]? )","invert()":"invert( )","keyframes-name":"|","keyframe-block":"# { }","keyframe-block-list":"+","keyframe-selector":"from|to|","lab()":"lab( [||none] [||none] [||none] [/ [|none]]? )","layer()":"layer( )","layer-name":" ['.' ]*","lch()":"lch( [||none] [||none] [|none] [/ [|none]]? )","leader()":"leader( )","leader-type":"dotted|solid|space|","length-percentage":"|","line-names":"'[' * ']'","line-name-list":"[|]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"|thin|medium|thick","linear-color-hint":"","linear-color-stop":" ?","linear-gradient()":"linear-gradient( [|to ]? , )","log()":"log( , ? )","mask-layer":"|| [/ ]?||||||[|no-clip]||||","mask-position":"[|left|center|right] [|top|center|bottom]?","mask-reference":"none||","mask-source":"","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( #{6} )","matrix3d()":"matrix3d( #{16} )","max()":"max( # )","media-and":" [and ]+","media-condition":"|||","media-condition-without-or":"||","media-feature":"( [||] )","media-in-parens":"( )||","media-not":"not ","media-or":" [or ]+","media-query":"|[not|only]? [and ]?","media-query-list":"#","media-type":"","mf-boolean":"","mf-name":"","mf-plain":" : ","mf-range":" ['<'|'>']? '='? | ['<'|'>']? '='? | '<' '='? '<' '='? | '>' '='? '>' '='? ","mf-value":"|||","min()":"min( # )","minmax()":"minmax( [|min-content|max-content|auto] , [||min-content|max-content|auto] )","mod()":"mod( , )","name-repeat":"repeat( [|auto-fill] , + )","named-color":"transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|<-non-standard-color>","namespace-prefix":"","ns-prefix":"[|'*']? '|'","number-percentage":"|","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"|even|odd","opacity()":"opacity( [] )","overflow-position":"unsafe|safe","outline-radius":"|","page-body":"? [; ]?| ","page-margin-box":" '{' '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector-list":"[#]?","page-selector":"+| *","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger","path()":"path( [ ,]? )","paint()":"paint( , ? )","perspective()":"perspective( [|none] )","polygon()":"polygon( ? , [ ]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|] [top|center|bottom|]?|[[left|right] ]&&[[top|bottom] ]]","pow()":"pow( , )","pseudo-class-selector":"':' |':' ')'","pseudo-element-selector":"':' ","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [||]? [at ]? , )",ratio:" [/ ]?","relative-selector":"? ","relative-selector-list":"#","relative-size":"larger|smaller","rem()":"rem( , )","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-conic-gradient()":"repeating-conic-gradient( [from ]? [at ]? , )","repeating-linear-gradient()":"repeating-linear-gradient( [|to ]? , )","repeating-radial-gradient()":"repeating-radial-gradient( [||]? [at ]? , )","reversed-counter-name":"reversed( )","rgb()":"rgb( {3} [/ ]? )|rgb( {3} [/ ]? )|rgb( #{3} , ? )|rgb( #{3} , ? )","rgba()":"rgba( {3} [/ ]? )|rgba( {3} [/ ]? )|rgba( #{3} , ? )|rgba( #{3} , ? )","rotate()":"rotate( [|] )","rotate3d()":"rotate3d( , , , [|] )","rotateX()":"rotateX( [|] )","rotateY()":"rotateY( [|] )","rotateZ()":"rotateZ( [|] )","round()":"round( ? , , )","rounding-strategy":"nearest|up|down|to-zero","saturate()":"saturate( )","scale()":"scale( [|]#{1,2} )","scale3d()":"scale3d( [|]#{3} )","scaleX()":"scaleX( [|] )","scaleY()":"scaleY( [|] )","scaleZ()":"scaleZ( [|] )",scroller:"root|nearest","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"|closest-side|farthest-side","sign()":"sign( )","skew()":"skew( [|] , [|]? )","skewX()":"skewX( [|] )","skewY()":"skewY( [|] )","sepia()":"sepia( )",shadow:"inset?&&{2,4}&&?","shadow-t":"[{2,3}&&?]",shape:"rect( , , , )|rect( )","shape-box":"|margin-box","side-or-corner":"[left|right]||[top|bottom]","sin()":"sin( )","single-animation":"