From f1223a4f08243fc5871defd53fff6477c59ff633 Mon Sep 17 00:00:00 2001 From: Gildas Date: Mon, 6 Jun 2022 01:40:29 +0200 Subject: [PATCH] bump version --- lib/single-file.js | 2 +- manifest.json | 2 +- package-lock.json | 16 ++++++++-------- package.json | 6 +++--- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/single-file.js b/lib/single-file.js index 91b33e4b6..1dee4fbc6 100644 --- a/lib/single-file.js +++ b/lib/single-file.js @@ -1 +1 @@ -!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-image",r="single-file-image-loaded",n=globalThis.browser,o=(e,t,r)=>globalThis.addEventListener(e,t,r),i=e=>{try{globalThis.dispatchEvent(e)}catch(e){}},s=globalThis.CustomEvent,a=globalThis.document,l=globalThis.Document;let c;if(c=window._singleFile_fontFaces?window._singleFile_fontFaces:window._singleFile_fontFaces=new Map,a instanceof l){o("single-file-new-font-face",(e=>{const t=e.detail,r=Object.assign({},t);delete r.src,c.set(JSON.stringify(r),t)})),o("single-file-delete-font",(e=>{const t=e.detail,r=Object.assign({},t);delete r.src,c.delete(JSON.stringify(r))})),o("single-file-clear-fonts",(()=>c=new Map));let e=a.createElement("script");e.src="data:,("+function(){"undefined"==typeof globalThis&&(window.globalThis=window);const e=globalThis.document,t=globalThis.console,r=e=>globalThis.dispatchEvent(e),n=globalThis.CustomEvent,o=globalThis.FileReader,i=globalThis.Blob,s=t&&t.warn&&((...e)=>t.warn(...e))||(()=>{}),a="single-file-new-font-face",l="single-file-delete-font",c="single-file-clear-fonts",u={family:"font-family",style:"font-style",weight:"font-weight",stretch:"font-stretch",unicodeRange:"unicode-range",variant:"font-variant",featureSettings:"font-feature-settings"};if(globalThis.FontFace){const t=globalThis.FontFace;let o;globalThis.FontFace=function(){return o||(s("SingleFile is hooking the FontFace constructor, document.fonts.delete and document.fonts.clear to handle dynamically loaded fonts."),o=!0),h(...arguments).then((e=>r(new n(a,{detail:e})))),new t(...arguments)},globalThis.FontFace.toString=function(){return"function FontFace() { [native code] }"};const i=e.fonts.delete;e.fonts.delete=function(t){return h(t.family).then((e=>r(new n(l,{detail:e})))),i.call(e.fonts,t)},e.fonts.delete.toString=function(){return"function delete() { [native code] }"};const u=e.fonts.clear;e.fonts.clear=function(){return r(new n(c)),u.call(e.fonts)},e.fonts.clear.toString=function(){return"function clear() { [native code] }"}}async function h(e,t,r){const n={};return n["font-family"]=e,n.src=t,r&&Object.keys(r).forEach((e=>{u[e]&&(n[u[e]]=r[e])})),new Promise((e=>{if(n.src instanceof ArrayBuffer){const t=new o;t.readAsDataURL(new i([n.src])),t.addEventListener("load",(()=>{n.src="url("+t.result+")",e(n)}))}else e(n)}))}}.toString()+")()",(a.documentElement||a).appendChild(e),e.remove(),n&&n.runtime&&n.runtime.getURL&&(e=a.createElement("script"),e.src=n.runtime.getURL("/lib/single-file-hooks-frames.js"),e.async=!1,(a.documentElement||a).appendChild(e),e.remove())}function u(){return Array.from(c.values())}function h(e){e.loadDeferredImagesBlockCookies&&i(new s("single-file-block-cookies-start")),e.loadDeferredImagesBlockStorage&&i(new s("single-file-block-storage-start")),e.loadDeferredImagesDispatchScrollEvent&&i(new s("single-file-dispatch-scroll-event-start")),e.loadDeferredImagesKeepZoomLevel?i(new s("single-file-load-deferred-images-keep-zoom-level-start")):i(new s("single-file-load-deferred-images-start"))}function d(e){e.loadDeferredImagesBlockCookies&&i(new s("single-file-block-cookies-end")),e.loadDeferredImagesBlockStorage&&i(new s("single-file-block-storage-end")),e.loadDeferredImagesDispatchScrollEvent&&i(new s("single-file-dispatch-scroll-event-end")),e.loadDeferredImagesKeepZoomLevel?i(new s("single-file-load-deferred-images-keep-zoom-level-end")):i(new s("single-file-load-deferred-images-end"))}function p(e){e.loadDeferredImagesKeepZoomLevel?i(new s("single-file-load-deferred-images-keep-zoom-level-reset")):i(new s("single-file-load-deferred-images-reset"))}var m=Object.freeze({__proto__:null,getFontsData:u,loadDeferredImagesStart:h,loadDeferredImagesEnd:d,loadDeferredImagesResetZoomLevel:p,LOAD_IMAGE_EVENT:t,IMAGE_LOADED_EVENT:r});const f=new RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)","ig");function g(e){return e.replace(f,((e,t,r)=>{const n="0x"+t-65536;return n!=n||r?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)}))}var y=Object.freeze({__proto__:null,process:g});const b="single-file-on-before-capture",k="single-file-on-after-capture",v="data-single-file-removed-content",w="data-single-file-hidden-content",x="data-single-file-kept-content",E="data-single-file-hidden-frame",A="data-single-file-preserved-space-element",S="data-single-file-shadow-root-element",T="data-single-file-win-id",C="data-single-file-image",R="data-single-file-poster",_="data-single-file-video",I="data-single-file-canvas",L="data-single-file-import",N="data-single-file-movable-style",z="data-single-file-input-value",P="data-single-file-lazy-loaded-src",M="data-single-file-stylesheet",O="data-single-file-disabled-noscript",U="data-single-file-selected-content",D="data-single-file-invalid-element",F="data-single-file-async-script",q="*:not(base):not(link):not(meta):not(noscript):not(script):not(style):not(template):not(title)",B=["NOSCRIPT","DISABLED-NOSCRIPT","META","LINK","STYLE","TITLE","TEMPLATE","SOURCE","OBJECT","SCRIPT","HEAD"],j=/^'(.*?)'$/,H=/^"(.*?)"$/,V={regular:"400",normal:"400",bold:"700",bolder:"700",lighter:"100"},W="Page saved with SingleFile",$="Archive processed by SingleFile",G="single-file-ui-element",Y="data:,",J=(e,t,r)=>globalThis.addEventListener(e,t,r);function Q(e){e.querySelectorAll("meta[http-equiv=refresh]").forEach((e=>{e.removeAttribute("http-equiv"),e.setAttribute("disabled-http-equiv","refresh")}))}function K(e,t,r){e.querySelectorAll("noscript:not([data-single-file-disabled-noscript])").forEach((e=>{e.setAttribute(O,e.textContent),e.textContent=""})),Q(e),e.head&&e.head.querySelectorAll(q).forEach((e=>e.hidden=!0)),e.querySelectorAll("svg foreignObject").forEach((e=>{const t=e.querySelectorAll("html > head > "+q+", html > body > "+q);t.length&&(Array.from(e.childNodes).forEach((e=>e.remove())),t.forEach((t=>e.appendChild(t))))}));const n=new Map;let o;return t&&e.documentElement?(e.querySelectorAll("button button, a a, p div").forEach((t=>{const r=e.createElement("template");r.setAttribute(D,""),r.content.appendChild(t.cloneNode(!0)),n.set(t,r),t.replaceWith(r)})),o=Z(t,e,e.documentElement,r),r.moveStylesInHead&&e.querySelectorAll("body style, body ~ style").forEach((e=>{const r=t.getComputedStyle(e);r&&re(e,r)&&(e.setAttribute(N,""),o.markedElements.push(e))}))):o={canvases:[],images:[],posters:[],videos:[],usedFonts:[],shadowRoots:[],imports:[],markedElements:[]},{canvases:o.canvases,fonts:u(),stylesheets:oe(e),images:o.images,posters:o.posters,videos:o.videos,usedFonts:Array.from(o.usedFonts.values()),shadowRoots:o.shadowRoots,imports:o.imports,referrer:e.referrer,markedElements:o.markedElements,invalidElements:n}}function Z(e,t,r,n,o={usedFonts:new Map,canvases:[],images:[],posters:[],videos:[],shadowRoots:[],imports:[],markedElements:[]},i){return Array.from(r.childNodes).filter((t=>t instanceof e.HTMLElement||t instanceof e.SVGElement)).forEach((r=>{let s,a,l;if(!n.autoSaveExternalSave&&(n.removeHiddenElements||n.removeUnusedFonts||n.compressHTML)&&(l=e.getComputedStyle(r),r instanceof e.HTMLElement&&n.removeHiddenElements&&(a=(i||r.closest("html > head"))&&B.includes(r.tagName)||r.closest("details"),a||(s=i||re(r,l),s&&(r.setAttribute(w,""),o.markedElements.push(r)))),!s)){if(n.compressHTML&&l){const e=l.getPropertyValue("white-space");e&&e.startsWith("pre")&&(r.setAttribute(A,""),o.markedElements.push(r))}n.removeUnusedFonts&&(X(l,n,o.usedFonts),X(e.getComputedStyle(r,":first-letter"),n,o.usedFonts),X(e.getComputedStyle(r,":before"),n,o.usedFonts),X(e.getComputedStyle(r,":after"),n,o.usedFonts))}!function(e,t,r,n,o,i,s){if("CANVAS"==r.tagName)try{o.canvases.push({dataURI:r.toDataURL("image/png","")}),r.setAttribute(I,o.canvases.length-1),o.markedElements.push(r)}catch(e){}if("IMG"==r.tagName){const t={currentSrc:i?Y:n.loadDeferredImages&&r.getAttribute(P)||r.currentSrc};o.images.push(t),r.setAttribute(C,o.images.length-1),o.markedElements.push(r),r.removeAttribute(P);try{s=s||e.getComputedStyle(r)}catch(e){}if(s){t.size=function(e,t,r){let n=t.naturalWidth,o=t.naturalHeight;if(!n&&!o){const i=null==t.getAttribute("style");let s,a,l,c,u,h,d,p,m=!1;if("content-box"==(r=r||e.getComputedStyle(t)).getPropertyValue("box-sizing")){const e=t.style.getPropertyValue("box-sizing"),r=t.style.getPropertyPriority("box-sizing"),n=t.clientWidth;t.style.setProperty("box-sizing","border-box","important"),m=t.clientWidth!=n,e?t.style.setProperty("box-sizing",e,r):t.style.removeProperty("box-sizing")}s=ie("padding-left",r),a=ie("padding-right",r),l=ie("padding-top",r),c=ie("padding-bottom",r),m?(u=ie("border-left-width",r),h=ie("border-right-width",r),d=ie("border-top-width",r),p=ie("border-bottom-width",r)):u=h=d=p=0,n=Math.max(0,t.clientWidth-s-a-u-h),o=Math.max(0,t.clientHeight-l-c-d-p),i&&t.removeAttribute("style")}return{pxWidth:n,pxHeight:o}}(e,r,s);const n=s.getPropertyValue("box-shadow"),o=s.getPropertyValue("background-image");n&&"none"!=n||o&&"none"!=o||!(t.size.pxWidth>1||t.size.pxHeight>1)||(t.replaceable=!0,t.backgroundColor=s.getPropertyValue("background-color"),t.objectFit=s.getPropertyValue("object-fit"),t.boxSizing=s.getPropertyValue("box-sizing"),t.objectPosition=s.getPropertyValue("object-position"))}}if("VIDEO"==r.tagName){const n=r.currentSrc;if(n&&!n.startsWith("blob:")&&!n.startsWith("data:")){const t=e.getComputedStyle(r.parentNode).getPropertyValue("position");o.videos.push({positionParent:t,src:n,size:{pxWidth:r.clientWidth,pxHeight:r.clientHeight},currentTime:r.currentTime}),r.setAttribute(_,o.videos.length-1)}if(!r.poster){const e=t.createElement("canvas"),n=e.getContext("2d");e.width=r.clientWidth,e.height=r.clientHeight;try{n.drawImage(r,0,0,e.width,e.height),o.posters.push(e.toDataURL("image/png","")),r.setAttribute(R,o.posters.length-1),o.markedElements.push(r)}catch(e){}}}"IFRAME"==r.tagName&&i&&n.removeHiddenElements&&(r.setAttribute(E,""),o.markedElements.push(r));"LINK"==r.tagName&&r.import&&r.import.documentElement&&(o.imports.push({content:se(r.import)}),r.setAttribute(L,o.imports.length-1),o.markedElements.push(r));"INPUT"==r.tagName&&("password"!=r.type&&(r.setAttribute(z,r.value),o.markedElements.push(r)),"radio"!=r.type&&"checkbox"!=r.type||(r.setAttribute(z,r.checked),o.markedElements.push(r)));"TEXTAREA"==r.tagName&&(r.setAttribute(z,r.value),o.markedElements.push(r));"SELECT"==r.tagName&&r.querySelectorAll("option").forEach((e=>{e.selected&&(e.setAttribute(z,""),o.markedElements.push(e))}));"SCRIPT"==r.tagName&&(r.async&&""!=r.getAttribute("async")&&"async"!=r.getAttribute("async")&&(r.setAttribute(F,""),o.markedElements.push(r)),r.textContent=r.textContent.replace(/<\/script>/gi,"<\\/script>"))}(e,t,r,n,o,s,l);const c=!(r instanceof e.SVGElement)&&ee(r);if(c&&!r.classList.contains(G)){const i={};r.setAttribute(S,o.shadowRoots.length),o.markedElements.push(r),o.shadowRoots.push(i),Z(e,t,c,n,o,s),i.content=c.innerHTML,i.mode=c.mode;try{c.adoptedStyleSheets&&c.adoptedStyleSheets.length&&(i.adoptedStyleSheets=Array.from(c.adoptedStyleSheets).map((e=>Array.from(e.cssRules).map((e=>e.cssText)).join("\n"))))}catch(e){}}Z(e,t,r,n,o,s),!n.autoSaveExternalSave&&n.removeHiddenElements&&i&&(a||""==r.getAttribute(x)?r.parentElement&&(r.parentElement.setAttribute(x,""),o.markedElements.push(r.parentElement)):s&&(r.setAttribute(v,""),o.markedElements.push(r)))})),o}function X(e,t,r){if(e){const n=e.getPropertyValue("font-style")||"normal";e.getPropertyValue("font-family").split(",").forEach((o=>{if(o=te(o),!t.loadedFonts||t.loadedFonts.find((e=>te(e.family)==o&&e.style==n))){const t=le(e.getPropertyValue("font-weight")),i=e.getPropertyValue("font-variant")||"normal",s=[o,t,n,i];r.set(JSON.stringify(s),[o,t,n,i])}}))}}function ee(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 te(e=""){return ae(g(e.trim())).toLowerCase()}function re(e,t){let r=!1;if(t){const n=t.getPropertyValue("display"),o=t.getPropertyValue("opacity"),i=t.getPropertyValue("visibility");if(r="none"==n,!r&&("0"==o||"hidden"==i)&&e.getBoundingClientRect){const t=e.getBoundingClientRect();r=!t.width&&!t.height}}return Boolean(r)}function ne(e,t,r){if(e.querySelectorAll("[data-single-file-disabled-noscript]").forEach((e=>{e.textContent=e.getAttribute(O),e.removeAttribute(O)})),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 r=[v,E,w,A,C,R,_,I,z,S,L,M,F];t=e.querySelectorAll(r.map((e=>"["+e+"]")).join(","))}t.forEach((e=>{e.removeAttribute(v),e.removeAttribute(w),e.removeAttribute(x),e.removeAttribute(E),e.removeAttribute(A),e.removeAttribute(C),e.removeAttribute(R),e.removeAttribute(_),e.removeAttribute(I),e.removeAttribute(z),e.removeAttribute(S),e.removeAttribute(L),e.removeAttribute(M),e.removeAttribute(F),e.removeAttribute(N)})),r&&Array.from(r.entries()).forEach((([e,t])=>t.replaceWith(e)))}function oe(e){if(e){const t=[];return e.querySelectorAll("style").forEach(((r,n)=>{try{const o=e.createElement("style");o.textContent=r.textContent,e.body.appendChild(o);const i=o.sheet;o.remove(),i&&i.cssRules.length==r.sheet.cssRules.length||(r.setAttribute(M,n),t[n]=Array.from(r.sheet.cssRules).map((e=>e.cssText)).join("\n"))}catch(e){}})),t}}function ie(e,t){if(t.getPropertyValue(e).endsWith("px"))return parseFloat(t.getPropertyValue(e))}function se(e){const t=e.doctype;let r="";return t&&(r=" "),r+e.documentElement.outerHTML}function ae(e){return(e=e.match(j)?e.replace(j,"$1"):e.replace(H,"$1")).trim()}function le(e){return V[e.toLowerCase().trim()]||e}function ce(e){return e.flat?e.flat():e.reduce(((e,t)=>e.concat(Array.isArray(t)?ce(t):t)),[])}var ue=Object.freeze({__proto__:null,initUserScriptHandler:function(){J("single-file-user-script-init",(()=>globalThis._singleFile_waitForUserScript=async e=>{const t=new CustomEvent(e+"-request",{cancelable:!0}),r=new Promise((t=>J(e+"-response",t)));(e=>{try{globalThis.dispatchEvent(e)}catch(e){}})(t),t.defaultPrevented&&await r}))},initDoc:Q,preProcessDoc:K,postProcessDoc:ne,serialize:se,removeQuotes:ae,flatten:ce,getFontWeight:le,normalizeFontFamily:te,getShadowRoot:ee,ON_BEFORE_CAPTURE_EVENT_NAME:b,ON_AFTER_CAPTURE_EVENT_NAME:k,WIN_ID_ATTRIBUTE_NAME:T,PRESERVED_SPACE_ELEMENT_ATTRIBUTE_NAME:A,REMOVED_CONTENT_ATTRIBUTE_NAME:v,HIDDEN_CONTENT_ATTRIBUTE_NAME:w,HIDDEN_FRAME_ATTRIBUTE_NAME:E,IMAGE_ATTRIBUTE_NAME:C,POSTER_ATTRIBUTE_NAME:R,VIDEO_ATTRIBUTE_NAME:_,CANVAS_ATTRIBUTE_NAME:I,INPUT_VALUE_ATTRIBUTE_NAME:z,SHADOW_ROOT_ATTRIBUTE_NAME:S,HTML_IMPORT_ATTRIBUTE_NAME:L,STYLE_ATTRIBUTE_NAME:N,LAZY_SRC_ATTRIBUTE_NAME:P,STYLESHEET_ATTRIBUTE_NAME:M,SELECTED_CONTENT_ATTRIBUTE_NAME:U,INVALID_ELEMENT_ATTRIBUTE_NAME:D,ASYNC_SCRIPT_ATTRIBUTE_NAME:F,COMMENT_HEADER:W,COMMENT_HEADER_LEGACY:$,SINGLE_FILE_UI_ELEMENT_CLASS:G,EMPTY_RESOURCE:Y});const he=P,de=G,pe="attributes",me=globalThis.browser,fe=globalThis.document,ge=globalThis.MutationObserver,ye=(e,t,r)=>globalThis.addEventListener(e,t,r),be=(e,t,r)=>globalThis.removeEventListener(e,t,r),ke=new Map;let ve;async function we(e){if(fe.documentElement){ke.clear();const n=Math.max(fe.documentElement.scrollHeight-1.5*fe.documentElement.clientHeight,0),o=Math.max(fe.documentElement.scrollWidth-1.5*fe.documentElement.clientWidth,0);if(globalThis.scrollY<=n&&globalThis.scrollX<=o)return function(e){return ve=0,new Promise((async n=>{let o;const i=new Set,s=new ge((async t=>{if((t=t.filter((e=>e.type==pe))).length){t.filter((e=>{if("src"==e.attributeName&&(e.target.setAttribute(he,e.target.src),e.target.addEventListener("load",l)),"src"==e.attributeName||"srcset"==e.attributeName||"SOURCE"==e.target.tagName)return!e.target.classList||!e.target.classList.contains(de)})).length&&(o=!0,await Ae(s,e,d),i.size||await Ee(s,e,d))}}));async function a(t){await Te("idleTimeout",(async()=>{o?ve<10&&(ve++,Re("idleTimeout"),await a(Math.max(500,t/2))):(Re("loadTimeout"),Re("maxTimeout"),Se(s,e,d))}),t)}function l(e){const t=e.target;t.removeAttribute(he),t.removeEventListener("load",l)}async function c(t){o=!0,await Ae(s,e,d),await Ee(s,e,d),t.detail&&i.add(t.detail)}async function u(t){await Ae(s,e,d),await Ee(s,e,d),i.delete(t.detail),i.size||await Ee(s,e,d)}function d(e){s.disconnect(),be(t,c),be(r,u),n(e)}await a(2*e.loadDeferredImagesMaxIdleTime),await Ae(s,e,d),s.observe(fe,{subtree:!0,childList:!0,attributes:!0}),ye(t,c),ye(r,u),h(e)}))}(e)}}function xe(e){p(e)}async function Ee(e,t,r){await Te("loadTimeout",(()=>Se(e,t,r)),t.loadDeferredImagesMaxIdleTime)}async function Ae(e,t,r){await Te("maxTimeout",(async()=>{await Re("loadTimeout"),await Se(e,t,r)}),10*t.loadDeferredImagesMaxIdleTime)}async function Se(e,t,r){await Re("idleTimeout"),d(t),await Te("endTimeout",(async()=>{await Re("maxTimeout"),r()}),t.loadDeferredImagesMaxIdleTime/2),e.disconnect()}async function Te(e,t,r){if(me&&me.runtime&&me.runtime.sendMessage){if(!ke.get(e)||!ke.get(e).pending){const n={callback:t,pending:!0};ke.set(e,n);try{await me.runtime.sendMessage({method:"singlefile.lazyTimeout.setTimeout",type:e,delay:r})}catch(n){Ce(e,t,r)}n.pending=!1}}else Ce(e,t,r)}function Ce(e,t,r){const n=ke.get(e);n&&globalThis.clearTimeout(n),ke.set(e,t),globalThis.setTimeout(t,r)}async function Re(e){if(me&&me.runtime&&me.runtime.sendMessage)try{await me.runtime.sendMessage({method:"singlefile.lazyTimeout.clearTimeout",type:e})}catch(t){_e(e)}else _e(e)}function _e(e){const t=ke.get(e);ke.delete(e),t&&globalThis.clearTimeout(t)}me&&me.runtime&&me.runtime.onMessage&&me.runtime.onMessage.addListener&&me.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){_e(e.type)}}}}));var Ie=Object.freeze({__proto__:null,process:we,resetZoomLevel:xe});const Le={ON_BEFORE_CAPTURE_EVENT_NAME:b,ON_AFTER_CAPTURE_EVENT_NAME:k,WIN_ID_ATTRIBUTE_NAME:T,preProcessDoc:K,serialize:se,postProcessDoc:ne,getShadowRoot:ee},Ne="__frameTree__::",ze='iframe, frame, object[type="text/html"][data]',Pe="singlefile.frameTree.initRequest",Me="singlefile.frameTree.ackInitRequest",Oe="singlefile.frameTree.cleanupRequest",Ue="singlefile.frameTree.initResponse",De=5e3,Fe=".",qe=globalThis.window==globalThis.top,Be=globalThis.browser,je=globalThis.top,He=globalThis.MessageChannel,Ve=globalThis.document;let We,$e=globalThis.sessions;var Ge,Ye,Je;function Qe(){return globalThis.crypto.getRandomValues(new Uint32Array(32)).join("")}async function Ke(e){const t=e.sessionId,r=globalThis._singleFile_waitForUserScript;delete globalThis._singleFile_cleaningUp,qe||(We=globalThis.frameId=e.windowId),et(Ve,e.options,We,t),qe||(e.options.userScriptEnabled&&r&&await r(Le.ON_BEFORE_CAPTURE_EVENT_NAME),ot({frames:[st(Ve,globalThis,We,e.options)],sessionId:t,requestedFrameId:Ve.documentElement.dataset.requestedFrameId&&We}),e.options.userScriptEnabled&&r&&await r(Le.ON_AFTER_CAPTURE_EVENT_NAME),delete Ve.documentElement.dataset.requestedFrameId)}function Ze(e){if(!globalThis._singleFile_cleaningUp){globalThis._singleFile_cleaningUp=!0;const t=e.sessionId;nt(at(Ve),e.windowId,t)}}function Xe(e){e.frames.forEach((t=>tt("responseTimeouts",e.sessionId,t.windowId)));const t=$e.get(e.sessionId);if(t){e.requestedFrameId&&(t.requestedFrameId=e.requestedFrameId),e.frames.forEach((e=>{let r=t.frames.find((t=>e.windowId==t.windowId));r||(r={windowId:e.windowId},t.frames.push(r)),r.processed||(r.content=e.content,r.baseURI=e.baseURI,r.title=e.title,r.canvases=e.canvases,r.fonts=e.fonts,r.stylesheets=e.stylesheets,r.images=e.images,r.posters=e.posters,r.videos=e.videos,r.usedFonts=e.usedFonts,r.shadowRoots=e.shadowRoots,r.imports=e.imports,r.processed=e.processed)}));t.frames.filter((e=>!e.processed)).length||(t.frames=t.frames.sort(((e,t)=>t.windowId.split(Fe).length-e.windowId.split(Fe).length)),t.resolve&&(t.requestedFrameId&&t.frames.forEach((e=>{e.windowId==t.requestedFrameId&&(e.requestedFrame=!0)})),t.resolve(t.frames)))}}function et(e,t,r,n){const o=at(e);!function(e,t,r,n,o){const i=[];let s;$e.get(o)?s=$e.get(o).requestTimeouts:(s={},$e.set(o,{requestTimeouts:s}));t.forEach(((e,t)=>{const r=n+Fe+t;e.setAttribute(Le.WIN_ID_ATTRIBUTE_NAME,r),i.push({windowId:r})})),ot({frames:i,sessionId:o,requestedFrameId:e.documentElement.dataset.requestedFrameId&&n}),t.forEach(((e,t)=>{const i=n+Fe+t;try{it(e.contentWindow,{method:Pe,windowId:i,sessionId:o,options:r})}catch(e){}s[i]=globalThis.setTimeout((()=>ot({frames:[{windowId:i,processed:!0}],sessionId:o})),De)})),delete e.documentElement.dataset.requestedFrameId}(e,o,t,r,n),o.length&&function(e,t,r,n,o){const i=[];t.forEach(((e,t)=>{const s=n+Fe+t;let a;try{a=e.contentDocument}catch(e){}if(a)try{const t=e.contentWindow;t.stop(),tt("requestTimeouts",o,s),et(a,r,s,o),i.push(st(a,t,s,r))}catch(e){i.push({windowId:s,processed:!0})}})),ot({frames:i,sessionId:o,requestedFrameId:e.documentElement.dataset.requestedFrameId&&n}),delete e.documentElement.dataset.requestedFrameId}(e,o,t,r,n)}function tt(e,t,r){const n=$e.get(t);if(n&&n[e]){const t=n[e][r];t&&(globalThis.clearTimeout(t),delete n[e][r])}}function rt(e,t){const r=$e.get(e);r&&r.responseTimeouts&&(r.responseTimeouts[t]=globalThis.setTimeout((()=>ot({frames:[{windowId:t,processed:!0}],sessionId:e})),1e4))}function nt(e,t,r){e.forEach(((e,n)=>{const o=t+Fe+n;e.removeAttribute(Le.WIN_ID_ATTRIBUTE_NAME);try{it(e.contentWindow,{method:Oe,windowId:o,sessionId:r})}catch(e){}})),e.forEach(((e,n)=>{const o=t+Fe+n;let i;try{i=e.contentDocument}catch(e){}if(i)try{nt(at(i),o,r)}catch(e){}}))}function ot(e){e.method=Ue;try{je.singlefile.processors.frameTree.initResponse(e)}catch(t){it(je,e,!0)}}function it(e,t,r){if(e==je&&Be&&Be.runtime&&Be.runtime.sendMessage)Be.runtime.sendMessage(t);else if(r){const r=new He;e.postMessage(Ne+JSON.stringify({method:t.method,sessionId:t.sessionId}),"*",[r.port2]),r.port1.postMessage(t)}else e.postMessage(Ne+JSON.stringify(t),"*")}function st(e,t,r,n){const o=Le.preProcessDoc(e,t,n),i=Le.serialize(e);Le.postProcessDoc(e,o.markedElements,o.invalidElements);return{windowId:r,content:i,baseURI:e.baseURI.split("#")[0],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,imports:o.imports,processed:!0}}function at(e){let t=Array.from(e.querySelectorAll(ze));return e.querySelectorAll("*").forEach((e=>{const r=Le.getShadowRoot(e);r&&(t=t.concat(...r.querySelectorAll(ze)))})),t}$e||($e=globalThis.sessions=new Map),qe&&(We="0",Be&&Be.runtime&&Be.runtime.onMessage&&Be.runtime.onMessage.addListener&&Be.runtime.onMessage.addListener((e=>e.method==Ue?(Xe(e),Promise.resolve({})):e.method==Me?(tt("requestTimeouts",e.sessionId,e.windowId),rt(e.sessionId,e.windowId),Promise.resolve({})):void 0))),Ge="message",Ye=async e=>{if("string"==typeof e.data&&e.data.startsWith(Ne)){e.preventDefault(),e.stopPropagation();const t=JSON.parse(e.data.substring(Ne.length));t.method==Pe?(e.source&&it(e.source,{method:Me,windowId:t.windowId,sessionId:t.sessionId}),qe||(globalThis.stop(),t.options.loadDeferredImages&&we(t.options),await Ke(t))):t.method==Me?(tt("requestTimeouts",t.sessionId,t.windowId),rt(t.sessionId,t.windowId)):t.method==Oe?Ze(t):t.method==Ue&&$e.get(t.sessionId)&&(e.ports[0].onmessage=e=>Xe(e.data))}},Je=!0,globalThis.addEventListener(Ge,Ye,Je);var lt=Object.freeze({__proto__:null,getAsync:function(e){const t=Qe();return e=JSON.parse(JSON.stringify(e)),new Promise((r=>{$e.set(t,{frames:[],requestTimeouts:{},responseTimeouts:{},resolve:e=>{e.sessionId=t,r(e)}}),Ke({windowId:We,sessionId:t,options:e})}))},getSync:function(e){const t=Qe();e=JSON.parse(JSON.stringify(e)),$e.set(t,{frames:[],requestTimeouts:{},responseTimeouts:{}}),function(e){const t=e.sessionId,r=globalThis._singleFile_waitForUserScript;delete globalThis._singleFile_cleaningUp,qe||(We=globalThis.frameId=e.windowId);et(Ve,e.options,We,t),qe||(e.options.userScriptEnabled&&r&&r(Le.ON_BEFORE_CAPTURE_EVENT_NAME),ot({frames:[st(Ve,globalThis,We,e.options)],sessionId:t,requestedFrameId:Ve.documentElement.dataset.requestedFrameId&&We}),e.options.userScriptEnabled&&r&&r(Le.ON_AFTER_CAPTURE_EVENT_NAME),delete Ve.documentElement.dataset.requestedFrameId)}({windowId:We,sessionId:t,options:e});const r=$e.get(t).frames;return r.sessionId=t,r},cleanup:function(e){$e.delete(e),Ze({windowId:We,sessionId:e,options:{sessionId:e}})},initResponse:Xe,TIMEOUT_INIT_REQUEST_MESSAGE:De});const ct=globalThis.browser,ut=globalThis.document;if(ut instanceof globalThis.Document){const e=ut.createElement("script");e.async=!1,ct&&ct.runtime&&ct.runtime.getURL&&(e.src=ct.runtime.getURL("/lib/single-file-hooks.js"),e.async=!1),(ut.documentElement||ut).appendChild(e),e.remove()}var ht=Object.freeze({__proto__:null}),dt=Object.freeze({__proto__:null,frameTree:lt,hooks:ht,hooksFrames:m,lazy:Ie});const pt=/^'(.*?)'$/,mt=/^"(.*?)"$/,ft=["inherit","initial","unset"],gt=["caption","icon","menu","message-box","small-caption","status-bar"],yt=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"],bt=["normal","italic","oblique"],kt=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"],vt=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"],wt={splitBySpaces:function(e){return Ct(e,[" ","\n","\t"])},split:Ct,splitByCommas:function(e){return Ct(e,[","],{last:!0})}},xt={isSize:function(e){return!isNaN(parseFloat(e))||-1!==e.indexOf("/")||-1!==vt.indexOf(e)}},Et="[parse-css-font] ";function At(e){if("string"!=typeof e)throw new TypeError(Et+"Expected a string.");if(""===e)throw St("Cannot parse an empty string.");if(-1!==gt.indexOf(e))return{system:e};const t={lineHeight:"normal",stretch:"normal",style:"normal",variant:"normal",weight:"normal"};let r=!1;const n=wt.splitBySpaces(e);let o=n.shift();for(;o;o=n.shift())if("normal"!==o&&-1===ft.indexOf(o))if(-1===yt.indexOf(o))if(-1===bt.indexOf(o))if(-1===kt.indexOf(o)){if(xt.isSize(o)){const e=wt.split(o,["/"]);if(t.size=e[0],e[1]?t.lineHeight=Tt(e[1]):"/"===n[0]&&(n.shift(),t.lineHeight=Tt(n.shift())),!n.length)throw St("Missing required font-family.");return t.family=wt.splitByCommas(n.join(" ")).map(Rt),t}if("normal"!==t.variant)throw St("Unknown or unsupported font token: "+t.variant);r||(t.variant=o)}else{if(r)continue;t.stretch=o}else{if(r)continue;t.style=o}else{if(r)continue;t.weight=o}else["style","variant","weight","stretch"].forEach((e=>{t[e]=o})),r=!0;throw St("Missing required font-size.")}function St(e){return new Error(Et+e)}function Tt(e){const t=parseFloat(e);return t.toString()===e?t:e}function Ct(e,t,{last:r=!1}={}){if("string"!=typeof e)throw new TypeError("expected a string");if(!Array.isArray(t))throw new TypeError("expected a string array of separators");if("boolean"!=typeof r)throw new TypeError("expected a Boolean value for options.last");const n=[];let o="",i=!1,s=0,a=!1,l=!1;for(const r of e)a?l?l=!1:"\\"===r?l=!0:r===a&&(a=!1):'"'===r||"'"===r?a=r:"("===r?s+=1:")"===r?s>0&&(s-=1):0===s&&-1!==t.indexOf(r)&&(i=!0),i?(""!==o&&n.push(o.trim()),o="",i=!1):o+=r;return(r||""!==o)&&n.push(o.trim()),n}function Rt(e){return(e=e.match(pt)?e.replace(pt,"$1"):e.replace(mt,"$1")).trim()}var _t=Object.freeze({__proto__:null,parse:At});function It(e,t=0){const r=[{mode:"normal",character:null}],n=[];let o=0,i="",s=null,a=null,l=t,c=e;"("===e[0]&&")"===e[e.length-1]&&(c=e.substring(1,e.length-1),l++);for(let e=0;e0&&(r[e-1].after=n.before),void 0===n.type){if(e>0){if("media-feature-expression"===r[e-1].type){n.type="keyword";continue}if("not"===r[e-1].value||"only"===r[e-1].value){n.type="media-type";continue}if("and"===r[e-1].value){n.type="media-feature-expression";continue}"media-type"===r[e-1].type&&(r[e+1]?n.type="media-feature-expression"===r[e+1].type?"keyword":"media-feature-expression":n.type="media-feature-expression")}if(0===e){if(!r[e+1]){n.type="media-type";continue}if(r[e+1]&&("media-feature-expression"===r[e+1].type||"keyword"===r[e+1].type)){n.type="media-type";continue}if(r[e+2]){if("media-feature-expression"===r[e+2].type){n.type="media-type",r[e+1].type="keyword";continue}if("keyword"===r[e+2].type){n.type="keyword",r[e+1].type="media-type";continue}}if(r[e+3]&&"media-feature-expression"===r[e+3].type){n.type="keyword",r[e+1].type="media-type",r[e+2].type="keyword";continue}}}return r}function Nt(e){const t=[];let r=0,n=0;const o=/^(\s*)url\s*\(/.exec(e);if(null!==o){let n=o[0].length,i=1;for(;i>0;){const t=e[n];"("===t&&i++,")"===t&&i--,n++}t.unshift(new Pt({type:"url",value:e.substring(0,n).trim(),sourceIndex:o[1].length,before:o[1],after:/^(\s*)/.exec(e.substring(n))[1]})),r=n}for(let o=r;o0?this.nodes[this.nodes.length-1].after:""),void 0===this.before&&(this.before=this.nodes.length>0?this.nodes[0].before:""),void 0===this.sourceIndex&&(this.sourceIndex=this.before.length),this.nodes.forEach((e=>{e.parent=this}))}function Pt(e){this.after=e.after,this.before=e.before,this.type=e.type,this.value=e.value,this.sourceIndex=e.sourceIndex}zt.prototype=Object.create(Pt.prototype),zt.constructor=Pt,zt.prototype.walk=function(e,t){const r="string"==typeof e||e instanceof RegExp,n=r?t:e,o="string"==typeof e?new RegExp(e):e;for(let i=0;i{})){for(let t=0;t+()\],])/g,ir=/([^\\])\s+([}])/g,sr=/!important/g,ar=/___PSEUDOCLASSCOLON___/g,lr=/:/g,cr=/\s*(animation|animation-delay|animation-duration|transition|transition-delay|transition-duration):\s*([^;}]+)/gi,ur=/(^|\D)0?\.?0(m?s)/gi,hr=/\s*(flex|flex-basis):\s*([^;}]+)/gi,dr=/\s+/,pr=/(hsla?)\(([^)]+)\)/g,mr=/(^\s+|\s+$)/g,fr=/:first-(line|letter)(\{|,)/gi,gr=/^(.*)(@charset)( "[^"]*";)/gi,yr=/^((\s*)(@charset)( [^;]+;\s*))+/gi,br=/@(font-face|import|(?:-(?:atsc|khtml|moz|ms|o|wap|webkit)-)?keyframe|media|page|namespace)/gi,kr=/:(active|after|before|checked|disabled|empty|enabled|first-(?:child|of-type)|focus|hover|last-(?:child|of-type)|link|only-(?:child|of-type)|root|:selection|target|visited)/gi,vr=/^(.*)(@charset "[^"]*";)/g,wr=/^(\s*@charset [^;]+;\s*)+/g,xr=/:(lang|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|(?:-(?:atsc|khtml|moz|ms|o|wap|webkit)-)?any)\(/gi,Er=/([:,( ]\s*)(attr|color-stop|from|rgba|to|url|(?:-(?:atsc|khtml|moz|ms|o|wap|webkit)-)?(?:calc|max|min|(?:repeating-)?(?:linear|radial)-gradient)|-webkit-gradient)/gi,Ar=/\s*\/\*/g,Sr=/\*\/\s*/g,Tr=/\band\(/gi,Cr=/([^:])not\(/gi,Rr=/\bor\(/gi,_r=/([!{}:;>+([,])\s+/g,Ir=/;+\}/g,Lr=/([0-9])\.0(ex|ch|r?em|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|g?rad|turn|m?s|k?Hz|dpi|dpcm|dppx|%| |;)/gi,Nr=/:0 0 0 0(;|\})/g,zr=/:0 0 0(;|\})/g,Pr=/(transform-origin|webkit-transform-origin|moz-transform-origin|o-transform-origin|ms-transform-origin|box-shadow):0(;|\})/gi,Mr=/(:|\s)0+\.(\d+)/g,Or=/rgb\s*\(\s*([0-9,\s]+)\s*\)/gi,Ur=/(border|border-top|border-right|border-bottom|border-left|outline|background):none(;|\})/gi,Dr=/progid:DXImageTransform\.Microsoft\.Alpha\(Opacity=/gi,Fr=/\(([-A-Za-z]+):([0-9]+)\/([0-9]+)\)/g,qr=/___QUERY_FRACTION___/g,Br=/;;+/g,jr=/(:|\s)(#f00)(;|})/g,Hr=/___PRESERVED_NEWLINE___/g,Vr=/(:|\s)(#000080)(;|})/g,Wr=/(:|\s)(#808080)(;|})/g,$r=/(:|\s)(#808000)(;|})/g,Gr=/(:|\s)(#800080)(;|})/g,Yr=/(:|\s)(#c0c0c0)(;|})/g,Jr=/(:|\s)(#008080)(;|})/g,Qr=/(:|\s)(#ffa500)(;|})/g,Kr=/(:|\s)(#800000)(;|})/g;function Zr(e="",t=Ut){const r=[],n=[];let o;const i=e;function s(t){e=e.replace(t,(e=>{const t=e.substring(0,1);if((e=e.slice(1,-1)).indexOf("___PRESERVE_CANDIDATE_COMMENT_")>=0)for(let t=0,n=r.length;t0&&"\\"!==e.charAt(u-1)&&(c=!0,")"!=l&&(u=e.indexOf(")",u)));if(o.push(e.substring(s,i.index)),c){let r=e.substring(a,u);const n=r.split(",");n.length>1&&";base64"==n[0].slice(-7)?r=r.replace(Ft,""):(r=r.replace(qt," "),r=r.replace(Ft," "),r=r.replace(mr,"")),t.push(r);const i="url(___PRESERVED_TOKEN_"+(t.length-1)+"___)";o.push(i),s=u+1}else o.push(e.substring(i.index,r.lastIndex)),s=r.lastIndex}return o.push(e.substring(s)),o.join("")}(e,n),e=function(e,t){const r=[];let n,o=0;for(;;){const i=e.indexOf("/*",o);if(!(i>-1))break;if(n=e.indexOf("*/",i+2),!(n>-1)){n=-2;break}t.push(e.slice(i+2,n)),r.push(e.slice(o,i)),r.push("/*___PRESERVE_CANDIDATE_COMMENT_"+(t.length-1)+"___*/"),o=n+2}return r.push(e.slice(n+2)),r.join("")}(e,r),s(Vt),s(Wt);for(let o=0,i=r.length;o2&&">"===e.charAt(t-3)&&(n.push(""),e=e.replace(s,Ot+(n.length-1)+"___"))}e=e.replace(`/*${s}*/`,"")}else n.push("\\"),e=e.replace(s,Ot+(n.length-1)+"___"),o+=1,n.push(""),e=e.replace("___PRESERVE_CANDIDATE_COMMENT_"+o+"___",Ot+(n.length-1)+"___");else t.cuteComments?n.push(i.substring(1).replace(Gt,"\n")):t.uglyComments?n.push(i.substring(1).replace(Yt,"")):n.push(i),e=e.replace(s,Ot+(n.length-1)+"___")}if(t.expandVars){const t={};o=Jt,e=e.replace(o,((e,r)=>(o=Qt,r.replace(o,((e,r,n)=>(r&&n&&(t[r]=n),""))),""))),o=Kt,e=e.replace(o,((e,r)=>t[r]||"none"))}if(e=e.replace(Ft," "),o=Zt,e=e.replace(o,((e,t)=>(n.push("calc("+t.replace(Xt,"").replace(er,"(").replace(tr,")")+")"),Ot+(n.length-1)+"___"))),o=rr,e=e.replace(o,((e,t)=>(n.push(t),"filter:progid:DXImageTransform.Microsoft.Matrix(___PRESERVED_TOKEN_"+(n.length-1)+"___);"))),o=nr,e=(e=(e=(e=(e=e.replace(o,(e=>e.replace(lr,"___PSEUDOCLASSCOLON___")))).replace(or,"$1")).replace(ir,"$1$2")).replace(sr," !important")).replace(ar,":"),o=cr,e=e.replace(o,((e,t,r)=>t+":"+(r=r.replace(ur,((e,t,r)=>(n.push("0"+r),t+Ot+(n.length-1)+"___")))))),o=hr,e=function(e,t){const r=jt;let n,o=0;const i=(e,r)=>{"0"===(e=e.replace(Ht,"")).charAt(0)&&(t.push(e),n[r]=Ot+(t.length-1)+"___")};for(;;){let t=0;n="";let s=e.slice(o).search(r);if(s<0)break;o+=s,s=o;const a=e.length,l=[];for(;o{let o=r.split(dr);return n.push(o.pop()),o.push(Ot+(n.length-1)+"___"),o=o.join(" "),`${t}:${o}`}))).replace(pr,((e,t,r)=>{const o=[];return r.split(",").forEach((e=>{"0%"===(e=e.replace(mr,""))?(n.push("0%"),o.push(Ot+(n.length-1)+"___")):o.push(e)})),t+"("+o.join(",")+")"})),n),e=e.replace(fr,((e,t,r)=>":first-"+t.toLowerCase()+" "+r)),e=t.cuteComments?(e=e.replace(Ar,"___PRESERVED_NEWLINE___/*")).replace(Sr,"*/___PRESERVED_NEWLINE___"):e.replace(Sr,"*/"),o=gr,e=e.replace(o,((e,t,r,n)=>r.toLowerCase()+n+t)),o=yr,e=e.replace(o,((e,t,r,n,o)=>r+n.toLowerCase()+o)),o=br,e=e.replace(o,((e,t)=>"@"+t.toLowerCase())),o=kr,e=(e=(e=e.replace(o,((e,t)=>":"+t.toLowerCase()))).replace(vr,"$2$1")).replace(wr,"$1"),o=xr,e=e.replace(o,((e,t)=>":"+t.toLowerCase()+"(")),o=Er,e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(o,((e,t,r)=>t+r.toLowerCase()))).replace(Tr,"and (")).replace(Cr,"$1not (")).replace(Rr,"or (")).replace(_r,"$1")).replace(Ir,"}")).replace(Lr,"$1$2")).replace(Nr,":0$1")).replace(zr,":0$1"),o=Pr,e=(e=e.replace(o,((e,t,r)=>t.toLowerCase()+":0 0"+r))).replace(Mr,"$1.$2"),o=Or,e=function(e){const t=Bt,r=[];let n,o=0;for(;null!==(n=t.exec(e));)r.push(e.substring(o,n.index)),n[1]?r.push(n[1]+"#"+(n[2]+n[3]+n[4]+n[5]+n[6]+n[7])):n[2].toLowerCase()==n[3].toLowerCase()&&n[4].toLowerCase()==n[5].toLowerCase()&&n[6].toLowerCase()==n[7].toLowerCase()?r.push("#"+(n[3]+n[5]+n[7]).toLowerCase()):r.push("#"+(n[2]+n[3]+n[4]+n[5]+n[6]+n[7]).toLowerCase()),o=t.lastIndex=t.lastIndex-n[8].length;return r.push(e.substring(o)),r.join("")}(e=e.replace(o,((e,t)=>{const r=t.split(",");let n="#";for(let e=0;e255&&(t=255),n+=t.toString(16)}return n}))),e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(jr,"$1red$3")).replace(Vr,"$1navy$3")).replace(Wr,"$1gray$3")).replace($r,"$1olive$3")).replace(Gr,"$1purple$3")).replace(Yr,"$1silver$3")).replace(Jr,"$1teal$3")).replace(Qr,"$1orange$3")).replace(Kr,"$1maroon$3"),o=Ur,e=(e=(e=(e=e.replace(o,((e,t,r)=>t.toLowerCase()+":0"+r))).replace(Dr,"alpha(opacity=")).replace(Fr,"($1:$2___QUERY_FRACTION___$3)")).replace(qr,"/"),t.maxLineLen>0){const r=[];let n=[];for(let o=0,i=e.length;ot.maxLineLen&&(r.push(n.join("")),n=[])}n.length&&r.push(n.join("")),e=r.join("\n")}if(e=(e=e.replace(Br,";")).replace(Xt,""),n.length>1e3)return i;for(let t=n.length-1;t>=0;t--)e=e.replace(Ot+t+"___",n[t],"g");return e=e.replace(Hr,"\n")}var Xr=Object.freeze({__proto__:null,defaultOptions:Ut,processString:Zr}),en=Object.create,tn=Object.defineProperty,rn=Object.getOwnPropertyDescriptor,nn=Object.getOwnPropertyNames,on=Object.getPrototypeOf,sn=Object.prototype.hasOwnProperty,an=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ln=(e,t)=>{for(var r in t)tn(e,r,{get:t[r],enumerable:!0})},cn=an((e=>{var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");e.encode=function(e){if(0<=e&&e{var t=cn();e.encode=function(e){var r,n,o="",i=(n=e)<0?1+(-n<<1):0+(n<<1);do{r=31&i,(i>>>=5)>0&&(r|=32),o+=t.encode(r)}while(i>0);return o},e.decode=function(e,r,n){var o,i,s=e.length,a=0,l=0;do{if(r>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=t.decode(e.charCodeAt(r++))))throw new Error("Invalid base64 digit: "+e.charAt(r-1));o=!!(32&i),a+=(i&=31)<>1;return 1==(1&e)?-t:t}(a),n.rest=r}})),hn=an((e=>{e.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};var t=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function n(e){var r=e.match(t);return r?{scheme:r[1],auth:r[2],host:r[3],port:r[4],path:r[5]}:null}function o(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=n,e.urlGenerate=o;var i,s,a=(i=function(t){var r=t,i=n(t);if(i){if(!i.path)return t;r=i.path}for(var s=e.isAbsolute(r),a=[],l=0,c=0;;){if(l=c,-1===(c=r.indexOf("/",l))){a.push(r.slice(l));break}for(a.push(r.slice(l,c));c=0;c--)"."===(u=a[c])?a.splice(c,1):".."===u?h++:h>0&&(""===u?(a.splice(c+1,h),h=0):(a.splice(c,2),h--));return""===(r=a.join("/"))&&(r=s?"/":"."),i?(i.path=r,o(i)):r},s=[],function(e){for(var t=0;t32&&s.pop(),n});function l(e,t){""===e&&(e="."),""===t&&(t=".");var i=n(t),s=n(e);if(s&&(e=s.path||"/"),i&&!i.scheme)return s&&(i.scheme=s.scheme),o(i);if(i||t.match(r))return t;if(s&&!s.host&&!s.path)return s.host=t,o(s);var l="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=l,o(s)):l}e.normalize=a,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 r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+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 r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))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,r){var n=d(e.source,t.source);return 0!==n||0!==(n=e.originalLine-t.originalLine)||(0!==(n=e.originalColumn-t.originalColumn)||r)||0!==(n=e.generatedColumn-t.generatedColumn)||0!==(n=e.generatedLine-t.generatedLine)?n:d(e.name,t.name)},e.compareByOriginalPositionsNoSource=function(e,t,r){var n;return 0!==(n=e.originalLine-t.originalLine)||(0!==(n=e.originalColumn-t.originalColumn)||r)||0!==(n=e.generatedColumn-t.generatedColumn)||0!==(n=e.generatedLine-t.generatedLine)?n:d(e.name,t.name)},e.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n||(0!==(n=e.generatedColumn-t.generatedColumn)||r)||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.compareByGeneratedPositionsDeflatedNoLine=function(e,t,r){var n=e.generatedColumn-t.generatedColumn;return 0!==n||r||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.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||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.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},e.computeSourceURL=function(e,t,r){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),r){var i=n(r);if(!i)throw new Error("sourceMapURL could not be parsed");if(i.path){var s=i.path.lastIndexOf("/");s>=0&&(i.path=i.path.substring(0,s+1))}t=l(o(i),t)}return a(t)}})),dn=an((e=>{var t=hn(),r=Object.prototype.hasOwnProperty,n=typeof Map<"u";function o(){this._array=[],this._set=n?new Map:Object.create(null)}o.fromArray=function(e,t){for(var r=new o,n=0,i=e.length;n=0)return o}else{var i=t.toSetString(e);if(r.call(this._set,i))return this._set[i]}throw new Error('"'+e+'" is not in the set.')},o.prototype.at=function(e){if(e>=0&&e{var t=hn();function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}r.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},r.prototype.add=function(e){!function(e,r){var n=e.generatedLine,o=r.generatedLine,i=e.generatedColumn,s=r.generatedColumn;return o>n||o==n&&s>=i||t.compareByGeneratedPositionsInflated(e,r)<=0}(this._last,e)?(this._sorted=!1,this._array.push(e)):(this._last=e,this._array.push(e))},r.prototype.toArray=function(){return this._sorted||(this._array.sort(t.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},e.MappingList=r})),mn=an((e=>{var t=un(),r=hn(),n=dn().ArraySet,o=pn().MappingList;function i(e){e||(e={}),this._file=r.getArg(e,"file",null),this._sourceRoot=r.getArg(e,"sourceRoot",null),this._skipValidation=r.getArg(e,"skipValidation",!1),this._sources=new n,this._names=new n,this._mappings=new o,this._sourcesContents=null}i.prototype._version=3,i.fromSourceMap=function(e){var t=e.sourceRoot,n=new i({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var o={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(o.source=e.source,null!=t&&(o.source=r.relative(t,o.source)),o.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(o.name=e.name)),n.addMapping(o)})),e.sources.forEach((function(o){var i=o;null!==t&&(i=r.relative(t,o)),n._sources.has(i)||n._sources.add(i);var s=e.sourceContentFor(o);null!=s&&n.setSourceContent(o,s)})),n},i.prototype.addMapping=function(e){var t=r.getArg(e,"generated"),n=r.getArg(e,"original",null),o=r.getArg(e,"source",null),i=r.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,o,i),null!=o&&(o=String(o),this._sources.has(o)||this._sources.add(o)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:o,name:i})},i.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=r.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[r.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[r.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},i.prototype.applySourceMap=function(e,t,o){var i=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.');i=e.file}var s=this._sourceRoot;null!=s&&(i=r.relative(s,i));var a=new n,l=new n;this._mappings.unsortedForEach((function(t){if(t.source===i&&null!=t.originalLine){var n=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=n.source&&(t.source=n.source,null!=o&&(t.source=r.join(o,t.source)),null!=s&&(t.source=r.relative(s,t.source)),t.originalLine=n.line,t.originalColumn=n.column,null!=n.name&&(t.name=n.name))}var c=t.source;null!=c&&!a.has(c)&&a.add(c);var u=t.name;null!=u&&!l.has(u)&&l.add(u)}),this),this._sources=a,this._names=l,e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&(null!=o&&(t=r.join(o,t)),null!=s&&(t=r.relative(s,t)),this.setSourceContent(t,n))}),this)},i.prototype._validateMapping=function(e,t,r,n){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||r||n){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&&r)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))}},i.prototype._serializeMappings=function(){for(var e,n,o,i,s=0,a=1,l=0,c=0,u=0,h=0,d="",p=this._mappings.toArray(),m=0,f=p.length;m0){if(!r.compareByGeneratedPositionsInflated(n,p[m-1]))continue;e+=","}e+=t.encode(n.generatedColumn-s),s=n.generatedColumn,null!=n.source&&(i=this._sources.indexOf(n.source),e+=t.encode(i-h),h=i,e+=t.encode(n.originalLine-1-c),c=n.originalLine-1,e+=t.encode(n.originalColumn-l),l=n.originalColumn,null!=n.name&&(o=this._names.indexOf(n.name),e+=t.encode(o-u),u=o)),d+=e}return d},i.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=r.relative(t,e));var n=r.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},i.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},i.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=i})),fn={};ln(fn,{AtKeyword:()=>kn,BadString:()=>xn,BadUrl:()=>An,CDC:()=>Ln,CDO:()=>In,Colon:()=>Nn,Comma:()=>Pn,Comment:()=>Bn,Delim:()=>Sn,Dimension:()=>Rn,EOF:()=>gn,Function:()=>bn,Hash:()=>vn,Ident:()=>yn,LeftCurlyBracket:()=>Fn,LeftParenthesis:()=>Un,LeftSquareBracket:()=>Mn,Number:()=>Tn,Percentage:()=>Cn,RightCurlyBracket:()=>qn,RightParenthesis:()=>Dn,RightSquareBracket:()=>On,Semicolon:()=>zn,String:()=>wn,Url:()=>En,WhiteSpace:()=>_n});var gn=0,yn=1,bn=2,kn=3,vn=4,wn=5,xn=6,En=7,An=8,Sn=9,Tn=10,Cn=11,Rn=12,_n=13,In=14,Ln=15,Nn=16,zn=17,Pn=18,Mn=19,On=20,Un=21,Dn=22,Fn=23,qn=24,Bn=25;function jn(e){return e>=48&&e<=57}function Hn(e){return jn(e)||e>=65&&e<=70||e>=97&&e<=102}function Vn(e){return e>=65&&e<=90}function Wn(e){return function(e){return Vn(e)||function(e){return e>=97&&e<=122}(e)}(e)||function(e){return e>=128}(e)||95===e}function $n(e){return Wn(e)||jn(e)||45===e}function Gn(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}function Yn(e){return 10===e||13===e||12===e}function Jn(e){return Yn(e)||32===e||9===e}function Qn(e,t){return!(92!==e||Yn(t)||0===t)}function Kn(e,t,r){return 45===e?Wn(t)||45===t||Qn(t,r):!!Wn(e)||92===e&&Qn(e,t)}function Zn(e,t,r){return 43===e||45===e?jn(t)?2:46===t&&jn(r)?3:0:46===e?jn(t)?2:0:jn(e)?1:0}function Xn(e){return 65279===e||65534===e?1:0}var eo=new Array(128),to=130;for(let e=0;ee.length)return!1;for(let o=t;o=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)}var fo=["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"];function go(e=null,t){return null===e||e.length0?Xn(t.charCodeAt(0)):0,o=go(e.lines,r),i=go(e.columns,r),s=e.startLine,a=e.startColumn;for(let e=n;e{})){let r=(e=String(e||"")).length,n=go(this.offsetAndType,e.length+1),o=go(this.balance,e.length+1),i=0,s=0,a=0,l=-1;for(this.offsetAndType=null,this.balance=null,t(e,((e,t,c)=>{switch(e){default:o[i]=r;break;case s:{let e=a&bo;for(a=o[e],s=a>>ko,o[i]=e,o[e++]=i;e>ko:0}lookupOffset(e){return(e+=this.tokenIndex)0?e>ko,this.tokenEnd=t&bo):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e>ko,this.tokenEnd=e&bo):(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 r,n,o=e;e:for(;o0?this.offsetAndType[o-1]&bo:this.firstCharOffset,t(this.source.charCodeAt(n))){case 1:break e;case 2:o++;break e;default:this.balance[r]===o&&(o=r)}this.skip(o-this.tokenIndex)}forEachToken(e){for(let t=0,r=this.firstCharOffset;t>ko,n,i,t)}}dump(){let e=new Array(this.tokenCount);return this.forEachToken(((t,r,n,o)=>{e[o]={idx:o,type:fo[t],chunk:this.source.substring(r,n),balance:this.balance[o]}})),e}};function xo(e,t){function r(t){return t=e.length?void(cString(e+r+1).padStart(l)+" |"+t)).join("\n")}let i=e.split(/\r\n?|\n|\f/),s=Math.max(1,t-n)-1,a=Math.min(t+n,i.length+1),l=Math.max(4,String(a).length)+1,c=0;(r+=(To.length-1)*(i[t-1].substr(0,r-1).match(/\t/g)||[]).length)>100&&(c=r-60+3,r=58);for(let e=s;e<=a;e++)e>=0&&e0&&i[e].length>c?"…":"")+i[e].substr(c,98)+(i[e].length>c+100-1?"…":""));return[o(s,t),new Array(r+l+2).join("-")+"^",o(t,a)].filter(Boolean).join("\n")}function Ro(e,t,r,n,o){return Object.assign(So("SyntaxError",e),{source:t,offset:r,line:n,column:o,sourceFragment:e=>Co({source:t,line:n,column:o},isNaN(e)?0:e),get formattedMessage(){return`Parse error: ${e}\n`+Co({source:t,line:n,column:o},2)}})}function _o(e){let t=this.createList(),r=!1,n={recognizer:e};for(;!this.eof;){switch(this.tokenType){case 25:this.next();continue;case 13:r=!0,this.next();continue}let o=e.getNode.call(this,n);if(void 0===o)break;r&&(e.onWhiteSpace&&e.onWhiteSpace.call(this,o,t,n),r=!1),t.push(o)}return r&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,n),t}var Io=()=>{};function Lo(e){return function(){return this[e]()}}function No(e){let t=Object.create(null);for(let r in e){let n=e[r],o=n.parse||n;o&&(t[r]=o)}return t}function zo(e){let t="",r="",n=!1,o=Io,i=!1,s=new class{constructor(){this.lines=null,this.columns=null,this.computed=!1}setSource(e,t=0,r=1,n=1){this.source=e,this.startOffset=t,this.startLine=r,this.startColumn=n,this.computed=!1}getLocation(e,t){return this.computed||yo(this),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,t,r){return this.computed||yo(this),{source:r,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]}}}},a=Object.assign(new wo,function(e){let t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:No(e.atrule),pseudo:No(e.pseudo),node:No(e.node)};for(let r in e.parseContext)switch(typeof e.parseContext[r]){case"function":t.context[r]=e.parseContext[r];break;case"string":t.context[r]=Lo(e.parseContext[r])}return{config:t,...t,...t.node}}(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:_o,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket:e=>123===e?1:0,consumeUntilLeftCurlyBracketOrSemicolon:e=>123===e||59===e?1:0,consumeUntilExclamationMarkOrSemicolon:e=>33===e||59===e?1:0,consumeUntilSemicolonIncluded:e=>59===e?2:0,createList:()=>new Ao,createSingleNodeList:e=>(new Ao).appendData(e),getFirstListNode:e=>e&&e.first,getLastListNode:e=>e&&e.last,parseWithFallback(e,t){let r=this.tokenIndex;try{return e.call(this)}catch(e){if(i)throw e;let n=t.call(this,r);return i=!0,o(e,n),i=!1,n}},lookupNonWSType(e){let t;do{if(t=this.lookupType(e++),13!==t)return t}while(0!==t);return 0},charCodeAt:e=>e>=0&&et.substring(e,r),substrToCursor(e){return this.source.substring(e,this.tokenStart)},cmpChar:(e,r)=>io(t,e,r),cmpStr:(e,r,n)=>so(t,e,r,n),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 r=t.substring(this.tokenStart,ho(t,this.tokenStart));return this.eat(e),r},eat(e){if(this.tokenType!==e){let t=fo[e].slice(0,-6).replace(/-/g," ").replace(/^./,(e=>e.toUpperCase())),r=`${/[[\](){}]/.test(t)?`"${t}"`:t} is expected`,n=this.tokenStart;switch(e){case 1:2===this.tokenType||7===this.tokenType?(n=this.tokenEnd-1,r="Identifier is expected but function found"):r="Identifier is expected";break;case 4:this.isDelim(35)&&(this.next(),n++,r="Name is expected");break;case 11:10===this.tokenType&&(n=this.tokenEnd,r="Percent sign is expected")}this.error(r,n)}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)=>n?s.getLocationRange(e,t,r):null,getLocationFromList(e){if(n){let t=this.getFirstListNode(e),n=this.getLastListNode(e);return s.getLocationRange(null!==t?t.loc.start.offset-s.startOffset:this.tokenStart,null!==n?n.loc.end.offset-s.startOffset:this.tokenStart,r)}return null},error(e,r){let n=typeof r<"u"&&r=0&&Jn(e.charCodeAt(t));t--);return t+1}(t,t.length-1)):s.getLocation(this.tokenStart);throw new Ro(e||"Unexpected input",t,n.offset,n.line,n.column)}});return Object.assign((function(e,l){t=e,l=l||{},a.setSource(t,xo),s.setSource(t,l.offset,l.line,l.column),r=l.filename||"",n=Boolean(l.positions),o="function"==typeof l.onParseError?l.onParseError:Io,i=!1,a.parseAtrulePrelude=!("parseAtrulePrelude"in l)||Boolean(l.parseAtrulePrelude),a.parseRulePrelude=!("parseRulePrelude"in l)||Boolean(l.parseRulePrelude),a.parseValue=!("parseValue"in l)||Boolean(l.parseValue),a.parseCustomProperty="parseCustomProperty"in l&&Boolean(l.parseCustomProperty);let{context:c="default",onComment:u}=l;if(!(c in a.context))throw new Error("Unknown context `"+c+"`");"function"==typeof u&&a.forEachToken(((e,r,n)=>{if(25===e){let e=a.getLocation(r,n),o=so(t,n-2,n,"*/")?t.slice(r+2,n-2):t.slice(r+2,n);u(o,e)}}));let h=a.context[c].call(a,l);return a.eof||a.error(),h}),{SyntaxError:Ro,config:a.config})}var Po,Mo,Oo=(Po=mn(),Mo=1,((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of nn(t))!sn.call(e,o)&&(r||"default"!==o)&&tn(e,o,{get:()=>t[o],enumerable:!(n=rn(t,o))||n.enumerable});return e})((e=>tn(e,"__esModule",{value:!0}))(tn(null!=Po?en(on(Po)):{},"default",!Mo&&Po&&Po.__esModule?{get:()=>Po.default,enumerable:!0}:{value:Po,enumerable:!0})),Po)),Uo=new Set(["Atrule","Selector","Declaration"]);var Do={};ln(Do,{safe:()=>Vo,spec:()=>Ho});var Fo=(e,t)=>{if(9===e&&(e=t),"string"==typeof e){let t=e.charCodeAt(0);return t>127?32768:t<<8}return e},qo=[[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],["/","*"]],Bo=qo.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 jo(e){let t=new Set(e.map((([e,t])=>Fo(e)<<16|Fo(t))));return function(e,r,n){let o=Fo(r,n),i=n.charCodeAt(0);return(45===i&&1!==r&&2!==r&&15!==r||43===i?t.has(e<<16|i<<8):t.has(e<<16|o))&&this.emit(" ",13,!0),o}}var Ho=jo(qo),Vo=jo(Bo);function Wo(e,t){if("function"!=typeof t)e.children.forEach(this.node,this);else{let r=null;e.children.forEach((e=>{null!==r&&t.call(this,r),this.node(e),r=e}))}}function $o(e){xo(e,((t,r,n)=>{this.token(t,e.slice(r,n))}))}function Go(e){let t=new Map;for(let r in e.node){let n=e.node[r];"function"==typeof(n.generate||n)&&t.set(r,n.generate||n)}return function(e,r){let n="",o=0,i={node(e){if(!t.has(e.type))throw new Error("Unknown node type: "+e.type);t.get(e.type).call(s,e)},tokenBefore:Vo,token(e,t){o=this.tokenBefore(o,e,t),this.emit(t,e,!1),9===e&&92===t.charCodeAt(0)&&this.emit("\n",13,!0)},emit(e){n+=e},result:()=>n};r&&("function"==typeof r.decorator&&(i=r.decorator(i)),r.sourceMap&&(i=function(e){let t=new Oo.SourceMapGenerator,r={line:1,column:0},n={line:0,column:0},o={line:1,column:0},i={generated:o},s=1,a=0,l=!1,c=e.node;e.node=function(e){if(e.loc&&e.loc.start&&Uo.has(e.type)){let c=e.loc.start.line,u=e.loc.start.column-1;(n.line!==c||n.column!==u)&&(n.line=c,n.column=u,r.line=s,r.column=a,l&&(l=!1,(r.line!==o.line||r.column!==o.column)&&t.addMapping(i)),l=!0,t.addMapping({source:e.loc.source,original:n,generated:r}))}c.call(this,e),l&&Uo.has(e.type)&&(o.line=s,o.column=a)};let u=e.emit;e.emit=function(e,t,r){for(let t=0;ti.node(e),children:Wo,token:(e,t)=>i.token(e,t),tokenize:$o};return i.node(e),i.result()}}var{hasOwnProperty:Yo}=Object.prototype,Jo=function(){};function Qo(e){return"function"==typeof e?e:Jo}function Ko(e,t){return function(r,n,o){r.type===t&&e.call(this,r,n,o)}}function Zo(e,t){let r=t.structure,n=[];for(let e in r){if(!1===Yo.call(r,e))continue;let t=r[e],o={name:e,type:!1,nullable:!1};Array.isArray(t)||(t=[t]);for(let e of t)null===e?o.nullable=!0:"string"==typeof e?o.type="node":Array.isArray(e)&&(o.type="list");o.type&&n.push(o)}return n.length?{context:t.walkContext,fields:n}:null}function Xo(e,t){let r=e.fields.slice(),n=e.context,o="string"==typeof n;return t&&r.reverse(),function(e,i,s,a){let l;o&&(l=i[n],i[n]=e);for(let n of r){let r=e[n.name];if(!n.nullable||r)if("list"===n.type){if(t?r.reduceRight(a,!1):r.reduce(a,!1))return!0}else if(s(r))return!0}o&&(i[n]=l)}}function ei({StyleSheet:e,Atrule:t,Rule:r,Block:n,DeclarationList:o}){return{Atrule:{StyleSheet:e,Atrule:t,Rule:r,Block:n},Rule:{StyleSheet:e,Atrule:t,Rule:r,Block:n},Declaration:{StyleSheet:e,Atrule:t,Rule:r,Block:n,DeclarationList:o}}}function ti(e){let t=function(e){let t={};for(let r in e.node)if(Yo.call(e.node,r)){let n=e.node[r];if(!n.structure)throw new Error("Missed `structure` field in `"+r+"` node type definition");t[r]=Zo(0,n)}return t}(e),r={},n={},o=Symbol("break-walk"),i=Symbol("skip-node");for(let e in t)Yo.call(t,e)&&null!==t[e]&&(r[e]=Xo(t[e],!1),n[e]=Xo(t[e],!0));let s=ei(r),a=ei(n),l=function(e,l){function c(e,t,r){let n=u.call(m,e,t,r);return n===o||n!==i&&!!(d.hasOwnProperty(e.type)&&d[e.type](e,m,c,p)||h.call(m,e,t,r)===o)}let u=Jo,h=Jo,d=r,p=(e,t,r,n)=>e||c(t,r,n),m={break:o,skip:i,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=Qo(l.enter),h=Qo(l.leave),l.reverse&&(d=n),l.visit)){if(s.hasOwnProperty(l.visit))d=l.reverse?a[l.visit]:s[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=Ko(u,l.visit),h=Ko(h,l.visit)}if(u===Jo&&h===Jo)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");c(e)};return l.break=o,l.skip=i,l.find=function(e,t){let r=null;return l(e,(function(e,n,i){if(t.call(this,e,n,i))return r=e,o})),r},l.findLast=function(e,t){let r=null;return l(e,{reverse:!0,enter:function(e,n,i){if(t.call(this,e,n,i))return r=e,o}}),r},l.findAll=function(e,t){let r=[];return l(e,(function(e,n,o){t.call(this,e,n,o)&&r.push(e)})),r},l}function ri(e){return e}function ni(e,t,r,n){let o;switch(e.type){case"Group":o=function(e,t,r,n){let o=" "===e.combinator||n?e.combinator:" "+e.combinator+" ",i=e.terms.map((e=>ni(e,t,r,n))).join(o);return e.explicit||r?(n||","===i[0]?"[":"[ ")+i+(n?"]":" ]"):i}(e,t,r,n)+(e.disallowEmpty?"!":"");break;case"Multiplier":return ni(e.term,t,r,n)+t(function(e){let{min:t,max:r,comma:n}=e;return 0===t&&0===r?"*":0===t&&1===r?"?":1===t&&0===r?n?"#":"+":1===t&&1===r?"":(n?"#":"")+(t===r?"{"+t+"}":"{"+t+","+(0!==r?r:"")+"}")}(e),e);case"Type":o="<"+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":o="<'"+e.name+"'>";break;case"Keyword":o=e.name;break;case"AtKeyword":o="@"+e.name;break;case"Function":o=e.name+"(";break;case"String":case"Token":o=e.value;break;case"Comma":o=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(o,e)}function oi(e,t){let r=ri,n=!1,o=!1;return"function"==typeof t?r=t:t&&(n=Boolean(t.forceBraces),o=Boolean(t.compact),"function"==typeof t.decorate&&(r=t.decorate)),ni(e,r,n,o)}var ii={offset:0,line:1,column:1};function si(e,t){let r=e&&e.loc&&e.loc[t];return r?"line"in r?ai(r):r:null}function ai({offset:e,line:t,column:r},n){let o={offset:e,line:t,column:r};if(n){let e=n.split(/\n|\r\n?|\f/);o.offset+=n.length,o.line+=e.length-1,o.column=1===e.length?o.column+n.length:e.pop().length+1}return o}var li=function(e,t){let r=So("SyntaxReferenceError",e+(t?" `"+t+"`":""));return r.reference=t,r},ci=function(e,t,r,n){let o=So("SyntaxMatchError",e),{css:i,mismatchOffset:s,mismatchLength:a,start:l,end:c}=function(e,t){let r,n,o=e.tokens,i=e.longestMatch,s=i1?(r=si(a||t,"end")||ai(ii,h),n=ai(r)):(r=si(a,"start")||ai(si(t,"start")||ii,h.slice(0,l)),n=si(a,"end")||ai(r,h.substr(l,c))),{css:h,mismatchOffset:l,mismatchLength:c,start:r,end:n}}(n,r);return o.rawMessage=e,o.syntax=t?oi(t):"",o.css=i,o.mismatchOffset=s,o.mismatchLength=a,o.message=e+"\n syntax: "+o.syntax+"\n value: "+(i||"")+"\n --------"+new Array(o.mismatchOffset+1).join("-")+"^",Object.assign(o,l),o.loc={source:r&&r.loc&&r.loc.source||"",start:l,end:c},o},ui=new Map,hi=new Map,di=function(e){if(ui.has(e))return ui.get(e);let t=e.toLowerCase(),r=ui.get(t);if(void 0===r){let e=fi(t,0),n=e?"":gi(t,0);r=Object.freeze({basename:t.substr(n.length),name:t,prefix:n,vendor:n,custom:e})}return ui.set(e,r),r},pi=function(e){if(hi.has(e))return hi.get(e);let t=e,r=e[0];"/"===r?r="/"===e[1]?"//":"/":"_"!==r&&"*"!==r&&"$"!==r&&"#"!==r&&"+"!==r&&"&"!==r&&(r="");let n=fi(t,r.length);if(!n&&(t=t.toLowerCase(),hi.has(t))){let r=hi.get(t);return hi.set(e,r),r}let o=n?"":gi(t,r.length),i=t.substr(0,r.length+o.length),s=Object.freeze({basename:t.substr(i.length),name:t.substr(r.length),hack:r,vendor:o,prefix:i,custom:n});return hi.set(e,s),s},mi=gi;function fi(e,t){return t=t||0,e.length-t>=2&&45===e.charCodeAt(t)&&45===e.charCodeAt(t+1)}function gi(e,t){if(t=t||0,e.length-t>=3&&45===e.charCodeAt(t)&&45!==e.charCodeAt(t+1)){let r=e.indexOf("-",t+2);if(-1!==r)return e.substring(t,r+1)}return""}var yi=45,bi=!0;function ki(e,t){return null!==e&&9===e.type&&e.value.charCodeAt(0)===t}function vi(e,t,r){for(;null!==e&&(13===e.type||25===e.type);)e=r(++t);return t}function wi(e,t,r,n){if(!e)return 0;let o=e.value.charCodeAt(t);if(43===o||o===yi){if(r)return 0;t++}for(;t6)return 0}return n}function Si(e,t,r){if(!e)return 0;for(;Ei(r(t),63);){if(++e>6)return 0;t++}return t}var Ti=["unset","initial","inherit"],Ci=["calc(","-moz-calc(","-webkit-calc("],Ri=new Map([[2,22],[21,22],[19,20],[23,24]]);function _i(e,t){return te.max)return!0}return!1}function Pi(e,t){let r=0,n=[],o=0;e:do{switch(e.type){case 24:case 22:case 20:if(e.type!==r)break e;if(r=n.pop(),0===n.length){o++;break e}break;case 2:case 21:case 19:case 23:n.push(r),r=Ri.get(e.type)}o++}while(e=t(o));return o}function Mi(e){return function(t,r,n){return null===t?0:2===t.type&&Li(t.value,Ci)?Pi(t,r):e(t,r,n)}}function Oi(e){return function(t){return null===t||t.type!==e?0:1}}function Ui(e){return e&&(e=new Set(e)),function(t,r,n){if(null===t||12!==t.type)return 0;let o=ho(t.value,0);if(null!==e){let r=t.value.indexOf("\\",o),n=-1!==r&&Ni(t.value,r)?t.value.substring(o,r):t.value.substr(o);if(!1===e.has(n.toLowerCase()))return 0}return zi(n,t.value,o)?0:1}}function Di(e){return"function"!=typeof e&&(e=function(){return 0}),function(t,r,n){return null!==t&&10===t.type&&0===Number(t.value)?1:e(t,r,n)}}var Fi={"ident-token":Oi(1),"function-token":Oi(2),"at-keyword-token":Oi(3),"hash-token":Oi(4),"string-token":Oi(5),"bad-string-token":Oi(6),"url-token":Oi(7),"bad-url-token":Oi(8),"delim-token":Oi(9),"number-token":Oi(10),"percentage-token":Oi(11),"dimension-token":Oi(12),"whitespace-token":Oi(13),"CDO-token":Oi(14),"CDC-token":Oi(15),"colon-token":Oi(16),"semicolon-token":Oi(17),"comma-token":Oi(18),"[-token":Oi(19),"]-token":Oi(20),"(-token":Oi(21),")-token":Oi(22),"{-token":Oi(23),"}-token":Oi(24),string:Oi(5),ident:Oi(1),"custom-ident":function(e){if(null===e||1!==e.type)return 0;let t=e.value.toLowerCase();return Li(t,Ti)||Ii(t,"default")?0:1},"custom-property-name":function(e){return null===e||1!==e.type||45!==_i(e.value,0)||45!==_i(e.value,1)?0:1},"hex-color":function(e){if(null===e||4!==e.type)return 0;let t=e.value.length;if(4!==t&&5!==t&&7!==t&&9!==t)return 0;for(let r=1;rBi,generate:()=>oi,parse:()=>rs,walk:()=>is});var ji=123,Hi=new Uint8Array(128).map(((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0)),Vi={" ":1,"&&":2,"||":3,"|":4};function Wi(e){return e.substringToPos(e.findWsEnd(e.pos))}function $i(e){let t=e.pos;for(;t=128||0===Hi[r])break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function Gi(e){let t=e.pos;for(;t57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function Yi(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 Ji(e){let t=null,r=null;return e.eat(ji),t=Gi(e),44===e.charCode()?(e.pos++,125!==e.charCode()&&(r=Gi(e))):r=t,e.eat(125),{min:Number(t),max:r?Number(r):0}}function Qi(e,t){let r=function(e){let t=null,r=!1;switch(e.charCode()){case 42:e.pos++,t={min:0,max:0};break;case 43:e.pos++,t={min:1,max:0};break;case 63:e.pos++,t={min:0,max:1};break;case 35:e.pos++,r=!0,t=e.charCode()===ji?Ji(e):{min:1,max:0};break;case ji:t=Ji(e);break;default:return null}return{type:"Multiplier",comma:r,min:t.min,max:t.max,term:null}}(e);return null!==r?(r.term=t,r):t}function Ki(e){let t=e.peek();return""===t?null:{type:"Token",value:t}}function Zi(e){let t,r=null;return e.eat(60),t=$i(e),40===e.charCode()&&41===e.nextCharCode()&&(e.pos+=2,t+="()"),91===e.charCodeAt(e.findWsEnd(e.pos))&&(Wi(e),r=function(e){let t=null,r=null,n=1;return e.eat(91),45===e.charCode()&&(e.peek(),n=-1),-1==n&&8734===e.charCode()?e.peek():t=n*Number(Gi(e)),Wi(e),e.eat(44),Wi(e),8734===e.charCode()?e.peek():(n=1,45===e.charCode()&&(e.peek(),n=-1),r=n*Number(Gi(e))),e.eat(93),null===t&&null===r?null:{type:"Range",min:t,max:r}}(e)),e.eat(62),Qi(e,{type:"Type",name:t,opts:r})}function Xi(e,t){function r(e,t){return{type:"Group",terms:e,combinator:t,disallowEmpty:!1,explicit:!1}}let n;for(t=Object.keys(t).sort(((e,t)=>Vi[e]-Vi[t]));t.length>0;){n=t.shift();let o=0,i=0;for(;o1&&(e.splice(i,o-i,r(e.slice(i,o),n)),o=i+1),i=-1))}-1!==i&&t.length&&e.splice(i,o-i,r(e.slice(i,o),n))}return n}function es(e){let t,r=[],n={},o=null,i=e.pos;for(;t=ts(e);)"Spaces"!==t.type&&("Combinator"===t.type?((null===o||"Combinator"===o.type)&&(e.pos=i,e.error("Unexpected combinator")),n[t.value]=!0):null!==o&&"Combinator"!==o.type&&(n[" "]=!0,r.push({type:"Combinator",value:" "})),r.push(t),o=t,i=e.pos);return null!==o&&"Combinator"===o.type&&(e.pos-=i,e.error("Unexpected combinator")),{type:"Group",terms:r,combinator:Xi(r,n)||" ",disallowEmpty:!1,explicit:!1}}function ts(e){let t=e.charCode();if(t<128&&1===Hi[t])return function(e){let t=$i(e);return 40===e.charCode()?(e.pos++,{type:"Function",name:t}):Qi(e,{type:"Keyword",name:t})}(e);switch(t){case 93:break;case 91:return Qi(e,function(e){let t;return e.eat(91),t=es(e),e.eat(93),t.explicit=!0,33===e.charCode()&&(e.pos++,t.disallowEmpty=!0),t}(e));case 60:return 39===e.nextCharCode()?function(e){let t;return e.eat(60),e.eat(39),t=$i(e),e.eat(39),e.eat(62),Qi(e,{type:"Property",name:t})}(e):Zi(e);case 124:return{type:"Combinator",value:e.substringToPos(e.pos+(124===e.nextCharCode()?2:1))};case 38:return e.pos++,e.eat(38),{type:"Combinator",value:"&&"};case 44:return e.pos++,{type:"Comma"};case 39:return Qi(e,{type:"String",value:Yi(e)});case 32:case 9:case 10:case 13:case 12:return{type:"Spaces",value:Wi(e)};case 64:return t=e.nextCharCode(),t<128&&1===Hi[t]?(e.pos++,{type:"AtKeyword",name:$i(e)}):Ki(e);case 42:case 43:case 63:case 35:case 33:break;case ji:if(t=e.nextCharCode(),t<48||t>57)return Ki(e);break;default:return Ki(e)}}function rs(e){let t=new class{constructor(e){this.str=e,this.pos=0}charCodeAt(e){return et}}};function as(e,t){return"string"==typeof e?function(e){let t=[];return xo(e,((r,n,o)=>t.push({type:r,value:e.slice(n,o),node:null}))),t}(e):t.generate(e,ss)}var ls={type:"Match"},cs={type:"Mismatch"},us={type:"DisallowEmpty"};function hs(e,t,r){return t===ls&&r===cs||e===ls&&t===ls&&r===ls?e:("If"===e.type&&e.else===cs&&t===ls&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:r})}function ds(e){return e.length>2&&40===e.charCodeAt(e.length-2)&&41===e.charCodeAt(e.length-1)}function ps(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&&ds(e.name)}function ms(e,t,r){switch(e){case" ":{let e=ls;for(let r=t.length-1;r>=0;r--){e=hs(t[r],e,cs)}return e}case"|":{let e=cs,r=null;for(let n=t.length-1;n>=0;n--){let o=t[n];if(ps(o)&&(null===r&&n>0&&ps(t[n-1])&&(r=Object.create(null),e=hs({type:"Enum",map:r},ls,e)),null!==r)){let e=(ds(o.name)?o.name.slice(0,-1):o.name).toLowerCase();if(!(e in r)){r[e]=o;continue}}r=null,e=hs(o,ls,e)}return e}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let r=cs;for(let n=t.length-1;n>=0;n--){let o,i=t[n];o=t.length>1?ms(e,t.filter((function(e){return e!==i})),!1):ls,r=hs(i,o,r)}return r}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let n=r?ls:cs;for(let r=t.length-1;r>=0;r--){let o,i=t[r];o=t.length>1?ms(e,t.filter((function(e){return e!==i})),!0):ls,n=hs(i,o,n)}return n}}}function fs(e){if("function"==typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=ms(e.combinator,e.terms.map(fs),!1);return e.disallowEmpty&&(t=hs(t,us,cs)),t}case"Multiplier":return function(e){let t=ls,r=fs(e.term);if(0===e.max)r=hs(r,us,cs),t=hs(r,null,cs),t.then=hs(ls,ls,t),e.comma&&(t.then.else=hs({type:"Comma",syntax:e},t,cs));else for(let n=e.min||1;n<=e.max;n++)e.comma&&t!==ls&&(t=hs({type:"Comma",syntax:e},t,cs)),t=hs(r,hs(ls,ls,t),cs);if(0===e.min)t=hs(ls,ls,t);else for(let n=0;n=65&&o<=90&&(o|=32),o!==n)return!1}return!0}function vs(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 ws(e){return null===e||(22===e.type||20===e.type||24===e.type||9===e.type)}function xs(e,t,r){let n=function(e,t,r){function n(){do{y++,g=yb&&(b=y)}function c(){k=2===k.type?k.prev:{type:3,syntax:u.syntax,token:k.token,prev:k},u=u.prev}let u=null,h=null,d=null,p=null,m=0,f=null,g=null,y=-1,b=0,k={type:0,syntax:null,token:null,prev:null};for(n();null===f&&++m<15e3;)switch(t.type){case"Match":if(null===h){if(null!==g&&(y!==e.length-1||"\\0"!==g.value&&"\\9"!==g.value)){t=cs;break}f=bs;break}if((t=h.nextState)===us){if(h.matchStack===k){t=cs;break}t=ls}for(;h.syntaxStack!==u;)c();h=h.prev;break;case"Mismatch":if(null!==p&&!1!==p)(null===d||y>d.tokenIndex)&&(d=p,p=!1);else if(null===d){f="Mismatch";break}t=d.nextState,h=d.thenStack,u=d.syntaxStack,k=d.matchStack,y=d.tokenIndex,g=yy){for(;y":"<'"+t.name+"'>"));if(!1!==p&&null!==g&&"Type"===t.type&&("custom-ident"===t.name&&1===g.type||"length"===t.name&&"0"===g.value)){null===p&&(p=i(t,d)),t=cs;break}u={syntax:t.syntax,opts:t.syntax.opts||null!==u&&u.opts||null,prev:u},k={type:2,syntax:t.syntax,token:k.token,prev:k},t=n.match;break}case"Keyword":{let e=t.name;if(null!==g){let r=g.value;if(-1!==r.indexOf("\\")&&(r=r.replace(/\\[09].*$/,"")),ks(r,e)){l(),t=ls;break}}t=cs;break}case"AtKeyword":case"Function":if(null!==g&&ks(g.value,t.name)){l(),t=ls;break}t=cs;break;case"Token":if(null!==g&&g.value===t.value){l(),t=ls;break}t=cs;break;case"Comma":null!==g&&18===g.type?vs(k.token)?t=cs:(l(),t=ws(g)?cs:ls):t=vs(k.token)||ws(g)?ls:cs;break;case"String":let n="",m=y;for(;m"Type"===e.type&&e.name===t))}function Ts(e,t){return Rs(this,e,(e=>"Property"===e.type&&e.name===t))}function Cs(e){return Rs(this,e,(e=>"Keyword"===e.type))}function Rs(e,t,r){let n=As.call(e,t);return null!==n&&n.some(r)}function _s(e){return"node"in e?e.node:_s(e.match[0])}function Is(e){return"node"in e?e.node:Is(e.match[e.match.length-1])}function Ls(e,t,r,n,o){let i=[];return null!==r.matched&&function r(s){if(null!==s.syntax&&s.syntax.type===n&&s.syntax.name===o){let r=_s(s),n=Is(s);e.syntax.walk(t,(function(e,t,o){if(e===r){let e=new Ao;do{if(e.appendData(t.data),t.data===n)break;t=t.next}while(null!==t);i.push({parent:o,nodes:e})}}))}Array.isArray(s.match)&&s.match.forEach(r)}(r.matched),i}ln(Es,{getTrace:()=>As,isKeyword:()=>Cs,isProperty:()=>Ts,isType:()=>Ss});var{hasOwnProperty:Ns}=Object.prototype;function zs(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}function Ps(e){return Boolean(e)&&zs(e.offset)&&zs(e.line)&&zs(e.column)}function Ms(e,t){return function(r,n){if(!r||r.constructor!==Object)return n(r,"Type of node should be an Object");for(let o in r){let i=!0;if(!1!==Ns.call(r,o)){if("type"===o)r.type!==e&&n(r,"Wrong node type `"+r.type+"`, expected `"+e+"`");else if("loc"===o){if(null===r.loc)continue;if(r.loc&&r.loc.constructor===Object)if("string"!=typeof r.loc.source)o+=".source";else if(Ps(r.loc.start)){if(Ps(r.loc.end))continue;o+=".end"}else o+=".start";i=!1}else if(t.hasOwnProperty(o)){i=!1;for(let e=0;!i&&e");else{if(!Array.isArray(n))throw new Error("Wrong value `"+n+"` in `"+e+"."+t+"` structure definition");i.push("List")}}o[t]=i.join(" | ")}return{docs:o,check:Ms(e,n)}}var Us=gs("inherit | initial | unset"),Ds=gs("inherit | initial | unset | <-ms-legacy-expression>");function Fs(e,t,r){let n={};for(let o in e)e[o].syntax&&(n[o]=r?e[o].syntax:oi(e[o].syntax,{compact:t}));return n}function qs(e,t,r){let n={};for(let[o,i]of Object.entries(e))n[o]={prelude:i.prelude&&(r?i.prelude.syntax:oi(i.prelude.syntax,{compact:t})),descriptors:i.descriptors&&Fs(i.descriptors,t,r)};return n}function Bs(e,t,r){return{matched:e,iterations:r,error:t,...Es}}function js(e,t,r,n){let o,i=as(r,e.syntax);return function(e){for(let t=0;t(Object.defineProperty(i,"syntax",{value:rs(e)}),i.syntax)}):i.syntax=e,Object.defineProperty(i,"match",{get:()=>(Object.defineProperty(i,"match",{value:gs(i.syntax,o)}),i.match)})),i}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(((r,n)=>(r[n]=this.createDescriptor(t.descriptors[n],"AtruleDescriptor",n,e),r)),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),t===Fi["-ms-legacy-expression"]&&(this.valueCommonSyntax=Ds))}checkAtruleName(e){if(!this.getAtrule(e))return new li("Unknown at-rule","@"+e)}checkAtrulePrelude(e,t){let r=this.checkAtruleName(e);if(r)return r;let n=this.getAtrule(e);return!n.prelude&&t?new SyntaxError("At-rule `@"+e+"` should not contain a prelude"):n.prelude&&!t?new SyntaxError("At-rule `@"+e+"` should contain a prelude"):void 0}checkAtruleDescriptorName(e,t){let r=this.checkAtruleName(e);if(r)return r;let n=this.getAtrule(e),o=di(t);return n.descriptors?n.descriptors[o.name]||n.descriptors[o.basename]?void 0:new li("Unknown at-rule descriptor",t):new SyntaxError("At-rule `@"+e+"` has no known descriptors")}checkPropertyName(e){if(!this.getProperty(e))return new li("Unknown property",e)}matchAtrulePrelude(e,t){let r=this.checkAtrulePrelude(e,t);return r?Bs(null,r):t?js(this,this.getAtrule(e).prelude,t,!1):Bs(null,null)}matchAtruleDescriptor(e,t,r){let n=this.checkAtruleDescriptorName(e,t);if(n)return Bs(null,n);let o=this.getAtrule(e),i=di(t);return js(this,o.descriptors[i.name]||o.descriptors[i.basename],r,!1)}matchDeclaration(e){return"Declaration"!==e.type?Bs(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,t){if(pi(e).custom)return Bs(null,new Error("Lexer matching doesn't applicable for custom properties"));let r=this.checkPropertyName(e);return r?Bs(null,r):js(this,this.getProperty(e),t,!0)}matchType(e,t){let r=this.getType(e);return r?js(this,r,t,!1):Bs(null,new li("Unknown type",e))}match(e,t){return"string"==typeof e||e&&e.type?(("string"==typeof e||!e.match)&&(e=this.createDescriptor(e,"Type","anonymous")),js(this,e,t,!1)):Bs(null,new li("Bad syntax"))}findValueFragments(e,t,r,n){return Ls(this,t,this.matchProperty(e,t),r,n)}findDeclarationValueFragments(e,t,r){return Ls(this,e.value,this.matchDeclaration(e),t,r)}findAllFragments(e,t,r){let n=[];return this.syntax.walk(e,{visit:"Declaration",enter:e=>{n.push.apply(n,this.findDeclarationValueFragments(e,t,r))}}),n}getAtrule(e,t=!0){let r=di(e);return(r.vendor&&t?this.atrules[r.name]||this.atrules[r.basename]:this.atrules[r.name])||null}getAtrulePrelude(e,t=!0){let r=this.getAtrule(e,t);return r&&r.prelude||null}getAtruleDescriptor(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[t]||null}getProperty(e,t=!0){let r=pi(e);return(r.vendor&&t?this.properties[r.name]||this.properties[r.basename]:this.properties[r.name])||null}getType(e){return hasOwnProperty.call(this.types,e)?this.types[e]:null}validate(){function e(n,o,i,s){if(i.has(o))return i.get(o);i.set(o,!1),null!==s.syntax&&is(s.syntax,(function(s){if("Type"!==s.type&&"Property"!==s.type)return;let a="Type"===s.type?n.types:n.properties,l="Type"===s.type?t:r;(!hasOwnProperty.call(a,s.name)||e(n,s.name,l,a[s.name]))&&i.set(o,!0)}),this)}let t=new Map,r=new Map;for(let r in this.types)e(this,r,t,this.types[r]);for(let t in this.properties)e(this,t,r,this.properties[t]);return t=[...t.keys()].filter((e=>t.get(e))),r=[...r.keys()].filter((e=>r.get(e))),t.length||r.length?{types:t,properties:r}:null}dump(e,t){return{generic:this.generic,types:Fs(this.types,!t,e),properties:Fs(this.properties,!t,e),atrules:qs(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}},{hasOwnProperty:Vs}=Object.prototype,Ws={generic:!0,types:Js,atrules:{prelude:Qs,descriptors:Qs},properties:Js,parseContext:function(e,t){return Object.assign(e,t)},scope:function e(t,r){for(let n in r)Vs.call(r,n)&&($s(t[n])?e(t[n],Gs(r[n])):t[n]=Gs(r[n]));return t},atrule:["parse"],pseudo:["parse"],node:["name","structure","parse","generate","walkContext"]};function $s(e){return e&&e.constructor===Object}function Gs(e){return $s(e)?{...e}:e}function Ys(e,t){return"string"==typeof t&&/^\s*\|/.test(t)?"string"==typeof e?e+t:t.replace(/^\s*\|\s*/,""):t||null}function Js(e,t){if("string"==typeof t)return Ys(e,t);let r={...e};for(let n in t)Vs.call(t,n)&&(r[n]=Ys(Vs.call(e,n)?e[n]:void 0,t[n]));return r}function Qs(e,t){let r=Js(e,t);return!$s(r)||Object.keys(r).length?r:null}function Ks(e,t,r){for(let n in r)if(!1!==Vs.call(r,n))if(!0===r[n])n in t&&Vs.call(t,n)&&(e[n]=Gs(t[n]));else if(r[n])if("function"==typeof r[n]){let o=r[n];e[n]=o({},e[n]),e[n]=o(e[n]||{},t[n])}else if($s(r[n])){let o={};for(let t in e[n])o[t]=Ks({},e[n][t],r[n]);for(let e in t[n])o[e]=Ks(o[e]||{},t[n][e],r[n]);e[n]=o}else if(Array.isArray(r[n])){let o={},i=r[n].reduce((function(e,t){return e[t]=!0,e}),{});for(let[t,r]of Object.entries(e[n]||{}))o[t]={},r&&Ks(o[t],r,i);for(let e in t[n])Vs.call(t[n],e)&&(o[e]||(o[e]={}),t[n]&&t[n][e]&&Ks(o[e],t[n][e],i));e[n]=o}return e}var Zs=(e,t)=>Ks(e,t,Ws);function Xs(e){let t=zo(e),r=ti(e),n=Go(e),{fromPlainObject:o,toPlainObject:i}=function(e){return{fromPlainObject:function(t){return e(t,{enter:function(e){e.children&&!(e.children instanceof Ao)&&(e.children=(new Ao).fromArray(e.children))}}),t},toPlainObject:function(t){return e(t,{leave:function(e){e.children&&e.children instanceof Ao&&(e.children=e.children.toArray())}}),t}}}(r),s={lexer:null,createLexer:e=>new Hs(e,s,s.lexer.structure),tokenize:xo,parse:t,generate:n,walk:r,find:r.find,findLast:r.findLast,findAll:r.findAll,fromPlainObject:o,toPlainObject:i,fork(t){let r=Zs({},e);return Xs("function"==typeof t?t(r,Object.assign):Zs(r,t))}};return s.lexer=new Hs({generic:!0,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},s),s}var ea=e=>Xs(Zs({},e)),ta={};ln(ta,{AnPlusB:()=>ra,Atrule:()=>fa,AtrulePrelude:()=>Ea,AttributeSelector:()=>_a,Block:()=>Oa,Brackets:()=>$a,CDC:()=>Ka,CDO:()=>rl,ClassSelector:()=>al,Combinator:()=>dl,Comment:()=>yl,Declaration:()=>xl,DeclarationList:()=>zl,Dimension:()=>Fl,Function:()=>Vl,Hash:()=>Ql,IdSelector:()=>ac,Identifier:()=>rc,MediaFeature:()=>dc,MediaQuery:()=>yc,MediaQueryList:()=>xc,Nth:()=>Cc,Number:()=>Nc,Operator:()=>Uc,Parentheses:()=>jc,Percentage:()=>Gc,PseudoClassSelector:()=>Zc,PseudoElementSelector:()=>ou,Ratio:()=>uu,Raw:()=>gu,Rule:()=>xu,Selector:()=>Iu,SelectorList:()=>Mu,String:()=>Bu,StyleSheet:()=>Ju,TypeSelector:()=>rh,UnicodeRange:()=>lh,Url:()=>yh,Value:()=>Sh,WhiteSpace:()=>Ih});var ra={};ln(ra,{generate:()=>ma,name:()=>ha,parse:()=>pa,structure:()=>da});var na=43,oa=45,ia=110,sa=!0;function aa(e,t){let r=this.tokenStart+e,n=this.charCodeAt(r);for((n===na||n===oa)&&(t&&this.error("Number sign is not allowed"),r++);r0&&this.skip(e),0===t&&(r=this.charCodeAt(this.tokenStart),r!==na&&r!==oa&&this.error("Number sign is expected")),la.call(this,0!==t),t===oa?"-"+this.consume(10):this.consume(10)}var ha="AnPlusB",da={a:[String,null],b:[String,null]};function pa(){let e=this.tokenStart,t=null,r=null;if(10===this.tokenType)la.call(this,false),r=this.consume(10);else if(1===this.tokenType&&this.cmpChar(this.tokenStart,oa))switch(t="-1",ca.call(this,1,ia),this.tokenEnd-this.tokenStart){case 2:this.next(),r=ua.call(this);break;case 3:ca.call(this,2,oa),this.next(),this.skipSC(),la.call(this,sa),r="-"+this.consume(10);break;default:ca.call(this,2,oa),aa.call(this,3,sa),this.next(),r=this.substrToCursor(e+2)}else if(1===this.tokenType||this.isDelim(na)&&1===this.lookupType(1)){let n=0;switch(t="1",this.isDelim(na)&&(n=1,this.next()),ca.call(this,0,ia),this.tokenEnd-this.tokenStart){case 1:this.next(),r=ua.call(this);break;case 2:ca.call(this,1,oa),this.next(),this.skipSC(),la.call(this,sa),r="-"+this.consume(10);break;default:ca.call(this,1,oa),aa.call(this,2,sa),this.next(),r=this.substrToCursor(e+n+1)}}else if(12===this.tokenType){let n=this.charCodeAt(this.tokenStart),o=n===na||n===oa,i=this.tokenStart+o;for(;ixa,name:()=>ba,parse:()=>wa,structure:()=>va,walkContext:()=>ka});var ba="Atrule",ka="atrule",va={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function wa(){let e,t,r=this.tokenStart,n=null,o=null;switch(this.eat(3),e=this.substrToCursor(r+1),t=e.toLowerCase(),this.skipSC(),!1===this.eof&&23!==this.tokenType&&17!==this.tokenType&&(n=this.parseAtrulePrelude?this.parseWithFallback(this.AtrulePrelude.bind(this,e),ga):ga.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case 17:this.next();break;case 23:o=hasOwnProperty.call(this.atrule,t)&&"function"==typeof this.atrule[t].block?this.atrule[t].block.call(this):this.Block(ya.call(this))}return{type:"Atrule",loc:this.getLocation(r,this.tokenStart),name:e,prelude:n,block:o}}function xa(e){this.token(3,"@"+e.name),null!==e.prelude&&this.node(e.prelude),e.block?this.node(e.block):this.token(17,";")}var Ea={};ln(Ea,{generate:()=>Ra,name:()=>Aa,parse:()=>Ca,structure:()=>Ta,walkContext:()=>Sa});var Aa="AtrulePrelude",Sa="atrulePrelude",Ta={children:[[]]};function Ca(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 Ra(e){this.children(e)}var _a={};ln(_a,{generate:()=>Ma,name:()=>Na,parse:()=>Pa,structure:()=>za});function Ia(){this.eof&&this.error("Unexpected end of input");let e=this.tokenStart,t=!1;return this.isDelim(42)?(t=!0,this.next()):this.isDelim(124)||this.eat(1),this.isDelim(124)?61!==this.charCodeAt(this.tokenStart+1)?(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 La(){let e=this.tokenStart,t=this.charCodeAt(e);return 61!==t&&126!==t&&94!==t&&36!==t&&42!==t&&124!==t&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),61!==t&&(this.isDelim(61)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}var Na="AttributeSelector",za={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function Pa(){let e,t=this.tokenStart,r=null,n=null,o=null;return this.eat(19),this.skipSC(),e=Ia.call(this),this.skipSC(),20!==this.tokenType&&(1!==this.tokenType&&(r=La.call(this),this.skipSC(),n=5===this.tokenType?this.String():this.Identifier(),this.skipSC()),1===this.tokenType&&(o=this.consume(1),this.skipSC())),this.eat(20),{type:"AttributeSelector",loc:this.getLocation(t,this.tokenStart),name:e,matcher:r,value:n,flags:o}}function Ma(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 Oa={};function Ua(e){return this.Raw(e,null,!0)}function Da(){return this.parseWithFallback(this.Rule,Ua)}function Fa(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function qa(){if(17===this.tokenType)return Fa.call(this,this.tokenIndex);let e=this.parseWithFallback(this.Declaration,Fa);return 17===this.tokenType&&this.next(),e}ln(Oa,{generate:()=>Wa,name:()=>Ba,parse:()=>Va,structure:()=>Ha,walkContext:()=>ja});var Ba="Block",ja="block",Ha={children:[["Atrule","Rule","Declaration"]]};function Va(e){let t=e?qa:Da,r=this.tokenStart,n=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:n.push(this.parseWithFallback(this.Atrule,Ua));break;default:n.push(t.call(this))}return this.eof||this.eat(24),{type:"Block",loc:this.getLocation(r,this.tokenStart),children:n}}function Wa(e){this.token(23,"{"),this.children(e,(e=>{"Declaration"===e.type&&this.token(17,";")})),this.token(24,"}")}var $a={};ln($a,{generate:()=>Qa,name:()=>Ga,parse:()=>Ja,structure:()=>Ya});var Ga="Brackets",Ya={children:[[]]};function Ja(e,t){let r=this.tokenStart,n=null;return this.eat(19),n=e.call(this,t),this.eof||this.eat(20),{type:"Brackets",loc:this.getLocation(r,this.tokenStart),children:n}}function Qa(e){this.token(9,"["),this.children(e),this.token(9,"]")}var Ka={};ln(Ka,{generate:()=>tl,name:()=>Za,parse:()=>el,structure:()=>Xa});var Za="CDC",Xa=[];function el(){let e=this.tokenStart;return this.eat(15),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function tl(){this.token(15,"--\x3e")}var rl={};ln(rl,{generate:()=>sl,name:()=>nl,parse:()=>il,structure:()=>ol});var nl="CDO",ol=[];function il(){let e=this.tokenStart;return this.eat(14),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function sl(){this.token(14,"\x3c!--")}var al={};ln(al,{generate:()=>hl,name:()=>ll,parse:()=>ul,structure:()=>cl});var ll="ClassSelector",cl={name:String};function ul(){return this.eatDelim(46),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function hl(e){this.token(9,"."),this.token(1,e.name)}var dl={};ln(dl,{generate:()=>gl,name:()=>pl,parse:()=>fl,structure:()=>ml});var pl="Combinator",ml={name:String};function fl(){let e,t=this.tokenStart;switch(this.tokenType){case 13:e=" ";break;case 9:switch(this.charCodeAt(this.tokenStart)){case 62:case 43:case 126:this.next();break;case 47:this.next(),this.eatIdent("deep"),this.eatDelim(47);break;default:this.error("Combinator is expected")}e=this.substrToCursor(t)}return{type:"Combinator",loc:this.getLocation(t,this.tokenStart),name:e}}function gl(e){this.tokenize(e.name)}var yl={};ln(yl,{generate:()=>wl,name:()=>bl,parse:()=>vl,structure:()=>kl});var bl="Comment",kl={value:String};function vl(){let e=this.tokenStart,t=this.tokenEnd;return this.eat(25),t-e+2>=2&&42===this.charCodeAt(t-2)&&47===this.charCodeAt(t-1)&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function wl(e){this.token(25,"/*"+e.value+"*/")}var xl={};ln(xl,{generate:()=>Il,name:()=>Tl,parse:()=>_l,structure:()=>Rl,walkContext:()=>Cl});function El(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function Al(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function Sl(){let e=this.tokenIndex,t=this.Value();return"Raw"!==t.type&&!1===this.eof&&17!==this.tokenType&&!1===this.isDelim(33)&&!1===this.isBalanceEdge(e)&&this.error(),t}var Tl="Declaration",Cl="declaration",Rl={important:[Boolean,String],property:String,value:["Value","Raw"]};function _l(){let e,t=this.tokenStart,r=this.tokenIndex,n=Ll.call(this),o=fi(n),i=o?this.parseCustomProperty:this.parseValue,s=o?Al:El,a=!1;this.skipSC(),this.eat(16);let l=this.tokenIndex;if(o||this.skipSC(),e=i?this.parseWithFallback(Sl,s):s.call(this,this.tokenIndex),o&&"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(33)&&(a=Nl.call(this),this.skipSC()),!1===this.eof&&17!==this.tokenType&&!1===this.isBalanceEdge(r)&&this.error(),{type:"Declaration",loc:this.getLocation(t,this.tokenStart),important:a,property:n,value:e}}function Il(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 Ll(){let e=this.tokenStart;if(9===this.tokenType)switch(this.charCodeAt(this.tokenStart)){case 42:case 36:case 43:case 35:case 38:this.next();break;case 47:this.next(),this.isDelim(47)&&this.next()}return 4===this.tokenType?this.eat(4):this.eat(1),this.substrToCursor(e)}function Nl(){this.eat(9),this.skipSC();let e=this.consume(1);return"important"===e||e}var zl={};function Pl(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}ln(zl,{generate:()=>Dl,name:()=>Ml,parse:()=>Ul,structure:()=>Ol});var Ml="DeclarationList",Ol={children:[["Declaration"]]};function Ul(){let e=this.createList();for(;!this.eof;)switch(this.tokenType){case 13:case 25:case 17:this.next();break;default:e.push(this.parseWithFallback(this.Declaration,Pl))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function Dl(e){this.children(e,(e=>{"Declaration"===e.type&&this.token(17,";")}))}var Fl={};ln(Fl,{generate:()=>Hl,name:()=>ql,parse:()=>jl,structure:()=>Bl});var ql="Dimension",Bl={value:String,unit:String};function jl(){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 Hl(e){this.token(12,e.value+e.unit)}var Vl={};ln(Vl,{generate:()=>Jl,name:()=>Wl,parse:()=>Yl,structure:()=>Gl,walkContext:()=>$l});var Wl="Function",$l="function",Gl={name:String,children:[[]]};function Yl(e,t){let r,n=this.tokenStart,o=this.consumeFunctionName(),i=o.toLowerCase();return r=t.hasOwnProperty(i)?t[i].call(this,t):e.call(this,t),this.eof||this.eat(22),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:o,children:r}}function Jl(e){this.token(2,e.name+"("),this.children(e),this.token(22,")")}var Ql={};ln(Ql,{generate:()=>tc,name:()=>Zl,parse:()=>ec,structure:()=>Xl,xxx:()=>Kl});var Kl="XXX",Zl="Hash",Xl={value:String};function ec(){let e=this.tokenStart;return this.eat(4),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function tc(e){this.token(4,"#"+e.value)}var rc={};ln(rc,{generate:()=>sc,name:()=>nc,parse:()=>ic,structure:()=>oc});var nc="Identifier",oc={name:String};function ic(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function sc(e){this.token(1,e.name)}var ac={};ln(ac,{generate:()=>hc,name:()=>lc,parse:()=>uc,structure:()=>cc});var lc="IdSelector",cc={name:String};function uc(){let e=this.tokenStart;return this.eat(4),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function hc(e){this.token(9,"#"+e.name)}var dc={};ln(dc,{generate:()=>gc,name:()=>pc,parse:()=>fc,structure:()=>mc});var pc="MediaFeature",mc={name:String,value:["Identifier","Number","Dimension","Ratio",null]};function fc(){let e,t=this.tokenStart,r=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:r=9===this.lookupNonWSType(1)?this.Ratio():this.Number();break;case 12:r=this.Dimension();break;case 1:r=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:r}}function gc(e){this.token(21,"("),this.token(1,e.name),null!==e.value&&(this.token(16,":"),this.node(e.value)),this.token(22,")")}var yc={};ln(yc,{generate:()=>wc,name:()=>bc,parse:()=>vc,structure:()=>kc});var bc="MediaQuery",kc={children:[["Identifier","MediaFeature","WhiteSpace"]]};function vc(){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 wc(e){this.children(e)}var xc={};ln(xc,{generate:()=>Tc,name:()=>Ec,parse:()=>Sc,structure:()=>Ac});var Ec="MediaQueryList",Ac={children:[["MediaQuery"]]};function Sc(){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 Tc(e){this.children(e,(()=>this.token(18,",")))}var Cc={};ln(Cc,{generate:()=>Lc,name:()=>Rc,parse:()=>Ic,structure:()=>_c});var Rc="Nth",_c={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function Ic(){this.skipSC();let e,t=this.tokenStart,r=t,n=null;return e=this.lookupValue(0,"odd")||this.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),r=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),n=this.SelectorList(),r=this.tokenStart),{type:"Nth",loc:this.getLocation(t,r),nth:e,selector:n}}function Lc(e){this.node(e.nth),null!==e.selector&&(this.token(1,"of"),this.node(e.selector))}var Nc={};ln(Nc,{generate:()=>Oc,name:()=>zc,parse:()=>Mc,structure:()=>Pc});var zc="Number",Pc={value:String};function Mc(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(10)}}function Oc(e){this.token(10,e.value)}var Uc={};ln(Uc,{generate:()=>Bc,name:()=>Dc,parse:()=>qc,structure:()=>Fc});var Dc="Operator",Fc={value:String};function qc(){let e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function Bc(e){this.tokenize(e.value)}var jc={};ln(jc,{generate:()=>$c,name:()=>Hc,parse:()=>Wc,structure:()=>Vc});var Hc="Parentheses",Vc={children:[[]]};function Wc(e,t){let r=this.tokenStart,n=null;return this.eat(21),n=e.call(this,t),this.eof||this.eat(22),{type:"Parentheses",loc:this.getLocation(r,this.tokenStart),children:n}}function $c(e){this.token(21,"("),this.children(e),this.token(22,")")}var Gc={};ln(Gc,{generate:()=>Kc,name:()=>Yc,parse:()=>Qc,structure:()=>Jc});var Yc="Percentage",Jc={value:String};function Qc(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(11)}}function Kc(e){this.token(11,e.value+"%")}var Zc={};ln(Zc,{generate:()=>nu,name:()=>Xc,parse:()=>ru,structure:()=>tu,walkContext:()=>eu});var Xc="PseudoClassSelector",eu="function",tu={name:String,children:[["Raw"],null]};function ru(){let e,t,r=this.tokenStart,n=null;return this.eat(16),2===this.tokenType?(e=this.consumeFunctionName(),t=e.toLowerCase(),hasOwnProperty.call(this.pseudo,t)?(this.skipSC(),n=this.pseudo[t].call(this),this.skipSC()):(n=this.createList(),n.push(this.Raw(this.tokenIndex,null,!1))),this.eat(22)):e=this.consume(1),{type:"PseudoClassSelector",loc:this.getLocation(r,this.tokenStart),name:e,children:n}}function nu(e){this.token(16,":"),null===e.children?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(22,")"))}var ou={};ln(ou,{generate:()=>cu,name:()=>iu,parse:()=>lu,structure:()=>au,walkContext:()=>su});var iu="PseudoElementSelector",su="function",au={name:String,children:[["Raw"],null]};function lu(){let e,t,r=this.tokenStart,n=null;return this.eat(16),this.eat(16),2===this.tokenType?(e=this.consumeFunctionName(),t=e.toLowerCase(),hasOwnProperty.call(this.pseudo,t)?(this.skipSC(),n=this.pseudo[t].call(this),this.skipSC()):(n=this.createList(),n.push(this.Raw(this.tokenIndex,null,!1))),this.eat(22)):e=this.consume(1),{type:"PseudoElementSelector",loc:this.getLocation(r,this.tokenStart),name:e,children:n}}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 uu={};ln(uu,{generate:()=>fu,name:()=>du,parse:()=>mu,structure:()=>pu});function hu(){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}ln(gu,{generate:()=>wu,name:()=>bu,parse:()=>vu,structure:()=>ku});var bu="Raw",ku={value:String};function vu(e,t,r){let n,o=this.getTokenStart(e);return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),n=r&&this.tokenStart>o?yu.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(o,n),value:this.substring(o,n)}}function wu(e){this.tokenize(e.value)}var xu={};function Eu(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function Au(){let e=this.SelectorList();return"Raw"!==e.type&&!1===this.eof&&23!==this.tokenType&&this.error(),e}ln(xu,{generate:()=>_u,name:()=>Su,parse:()=>Ru,structure:()=>Cu,walkContext:()=>Tu});var Su="Rule",Tu="rule",Cu={prelude:["SelectorList","Raw"],block:["Block"]};function Ru(){let e,t,r=this.tokenIndex,n=this.tokenStart;return e=this.parseRulePrelude?this.parseWithFallback(Au,Eu):Eu.call(this,r),t=this.Block(!0),{type:"Rule",loc:this.getLocation(n,this.tokenStart),prelude:e,block:t}}function _u(e){this.node(e.prelude),this.node(e.block)}var Iu={};ln(Iu,{generate:()=>Pu,name:()=>Lu,parse:()=>zu,structure:()=>Nu});var Lu="Selector",Nu={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};function zu(){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 Pu(e){this.children(e)}var Mu={};ln(Mu,{generate:()=>qu,name:()=>Ou,parse:()=>Fu,structure:()=>Du,walkContext:()=>Uu});var Ou="SelectorList",Uu="selector",Du={children:[["Selector","Raw"]]};function Fu(){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 qu(e){this.children(e,(()=>this.token(18,",")))}var Bu={};ln(Bu,{generate:()=>Yu,name:()=>Wu,parse:()=>Gu,structure:()=>$u});var ju={};ln(ju,{decode:()=>Hu,encode:()=>Vu});function Hu(e){let t=e.length,r=e.charCodeAt(0),n=34===r||39===r?1:0,o=1===n&&t>1&&e.charCodeAt(t-1)===r?t-2:t-1,i="";for(let r=n;r<=o;r++){let n=e.charCodeAt(r);if(92===n){if(r===o){r!==t-1&&(i=e.substr(r+1));break}if(n=e.charCodeAt(++r),Qn(92,n)){let t=r-1,n=co(e,t);r=n-1,i+=mo(e.substring(t+1,n))}else 13===n&&10===e.charCodeAt(r+1)&&r++}else i+=e[r]}return i}function Vu(e,t){let r=t?"'":'"',n=t?39:34,o="",i=!1;for(let t=0;tth,name:()=>Ku,parse:()=>eh,structure:()=>Xu,walkContext:()=>Zu});function Qu(e){return this.Raw(e,null,!1)}var Ku="StyleSheet",Zu="stylesheet",Xu={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function eh(){let e,t=this.tokenStart,r=this.createList();for(;!this.eof;){switch(this.tokenType){case 13:this.next();continue;case 25:if(33!==this.charCodeAt(this.tokenStart+2)){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,Qu);break;default:e=this.parseWithFallback(this.Rule,Qu)}r.push(e)}return{type:"StyleSheet",loc:this.getLocation(t,this.tokenStart),children:r}}function th(e){this.children(e)}var rh={};ln(rh,{generate:()=>ah,name:()=>oh,parse:()=>sh,structure:()=>ih});function nh(){1!==this.tokenType&&!1===this.isDelim(42)&&this.error("Identifier or asterisk is expected"),this.next()}var oh="TypeSelector",ih={name:String};function sh(){let e=this.tokenStart;return this.isDelim(124)?(this.next(),nh.call(this)):(nh.call(this),this.isDelim(124)&&(this.next(),nh.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function ah(e){this.tokenize(e.name)}var lh={};ln(lh,{generate:()=>gh,name:()=>ph,parse:()=>fh,structure:()=>mh});function ch(e,t){let r=0;for(let n=this.tokenStart+e;n6&&this.error("Too many hex digits",n)}return this.next(),r}function uh(e){let t=0;for(;this.isDelim(63);)++t>e&&this.error("Too many question marks"),this.next()}function hh(e){this.charCodeAt(this.tokenStart)!==e&&this.error((43===e?"Plus sign":"Hyphen minus")+" is expected")}function dh(){let e=0;switch(this.tokenType){case 10:if(e=ch.call(this,1,!0),this.isDelim(63)){uh.call(this,6-e);break}if(12===this.tokenType||10===this.tokenType){hh.call(this,45),ch.call(this,1,!1);break}break;case 12:e=ch.call(this,1,!0),e>0&&uh.call(this,6-e);break;default:if(this.eatDelim(43),1===this.tokenType){e=ch.call(this,0,!0),e>0&&uh.call(this,6-e);break}if(this.isDelim(63)){this.next(),uh.call(this,5);break}this.error("Hex digit or question mark is expected")}}var ph="UnicodeRange",mh={value:String};function fh(){let e=this.tokenStart;return this.eatIdent("u"),dh.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function gh(e){this.tokenize(e.value)}var yh={};ln(yh,{generate:()=>Ah,name:()=>wh,parse:()=>Eh,structure:()=>xh});var bh={};ln(bh,{decode:()=>kh,encode:()=>vh});function kh(e){let t=e.length,r=4,n=41===e.charCodeAt(t-1)?t-2:t-1,o="";for(;r_h,name:()=>Th,parse:()=>Rh,structure:()=>Ch});var Th="Value",Ch={children:[[]]};function Rh(){let e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}}function _h(e){this.children(e)}var Ih={};ln(Ih,{generate:()=>Mh,name:()=>Nh,parse:()=>Ph,structure:()=>zh});var Lh=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),Nh="WhiteSpace",zh={value:String};function Ph(){return this.eat(13),Lh}function Mh(e){this.token(13,e.value)}var Oh={generic:!0,generic:!0,types:{"absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","alpha-value":"|","angle-percentage":"|","angular-color-hint":"","angular-color-stop":"&&?","angular-color-stop-list":"[ [, ]?]# , ","animateable-feature":"scroll-position|contents|",attachment:"scroll|fixed|local","attr()":"attr( ? [, ]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' ']'|'[' [|] ? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [? ]+ ? )","auto-track-list":"[? [|]]* ? [? [|]]* ?","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":"|||( )","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( [] )",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( , ? )","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'>|||| [/ ]?||||||||","fit-content()":"fit-content( [|] )","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]]? )",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|","layer()":"layer( )","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 ]? , )","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] )","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( )","polygon()":"polygon( ? , [ ]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|] [top|center|bottom|]?|[[left|right] ]&&[[top|bottom] ]]","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 ]? , )","relative-selector":"? ","relative-selector-list":"#","relative-size":"larger|smaller","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-linear-gradient()":"repeating-linear-gradient( [|to ]? , )","repeating-radial-gradient()":"repeating-radial-gradient( [||]? [at ]? , )","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( [|] )","saturate()":"saturate( )","scale()":"scale( , ? )","scale3d()":"scale3d( , , )","scaleX()":"scaleX( )","scaleY()":"scaleY( )","scaleZ()":"scaleZ( )","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"|closest-side|farthest-side","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]","single-animation":"