!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=(e,t,r)=>globalThis.addEventListener(e,t,r),o=e=>{try{globalThis.dispatchEvent(e)}catch(e){}},i=globalThis.CustomEvent,a=globalThis.document,s=globalThis.Document;let l;function c(){return Array.from(l.values())}function u(e){e.loadDeferredImagesBlockCookies&&o(new i("single-file-block-cookies-start")),e.loadDeferredImagesBlockStorage&&o(new i("single-file-block-storage-start")),e.loadDeferredImagesDispatchScrollEvent&&o(new i("single-file-dispatch-scroll-event-start")),e.loadDeferredImagesKeepZoomLevel?o(new i("single-file-load-deferred-images-keep-zoom-level-start")):o(new i("single-file-load-deferred-images-start"))}function h(e){e.loadDeferredImagesBlockCookies&&o(new i("single-file-block-cookies-end")),e.loadDeferredImagesBlockStorage&&o(new i("single-file-block-storage-end")),e.loadDeferredImagesDispatchScrollEvent&&o(new i("single-file-dispatch-scroll-event-end")),e.loadDeferredImagesKeepZoomLevel?o(new i("single-file-load-deferred-images-keep-zoom-level-end")):o(new i("single-file-load-deferred-images-end"))}function d(e){e.loadDeferredImagesKeepZoomLevel?o(new i("single-file-load-deferred-images-keep-zoom-level-reset")):o(new i("single-file-load-deferred-images-reset"))}l=window._singleFile_fontFaces?window._singleFile_fontFaces:window._singleFile_fontFaces=new Map,a instanceof s&&(n("single-file-new-font-face",(e=>{const t=e.detail,r=Object.assign({},t);delete r.src,l.set(JSON.stringify(r),t)})),n("single-file-delete-font",(e=>{const t=e.detail,r=Object.assign({},t);delete r.src,l.delete(JSON.stringify(r))})),n("single-file-clear-fonts",(()=>l=new Map)));var p=Object.freeze({__proto__:null,getFontsData:c,loadDeferredImagesStart:u,loadDeferredImagesEnd:h,loadDeferredImagesResetZoomLevel:d,LOAD_IMAGE_EVENT:t,IMAGE_LOADED_EVENT:r});const m=new RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)","ig");function f(e){return e.replace(m,((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 g=Object.freeze({__proto__:null,process:f});const y="single-file-on-before-capture",b="single-file-on-after-capture",k="data-single-file-removed-content",v="data-single-file-hidden-content",w="data-single-file-kept-content",x="data-single-file-hidden-frame",E="data-single-file-preserved-space-element",A="data-single-file-shadow-root-element",S="data-single-file-win-id",T="data-single-file-image",C="data-single-file-poster",R="data-single-file-video",_="data-single-file-canvas",I="data-single-file-movable-style",L="data-single-file-input-value",N="data-single-file-lazy-loaded-src",z="data-single-file-stylesheet",P="data-single-file-disabled-noscript",M="data-single-file-selected-content",O="data-single-file-invalid-element",U="data-single-file-async-script",D="*:not(base):not(link):not(meta):not(noscript):not(script):not(style):not(template):not(title)",F=["NOSCRIPT","DISABLED-NOSCRIPT","META","LINK","STYLE","TITLE","TEMPLATE","SOURCE","OBJECT","SCRIPT","HEAD","BODY"],q=/^'(.*?)'$/,B=/^"(.*?)"$/,j={regular:"400",normal:"400",bold:"700",bolder:"700",lighter:"100"},H="Page saved with SingleFile",V="Archive processed by SingleFile",W="single-file-ui-element",$="data:,",G=(e,t,r)=>globalThis.addEventListener(e,t,r);function Y(e){e.querySelectorAll("meta[http-equiv=refresh]").forEach((e=>{e.removeAttribute("http-equiv"),e.setAttribute("disabled-http-equiv","refresh")}))}function J(e,t,r){e.querySelectorAll("noscript:not([data-single-file-disabled-noscript])").forEach((e=>{e.setAttribute(P,e.textContent),e.textContent=""})),Y(e),e.head&&e.head.querySelectorAll(D).forEach((e=>e.hidden=!0)),e.querySelectorAll("svg foreignObject").forEach((e=>{const t=e.querySelectorAll("html > head > "+D+", html > body > "+D);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(O,""),r.content.appendChild(t.cloneNode(!0)),n.set(t,r),t.replaceWith(r)})),o=Q(t,e,e.documentElement,r),r.moveStylesInHead&&e.querySelectorAll("body style, body ~ style").forEach((e=>{const r=t.getComputedStyle(e);r&&ee(e,r)&&(e.setAttribute(I,""),o.markedElements.push(e))}))):o={canvases:[],images:[],posters:[],videos:[],usedFonts:[],shadowRoots:[],markedElements:[]},{canvases:o.canvases,fonts:c(),stylesheets:re(e),images:o.images,posters:o.posters,videos:o.videos,usedFonts:Array.from(o.usedFonts.values()),shadowRoots:o.shadowRoots,referrer:e.referrer,markedElements:o.markedElements,invalidElements:n}}function Q(e,t,r,n,o={usedFonts:new Map,canvases:[],images:[],posters:[],videos:[],shadowRoots:[],markedElements:[]},i){return Array.from(r.childNodes).filter((t=>t instanceof e.HTMLElement||t instanceof e.SVGElement)).forEach((r=>{let a,s,l;if(!n.autoSaveExternalSave&&(n.removeHiddenElements||n.removeUnusedFonts||n.compressHTML)&&(l=e.getComputedStyle(r),r instanceof e.HTMLElement&&n.removeHiddenElements&&(s=(i||r.closest("html > head"))&&F.includes(r.tagName)||r.closest("details"),s||(a=i||ee(r,l),a&&(r.setAttribute(v,""),o.markedElements.push(r)))),!a)){if(n.compressHTML&&l){const e=l.getPropertyValue("white-space");e&&e.startsWith("pre")&&(r.setAttribute(E,""),o.markedElements.push(r))}n.removeUnusedFonts&&(K(l,n,o.usedFonts),K(e.getComputedStyle(r,":first-letter"),n,o.usedFonts),K(e.getComputedStyle(r,":before"),n,o.usedFonts),K(e.getComputedStyle(r,":after"),n,o.usedFonts))}!function(e,t,r,n,o,i,a){if("CANVAS"==r.tagName)try{o.canvases.push({dataURI:r.toDataURL("image/png","")}),r.setAttribute(_,o.canvases.length-1),o.markedElements.push(r)}catch(e){}if("IMG"==r.tagName){const t={currentSrc:i?$:n.loadDeferredImages&&r.getAttribute(N)||r.currentSrc};o.images.push(t),r.setAttribute(T,o.images.length-1),o.markedElements.push(r),r.removeAttribute(N);try{a=a||e.getComputedStyle(r)}catch(e){}if(a){t.size=function(e,t,r){let n=t.naturalWidth,o=t.naturalHeight;if(!n&&!o){const i=null==t.getAttribute("style");let a,s,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")}a=ne("padding-left",r),s=ne("padding-right",r),l=ne("padding-top",r),c=ne("padding-bottom",r),m?(u=ne("border-left-width",r),h=ne("border-right-width",r),d=ne("border-top-width",r),p=ne("border-bottom-width",r)):u=h=d=p=0,n=Math.max(0,t.clientWidth-a-s-u-h),o=Math.max(0,t.clientHeight-l-c-d-p),i&&t.removeAttribute("style")}return{pxWidth:n,pxHeight:o}}(e,r,a);const n=a.getPropertyValue("box-shadow"),o=a.getPropertyValue("background-image");n&&"none"!=n||o&&"none"!=o||!(t.size.pxWidth>1||t.size.pxHeight>1)||(t.replaceable=!0,t.backgroundColor=a.getPropertyValue("background-color"),t.objectFit=a.getPropertyValue("object-fit"),t.boxSizing=a.getPropertyValue("box-sizing"),t.objectPosition=a.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(R,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(C,o.posters.length-1),o.markedElements.push(r)}catch(e){}}}"IFRAME"==r.tagName&&i&&n.removeHiddenElements&&(r.setAttribute(x,""),o.markedElements.push(r));"INPUT"==r.tagName&&("password"!=r.type&&(r.setAttribute(L,r.value),o.markedElements.push(r)),"radio"!=r.type&&"checkbox"!=r.type||(r.setAttribute(L,r.checked),o.markedElements.push(r)));"TEXTAREA"==r.tagName&&(r.setAttribute(L,r.value),o.markedElements.push(r));"SELECT"==r.tagName&&r.querySelectorAll("option").forEach((e=>{e.selected&&(e.setAttribute(L,""),o.markedElements.push(e))}));"SCRIPT"==r.tagName&&(r.async&&""!=r.getAttribute("async")&&"async"!=r.getAttribute("async")&&(r.setAttribute(U,""),o.markedElements.push(r)),r.textContent=r.textContent.replace(/<\/script>/gi,"<\\/script>"))}(e,t,r,n,o,a,l);const c=!(r instanceof e.SVGElement)&&Z(r);if(c&&!r.classList.contains(W)){const i={};r.setAttribute(A,o.shadowRoots.length),o.markedElements.push(r),o.shadowRoots.push(i),Q(e,t,c,n,o,a),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){}}Q(e,t,r,n,o,a),!n.autoSaveExternalSave&&n.removeHiddenElements&&i&&(s||""==r.getAttribute(w)?r.parentElement&&(r.parentElement.setAttribute(w,""),o.markedElements.push(r.parentElement)):a&&(r.setAttribute(k,""),o.markedElements.push(r)))})),o}function K(e,t,r){if(e){const n=e.getPropertyValue("font-style")||"normal";e.getPropertyValue("font-family").split(",").forEach((o=>{if(o=X(o),!t.loadedFonts||t.loadedFonts.find((e=>X(e.family)==o&&e.style==n))){const t=ae(e.getPropertyValue("font-weight")),i=e.getPropertyValue("font-variant")||"normal",a=[o,t,n,i];r.set(JSON.stringify(a),[o,t,n,i])}}))}}function Z(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 X(e=""){return ie(f(e.trim())).toLowerCase()}function ee(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 te(e,t,r){if(e.querySelectorAll("[data-single-file-disabled-noscript]").forEach((e=>{e.textContent=e.getAttribute(P),e.removeAttribute(P)})),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=[k,x,v,E,T,C,R,_,L,A,z,U];t=e.querySelectorAll(r.map((e=>"["+e+"]")).join(","))}t.forEach((e=>{e.removeAttribute(k),e.removeAttribute(v),e.removeAttribute(w),e.removeAttribute(x),e.removeAttribute(E),e.removeAttribute(T),e.removeAttribute(C),e.removeAttribute(R),e.removeAttribute(_),e.removeAttribute(L),e.removeAttribute(A),e.removeAttribute(z),e.removeAttribute(U),e.removeAttribute(I)})),r&&Array.from(r.entries()).forEach((([e,t])=>t.replaceWith(e)))}function re(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(z,n),t[n]=Array.from(r.sheet.cssRules).map((e=>e.cssText)).join("\n"))}catch(e){}})),t}}function ne(e,t){if(t.getPropertyValue(e).endsWith("px"))return parseFloat(t.getPropertyValue(e))}function oe(e){const t=e.doctype;let r="";return t&&(r=" "),r+e.documentElement.outerHTML}function ie(e){return(e=e.match(q)?e.replace(q,"$1"):e.replace(B,"$1")).trim()}function ae(e){return j[e.toLowerCase().trim()]||e}function se(e){return e.flat?e.flat():e.reduce(((e,t)=>e.concat(Array.isArray(t)?se(t):t)),[])}var le=Object.freeze({__proto__:null,initUserScriptHandler:function(){G("single-file-user-script-init",(()=>globalThis._singleFile_waitForUserScript=async e=>{const t=new CustomEvent(e+"-request",{cancelable:!0}),r=new Promise((t=>G(e+"-response",t)));(e=>{try{globalThis.dispatchEvent(e)}catch(e){}})(t),t.defaultPrevented&&await r}))},initDoc:Y,preProcessDoc:J,postProcessDoc:te,serialize:oe,removeQuotes:ie,flatten:se,getFontWeight:ae,normalizeFontFamily:X,getShadowRoot:Z,ON_BEFORE_CAPTURE_EVENT_NAME:y,ON_AFTER_CAPTURE_EVENT_NAME:b,WIN_ID_ATTRIBUTE_NAME:S,PRESERVED_SPACE_ELEMENT_ATTRIBUTE_NAME:E,REMOVED_CONTENT_ATTRIBUTE_NAME:k,HIDDEN_CONTENT_ATTRIBUTE_NAME:v,HIDDEN_FRAME_ATTRIBUTE_NAME:x,IMAGE_ATTRIBUTE_NAME:T,POSTER_ATTRIBUTE_NAME:C,VIDEO_ATTRIBUTE_NAME:R,CANVAS_ATTRIBUTE_NAME:_,INPUT_VALUE_ATTRIBUTE_NAME:L,SHADOW_ROOT_ATTRIBUTE_NAME:A,STYLE_ATTRIBUTE_NAME:I,LAZY_SRC_ATTRIBUTE_NAME:N,STYLESHEET_ATTRIBUTE_NAME:z,SELECTED_CONTENT_ATTRIBUTE_NAME:M,INVALID_ELEMENT_ATTRIBUTE_NAME:O,ASYNC_SCRIPT_ATTRIBUTE_NAME:U,COMMENT_HEADER:H,COMMENT_HEADER_LEGACY:V,SINGLE_FILE_UI_ELEMENT_CLASS:W,EMPTY_RESOURCE:$});const ce=N,ue=W,he="attributes",de=globalThis.browser,pe=globalThis.document,me=globalThis.MutationObserver,fe=(e,t,r)=>globalThis.addEventListener(e,t,r),ge=(e,t,r)=>globalThis.removeEventListener(e,t,r),ye=new Map;let be;async function ke(e){if(pe.documentElement){ye.clear();const n=Math.max(pe.documentElement.scrollHeight-1.5*pe.documentElement.clientHeight,0),o=Math.max(pe.documentElement.scrollWidth-1.5*pe.documentElement.clientWidth,0);if(globalThis.scrollY<=n&&globalThis.scrollX<=o)return function(e){return be=0,new Promise((async n=>{let o;const i=new Set,a=new me((async t=>{if((t=t.filter((e=>e.type==he))).length){t.filter((e=>{if("src"==e.attributeName&&(e.target.setAttribute(ce,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(ue)})).length&&(o=!0,await xe(a,e,d),i.size||await we(a,e,d))}}));async function s(t){await Ae("idleTimeout",(async()=>{o?be<10&&(be++,Te("idleTimeout"),await s(Math.max(500,t/2))):(Te("loadTimeout"),Te("maxTimeout"),Ee(a,e,d))}),t,e.loadDeferredImagesNativeTimeout)}function l(e){const t=e.target;t.removeAttribute(ce),t.removeEventListener("load",l)}async function c(t){o=!0,await xe(a,e,d),await we(a,e,d),t.detail&&i.add(t.detail)}async function h(t){await xe(a,e,d),await we(a,e,d),i.delete(t.detail),i.size||await we(a,e,d)}function d(e){a.disconnect(),ge(t,c),ge(r,h),n(e)}await s(2*e.loadDeferredImagesMaxIdleTime),await xe(a,e,d),a.observe(pe,{subtree:!0,childList:!0,attributes:!0}),fe(t,c),fe(r,h),u(e)}))}(e)}}function ve(e){d(e)}async function we(e,t,r){await Ae("loadTimeout",(()=>Ee(e,t,r)),t.loadDeferredImagesMaxIdleTime,t.loadDeferredImagesNativeTimeout)}async function xe(e,t,r){await Ae("maxTimeout",(async()=>{await Te("loadTimeout"),await Ee(e,t,r)}),10*t.loadDeferredImagesMaxIdleTime,t.loadDeferredImagesNativeTimeout)}async function Ee(e,t,r){await Te("idleTimeout"),h(t),await Ae("endTimeout",(async()=>{await Te("maxTimeout"),r()}),t.loadDeferredImagesMaxIdleTime/2,t.loadDeferredImagesNativeTimeout),e.disconnect()}async function Ae(e,t,r,n){if(de&&de.runtime&&de.runtime.sendMessage&&!n){if(!ye.get(e)||!ye.get(e).pending){const n={callback:t,pending:!0};ye.set(e,n);try{await de.runtime.sendMessage({method:"singlefile.lazyTimeout.setTimeout",type:e,delay:r})}catch(n){Se(e,t,r)}n.pending=!1}}else Se(e,t,r)}function Se(e,t,r){const n=ye.get(e);n&&globalThis.clearTimeout(n),ye.set(e,t),globalThis.setTimeout(t,r)}async function Te(e){if(de&&de.runtime&&de.runtime.sendMessage)try{await de.runtime.sendMessage({method:"singlefile.lazyTimeout.clearTimeout",type:e})}catch(t){Ce(e)}else Ce(e)}function Ce(e){const t=ye.get(e);ye.delete(e),t&&globalThis.clearTimeout(t)}de&&de.runtime&&de.runtime.onMessage&&de.runtime.onMessage.addListener&&de.runtime.onMessage.addListener((e=>{if("singlefile.lazyTimeout.onTimeout"==e.method){const t=ye.get(e.type);if(t){ye.delete(e.type);try{t.callback()}catch(t){Ce(e.type)}}}}));var Re=Object.freeze({__proto__:null,process:ke,resetZoomLevel:ve});const _e={ON_BEFORE_CAPTURE_EVENT_NAME:y,ON_AFTER_CAPTURE_EVENT_NAME:b,WIN_ID_ATTRIBUTE_NAME:S,preProcessDoc:J,serialize:oe,postProcessDoc:te,getShadowRoot:Z},Ie="__frameTree__::",Le='iframe, frame, object[type="text/html"][data]',Ne="singlefile.frameTree.initRequest",ze="singlefile.frameTree.ackInitRequest",Pe="singlefile.frameTree.cleanupRequest",Me="singlefile.frameTree.initResponse",Oe=5e3,Ue=".",De=globalThis.window==globalThis.top,Fe=globalThis.browser,qe=globalThis.top,Be=globalThis.MessageChannel,je=globalThis.document;let He,Ve=globalThis.sessions;var We,$e,Ge;function Ye(){return globalThis.crypto.getRandomValues(new Uint32Array(32)).join("")}async function Je(e){const t=e.sessionId,r=globalThis._singleFile_waitForUserScript;delete globalThis._singleFile_cleaningUp,De||(He=globalThis.frameId=e.windowId),Ze(je,e.options,He,t),De||(e.options.userScriptEnabled&&r&&await r(_e.ON_BEFORE_CAPTURE_EVENT_NAME),rt({frames:[ot(je,globalThis,He,e.options)],sessionId:t,requestedFrameId:je.documentElement.dataset.requestedFrameId&&He}),e.options.userScriptEnabled&&r&&await r(_e.ON_AFTER_CAPTURE_EVENT_NAME),delete je.documentElement.dataset.requestedFrameId)}function Qe(e){if(!globalThis._singleFile_cleaningUp){globalThis._singleFile_cleaningUp=!0;const t=e.sessionId;tt(it(je),e.windowId,t)}}function Ke(e){e.frames.forEach((t=>Xe("responseTimeouts",e.sessionId,t.windowId)));const t=Ve.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.processed=e.processed)}));t.frames.filter((e=>!e.processed)).length||(t.frames=t.frames.sort(((e,t)=>t.windowId.split(Ue).length-e.windowId.split(Ue).length)),t.resolve&&(t.requestedFrameId&&t.frames.forEach((e=>{e.windowId==t.requestedFrameId&&(e.requestedFrame=!0)})),t.resolve(t.frames)))}}function Ze(e,t,r,n){const o=it(e);!function(e,t,r,n,o){const i=[];let a;Ve.get(o)?a=Ve.get(o).requestTimeouts:(a={},Ve.set(o,{requestTimeouts:a}));t.forEach(((e,t)=>{const r=n+Ue+t;e.setAttribute(_e.WIN_ID_ATTRIBUTE_NAME,r),i.push({windowId:r})})),rt({frames:i,sessionId:o,requestedFrameId:e.documentElement.dataset.requestedFrameId&&n}),t.forEach(((e,t)=>{const i=n+Ue+t;try{nt(e.contentWindow,{method:Ne,windowId:i,sessionId:o,options:r})}catch(e){}a[i]=globalThis.setTimeout((()=>rt({frames:[{windowId:i,processed:!0}],sessionId:o})),Oe)})),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 a=n+Ue+t;let s;try{s=e.contentDocument}catch(e){}if(s)try{const t=e.contentWindow;t.stop(),Xe("requestTimeouts",o,a),Ze(s,r,a,o),i.push(ot(s,t,a,r))}catch(e){i.push({windowId:a,processed:!0})}})),rt({frames:i,sessionId:o,requestedFrameId:e.documentElement.dataset.requestedFrameId&&n}),delete e.documentElement.dataset.requestedFrameId}(e,o,t,r,n)}function Xe(e,t,r){const n=Ve.get(t);if(n&&n[e]){const t=n[e][r];t&&(globalThis.clearTimeout(t),delete n[e][r])}}function et(e,t){const r=Ve.get(e);r&&r.responseTimeouts&&(r.responseTimeouts[t]=globalThis.setTimeout((()=>rt({frames:[{windowId:t,processed:!0}],sessionId:e})),1e4))}function tt(e,t,r){e.forEach(((e,n)=>{const o=t+Ue+n;e.removeAttribute(_e.WIN_ID_ATTRIBUTE_NAME);try{nt(e.contentWindow,{method:Pe,windowId:o,sessionId:r})}catch(e){}})),e.forEach(((e,n)=>{const o=t+Ue+n;let i;try{i=e.contentDocument}catch(e){}if(i)try{tt(it(i),o,r)}catch(e){}}))}function rt(e){e.method=Me;try{qe.singlefile.processors.frameTree.initResponse(e)}catch(t){nt(qe,e,!0)}}function nt(e,t,r){if(e==qe&&Fe&&Fe.runtime&&Fe.runtime.sendMessage)Fe.runtime.sendMessage(t);else if(r){const r=new Be;e.postMessage(Ie+JSON.stringify({method:t.method,sessionId:t.sessionId}),"*",[r.port2]),r.port1.postMessage(t)}else e.postMessage(Ie+JSON.stringify(t),"*")}function ot(e,t,r,n){const o=_e.preProcessDoc(e,t,n),i=_e.serialize(e);_e.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,processed:!0}}function it(e){let t=Array.from(e.querySelectorAll(Le));return e.querySelectorAll("*").forEach((e=>{const r=_e.getShadowRoot(e);r&&(t=t.concat(...r.querySelectorAll(Le)))})),t}Ve||(Ve=globalThis.sessions=new Map),De&&(He="0",Fe&&Fe.runtime&&Fe.runtime.onMessage&&Fe.runtime.onMessage.addListener&&Fe.runtime.onMessage.addListener((e=>e.method==Me?(Ke(e),Promise.resolve({})):e.method==ze?(Xe("requestTimeouts",e.sessionId,e.windowId),et(e.sessionId,e.windowId),Promise.resolve({})):void 0))),We="message",$e=async e=>{if("string"==typeof e.data&&e.data.startsWith(Ie)){e.preventDefault(),e.stopPropagation();const t=JSON.parse(e.data.substring(Ie.length));t.method==Ne?(e.source&&nt(e.source,{method:ze,windowId:t.windowId,sessionId:t.sessionId}),De||(globalThis.stop(),t.options.loadDeferredImages&&ke(t.options),await Je(t))):t.method==ze?(Xe("requestTimeouts",t.sessionId,t.windowId),et(t.sessionId,t.windowId)):t.method==Pe?Qe(t):t.method==Me&&Ve.get(t.sessionId)&&(e.ports[0].onmessage=e=>Ke(e.data))}},Ge=!0,globalThis.addEventListener(We,$e,Ge);var at=Object.freeze({__proto__:null,getAsync:function(e){const t=Ye();return e=JSON.parse(JSON.stringify(e)),new Promise((r=>{Ve.set(t,{frames:[],requestTimeouts:{},responseTimeouts:{},resolve:e=>{e.sessionId=t,r(e)}}),Je({windowId:He,sessionId:t,options:e})}))},getSync:function(e){const t=Ye();e=JSON.parse(JSON.stringify(e)),Ve.set(t,{frames:[],requestTimeouts:{},responseTimeouts:{}}),function(e){const t=e.sessionId,r=globalThis._singleFile_waitForUserScript;delete globalThis._singleFile_cleaningUp,De||(He=globalThis.frameId=e.windowId);Ze(je,e.options,He,t),De||(e.options.userScriptEnabled&&r&&r(_e.ON_BEFORE_CAPTURE_EVENT_NAME),rt({frames:[ot(je,globalThis,He,e.options)],sessionId:t,requestedFrameId:je.documentElement.dataset.requestedFrameId&&He}),e.options.userScriptEnabled&&r&&r(_e.ON_AFTER_CAPTURE_EVENT_NAME),delete je.documentElement.dataset.requestedFrameId)}({windowId:He,sessionId:t,options:e});const r=Ve.get(t).frames;return r.sessionId=t,r},cleanup:function(e){Ve.delete(e),Qe({windowId:He,sessionId:e,options:{sessionId:e}})},initResponse:Ke,TIMEOUT_INIT_REQUEST_MESSAGE:Oe}),st=Object.freeze({__proto__:null,frameTree:at,hooksFrames:p,lazy:Re}),lt=Object.create,ct=Object.defineProperty,ut=Object.getOwnPropertyDescriptor,ht=Object.getOwnPropertyNames,dt=Object.getPrototypeOf,pt=Object.prototype.hasOwnProperty,mt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ft=(e,t)=>{for(var r in t)ct(e,r,{get:t[r],enumerable:!0})},gt=mt((e=>{var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");e.encode=function(e){if(0<=e&&e{var t=gt();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,a=e.length,s=0,l=0;do{if(r>=a)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),s+=(i&=31)<>1;return 1==(1&e)?-t:t}(s),n.rest=r}})),bt=mt((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,a,s=(i=function(t){var r=t,i=n(t);if(i){if(!i.path)return t;r=i.path}for(var a=e.isAbsolute(r),s=[],l=0,c=0;;){if(l=c,-1===(c=r.indexOf("/",l))){s.push(r.slice(l));break}for(s.push(r.slice(l,c));c=0;c--)"."===(u=s[c])?s.splice(c,1):".."===u?h++:h>0&&(""===u?(s.splice(c+1,h),h=0):(s.splice(c,2),h--));return""===(r=s.join("/"))&&(r=a?"/":"."),i?(i.path=r,o(i)):r},a=[],function(e){for(var t=0;t32&&a.pop(),n});function l(e,t){""===e&&(e="."),""===t&&(t=".");var i=n(t),a=n(e);if(a&&(e=a.path||"/"),i&&!i.scheme)return a&&(i.scheme=a.scheme),o(i);if(i||t.match(r))return t;if(a&&!a.host&&!a.path)return a.host=t,o(a);var l="/"===t.charAt(0)?t:s(e.replace(/\/+$/,"")+"/"+t);return a?(a.path=l,o(a)):l}e.normalize=s,e.join=l,e.isAbsolute=function(e){return"/"===e.charAt(0)||t.test(e)},e.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var 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 a=i.path.lastIndexOf("/");a>=0&&(i.path=i.path.substring(0,a+1))}t=l(o(i),t)}return s(t)}})),kt=mt((e=>{var t=bt(),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=bt();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,a=r.generatedColumn;return o>n||o==n&&a>=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})),wt=mt((e=>{var t=yt(),r=bt(),n=kt().ArraySet,o=vt().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 a=e.sourceContentFor(o);null!=a&&n.setSourceContent(o,a)})),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 a=this._sourceRoot;null!=a&&(i=r.relative(a,i));var s=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!=a&&(t.source=r.relative(a,t.source)),t.originalLine=n.line,t.originalColumn=n.column,null!=n.name&&(t.name=n.name))}var c=t.source;null!=c&&!s.has(c)&&s.add(c);var u=t.name;null!=u&&!l.has(u)&&l.add(u)}),this),this._sources=s,this._names=l,e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&(null!=o&&(t=r.join(o,t)),null!=a&&(t=r.relative(a,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,a=0,s=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-a),a=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})),xt={};ft(xt,{AtKeyword:()=>Tt,BadString:()=>_t,BadUrl:()=>Lt,CDC:()=>Dt,CDO:()=>Ut,Colon:()=>Ft,Comma:()=>Bt,Comment:()=>Yt,Delim:()=>Nt,Dimension:()=>Mt,EOF:()=>Et,Function:()=>St,Hash:()=>Ct,Ident:()=>At,LeftCurlyBracket:()=>$t,LeftParenthesis:()=>Vt,LeftSquareBracket:()=>jt,Number:()=>zt,Percentage:()=>Pt,RightCurlyBracket:()=>Gt,RightParenthesis:()=>Wt,RightSquareBracket:()=>Ht,Semicolon:()=>qt,String:()=>Rt,Url:()=>It,WhiteSpace:()=>Ot});var Et=0,At=1,St=2,Tt=3,Ct=4,Rt=5,_t=6,It=7,Lt=8,Nt=9,zt=10,Pt=11,Mt=12,Ot=13,Ut=14,Dt=15,Ft=16,qt=17,Bt=18,jt=19,Ht=20,Vt=21,Wt=22,$t=23,Gt=24,Yt=25;function Jt(e){return e>=48&&e<=57}function Qt(e){return Jt(e)||e>=65&&e<=70||e>=97&&e<=102}function Kt(e){return e>=65&&e<=90}function Zt(e){return function(e){return Kt(e)||function(e){return e>=97&&e<=122}(e)}(e)||function(e){return e>=128}(e)||95===e}function Xt(e){return Zt(e)||Jt(e)||45===e}function er(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}function tr(e){return 10===e||13===e||12===e}function rr(e){return tr(e)||32===e||9===e}function nr(e,t){return!(92!==e||tr(t)||0===t)}function or(e,t,r){return 45===e?Zt(t)||45===t||nr(t,r):!!Zt(e)||92===e&&nr(e,t)}function ir(e,t,r){return 43===e||45===e?Jt(t)?2:46===t&&Jt(r)?3:0:46===e?Jt(t)?2:0:Jt(e)?1:0}function ar(e){return 65279===e||65534===e?1:0}var sr=new Array(128),lr=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 wr=["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 xr(e=null,t){return null===e||e.length0?ar(t.charCodeAt(0)):0,o=xr(e.lines,r),i=xr(e.columns,r),a=e.startLine,s=e.startColumn;for(let e=n;e{})){let r=(e=String(e||"")).length,n=xr(this.offsetAndType,e.length+1),o=xr(this.balance,e.length+1),i=0,a=0,s=0,l=-1;for(this.offsetAndType=null,this.balance=null,t(e,((e,t,c)=>{switch(e){default:o[i]=r;break;case a:{let e=s&Ar;for(s=o[e],a=s>>Sr,o[i]=e,o[e++]=i;e>Sr:0}lookupOffset(e){return(e+=this.tokenIndex)0?e>Sr,this.tokenEnd=t&Ar):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e>Sr,this.tokenEnd=e&Ar):(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]&Ar: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>Sr,n,i,t)}}dump(){let e=new Array(this.tokenCount);return this.forEachToken(((t,r,n,o)=>{e[o]={idx:o,type:wr[t],chunk:this.source.substring(r,n),balance:this.balance[o]}})),e}};function Rr(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/),a=Math.max(1,t-n)-1,s=Math.min(t+n,i.length+1),l=Math.max(4,String(s).length)+1,c=0;(r+=(Nr.length-1)*(i[t-1].substr(0,r-1).match(/\t/g)||[]).length)>100&&(c=r-60+3,r=58);for(let e=a;e<=s;e++)e>=0&&e0&&i[e].length>c?"…":"")+i[e].substr(c,98)+(i[e].length>c+100-1?"…":""));return[o(a,t),new Array(r+l+2).join("-")+"^",o(t,s)].filter(Boolean).join("\n")}function Pr(e,t,r,n,o){return Object.assign(Lr("SyntaxError",e),{source:t,offset:r,line:n,column:o,sourceFragment:e=>zr({source:t,line:n,column:o},isNaN(e)?0:e),get formattedMessage(){return`Parse error: ${e}\n`+zr({source:t,line:n,column:o},2)}})}function Mr(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 Or=()=>{};function Ur(e){return function(){return this[e]()}}function Dr(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 Fr(e){let t="",r="",n=!1,o=Or,i=!1,a=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||Er(this),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,t,r){return this.computed||Er(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]}}}},s=Object.assign(new Cr,function(e){let t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:Dr(e.atrule),pseudo:Dr(e.pseudo),node:Dr(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]=Ur(e.parseContext[r])}return{config:t,...t,...t.node}}(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:Mr,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 Ir,createSingleNodeList:e=>(new Ir).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)=>dr(t,e,r),cmpStr:(e,r,n)=>pr(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,br(t,this.tokenStart));return this.eat(e),r},eat(e){if(this.tokenType!==e){let t=wr[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?a.getLocationRange(e,t,r):null,getLocationFromList(e){if(n){let t=this.getFirstListNode(e),n=this.getLastListNode(e);return a.getLocationRange(null!==t?t.loc.start.offset-a.startOffset:this.tokenStart,null!==n?n.loc.end.offset-a.startOffset:this.tokenStart,r)}return null},error(e,r){let n=typeof r<"u"&&r=0&&rr(e.charCodeAt(t));t--);return t+1}(t,t.length-1)):a.getLocation(this.tokenStart);throw new Pr(e||"Unexpected input",t,n.offset,n.line,n.column)}});return Object.assign((function(e,l){t=e,l=l||{},s.setSource(t,Rr),a.setSource(t,l.offset,l.line,l.column),r=l.filename||"",n=Boolean(l.positions),o="function"==typeof l.onParseError?l.onParseError:Or,i=!1,s.parseAtrulePrelude=!("parseAtrulePrelude"in l)||Boolean(l.parseAtrulePrelude),s.parseRulePrelude=!("parseRulePrelude"in l)||Boolean(l.parseRulePrelude),s.parseValue=!("parseValue"in l)||Boolean(l.parseValue),s.parseCustomProperty="parseCustomProperty"in l&&Boolean(l.parseCustomProperty);let{context:c="default",onComment:u}=l;if(!(c in s.context))throw new Error("Unknown context `"+c+"`");"function"==typeof u&&s.forEachToken(((e,r,n)=>{if(25===e){let e=s.getLocation(r,n),o=pr(t,n-2,n,"*/")?t.slice(r+2,n-2):t.slice(r+2,n);u(o,e)}}));let h=s.context[c].call(s,l);return s.eof||s.error(),h}),{SyntaxError:Pr,config:s.config})}var qr,Br,jr=(qr=wt(),Br=1,((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of ht(t))!pt.call(e,o)&&(r||"default"!==o)&&ct(e,o,{get:()=>t[o],enumerable:!(n=ut(t,o))||n.enumerable});return e})((e=>ct(e,"__esModule",{value:!0}))(ct(null!=qr?lt(dt(qr)):{},"default",!Br&&qr&&qr.__esModule?{get:()=>qr.default,enumerable:!0}:{value:qr,enumerable:!0})),qr)),Hr=new Set(["Atrule","Selector","Declaration"]);var Vr={};ft(Vr,{safe:()=>Qr,spec:()=>Jr});var Wr=(e,t)=>{if(9===e&&(e=t),"string"==typeof e){let t=e.charCodeAt(0);return t>127?32768:t<<8}return e},$r=[[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],["/","*"]],Gr=$r.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 Yr(e){let t=new Set(e.map((([e,t])=>Wr(e)<<16|Wr(t))));return function(e,r,n){let o=Wr(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 Jr=Yr($r),Qr=Yr(Gr);function Kr(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 Zr(e){Rr(e,((t,r,n)=>{this.token(t,e.slice(r,n))}))}function Xr(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(a,e)},tokenBefore:Qr,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 jr.SourceMapGenerator,r={line:1,column:0},n={line:0,column:0},o={line:1,column:0},i={generated:o},a=1,s=0,l=!1,c=e.node;e.node=function(e){if(e.loc&&e.loc.start&&Hr.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=a,r.column=s,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&&Hr.has(e.type)&&(o.line=a,o.column=s)};let u=e.emit;e.emit=function(e,t,r){for(let t=0;ti.node(e),children:Kr,token:(e,t)=>i.token(e,t),tokenize:Zr};return i.node(e),i.result()}}var{hasOwnProperty:en}=Object.prototype,tn=function(){};function rn(e){return"function"==typeof e?e:tn}function nn(e,t){return function(r,n,o){r.type===t&&e.call(this,r,n,o)}}function on(e,t){let r=t.structure,n=[];for(let e in r){if(!1===en.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 an(e,t){let r=e.fields.slice(),n=e.context,o="string"==typeof n;return t&&r.reverse(),function(e,i,a,s){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(s,!1):r.reduce(s,!1))return!0}else if(a(r))return!0}o&&(i[n]=l)}}function sn({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 ln(e){let t=function(e){let t={};for(let r in e.node)if(en.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]=on(0,n)}return t}(e),r={},n={},o=Symbol("break-walk"),i=Symbol("skip-node");for(let e in t)en.call(t,e)&&null!==t[e]&&(r[e]=an(t[e],!1),n[e]=an(t[e],!0));let a=sn(r),s=sn(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=tn,h=tn,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=rn(l.enter),h=rn(l.leave),l.reverse&&(d=n),l.visit)){if(a.hasOwnProperty(l.visit))d=l.reverse?s[l.visit]:a[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=nn(u,l.visit),h=nn(h,l.visit)}if(u===tn&&h===tn)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 cn(e){return e}function un(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=>un(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 un(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 hn(e,t){let r=cn,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)),un(e,r,n,o)}var dn={offset:0,line:1,column:1};function pn(e,t){let r=e&&e.loc&&e.loc[t];return r?"line"in r?mn(r):r:null}function mn({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 fn=function(e,t){let r=Lr("SyntaxReferenceError",e+(t?" `"+t+"`":""));return r.reference=t,r},gn=function(e,t,r,n){let o=Lr("SyntaxMatchError",e),{css:i,mismatchOffset:a,mismatchLength:s,start:l,end:c}=function(e,t){let r,n,o=e.tokens,i=e.longestMatch,a=i1?(r=pn(s||t,"end")||mn(dn,h),n=mn(r)):(r=pn(s,"start")||mn(pn(t,"start")||dn,h.slice(0,l)),n=pn(s,"end")||mn(r,h.substr(l,c))),{css:h,mismatchOffset:l,mismatchLength:c,start:r,end:n}}(n,r);return o.rawMessage=e,o.syntax=t?hn(t):"",o.css=i,o.mismatchOffset=a,o.mismatchLength=s,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},yn=new Map,bn=new Map,kn=function(e){if(yn.has(e))return yn.get(e);let t=e.toLowerCase(),r=yn.get(t);if(void 0===r){let e=xn(t,0),n=e?"":En(t,0);r=Object.freeze({basename:t.substr(n.length),name:t,prefix:n,vendor:n,custom:e})}return yn.set(e,r),r},vn=function(e){if(bn.has(e))return bn.get(e);let t=e,r=e[0];"/"===r?r="/"===e[1]?"//":"/":"_"!==r&&"*"!==r&&"$"!==r&&"#"!==r&&"+"!==r&&"&"!==r&&(r="");let n=xn(t,r.length);if(!n&&(t=t.toLowerCase(),bn.has(t))){let r=bn.get(t);return bn.set(e,r),r}let o=n?"":En(t,r.length),i=t.substr(0,r.length+o.length),a=Object.freeze({basename:t.substr(i.length),name:t.substr(r.length),hack:r,vendor:o,prefix:i,custom:n});return bn.set(e,a),a},wn=En;function xn(e,t){return t=t||0,e.length-t>=2&&45===e.charCodeAt(t)&&45===e.charCodeAt(t+1)}function En(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 An=45,Sn=!0;function Tn(e,t){return null!==e&&9===e.type&&e.value.charCodeAt(0)===t}function Cn(e,t,r){for(;null!==e&&(13===e.type||25===e.type);)e=r(++t);return t}function Rn(e,t,r,n){if(!e)return 0;let o=e.value.charCodeAt(t);if(43===o||o===An){if(r)return 0;t++}for(;t6)return 0}return n}function Nn(e,t,r){if(!e)return 0;for(;In(r(t),63);){if(++e>6)return 0;t++}return t}var zn=["unset","initial","inherit"],Pn=["calc(","-moz-calc(","-webkit-calc("],Mn=new Map([[2,22],[21,22],[19,20],[23,24]]);function On(e,t){return te.max)return!0}return!1}function Bn(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=Mn.get(e.type)}o++}while(e=t(o));return o}function jn(e){return function(t,r,n){return null===t?0:2===t.type&&Dn(t.value,Pn)?Bn(t,r):e(t,r,n)}}function Hn(e){return function(t){return null===t||t.type!==e?0:1}}function Vn(e){return e&&(e=new Set(e)),function(t,r,n){if(null===t||12!==t.type)return 0;let o=br(t.value,0);if(null!==e){let r=t.value.indexOf("\\",o),n=-1!==r&&Fn(t.value,r)?t.value.substring(o,r):t.value.substr(o);if(!1===e.has(n.toLowerCase()))return 0}return qn(n,t.value,o)?0:1}}function Wn(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 $n={"ident-token":Hn(1),"function-token":Hn(2),"at-keyword-token":Hn(3),"hash-token":Hn(4),"string-token":Hn(5),"bad-string-token":Hn(6),"url-token":Hn(7),"bad-url-token":Hn(8),"delim-token":Hn(9),"number-token":Hn(10),"percentage-token":Hn(11),"dimension-token":Hn(12),"whitespace-token":Hn(13),"CDO-token":Hn(14),"CDC-token":Hn(15),"colon-token":Hn(16),"semicolon-token":Hn(17),"comma-token":Hn(18),"[-token":Hn(19),"]-token":Hn(20),"(-token":Hn(21),")-token":Hn(22),"{-token":Hn(23),"}-token":Hn(24),string:Hn(5),ident:Hn(1),"custom-ident":function(e){if(null===e||1!==e.type)return 0;let t=e.value.toLowerCase();return Dn(t,zn)||Un(t,"default")?0:1},"custom-property-name":function(e){return null===e||1!==e.type||45!==On(e.value,0)||45!==On(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;rYn,generate:()=>hn,parse:()=>co,walk:()=>po});var Jn=123,Qn=new Uint8Array(128).map(((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0)),Kn={" ":1,"&&":2,"||":3,"|":4};function Zn(e){return e.substringToPos(e.findWsEnd(e.pos))}function Xn(e){let t=e.pos;for(;t=128||0===Qn[r])break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function eo(e){let t=e.pos;for(;t57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function to(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 ro(e){let t=null,r=null;return e.eat(Jn),t=eo(e),44===e.charCode()?(e.pos++,125!==e.charCode()&&(r=eo(e))):r=t,e.eat(125),{min:Number(t),max:r?Number(r):0}}function no(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()===Jn?ro(e):{min:1,max:0};break;case Jn:t=ro(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 oo(e){let t=e.peek();return""===t?null:{type:"Token",value:t}}function io(e){let t,r=null;return e.eat(60),t=Xn(e),40===e.charCode()&&41===e.nextCharCode()&&(e.pos+=2,t+="()"),91===e.charCodeAt(e.findWsEnd(e.pos))&&(Zn(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(eo(e)),Zn(e),e.eat(44),Zn(e),8734===e.charCode()?e.peek():(n=1,45===e.charCode()&&(e.peek(),n=-1),r=n*Number(eo(e))),e.eat(93),null===t&&null===r?null:{type:"Range",min:t,max:r}}(e)),e.eat(62),no(e,{type:"Type",name:t,opts:r})}function ao(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)=>Kn[e]-Kn[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 so(e){let t,r=[],n={},o=null,i=e.pos;for(;t=lo(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:ao(r,n)||" ",disallowEmpty:!1,explicit:!1}}function lo(e){let t=e.charCode();if(t<128&&1===Qn[t])return function(e){let t=Xn(e);return 40===e.charCode()?(e.pos++,{type:"Function",name:t}):no(e,{type:"Keyword",name:t})}(e);switch(t){case 93:break;case 91:return no(e,function(e){let t;return e.eat(91),t=so(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=Xn(e),e.eat(39),e.eat(62),no(e,{type:"Property",name:t})}(e):io(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 no(e,{type:"String",value:to(e)});case 32:case 9:case 10:case 13:case 12:return{type:"Spaces",value:Zn(e)};case 64:return t=e.nextCharCode(),t<128&&1===Qn[t]?(e.pos++,{type:"AtKeyword",name:Xn(e)}):oo(e);case 42:case 43:case 63:case 35:case 33:break;case Jn:if(t=e.nextCharCode(),t<48||t>57)return oo(e);break;default:return oo(e)}}function co(e){let t=new class{constructor(e){this.str=e,this.pos=0}charCodeAt(e){return et}}};function fo(e,t){return"string"==typeof e?function(e){let t=[];return Rr(e,((r,n,o)=>t.push({type:r,value:e.slice(n,o),node:null}))),t}(e):t.generate(e,mo)}var go={type:"Match"},yo={type:"Mismatch"},bo={type:"DisallowEmpty"};function ko(e,t,r){return t===go&&r===yo||e===go&&t===go&&r===go?e:("If"===e.type&&e.else===yo&&t===go&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:r})}function vo(e){return e.length>2&&40===e.charCodeAt(e.length-2)&&41===e.charCodeAt(e.length-1)}function wo(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&&vo(e.name)}function xo(e,t,r){switch(e){case" ":{let e=go;for(let r=t.length-1;r>=0;r--){e=ko(t[r],e,yo)}return e}case"|":{let e=yo,r=null;for(let n=t.length-1;n>=0;n--){let o=t[n];if(wo(o)&&(null===r&&n>0&&wo(t[n-1])&&(r=Object.create(null),e=ko({type:"Enum",map:r},go,e)),null!==r)){let e=(vo(o.name)?o.name.slice(0,-1):o.name).toLowerCase();if(!(e in r)){r[e]=o;continue}}r=null,e=ko(o,go,e)}return e}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let r=yo;for(let n=t.length-1;n>=0;n--){let o,i=t[n];o=t.length>1?xo(e,t.filter((function(e){return e!==i})),!1):go,r=ko(i,o,r)}return r}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let n=r?go:yo;for(let r=t.length-1;r>=0;r--){let o,i=t[r];o=t.length>1?xo(e,t.filter((function(e){return e!==i})),!0):go,n=ko(i,o,n)}return n}}}function Eo(e){if("function"==typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=xo(e.combinator,e.terms.map(Eo),!1);return e.disallowEmpty&&(t=ko(t,bo,yo)),t}case"Multiplier":return function(e){let t=go,r=Eo(e.term);if(0===e.max)r=ko(r,bo,yo),t=ko(r,null,yo),t.then=ko(go,go,t),e.comma&&(t.then.else=ko({type:"Comma",syntax:e},t,yo));else for(let n=e.min||1;n<=e.max;n++)e.comma&&t!==go&&(t=ko({type:"Comma",syntax:e},t,yo)),t=ko(r,ko(go,go,t),yo);if(0===e.min)t=ko(go,go,t);else for(let n=0;n=65&&o<=90&&(o|=32),o!==n)return!1}return!0}function Ro(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 _o(e){return null===e||(22===e.type||20===e.type||24===e.type||9===e.type)}function Io(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=yo;break}f=To;break}if((t=h.nextState)===bo){if(h.matchStack===k){t=yo;break}t=go}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=yo;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].*$/,"")),Co(r,e)){l(),t=go;break}}t=yo;break}case"AtKeyword":case"Function":if(null!==g&&Co(g.value,t.name)){l(),t=go;break}t=yo;break;case"Token":if(null!==g&&g.value===t.value){l(),t=go;break}t=yo;break;case"Comma":null!==g&&18===g.type?Ro(k.token)?t=yo:(l(),t=_o(g)?yo:go):t=Ro(k.token)||_o(g)?go:yo;break;case"String":let n="",m=y;for(;m"Type"===e.type&&e.name===t))}function Po(e,t){return Oo(this,e,(e=>"Property"===e.type&&e.name===t))}function Mo(e){return Oo(this,e,(e=>"Keyword"===e.type))}function Oo(e,t,r){let n=No.call(e,t);return null!==n&&n.some(r)}function Uo(e){return"node"in e?e.node:Uo(e.match[0])}function Do(e){return"node"in e?e.node:Do(e.match[e.match.length-1])}function Fo(e,t,r,n,o){let i=[];return null!==r.matched&&function r(a){if(null!==a.syntax&&a.syntax.type===n&&a.syntax.name===o){let r=Uo(a),n=Do(a);e.syntax.walk(t,(function(e,t,o){if(e===r){let e=new Ir;do{if(e.appendData(t.data),t.data===n)break;t=t.next}while(null!==t);i.push({parent:o,nodes:e})}}))}Array.isArray(a.match)&&a.match.forEach(r)}(r.matched),i}ft(Lo,{getTrace:()=>No,isKeyword:()=>Mo,isProperty:()=>Po,isType:()=>zo});var{hasOwnProperty:qo}=Object.prototype;function Bo(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}function jo(e){return Boolean(e)&&Bo(e.offset)&&Bo(e.line)&&Bo(e.column)}function Ho(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!==qo.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(jo(r.loc.start)){if(jo(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:Ho(e,n)}}var Wo=Ao("inherit | initial | unset"),$o=Ao("inherit | initial | unset | <-ms-legacy-expression>");function Go(e,t,r){let n={};for(let o in e)e[o].syntax&&(n[o]=r?e[o].syntax:hn(e[o].syntax,{compact:t}));return n}function Yo(e,t,r){let n={};for(let[o,i]of Object.entries(e))n[o]={prelude:i.prelude&&(r?i.prelude.syntax:hn(i.prelude.syntax,{compact:t})),descriptors:i.descriptors&&Go(i.descriptors,t,r)};return n}function Jo(e,t,r){return{matched:e,iterations:r,error:t,...Lo}}function Qo(e,t,r,n){let o,i=fo(r,e.syntax);return function(e){for(let t=0;t(Object.defineProperty(i,"syntax",{value:co(e)}),i.syntax)}):i.syntax=e,Object.defineProperty(i,"match",{get:()=>(Object.defineProperty(i,"match",{value:Ao(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===$n["-ms-legacy-expression"]&&(this.valueCommonSyntax=$o))}checkAtruleName(e){if(!this.getAtrule(e))return new fn("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=kn(t);return n.descriptors?n.descriptors[o.name]||n.descriptors[o.basename]?void 0:new fn("Unknown at-rule descriptor",t):new SyntaxError("At-rule `@"+e+"` has no known descriptors")}checkPropertyName(e){if(!this.getProperty(e))return new fn("Unknown property",e)}matchAtrulePrelude(e,t){let r=this.checkAtrulePrelude(e,t);return r?Jo(null,r):t?Qo(this,this.getAtrule(e).prelude,t,!1):Jo(null,null)}matchAtruleDescriptor(e,t,r){let n=this.checkAtruleDescriptorName(e,t);if(n)return Jo(null,n);let o=this.getAtrule(e),i=kn(t);return Qo(this,o.descriptors[i.name]||o.descriptors[i.basename],r,!1)}matchDeclaration(e){return"Declaration"!==e.type?Jo(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,t){if(vn(e).custom)return Jo(null,new Error("Lexer matching doesn't applicable for custom properties"));let r=this.checkPropertyName(e);return r?Jo(null,r):Qo(this,this.getProperty(e),t,!0)}matchType(e,t){let r=this.getType(e);return r?Qo(this,r,t,!1):Jo(null,new fn("Unknown type",e))}match(e,t){return"string"==typeof e||e&&e.type?(("string"==typeof e||!e.match)&&(e=this.createDescriptor(e,"Type","anonymous")),Qo(this,e,t,!1)):Jo(null,new fn("Bad syntax"))}findValueFragments(e,t,r,n){return Fo(this,t,this.matchProperty(e,t),r,n)}findDeclarationValueFragments(e,t,r){return Fo(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=kn(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=vn(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,a){if(i.has(o))return i.get(o);i.set(o,!1),null!==a.syntax&&po(a.syntax,(function(a){if("Type"!==a.type&&"Property"!==a.type)return;let s="Type"===a.type?n.types:n.properties,l="Type"===a.type?t:r;(!hasOwnProperty.call(s,a.name)||e(n,a.name,l,s[a.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:Go(this.types,!t,e),properties:Go(this.properties,!t,e),atrules:Yo(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}},{hasOwnProperty:Zo}=Object.prototype,Xo={generic:!0,types:ni,atrules:{prelude:oi,descriptors:oi},properties:ni,parseContext:function(e,t){return Object.assign(e,t)},scope:function e(t,r){for(let n in r)Zo.call(r,n)&&(ei(t[n])?e(t[n],ti(r[n])):t[n]=ti(r[n]));return t},atrule:["parse"],pseudo:["parse"],node:["name","structure","parse","generate","walkContext"]};function ei(e){return e&&e.constructor===Object}function ti(e){return ei(e)?{...e}:e}function ri(e,t){return"string"==typeof t&&/^\s*\|/.test(t)?"string"==typeof e?e+t:t.replace(/^\s*\|\s*/,""):t||null}function ni(e,t){if("string"==typeof t)return ri(e,t);let r={...e};for(let n in t)Zo.call(t,n)&&(r[n]=ri(Zo.call(e,n)?e[n]:void 0,t[n]));return r}function oi(e,t){let r=ni(e,t);return!ei(r)||Object.keys(r).length?r:null}function ii(e,t,r){for(let n in r)if(!1!==Zo.call(r,n))if(!0===r[n])n in t&&Zo.call(t,n)&&(e[n]=ti(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(ei(r[n])){let o={};for(let t in e[n])o[t]=ii({},e[n][t],r[n]);for(let e in t[n])o[e]=ii(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&&ii(o[t],r,i);for(let e in t[n])Zo.call(t[n],e)&&(o[e]||(o[e]={}),t[n]&&t[n][e]&&ii(o[e],t[n][e],i));e[n]=o}return e}var ai=(e,t)=>ii(e,t,Xo);function si(e){let t=Fr(e),r=ln(e),n=Xr(e),{fromPlainObject:o,toPlainObject:i}=function(e){return{fromPlainObject:function(t){return e(t,{enter:function(e){e.children&&!(e.children instanceof Ir)&&(e.children=(new Ir).fromArray(e.children))}}),t},toPlainObject:function(t){return e(t,{leave:function(e){e.children&&e.children instanceof Ir&&(e.children=e.children.toArray())}}),t}}}(r),a={lexer:null,createLexer:e=>new Ko(e,a,a.lexer.structure),tokenize:Rr,parse:t,generate:n,walk:r,find:r.find,findLast:r.findLast,findAll:r.findAll,fromPlainObject:o,toPlainObject:i,fork(t){let r=ai({},e);return si("function"==typeof t?t(r,Object.assign):ai(r,t))}};return a.lexer=new Ko({generic:!0,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},a),a}var li=e=>si(ai({},e)),ci={};ft(ci,{AnPlusB:()=>ui,Atrule:()=>Ei,AtrulePrelude:()=>Li,AttributeSelector:()=>Ui,Block:()=>Vi,Brackets:()=>ea,CDC:()=>ia,CDO:()=>ua,ClassSelector:()=>fa,Combinator:()=>va,Comment:()=>Sa,Declaration:()=>Ia,DeclarationList:()=>Ba,Dimension:()=>Ga,Function:()=>Za,Hash:()=>os,IdSelector:()=>fs,Identifier:()=>us,MediaFeature:()=>vs,MediaQuery:()=>Ss,MediaQueryList:()=>Is,Nth:()=>Ms,Number:()=>qs,Operator:()=>Ws,Parentheses:()=>Qs,Percentage:()=>tl,PseudoClassSelector:()=>al,PseudoElementSelector:()=>dl,Ratio:()=>bl,Raw:()=>Al,Rule:()=>Il,Selector:()=>Dl,SelectorList:()=>Hl,String:()=>Jl,StyleSheet:()=>nc,TypeSelector:()=>uc,UnicodeRange:()=>gc,Url:()=>Sc,Value:()=>zc,WhiteSpace:()=>Dc});var ui={};ft(ui,{generate:()=>xi,name:()=>ki,parse:()=>wi,structure:()=>vi});var hi=43,di=45,pi=110,mi=!0;function fi(e,t){let r=this.tokenStart+e,n=this.charCodeAt(r);for((n===hi||n===di)&&(t&&this.error("Number sign is not allowed"),r++);r0&&this.skip(e),0===t&&(r=this.charCodeAt(this.tokenStart),r!==hi&&r!==di&&this.error("Number sign is expected")),gi.call(this,0!==t),t===di?"-"+this.consume(10):this.consume(10)}var ki="AnPlusB",vi={a:[String,null],b:[String,null]};function wi(){let e=this.tokenStart,t=null,r=null;if(10===this.tokenType)gi.call(this,false),r=this.consume(10);else if(1===this.tokenType&&this.cmpChar(this.tokenStart,di))switch(t="-1",yi.call(this,1,pi),this.tokenEnd-this.tokenStart){case 2:this.next(),r=bi.call(this);break;case 3:yi.call(this,2,di),this.next(),this.skipSC(),gi.call(this,mi),r="-"+this.consume(10);break;default:yi.call(this,2,di),fi.call(this,3,mi),this.next(),r=this.substrToCursor(e+2)}else if(1===this.tokenType||this.isDelim(hi)&&1===this.lookupType(1)){let n=0;switch(t="1",this.isDelim(hi)&&(n=1,this.next()),yi.call(this,0,pi),this.tokenEnd-this.tokenStart){case 1:this.next(),r=bi.call(this);break;case 2:yi.call(this,1,di),this.next(),this.skipSC(),gi.call(this,mi),r="-"+this.consume(10);break;default:yi.call(this,1,di),fi.call(this,2,mi),this.next(),r=this.substrToCursor(e+n+1)}}else if(12===this.tokenType){let n=this.charCodeAt(this.tokenStart),o=n===hi||n===di,i=this.tokenStart+o;for(;iIi,name:()=>Ti,parse:()=>_i,structure:()=>Ri,walkContext:()=>Ci});var Ti="Atrule",Ci="atrule",Ri={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function _i(){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),Ai):Ai.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(Si.call(this))}return{type:"Atrule",loc:this.getLocation(r,this.tokenStart),name:e,prelude:n,block:o}}function Ii(e){this.token(3,"@"+e.name),null!==e.prelude&&this.node(e.prelude),e.block?this.node(e.block):this.token(17,";")}var Li={};ft(Li,{generate:()=>Oi,name:()=>Ni,parse:()=>Mi,structure:()=>Pi,walkContext:()=>zi});var Ni="AtrulePrelude",zi="atrulePrelude",Pi={children:[[]]};function Mi(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 Oi(e){this.children(e)}var Ui={};ft(Ui,{generate:()=>Hi,name:()=>qi,parse:()=>ji,structure:()=>Bi});function Di(){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 Fi(){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 qi="AttributeSelector",Bi={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function ji(){let e,t=this.tokenStart,r=null,n=null,o=null;return this.eat(19),this.skipSC(),e=Di.call(this),this.skipSC(),20!==this.tokenType&&(1!==this.tokenType&&(r=Fi.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 Hi(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 Vi={};function Wi(e){return this.Raw(e,null,!0)}function $i(){return this.parseWithFallback(this.Rule,Wi)}function Gi(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function Yi(){if(17===this.tokenType)return Gi.call(this,this.tokenIndex);let e=this.parseWithFallback(this.Declaration,Gi);return 17===this.tokenType&&this.next(),e}ft(Vi,{generate:()=>Xi,name:()=>Ji,parse:()=>Zi,structure:()=>Ki,walkContext:()=>Qi});var Ji="Block",Qi="block",Ki={children:[["Atrule","Rule","Declaration"]]};function Zi(e){let t=e?Yi:$i,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,Wi));break;default:n.push(t.call(this))}return this.eof||this.eat(24),{type:"Block",loc:this.getLocation(r,this.tokenStart),children:n}}function Xi(e){this.token(23,"{"),this.children(e,(e=>{"Declaration"===e.type&&this.token(17,";")})),this.token(24,"}")}var ea={};ft(ea,{generate:()=>oa,name:()=>ta,parse:()=>na,structure:()=>ra});var ta="Brackets",ra={children:[[]]};function na(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 oa(e){this.token(9,"["),this.children(e),this.token(9,"]")}var ia={};ft(ia,{generate:()=>ca,name:()=>aa,parse:()=>la,structure:()=>sa});var aa="CDC",sa=[];function la(){let e=this.tokenStart;return this.eat(15),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function ca(){this.token(15,"--\x3e")}var ua={};ft(ua,{generate:()=>ma,name:()=>ha,parse:()=>pa,structure:()=>da});var ha="CDO",da=[];function pa(){let e=this.tokenStart;return this.eat(14),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function ma(){this.token(14,"\x3c!--")}var fa={};ft(fa,{generate:()=>ka,name:()=>ga,parse:()=>ba,structure:()=>ya});var ga="ClassSelector",ya={name:String};function ba(){return this.eatDelim(46),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function ka(e){this.token(9,"."),this.token(1,e.name)}var va={};ft(va,{generate:()=>Aa,name:()=>wa,parse:()=>Ea,structure:()=>xa});var wa="Combinator",xa={name:String};function Ea(){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 Aa(e){this.tokenize(e.name)}var Sa={};ft(Sa,{generate:()=>_a,name:()=>Ta,parse:()=>Ra,structure:()=>Ca});var Ta="Comment",Ca={value:String};function Ra(){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 _a(e){this.token(25,"/*"+e.value+"*/")}var Ia={};ft(Ia,{generate:()=>Da,name:()=>Pa,parse:()=>Ua,structure:()=>Oa,walkContext:()=>Ma});function La(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function Na(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function za(){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 Pa="Declaration",Ma="declaration",Oa={important:[Boolean,String],property:String,value:["Value","Raw"]};function Ua(){let e,t=this.tokenStart,r=this.tokenIndex,n=Fa.call(this),o=xn(n),i=o?this.parseCustomProperty:this.parseValue,a=o?Na:La,s=!1;this.skipSC(),this.eat(16);let l=this.tokenIndex;if(o||this.skipSC(),e=i?this.parseWithFallback(za,a):a.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)&&(s=qa.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:s,property:n,value:e}}function Da(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 Fa(){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 qa(){this.eat(9),this.skipSC();let e=this.consume(1);return"important"===e||e}var Ba={};function ja(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}ft(Ba,{generate:()=>$a,name:()=>Ha,parse:()=>Wa,structure:()=>Va});var Ha="DeclarationList",Va={children:[["Declaration"]]};function Wa(){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,ja))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function $a(e){this.children(e,(e=>{"Declaration"===e.type&&this.token(17,";")}))}var Ga={};ft(Ga,{generate:()=>Ka,name:()=>Ya,parse:()=>Qa,structure:()=>Ja});var Ya="Dimension",Ja={value:String,unit:String};function Qa(){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 Ka(e){this.token(12,e.value+e.unit)}var Za={};ft(Za,{generate:()=>ns,name:()=>Xa,parse:()=>rs,structure:()=>ts,walkContext:()=>es});var Xa="Function",es="function",ts={name:String,children:[[]]};function rs(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 ns(e){this.token(2,e.name+"("),this.children(e),this.token(22,")")}var os={};ft(os,{generate:()=>cs,name:()=>as,parse:()=>ls,structure:()=>ss,xxx:()=>is});var is="XXX",as="Hash",ss={value:String};function ls(){let e=this.tokenStart;return this.eat(4),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function cs(e){this.token(4,"#"+e.value)}var us={};ft(us,{generate:()=>ms,name:()=>hs,parse:()=>ps,structure:()=>ds});var hs="Identifier",ds={name:String};function ps(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function ms(e){this.token(1,e.name)}var fs={};ft(fs,{generate:()=>ks,name:()=>gs,parse:()=>bs,structure:()=>ys});var gs="IdSelector",ys={name:String};function bs(){let e=this.tokenStart;return this.eat(4),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function ks(e){this.token(9,"#"+e.name)}var vs={};ft(vs,{generate:()=>As,name:()=>ws,parse:()=>Es,structure:()=>xs});var ws="MediaFeature",xs={name:String,value:["Identifier","Number","Dimension","Ratio",null]};function Es(){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 As(e){this.token(21,"("),this.token(1,e.name),null!==e.value&&(this.token(16,":"),this.node(e.value)),this.token(22,")")}var Ss={};ft(Ss,{generate:()=>_s,name:()=>Ts,parse:()=>Rs,structure:()=>Cs});var Ts="MediaQuery",Cs={children:[["Identifier","MediaFeature","WhiteSpace"]]};function Rs(){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 _s(e){this.children(e)}var Is={};ft(Is,{generate:()=>Ps,name:()=>Ls,parse:()=>zs,structure:()=>Ns});var Ls="MediaQueryList",Ns={children:[["MediaQuery"]]};function zs(){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 Ps(e){this.children(e,(()=>this.token(18,",")))}var Ms={};ft(Ms,{generate:()=>Fs,name:()=>Os,parse:()=>Ds,structure:()=>Us});var Os="Nth",Us={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function Ds(){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 Fs(e){this.node(e.nth),null!==e.selector&&(this.token(1,"of"),this.node(e.selector))}var qs={};ft(qs,{generate:()=>Vs,name:()=>Bs,parse:()=>Hs,structure:()=>js});var Bs="Number",js={value:String};function Hs(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(10)}}function Vs(e){this.token(10,e.value)}var Ws={};ft(Ws,{generate:()=>Js,name:()=>$s,parse:()=>Ys,structure:()=>Gs});var $s="Operator",Gs={value:String};function Ys(){let e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function Js(e){this.tokenize(e.value)}var Qs={};ft(Qs,{generate:()=>el,name:()=>Ks,parse:()=>Xs,structure:()=>Zs});var Ks="Parentheses",Zs={children:[[]]};function Xs(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 el(e){this.token(21,"("),this.children(e),this.token(22,")")}var tl={};ft(tl,{generate:()=>il,name:()=>rl,parse:()=>ol,structure:()=>nl});var rl="Percentage",nl={value:String};function ol(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(11)}}function il(e){this.token(11,e.value+"%")}var al={};ft(al,{generate:()=>hl,name:()=>sl,parse:()=>ul,structure:()=>cl,walkContext:()=>ll});var sl="PseudoClassSelector",ll="function",cl={name:String,children:[["Raw"],null]};function ul(){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 hl(e){this.token(16,":"),null===e.children?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(22,")"))}var dl={};ft(dl,{generate:()=>yl,name:()=>pl,parse:()=>gl,structure:()=>fl,walkContext:()=>ml});var pl="PseudoElementSelector",ml="function",fl={name:String,children:[["Raw"],null]};function gl(){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 yl(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 bl={};ft(bl,{generate:()=>El,name:()=>vl,parse:()=>xl,structure:()=>wl});function kl(){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}ft(Al,{generate:()=>_l,name:()=>Tl,parse:()=>Rl,structure:()=>Cl});var Tl="Raw",Cl={value:String};function Rl(e,t,r){let n,o=this.getTokenStart(e);return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),n=r&&this.tokenStart>o?Sl.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(o,n),value:this.substring(o,n)}}function _l(e){this.tokenize(e.value)}var Il={};function Ll(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function Nl(){let e=this.SelectorList();return"Raw"!==e.type&&!1===this.eof&&23!==this.tokenType&&this.error(),e}ft(Il,{generate:()=>Ul,name:()=>zl,parse:()=>Ol,structure:()=>Ml,walkContext:()=>Pl});var zl="Rule",Pl="rule",Ml={prelude:["SelectorList","Raw"],block:["Block"]};function Ol(){let e,t,r=this.tokenIndex,n=this.tokenStart;return e=this.parseRulePrelude?this.parseWithFallback(Nl,Ll):Ll.call(this,r),t=this.Block(!0),{type:"Rule",loc:this.getLocation(n,this.tokenStart),prelude:e,block:t}}function Ul(e){this.node(e.prelude),this.node(e.block)}var Dl={};ft(Dl,{generate:()=>jl,name:()=>Fl,parse:()=>Bl,structure:()=>ql});var Fl="Selector",ql={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};function Bl(){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 jl(e){this.children(e)}var Hl={};ft(Hl,{generate:()=>Yl,name:()=>Vl,parse:()=>Gl,structure:()=>$l,walkContext:()=>Wl});var Vl="SelectorList",Wl="selector",$l={children:[["Selector","Raw"]]};function Gl(){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 Yl(e){this.children(e,(()=>this.token(18,",")))}var Jl={};ft(Jl,{generate:()=>rc,name:()=>Xl,parse:()=>tc,structure:()=>ec});var Ql={};ft(Ql,{decode:()=>Kl,encode:()=>Zl});function Kl(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),nr(92,n)){let t=r-1,n=gr(e,t);r=n-1,i+=vr(e.substring(t+1,n))}else 13===n&&10===e.charCodeAt(r+1)&&r++}else i+=e[r]}return i}function Zl(e,t){let r=t?"'":'"',n=t?39:34,o="",i=!1;for(let t=0;tcc,name:()=>ic,parse:()=>lc,structure:()=>sc,walkContext:()=>ac});function oc(e){return this.Raw(e,null,!1)}var ic="StyleSheet",ac="stylesheet",sc={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function lc(){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,oc);break;default:e=this.parseWithFallback(this.Rule,oc)}r.push(e)}return{type:"StyleSheet",loc:this.getLocation(t,this.tokenStart),children:r}}function cc(e){this.children(e)}var uc={};ft(uc,{generate:()=>fc,name:()=>dc,parse:()=>mc,structure:()=>pc});function hc(){1!==this.tokenType&&!1===this.isDelim(42)&&this.error("Identifier or asterisk is expected"),this.next()}var dc="TypeSelector",pc={name:String};function mc(){let e=this.tokenStart;return this.isDelim(124)?(this.next(),hc.call(this)):(hc.call(this),this.isDelim(124)&&(this.next(),hc.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function fc(e){this.tokenize(e.name)}var gc={};ft(gc,{generate:()=>Ac,name:()=>wc,parse:()=>Ec,structure:()=>xc});function yc(e,t){let r=0;for(let n=this.tokenStart+e;n6&&this.error("Too many hex digits",n)}return this.next(),r}function bc(e){let t=0;for(;this.isDelim(63);)++t>e&&this.error("Too many question marks"),this.next()}function kc(e){this.charCodeAt(this.tokenStart)!==e&&this.error((43===e?"Plus sign":"Hyphen minus")+" is expected")}function vc(){let e=0;switch(this.tokenType){case 10:if(e=yc.call(this,1,!0),this.isDelim(63)){bc.call(this,6-e);break}if(12===this.tokenType||10===this.tokenType){kc.call(this,45),yc.call(this,1,!1);break}break;case 12:e=yc.call(this,1,!0),e>0&&bc.call(this,6-e);break;default:if(this.eatDelim(43),1===this.tokenType){e=yc.call(this,0,!0),e>0&&bc.call(this,6-e);break}if(this.isDelim(63)){this.next(),bc.call(this,5);break}this.error("Hex digit or question mark is expected")}}var wc="UnicodeRange",xc={value:String};function Ec(){let e=this.tokenStart;return this.eatIdent("u"),vc.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function Ac(e){this.tokenize(e.value)}var Sc={};ft(Sc,{generate:()=>Nc,name:()=>_c,parse:()=>Lc,structure:()=>Ic});var Tc={};ft(Tc,{decode:()=>Cc,encode:()=>Rc});function Cc(e){let t=e.length,r=4,n=41===e.charCodeAt(t-1)?t-2:t-1,o="";for(;rUc,name:()=>Pc,parse:()=>Oc,structure:()=>Mc});var Pc="Value",Mc={children:[[]]};function Oc(){let e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}}function Uc(e){this.children(e)}var Dc={};ft(Dc,{generate:()=>Hc,name:()=>qc,parse:()=>jc,structure:()=>Bc});var Fc=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),qc="WhiteSpace",Bc={value:String};function jc(){return this.eat(13),Fc}function Hc(e){this.token(13,e.value)}var Vc={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":"