@applitools/dom-snapshot 4.11.9 → 4.11.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/pollResult.js +1 -1
- package/dist/pollResultCjs.js +1 -1
- package/dist/processPage.js +3 -3
- package/dist/processPagePoll.js +3 -3
- package/dist/processPagePollCjs.js +3 -3
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @applitools/dom-snapshot@4.11.
|
|
2
|
-
"use strict";function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t=function(){const e=function(e){return function(){function t(e,t=0){const n=e.charCodeAt(t);return n>=55296&&n<56320?1024*(n-55296)+(e.charCodeAt(t+1)-56320)+65536:56320<=n&&n<=57343?-1:n}var n=function(e,n){const r=[];let o=0;for(let i=0;i<e.length;++i){const a=t(e,i);let s=0;a>0&&(s=a<128?1:a<2048?2:a<65536?3:a<2097152?4:a<67108864?5:6),o+s>n?(r.push(i),o=s):o+=s}return r};const r=n,o="WIP",i="SUCCESS",a="SUCCESS_CHUNKED",s="ERROR";var l=function(e,t,n={}){const l=function(e,{chunkByteLength:t=0}={}){if(e){if(e.value){if(t){if(!e.chunks)try{const n=JSON.stringify(e.value);e.chunks=r(n,t),e.chunks.length>0&&(e.from=0,e.value=n)}catch(e){return{status:s,error:e.message}}if(e.from>=0)return{status:a,value:e.value.substring(e.from,e.from=e.chunks.shift()),done:!e.from}}return{status:i,value:e.value}}return e.error?{status:s,error:e.error}:{status:o}}return{status:s,error:"unexpected poll request received - cannot find state of current operation"}}((e=e||{})[t],n);return(l.status===i||l.status===s||l.status===a&&l.done)&&(e[t]=null),l};const c=l;var u={chunkify:n,pollify:function(e,t,n){return r=>function(){return t[n]||(t[n]={},Promise.resolve().then((()=>e.apply(null,arguments))).then((e=>t[n].value=e)).catch((e=>t[n].error=e.message))),c(t,n,r)}},poll:l,absolutizeUrl:function(e,t){if(function(e){try{return new URL(e),!0}catch(e){return!1}}(e))return e;let n=!0;try{n=e!==decodeURI(e)}catch(e){n=!0}try{const r=new URL(e,t).href;return n?r:decodeURI(r)}catch(t){return n?e:decodeURI(e)}},isInlineFrame:function(e){return e.contentDocument&&e.contentDocument.location&&!/^https?:$/.test(e.contentDocument.location.protocol)},isAccessibleFrame:function(e){try{const t=e.contentDocument;return Boolean(t&&t.defaultView&&t.defaultView.frameElement)}catch(e){return!1}}},h={},d=h.addElementIds=function(t){var n=function(){var t=function(t){var n=t&&t[0]||null;return!(n&&("isConnected"in window.Node.prototype?n.isConnected:e.documentElement.contains?e.documentElement.contains(n):n.ownerDocument.documentElement.contains(n)))},n=t,r=function(e){if(!e.hasAttribute("data-applitools-fallback-selector")){if(n([e]))throw new Error("The element is not connected to the DOM: "+function(e){var t=e.attributes,n=e.tagName,r=e.children.length,o=[].slice.call(t).map((function(e){return e.name+'="'+e.value+'"'})).join(" ");return"<"+n+" "+o+(r?">":"/>")}(e));e.setAttribute("data-applitools-fallback-selector",function(e){for(var t=[];e&&e.nodeType===Node.ELEMENT_NODE;)try{var n,r=e.tagName.toLowerCase(),o=[].slice.call((null==(n=e.parentNode)?void 0:n.children)||[]).indexOf(e);o>-1&&(r+=":nth-child("+(o+1)+")"),t.unshift(r),e=e.parentNode}catch(e){break}return t.length?t.join(" > "):"html"}(e))}},o=t;function i(t,n){if(o([t])){var a=function(e){if(null==e||!e.getAttribute)throw new Error("invalid element: "+JSON.stringify(e));var t=e.getAttribute("data-applitools-fallback-selector");if(!t)throw new Error("Failed to recover from stale element");return t}(t),s=e.querySelectorAll(a);if(!s||1!==s.length)throw new Error("Failed to recover from stale element - selector found: "+a);var l=s[0];return l.setAttribute("data-applitools-selector",n),l.setAttribute("data-applitools-recovered",!0),i(l,n)}r(t);var c=t.getAttribute("data-applitools-selector"),u=c?c+" "+n:n;return t.setAttribute("data-applitools-selector",u),'[data-applitools-selector~="'+n+'"]'}return function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}((function(t){return t.map((function(t){var n=t[0],r=t[1];return n.map((function(t){var n=function(t){var n=[t];if(t.getRootNode)for(var r=t.getRootNode();r!==e&&r.constructor&&"ShadowRoot"===r.constructor.name;r=r.host.getRootNode())n.push(r.host);return n}(t);return n.map((function(e){return i(e,r)}))}))}))}))}();return n(t)};h.addFallbackSelectorIfNeeded=function(t){var n;return((n=function(t){if(!t.hasAttribute("data-applitools-fallback-selector")){if(function(t){var n=t&&t[0]||null;return!(n&&("isConnected"in window.Node.prototype?n.isConnected:e.documentElement.contains?e.documentElement.contains(n):n.ownerDocument.documentElement.contains(n)))}([t]))throw new Error("The element is not connected to the DOM: "+function(e){var t=e.attributes,n=e.tagName,r=e.children.length,o=[].slice.call(t).map((function(e){return e.name+'="'+e.value+'"'})).join(" ");return"<"+n+" "+o+(r?">":"/>")}(t));t.setAttribute("data-applitools-fallback-selector",function(e){for(var t=[];e&&e.nodeType===Node.ELEMENT_NODE;)try{var n,r=e.tagName.toLowerCase(),o=[].slice.call((null==(n=e.parentNode)?void 0:n.children)||[]).indexOf(e);o>-1&&(r+=":nth-child("+(o+1)+")"),t.unshift(r),e=e.parentNode}catch(e){break}return t.length?t.join(" > "):"html"}(t))}})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n)(t)},h.addPageMarker=function(t){var n,r,o=(r=function(e){var t=void 0===e?[]:e,n=t[0],r=t[1],o=Object.keys(r).sort(),i=o.reduce((function(e,t){return e[t]={value:n.style.getPropertyValue(t),important:Boolean(n.style.getPropertyPriority(t))},e}),{});return o.forEach((function(e){n.style.setProperty(e,"string"!=typeof r[e]&&r[e]?r[e].value:r[e],r[e]&&r[e].important?"important":"")})),i},n=function(t){var n=t[0],o=n.mask,i=n.size,a=void 0===i?1:i,s={1:"rgb(0, 0, 0)",0:"rgb(255, 255, 255)"},l=a,c=e.createElement("div");c.setAttribute("data-applitools-marker",""),c.style.setProperty("position","fixed","important"),c.style.setProperty("top","0","important"),c.style.setProperty("left","0","important"),c.style.setProperty("box-sizing","content-box","important"),c.style.setProperty("padding",l+"px","important"),c.style.setProperty("background","rgb(128, 128, 128)","important"),c.style.setProperty("z-index","2147483647","important");for(var u,h=0;h<o.length;h+=u){for(u=1;o[h]===o[h+u];)++u;var d=o[h],p=e.createElement("div");p.style.setProperty("display","block","important"),p.style.setProperty("float","left","important"),p.style.setProperty("width",u*a+"px","important"),p.style.setProperty("height",a+"px","important"),p.style.setProperty("background",s[d],"important"),c.appendChild(p)}var m={value:"none",important:!0},f=r([e.documentElement,{transform:m,"-webkit-transform":m}]),g=r([e.body,{transform:m,"-webkit-transform":m}]);return e.documentElement.setAttribute("data-applitools-original-transforms",JSON.stringify(f)),e.body.setAttribute("data-applitools-original-transforms",JSON.stringify(g)),e.body.appendChild(c),{mask:o,size:a,offset:l}},n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n);return o(t)},h.blurElement=function(t){var n;return((n=function(t){var n=(void 0===t?[]:t)[0]||e.activeElement;return n&&n.blur(),n})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n)(t)},h.cleanupElementIds=function(t){var n;return((n=function(t){(t=t&&t[0])&&"function"==typeof t.forEach&&t.forEach((function(t){if(t.removeAttribute("data-applitools-selector"),t.getRootNode)try{for(var n=t.getRootNode();n!==e&&n.constructor&&"ShadowRoot"===n.constructor.name;n=n.host.getRootNode())n.host.removeAttribute("data-applitools-selector")}catch(t){}}))})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n)(t)},h.cleanupPageMarker=function(t){var n,r,o=(r=function(e){var t=void 0===e?[]:e,n=t[0],r=t[1],o=Object.keys(r).sort(),i=o.reduce((function(e,t){return e[t]={value:n.style.getPropertyValue(t),important:Boolean(n.style.getPropertyPriority(t))},e}),{});return o.forEach((function(e){n.style.setProperty(e,"string"!=typeof r[e]&&r[e]?r[e].value:r[e],r[e]&&r[e].important?"important":"")})),i},(n=function(){var t=e.querySelector("[data-applitools-marker]");t&&e.body.removeChild(t);var n=e.documentElement.getAttribute("data-applitools-original-transforms"),o=e.body.getAttribute("data-applitools-original-transforms");n&&r([e.documentElement,JSON.parse(n)]),o&&r([e.body,JSON.parse(o)])})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n);return o(t)},h.focusElement=function(e){var t;return((t=function(e){var t=(void 0===e?[]:e)[0];t&&t.focus()})&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t)(e)},h.getChildFramesInfo=function(t){var n;return((n=function(){return function t(n){var r=[];(n=n||e).querySelectorAll("frame, iframe").forEach((function(e){return r.push([e,!e.contentDocument,e.src])}));var o=Array.prototype.filter.call(n.querySelectorAll("*"),(function(e){return e.shadowRoot})).map((function(e){return t(e.shadowRoot)}));return r.concat.apply(r,o)}()})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n)(t)},h.getContextInfo=function(t){var n;return((n=function(){var t,n,r;try{t=window.top.document===window.document||"root-context"===window.parent.document["applitools-marker"]}catch(n){t=!1}try{n=!window.parent.document===window.document}catch(t){n=!0}if(!n)try{r=function(e){var t=(void 0===e?[]:e)[0],n="",r=t.ownerDocument;if(!r)return n;for(var o=t;o!==r;){var i=Array.prototype.filter.call(o.parentNode.childNodes,(function(e){return e.tagName===o.tagName})).indexOf(o);n="/"+o.tagName+"["+(i+1)+"]"+n,o=o.parentNode}return n}([window.frameElement])}catch(t){r=null}return[e.documentElement,r,t,n]})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n)(t)},h.getDocumentScrollingElement=function(t){var n;return((n=function(){var t="HTML",n=e.scrollingElement;return n&&(t=n.tagName),t.toLowerCase()})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n)(t)},h.getDocumentSize=function(t){var n,r=(n=function(){var t=e.documentElement.scrollWidth,n=e.documentElement.scrollHeight,r=e.documentElement.clientHeight,o=e.body.scrollWidth,i=e.body.scrollHeight,a=e.body.clientHeight;return{width:Math.max(t,o),height:Math.max(r,n,a,i)}},n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n);return r(t)},h.getElementComputedStyleProperties=function(e){var t;return((t=function(e){var t=void 0===e?[]:e,n=t[0],r=t[1],o=void 0===r?[]:r,i=window.getComputedStyle(n);return i?o.map((function(e){return i.getPropertyValue(e)})):[]})&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t)(e)},h.getElementContentSize=function(t){var n,r,o=(r=function(e){var t=void 0===e?[]:e,n=t[0],r=t[1],o=Object.keys(r).sort(),i=o.reduce((function(e,t){return e[t]={value:n.style.getPropertyValue(t),important:Boolean(n.style.getPropertyPriority(t))},e}),{});return o.forEach((function(e){n.style.setProperty(e,"string"!=typeof r[e]&&r[e]?r[e].value:r[e],r[e]&&r[e].important?"important":"")})),i},(n=function(t){var n,o=(void 0===t?[]:t)[0];o!==e.documentElement&&o.tagName.toLowerCase()!==function(){var t="HTML",n=e.scrollingElement;return n&&(t=n.tagName),t.toLowerCase()}()||(n=r([o,{transform:"none"}]));var i={width:o.scrollWidth,height:o.scrollHeight};return n&&r([o,n]),i})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n);return o(t)},h.getElementFixedAncestor=function(t){var n;return((n=function(t){for(var n=(void 0===t?[]:t)[0];n.offsetParent&&n.offsetParent!==e.body&&n.offsetParent!==e.documentElement;)n=n.offsetParent;return"fixed"===window.getComputedStyle(n).getPropertyValue("position")?n:null})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n)(t)},h.getElementInnerOffset=function(t){var n,r,o=(r=function(t){var n=(void 0===t?[]:t)[0],r=function(e){var t=void 0===e?[]:e,n=t[0],r=t[1];return(void 0===r?[]:r).reduce((function(e,t){return e[t]={value:n.style.getPropertyValue(t),important:Boolean(n.style.getPropertyPriority(t))},e}),{})}([void 0===n?e.documentElement:n,["transform","-webkit-transform"]]),o=Object.keys(r).reduce((function(e,t){var n=r[t].value;if(n){var o=n.match(/^translate\s*\(\s*(\-?[\d, \.]+)px\s*(,\s*(-?[\d, \.]+)px)?\s*\)/);if(o){var i=o[1],a=void 0!==o[3]?o[3]:0;e.push({x:Math.round(-parseFloat(i)),y:Math.round(-parseFloat(a))})}else e.push({x:0,y:0})}return e}),[]);if(!o.every((function(e){return o[0].x===e.x||o[0].y===e.y})))throw new Error("Got different css positions!");return o[0]||{x:0,y:0}},(n=function(e){var t=(void 0===e?[]:e)[0],n=function(e){var t=(void 0===e?[]:e)[0];return t?{x:t.scrollLeft,y:t.scrollTop}:{x:window.scrollX||window.pageXOffset,y:window.scrollY||window.pageYOffset}}([t]),o=r([t]);return{x:n.x+o.x,y:n.y+o.y}})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n);return o(t)},h.getElementProperties=function(e){var t;return((t=function(e){var t=void 0===e?[]:e,n=t[0],r=t[1];return(void 0===r?[]:r).reduce((function(e,t){return e[t]=n[t],e}),{})})&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t)(e)},h.getElementRect=function(t){var n,r,o,i=(r=function(t){var n=(void 0===t?[]:t)[0],r=function(e){var t=void 0===e?[]:e,n=t[0],r=t[1];return(void 0===r?[]:r).reduce((function(e,t){return e[t]={value:n.style.getPropertyValue(t),important:Boolean(n.style.getPropertyPriority(t))},e}),{})}([void 0===n?e.documentElement:n,["transform","-webkit-transform"]]),o=Object.keys(r).reduce((function(e,t){var n=r[t].value;if(n){var o=n.match(/^translate\s*\(\s*(\-?[\d, \.]+)px\s*(,\s*(-?[\d, \.]+)px)?\s*\)/);if(o){var i=o[1],a=void 0!==o[3]?o[3]:0;e.push({x:Math.round(-parseFloat(i)),y:Math.round(-parseFloat(a))})}else e.push({x:0,y:0})}return e}),[]);if(!o.every((function(e){return o[0].x===e.x||o[0].y===e.y})))throw new Error("Got different css positions!");return o[0]||{x:0,y:0}},o=function(e){var t=(void 0===e?[]:e)[0],n=function(e){var t=(void 0===e?[]:e)[0];return t?{x:t.scrollLeft,y:t.scrollTop}:{x:window.scrollX||window.pageXOffset,y:window.scrollY||window.pageYOffset}}([t]),o=r([t]);return{x:n.x+o.x,y:n.y+o.y}},n=function(t){var n=void 0===t?[]:t,r=n[0],i=n[1],a=void 0!==i&&i;if(r===e.documentElement||r.tagName.toLowerCase()===function(){var t="HTML",n=e.scrollingElement;return n&&(t=n.tagName),t.toLowerCase()}())return{x:0,y:0,width:r.clientWidth,height:r.clientHeight};var s=r.getBoundingClientRect(),l={x:s.left,y:s.top,width:s.width,height:s.height};if(a){var c=window.getComputedStyle(r);l.x+=parseInt(c.getPropertyValue("border-left-width")),l.y+=parseInt(c.getPropertyValue("border-top-width")),l.width=r.clientWidth,l.height=r.clientHeight}var u=function(t){for(var n=(void 0===t?[]:t)[0];n.offsetParent&&n.offsetParent!==e.body&&n.offsetParent!==e.documentElement;)n=n.offsetParent;return"fixed"===window.getComputedStyle(n).getPropertyValue("position")?n:null}([r]);if(u){if(u!==r){var h=o([u]);l.x+=h.x,l.y+=h.y}}else{var d=o();l.x+=d.x,l.y+=d.y}return l},n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n);return i(t)},h.getElementScrollOffset=function(e){var t;return((t=function(e){var t=(void 0===e?[]:e)[0];return t?{x:t.scrollLeft,y:t.scrollTop}:{x:window.scrollX||window.pageXOffset,y:window.scrollY||window.pageYOffset}})&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t)(e)},h.getElementStyleProperties=function(e){var t;return((t=function(e){var t=void 0===e?[]:e,n=t[0],r=t[1];return(void 0===r?[]:r).reduce((function(e,t){return e[t]={value:n.style.getPropertyValue(t),important:Boolean(n.style.getPropertyPriority(t))},e}),{})})&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t)(e)},h.getElementTranslateOffset=function(t){var n;return((n=function(t){var n=(void 0===t?[]:t)[0],r=function(e){var t=void 0===e?[]:e,n=t[0],r=t[1];return(void 0===r?[]:r).reduce((function(e,t){return e[t]={value:n.style.getPropertyValue(t),important:Boolean(n.style.getPropertyPriority(t))},e}),{})}([void 0===n?e.documentElement:n,["transform","-webkit-transform"]]),o=Object.keys(r).reduce((function(e,t){var n=r[t].value;if(n){var o=n.match(/^translate\s*\(\s*(\-?[\d, \.]+)px\s*(,\s*(-?[\d, \.]+)px)?\s*\)/);if(o){var i=o[1],a=void 0!==o[3]?o[3]:0;e.push({x:Math.round(-parseFloat(i)),y:Math.round(-parseFloat(a))})}else e.push({x:0,y:0})}return e}),[]);if(!o.every((function(e){return o[0].x===e.x||o[0].y===e.y})))throw new Error("Got different css positions!");return o[0]||{x:0,y:0}})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n)(t)},h.getElementXpath=function(e){var t;return((t=function(e){var t=(void 0===e?[]:e)[0],n="",r=t.ownerDocument;if(!r)return n;for(var o=t;o!==r;){var i=Array.prototype.filter.call(o.parentNode.childNodes,(function(e){return e.tagName===o.tagName})).indexOf(o);n="/"+o.tagName+"["+(i+1)+"]"+n,o=o.parentNode}return n})&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t)(e)},h.getShadowRoot=function(e){var t;return((t=function(e){return(void 0===e?[]:e)[0].shadowRoot})&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t)(e)},h.getText=function(e){var t;return((t=function(e){return e[0].innerText})&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t)(e)},h.getUserAgent=function(e){var t=function(){function e(){return e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.apply(this,arguments)}var t="__EYES__APPLITOOLS__",n="userAgent";return window[t]=window[t]||{},function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}((function(){try{if(window[t][n]){var r=window[t][n];return"WIP"!==r.status&&delete window[t][n],JSON.stringify(r)}return window.navigator.userAgentData?(window[t][n]={status:"WIP"},window.navigator.userAgentData.getHighEntropyValues(["brands","platform","platformVersion","model"]).then((function(r){window[t][n]={status:"SUCCESS",value:e({legacy:window.navigator.userAgent},r)}})).catch((function(e){window[t][n]={status:"ERROR",error:e.message}}))):window[t][n]={status:"SUCCESS",value:window.navigator.userAgent},JSON.stringify(window[t][n])}catch(r){return window[t][n]={status:"ERROR",error:r.message},JSON.stringify(window[t][n])}}))}();return t(e)},h.getViewport=function(t){var n;return((n=function(){var t,n=0,r=0;return window.innerHeight?r=window.innerHeight:e.documentElement&&e.documentElement.clientHeight?r=e.documentElement.clientHeight:e.body&&e.body.clientHeight&&(r=e.body.clientHeight),window.innerWidth?n=window.innerWidth:e.documentElement&&e.documentElement.clientWidth?n=e.documentElement.clientWidth:e.body&&e.body.clientWidth&&(n=e.body.clientWidth),window.screen&&window.screen.orientation?t=window.screen.orientation.type.replace(/-primary$/,""):null!=window.orientation&&(0===window.orientation?t="portrait":180===window.orientation?t="portrait-secondary":90===window.orientation?t="landscape":-90===window.orientation&&(t="landscape-secondary")),{viewportSize:{width:n,height:r},pixelRatio:window.devicePixelRatio,viewportScale:window.visualViewport&&window.visualViewport.scale,orientation:t}})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n)(t)},h.isElementScrollable=function(e){var t;return((t=function(e){var t=(void 0===e?[]:e)[0],n=function(e){var t=void 0===e?[]:e,n=t[0],r=t[1],o=void 0===r?[]:r,i=window.getComputedStyle(n);return i?o.map((function(e){return i.getPropertyValue(e)})):[]}([t,["overflow-x","overflow-y","overflow"]]);return("scroll"===n[0]||"auto"===n[0]||"hidden"===n[2])&&t.scrollWidth>t.clientWidth||("scroll"===n[1]||"auto"===n[1]||"hidden"===n[2])&&t.scrollHeight>t.clientHeight})&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t)(e)},h.isEqualElements=function(e){var t;return((t=function(e){var t=void 0===e?[]:e;return t[0]===t[1]})&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t)(e)},h.isStaleElement=function(t){var n;return((n=function(t){var n=t&&t[0]||null;return!(n&&("isConnected"in window.Node.prototype?n.isConnected:e.documentElement.contains?e.documentElement.contains(n):n.ownerDocument.documentElement.contains(n)))})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n)(t)},h.lazyLoad=function(t){var n=function(){var t=function(e){var t=void 0===e?[]:e,n=t[0],r=t[1],o=Object.keys(r).sort(),i=o.reduce((function(e,t){return e[t]={value:n.style.getPropertyValue(t),important:Boolean(n.style.getPropertyPriority(t))},e}),{});return o.forEach((function(e){n.style.setProperty(e,"string"!=typeof r[e]&&r[e]?r[e].value:r[e],r[e]&&r[e].important?"important":"")})),i},n="__EYES__APPLITOOLS__",r="lazyLoadResult";window[n]=window[n]||{};var o=function(n){var r=void 0===n?[]:n,o=r[0],i=r[1];o=o||e.documentElement;var a=t([o,{"scroll-behavior":{value:"auto",important:!0}}]);return o.scrollTo?o.scrollTo(i.x,i.y):(o.scrollLeft=i.x,o.scrollTop=i.y),t([o,a]),{x:o.scrollLeft,y:o.scrollTop}};return function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}((function(e){var t=void 0===e?[]:e,i=t[0],a=t[1],s=void 0===a?{}:a,l=s.scrollLength,c=s.waitingTime,u=s.maxAmountToScroll;try{if(window[n][r]){var h=window[n][r];return"WIP"!==h.status&&delete window[n][r],JSON.stringify(h)}window[n][r]={status:"WIP"};var d=function(e){var t=(void 0===e?[]:e)[0];return t?{x:t.scrollLeft,y:t.scrollTop}:{x:window.scrollX||window.pageXOffset,y:window.scrollY||window.pageYOffset}}(),p=[];p.push({maxAmountToScroll:u,scrollLength:l,waitingTime:c,startingScrollPositionX:d.x,startingScrollPositionY:d.y});var m=Date.now();return function e(t){var a=void 0===t?{}:t,s=a.doneScrolling,h=a.previousScrollResult,f=void 0===h?{}:h;setTimeout((function(){try{if(s){var t=o([i,d]),a=t.x,c=t.y;return p.push({x:a,y:c,msSinceStart:Date.now()-m}),void(window[n][r]={status:"SUCCESS",value:p})}var h=o([i,{x:d.x,y:f.y+l}]),g=h.x,b=h.y;p.push({x:g,y:b,msSinceStart:Date.now()-m}),e({doneScrolling:b===f.y||b===u,previousScrollResult:{x:g,y:b}})}catch(e){window[n][r]={status:"ERROR",error:e}}}),c)}(),JSON.stringify(window[n][r])}catch(e){return window[n][r]={status:"ERROR",error:e},JSON.stringify(window[n][r])}}))}();return n(t)},h.reloadPage=function(e){var t;return((t=function(){window.location.reload()})&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t)(e)},h.scrollTo=function(t){var n,r,o=(r=function(e){var t=void 0===e?[]:e,n=t[0],r=t[1],o=Object.keys(r).sort(),i=o.reduce((function(e,t){return e[t]={value:n.style.getPropertyValue(t),important:Boolean(n.style.getPropertyPriority(t))},e}),{});return o.forEach((function(e){n.style.setProperty(e,"string"!=typeof r[e]&&r[e]?r[e].value:r[e],r[e]&&r[e].important?"important":"")})),i},(n=function(t){var n=void 0===t?[]:t,o=n[0],i=n[1];o=o||e.documentElement;var a=r([o,{"scroll-behavior":{value:"auto",important:!0}}]);return o.scrollTo?o.scrollTo(i.x,i.y):(o.scrollLeft=i.x,o.scrollTop=i.y),r([o,a]),{x:o.scrollLeft,y:o.scrollTop}})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n);return o(t)},h.setElementAttributes=function(e){var t;return((t=function(e){var t=void 0===e?[]:e,n=t[0],r=t[1];return Object.keys(r).reduce((function(e,t){return e[t]=n.getAttribute(t),n.setAttribute(t,r[t]),e}),{})})&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t)(e)},h.setElementStyleProperties=function(e){var t;return((t=function(e){var t=void 0===e?[]:e,n=t[0],r=t[1],o=Object.keys(r).sort(),i=o.reduce((function(e,t){return e[t]={value:n.style.getPropertyValue(t),important:Boolean(n.style.getPropertyPriority(t))},e}),{});return o.forEach((function(e){n.style.setProperty(e,"string"!=typeof r[e]&&r[e]?r[e].value:r[e],r[e]&&r[e].important?"important":"")})),i})&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t)(e)},h.translateTo=function(t){var n;return((n=function(t){var n=void 0===t?[]:t,r=n[0],o=n[1];r=r||e.documentElement;var i={value:"translate("+-o.x+"px, "+-o.y+"px)",important:!0};return function(e){var t=void 0===e?[]:e,n=t[0],r=t[1],o=Object.keys(r).sort();o.reduce((function(e,t){return e[t]={value:n.style.getPropertyValue(t),important:Boolean(n.style.getPropertyPriority(t))},e}),{}),o.forEach((function(e){n.style.setProperty(e,"string"!=typeof r[e]&&r[e]?r[e].value:r[e],r[e]&&r[e].important?"important":"")}))}([r,{transform:i,"-webkit-transform":i}]),o})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n)(t)};var p=Object.freeze({__proto__:null,generateSafeSelectors:function(e){if(!e?.length)return;const t=e.map((e=>[e,"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))])),n=d(t).flat();let r=0;const o=t.map((([e])=>{if(0===e.length)return null;const t=n[r].reduceRight(((e,t)=>e?{type:"css",selector:t,shadow:e}:{type:"css",selector:t}),void 0);return r+=e.length,t}));return o}}),m=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}(p),f=function(e){if(!function(e){try{const t=new URL(e);return Boolean(t.username||t.password)}catch(e){return!1}}(e))return e;let t=!0;try{t=e!==decodeURI(e)}catch(e){t=!0}const n=new URL(e);return n.username="",n.password="",t?n.href:decodeURI(n.href)},g={},b={},y={AtKeyword:3,BadString:6,BadUrl:8,CDC:15,CDO:14,Colon:16,Comma:18,Comment:25,Delim:9,Dimension:12,EOF:0,Function:2,Hash:4,Ident:1,LeftCurlyBracket:23,LeftParenthesis:21,LeftSquareBracket:19,Number:10,Percentage:11,RightCurlyBracket:24,RightParenthesis:22,RightSquareBracket:20,Semicolon:17,String:5,Url:7,WhiteSpace:13},k={};function w(e){return e>=48&&e<=57}function v(e){return e>=65&&e<=90}function x(e){return e>=97&&e<=122}function S(e){return v(e)||x(e)}function _(e){return e>=128}function C(e){return S(e)||_(e)||95===e}function A(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}function z(e){return 10===e||13===e||12===e}function P(e){return z(e)||32===e||9===e}function E(e,t){return 92===e&&!z(t)&&0!==t}const L=new Array(128);for(let e=0;e<L.length;e++)L[e]=(P(e)?130:w(e)&&131)||C(e)&&132||A(e)&&133||e||128;k.DigitCategory=131,k.EofCategory=128,k.NameStartCategory=132,k.NonPrintableCategory=133,k.WhiteSpaceCategory=130,k.charCodeCategory=function(e){return e<128?L[e]:132},k.isBOM=function(e){return 65279===e||65534===e?1:0},k.isDigit=w,k.isHexDigit=function(e){return w(e)||e>=65&&e<=70||e>=97&&e<=102},k.isIdentifierStart=function(e,t,n){return 45===e?C(t)||45===t||E(t,n):!!C(e)||92===e&&E(e,t)},k.isLetter=S,k.isLowercaseLetter=x,k.isName=function(e){return C(e)||w(e)||45===e},k.isNameStart=C,k.isNewline=z,k.isNonAscii=_,k.isNonPrintable=A,k.isNumberStart=function(e,t,n){return 43===e||45===e?w(t)?2:46===t&&w(n)?3:0:46===e?w(t)?2:0:w(e)?1:0},k.isUppercaseLetter=v,k.isValidEscape=E,k.isWhiteSpace=P;var O={};const N=k;function T(e,t){return t<e.length?e.charCodeAt(t):0}function R(e,t,n){return 13===n&&10===T(e,t+1)?2:1}function D(e,t,n){let r=e.charCodeAt(t);return N.isUppercaseLetter(r)&&(r|=32),r===n}function I(e,t){for(;t<e.length&&N.isDigit(e.charCodeAt(t));t++);return t}function B(e,t){if(t+=2,N.isHexDigit(T(e,t-1))){for(const n=Math.min(e.length,t+5);t<n&&N.isHexDigit(T(e,t));t++);const n=T(e,t);N.isWhiteSpace(n)&&(t+=R(e,t,n))}return t}O.cmpChar=D,O.cmpStr=function(e,t,n,r){if(n-t!==r.length)return!1;if(t<0||n>e.length)return!1;for(let o=t;o<n;o++){const n=r.charCodeAt(o-t);let i=e.charCodeAt(o);if(N.isUppercaseLetter(i)&&(i|=32),i!==n)return!1}return!0},O.consumeBadUrlRemnants=function(e,t){for(;t<e.length;t++){const n=e.charCodeAt(t);if(41===n){t++;break}N.isValidEscape(n,T(e,t+1))&&(t=B(e,t))}return t},O.consumeEscaped=B,O.consumeName=function(e,t){for(;t<e.length;t++){const n=e.charCodeAt(t);if(!N.isName(n)){if(!N.isValidEscape(n,T(e,t+1)))break;t=B(e,t)-1}}return t},O.consumeNumber=function(e,t){let n=e.charCodeAt(t);if(43!==n&&45!==n||(n=e.charCodeAt(t+=1)),N.isDigit(n)&&(t=I(e,t+1),n=e.charCodeAt(t)),46===n&&N.isDigit(e.charCodeAt(t+1))&&(t=I(e,t+=2)),D(e,t,101)){let r=0;n=e.charCodeAt(t+1),45!==n&&43!==n||(r=1,n=e.charCodeAt(t+2)),N.isDigit(n)&&(t=I(e,t+1+r+1))}return t},O.decodeEscaped=function(e){if(1===e.length&&!N.isHexDigit(e.charCodeAt(0)))return e[0];let t=parseInt(e,16);return(0===t||t>=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)},O.findDecimalNumberEnd=I,O.findWhiteSpaceEnd=function(e,t){for(;t<e.length&&N.isWhiteSpace(e.charCodeAt(t));t++);return t},O.findWhiteSpaceStart=function(e,t){for(;t>=0&&N.isWhiteSpace(e.charCodeAt(t));t--);return t+1},O.getNewlineLength=R;var M=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token","comment-token"],j={},F={adoptBuffer:function(e=null,t){return null===e||e.length<t?new Uint32Array(Math.max(t+1024,16384)):e}};const U=F,W=k;function H(e){const t=e.source,n=t.length,r=t.length>0?W.isBOM(t.charCodeAt(0)):0,o=U.adoptBuffer(e.lines,n),i=U.adoptBuffer(e.columns,n);let a=e.startLine,s=e.startColumn;for(let e=r;e<n;e++){const r=t.charCodeAt(e);o[e]=a,i[e]=s++,10!==r&&13!==r&&12!==r||(13===r&&e+1<n&&10===t.charCodeAt(e+1)&&(e++,o[e]=a,i[e]=s),a++,s=1)}o[n]=a,i[n]=s,e.lines=o,e.columns=i,e.computed=!0}j.OffsetToLocation=class{constructor(){this.lines=null,this.columns=null,this.computed=!1}setSource(e,t=0,n=1,r=1){this.source=e,this.startOffset=t,this.startLine=n,this.startColumn=r,this.computed=!1}getLocation(e,t){return this.computed||H(this),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,t,n){return this.computed||H(this),{source:n,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]}}}};var q={};const V=F,$=O,K=M,Z=y,G=16777215,Y=24,X=new Map([[Z.Function,Z.RightParenthesis],[Z.LeftParenthesis,Z.RightParenthesis],[Z.LeftSquareBracket,Z.RightSquareBracket],[Z.LeftCurlyBracket,Z.RightCurlyBracket]]);q.TokenStream=class{constructor(e,t){this.setSource(e,t)}reset(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}setSource(e="",t=(()=>{})){const n=(e=String(e||"")).length,r=V.adoptBuffer(this.offsetAndType,e.length+1),o=V.adoptBuffer(this.balance,e.length+1);let 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]=n;break;case a:{let e=s&G;for(s=o[e],a=s>>Y,o[i]=e,o[e++]=i;e<i;e++)o[e]===n&&(o[e]=i);break}case Z.LeftParenthesis:case Z.Function:case Z.LeftSquareBracket:case Z.LeftCurlyBracket:o[i]=s,a=X.get(e),s=a<<Y|i}r[i++]=e<<Y|c,-1===l&&(l=t)})),r[i]=Z.EOF<<Y|n,o[i]=n,o[n]=n;0!==s;){const e=s&G;s=o[e],o[e]=n}this.source=e,this.firstCharOffset=-1===l?0:l,this.tokenCount=i,this.offsetAndType=r,this.balance=o,this.reset(),this.next()}lookupType(e){return(e+=this.tokenIndex)<this.tokenCount?this.offsetAndType[e]>>Y:Z.EOF}lookupTypeNonSC(e){for(let t=this.tokenIndex;t<this.tokenCount;t++){const n=this.offsetAndType[t]>>Y;if(n!==Z.WhiteSpace&&n!==Z.Comment&&0==e--)return n}return Z.EOF}lookupOffset(e){return(e+=this.tokenIndex)<this.tokenCount?this.offsetAndType[e-1]&G:this.source.length}lookupOffsetNonSC(e){for(let t=this.tokenIndex;t<this.tokenCount;t++){const n=this.offsetAndType[t]>>Y;if(n!==Z.WhiteSpace&&n!==Z.Comment&&0==e--)return t-this.tokenIndex}return Z.EOF}lookupValue(e,t){return(e+=this.tokenIndex)<this.tokenCount&&$.cmpStr(this.source,this.offsetAndType[e-1]&G,this.offsetAndType[e]&G,t)}getTokenStart(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&G:this.offsetAndType[this.tokenCount]&G:this.firstCharOffset}substrToCursor(e){return this.source.substring(e,this.tokenStart)}isBalanceEdge(e){return this.balance[this.tokenIndex]<e}isDelim(e,t){return t?this.lookupType(t)===Z.Delim&&this.source.charCodeAt(this.lookupOffset(t))===e:this.tokenType===Z.Delim&&this.source.charCodeAt(this.tokenStart)===e}skip(e){let t=this.tokenIndex+e;t<this.tokenCount?(this.tokenIndex=t,this.tokenStart=this.offsetAndType[t-1]&G,t=this.offsetAndType[t],this.tokenType=t>>Y,this.tokenEnd=t&G):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e<this.tokenCount?(this.tokenIndex=e,this.tokenStart=this.tokenEnd,e=this.offsetAndType[e],this.tokenType=e>>Y,this.tokenEnd=e&G):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=Z.EOF,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===Z.WhiteSpace||this.tokenType===Z.Comment;)this.next()}skipUntilBalanced(e,t){let n,r,o=e;e:for(;o<this.tokenCount&&(n=this.balance[o],!(n<e));o++)switch(r=o>0?this.offsetAndType[o-1]&G:this.firstCharOffset,t(this.source.charCodeAt(r))){case 1:break e;case 2:o++;break e;default:this.balance[n]===o&&(o=n)}this.skip(o-this.tokenIndex)}forEachToken(e){for(let t=0,n=this.firstCharOffset;t<this.tokenCount;t++){const r=n,o=this.offsetAndType[t],i=o&G;n=i,e(o>>Y,r,i,t)}}dump(){const e=new Array(this.tokenCount);return this.forEachToken(((t,n,r,o)=>{e[o]={idx:o,type:K[t],chunk:this.source.substring(n,r),balance:this.balance[o]}})),e}};const J=y,Q=k,ee=O,te=M,ne=j,re=q;b.AtKeyword=J.AtKeyword,b.BadString=J.BadString,b.BadUrl=J.BadUrl,b.CDC=J.CDC,b.CDO=J.CDO,b.Colon=J.Colon,b.Comma=J.Comma,b.Comment=J.Comment,b.Delim=J.Delim,b.Dimension=J.Dimension,b.EOF=J.EOF,b.Function=J.Function,b.Hash=J.Hash,b.Ident=J.Ident,b.LeftCurlyBracket=J.LeftCurlyBracket,b.LeftParenthesis=J.LeftParenthesis,b.LeftSquareBracket=J.LeftSquareBracket,b.Number=J.Number,b.Percentage=J.Percentage,b.RightCurlyBracket=J.RightCurlyBracket,b.RightParenthesis=J.RightParenthesis,b.RightSquareBracket=J.RightSquareBracket,b.Semicolon=J.Semicolon,b.String=J.String,b.Url=J.Url,b.WhiteSpace=J.WhiteSpace,b.tokenTypes=J,b.DigitCategory=Q.DigitCategory,b.EofCategory=Q.EofCategory,b.NameStartCategory=Q.NameStartCategory,b.NonPrintableCategory=Q.NonPrintableCategory,b.WhiteSpaceCategory=Q.WhiteSpaceCategory,b.charCodeCategory=Q.charCodeCategory,b.isBOM=Q.isBOM,b.isDigit=Q.isDigit,b.isHexDigit=Q.isHexDigit,b.isIdentifierStart=Q.isIdentifierStart,b.isLetter=Q.isLetter,b.isLowercaseLetter=Q.isLowercaseLetter,b.isName=Q.isName,b.isNameStart=Q.isNameStart,b.isNewline=Q.isNewline,b.isNonAscii=Q.isNonAscii,b.isNonPrintable=Q.isNonPrintable,b.isNumberStart=Q.isNumberStart,b.isUppercaseLetter=Q.isUppercaseLetter,b.isValidEscape=Q.isValidEscape,b.isWhiteSpace=Q.isWhiteSpace,b.cmpChar=ee.cmpChar,b.cmpStr=ee.cmpStr,b.consumeBadUrlRemnants=ee.consumeBadUrlRemnants,b.consumeEscaped=ee.consumeEscaped,b.consumeName=ee.consumeName,b.consumeNumber=ee.consumeNumber,b.decodeEscaped=ee.decodeEscaped,b.findDecimalNumberEnd=ee.findDecimalNumberEnd,b.findWhiteSpaceEnd=ee.findWhiteSpaceEnd,b.findWhiteSpaceStart=ee.findWhiteSpaceStart,b.getNewlineLength=ee.getNewlineLength,b.tokenNames=te,b.OffsetToLocation=ne.OffsetToLocation,b.TokenStream=re.TokenStream,b.tokenize=function(e,t){function n(t){return t<a?e.charCodeAt(t):0}function r(){return c=ee.consumeNumber(e,c),Q.isIdentifierStart(n(c),n(c+1),n(c+2))?(s=J.Dimension,void(c=ee.consumeName(e,c))):37===n(c)?(s=J.Percentage,void c++):void(s=J.Number)}function o(){const t=c;return c=ee.consumeName(e,c),ee.cmpStr(e,t,c,"url")&&40===n(c)?(c=ee.findWhiteSpaceEnd(e,c+1),34===n(c)||39===n(c)?(s=J.Function,void(c=t+4)):void function(){for(s=J.Url,c=ee.findWhiteSpaceEnd(e,c);c<e.length;c++){const t=e.charCodeAt(c);switch(Q.charCodeCategory(t)){case 41:return void c++;case Q.WhiteSpaceCategory:return c=ee.findWhiteSpaceEnd(e,c),41===n(c)||c>=e.length?void(c<e.length&&c++):(c=ee.consumeBadUrlRemnants(e,c),void(s=J.BadUrl));case 34:case 39:case 40:case Q.NonPrintableCategory:return c=ee.consumeBadUrlRemnants(e,c),void(s=J.BadUrl);case 92:if(Q.isValidEscape(t,n(c+1))){c=ee.consumeEscaped(e,c)-1;break}return c=ee.consumeBadUrlRemnants(e,c),void(s=J.BadUrl)}}}()):40===n(c)?(s=J.Function,void c++):void(s=J.Ident)}function i(t){for(t||(t=n(c++)),s=J.String;c<e.length;c++){const r=e.charCodeAt(c);switch(Q.charCodeCategory(r)){case t:return void c++;case Q.WhiteSpaceCategory:if(Q.isNewline(r))return c+=ee.getNewlineLength(e,c,r),void(s=J.BadString);break;case 92:if(c===e.length-1)break;const o=n(c+1);Q.isNewline(o)?c+=ee.getNewlineLength(e,c+1,o):Q.isValidEscape(r,o)&&(c=ee.consumeEscaped(e,c)-1)}}}const a=(e=String(e||"")).length;let s,l=Q.isBOM(n(0)),c=l;for(;c<a;){const a=e.charCodeAt(c);switch(Q.charCodeCategory(a)){case Q.WhiteSpaceCategory:s=J.WhiteSpace,c=ee.findWhiteSpaceEnd(e,c+1);break;case 34:i();break;case 35:Q.isName(n(c+1))||Q.isValidEscape(n(c+1),n(c+2))?(s=J.Hash,c=ee.consumeName(e,c+1)):(s=J.Delim,c++);break;case 39:i();break;case 40:s=J.LeftParenthesis,c++;break;case 41:s=J.RightParenthesis,c++;break;case 43:Q.isNumberStart(a,n(c+1),n(c+2))?r():(s=J.Delim,c++);break;case 44:s=J.Comma,c++;break;case 45:Q.isNumberStart(a,n(c+1),n(c+2))?r():45===n(c+1)&&62===n(c+2)?(s=J.CDC,c+=3):Q.isIdentifierStart(a,n(c+1),n(c+2))?o():(s=J.Delim,c++);break;case 46:Q.isNumberStart(a,n(c+1),n(c+2))?r():(s=J.Delim,c++);break;case 47:42===n(c+1)?(s=J.Comment,c=e.indexOf("*/",c+2),c=-1===c?e.length:c+2):(s=J.Delim,c++);break;case 58:s=J.Colon,c++;break;case 59:s=J.Semicolon,c++;break;case 60:33===n(c+1)&&45===n(c+2)&&45===n(c+3)?(s=J.CDO,c+=4):(s=J.Delim,c++);break;case 64:Q.isIdentifierStart(n(c+1),n(c+2),n(c+3))?(s=J.AtKeyword,c=ee.consumeName(e,c+1)):(s=J.Delim,c++);break;case 91:s=J.LeftSquareBracket,c++;break;case 92:Q.isValidEscape(a,n(c+1))?o():(s=J.Delim,c++);break;case 93:s=J.RightSquareBracket,c++;break;case 123:s=J.LeftCurlyBracket,c++;break;case 125:s=J.RightCurlyBracket,c++;break;case Q.DigitCategory:r();break;case Q.NameStartCategory:o();break;default:s=J.Delim,c++}t(s,l,l=c)}};var oe={},ie={};let ae=null,se=class e{static createItem(e){return{prev:null,next:null,data:e}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(t){return e.createItem(t)}allocateCursor(e,t){let n;return null!==ae?(n=ae,ae=ae.cursor,n.prev=e,n.next=t,n.cursor=this.cursor):n={prev:e,next:t,cursor:this.cursor},this.cursor=n,n}releaseCursor(){const{cursor:e}=this;this.cursor=e.cursor,e.prev=null,e.next=null,e.cursor=ae,ae=e}updateCursors(e,t,n,r){let{cursor:o}=this;for(;null!==o;)o.prev===e&&(o.prev=t),o.next===n&&(o.next=r),o=o.cursor}*[Symbol.iterator](){for(let e=this.head;null!==e;e=e.next)yield e.data}get size(){let e=0;for(let t=this.head;null!==t;t=t.next)e++;return e}get isEmpty(){return null===this.head}get first(){return this.head&&this.head.data}get last(){return this.tail&&this.tail.data}fromArray(t){let n=null;this.head=null;for(let r of t){const t=e.createItem(r);null!==n?n.next=t:this.head=t,t.prev=n,n=t}return this.tail=n,this}toArray(){return[...this]}toJSON(){return[...this]}forEach(e,t=this){const n=this.allocateCursor(null,this.head);for(;null!==n.next;){const r=n.next;n.next=r.next,e.call(t,r.data,r,this)}this.releaseCursor()}forEachRight(e,t=this){const n=this.allocateCursor(this.tail,null);for(;null!==n.prev;){const r=n.prev;n.prev=r.prev,e.call(t,r.data,r,this)}this.releaseCursor()}reduce(e,t,n=this){let r,o=this.allocateCursor(null,this.head),i=t;for(;null!==o.next;)r=o.next,o.next=r.next,i=e.call(n,i,r.data,r,this);return this.releaseCursor(),i}reduceRight(e,t,n=this){let r,o=this.allocateCursor(this.tail,null),i=t;for(;null!==o.prev;)r=o.prev,o.prev=r.prev,i=e.call(n,i,r.data,r,this);return this.releaseCursor(),i}some(e,t=this){for(let n=this.head;null!==n;n=n.next)if(e.call(t,n.data,n,this))return!0;return!1}map(t,n=this){const r=new e;for(let e=this.head;null!==e;e=e.next)r.appendData(t.call(n,e.data,e,this));return r}filter(t,n=this){const r=new e;for(let e=this.head;null!==e;e=e.next)t.call(n,e.data,e,this)&&r.appendData(e.data);return r}nextUntil(e,t,n=this){if(null===e)return;const r=this.allocateCursor(null,e);for(;null!==r.next;){const e=r.next;if(r.next=e.next,t.call(n,e.data,e,this))break}this.releaseCursor()}prevUntil(e,t,n=this){if(null===e)return;const r=this.allocateCursor(e,null);for(;null!==r.prev;){const e=r.prev;if(r.prev=e.prev,t.call(n,e.data,e,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){const t=new e;for(let e of this)t.appendData(e);return t}prepend(e){return this.updateCursors(null,e,this.head,e),null!==this.head?(this.head.prev=e,e.next=this.head):this.tail=e,this.head=e,this}prependData(t){return this.prepend(e.createItem(t))}append(e){return this.insert(e)}appendData(t){return this.insert(e.createItem(t))}insert(e,t=null){if(null!==t)if(this.updateCursors(t.prev,e,t,e),null===t.prev){if(this.head!==t)throw new Error("before doesn't belong to list");this.head=e,t.prev=e,e.next=t,this.updateCursors(null,e)}else t.prev.next=e,e.prev=t.prev,t.prev=e,e.next=t;else this.updateCursors(this.tail,e,null,e),null!==this.tail?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e;return this}insertData(t,n){return this.insert(e.createItem(t),n)}remove(e){if(this.updateCursors(e,e.prev,e,e.next),null!==e.prev)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't belong to list");this.head=e.next}if(null!==e.next)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't belong to list");this.tail=e.prev}return e.prev=null,e.next=null,e}push(t){this.insert(e.createItem(t))}pop(){return null!==this.tail?this.remove(this.tail):null}unshift(t){this.prepend(e.createItem(t))}shift(){return null!==this.head?this.remove(this.head):null}prependList(e){return this.insertList(e,this.head)}appendList(e){return this.insertList(e)}insertList(e,t){return null===e.head||(null!=t?(this.updateCursors(t.prev,e.tail,t,e.head),null!==t.prev?(t.prev.next=e.head,e.head.prev=t.prev):this.head=e.head,t.prev=e.tail,e.tail.next=t):(this.updateCursors(this.tail,e.tail,null,e.head),null!==this.tail?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail),e.head=null,e.tail=null),this}replace(e,t){"head"in t?this.insertList(t,e):this.insert(t,e),this.remove(e)}};ie.List=se;var le={},ce={createCustomError:function(e,t){const n=Object.create(SyntaxError.prototype),r=new Error;return Object.assign(n,{name:e,message:t,get stack(){return(r.stack||"").replace(/^(.+\n){1,3}/,`${e}: ${t}\n`)}})}};const ue=ce,he=" ";function de({source:e,line:t,column:n,baseLine:r,baseColumn:o},i){function a(e,t){return s.slice(e,t).map(((t,n)=>String(e+n+1).padStart(u)+" |"+t)).join("\n")}const s=("\n".repeat(Math.max(r-1,0))+" ".repeat(Math.max(o-1,0))+e).split(/\r\n?|\n|\f/),l=Math.max(1,t-i)-1,c=Math.min(t+i,s.length+1),u=Math.max(4,String(c).length)+1;let h=0;(n+=3*(s[t-1].substr(0,n-1).match(/\t/g)||[]).length)>100&&(h=n-60+3,n=58);for(let e=l;e<=c;e++)e>=0&&e<s.length&&(s[e]=s[e].replace(/\t/g,he),s[e]=(h>0&&s[e].length>h?"…":"")+s[e].substr(h,98)+(s[e].length>h+100-1?"…":""));return[a(l,t),new Array(n+u+2).join("-")+"^",a(t,c)].filter(Boolean).join("\n").replace(/^(\s+\d+\s+\|\n)+/,"").replace(/\n(\s+\d+\s+\|)+$/,"")}le.SyntaxError=function(e,t,n,r,o,i=1,a=1){return Object.assign(ue.createCustomError("SyntaxError",e),{source:t,offset:n,line:r,column:o,sourceFragment:e=>de({source:t,line:r,column:o,baseLine:i,baseColumn:a},isNaN(e)?0:e),get formattedMessage(){return`Parse error: ${e}\n`+de({source:t,line:r,column:o,baseLine:i,baseColumn:a},2)}})};var pe={};const me=y;pe.readSequence=function(e){const t=this.createList();let n=!1;const r={recognizer:e};for(;!this.eof;){switch(this.tokenType){case me.Comment:this.next();continue;case me.WhiteSpace:n=!0,this.next();continue}let o=e.getNode.call(this,r);if(void 0===o)break;n&&(e.onWhiteSpace&&e.onWhiteSpace.call(this,o,t,r),n=!1),t.push(o)}return n&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,r),t};const fe=ie,ge=le,be=b,ye=pe,ke=j,we=q,ve=O,xe=y,Se=M,_e=()=>{};function Ce(e){return function(){return this[e]()}}function Ae(e){const t=Object.create(null);for(const n of Object.keys(e)){const r=e[n],o=r.parse||r;o&&(t[n]=o)}return t}oe.createParser=function(e){let t="",n="<unknown>",r=!1,o=_e,i=!1;const a=new ke.OffsetToLocation,s=Object.assign(new we.TokenStream,function(e){const t={context:Object.create(null),features:Object.assign(Object.create(null),e.features),scope:Object.assign(Object.create(null),e.scope),atrule:Ae(e.atrule),pseudo:Ae(e.pseudo),node:Ae(e.node)};for(const[n,r]of Object.entries(e.parseContext))switch(typeof r){case"function":t.context[n]=r;break;case"string":t.context[n]=Ce(r)}return{config:t,...t,...t.node}}(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:ye.readSequence,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 fe.List,createSingleNodeList:e=>(new fe.List).appendData(e),getFirstListNode:e=>e&&e.first,getLastListNode:e=>e&&e.last,parseWithFallback(e,t){const n=this.tokenIndex;try{return e.call(this)}catch(e){if(i)throw e;this.skip(n-this.tokenIndex);const r=t.call(this);return i=!0,o(e,r),i=!1,r}},lookupNonWSType(e){let t;do{if(t=this.lookupType(e++),t!==xe.WhiteSpace&&t!==xe.Comment)return t}while(0!==t);return 0},charCodeAt:e=>e>=0&&e<t.length?t.charCodeAt(e):0,substring:(e,n)=>t.substring(e,n),substrToCursor(e){return this.source.substring(e,this.tokenStart)},cmpChar:(e,n)=>ve.cmpChar(t,e,n),cmpStr:(e,n,r)=>ve.cmpStr(t,e,n,r),consume(e){const t=this.tokenStart;return this.eat(e),this.substrToCursor(t)},consumeFunctionName(){const e=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(xe.Function),e},consumeNumber(e){const n=t.substring(this.tokenStart,ve.consumeNumber(t,this.tokenStart));return this.eat(e),n},eat(e){if(this.tokenType!==e){const t=Se[e].slice(0,-6).replace(/-/g," ").replace(/^./,(e=>e.toUpperCase()));let n=`${/[[\](){}]/.test(t)?`"${t}"`:t} is expected`,r=this.tokenStart;switch(e){case xe.Ident:this.tokenType===xe.Function||this.tokenType===xe.Url?(r=this.tokenEnd-1,n="Identifier is expected but function found"):n="Identifier is expected";break;case xe.Hash:this.isDelim(35)&&(this.next(),r++,n="Name is expected");break;case xe.Percentage:this.tokenType===xe.Number&&(r=this.tokenEnd,n="Percent sign is expected")}this.error(n,r)}this.next()},eatIdent(e){this.tokenType===xe.Ident&&!1!==this.lookupValue(0,e)||this.error(`Identifier "${e}" is expected`),this.next()},eatDelim(e){this.isDelim(e)||this.error(`Delim "${String.fromCharCode(e)}" is expected`),this.next()},getLocation:(e,t)=>r?a.getLocationRange(e,t,n):null,getLocationFromList(e){if(r){const t=this.getFirstListNode(e),r=this.getLastListNode(e);return a.getLocationRange(null!==t?t.loc.start.offset-a.startOffset:this.tokenStart,null!==r?r.loc.end.offset-a.startOffset:this.tokenStart,n)}return null},error(e,n){const r=void 0!==n&&n<t.length?a.getLocation(n):this.eof?a.getLocation(ve.findWhiteSpaceStart(t,t.length-1)):a.getLocation(this.tokenStart);throw new ge.SyntaxError(e||"Unexpected input",t,r.offset,r.line,r.column,a.startLine,a.startColumn)}});return Object.assign((function(e,l){t=e,l=l||{},s.setSource(t,be.tokenize),a.setSource(t,l.offset,l.line,l.column),n=l.filename||"<unknown>",r=Boolean(l.positions),o="function"==typeof l.onParseError?l.onParseError:_e,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);const{context:c="default",onComment:u}=l;if(c in s.context==0)throw new Error("Unknown context `"+c+"`");"function"==typeof u&&s.forEachToken(((e,n,r)=>{if(e===xe.Comment){const e=s.getLocation(n,r),o=ve.cmpStr(t,r-2,r,"*/")?t.slice(n+2,r-2):t.slice(n+2,r);u(o,e)}}));const h=s.context[c].call(s,l);return s.eof||s.error(),h}),{SyntaxError:ge.SyntaxError,config:s.config})};var ze={},Pe={},Ee={},Le={},Oe={},Ne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Oe.encode=function(e){if(0<=e&&e<Ne.length)return Ne[e];throw new TypeError("Must be between 0 and 63: "+e)},Oe.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1};var Te=Oe;Le.encode=function(e){var t,n="",r=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&r,(r>>>=5)>0&&(t|=32),n+=Te.encode(t)}while(r>0);return n},Le.decode=function(e,t,n){var r,o,i,a,s=e.length,l=0,c=0;do{if(t>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(o=Te.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(32&o),l+=(o&=31)<<c,c+=5}while(r);n.value=(a=(i=l)>>1,1==(1&i)?-a:a),n.rest=t};var Re={};!function(e){e.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var t=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function r(e){var n=e.match(t);return n?{scheme:n[1],auth:n[2],host:n[3],port:n[4],path:n[5]}:null}function 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=r,e.urlGenerate=o;var i,a,s=(i=function(t){var n=t,i=r(t);if(i){if(!i.path)return t;n=i.path}for(var a=e.isAbsolute(n),s=[],l=0,c=0;;){if(l=c,-1===(c=n.indexOf("/",l))){s.push(n.slice(l));break}for(s.push(n.slice(l,c));c<n.length&&"/"===n[c];)c++}var u,h=0;for(c=s.length-1;c>=0;c--)"."===(u=s[c])?s.splice(c,1):".."===u?h++:h>0&&(""===u?(s.splice(c+1,h),h=0):(s.splice(c,2),h--));return""===(n=s.join("/"))&&(n=a?"/":"."),i?(i.path=n,o(i)):n},a=[],function(e){for(var t=0;t<a.length;t++)if(a[t].input===e){var n=a[0];return a[0]=a[t],a[t]=n,a[0].result}var r=i(e);return a.unshift({input:e,result:r}),a.length>32&&a.pop(),r});function l(e,t){""===e&&(e="."),""===t&&(t=".");var i=r(t),a=r(e);if(a&&(e=a.path||"/"),i&&!i.scheme)return a&&(i.scheme=a.scheme),o(i);if(i||t.match(n))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 n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var c=!("__proto__"in Object.create(null));function u(e){return e}function h(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function d(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}e.toSetString=c?u:function(e){return h(e)?"$"+e:e},e.fromSetString=c?u:function(e){return h(e)?e.slice(1):e},e.compareByOriginalPositions=function(e,t,n){var r=d(e.source,t.source);return 0!==r||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)||n||0!=(r=e.generatedColumn-t.generatedColumn)||0!=(r=e.generatedLine-t.generatedLine)?r:d(e.name,t.name)},e.compareByOriginalPositionsNoSource=function(e,t,n){var r;return 0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)||n||0!=(r=e.generatedColumn-t.generatedColumn)||0!=(r=e.generatedLine-t.generatedLine)?r:d(e.name,t.name)},e.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||n||0!==(r=d(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:d(e.name,t.name)},e.compareByGeneratedPositionsDeflatedNoLine=function(e,t,n){var r=e.generatedColumn-t.generatedColumn;return 0!==r||n||0!==(r=d(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:d(e.name,t.name)},e.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||0!==(n=d(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:d(e.name,t.name)},e.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},e.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var i=r(n);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)}}(Re);var De={},Ie=Re,Be=Object.prototype.hasOwnProperty,Me="undefined"!=typeof Map;function je(){this._array=[],this._set=Me?new Map:Object.create(null)}je.fromArray=function(e,t){for(var n=new je,r=0,o=e.length;r<o;r++)n.add(e[r],t);return n},je.prototype.size=function(){return Me?this._set.size:Object.getOwnPropertyNames(this._set).length},je.prototype.add=function(e,t){var n=Me?e:Ie.toSetString(e),r=Me?this.has(e):Be.call(this._set,n),o=this._array.length;r&&!t||this._array.push(e),r||(Me?this._set.set(e,o):this._set[n]=o)},je.prototype.has=function(e){if(Me)return this._set.has(e);var t=Ie.toSetString(e);return Be.call(this._set,t)},je.prototype.indexOf=function(e){if(Me){var t=this._set.get(e);if(t>=0)return t}else{var n=Ie.toSetString(e);if(Be.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},je.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},je.prototype.toArray=function(){return this._array.slice()},De.ArraySet=je;var Fe={},Ue=Re;function We(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}We.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},We.prototype.add=function(e){var t,n,r,o,i,a;n=e,r=(t=this._last).generatedLine,o=n.generatedLine,i=t.generatedColumn,a=n.generatedColumn,o>r||o==r&&a>=i||Ue.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},We.prototype.toArray=function(){return this._sorted||(this._array.sort(Ue.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},Fe.MappingList=We;var He=Le,qe=Re,Ve=De.ArraySet,$e=Fe.MappingList;function Ke(e){e||(e={}),this._file=qe.getArg(e,"file",null),this._sourceRoot=qe.getArg(e,"sourceRoot",null),this._skipValidation=qe.getArg(e,"skipValidation",!1),this._sources=new Ve,this._names=new Ve,this._mappings=new $e,this._sourcesContents=null}Ke.prototype._version=3,Ke.fromSourceMap=function(e){var t=e.sourceRoot,n=new Ke({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=qe.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)})),e.sources.forEach((function(r){var o=r;null!==t&&(o=qe.relative(t,r)),n._sources.has(o)||n._sources.add(o);var i=e.sourceContentFor(r);null!=i&&n.setSourceContent(r,i)})),n},Ke.prototype.addMapping=function(e){var t=qe.getArg(e,"generated"),n=qe.getArg(e,"original",null),r=qe.getArg(e,"source",null),o=qe.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,o),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=o&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:o})},Ke.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=qe.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[qe.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[qe.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},Ke.prototype.applySourceMap=function(e,t,n){var r=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.');r=e.file}var o=this._sourceRoot;null!=o&&(r=qe.relative(o,r));var i=new Ve,a=new Ve;this._mappings.unsortedForEach((function(t){if(t.source===r&&null!=t.originalLine){var s=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=s.source&&(t.source=s.source,null!=n&&(t.source=qe.join(n,t.source)),null!=o&&(t.source=qe.relative(o,t.source)),t.originalLine=s.line,t.originalColumn=s.column,null!=s.name&&(t.name=s.name))}var l=t.source;null==l||i.has(l)||i.add(l);var c=t.name;null==c||a.has(c)||a.add(c)}),this),this._sources=i,this._names=a,e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=qe.join(n,t)),null!=o&&(t=qe.relative(o,t)),this.setSourceContent(t,r))}),this)},Ke.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},Ke.prototype._serializeMappings=function(){for(var e,t,n,r,o=0,i=1,a=0,s=0,l=0,c=0,u="",h=this._mappings.toArray(),d=0,p=h.length;d<p;d++){if(e="",(t=h[d]).generatedLine!==i)for(o=0;t.generatedLine!==i;)e+=";",i++;else if(d>0){if(!qe.compareByGeneratedPositionsInflated(t,h[d-1]))continue;e+=","}e+=He.encode(t.generatedColumn-o),o=t.generatedColumn,null!=t.source&&(r=this._sources.indexOf(t.source),e+=He.encode(r-c),c=r,e+=He.encode(t.originalLine-1-s),s=t.originalLine-1,e+=He.encode(t.originalColumn-a),a=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=He.encode(n-l),l=n)),u+=e}return u},Ke.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=qe.relative(t,e));var n=qe.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},Ke.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},Ke.prototype.toString=function(){return JSON.stringify(this.toJSON())},Ee.SourceMapGenerator=Ke;const Ze=Ee,Ge=new Set(["Atrule","Selector","Declaration"]);Pe.generateSourceMap=function(e){const t=new Ze.SourceMapGenerator,n={line:1,column:0},r={line:0,column:0},o={line:1,column:0},i={generated:o};let a=1,s=0,l=!1;const c=e.node;e.node=function(e){if(e.loc&&e.loc.start&&Ge.has(e.type)){const c=e.loc.start.line,u=e.loc.start.column-1;r.line===c&&r.column===u||(r.line=c,r.column=u,n.line=a,n.column=s,l&&(l=!1,n.line===o.line&&n.column===o.column||t.addMapping(i)),l=!0,t.addMapping({source:e.loc.source,original:r,generated:n}))}c.call(this,e),l&&Ge.has(e.type)&&(o.line=a,o.column=s)};const u=e.emit;e.emit=function(e,t,n){for(let t=0;t<e.length;t++)10===e.charCodeAt(t)?(a++,s=0):s++;u(e,t,n)};const h=e.result;return e.result=function(){return l&&t.addMapping(i),{css:h(),map:t}},e};var Ye={};const Xe=y,Je=(e,t)=>{if(e===Xe.Delim&&(e=t),"string"==typeof e){const t=e.charCodeAt(0);return t>127?32768:t<<8}return e},Qe=[[Xe.Ident,Xe.Ident],[Xe.Ident,Xe.Function],[Xe.Ident,Xe.Url],[Xe.Ident,Xe.BadUrl],[Xe.Ident,"-"],[Xe.Ident,Xe.Number],[Xe.Ident,Xe.Percentage],[Xe.Ident,Xe.Dimension],[Xe.Ident,Xe.CDC],[Xe.Ident,Xe.LeftParenthesis],[Xe.AtKeyword,Xe.Ident],[Xe.AtKeyword,Xe.Function],[Xe.AtKeyword,Xe.Url],[Xe.AtKeyword,Xe.BadUrl],[Xe.AtKeyword,"-"],[Xe.AtKeyword,Xe.Number],[Xe.AtKeyword,Xe.Percentage],[Xe.AtKeyword,Xe.Dimension],[Xe.AtKeyword,Xe.CDC],[Xe.Hash,Xe.Ident],[Xe.Hash,Xe.Function],[Xe.Hash,Xe.Url],[Xe.Hash,Xe.BadUrl],[Xe.Hash,"-"],[Xe.Hash,Xe.Number],[Xe.Hash,Xe.Percentage],[Xe.Hash,Xe.Dimension],[Xe.Hash,Xe.CDC],[Xe.Dimension,Xe.Ident],[Xe.Dimension,Xe.Function],[Xe.Dimension,Xe.Url],[Xe.Dimension,Xe.BadUrl],[Xe.Dimension,"-"],[Xe.Dimension,Xe.Number],[Xe.Dimension,Xe.Percentage],[Xe.Dimension,Xe.Dimension],[Xe.Dimension,Xe.CDC],["#",Xe.Ident],["#",Xe.Function],["#",Xe.Url],["#",Xe.BadUrl],["#","-"],["#",Xe.Number],["#",Xe.Percentage],["#",Xe.Dimension],["#",Xe.CDC],["-",Xe.Ident],["-",Xe.Function],["-",Xe.Url],["-",Xe.BadUrl],["-","-"],["-",Xe.Number],["-",Xe.Percentage],["-",Xe.Dimension],["-",Xe.CDC],[Xe.Number,Xe.Ident],[Xe.Number,Xe.Function],[Xe.Number,Xe.Url],[Xe.Number,Xe.BadUrl],[Xe.Number,Xe.Number],[Xe.Number,Xe.Percentage],[Xe.Number,Xe.Dimension],[Xe.Number,"%"],[Xe.Number,Xe.CDC],["@",Xe.Ident],["@",Xe.Function],["@",Xe.Url],["@",Xe.BadUrl],["@","-"],["@",Xe.CDC],[".",Xe.Number],[".",Xe.Percentage],[".",Xe.Dimension],["+",Xe.Number],["+",Xe.Percentage],["+",Xe.Dimension],["/","*"]],et=Qe.concat([[Xe.Ident,Xe.Hash],[Xe.Dimension,Xe.Hash],[Xe.Hash,Xe.Hash],[Xe.AtKeyword,Xe.LeftParenthesis],[Xe.AtKeyword,Xe.String],[Xe.AtKeyword,Xe.Colon],[Xe.Percentage,Xe.Percentage],[Xe.Percentage,Xe.Dimension],[Xe.Percentage,Xe.Function],[Xe.Percentage,"-"],[Xe.RightParenthesis,Xe.Ident],[Xe.RightParenthesis,Xe.Function],[Xe.RightParenthesis,Xe.Percentage],[Xe.RightParenthesis,Xe.Dimension],[Xe.RightParenthesis,Xe.Hash],[Xe.RightParenthesis,"-"]]);function tt(e){const t=new Set(e.map((([e,t])=>Je(e)<<16|Je(t))));return function(e,n,r){const o=Je(n,r),i=r.charCodeAt(0);return(45===i&&n!==Xe.Ident&&n!==Xe.Function&&n!==Xe.CDC||43===i?t.has(e<<16|i<<8):t.has(e<<16|o))&&this.emit(" ",Xe.WhiteSpace,!0),o}}const nt=tt(Qe),rt=tt(et);Ye.safe=rt,Ye.spec=nt;const ot=b,it=Pe,at=Ye,st=y;function lt(e,t){if("function"!=typeof t)e.children.forEach(this.node,this);else{let n=null;e.children.forEach((e=>{null!==n&&t.call(this,n),this.node(e),n=e}))}}function ct(e){ot.tokenize(e,((t,n,r)=>{this.token(t,e.slice(n,r))}))}ze.createGenerator=function(e){const t=new Map;for(let[n,r]of Object.entries(e.node))"function"==typeof(r.generate||r)&&t.set(n,r.generate||r);return function(e,n){let r="",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:at.safe,token(e,t){o=this.tokenBefore(o,e,t),this.emit(t,e,!1),e===st.Delim&&92===t.charCodeAt(0)&&this.emit("\n",st.WhiteSpace,!0)},emit(e){r+=e},result:()=>r};n&&("function"==typeof n.decorator&&(i=n.decorator(i)),n.sourceMap&&(i=it.generateSourceMap(i)),n.mode in at&&(i.tokenBefore=at[n.mode]));const a={node:e=>i.node(e),children:lt,token:(e,t)=>i.token(e,t),tokenize:ct};return i.node(e),i.result()}};var ut={};const ht=ie;ut.createConvertor=function(e){return{fromPlainObject:t=>(e(t,{enter(e){e.children&&e.children instanceof ht.List==0&&(e.children=(new ht.List).fromArray(e.children))}}),t),toPlainObject:t=>(e(t,{leave(e){e.children&&e.children instanceof ht.List&&(e.children=e.children.toArray())}}),t)}};var dt={};const{hasOwnProperty:pt}=Object.prototype,mt=function(){};function ft(e){return"function"==typeof e?e:mt}function gt(e,t){return function(n,r,o){n.type===t&&e.call(this,n,r,o)}}function bt(e,t){const n=t.structure,r=[];for(const e in n){if(!1===pt.call(n,e))continue;let t=n[e];const o={name:e,type:!1,nullable:!1};Array.isArray(t)||(t=[t]);for(const e of t)null===e?o.nullable=!0:"string"==typeof e?o.type="node":Array.isArray(e)&&(o.type="list");o.type&&r.push(o)}return r.length?{context:t.walkContext,fields:r}:null}function yt(e,t){const n=e.fields.slice(),r=e.context,o="string"==typeof r;return t&&n.reverse(),function(e,i,a,s){let l;o&&(l=i[r],i[r]=e);for(const r of n){const n=e[r.name];if(!r.nullable||n)if("list"===r.type){if(t?n.reduceRight(s,!1):n.reduce(s,!1))return!0}else if(a(n))return!0}o&&(i[r]=l)}}function kt({StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:o}){return{Atrule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Rule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Declaration:{StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:o}}}dt.createWalker=function(e){const t=function(e){const t={};for(const n in e.node)if(pt.call(e.node,n)){const r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=bt(0,r)}return t}(e),n={},r={},o=Symbol("break-walk"),i=Symbol("skip-node");for(const e in t)pt.call(t,e)&&null!==t[e]&&(n[e]=yt(t[e],!1),r[e]=yt(t[e],!0));const a=kt(n),s=kt(r),l=function(e,l){function c(e,t,n){const r=u.call(m,e,t,n);return r===o||r!==i&&(!(!d.hasOwnProperty(e.type)||!d[e.type](e,m,c,p))||h.call(m,e,t,n)===o)}let u=mt,h=mt,d=n,p=(e,t,n,r)=>e||c(t,n,r);const 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=ft(l.enter),h=ft(l.leave),l.reverse&&(d=r),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=gt(u,l.visit),h=gt(h,l.visit)}if(u===mt&&h===mt)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 n=null;return l(e,(function(e,r,i){if(t.call(this,e,r,i))return n=e,o})),n},l.findLast=function(e,t){let n=null;return l(e,{reverse:!0,enter(e,r,i){if(t.call(this,e,r,i))return n=e,o}}),n},l.findAll=function(e,t){const n=[];return l(e,(function(e,r,o){t.call(this,e,r,o)&&n.push(e)})),n},l};var wt={},vt={},xt={};function St(e){return e}function _t(e,t,n,r){let o;switch(e.type){case"Group":o=function(e,t,n,r){const o=" "===e.combinator||r?e.combinator:" "+e.combinator+" ",i=e.terms.map((e=>_t(e,t,n,r))).join(o);return e.explicit||n?(r||","===i[0]?"[":"[ ")+i+(r?"]":" ]"):i}(e,t,n,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return _t(e.term,t,n,r)+t(function(e){const{min:t,max:n,comma:r}=e;return 0===t&&0===n?r?"#?":"*":0===t&&1===n?"?":1===t&&0===n?r?"#":"+":1===t&&1===n?"":(r?"#":"")+(t===n?"{"+t+"}":"{"+t+","+(0!==n?n:"")+"}")}(e),e);case"Type":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)}xt.generate=function(e,t){let n=St,r=!1,o=!1;return"function"==typeof t?n=t:t&&(r=Boolean(t.forceBraces),o=Boolean(t.compact),"function"==typeof t.decorate&&(n=t.decorate)),_t(e,n,r,o)};const Ct=ce,At=xt,zt={offset:0,line:1,column:1};function Pt(e,t){const n=e&&e.loc&&e.loc[t];return n?"line"in n?Et(n):n:null}function Et({offset:e,line:t,column:n},r){const o={offset:e,line:t,column:n};if(r){const e=r.split(/\n|\r\n?|\f/);o.offset+=r.length,o.line+=e.length-1,o.column=1===e.length?o.column+r.length:e.pop().length+1}return o}vt.SyntaxMatchError=function(e,t,n,r){const o=Ct.createCustomError("SyntaxMatchError",e),{css:i,mismatchOffset:a,mismatchLength:s,start:l,end:c}=function(e,t){const n=e.tokens,r=e.longestMatch,o=r<n.length&&n[r].node||null,i=o!==t?o:null;let a,s,l=0,c=0,u=0,h="";for(let e=0;e<n.length;e++){const t=n[e].value;e===r&&(c=t.length,l=h.length),null!==i&&n[e].node===i&&(e<=r?u++:u=0),h+=t}return r===n.length||u>1?(a=Pt(i||t,"end")||Et(zt,h),s=Et(a)):(a=Pt(i,"start")||Et(Pt(t,"start")||zt,h.slice(0,l)),s=Pt(i,"end")||Et(a,h.substr(l,c))),{css:h,mismatchOffset:l,mismatchLength:c,start:a,end:s}}(r,n);return o.rawMessage=e,o.syntax=t?At.generate(t):"<generic>",o.css=i,o.mismatchOffset=a,o.mismatchLength=s,o.message=e+"\n syntax: "+o.syntax+"\n value: "+(i||"<empty string>")+"\n --------"+new Array(o.mismatchOffset+1).join("-")+"^",Object.assign(o,l),o.loc={source:n&&n.loc&&n.loc.source||"<unknown>",start:l,end:c},o},vt.SyntaxReferenceError=function(e,t){const n=Ct.createCustomError("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n};var Lt={};const Ot=new Map,Nt=new Map,Tt=Dt;function Rt(e,t){return t=t||0,e.length-t>=2&&45===e.charCodeAt(t)&&45===e.charCodeAt(t+1)}function Dt(e,t){if(t=t||0,e.length-t>=3&&45===e.charCodeAt(t)&&45!==e.charCodeAt(t+1)){const n=e.indexOf("-",t+2);if(-1!==n)return e.substring(t,n+1)}return""}Lt.isCustomProperty=Rt,Lt.keyword=function(e){if(Ot.has(e))return Ot.get(e);const t=e.toLowerCase();let n=Ot.get(t);if(void 0===n){const e=Rt(t,0),r=e?"":Dt(t,0);n=Object.freeze({basename:t.substr(r.length),name:t,prefix:r,vendor:r,custom:e})}return Ot.set(e,n),n},Lt.property=function(e){if(Nt.has(e))return Nt.get(e);let t=e,n=e[0];"/"===n?n="/"===e[1]?"//":"/":"_"!==n&&"*"!==n&&"$"!==n&&"#"!==n&&"+"!==n&&"&"!==n&&(n="");const r=Rt(t,n.length);if(!r&&(t=t.toLowerCase(),Nt.has(t))){const n=Nt.get(t);return Nt.set(e,n),n}const o=r?"":Dt(t,n.length),i=t.substr(0,n.length+o.length),a=Object.freeze({basename:t.substr(i.length),name:t.substr(n.length),hack:n,vendor:o,prefix:i,custom:r});return Nt.set(e,a),a},Lt.vendorPrefix=Tt;var It={cssWideKeywords:["initial","inherit","unset","revert","revert-layer"]},Bt={};const Mt=k,jt=y,Ft=O,Ut=43,Wt=45,Ht=!0;function qt(e,t){return null!==e&&e.type===jt.Delim&&e.value.charCodeAt(0)===t}function Vt(e,t,n){for(;null!==e&&(e.type===jt.WhiteSpace||e.type===jt.Comment);)e=n(++t);return t}function $t(e,t,n,r){if(!e)return 0;const o=e.value.charCodeAt(t);if(o===Ut||o===Wt){if(n)return 0;t++}for(;t<e.value.length;t++)if(!Mt.isDigit(e.value.charCodeAt(t)))return 0;return r+1}function Kt(e,t,n){let r=!1,o=Vt(e,t,n);if(null===(e=n(o)))return t;if(e.type!==jt.Number){if(!qt(e,Ut)&&!qt(e,Wt))return t;if(r=!0,o=Vt(n(++o),o,n),null===(e=n(o))||e.type!==jt.Number)return 0}if(!r){const t=e.value.charCodeAt(0);if(t!==Ut&&t!==Wt)return 0}return $t(e,r?0:1,r,o)}const Zt=k,Gt=y,Yt=O;function Xt(e,t){return null!==e&&e.type===Gt.Delim&&e.value.charCodeAt(0)===t}function Jt(e,t,n){let r=0;for(let o=t;o<e.value.length;o++){const i=e.value.charCodeAt(o);if(45===i&&n&&0!==r)return Jt(e,t+r+1,!1),6;if(!Zt.isHexDigit(i))return 0;if(++r>6)return 0}return r}function Qt(e,t,n){if(!e)return 0;for(;Xt(n(t),63);){if(++e>6)return 0;t++}return t}const en=It,tn=function(e,t){let n=0;if(!e)return 0;if(e.type===jt.Number)return $t(e,0,!1,n);if(e.type===jt.Ident&&e.value.charCodeAt(0)===Wt){if(!Ft.cmpChar(e.value,1,110))return 0;switch(e.value.length){case 2:return Kt(t(++n),n,t);case 3:return e.value.charCodeAt(2)!==Wt?0:(n=Vt(t(++n),n,t),$t(e=t(n),0,Ht,n));default:return e.value.charCodeAt(2)!==Wt?0:$t(e,3,Ht,n)}}else if(e.type===jt.Ident||qt(e,Ut)&&t(n+1).type===jt.Ident){if(e.type!==jt.Ident&&(e=t(++n)),null===e||!Ft.cmpChar(e.value,0,110))return 0;switch(e.value.length){case 1:return Kt(t(++n),n,t);case 2:return e.value.charCodeAt(1)!==Wt?0:(n=Vt(t(++n),n,t),$t(e=t(n),0,Ht,n));default:return e.value.charCodeAt(1)!==Wt?0:$t(e,2,Ht,n)}}else if(e.type===jt.Dimension){let r=e.value.charCodeAt(0),o=r===Ut||r===Wt?1:0,i=o;for(;i<e.value.length&&Mt.isDigit(e.value.charCodeAt(i));i++);return i===o?0:Ft.cmpChar(e.value,i,110)?i+1===e.value.length?Kt(t(++n),n,t):e.value.charCodeAt(i+1)!==Wt?0:i+2===e.value.length?(n=Vt(t(++n),n,t),$t(e=t(n),0,Ht,n)):$t(e,i+2,Ht,n):0}return 0},nn=function(e,t){let n=0;if(null===e||e.type!==Gt.Ident||!Yt.cmpChar(e.value,0,117))return 0;if(null===(e=t(++n)))return 0;if(Xt(e,43))return null===(e=t(++n))?0:e.type===Gt.Ident?Qt(Jt(e,0,!0),++n,t):Xt(e,63)?Qt(1,++n,t):0;if(e.type===Gt.Number){const r=Jt(e,1,!0);return 0===r?0:null===(e=t(++n))?n:e.type===Gt.Dimension||e.type===Gt.Number?function(e,t){return 45===e.value.charCodeAt(0)}(e)&&Jt(e,1,!1)?n+1:0:Qt(r,n,t)}return e.type===Gt.Dimension?Qt(Jt(e,1,!0),++n,t):0},rn=y,on=k,an=O,sn=["calc(","-moz-calc(","-webkit-calc("],ln=new Map([[rn.Function,rn.RightParenthesis],[rn.LeftParenthesis,rn.RightParenthesis],[rn.LeftSquareBracket,rn.RightSquareBracket],[rn.LeftCurlyBracket,rn.RightCurlyBracket]]);function cn(e,t){return t<e.length?e.charCodeAt(t):0}function un(e,t){return an.cmpStr(e,0,e.length,t)}function hn(e,t){for(let n=0;n<t.length;n++)if(un(e,t[n]))return!0;return!1}function dn(e,t){return t===e.length-2&&92===cn(e,t)&&on.isDigit(cn(e,t+1))}function pn(e,t,n){if(e&&"Range"===e.type){const r=Number(void 0!==n&&n!==t.length?t.substr(0,n):t);if(isNaN(r))return!0;if(null!==e.min&&r<e.min&&"string"!=typeof e.min)return!0;if(null!==e.max&&r>e.max&&"string"!=typeof e.max)return!0}return!1}function mn(e){return function(t,n,r){return null===t?0:t.type===rn.Function&&hn(t.value,sn)?function(e,t){let n=0,r=[],o=0;e:do{switch(e.type){case rn.RightCurlyBracket:case rn.RightParenthesis:case rn.RightSquareBracket:if(e.type!==n)break e;if(n=r.pop(),0===r.length){o++;break e}break;case rn.Function:case rn.LeftParenthesis:case rn.LeftSquareBracket:case rn.LeftCurlyBracket:r.push(n),n=ln.get(e.type)}o++}while(e=t(o));return o}(t,n):e(t,n,r)}}function fn(e){return function(t){return null===t||t.type!==e?0:1}}function gn(e){return null===e||e.type!==rn.Ident||45!==cn(e.value,0)||45!==cn(e.value,1)?0:1}function bn(e){return e&&(e=new Set(e)),function(t,n,r){if(null===t||t.type!==rn.Dimension)return 0;const o=an.consumeNumber(t.value,0);if(null!==e){const n=t.value.indexOf("\\",o),r=-1!==n&&dn(t.value,n)?t.value.substring(o,n):t.value.substr(o);if(!1===e.has(r.toLowerCase()))return 0}return pn(r,t.value,o)?0:1}}function yn(e){return"function"!=typeof e&&(e=function(){return 0}),function(t,n,r){return null!==t&&t.type===rn.Number&&0===Number(t.value)?1:e(t,n,r)}}const kn={"ident-token":fn(rn.Ident),"function-token":fn(rn.Function),"at-keyword-token":fn(rn.AtKeyword),"hash-token":fn(rn.Hash),"string-token":fn(rn.String),"bad-string-token":fn(rn.BadString),"url-token":fn(rn.Url),"bad-url-token":fn(rn.BadUrl),"delim-token":fn(rn.Delim),"number-token":fn(rn.Number),"percentage-token":fn(rn.Percentage),"dimension-token":fn(rn.Dimension),"whitespace-token":fn(rn.WhiteSpace),"CDO-token":fn(rn.CDO),"CDC-token":fn(rn.CDC),"colon-token":fn(rn.Colon),"semicolon-token":fn(rn.Semicolon),"comma-token":fn(rn.Comma),"[-token":fn(rn.LeftSquareBracket),"]-token":fn(rn.RightSquareBracket),"(-token":fn(rn.LeftParenthesis),")-token":fn(rn.RightParenthesis),"{-token":fn(rn.LeftCurlyBracket),"}-token":fn(rn.RightCurlyBracket)},wn={string:fn(rn.String),ident:fn(rn.Ident),percentage:mn((function(e,t,n){return null===e||e.type!==rn.Percentage||pn(n,e.value,e.value.length-1)?0:1})),zero:yn(),number:mn((function(e,t,n){if(null===e)return 0;const r=an.consumeNumber(e.value,0);return r===e.value.length||dn(e.value,r)?pn(n,e.value,r)?0:1:0})),integer:mn((function(e,t,n){if(null===e||e.type!==rn.Number)return 0;let r=43===cn(e.value,0)||45===cn(e.value,0)?1:0;for(;r<e.value.length;r++)if(!on.isDigit(cn(e.value,r)))return 0;return pn(n,e.value,r)?0:1})),"custom-ident":function(e){if(null===e||e.type!==rn.Ident)return 0;const t=e.value.toLowerCase();return hn(t,en.cssWideKeywords)||un(t,"default")?0:1},"dashed-ident":gn,"custom-property-name":function(e){return gn(e)?"--"===e.value?0:1:0},"hex-color":function(e){if(null===e||e.type!==rn.Hash)return 0;const t=e.value.length;if(4!==t&&5!==t&&7!==t&&9!==t)return 0;for(let n=1;n<t;n++)if(!on.isHexDigit(cn(e.value,n)))return 0;return 1},"id-selector":function(e){return null===e||e.type!==rn.Hash?0:on.isIdentifierStart(cn(e.value,1),cn(e.value,2),cn(e.value,3))?1:0},"an-plus-b":tn,urange:nn,"declaration-value":function(e,t){if(!e)return 0;let n=0,r=[],o=0;e:do{switch(e.type){case rn.BadString:case rn.BadUrl:break e;case rn.RightCurlyBracket:case rn.RightParenthesis:case rn.RightSquareBracket:if(e.type!==n)break e;n=r.pop();break;case rn.Semicolon:if(0===n)break e;break;case rn.Delim:if(0===n&&"!"===e.value)break e;break;case rn.Function:case rn.LeftParenthesis:case rn.LeftSquareBracket:case rn.LeftCurlyBracket:r.push(n),n=ln.get(e.type)}o++}while(e=t(o));return o},"any-value":function(e,t){if(!e)return 0;let n=0,r=[],o=0;e:do{switch(e.type){case rn.BadString:case rn.BadUrl:break e;case rn.RightCurlyBracket:case rn.RightParenthesis:case rn.RightSquareBracket:if(e.type!==n)break e;n=r.pop();break;case rn.Function:case rn.LeftParenthesis:case rn.LeftSquareBracket:case rn.LeftCurlyBracket:r.push(n),n=ln.get(e.type)}o++}while(e=t(o));return o}};function vn(e){const{angle:t,decibel:n,frequency:r,flex:o,length:i,resolution:a,semitones:s,time:l}=e||{};return{dimension:mn(bn(null)),angle:mn(bn(t)),decibel:mn(bn(n)),frequency:mn(bn(r)),flex:mn(bn(o)),length:mn(yn(bn(i))),resolution:mn(bn(a)),semitones:mn(bn(s)),time:mn(bn(l))}}Bt.createDemensionTypes=vn,Bt.createGenericTypes=function(e){return{...kn,...wn,...vn(e)}},Bt.productionTypes=wn,Bt.tokenTypes=kn;var xn={angle:["deg","grad","rad","turn"],decibel:["db"],flex:["fr"],frequency:["hz","khz"],length:["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],resolution:["dpi","dpcm","dppx","x"],semitones:["st"],time:["s","ms"]};const Sn=b,_n={decorator(e){const t=[];let n=null;return{...e,node(t){const r=n;n=t,e.node.call(this,t),n=r},emit(e,r,o){t.push({type:r,value:e,node:o?null:n})},result:()=>t}}};var Cn={},An={},zn={},Pn={};const En=ce;Pn.SyntaxError=function(e,t,n){return Object.assign(En.createCustomError("SyntaxError",e),{input:t,offset:n,rawMessage:e,message:e+"\n "+t+"\n--"+new Array((n||t.length)+1).join("-")+"^"})};const Ln=Pn;zn.Tokenizer=class{constructor(e){this.str=e,this.pos=0}charCodeAt(e){return e<this.str.length?this.str.charCodeAt(e):0}charCode(){return this.charCodeAt(this.pos)}nextCharCode(){return this.charCodeAt(this.pos+1)}nextNonWsCode(e){return this.charCodeAt(this.findWsEnd(e))}findWsEnd(e){for(;e<this.str.length;e++){const t=this.str.charCodeAt(e);if(13!==t&&10!==t&&12!==t&&32!==t&&9!==t)break}return e}substringToPos(e){return this.str.substring(this.pos,this.pos=e)}eat(e){this.charCode()!==e&&this.error("Expect `"+String.fromCharCode(e)+"`"),this.pos++}peek(){return this.pos<this.str.length?this.str.charAt(this.pos++):""}error(e){throw new Ln.SyntaxError(e,this.str,this.pos)}};const On=zn,Nn=9,Tn=10,Rn=12,Dn=13,In=32,Bn=33,Mn=35,jn=38,Fn=39,Un=40,Wn=41,Hn=42,qn=43,Vn=44,$n=45,Kn=60,Zn=62,Gn=63,Yn=64,Xn=91,Jn=93,Qn=123,er=124,tr=125,nr=8734,rr=new Uint8Array(128).map(((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0)),or={" ":1,"&&":2,"||":3,"|":4};function ir(e){return e.substringToPos(e.findWsEnd(e.pos))}function ar(e){let t=e.pos;for(;t<e.str.length;t++){const n=e.str.charCodeAt(t);if(n>=128||0===rr[n])break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function sr(e){let t=e.pos;for(;t<e.str.length;t++){const n=e.str.charCodeAt(t);if(n<48||n>57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function lr(e){const 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 cr(e){let t=null,n=null;return e.eat(Qn),t=sr(e),e.charCode()===Vn?(e.pos++,e.charCode()!==tr&&(n=sr(e))):n=t,e.eat(tr),{min:Number(t),max:n?Number(n):0}}function ur(e,t){const n=function(e){let t=null,n=!1;switch(e.charCode()){case Hn:e.pos++,t={min:0,max:0};break;case qn:e.pos++,t={min:1,max:0};break;case Gn:e.pos++,t={min:0,max:1};break;case Mn:e.pos++,n=!0,e.charCode()===Qn?t=cr(e):e.charCode()===Gn?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case Qn:t=cr(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}(e);return null!==n?(n.term=t,e.charCode()===Mn&&e.charCodeAt(e.pos-1)===qn?ur(e,n):n):t}function hr(e){const t=e.peek();return""===t?null:{type:"Token",value:t}}function dr(e,t){function n(e,t){return{type:"Group",terms:e,combinator:t,disallowEmpty:!1,explicit:!1}}let r;for(t=Object.keys(t).sort(((e,t)=>or[e]-or[t]));t.length>0;){r=t.shift();let o=0,i=0;for(;o<e.length;o++){const t=e[o];"Combinator"===t.type&&(t.value===r?(-1===i&&(i=o-1),e.splice(o,1),o--):(-1!==i&&o-i>1&&(e.splice(i,o-i,n(e.slice(i,o),r)),o=i+1),i=-1))}-1!==i&&t.length&&e.splice(i,o-i,n(e.slice(i,o),r))}return r}function pr(e){const t=[],n={};let r,o=null,i=e.pos;for(;r=mr(e);)"Spaces"!==r.type&&("Combinator"===r.type?(null!==o&&"Combinator"!==o.type||(e.pos=i,e.error("Unexpected combinator")),n[r.value]=!0):null!==o&&"Combinator"!==o.type&&(n[" "]=!0,t.push({type:"Combinator",value:" "})),t.push(r),o=r,i=e.pos);return null!==o&&"Combinator"===o.type&&(e.pos-=i,e.error("Unexpected combinator")),{type:"Group",terms:t,combinator:dr(t,n)||" ",disallowEmpty:!1,explicit:!1}}function mr(e){let t=e.charCode();if(t<128&&1===rr[t])return function(e){const t=ar(e);return e.charCode()===Un?(e.pos++,{type:"Function",name:t}):ur(e,{type:"Keyword",name:t})}(e);switch(t){case Jn:break;case Xn:return ur(e,function(e){let t;return e.eat(Xn),t=pr(e),e.eat(Jn),t.explicit=!0,e.charCode()===Bn&&(e.pos++,t.disallowEmpty=!0),t}(e));case Kn:return e.nextCharCode()===Fn?function(e){let t;return e.eat(Kn),e.eat(Fn),t=ar(e),e.eat(Fn),e.eat(Zn),ur(e,{type:"Property",name:t})}(e):function(e){let t,n=null;return e.eat(Kn),t=ar(e),e.charCode()===Un&&e.nextCharCode()===Wn&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===Xn&&(ir(e),n=function(e){let t=null,n=null,r=1;return e.eat(Xn),e.charCode()===$n&&(e.peek(),r=-1),-1==r&&e.charCode()===nr?e.peek():(t=r*Number(sr(e)),0!==rr[e.charCode()]&&(t+=ar(e))),ir(e),e.eat(Vn),ir(e),e.charCode()===nr?e.peek():(r=1,e.charCode()===$n&&(e.peek(),r=-1),n=r*Number(sr(e)),0!==rr[e.charCode()]&&(n+=ar(e))),e.eat(Jn),{type:"Range",min:t,max:n}}(e)),e.eat(Zn),ur(e,{type:"Type",name:t,opts:n})}(e);case er:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===er?2:1))};case jn:return e.pos++,e.eat(jn),{type:"Combinator",value:"&&"};case Vn:return e.pos++,{type:"Comma"};case Fn:return ur(e,{type:"String",value:lr(e)});case In:case Nn:case Tn:case Dn:case Rn:return{type:"Spaces",value:ir(e)};case Yn:return t=e.nextCharCode(),t<128&&1===rr[t]?(e.pos++,{type:"AtKeyword",name:ar(e)}):hr(e);case Hn:case qn:case Gn:case Mn:case Bn:break;case Qn:if(t=e.nextCharCode(),t<48||t>57)return hr(e);break;default:return hr(e)}}An.parse=function(e){const t=new On.Tokenizer(e),n=pr(t);return t.pos!==e.length&&t.error("Unexpected input"),1===n.terms.length&&"Group"===n.terms[0].type?n.terms[0]:n};const fr=An,gr={type:"Match"},br={type:"Mismatch"},yr={type:"DisallowEmpty"},kr=40,wr=41;function vr(e,t,n){return t===gr&&n===br||e===gr&&t===gr&&n===gr?e:("If"===e.type&&e.else===br&&t===gr&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function xr(e){return e.length>2&&e.charCodeAt(e.length-2)===kr&&e.charCodeAt(e.length-1)===wr}function Sr(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&&xr(e.name)}function _r(e,t,n){switch(e){case" ":{let e=gr;for(let n=t.length-1;n>=0;n--)e=vr(t[n],e,br);return e}case"|":{let e=br,n=null;for(let r=t.length-1;r>=0;r--){let o=t[r];if(Sr(o)&&(null===n&&r>0&&Sr(t[r-1])&&(n=Object.create(null),e=vr({type:"Enum",map:n},gr,e)),null!==n)){const e=(xr(o.name)?o.name.slice(0,-1):o.name).toLowerCase();if(e in n==0){n[e]=o;continue}}n=null,e=vr(o,gr,e)}return e}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let n=br;for(let r=t.length-1;r>=0;r--){const o=t[r];let i;i=t.length>1?_r(e,t.filter((function(e){return e!==o})),!1):gr,n=vr(o,i,n)}return n}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?gr:br;for(let n=t.length-1;n>=0;n--){const o=t[n];let i;i=t.length>1?_r(e,t.filter((function(e){return e!==o})),!0):gr,r=vr(o,i,r)}return r}}}function Cr(e){if("function"==typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=_r(e.combinator,e.terms.map(Cr),!1);return e.disallowEmpty&&(t=vr(t,yr,br)),t}case"Multiplier":return function(e){let t=gr,n=Cr(e.term);if(0===e.max)n=vr(n,yr,br),t=vr(n,null,br),t.then=vr(gr,gr,t),e.comma&&(t.then.else=vr({type:"Comma",syntax:e},t,br));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==gr&&(t=vr({type:"Comma",syntax:e},t,br)),t=vr(n,vr(gr,gr,t),br);if(0===e.min)t=vr(gr,gr,t);else for(let r=0;r<e.min-1;r++)e.comma&&t!==gr&&(t=vr({type:"Comma",syntax:e},t,br)),t=vr(n,t,br);return t}(e);case"Type":case"Property":return{type:e.type,name:e.name,syntax:e};case"Keyword":return{type:e.type,name:e.name.toLowerCase(),syntax:e};case"AtKeyword":return{type:e.type,name:"@"+e.name.toLowerCase(),syntax:e};case"Function":return{type:e.type,name:e.name.toLowerCase()+"(",syntax:e};case"String":return 3===e.value.length?{type:"Token",value:e.value.charAt(1),syntax:e}:{type:e.type,value:e.value.substr(1,e.value.length-2).replace(/\\'/g,"'"),syntax:e};case"Token":return{type:e.type,value:e.value,syntax:e};case"Comma":return{type:e.type,syntax:e};default:throw new Error("Unknown node type:",e.type)}}Cn.DISALLOW_EMPTY=yr,Cn.MATCH=gr,Cn.MISMATCH=br,Cn.buildMatchGraph=function(e,t){return"string"==typeof e&&(e=fr.parse(e)),{type:"MatchGraph",match:Cr(e),syntax:t||null,source:e}};var Ar={};const zr=Cn,Pr=y,{hasOwnProperty:Er}=Object.prototype,Lr="Match";function Or(e){let t=null,n=null,r=e;for(;null!==r;)n=r.prev,r.prev=t,t=r,r=n;return t}function Nr(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){const r=t.charCodeAt(n);let o=e.charCodeAt(n);if(o>=65&&o<=90&&(o|=32),o!==r)return!1}return!0}function Tr(e){return null===e||e.type===Pr.Comma||e.type===Pr.Function||e.type===Pr.LeftParenthesis||e.type===Pr.LeftSquareBracket||e.type===Pr.LeftCurlyBracket||function(e){return e.type===Pr.Delim&&"?"!==e.value}(e)}function Rr(e){return null===e||e.type===Pr.RightParenthesis||e.type===Pr.RightSquareBracket||e.type===Pr.RightCurlyBracket||e.type===Pr.Delim&&"/"===e.value}function Dr(e,t,n){function r(){do{b++,g=b<e.length?e[b]:null}while(null!==g&&(g.type===Pr.WhiteSpace||g.type===Pr.Comment))}function o(t){const n=b+t;return n<e.length?e[n]:null}function i(e,t){return{nextState:e,matchStack:k,syntaxStack:u,thenStack:h,tokenIndex:b,prev:t}}function a(e){h={nextState:e,matchStack:k,syntaxStack:u,prev:h}}function s(e){d=i(e,d)}function l(){k={type:1,syntax:t.syntax,token:g,prev:k},r(),p=null,b>y&&(y=b)}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,b=-1,y=0,k={type:0,syntax:null,token:null,prev:null};for(r();null===f&&++m<15e3;)switch(t.type){case"Match":if(null===h){if(null!==g&&(b!==e.length-1||"\\0"!==g.value&&"\\9"!==g.value)){t=zr.MISMATCH;break}f=Lr;break}if((t=h.nextState)===zr.DISALLOW_EMPTY){if(h.matchStack===k){t=zr.MISMATCH;break}t=zr.MATCH}for(;h.syntaxStack!==u;)c();h=h.prev;break;case"Mismatch":if(null!==p&&!1!==p)(null===d||b>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,b=d.tokenIndex,g=b<e.length?e[b]:null,d=d.prev;break;case"MatchGraph":t=t.match;break;case"If":t.else!==zr.MISMATCH&&s(t.else),t.then!==zr.MATCH&&a(t.then),t=t.match;break;case"MatchOnce":t={type:"MatchOnceBuffer",syntax:t,index:0,mask:0};break;case"MatchOnceBuffer":{const e=t.syntax.terms;if(t.index===e.length){if(0===t.mask||t.syntax.all){t=zr.MISMATCH;break}t=zr.MATCH;break}if(t.mask===(1<<e.length)-1){t=zr.MATCH;break}for(;t.index<e.length;t.index++){const n=1<<t.index;if(0==(t.mask&n)){s(t),a({type:"AddMatchOnce",syntax:t.syntax,mask:t.mask|n}),t=e[t.index++];break}}break}case"AddMatchOnce":t={type:"MatchOnceBuffer",syntax:t.syntax,index:0,mask:t.mask};break;case"Enum":if(null!==g){let e=g.value.toLowerCase();if(-1!==e.indexOf("\\")&&(e=e.replace(/\\[09].*$/,"")),Er.call(t.map,e)){t=t.map[e];break}}t=zr.MISMATCH;break;case"Generic":{const e=null!==u?u.opts:null,n=b+Math.floor(t.fn(g,o,e));if(!isNaN(n)&&n>b){for(;b<n;)l();t=zr.MATCH}else t=zr.MISMATCH;break}case"Type":case"Property":{const e="Type"===t.type?"types":"properties",r=Er.call(n,e)?n[e][t.name]:null;if(!r||!r.match)throw new Error("Bad syntax reference: "+("Type"===t.type?"<"+t.name+">":"<'"+t.name+"'>"));if(!1!==p&&null!==g&&"Type"===t.type&&("custom-ident"===t.name&&g.type===Pr.Ident||"length"===t.name&&"0"===g.value)){null===p&&(p=i(t,d)),t=zr.MISMATCH;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=r.match;break}case"Keyword":{const e=t.name;if(null!==g){let n=g.value;if(-1!==n.indexOf("\\")&&(n=n.replace(/\\[09].*$/,"")),Nr(n,e)){l(),t=zr.MATCH;break}}t=zr.MISMATCH;break}case"AtKeyword":case"Function":if(null!==g&&Nr(g.value,t.name)){l(),t=zr.MATCH;break}t=zr.MISMATCH;break;case"Token":if(null!==g&&g.value===t.value){l(),t=zr.MATCH;break}t=zr.MISMATCH;break;case"Comma":null!==g&&g.type===Pr.Comma?Tr(k.token)?t=zr.MISMATCH:(l(),t=Rr(g)?zr.MISMATCH:zr.MATCH):t=Tr(k.token)||Rr(g)?zr.MATCH:zr.MISMATCH;break;case"String":let r="",m=b;for(;m<e.length&&r.length<t.value.length;m++)r+=e[m].value;if(Nr(r,t.value)){for(;b<m;)l();t=zr.MATCH}else t=zr.MISMATCH;break;default:throw new Error("Unknown node type: "+t.type)}switch(f){case null:console.warn("[csstree-match] BREAK after 15000 iterations"),f="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",k=null;break;case Lr:for(;null!==u;)c();break;default:k=null}return{tokens:e,reason:f,iterations:m,match:k,longestMatch:y}}Ar.matchAsList=function(e,t,n){const r=Dr(e,t,n||{});if(null!==r.match){let e=Or(r.match).prev;for(r.match=[];null!==e;){switch(e.type){case 2:case 3:r.match.push({type:e.type,syntax:e.syntax});break;default:r.match.push({token:e.token.value,node:e.token.node})}e=e.prev}}return r},Ar.matchAsTree=function(e,t,n){const r=Dr(e,t,n||{});if(null===r.match)return r;let o=r.match,i=r.match={syntax:t.syntax||null,match:[]};const a=[i];for(o=Or(o).prev;null!==o;){switch(o.type){case 2:i.match.push(i={syntax:o.syntax,match:[]}),a.push(i);break;case 3:a.pop(),i=a[a.length-1];break;default:i.match.push({syntax:o.syntax||null,token:o.token.value,node:o.token.node})}o=o.prev}return r};var Ir={};function Br(e){function t(e){return null!==e&&("Type"===e.type||"Property"===e.type||"Keyword"===e.type)}let n=null;return null!==this.matched&&function r(o){if(Array.isArray(o.match)){for(let e=0;e<o.match.length;e++)if(r(o.match[e]))return t(o.syntax)&&n.unshift(o.syntax),!0}else if(o.node===e)return n=t(o.syntax)?[o.syntax]:[],!0;return!1}(this.matched),n}function Mr(e,t,n){const r=Br.call(e,t);return null!==r&&r.some(n)}Ir.getTrace=Br,Ir.isKeyword=function(e){return Mr(this,e,(e=>"Keyword"===e.type))},Ir.isProperty=function(e,t){return Mr(this,e,(e=>"Property"===e.type&&e.name===t))},Ir.isType=function(e,t){return Mr(this,e,(e=>"Type"===e.type&&e.name===t))};var jr={};const Fr=ie;function Ur(e){return"node"in e?e.node:Ur(e.match[0])}function Wr(e){return"node"in e?e.node:Wr(e.match[e.match.length-1])}jr.matchFragments=function(e,t,n,r,o){const i=[];return null!==n.matched&&function n(a){if(null!==a.syntax&&a.syntax.type===r&&a.syntax.name===o){const n=Ur(a),r=Wr(a);e.syntax.walk(t,(function(e,t,o){if(e===n){const e=new Fr.List;do{if(e.appendData(t.data),t.data===r)break;t=t.next}while(null!==t);i.push({parent:o,nodes:e})}}))}Array.isArray(a.match)&&a.match.forEach(n)}(n.matched),i};var Hr={};const qr=ie,{hasOwnProperty:Vr}=Object.prototype;function $r(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}function Kr(e){return Boolean(e)&&$r(e.offset)&&$r(e.line)&&$r(e.column)}function Zr(e,t){return function(n,r){if(!n||n.constructor!==Object)return r(n,"Type of node should be an Object");for(let o in n){let i=!0;if(!1!==Vr.call(n,o)){if("type"===o)n.type!==e&&r(n,"Wrong node type `"+n.type+"`, expected `"+e+"`");else if("loc"===o){if(null===n.loc)continue;if(n.loc&&n.loc.constructor===Object)if("string"!=typeof n.loc.source)o+=".source";else if(Kr(n.loc.start)){if(Kr(n.loc.end))continue;o+=".end"}else o+=".start";i=!1}else if(t.hasOwnProperty(o)){i=!1;for(let e=0;!i&&e<t[o].length;e++){const r=t[o][e];switch(r){case String:i="string"==typeof n[o];break;case Boolean:i="boolean"==typeof n[o];break;case null:i=null===n[o];break;default:"string"==typeof r?i=n[o]&&n[o].type===r:Array.isArray(r)&&(i=n[o]instanceof qr.List)}}}else r(n,"Unknown field `"+o+"` for "+e+" node type");i||r(n,"Bad value for `"+e+"."+o+"`")}}for(const o in t)Vr.call(t,o)&&!1===Vr.call(n,o)&&r(n,"Field `"+e+"."+o+"` is missed")}}function Gr(e,t){const n=t.structure,r={type:String,loc:!0},o={type:'"'+e+'"'};for(const t in n){if(!1===Vr.call(n,t))continue;const i=[],a=r[t]=Array.isArray(n[t])?n[t].slice():[n[t]];for(let n=0;n<a.length;n++){const r=a[n];if(r===String||r===Boolean)i.push(r.name);else if(null===r)i.push("null");else if("string"==typeof r)i.push("<"+r+">");else{if(!Array.isArray(r))throw new Error("Wrong value `"+r+"` in `"+e+"."+t+"` structure definition");i.push("List")}}o[t]=i.join(" | ")}return{docs:o,check:Zr(e,r)}}Hr.getStructureFromConfig=function(e){const t={};if(e.node)for(const n in e.node)if(Vr.call(e.node,n)){const r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=Gr(n,r)}return t};var Yr={};const Xr=function(){};function Jr(e){return"function"==typeof e?e:Xr}Yr.walk=function(e,t,n){let r=Xr,o=Xr;if("function"==typeof t?r=t:t&&(r=Jr(t.enter),o=Jr(t.leave)),r===Xr&&o===Xr)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");!function e(t){switch(r.call(n,t),t.type){case"Group":t.terms.forEach(e);break;case"Multiplier":e(t.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+t.type)}o.call(n,t)}(e)};const Qr=vt,eo=Lt,to=It,no=Bt,ro=xn,oo=function(e,t){return"string"==typeof e?function(e){const t=[];return Sn.tokenize(e,((n,r,o)=>t.push({type:n,value:e.slice(r,o),node:null}))),t}(e):t.generate(e,_n)},io=Cn,ao=Ar,so=Ir,lo=jr,co=Hr,uo=An,ho=xt,po=Yr,mo=io.buildMatchGraph(to.cssWideKeywords.join(" | "));function fo(e,t,n){const r={};for(const o in e)e[o].syntax&&(r[o]=n?e[o].syntax:ho.generate(e[o].syntax,{compact:t}));return r}function go(e,t,n){const r={};for(const[o,i]of Object.entries(e))r[o]={prelude:i.prelude&&(n?i.prelude.syntax:ho.generate(i.prelude.syntax,{compact:t})),descriptors:i.descriptors&&fo(i.descriptors,t,n)};return r}function bo(e,t,n){return{matched:e,iterations:n,error:t,...so}}function yo(e,t,n,r){const o=oo(n,e.syntax);let i;return function(e){for(let t=0;t<e.length;t++)if("var("===e[t].value.toLowerCase())return!0;return!1}(o)?bo(null,new Error("Matching for a tree with var() is not supported")):(r&&(i=ao.matchAsTree(o,e.cssWideKeywordsSyntax,e)),r&&i.match||(i=ao.matchAsTree(o,t.match,e),i.match)?bo(i.match,null,i.iterations):bo(null,new Qr.SyntaxMatchError(i.reason,t.syntax,n,i),i.iterations))}function ko(e,t){return"string"==typeof t&&/^\s*\|/.test(t)?"string"==typeof e?e+t:t.replace(/^\s*\|\s*/,""):t||null}function wo(e,t){const n=Object.create(null);for(const[r,o]of Object.entries(e))if(o){n[r]={};for(const e of Object.keys(o))t.includes(e)&&(n[r][e]=o[e])}return n}wt.Lexer=class{constructor(e,t,n){if(this.cssWideKeywordsSyntax=mo,this.syntax=t,this.generic=!1,this.units={...ro},this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=n||co.getStructureFromConfig(e),e){if(e.units)for(const t of Object.keys(ro))Array.isArray(e.units[t])&&(this.units[t]=e.units[t]);if(e.types)for(const[t,n]of Object.entries(e.types))this.addType_(t,n);if(e.generic){this.generic=!0;for(const[e,t]of Object.entries(no.createGenericTypes(this.units)))this.addType_(e,t)}if(e.atrules)for(const[t,n]of Object.entries(e.atrules))this.addAtrule_(t,n);if(e.properties)for(const[t,n]of Object.entries(e.properties))this.addProperty_(t,n)}}checkStructure(e){function t(e,t){r.push({node:e,message:t})}const n=this.structure,r=[];return this.syntax.walk(e,(function(e){n.hasOwnProperty(e.type)?n[e.type].check(e,t):t(e,"Unknown node type `"+e.type+"`")})),!!r.length&&r}createDescriptor(e,t,n,r=null){const o={type:t,name:n},i={type:t,name:n,parent:r,serializable:"string"==typeof e||e&&"string"==typeof e.type,syntax:null,match:null};return"function"==typeof e?i.match=io.buildMatchGraph(e,o):("string"==typeof e?Object.defineProperty(i,"syntax",{get:()=>(Object.defineProperty(i,"syntax",{value:uo.parse(e)}),i.syntax)}):i.syntax=e,Object.defineProperty(i,"match",{get:()=>(Object.defineProperty(i,"match",{value:io.buildMatchGraph(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(((n,r)=>(n[r]=this.createDescriptor(t.descriptors[r],"AtruleDescriptor",r,e),n)),Object.create(null)):null})}addProperty_(e,t){t&&(this.properties[e]=this.createDescriptor(t,"Property",e))}addType_(e,t){t&&(this.types[e]=this.createDescriptor(t,"Type",e))}checkAtruleName(e){if(!this.getAtrule(e))return new Qr.SyntaxReferenceError("Unknown at-rule","@"+e)}checkAtrulePrelude(e,t){const n=this.checkAtruleName(e);if(n)return n;const r=this.getAtrule(e);return!r.prelude&&t?new SyntaxError("At-rule `@"+e+"` should not contain a prelude"):!r.prelude||t||yo(this,r.prelude,"",!1).matched?void 0:new SyntaxError("At-rule `@"+e+"` should contain a prelude")}checkAtruleDescriptorName(e,t){const n=this.checkAtruleName(e);if(n)return n;const r=this.getAtrule(e),o=eo.keyword(t);return r.descriptors?r.descriptors[o.name]||r.descriptors[o.basename]?void 0:new Qr.SyntaxReferenceError("Unknown at-rule descriptor",t):new SyntaxError("At-rule `@"+e+"` has no known descriptors")}checkPropertyName(e){if(!this.getProperty(e))return new Qr.SyntaxReferenceError("Unknown property",e)}matchAtrulePrelude(e,t){const n=this.checkAtrulePrelude(e,t);if(n)return bo(null,n);const r=this.getAtrule(e);return r.prelude?yo(this,r.prelude,t||"",!1):bo(null,null)}matchAtruleDescriptor(e,t,n){const r=this.checkAtruleDescriptorName(e,t);if(r)return bo(null,r);const o=this.getAtrule(e),i=eo.keyword(t);return yo(this,o.descriptors[i.name]||o.descriptors[i.basename],n,!1)}matchDeclaration(e){return"Declaration"!==e.type?bo(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,t){if(eo.property(e).custom)return bo(null,new Error("Lexer matching doesn't applicable for custom properties"));const n=this.checkPropertyName(e);return n?bo(null,n):yo(this,this.getProperty(e),t,!0)}matchType(e,t){const n=this.getType(e);return n?yo(this,n,t,!1):bo(null,new Qr.SyntaxReferenceError("Unknown type",e))}match(e,t){return"string"==typeof e||e&&e.type?("string"!=typeof e&&e.match||(e=this.createDescriptor(e,"Type","anonymous")),yo(this,e,t,!1)):bo(null,new Qr.SyntaxReferenceError("Bad syntax"))}findValueFragments(e,t,n,r){return lo.matchFragments(this,t,this.matchProperty(e,t),n,r)}findDeclarationValueFragments(e,t,n){return lo.matchFragments(this,e.value,this.matchDeclaration(e),t,n)}findAllFragments(e,t,n){const r=[];return this.syntax.walk(e,{visit:"Declaration",enter:e=>{r.push.apply(r,this.findDeclarationValueFragments(e,t,n))}}),r}getAtrule(e,t=!0){const n=eo.keyword(e);return(n.vendor&&t?this.atrules[n.name]||this.atrules[n.basename]:this.atrules[n.name])||null}getAtrulePrelude(e,t=!0){const n=this.getAtrule(e,t);return n&&n.prelude||null}getAtruleDescriptor(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[t]||null}getProperty(e,t=!0){const n=eo.property(e);return(n.vendor&&t?this.properties[n.name]||this.properties[n.basename]:this.properties[n.name])||null}getType(e){return hasOwnProperty.call(this.types,e)?this.types[e]:null}validate(){function e(r,o,i,a){if(i.has(o))return i.get(o);i.set(o,!1),null!==a.syntax&&po.walk(a.syntax,(function(a){if("Type"!==a.type&&"Property"!==a.type)return;const s="Type"===a.type?r.types:r.properties,l="Type"===a.type?t:n;hasOwnProperty.call(s,a.name)&&!e(r,a.name,l,s[a.name])||i.set(o,!0)}),this)}let t=new Map,n=new Map;for(const n in this.types)e(this,n,t,this.types[n]);for(const t in this.properties)e(this,t,n,this.properties[t]);return t=[...t.keys()].filter((e=>t.get(e))),n=[...n.keys()].filter((e=>n.get(e))),t.length||n.length?{types:t,properties:n}:null}dump(e,t){return{generic:this.generic,units:this.units,types:fo(this.types,!t,e),properties:fo(this.properties,!t,e),atrules:go(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}};const vo=b,xo=oe,So=ze,_o=ut,Co=dt,Ao=wt,zo=function(e,t){const n={...e};for(const[r,o]of Object.entries(t))switch(r){case"generic":n[r]=Boolean(o);break;case"units":n[r]={...e[r]};for(const[e,t]of Object.entries(o))n[r][e]=Array.isArray(t)?t:[];break;case"atrules":n[r]={...e[r]};for(const[e,t]of Object.entries(o)){const o=n[r][e]||{},i=n[r][e]={prelude:o.prelude||null,descriptors:{...o.descriptors}};if(t){i.prelude=t.prelude?ko(i.prelude,t.prelude):i.prelude||null;for(const[e,n]of Object.entries(t.descriptors||{}))i.descriptors[e]=n?ko(i.descriptors[e],n):null;Object.keys(i.descriptors).length||(i.descriptors=null)}}break;case"types":case"properties":n[r]={...e[r]};for(const[e,t]of Object.entries(o))n[r][e]=ko(n[r][e],t);break;case"scope":case"features":n[r]={...e[r]};for(const[e,t]of Object.entries(o))n[r][e]={...n[r][e],...t};break;case"parseContext":n[r]={...e[r],...o};break;case"atrule":case"pseudo":n[r]={...e[r],...wo(o,["parse"])};break;case"node":n[r]={...e[r],...wo(o,["name","structure","parse","generate","walkContext"])}}return n};function Po(e){const t=xo.createParser(e),n=Co.createWalker(e),r=So.createGenerator(e),{fromPlainObject:o,toPlainObject:i}=_o.createConvertor(n),a={lexer:null,createLexer:e=>new Ao.Lexer(e,a,a.lexer.structure),tokenize:vo.tokenize,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:o,toPlainObject:i,fork(t){const n=zo({},e);return Po("function"==typeof t?t(n,Object.assign):zo(n,t))}};return a.lexer=new Ao.Lexer({generic:!0,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},a),a}var Eo=e=>Po(zo({},e)),Lo={},Oo={};const No=y,To=k,Ro=43,Do=45,Io=110,Bo=!0;function Mo(e,t){let n=this.tokenStart+e;const r=this.charCodeAt(n);for(r!==Ro&&r!==Do||(t&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)To.isDigit(this.charCodeAt(n))||this.error("Integer is expected",n)}function jo(e){return Mo.call(this,0,e)}function Fo(e,t){if(!this.cmpChar(this.tokenStart+e,t)){let n="";switch(t){case Io:n="N is expected";break;case Do:n="HyphenMinus is expected"}this.error(n,this.tokenStart+e)}}function Uo(){let e=0,t=0,n=this.tokenType;for(;n===No.WhiteSpace||n===No.Comment;)n=this.lookupType(++e);if(n!==No.Number){if(!this.isDelim(Ro,e)&&!this.isDelim(Do,e))return null;t=this.isDelim(Ro,e)?Ro:Do;do{n=this.lookupType(++e)}while(n===No.WhiteSpace||n===No.Comment);n!==No.Number&&(this.skip(e),jo.call(this,Bo))}return e>0&&this.skip(e),0===t&&(n=this.charCodeAt(this.tokenStart),n!==Ro&&n!==Do&&this.error("Number sign is expected")),jo.call(this,0!==t),t===Do?"-"+this.consume(No.Number):this.consume(No.Number)}const Wo={a:[String,null],b:[String,null]};Oo.generate=function(e){if(e.a){const t=("+1"===e.a||"1"===e.a?"n":"-1"===e.a&&"-n")||e.a+"n";if(e.b){const n="-"===e.b[0]||"+"===e.b[0]?e.b:"+"+e.b;this.tokenize(t+n)}else this.tokenize(t)}else this.tokenize(e.b)},Oo.name="AnPlusB",Oo.parse=function(){const e=this.tokenStart;let t=null,n=null;if(this.tokenType===No.Number)jo.call(this,!1),n=this.consume(No.Number);else if(this.tokenType===No.Ident&&this.cmpChar(this.tokenStart,Do))switch(t="-1",Fo.call(this,1,Io),this.tokenEnd-this.tokenStart){case 2:this.next(),n=Uo.call(this);break;case 3:Fo.call(this,2,Do),this.next(),this.skipSC(),jo.call(this,Bo),n="-"+this.consume(No.Number);break;default:Fo.call(this,2,Do),Mo.call(this,3,Bo),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===No.Ident||this.isDelim(Ro)&&this.lookupType(1)===No.Ident){let r=0;switch(t="1",this.isDelim(Ro)&&(r=1,this.next()),Fo.call(this,0,Io),this.tokenEnd-this.tokenStart){case 1:this.next(),n=Uo.call(this);break;case 2:Fo.call(this,1,Do),this.next(),this.skipSC(),jo.call(this,Bo),n="-"+this.consume(No.Number);break;default:Fo.call(this,1,Do),Mo.call(this,2,Bo),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===No.Dimension){const r=this.charCodeAt(this.tokenStart),o=r===Ro||r===Do;let i=this.tokenStart+o;for(;i<this.tokenEnd&&To.isDigit(this.charCodeAt(i));i++);i===this.tokenStart+o&&this.error("Integer is expected",this.tokenStart+o),Fo.call(this,i-this.tokenStart,Io),t=this.substring(e,i),i+1===this.tokenEnd?(this.next(),n=Uo.call(this)):(Fo.call(this,i-this.tokenStart+1,Do),i+2===this.tokenEnd?(this.next(),this.skipSC(),jo.call(this,Bo),n="-"+this.consume(No.Number)):(Mo.call(this,i-this.tokenStart+2,Bo),this.next(),n=this.substrToCursor(i+1)))}else this.error();return null!==t&&t.charCodeAt(0)===Ro&&(t=t.substr(1)),null!==n&&n.charCodeAt(0)===Ro&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(e,this.tokenStart),a:t,b:n}},Oo.structure=Wo;var Ho={};const qo=y;function Vo(){return this.Raw(this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function $o(){for(let e,t=1;e=this.lookupType(t);t++){if(e===qo.RightCurlyBracket)return!0;if(e===qo.LeftCurlyBracket||e===qo.AtKeyword)return!1}return!1}const Ko={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};Ho.generate=function(e){this.token(qo.AtKeyword,"@"+e.name),null!==e.prelude&&this.node(e.prelude),e.block?(this.token(qo.LeftCurlyBracket,"{"),this.node(e.block),this.token(qo.RightCurlyBracket,"}")):this.token(qo.Semicolon,";")},Ho.name="Atrule",Ho.parse=function(e=!1){const t=this.tokenStart;let n,r,o=null,i=null;switch(this.eat(qo.AtKeyword),n=this.substrToCursor(t+1),r=n.toLowerCase(),this.skipSC(),!1===this.eof&&this.tokenType!==qo.LeftCurlyBracket&&this.tokenType!==qo.Semicolon&&(o=this.parseAtrulePrelude?this.parseWithFallback(this.AtrulePrelude.bind(this,n,e),Vo):Vo.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case qo.Semicolon:this.next();break;case qo.LeftCurlyBracket:this.eat(qo.LeftCurlyBracket),i=hasOwnProperty.call(this.atrule,r)&&"function"==typeof this.atrule[r].block?this.atrule[r].block.call(this,e):this.Block($o.call(this)),this.eof||this.eat(qo.RightCurlyBracket)}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:n,prelude:o,block:i}},Ho.structure=Ko,Ho.walkContext="atrule";var Zo={};const Go=y;Zo.generate=function(e){this.children(e)},Zo.name="AtrulePrelude",Zo.parse=function(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&&this.tokenType!==Go.LeftCurlyBracket&&this.tokenType!==Go.Semicolon&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}},Zo.structure={children:[[]]},Zo.walkContext="atrulePrelude";var Yo={};const Xo=y;function Jo(){this.eof&&this.error("Unexpected end of input");const e=this.tokenStart;let t=!1;return this.isDelim(42)?(t=!0,this.next()):this.isDelim(124)||this.eat(Xo.Ident),this.isDelim(124)?61!==this.charCodeAt(this.tokenStart+1)?(this.next(),this.eat(Xo.Ident)):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 Qo(){const 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)}const ei={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};Yo.generate=function(e){this.token(Xo.Delim,"["),this.node(e.name),null!==e.matcher&&(this.tokenize(e.matcher),this.node(e.value)),null!==e.flags&&this.token(Xo.Ident,e.flags),this.token(Xo.Delim,"]")},Yo.name="AttributeSelector",Yo.parse=function(){const e=this.tokenStart;let t,n=null,r=null,o=null;return this.eat(Xo.LeftSquareBracket),this.skipSC(),t=Jo.call(this),this.skipSC(),this.tokenType!==Xo.RightSquareBracket&&(this.tokenType!==Xo.Ident&&(n=Qo.call(this),this.skipSC(),r=this.tokenType===Xo.String?this.String():this.Identifier(),this.skipSC()),this.tokenType===Xo.Ident&&(o=this.consume(Xo.Ident),this.skipSC())),this.eat(Xo.RightSquareBracket),{type:"AttributeSelector",loc:this.getLocation(e,this.tokenStart),name:t,matcher:n,value:r,flags:o}},Yo.structure=ei;var ti={};const ni=y;function ri(){return this.Raw(null,!0)}function oi(){return this.parseWithFallback(this.Rule,ri)}function ii(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}function ai(){if(this.tokenType===ni.Semicolon)return ii.call(this,this.tokenIndex);const e=this.parseWithFallback(this.Declaration,ii);return this.tokenType===ni.Semicolon&&this.next(),e}ti.generate=function(e){this.children(e,(e=>{"Declaration"===e.type&&this.token(ni.Semicolon,";")}))},ti.name="Block",ti.parse=function(e){const t=e?ai:oi,n=this.tokenStart;let r=this.createList();e:for(;!this.eof;)switch(this.tokenType){case ni.RightCurlyBracket:break e;case ni.WhiteSpace:case ni.Comment:this.next();break;case ni.AtKeyword:r.push(this.parseWithFallback(this.Atrule.bind(this,e),ri));break;default:e&&this.isDelim(38)?r.push(oi.call(this)):r.push(t.call(this))}return{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}},ti.structure={children:[["Atrule","Rule","Declaration"]]},ti.walkContext="block";var si={};const li=y;si.generate=function(e){this.token(li.Delim,"["),this.children(e),this.token(li.Delim,"]")},si.name="Brackets",si.parse=function(e,t){const n=this.tokenStart;let r=null;return this.eat(li.LeftSquareBracket),r=e.call(this,t),this.eof||this.eat(li.RightSquareBracket),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:r}},si.structure={children:[[]]};var ci={};const ui=y;ci.generate=function(){this.token(ui.CDC,"--\x3e")},ci.name="CDC",ci.parse=function(){const e=this.tokenStart;return this.eat(ui.CDC),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}},ci.structure=[];var hi={};const di=y;hi.generate=function(){this.token(di.CDO,"\x3c!--")},hi.name="CDO",hi.parse=function(){const e=this.tokenStart;return this.eat(di.CDO),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}},hi.structure=[];var pi={};const mi=y,fi={name:String};pi.generate=function(e){this.token(mi.Delim,"."),this.token(mi.Ident,e.name)},pi.name="ClassSelector",pi.parse=function(){return this.eatDelim(46),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(mi.Ident)}},pi.structure=fi;var gi={};const bi=y,yi={name:String};gi.generate=function(e){this.tokenize(e.name)},gi.name="Combinator",gi.parse=function(){const e=this.tokenStart;let t;switch(this.tokenType){case bi.WhiteSpace:t=" ";break;case bi.Delim: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")}t=this.substrToCursor(e)}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}},gi.structure=yi;var ki={};const wi=y,vi={value:String};ki.generate=function(e){this.token(wi.Comment,"/*"+e.value+"*/")},ki.name="Comment",ki.parse=function(){const e=this.tokenStart;let t=this.tokenEnd;return this.eat(wi.Comment),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)}},ki.structure=vi;var xi={};const Si=y,_i=new Set([Si.Colon,Si.RightParenthesis,Si.EOF]),Ci={kind:String,children:[["Identifier","Feature","FeatureFunction","FeatureRange","SupportsDeclaration"]]};function Ai(e){return this.lookupTypeNonSC(1)===Si.Ident&&_i.has(this.lookupTypeNonSC(2))?this.Feature(e):this.FeatureRange(e)}const zi={media:Ai,container:Ai,supports(){return this.SupportsDeclaration()}};xi.generate=function(e){e.children.forEach((e=>{"Condition"===e.type?(this.token(Si.LeftParenthesis,"("),this.node(e),this.token(Si.RightParenthesis,")")):this.node(e)}))},xi.name="Condition",xi.parse=function(e="media"){const t=this.createList();e:for(;!this.eof;)switch(this.tokenType){case Si.Comment:case Si.WhiteSpace:this.next();continue;case Si.Ident:t.push(this.Identifier());break;case Si.LeftParenthesis:{let n=this.parseWithFallback((()=>zi[e].call(this,e)),(()=>null));n||(n=this.parseWithFallback((()=>{this.eat(Si.LeftParenthesis);const t=this.Condition(e);return this.eat(Si.RightParenthesis),t}),(()=>this.GeneralEnclosed(e)))),t.push(n);break}case Si.Function:{let n=this.parseWithFallback((()=>this.FeatureFunction(e)),(()=>null));n||(n=this.GeneralEnclosed(e)),t.push(n);break}default:break e}return t.isEmpty&&this.error("Condition is expected"),{type:"Condition",loc:this.getLocationFromList(t),kind:e,children:t}},xi.structure=Ci;var Pi={};const Ei=Lt,Li=y;function Oi(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!0)}function Ni(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1)}function Ti(){const e=this.tokenIndex,t=this.Value();return"Raw"!==t.type&&!1===this.eof&&this.tokenType!==Li.Semicolon&&!1===this.isDelim(33)&&!1===this.isBalanceEdge(e)&&this.error(),t}const Ri={important:[Boolean,String],property:String,value:["Value","Raw"]};function Di(){const e=this.tokenStart;if(this.tokenType===Li.Delim)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 this.tokenType===Li.Hash?this.eat(Li.Hash):this.eat(Li.Ident),this.substrToCursor(e)}function Ii(){this.eat(Li.Delim),this.skipSC();const e=this.consume(Li.Ident);return"important"===e||e}Pi.generate=function(e){this.token(Li.Ident,e.property),this.token(Li.Colon,":"),this.node(e.value),e.important&&(this.token(Li.Delim,"!"),this.token(Li.Ident,!0===e.important?"important":e.important))},Pi.name="Declaration",Pi.parse=function(){const e=this.tokenStart,t=this.tokenIndex,n=Di.call(this),r=Ei.isCustomProperty(n),o=r?this.parseCustomProperty:this.parseValue,i=r?Ni:Oi;let a,s=!1;this.skipSC(),this.eat(Li.Colon);const l=this.tokenIndex;if(r||this.skipSC(),a=o?this.parseWithFallback(Ti,i):i.call(this,this.tokenIndex),r&&"Value"===a.type&&a.children.isEmpty)for(let e=l-this.tokenIndex;e<=0;e++)if(this.lookupType(e)===Li.WhiteSpace){a.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}return this.isDelim(33)&&(s=Ii.call(this),this.skipSC()),!1===this.eof&&this.tokenType!==Li.Semicolon&&!1===this.isBalanceEdge(t)&&this.error(),{type:"Declaration",loc:this.getLocation(e,this.tokenStart),important:s,property:n,value:a}},Pi.structure=Ri,Pi.walkContext="declaration";var Bi={};const Mi=y;function ji(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}Bi.generate=function(e){this.children(e,(e=>{"Declaration"===e.type&&this.token(Mi.Semicolon,";")}))},Bi.name="DeclarationList",Bi.parse=function(){const e=this.createList();for(;!this.eof;)switch(this.tokenType){case Mi.WhiteSpace:case Mi.Comment:case Mi.Semicolon:this.next();break;case Mi.AtKeyword:e.push(this.parseWithFallback(this.Atrule.bind(this,!0),ji));break;default:this.isDelim(38)?e.push(this.parseWithFallback(this.Rule,ji)):e.push(this.parseWithFallback(this.Declaration,ji))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}},Bi.structure={children:[["Declaration","Atrule","Rule"]]};var Fi={};const Ui=y,Wi={value:String,unit:String};Fi.generate=function(e){this.token(Ui.Dimension,e.value+e.unit)},Fi.name="Dimension",Fi.parse=function(){const e=this.tokenStart,t=this.consumeNumber(Ui.Dimension);return{type:"Dimension",loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}},Fi.structure=Wi;var Hi={};const qi=y,Vi={kind:String,name:String,value:["Identifier","Number","Dimension","Ratio","Function",null]};Hi.generate=function(e){this.token(qi.LeftParenthesis,"("),this.token(qi.Ident,e.name),null!==e.value&&(this.token(qi.Colon,":"),this.node(e.value)),this.token(qi.RightParenthesis,")")},Hi.name="Feature",Hi.parse=function(e){const t=this.tokenStart;let n,r=null;if(this.eat(qi.LeftParenthesis),this.skipSC(),n=this.consume(qi.Ident),this.skipSC(),this.tokenType!==qi.RightParenthesis){switch(this.eat(qi.Colon),this.skipSC(),this.tokenType){case qi.Number:r=this.lookupNonWSType(1)===qi.Delim?this.Ratio():this.Number();break;case qi.Dimension:r=this.Dimension();break;case qi.Ident:r=this.Identifier();break;case qi.Function:r=this.parseWithFallback((()=>{const e=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(47)&&this.error(),e}),(()=>this.Ratio()));break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eof||this.eat(qi.RightParenthesis),{type:"Feature",loc:this.getLocation(t,this.tokenStart),kind:e,name:n,value:r}},Hi.structure=Vi;var $i={};const Ki=y,Zi={kind:String,feature:String,value:["Declaration","Selector"]};function Gi(e,t){const n=(this.features[e]||{})[t];return"function"!=typeof n&&this.error(`Unknown feature ${t}()`),n}$i.generate=function(e){this.token(Ki.Function,e.feature+"("),this.node(e.value),this.token(Ki.RightParenthesis,")")},$i.name="FeatureFunction",$i.parse=function(e="unknown"){const t=this.tokenStart,n=this.consumeFunctionName(),r=Gi.call(this,e,n.toLowerCase());this.skipSC();const o=this.parseWithFallback((()=>{const e=this.tokenIndex,t=r.call(this);return!1===this.eof&&!1===this.isBalanceEdge(e)&&this.error(),t}),(()=>this.Raw(null,!1)));return this.eof||this.eat(Ki.RightParenthesis),{type:"FeatureFunction",loc:this.getLocation(t,this.tokenStart),kind:e,feature:n,value:o}},$i.structure=Zi;var Yi={};const Xi=y,Ji={kind:String,left:["Identifier","Number","Dimension","Ratio","Function"],leftComparison:String,middle:["Identifier","Number","Dimension","Ratio","Function"],rightComparison:[String,null],right:["Identifier","Number","Dimension","Ratio","Function",null]};function Qi(){switch(this.skipSC(),this.tokenType){case Xi.Number:return this.isDelim(47,this.lookupOffsetNonSC(1))?this.Ratio():this.Number();case Xi.Dimension:return this.Dimension();case Xi.Ident:return this.Identifier();case Xi.Function:return this.parseWithFallback((()=>{const e=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(47)&&this.error(),e}),(()=>this.Ratio()));default:this.error("Number, dimension, ratio or identifier is expected")}}function ea(e){if(this.skipSC(),this.isDelim(60)||this.isDelim(62)){const e=this.source[this.tokenStart];return this.next(),this.isDelim(61)?(this.next(),e+"="):e}if(this.isDelim(61))return"=";this.error(`Expected ${e?'":", ':""}"<", ">", "=" or ")"`)}Yi.generate=function(e){this.token(Xi.LeftParenthesis,"("),this.node(e.left),this.tokenize(e.leftComparison),this.node(e.middle),e.right&&(this.tokenize(e.rightComparison),this.node(e.right)),this.token(Xi.RightParenthesis,")")},Yi.name="FeatureRange",Yi.parse=function(e="unknown"){const t=this.tokenStart;this.skipSC(),this.eat(Xi.LeftParenthesis);const n=Qi.call(this),r=ea.call(this,"Identifier"===n.type),o=Qi.call(this);let i=null,a=null;return this.lookupNonWSType(0)!==Xi.RightParenthesis&&(i=ea.call(this),a=Qi.call(this)),this.skipSC(),this.eat(Xi.RightParenthesis),{type:"FeatureRange",loc:this.getLocation(t,this.tokenStart),kind:e,left:n,leftComparison:r,middle:o,rightComparison:i,right:a}},Yi.structure=Ji;var ta={};const na=y,ra={name:String,children:[[]]};ta.generate=function(e){this.token(na.Function,e.name+"("),this.children(e),this.token(na.RightParenthesis,")")},ta.name="Function",ta.parse=function(e,t){const n=this.tokenStart,r=this.consumeFunctionName(),o=r.toLowerCase();let i;return i=t.hasOwnProperty(o)?t[o].call(this,t):e.call(this,t),this.eof||this.eat(na.RightParenthesis),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:r,children:i}},ta.structure=ra,ta.walkContext="function";var oa={};const ia=y,aa={kind:String,function:[String,null],children:[[]]};oa.generate=function(e){e.function?this.token(ia.Function,e.function+"("):this.token(ia.LeftParenthesis,"("),this.children(e),this.token(ia.RightParenthesis,")")},oa.name="GeneralEnclosed",oa.parse=function(e){const t=this.tokenStart;let n=null;this.tokenType===ia.Function?n=this.consumeFunctionName():this.eat(ia.LeftParenthesis);const r=this.parseWithFallback((()=>{const e=this.tokenIndex,t=this.readSequence(this.scope.Value);return!1===this.eof&&!1===this.isBalanceEdge(e)&&this.error(),t}),(()=>this.createSingleNodeList(this.Raw(null,!1))));return this.eof||this.eat(ia.RightParenthesis),{type:"GeneralEnclosed",loc:this.getLocation(t,this.tokenStart),kind:e,function:n,children:r}},oa.structure=aa;var sa={};const la=y,ca={value:String};sa.generate=function(e){this.token(la.Hash,"#"+e.value)},sa.name="Hash",sa.parse=function(){const e=this.tokenStart;return this.eat(la.Hash),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}},sa.structure=ca,sa.xxx="XXX";var ua={};const ha=y,da={name:String};ua.generate=function(e){this.token(ha.Ident,e.name)},ua.name="Identifier",ua.parse=function(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(ha.Ident)}},ua.structure=da;var pa={};const ma=y,fa={name:String};pa.generate=function(e){this.token(ma.Delim,"#"+e.name)},pa.name="IdSelector",pa.parse=function(){const e=this.tokenStart;return this.eat(ma.Hash),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}},pa.structure=fa;var ga={};const ba=y,ya={name:String};ga.generate=function(e){this.tokenize(e.name)},ga.name="Layer",ga.parse=function(){let e=this.consume(ba.Ident);for(;this.isDelim(46);)this.eat(ba.Delim),e+="."+this.consume(ba.Ident);return{type:"Layer",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:e}},ga.structure=ya;var ka={};const wa=y;ka.generate=function(e){this.children(e,(()=>this.token(wa.Comma,",")))},ka.name="LayerList",ka.parse=function(){const e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.Layer()),this.tokenType===wa.Comma);)this.next(),this.skipSC();return{type:"LayerList",loc:this.getLocationFromList(e),children:e}},ka.structure={children:[["MediaQuery"]]};var va={};const xa=y,Sa={modifier:[String,null],mediaType:[String,null],condition:["Condition",null]};va.generate=function(e){e.mediaType?(e.modifier&&this.token(xa.Ident,e.modifier),this.token(xa.Ident,e.mediaType),e.condition&&(this.token(xa.Ident,"and"),this.node(e.condition))):e.condition&&this.node(e.condition)},va.name="MediaQuery",va.parse=function(){const e=this.tokenStart;let t=null,n=null,r=null;if(this.skipSC(),this.tokenType===xa.Ident&&this.lookupTypeNonSC(1)!==xa.LeftParenthesis){const e=this.consume(xa.Ident),o=e.toLowerCase();switch("not"===o||"only"===o?(this.skipSC(),t=o,n=this.consume(xa.Ident)):n=e,this.lookupTypeNonSC(0)){case xa.Ident:this.skipSC(),this.eatIdent("and"),r=this.Condition("media");break;case xa.LeftCurlyBracket:case xa.Semicolon:case xa.Comma:case xa.EOF:break;default:this.error("Identifier or parenthesis is expected")}}else switch(this.tokenType){case xa.Ident:case xa.LeftParenthesis:case xa.Function:r=this.Condition("media");break;case xa.LeftCurlyBracket:case xa.Semicolon:case xa.EOF:break;default:this.error("Identifier or parenthesis is expected")}return{type:"MediaQuery",loc:this.getLocation(e,this.tokenStart),modifier:t,mediaType:n,condition:r}},va.structure=Sa;var _a={};const Ca=y;_a.generate=function(e){this.children(e,(()=>this.token(Ca.Comma,",")))},_a.name="MediaQueryList",_a.parse=function(){const e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===Ca.Comma);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}},_a.structure={children:[["MediaQuery"]]};var Aa={};const za=y;Aa.generate=function(){this.token(za.Delim,"&")},Aa.name="NestingSelector",Aa.parse=function(){const e=this.tokenStart;return this.eatDelim(38),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}},Aa.structure={};var Pa={};const Ea=y;Pa.generate=function(e){this.node(e.nth),null!==e.selector&&(this.token(Ea.Ident,"of"),this.node(e.selector))},Pa.name="Nth",Pa.parse=function(){this.skipSC();const e=this.tokenStart;let t,n=e,r=null;return t=this.lookupValue(0,"odd")||this.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),n=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),r=this.SelectorList(),n=this.tokenStart),{type:"Nth",loc:this.getLocation(e,n),nth:t,selector:r}},Pa.structure={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};var La={};const Oa=y,Na={value:String};La.generate=function(e){this.token(Oa.Number,e.value)},La.name="Number",La.parse=function(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(Oa.Number)}},La.structure=Na;var Ta={};const Ra={value:String};Ta.generate=function(e){this.tokenize(e.value)},Ta.name="Operator",Ta.parse=function(){const e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}},Ta.structure=Ra;var Da={};const Ia=y;Da.generate=function(e){this.token(Ia.LeftParenthesis,"("),this.children(e),this.token(Ia.RightParenthesis,")")},Da.name="Parentheses",Da.parse=function(e,t){const n=this.tokenStart;let r=null;return this.eat(Ia.LeftParenthesis),r=e.call(this,t),this.eof||this.eat(Ia.RightParenthesis),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:r}},Da.structure={children:[[]]};var Ba={};const Ma=y,ja={value:String};Ba.generate=function(e){this.token(Ma.Percentage,e.value+"%")},Ba.name="Percentage",Ba.parse=function(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(Ma.Percentage)}},Ba.structure=ja;var Fa={};const Ua=y,Wa={name:String,children:[["Raw"],null]};Fa.generate=function(e){this.token(Ua.Colon,":"),null===e.children?this.token(Ua.Ident,e.name):(this.token(Ua.Function,e.name+"("),this.children(e),this.token(Ua.RightParenthesis,")"))},Fa.name="PseudoClassSelector",Fa.parse=function(){const e=this.tokenStart;let t,n,r=null;return this.eat(Ua.Colon),this.tokenType===Ua.Function?(t=this.consumeFunctionName(),n=t.toLowerCase(),this.lookupNonWSType(0)==Ua.RightParenthesis?r=this.createList():hasOwnProperty.call(this.pseudo,n)?(this.skipSC(),r=this.pseudo[n].call(this),this.skipSC()):(r=this.createList(),r.push(this.Raw(null,!1))),this.eat(Ua.RightParenthesis)):t=this.consume(Ua.Ident),{type:"PseudoClassSelector",loc:this.getLocation(e,this.tokenStart),name:t,children:r}},Fa.structure=Wa,Fa.walkContext="function";var Ha={};const qa=y,Va={name:String,children:[["Raw"],null]};Ha.generate=function(e){this.token(qa.Colon,":"),this.token(qa.Colon,":"),null===e.children?this.token(qa.Ident,e.name):(this.token(qa.Function,e.name+"("),this.children(e),this.token(qa.RightParenthesis,")"))},Ha.name="PseudoElementSelector",Ha.parse=function(){const e=this.tokenStart;let t,n,r=null;return this.eat(qa.Colon),this.eat(qa.Colon),this.tokenType===qa.Function?(t=this.consumeFunctionName(),n=t.toLowerCase(),this.lookupNonWSType(0)==qa.RightParenthesis?r=this.createList():hasOwnProperty.call(this.pseudo,n)?(this.skipSC(),r=this.pseudo[n].call(this),this.skipSC()):(r=this.createList(),r.push(this.Raw(null,!1))),this.eat(qa.RightParenthesis)):t=this.consume(qa.Ident),{type:"PseudoElementSelector",loc:this.getLocation(e,this.tokenStart),name:t,children:r}},Ha.structure=Va,Ha.walkContext="function";var $a={};const Ka=y;function Za(){switch(this.skipSC(),this.tokenType){case Ka.Number:return this.Number();case Ka.Function:return this.Function(this.readSequence,this.scope.Value);default:this.error("Number of function is expected")}}$a.generate=function(e){this.node(e.left),this.token(Ka.Delim,"/"),e.right?this.node(e.right):this.node(Ka.Number,1)},$a.name="Ratio",$a.parse=function(){const e=this.tokenStart,t=Za.call(this);let n=null;return this.skipSC(),this.isDelim(47)&&(this.eatDelim(47),n=Za.call(this)),{type:"Ratio",loc:this.getLocation(e,this.tokenStart),left:t,right:n}},$a.structure={left:["Number","Function"],right:["Number","Function",null]};var Ga={};const Ya=y;function Xa(){return this.tokenIndex>0&&this.lookupType(-1)===Ya.WhiteSpace?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}const Ja={value:String};Ga.generate=function(e){this.tokenize(e.value)},Ga.name="Raw",Ga.parse=function(e,t){const n=this.getTokenStart(this.tokenIndex);let r;return this.skipUntilBalanced(this.tokenIndex,e||this.consumeUntilBalanceEnd),r=t&&this.tokenStart>n?Xa.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(n,r),value:this.substring(n,r)}},Ga.structure=Ja;var Qa={};const es=y;function ts(){return this.Raw(this.consumeUntilLeftCurlyBracket,!0)}function ns(){const e=this.SelectorList();return"Raw"!==e.type&&!1===this.eof&&this.tokenType!==es.LeftCurlyBracket&&this.error(),e}Qa.generate=function(e){this.node(e.prelude),this.token(es.LeftCurlyBracket,"{"),this.node(e.block),this.token(es.RightCurlyBracket,"}")},Qa.name="Rule",Qa.parse=function(){const e=this.tokenIndex,t=this.tokenStart;let n,r;return n=this.parseRulePrelude?this.parseWithFallback(ns,ts):ts.call(this,e),this.skipSC(),this.eat(es.LeftCurlyBracket),r=this.Block(!0),this.eof||this.eat(es.RightCurlyBracket),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}},Qa.structure={prelude:["SelectorList","Raw"],block:["Block"]},Qa.walkContext="rule";var rs={};const os=y;rs.generate=function(e){e.root&&(this.token(os.LeftParenthesis,"("),this.node(e.root),this.token(os.RightParenthesis,")")),e.limit&&(this.token(os.Ident,"to"),this.token(os.LeftParenthesis,"("),this.node(e.limit),this.token(os.RightParenthesis,")"))},rs.name="Scope",rs.parse=function(){let e=null,t=null;this.skipSC();const n=this.tokenStart;return this.tokenType===os.LeftParenthesis&&(this.next(),this.skipSC(),e=this.parseWithFallback(this.SelectorList,(()=>this.Raw(!1,!0))),this.skipSC(),this.eat(os.RightParenthesis)),this.lookupNonWSType(0)===os.Ident&&(this.skipSC(),this.eatIdent("to"),this.skipSC(),this.eat(os.LeftParenthesis),this.skipSC(),t=this.parseWithFallback(this.SelectorList,(()=>this.Raw(!1,!0))),this.skipSC(),this.eat(os.RightParenthesis)),{type:"Scope",loc:this.getLocation(n,this.tokenStart),root:e,limit:t}},rs.structure={root:["SelectorList","Raw",null],limit:["SelectorList","Raw",null]};var is={generate:function(e){this.children(e)},name:"Selector",parse:function(){const e=this.readSequence(this.scope.Selector);return null===this.getFirstListNode(e)&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(e),children:e}},structure:{children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator"]]}},as={};const ss=y;as.generate=function(e){this.children(e,(()=>this.token(ss.Comma,",")))},as.name="SelectorList",as.parse=function(){const e=this.createList();for(;!this.eof&&(e.push(this.Selector()),this.tokenType===ss.Comma);)this.next();return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}},as.structure={children:[["Selector","Raw"]]},as.walkContext="selector";var ls={},cs={};const us=k,hs=O;cs.decode=function(e){const t=e.length,n=e.charCodeAt(0),r=34===n||39===n?1:0,o=1===r&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1;let i="";for(let n=r;n<=o;n++){let r=e.charCodeAt(n);if(92===r){if(n===o){n!==t-1&&(i=e.substr(n+1));break}if(r=e.charCodeAt(++n),us.isValidEscape(92,r)){const t=n-1,r=hs.consumeEscaped(e,t);n=r-1,i+=hs.decodeEscaped(e.substring(t+1,r))}else 13===r&&10===e.charCodeAt(n+1)&&n++}else i+=e[n]}return i},cs.encode=function(e,t){const n=t?"'":'"',r=t?39:34;let o="",i=!1;for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);0!==n?n<=31||127===n?(o+="\\"+n.toString(16),i=!0):n===r||92===n?(o+="\\"+e.charAt(t),i=!1):(i&&(us.isHexDigit(n)||us.isWhiteSpace(n))&&(o+=" "),o+=e.charAt(t),i=!1):o+="�"}return n+o+n};const ds=cs,ps=y,ms={value:String};ls.generate=function(e){this.token(ps.String,ds.encode(e.value))},ls.name="String",ls.parse=function(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:ds.decode(this.consume(ps.String))}},ls.structure=ms;var fs={};const gs=y;function bs(){return this.Raw(null,!1)}fs.generate=function(e){this.children(e)},fs.name="StyleSheet",fs.parse=function(){const e=this.tokenStart,t=this.createList();let n;for(;!this.eof;){switch(this.tokenType){case gs.WhiteSpace:this.next();continue;case gs.Comment:if(33!==this.charCodeAt(this.tokenStart+2)){this.next();continue}n=this.Comment();break;case gs.CDO:n=this.CDO();break;case gs.CDC:n=this.CDC();break;case gs.AtKeyword:n=this.parseWithFallback(this.Atrule,bs);break;default:n=this.parseWithFallback(this.Rule,bs)}t.push(n)}return{type:"StyleSheet",loc:this.getLocation(e,this.tokenStart),children:t}},fs.structure={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]},fs.walkContext="stylesheet";var ys={};const ks=y;ys.generate=function(e){this.token(ks.LeftParenthesis,"("),this.node(e.declaration),this.token(ks.RightParenthesis,")")},ys.name="SupportsDeclaration",ys.parse=function(){const e=this.tokenStart;this.eat(ks.LeftParenthesis),this.skipSC();const t=this.Declaration();return this.eof||this.eat(ks.RightParenthesis),{type:"SupportsDeclaration",loc:this.getLocation(e,this.tokenStart),declaration:t}},ys.structure={declaration:"Declaration"};var ws={};const vs=y;function xs(){this.tokenType!==vs.Ident&&!1===this.isDelim(42)&&this.error("Identifier or asterisk is expected"),this.next()}const Ss={name:String};ws.generate=function(e){this.tokenize(e.name)},ws.name="TypeSelector",ws.parse=function(){const e=this.tokenStart;return this.isDelim(124)?(this.next(),xs.call(this)):(xs.call(this),this.isDelim(124)&&(this.next(),xs.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}},ws.structure=Ss;var _s={};const Cs=y,As=k,zs=43,Ps=45,Es=63;function Ls(e,t){let n=0;for(let r=this.tokenStart+e;r<this.tokenEnd;r++){const o=this.charCodeAt(r);if(o===Ps&&t&&0!==n)return Ls.call(this,e+n+1,!1),-1;As.isHexDigit(o)||this.error(t&&0!==n?"Hyphen minus"+(n<6?" or hex digit":"")+" is expected":n<6?"Hex digit is expected":"Unexpected input",r),++n>6&&this.error("Too many hex digits",r)}return this.next(),n}function Os(e){let t=0;for(;this.isDelim(Es);)++t>e&&this.error("Too many question marks"),this.next()}function Ns(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===zs?"Plus sign":"Hyphen minus")+" is expected")}function Ts(){let e=0;switch(this.tokenType){case Cs.Number:if(e=Ls.call(this,1,!0),this.isDelim(Es)){Os.call(this,6-e);break}if(this.tokenType===Cs.Dimension||this.tokenType===Cs.Number){Ns.call(this,Ps),Ls.call(this,1,!1);break}break;case Cs.Dimension:e=Ls.call(this,1,!0),e>0&&Os.call(this,6-e);break;default:if(this.eatDelim(zs),this.tokenType===Cs.Ident){e=Ls.call(this,0,!0),e>0&&Os.call(this,6-e);break}if(this.isDelim(Es)){this.next(),Os.call(this,5);break}this.error("Hex digit or question mark is expected")}}const Rs={value:String};_s.generate=function(e){this.tokenize(e.value)},_s.name="UnicodeRange",_s.parse=function(){const e=this.tokenStart;return this.eatIdent("u"),Ts.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}},_s.structure=Rs;var Ds={},Is={};const Bs=k,Ms=O;Is.decode=function(e){const t=e.length;let n=4,r=41===e.charCodeAt(t-1)?t-2:t-1,o="";for(;n<r&&Bs.isWhiteSpace(e.charCodeAt(n));)n++;for(;n<r&&Bs.isWhiteSpace(e.charCodeAt(r));)r--;for(let i=n;i<=r;i++){let n=e.charCodeAt(i);if(92===n){if(i===r){i!==t-1&&(o=e.substr(i+1));break}if(n=e.charCodeAt(++i),Bs.isValidEscape(92,n)){const t=i-1,n=Ms.consumeEscaped(e,t);i=n-1,o+=Ms.decodeEscaped(e.substring(t+1,n))}else 13===n&&10===e.charCodeAt(i+1)&&i++}else o+=e[i]}return o},Is.encode=function(e){let t="",n=!1;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);0!==o?o<=31||127===o?(t+="\\"+o.toString(16),n=!0):32===o||92===o||34===o||39===o||40===o||41===o?(t+="\\"+e.charAt(r),n=!1):(n&&Bs.isHexDigit(o)&&(t+=" "),t+=e.charAt(r),n=!1):t+="�"}return"url("+t+")"};const js=Is,Fs=cs,Us=y,Ws={value:String};Ds.generate=function(e){this.token(Us.Url,js.encode(e.value))},Ds.name="Url",Ds.parse=function(){const e=this.tokenStart;let t;switch(this.tokenType){case Us.Url:t=js.decode(this.consume(Us.Url));break;case Us.Function:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(Us.Function),this.skipSC(),t=Fs.decode(this.consume(Us.String)),this.skipSC(),this.eof||this.eat(Us.RightParenthesis);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(e,this.tokenStart),value:t}},Ds.structure=Ws;var Hs={generate:function(e){this.children(e)},name:"Value",parse:function(){const e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}},structure:{children:[[]]}},qs={};const Vs=y,$s=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),Ks={value:String};qs.generate=function(e){this.token(Vs.WhiteSpace,e.value)},qs.name="WhiteSpace",qs.parse=function(){return this.eat(Vs.WhiteSpace),$s},qs.structure=Ks;const Zs=Oo,Gs=Ho,Ys=Zo,Xs=Yo,Js=ti,Qs=si,el=ci,tl=hi,nl=pi,rl=gi,ol=ki,il=xi,al=Pi,sl=Bi,ll=Fi,cl=Hi,ul=$i,hl=Yi,dl=ta,pl=oa,ml=sa,fl=ua,gl=pa,bl=ga,yl=ka,kl=va,wl=_a,vl=Aa,xl=Pa,Sl=La,_l=Ta,Cl=Da,Al=Ba,zl=Fa,Pl=Ha,El=$a,Ll=Ga,Ol=Qa,Nl=rs,Tl=is,Rl=as,Dl=ls,Il=fs,Bl=ys,Ml=ws,jl=_s,Fl=Ds,Ul=Hs,Wl=qs;Lo.AnPlusB=Zs,Lo.Atrule=Gs,Lo.AtrulePrelude=Ys,Lo.AttributeSelector=Xs,Lo.Block=Js,Lo.Brackets=Qs,Lo.CDC=el,Lo.CDO=tl,Lo.ClassSelector=nl,Lo.Combinator=rl,Lo.Comment=ol,Lo.Condition=il,Lo.Declaration=al,Lo.DeclarationList=sl,Lo.Dimension=ll,Lo.Feature=cl,Lo.FeatureFunction=ul,Lo.FeatureRange=hl,Lo.Function=dl,Lo.GeneralEnclosed=pl,Lo.Hash=ml,Lo.Identifier=fl,Lo.IdSelector=gl,Lo.Layer=bl,Lo.LayerList=yl,Lo.MediaQuery=kl,Lo.MediaQueryList=wl,Lo.NestingSelector=vl,Lo.Nth=xl,Lo.Number=Sl,Lo.Operator=_l,Lo.Parentheses=Cl,Lo.Percentage=Al,Lo.PseudoClassSelector=zl,Lo.PseudoElementSelector=Pl,Lo.Ratio=El,Lo.Raw=Ll,Lo.Rule=Ol,Lo.Scope=Nl,Lo.Selector=Tl,Lo.SelectorList=Rl,Lo.String=Dl,Lo.StyleSheet=Il,Lo.SupportsDeclaration=Bl,Lo.TypeSelector=Ml,Lo.UnicodeRange=jl,Lo.Url=Fl,Lo.Value=Ul,Lo.WhiteSpace=Wl;var Hl={generic:!0,generic:!0,units:{angle:["deg","grad","rad","turn"],decibel:["db"],flex:["fr"],frequency:["hz","khz"],length:["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],resolution:["dpi","dpcm","dppx","x"],semitones:["st"],time:["s","ms"]},types:{"abs()":"abs( <calc-sum> )","absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","acos()":"acos( <calc-sum> )","alpha-value":"<number>|<percentage>","angle-percentage":"<angle>|<percentage>","angular-color-hint":"<angle-percentage>","angular-color-stop":"<color>&&<color-stop-angle>?","angular-color-stop-list":"[<angular-color-stop> [, <angular-color-hint>]?]# , <angular-color-stop>","animateable-feature":"scroll-position|contents|<custom-ident>","asin()":"asin( <calc-sum> )","atan()":"atan( <calc-sum> )","atan2()":"atan2( <calc-sum> , <calc-sum> )",attachment:"scroll|fixed|local","attr()":"attr( <attr-name> <type-or-unit>? [, <attr-fallback>]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' <wq-name> ']'|'[' <wq-name> <attr-matcher> [<string-token>|<ident-token>] <attr-modifier>? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [<line-names>? <fixed-size>]+ <line-names>? )","auto-track-list":"[<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>? <auto-repeat> [<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>?",axis:"block|inline|vertical|horizontal","baseline-position":"[first|last]? baseline","basic-shape":"<inset()>|<circle()>|<ellipse()>|<polygon()>|<path()>","bg-image":"none|<image>","bg-layer":"<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","bg-position":"[[left|center|right|top|bottom|<length-percentage>]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]|[center|[left|right] <length-percentage>?]&&[center|[top|bottom] <length-percentage>?]]","bg-size":"[<length-percentage>|auto]{1,2}|cover|contain","blur()":"blur( <length> )","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( <number-percentage> )","calc()":"calc( <calc-sum> )","calc-sum":"<calc-product> [['+'|'-'] <calc-product>]*","calc-product":"<calc-value> ['*' <calc-value>|'/' <number>]*","calc-value":"<number>|<dimension>|<percentage>|<calc-constant>|( <calc-sum> )","calc-constant":"e|pi|infinity|-infinity|NaN","cf-final-image":"<image>|<color>","cf-mixing-image":"<percentage>?&&<image>","circle()":"circle( [<shape-radius>]? [at <position>]? )","clamp()":"clamp( <calc-sum>#{3} )","class-selector":"'.' <ident-token>","clip-source":"<url>",color:"<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<hex-color>|<named-color>|currentcolor|<deprecated-system-color>|<-non-standard-color>","color-stop":"<color-stop-length>|<color-stop-angle>","color-stop-angle":"<angle-percentage>{1,2}","color-stop-length":"<length-percentage>{1,2}","color-stop-list":"[<linear-color-stop> [, <linear-color-hint>]?]# , <linear-color-stop>",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":"[<type-selector>? <subclass-selector>*]!","compound-selector-list":"<compound-selector>#","complex-selector":"<complex-selector-unit> [<combinator>? <complex-selector-unit>]*","complex-selector-list":"<complex-selector>#","conic-gradient()":"conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[<string>|contents|<image>|<counter>|<quote>|<target>|<leader()>|<attr()>]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"<image>","contrast()":"contrast( [<number-percentage>] )","cos()":"cos( <calc-sum> )",counter:"<counter()>|<counters()>","counter()":"counter( <counter-name> , <counter-style>? )","counter-name":"<custom-ident>","counter-style":"<counter-style-name>|symbols( )","counter-style-name":"<custom-ident>","counters()":"counters( <counter-name> , <string> , <counter-style>? )","cross-fade()":"cross-fade( <cf-mixing-image> , <cf-final-image>? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( <number [0,1]> , <number> , <number [0,1]> , <number> )","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":"<display-outside>?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( <length>{2,3} <color>? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( <custom-ident> , [first|start|last|first-except]? )|element( <id-selector> )","ellipse()":"ellipse( [<shape-radius>{2}]? [at <position>]? )","ending-shape":"circle|ellipse","env()":"env( <custom-ident> , <declaration-value>? )","exp()":"exp( <calc-sum> )","explicit-track-list":"[<line-names>? <track-size>]+ <line-names>?","family-name":"<string>|<custom-ident>+","feature-tag-value":"<string> [<integer>|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":"<feature-type> '{' <feature-value-declaration-list> '}'","feature-value-block-list":"<feature-value-block>+","feature-value-declaration":"<custom-ident> : <integer>+ ;","feature-value-declaration-list":"<feature-value-declaration>","feature-value-name":"<custom-ident>","fill-rule":"nonzero|evenodd","filter-function":"<blur()>|<brightness()>|<contrast()>|<drop-shadow()>|<grayscale()>|<hue-rotate()>|<invert()>|<opacity()>|<saturate()>|<sepia()>","filter-function-list":"[<filter-function>|<url>]+","final-bg-layer":"<'background-color'>||<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","fixed-breadth":"<length-percentage>","fixed-repeat":"repeat( [<integer [1,∞]>] , [<line-names>? <fixed-size>]+ <line-names>? )","fixed-size":"<fixed-breadth>|minmax( <fixed-breadth> , <track-breadth> )|minmax( <inflexible-breadth> , <fixed-breadth> )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|<percentage>","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|<number [1,1000]>","frequency-percentage":"<frequency>|<percentage>","general-enclosed":"[<function-token> <any-value>? )]|[( <any-value>? )]","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"<shape-box>|fill-box|stroke-box|view-box",gradient:"<linear-gradient()>|<repeating-linear-gradient()>|<radial-gradient()>|<repeating-radial-gradient()>|<conic-gradient()>|<repeating-conic-gradient()>|<-legacy-gradient>","grayscale()":"grayscale( <number-percentage> )","grid-line":"auto|<custom-ident>|[<integer>&&<custom-ident>?]|[span&&[<integer>||<custom-ident>]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsl( <hue> , <percentage> , <percentage> , <alpha-value>? )","hsla()":"hsla( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsla( <hue> , <percentage> , <percentage> , <alpha-value>? )",hue:"<number>|<angle>","hue-rotate()":"hue-rotate( <angle> )","hwb()":"hwb( [<hue>|none] [<percentage>|none] [<percentage>|none] [/ [<alpha-value>|none]]? )","hypot()":"hypot( <calc-sum># )",image:"<url>|<image()>|<image-set()>|<element()>|<paint()>|<cross-fade()>|<gradient>","image()":"image( <image-tags>? [<image-src>? , <color>?]! )","image-set()":"image-set( <image-set-option># )","image-set-option":"[<image>|<string>] [<resolution>||type( <string> )]","image-src":"<url>|<string>","image-tags":"ltr|rtl","inflexible-breadth":"<length-percentage>|min-content|max-content|auto","inset()":"inset( <length-percentage>{1,4} [round <'border-radius'>]? )","invert()":"invert( <number-percentage> )","keyframes-name":"<custom-ident>|<string>","keyframe-block":"<keyframe-selector># { <declaration-list> }","keyframe-block-list":"<keyframe-block>+","keyframe-selector":"from|to|<percentage>|<timeline-range-name> <percentage>","lab()":"lab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","layer()":"layer( <layer-name> )","layer-name":"<ident> ['.' <ident>]*","lch()":"lch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )","leader()":"leader( <leader-type> )","leader-type":"dotted|solid|space|<string>","length-percentage":"<length>|<percentage>","line-names":"'[' <custom-ident>* ']'","line-name-list":"[<line-names>|<name-repeat>]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"<length>|thin|medium|thick","linear-color-hint":"<length-percentage>","linear-color-stop":"<color> <color-stop-length>?","linear-gradient()":"linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","log()":"log( <calc-sum> , <calc-sum>? )","mask-layer":"<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||<geometry-box>||[<geometry-box>|no-clip]||<compositing-operator>||<masking-mode>","mask-position":"[<length-percentage>|left|center|right] [<length-percentage>|top|center|bottom]?","mask-reference":"none|<image>|<mask-source>","mask-source":"<url>","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( <number>#{6} )","matrix3d()":"matrix3d( <number>#{16} )","max()":"max( <calc-sum># )","media-and":"<media-in-parens> [and <media-in-parens>]+","media-condition":"<media-not>|<media-and>|<media-or>|<media-in-parens>","media-condition-without-or":"<media-not>|<media-and>|<media-in-parens>","media-feature":"( [<mf-plain>|<mf-boolean>|<mf-range>] )","media-in-parens":"( <media-condition> )|<media-feature>|<general-enclosed>","media-not":"not <media-in-parens>","media-or":"<media-in-parens> [or <media-in-parens>]+","media-query":"<media-condition>|[not|only]? <media-type> [and <media-condition-without-or>]?","media-query-list":"<media-query>#","media-type":"<ident>","mf-boolean":"<mf-name>","mf-name":"<ident>","mf-plain":"<mf-name> : <mf-value>","mf-range":"<mf-name> ['<'|'>']? '='? <mf-value>|<mf-value> ['<'|'>']? '='? <mf-name>|<mf-value> '<' '='? <mf-name> '<' '='? <mf-value>|<mf-value> '>' '='? <mf-name> '>' '='? <mf-value>","mf-value":"<number>|<dimension>|<ident>|<ratio>","min()":"min( <calc-sum># )","minmax()":"minmax( [<length-percentage>|min-content|max-content|auto] , [<length-percentage>|<flex>|min-content|max-content|auto] )","mod()":"mod( <calc-sum> , <calc-sum> )","name-repeat":"repeat( [<integer [1,∞]>|auto-fill] , <line-names>+ )","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","namespace-prefix":"<ident>","ns-prefix":"[<ident-token>|'*']? '|'","number-percentage":"<number>|<percentage>","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"<an-plus-b>|even|odd","opacity()":"opacity( [<number-percentage>] )","overflow-position":"unsafe|safe","outline-radius":"<length>|<percentage>","page-body":"<declaration>? [; <page-body>]?|<page-margin-box> <page-body>","page-margin-box":"<page-margin-box-type> '{' <declaration-list> '}'","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-selector":"<pseudo-page>+|<ident> <pseudo-page>*","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger","path()":"path( [<fill-rule> ,]? <string> )","paint()":"paint( <ident> , <declaration-value>? )","perspective()":"perspective( [<length [0,∞]>|none] )","polygon()":"polygon( <fill-rule>? , [<length-percentage> <length-percentage>]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]?|[[left|right] <length-percentage>]&&[[top|bottom] <length-percentage>]]","pow()":"pow( <calc-sum> , <calc-sum> )","pseudo-class-selector":"':' <ident-token>|':' <function-token> <any-value> ')'","pseudo-element-selector":"':' <pseudo-class-selector>|<legacy-pseudo-element-selector>","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )",ratio:"<number [0,∞]> [/ <number [0,∞]>]?","ray()":"ray( <angle>&&<ray-size>?&&contain?&&[at <position>]? )","relative-selector":"<combinator>? <complex-selector>","relative-selector-list":"<relative-selector>#","relative-size":"larger|smaller","rem()":"rem( <calc-sum> , <calc-sum> )","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-conic-gradient()":"repeating-conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","repeating-linear-gradient()":"repeating-linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","repeating-radial-gradient()":"repeating-radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )","reversed-counter-name":"reversed( <counter-name> )","rgb()":"rgb( <percentage>{3} [/ <alpha-value>]? )|rgb( <number>{3} [/ <alpha-value>]? )|rgb( <percentage>#{3} , <alpha-value>? )|rgb( <number>#{3} , <alpha-value>? )","rgba()":"rgba( <percentage>{3} [/ <alpha-value>]? )|rgba( <number>{3} [/ <alpha-value>]? )|rgba( <percentage>#{3} , <alpha-value>? )|rgba( <number>#{3} , <alpha-value>? )","rotate()":"rotate( [<angle>|<zero>] )","rotate3d()":"rotate3d( <number> , <number> , <number> , [<angle>|<zero>] )","rotateX()":"rotateX( [<angle>|<zero>] )","rotateY()":"rotateY( [<angle>|<zero>] )","rotateZ()":"rotateZ( [<angle>|<zero>] )","round()":"round( <rounding-strategy>? , <calc-sum> , <calc-sum> )","rounding-strategy":"nearest|up|down|to-zero","saturate()":"saturate( <number-percentage> )","scale()":"scale( [<number>|<percentage>]#{1,2} )","scale3d()":"scale3d( [<number>|<percentage>]#{3} )","scaleX()":"scaleX( [<number>|<percentage>] )","scaleY()":"scaleY( [<number>|<percentage>] )","scaleZ()":"scaleZ( [<number>|<percentage>] )","scroll()":"scroll( [<axis>||<scroller>]? )",scroller:"root|nearest","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"<length-percentage>|closest-side|farthest-side","sign()":"sign( <calc-sum> )","skew()":"skew( [<angle>|<zero>] , [<angle>|<zero>]? )","skewX()":"skewX( [<angle>|<zero>] )","skewY()":"skewY( [<angle>|<zero>] )","sepia()":"sepia( <number-percentage> )",shadow:"inset?&&<length>{2,4}&&<color>?","shadow-t":"[<length>{2,3}&&<color>?]",shape:"rect( <top> , <right> , <bottom> , <left> )|rect( <top> <right> <bottom> <left> )","shape-box":"<box>|margin-box","side-or-corner":"[left|right]||[top|bottom]","sin()":"sin( <calc-sum> )","single-animation":"<'animation-duration'>||<easing-function>||<'animation-delay'>||<single-animation-iteration-count>||<single-animation-direction>||<single-animation-fill-mode>||<single-animation-play-state>||[none|<keyframes-name>]||<single-animation-timeline>","single-animation-direction":"normal|reverse|alternate|alternate-reverse","single-animation-fill-mode":"none|forwards|backwards|both","single-animation-iteration-count":"infinite|<number>","single-animation-play-state":"running|paused","single-animation-timeline":"auto|none|<dashed-ident>|<scroll()>|<view()>","single-transition":"[none|<single-transition-property>]||<time>||<easing-function>||<time>","single-transition-property":"all|<custom-ident>",size:"closest-side|farthest-side|closest-corner|farthest-corner|<length>|<length-percentage>{2}","sqrt()":"sqrt( <calc-sum> )","step-position":"jump-start|jump-end|jump-none|jump-both|start|end","step-timing-function":"step-start|step-end|steps( <integer> [, <step-position>]? )","subclass-selector":"<id-selector>|<class-selector>|<attribute-selector>|<pseudo-class-selector>","supports-condition":"not <supports-in-parens>|<supports-in-parens> [and <supports-in-parens>]*|<supports-in-parens> [or <supports-in-parens>]*","supports-in-parens":"( <supports-condition> )|<supports-feature>|<general-enclosed>","supports-feature":"<supports-decl>|<supports-selector-fn>","supports-decl":"( <declaration> )","supports-selector-fn":"selector( <complex-selector> )",symbol:"<string>|<image>|<custom-ident>","tan()":"tan( <calc-sum> )",target:"<target-counter()>|<target-counters()>|<target-text()>","target-counter()":"target-counter( [<string>|<url>] , <custom-ident> , <counter-style>? )","target-counters()":"target-counters( [<string>|<url>] , <custom-ident> , <string> , <counter-style>? )","target-text()":"target-text( [<string>|<url>] , [content|before|after|first-letter]? )","time-percentage":"<time>|<percentage>","timeline-range-name":"cover|contain|entry|exit|entry-crossing|exit-crossing","easing-function":"linear|<cubic-bezier-timing-function>|<step-timing-function>","track-breadth":"<length-percentage>|<flex>|min-content|max-content|auto","track-list":"[<line-names>? [<track-size>|<track-repeat>]]+ <line-names>?","track-repeat":"repeat( [<integer [1,∞]>] , [<line-names>? <track-size>]+ <line-names>? )","track-size":"<track-breadth>|minmax( <inflexible-breadth> , <track-breadth> )|fit-content( <length-percentage> )","transform-function":"<matrix()>|<translate()>|<translateX()>|<translateY()>|<scale()>|<scaleX()>|<scaleY()>|<rotate()>|<skew()>|<skewX()>|<skewY()>|<matrix3d()>|<translate3d()>|<translateZ()>|<scale3d()>|<scaleZ()>|<rotate3d()>|<rotateX()>|<rotateY()>|<rotateZ()>|<perspective()>","transform-list":"<transform-function>+","translate()":"translate( <length-percentage> , <length-percentage>? )","translate3d()":"translate3d( <length-percentage> , <length-percentage> , <length> )","translateX()":"translateX( <length-percentage> )","translateY()":"translateY( <length-percentage> )","translateZ()":"translateZ( <length> )","type-or-unit":"string|color|url|integer|number|length|angle|time|frequency|cap|ch|em|ex|ic|lh|rlh|rem|vb|vi|vw|vh|vmin|vmax|mm|Q|cm|in|pt|pc|px|deg|grad|rad|turn|ms|s|Hz|kHz|%","type-selector":"<wq-name>|<ns-prefix>? '*'","var()":"var( <custom-property-name> , <declaration-value>? )","view()":"view( [<axis>||<'view-timeline-inset'>]? )","viewport-length":"auto|<length-percentage>","visual-box":"content-box|padding-box|border-box","wq-name":"<ns-prefix>? <ident-token>","-legacy-gradient":"<-webkit-gradient()>|<-legacy-linear-gradient>|<-legacy-repeating-linear-gradient>|<-legacy-radial-gradient>|<-legacy-repeating-radial-gradient>","-legacy-linear-gradient":"-moz-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-repeating-linear-gradient":"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-linear-gradient-arguments":"[<angle>|<side-or-corner>]? , <color-stop-list>","-legacy-radial-gradient":"-moz-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-repeating-radial-gradient":"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-radial-gradient-arguments":"[<position> ,]? [[[<-legacy-radial-gradient-shape>||<-legacy-radial-gradient-size>]|[<length>|<percentage>]{2}] ,]? <color-stop-list>","-legacy-radial-gradient-size":"closest-side|closest-corner|farthest-side|farthest-corner|contain|cover","-legacy-radial-gradient-shape":"circle|ellipse","-non-standard-font":"-apple-system-body|-apple-system-headline|-apple-system-subheadline|-apple-system-caption1|-apple-system-caption2|-apple-system-footnote|-apple-system-short-body|-apple-system-short-headline|-apple-system-short-subheadline|-apple-system-short-caption1|-apple-system-short-footnote|-apple-system-tall-body","-non-standard-color":"-moz-ButtonDefault|-moz-ButtonHoverFace|-moz-ButtonHoverText|-moz-CellHighlight|-moz-CellHighlightText|-moz-Combobox|-moz-ComboboxText|-moz-Dialog|-moz-DialogText|-moz-dragtargetzone|-moz-EvenTreeRow|-moz-Field|-moz-FieldText|-moz-html-CellHighlight|-moz-html-CellHighlightText|-moz-mac-accentdarkestshadow|-moz-mac-accentdarkshadow|-moz-mac-accentface|-moz-mac-accentlightesthighlight|-moz-mac-accentlightshadow|-moz-mac-accentregularhighlight|-moz-mac-accentregularshadow|-moz-mac-chrome-active|-moz-mac-chrome-inactive|-moz-mac-focusring|-moz-mac-menuselect|-moz-mac-menushadow|-moz-mac-menutextselect|-moz-MenuHover|-moz-MenuHoverText|-moz-MenuBarText|-moz-MenuBarHoverText|-moz-nativehyperlinktext|-moz-OddTreeRow|-moz-win-communicationstext|-moz-win-mediatext|-moz-activehyperlinktext|-moz-default-background-color|-moz-default-color|-moz-hyperlinktext|-moz-visitedhyperlinktext|-webkit-activelink|-webkit-focus-ring-color|-webkit-link|-webkit-text","-non-standard-image-rendering":"optimize-contrast|-moz-crisp-edges|-o-crisp-edges|-webkit-optimize-contrast","-non-standard-overflow":"overlay|-moz-scrollbars-none|-moz-scrollbars-horizontal|-moz-scrollbars-vertical|-moz-hidden-unscrollable","-non-standard-size":"intrinsic|min-intrinsic|-webkit-fill-available|-webkit-fit-content|-webkit-min-content|-webkit-max-content|-moz-available|-moz-fit-content|-moz-min-content|-moz-max-content","-webkit-gradient()":"-webkit-gradient( <-webkit-gradient-type> , <-webkit-gradient-point> [, <-webkit-gradient-point>|, <-webkit-gradient-radius> , <-webkit-gradient-point>] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )","-webkit-gradient-color-stop":"from( <color> )|color-stop( [<number-zero-one>|<percentage>] , <color> )|to( <color> )","-webkit-gradient-point":"[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]","-webkit-gradient-radius":"<length>|<percentage>","-webkit-gradient-type":"linear|radial","-webkit-mask-box-repeat":"repeat|stretch|round","-ms-filter-function-list":"<-ms-filter-function>+","-ms-filter-function":"<-ms-filter-function-progid>|<-ms-filter-function-legacy>","-ms-filter-function-progid":"'progid:' [<ident-token> '.']* [<ident-token>|<function-token> <any-value>? )]","-ms-filter-function-legacy":"<ident-token>|<function-token> <any-value>? )","absolute-color-base":"<hex-color>|<absolute-color-function>|<named-color>|transparent","absolute-color-function":"rgb( ) >|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<oklab()>|<oklch()>|<color()>",age:"child|young|old","attr-name":"<wq-name>","attr-fallback":"<any-value>","bg-clip":"<box>|border|text",bottom:"<length>|auto","container-name":"<custom-ident>","container-condition":"not <query-in-parens>|<query-in-parens> [[and <query-in-parens>]*|[or <query-in-parens>]*]","coord-box":"content-box|padding-box|border-box|fill-box|stroke-box|view-box","generic-voice":"[<age>? <gender> <integer>?]",gender:"male|female|neutral",left:"<length>|auto",paint:"none|<color>|<url> [none|<color>]?|context-fill|context-stroke","palette-identifier":"<dashed-ident>",right:"<length>|auto","scope-start":"<forgiving-selector-list>","scope-end":"<forgiving-selector-list>","forgiving-selector-list":"<complex-real-selector-list>","forgiving-relative-selector-list":"<relative-real-selector-list>","selector-list":"<complex-selector-list>","complex-real-selector-list":"<complex-real-selector>#","simple-selector-list":"<simple-selector>#","relative-real-selector-list":"<relative-real-selector>#","complex-selector-unit":"[<compound-selector>? <pseudo-compound-selector>*]!","complex-real-selector":"<compound-selector> [<combinator>? <compound-selector>]*","relative-real-selector":"<combinator>? <complex-real-selector>","pseudo-compound-selector":"<pseudo-element-selector> <pseudo-class-selector>*","simple-selector":"<type-selector>|<subclass-selector>","legacy-pseudo-element-selector":"':' [before|after|first-line|first-letter]","single-animation-composition":"replace|add|accumulate","svg-length":"<percentage>|<length>|<number>","svg-writing-mode":"lr-tb|rl-tb|tb-rl|lr|rl|tb",top:"<length>|auto",x:"<number>",y:"<number>",declaration:"<ident-token> : <declaration-value>? ['!' important]?","declaration-list":"[<declaration>? ';']* <declaration>?",url:"url( <string> <url-modifier>* )|<url-token>","url-modifier":"<ident>|<function-token> <any-value> )","number-zero-one":"<number [0,1]>","number-one-or-greater":"<number [1,∞]>","color()":"color( <colorspace-params> [/ [<alpha-value>|none]]? )","colorspace-params":"[<predefined-rgb-params>|<xyz-params>]","predefined-rgb-params":"<predefined-rgb> [<number>|<percentage>|none]{3}","predefined-rgb":"srgb|srgb-linear|display-p3|a98-rgb|prophoto-rgb|rec2020","xyz-params":"<xyz-space> [<number>|<percentage>|none]{3}","xyz-space":"xyz|xyz-d50|xyz-d65","oklab()":"oklab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","oklch()":"oklch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )","offset-path":"<ray()>|<url>|<basic-shape>","ray-size":"closest-side|closest-corner|farthest-side|farthest-corner|sides","query-in-parens":"( <container-condition> )|( <size-feature> )|style( <style-query> )|<general-enclosed>","size-feature":"<mf-plain>|<mf-boolean>|<mf-range>","style-feature":"<declaration>","style-query":"<style-condition>|<style-feature>","style-condition":"not <style-in-parens>|<style-in-parens> [[and <style-in-parens>]*|[or <style-in-parens>]*]","style-in-parens":"( <style-condition> )|( <style-feature> )|<general-enclosed>","-non-standard-display":"-ms-inline-flexbox|-ms-grid|-ms-inline-grid|-webkit-flex|-webkit-inline-flex|-webkit-box|-webkit-inline-box|-moz-inline-stack|-moz-box|-moz-inline-box"},properties:{"--*":"<declaration-value>","-ms-accelerator":"false|true","-ms-block-progression":"tb|rl|bt|lr","-ms-content-zoom-chaining":"none|chained","-ms-content-zooming":"none|zoom","-ms-content-zoom-limit":"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>","-ms-content-zoom-limit-max":"<percentage>","-ms-content-zoom-limit-min":"<percentage>","-ms-content-zoom-snap":"<'-ms-content-zoom-snap-type'>||<'-ms-content-zoom-snap-points'>","-ms-content-zoom-snap-points":"snapInterval( <percentage> , <percentage> )|snapList( <percentage># )","-ms-content-zoom-snap-type":"none|proximity|mandatory","-ms-filter":"<string>","-ms-flow-from":"[none|<custom-ident>]#","-ms-flow-into":"[none|<custom-ident>]#","-ms-grid-columns":"none|<track-list>|<auto-track-list>","-ms-grid-rows":"none|<track-list>|<auto-track-list>","-ms-high-contrast-adjust":"auto|none","-ms-hyphenate-limit-chars":"auto|<integer>{1,3}","-ms-hyphenate-limit-lines":"no-limit|<integer>","-ms-hyphenate-limit-zone":"<percentage>|<length>","-ms-ime-align":"auto|after","-ms-overflow-style":"auto|none|scrollbar|-ms-autohiding-scrollbar","-ms-scrollbar-3dlight-color":"<color>","-ms-scrollbar-arrow-color":"<color>","-ms-scrollbar-base-color":"<color>","-ms-scrollbar-darkshadow-color":"<color>","-ms-scrollbar-face-color":"<color>","-ms-scrollbar-highlight-color":"<color>","-ms-scrollbar-shadow-color":"<color>","-ms-scrollbar-track-color":"<color>","-ms-scroll-chaining":"chained|none","-ms-scroll-limit":"<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>","-ms-scroll-limit-x-max":"auto|<length>","-ms-scroll-limit-x-min":"<length>","-ms-scroll-limit-y-max":"auto|<length>","-ms-scroll-limit-y-min":"<length>","-ms-scroll-rails":"none|railed","-ms-scroll-snap-points-x":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-points-y":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-type":"none|proximity|mandatory","-ms-scroll-snap-x":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>","-ms-scroll-snap-y":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>","-ms-scroll-translation":"none|vertical-to-horizontal","-ms-text-autospace":"none|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space","-ms-touch-select":"grippers|none","-ms-user-select":"none|element|text","-ms-wrap-flow":"auto|both|start|end|maximum|clear","-ms-wrap-margin":"<length>","-ms-wrap-through":"wrap|none","-moz-appearance":"none|button|button-arrow-down|button-arrow-next|button-arrow-previous|button-arrow-up|button-bevel|button-focus|caret|checkbox|checkbox-container|checkbox-label|checkmenuitem|dualbutton|groupbox|listbox|listitem|menuarrow|menubar|menucheckbox|menuimage|menuitem|menuitemtext|menulist|menulist-button|menulist-text|menulist-textfield|menupopup|menuradio|menuseparator|meterbar|meterchunk|progressbar|progressbar-vertical|progresschunk|progresschunk-vertical|radio|radio-container|radio-label|radiomenuitem|range|range-thumb|resizer|resizerpanel|scale-horizontal|scalethumbend|scalethumb-horizontal|scalethumbstart|scalethumbtick|scalethumb-vertical|scale-vertical|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|separator|sheet|spinner|spinner-downbutton|spinner-textfield|spinner-upbutton|splitter|statusbar|statusbarpanel|tab|tabpanel|tabpanels|tab-scroll-arrow-back|tab-scroll-arrow-forward|textfield|textfield-multiline|toolbar|toolbarbutton|toolbarbutton-dropdown|toolbargripper|toolbox|tooltip|treeheader|treeheadercell|treeheadersortarrow|treeitem|treeline|treetwisty|treetwistyopen|treeview|-moz-mac-unified-toolbar|-moz-win-borderless-glass|-moz-win-browsertabbar-toolbox|-moz-win-communicationstext|-moz-win-communications-toolbox|-moz-win-exclude-glass|-moz-win-glass|-moz-win-mediatext|-moz-win-media-toolbox|-moz-window-button-box|-moz-window-button-box-maximized|-moz-window-button-close|-moz-window-button-maximize|-moz-window-button-minimize|-moz-window-button-restore|-moz-window-frame-bottom|-moz-window-frame-left|-moz-window-frame-right|-moz-window-titlebar|-moz-window-titlebar-maximized","-moz-binding":"<url>|none","-moz-border-bottom-colors":"<color>+|none","-moz-border-left-colors":"<color>+|none","-moz-border-right-colors":"<color>+|none","-moz-border-top-colors":"<color>+|none","-moz-context-properties":"none|[fill|fill-opacity|stroke|stroke-opacity]#","-moz-float-edge":"border-box|content-box|margin-box|padding-box","-moz-force-broken-image-icon":"0|1","-moz-image-region":"<shape>|auto","-moz-orient":"inline|block|horizontal|vertical","-moz-outline-radius":"<outline-radius>{1,4} [/ <outline-radius>{1,4}]?","-moz-outline-radius-bottomleft":"<outline-radius>","-moz-outline-radius-bottomright":"<outline-radius>","-moz-outline-radius-topleft":"<outline-radius>","-moz-outline-radius-topright":"<outline-radius>","-moz-stack-sizing":"ignore|stretch-to-fit","-moz-text-blink":"none|blink","-moz-user-focus":"ignore|normal|select-after|select-before|select-menu|select-same|select-all|none","-moz-user-input":"auto|none|enabled|disabled","-moz-user-modify":"read-only|read-write|write-only","-moz-window-dragging":"drag|no-drag","-moz-window-shadow":"default|menu|tooltip|sheet|none","-webkit-appearance":"none|button|button-bevel|caps-lock-indicator|caret|checkbox|default-button|inner-spin-button|listbox|listitem|media-controls-background|media-controls-fullscreen-background|media-current-time-display|media-enter-fullscreen-button|media-exit-fullscreen-button|media-fullscreen-button|media-mute-button|media-overlay-play-button|media-play-button|media-seek-back-button|media-seek-forward-button|media-slider|media-sliderthumb|media-time-remaining-display|media-toggle-closed-captions-button|media-volume-slider|media-volume-slider-container|media-volume-sliderthumb|menulist|menulist-button|menulist-text|menulist-textfield|meter|progress-bar|progress-bar-value|push-button|radio|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbargripper-horizontal|scrollbargripper-vertical|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|searchfield-cancel-button|searchfield-decoration|searchfield-results-button|searchfield-results-decoration|slider-horizontal|slider-vertical|sliderthumb-horizontal|sliderthumb-vertical|square-button|textarea|textfield|-apple-pay-button","-webkit-border-before":"<'border-width'>||<'border-style'>||<color>","-webkit-border-before-color":"<color>","-webkit-border-before-style":"<'border-style'>","-webkit-border-before-width":"<'border-width'>","-webkit-box-reflect":"[above|below|right|left]? <length>? <image>?","-webkit-line-clamp":"none|<integer>","-webkit-mask":"[<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||[<box>|border|padding|content|text]||[<box>|border|padding|content]]#","-webkit-mask-attachment":"<attachment>#","-webkit-mask-clip":"[<box>|border|padding|content|text]#","-webkit-mask-composite":"<composite-style>#","-webkit-mask-image":"<mask-reference>#","-webkit-mask-origin":"[<box>|border|padding|content]#","-webkit-mask-position":"<position>#","-webkit-mask-position-x":"[<length-percentage>|left|center|right]#","-webkit-mask-position-y":"[<length-percentage>|top|center|bottom]#","-webkit-mask-repeat":"<repeat-style>#","-webkit-mask-repeat-x":"repeat|no-repeat|space|round","-webkit-mask-repeat-y":"repeat|no-repeat|space|round","-webkit-mask-size":"<bg-size>#","-webkit-overflow-scrolling":"auto|touch","-webkit-tap-highlight-color":"<color>","-webkit-text-fill-color":"<color>","-webkit-text-stroke":"<length>||<color>","-webkit-text-stroke-color":"<color>","-webkit-text-stroke-width":"<length>","-webkit-touch-callout":"default|none","-webkit-user-modify":"read-only|read-write|read-write-plaintext-only","accent-color":"auto|<color>","align-content":"normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>","align-items":"normal|stretch|<baseline-position>|[<overflow-position>? <self-position>]","align-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? <self-position>","align-tracks":"[normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>]#",all:"initial|inherit|unset|revert|revert-layer",animation:"<single-animation>#","animation-composition":"<single-animation-composition>#","animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"<time>#","animation-fill-mode":"<single-animation-fill-mode>#","animation-iteration-count":"<single-animation-iteration-count>#","animation-name":"[none|<keyframes-name>]#","animation-play-state":"<single-animation-play-state>#","animation-range":"[<'animation-range-start'> <'animation-range-end'>?]#","animation-range-end":"[normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#","animation-range-start":"[normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#","animation-timing-function":"<easing-function>#","animation-timeline":"<single-animation-timeline>#",appearance:"none|auto|textfield|menulist-button|<compat-auto>","aspect-ratio":"auto|<ratio>",azimuth:"<angle>|[[left-side|far-left|left|center-left|center|center-right|right|far-right|right-side]||behind]|leftwards|rightwards","backdrop-filter":"none|<filter-function-list>","backface-visibility":"visible|hidden",background:"[<bg-layer> ,]* <final-bg-layer>","background-attachment":"<attachment>#","background-blend-mode":"<blend-mode>#","background-clip":"<bg-clip>#","background-color":"<color>","background-image":"<bg-image>#","background-origin":"<box>#","background-position":"<bg-position>#","background-position-x":"[center|[[left|right|x-start|x-end]? <length-percentage>?]!]#","background-position-y":"[center|[[top|bottom|y-start|y-end]? <length-percentage>?]!]#","background-repeat":"<repeat-style>#","background-size":"<bg-size>#","block-overflow":"clip|ellipsis|<string>","block-size":"<'width'>",border:"<line-width>||<line-style>||<color>","border-block":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-color":"<'border-top-color'>{1,2}","border-block-style":"<'border-top-style'>","border-block-width":"<'border-top-width'>","border-block-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-end-color":"<'border-top-color'>","border-block-end-style":"<'border-top-style'>","border-block-end-width":"<'border-top-width'>","border-block-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-start-color":"<'border-top-color'>","border-block-start-style":"<'border-top-style'>","border-block-start-width":"<'border-top-width'>","border-bottom":"<line-width>||<line-style>||<color>","border-bottom-color":"<'border-top-color'>","border-bottom-left-radius":"<length-percentage>{1,2}","border-bottom-right-radius":"<length-percentage>{1,2}","border-bottom-style":"<line-style>","border-bottom-width":"<line-width>","border-collapse":"collapse|separate","border-color":"<color>{1,4}","border-end-end-radius":"<length-percentage>{1,2}","border-end-start-radius":"<length-percentage>{1,2}","border-image":"<'border-image-source'>||<'border-image-slice'> [/ <'border-image-width'>|/ <'border-image-width'>? / <'border-image-outset'>]?||<'border-image-repeat'>","border-image-outset":"[<length>|<number>]{1,4}","border-image-repeat":"[stretch|repeat|round|space]{1,2}","border-image-slice":"<number-percentage>{1,4}&&fill?","border-image-source":"none|<image>","border-image-width":"[<length-percentage>|<number>|auto]{1,4}","border-inline":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-color":"<'border-top-color'>{1,2}","border-inline-style":"<'border-top-style'>","border-inline-width":"<'border-top-width'>","border-inline-end-color":"<'border-top-color'>","border-inline-end-style":"<'border-top-style'>","border-inline-end-width":"<'border-top-width'>","border-inline-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-start-color":"<'border-top-color'>","border-inline-start-style":"<'border-top-style'>","border-inline-start-width":"<'border-top-width'>","border-left":"<line-width>||<line-style>||<color>","border-left-color":"<color>","border-left-style":"<line-style>","border-left-width":"<line-width>","border-radius":"<length-percentage>{1,4} [/ <length-percentage>{1,4}]?","border-right":"<line-width>||<line-style>||<color>","border-right-color":"<color>","border-right-style":"<line-style>","border-right-width":"<line-width>","border-spacing":"<length> <length>?","border-start-end-radius":"<length-percentage>{1,2}","border-start-start-radius":"<length-percentage>{1,2}","border-style":"<line-style>{1,4}","border-top":"<line-width>||<line-style>||<color>","border-top-color":"<color>","border-top-left-radius":"<length-percentage>{1,2}","border-top-right-radius":"<length-percentage>{1,2}","border-top-style":"<line-style>","border-top-width":"<line-width>","border-width":"<line-width>{1,4}",bottom:"<length>|<percentage>|auto","box-align":"start|center|end|baseline|stretch","box-decoration-break":"slice|clone","box-direction":"normal|reverse|inherit","box-flex":"<number>","box-flex-group":"<integer>","box-lines":"single|multiple","box-ordinal-group":"<integer>","box-orient":"horizontal|vertical|inline-axis|block-axis|inherit","box-pack":"start|center|end|justify","box-shadow":"none|<shadow>#","box-sizing":"content-box|border-box","break-after":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-before":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-inside":"auto|avoid|avoid-page|avoid-column|avoid-region","caption-side":"top|bottom|block-start|block-end|inline-start|inline-end",caret:"<'caret-color'>||<'caret-shape'>","caret-color":"auto|<color>","caret-shape":"auto|bar|block|underscore",clear:"none|left|right|both|inline-start|inline-end",clip:"<shape>|auto","clip-path":"<clip-source>|[<basic-shape>||<geometry-box>]|none",color:"<color>","color-scheme":"normal|[light|dark|<custom-ident>]+&&only?","column-count":"<integer>|auto","column-fill":"auto|balance|balance-all","column-gap":"normal|<length-percentage>","column-rule":"<'column-rule-width'>||<'column-rule-style'>||<'column-rule-color'>","column-rule-color":"<color>","column-rule-style":"<'border-style'>","column-rule-width":"<'border-width'>","column-span":"none|all","column-width":"<length>|auto",columns:"<'column-width'>||<'column-count'>",contain:"none|strict|content|[[size||inline-size]||layout||style||paint]","contain-intrinsic-size":"[auto? [none|<length>]]{1,2}","contain-intrinsic-block-size":"auto? [none|<length>]","contain-intrinsic-height":"auto? [none|<length>]","contain-intrinsic-inline-size":"auto? [none|<length>]","contain-intrinsic-width":"auto? [none|<length>]",container:"<'container-name'> [/ <'container-type'>]?","container-name":"none|<custom-ident>+","container-type":"normal||[size|inline-size]",content:"normal|none|[<content-replacement>|<content-list>] [/ [<string>|<counter>]+]?","content-visibility":"visible|auto|hidden","counter-increment":"[<counter-name> <integer>?]+|none","counter-reset":"[<counter-name> <integer>?|<reversed-counter-name> <integer>?]+|none","counter-set":"[<counter-name> <integer>?]+|none",cursor:"[[<url> [<x> <y>]? ,]* [auto|default|none|context-menu|help|pointer|progress|wait|cell|crosshair|text|vertical-text|alias|copy|move|no-drop|not-allowed|e-resize|n-resize|ne-resize|nw-resize|s-resize|se-resize|sw-resize|w-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing|hand|-webkit-grab|-webkit-grabbing|-webkit-zoom-in|-webkit-zoom-out|-moz-grab|-moz-grabbing|-moz-zoom-in|-moz-zoom-out]]",direction:"ltr|rtl",display:"[<display-outside>||<display-inside>]|<display-listitem>|<display-internal>|<display-box>|<display-legacy>|<-non-standard-display>","empty-cells":"show|hide",filter:"none|<filter-function-list>|<-ms-filter-function-list>",flex:"none|[<'flex-grow'> <'flex-shrink'>?||<'flex-basis'>]","flex-basis":"content|<'width'>","flex-direction":"row|row-reverse|column|column-reverse","flex-flow":"<'flex-direction'>||<'flex-wrap'>","flex-grow":"<number>","flex-shrink":"<number>","flex-wrap":"nowrap|wrap|wrap-reverse",float:"left|right|none|inline-start|inline-end",font:"[[<'font-style'>||<font-variant-css21>||<'font-weight'>||<'font-stretch'>]? <'font-size'> [/ <'line-height'>]? <'font-family'>]|caption|icon|menu|message-box|small-caption|status-bar|<-non-standard-font>","font-family":"[<family-name>|<generic-family>]#","font-feature-settings":"normal|<feature-tag-value>#","font-kerning":"auto|normal|none","font-language-override":"normal|<string>","font-optical-sizing":"auto|none","font-palette":"normal|light|dark|<palette-identifier>","font-variation-settings":"normal|[<string> <number>]#","font-size":"<absolute-size>|<relative-size>|<length-percentage>","font-size-adjust":"none|[ex-height|cap-height|ch-width|ic-width|ic-height]? [from-font|<number>]","font-smooth":"auto|never|always|<absolute-size>|<length>","font-stretch":"<font-stretch-absolute>","font-style":"normal|italic|oblique <angle>?","font-synthesis":"none|[weight||style||small-caps]","font-synthesis-small-caps":"auto|none","font-synthesis-style":"auto|none","font-synthesis-weight":"auto|none","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-alternates":"normal|[stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )]","font-variant-caps":"normal|small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","font-variant-east-asian":"normal|[<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-emoji":"normal|text|emoji|unicode","font-variant-ligatures":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>]","font-variant-numeric":"normal|[<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero]","font-variant-position":"normal|sub|super","font-weight":"<font-weight-absolute>|bolder|lighter","forced-color-adjust":"auto|none",gap:"<'row-gap'> <'column-gap'>?",grid:"<'grid-template'>|<'grid-template-rows'> / [auto-flow&&dense?] <'grid-auto-columns'>?|[auto-flow&&dense?] <'grid-auto-rows'>? / <'grid-template-columns'>","grid-area":"<grid-line> [/ <grid-line>]{0,3}","grid-auto-columns":"<track-size>+","grid-auto-flow":"[row|column]||dense","grid-auto-rows":"<track-size>+","grid-column":"<grid-line> [/ <grid-line>]?","grid-column-end":"<grid-line>","grid-column-gap":"<length-percentage>","grid-column-start":"<grid-line>","grid-gap":"<'grid-row-gap'> <'grid-column-gap'>?","grid-row":"<grid-line> [/ <grid-line>]?","grid-row-end":"<grid-line>","grid-row-gap":"<length-percentage>","grid-row-start":"<grid-line>","grid-template":"none|[<'grid-template-rows'> / <'grid-template-columns'>]|[<line-names>? <string> <track-size>? <line-names>?]+ [/ <explicit-track-list>]?","grid-template-areas":"none|<string>+","grid-template-columns":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","grid-template-rows":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","hanging-punctuation":"none|[first||[force-end|allow-end]||last]",height:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","hyphenate-character":"auto|<string>","hyphenate-limit-chars":"[auto|<integer>]{1,3}",hyphens:"none|manual|auto","image-orientation":"from-image|<angle>|[<angle>? flip]","image-rendering":"auto|crisp-edges|pixelated|optimizeSpeed|optimizeQuality|<-non-standard-image-rendering>","image-resolution":"[from-image||<resolution>]&&snap?","ime-mode":"auto|normal|active|inactive|disabled","initial-letter":"normal|[<number> <integer>?]","initial-letter-align":"[auto|alphabetic|hanging|ideographic]","inline-size":"<'width'>","input-security":"auto|none",inset:"<'top'>{1,4}","inset-block":"<'top'>{1,2}","inset-block-end":"<'top'>","inset-block-start":"<'top'>","inset-inline":"<'top'>{1,2}","inset-inline-end":"<'top'>","inset-inline-start":"<'top'>",isolation:"auto|isolate","justify-content":"normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]","justify-items":"normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]|legacy|legacy&&[left|right|center]","justify-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]","justify-tracks":"[normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]]#",left:"<length>|<percentage>|auto","letter-spacing":"normal|<length-percentage>","line-break":"auto|loose|normal|strict|anywhere","line-clamp":"none|<integer>","line-height":"normal|<number>|<length>|<percentage>","line-height-step":"<length>","list-style":"<'list-style-type'>||<'list-style-position'>||<'list-style-image'>","list-style-image":"<image>|none","list-style-position":"inside|outside","list-style-type":"<counter-style>|<string>|none",margin:"[<length>|<percentage>|auto]{1,4}","margin-block":"<'margin-left'>{1,2}","margin-block-end":"<'margin-left'>","margin-block-start":"<'margin-left'>","margin-bottom":"<length>|<percentage>|auto","margin-inline":"<'margin-left'>{1,2}","margin-inline-end":"<'margin-left'>","margin-inline-start":"<'margin-left'>","margin-left":"<length>|<percentage>|auto","margin-right":"<length>|<percentage>|auto","margin-top":"<length>|<percentage>|auto","margin-trim":"none|in-flow|all",mask:"<mask-layer>#","mask-border":"<'mask-border-source'>||<'mask-border-slice'> [/ <'mask-border-width'>? [/ <'mask-border-outset'>]?]?||<'mask-border-repeat'>||<'mask-border-mode'>","mask-border-mode":"luminance|alpha","mask-border-outset":"[<length>|<number>]{1,4}","mask-border-repeat":"[stretch|repeat|round|space]{1,2}","mask-border-slice":"<number-percentage>{1,4} fill?","mask-border-source":"none|<image>","mask-border-width":"[<length-percentage>|<number>|auto]{1,4}","mask-clip":"[<geometry-box>|no-clip]#","mask-composite":"<compositing-operator>#","mask-image":"<mask-reference>#","mask-mode":"<masking-mode>#","mask-origin":"<geometry-box>#","mask-position":"<position>#","mask-repeat":"<repeat-style>#","mask-size":"<bg-size>#","mask-type":"luminance|alpha","masonry-auto-flow":"[pack|next]||[definite-first|ordered]","math-depth":"auto-add|add( <integer> )|<integer>","math-shift":"normal|compact","math-style":"normal|compact","max-block-size":"<'max-width'>","max-height":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","max-inline-size":"<'max-width'>","max-lines":"none|<integer>","max-width":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","min-block-size":"<'min-width'>","min-height":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","min-inline-size":"<'min-width'>","min-width":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","mix-blend-mode":"<blend-mode>|plus-lighter","object-fit":"fill|contain|cover|none|scale-down","object-position":"<position>",offset:"[<'offset-position'>? [<'offset-path'> [<'offset-distance'>||<'offset-rotate'>]?]?]! [/ <'offset-anchor'>]?","offset-anchor":"auto|<position>","offset-distance":"<length-percentage>","offset-path":"none|<offset-path>||<coord-box>","offset-position":"normal|auto|<position>","offset-rotate":"[auto|reverse]||<angle>",opacity:"<alpha-value>",order:"<integer>",orphans:"<integer>",outline:"[<'outline-color'>||<'outline-style'>||<'outline-width'>]","outline-color":"<color>|invert","outline-offset":"<length>","outline-style":"auto|<'border-style'>","outline-width":"<line-width>",overflow:"[visible|hidden|clip|scroll|auto]{1,2}|<-non-standard-overflow>","overflow-anchor":"auto|none","overflow-block":"visible|hidden|clip|scroll|auto","overflow-clip-box":"padding-box|content-box","overflow-clip-margin":"<visual-box>||<length [0,∞]>","overflow-inline":"visible|hidden|clip|scroll|auto","overflow-wrap":"normal|break-word|anywhere","overflow-x":"visible|hidden|clip|scroll|auto","overflow-y":"visible|hidden|clip|scroll|auto","overscroll-behavior":"[contain|none|auto]{1,2}","overscroll-behavior-block":"contain|none|auto","overscroll-behavior-inline":"contain|none|auto","overscroll-behavior-x":"contain|none|auto","overscroll-behavior-y":"contain|none|auto",padding:"[<length>|<percentage>]{1,4}","padding-block":"<'padding-left'>{1,2}","padding-block-end":"<'padding-left'>","padding-block-start":"<'padding-left'>","padding-bottom":"<length>|<percentage>","padding-inline":"<'padding-left'>{1,2}","padding-inline-end":"<'padding-left'>","padding-inline-start":"<'padding-left'>","padding-left":"<length>|<percentage>","padding-right":"<length>|<percentage>","padding-top":"<length>|<percentage>",page:"auto|<custom-ident>","page-break-after":"auto|always|avoid|left|right|recto|verso","page-break-before":"auto|always|avoid|left|right|recto|verso","page-break-inside":"auto|avoid","paint-order":"normal|[fill||stroke||markers]",perspective:"none|<length>","perspective-origin":"<position>","place-content":"<'align-content'> <'justify-content'>?","place-items":"<'align-items'> <'justify-items'>?","place-self":"<'align-self'> <'justify-self'>?","pointer-events":"auto|none|visiblePainted|visibleFill|visibleStroke|visible|painted|fill|stroke|all|inherit",position:"static|relative|absolute|sticky|fixed|-webkit-sticky","print-color-adjust":"economy|exact",quotes:"none|auto|[<string> <string>]+",resize:"none|both|horizontal|vertical|block|inline",right:"<length>|<percentage>|auto",rotate:"none|<angle>|[x|y|z|<number>{3}]&&<angle>","row-gap":"normal|<length-percentage>","ruby-align":"start|center|space-between|space-around","ruby-merge":"separate|collapse|auto","ruby-position":"[alternate||[over|under]]|inter-character",scale:"none|<number>{1,3}","scrollbar-color":"auto|<color>{2}","scrollbar-gutter":"auto|stable&&both-edges?","scrollbar-width":"auto|thin|none","scroll-behavior":"auto|smooth","scroll-margin":"<length>{1,4}","scroll-margin-block":"<length>{1,2}","scroll-margin-block-start":"<length>","scroll-margin-block-end":"<length>","scroll-margin-bottom":"<length>","scroll-margin-inline":"<length>{1,2}","scroll-margin-inline-start":"<length>","scroll-margin-inline-end":"<length>","scroll-margin-left":"<length>","scroll-margin-right":"<length>","scroll-margin-top":"<length>","scroll-padding":"[auto|<length-percentage>]{1,4}","scroll-padding-block":"[auto|<length-percentage>]{1,2}","scroll-padding-block-start":"auto|<length-percentage>","scroll-padding-block-end":"auto|<length-percentage>","scroll-padding-bottom":"auto|<length-percentage>","scroll-padding-inline":"[auto|<length-percentage>]{1,2}","scroll-padding-inline-start":"auto|<length-percentage>","scroll-padding-inline-end":"auto|<length-percentage>","scroll-padding-left":"auto|<length-percentage>","scroll-padding-right":"auto|<length-percentage>","scroll-padding-top":"auto|<length-percentage>","scroll-snap-align":"[none|start|end|center]{1,2}","scroll-snap-coordinate":"none|<position>#","scroll-snap-destination":"<position>","scroll-snap-points-x":"none|repeat( <length-percentage> )","scroll-snap-points-y":"none|repeat( <length-percentage> )","scroll-snap-stop":"normal|always","scroll-snap-type":"none|[x|y|block|inline|both] [mandatory|proximity]?","scroll-snap-type-x":"none|mandatory|proximity","scroll-snap-type-y":"none|mandatory|proximity","scroll-timeline":"[<'scroll-timeline-name'>||<'scroll-timeline-axis'>]#","scroll-timeline-axis":"[block|inline|vertical|horizontal]#","scroll-timeline-name":"none|<custom-ident>#","shape-image-threshold":"<alpha-value>","shape-margin":"<length-percentage>","shape-outside":"none|[<shape-box>||<basic-shape>]|<image>","tab-size":"<integer>|<length>","table-layout":"auto|fixed","text-align":"start|end|left|right|center|justify|match-parent","text-align-last":"auto|start|end|left|right|center|justify","text-combine-upright":"none|all|[digits <integer>?]","text-decoration":"<'text-decoration-line'>||<'text-decoration-style'>||<'text-decoration-color'>||<'text-decoration-thickness'>","text-decoration-color":"<color>","text-decoration-line":"none|[underline||overline||line-through||blink]|spelling-error|grammar-error","text-decoration-skip":"none|[objects||[spaces|[leading-spaces||trailing-spaces]]||edges||box-decoration]","text-decoration-skip-ink":"auto|all|none","text-decoration-style":"solid|double|dotted|dashed|wavy","text-decoration-thickness":"auto|from-font|<length>|<percentage>","text-emphasis":"<'text-emphasis-style'>||<'text-emphasis-color'>","text-emphasis-color":"<color>","text-emphasis-position":"[over|under]&&[right|left]","text-emphasis-style":"none|[[filled|open]||[dot|circle|double-circle|triangle|sesame]]|<string>","text-indent":"<length-percentage>&&hanging?&&each-line?","text-justify":"auto|inter-character|inter-word|none","text-orientation":"mixed|upright|sideways","text-overflow":"[clip|ellipsis|<string>]{1,2}","text-rendering":"auto|optimizeSpeed|optimizeLegibility|geometricPrecision","text-shadow":"none|<shadow-t>#","text-size-adjust":"none|auto|<percentage>","text-transform":"none|capitalize|uppercase|lowercase|full-width|full-size-kana","text-underline-offset":"auto|<length>|<percentage>","text-underline-position":"auto|from-font|[under||[left|right]]","text-wrap":"wrap|nowrap|balance|stable|pretty","timeline-scope":"none|<dashed-ident>#",top:"<length>|<percentage>|auto","touch-action":"auto|none|[[pan-x|pan-left|pan-right]||[pan-y|pan-up|pan-down]||pinch-zoom]|manipulation",transform:"none|<transform-list>","transform-box":"content-box|border-box|fill-box|stroke-box|view-box","transform-origin":"[<length-percentage>|left|center|right|top|bottom]|[[<length-percentage>|left|center|right]&&[<length-percentage>|top|center|bottom]] <length>?","transform-style":"flat|preserve-3d",transition:"<single-transition>#","transition-delay":"<time>#","transition-duration":"<time>#","transition-property":"none|<single-transition-property>#","transition-timing-function":"<easing-function>#",translate:"none|<length-percentage> [<length-percentage> <length>?]?","unicode-bidi":"normal|embed|isolate|bidi-override|isolate-override|plaintext|-moz-isolate|-moz-isolate-override|-moz-plaintext|-webkit-isolate|-webkit-isolate-override|-webkit-plaintext","user-select":"auto|text|none|contain|all","vertical-align":"baseline|sub|super|text-top|text-bottom|middle|top|bottom|<percentage>|<length>","view-timeline":"[<'view-timeline-name'> <'view-timeline-axis'>?]#","view-timeline-axis":"[block|inline|x|y]#","view-timeline-inset":"[[auto|<length-percentage>]{1,2}]#","view-timeline-name":"none|<dashed-ident>#","view-transition-name":"none|<custom-ident>",visibility:"visible|hidden|collapse","white-space":"normal|pre|nowrap|pre-wrap|pre-line|break-spaces|[<'white-space-collapse'>||<'text-wrap'>||<'white-space-trim'>]","white-space-collapse":"collapse|discard|preserve|preserve-breaks|preserve-spaces|break-spaces","white-space-trim":"none|discard-before||discard-after||discard-inner",widows:"<integer>",width:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","will-change":"auto|<animateable-feature>#","word-break":"normal|break-all|keep-all|break-word","word-spacing":"normal|<length>","word-wrap":"normal|break-word","writing-mode":"horizontal-tb|vertical-rl|vertical-lr|sideways-rl|sideways-lr|<svg-writing-mode>","z-index":"auto|<integer>",zoom:"normal|reset|<number>|<percentage>","-moz-background-clip":"padding|border","-moz-border-radius-bottomleft":"<'border-bottom-left-radius'>","-moz-border-radius-bottomright":"<'border-bottom-right-radius'>","-moz-border-radius-topleft":"<'border-top-left-radius'>","-moz-border-radius-topright":"<'border-bottom-right-radius'>","-moz-control-character-visibility":"visible|hidden","-moz-osx-font-smoothing":"auto|grayscale","-moz-user-select":"none|text|all|-moz-none","-ms-flex-align":"start|end|center|baseline|stretch","-ms-flex-item-align":"auto|start|end|center|baseline|stretch","-ms-flex-line-pack":"start|end|center|justify|distribute|stretch","-ms-flex-negative":"<'flex-shrink'>","-ms-flex-pack":"start|end|center|justify|distribute","-ms-flex-order":"<integer>","-ms-flex-positive":"<'flex-grow'>","-ms-flex-preferred-size":"<'flex-basis'>","-ms-interpolation-mode":"nearest-neighbor|bicubic","-ms-grid-column-align":"start|end|center|stretch","-ms-grid-row-align":"start|end|center|stretch","-ms-hyphenate-limit-last":"none|always|column|page|spread","-webkit-background-clip":"[<box>|border|padding|content|text]#","-webkit-column-break-after":"always|auto|avoid","-webkit-column-break-before":"always|auto|avoid","-webkit-column-break-inside":"always|auto|avoid","-webkit-font-smoothing":"auto|none|antialiased|subpixel-antialiased","-webkit-mask-box-image":"[<url>|<gradient>|none] [<length-percentage>{4} <-webkit-mask-box-repeat>{2}]?","-webkit-print-color-adjust":"economy|exact","-webkit-text-security":"none|circle|disc|square","-webkit-user-drag":"none|element|auto","-webkit-user-select":"auto|none|text|all","alignment-baseline":"auto|baseline|before-edge|text-before-edge|middle|central|after-edge|text-after-edge|ideographic|alphabetic|hanging|mathematical","baseline-shift":"baseline|sub|super|<svg-length>",behavior:"<url>+","clip-rule":"nonzero|evenodd",cue:"<'cue-before'> <'cue-after'>?","cue-after":"<url> <decibel>?|none","cue-before":"<url> <decibel>?|none","dominant-baseline":"auto|use-script|no-change|reset-size|ideographic|alphabetic|hanging|mathematical|central|middle|text-after-edge|text-before-edge",fill:"<paint>","fill-opacity":"<number-zero-one>","fill-rule":"nonzero|evenodd","glyph-orientation-horizontal":"<angle>","glyph-orientation-vertical":"<angle>",kerning:"auto|<svg-length>",marker:"none|<url>","marker-end":"none|<url>","marker-mid":"none|<url>","marker-start":"none|<url>",pause:"<'pause-before'> <'pause-after'>?","pause-after":"<time>|none|x-weak|weak|medium|strong|x-strong","pause-before":"<time>|none|x-weak|weak|medium|strong|x-strong",rest:"<'rest-before'> <'rest-after'>?","rest-after":"<time>|none|x-weak|weak|medium|strong|x-strong","rest-before":"<time>|none|x-weak|weak|medium|strong|x-strong","shape-rendering":"auto|optimizeSpeed|crispEdges|geometricPrecision",src:"[<url> [format( <string># )]?|local( <family-name> )]#",speak:"auto|never|always","speak-as":"normal|spell-out||digits||[literal-punctuation|no-punctuation]",stroke:"<paint>","stroke-dasharray":"none|[<svg-length>+]#","stroke-dashoffset":"<svg-length>","stroke-linecap":"butt|round|square","stroke-linejoin":"miter|round|bevel","stroke-miterlimit":"<number-one-or-greater>","stroke-opacity":"<number-zero-one>","stroke-width":"<svg-length>","text-anchor":"start|middle|end","unicode-range":"<urange>#","voice-balance":"<number>|left|center|right|leftwards|rightwards","voice-duration":"auto|<time>","voice-family":"[[<family-name>|<generic-voice>] ,]* [<family-name>|<generic-voice>]|preserve","voice-pitch":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-range":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-rate":"[normal|x-slow|slow|medium|fast|x-fast]||<percentage>","voice-stress":"normal|strong|moderate|none|reduced","voice-volume":"silent|[[x-soft|soft|medium|loud|x-loud]||<decibel>]"},atrules:{charset:{prelude:"<string>",descriptors:null},"counter-style":{prelude:"<counter-style-name>",descriptors:{"additive-symbols":"[<integer>&&<symbol>]#",fallback:"<counter-style-name>",negative:"<symbol> <symbol>?",pad:"<integer>&&<symbol>",prefix:"<symbol>",range:"[[<integer>|infinite]{2}]#|auto","speak-as":"auto|bullets|numbers|words|spell-out|<counter-style-name>",suffix:"<symbol>",symbols:"<symbol>+",system:"cyclic|numeric|alphabetic|symbolic|additive|[fixed <integer>?]|[extends <counter-style-name>]"}},document:{prelude:"[<url>|url-prefix( <string> )|domain( <string> )|media-document( <string> )|regexp( <string> )]#",descriptors:null},"font-palette-values":{prelude:"<dashed-ident>",descriptors:{"base-palette":"light|dark|<integer [0,∞]>","font-family":"<family-name>#","override-colors":"[<integer [0,∞]> <absolute-color-base>]#"}},"font-face":{prelude:null,descriptors:{"ascent-override":"normal|<percentage>","descent-override":"normal|<percentage>","font-display":"[auto|block|swap|fallback|optional]","font-family":"<family-name>","font-feature-settings":"normal|<feature-tag-value>#","font-variation-settings":"normal|[<string> <number>]#","font-stretch":"<font-stretch-absolute>{1,2}","font-style":"normal|italic|oblique <angle>{0,2}","font-weight":"<font-weight-absolute>{1,2}","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","line-gap-override":"normal|<percentage>","size-adjust":"<percentage>",src:"[<url> [format( <string># )]?|local( <family-name> )]#","unicode-range":"<urange>#"}},"font-feature-values":{prelude:"<family-name>#",descriptors:null},import:{prelude:"[<string>|<url>] [layer|layer( <layer-name> )]? [supports( [<supports-condition>|<declaration>] )]? <media-query-list>?",descriptors:null},keyframes:{prelude:"<keyframes-name>",descriptors:null},layer:{prelude:"[<layer-name>#|<layer-name>?]",descriptors:null},media:{prelude:"<media-query-list>",descriptors:null},namespace:{prelude:"<namespace-prefix>? [<string>|<url>]",descriptors:null},page:{prelude:"<page-selector-list>",descriptors:{bleed:"auto|<length>",marks:"none|[crop||cross]","page-orientation":"upright|rotate-left|rotate-right",size:"<length>{1,2}|auto|[<page-size>||[portrait|landscape]]"}},property:{prelude:"<custom-property-name>",descriptors:{syntax:"<string>",inherits:"true|false","initial-value":"<string>"}},supports:{prelude:"<supports-condition>",descriptors:null},viewport:{prelude:null,descriptors:{height:"<viewport-length>{1,2}","max-height":"<viewport-length>","max-width":"<viewport-length>","max-zoom":"auto|<number>|<percentage>","min-height":"<viewport-length>","min-width":"<viewport-length>","min-zoom":"auto|<number>|<percentage>",orientation:"auto|portrait|landscape","user-zoom":"zoom|fixed","viewport-fit":"auto|contain|cover",width:"<viewport-length>{1,2}",zoom:"auto|<number>|<percentage>"}},container:{prelude:"[<container-name>]? <container-condition>",descriptors:null},nest:{prelude:"<complex-selector-list>",descriptors:null},scope:{prelude:"[( <scope-start> )]? [to ( <scope-end> )]?",descriptors:null}},node:Lo},ql={};const Vl=y;var $l=function(e){switch(this.tokenType){case Vl.Hash:return this.Hash();case Vl.Comma:return this.Operator();case Vl.LeftParenthesis:return this.Parentheses(this.readSequence,e.recognizer);case Vl.LeftSquareBracket:return this.Brackets(this.readSequence,e.recognizer);case Vl.String:return this.String();case Vl.Dimension:return this.Dimension();case Vl.Percentage:return this.Percentage();case Vl.Number:return this.Number();case Vl.Function:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case Vl.Url:return this.Url();case Vl.Ident:return this.cmpChar(this.tokenStart,117)&&this.cmpChar(this.tokenStart+1,43)?this.UnicodeRange():this.Identifier();case Vl.Delim:{const e=this.charCodeAt(this.tokenStart);if(47===e||42===e||43===e||45===e)return this.Operator();35===e&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}};const Kl=y,Zl=y;function Gl(e){return null!==e&&"Operator"===e.type&&("-"===e.value[e.value.length-1]||"+"===e.value[e.value.length-1])}const Yl={getNode:$l},Xl={onWhiteSpace:function(e,t){null!==t.last&&"Combinator"!==t.last.type&&null!==e&&"Combinator"!==e.type&&t.push({type:"Combinator",loc:null,name:" "})},getNode:function(){switch(this.tokenType){case Kl.LeftSquareBracket:return this.AttributeSelector();case Kl.Hash:return this.IdSelector();case Kl.Colon:return this.lookupType(1)===Kl.Colon?this.PseudoElementSelector():this.PseudoClassSelector();case Kl.Ident:return this.TypeSelector();case Kl.Number:case Kl.Percentage:return this.Percentage();case Kl.Dimension:46===this.charCodeAt(this.tokenStart)&&this.error("Identifier is expected",this.tokenStart+1);break;case Kl.Delim:switch(this.charCodeAt(this.tokenStart)){case 43:case 62:case 126:case 47:return this.Combinator();case 46:return this.ClassSelector();case 42:case 124:return this.TypeSelector();case 35:return this.IdSelector();case 38:return this.NestingSelector()}}}},Jl={getNode:$l,onWhiteSpace(e,t){Gl(e)&&(e.value=" "+e.value),Gl(t.last)&&(t.last.value+=" ")},expression:function(){return this.createSingleNodeList(this.Raw(null,!1))},var:function(){const e=this.createList();if(this.skipSC(),e.push(this.Identifier()),this.skipSC(),this.tokenType===Zl.Comma){e.push(this.Operator());const t=this.tokenIndex,n=this.parseCustomProperty?this.Value(null):this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1);if("Value"===n.type&&n.children.isEmpty)for(let e=t-this.tokenIndex;e<=0;e++)if(this.lookupType(e)===Zl.WhiteSpace){n.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}e.push(n)}return e}};ql.AtrulePrelude=Yl,ql.Selector=Xl,ql.Value=Jl;const Ql=y,ec=new Set(["none","and","not","or"]),tc={parse:{prelude(){const e=this.createList();if(this.tokenType===Ql.Ident){const t=this.substring(this.tokenStart,this.tokenEnd);ec.has(t.toLowerCase())||e.push(this.Identifier())}return e.push(this.Condition("container")),e},block(e=!1){return this.Block(e)}}},nc=y;function rc(e,t){return this.parseWithFallback((()=>{try{return e.call(this)}finally{this.skipSC(),this.lookupNonWSType(0)!==nc.RightParenthesis&&this.error()}}),t||(()=>this.Raw(null,!0)))}const oc={layer(){this.skipSC();const e=this.createList(),t=rc.call(this,this.Layer);return"Raw"===t.type&&""===t.value||e.push(t),e},supports(){this.skipSC();const e=this.createList(),t=rc.call(this,this.Declaration,(()=>rc.call(this,(()=>this.Condition("supports")))));return"Raw"===t.type&&""===t.value||e.push(t),e}};var ic={container:tc,"font-face":{parse:{prelude:null,block(){return this.Block(!0)}}},import:{parse:{prelude(){const e=this.createList();switch(this.tokenType){case nc.String:e.push(this.String());break;case nc.Url:case nc.Function:e.push(this.Url());break;default:this.error("String or url() is expected")}return this.skipSC(),this.tokenType===nc.Ident&&this.cmpStr(this.tokenStart,this.tokenEnd,"layer")?e.push(this.Identifier()):this.tokenType===nc.Function&&this.cmpStr(this.tokenStart,this.tokenEnd,"layer(")&&e.push(this.Function(null,oc)),this.skipSC(),this.tokenType===nc.Function&&this.cmpStr(this.tokenStart,this.tokenEnd,"supports(")&&e.push(this.Function(null,oc)),this.lookupNonWSType(0)!==nc.Ident&&this.lookupNonWSType(0)!==nc.LeftParenthesis||e.push(this.MediaQueryList()),e},block:null}},layer:{parse:{prelude(){return this.createSingleNodeList(this.LayerList())},block(){return this.Block(!1)}}},media:{parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(e=!1){return this.Block(e)}}},nest:{parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},page:{parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},scope:{parse:{prelude(){return this.createSingleNodeList(this.Scope())},block(e=!1){return this.Block(e)}}},"starting-style":{parse:{prelude:null,block(e=!1){return this.Block(e)}}},supports:{parse:{prelude(){return this.createSingleNodeList(this.Condition("supports"))},block(e=!1){return this.Block(e)}}}};const ac={parse(){return this.createSingleNodeList(this.SelectorList())}},sc={parse(){return this.createSingleNodeList(this.Selector())}},lc={parse(){return this.createSingleNodeList(this.Identifier())}},cc={parse(){return this.createSingleNodeList(this.Nth())}};var uc={dir:lc,has:ac,lang:lc,matches:ac,is:ac,"-moz-any":ac,"-webkit-any":ac,where:ac,not:ac,"nth-child":cc,"nth-last-child":cc,"nth-last-of-type":cc,"nth-of-type":cc,slotted:sc,host:sc,"host-context":sc},hc={};const dc=Oo,pc=Ho,mc=Zo,fc=Yo,gc=ti,bc=si,yc=ci,kc=hi,wc=pi,vc=gi,xc=ki,Sc=xi,_c=Pi,Cc=Bi,Ac=Fi,zc=Hi,Pc=$i,Ec=Yi,Lc=ta,Oc=oa,Nc=sa,Tc=ua,Rc=pa,Dc=ga,Ic=ka,Bc=va,Mc=_a,jc=Aa,Fc=Pa,Uc=La,Wc=Ta,Hc=Da,qc=Ba,Vc=Fa,$c=Ha,Kc=$a,Zc=Ga,Gc=Qa,Yc=rs,Xc=is,Jc=as,Qc=ls,eu=fs,tu=ys,nu=ws,ru=_s,ou=Ds,iu=Hs,au=qs;hc.AnPlusB=dc.parse,hc.Atrule=pc.parse,hc.AtrulePrelude=mc.parse,hc.AttributeSelector=fc.parse,hc.Block=gc.parse,hc.Brackets=bc.parse,hc.CDC=yc.parse,hc.CDO=kc.parse,hc.ClassSelector=wc.parse,hc.Combinator=vc.parse,hc.Comment=xc.parse,hc.Condition=Sc.parse,hc.Declaration=_c.parse,hc.DeclarationList=Cc.parse,hc.Dimension=Ac.parse,hc.Feature=zc.parse,hc.FeatureFunction=Pc.parse,hc.FeatureRange=Ec.parse,hc.Function=Lc.parse,hc.GeneralEnclosed=Oc.parse,hc.Hash=Nc.parse,hc.Identifier=Tc.parse,hc.IdSelector=Rc.parse,hc.Layer=Dc.parse,hc.LayerList=Ic.parse,hc.MediaQuery=Bc.parse,hc.MediaQueryList=Mc.parse,hc.NestingSelector=jc.parse,hc.Nth=Fc.parse,hc.Number=Uc.parse,hc.Operator=Wc.parse,hc.Parentheses=Hc.parse,hc.Percentage=qc.parse,hc.PseudoClassSelector=Vc.parse,hc.PseudoElementSelector=$c.parse,hc.Ratio=Kc.parse,hc.Raw=Zc.parse,hc.Rule=Gc.parse,hc.Scope=Yc.parse,hc.Selector=Xc.parse,hc.SelectorList=Jc.parse,hc.String=Qc.parse,hc.StyleSheet=eu.parse,hc.SupportsDeclaration=tu.parse,hc.TypeSelector=nu.parse,hc.UnicodeRange=ru.parse,hc.Url=ou.parse,hc.Value=iu.parse,hc.WhiteSpace=au.parse;var su=Eo({...Hl,parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude(e){return this.AtrulePrelude(e.atrule?String(e.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",condition(e){return this.Condition(e.kind)},rule:"Rule",selectorList:"SelectorList",selector:"Selector",block(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},features:{supports:{selector(){return this.Selector()}},container:{style(){return this.Declaration()}}},scope:ql,atrule:ic,pseudo:uc,node:hc,node:Lo}),lu={};const cu=Pn,uu=xt,hu=An,du=Yr;lu.SyntaxError=cu.SyntaxError,lu.generate=uu.generate,lu.parse=hu.parse,lu.walk=du.walk;var pu={};const mu=ie;pu.clone=function e(t){const n={};for(const r of Object.keys(t)){let o=t[r];o&&(Array.isArray(o)||o instanceof mu.List?o=o.map(e):o.constructor===Object&&(o=e(o))),n[r]=o}return n};var fu={};const gu=k,bu=O;fu.decode=function(e){const t=e.length-1;let n="";for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);if(92===o){if(r===t)break;if(o=e.charCodeAt(++r),gu.isValidEscape(92,o)){const t=r-1,o=bu.consumeEscaped(e,t);r=o-1,n+=bu.decodeEscaped(e.substring(t+1,o))}else 13===o&&10===e.charCodeAt(r+1)&&r++}else n+=e[r]}return n},fu.encode=function(e){let t="";if(1===e.length&&45===e.charCodeAt(0))return"\\-";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);0!==r?r<=31||127===r||r>=48&&r<=57&&(0===n||1===n&&45===e.charCodeAt(0))?t+="\\"+r.toString(16)+" ":gu.isName(r)?t+=e.charAt(n):t+="\\"+e.charAt(n):t+="�"}return t};const yu=su,ku=Eo,wu=ie,vu=wt,xu=lu,Su=pu,_u=Lt,Cu=fu,Au=cs,zu=Is,Pu=y,Eu=M,Lu=q,{tokenize:Ou,parse:Nu,generate:Tu,lexer:Ru,createLexer:Du,walk:Iu,find:Bu,findLast:Mu,findAll:ju,toPlainObject:Fu,fromPlainObject:Uu,fork:Wu}=yu;g.version="1.1.4".version,g.createSyntax=ku,g.List=wu.List,g.Lexer=vu.Lexer,g.definitionSyntax=xu,g.clone=Su.clone,g.isCustomProperty=_u.isCustomProperty,g.keyword=_u.keyword,g.property=_u.property,g.vendorPrefix=_u.vendorPrefix,g.ident=Cu,g.string=Au,g.url=zu,g.tokenTypes=Pu,g.tokenNames=Eu,g.TokenStream=Lu.TokenStream,g.createLexer=Du,g.find=Bu,g.findAll=ju,g.findLast=Mu,g.fork=Wu,g.fromPlainObject=Uu,g.generate=Tu,g.lexer=Ru,g.parse=Nu,g.toPlainObject=Fu,g.tokenize=Ou,g.walk=Iu;var Hu={};const qu=new Map([["background",new Set(["background-color","background-position","background-position-x","background-position-y","background-size","background-repeat","background-repeat-x","background-repeat-y","background-clip","background-origin","background-attachment","background-image"])],["background-position",new Set(["background-position-x","background-position-y"])],["background-repeat",new Set(["background-repeat-x","background-repeat-y"])],["font",new Set(["font-style","font-variant-caps","font-weight","font-stretch","font-size","line-height","font-family","font-size-adjust","font-kerning","font-optical-sizing","font-variant-alternates","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-language-override","font-feature-settings","font-variation-settings"])],["font-variant",new Set(["font-variant-caps","font-variant-numeric","font-variant-alternates","font-variant-ligatures","font-variant-east-asian"])],["outline",new Set(["outline-width","outline-style","outline-color"])],["border",new Set(["border-top-width","border-right-width","border-bottom-width","border-left-width","border-top-style","border-right-style","border-bottom-style","border-left-style","border-top-color","border-right-color","border-bottom-color","border-left-color","border-image-source","border-image-slice","border-image-width","border-image-outset","border-image-repeat"])],["border-width",new Set(["border-top-width","border-right-width","border-bottom-width","border-left-width"])],["border-style",new Set(["border-top-style","border-right-style","border-bottom-style","border-left-style"])],["border-color",new Set(["border-top-color","border-right-color","border-bottom-color","border-left-color"])],["border-block",new Set(["border-block-start-width","border-block-end-width","border-block-start-style","border-block-end-style","border-block-start-color","border-block-end-color"])],["border-block-start",new Set(["border-block-start-width","border-block-start-style","border-block-start-color"])],["border-block-end",new Set(["border-block-end-width","border-block-end-style","border-block-end-color"])],["border-inline",new Set(["border-inline-start-width","border-inline-end-width","border-inline-start-style","border-inline-end-style","border-inline-start-color","border-inline-end-color"])],["border-inline-start",new Set(["border-inline-start-width","border-inline-start-style","border-inline-start-color"])],["border-inline-end",new Set(["border-inline-end-width","border-inline-end-style","border-inline-end-color"])],["border-image",new Set(["border-image-source","border-image-slice","border-image-width","border-image-outset","border-image-repeat"])],["border-radius",new Set(["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"])],["padding",new Set(["padding-top","padding-right","padding-bottom","padding-left"])],["padding-block",new Set(["padding-block-start","padding-block-end"])],["padding-inline",new Set(["padding-inline-start","padding-inline-end"])],["margin",new Set(["margin-top","margin-right","margin-bottom","margin-left"])],["margin-block",new Set(["margin-block-start","margin-block-end"])],["margin-inline",new Set(["margin-inline-start","margin-inline-end"])],["inset",new Set(["top","right","bottom","left"])],["inset-block",new Set(["inset-block-start","inset-block-end"])],["inset-inline",new Set(["inset-inline-start","inset-inline-end"])],["flex",new Set(["flex-grow","flex-shrink","flex-basis"])],["flex-flow",new Set(["flex-direction","flex-wrap"])],["gap",new Set(["row-gap","column-gap"])],["transition",new Set(["transition-duration","transition-timing-function","transition-delay","transition-property"])],["grid",new Set(["grid-template-rows","grid-template-columns","grid-template-areas","grid-auto-flow","grid-auto-columns","grid-auto-rows"])],["grid-template",new Set(["grid-template-rows","grid-template-columns","grid-template-areas"])],["grid-row",new Set(["grid-row-start","grid-row-end"])],["grid-column",new Set(["grid-column-start","grid-column-end"])],["grid-gap",new Set(["grid-row-gap","grid-column-gap","row-gap","column-gap"])],["place-content",new Set(["align-content","justify-content"])],["place-items",new Set(["align-items","justify-items"])],["place-self",new Set(["align-self","justify-self"])],["columns",new Set(["column-width","column-count"])],["column-rule",new Set(["column-rule-width","column-rule-style","column-rule-color"])],["list-style",new Set(["list-style-type","list-style-position","list-style-image"])],["offset",new Set(["offset-position","offset-path","offset-distance","offset-rotate","offset-anchor"])],["overflow",new Set(["overflow-x","overflow-y"])],["overscroll-behavior",new Set(["overscroll-behavior-x","overscroll-behavior-y"])],["scroll-margin",new Set(["scroll-margin-top","scroll-margin-right","scroll-margin-bottom","scroll-margin-left"])],["scroll-padding",new Set(["scroll-padding-top","scroll-padding-right","scroll-padding-bottom","scroll-padding-left"])],["text-decoration",new Set(["text-decoration-line","text-decoration-style","text-decoration-color","text-decoration-thickness"])],["text-stroke",new Set(["text-stroke-color","text-stroke-width"])],["animation",new Set(["animation-duration","animation-timing-function","animation-delay","animation-iteration-count","animation-direction","animation-fill-mode","animation-play-state","animation-name","animation-timeline","animation-range-start","animation-range-end"])],["mask",new Set(["mask-image","mask-mode","mask-repeat-x","mask-repeat-y","mask-position-x","mask-position-y","mask-clip","mask-origin","mask-size","mask-composite"])],["mask-repeat",new Set(["mask-repeat-x","mask-repeat-y"])],["mask-position",new Set(["mask-position-x","mask-position-y"])],["perspective-origin",new Set(["perspective-origin-x","perspective-origin-y"])],["transform-origin",new Set(["transform-origin-x","transform-origin-y","transform-origin-z"])],["white-space",new Set(["white-space-collapse","text-wrap"])]]),Vu=new Map([Gu("animation","moz"),Gu("border-image","moz"),Gu("mask","moz"),Gu("transition","moz"),Gu("columns","moz"),Gu("text-stroke","moz"),Gu("column-rule","moz"),["-moz-border-end",new Set(["-moz-border-end-color","-moz-border-end-style","-moz-border-end-width"])],["-moz-border-start",new Set(["-moz-border-start-color","-moz-border-start-style","-moz-border-start-width"])],["-moz-outline-radius",new Set(["-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-outline-radius-bottomright","-moz-outline-radius-bottomleft"])]]),$u=new Map([Gu("animation","webkit"),Gu("border-radius","webkit"),Gu("column-rule","webkit"),Gu("columns","webkit"),Gu("flex","webkit"),Gu("flex-flow","webkit"),Gu("mask","webkit"),Gu("text-stroke","webkit"),Gu("perspective-origin","webkit"),Gu("transform-origin","webkit"),Gu("transition","webkit"),["-webkit-border-start",new Set(["-webkit-border-start-color","-webkit-border-start-style","-webkit-border-start-width"])],["-webkit-border-before",new Set(["-webkit-border-before-color","-webkit-border-before-style","-webkit-border-before-width"])],["-webkit-border-end",new Set(["-webkit-border-end-color","-webkit-border-end-style","-webkit-border-end-width"])],["-webkit-border-after",new Set(["-webkit-border-after-color","-webkit-border-after-style","-webkit-border-after-width"])]]),Ku=["background-position","background-repeat","text-decoration"];Vu.forEach(((e,t)=>qu.set(t,e))),$u.forEach(((e,t)=>qu.set(t,e)));const Zu=new Map;function Gu(e,t){const n=qu.get(e);if(n)return[`-${t}-${e}`,new Set(Array.from(n,(e=>`-${t}-${e}`)))]}function Yu(e,t){const n=qu.get(e);return!!n&&n.has(t)}qu.forEach(((e,t)=>{e.forEach((e=>{Zu.get(e)||Zu.set(e,new Set),Zu.get(e).add(t)}))})),Hu.isShorthand=function(e){return qu.has(e)},Hu.isShorthandFor=Yu,Hu.hasShorthand=function(e){return Zu.has(e)},Hu.hasShorthandWithin=function(e,t){return t.some((t=>Yu(t,e)))},Hu.getShorthands=function(e){return Zu.get(e)},Hu.preferredShorthand=function(e){return Ku.find((t=>qu.get(t).has(e)))};const{preferredShorthand:Xu,getShorthands:Ju}=Hu;function Qu(e,t){return{type:"Declaration",important:Boolean(e.getPropertyPriority(t)),property:t,value:{type:"Raw",value:e.getPropertyValue(t)}}}var eh=function(e){const t=Array.from(e).reduce(((t,n)=>{const r=Xu(n)||n;t.set(r,Qu(e,r));const o=Ju(n);return o&&o.forEach((n=>{e.getPropertyValue(n)&&(t.delete(n),t.set(n,Qu(e,n)))})),t}),new Map);return Array.from(t.values())};const th=g,nh=eh,rh={2:{atrule:"charset",prelude:"charset"},CSSImportRule:{atrule:"import",prelude:"import"},CSSNamespaceRule:{atrule:"namespace",prelude:"namespace"},CSSStyleRule:{prelude:"selector",block:"style"},CSSKeyframeRule:{prelude:"key",block:"style"},CSSPageRule:{atrule:"page",prelude:"selector",block:"style"},CSSFontFaceRule:{atrule:"font-face",block:"style"},CSSMediaRule:{atrule:"media",prelude:"condition",block:"nested"},CSSSupportsRule:{atrule:"supports",prelude:"condition",block:"nested"},13:{atrule:"document",prelude:"condition",block:"nested"},CSSKeyframesRule:{atrule:"keyframes",prelude:"name",block:"nested"},CSSContainerRule:{atrule:"container",prelude:"condition",block:"nested"},CSSLayerStatementRule:{atrule:"layer",prelude:"nameList"},CSSLayerBlockRule:{atrule:"layer",prelude:"name",block:"nested"}};var oh=function e(t){return Array.from(t,(t=>{const n=rh[t.type]??rh[t.constructor.name];if(!n)throw new Error(`Unknown CSS object model rule ${t}`);const r={};if(n.atrule){r.type="Atrule";const[e,o]=t.cssText.match(new RegExp(`^@(-\\w+-)?${n.atrule}`));r.name=o?o+n.atrule:n.atrule}else r.type="Rule";let o;if("selector"===n.prelude?o=t.selectorText:"key"===n.prelude?o=t.keyText:"condition"===n.prelude?o=t.conditionText:"name"===n.prelude?o=t.name:"import"===n.prelude?o=`url("${t.href}") ${t.media.mediaText}`:"namespace"===n.prelude?o=`${t.prefix} url("${t.namespaceURI}")`:"charset"===n.prelude?o=`"${t.encoding}"`:"nameList"===n.prelude&&(o=t.nameList),o){const e=n.atrule?{context:"atrulePrelude",atrule:n.atrule}:{context:"selectorList"};r.prelude=th.toPlainObject(th.parse(o,e))}else r.prelude=null;return"style"===n.block?r.block={type:"Block",children:nh(t.style)}:"nested"===n.block?r.block={type:"Block",children:e(t.cssRules)}:r.block=null,r}))};const ih=g,ah=new Set(["before","after","first-line","first-letter"]);const{isShorthand:sh,isShorthandFor:lh,hasShorthandWithin:ch}=Hu,uh={"word-wrap":"overflow-wrap",clip:"clip-path"};function hh(e,t){let n=[];return e.forEach((e=>{"Declaration"===e.type&&n.push(e)})),t.forEach((e=>{if("Declaration"!==e.type)return;if(ch(e.property,n.map((e=>e.property))))return;const t=n.filter((t=>t.property===e.property));if(0===t.length)n.push(e);else{const r=t.findLast((t=>t.value.value===e.value.value));if(r)r.important!==e.important&&t.forEach((t=>t.important=e.important));else{if(sh(e.property))return;n=n.filter((t=>t.property!==e.property)),n.push(e)}}})),n}function dh(e,t){return!Array.isArray(e)&&!Array.isArray(t)||Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every(((e,n)=>{const r=t[n];return e.type===r.type&&((a=e.name)===(s=r.name)||a&&s&&a.name&&a.name===s.name)&&((o=e.value)===(i=r.value)||o.type===i.type&&o.value===i.value)&&dh(e.children,r.children);var o,i,a,s}))}function ph(e){return"Rule"===e.type||/^(-\w+-)?(page|font-face)$/.test(e.name)}function mh(e,t,n,r){for(let o=t;o<n;++o)r(e[o],o,e)}var fh=()=>{},gh=function(e){const t=Array.from(e.attributes).map((t=>"id"===t.name?`#${t.value}`:"class"===t.name?Array.from(e.classList).map((e=>`.${e}`)).join(""):`[${t.name}="${t.value}"]`)).join("");return`${e.nodeName}${t}`};const bh=g,yh=oh,kh=function(e){const t=ih.parse(e,{context:"stylesheet",parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!1,parseCustomProperty:!1});return ih.walk(t,{visit:"TypeSelector",enter(e,t){"from"===e.name?t.data={type:"Percentage",value:"0"}:"to"===e.name&&(t.data={type:"Percentage",value:"100"})}}),ih.walk(t,{visit:"AtrulePrelude",enter(e){if(["import","namespace"].includes(this.atrule.name)){const t=e.children.toArray(),n="import"===e.name?0:t.length-1,r=t[n];"String"===r.type&&(t[n]={type:"Url",value:r.value},e.children.fromArray(t))}}}),ih.walk(t,{visit:"PseudoClassSelector",enter(e){ah.has(e.name)&&(e.type="PseudoElementSelector")}}),ih.walk(t,{visit:"Selector",enter(e){const t=e.children.toArray();if(t.length>1){const n=t.filter(((e,n)=>{const r=t[n+1],o=r?"PseudoClassSelector"===r.type||"PseudoElementSelector"===r.type:void 0;return!("*"===e.name&&"TypeSelector"===e.type&&o)}));e.children.fromArray(n.length?n:null)}}}),ih.walk(t,{visit:"AttributeSelector",enter(e){e.value&&"Identifier"===e.value.type&&(e.value={type:"String",value:e.value.name})}}),ih.toPlainObject(t)},wh=function e(t,n){let r=0;const o=[];return t.forEach((t=>{const i={};i.type=t.type,i.name=t.name,i.prelude=t.prelude,i.block=t.block;const a=function(e,t,n){return function(e,t,n){for(let r=t;r<e.length;++r)if(n(e[r]))return r;return-1}(e,t,(e=>{return e.type===n.type&&e.name===n.name&&(o=e.prelude,i=n.prelude,!o&&!i||o.type===i.type&&dh(o.children,i.children))&&(!ph(n)||(t=e.block.children,(r=n.block.children).reduce(((e,n)=>{const r="Declaration"===n.type&&(function(e){return/^(-\w+-)/.test(e)}(n.property)||t.some((e=>function(e,t){const n=uh[e]||e,r=uh[t]||t;return n===r||lh(r,n)||lh(n,r)}(e.property,n.property))));return e+(r?1:0)}),0)>=r.length));var t,r,o,i}))}(n,r,t);a>r&&mh(n,r,a,(e=>o.push(e))),a>=0&&(r=a+1,function(e){return"Atrule"===e.type&&/^(-\w+-)?(media|supports|document|keyframes)$/.test(e.name)}(t)?i.block={type:"Block",children:e(t.block.children,n[a].block.children)}:ph(t)&&(i.block={type:"Block",children:hh(t.block.children,n[a].block.children)})),o.push(i)}),[]),r<n.length&&mh(n,r,n.length,(e=>o.push(e))),o},vh=fh,xh=gh;function Sh(e,t){var n=e[0],r=e[1],o=e[2],i=e[3];n=Ch(n,r,o,i,t[0],7,-680876936),i=Ch(i,n,r,o,t[1],12,-389564586),o=Ch(o,i,n,r,t[2],17,606105819),r=Ch(r,o,i,n,t[3],22,-1044525330),n=Ch(n,r,o,i,t[4],7,-176418897),i=Ch(i,n,r,o,t[5],12,1200080426),o=Ch(o,i,n,r,t[6],17,-1473231341),r=Ch(r,o,i,n,t[7],22,-45705983),n=Ch(n,r,o,i,t[8],7,1770035416),i=Ch(i,n,r,o,t[9],12,-1958414417),o=Ch(o,i,n,r,t[10],17,-42063),r=Ch(r,o,i,n,t[11],22,-1990404162),n=Ch(n,r,o,i,t[12],7,1804603682),i=Ch(i,n,r,o,t[13],12,-40341101),o=Ch(o,i,n,r,t[14],17,-1502002290),n=Ah(n,r=Ch(r,o,i,n,t[15],22,1236535329),o,i,t[1],5,-165796510),i=Ah(i,n,r,o,t[6],9,-1069501632),o=Ah(o,i,n,r,t[11],14,643717713),r=Ah(r,o,i,n,t[0],20,-373897302),n=Ah(n,r,o,i,t[5],5,-701558691),i=Ah(i,n,r,o,t[10],9,38016083),o=Ah(o,i,n,r,t[15],14,-660478335),r=Ah(r,o,i,n,t[4],20,-405537848),n=Ah(n,r,o,i,t[9],5,568446438),i=Ah(i,n,r,o,t[14],9,-1019803690),o=Ah(o,i,n,r,t[3],14,-187363961),r=Ah(r,o,i,n,t[8],20,1163531501),n=Ah(n,r,o,i,t[13],5,-1444681467),i=Ah(i,n,r,o,t[2],9,-51403784),o=Ah(o,i,n,r,t[7],14,1735328473),n=zh(n,r=Ah(r,o,i,n,t[12],20,-1926607734),o,i,t[5],4,-378558),i=zh(i,n,r,o,t[8],11,-2022574463),o=zh(o,i,n,r,t[11],16,1839030562),r=zh(r,o,i,n,t[14],23,-35309556),n=zh(n,r,o,i,t[1],4,-1530992060),i=zh(i,n,r,o,t[4],11,1272893353),o=zh(o,i,n,r,t[7],16,-155497632),r=zh(r,o,i,n,t[10],23,-1094730640),n=zh(n,r,o,i,t[13],4,681279174),i=zh(i,n,r,o,t[0],11,-358537222),o=zh(o,i,n,r,t[3],16,-722521979),r=zh(r,o,i,n,t[6],23,76029189),n=zh(n,r,o,i,t[9],4,-640364487),i=zh(i,n,r,o,t[12],11,-421815835),o=zh(o,i,n,r,t[15],16,530742520),n=Ph(n,r=zh(r,o,i,n,t[2],23,-995338651),o,i,t[0],6,-198630844),i=Ph(i,n,r,o,t[7],10,1126891415),o=Ph(o,i,n,r,t[14],15,-1416354905),r=Ph(r,o,i,n,t[5],21,-57434055),n=Ph(n,r,o,i,t[12],6,1700485571),i=Ph(i,n,r,o,t[3],10,-1894986606),o=Ph(o,i,n,r,t[10],15,-1051523),r=Ph(r,o,i,n,t[1],21,-2054922799),n=Ph(n,r,o,i,t[8],6,1873313359),i=Ph(i,n,r,o,t[15],10,-30611744),o=Ph(o,i,n,r,t[6],15,-1560198380),r=Ph(r,o,i,n,t[13],21,1309151649),n=Ph(n,r,o,i,t[4],6,-145523070),i=Ph(i,n,r,o,t[11],10,-1120210379),o=Ph(o,i,n,r,t[2],15,718787259),r=Ph(r,o,i,n,t[9],21,-343485551),e[0]=Nh(n,e[0]),e[1]=Nh(r,e[1]),e[2]=Nh(o,e[2]),e[3]=Nh(i,e[3])}function _h(e,t,n,r,o,i){return t=Nh(Nh(t,e),Nh(r,i)),Nh(t<<o|t>>>32-o,n)}function Ch(e,t,n,r,o,i,a){return _h(t&n|~t&r,e,t,o,i,a)}function Ah(e,t,n,r,o,i,a){return _h(t&r|n&~r,e,t,o,i,a)}function zh(e,t,n,r,o,i,a){return _h(t^n^r,e,t,o,i,a)}function Ph(e,t,n,r,o,i,a){return _h(n^(t|~r),e,t,o,i,a)}function Eh(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}var Lh="0123456789abcdef".split("");function Oh(e){for(var t="",n=0;n<4;n++)t+=Lh[e>>8*n+4&15]+Lh[e>>8*n&15];return t}function Nh(e,t){return e+t&4294967295}var Th=function(e,{removeReverseProxyURLPrefixes:t}={}){const n=[];return[/url\((?!['"]?:)'([^']*)'\)/g,/url\((?!['"]?:)"([^"]*)"\)/g,/url\((?!['"]?:)([^()'"]*)\)/g].forEach((t=>{let r;for(;null!==(r=t.exec(e));)n.push(r[1])})),t?n.map((e=>{const t=e.match(/\/http(.*)$/);return t&&t.length?t[0].substring(1):e})):n};const Rh=Th;var Dh=function(e){let t=[];for(let n=0,r=e.length;n<r;n++){const r=e[n];let o=e.getPropertyValue(r);(/^\s*var\s*\(/.test(o)||/^--/.test(r))&&(o=o.replace(/(\\[0-9a-fA-F]{1,6}\s?)/g,(e=>String.fromCodePoint(parseInt(e.substr(1).trim(),16)))).replace(/\\([^0-9a-fA-F])/g,"$1"));const i=Rh(o);t=t.concat(i)}return t};const Ih=Dh,Bh=/(\S+)(?:\s+[\d.]+[wx])?(?:,|$)/g;const Mh=g,jh=oh;const Fh=g,Uh=eh;const Wh=g;const Hh=Symbol("raw");function qh(e){const t=function(e){if("undefined"==typeof window)return null;const t=window.Node.prototype.toString.apply(e).replace(/\[object (.*)]/,"$1");return window[t]}(e);return t?(n=e,r=t.prototype,new Proxy(Object.create(n),{get(e,t,o){if(t===Hh)return n;const i=Reflect.get(r,t,n);return"function"==typeof i?function(){return i.apply(this===o?n:this,arguments)}:i}})):e;var n,r}qh.unwrap=function(e){return e[Hh]||e};var Vh=qh;const{absolutizeUrl:$h,isInlineFrame:Kh,isAccessibleFrame:Zh}=u,Gh=function(){return window.crypto.getRandomValues(new Uint32Array(1))[0]},Yh=function(e,t=vh){t("[processInlineCss] processing inline css for",xh(e));try{const n=kh(e.textContent);t("[processInlineCss] created AST for textContent");const r=yh(e.sheet.cssRules);t("[processInlineCss] created AST for CSSOM");const o=wh(n.children,r);t("[processInlineCss] merged AST");const i=bh.generate(bh.fromPlainObject({type:"StyleSheet",children:o}));return t("[processInlineCss] generated cssText of length",i.length),i}catch(n){return t("[processInlineCss] error while processing inline css:",n.message,n),t("[processInlineCss] try to set fallback"),"string"==typeof e.textContent&&e.textContent.length>0?(t("[processInlineCss] set style from `styleNode.textContent`"),e.textContent):e.sheet&&e.sheet.cssRules?(t("[processInlineCss] set style from reduce `sheet.cssRules`"),Array.from(e.sheet.cssRules).reduce(((e,{cssText:t})=>e+t),"")):(t("[processInlineCss] could not set fallback to inline css"),"")}},Xh=function(e){const t=Array.prototype.map.call(e.sheet.cssRules,(e=>e.cssText)).join("");return function(e){return function(e){for(var t=0;t<e.length;t++)e[t]=Oh(e[t]);return e.join("")}(function(e){var t,n=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)Sh(r,Eh(e.substring(t-64,t)));e=e.substring(t-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)o[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(Sh(r,o),t=0;t<16;t++)o[t]=0;return o[14]=8*n,Sh(r,o),r}(e))}(t)},Jh=function(e){const t=(e.matches||e.msMatchesSelector).bind(e);let n=[];if(t("img[srcset],source[srcset]")&&(n=n.concat(function(e,t,n){const r=[],o=new RegExp(e.source,e.flags),i=o.global;let a;for(;(a=o.exec(t))&&(r.push(n(a)),i););return r}(Bh,e.getAttribute("srcset"),(e=>e[1])))),t('img[src],source[src],input[type="image"][src],audio[src],video[src]')&&n.push(e.getAttribute("src")),t("image,use")){const t=e.getAttribute("href")||e.getAttribute("xlink:href");t&&!function(e,t){try{const n=new URL(t),r=new URL(e,t);return r.origin===n.origin&&r.pathname===n.pathname&&Boolean(r.hash)}catch(e){return!1}}(t,e.ownerDocument.location.href)&&n.push(t)}t("object")&&e.getAttribute("data")&&n.push(e.getAttribute("data")),t('link[rel~="stylesheet"], link[as="stylesheet"]')&&n.push(e.getAttribute("href")),t("video[poster]")&&n.push(e.getAttribute("poster")),t("embed[src]")&&n.push(e.getAttribute("src"));const r=function(e){if(e.hasAttribute("style"))return Ih(e.style)}(e);return r&&(n=n.concat(r)),n},Qh=function(e){const t=jh(e.cssRules);return Mh.generate(Mh.fromPlainObject({type:"StyleSheet",children:t}))},ed=function(e){const t={type:"DeclarationList",children:Uh(e)};return Fh.generate(t)},td=fh,nd=function(e){const{ownerDocument:t}=e;if(!t)return!0;const{display:n}=t.defaultView.getComputedStyle(e),{width:r,height:o}=e.getBoundingClientRect();return"none"===n||0===r||0===o},rd=function(e){try{return Wh.toPlainObject(Wh.parse(e.toLowerCase(),{context:"mediaQueryList"})).children.some((e=>{const t=e.condition?.children.reduce(((e,t)=>("Identifier"===t.type&&"and"===t.name||e.push(t),e)),[])??[];return e.mediaType&&t.unshift(e),t.every((e=>!(e.modifier&&!["not","only"].includes(e.modifier))&&("Feature"===e.type||("Identifier"!==e.type&&"MediaQuery"!==e.type||!["all","screen"].includes(e.name??e.mediaType)?e.modifier&&"not"===e.modifier:!e.modifier||"not"!==e.modifier))))}))}catch{return!1}},od=Vh,id=gh,ad=new Set(["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"]),sd=/^on[a-z]+$/;function ld({attributes:e={}}){return Object.keys(e).filter((t=>e[t]&&e[t].name))}function cd(e,t,n){const r=e.find((e=>e.name===t));r?r.value=n:e.push({name:t,value:n})}function ud(e){return Array.from(e.adoptedStyleSheets).map(Qh)}var hd=function(e){const t=[];return new Set(e).forEach((e=>e&&t.push(e))),t};const dd=hd;var pd={};!function(e){var t="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var o in r)n(r,o)&&(e[o]=r[o])}}return e},e.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var r={arraySet:function(e,t,n,r,o){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),o);else for(var i=0;i<r;i++)e[o+i]=t[n+i]},flattenChunks:function(e){var t,n,r,o,i,a;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),o=0,t=0,n=e.length;t<n;t++)i=e[t],a.set(i,o),o+=i.length;return a}},o={arraySet:function(e,t,n,r,o){for(var i=0;i<r;i++)e[o+i]=t[n+i]},flattenChunks:function(e){return[].concat.apply([],e)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,r)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,o))},e.setTyped(t)}(pd);var md={},fd={},gd={},bd=pd;function yd(e){for(var t=e.length;--t>=0;)e[t]=0}var kd=256,wd=286,vd=30,xd=15,Sd=16,_d=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Cd=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Ad=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],zd=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Pd=new Array(576);yd(Pd);var Ed=new Array(60);yd(Ed);var Ld=new Array(512);yd(Ld);var Od=new Array(256);yd(Od);var Nd=new Array(29);yd(Nd);var Td,Rd,Dd,Id=new Array(vd);function Bd(e,t,n,r,o){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=o,this.has_stree=e&&e.length}function Md(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function jd(e){return e<256?Ld[e]:Ld[256+(e>>>7)]}function Fd(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function Ud(e,t,n){e.bi_valid>Sd-n?(e.bi_buf|=t<<e.bi_valid&65535,Fd(e,e.bi_buf),e.bi_buf=t>>Sd-e.bi_valid,e.bi_valid+=n-Sd):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function Wd(e,t,n){Ud(e,n[2*t],n[2*t+1])}function Hd(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function qd(e,t,n){var r,o,i=new Array(xd+1),a=0;for(r=1;r<=xd;r++)i[r]=a=a+n[r-1]<<1;for(o=0;o<=t;o++){var s=e[2*o+1];0!==s&&(e[2*o]=Hd(i[s]++,s))}}function Vd(e){var t;for(t=0;t<wd;t++)e.dyn_ltree[2*t]=0;for(t=0;t<vd;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function $d(e){e.bi_valid>8?Fd(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function Kd(e,t,n,r){var o=2*t,i=2*n;return e[o]<e[i]||e[o]===e[i]&&r[t]<=r[n]}function Zd(e,t,n){for(var r=e.heap[n],o=n<<1;o<=e.heap_len&&(o<e.heap_len&&Kd(t,e.heap[o+1],e.heap[o],e.depth)&&o++,!Kd(t,r,e.heap[o],e.depth));)e.heap[n]=e.heap[o],n=o,o<<=1;e.heap[n]=r}function Gd(e,t,n){var r,o,i,a,s=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],o=e.pending_buf[e.l_buf+s],s++,0===r?Wd(e,o,t):(Wd(e,(i=Od[o])+kd+1,t),0!==(a=_d[i])&&Ud(e,o-=Nd[i],a),Wd(e,i=jd(--r),n),0!==(a=Cd[i])&&Ud(e,r-=Id[i],a))}while(s<e.last_lit);Wd(e,256,t)}function Yd(e,t){var n,r,o,i=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<l;n++)0!==i[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):i[2*n+1]=0;for(;e.heap_len<2;)i[2*(o=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[o]=0,e.opt_len--,s&&(e.static_len-=a[2*o+1]);for(t.max_code=c,n=e.heap_len>>1;n>=1;n--)Zd(e,i,n);o=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Zd(e,i,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,i[2*o]=i[2*n]+i[2*r],e.depth[o]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,i[2*n+1]=i[2*r+1]=o,e.heap[1]=o++,Zd(e,i,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,o,i,a,s,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,h=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,m=t.stat_desc.max_length,f=0;for(i=0;i<=xd;i++)e.bl_count[i]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(i=l[2*l[2*(r=e.heap[n])+1]+1]+1)>m&&(i=m,f++),l[2*r+1]=i,r>c||(e.bl_count[i]++,a=0,r>=p&&(a=d[r-p]),s=l[2*r],e.opt_len+=s*(i+a),h&&(e.static_len+=s*(u[2*r+1]+a)));if(0!==f){do{for(i=m-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[m]--,f-=2}while(f>0);for(i=m;0!==i;i--)for(r=e.bl_count[i];0!==r;)(o=e.heap[--n])>c||(l[2*o+1]!==i&&(e.opt_len+=(i-l[2*o+1])*l[2*o],l[2*o+1]=i),r--)}}(e,t),qd(i,c,e.bl_count)}function Xd(e,t,n){var r,o,i=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)o=a,a=t[2*(r+1)+1],++s<l&&o===a||(s<c?e.bl_tree[2*o]+=s:0!==o?(o!==i&&e.bl_tree[2*o]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,i=o,0===a?(l=138,c=3):o===a?(l=6,c=3):(l=7,c=4))}function Jd(e,t,n){var r,o,i=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),r=0;r<=n;r++)if(o=a,a=t[2*(r+1)+1],!(++s<l&&o===a)){if(s<c)do{Wd(e,o,e.bl_tree)}while(0!=--s);else 0!==o?(o!==i&&(Wd(e,o,e.bl_tree),s--),Wd(e,16,e.bl_tree),Ud(e,s-3,2)):s<=10?(Wd(e,17,e.bl_tree),Ud(e,s-3,3)):(Wd(e,18,e.bl_tree),Ud(e,s-11,7));s=0,i=o,0===a?(l=138,c=3):o===a?(l=6,c=3):(l=7,c=4)}}yd(Id);var Qd=!1;function ep(e,t,n,r){Ud(e,0+(r?1:0),3),function(e,t,n,r){$d(e),Fd(e,n),Fd(e,~n),bd.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}gd._tr_init=function(e){Qd||(function(){var e,t,n,r,o,i=new Array(xd+1);for(n=0,r=0;r<28;r++)for(Nd[r]=n,e=0;e<1<<_d[r];e++)Od[n++]=r;for(Od[n-1]=r,o=0,r=0;r<16;r++)for(Id[r]=o,e=0;e<1<<Cd[r];e++)Ld[o++]=r;for(o>>=7;r<vd;r++)for(Id[r]=o<<7,e=0;e<1<<Cd[r]-7;e++)Ld[256+o++]=r;for(t=0;t<=xd;t++)i[t]=0;for(e=0;e<=143;)Pd[2*e+1]=8,e++,i[8]++;for(;e<=255;)Pd[2*e+1]=9,e++,i[9]++;for(;e<=279;)Pd[2*e+1]=7,e++,i[7]++;for(;e<=287;)Pd[2*e+1]=8,e++,i[8]++;for(qd(Pd,287,i),e=0;e<vd;e++)Ed[2*e+1]=5,Ed[2*e]=Hd(e,5);Td=new Bd(Pd,_d,257,wd,xd),Rd=new Bd(Ed,Cd,0,vd,xd),Dd=new Bd(new Array(0),Ad,0,19,7)}(),Qd=!0),e.l_desc=new Md(e.dyn_ltree,Td),e.d_desc=new Md(e.dyn_dtree,Rd),e.bl_desc=new Md(e.bl_tree,Dd),e.bi_buf=0,e.bi_valid=0,Vd(e)},gd._tr_stored_block=ep,gd._tr_flush_block=function(e,t,n,r){var o,i,a=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<kd;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),Yd(e,e.l_desc),Yd(e,e.d_desc),a=function(e){var t;for(Xd(e,e.dyn_ltree,e.l_desc.max_code),Xd(e,e.dyn_dtree,e.d_desc.max_code),Yd(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*zd[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(i=e.static_len+3+7>>>3)<=o&&(o=i)):o=i=n+5,n+4<=o&&-1!==t?ep(e,t,n,r):4===e.strategy||i===o?(Ud(e,2+(r?1:0),3),Gd(e,Pd,Ed)):(Ud(e,4+(r?1:0),3),function(e,t,n,r){var o;for(Ud(e,t-257,5),Ud(e,n-1,5),Ud(e,r-4,4),o=0;o<r;o++)Ud(e,e.bl_tree[2*zd[o]+1],3);Jd(e,e.dyn_ltree,t-1),Jd(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),Gd(e,e.dyn_ltree,e.dyn_dtree)),Vd(e),r&&$d(e)},gd._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(Od[n]+kd+1)]++,e.dyn_dtree[2*jd(t)]++),e.last_lit===e.lit_bufsize-1},gd._tr_align=function(e){Ud(e,2,3),Wd(e,256,Pd),function(e){16===e.bi_valid?(Fd(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)};var tp,np=function(e,t,n,r){for(var o=65535&e|0,i=e>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{i=i+(o=o+t[r++]|0)|0}while(--a);o%=65521,i%=65521}return o|i<<16|0},rp=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}(),op=function(e,t,n,r){var o=rp,i=r+n;e^=-1;for(var a=r;a<i;a++)e=e>>>8^o[255&(e^t[a])];return-1^e},ip={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},ap=pd,sp=gd,lp=np,cp=op,up=ip,hp=0,dp=0,pp=-2,mp=2,fp=8,gp=286,bp=30,yp=19,kp=2*gp+1,wp=15,vp=3,xp=258,Sp=xp+vp+1,_p=42,Cp=103,Ap=113,zp=666;function Pp(e,t){return e.msg=up[t],t}function Ep(e){return(e<<1)-(e>4?9:0)}function Lp(e){for(var t=e.length;--t>=0;)e[t]=0}function Op(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(ap.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function Np(e,t){sp._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Op(e.strm)}function Tp(e,t){e.pending_buf[e.pending++]=t}function Rp(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function Dp(e,t){var n,r,o=e.max_chain_length,i=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-Sp?e.strstart-(e.w_size-Sp):0,c=e.window,u=e.w_mask,h=e.prev,d=e.strstart+xp,p=c[i+a-1],m=c[i+a];e.prev_length>=e.good_match&&(o>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+a]===m&&c[n+a-1]===p&&c[n]===c[i]&&c[++n]===c[i+1]){i+=2,n++;do{}while(c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&i<d);if(r=xp-(d-i),i=d-xp,r>a){if(e.match_start=t,a=r,r>=s)break;p=c[i+a-1],m=c[i+a]}}}while((t=h[t&u])>l&&0!=--o);return a<=e.lookahead?a:e.lookahead}function Ip(e){var t,n,r,o,i,a,s,l,c,u,h=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=h+(h-Sp)){ap.arraySet(e.window,e.window,h,h,0),e.match_start-=h,e.strstart-=h,e.block_start-=h,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=h?r-h:0}while(--n);t=n=h;do{r=e.prev[--t],e.prev[t]=r>=h?r-h:0}while(--n);o+=h}if(0===e.strm.avail_in)break;if(a=e.strm,s=e.window,l=e.strstart+e.lookahead,c=o,u=void 0,(u=a.avail_in)>c&&(u=c),n=0===u?0:(a.avail_in-=u,ap.arraySet(s,a.input,a.next_in,u,l),1===a.state.wrap?a.adler=lp(a.adler,s,u,l):2===a.state.wrap&&(a.adler=cp(a.adler,s,u,l)),a.next_in+=u,a.total_in+=u,u),e.lookahead+=n,e.lookahead+e.insert>=vp)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=(e.ins_h<<e.hash_shift^e.window[i+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[i+vp-1])&e.hash_mask,e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<vp)););}while(e.lookahead<Sp&&0!==e.strm.avail_in)}function Bp(e,t){for(var n,r;;){if(e.lookahead<Sp){if(Ip(e),e.lookahead<Sp&&t===hp)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=vp&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+vp-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-Sp&&(e.match_length=Dp(e,n)),e.match_length>=vp)if(r=sp._tr_tally(e,e.strstart-e.match_start,e.match_length-vp),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=vp){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+vp-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=sp._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Np(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<vp-1?e.strstart:vp-1,4===t?(Np(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Np(e,!1),0===e.strm.avail_out)?1:2}function Mp(e,t){for(var n,r,o;;){if(e.lookahead<Sp){if(Ip(e),e.lookahead<Sp&&t===hp)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=vp&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+vp-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=vp-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-Sp&&(e.match_length=Dp(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===vp&&e.strstart-e.match_start>4096)&&(e.match_length=vp-1)),e.prev_length>=vp&&e.match_length<=e.prev_length){o=e.strstart+e.lookahead-vp,r=sp._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-vp),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=o&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+vp-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=vp-1,e.strstart++,r&&(Np(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=sp._tr_tally(e,0,e.window[e.strstart-1]))&&Np(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=sp._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<vp-1?e.strstart:vp-1,4===t?(Np(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Np(e,!1),0===e.strm.avail_out)?1:2}function jp(e,t,n,r,o){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=o}function Fp(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=fp,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new ap.Buf16(2*kp),this.dyn_dtree=new ap.Buf16(2*(2*bp+1)),this.bl_tree=new ap.Buf16(2*(2*yp+1)),Lp(this.dyn_ltree),Lp(this.dyn_dtree),Lp(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new ap.Buf16(wp+1),this.heap=new ap.Buf16(2*gp+1),Lp(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new ap.Buf16(2*gp+1),Lp(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Up(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=mp,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?_p:Ap,e.adler=2===t.wrap?0:1,t.last_flush=hp,sp._tr_init(t),dp):Pp(e,pp)}function Wp(e){var t,n=Up(e);return n===dp&&((t=e.state).window_size=2*t.w_size,Lp(t.head),t.max_lazy_match=tp[t.level].max_lazy,t.good_match=tp[t.level].good_length,t.nice_match=tp[t.level].nice_length,t.max_chain_length=tp[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=vp-1,t.match_available=0,t.ins_h=0),n}function Hp(e,t,n,r,o,i){if(!e)return pp;var a=1;if(-1===t&&(t=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),o<1||o>9||n!==fp||r<8||r>15||t<0||t>9||i<0||i>4)return Pp(e,pp);8===r&&(r=9);var s=new Fp;return e.state=s,s.strm=e,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=o+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+vp-1)/vp),s.window=new ap.Buf8(2*s.w_size),s.head=new ap.Buf16(s.hash_size),s.prev=new ap.Buf16(s.w_size),s.lit_bufsize=1<<o+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new ap.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=i,s.method=n,Wp(e)}tp=[new jp(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Ip(e),0===e.lookahead&&t===hp)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,Np(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-Sp&&(Np(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Np(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(Np(e,!1),e.strm.avail_out),1)})),new jp(4,4,8,4,Bp),new jp(4,5,16,8,Bp),new jp(4,6,32,32,Bp),new jp(4,4,16,16,Mp),new jp(8,16,32,32,Mp),new jp(8,16,128,128,Mp),new jp(8,32,128,256,Mp),new jp(32,128,258,1024,Mp),new jp(32,258,258,4096,Mp)],fd.deflateInit=function(e,t){return Hp(e,t,fp,15,8,0)},fd.deflateInit2=Hp,fd.deflateReset=Wp,fd.deflateResetKeep=Up,fd.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?pp:(e.state.gzhead=t,dp):pp},fd.deflate=function(e,t){var n,r,o,i;if(!e||!e.state||t>5||t<0)return e?Pp(e,pp):pp;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||r.status===zp&&4!==t)return Pp(e,0===e.avail_out?-5:pp);if(r.strm=e,n=r.last_flush,r.last_flush=t,r.status===_p)if(2===r.wrap)e.adler=0,Tp(r,31),Tp(r,139),Tp(r,8),r.gzhead?(Tp(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Tp(r,255&r.gzhead.time),Tp(r,r.gzhead.time>>8&255),Tp(r,r.gzhead.time>>16&255),Tp(r,r.gzhead.time>>24&255),Tp(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Tp(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Tp(r,255&r.gzhead.extra.length),Tp(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=cp(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Tp(r,0),Tp(r,0),Tp(r,0),Tp(r,0),Tp(r,0),Tp(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Tp(r,3),r.status=Ap);else{var a=fp+(r.w_bits-8<<4)<<8;a|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(a|=32),a+=31-a%31,r.status=Ap,Rp(r,a),0!==r.strstart&&(Rp(r,e.adler>>>16),Rp(r,65535&e.adler)),e.adler=1}if(69===r.status)if(r.gzhead.extra){for(o=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>o&&(e.adler=cp(e.adler,r.pending_buf,r.pending-o,o)),Op(e),o=r.pending,r.pending!==r.pending_buf_size));)Tp(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>o&&(e.adler=cp(e.adler,r.pending_buf,r.pending-o,o)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(e.adler=cp(e.adler,r.pending_buf,r.pending-o,o)),Op(e),o=r.pending,r.pending===r.pending_buf_size)){i=1;break}i=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Tp(r,i)}while(0!==i);r.gzhead.hcrc&&r.pending>o&&(e.adler=cp(e.adler,r.pending_buf,r.pending-o,o)),0===i&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(e.adler=cp(e.adler,r.pending_buf,r.pending-o,o)),Op(e),o=r.pending,r.pending===r.pending_buf_size)){i=1;break}i=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Tp(r,i)}while(0!==i);r.gzhead.hcrc&&r.pending>o&&(e.adler=cp(e.adler,r.pending_buf,r.pending-o,o)),0===i&&(r.status=Cp)}else r.status=Cp;if(r.status===Cp&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&Op(e),r.pending+2<=r.pending_buf_size&&(Tp(r,255&e.adler),Tp(r,e.adler>>8&255),e.adler=0,r.status=Ap)):r.status=Ap),0!==r.pending){if(Op(e),0===e.avail_out)return r.last_flush=-1,dp}else if(0===e.avail_in&&Ep(t)<=Ep(n)&&4!==t)return Pp(e,-5);if(r.status===zp&&0!==e.avail_in)return Pp(e,-5);if(0!==e.avail_in||0!==r.lookahead||t!==hp&&r.status!==zp){var s=2===r.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(Ip(e),0===e.lookahead)){if(t===hp)return 1;break}if(e.match_length=0,n=sp._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Np(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Np(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Np(e,!1),0===e.strm.avail_out)?1:2}(r,t):3===r.strategy?function(e,t){for(var n,r,o,i,a=e.window;;){if(e.lookahead<=xp){if(Ip(e),e.lookahead<=xp&&t===hp)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=vp&&e.strstart>0&&(r=a[o=e.strstart-1])===a[++o]&&r===a[++o]&&r===a[++o]){i=e.strstart+xp;do{}while(r===a[++o]&&r===a[++o]&&r===a[++o]&&r===a[++o]&&r===a[++o]&&r===a[++o]&&r===a[++o]&&r===a[++o]&&o<i);e.match_length=xp-(i-o),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=vp?(n=sp._tr_tally(e,1,e.match_length-vp),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=sp._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Np(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Np(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Np(e,!1),0===e.strm.avail_out)?1:2}(r,t):tp[r.level].func(r,t);if(3!==s&&4!==s||(r.status=zp),1===s||3===s)return 0===e.avail_out&&(r.last_flush=-1),dp;if(2===s&&(1===t?sp._tr_align(r):5!==t&&(sp._tr_stored_block(r,0,0,!1),3===t&&(Lp(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),Op(e),0===e.avail_out))return r.last_flush=-1,dp}return 4!==t?dp:r.wrap<=0?1:(2===r.wrap?(Tp(r,255&e.adler),Tp(r,e.adler>>8&255),Tp(r,e.adler>>16&255),Tp(r,e.adler>>24&255),Tp(r,255&e.total_in),Tp(r,e.total_in>>8&255),Tp(r,e.total_in>>16&255),Tp(r,e.total_in>>24&255)):(Rp(r,e.adler>>>16),Rp(r,65535&e.adler)),Op(e),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?dp:1)},fd.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==_p&&69!==t&&73!==t&&91!==t&&t!==Cp&&t!==Ap&&t!==zp?Pp(e,pp):(e.state=null,t===Ap?Pp(e,-3):dp):pp},fd.deflateSetDictionary=function(e,t){var n,r,o,i,a,s,l,c,u=t.length;if(!e||!e.state)return pp;if(2===(i=(n=e.state).wrap)||1===i&&n.status!==_p||n.lookahead)return pp;for(1===i&&(e.adler=lp(e.adler,t,u,0)),n.wrap=0,u>=n.w_size&&(0===i&&(Lp(n.head),n.strstart=0,n.block_start=0,n.insert=0),c=new ap.Buf8(n.w_size),ap.arraySet(c,t,u-n.w_size,n.w_size,0),t=c,u=n.w_size),a=e.avail_in,s=e.next_in,l=e.input,e.avail_in=u,e.next_in=0,e.input=t,Ip(n);n.lookahead>=vp;){r=n.strstart,o=n.lookahead-(vp-1);do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+vp-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--o);n.strstart=r,n.lookahead=vp-1,Ip(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=vp-1,n.match_available=0,e.next_in=s,e.input=l,e.avail_in=a,n.wrap=i,dp},fd.deflateInfo="pako deflate (from Nodeca project)";var qp={},Vp=pd,$p=!0,Kp=!0;try{String.fromCharCode.apply(null,[0])}catch(e){$p=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){Kp=!1}for(var Zp=new Vp.Buf8(256),Gp=0;Gp<256;Gp++)Zp[Gp]=Gp>=252?6:Gp>=248?5:Gp>=240?4:Gp>=224?3:Gp>=192?2:1;function Yp(e,t){if(t<65534&&(e.subarray&&Kp||!e.subarray&&$p))return String.fromCharCode.apply(null,Vp.shrinkBuf(e,t));for(var n="",r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n}Zp[254]=Zp[254]=1,qp.string2buf=function(e){var t,n,r,o,i,a=e.length,s=0;for(o=0;o<a;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Vp.Buf8(s),i=0,o=0;i<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?t[i++]=n:n<2048?(t[i++]=192|n>>>6,t[i++]=128|63&n):n<65536?(t[i++]=224|n>>>12,t[i++]=128|n>>>6&63,t[i++]=128|63&n):(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63,t[i++]=128|n>>>6&63,t[i++]=128|63&n);return t},qp.buf2binstring=function(e){return Yp(e,e.length)},qp.binstring2buf=function(e){for(var t=new Vp.Buf8(e.length),n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t},qp.buf2string=function(e,t){var n,r,o,i,a=t||e.length,s=new Array(2*a);for(r=0,n=0;n<a;)if((o=e[n++])<128)s[r++]=o;else if((i=Zp[o])>4)s[r++]=65533,n+=i-1;else{for(o&=2===i?31:3===i?15:7;i>1&&n<a;)o=o<<6|63&e[n++],i--;i>1?s[r++]=65533:o<65536?s[r++]=o:(o-=65536,s[r++]=55296|o>>10&1023,s[r++]=56320|1023&o)}return Yp(s,r)},qp.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+Zp[e[n]]>t?n:t};var Xp=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Jp=fd,Qp=pd,em=qp,tm=ip,nm=Xp,rm=Object.prototype.toString,om=0,im=-1,am=0,sm=8;function lm(e){if(!(this instanceof lm))return new lm(e);this.options=Qp.assign({level:im,method:sm,chunkSize:16384,windowBits:15,memLevel:8,strategy:am,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new nm,this.strm.avail_out=0;var n=Jp.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==om)throw new Error(tm[n]);if(t.header&&Jp.deflateSetHeader(this.strm,t.header),t.dictionary){var r;if(r="string"==typeof t.dictionary?em.string2buf(t.dictionary):"[object ArrayBuffer]"===rm.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=Jp.deflateSetDictionary(this.strm,r))!==om)throw new Error(tm[n]);this._dict_set=!0}}function cm(e,t){var n=new lm(t);if(n.push(e,!0),n.err)throw n.msg||tm[n.err];return n.result}lm.prototype.push=function(e,t){var n,r,o=this.strm,i=this.options.chunkSize;if(this.ended)return!1;r=t===~~t?t:!0===t?4:0,"string"==typeof e?o.input=em.string2buf(e):"[object ArrayBuffer]"===rm.call(e)?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=new Qp.Buf8(i),o.next_out=0,o.avail_out=i),1!==(n=Jp.deflate(o,r))&&n!==om)return this.onEnd(n),this.ended=!0,!1;0!==o.avail_out&&(0!==o.avail_in||4!==r&&2!==r)||("string"===this.options.to?this.onData(em.buf2binstring(Qp.shrinkBuf(o.output,o.next_out))):this.onData(Qp.shrinkBuf(o.output,o.next_out)))}while((o.avail_in>0||0===o.avail_out)&&1!==n);return 4===r?(n=Jp.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===om):2!==r||(this.onEnd(om),o.avail_out=0,!0)},lm.prototype.onData=function(e){this.chunks.push(e)},lm.prototype.onEnd=function(e){e===om&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Qp.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},md.Deflate=lm,md.deflate=cm,md.deflateRaw=function(e,t){return(t=t||{}).raw=!0,cm(e,t)},md.gzip=function(e,t){return(t=t||{}).gzip=!0,cm(e,t)};var um={},hm={},dm=pd,pm=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],mm=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],fm=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],gm=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],bm=pd,ym=np,km=op,wm=function(e,t){var n,r,o,i,a,s,l,c,u,h,d,p,m,f,g,b,y,k,w,v,x,S,_,C,A;n=e.state,r=e.next_in,C=e.input,o=r+(e.avail_in-5),i=e.next_out,A=e.output,a=i-(t-e.avail_out),s=i+(e.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,h=n.wnext,d=n.window,p=n.hold,m=n.bits,f=n.lencode,g=n.distcode,b=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{m<15&&(p+=C[r++]<<m,m+=8,p+=C[r++]<<m,m+=8),k=f[p&b];t:for(;;){if(p>>>=w=k>>>24,m-=w,0==(w=k>>>16&255))A[i++]=65535&k;else{if(!(16&w)){if(0==(64&w)){k=f[(65535&k)+(p&(1<<w)-1)];continue t}if(32&w){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}v=65535&k,(w&=15)&&(m<w&&(p+=C[r++]<<m,m+=8),v+=p&(1<<w)-1,p>>>=w,m-=w),m<15&&(p+=C[r++]<<m,m+=8,p+=C[r++]<<m,m+=8),k=g[p&y];n:for(;;){if(p>>>=w=k>>>24,m-=w,!(16&(w=k>>>16&255))){if(0==(64&w)){k=g[(65535&k)+(p&(1<<w)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(x=65535&k,m<(w&=15)&&(p+=C[r++]<<m,(m+=8)<w&&(p+=C[r++]<<m,m+=8)),(x+=p&(1<<w)-1)>l){e.msg="invalid distance too far back",n.mode=30;break e}if(p>>>=w,m-=w,x>(w=i-a)){if((w=x-w)>u&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(S=0,_=d,0===h){if(S+=c-w,w<v){v-=w;do{A[i++]=d[S++]}while(--w);S=i-x,_=A}}else if(h<w){if(S+=c+h-w,(w-=h)<v){v-=w;do{A[i++]=d[S++]}while(--w);if(S=0,h<v){v-=w=h;do{A[i++]=d[S++]}while(--w);S=i-x,_=A}}}else if(S+=h-w,w<v){v-=w;do{A[i++]=d[S++]}while(--w);S=i-x,_=A}for(;v>2;)A[i++]=_[S++],A[i++]=_[S++],A[i++]=_[S++],v-=3;v&&(A[i++]=_[S++],v>1&&(A[i++]=_[S++]))}else{S=i-x;do{A[i++]=A[S++],A[i++]=A[S++],A[i++]=A[S++],v-=3}while(v>2);v&&(A[i++]=A[S++],v>1&&(A[i++]=A[S++]))}break}}break}}while(r<o&&i<s);r-=v=m>>3,p&=(1<<(m-=v<<3))-1,e.next_in=r,e.next_out=i,e.avail_in=r<o?o-r+5:5-(r-o),e.avail_out=i<s?s-i+257:257-(i-s),n.hold=p,n.bits=m},vm=function(e,t,n,r,o,i,a,s){var l,c,u,h,d,p,m,f,g,b=s.bits,y=0,k=0,w=0,v=0,x=0,S=0,_=0,C=0,A=0,z=0,P=null,E=0,L=new dm.Buf16(16),O=new dm.Buf16(16),N=null,T=0;for(y=0;y<=15;y++)L[y]=0;for(k=0;k<r;k++)L[t[n+k]]++;for(x=b,v=15;v>=1&&0===L[v];v--);if(x>v&&(x=v),0===v)return o[i++]=20971520,o[i++]=20971520,s.bits=1,0;for(w=1;w<v&&0===L[w];w++);for(x<w&&(x=w),C=1,y=1;y<=15;y++)if(C<<=1,(C-=L[y])<0)return-1;if(C>0&&(0===e||1!==v))return-1;for(O[1]=0,y=1;y<15;y++)O[y+1]=O[y]+L[y];for(k=0;k<r;k++)0!==t[n+k]&&(a[O[t[n+k]]++]=k);if(0===e?(P=N=a,p=19):1===e?(P=pm,E-=257,N=mm,T-=257,p=256):(P=fm,N=gm,p=-1),z=0,k=0,y=w,d=i,S=x,_=0,u=-1,h=(A=1<<x)-1,1===e&&A>852||2===e&&A>592)return 1;for(;;){m=y-_,a[k]<p?(f=0,g=a[k]):a[k]>p?(f=N[T+a[k]],g=P[E+a[k]]):(f=96,g=0),l=1<<y-_,w=c=1<<S;do{o[d+(z>>_)+(c-=l)]=m<<24|f<<16|g|0}while(0!==c);for(l=1<<y-1;z&l;)l>>=1;if(0!==l?(z&=l-1,z+=l):z=0,k++,0==--L[y]){if(y===v)break;y=t[n+a[k]]}if(y>x&&(z&h)!==u){for(0===_&&(_=x),d+=w,C=1<<(S=y-_);S+_<v&&!((C-=L[S+_])<=0);)S++,C<<=1;if(A+=1<<S,1===e&&A>852||2===e&&A>592)return 1;o[u=z&h]=x<<24|S<<16|d-i|0}}return 0!==z&&(o[d+z]=y-_<<24|64<<16|0),s.bits=x,0},xm=0,Sm=-2,_m=1,Cm=12,Am=30,zm=852,Pm=592;function Em(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function Lm(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new bm.Buf16(320),this.work=new bm.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Om(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=_m,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new bm.Buf32(zm),t.distcode=t.distdyn=new bm.Buf32(Pm),t.sane=1,t.back=-1,xm):Sm}function Nm(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,Om(e)):Sm}function Tm(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?Sm:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Nm(e))):Sm}function Rm(e,t){var n,r;return e?(r=new Lm,e.state=r,r.window=null,(n=Tm(e,t))!==xm&&(e.state=null),n):Sm}var Dm,Im,Bm=!0;function Mm(e){if(Bm){var t;for(Dm=new bm.Buf32(512),Im=new bm.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(vm(1,e.lens,0,288,Dm,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;vm(2,e.lens,0,32,Im,0,e.work,{bits:5}),Bm=!1}e.lencode=Dm,e.lenbits=9,e.distcode=Im,e.distbits=5}function jm(e,t,n,r){var o,i=e.state;return null===i.window&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new bm.Buf8(i.wsize)),r>=i.wsize?(bm.arraySet(i.window,t,n-i.wsize,i.wsize,0),i.wnext=0,i.whave=i.wsize):((o=i.wsize-i.wnext)>r&&(o=r),bm.arraySet(i.window,t,n-r,o,i.wnext),(r-=o)?(bm.arraySet(i.window,t,n-r,r,0),i.wnext=r,i.whave=i.wsize):(i.wnext+=o,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=o))),0}hm.inflateReset=Nm,hm.inflateReset2=Tm,hm.inflateResetKeep=Om,hm.inflateInit=function(e){return Rm(e,15)},hm.inflateInit2=Rm,hm.inflate=function(e,t){var n,r,o,i,a,s,l,c,u,h,d,p,m,f,g,b,y,k,w,v,x,S,_,C,A=0,z=new bm.Buf8(4),P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return Sm;(n=e.state).mode===Cm&&(n.mode=13),a=e.next_out,o=e.output,l=e.avail_out,i=e.next_in,r=e.input,s=e.avail_in,c=n.hold,u=n.bits,h=s,d=l,S=xm;e:for(;;)switch(n.mode){case _m:if(0===n.wrap){n.mode=13;break}for(;u<16;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(2&n.wrap&&35615===c){n.check=0,z[0]=255&c,z[1]=c>>>8&255,n.check=km(n.check,z,2,0),c=0,u=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&c)<<8)+(c>>8))%31){e.msg="incorrect header check",n.mode=Am;break}if(8!=(15&c)){e.msg="unknown compression method",n.mode=Am;break}if(u-=4,x=8+(15&(c>>>=4)),0===n.wbits)n.wbits=x;else if(x>n.wbits){e.msg="invalid window size",n.mode=Am;break}n.dmax=1<<x,e.adler=n.check=1,n.mode=512&c?10:Cm,c=0,u=0;break;case 2:for(;u<16;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(n.flags=c,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=Am;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=Am;break}n.head&&(n.head.text=c>>8&1),512&n.flags&&(z[0]=255&c,z[1]=c>>>8&255,n.check=km(n.check,z,2,0)),c=0,u=0,n.mode=3;case 3:for(;u<32;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}n.head&&(n.head.time=c),512&n.flags&&(z[0]=255&c,z[1]=c>>>8&255,z[2]=c>>>16&255,z[3]=c>>>24&255,n.check=km(n.check,z,4,0)),c=0,u=0,n.mode=4;case 4:for(;u<16;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}n.head&&(n.head.xflags=255&c,n.head.os=c>>8),512&n.flags&&(z[0]=255&c,z[1]=c>>>8&255,n.check=km(n.check,z,2,0)),c=0,u=0,n.mode=5;case 5:if(1024&n.flags){for(;u<16;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}n.length=c,n.head&&(n.head.extra_len=c),512&n.flags&&(z[0]=255&c,z[1]=c>>>8&255,n.check=km(n.check,z,2,0)),c=0,u=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((p=n.length)>s&&(p=s),p&&(n.head&&(x=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),bm.arraySet(n.head.extra,r,i,p,x)),512&n.flags&&(n.check=km(n.check,r,p,i)),s-=p,i+=p,n.length-=p),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===s)break e;p=0;do{x=r[i+p++],n.head&&x&&n.length<65536&&(n.head.name+=String.fromCharCode(x))}while(x&&p<s);if(512&n.flags&&(n.check=km(n.check,r,p,i)),s-=p,i+=p,x)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===s)break e;p=0;do{x=r[i+p++],n.head&&x&&n.length<65536&&(n.head.comment+=String.fromCharCode(x))}while(x&&p<s);if(512&n.flags&&(n.check=km(n.check,r,p,i)),s-=p,i+=p,x)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;u<16;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(c!==(65535&n.check)){e.msg="header crc mismatch",n.mode=Am;break}c=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Cm;break;case 10:for(;u<32;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}e.adler=n.check=Em(c),c=0,u=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=a,e.avail_out=l,e.next_in=i,e.avail_in=s,n.hold=c,n.bits=u,2;e.adler=n.check=1,n.mode=Cm;case Cm:if(5===t||6===t)break e;case 13:if(n.last){c>>>=7&u,u-=7&u,n.mode=27;break}for(;u<3;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}switch(n.last=1&c,u-=1,3&(c>>>=1)){case 0:n.mode=14;break;case 1:if(Mm(n),n.mode=20,6===t){c>>>=2,u-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=Am}c>>>=2,u-=2;break;case 14:for(c>>>=7&u,u-=7&u;u<32;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if((65535&c)!=(c>>>16^65535)){e.msg="invalid stored block lengths",n.mode=Am;break}if(n.length=65535&c,c=0,u=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(p=n.length){if(p>s&&(p=s),p>l&&(p=l),0===p)break e;bm.arraySet(o,r,i,p,a),s-=p,i+=p,l-=p,a+=p,n.length-=p;break}n.mode=Cm;break;case 17:for(;u<14;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(n.nlen=257+(31&c),c>>>=5,u-=5,n.ndist=1+(31&c),c>>>=5,u-=5,n.ncode=4+(15&c),c>>>=4,u-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=Am;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;u<3;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}n.lens[P[n.have++]]=7&c,c>>>=3,u-=3}for(;n.have<19;)n.lens[P[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,_={bits:n.lenbits},S=vm(0,n.lens,0,19,n.lencode,0,n.work,_),n.lenbits=_.bits,S){e.msg="invalid code lengths set",n.mode=Am;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;b=(A=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,y=65535&A,!((g=A>>>24)<=u);){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(y<16)c>>>=g,u-=g,n.lens[n.have++]=y;else{if(16===y){for(C=g+2;u<C;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(c>>>=g,u-=g,0===n.have){e.msg="invalid bit length repeat",n.mode=Am;break}x=n.lens[n.have-1],p=3+(3&c),c>>>=2,u-=2}else if(17===y){for(C=g+3;u<C;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}u-=g,x=0,p=3+(7&(c>>>=g)),c>>>=3,u-=3}else{for(C=g+7;u<C;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}u-=g,x=0,p=11+(127&(c>>>=g)),c>>>=7,u-=7}if(n.have+p>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=Am;break}for(;p--;)n.lens[n.have++]=x}}if(n.mode===Am)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=Am;break}if(n.lenbits=9,_={bits:n.lenbits},S=vm(1,n.lens,0,n.nlen,n.lencode,0,n.work,_),n.lenbits=_.bits,S){e.msg="invalid literal/lengths set",n.mode=Am;break}if(n.distbits=6,n.distcode=n.distdyn,_={bits:n.distbits},S=vm(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,_),n.distbits=_.bits,S){e.msg="invalid distances set",n.mode=Am;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(s>=6&&l>=258){e.next_out=a,e.avail_out=l,e.next_in=i,e.avail_in=s,n.hold=c,n.bits=u,wm(e,d),a=e.next_out,o=e.output,l=e.avail_out,i=e.next_in,r=e.input,s=e.avail_in,c=n.hold,u=n.bits,n.mode===Cm&&(n.back=-1);break}for(n.back=0;b=(A=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,y=65535&A,!((g=A>>>24)<=u);){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(b&&0==(240&b)){for(k=g,w=b,v=y;b=(A=n.lencode[v+((c&(1<<k+w)-1)>>k)])>>>16&255,y=65535&A,!(k+(g=A>>>24)<=u);){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}c>>>=k,u-=k,n.back+=k}if(c>>>=g,u-=g,n.back+=g,n.length=y,0===b){n.mode=26;break}if(32&b){n.back=-1,n.mode=Cm;break}if(64&b){e.msg="invalid literal/length code",n.mode=Am;break}n.extra=15&b,n.mode=22;case 22:if(n.extra){for(C=n.extra;u<C;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;b=(A=n.distcode[c&(1<<n.distbits)-1])>>>16&255,y=65535&A,!((g=A>>>24)<=u);){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(0==(240&b)){for(k=g,w=b,v=y;b=(A=n.distcode[v+((c&(1<<k+w)-1)>>k)])>>>16&255,y=65535&A,!(k+(g=A>>>24)<=u);){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}c>>>=k,u-=k,n.back+=k}if(c>>>=g,u-=g,n.back+=g,64&b){e.msg="invalid distance code",n.mode=Am;break}n.offset=y,n.extra=15&b,n.mode=24;case 24:if(n.extra){for(C=n.extra;u<C;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=Am;break}n.mode=25;case 25:if(0===l)break e;if(p=d-l,n.offset>p){if((p=n.offset-p)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=Am;break}p>n.wnext?(p-=n.wnext,m=n.wsize-p):m=n.wnext-p,p>n.length&&(p=n.length),f=n.window}else f=o,m=a-n.offset,p=n.length;p>l&&(p=l),l-=p,n.length-=p;do{o[a++]=f[m++]}while(--p);0===n.length&&(n.mode=21);break;case 26:if(0===l)break e;o[a++]=n.length,l--,n.mode=21;break;case 27:if(n.wrap){for(;u<32;){if(0===s)break e;s--,c|=r[i++]<<u,u+=8}if(d-=l,e.total_out+=d,n.total+=d,d&&(e.adler=n.check=n.flags?km(n.check,o,d,a-d):ym(n.check,o,d,a-d)),d=l,(n.flags?c:Em(c))!==n.check){e.msg="incorrect data check",n.mode=Am;break}c=0,u=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;u<32;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(c!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=Am;break}c=0,u=0}n.mode=29;case 29:S=1;break e;case Am:S=-3;break e;case 31:return-4;default:return Sm}return e.next_out=a,e.avail_out=l,e.next_in=i,e.avail_in=s,n.hold=c,n.bits=u,(n.wsize||d!==e.avail_out&&n.mode<Am&&(n.mode<27||4!==t))&&jm(e,e.output,e.next_out,d-e.avail_out),h-=e.avail_in,d-=e.avail_out,e.total_in+=h,e.total_out+=d,n.total+=d,n.wrap&&d&&(e.adler=n.check=n.flags?km(n.check,o,d,e.next_out-d):ym(n.check,o,d,e.next_out-d)),e.data_type=n.bits+(n.last?64:0)+(n.mode===Cm?128:0)+(20===n.mode||15===n.mode?256:0),(0===h&&0===d||4===t)&&S===xm&&(S=-5),S},hm.inflateEnd=function(e){if(!e||!e.state)return Sm;var t=e.state;return t.window&&(t.window=null),e.state=null,xm},hm.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?Sm:(n.head=t,t.done=!1,xm):Sm},hm.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?Sm:11===n.mode&&ym(1,t,r,0)!==n.check?-3:jm(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,xm):Sm},hm.inflateInfo="pako inflate (from Nodeca project)";var Fm={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},Um=hm,Wm=pd,Hm=qp,qm=Fm,Vm=ip,$m=Xp,Km=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},Zm=Object.prototype.toString;function Gm(e){if(!(this instanceof Gm))return new Gm(e);this.options=Wm.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new $m,this.strm.avail_out=0;var n=Um.inflateInit2(this.strm,t.windowBits);if(n!==qm.Z_OK)throw new Error(Vm[n]);if(this.header=new Km,Um.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=Hm.string2buf(t.dictionary):"[object ArrayBuffer]"===Zm.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Um.inflateSetDictionary(this.strm,t.dictionary))!==qm.Z_OK))throw new Error(Vm[n])}function Ym(e,t){var n=new Gm(t);if(n.push(e,!0),n.err)throw n.msg||Vm[n.err];return n.result}Gm.prototype.push=function(e,t){var n,r,o,i,a,s=this.strm,l=this.options.chunkSize,c=this.options.dictionary,u=!1;if(this.ended)return!1;r=t===~~t?t:!0===t?qm.Z_FINISH:qm.Z_NO_FLUSH,"string"==typeof e?s.input=Hm.binstring2buf(e):"[object ArrayBuffer]"===Zm.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new Wm.Buf8(l),s.next_out=0,s.avail_out=l),(n=Um.inflate(s,qm.Z_NO_FLUSH))===qm.Z_NEED_DICT&&c&&(n=Um.inflateSetDictionary(this.strm,c)),n===qm.Z_BUF_ERROR&&!0===u&&(n=qm.Z_OK,u=!1),n!==qm.Z_STREAM_END&&n!==qm.Z_OK)return this.onEnd(n),this.ended=!0,!1;s.next_out&&(0!==s.avail_out&&n!==qm.Z_STREAM_END&&(0!==s.avail_in||r!==qm.Z_FINISH&&r!==qm.Z_SYNC_FLUSH)||("string"===this.options.to?(o=Hm.utf8border(s.output,s.next_out),i=s.next_out-o,a=Hm.buf2string(s.output,o),s.next_out=i,s.avail_out=l-i,i&&Wm.arraySet(s.output,s.output,o,i,0),this.onData(a)):this.onData(Wm.shrinkBuf(s.output,s.next_out)))),0===s.avail_in&&0===s.avail_out&&(u=!0)}while((s.avail_in>0||0===s.avail_out)&&n!==qm.Z_STREAM_END);return n===qm.Z_STREAM_END&&(r=qm.Z_FINISH),r===qm.Z_FINISH?(n=Um.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===qm.Z_OK):r!==qm.Z_SYNC_FLUSH||(this.onEnd(qm.Z_OK),s.avail_out=0,!0)},Gm.prototype.onData=function(e){this.chunks.push(e)},Gm.prototype.onEnd=function(e){e===qm.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Wm.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},um.Inflate=Gm,um.inflate=Ym,um.inflateRaw=function(e,t){return(t=t||{}).raw=!0,Ym(e,t)},um.ungzip=Ym;var Xm={};(0,pd.assign)(Xm,md,um,Fm);var Jm=Xm;const{deflate:Qm}=Jm,ef=function(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),n=new Uint8Array(e),r=n.length,o=r%3,i=[],a=16383;let s;for(let e=0,t=r-o;e<t;e+=a)i.push(l(e,e+a>t?t:e+a));return 1===o?(s=n[r-1],i.push(t[s>>2]+t[s<<4&63]+"==")):2===o&&(s=(n[r-2]<<8)+n[r-1],i.push(t[s>>10]+t[s>>4&63]+t[s<<2&63]+"=")),i.join("");function l(e,r){let o;const i=[];for(let s=e;s<r;s+=3)o=(n[s]<<16&16711680)+(n[s+1]<<8&65280)+(255&n[s+2]),i.push(t[(a=o)>>18&63]+t[a>>12&63]+t[a>>6&63]+t[63&a]);var a;return i.join("")}};var tf=function({type:e,value:t,compress:n,serialize:r}){const o={type:e,value:t};return n&&(o.value=Qm(new Uint8Array(o.value)),o.compressed=!0),r&&(o.value=ef(o.value)),o},nf=function(e){return/^(blob|https?):/.test(e)},rf=function(e){const t=e&&e.match(/(^[^#]*)/),n=t&&t[1]||e;return n&&n.replace(/\?\s*$/,"?")||e},of=function(e){return e.reduce(((e,t)=>e.concat(t)),[])};const{absolutizeUrl:af}=u,sf=tf,lf=nf,cf=rf,uf=fh,hf=of,df=hd;const pf=Th,mf=of;const ff=of,gf=rf,bf=function(e){const t=new URL(e);return t.username&&(t.username=""),t.password&&(t.password=""),t.href};const yf=Th,kf=Dh,wf=hd;const vf=hd;const xf=hd;const Sf=function(t){const n=new TextDecoder("utf-8").decode(t),r=e.head||e.querySelectorAll("head")[0],o=e.createElement("style");return o.type="text/css",o.setAttribute("data-desc","Applitools tmp variable created by DOM SNAPSHOT"),r.appendChild(o),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(e.createTextNode(n)),o.sheet},_f=fh;const Cf=tf;var Af=function(e,{log:t,compress:n,serialize:r}){return e.reduce(((e,{url:o,element:i,cdtNode:a})=>{const s=new Promise((e=>{try{i.toBlob((t=>t?e(t.arrayBuffer()):n()),"image/png")}catch(e){n(e)}function n(n){var r;t("resetting canvas node",n?n.message:"",i&&i.attributes&&(r=i,JSON.stringify(Array(r.attributes).reduce(((e,t)=>Object.assign({[t.name]:t.value},e)),{})))),a.attributes.splice(a.attributes.findIndex((e=>"data-applitools-src"===e.name)),1),a.attributes.push({name:"data-applitools-tainted-canvas",value:"true"}),e()}}));return e.then((e=>s.then((t=>{if(t){const i=Cf({type:"image/png",value:t,compress:n,serialize:r});i.url=o,e.push(i)}return e}))))}),Promise.resolve([]))};const zf=of,Pf=Af,Ef=Vh;const Lf=of,Of=tf;const Nf=f;const Tf="__process_resource";const{cleanupElementIds:Rf}=h,{generateSafeSelectors:Df}=m,{absolutizeUrl:If}=u,Bf=f,Mf=function(e,t,n=td){const r=[{nodeType:Node.DOCUMENT_NODE}],o=[e],i=[],a=[],s=[],l=[];let c=[];const u=[],h=[];return r[0].childNodeIndexes=d(r,e.childNodes),e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&(r[0].exp_adoptedStyleSheets=ud(e)),{cdt:r,docRoots:o,canvasElements:i,frames:s,inlineFrames:a,crossFrames:l,linkUrls:c,imageBlobs:u,videoBlobs:h};function d(e,t){if(!t||0===t.length)return null;const n=[];return Array.prototype.forEach.call(t,(t=>{const r=p(e,t);null!==r&&n.push(r)})),n}function p(e,r){const m=od(r);let f;if([Node.ELEMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(m.nodeType)){if(m.hasAttribute&&m.hasAttribute("data-applitools-skip"))return null;if(["LINK","STYLE","SOURCE"].includes(m.nodeName)&&m.media.trim()&&!rd(m.media))return null;if("SCRIPT"===m.nodeName)f=function(e){return{nodeType:Node.ELEMENT_NODE,nodeName:"SCRIPT",attributes:ld(e).map((t=>{const n=e.attributes[t].name;return{name:n,value:sd.test(n)?"":e.attributes[t].value}})).filter((e=>"src"!==e.name)),childNodeIndexes:[]}}(m);else{const c=m.shadowRoot&&m.shadowRoot.childNodes.length&&"ShadowRoot"!==m.shadowRoot.constructor.name;if(f=function(e){const t={nodeType:e.nodeType,nodeName:e.nodeName,attributes:ld(e).map((t=>{let n=e.attributes[t].value;const r=e.attributes[t].name;return n.includes("blob:")?n=n.replace(/blob:/g,""):sd.test(r)?n="":"IFRAME"===e.nodeName&&Zh(e)&&"src"===r&&"about:blank"!==e.contentDocument.location.href&&e.contentDocument.location.href!==$h(n,e.ownerDocument.location.href)?n=e.contentDocument.location.href:"style"===r&&(n=ed(e.style)),{name:r,value:n}}))};if("INPUT"===e.tagName&&["checkbox","radio"].includes(e.type)){if(e.attributes.checked&&!e.checked){const e=t.attributes.findIndex((e=>"checked"===e.name));t.attributes.splice(e,1)}!e.attributes.checked&&e.checked&&t.attributes.push({name:"checked"}),e.indeterminate&&t.attributes.push({name:"data-applitools-js-properties",value:JSON.stringify({indeterminate:!0})})}return"INPUT"===e.tagName&&ad.has(e.type)&&(e.attributes.value&&e.attributes.value.value)!==e.value&&cd(t.attributes,"value",e.value),"OPTION"===e.tagName&&e.parentElement.selectedOptions&&Array.from(e.parentElement.selectedOptions).indexOf(od.unwrap(e))>-1&&cd(t.attributes,"selected",""),"STYLE"===e.tagName&&e.sheet&&e.sheet.disabled&&t.attributes.push({name:"data-applitools-disabled",value:""}),"LINK"===e.tagName&&"text/css"===e.type&&e.sheet&&e.sheet.disabled&&cd(t.attributes,"disabled",""),t}(m),"STYLE"===m.nodeName&&m.sheet&&m.sheet.cssRules.length?(e.push(function(e,t,n){const r=Xh(e);return n.__dsNodeCache&&n.__dsNodeCache.key===r?t("[domNodesToCdt] using cache for inline css of",id(e)):n.__dsNodeCache={key:r,value:Yh(e,t)},{nodeType:Node.TEXT_NODE,nodeValue:n.__dsNodeCache.value}}(m,n,r)),f.childNodeIndexes=[e.length-1]):"TEXTAREA"===m.tagName&&m.value!==m.textContent?(e.push(function(e){return{nodeType:Node.TEXT_NODE,nodeValue:e.value}}(m)),f.childNodeIndexes=[e.length-1]):f.childNodeIndexes=!c&&m.childNodes.length?d(e,m.childNodes):[],c&&"SLOT"===m.tagName&&"function"==typeof m.assignedNodes){const t=m.assignedNodes();f.childNodeIndexes=f.childNodeIndexes||[],f.childNodeIndexes=t.length?f.childNodeIndexes.concat(d(e,t)):f.childNodeIndexes}if(m.shadowRoot&&(c?f.childNodeIndexes=f.childNodeIndexes.concat(d(e,m.shadowRoot.childNodes)):(f.shadowRootIndex=p(e,m.shadowRoot),o.push(m.shadowRoot))),"CANVAS"===m.nodeName&&!nd(r)){const e=$h(`applitools-canvas-${Gh()}.png`,t);f.attributes.push({name:"data-applitools-src",value:e}),i.push({element:m,cdtNode:f,url:e})}if("IFRAME"===m.nodeName){const n=Gh();if(m.setAttribute("data-applitools-selector",n),nd(r))f.attributes.forEach((e=>{"src"!==e.name&&"srcdoc"!==e.name||(f.attributes.push({name:`data-applitools-original-${e.name}`,value:e.value}),e.value="")}));else if(Zh(r))if(Kh(m)){const e=$h(`?applitools-iframe=${Gh()}`,t);f.attributes.push({name:"data-applitools-src",value:e}),a.push({element:m,url:e})}else{const e=m.contentDocument.location.href,t=$h(`?applitools-iframe=${Gh()}`,e);f.attributes.push({name:"data-applitools-src",value:t}),s.push({element:m,url:t})}else{const t=`[data-applitools-selector="${n}"]`;l.push({selector:t,index:e.length})}}m.adoptedStyleSheets&&m.adoptedStyleSheets.length>0&&(f.exp_adoptedStyleSheets=ud(m))}if(m.nodeType===Node.ELEMENT_NODE){const e=Jh(m);if(e.length>0&&(c=c.concat(e)),"IMG"===m.tagName&&/^blob:/.test(m.src)){const e=m.src.replace(/^blob:/,"");u.push({element:m,cdtNode:f,url:e})}if("VIDEO"===m.tagName&&(/^blob:/.test(m.src)||m.srcObject)){let e;m.src?e=m.src.replace(/^blob:/,""):(e=$h(`applitools-video-${Gh()}.webm`,t),f.attributes.push({name:"data-applitools-src",value:e})),h.push({element:m,cdtNode:f,url:e})}}}else m.nodeType===Node.TEXT_NODE?f=function(e){return{nodeType:Node.TEXT_NODE,nodeValue:e.nodeValue}}(m):m.nodeType===Node.DOCUMENT_TYPE_NODE&&(f=function(e){return{nodeType:Node.DOCUMENT_TYPE_NODE,nodeName:e.nodeName}}(m));return f?(e.push(f),e.length-1):null}},jf=function(e){return e.reduce((({resourceUrls:e,blobsObj:t},{resourceUrls:n,blobsObj:r})=>({resourceUrls:dd(e.concat(n)),blobsObj:Object.assign(t,r)})),{resourceUrls:[],blobsObj:{}})},Ff=function({processResource:e,aggregateResourceUrlsAndBlobs:t}){return function n({documents:r,urls:o,forceCreateStyle:i=!1,skipResources:a}){return Promise.all(o.map((t=>e({url:t,documents:r,getResourceUrlsAndBlobs:n,forceCreateStyle:i,skipResources:a})))).then((e=>t(e)))}},Uf=function({fetchUrl:e,findStyleSheetByUrl:t,getCorsFreeStyleSheet:n,extractResourcesFromStyleSheet:r,extractResourcesFromSvg:o,sessionCache:i,cache:a={},compress:s,serialize:l,log:c=uf}){return function({url:u,documents:h,getResourceUrlsAndBlobs:d,forceCreateStyle:p=!1,skipResources:m}){if(!a[u])if(i&&i.getItem(u)){const e=function e(t){const n=i.getItem(t);return[t].concat(n?df(hf(n.map(e))):[])}(u);c("doProcessResource from sessionStorage",u,"deps:",e.slice(1)),a[u]=Promise.resolve({resourceUrls:e})}else if(m&&m.indexOf(u)>-1||/https:\/\/fonts.googleapis.com/.test(u))c("not processing resource from skip list (or google font):",u),a[u]=Promise.resolve({resourceUrls:[u]});else{const g=Date.now();a[u]=function(a){c("fetching",a);const u=Date.now();return e(a).catch((e=>function(e){const t=e.message&&(e.message.includes("Failed to fetch")||e.message.includes("Network request failed")),n=e.name&&e.name.includes("TypeError");return t&&n}(e)?{probablyCORS:!0,url:a}:e.isTimeout?{isTimeout:!0,url:a}:(c(`error while fetching resource ${a} ${e?`message=${e.message} | name=${e.name}`:""}`,e),{errorStatusCode:599,url:a}))).then((({url:e,type:a,value:f,probablyCORS:g,errorStatusCode:b,isTimeout:y})=>{if(g)return c("not fetched due to CORS",`[${Date.now()-u}ms]`,e),i&&i.setItem(e,[]),{resourceUrls:[e]};if(b){const t={[e]:{errorStatusCode:b}};return i&&i.setItem(e,[]),{blobsObj:t}}if(y)return c("not fetched due to timeout, returning error status code 504 (Gateway timeout)"),i&&i.setItem(e,[]),{blobsObj:{[e]:{errorStatusCode:504}}};let k;if(c(`fetched [${Date.now()-u}ms] ${e} bytes: ${f.byteLength}`),/text\/css/.test(a)){let o=t(e,h);if(o||p){const{corsFreeStyleSheet:e,cleanStyleSheet:t}=n(f,o);k=r(e),t()}}else if(/image\/svg/.test(a))try{k=o(f),p=!!k}catch(e){c("could not parse svg content",e)}const w={[e]:sf({type:a,value:f,compress:s,serialize:l})};if(k){const t=k.map((t=>af(t,e.replace(/^blob:/,"")))).map(cf).filter(lf);return t.length&&(w[e].dependencies=t),i&&i.setItem(e,t),d({documents:h,urls:t,forceCreateStyle:p,skipResources:m}).then((({resourceUrls:e,blobsObj:t})=>({resourceUrls:e,blobsObj:Object.assign(t,w)})))}return i&&i.setItem(e,[]),{blobsObj:w}})).catch((e=>(c("error while processing resource",a,e,e?`message=${e.message} | name=${e.name}`:""),i&&f(),{})))}(u).then((e=>(c("doProcessResource",`[${Date.now()-g}ms]`,u),e)))}return a[u];function f(){c("clearing from sessionStorage:",u),i.keys().forEach((e=>{const t=i.getItem(e);i.setItem(e,t.filter((e=>e!==u)))})),c("cleared from sessionStorage:",u)}}},Wf=function({parser:e,decoder:t,extractResourceUrlsFromStyleTags:n}){return function(r){const o=(t||new TextDecoder("utf-8")).decode(r),i=(e||new DOMParser).parseFromString(o,"image/svg+xml"),a=Array.from(i.querySelectorAll("img[srcset]")).map((e=>e.getAttribute("srcset").split(", ").map((e=>e.trim().split(/\s+/)[0])))).reduce(((e,t)=>e.concat(t)),[]),s=Array.from(i.querySelectorAll("img[src]")).map((e=>e.getAttribute("src"))),l=Array.from(i.querySelectorAll('image,use,link[rel="stylesheet"]')).map((e=>e.getAttribute("href")||e.getAttribute("xlink:href"))),c=Array.from(i.getElementsByTagName("object")).map((e=>e.getAttribute("data"))),u=n(i,!1),h=function(e){return mf(Array.from(e.querySelectorAll("*[style]")).map((e=>e.style.cssText)).map(pf).filter(Boolean))}(i);return a.concat(s).concat(l).concat(c).concat(u).concat(h).filter((e=>"#"!==e[0]))}},Hf=function({fetch:e=window.fetch,AbortController:t=window.AbortController,timeout:n=1e4,mediaDownloadTimeout:r=3e4}){return function(o){return new Promise(((i,a)=>{const s=new t,l=()=>{const e=new Error("fetchUrl timeout reached");e.isTimeout=!0,a(e),s.abort()},c=setTimeout(l,n);return e(o,{cache:"force-cache",credentials:"same-origin",signal:s.signal}).then((e=>{if(clearTimeout(c),200===e.status){const t=e.headers.get("Content-Type"),n=!e.headers.get("Content-Length")&&["audio/","video/"].some((n=>t&&e.headers.get("Content-Type").startsWith(n)))&&setTimeout(l,r);return e.arrayBuffer().then((e=>(n&&clearTimeout(n),{url:o,value:e,type:t})))}return{url:o,errorStatusCode:e.status}})).then(i).catch((e=>a(e)))}))}},qf=function({styleSheetCache:e}){return function(t,n){const r=ff(n.map((e=>{try{return Array.from(e.styleSheets)}catch(e){return[]}})));return e[t]||r.find((e=>{const n=e.href&&gf(e.href);return n&&bf(n)===t}))}},Vf=function({styleSheetCache:e,CSSRule:t=window.CSSRule,removeReverseProxyURLPrefixes:n}){return function r(o){return wf(Array.from(o.cssRules||[]).reduce(((o,i)=>{const a={[t.IMPORT_RULE]:()=>i.styleSheet&&(e[i.styleSheet.href]=i.styleSheet,i.styleSheet.href)?i.styleSheet.href:i.href,[t.FONT_FACE_RULE]:()=>yf(i.cssText,{removeReverseProxyURLPrefixes:n}),[t.SUPPORTS_RULE]:()=>r(i),[t.MEDIA_RULE]:()=>r(i),[t.STYLE_RULE]:()=>kf(i.style)}[i.type],s=a&&a()||[];return i?.cssRules&&s.push(...r(i)),o.concat(s)}),[])).filter((e=>"#"!==e[0]))}},$f=function(e){return function(t,n=!0){return vf(Array.from(t.querySelectorAll("style")).reduce(((r,o)=>{const i=n?Array.from(t.styleSheets).find((e=>e.ownerNode===o)):o.sheet;return i?r.concat(e(i)):r}),[]))}},Kf=function(e){return function(t){return t.adoptedStyleSheets?xf(t.adoptedStyleSheets.reduce(((t,n)=>t.concat(e(n))),[])):[]}},Zf=function(e,t,n=_f){let r;if(t)try{t.cssRules,r=t}catch(o){n(`[dom-snapshot] could not access cssRules for ${t.href} ${o}\ncreating temp style for access.`),r=Sf(e)}else r=Sf(e);return{corsFreeStyleSheet:r,cleanStyleSheet:function(){r!==t&&r.ownerNode.parentNode.removeChild(r.ownerNode)}}},Gf=Af,Yf=function(e,{doc:t,fetchedBlobs:n,log:r,compress:o,serialize:i,sessionCache:a}){if(!t.body||0===e.length)return Promise.resolve([]);const s=new Set(Object.keys(n));let l=e.filter((({url:e})=>!(s.has("blob:"+e)||a&&a.getItem("blob:"+e))));const c=t.createElement("canvas");c.style.display="none";const u=Ef(t.body);return u.appendChild(c),Promise.all(l.map((({element:e,url:t,cdtNode:n})=>(c.width=e.naturalWidth,c.height=e.naturalHeight,c.getContext("2d").drawImage(Ef.unwrap(e),0,0),Pf([{url:t,element:c,cdtNode:n}],{log:r,compress:o,serialize:i}))))).then((e=>(u.removeChild(c),zf(e)))).catch((()=>{u.removeChild(c)}))},Xf=function(e,{doc:t,fetchedBlobs:n,compress:r,serialize:o,sessionCache:i}){if(!t.body)return Promise.resolve([]);const a=new Set(Object.keys(n));let s=e.filter((({url:e})=>!(a.has("blob:"+e)||i&&i.getItem("blob:"+e))));return Promise.all(s.map((({element:e,url:t})=>{const n=e.captureStream();return 0===n.getVideoTracks().length?[]:new Promise((i=>{const a=new MediaRecorder(n,{mimeType:"video/webm"});a.addEventListener("dataavailable",(n=>{a.stop(),e.pause(),n.data.arrayBuffer().then((e=>{const a=Of({type:n.data.type,value:e,compress:r,serialize:o});a.url=t,i(a)}))}),{once:!0}),e.play(),a.start(),setTimeout((()=>a.requestData()),1e3)}))}))).then((e=>Lf(e)))},Jf=function(e){const t=e.querySelectorAll("base")[0]&&e.querySelectorAll("base")[0].href;if(t&&function(e){return e&&!/^(about:blank|javascript:void|blob:)/.test(e)}(t))return Nf(t)},Qf=function(e){return e&&e.replace(/(\\[0-9a-fA-F]{1,6}\s?)/g,(e=>{const t=parseInt(e.substr(1).trim(),16);return t>1114111?e:String.fromCodePoint(t)}))||e},eg=rf,tg=hd,ng=of,rg=nf,og=function(e){return function(){const t=["[dom-snapshot]",`[+${Date.now()-e}ms]`].concat(Array.from(arguments));console.log.apply(console,t)}},ig=fh,ag=function({log:e,sessionStorage:t}){let n;try{const e=(t=t||window.sessionStorage).getItem(Tf);n=e?JSON.parse(e):{}}catch(t){e("error creating session cache",t)}return{getItem:function(e){if(n)return n[e]},setItem:function(t,r){n&&(e("saving to in-memory sessionStorage, key:",t,"value:",r),n[t]=r)},keys:function(){return n?Object.keys(n):[]},persist:function(){n&&t.setItem(Tf,JSON.stringify(n))}}};function sg(e){return e&&rg(e)}const{pollify:lg}=u,{EYES_NAMESPACE:cg,DOM_SNAPSHOT_KEY:ug}={EYES_NAMESPACE:"__EYES__APPLITOOLS__",DOM_SNAPSHOT_KEY:"domSnapshotResult"},hg=function({doc:t=e,showLogs:n,useSessionCache:r,dontFetchResources:o,fetchTimeout:i,skipResources:a,compressResources:s,serializeResources:l,removeReverseProxyURLPrefixes:c,elements:u}={}){
|
|
1
|
+
/* @applitools/dom-snapshot@4.11.10 */
|
|
2
|
+
"use strict";function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t=function(){const e=function(e){return function(){function t(e,t=0){const n=e.charCodeAt(t);return n>=55296&&n<56320?1024*(n-55296)+(e.charCodeAt(t+1)-56320)+65536:56320<=n&&n<=57343?-1:n}var n=function(e,n){const r=[];let o=0;for(let i=0;i<e.length;++i){const a=t(e,i);let s=0;a>0&&(s=a<128?1:a<2048?2:a<65536?3:a<2097152?4:a<67108864?5:6),o+s>n?(r.push(i),o=s):o+=s}return r};const r=n,o="WIP",i="SUCCESS",a="SUCCESS_CHUNKED",s="ERROR";var l=function(e,t,n={}){const l=function(e,{chunkByteLength:t=0}={}){if(e){if(e.value){if(t){if(!e.chunks)try{const n=JSON.stringify(e.value);e.chunks=r(n,t),e.chunks.length>0&&(e.from=0,e.value=n)}catch(e){return{status:s,error:e.message}}if(e.from>=0)return{status:a,value:e.value.substring(e.from,e.from=e.chunks.shift()),done:!e.from}}return{status:i,value:e.value}}return e.error?{status:s,error:e.error}:{status:o}}return{status:s,error:"unexpected poll request received - cannot find state of current operation"}}((e=e||{})[t],n);return(l.status===i||l.status===s||l.status===a&&l.done)&&(e[t]=null),l};const c=l;var u={chunkify:n,pollify:function(e,t,n){return r=>function(){return t[n]||(t[n]={},Promise.resolve().then((()=>e.apply(null,arguments))).then((e=>t[n].value=e)).catch((e=>t[n].error=e.message))),c(t,n,r)}},poll:l,absolutizeUrl:function(e,t){if(function(e){try{return new URL(e),!0}catch(e){return!1}}(e))return e;let n=!0;try{n=e!==decodeURI(e)}catch(e){n=!0}try{const r=new URL(e,t).href;return n?r:decodeURI(r)}catch(t){return n?e:decodeURI(e)}},isInlineFrame:function(e){return e.contentDocument&&e.contentDocument.location&&!/^https?:$/.test(e.contentDocument.location.protocol)},isAccessibleFrame:function(e){try{const t=e.contentDocument;return Boolean(t&&t.defaultView&&t.defaultView.frameElement)}catch(e){return!1}}},h={},d=h.addElementIds=function(t){var n=function(){var t=function(t){var n=t&&t[0]||null;return!(n&&("isConnected"in window.Node.prototype?n.isConnected:e.documentElement.contains?e.documentElement.contains(n):n.ownerDocument.documentElement.contains(n)))},n=t,r=function(e){if(!e.hasAttribute("data-applitools-fallback-selector")){if(n([e]))throw new Error("The element is not connected to the DOM: "+function(e){var t=e.attributes,n=e.tagName,r=e.children.length,o=[].slice.call(t).map((function(e){return e.name+'="'+e.value+'"'})).join(" ");return"<"+n+" "+o+(r?">":"/>")}(e));e.setAttribute("data-applitools-fallback-selector",function(e){for(var t=[];e&&e.nodeType===Node.ELEMENT_NODE;)try{var n,r=e.tagName.toLowerCase(),o=[].slice.call((null==(n=e.parentNode)?void 0:n.children)||[]).indexOf(e);o>-1&&(r+=":nth-child("+(o+1)+")"),t.unshift(r),e=e.parentNode}catch(e){break}return t.length?t.join(" > "):"html"}(e))}},o=t;function i(t,n){if(o([t])){var a=function(e){return null!=e&&e.getAttribute?e.getAttribute("data-applitools-fallback-selector"):{error:"invalid element: "+JSON.stringify(e)}}(t);if(!a)return{error:"Failed to recover from stale element"};if(a.error)return a;var s=e.querySelectorAll(a);if(!s||1!==s.length)return{error:"Failed to recover from stale element - selector found: "+a};var l=s[0];return l.setAttribute("data-applitools-selector",n),l.setAttribute("data-applitools-recovered",!0),i(l,n)}r(t);var c=t.getAttribute("data-applitools-selector"),u=c?c+" "+n:n;return t.setAttribute("data-applitools-selector",u),'[data-applitools-selector~="'+n+'"]'}return function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}((function(t){return t.map((function(t){var n=t[0],r=t[1];return n.map((function(t){var n=function(t){var n=[t];if(t.getRootNode)for(var r=t.getRootNode();r!==e&&r.constructor&&"ShadowRoot"===r.constructor.name;r=r.host.getRootNode())n.push(r.host);return n}(t);return n.map((function(e){return i(e,r)}))}))}))}))}();return n(t)};h.addFallbackSelectorIfNeeded=function(t){var n;return((n=function(t){if(!t.hasAttribute("data-applitools-fallback-selector")){if(function(t){var n=t&&t[0]||null;return!(n&&("isConnected"in window.Node.prototype?n.isConnected:e.documentElement.contains?e.documentElement.contains(n):n.ownerDocument.documentElement.contains(n)))}([t]))throw new Error("The element is not connected to the DOM: "+function(e){var t=e.attributes,n=e.tagName,r=e.children.length,o=[].slice.call(t).map((function(e){return e.name+'="'+e.value+'"'})).join(" ");return"<"+n+" "+o+(r?">":"/>")}(t));t.setAttribute("data-applitools-fallback-selector",function(e){for(var t=[];e&&e.nodeType===Node.ELEMENT_NODE;)try{var n,r=e.tagName.toLowerCase(),o=[].slice.call((null==(n=e.parentNode)?void 0:n.children)||[]).indexOf(e);o>-1&&(r+=":nth-child("+(o+1)+")"),t.unshift(r),e=e.parentNode}catch(e){break}return t.length?t.join(" > "):"html"}(t))}})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n)(t)},h.addPageMarker=function(t){var n,r,o=(r=function(e){var t=void 0===e?[]:e,n=t[0],r=t[1],o=Object.keys(r).sort(),i=o.reduce((function(e,t){return e[t]={value:n.style.getPropertyValue(t),important:Boolean(n.style.getPropertyPriority(t))},e}),{});return o.forEach((function(e){n.style.setProperty(e,"string"!=typeof r[e]&&r[e]?r[e].value:r[e],r[e]&&r[e].important?"important":"")})),i},n=function(t){var n=t[0],o=n.mask,i=n.size,a=void 0===i?1:i,s={1:"rgb(0, 0, 0)",0:"rgb(255, 255, 255)"},l=a,c=e.createElement("div");c.setAttribute("data-applitools-marker",""),c.style.setProperty("position","fixed","important"),c.style.setProperty("top","0","important"),c.style.setProperty("left","0","important"),c.style.setProperty("box-sizing","content-box","important"),c.style.setProperty("padding",l+"px","important"),c.style.setProperty("background","rgb(128, 128, 128)","important"),c.style.setProperty("z-index","2147483647","important");for(var u,h=0;h<o.length;h+=u){for(u=1;o[h]===o[h+u];)++u;var d=o[h],p=e.createElement("div");p.style.setProperty("display","block","important"),p.style.setProperty("float","left","important"),p.style.setProperty("width",u*a+"px","important"),p.style.setProperty("height",a+"px","important"),p.style.setProperty("background",s[d],"important"),c.appendChild(p)}var m={value:"none",important:!0},f=r([e.documentElement,{transform:m,"-webkit-transform":m}]),g=r([e.body,{transform:m,"-webkit-transform":m}]);return e.documentElement.setAttribute("data-applitools-original-transforms",JSON.stringify(f)),e.body.setAttribute("data-applitools-original-transforms",JSON.stringify(g)),e.body.appendChild(c),{mask:o,size:a,offset:l}},n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n);return o(t)},h.blurElement=function(t){var n;return((n=function(t){var n=(void 0===t?[]:t)[0]||e.activeElement;return n&&n.blur(),n})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n)(t)},h.cleanupElementIds=function(t){var n;return((n=function(t){(t=t&&t[0])&&"function"==typeof t.forEach&&t.forEach((function(t){if(t.removeAttribute("data-applitools-selector"),t.getRootNode)try{for(var n=t.getRootNode();n!==e&&n.constructor&&"ShadowRoot"===n.constructor.name;n=n.host.getRootNode())n.host.removeAttribute("data-applitools-selector")}catch(t){}}))})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n)(t)},h.cleanupPageMarker=function(t){var n,r,o=(r=function(e){var t=void 0===e?[]:e,n=t[0],r=t[1],o=Object.keys(r).sort(),i=o.reduce((function(e,t){return e[t]={value:n.style.getPropertyValue(t),important:Boolean(n.style.getPropertyPriority(t))},e}),{});return o.forEach((function(e){n.style.setProperty(e,"string"!=typeof r[e]&&r[e]?r[e].value:r[e],r[e]&&r[e].important?"important":"")})),i},(n=function(){var t=e.querySelector("[data-applitools-marker]");t&&e.body.removeChild(t);var n=e.documentElement.getAttribute("data-applitools-original-transforms"),o=e.body.getAttribute("data-applitools-original-transforms");n&&r([e.documentElement,JSON.parse(n)]),o&&r([e.body,JSON.parse(o)])})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n);return o(t)},h.focusElement=function(e){var t;return((t=function(e){var t=(void 0===e?[]:e)[0];t&&t.focus()})&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t)(e)},h.getChildFramesInfo=function(t){var n;return((n=function(){return function t(n){var r=[];(n=n||e).querySelectorAll("frame, iframe").forEach((function(e){return r.push([e,!e.contentDocument,e.src])}));var o=Array.prototype.filter.call(n.querySelectorAll("*"),(function(e){return e.shadowRoot})).map((function(e){return t(e.shadowRoot)}));return r.concat.apply(r,o)}()})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n)(t)},h.getContextInfo=function(t){var n;return((n=function(){var t,n,r;try{t=window.top.document===window.document||"root-context"===window.parent.document["applitools-marker"]}catch(n){t=!1}try{n=!window.parent.document===window.document}catch(t){n=!0}if(!n)try{r=function(e){var t=(void 0===e?[]:e)[0],n="",r=t.ownerDocument;if(!r)return n;for(var o=t;o!==r;){var i=Array.prototype.filter.call(o.parentNode.childNodes,(function(e){return e.tagName===o.tagName})).indexOf(o);n="/"+o.tagName+"["+(i+1)+"]"+n,o=o.parentNode}return n}([window.frameElement])}catch(t){r=null}return[e.documentElement,r,t,n]})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n)(t)},h.getDocumentScrollingElement=function(t){var n;return((n=function(){var t="HTML",n=e.scrollingElement;return n&&(t=n.tagName),t.toLowerCase()})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n)(t)},h.getDocumentSize=function(t){var n,r=(n=function(){var t=e.documentElement.scrollWidth,n=e.documentElement.scrollHeight,r=e.documentElement.clientHeight,o=e.body.scrollWidth,i=e.body.scrollHeight,a=e.body.clientHeight;return{width:Math.max(t,o),height:Math.max(r,n,a,i)}},n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n);return r(t)},h.getElementComputedStyleProperties=function(e){var t;return((t=function(e){var t=void 0===e?[]:e,n=t[0],r=t[1],o=void 0===r?[]:r,i=window.getComputedStyle(n);return i?o.map((function(e){return i.getPropertyValue(e)})):[]})&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t)(e)},h.getElementContentSize=function(t){var n,r,o=(r=function(e){var t=void 0===e?[]:e,n=t[0],r=t[1],o=Object.keys(r).sort(),i=o.reduce((function(e,t){return e[t]={value:n.style.getPropertyValue(t),important:Boolean(n.style.getPropertyPriority(t))},e}),{});return o.forEach((function(e){n.style.setProperty(e,"string"!=typeof r[e]&&r[e]?r[e].value:r[e],r[e]&&r[e].important?"important":"")})),i},(n=function(t){var n,o=(void 0===t?[]:t)[0];o!==e.documentElement&&o.tagName.toLowerCase()!==function(){var t="HTML",n=e.scrollingElement;return n&&(t=n.tagName),t.toLowerCase()}()||(n=r([o,{transform:"none"}]));var i={width:o.scrollWidth,height:o.scrollHeight};return n&&r([o,n]),i})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n);return o(t)},h.getElementFixedAncestor=function(t){var n;return((n=function(t){for(var n=(void 0===t?[]:t)[0];n.offsetParent&&n.offsetParent!==e.body&&n.offsetParent!==e.documentElement;)n=n.offsetParent;return"fixed"===window.getComputedStyle(n).getPropertyValue("position")?n:null})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n)(t)},h.getElementInnerOffset=function(t){var n,r,o=(r=function(t){var n=(void 0===t?[]:t)[0],r=function(e){var t=void 0===e?[]:e,n=t[0],r=t[1];return(void 0===r?[]:r).reduce((function(e,t){return e[t]={value:n.style.getPropertyValue(t),important:Boolean(n.style.getPropertyPriority(t))},e}),{})}([void 0===n?e.documentElement:n,["transform","-webkit-transform"]]),o=Object.keys(r).reduce((function(e,t){var n=r[t].value;if(n){var o=n.match(/^translate\s*\(\s*(\-?[\d, \.]+)px\s*(,\s*(-?[\d, \.]+)px)?\s*\)/);if(o){var i=o[1],a=void 0!==o[3]?o[3]:0;e.push({x:Math.round(-parseFloat(i)),y:Math.round(-parseFloat(a))})}else e.push({x:0,y:0})}return e}),[]);if(!o.every((function(e){return o[0].x===e.x||o[0].y===e.y})))throw new Error("Got different css positions!");return o[0]||{x:0,y:0}},(n=function(e){var t=(void 0===e?[]:e)[0],n=function(e){var t=(void 0===e?[]:e)[0];return t?{x:t.scrollLeft,y:t.scrollTop}:{x:window.scrollX||window.pageXOffset,y:window.scrollY||window.pageYOffset}}([t]),o=r([t]);return{x:n.x+o.x,y:n.y+o.y}})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n);return o(t)},h.getElementProperties=function(e){var t;return((t=function(e){var t=void 0===e?[]:e,n=t[0],r=t[1];return(void 0===r?[]:r).reduce((function(e,t){return e[t]=n[t],e}),{})})&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t)(e)},h.getElementRect=function(t){var n,r,o,i=(r=function(t){var n=(void 0===t?[]:t)[0],r=function(e){var t=void 0===e?[]:e,n=t[0],r=t[1];return(void 0===r?[]:r).reduce((function(e,t){return e[t]={value:n.style.getPropertyValue(t),important:Boolean(n.style.getPropertyPriority(t))},e}),{})}([void 0===n?e.documentElement:n,["transform","-webkit-transform"]]),o=Object.keys(r).reduce((function(e,t){var n=r[t].value;if(n){var o=n.match(/^translate\s*\(\s*(\-?[\d, \.]+)px\s*(,\s*(-?[\d, \.]+)px)?\s*\)/);if(o){var i=o[1],a=void 0!==o[3]?o[3]:0;e.push({x:Math.round(-parseFloat(i)),y:Math.round(-parseFloat(a))})}else e.push({x:0,y:0})}return e}),[]);if(!o.every((function(e){return o[0].x===e.x||o[0].y===e.y})))throw new Error("Got different css positions!");return o[0]||{x:0,y:0}},o=function(e){var t=(void 0===e?[]:e)[0],n=function(e){var t=(void 0===e?[]:e)[0];return t?{x:t.scrollLeft,y:t.scrollTop}:{x:window.scrollX||window.pageXOffset,y:window.scrollY||window.pageYOffset}}([t]),o=r([t]);return{x:n.x+o.x,y:n.y+o.y}},n=function(t){var n=void 0===t?[]:t,r=n[0],i=n[1],a=void 0!==i&&i;if(r===e.documentElement||r.tagName.toLowerCase()===function(){var t="HTML",n=e.scrollingElement;return n&&(t=n.tagName),t.toLowerCase()}())return{x:0,y:0,width:r.clientWidth,height:r.clientHeight};var s=r.getBoundingClientRect(),l={x:s.left,y:s.top,width:s.width,height:s.height};if(a){var c=window.getComputedStyle(r);l.x+=parseInt(c.getPropertyValue("border-left-width")),l.y+=parseInt(c.getPropertyValue("border-top-width")),l.width=r.clientWidth,l.height=r.clientHeight}var u=function(t){for(var n=(void 0===t?[]:t)[0];n.offsetParent&&n.offsetParent!==e.body&&n.offsetParent!==e.documentElement;)n=n.offsetParent;return"fixed"===window.getComputedStyle(n).getPropertyValue("position")?n:null}([r]);if(u){if(u!==r){var h=o([u]);l.x+=h.x,l.y+=h.y}}else{var d=o();l.x+=d.x,l.y+=d.y}return l},n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n);return i(t)},h.getElementScrollOffset=function(e){var t;return((t=function(e){var t=(void 0===e?[]:e)[0];return t?{x:t.scrollLeft,y:t.scrollTop}:{x:window.scrollX||window.pageXOffset,y:window.scrollY||window.pageYOffset}})&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t)(e)},h.getElementStyleProperties=function(e){var t;return((t=function(e){var t=void 0===e?[]:e,n=t[0],r=t[1];return(void 0===r?[]:r).reduce((function(e,t){return e[t]={value:n.style.getPropertyValue(t),important:Boolean(n.style.getPropertyPriority(t))},e}),{})})&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t)(e)},h.getElementTranslateOffset=function(t){var n;return((n=function(t){var n=(void 0===t?[]:t)[0],r=function(e){var t=void 0===e?[]:e,n=t[0],r=t[1];return(void 0===r?[]:r).reduce((function(e,t){return e[t]={value:n.style.getPropertyValue(t),important:Boolean(n.style.getPropertyPriority(t))},e}),{})}([void 0===n?e.documentElement:n,["transform","-webkit-transform"]]),o=Object.keys(r).reduce((function(e,t){var n=r[t].value;if(n){var o=n.match(/^translate\s*\(\s*(\-?[\d, \.]+)px\s*(,\s*(-?[\d, \.]+)px)?\s*\)/);if(o){var i=o[1],a=void 0!==o[3]?o[3]:0;e.push({x:Math.round(-parseFloat(i)),y:Math.round(-parseFloat(a))})}else e.push({x:0,y:0})}return e}),[]);if(!o.every((function(e){return o[0].x===e.x||o[0].y===e.y})))throw new Error("Got different css positions!");return o[0]||{x:0,y:0}})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n)(t)},h.getElementXpath=function(e){var t;return((t=function(e){var t=(void 0===e?[]:e)[0],n="",r=t.ownerDocument;if(!r)return n;for(var o=t;o!==r;){var i=Array.prototype.filter.call(o.parentNode.childNodes,(function(e){return e.tagName===o.tagName})).indexOf(o);n="/"+o.tagName+"["+(i+1)+"]"+n,o=o.parentNode}return n})&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t)(e)},h.getShadowRoot=function(e){var t;return((t=function(e){return(void 0===e?[]:e)[0].shadowRoot})&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t)(e)},h.getText=function(e){var t;return((t=function(e){return e[0].innerText})&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t)(e)},h.getUserAgent=function(e){var t=function(){function e(){return e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.apply(this,arguments)}var t="__EYES__APPLITOOLS__",n="userAgent";return window[t]=window[t]||{},function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}((function(){try{if(window[t][n]){var r=window[t][n];return"WIP"!==r.status&&delete window[t][n],JSON.stringify(r)}return window.navigator.userAgentData?(window[t][n]={status:"WIP"},window.navigator.userAgentData.getHighEntropyValues(["brands","platform","platformVersion","model"]).then((function(r){window[t][n]={status:"SUCCESS",value:e({legacy:window.navigator.userAgent},r)}})).catch((function(e){window[t][n]={status:"ERROR",error:e.message}}))):window[t][n]={status:"SUCCESS",value:window.navigator.userAgent},JSON.stringify(window[t][n])}catch(r){return window[t][n]={status:"ERROR",error:r.message},JSON.stringify(window[t][n])}}))}();return t(e)},h.getViewport=function(t){var n;return((n=function(){var t,n=0,r=0;return window.innerHeight?r=window.innerHeight:e.documentElement&&e.documentElement.clientHeight?r=e.documentElement.clientHeight:e.body&&e.body.clientHeight&&(r=e.body.clientHeight),window.innerWidth?n=window.innerWidth:e.documentElement&&e.documentElement.clientWidth?n=e.documentElement.clientWidth:e.body&&e.body.clientWidth&&(n=e.body.clientWidth),window.screen&&window.screen.orientation?t=window.screen.orientation.type.replace(/-primary$/,""):null!=window.orientation&&(0===window.orientation?t="portrait":180===window.orientation?t="portrait-secondary":90===window.orientation?t="landscape":-90===window.orientation&&(t="landscape-secondary")),{viewportSize:{width:n,height:r},pixelRatio:window.devicePixelRatio,viewportScale:window.visualViewport&&window.visualViewport.scale,orientation:t}})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n)(t)},h.isElementScrollable=function(e){var t;return((t=function(e){var t=(void 0===e?[]:e)[0],n=function(e){var t=void 0===e?[]:e,n=t[0],r=t[1],o=void 0===r?[]:r,i=window.getComputedStyle(n);return i?o.map((function(e){return i.getPropertyValue(e)})):[]}([t,["overflow-x","overflow-y","overflow"]]);return("scroll"===n[0]||"auto"===n[0]||"hidden"===n[2])&&t.scrollWidth>t.clientWidth||("scroll"===n[1]||"auto"===n[1]||"hidden"===n[2])&&t.scrollHeight>t.clientHeight})&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t)(e)},h.isEqualElements=function(e){var t;return((t=function(e){var t=void 0===e?[]:e;return t[0]===t[1]})&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t)(e)},h.isStaleElement=function(t){var n;return((n=function(t){var n=t&&t[0]||null;return!(n&&("isConnected"in window.Node.prototype?n.isConnected:e.documentElement.contains?e.documentElement.contains(n):n.ownerDocument.documentElement.contains(n)))})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n)(t)},h.lazyLoad=function(t){var n=function(){var t=function(e){var t=void 0===e?[]:e,n=t[0],r=t[1],o=Object.keys(r).sort(),i=o.reduce((function(e,t){return e[t]={value:n.style.getPropertyValue(t),important:Boolean(n.style.getPropertyPriority(t))},e}),{});return o.forEach((function(e){n.style.setProperty(e,"string"!=typeof r[e]&&r[e]?r[e].value:r[e],r[e]&&r[e].important?"important":"")})),i},n="__EYES__APPLITOOLS__",r="lazyLoadResult";window[n]=window[n]||{};var o=function(n){var r=void 0===n?[]:n,o=r[0],i=r[1];o=o||e.documentElement;var a=t([o,{"scroll-behavior":{value:"auto",important:!0}}]);return o.scrollTo?o.scrollTo(i.x,i.y):(o.scrollLeft=i.x,o.scrollTop=i.y),t([o,a]),{x:o.scrollLeft,y:o.scrollTop}};return function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}((function(e){var t=void 0===e?[]:e,i=t[0],a=t[1],s=void 0===a?{}:a,l=s.scrollLength,c=s.waitingTime,u=s.maxAmountToScroll;try{if(window[n][r]){var h=window[n][r];return"WIP"!==h.status&&delete window[n][r],JSON.stringify(h)}window[n][r]={status:"WIP"};var d=function(e){var t=(void 0===e?[]:e)[0];return t?{x:t.scrollLeft,y:t.scrollTop}:{x:window.scrollX||window.pageXOffset,y:window.scrollY||window.pageYOffset}}(),p=[];p.push({maxAmountToScroll:u,scrollLength:l,waitingTime:c,startingScrollPositionX:d.x,startingScrollPositionY:d.y});var m=Date.now();return function e(t){var a=void 0===t?{}:t,s=a.doneScrolling,h=a.previousScrollResult,f=void 0===h?{}:h;setTimeout((function(){try{if(s){var t=o([i,d]),a=t.x,c=t.y;return p.push({x:a,y:c,msSinceStart:Date.now()-m}),void(window[n][r]={status:"SUCCESS",value:p})}var h=o([i,{x:d.x,y:f.y+l}]),g=h.x,b=h.y;p.push({x:g,y:b,msSinceStart:Date.now()-m}),e({doneScrolling:b===f.y||b===u,previousScrollResult:{x:g,y:b}})}catch(e){window[n][r]={status:"ERROR",error:e}}}),c)}(),JSON.stringify(window[n][r])}catch(e){return window[n][r]={status:"ERROR",error:e},JSON.stringify(window[n][r])}}))}();return n(t)},h.reloadPage=function(e){var t;return((t=function(){window.location.reload()})&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t)(e)},h.scrollTo=function(t){var n,r,o=(r=function(e){var t=void 0===e?[]:e,n=t[0],r=t[1],o=Object.keys(r).sort(),i=o.reduce((function(e,t){return e[t]={value:n.style.getPropertyValue(t),important:Boolean(n.style.getPropertyPriority(t))},e}),{});return o.forEach((function(e){n.style.setProperty(e,"string"!=typeof r[e]&&r[e]?r[e].value:r[e],r[e]&&r[e].important?"important":"")})),i},(n=function(t){var n=void 0===t?[]:t,o=n[0],i=n[1];o=o||e.documentElement;var a=r([o,{"scroll-behavior":{value:"auto",important:!0}}]);return o.scrollTo?o.scrollTo(i.x,i.y):(o.scrollLeft=i.x,o.scrollTop=i.y),r([o,a]),{x:o.scrollLeft,y:o.scrollTop}})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n);return o(t)},h.setElementAttributes=function(e){var t;return((t=function(e){var t=void 0===e?[]:e,n=t[0],r=t[1];return Object.keys(r).reduce((function(e,t){return e[t]=n.getAttribute(t),n.setAttribute(t,r[t]),e}),{})})&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t)(e)},h.setElementStyleProperties=function(e){var t;return((t=function(e){var t=void 0===e?[]:e,n=t[0],r=t[1],o=Object.keys(r).sort(),i=o.reduce((function(e,t){return e[t]={value:n.style.getPropertyValue(t),important:Boolean(n.style.getPropertyPriority(t))},e}),{});return o.forEach((function(e){n.style.setProperty(e,"string"!=typeof r[e]&&r[e]?r[e].value:r[e],r[e]&&r[e].important?"important":"")})),i})&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t)(e)},h.translateTo=function(t){var n;return((n=function(t){var n=void 0===t?[]:t,r=n[0],o=n[1];r=r||e.documentElement;var i={value:"translate("+-o.x+"px, "+-o.y+"px)",important:!0};return function(e){var t=void 0===e?[]:e,n=t[0],r=t[1],o=Object.keys(r).sort();o.reduce((function(e,t){return e[t]={value:n.style.getPropertyValue(t),important:Boolean(n.style.getPropertyPriority(t))},e}),{}),o.forEach((function(e){n.style.setProperty(e,"string"!=typeof r[e]&&r[e]?r[e].value:r[e],r[e]&&r[e].important?"important":"")}))}([r,{transform:i,"-webkit-transform":i}]),o})&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n)(t)};var p=Object.freeze({__proto__:null,generateSafeSelectors:function(e){if(!e?.length)return;const t=e.map((e=>[e,"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))])),n=d(t).flat();let r=0;const o=t.map((([e])=>{if(0===e.length)return null;const t=n[r].reduceRight(((e,t)=>e?{type:"css",selector:t,shadow:e}:t.error?t:{type:"css",selector:t}),void 0);return r+=e.length,t}));return o}}),m=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}(p),f=function(e){if(!function(e){try{const t=new URL(e);return Boolean(t.username||t.password)}catch(e){return!1}}(e))return e;let t=!0;try{t=e!==decodeURI(e)}catch(e){t=!0}const n=new URL(e);return n.username="",n.password="",t?n.href:decodeURI(n.href)},g={},b={},y={AtKeyword:3,BadString:6,BadUrl:8,CDC:15,CDO:14,Colon:16,Comma:18,Comment:25,Delim:9,Dimension:12,EOF:0,Function:2,Hash:4,Ident:1,LeftCurlyBracket:23,LeftParenthesis:21,LeftSquareBracket:19,Number:10,Percentage:11,RightCurlyBracket:24,RightParenthesis:22,RightSquareBracket:20,Semicolon:17,String:5,Url:7,WhiteSpace:13},k={};function w(e){return e>=48&&e<=57}function v(e){return e>=65&&e<=90}function x(e){return e>=97&&e<=122}function S(e){return v(e)||x(e)}function _(e){return e>=128}function C(e){return S(e)||_(e)||95===e}function A(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}function z(e){return 10===e||13===e||12===e}function P(e){return z(e)||32===e||9===e}function E(e,t){return 92===e&&!z(t)&&0!==t}const L=new Array(128);for(let e=0;e<L.length;e++)L[e]=(P(e)?130:w(e)&&131)||C(e)&&132||A(e)&&133||e||128;k.DigitCategory=131,k.EofCategory=128,k.NameStartCategory=132,k.NonPrintableCategory=133,k.WhiteSpaceCategory=130,k.charCodeCategory=function(e){return e<128?L[e]:132},k.isBOM=function(e){return 65279===e||65534===e?1:0},k.isDigit=w,k.isHexDigit=function(e){return w(e)||e>=65&&e<=70||e>=97&&e<=102},k.isIdentifierStart=function(e,t,n){return 45===e?C(t)||45===t||E(t,n):!!C(e)||92===e&&E(e,t)},k.isLetter=S,k.isLowercaseLetter=x,k.isName=function(e){return C(e)||w(e)||45===e},k.isNameStart=C,k.isNewline=z,k.isNonAscii=_,k.isNonPrintable=A,k.isNumberStart=function(e,t,n){return 43===e||45===e?w(t)?2:46===t&&w(n)?3:0:46===e?w(t)?2:0:w(e)?1:0},k.isUppercaseLetter=v,k.isValidEscape=E,k.isWhiteSpace=P;var O={};const N=k;function T(e,t){return t<e.length?e.charCodeAt(t):0}function R(e,t,n){return 13===n&&10===T(e,t+1)?2:1}function D(e,t,n){let r=e.charCodeAt(t);return N.isUppercaseLetter(r)&&(r|=32),r===n}function I(e,t){for(;t<e.length&&N.isDigit(e.charCodeAt(t));t++);return t}function B(e,t){if(t+=2,N.isHexDigit(T(e,t-1))){for(const n=Math.min(e.length,t+5);t<n&&N.isHexDigit(T(e,t));t++);const n=T(e,t);N.isWhiteSpace(n)&&(t+=R(e,t,n))}return t}O.cmpChar=D,O.cmpStr=function(e,t,n,r){if(n-t!==r.length)return!1;if(t<0||n>e.length)return!1;for(let o=t;o<n;o++){const n=r.charCodeAt(o-t);let i=e.charCodeAt(o);if(N.isUppercaseLetter(i)&&(i|=32),i!==n)return!1}return!0},O.consumeBadUrlRemnants=function(e,t){for(;t<e.length;t++){const n=e.charCodeAt(t);if(41===n){t++;break}N.isValidEscape(n,T(e,t+1))&&(t=B(e,t))}return t},O.consumeEscaped=B,O.consumeName=function(e,t){for(;t<e.length;t++){const n=e.charCodeAt(t);if(!N.isName(n)){if(!N.isValidEscape(n,T(e,t+1)))break;t=B(e,t)-1}}return t},O.consumeNumber=function(e,t){let n=e.charCodeAt(t);if(43!==n&&45!==n||(n=e.charCodeAt(t+=1)),N.isDigit(n)&&(t=I(e,t+1),n=e.charCodeAt(t)),46===n&&N.isDigit(e.charCodeAt(t+1))&&(t=I(e,t+=2)),D(e,t,101)){let r=0;n=e.charCodeAt(t+1),45!==n&&43!==n||(r=1,n=e.charCodeAt(t+2)),N.isDigit(n)&&(t=I(e,t+1+r+1))}return t},O.decodeEscaped=function(e){if(1===e.length&&!N.isHexDigit(e.charCodeAt(0)))return e[0];let t=parseInt(e,16);return(0===t||t>=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)},O.findDecimalNumberEnd=I,O.findWhiteSpaceEnd=function(e,t){for(;t<e.length&&N.isWhiteSpace(e.charCodeAt(t));t++);return t},O.findWhiteSpaceStart=function(e,t){for(;t>=0&&N.isWhiteSpace(e.charCodeAt(t));t--);return t+1},O.getNewlineLength=R;var M=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token","comment-token"],j={},F={adoptBuffer:function(e=null,t){return null===e||e.length<t?new Uint32Array(Math.max(t+1024,16384)):e}};const U=F,W=k;function H(e){const t=e.source,n=t.length,r=t.length>0?W.isBOM(t.charCodeAt(0)):0,o=U.adoptBuffer(e.lines,n),i=U.adoptBuffer(e.columns,n);let a=e.startLine,s=e.startColumn;for(let e=r;e<n;e++){const r=t.charCodeAt(e);o[e]=a,i[e]=s++,10!==r&&13!==r&&12!==r||(13===r&&e+1<n&&10===t.charCodeAt(e+1)&&(e++,o[e]=a,i[e]=s),a++,s=1)}o[n]=a,i[n]=s,e.lines=o,e.columns=i,e.computed=!0}j.OffsetToLocation=class{constructor(){this.lines=null,this.columns=null,this.computed=!1}setSource(e,t=0,n=1,r=1){this.source=e,this.startOffset=t,this.startLine=n,this.startColumn=r,this.computed=!1}getLocation(e,t){return this.computed||H(this),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,t,n){return this.computed||H(this),{source:n,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]}}}};var q={};const V=F,$=O,K=M,Z=y,G=16777215,Y=24,X=new Map([[Z.Function,Z.RightParenthesis],[Z.LeftParenthesis,Z.RightParenthesis],[Z.LeftSquareBracket,Z.RightSquareBracket],[Z.LeftCurlyBracket,Z.RightCurlyBracket]]);q.TokenStream=class{constructor(e,t){this.setSource(e,t)}reset(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}setSource(e="",t=(()=>{})){const n=(e=String(e||"")).length,r=V.adoptBuffer(this.offsetAndType,e.length+1),o=V.adoptBuffer(this.balance,e.length+1);let 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]=n;break;case a:{let e=s&G;for(s=o[e],a=s>>Y,o[i]=e,o[e++]=i;e<i;e++)o[e]===n&&(o[e]=i);break}case Z.LeftParenthesis:case Z.Function:case Z.LeftSquareBracket:case Z.LeftCurlyBracket:o[i]=s,a=X.get(e),s=a<<Y|i}r[i++]=e<<Y|c,-1===l&&(l=t)})),r[i]=Z.EOF<<Y|n,o[i]=n,o[n]=n;0!==s;){const e=s&G;s=o[e],o[e]=n}this.source=e,this.firstCharOffset=-1===l?0:l,this.tokenCount=i,this.offsetAndType=r,this.balance=o,this.reset(),this.next()}lookupType(e){return(e+=this.tokenIndex)<this.tokenCount?this.offsetAndType[e]>>Y:Z.EOF}lookupTypeNonSC(e){for(let t=this.tokenIndex;t<this.tokenCount;t++){const n=this.offsetAndType[t]>>Y;if(n!==Z.WhiteSpace&&n!==Z.Comment&&0==e--)return n}return Z.EOF}lookupOffset(e){return(e+=this.tokenIndex)<this.tokenCount?this.offsetAndType[e-1]&G:this.source.length}lookupOffsetNonSC(e){for(let t=this.tokenIndex;t<this.tokenCount;t++){const n=this.offsetAndType[t]>>Y;if(n!==Z.WhiteSpace&&n!==Z.Comment&&0==e--)return t-this.tokenIndex}return Z.EOF}lookupValue(e,t){return(e+=this.tokenIndex)<this.tokenCount&&$.cmpStr(this.source,this.offsetAndType[e-1]&G,this.offsetAndType[e]&G,t)}getTokenStart(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&G:this.offsetAndType[this.tokenCount]&G:this.firstCharOffset}substrToCursor(e){return this.source.substring(e,this.tokenStart)}isBalanceEdge(e){return this.balance[this.tokenIndex]<e}isDelim(e,t){return t?this.lookupType(t)===Z.Delim&&this.source.charCodeAt(this.lookupOffset(t))===e:this.tokenType===Z.Delim&&this.source.charCodeAt(this.tokenStart)===e}skip(e){let t=this.tokenIndex+e;t<this.tokenCount?(this.tokenIndex=t,this.tokenStart=this.offsetAndType[t-1]&G,t=this.offsetAndType[t],this.tokenType=t>>Y,this.tokenEnd=t&G):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e<this.tokenCount?(this.tokenIndex=e,this.tokenStart=this.tokenEnd,e=this.offsetAndType[e],this.tokenType=e>>Y,this.tokenEnd=e&G):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=Z.EOF,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===Z.WhiteSpace||this.tokenType===Z.Comment;)this.next()}skipUntilBalanced(e,t){let n,r,o=e;e:for(;o<this.tokenCount&&(n=this.balance[o],!(n<e));o++)switch(r=o>0?this.offsetAndType[o-1]&G:this.firstCharOffset,t(this.source.charCodeAt(r))){case 1:break e;case 2:o++;break e;default:this.balance[n]===o&&(o=n)}this.skip(o-this.tokenIndex)}forEachToken(e){for(let t=0,n=this.firstCharOffset;t<this.tokenCount;t++){const r=n,o=this.offsetAndType[t],i=o&G;n=i,e(o>>Y,r,i,t)}}dump(){const e=new Array(this.tokenCount);return this.forEachToken(((t,n,r,o)=>{e[o]={idx:o,type:K[t],chunk:this.source.substring(n,r),balance:this.balance[o]}})),e}};const J=y,Q=k,ee=O,te=M,ne=j,re=q;b.AtKeyword=J.AtKeyword,b.BadString=J.BadString,b.BadUrl=J.BadUrl,b.CDC=J.CDC,b.CDO=J.CDO,b.Colon=J.Colon,b.Comma=J.Comma,b.Comment=J.Comment,b.Delim=J.Delim,b.Dimension=J.Dimension,b.EOF=J.EOF,b.Function=J.Function,b.Hash=J.Hash,b.Ident=J.Ident,b.LeftCurlyBracket=J.LeftCurlyBracket,b.LeftParenthesis=J.LeftParenthesis,b.LeftSquareBracket=J.LeftSquareBracket,b.Number=J.Number,b.Percentage=J.Percentage,b.RightCurlyBracket=J.RightCurlyBracket,b.RightParenthesis=J.RightParenthesis,b.RightSquareBracket=J.RightSquareBracket,b.Semicolon=J.Semicolon,b.String=J.String,b.Url=J.Url,b.WhiteSpace=J.WhiteSpace,b.tokenTypes=J,b.DigitCategory=Q.DigitCategory,b.EofCategory=Q.EofCategory,b.NameStartCategory=Q.NameStartCategory,b.NonPrintableCategory=Q.NonPrintableCategory,b.WhiteSpaceCategory=Q.WhiteSpaceCategory,b.charCodeCategory=Q.charCodeCategory,b.isBOM=Q.isBOM,b.isDigit=Q.isDigit,b.isHexDigit=Q.isHexDigit,b.isIdentifierStart=Q.isIdentifierStart,b.isLetter=Q.isLetter,b.isLowercaseLetter=Q.isLowercaseLetter,b.isName=Q.isName,b.isNameStart=Q.isNameStart,b.isNewline=Q.isNewline,b.isNonAscii=Q.isNonAscii,b.isNonPrintable=Q.isNonPrintable,b.isNumberStart=Q.isNumberStart,b.isUppercaseLetter=Q.isUppercaseLetter,b.isValidEscape=Q.isValidEscape,b.isWhiteSpace=Q.isWhiteSpace,b.cmpChar=ee.cmpChar,b.cmpStr=ee.cmpStr,b.consumeBadUrlRemnants=ee.consumeBadUrlRemnants,b.consumeEscaped=ee.consumeEscaped,b.consumeName=ee.consumeName,b.consumeNumber=ee.consumeNumber,b.decodeEscaped=ee.decodeEscaped,b.findDecimalNumberEnd=ee.findDecimalNumberEnd,b.findWhiteSpaceEnd=ee.findWhiteSpaceEnd,b.findWhiteSpaceStart=ee.findWhiteSpaceStart,b.getNewlineLength=ee.getNewlineLength,b.tokenNames=te,b.OffsetToLocation=ne.OffsetToLocation,b.TokenStream=re.TokenStream,b.tokenize=function(e,t){function n(t){return t<a?e.charCodeAt(t):0}function r(){return c=ee.consumeNumber(e,c),Q.isIdentifierStart(n(c),n(c+1),n(c+2))?(s=J.Dimension,void(c=ee.consumeName(e,c))):37===n(c)?(s=J.Percentage,void c++):void(s=J.Number)}function o(){const t=c;return c=ee.consumeName(e,c),ee.cmpStr(e,t,c,"url")&&40===n(c)?(c=ee.findWhiteSpaceEnd(e,c+1),34===n(c)||39===n(c)?(s=J.Function,void(c=t+4)):void function(){for(s=J.Url,c=ee.findWhiteSpaceEnd(e,c);c<e.length;c++){const t=e.charCodeAt(c);switch(Q.charCodeCategory(t)){case 41:return void c++;case Q.WhiteSpaceCategory:return c=ee.findWhiteSpaceEnd(e,c),41===n(c)||c>=e.length?void(c<e.length&&c++):(c=ee.consumeBadUrlRemnants(e,c),void(s=J.BadUrl));case 34:case 39:case 40:case Q.NonPrintableCategory:return c=ee.consumeBadUrlRemnants(e,c),void(s=J.BadUrl);case 92:if(Q.isValidEscape(t,n(c+1))){c=ee.consumeEscaped(e,c)-1;break}return c=ee.consumeBadUrlRemnants(e,c),void(s=J.BadUrl)}}}()):40===n(c)?(s=J.Function,void c++):void(s=J.Ident)}function i(t){for(t||(t=n(c++)),s=J.String;c<e.length;c++){const r=e.charCodeAt(c);switch(Q.charCodeCategory(r)){case t:return void c++;case Q.WhiteSpaceCategory:if(Q.isNewline(r))return c+=ee.getNewlineLength(e,c,r),void(s=J.BadString);break;case 92:if(c===e.length-1)break;const o=n(c+1);Q.isNewline(o)?c+=ee.getNewlineLength(e,c+1,o):Q.isValidEscape(r,o)&&(c=ee.consumeEscaped(e,c)-1)}}}const a=(e=String(e||"")).length;let s,l=Q.isBOM(n(0)),c=l;for(;c<a;){const a=e.charCodeAt(c);switch(Q.charCodeCategory(a)){case Q.WhiteSpaceCategory:s=J.WhiteSpace,c=ee.findWhiteSpaceEnd(e,c+1);break;case 34:i();break;case 35:Q.isName(n(c+1))||Q.isValidEscape(n(c+1),n(c+2))?(s=J.Hash,c=ee.consumeName(e,c+1)):(s=J.Delim,c++);break;case 39:i();break;case 40:s=J.LeftParenthesis,c++;break;case 41:s=J.RightParenthesis,c++;break;case 43:Q.isNumberStart(a,n(c+1),n(c+2))?r():(s=J.Delim,c++);break;case 44:s=J.Comma,c++;break;case 45:Q.isNumberStart(a,n(c+1),n(c+2))?r():45===n(c+1)&&62===n(c+2)?(s=J.CDC,c+=3):Q.isIdentifierStart(a,n(c+1),n(c+2))?o():(s=J.Delim,c++);break;case 46:Q.isNumberStart(a,n(c+1),n(c+2))?r():(s=J.Delim,c++);break;case 47:42===n(c+1)?(s=J.Comment,c=e.indexOf("*/",c+2),c=-1===c?e.length:c+2):(s=J.Delim,c++);break;case 58:s=J.Colon,c++;break;case 59:s=J.Semicolon,c++;break;case 60:33===n(c+1)&&45===n(c+2)&&45===n(c+3)?(s=J.CDO,c+=4):(s=J.Delim,c++);break;case 64:Q.isIdentifierStart(n(c+1),n(c+2),n(c+3))?(s=J.AtKeyword,c=ee.consumeName(e,c+1)):(s=J.Delim,c++);break;case 91:s=J.LeftSquareBracket,c++;break;case 92:Q.isValidEscape(a,n(c+1))?o():(s=J.Delim,c++);break;case 93:s=J.RightSquareBracket,c++;break;case 123:s=J.LeftCurlyBracket,c++;break;case 125:s=J.RightCurlyBracket,c++;break;case Q.DigitCategory:r();break;case Q.NameStartCategory:o();break;default:s=J.Delim,c++}t(s,l,l=c)}};var oe={},ie={};let ae=null,se=class e{static createItem(e){return{prev:null,next:null,data:e}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(t){return e.createItem(t)}allocateCursor(e,t){let n;return null!==ae?(n=ae,ae=ae.cursor,n.prev=e,n.next=t,n.cursor=this.cursor):n={prev:e,next:t,cursor:this.cursor},this.cursor=n,n}releaseCursor(){const{cursor:e}=this;this.cursor=e.cursor,e.prev=null,e.next=null,e.cursor=ae,ae=e}updateCursors(e,t,n,r){let{cursor:o}=this;for(;null!==o;)o.prev===e&&(o.prev=t),o.next===n&&(o.next=r),o=o.cursor}*[Symbol.iterator](){for(let e=this.head;null!==e;e=e.next)yield e.data}get size(){let e=0;for(let t=this.head;null!==t;t=t.next)e++;return e}get isEmpty(){return null===this.head}get first(){return this.head&&this.head.data}get last(){return this.tail&&this.tail.data}fromArray(t){let n=null;this.head=null;for(let r of t){const t=e.createItem(r);null!==n?n.next=t:this.head=t,t.prev=n,n=t}return this.tail=n,this}toArray(){return[...this]}toJSON(){return[...this]}forEach(e,t=this){const n=this.allocateCursor(null,this.head);for(;null!==n.next;){const r=n.next;n.next=r.next,e.call(t,r.data,r,this)}this.releaseCursor()}forEachRight(e,t=this){const n=this.allocateCursor(this.tail,null);for(;null!==n.prev;){const r=n.prev;n.prev=r.prev,e.call(t,r.data,r,this)}this.releaseCursor()}reduce(e,t,n=this){let r,o=this.allocateCursor(null,this.head),i=t;for(;null!==o.next;)r=o.next,o.next=r.next,i=e.call(n,i,r.data,r,this);return this.releaseCursor(),i}reduceRight(e,t,n=this){let r,o=this.allocateCursor(this.tail,null),i=t;for(;null!==o.prev;)r=o.prev,o.prev=r.prev,i=e.call(n,i,r.data,r,this);return this.releaseCursor(),i}some(e,t=this){for(let n=this.head;null!==n;n=n.next)if(e.call(t,n.data,n,this))return!0;return!1}map(t,n=this){const r=new e;for(let e=this.head;null!==e;e=e.next)r.appendData(t.call(n,e.data,e,this));return r}filter(t,n=this){const r=new e;for(let e=this.head;null!==e;e=e.next)t.call(n,e.data,e,this)&&r.appendData(e.data);return r}nextUntil(e,t,n=this){if(null===e)return;const r=this.allocateCursor(null,e);for(;null!==r.next;){const e=r.next;if(r.next=e.next,t.call(n,e.data,e,this))break}this.releaseCursor()}prevUntil(e,t,n=this){if(null===e)return;const r=this.allocateCursor(e,null);for(;null!==r.prev;){const e=r.prev;if(r.prev=e.prev,t.call(n,e.data,e,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){const t=new e;for(let e of this)t.appendData(e);return t}prepend(e){return this.updateCursors(null,e,this.head,e),null!==this.head?(this.head.prev=e,e.next=this.head):this.tail=e,this.head=e,this}prependData(t){return this.prepend(e.createItem(t))}append(e){return this.insert(e)}appendData(t){return this.insert(e.createItem(t))}insert(e,t=null){if(null!==t)if(this.updateCursors(t.prev,e,t,e),null===t.prev){if(this.head!==t)throw new Error("before doesn't belong to list");this.head=e,t.prev=e,e.next=t,this.updateCursors(null,e)}else t.prev.next=e,e.prev=t.prev,t.prev=e,e.next=t;else this.updateCursors(this.tail,e,null,e),null!==this.tail?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e;return this}insertData(t,n){return this.insert(e.createItem(t),n)}remove(e){if(this.updateCursors(e,e.prev,e,e.next),null!==e.prev)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't belong to list");this.head=e.next}if(null!==e.next)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't belong to list");this.tail=e.prev}return e.prev=null,e.next=null,e}push(t){this.insert(e.createItem(t))}pop(){return null!==this.tail?this.remove(this.tail):null}unshift(t){this.prepend(e.createItem(t))}shift(){return null!==this.head?this.remove(this.head):null}prependList(e){return this.insertList(e,this.head)}appendList(e){return this.insertList(e)}insertList(e,t){return null===e.head||(null!=t?(this.updateCursors(t.prev,e.tail,t,e.head),null!==t.prev?(t.prev.next=e.head,e.head.prev=t.prev):this.head=e.head,t.prev=e.tail,e.tail.next=t):(this.updateCursors(this.tail,e.tail,null,e.head),null!==this.tail?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail),e.head=null,e.tail=null),this}replace(e,t){"head"in t?this.insertList(t,e):this.insert(t,e),this.remove(e)}};ie.List=se;var le={},ce={createCustomError:function(e,t){const n=Object.create(SyntaxError.prototype),r=new Error;return Object.assign(n,{name:e,message:t,get stack(){return(r.stack||"").replace(/^(.+\n){1,3}/,`${e}: ${t}\n`)}})}};const ue=ce,he=" ";function de({source:e,line:t,column:n,baseLine:r,baseColumn:o},i){function a(e,t){return s.slice(e,t).map(((t,n)=>String(e+n+1).padStart(u)+" |"+t)).join("\n")}const s=("\n".repeat(Math.max(r-1,0))+" ".repeat(Math.max(o-1,0))+e).split(/\r\n?|\n|\f/),l=Math.max(1,t-i)-1,c=Math.min(t+i,s.length+1),u=Math.max(4,String(c).length)+1;let h=0;(n+=3*(s[t-1].substr(0,n-1).match(/\t/g)||[]).length)>100&&(h=n-60+3,n=58);for(let e=l;e<=c;e++)e>=0&&e<s.length&&(s[e]=s[e].replace(/\t/g,he),s[e]=(h>0&&s[e].length>h?"…":"")+s[e].substr(h,98)+(s[e].length>h+100-1?"…":""));return[a(l,t),new Array(n+u+2).join("-")+"^",a(t,c)].filter(Boolean).join("\n").replace(/^(\s+\d+\s+\|\n)+/,"").replace(/\n(\s+\d+\s+\|)+$/,"")}le.SyntaxError=function(e,t,n,r,o,i=1,a=1){return Object.assign(ue.createCustomError("SyntaxError",e),{source:t,offset:n,line:r,column:o,sourceFragment:e=>de({source:t,line:r,column:o,baseLine:i,baseColumn:a},isNaN(e)?0:e),get formattedMessage(){return`Parse error: ${e}\n`+de({source:t,line:r,column:o,baseLine:i,baseColumn:a},2)}})};var pe={};const me=y;pe.readSequence=function(e){const t=this.createList();let n=!1;const r={recognizer:e};for(;!this.eof;){switch(this.tokenType){case me.Comment:this.next();continue;case me.WhiteSpace:n=!0,this.next();continue}let o=e.getNode.call(this,r);if(void 0===o)break;n&&(e.onWhiteSpace&&e.onWhiteSpace.call(this,o,t,r),n=!1),t.push(o)}return n&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,r),t};const fe=ie,ge=le,be=b,ye=pe,ke=j,we=q,ve=O,xe=y,Se=M,_e=()=>{};function Ce(e){return function(){return this[e]()}}function Ae(e){const t=Object.create(null);for(const n of Object.keys(e)){const r=e[n],o=r.parse||r;o&&(t[n]=o)}return t}oe.createParser=function(e){let t="",n="<unknown>",r=!1,o=_e,i=!1;const a=new ke.OffsetToLocation,s=Object.assign(new we.TokenStream,function(e){const t={context:Object.create(null),features:Object.assign(Object.create(null),e.features),scope:Object.assign(Object.create(null),e.scope),atrule:Ae(e.atrule),pseudo:Ae(e.pseudo),node:Ae(e.node)};for(const[n,r]of Object.entries(e.parseContext))switch(typeof r){case"function":t.context[n]=r;break;case"string":t.context[n]=Ce(r)}return{config:t,...t,...t.node}}(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:ye.readSequence,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 fe.List,createSingleNodeList:e=>(new fe.List).appendData(e),getFirstListNode:e=>e&&e.first,getLastListNode:e=>e&&e.last,parseWithFallback(e,t){const n=this.tokenIndex;try{return e.call(this)}catch(e){if(i)throw e;this.skip(n-this.tokenIndex);const r=t.call(this);return i=!0,o(e,r),i=!1,r}},lookupNonWSType(e){let t;do{if(t=this.lookupType(e++),t!==xe.WhiteSpace&&t!==xe.Comment)return t}while(0!==t);return 0},charCodeAt:e=>e>=0&&e<t.length?t.charCodeAt(e):0,substring:(e,n)=>t.substring(e,n),substrToCursor(e){return this.source.substring(e,this.tokenStart)},cmpChar:(e,n)=>ve.cmpChar(t,e,n),cmpStr:(e,n,r)=>ve.cmpStr(t,e,n,r),consume(e){const t=this.tokenStart;return this.eat(e),this.substrToCursor(t)},consumeFunctionName(){const e=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(xe.Function),e},consumeNumber(e){const n=t.substring(this.tokenStart,ve.consumeNumber(t,this.tokenStart));return this.eat(e),n},eat(e){if(this.tokenType!==e){const t=Se[e].slice(0,-6).replace(/-/g," ").replace(/^./,(e=>e.toUpperCase()));let n=`${/[[\](){}]/.test(t)?`"${t}"`:t} is expected`,r=this.tokenStart;switch(e){case xe.Ident:this.tokenType===xe.Function||this.tokenType===xe.Url?(r=this.tokenEnd-1,n="Identifier is expected but function found"):n="Identifier is expected";break;case xe.Hash:this.isDelim(35)&&(this.next(),r++,n="Name is expected");break;case xe.Percentage:this.tokenType===xe.Number&&(r=this.tokenEnd,n="Percent sign is expected")}this.error(n,r)}this.next()},eatIdent(e){this.tokenType===xe.Ident&&!1!==this.lookupValue(0,e)||this.error(`Identifier "${e}" is expected`),this.next()},eatDelim(e){this.isDelim(e)||this.error(`Delim "${String.fromCharCode(e)}" is expected`),this.next()},getLocation:(e,t)=>r?a.getLocationRange(e,t,n):null,getLocationFromList(e){if(r){const t=this.getFirstListNode(e),r=this.getLastListNode(e);return a.getLocationRange(null!==t?t.loc.start.offset-a.startOffset:this.tokenStart,null!==r?r.loc.end.offset-a.startOffset:this.tokenStart,n)}return null},error(e,n){const r=void 0!==n&&n<t.length?a.getLocation(n):this.eof?a.getLocation(ve.findWhiteSpaceStart(t,t.length-1)):a.getLocation(this.tokenStart);throw new ge.SyntaxError(e||"Unexpected input",t,r.offset,r.line,r.column,a.startLine,a.startColumn)}});return Object.assign((function(e,l){t=e,l=l||{},s.setSource(t,be.tokenize),a.setSource(t,l.offset,l.line,l.column),n=l.filename||"<unknown>",r=Boolean(l.positions),o="function"==typeof l.onParseError?l.onParseError:_e,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);const{context:c="default",onComment:u}=l;if(c in s.context==0)throw new Error("Unknown context `"+c+"`");"function"==typeof u&&s.forEachToken(((e,n,r)=>{if(e===xe.Comment){const e=s.getLocation(n,r),o=ve.cmpStr(t,r-2,r,"*/")?t.slice(n+2,r-2):t.slice(n+2,r);u(o,e)}}));const h=s.context[c].call(s,l);return s.eof||s.error(),h}),{SyntaxError:ge.SyntaxError,config:s.config})};var ze={},Pe={},Ee={},Le={},Oe={},Ne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Oe.encode=function(e){if(0<=e&&e<Ne.length)return Ne[e];throw new TypeError("Must be between 0 and 63: "+e)},Oe.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1};var Te=Oe;Le.encode=function(e){var t,n="",r=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&r,(r>>>=5)>0&&(t|=32),n+=Te.encode(t)}while(r>0);return n},Le.decode=function(e,t,n){var r,o,i,a,s=e.length,l=0,c=0;do{if(t>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(o=Te.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(32&o),l+=(o&=31)<<c,c+=5}while(r);n.value=(a=(i=l)>>1,1==(1&i)?-a:a),n.rest=t};var Re={};!function(e){e.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var t=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function r(e){var n=e.match(t);return n?{scheme:n[1],auth:n[2],host:n[3],port:n[4],path:n[5]}:null}function 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=r,e.urlGenerate=o;var i,a,s=(i=function(t){var n=t,i=r(t);if(i){if(!i.path)return t;n=i.path}for(var a=e.isAbsolute(n),s=[],l=0,c=0;;){if(l=c,-1===(c=n.indexOf("/",l))){s.push(n.slice(l));break}for(s.push(n.slice(l,c));c<n.length&&"/"===n[c];)c++}var u,h=0;for(c=s.length-1;c>=0;c--)"."===(u=s[c])?s.splice(c,1):".."===u?h++:h>0&&(""===u?(s.splice(c+1,h),h=0):(s.splice(c,2),h--));return""===(n=s.join("/"))&&(n=a?"/":"."),i?(i.path=n,o(i)):n},a=[],function(e){for(var t=0;t<a.length;t++)if(a[t].input===e){var n=a[0];return a[0]=a[t],a[t]=n,a[0].result}var r=i(e);return a.unshift({input:e,result:r}),a.length>32&&a.pop(),r});function l(e,t){""===e&&(e="."),""===t&&(t=".");var i=r(t),a=r(e);if(a&&(e=a.path||"/"),i&&!i.scheme)return a&&(i.scheme=a.scheme),o(i);if(i||t.match(n))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 n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var c=!("__proto__"in Object.create(null));function u(e){return e}function h(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function d(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}e.toSetString=c?u:function(e){return h(e)?"$"+e:e},e.fromSetString=c?u:function(e){return h(e)?e.slice(1):e},e.compareByOriginalPositions=function(e,t,n){var r=d(e.source,t.source);return 0!==r||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)||n||0!=(r=e.generatedColumn-t.generatedColumn)||0!=(r=e.generatedLine-t.generatedLine)?r:d(e.name,t.name)},e.compareByOriginalPositionsNoSource=function(e,t,n){var r;return 0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)||n||0!=(r=e.generatedColumn-t.generatedColumn)||0!=(r=e.generatedLine-t.generatedLine)?r:d(e.name,t.name)},e.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||n||0!==(r=d(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:d(e.name,t.name)},e.compareByGeneratedPositionsDeflatedNoLine=function(e,t,n){var r=e.generatedColumn-t.generatedColumn;return 0!==r||n||0!==(r=d(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:d(e.name,t.name)},e.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||0!==(n=d(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:d(e.name,t.name)},e.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},e.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var i=r(n);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)}}(Re);var De={},Ie=Re,Be=Object.prototype.hasOwnProperty,Me="undefined"!=typeof Map;function je(){this._array=[],this._set=Me?new Map:Object.create(null)}je.fromArray=function(e,t){for(var n=new je,r=0,o=e.length;r<o;r++)n.add(e[r],t);return n},je.prototype.size=function(){return Me?this._set.size:Object.getOwnPropertyNames(this._set).length},je.prototype.add=function(e,t){var n=Me?e:Ie.toSetString(e),r=Me?this.has(e):Be.call(this._set,n),o=this._array.length;r&&!t||this._array.push(e),r||(Me?this._set.set(e,o):this._set[n]=o)},je.prototype.has=function(e){if(Me)return this._set.has(e);var t=Ie.toSetString(e);return Be.call(this._set,t)},je.prototype.indexOf=function(e){if(Me){var t=this._set.get(e);if(t>=0)return t}else{var n=Ie.toSetString(e);if(Be.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},je.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},je.prototype.toArray=function(){return this._array.slice()},De.ArraySet=je;var Fe={},Ue=Re;function We(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}We.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},We.prototype.add=function(e){var t,n,r,o,i,a;n=e,r=(t=this._last).generatedLine,o=n.generatedLine,i=t.generatedColumn,a=n.generatedColumn,o>r||o==r&&a>=i||Ue.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},We.prototype.toArray=function(){return this._sorted||(this._array.sort(Ue.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},Fe.MappingList=We;var He=Le,qe=Re,Ve=De.ArraySet,$e=Fe.MappingList;function Ke(e){e||(e={}),this._file=qe.getArg(e,"file",null),this._sourceRoot=qe.getArg(e,"sourceRoot",null),this._skipValidation=qe.getArg(e,"skipValidation",!1),this._sources=new Ve,this._names=new Ve,this._mappings=new $e,this._sourcesContents=null}Ke.prototype._version=3,Ke.fromSourceMap=function(e){var t=e.sourceRoot,n=new Ke({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=qe.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)})),e.sources.forEach((function(r){var o=r;null!==t&&(o=qe.relative(t,r)),n._sources.has(o)||n._sources.add(o);var i=e.sourceContentFor(r);null!=i&&n.setSourceContent(r,i)})),n},Ke.prototype.addMapping=function(e){var t=qe.getArg(e,"generated"),n=qe.getArg(e,"original",null),r=qe.getArg(e,"source",null),o=qe.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,o),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=o&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:o})},Ke.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=qe.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[qe.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[qe.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},Ke.prototype.applySourceMap=function(e,t,n){var r=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.');r=e.file}var o=this._sourceRoot;null!=o&&(r=qe.relative(o,r));var i=new Ve,a=new Ve;this._mappings.unsortedForEach((function(t){if(t.source===r&&null!=t.originalLine){var s=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=s.source&&(t.source=s.source,null!=n&&(t.source=qe.join(n,t.source)),null!=o&&(t.source=qe.relative(o,t.source)),t.originalLine=s.line,t.originalColumn=s.column,null!=s.name&&(t.name=s.name))}var l=t.source;null==l||i.has(l)||i.add(l);var c=t.name;null==c||a.has(c)||a.add(c)}),this),this._sources=i,this._names=a,e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=qe.join(n,t)),null!=o&&(t=qe.relative(o,t)),this.setSourceContent(t,r))}),this)},Ke.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},Ke.prototype._serializeMappings=function(){for(var e,t,n,r,o=0,i=1,a=0,s=0,l=0,c=0,u="",h=this._mappings.toArray(),d=0,p=h.length;d<p;d++){if(e="",(t=h[d]).generatedLine!==i)for(o=0;t.generatedLine!==i;)e+=";",i++;else if(d>0){if(!qe.compareByGeneratedPositionsInflated(t,h[d-1]))continue;e+=","}e+=He.encode(t.generatedColumn-o),o=t.generatedColumn,null!=t.source&&(r=this._sources.indexOf(t.source),e+=He.encode(r-c),c=r,e+=He.encode(t.originalLine-1-s),s=t.originalLine-1,e+=He.encode(t.originalColumn-a),a=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=He.encode(n-l),l=n)),u+=e}return u},Ke.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=qe.relative(t,e));var n=qe.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},Ke.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},Ke.prototype.toString=function(){return JSON.stringify(this.toJSON())},Ee.SourceMapGenerator=Ke;const Ze=Ee,Ge=new Set(["Atrule","Selector","Declaration"]);Pe.generateSourceMap=function(e){const t=new Ze.SourceMapGenerator,n={line:1,column:0},r={line:0,column:0},o={line:1,column:0},i={generated:o};let a=1,s=0,l=!1;const c=e.node;e.node=function(e){if(e.loc&&e.loc.start&&Ge.has(e.type)){const c=e.loc.start.line,u=e.loc.start.column-1;r.line===c&&r.column===u||(r.line=c,r.column=u,n.line=a,n.column=s,l&&(l=!1,n.line===o.line&&n.column===o.column||t.addMapping(i)),l=!0,t.addMapping({source:e.loc.source,original:r,generated:n}))}c.call(this,e),l&&Ge.has(e.type)&&(o.line=a,o.column=s)};const u=e.emit;e.emit=function(e,t,n){for(let t=0;t<e.length;t++)10===e.charCodeAt(t)?(a++,s=0):s++;u(e,t,n)};const h=e.result;return e.result=function(){return l&&t.addMapping(i),{css:h(),map:t}},e};var Ye={};const Xe=y,Je=(e,t)=>{if(e===Xe.Delim&&(e=t),"string"==typeof e){const t=e.charCodeAt(0);return t>127?32768:t<<8}return e},Qe=[[Xe.Ident,Xe.Ident],[Xe.Ident,Xe.Function],[Xe.Ident,Xe.Url],[Xe.Ident,Xe.BadUrl],[Xe.Ident,"-"],[Xe.Ident,Xe.Number],[Xe.Ident,Xe.Percentage],[Xe.Ident,Xe.Dimension],[Xe.Ident,Xe.CDC],[Xe.Ident,Xe.LeftParenthesis],[Xe.AtKeyword,Xe.Ident],[Xe.AtKeyword,Xe.Function],[Xe.AtKeyword,Xe.Url],[Xe.AtKeyword,Xe.BadUrl],[Xe.AtKeyword,"-"],[Xe.AtKeyword,Xe.Number],[Xe.AtKeyword,Xe.Percentage],[Xe.AtKeyword,Xe.Dimension],[Xe.AtKeyword,Xe.CDC],[Xe.Hash,Xe.Ident],[Xe.Hash,Xe.Function],[Xe.Hash,Xe.Url],[Xe.Hash,Xe.BadUrl],[Xe.Hash,"-"],[Xe.Hash,Xe.Number],[Xe.Hash,Xe.Percentage],[Xe.Hash,Xe.Dimension],[Xe.Hash,Xe.CDC],[Xe.Dimension,Xe.Ident],[Xe.Dimension,Xe.Function],[Xe.Dimension,Xe.Url],[Xe.Dimension,Xe.BadUrl],[Xe.Dimension,"-"],[Xe.Dimension,Xe.Number],[Xe.Dimension,Xe.Percentage],[Xe.Dimension,Xe.Dimension],[Xe.Dimension,Xe.CDC],["#",Xe.Ident],["#",Xe.Function],["#",Xe.Url],["#",Xe.BadUrl],["#","-"],["#",Xe.Number],["#",Xe.Percentage],["#",Xe.Dimension],["#",Xe.CDC],["-",Xe.Ident],["-",Xe.Function],["-",Xe.Url],["-",Xe.BadUrl],["-","-"],["-",Xe.Number],["-",Xe.Percentage],["-",Xe.Dimension],["-",Xe.CDC],[Xe.Number,Xe.Ident],[Xe.Number,Xe.Function],[Xe.Number,Xe.Url],[Xe.Number,Xe.BadUrl],[Xe.Number,Xe.Number],[Xe.Number,Xe.Percentage],[Xe.Number,Xe.Dimension],[Xe.Number,"%"],[Xe.Number,Xe.CDC],["@",Xe.Ident],["@",Xe.Function],["@",Xe.Url],["@",Xe.BadUrl],["@","-"],["@",Xe.CDC],[".",Xe.Number],[".",Xe.Percentage],[".",Xe.Dimension],["+",Xe.Number],["+",Xe.Percentage],["+",Xe.Dimension],["/","*"]],et=Qe.concat([[Xe.Ident,Xe.Hash],[Xe.Dimension,Xe.Hash],[Xe.Hash,Xe.Hash],[Xe.AtKeyword,Xe.LeftParenthesis],[Xe.AtKeyword,Xe.String],[Xe.AtKeyword,Xe.Colon],[Xe.Percentage,Xe.Percentage],[Xe.Percentage,Xe.Dimension],[Xe.Percentage,Xe.Function],[Xe.Percentage,"-"],[Xe.RightParenthesis,Xe.Ident],[Xe.RightParenthesis,Xe.Function],[Xe.RightParenthesis,Xe.Percentage],[Xe.RightParenthesis,Xe.Dimension],[Xe.RightParenthesis,Xe.Hash],[Xe.RightParenthesis,"-"]]);function tt(e){const t=new Set(e.map((([e,t])=>Je(e)<<16|Je(t))));return function(e,n,r){const o=Je(n,r),i=r.charCodeAt(0);return(45===i&&n!==Xe.Ident&&n!==Xe.Function&&n!==Xe.CDC||43===i?t.has(e<<16|i<<8):t.has(e<<16|o))&&this.emit(" ",Xe.WhiteSpace,!0),o}}const nt=tt(Qe),rt=tt(et);Ye.safe=rt,Ye.spec=nt;const ot=b,it=Pe,at=Ye,st=y;function lt(e,t){if("function"!=typeof t)e.children.forEach(this.node,this);else{let n=null;e.children.forEach((e=>{null!==n&&t.call(this,n),this.node(e),n=e}))}}function ct(e){ot.tokenize(e,((t,n,r)=>{this.token(t,e.slice(n,r))}))}ze.createGenerator=function(e){const t=new Map;for(let[n,r]of Object.entries(e.node))"function"==typeof(r.generate||r)&&t.set(n,r.generate||r);return function(e,n){let r="",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:at.safe,token(e,t){o=this.tokenBefore(o,e,t),this.emit(t,e,!1),e===st.Delim&&92===t.charCodeAt(0)&&this.emit("\n",st.WhiteSpace,!0)},emit(e){r+=e},result:()=>r};n&&("function"==typeof n.decorator&&(i=n.decorator(i)),n.sourceMap&&(i=it.generateSourceMap(i)),n.mode in at&&(i.tokenBefore=at[n.mode]));const a={node:e=>i.node(e),children:lt,token:(e,t)=>i.token(e,t),tokenize:ct};return i.node(e),i.result()}};var ut={};const ht=ie;ut.createConvertor=function(e){return{fromPlainObject:t=>(e(t,{enter(e){e.children&&e.children instanceof ht.List==0&&(e.children=(new ht.List).fromArray(e.children))}}),t),toPlainObject:t=>(e(t,{leave(e){e.children&&e.children instanceof ht.List&&(e.children=e.children.toArray())}}),t)}};var dt={};const{hasOwnProperty:pt}=Object.prototype,mt=function(){};function ft(e){return"function"==typeof e?e:mt}function gt(e,t){return function(n,r,o){n.type===t&&e.call(this,n,r,o)}}function bt(e,t){const n=t.structure,r=[];for(const e in n){if(!1===pt.call(n,e))continue;let t=n[e];const o={name:e,type:!1,nullable:!1};Array.isArray(t)||(t=[t]);for(const e of t)null===e?o.nullable=!0:"string"==typeof e?o.type="node":Array.isArray(e)&&(o.type="list");o.type&&r.push(o)}return r.length?{context:t.walkContext,fields:r}:null}function yt(e,t){const n=e.fields.slice(),r=e.context,o="string"==typeof r;return t&&n.reverse(),function(e,i,a,s){let l;o&&(l=i[r],i[r]=e);for(const r of n){const n=e[r.name];if(!r.nullable||n)if("list"===r.type){if(t?n.reduceRight(s,!1):n.reduce(s,!1))return!0}else if(a(n))return!0}o&&(i[r]=l)}}function kt({StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:o}){return{Atrule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Rule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Declaration:{StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:o}}}dt.createWalker=function(e){const t=function(e){const t={};for(const n in e.node)if(pt.call(e.node,n)){const r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=bt(0,r)}return t}(e),n={},r={},o=Symbol("break-walk"),i=Symbol("skip-node");for(const e in t)pt.call(t,e)&&null!==t[e]&&(n[e]=yt(t[e],!1),r[e]=yt(t[e],!0));const a=kt(n),s=kt(r),l=function(e,l){function c(e,t,n){const r=u.call(m,e,t,n);return r===o||r!==i&&(!(!d.hasOwnProperty(e.type)||!d[e.type](e,m,c,p))||h.call(m,e,t,n)===o)}let u=mt,h=mt,d=n,p=(e,t,n,r)=>e||c(t,n,r);const 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=ft(l.enter),h=ft(l.leave),l.reverse&&(d=r),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=gt(u,l.visit),h=gt(h,l.visit)}if(u===mt&&h===mt)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 n=null;return l(e,(function(e,r,i){if(t.call(this,e,r,i))return n=e,o})),n},l.findLast=function(e,t){let n=null;return l(e,{reverse:!0,enter(e,r,i){if(t.call(this,e,r,i))return n=e,o}}),n},l.findAll=function(e,t){const n=[];return l(e,(function(e,r,o){t.call(this,e,r,o)&&n.push(e)})),n},l};var wt={},vt={},xt={};function St(e){return e}function _t(e,t,n,r){let o;switch(e.type){case"Group":o=function(e,t,n,r){const o=" "===e.combinator||r?e.combinator:" "+e.combinator+" ",i=e.terms.map((e=>_t(e,t,n,r))).join(o);return e.explicit||n?(r||","===i[0]?"[":"[ ")+i+(r?"]":" ]"):i}(e,t,n,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return _t(e.term,t,n,r)+t(function(e){const{min:t,max:n,comma:r}=e;return 0===t&&0===n?r?"#?":"*":0===t&&1===n?"?":1===t&&0===n?r?"#":"+":1===t&&1===n?"":(r?"#":"")+(t===n?"{"+t+"}":"{"+t+","+(0!==n?n:"")+"}")}(e),e);case"Type":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)}xt.generate=function(e,t){let n=St,r=!1,o=!1;return"function"==typeof t?n=t:t&&(r=Boolean(t.forceBraces),o=Boolean(t.compact),"function"==typeof t.decorate&&(n=t.decorate)),_t(e,n,r,o)};const Ct=ce,At=xt,zt={offset:0,line:1,column:1};function Pt(e,t){const n=e&&e.loc&&e.loc[t];return n?"line"in n?Et(n):n:null}function Et({offset:e,line:t,column:n},r){const o={offset:e,line:t,column:n};if(r){const e=r.split(/\n|\r\n?|\f/);o.offset+=r.length,o.line+=e.length-1,o.column=1===e.length?o.column+r.length:e.pop().length+1}return o}vt.SyntaxMatchError=function(e,t,n,r){const o=Ct.createCustomError("SyntaxMatchError",e),{css:i,mismatchOffset:a,mismatchLength:s,start:l,end:c}=function(e,t){const n=e.tokens,r=e.longestMatch,o=r<n.length&&n[r].node||null,i=o!==t?o:null;let a,s,l=0,c=0,u=0,h="";for(let e=0;e<n.length;e++){const t=n[e].value;e===r&&(c=t.length,l=h.length),null!==i&&n[e].node===i&&(e<=r?u++:u=0),h+=t}return r===n.length||u>1?(a=Pt(i||t,"end")||Et(zt,h),s=Et(a)):(a=Pt(i,"start")||Et(Pt(t,"start")||zt,h.slice(0,l)),s=Pt(i,"end")||Et(a,h.substr(l,c))),{css:h,mismatchOffset:l,mismatchLength:c,start:a,end:s}}(r,n);return o.rawMessage=e,o.syntax=t?At.generate(t):"<generic>",o.css=i,o.mismatchOffset=a,o.mismatchLength=s,o.message=e+"\n syntax: "+o.syntax+"\n value: "+(i||"<empty string>")+"\n --------"+new Array(o.mismatchOffset+1).join("-")+"^",Object.assign(o,l),o.loc={source:n&&n.loc&&n.loc.source||"<unknown>",start:l,end:c},o},vt.SyntaxReferenceError=function(e,t){const n=Ct.createCustomError("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n};var Lt={};const Ot=new Map,Nt=new Map,Tt=Dt;function Rt(e,t){return t=t||0,e.length-t>=2&&45===e.charCodeAt(t)&&45===e.charCodeAt(t+1)}function Dt(e,t){if(t=t||0,e.length-t>=3&&45===e.charCodeAt(t)&&45!==e.charCodeAt(t+1)){const n=e.indexOf("-",t+2);if(-1!==n)return e.substring(t,n+1)}return""}Lt.isCustomProperty=Rt,Lt.keyword=function(e){if(Ot.has(e))return Ot.get(e);const t=e.toLowerCase();let n=Ot.get(t);if(void 0===n){const e=Rt(t,0),r=e?"":Dt(t,0);n=Object.freeze({basename:t.substr(r.length),name:t,prefix:r,vendor:r,custom:e})}return Ot.set(e,n),n},Lt.property=function(e){if(Nt.has(e))return Nt.get(e);let t=e,n=e[0];"/"===n?n="/"===e[1]?"//":"/":"_"!==n&&"*"!==n&&"$"!==n&&"#"!==n&&"+"!==n&&"&"!==n&&(n="");const r=Rt(t,n.length);if(!r&&(t=t.toLowerCase(),Nt.has(t))){const n=Nt.get(t);return Nt.set(e,n),n}const o=r?"":Dt(t,n.length),i=t.substr(0,n.length+o.length),a=Object.freeze({basename:t.substr(i.length),name:t.substr(n.length),hack:n,vendor:o,prefix:i,custom:r});return Nt.set(e,a),a},Lt.vendorPrefix=Tt;var It={cssWideKeywords:["initial","inherit","unset","revert","revert-layer"]},Bt={};const Mt=k,jt=y,Ft=O,Ut=43,Wt=45,Ht=!0;function qt(e,t){return null!==e&&e.type===jt.Delim&&e.value.charCodeAt(0)===t}function Vt(e,t,n){for(;null!==e&&(e.type===jt.WhiteSpace||e.type===jt.Comment);)e=n(++t);return t}function $t(e,t,n,r){if(!e)return 0;const o=e.value.charCodeAt(t);if(o===Ut||o===Wt){if(n)return 0;t++}for(;t<e.value.length;t++)if(!Mt.isDigit(e.value.charCodeAt(t)))return 0;return r+1}function Kt(e,t,n){let r=!1,o=Vt(e,t,n);if(null===(e=n(o)))return t;if(e.type!==jt.Number){if(!qt(e,Ut)&&!qt(e,Wt))return t;if(r=!0,o=Vt(n(++o),o,n),null===(e=n(o))||e.type!==jt.Number)return 0}if(!r){const t=e.value.charCodeAt(0);if(t!==Ut&&t!==Wt)return 0}return $t(e,r?0:1,r,o)}const Zt=k,Gt=y,Yt=O;function Xt(e,t){return null!==e&&e.type===Gt.Delim&&e.value.charCodeAt(0)===t}function Jt(e,t,n){let r=0;for(let o=t;o<e.value.length;o++){const i=e.value.charCodeAt(o);if(45===i&&n&&0!==r)return Jt(e,t+r+1,!1),6;if(!Zt.isHexDigit(i))return 0;if(++r>6)return 0}return r}function Qt(e,t,n){if(!e)return 0;for(;Xt(n(t),63);){if(++e>6)return 0;t++}return t}const en=It,tn=function(e,t){let n=0;if(!e)return 0;if(e.type===jt.Number)return $t(e,0,!1,n);if(e.type===jt.Ident&&e.value.charCodeAt(0)===Wt){if(!Ft.cmpChar(e.value,1,110))return 0;switch(e.value.length){case 2:return Kt(t(++n),n,t);case 3:return e.value.charCodeAt(2)!==Wt?0:(n=Vt(t(++n),n,t),$t(e=t(n),0,Ht,n));default:return e.value.charCodeAt(2)!==Wt?0:$t(e,3,Ht,n)}}else if(e.type===jt.Ident||qt(e,Ut)&&t(n+1).type===jt.Ident){if(e.type!==jt.Ident&&(e=t(++n)),null===e||!Ft.cmpChar(e.value,0,110))return 0;switch(e.value.length){case 1:return Kt(t(++n),n,t);case 2:return e.value.charCodeAt(1)!==Wt?0:(n=Vt(t(++n),n,t),$t(e=t(n),0,Ht,n));default:return e.value.charCodeAt(1)!==Wt?0:$t(e,2,Ht,n)}}else if(e.type===jt.Dimension){let r=e.value.charCodeAt(0),o=r===Ut||r===Wt?1:0,i=o;for(;i<e.value.length&&Mt.isDigit(e.value.charCodeAt(i));i++);return i===o?0:Ft.cmpChar(e.value,i,110)?i+1===e.value.length?Kt(t(++n),n,t):e.value.charCodeAt(i+1)!==Wt?0:i+2===e.value.length?(n=Vt(t(++n),n,t),$t(e=t(n),0,Ht,n)):$t(e,i+2,Ht,n):0}return 0},nn=function(e,t){let n=0;if(null===e||e.type!==Gt.Ident||!Yt.cmpChar(e.value,0,117))return 0;if(null===(e=t(++n)))return 0;if(Xt(e,43))return null===(e=t(++n))?0:e.type===Gt.Ident?Qt(Jt(e,0,!0),++n,t):Xt(e,63)?Qt(1,++n,t):0;if(e.type===Gt.Number){const r=Jt(e,1,!0);return 0===r?0:null===(e=t(++n))?n:e.type===Gt.Dimension||e.type===Gt.Number?function(e,t){return 45===e.value.charCodeAt(0)}(e)&&Jt(e,1,!1)?n+1:0:Qt(r,n,t)}return e.type===Gt.Dimension?Qt(Jt(e,1,!0),++n,t):0},rn=y,on=k,an=O,sn=["calc(","-moz-calc(","-webkit-calc("],ln=new Map([[rn.Function,rn.RightParenthesis],[rn.LeftParenthesis,rn.RightParenthesis],[rn.LeftSquareBracket,rn.RightSquareBracket],[rn.LeftCurlyBracket,rn.RightCurlyBracket]]);function cn(e,t){return t<e.length?e.charCodeAt(t):0}function un(e,t){return an.cmpStr(e,0,e.length,t)}function hn(e,t){for(let n=0;n<t.length;n++)if(un(e,t[n]))return!0;return!1}function dn(e,t){return t===e.length-2&&92===cn(e,t)&&on.isDigit(cn(e,t+1))}function pn(e,t,n){if(e&&"Range"===e.type){const r=Number(void 0!==n&&n!==t.length?t.substr(0,n):t);if(isNaN(r))return!0;if(null!==e.min&&r<e.min&&"string"!=typeof e.min)return!0;if(null!==e.max&&r>e.max&&"string"!=typeof e.max)return!0}return!1}function mn(e){return function(t,n,r){return null===t?0:t.type===rn.Function&&hn(t.value,sn)?function(e,t){let n=0,r=[],o=0;e:do{switch(e.type){case rn.RightCurlyBracket:case rn.RightParenthesis:case rn.RightSquareBracket:if(e.type!==n)break e;if(n=r.pop(),0===r.length){o++;break e}break;case rn.Function:case rn.LeftParenthesis:case rn.LeftSquareBracket:case rn.LeftCurlyBracket:r.push(n),n=ln.get(e.type)}o++}while(e=t(o));return o}(t,n):e(t,n,r)}}function fn(e){return function(t){return null===t||t.type!==e?0:1}}function gn(e){return null===e||e.type!==rn.Ident||45!==cn(e.value,0)||45!==cn(e.value,1)?0:1}function bn(e){return e&&(e=new Set(e)),function(t,n,r){if(null===t||t.type!==rn.Dimension)return 0;const o=an.consumeNumber(t.value,0);if(null!==e){const n=t.value.indexOf("\\",o),r=-1!==n&&dn(t.value,n)?t.value.substring(o,n):t.value.substr(o);if(!1===e.has(r.toLowerCase()))return 0}return pn(r,t.value,o)?0:1}}function yn(e){return"function"!=typeof e&&(e=function(){return 0}),function(t,n,r){return null!==t&&t.type===rn.Number&&0===Number(t.value)?1:e(t,n,r)}}const kn={"ident-token":fn(rn.Ident),"function-token":fn(rn.Function),"at-keyword-token":fn(rn.AtKeyword),"hash-token":fn(rn.Hash),"string-token":fn(rn.String),"bad-string-token":fn(rn.BadString),"url-token":fn(rn.Url),"bad-url-token":fn(rn.BadUrl),"delim-token":fn(rn.Delim),"number-token":fn(rn.Number),"percentage-token":fn(rn.Percentage),"dimension-token":fn(rn.Dimension),"whitespace-token":fn(rn.WhiteSpace),"CDO-token":fn(rn.CDO),"CDC-token":fn(rn.CDC),"colon-token":fn(rn.Colon),"semicolon-token":fn(rn.Semicolon),"comma-token":fn(rn.Comma),"[-token":fn(rn.LeftSquareBracket),"]-token":fn(rn.RightSquareBracket),"(-token":fn(rn.LeftParenthesis),")-token":fn(rn.RightParenthesis),"{-token":fn(rn.LeftCurlyBracket),"}-token":fn(rn.RightCurlyBracket)},wn={string:fn(rn.String),ident:fn(rn.Ident),percentage:mn((function(e,t,n){return null===e||e.type!==rn.Percentage||pn(n,e.value,e.value.length-1)?0:1})),zero:yn(),number:mn((function(e,t,n){if(null===e)return 0;const r=an.consumeNumber(e.value,0);return r===e.value.length||dn(e.value,r)?pn(n,e.value,r)?0:1:0})),integer:mn((function(e,t,n){if(null===e||e.type!==rn.Number)return 0;let r=43===cn(e.value,0)||45===cn(e.value,0)?1:0;for(;r<e.value.length;r++)if(!on.isDigit(cn(e.value,r)))return 0;return pn(n,e.value,r)?0:1})),"custom-ident":function(e){if(null===e||e.type!==rn.Ident)return 0;const t=e.value.toLowerCase();return hn(t,en.cssWideKeywords)||un(t,"default")?0:1},"dashed-ident":gn,"custom-property-name":function(e){return gn(e)?"--"===e.value?0:1:0},"hex-color":function(e){if(null===e||e.type!==rn.Hash)return 0;const t=e.value.length;if(4!==t&&5!==t&&7!==t&&9!==t)return 0;for(let n=1;n<t;n++)if(!on.isHexDigit(cn(e.value,n)))return 0;return 1},"id-selector":function(e){return null===e||e.type!==rn.Hash?0:on.isIdentifierStart(cn(e.value,1),cn(e.value,2),cn(e.value,3))?1:0},"an-plus-b":tn,urange:nn,"declaration-value":function(e,t){if(!e)return 0;let n=0,r=[],o=0;e:do{switch(e.type){case rn.BadString:case rn.BadUrl:break e;case rn.RightCurlyBracket:case rn.RightParenthesis:case rn.RightSquareBracket:if(e.type!==n)break e;n=r.pop();break;case rn.Semicolon:if(0===n)break e;break;case rn.Delim:if(0===n&&"!"===e.value)break e;break;case rn.Function:case rn.LeftParenthesis:case rn.LeftSquareBracket:case rn.LeftCurlyBracket:r.push(n),n=ln.get(e.type)}o++}while(e=t(o));return o},"any-value":function(e,t){if(!e)return 0;let n=0,r=[],o=0;e:do{switch(e.type){case rn.BadString:case rn.BadUrl:break e;case rn.RightCurlyBracket:case rn.RightParenthesis:case rn.RightSquareBracket:if(e.type!==n)break e;n=r.pop();break;case rn.Function:case rn.LeftParenthesis:case rn.LeftSquareBracket:case rn.LeftCurlyBracket:r.push(n),n=ln.get(e.type)}o++}while(e=t(o));return o}};function vn(e){const{angle:t,decibel:n,frequency:r,flex:o,length:i,resolution:a,semitones:s,time:l}=e||{};return{dimension:mn(bn(null)),angle:mn(bn(t)),decibel:mn(bn(n)),frequency:mn(bn(r)),flex:mn(bn(o)),length:mn(yn(bn(i))),resolution:mn(bn(a)),semitones:mn(bn(s)),time:mn(bn(l))}}Bt.createDemensionTypes=vn,Bt.createGenericTypes=function(e){return{...kn,...wn,...vn(e)}},Bt.productionTypes=wn,Bt.tokenTypes=kn;var xn={angle:["deg","grad","rad","turn"],decibel:["db"],flex:["fr"],frequency:["hz","khz"],length:["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],resolution:["dpi","dpcm","dppx","x"],semitones:["st"],time:["s","ms"]};const Sn=b,_n={decorator(e){const t=[];let n=null;return{...e,node(t){const r=n;n=t,e.node.call(this,t),n=r},emit(e,r,o){t.push({type:r,value:e,node:o?null:n})},result:()=>t}}};var Cn={},An={},zn={},Pn={};const En=ce;Pn.SyntaxError=function(e,t,n){return Object.assign(En.createCustomError("SyntaxError",e),{input:t,offset:n,rawMessage:e,message:e+"\n "+t+"\n--"+new Array((n||t.length)+1).join("-")+"^"})};const Ln=Pn;zn.Tokenizer=class{constructor(e){this.str=e,this.pos=0}charCodeAt(e){return e<this.str.length?this.str.charCodeAt(e):0}charCode(){return this.charCodeAt(this.pos)}nextCharCode(){return this.charCodeAt(this.pos+1)}nextNonWsCode(e){return this.charCodeAt(this.findWsEnd(e))}findWsEnd(e){for(;e<this.str.length;e++){const t=this.str.charCodeAt(e);if(13!==t&&10!==t&&12!==t&&32!==t&&9!==t)break}return e}substringToPos(e){return this.str.substring(this.pos,this.pos=e)}eat(e){this.charCode()!==e&&this.error("Expect `"+String.fromCharCode(e)+"`"),this.pos++}peek(){return this.pos<this.str.length?this.str.charAt(this.pos++):""}error(e){throw new Ln.SyntaxError(e,this.str,this.pos)}};const On=zn,Nn=9,Tn=10,Rn=12,Dn=13,In=32,Bn=33,Mn=35,jn=38,Fn=39,Un=40,Wn=41,Hn=42,qn=43,Vn=44,$n=45,Kn=60,Zn=62,Gn=63,Yn=64,Xn=91,Jn=93,Qn=123,er=124,tr=125,nr=8734,rr=new Uint8Array(128).map(((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0)),or={" ":1,"&&":2,"||":3,"|":4};function ir(e){return e.substringToPos(e.findWsEnd(e.pos))}function ar(e){let t=e.pos;for(;t<e.str.length;t++){const n=e.str.charCodeAt(t);if(n>=128||0===rr[n])break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function sr(e){let t=e.pos;for(;t<e.str.length;t++){const n=e.str.charCodeAt(t);if(n<48||n>57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function lr(e){const 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 cr(e){let t=null,n=null;return e.eat(Qn),t=sr(e),e.charCode()===Vn?(e.pos++,e.charCode()!==tr&&(n=sr(e))):n=t,e.eat(tr),{min:Number(t),max:n?Number(n):0}}function ur(e,t){const n=function(e){let t=null,n=!1;switch(e.charCode()){case Hn:e.pos++,t={min:0,max:0};break;case qn:e.pos++,t={min:1,max:0};break;case Gn:e.pos++,t={min:0,max:1};break;case Mn:e.pos++,n=!0,e.charCode()===Qn?t=cr(e):e.charCode()===Gn?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case Qn:t=cr(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}(e);return null!==n?(n.term=t,e.charCode()===Mn&&e.charCodeAt(e.pos-1)===qn?ur(e,n):n):t}function hr(e){const t=e.peek();return""===t?null:{type:"Token",value:t}}function dr(e,t){function n(e,t){return{type:"Group",terms:e,combinator:t,disallowEmpty:!1,explicit:!1}}let r;for(t=Object.keys(t).sort(((e,t)=>or[e]-or[t]));t.length>0;){r=t.shift();let o=0,i=0;for(;o<e.length;o++){const t=e[o];"Combinator"===t.type&&(t.value===r?(-1===i&&(i=o-1),e.splice(o,1),o--):(-1!==i&&o-i>1&&(e.splice(i,o-i,n(e.slice(i,o),r)),o=i+1),i=-1))}-1!==i&&t.length&&e.splice(i,o-i,n(e.slice(i,o),r))}return r}function pr(e){const t=[],n={};let r,o=null,i=e.pos;for(;r=mr(e);)"Spaces"!==r.type&&("Combinator"===r.type?(null!==o&&"Combinator"!==o.type||(e.pos=i,e.error("Unexpected combinator")),n[r.value]=!0):null!==o&&"Combinator"!==o.type&&(n[" "]=!0,t.push({type:"Combinator",value:" "})),t.push(r),o=r,i=e.pos);return null!==o&&"Combinator"===o.type&&(e.pos-=i,e.error("Unexpected combinator")),{type:"Group",terms:t,combinator:dr(t,n)||" ",disallowEmpty:!1,explicit:!1}}function mr(e){let t=e.charCode();if(t<128&&1===rr[t])return function(e){const t=ar(e);return e.charCode()===Un?(e.pos++,{type:"Function",name:t}):ur(e,{type:"Keyword",name:t})}(e);switch(t){case Jn:break;case Xn:return ur(e,function(e){let t;return e.eat(Xn),t=pr(e),e.eat(Jn),t.explicit=!0,e.charCode()===Bn&&(e.pos++,t.disallowEmpty=!0),t}(e));case Kn:return e.nextCharCode()===Fn?function(e){let t;return e.eat(Kn),e.eat(Fn),t=ar(e),e.eat(Fn),e.eat(Zn),ur(e,{type:"Property",name:t})}(e):function(e){let t,n=null;return e.eat(Kn),t=ar(e),e.charCode()===Un&&e.nextCharCode()===Wn&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===Xn&&(ir(e),n=function(e){let t=null,n=null,r=1;return e.eat(Xn),e.charCode()===$n&&(e.peek(),r=-1),-1==r&&e.charCode()===nr?e.peek():(t=r*Number(sr(e)),0!==rr[e.charCode()]&&(t+=ar(e))),ir(e),e.eat(Vn),ir(e),e.charCode()===nr?e.peek():(r=1,e.charCode()===$n&&(e.peek(),r=-1),n=r*Number(sr(e)),0!==rr[e.charCode()]&&(n+=ar(e))),e.eat(Jn),{type:"Range",min:t,max:n}}(e)),e.eat(Zn),ur(e,{type:"Type",name:t,opts:n})}(e);case er:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===er?2:1))};case jn:return e.pos++,e.eat(jn),{type:"Combinator",value:"&&"};case Vn:return e.pos++,{type:"Comma"};case Fn:return ur(e,{type:"String",value:lr(e)});case In:case Nn:case Tn:case Dn:case Rn:return{type:"Spaces",value:ir(e)};case Yn:return t=e.nextCharCode(),t<128&&1===rr[t]?(e.pos++,{type:"AtKeyword",name:ar(e)}):hr(e);case Hn:case qn:case Gn:case Mn:case Bn:break;case Qn:if(t=e.nextCharCode(),t<48||t>57)return hr(e);break;default:return hr(e)}}An.parse=function(e){const t=new On.Tokenizer(e),n=pr(t);return t.pos!==e.length&&t.error("Unexpected input"),1===n.terms.length&&"Group"===n.terms[0].type?n.terms[0]:n};const fr=An,gr={type:"Match"},br={type:"Mismatch"},yr={type:"DisallowEmpty"},kr=40,wr=41;function vr(e,t,n){return t===gr&&n===br||e===gr&&t===gr&&n===gr?e:("If"===e.type&&e.else===br&&t===gr&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function xr(e){return e.length>2&&e.charCodeAt(e.length-2)===kr&&e.charCodeAt(e.length-1)===wr}function Sr(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&&xr(e.name)}function _r(e,t,n){switch(e){case" ":{let e=gr;for(let n=t.length-1;n>=0;n--)e=vr(t[n],e,br);return e}case"|":{let e=br,n=null;for(let r=t.length-1;r>=0;r--){let o=t[r];if(Sr(o)&&(null===n&&r>0&&Sr(t[r-1])&&(n=Object.create(null),e=vr({type:"Enum",map:n},gr,e)),null!==n)){const e=(xr(o.name)?o.name.slice(0,-1):o.name).toLowerCase();if(e in n==0){n[e]=o;continue}}n=null,e=vr(o,gr,e)}return e}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let n=br;for(let r=t.length-1;r>=0;r--){const o=t[r];let i;i=t.length>1?_r(e,t.filter((function(e){return e!==o})),!1):gr,n=vr(o,i,n)}return n}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?gr:br;for(let n=t.length-1;n>=0;n--){const o=t[n];let i;i=t.length>1?_r(e,t.filter((function(e){return e!==o})),!0):gr,r=vr(o,i,r)}return r}}}function Cr(e){if("function"==typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=_r(e.combinator,e.terms.map(Cr),!1);return e.disallowEmpty&&(t=vr(t,yr,br)),t}case"Multiplier":return function(e){let t=gr,n=Cr(e.term);if(0===e.max)n=vr(n,yr,br),t=vr(n,null,br),t.then=vr(gr,gr,t),e.comma&&(t.then.else=vr({type:"Comma",syntax:e},t,br));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==gr&&(t=vr({type:"Comma",syntax:e},t,br)),t=vr(n,vr(gr,gr,t),br);if(0===e.min)t=vr(gr,gr,t);else for(let r=0;r<e.min-1;r++)e.comma&&t!==gr&&(t=vr({type:"Comma",syntax:e},t,br)),t=vr(n,t,br);return t}(e);case"Type":case"Property":return{type:e.type,name:e.name,syntax:e};case"Keyword":return{type:e.type,name:e.name.toLowerCase(),syntax:e};case"AtKeyword":return{type:e.type,name:"@"+e.name.toLowerCase(),syntax:e};case"Function":return{type:e.type,name:e.name.toLowerCase()+"(",syntax:e};case"String":return 3===e.value.length?{type:"Token",value:e.value.charAt(1),syntax:e}:{type:e.type,value:e.value.substr(1,e.value.length-2).replace(/\\'/g,"'"),syntax:e};case"Token":return{type:e.type,value:e.value,syntax:e};case"Comma":return{type:e.type,syntax:e};default:throw new Error("Unknown node type:",e.type)}}Cn.DISALLOW_EMPTY=yr,Cn.MATCH=gr,Cn.MISMATCH=br,Cn.buildMatchGraph=function(e,t){return"string"==typeof e&&(e=fr.parse(e)),{type:"MatchGraph",match:Cr(e),syntax:t||null,source:e}};var Ar={};const zr=Cn,Pr=y,{hasOwnProperty:Er}=Object.prototype,Lr="Match";function Or(e){let t=null,n=null,r=e;for(;null!==r;)n=r.prev,r.prev=t,t=r,r=n;return t}function Nr(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){const r=t.charCodeAt(n);let o=e.charCodeAt(n);if(o>=65&&o<=90&&(o|=32),o!==r)return!1}return!0}function Tr(e){return null===e||e.type===Pr.Comma||e.type===Pr.Function||e.type===Pr.LeftParenthesis||e.type===Pr.LeftSquareBracket||e.type===Pr.LeftCurlyBracket||function(e){return e.type===Pr.Delim&&"?"!==e.value}(e)}function Rr(e){return null===e||e.type===Pr.RightParenthesis||e.type===Pr.RightSquareBracket||e.type===Pr.RightCurlyBracket||e.type===Pr.Delim&&"/"===e.value}function Dr(e,t,n){function r(){do{b++,g=b<e.length?e[b]:null}while(null!==g&&(g.type===Pr.WhiteSpace||g.type===Pr.Comment))}function o(t){const n=b+t;return n<e.length?e[n]:null}function i(e,t){return{nextState:e,matchStack:k,syntaxStack:u,thenStack:h,tokenIndex:b,prev:t}}function a(e){h={nextState:e,matchStack:k,syntaxStack:u,prev:h}}function s(e){d=i(e,d)}function l(){k={type:1,syntax:t.syntax,token:g,prev:k},r(),p=null,b>y&&(y=b)}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,b=-1,y=0,k={type:0,syntax:null,token:null,prev:null};for(r();null===f&&++m<15e3;)switch(t.type){case"Match":if(null===h){if(null!==g&&(b!==e.length-1||"\\0"!==g.value&&"\\9"!==g.value)){t=zr.MISMATCH;break}f=Lr;break}if((t=h.nextState)===zr.DISALLOW_EMPTY){if(h.matchStack===k){t=zr.MISMATCH;break}t=zr.MATCH}for(;h.syntaxStack!==u;)c();h=h.prev;break;case"Mismatch":if(null!==p&&!1!==p)(null===d||b>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,b=d.tokenIndex,g=b<e.length?e[b]:null,d=d.prev;break;case"MatchGraph":t=t.match;break;case"If":t.else!==zr.MISMATCH&&s(t.else),t.then!==zr.MATCH&&a(t.then),t=t.match;break;case"MatchOnce":t={type:"MatchOnceBuffer",syntax:t,index:0,mask:0};break;case"MatchOnceBuffer":{const e=t.syntax.terms;if(t.index===e.length){if(0===t.mask||t.syntax.all){t=zr.MISMATCH;break}t=zr.MATCH;break}if(t.mask===(1<<e.length)-1){t=zr.MATCH;break}for(;t.index<e.length;t.index++){const n=1<<t.index;if(0==(t.mask&n)){s(t),a({type:"AddMatchOnce",syntax:t.syntax,mask:t.mask|n}),t=e[t.index++];break}}break}case"AddMatchOnce":t={type:"MatchOnceBuffer",syntax:t.syntax,index:0,mask:t.mask};break;case"Enum":if(null!==g){let e=g.value.toLowerCase();if(-1!==e.indexOf("\\")&&(e=e.replace(/\\[09].*$/,"")),Er.call(t.map,e)){t=t.map[e];break}}t=zr.MISMATCH;break;case"Generic":{const e=null!==u?u.opts:null,n=b+Math.floor(t.fn(g,o,e));if(!isNaN(n)&&n>b){for(;b<n;)l();t=zr.MATCH}else t=zr.MISMATCH;break}case"Type":case"Property":{const e="Type"===t.type?"types":"properties",r=Er.call(n,e)?n[e][t.name]:null;if(!r||!r.match)throw new Error("Bad syntax reference: "+("Type"===t.type?"<"+t.name+">":"<'"+t.name+"'>"));if(!1!==p&&null!==g&&"Type"===t.type&&("custom-ident"===t.name&&g.type===Pr.Ident||"length"===t.name&&"0"===g.value)){null===p&&(p=i(t,d)),t=zr.MISMATCH;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=r.match;break}case"Keyword":{const e=t.name;if(null!==g){let n=g.value;if(-1!==n.indexOf("\\")&&(n=n.replace(/\\[09].*$/,"")),Nr(n,e)){l(),t=zr.MATCH;break}}t=zr.MISMATCH;break}case"AtKeyword":case"Function":if(null!==g&&Nr(g.value,t.name)){l(),t=zr.MATCH;break}t=zr.MISMATCH;break;case"Token":if(null!==g&&g.value===t.value){l(),t=zr.MATCH;break}t=zr.MISMATCH;break;case"Comma":null!==g&&g.type===Pr.Comma?Tr(k.token)?t=zr.MISMATCH:(l(),t=Rr(g)?zr.MISMATCH:zr.MATCH):t=Tr(k.token)||Rr(g)?zr.MATCH:zr.MISMATCH;break;case"String":let r="",m=b;for(;m<e.length&&r.length<t.value.length;m++)r+=e[m].value;if(Nr(r,t.value)){for(;b<m;)l();t=zr.MATCH}else t=zr.MISMATCH;break;default:throw new Error("Unknown node type: "+t.type)}switch(f){case null:console.warn("[csstree-match] BREAK after 15000 iterations"),f="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",k=null;break;case Lr:for(;null!==u;)c();break;default:k=null}return{tokens:e,reason:f,iterations:m,match:k,longestMatch:y}}Ar.matchAsList=function(e,t,n){const r=Dr(e,t,n||{});if(null!==r.match){let e=Or(r.match).prev;for(r.match=[];null!==e;){switch(e.type){case 2:case 3:r.match.push({type:e.type,syntax:e.syntax});break;default:r.match.push({token:e.token.value,node:e.token.node})}e=e.prev}}return r},Ar.matchAsTree=function(e,t,n){const r=Dr(e,t,n||{});if(null===r.match)return r;let o=r.match,i=r.match={syntax:t.syntax||null,match:[]};const a=[i];for(o=Or(o).prev;null!==o;){switch(o.type){case 2:i.match.push(i={syntax:o.syntax,match:[]}),a.push(i);break;case 3:a.pop(),i=a[a.length-1];break;default:i.match.push({syntax:o.syntax||null,token:o.token.value,node:o.token.node})}o=o.prev}return r};var Ir={};function Br(e){function t(e){return null!==e&&("Type"===e.type||"Property"===e.type||"Keyword"===e.type)}let n=null;return null!==this.matched&&function r(o){if(Array.isArray(o.match)){for(let e=0;e<o.match.length;e++)if(r(o.match[e]))return t(o.syntax)&&n.unshift(o.syntax),!0}else if(o.node===e)return n=t(o.syntax)?[o.syntax]:[],!0;return!1}(this.matched),n}function Mr(e,t,n){const r=Br.call(e,t);return null!==r&&r.some(n)}Ir.getTrace=Br,Ir.isKeyword=function(e){return Mr(this,e,(e=>"Keyword"===e.type))},Ir.isProperty=function(e,t){return Mr(this,e,(e=>"Property"===e.type&&e.name===t))},Ir.isType=function(e,t){return Mr(this,e,(e=>"Type"===e.type&&e.name===t))};var jr={};const Fr=ie;function Ur(e){return"node"in e?e.node:Ur(e.match[0])}function Wr(e){return"node"in e?e.node:Wr(e.match[e.match.length-1])}jr.matchFragments=function(e,t,n,r,o){const i=[];return null!==n.matched&&function n(a){if(null!==a.syntax&&a.syntax.type===r&&a.syntax.name===o){const n=Ur(a),r=Wr(a);e.syntax.walk(t,(function(e,t,o){if(e===n){const e=new Fr.List;do{if(e.appendData(t.data),t.data===r)break;t=t.next}while(null!==t);i.push({parent:o,nodes:e})}}))}Array.isArray(a.match)&&a.match.forEach(n)}(n.matched),i};var Hr={};const qr=ie,{hasOwnProperty:Vr}=Object.prototype;function $r(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}function Kr(e){return Boolean(e)&&$r(e.offset)&&$r(e.line)&&$r(e.column)}function Zr(e,t){return function(n,r){if(!n||n.constructor!==Object)return r(n,"Type of node should be an Object");for(let o in n){let i=!0;if(!1!==Vr.call(n,o)){if("type"===o)n.type!==e&&r(n,"Wrong node type `"+n.type+"`, expected `"+e+"`");else if("loc"===o){if(null===n.loc)continue;if(n.loc&&n.loc.constructor===Object)if("string"!=typeof n.loc.source)o+=".source";else if(Kr(n.loc.start)){if(Kr(n.loc.end))continue;o+=".end"}else o+=".start";i=!1}else if(t.hasOwnProperty(o)){i=!1;for(let e=0;!i&&e<t[o].length;e++){const r=t[o][e];switch(r){case String:i="string"==typeof n[o];break;case Boolean:i="boolean"==typeof n[o];break;case null:i=null===n[o];break;default:"string"==typeof r?i=n[o]&&n[o].type===r:Array.isArray(r)&&(i=n[o]instanceof qr.List)}}}else r(n,"Unknown field `"+o+"` for "+e+" node type");i||r(n,"Bad value for `"+e+"."+o+"`")}}for(const o in t)Vr.call(t,o)&&!1===Vr.call(n,o)&&r(n,"Field `"+e+"."+o+"` is missed")}}function Gr(e,t){const n=t.structure,r={type:String,loc:!0},o={type:'"'+e+'"'};for(const t in n){if(!1===Vr.call(n,t))continue;const i=[],a=r[t]=Array.isArray(n[t])?n[t].slice():[n[t]];for(let n=0;n<a.length;n++){const r=a[n];if(r===String||r===Boolean)i.push(r.name);else if(null===r)i.push("null");else if("string"==typeof r)i.push("<"+r+">");else{if(!Array.isArray(r))throw new Error("Wrong value `"+r+"` in `"+e+"."+t+"` structure definition");i.push("List")}}o[t]=i.join(" | ")}return{docs:o,check:Zr(e,r)}}Hr.getStructureFromConfig=function(e){const t={};if(e.node)for(const n in e.node)if(Vr.call(e.node,n)){const r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=Gr(n,r)}return t};var Yr={};const Xr=function(){};function Jr(e){return"function"==typeof e?e:Xr}Yr.walk=function(e,t,n){let r=Xr,o=Xr;if("function"==typeof t?r=t:t&&(r=Jr(t.enter),o=Jr(t.leave)),r===Xr&&o===Xr)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");!function e(t){switch(r.call(n,t),t.type){case"Group":t.terms.forEach(e);break;case"Multiplier":e(t.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+t.type)}o.call(n,t)}(e)};const Qr=vt,eo=Lt,to=It,no=Bt,ro=xn,oo=function(e,t){return"string"==typeof e?function(e){const t=[];return Sn.tokenize(e,((n,r,o)=>t.push({type:n,value:e.slice(r,o),node:null}))),t}(e):t.generate(e,_n)},io=Cn,ao=Ar,so=Ir,lo=jr,co=Hr,uo=An,ho=xt,po=Yr,mo=io.buildMatchGraph(to.cssWideKeywords.join(" | "));function fo(e,t,n){const r={};for(const o in e)e[o].syntax&&(r[o]=n?e[o].syntax:ho.generate(e[o].syntax,{compact:t}));return r}function go(e,t,n){const r={};for(const[o,i]of Object.entries(e))r[o]={prelude:i.prelude&&(n?i.prelude.syntax:ho.generate(i.prelude.syntax,{compact:t})),descriptors:i.descriptors&&fo(i.descriptors,t,n)};return r}function bo(e,t,n){return{matched:e,iterations:n,error:t,...so}}function yo(e,t,n,r){const o=oo(n,e.syntax);let i;return function(e){for(let t=0;t<e.length;t++)if("var("===e[t].value.toLowerCase())return!0;return!1}(o)?bo(null,new Error("Matching for a tree with var() is not supported")):(r&&(i=ao.matchAsTree(o,e.cssWideKeywordsSyntax,e)),r&&i.match||(i=ao.matchAsTree(o,t.match,e),i.match)?bo(i.match,null,i.iterations):bo(null,new Qr.SyntaxMatchError(i.reason,t.syntax,n,i),i.iterations))}function ko(e,t){return"string"==typeof t&&/^\s*\|/.test(t)?"string"==typeof e?e+t:t.replace(/^\s*\|\s*/,""):t||null}function wo(e,t){const n=Object.create(null);for(const[r,o]of Object.entries(e))if(o){n[r]={};for(const e of Object.keys(o))t.includes(e)&&(n[r][e]=o[e])}return n}wt.Lexer=class{constructor(e,t,n){if(this.cssWideKeywordsSyntax=mo,this.syntax=t,this.generic=!1,this.units={...ro},this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=n||co.getStructureFromConfig(e),e){if(e.units)for(const t of Object.keys(ro))Array.isArray(e.units[t])&&(this.units[t]=e.units[t]);if(e.types)for(const[t,n]of Object.entries(e.types))this.addType_(t,n);if(e.generic){this.generic=!0;for(const[e,t]of Object.entries(no.createGenericTypes(this.units)))this.addType_(e,t)}if(e.atrules)for(const[t,n]of Object.entries(e.atrules))this.addAtrule_(t,n);if(e.properties)for(const[t,n]of Object.entries(e.properties))this.addProperty_(t,n)}}checkStructure(e){function t(e,t){r.push({node:e,message:t})}const n=this.structure,r=[];return this.syntax.walk(e,(function(e){n.hasOwnProperty(e.type)?n[e.type].check(e,t):t(e,"Unknown node type `"+e.type+"`")})),!!r.length&&r}createDescriptor(e,t,n,r=null){const o={type:t,name:n},i={type:t,name:n,parent:r,serializable:"string"==typeof e||e&&"string"==typeof e.type,syntax:null,match:null};return"function"==typeof e?i.match=io.buildMatchGraph(e,o):("string"==typeof e?Object.defineProperty(i,"syntax",{get:()=>(Object.defineProperty(i,"syntax",{value:uo.parse(e)}),i.syntax)}):i.syntax=e,Object.defineProperty(i,"match",{get:()=>(Object.defineProperty(i,"match",{value:io.buildMatchGraph(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(((n,r)=>(n[r]=this.createDescriptor(t.descriptors[r],"AtruleDescriptor",r,e),n)),Object.create(null)):null})}addProperty_(e,t){t&&(this.properties[e]=this.createDescriptor(t,"Property",e))}addType_(e,t){t&&(this.types[e]=this.createDescriptor(t,"Type",e))}checkAtruleName(e){if(!this.getAtrule(e))return new Qr.SyntaxReferenceError("Unknown at-rule","@"+e)}checkAtrulePrelude(e,t){const n=this.checkAtruleName(e);if(n)return n;const r=this.getAtrule(e);return!r.prelude&&t?new SyntaxError("At-rule `@"+e+"` should not contain a prelude"):!r.prelude||t||yo(this,r.prelude,"",!1).matched?void 0:new SyntaxError("At-rule `@"+e+"` should contain a prelude")}checkAtruleDescriptorName(e,t){const n=this.checkAtruleName(e);if(n)return n;const r=this.getAtrule(e),o=eo.keyword(t);return r.descriptors?r.descriptors[o.name]||r.descriptors[o.basename]?void 0:new Qr.SyntaxReferenceError("Unknown at-rule descriptor",t):new SyntaxError("At-rule `@"+e+"` has no known descriptors")}checkPropertyName(e){if(!this.getProperty(e))return new Qr.SyntaxReferenceError("Unknown property",e)}matchAtrulePrelude(e,t){const n=this.checkAtrulePrelude(e,t);if(n)return bo(null,n);const r=this.getAtrule(e);return r.prelude?yo(this,r.prelude,t||"",!1):bo(null,null)}matchAtruleDescriptor(e,t,n){const r=this.checkAtruleDescriptorName(e,t);if(r)return bo(null,r);const o=this.getAtrule(e),i=eo.keyword(t);return yo(this,o.descriptors[i.name]||o.descriptors[i.basename],n,!1)}matchDeclaration(e){return"Declaration"!==e.type?bo(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,t){if(eo.property(e).custom)return bo(null,new Error("Lexer matching doesn't applicable for custom properties"));const n=this.checkPropertyName(e);return n?bo(null,n):yo(this,this.getProperty(e),t,!0)}matchType(e,t){const n=this.getType(e);return n?yo(this,n,t,!1):bo(null,new Qr.SyntaxReferenceError("Unknown type",e))}match(e,t){return"string"==typeof e||e&&e.type?("string"!=typeof e&&e.match||(e=this.createDescriptor(e,"Type","anonymous")),yo(this,e,t,!1)):bo(null,new Qr.SyntaxReferenceError("Bad syntax"))}findValueFragments(e,t,n,r){return lo.matchFragments(this,t,this.matchProperty(e,t),n,r)}findDeclarationValueFragments(e,t,n){return lo.matchFragments(this,e.value,this.matchDeclaration(e),t,n)}findAllFragments(e,t,n){const r=[];return this.syntax.walk(e,{visit:"Declaration",enter:e=>{r.push.apply(r,this.findDeclarationValueFragments(e,t,n))}}),r}getAtrule(e,t=!0){const n=eo.keyword(e);return(n.vendor&&t?this.atrules[n.name]||this.atrules[n.basename]:this.atrules[n.name])||null}getAtrulePrelude(e,t=!0){const n=this.getAtrule(e,t);return n&&n.prelude||null}getAtruleDescriptor(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[t]||null}getProperty(e,t=!0){const n=eo.property(e);return(n.vendor&&t?this.properties[n.name]||this.properties[n.basename]:this.properties[n.name])||null}getType(e){return hasOwnProperty.call(this.types,e)?this.types[e]:null}validate(){function e(r,o,i,a){if(i.has(o))return i.get(o);i.set(o,!1),null!==a.syntax&&po.walk(a.syntax,(function(a){if("Type"!==a.type&&"Property"!==a.type)return;const s="Type"===a.type?r.types:r.properties,l="Type"===a.type?t:n;hasOwnProperty.call(s,a.name)&&!e(r,a.name,l,s[a.name])||i.set(o,!0)}),this)}let t=new Map,n=new Map;for(const n in this.types)e(this,n,t,this.types[n]);for(const t in this.properties)e(this,t,n,this.properties[t]);return t=[...t.keys()].filter((e=>t.get(e))),n=[...n.keys()].filter((e=>n.get(e))),t.length||n.length?{types:t,properties:n}:null}dump(e,t){return{generic:this.generic,units:this.units,types:fo(this.types,!t,e),properties:fo(this.properties,!t,e),atrules:go(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}};const vo=b,xo=oe,So=ze,_o=ut,Co=dt,Ao=wt,zo=function(e,t){const n={...e};for(const[r,o]of Object.entries(t))switch(r){case"generic":n[r]=Boolean(o);break;case"units":n[r]={...e[r]};for(const[e,t]of Object.entries(o))n[r][e]=Array.isArray(t)?t:[];break;case"atrules":n[r]={...e[r]};for(const[e,t]of Object.entries(o)){const o=n[r][e]||{},i=n[r][e]={prelude:o.prelude||null,descriptors:{...o.descriptors}};if(t){i.prelude=t.prelude?ko(i.prelude,t.prelude):i.prelude||null;for(const[e,n]of Object.entries(t.descriptors||{}))i.descriptors[e]=n?ko(i.descriptors[e],n):null;Object.keys(i.descriptors).length||(i.descriptors=null)}}break;case"types":case"properties":n[r]={...e[r]};for(const[e,t]of Object.entries(o))n[r][e]=ko(n[r][e],t);break;case"scope":case"features":n[r]={...e[r]};for(const[e,t]of Object.entries(o))n[r][e]={...n[r][e],...t};break;case"parseContext":n[r]={...e[r],...o};break;case"atrule":case"pseudo":n[r]={...e[r],...wo(o,["parse"])};break;case"node":n[r]={...e[r],...wo(o,["name","structure","parse","generate","walkContext"])}}return n};function Po(e){const t=xo.createParser(e),n=Co.createWalker(e),r=So.createGenerator(e),{fromPlainObject:o,toPlainObject:i}=_o.createConvertor(n),a={lexer:null,createLexer:e=>new Ao.Lexer(e,a,a.lexer.structure),tokenize:vo.tokenize,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:o,toPlainObject:i,fork(t){const n=zo({},e);return Po("function"==typeof t?t(n,Object.assign):zo(n,t))}};return a.lexer=new Ao.Lexer({generic:!0,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},a),a}var Eo=e=>Po(zo({},e)),Lo={},Oo={};const No=y,To=k,Ro=43,Do=45,Io=110,Bo=!0;function Mo(e,t){let n=this.tokenStart+e;const r=this.charCodeAt(n);for(r!==Ro&&r!==Do||(t&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)To.isDigit(this.charCodeAt(n))||this.error("Integer is expected",n)}function jo(e){return Mo.call(this,0,e)}function Fo(e,t){if(!this.cmpChar(this.tokenStart+e,t)){let n="";switch(t){case Io:n="N is expected";break;case Do:n="HyphenMinus is expected"}this.error(n,this.tokenStart+e)}}function Uo(){let e=0,t=0,n=this.tokenType;for(;n===No.WhiteSpace||n===No.Comment;)n=this.lookupType(++e);if(n!==No.Number){if(!this.isDelim(Ro,e)&&!this.isDelim(Do,e))return null;t=this.isDelim(Ro,e)?Ro:Do;do{n=this.lookupType(++e)}while(n===No.WhiteSpace||n===No.Comment);n!==No.Number&&(this.skip(e),jo.call(this,Bo))}return e>0&&this.skip(e),0===t&&(n=this.charCodeAt(this.tokenStart),n!==Ro&&n!==Do&&this.error("Number sign is expected")),jo.call(this,0!==t),t===Do?"-"+this.consume(No.Number):this.consume(No.Number)}const Wo={a:[String,null],b:[String,null]};Oo.generate=function(e){if(e.a){const t=("+1"===e.a||"1"===e.a?"n":"-1"===e.a&&"-n")||e.a+"n";if(e.b){const n="-"===e.b[0]||"+"===e.b[0]?e.b:"+"+e.b;this.tokenize(t+n)}else this.tokenize(t)}else this.tokenize(e.b)},Oo.name="AnPlusB",Oo.parse=function(){const e=this.tokenStart;let t=null,n=null;if(this.tokenType===No.Number)jo.call(this,!1),n=this.consume(No.Number);else if(this.tokenType===No.Ident&&this.cmpChar(this.tokenStart,Do))switch(t="-1",Fo.call(this,1,Io),this.tokenEnd-this.tokenStart){case 2:this.next(),n=Uo.call(this);break;case 3:Fo.call(this,2,Do),this.next(),this.skipSC(),jo.call(this,Bo),n="-"+this.consume(No.Number);break;default:Fo.call(this,2,Do),Mo.call(this,3,Bo),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===No.Ident||this.isDelim(Ro)&&this.lookupType(1)===No.Ident){let r=0;switch(t="1",this.isDelim(Ro)&&(r=1,this.next()),Fo.call(this,0,Io),this.tokenEnd-this.tokenStart){case 1:this.next(),n=Uo.call(this);break;case 2:Fo.call(this,1,Do),this.next(),this.skipSC(),jo.call(this,Bo),n="-"+this.consume(No.Number);break;default:Fo.call(this,1,Do),Mo.call(this,2,Bo),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===No.Dimension){const r=this.charCodeAt(this.tokenStart),o=r===Ro||r===Do;let i=this.tokenStart+o;for(;i<this.tokenEnd&&To.isDigit(this.charCodeAt(i));i++);i===this.tokenStart+o&&this.error("Integer is expected",this.tokenStart+o),Fo.call(this,i-this.tokenStart,Io),t=this.substring(e,i),i+1===this.tokenEnd?(this.next(),n=Uo.call(this)):(Fo.call(this,i-this.tokenStart+1,Do),i+2===this.tokenEnd?(this.next(),this.skipSC(),jo.call(this,Bo),n="-"+this.consume(No.Number)):(Mo.call(this,i-this.tokenStart+2,Bo),this.next(),n=this.substrToCursor(i+1)))}else this.error();return null!==t&&t.charCodeAt(0)===Ro&&(t=t.substr(1)),null!==n&&n.charCodeAt(0)===Ro&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(e,this.tokenStart),a:t,b:n}},Oo.structure=Wo;var Ho={};const qo=y;function Vo(){return this.Raw(this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function $o(){for(let e,t=1;e=this.lookupType(t);t++){if(e===qo.RightCurlyBracket)return!0;if(e===qo.LeftCurlyBracket||e===qo.AtKeyword)return!1}return!1}const Ko={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};Ho.generate=function(e){this.token(qo.AtKeyword,"@"+e.name),null!==e.prelude&&this.node(e.prelude),e.block?(this.token(qo.LeftCurlyBracket,"{"),this.node(e.block),this.token(qo.RightCurlyBracket,"}")):this.token(qo.Semicolon,";")},Ho.name="Atrule",Ho.parse=function(e=!1){const t=this.tokenStart;let n,r,o=null,i=null;switch(this.eat(qo.AtKeyword),n=this.substrToCursor(t+1),r=n.toLowerCase(),this.skipSC(),!1===this.eof&&this.tokenType!==qo.LeftCurlyBracket&&this.tokenType!==qo.Semicolon&&(o=this.parseAtrulePrelude?this.parseWithFallback(this.AtrulePrelude.bind(this,n,e),Vo):Vo.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case qo.Semicolon:this.next();break;case qo.LeftCurlyBracket:this.eat(qo.LeftCurlyBracket),i=hasOwnProperty.call(this.atrule,r)&&"function"==typeof this.atrule[r].block?this.atrule[r].block.call(this,e):this.Block($o.call(this)),this.eof||this.eat(qo.RightCurlyBracket)}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:n,prelude:o,block:i}},Ho.structure=Ko,Ho.walkContext="atrule";var Zo={};const Go=y;Zo.generate=function(e){this.children(e)},Zo.name="AtrulePrelude",Zo.parse=function(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&&this.tokenType!==Go.LeftCurlyBracket&&this.tokenType!==Go.Semicolon&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}},Zo.structure={children:[[]]},Zo.walkContext="atrulePrelude";var Yo={};const Xo=y;function Jo(){this.eof&&this.error("Unexpected end of input");const e=this.tokenStart;let t=!1;return this.isDelim(42)?(t=!0,this.next()):this.isDelim(124)||this.eat(Xo.Ident),this.isDelim(124)?61!==this.charCodeAt(this.tokenStart+1)?(this.next(),this.eat(Xo.Ident)):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 Qo(){const 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)}const ei={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};Yo.generate=function(e){this.token(Xo.Delim,"["),this.node(e.name),null!==e.matcher&&(this.tokenize(e.matcher),this.node(e.value)),null!==e.flags&&this.token(Xo.Ident,e.flags),this.token(Xo.Delim,"]")},Yo.name="AttributeSelector",Yo.parse=function(){const e=this.tokenStart;let t,n=null,r=null,o=null;return this.eat(Xo.LeftSquareBracket),this.skipSC(),t=Jo.call(this),this.skipSC(),this.tokenType!==Xo.RightSquareBracket&&(this.tokenType!==Xo.Ident&&(n=Qo.call(this),this.skipSC(),r=this.tokenType===Xo.String?this.String():this.Identifier(),this.skipSC()),this.tokenType===Xo.Ident&&(o=this.consume(Xo.Ident),this.skipSC())),this.eat(Xo.RightSquareBracket),{type:"AttributeSelector",loc:this.getLocation(e,this.tokenStart),name:t,matcher:n,value:r,flags:o}},Yo.structure=ei;var ti={};const ni=y;function ri(){return this.Raw(null,!0)}function oi(){return this.parseWithFallback(this.Rule,ri)}function ii(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}function ai(){if(this.tokenType===ni.Semicolon)return ii.call(this,this.tokenIndex);const e=this.parseWithFallback(this.Declaration,ii);return this.tokenType===ni.Semicolon&&this.next(),e}ti.generate=function(e){this.children(e,(e=>{"Declaration"===e.type&&this.token(ni.Semicolon,";")}))},ti.name="Block",ti.parse=function(e){const t=e?ai:oi,n=this.tokenStart;let r=this.createList();e:for(;!this.eof;)switch(this.tokenType){case ni.RightCurlyBracket:break e;case ni.WhiteSpace:case ni.Comment:this.next();break;case ni.AtKeyword:r.push(this.parseWithFallback(this.Atrule.bind(this,e),ri));break;default:e&&this.isDelim(38)?r.push(oi.call(this)):r.push(t.call(this))}return{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}},ti.structure={children:[["Atrule","Rule","Declaration"]]},ti.walkContext="block";var si={};const li=y;si.generate=function(e){this.token(li.Delim,"["),this.children(e),this.token(li.Delim,"]")},si.name="Brackets",si.parse=function(e,t){const n=this.tokenStart;let r=null;return this.eat(li.LeftSquareBracket),r=e.call(this,t),this.eof||this.eat(li.RightSquareBracket),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:r}},si.structure={children:[[]]};var ci={};const ui=y;ci.generate=function(){this.token(ui.CDC,"--\x3e")},ci.name="CDC",ci.parse=function(){const e=this.tokenStart;return this.eat(ui.CDC),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}},ci.structure=[];var hi={};const di=y;hi.generate=function(){this.token(di.CDO,"\x3c!--")},hi.name="CDO",hi.parse=function(){const e=this.tokenStart;return this.eat(di.CDO),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}},hi.structure=[];var pi={};const mi=y,fi={name:String};pi.generate=function(e){this.token(mi.Delim,"."),this.token(mi.Ident,e.name)},pi.name="ClassSelector",pi.parse=function(){return this.eatDelim(46),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(mi.Ident)}},pi.structure=fi;var gi={};const bi=y,yi={name:String};gi.generate=function(e){this.tokenize(e.name)},gi.name="Combinator",gi.parse=function(){const e=this.tokenStart;let t;switch(this.tokenType){case bi.WhiteSpace:t=" ";break;case bi.Delim: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")}t=this.substrToCursor(e)}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}},gi.structure=yi;var ki={};const wi=y,vi={value:String};ki.generate=function(e){this.token(wi.Comment,"/*"+e.value+"*/")},ki.name="Comment",ki.parse=function(){const e=this.tokenStart;let t=this.tokenEnd;return this.eat(wi.Comment),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)}},ki.structure=vi;var xi={};const Si=y,_i=new Set([Si.Colon,Si.RightParenthesis,Si.EOF]),Ci={kind:String,children:[["Identifier","Feature","FeatureFunction","FeatureRange","SupportsDeclaration"]]};function Ai(e){return this.lookupTypeNonSC(1)===Si.Ident&&_i.has(this.lookupTypeNonSC(2))?this.Feature(e):this.FeatureRange(e)}const zi={media:Ai,container:Ai,supports(){return this.SupportsDeclaration()}};xi.generate=function(e){e.children.forEach((e=>{"Condition"===e.type?(this.token(Si.LeftParenthesis,"("),this.node(e),this.token(Si.RightParenthesis,")")):this.node(e)}))},xi.name="Condition",xi.parse=function(e="media"){const t=this.createList();e:for(;!this.eof;)switch(this.tokenType){case Si.Comment:case Si.WhiteSpace:this.next();continue;case Si.Ident:t.push(this.Identifier());break;case Si.LeftParenthesis:{let n=this.parseWithFallback((()=>zi[e].call(this,e)),(()=>null));n||(n=this.parseWithFallback((()=>{this.eat(Si.LeftParenthesis);const t=this.Condition(e);return this.eat(Si.RightParenthesis),t}),(()=>this.GeneralEnclosed(e)))),t.push(n);break}case Si.Function:{let n=this.parseWithFallback((()=>this.FeatureFunction(e)),(()=>null));n||(n=this.GeneralEnclosed(e)),t.push(n);break}default:break e}return t.isEmpty&&this.error("Condition is expected"),{type:"Condition",loc:this.getLocationFromList(t),kind:e,children:t}},xi.structure=Ci;var Pi={};const Ei=Lt,Li=y;function Oi(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!0)}function Ni(){return this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1)}function Ti(){const e=this.tokenIndex,t=this.Value();return"Raw"!==t.type&&!1===this.eof&&this.tokenType!==Li.Semicolon&&!1===this.isDelim(33)&&!1===this.isBalanceEdge(e)&&this.error(),t}const Ri={important:[Boolean,String],property:String,value:["Value","Raw"]};function Di(){const e=this.tokenStart;if(this.tokenType===Li.Delim)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 this.tokenType===Li.Hash?this.eat(Li.Hash):this.eat(Li.Ident),this.substrToCursor(e)}function Ii(){this.eat(Li.Delim),this.skipSC();const e=this.consume(Li.Ident);return"important"===e||e}Pi.generate=function(e){this.token(Li.Ident,e.property),this.token(Li.Colon,":"),this.node(e.value),e.important&&(this.token(Li.Delim,"!"),this.token(Li.Ident,!0===e.important?"important":e.important))},Pi.name="Declaration",Pi.parse=function(){const e=this.tokenStart,t=this.tokenIndex,n=Di.call(this),r=Ei.isCustomProperty(n),o=r?this.parseCustomProperty:this.parseValue,i=r?Ni:Oi;let a,s=!1;this.skipSC(),this.eat(Li.Colon);const l=this.tokenIndex;if(r||this.skipSC(),a=o?this.parseWithFallback(Ti,i):i.call(this,this.tokenIndex),r&&"Value"===a.type&&a.children.isEmpty)for(let e=l-this.tokenIndex;e<=0;e++)if(this.lookupType(e)===Li.WhiteSpace){a.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}return this.isDelim(33)&&(s=Ii.call(this),this.skipSC()),!1===this.eof&&this.tokenType!==Li.Semicolon&&!1===this.isBalanceEdge(t)&&this.error(),{type:"Declaration",loc:this.getLocation(e,this.tokenStart),important:s,property:n,value:a}},Pi.structure=Ri,Pi.walkContext="declaration";var Bi={};const Mi=y;function ji(){return this.Raw(this.consumeUntilSemicolonIncluded,!0)}Bi.generate=function(e){this.children(e,(e=>{"Declaration"===e.type&&this.token(Mi.Semicolon,";")}))},Bi.name="DeclarationList",Bi.parse=function(){const e=this.createList();for(;!this.eof;)switch(this.tokenType){case Mi.WhiteSpace:case Mi.Comment:case Mi.Semicolon:this.next();break;case Mi.AtKeyword:e.push(this.parseWithFallback(this.Atrule.bind(this,!0),ji));break;default:this.isDelim(38)?e.push(this.parseWithFallback(this.Rule,ji)):e.push(this.parseWithFallback(this.Declaration,ji))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}},Bi.structure={children:[["Declaration","Atrule","Rule"]]};var Fi={};const Ui=y,Wi={value:String,unit:String};Fi.generate=function(e){this.token(Ui.Dimension,e.value+e.unit)},Fi.name="Dimension",Fi.parse=function(){const e=this.tokenStart,t=this.consumeNumber(Ui.Dimension);return{type:"Dimension",loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}},Fi.structure=Wi;var Hi={};const qi=y,Vi={kind:String,name:String,value:["Identifier","Number","Dimension","Ratio","Function",null]};Hi.generate=function(e){this.token(qi.LeftParenthesis,"("),this.token(qi.Ident,e.name),null!==e.value&&(this.token(qi.Colon,":"),this.node(e.value)),this.token(qi.RightParenthesis,")")},Hi.name="Feature",Hi.parse=function(e){const t=this.tokenStart;let n,r=null;if(this.eat(qi.LeftParenthesis),this.skipSC(),n=this.consume(qi.Ident),this.skipSC(),this.tokenType!==qi.RightParenthesis){switch(this.eat(qi.Colon),this.skipSC(),this.tokenType){case qi.Number:r=this.lookupNonWSType(1)===qi.Delim?this.Ratio():this.Number();break;case qi.Dimension:r=this.Dimension();break;case qi.Ident:r=this.Identifier();break;case qi.Function:r=this.parseWithFallback((()=>{const e=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(47)&&this.error(),e}),(()=>this.Ratio()));break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eof||this.eat(qi.RightParenthesis),{type:"Feature",loc:this.getLocation(t,this.tokenStart),kind:e,name:n,value:r}},Hi.structure=Vi;var $i={};const Ki=y,Zi={kind:String,feature:String,value:["Declaration","Selector"]};function Gi(e,t){const n=(this.features[e]||{})[t];return"function"!=typeof n&&this.error(`Unknown feature ${t}()`),n}$i.generate=function(e){this.token(Ki.Function,e.feature+"("),this.node(e.value),this.token(Ki.RightParenthesis,")")},$i.name="FeatureFunction",$i.parse=function(e="unknown"){const t=this.tokenStart,n=this.consumeFunctionName(),r=Gi.call(this,e,n.toLowerCase());this.skipSC();const o=this.parseWithFallback((()=>{const e=this.tokenIndex,t=r.call(this);return!1===this.eof&&!1===this.isBalanceEdge(e)&&this.error(),t}),(()=>this.Raw(null,!1)));return this.eof||this.eat(Ki.RightParenthesis),{type:"FeatureFunction",loc:this.getLocation(t,this.tokenStart),kind:e,feature:n,value:o}},$i.structure=Zi;var Yi={};const Xi=y,Ji={kind:String,left:["Identifier","Number","Dimension","Ratio","Function"],leftComparison:String,middle:["Identifier","Number","Dimension","Ratio","Function"],rightComparison:[String,null],right:["Identifier","Number","Dimension","Ratio","Function",null]};function Qi(){switch(this.skipSC(),this.tokenType){case Xi.Number:return this.isDelim(47,this.lookupOffsetNonSC(1))?this.Ratio():this.Number();case Xi.Dimension:return this.Dimension();case Xi.Ident:return this.Identifier();case Xi.Function:return this.parseWithFallback((()=>{const e=this.Function(this.readSequence,this.scope.Value);return this.skipSC(),this.isDelim(47)&&this.error(),e}),(()=>this.Ratio()));default:this.error("Number, dimension, ratio or identifier is expected")}}function ea(e){if(this.skipSC(),this.isDelim(60)||this.isDelim(62)){const e=this.source[this.tokenStart];return this.next(),this.isDelim(61)?(this.next(),e+"="):e}if(this.isDelim(61))return"=";this.error(`Expected ${e?'":", ':""}"<", ">", "=" or ")"`)}Yi.generate=function(e){this.token(Xi.LeftParenthesis,"("),this.node(e.left),this.tokenize(e.leftComparison),this.node(e.middle),e.right&&(this.tokenize(e.rightComparison),this.node(e.right)),this.token(Xi.RightParenthesis,")")},Yi.name="FeatureRange",Yi.parse=function(e="unknown"){const t=this.tokenStart;this.skipSC(),this.eat(Xi.LeftParenthesis);const n=Qi.call(this),r=ea.call(this,"Identifier"===n.type),o=Qi.call(this);let i=null,a=null;return this.lookupNonWSType(0)!==Xi.RightParenthesis&&(i=ea.call(this),a=Qi.call(this)),this.skipSC(),this.eat(Xi.RightParenthesis),{type:"FeatureRange",loc:this.getLocation(t,this.tokenStart),kind:e,left:n,leftComparison:r,middle:o,rightComparison:i,right:a}},Yi.structure=Ji;var ta={};const na=y,ra={name:String,children:[[]]};ta.generate=function(e){this.token(na.Function,e.name+"("),this.children(e),this.token(na.RightParenthesis,")")},ta.name="Function",ta.parse=function(e,t){const n=this.tokenStart,r=this.consumeFunctionName(),o=r.toLowerCase();let i;return i=t.hasOwnProperty(o)?t[o].call(this,t):e.call(this,t),this.eof||this.eat(na.RightParenthesis),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:r,children:i}},ta.structure=ra,ta.walkContext="function";var oa={};const ia=y,aa={kind:String,function:[String,null],children:[[]]};oa.generate=function(e){e.function?this.token(ia.Function,e.function+"("):this.token(ia.LeftParenthesis,"("),this.children(e),this.token(ia.RightParenthesis,")")},oa.name="GeneralEnclosed",oa.parse=function(e){const t=this.tokenStart;let n=null;this.tokenType===ia.Function?n=this.consumeFunctionName():this.eat(ia.LeftParenthesis);const r=this.parseWithFallback((()=>{const e=this.tokenIndex,t=this.readSequence(this.scope.Value);return!1===this.eof&&!1===this.isBalanceEdge(e)&&this.error(),t}),(()=>this.createSingleNodeList(this.Raw(null,!1))));return this.eof||this.eat(ia.RightParenthesis),{type:"GeneralEnclosed",loc:this.getLocation(t,this.tokenStart),kind:e,function:n,children:r}},oa.structure=aa;var sa={};const la=y,ca={value:String};sa.generate=function(e){this.token(la.Hash,"#"+e.value)},sa.name="Hash",sa.parse=function(){const e=this.tokenStart;return this.eat(la.Hash),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}},sa.structure=ca,sa.xxx="XXX";var ua={};const ha=y,da={name:String};ua.generate=function(e){this.token(ha.Ident,e.name)},ua.name="Identifier",ua.parse=function(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(ha.Ident)}},ua.structure=da;var pa={};const ma=y,fa={name:String};pa.generate=function(e){this.token(ma.Delim,"#"+e.name)},pa.name="IdSelector",pa.parse=function(){const e=this.tokenStart;return this.eat(ma.Hash),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}},pa.structure=fa;var ga={};const ba=y,ya={name:String};ga.generate=function(e){this.tokenize(e.name)},ga.name="Layer",ga.parse=function(){let e=this.consume(ba.Ident);for(;this.isDelim(46);)this.eat(ba.Delim),e+="."+this.consume(ba.Ident);return{type:"Layer",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:e}},ga.structure=ya;var ka={};const wa=y;ka.generate=function(e){this.children(e,(()=>this.token(wa.Comma,",")))},ka.name="LayerList",ka.parse=function(){const e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.Layer()),this.tokenType===wa.Comma);)this.next(),this.skipSC();return{type:"LayerList",loc:this.getLocationFromList(e),children:e}},ka.structure={children:[["MediaQuery"]]};var va={};const xa=y,Sa={modifier:[String,null],mediaType:[String,null],condition:["Condition",null]};va.generate=function(e){e.mediaType?(e.modifier&&this.token(xa.Ident,e.modifier),this.token(xa.Ident,e.mediaType),e.condition&&(this.token(xa.Ident,"and"),this.node(e.condition))):e.condition&&this.node(e.condition)},va.name="MediaQuery",va.parse=function(){const e=this.tokenStart;let t=null,n=null,r=null;if(this.skipSC(),this.tokenType===xa.Ident&&this.lookupTypeNonSC(1)!==xa.LeftParenthesis){const e=this.consume(xa.Ident),o=e.toLowerCase();switch("not"===o||"only"===o?(this.skipSC(),t=o,n=this.consume(xa.Ident)):n=e,this.lookupTypeNonSC(0)){case xa.Ident:this.skipSC(),this.eatIdent("and"),r=this.Condition("media");break;case xa.LeftCurlyBracket:case xa.Semicolon:case xa.Comma:case xa.EOF:break;default:this.error("Identifier or parenthesis is expected")}}else switch(this.tokenType){case xa.Ident:case xa.LeftParenthesis:case xa.Function:r=this.Condition("media");break;case xa.LeftCurlyBracket:case xa.Semicolon:case xa.EOF:break;default:this.error("Identifier or parenthesis is expected")}return{type:"MediaQuery",loc:this.getLocation(e,this.tokenStart),modifier:t,mediaType:n,condition:r}},va.structure=Sa;var _a={};const Ca=y;_a.generate=function(e){this.children(e,(()=>this.token(Ca.Comma,",")))},_a.name="MediaQueryList",_a.parse=function(){const e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===Ca.Comma);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}},_a.structure={children:[["MediaQuery"]]};var Aa={};const za=y;Aa.generate=function(){this.token(za.Delim,"&")},Aa.name="NestingSelector",Aa.parse=function(){const e=this.tokenStart;return this.eatDelim(38),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}},Aa.structure={};var Pa={};const Ea=y;Pa.generate=function(e){this.node(e.nth),null!==e.selector&&(this.token(Ea.Ident,"of"),this.node(e.selector))},Pa.name="Nth",Pa.parse=function(){this.skipSC();const e=this.tokenStart;let t,n=e,r=null;return t=this.lookupValue(0,"odd")||this.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),n=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),r=this.SelectorList(),n=this.tokenStart),{type:"Nth",loc:this.getLocation(e,n),nth:t,selector:r}},Pa.structure={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};var La={};const Oa=y,Na={value:String};La.generate=function(e){this.token(Oa.Number,e.value)},La.name="Number",La.parse=function(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(Oa.Number)}},La.structure=Na;var Ta={};const Ra={value:String};Ta.generate=function(e){this.tokenize(e.value)},Ta.name="Operator",Ta.parse=function(){const e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}},Ta.structure=Ra;var Da={};const Ia=y;Da.generate=function(e){this.token(Ia.LeftParenthesis,"("),this.children(e),this.token(Ia.RightParenthesis,")")},Da.name="Parentheses",Da.parse=function(e,t){const n=this.tokenStart;let r=null;return this.eat(Ia.LeftParenthesis),r=e.call(this,t),this.eof||this.eat(Ia.RightParenthesis),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:r}},Da.structure={children:[[]]};var Ba={};const Ma=y,ja={value:String};Ba.generate=function(e){this.token(Ma.Percentage,e.value+"%")},Ba.name="Percentage",Ba.parse=function(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(Ma.Percentage)}},Ba.structure=ja;var Fa={};const Ua=y,Wa={name:String,children:[["Raw"],null]};Fa.generate=function(e){this.token(Ua.Colon,":"),null===e.children?this.token(Ua.Ident,e.name):(this.token(Ua.Function,e.name+"("),this.children(e),this.token(Ua.RightParenthesis,")"))},Fa.name="PseudoClassSelector",Fa.parse=function(){const e=this.tokenStart;let t,n,r=null;return this.eat(Ua.Colon),this.tokenType===Ua.Function?(t=this.consumeFunctionName(),n=t.toLowerCase(),this.lookupNonWSType(0)==Ua.RightParenthesis?r=this.createList():hasOwnProperty.call(this.pseudo,n)?(this.skipSC(),r=this.pseudo[n].call(this),this.skipSC()):(r=this.createList(),r.push(this.Raw(null,!1))),this.eat(Ua.RightParenthesis)):t=this.consume(Ua.Ident),{type:"PseudoClassSelector",loc:this.getLocation(e,this.tokenStart),name:t,children:r}},Fa.structure=Wa,Fa.walkContext="function";var Ha={};const qa=y,Va={name:String,children:[["Raw"],null]};Ha.generate=function(e){this.token(qa.Colon,":"),this.token(qa.Colon,":"),null===e.children?this.token(qa.Ident,e.name):(this.token(qa.Function,e.name+"("),this.children(e),this.token(qa.RightParenthesis,")"))},Ha.name="PseudoElementSelector",Ha.parse=function(){const e=this.tokenStart;let t,n,r=null;return this.eat(qa.Colon),this.eat(qa.Colon),this.tokenType===qa.Function?(t=this.consumeFunctionName(),n=t.toLowerCase(),this.lookupNonWSType(0)==qa.RightParenthesis?r=this.createList():hasOwnProperty.call(this.pseudo,n)?(this.skipSC(),r=this.pseudo[n].call(this),this.skipSC()):(r=this.createList(),r.push(this.Raw(null,!1))),this.eat(qa.RightParenthesis)):t=this.consume(qa.Ident),{type:"PseudoElementSelector",loc:this.getLocation(e,this.tokenStart),name:t,children:r}},Ha.structure=Va,Ha.walkContext="function";var $a={};const Ka=y;function Za(){switch(this.skipSC(),this.tokenType){case Ka.Number:return this.Number();case Ka.Function:return this.Function(this.readSequence,this.scope.Value);default:this.error("Number of function is expected")}}$a.generate=function(e){this.node(e.left),this.token(Ka.Delim,"/"),e.right?this.node(e.right):this.node(Ka.Number,1)},$a.name="Ratio",$a.parse=function(){const e=this.tokenStart,t=Za.call(this);let n=null;return this.skipSC(),this.isDelim(47)&&(this.eatDelim(47),n=Za.call(this)),{type:"Ratio",loc:this.getLocation(e,this.tokenStart),left:t,right:n}},$a.structure={left:["Number","Function"],right:["Number","Function",null]};var Ga={};const Ya=y;function Xa(){return this.tokenIndex>0&&this.lookupType(-1)===Ya.WhiteSpace?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}const Ja={value:String};Ga.generate=function(e){this.tokenize(e.value)},Ga.name="Raw",Ga.parse=function(e,t){const n=this.getTokenStart(this.tokenIndex);let r;return this.skipUntilBalanced(this.tokenIndex,e||this.consumeUntilBalanceEnd),r=t&&this.tokenStart>n?Xa.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(n,r),value:this.substring(n,r)}},Ga.structure=Ja;var Qa={};const es=y;function ts(){return this.Raw(this.consumeUntilLeftCurlyBracket,!0)}function ns(){const e=this.SelectorList();return"Raw"!==e.type&&!1===this.eof&&this.tokenType!==es.LeftCurlyBracket&&this.error(),e}Qa.generate=function(e){this.node(e.prelude),this.token(es.LeftCurlyBracket,"{"),this.node(e.block),this.token(es.RightCurlyBracket,"}")},Qa.name="Rule",Qa.parse=function(){const e=this.tokenIndex,t=this.tokenStart;let n,r;return n=this.parseRulePrelude?this.parseWithFallback(ns,ts):ts.call(this,e),this.skipSC(),this.eat(es.LeftCurlyBracket),r=this.Block(!0),this.eof||this.eat(es.RightCurlyBracket),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}},Qa.structure={prelude:["SelectorList","Raw"],block:["Block"]},Qa.walkContext="rule";var rs={};const os=y;rs.generate=function(e){e.root&&(this.token(os.LeftParenthesis,"("),this.node(e.root),this.token(os.RightParenthesis,")")),e.limit&&(this.token(os.Ident,"to"),this.token(os.LeftParenthesis,"("),this.node(e.limit),this.token(os.RightParenthesis,")"))},rs.name="Scope",rs.parse=function(){let e=null,t=null;this.skipSC();const n=this.tokenStart;return this.tokenType===os.LeftParenthesis&&(this.next(),this.skipSC(),e=this.parseWithFallback(this.SelectorList,(()=>this.Raw(!1,!0))),this.skipSC(),this.eat(os.RightParenthesis)),this.lookupNonWSType(0)===os.Ident&&(this.skipSC(),this.eatIdent("to"),this.skipSC(),this.eat(os.LeftParenthesis),this.skipSC(),t=this.parseWithFallback(this.SelectorList,(()=>this.Raw(!1,!0))),this.skipSC(),this.eat(os.RightParenthesis)),{type:"Scope",loc:this.getLocation(n,this.tokenStart),root:e,limit:t}},rs.structure={root:["SelectorList","Raw",null],limit:["SelectorList","Raw",null]};var is={generate:function(e){this.children(e)},name:"Selector",parse:function(){const e=this.readSequence(this.scope.Selector);return null===this.getFirstListNode(e)&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(e),children:e}},structure:{children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator"]]}},as={};const ss=y;as.generate=function(e){this.children(e,(()=>this.token(ss.Comma,",")))},as.name="SelectorList",as.parse=function(){const e=this.createList();for(;!this.eof&&(e.push(this.Selector()),this.tokenType===ss.Comma);)this.next();return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}},as.structure={children:[["Selector","Raw"]]},as.walkContext="selector";var ls={},cs={};const us=k,hs=O;cs.decode=function(e){const t=e.length,n=e.charCodeAt(0),r=34===n||39===n?1:0,o=1===r&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1;let i="";for(let n=r;n<=o;n++){let r=e.charCodeAt(n);if(92===r){if(n===o){n!==t-1&&(i=e.substr(n+1));break}if(r=e.charCodeAt(++n),us.isValidEscape(92,r)){const t=n-1,r=hs.consumeEscaped(e,t);n=r-1,i+=hs.decodeEscaped(e.substring(t+1,r))}else 13===r&&10===e.charCodeAt(n+1)&&n++}else i+=e[n]}return i},cs.encode=function(e,t){const n=t?"'":'"',r=t?39:34;let o="",i=!1;for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);0!==n?n<=31||127===n?(o+="\\"+n.toString(16),i=!0):n===r||92===n?(o+="\\"+e.charAt(t),i=!1):(i&&(us.isHexDigit(n)||us.isWhiteSpace(n))&&(o+=" "),o+=e.charAt(t),i=!1):o+="�"}return n+o+n};const ds=cs,ps=y,ms={value:String};ls.generate=function(e){this.token(ps.String,ds.encode(e.value))},ls.name="String",ls.parse=function(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:ds.decode(this.consume(ps.String))}},ls.structure=ms;var fs={};const gs=y;function bs(){return this.Raw(null,!1)}fs.generate=function(e){this.children(e)},fs.name="StyleSheet",fs.parse=function(){const e=this.tokenStart,t=this.createList();let n;for(;!this.eof;){switch(this.tokenType){case gs.WhiteSpace:this.next();continue;case gs.Comment:if(33!==this.charCodeAt(this.tokenStart+2)){this.next();continue}n=this.Comment();break;case gs.CDO:n=this.CDO();break;case gs.CDC:n=this.CDC();break;case gs.AtKeyword:n=this.parseWithFallback(this.Atrule,bs);break;default:n=this.parseWithFallback(this.Rule,bs)}t.push(n)}return{type:"StyleSheet",loc:this.getLocation(e,this.tokenStart),children:t}},fs.structure={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]},fs.walkContext="stylesheet";var ys={};const ks=y;ys.generate=function(e){this.token(ks.LeftParenthesis,"("),this.node(e.declaration),this.token(ks.RightParenthesis,")")},ys.name="SupportsDeclaration",ys.parse=function(){const e=this.tokenStart;this.eat(ks.LeftParenthesis),this.skipSC();const t=this.Declaration();return this.eof||this.eat(ks.RightParenthesis),{type:"SupportsDeclaration",loc:this.getLocation(e,this.tokenStart),declaration:t}},ys.structure={declaration:"Declaration"};var ws={};const vs=y;function xs(){this.tokenType!==vs.Ident&&!1===this.isDelim(42)&&this.error("Identifier or asterisk is expected"),this.next()}const Ss={name:String};ws.generate=function(e){this.tokenize(e.name)},ws.name="TypeSelector",ws.parse=function(){const e=this.tokenStart;return this.isDelim(124)?(this.next(),xs.call(this)):(xs.call(this),this.isDelim(124)&&(this.next(),xs.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}},ws.structure=Ss;var _s={};const Cs=y,As=k,zs=43,Ps=45,Es=63;function Ls(e,t){let n=0;for(let r=this.tokenStart+e;r<this.tokenEnd;r++){const o=this.charCodeAt(r);if(o===Ps&&t&&0!==n)return Ls.call(this,e+n+1,!1),-1;As.isHexDigit(o)||this.error(t&&0!==n?"Hyphen minus"+(n<6?" or hex digit":"")+" is expected":n<6?"Hex digit is expected":"Unexpected input",r),++n>6&&this.error("Too many hex digits",r)}return this.next(),n}function Os(e){let t=0;for(;this.isDelim(Es);)++t>e&&this.error("Too many question marks"),this.next()}function Ns(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===zs?"Plus sign":"Hyphen minus")+" is expected")}function Ts(){let e=0;switch(this.tokenType){case Cs.Number:if(e=Ls.call(this,1,!0),this.isDelim(Es)){Os.call(this,6-e);break}if(this.tokenType===Cs.Dimension||this.tokenType===Cs.Number){Ns.call(this,Ps),Ls.call(this,1,!1);break}break;case Cs.Dimension:e=Ls.call(this,1,!0),e>0&&Os.call(this,6-e);break;default:if(this.eatDelim(zs),this.tokenType===Cs.Ident){e=Ls.call(this,0,!0),e>0&&Os.call(this,6-e);break}if(this.isDelim(Es)){this.next(),Os.call(this,5);break}this.error("Hex digit or question mark is expected")}}const Rs={value:String};_s.generate=function(e){this.tokenize(e.value)},_s.name="UnicodeRange",_s.parse=function(){const e=this.tokenStart;return this.eatIdent("u"),Ts.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}},_s.structure=Rs;var Ds={},Is={};const Bs=k,Ms=O;Is.decode=function(e){const t=e.length;let n=4,r=41===e.charCodeAt(t-1)?t-2:t-1,o="";for(;n<r&&Bs.isWhiteSpace(e.charCodeAt(n));)n++;for(;n<r&&Bs.isWhiteSpace(e.charCodeAt(r));)r--;for(let i=n;i<=r;i++){let n=e.charCodeAt(i);if(92===n){if(i===r){i!==t-1&&(o=e.substr(i+1));break}if(n=e.charCodeAt(++i),Bs.isValidEscape(92,n)){const t=i-1,n=Ms.consumeEscaped(e,t);i=n-1,o+=Ms.decodeEscaped(e.substring(t+1,n))}else 13===n&&10===e.charCodeAt(i+1)&&i++}else o+=e[i]}return o},Is.encode=function(e){let t="",n=!1;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);0!==o?o<=31||127===o?(t+="\\"+o.toString(16),n=!0):32===o||92===o||34===o||39===o||40===o||41===o?(t+="\\"+e.charAt(r),n=!1):(n&&Bs.isHexDigit(o)&&(t+=" "),t+=e.charAt(r),n=!1):t+="�"}return"url("+t+")"};const js=Is,Fs=cs,Us=y,Ws={value:String};Ds.generate=function(e){this.token(Us.Url,js.encode(e.value))},Ds.name="Url",Ds.parse=function(){const e=this.tokenStart;let t;switch(this.tokenType){case Us.Url:t=js.decode(this.consume(Us.Url));break;case Us.Function:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(Us.Function),this.skipSC(),t=Fs.decode(this.consume(Us.String)),this.skipSC(),this.eof||this.eat(Us.RightParenthesis);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(e,this.tokenStart),value:t}},Ds.structure=Ws;var Hs={generate:function(e){this.children(e)},name:"Value",parse:function(){const e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}},structure:{children:[[]]}},qs={};const Vs=y,$s=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),Ks={value:String};qs.generate=function(e){this.token(Vs.WhiteSpace,e.value)},qs.name="WhiteSpace",qs.parse=function(){return this.eat(Vs.WhiteSpace),$s},qs.structure=Ks;const Zs=Oo,Gs=Ho,Ys=Zo,Xs=Yo,Js=ti,Qs=si,el=ci,tl=hi,nl=pi,rl=gi,ol=ki,il=xi,al=Pi,sl=Bi,ll=Fi,cl=Hi,ul=$i,hl=Yi,dl=ta,pl=oa,ml=sa,fl=ua,gl=pa,bl=ga,yl=ka,kl=va,wl=_a,vl=Aa,xl=Pa,Sl=La,_l=Ta,Cl=Da,Al=Ba,zl=Fa,Pl=Ha,El=$a,Ll=Ga,Ol=Qa,Nl=rs,Tl=is,Rl=as,Dl=ls,Il=fs,Bl=ys,Ml=ws,jl=_s,Fl=Ds,Ul=Hs,Wl=qs;Lo.AnPlusB=Zs,Lo.Atrule=Gs,Lo.AtrulePrelude=Ys,Lo.AttributeSelector=Xs,Lo.Block=Js,Lo.Brackets=Qs,Lo.CDC=el,Lo.CDO=tl,Lo.ClassSelector=nl,Lo.Combinator=rl,Lo.Comment=ol,Lo.Condition=il,Lo.Declaration=al,Lo.DeclarationList=sl,Lo.Dimension=ll,Lo.Feature=cl,Lo.FeatureFunction=ul,Lo.FeatureRange=hl,Lo.Function=dl,Lo.GeneralEnclosed=pl,Lo.Hash=ml,Lo.Identifier=fl,Lo.IdSelector=gl,Lo.Layer=bl,Lo.LayerList=yl,Lo.MediaQuery=kl,Lo.MediaQueryList=wl,Lo.NestingSelector=vl,Lo.Nth=xl,Lo.Number=Sl,Lo.Operator=_l,Lo.Parentheses=Cl,Lo.Percentage=Al,Lo.PseudoClassSelector=zl,Lo.PseudoElementSelector=Pl,Lo.Ratio=El,Lo.Raw=Ll,Lo.Rule=Ol,Lo.Scope=Nl,Lo.Selector=Tl,Lo.SelectorList=Rl,Lo.String=Dl,Lo.StyleSheet=Il,Lo.SupportsDeclaration=Bl,Lo.TypeSelector=Ml,Lo.UnicodeRange=jl,Lo.Url=Fl,Lo.Value=Ul,Lo.WhiteSpace=Wl;var Hl={generic:!0,generic:!0,units:{angle:["deg","grad","rad","turn"],decibel:["db"],flex:["fr"],frequency:["hz","khz"],length:["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],resolution:["dpi","dpcm","dppx","x"],semitones:["st"],time:["s","ms"]},types:{"abs()":"abs( <calc-sum> )","absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","acos()":"acos( <calc-sum> )","alpha-value":"<number>|<percentage>","angle-percentage":"<angle>|<percentage>","angular-color-hint":"<angle-percentage>","angular-color-stop":"<color>&&<color-stop-angle>?","angular-color-stop-list":"[<angular-color-stop> [, <angular-color-hint>]?]# , <angular-color-stop>","animateable-feature":"scroll-position|contents|<custom-ident>","asin()":"asin( <calc-sum> )","atan()":"atan( <calc-sum> )","atan2()":"atan2( <calc-sum> , <calc-sum> )",attachment:"scroll|fixed|local","attr()":"attr( <attr-name> <type-or-unit>? [, <attr-fallback>]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' <wq-name> ']'|'[' <wq-name> <attr-matcher> [<string-token>|<ident-token>] <attr-modifier>? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [<line-names>? <fixed-size>]+ <line-names>? )","auto-track-list":"[<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>? <auto-repeat> [<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>?",axis:"block|inline|vertical|horizontal","baseline-position":"[first|last]? baseline","basic-shape":"<inset()>|<circle()>|<ellipse()>|<polygon()>|<path()>","bg-image":"none|<image>","bg-layer":"<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","bg-position":"[[left|center|right|top|bottom|<length-percentage>]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]|[center|[left|right] <length-percentage>?]&&[center|[top|bottom] <length-percentage>?]]","bg-size":"[<length-percentage>|auto]{1,2}|cover|contain","blur()":"blur( <length> )","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( <number-percentage> )","calc()":"calc( <calc-sum> )","calc-sum":"<calc-product> [['+'|'-'] <calc-product>]*","calc-product":"<calc-value> ['*' <calc-value>|'/' <number>]*","calc-value":"<number>|<dimension>|<percentage>|<calc-constant>|( <calc-sum> )","calc-constant":"e|pi|infinity|-infinity|NaN","cf-final-image":"<image>|<color>","cf-mixing-image":"<percentage>?&&<image>","circle()":"circle( [<shape-radius>]? [at <position>]? )","clamp()":"clamp( <calc-sum>#{3} )","class-selector":"'.' <ident-token>","clip-source":"<url>",color:"<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<hex-color>|<named-color>|currentcolor|<deprecated-system-color>|<-non-standard-color>","color-stop":"<color-stop-length>|<color-stop-angle>","color-stop-angle":"<angle-percentage>{1,2}","color-stop-length":"<length-percentage>{1,2}","color-stop-list":"[<linear-color-stop> [, <linear-color-hint>]?]# , <linear-color-stop>",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":"[<type-selector>? <subclass-selector>*]!","compound-selector-list":"<compound-selector>#","complex-selector":"<complex-selector-unit> [<combinator>? <complex-selector-unit>]*","complex-selector-list":"<complex-selector>#","conic-gradient()":"conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[<string>|contents|<image>|<counter>|<quote>|<target>|<leader()>|<attr()>]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"<image>","contrast()":"contrast( [<number-percentage>] )","cos()":"cos( <calc-sum> )",counter:"<counter()>|<counters()>","counter()":"counter( <counter-name> , <counter-style>? )","counter-name":"<custom-ident>","counter-style":"<counter-style-name>|symbols( )","counter-style-name":"<custom-ident>","counters()":"counters( <counter-name> , <string> , <counter-style>? )","cross-fade()":"cross-fade( <cf-mixing-image> , <cf-final-image>? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( <number [0,1]> , <number> , <number [0,1]> , <number> )","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":"<display-outside>?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( <length>{2,3} <color>? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( <custom-ident> , [first|start|last|first-except]? )|element( <id-selector> )","ellipse()":"ellipse( [<shape-radius>{2}]? [at <position>]? )","ending-shape":"circle|ellipse","env()":"env( <custom-ident> , <declaration-value>? )","exp()":"exp( <calc-sum> )","explicit-track-list":"[<line-names>? <track-size>]+ <line-names>?","family-name":"<string>|<custom-ident>+","feature-tag-value":"<string> [<integer>|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":"<feature-type> '{' <feature-value-declaration-list> '}'","feature-value-block-list":"<feature-value-block>+","feature-value-declaration":"<custom-ident> : <integer>+ ;","feature-value-declaration-list":"<feature-value-declaration>","feature-value-name":"<custom-ident>","fill-rule":"nonzero|evenodd","filter-function":"<blur()>|<brightness()>|<contrast()>|<drop-shadow()>|<grayscale()>|<hue-rotate()>|<invert()>|<opacity()>|<saturate()>|<sepia()>","filter-function-list":"[<filter-function>|<url>]+","final-bg-layer":"<'background-color'>||<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","fixed-breadth":"<length-percentage>","fixed-repeat":"repeat( [<integer [1,∞]>] , [<line-names>? <fixed-size>]+ <line-names>? )","fixed-size":"<fixed-breadth>|minmax( <fixed-breadth> , <track-breadth> )|minmax( <inflexible-breadth> , <fixed-breadth> )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|<percentage>","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|<number [1,1000]>","frequency-percentage":"<frequency>|<percentage>","general-enclosed":"[<function-token> <any-value>? )]|[( <any-value>? )]","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"<shape-box>|fill-box|stroke-box|view-box",gradient:"<linear-gradient()>|<repeating-linear-gradient()>|<radial-gradient()>|<repeating-radial-gradient()>|<conic-gradient()>|<repeating-conic-gradient()>|<-legacy-gradient>","grayscale()":"grayscale( <number-percentage> )","grid-line":"auto|<custom-ident>|[<integer>&&<custom-ident>?]|[span&&[<integer>||<custom-ident>]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsl( <hue> , <percentage> , <percentage> , <alpha-value>? )","hsla()":"hsla( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsla( <hue> , <percentage> , <percentage> , <alpha-value>? )",hue:"<number>|<angle>","hue-rotate()":"hue-rotate( <angle> )","hwb()":"hwb( [<hue>|none] [<percentage>|none] [<percentage>|none] [/ [<alpha-value>|none]]? )","hypot()":"hypot( <calc-sum># )",image:"<url>|<image()>|<image-set()>|<element()>|<paint()>|<cross-fade()>|<gradient>","image()":"image( <image-tags>? [<image-src>? , <color>?]! )","image-set()":"image-set( <image-set-option># )","image-set-option":"[<image>|<string>] [<resolution>||type( <string> )]","image-src":"<url>|<string>","image-tags":"ltr|rtl","inflexible-breadth":"<length-percentage>|min-content|max-content|auto","inset()":"inset( <length-percentage>{1,4} [round <'border-radius'>]? )","invert()":"invert( <number-percentage> )","keyframes-name":"<custom-ident>|<string>","keyframe-block":"<keyframe-selector># { <declaration-list> }","keyframe-block-list":"<keyframe-block>+","keyframe-selector":"from|to|<percentage>|<timeline-range-name> <percentage>","lab()":"lab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","layer()":"layer( <layer-name> )","layer-name":"<ident> ['.' <ident>]*","lch()":"lch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )","leader()":"leader( <leader-type> )","leader-type":"dotted|solid|space|<string>","length-percentage":"<length>|<percentage>","line-names":"'[' <custom-ident>* ']'","line-name-list":"[<line-names>|<name-repeat>]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"<length>|thin|medium|thick","linear-color-hint":"<length-percentage>","linear-color-stop":"<color> <color-stop-length>?","linear-gradient()":"linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","log()":"log( <calc-sum> , <calc-sum>? )","mask-layer":"<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||<geometry-box>||[<geometry-box>|no-clip]||<compositing-operator>||<masking-mode>","mask-position":"[<length-percentage>|left|center|right] [<length-percentage>|top|center|bottom]?","mask-reference":"none|<image>|<mask-source>","mask-source":"<url>","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( <number>#{6} )","matrix3d()":"matrix3d( <number>#{16} )","max()":"max( <calc-sum># )","media-and":"<media-in-parens> [and <media-in-parens>]+","media-condition":"<media-not>|<media-and>|<media-or>|<media-in-parens>","media-condition-without-or":"<media-not>|<media-and>|<media-in-parens>","media-feature":"( [<mf-plain>|<mf-boolean>|<mf-range>] )","media-in-parens":"( <media-condition> )|<media-feature>|<general-enclosed>","media-not":"not <media-in-parens>","media-or":"<media-in-parens> [or <media-in-parens>]+","media-query":"<media-condition>|[not|only]? <media-type> [and <media-condition-without-or>]?","media-query-list":"<media-query>#","media-type":"<ident>","mf-boolean":"<mf-name>","mf-name":"<ident>","mf-plain":"<mf-name> : <mf-value>","mf-range":"<mf-name> ['<'|'>']? '='? <mf-value>|<mf-value> ['<'|'>']? '='? <mf-name>|<mf-value> '<' '='? <mf-name> '<' '='? <mf-value>|<mf-value> '>' '='? <mf-name> '>' '='? <mf-value>","mf-value":"<number>|<dimension>|<ident>|<ratio>","min()":"min( <calc-sum># )","minmax()":"minmax( [<length-percentage>|min-content|max-content|auto] , [<length-percentage>|<flex>|min-content|max-content|auto] )","mod()":"mod( <calc-sum> , <calc-sum> )","name-repeat":"repeat( [<integer [1,∞]>|auto-fill] , <line-names>+ )","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","namespace-prefix":"<ident>","ns-prefix":"[<ident-token>|'*']? '|'","number-percentage":"<number>|<percentage>","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"<an-plus-b>|even|odd","opacity()":"opacity( [<number-percentage>] )","overflow-position":"unsafe|safe","outline-radius":"<length>|<percentage>","page-body":"<declaration>? [; <page-body>]?|<page-margin-box> <page-body>","page-margin-box":"<page-margin-box-type> '{' <declaration-list> '}'","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-selector":"<pseudo-page>+|<ident> <pseudo-page>*","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger","path()":"path( [<fill-rule> ,]? <string> )","paint()":"paint( <ident> , <declaration-value>? )","perspective()":"perspective( [<length [0,∞]>|none] )","polygon()":"polygon( <fill-rule>? , [<length-percentage> <length-percentage>]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]?|[[left|right] <length-percentage>]&&[[top|bottom] <length-percentage>]]","pow()":"pow( <calc-sum> , <calc-sum> )","pseudo-class-selector":"':' <ident-token>|':' <function-token> <any-value> ')'","pseudo-element-selector":"':' <pseudo-class-selector>|<legacy-pseudo-element-selector>","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )",ratio:"<number [0,∞]> [/ <number [0,∞]>]?","ray()":"ray( <angle>&&<ray-size>?&&contain?&&[at <position>]? )","relative-selector":"<combinator>? <complex-selector>","relative-selector-list":"<relative-selector>#","relative-size":"larger|smaller","rem()":"rem( <calc-sum> , <calc-sum> )","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-conic-gradient()":"repeating-conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","repeating-linear-gradient()":"repeating-linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","repeating-radial-gradient()":"repeating-radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )","reversed-counter-name":"reversed( <counter-name> )","rgb()":"rgb( <percentage>{3} [/ <alpha-value>]? )|rgb( <number>{3} [/ <alpha-value>]? )|rgb( <percentage>#{3} , <alpha-value>? )|rgb( <number>#{3} , <alpha-value>? )","rgba()":"rgba( <percentage>{3} [/ <alpha-value>]? )|rgba( <number>{3} [/ <alpha-value>]? )|rgba( <percentage>#{3} , <alpha-value>? )|rgba( <number>#{3} , <alpha-value>? )","rotate()":"rotate( [<angle>|<zero>] )","rotate3d()":"rotate3d( <number> , <number> , <number> , [<angle>|<zero>] )","rotateX()":"rotateX( [<angle>|<zero>] )","rotateY()":"rotateY( [<angle>|<zero>] )","rotateZ()":"rotateZ( [<angle>|<zero>] )","round()":"round( <rounding-strategy>? , <calc-sum> , <calc-sum> )","rounding-strategy":"nearest|up|down|to-zero","saturate()":"saturate( <number-percentage> )","scale()":"scale( [<number>|<percentage>]#{1,2} )","scale3d()":"scale3d( [<number>|<percentage>]#{3} )","scaleX()":"scaleX( [<number>|<percentage>] )","scaleY()":"scaleY( [<number>|<percentage>] )","scaleZ()":"scaleZ( [<number>|<percentage>] )","scroll()":"scroll( [<axis>||<scroller>]? )",scroller:"root|nearest","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"<length-percentage>|closest-side|farthest-side","sign()":"sign( <calc-sum> )","skew()":"skew( [<angle>|<zero>] , [<angle>|<zero>]? )","skewX()":"skewX( [<angle>|<zero>] )","skewY()":"skewY( [<angle>|<zero>] )","sepia()":"sepia( <number-percentage> )",shadow:"inset?&&<length>{2,4}&&<color>?","shadow-t":"[<length>{2,3}&&<color>?]",shape:"rect( <top> , <right> , <bottom> , <left> )|rect( <top> <right> <bottom> <left> )","shape-box":"<box>|margin-box","side-or-corner":"[left|right]||[top|bottom]","sin()":"sin( <calc-sum> )","single-animation":"<'animation-duration'>||<easing-function>||<'animation-delay'>||<single-animation-iteration-count>||<single-animation-direction>||<single-animation-fill-mode>||<single-animation-play-state>||[none|<keyframes-name>]||<single-animation-timeline>","single-animation-direction":"normal|reverse|alternate|alternate-reverse","single-animation-fill-mode":"none|forwards|backwards|both","single-animation-iteration-count":"infinite|<number>","single-animation-play-state":"running|paused","single-animation-timeline":"auto|none|<dashed-ident>|<scroll()>|<view()>","single-transition":"[none|<single-transition-property>]||<time>||<easing-function>||<time>","single-transition-property":"all|<custom-ident>",size:"closest-side|farthest-side|closest-corner|farthest-corner|<length>|<length-percentage>{2}","sqrt()":"sqrt( <calc-sum> )","step-position":"jump-start|jump-end|jump-none|jump-both|start|end","step-timing-function":"step-start|step-end|steps( <integer> [, <step-position>]? )","subclass-selector":"<id-selector>|<class-selector>|<attribute-selector>|<pseudo-class-selector>","supports-condition":"not <supports-in-parens>|<supports-in-parens> [and <supports-in-parens>]*|<supports-in-parens> [or <supports-in-parens>]*","supports-in-parens":"( <supports-condition> )|<supports-feature>|<general-enclosed>","supports-feature":"<supports-decl>|<supports-selector-fn>","supports-decl":"( <declaration> )","supports-selector-fn":"selector( <complex-selector> )",symbol:"<string>|<image>|<custom-ident>","tan()":"tan( <calc-sum> )",target:"<target-counter()>|<target-counters()>|<target-text()>","target-counter()":"target-counter( [<string>|<url>] , <custom-ident> , <counter-style>? )","target-counters()":"target-counters( [<string>|<url>] , <custom-ident> , <string> , <counter-style>? )","target-text()":"target-text( [<string>|<url>] , [content|before|after|first-letter]? )","time-percentage":"<time>|<percentage>","timeline-range-name":"cover|contain|entry|exit|entry-crossing|exit-crossing","easing-function":"linear|<cubic-bezier-timing-function>|<step-timing-function>","track-breadth":"<length-percentage>|<flex>|min-content|max-content|auto","track-list":"[<line-names>? [<track-size>|<track-repeat>]]+ <line-names>?","track-repeat":"repeat( [<integer [1,∞]>] , [<line-names>? <track-size>]+ <line-names>? )","track-size":"<track-breadth>|minmax( <inflexible-breadth> , <track-breadth> )|fit-content( <length-percentage> )","transform-function":"<matrix()>|<translate()>|<translateX()>|<translateY()>|<scale()>|<scaleX()>|<scaleY()>|<rotate()>|<skew()>|<skewX()>|<skewY()>|<matrix3d()>|<translate3d()>|<translateZ()>|<scale3d()>|<scaleZ()>|<rotate3d()>|<rotateX()>|<rotateY()>|<rotateZ()>|<perspective()>","transform-list":"<transform-function>+","translate()":"translate( <length-percentage> , <length-percentage>? )","translate3d()":"translate3d( <length-percentage> , <length-percentage> , <length> )","translateX()":"translateX( <length-percentage> )","translateY()":"translateY( <length-percentage> )","translateZ()":"translateZ( <length> )","type-or-unit":"string|color|url|integer|number|length|angle|time|frequency|cap|ch|em|ex|ic|lh|rlh|rem|vb|vi|vw|vh|vmin|vmax|mm|Q|cm|in|pt|pc|px|deg|grad|rad|turn|ms|s|Hz|kHz|%","type-selector":"<wq-name>|<ns-prefix>? '*'","var()":"var( <custom-property-name> , <declaration-value>? )","view()":"view( [<axis>||<'view-timeline-inset'>]? )","viewport-length":"auto|<length-percentage>","visual-box":"content-box|padding-box|border-box","wq-name":"<ns-prefix>? <ident-token>","-legacy-gradient":"<-webkit-gradient()>|<-legacy-linear-gradient>|<-legacy-repeating-linear-gradient>|<-legacy-radial-gradient>|<-legacy-repeating-radial-gradient>","-legacy-linear-gradient":"-moz-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-repeating-linear-gradient":"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-linear-gradient-arguments":"[<angle>|<side-or-corner>]? , <color-stop-list>","-legacy-radial-gradient":"-moz-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-repeating-radial-gradient":"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-radial-gradient-arguments":"[<position> ,]? [[[<-legacy-radial-gradient-shape>||<-legacy-radial-gradient-size>]|[<length>|<percentage>]{2}] ,]? <color-stop-list>","-legacy-radial-gradient-size":"closest-side|closest-corner|farthest-side|farthest-corner|contain|cover","-legacy-radial-gradient-shape":"circle|ellipse","-non-standard-font":"-apple-system-body|-apple-system-headline|-apple-system-subheadline|-apple-system-caption1|-apple-system-caption2|-apple-system-footnote|-apple-system-short-body|-apple-system-short-headline|-apple-system-short-subheadline|-apple-system-short-caption1|-apple-system-short-footnote|-apple-system-tall-body","-non-standard-color":"-moz-ButtonDefault|-moz-ButtonHoverFace|-moz-ButtonHoverText|-moz-CellHighlight|-moz-CellHighlightText|-moz-Combobox|-moz-ComboboxText|-moz-Dialog|-moz-DialogText|-moz-dragtargetzone|-moz-EvenTreeRow|-moz-Field|-moz-FieldText|-moz-html-CellHighlight|-moz-html-CellHighlightText|-moz-mac-accentdarkestshadow|-moz-mac-accentdarkshadow|-moz-mac-accentface|-moz-mac-accentlightesthighlight|-moz-mac-accentlightshadow|-moz-mac-accentregularhighlight|-moz-mac-accentregularshadow|-moz-mac-chrome-active|-moz-mac-chrome-inactive|-moz-mac-focusring|-moz-mac-menuselect|-moz-mac-menushadow|-moz-mac-menutextselect|-moz-MenuHover|-moz-MenuHoverText|-moz-MenuBarText|-moz-MenuBarHoverText|-moz-nativehyperlinktext|-moz-OddTreeRow|-moz-win-communicationstext|-moz-win-mediatext|-moz-activehyperlinktext|-moz-default-background-color|-moz-default-color|-moz-hyperlinktext|-moz-visitedhyperlinktext|-webkit-activelink|-webkit-focus-ring-color|-webkit-link|-webkit-text","-non-standard-image-rendering":"optimize-contrast|-moz-crisp-edges|-o-crisp-edges|-webkit-optimize-contrast","-non-standard-overflow":"overlay|-moz-scrollbars-none|-moz-scrollbars-horizontal|-moz-scrollbars-vertical|-moz-hidden-unscrollable","-non-standard-size":"intrinsic|min-intrinsic|-webkit-fill-available|-webkit-fit-content|-webkit-min-content|-webkit-max-content|-moz-available|-moz-fit-content|-moz-min-content|-moz-max-content","-webkit-gradient()":"-webkit-gradient( <-webkit-gradient-type> , <-webkit-gradient-point> [, <-webkit-gradient-point>|, <-webkit-gradient-radius> , <-webkit-gradient-point>] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )","-webkit-gradient-color-stop":"from( <color> )|color-stop( [<number-zero-one>|<percentage>] , <color> )|to( <color> )","-webkit-gradient-point":"[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]","-webkit-gradient-radius":"<length>|<percentage>","-webkit-gradient-type":"linear|radial","-webkit-mask-box-repeat":"repeat|stretch|round","-ms-filter-function-list":"<-ms-filter-function>+","-ms-filter-function":"<-ms-filter-function-progid>|<-ms-filter-function-legacy>","-ms-filter-function-progid":"'progid:' [<ident-token> '.']* [<ident-token>|<function-token> <any-value>? )]","-ms-filter-function-legacy":"<ident-token>|<function-token> <any-value>? )","absolute-color-base":"<hex-color>|<absolute-color-function>|<named-color>|transparent","absolute-color-function":"rgb( ) >|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<oklab()>|<oklch()>|<color()>",age:"child|young|old","attr-name":"<wq-name>","attr-fallback":"<any-value>","bg-clip":"<box>|border|text",bottom:"<length>|auto","container-name":"<custom-ident>","container-condition":"not <query-in-parens>|<query-in-parens> [[and <query-in-parens>]*|[or <query-in-parens>]*]","coord-box":"content-box|padding-box|border-box|fill-box|stroke-box|view-box","generic-voice":"[<age>? <gender> <integer>?]",gender:"male|female|neutral",left:"<length>|auto",paint:"none|<color>|<url> [none|<color>]?|context-fill|context-stroke","palette-identifier":"<dashed-ident>",right:"<length>|auto","scope-start":"<forgiving-selector-list>","scope-end":"<forgiving-selector-list>","forgiving-selector-list":"<complex-real-selector-list>","forgiving-relative-selector-list":"<relative-real-selector-list>","selector-list":"<complex-selector-list>","complex-real-selector-list":"<complex-real-selector>#","simple-selector-list":"<simple-selector>#","relative-real-selector-list":"<relative-real-selector>#","complex-selector-unit":"[<compound-selector>? <pseudo-compound-selector>*]!","complex-real-selector":"<compound-selector> [<combinator>? <compound-selector>]*","relative-real-selector":"<combinator>? <complex-real-selector>","pseudo-compound-selector":"<pseudo-element-selector> <pseudo-class-selector>*","simple-selector":"<type-selector>|<subclass-selector>","legacy-pseudo-element-selector":"':' [before|after|first-line|first-letter]","single-animation-composition":"replace|add|accumulate","svg-length":"<percentage>|<length>|<number>","svg-writing-mode":"lr-tb|rl-tb|tb-rl|lr|rl|tb",top:"<length>|auto",x:"<number>",y:"<number>",declaration:"<ident-token> : <declaration-value>? ['!' important]?","declaration-list":"[<declaration>? ';']* <declaration>?",url:"url( <string> <url-modifier>* )|<url-token>","url-modifier":"<ident>|<function-token> <any-value> )","number-zero-one":"<number [0,1]>","number-one-or-greater":"<number [1,∞]>","color()":"color( <colorspace-params> [/ [<alpha-value>|none]]? )","colorspace-params":"[<predefined-rgb-params>|<xyz-params>]","predefined-rgb-params":"<predefined-rgb> [<number>|<percentage>|none]{3}","predefined-rgb":"srgb|srgb-linear|display-p3|a98-rgb|prophoto-rgb|rec2020","xyz-params":"<xyz-space> [<number>|<percentage>|none]{3}","xyz-space":"xyz|xyz-d50|xyz-d65","oklab()":"oklab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","oklch()":"oklch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )","offset-path":"<ray()>|<url>|<basic-shape>","ray-size":"closest-side|closest-corner|farthest-side|farthest-corner|sides","query-in-parens":"( <container-condition> )|( <size-feature> )|style( <style-query> )|<general-enclosed>","size-feature":"<mf-plain>|<mf-boolean>|<mf-range>","style-feature":"<declaration>","style-query":"<style-condition>|<style-feature>","style-condition":"not <style-in-parens>|<style-in-parens> [[and <style-in-parens>]*|[or <style-in-parens>]*]","style-in-parens":"( <style-condition> )|( <style-feature> )|<general-enclosed>","-non-standard-display":"-ms-inline-flexbox|-ms-grid|-ms-inline-grid|-webkit-flex|-webkit-inline-flex|-webkit-box|-webkit-inline-box|-moz-inline-stack|-moz-box|-moz-inline-box"},properties:{"--*":"<declaration-value>","-ms-accelerator":"false|true","-ms-block-progression":"tb|rl|bt|lr","-ms-content-zoom-chaining":"none|chained","-ms-content-zooming":"none|zoom","-ms-content-zoom-limit":"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>","-ms-content-zoom-limit-max":"<percentage>","-ms-content-zoom-limit-min":"<percentage>","-ms-content-zoom-snap":"<'-ms-content-zoom-snap-type'>||<'-ms-content-zoom-snap-points'>","-ms-content-zoom-snap-points":"snapInterval( <percentage> , <percentage> )|snapList( <percentage># )","-ms-content-zoom-snap-type":"none|proximity|mandatory","-ms-filter":"<string>","-ms-flow-from":"[none|<custom-ident>]#","-ms-flow-into":"[none|<custom-ident>]#","-ms-grid-columns":"none|<track-list>|<auto-track-list>","-ms-grid-rows":"none|<track-list>|<auto-track-list>","-ms-high-contrast-adjust":"auto|none","-ms-hyphenate-limit-chars":"auto|<integer>{1,3}","-ms-hyphenate-limit-lines":"no-limit|<integer>","-ms-hyphenate-limit-zone":"<percentage>|<length>","-ms-ime-align":"auto|after","-ms-overflow-style":"auto|none|scrollbar|-ms-autohiding-scrollbar","-ms-scrollbar-3dlight-color":"<color>","-ms-scrollbar-arrow-color":"<color>","-ms-scrollbar-base-color":"<color>","-ms-scrollbar-darkshadow-color":"<color>","-ms-scrollbar-face-color":"<color>","-ms-scrollbar-highlight-color":"<color>","-ms-scrollbar-shadow-color":"<color>","-ms-scrollbar-track-color":"<color>","-ms-scroll-chaining":"chained|none","-ms-scroll-limit":"<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>","-ms-scroll-limit-x-max":"auto|<length>","-ms-scroll-limit-x-min":"<length>","-ms-scroll-limit-y-max":"auto|<length>","-ms-scroll-limit-y-min":"<length>","-ms-scroll-rails":"none|railed","-ms-scroll-snap-points-x":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-points-y":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-type":"none|proximity|mandatory","-ms-scroll-snap-x":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>","-ms-scroll-snap-y":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>","-ms-scroll-translation":"none|vertical-to-horizontal","-ms-text-autospace":"none|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space","-ms-touch-select":"grippers|none","-ms-user-select":"none|element|text","-ms-wrap-flow":"auto|both|start|end|maximum|clear","-ms-wrap-margin":"<length>","-ms-wrap-through":"wrap|none","-moz-appearance":"none|button|button-arrow-down|button-arrow-next|button-arrow-previous|button-arrow-up|button-bevel|button-focus|caret|checkbox|checkbox-container|checkbox-label|checkmenuitem|dualbutton|groupbox|listbox|listitem|menuarrow|menubar|menucheckbox|menuimage|menuitem|menuitemtext|menulist|menulist-button|menulist-text|menulist-textfield|menupopup|menuradio|menuseparator|meterbar|meterchunk|progressbar|progressbar-vertical|progresschunk|progresschunk-vertical|radio|radio-container|radio-label|radiomenuitem|range|range-thumb|resizer|resizerpanel|scale-horizontal|scalethumbend|scalethumb-horizontal|scalethumbstart|scalethumbtick|scalethumb-vertical|scale-vertical|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|separator|sheet|spinner|spinner-downbutton|spinner-textfield|spinner-upbutton|splitter|statusbar|statusbarpanel|tab|tabpanel|tabpanels|tab-scroll-arrow-back|tab-scroll-arrow-forward|textfield|textfield-multiline|toolbar|toolbarbutton|toolbarbutton-dropdown|toolbargripper|toolbox|tooltip|treeheader|treeheadercell|treeheadersortarrow|treeitem|treeline|treetwisty|treetwistyopen|treeview|-moz-mac-unified-toolbar|-moz-win-borderless-glass|-moz-win-browsertabbar-toolbox|-moz-win-communicationstext|-moz-win-communications-toolbox|-moz-win-exclude-glass|-moz-win-glass|-moz-win-mediatext|-moz-win-media-toolbox|-moz-window-button-box|-moz-window-button-box-maximized|-moz-window-button-close|-moz-window-button-maximize|-moz-window-button-minimize|-moz-window-button-restore|-moz-window-frame-bottom|-moz-window-frame-left|-moz-window-frame-right|-moz-window-titlebar|-moz-window-titlebar-maximized","-moz-binding":"<url>|none","-moz-border-bottom-colors":"<color>+|none","-moz-border-left-colors":"<color>+|none","-moz-border-right-colors":"<color>+|none","-moz-border-top-colors":"<color>+|none","-moz-context-properties":"none|[fill|fill-opacity|stroke|stroke-opacity]#","-moz-float-edge":"border-box|content-box|margin-box|padding-box","-moz-force-broken-image-icon":"0|1","-moz-image-region":"<shape>|auto","-moz-orient":"inline|block|horizontal|vertical","-moz-outline-radius":"<outline-radius>{1,4} [/ <outline-radius>{1,4}]?","-moz-outline-radius-bottomleft":"<outline-radius>","-moz-outline-radius-bottomright":"<outline-radius>","-moz-outline-radius-topleft":"<outline-radius>","-moz-outline-radius-topright":"<outline-radius>","-moz-stack-sizing":"ignore|stretch-to-fit","-moz-text-blink":"none|blink","-moz-user-focus":"ignore|normal|select-after|select-before|select-menu|select-same|select-all|none","-moz-user-input":"auto|none|enabled|disabled","-moz-user-modify":"read-only|read-write|write-only","-moz-window-dragging":"drag|no-drag","-moz-window-shadow":"default|menu|tooltip|sheet|none","-webkit-appearance":"none|button|button-bevel|caps-lock-indicator|caret|checkbox|default-button|inner-spin-button|listbox|listitem|media-controls-background|media-controls-fullscreen-background|media-current-time-display|media-enter-fullscreen-button|media-exit-fullscreen-button|media-fullscreen-button|media-mute-button|media-overlay-play-button|media-play-button|media-seek-back-button|media-seek-forward-button|media-slider|media-sliderthumb|media-time-remaining-display|media-toggle-closed-captions-button|media-volume-slider|media-volume-slider-container|media-volume-sliderthumb|menulist|menulist-button|menulist-text|menulist-textfield|meter|progress-bar|progress-bar-value|push-button|radio|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbargripper-horizontal|scrollbargripper-vertical|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|searchfield-cancel-button|searchfield-decoration|searchfield-results-button|searchfield-results-decoration|slider-horizontal|slider-vertical|sliderthumb-horizontal|sliderthumb-vertical|square-button|textarea|textfield|-apple-pay-button","-webkit-border-before":"<'border-width'>||<'border-style'>||<color>","-webkit-border-before-color":"<color>","-webkit-border-before-style":"<'border-style'>","-webkit-border-before-width":"<'border-width'>","-webkit-box-reflect":"[above|below|right|left]? <length>? <image>?","-webkit-line-clamp":"none|<integer>","-webkit-mask":"[<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||[<box>|border|padding|content|text]||[<box>|border|padding|content]]#","-webkit-mask-attachment":"<attachment>#","-webkit-mask-clip":"[<box>|border|padding|content|text]#","-webkit-mask-composite":"<composite-style>#","-webkit-mask-image":"<mask-reference>#","-webkit-mask-origin":"[<box>|border|padding|content]#","-webkit-mask-position":"<position>#","-webkit-mask-position-x":"[<length-percentage>|left|center|right]#","-webkit-mask-position-y":"[<length-percentage>|top|center|bottom]#","-webkit-mask-repeat":"<repeat-style>#","-webkit-mask-repeat-x":"repeat|no-repeat|space|round","-webkit-mask-repeat-y":"repeat|no-repeat|space|round","-webkit-mask-size":"<bg-size>#","-webkit-overflow-scrolling":"auto|touch","-webkit-tap-highlight-color":"<color>","-webkit-text-fill-color":"<color>","-webkit-text-stroke":"<length>||<color>","-webkit-text-stroke-color":"<color>","-webkit-text-stroke-width":"<length>","-webkit-touch-callout":"default|none","-webkit-user-modify":"read-only|read-write|read-write-plaintext-only","accent-color":"auto|<color>","align-content":"normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>","align-items":"normal|stretch|<baseline-position>|[<overflow-position>? <self-position>]","align-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? <self-position>","align-tracks":"[normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>]#",all:"initial|inherit|unset|revert|revert-layer",animation:"<single-animation>#","animation-composition":"<single-animation-composition>#","animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"<time>#","animation-fill-mode":"<single-animation-fill-mode>#","animation-iteration-count":"<single-animation-iteration-count>#","animation-name":"[none|<keyframes-name>]#","animation-play-state":"<single-animation-play-state>#","animation-range":"[<'animation-range-start'> <'animation-range-end'>?]#","animation-range-end":"[normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#","animation-range-start":"[normal|<length-percentage>|<timeline-range-name> <length-percentage>?]#","animation-timing-function":"<easing-function>#","animation-timeline":"<single-animation-timeline>#",appearance:"none|auto|textfield|menulist-button|<compat-auto>","aspect-ratio":"auto|<ratio>",azimuth:"<angle>|[[left-side|far-left|left|center-left|center|center-right|right|far-right|right-side]||behind]|leftwards|rightwards","backdrop-filter":"none|<filter-function-list>","backface-visibility":"visible|hidden",background:"[<bg-layer> ,]* <final-bg-layer>","background-attachment":"<attachment>#","background-blend-mode":"<blend-mode>#","background-clip":"<bg-clip>#","background-color":"<color>","background-image":"<bg-image>#","background-origin":"<box>#","background-position":"<bg-position>#","background-position-x":"[center|[[left|right|x-start|x-end]? <length-percentage>?]!]#","background-position-y":"[center|[[top|bottom|y-start|y-end]? <length-percentage>?]!]#","background-repeat":"<repeat-style>#","background-size":"<bg-size>#","block-overflow":"clip|ellipsis|<string>","block-size":"<'width'>",border:"<line-width>||<line-style>||<color>","border-block":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-color":"<'border-top-color'>{1,2}","border-block-style":"<'border-top-style'>","border-block-width":"<'border-top-width'>","border-block-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-end-color":"<'border-top-color'>","border-block-end-style":"<'border-top-style'>","border-block-end-width":"<'border-top-width'>","border-block-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-start-color":"<'border-top-color'>","border-block-start-style":"<'border-top-style'>","border-block-start-width":"<'border-top-width'>","border-bottom":"<line-width>||<line-style>||<color>","border-bottom-color":"<'border-top-color'>","border-bottom-left-radius":"<length-percentage>{1,2}","border-bottom-right-radius":"<length-percentage>{1,2}","border-bottom-style":"<line-style>","border-bottom-width":"<line-width>","border-collapse":"collapse|separate","border-color":"<color>{1,4}","border-end-end-radius":"<length-percentage>{1,2}","border-end-start-radius":"<length-percentage>{1,2}","border-image":"<'border-image-source'>||<'border-image-slice'> [/ <'border-image-width'>|/ <'border-image-width'>? / <'border-image-outset'>]?||<'border-image-repeat'>","border-image-outset":"[<length>|<number>]{1,4}","border-image-repeat":"[stretch|repeat|round|space]{1,2}","border-image-slice":"<number-percentage>{1,4}&&fill?","border-image-source":"none|<image>","border-image-width":"[<length-percentage>|<number>|auto]{1,4}","border-inline":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-color":"<'border-top-color'>{1,2}","border-inline-style":"<'border-top-style'>","border-inline-width":"<'border-top-width'>","border-inline-end-color":"<'border-top-color'>","border-inline-end-style":"<'border-top-style'>","border-inline-end-width":"<'border-top-width'>","border-inline-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-start-color":"<'border-top-color'>","border-inline-start-style":"<'border-top-style'>","border-inline-start-width":"<'border-top-width'>","border-left":"<line-width>||<line-style>||<color>","border-left-color":"<color>","border-left-style":"<line-style>","border-left-width":"<line-width>","border-radius":"<length-percentage>{1,4} [/ <length-percentage>{1,4}]?","border-right":"<line-width>||<line-style>||<color>","border-right-color":"<color>","border-right-style":"<line-style>","border-right-width":"<line-width>","border-spacing":"<length> <length>?","border-start-end-radius":"<length-percentage>{1,2}","border-start-start-radius":"<length-percentage>{1,2}","border-style":"<line-style>{1,4}","border-top":"<line-width>||<line-style>||<color>","border-top-color":"<color>","border-top-left-radius":"<length-percentage>{1,2}","border-top-right-radius":"<length-percentage>{1,2}","border-top-style":"<line-style>","border-top-width":"<line-width>","border-width":"<line-width>{1,4}",bottom:"<length>|<percentage>|auto","box-align":"start|center|end|baseline|stretch","box-decoration-break":"slice|clone","box-direction":"normal|reverse|inherit","box-flex":"<number>","box-flex-group":"<integer>","box-lines":"single|multiple","box-ordinal-group":"<integer>","box-orient":"horizontal|vertical|inline-axis|block-axis|inherit","box-pack":"start|center|end|justify","box-shadow":"none|<shadow>#","box-sizing":"content-box|border-box","break-after":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-before":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-inside":"auto|avoid|avoid-page|avoid-column|avoid-region","caption-side":"top|bottom|block-start|block-end|inline-start|inline-end",caret:"<'caret-color'>||<'caret-shape'>","caret-color":"auto|<color>","caret-shape":"auto|bar|block|underscore",clear:"none|left|right|both|inline-start|inline-end",clip:"<shape>|auto","clip-path":"<clip-source>|[<basic-shape>||<geometry-box>]|none",color:"<color>","color-scheme":"normal|[light|dark|<custom-ident>]+&&only?","column-count":"<integer>|auto","column-fill":"auto|balance|balance-all","column-gap":"normal|<length-percentage>","column-rule":"<'column-rule-width'>||<'column-rule-style'>||<'column-rule-color'>","column-rule-color":"<color>","column-rule-style":"<'border-style'>","column-rule-width":"<'border-width'>","column-span":"none|all","column-width":"<length>|auto",columns:"<'column-width'>||<'column-count'>",contain:"none|strict|content|[[size||inline-size]||layout||style||paint]","contain-intrinsic-size":"[auto? [none|<length>]]{1,2}","contain-intrinsic-block-size":"auto? [none|<length>]","contain-intrinsic-height":"auto? [none|<length>]","contain-intrinsic-inline-size":"auto? [none|<length>]","contain-intrinsic-width":"auto? [none|<length>]",container:"<'container-name'> [/ <'container-type'>]?","container-name":"none|<custom-ident>+","container-type":"normal||[size|inline-size]",content:"normal|none|[<content-replacement>|<content-list>] [/ [<string>|<counter>]+]?","content-visibility":"visible|auto|hidden","counter-increment":"[<counter-name> <integer>?]+|none","counter-reset":"[<counter-name> <integer>?|<reversed-counter-name> <integer>?]+|none","counter-set":"[<counter-name> <integer>?]+|none",cursor:"[[<url> [<x> <y>]? ,]* [auto|default|none|context-menu|help|pointer|progress|wait|cell|crosshair|text|vertical-text|alias|copy|move|no-drop|not-allowed|e-resize|n-resize|ne-resize|nw-resize|s-resize|se-resize|sw-resize|w-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing|hand|-webkit-grab|-webkit-grabbing|-webkit-zoom-in|-webkit-zoom-out|-moz-grab|-moz-grabbing|-moz-zoom-in|-moz-zoom-out]]",direction:"ltr|rtl",display:"[<display-outside>||<display-inside>]|<display-listitem>|<display-internal>|<display-box>|<display-legacy>|<-non-standard-display>","empty-cells":"show|hide",filter:"none|<filter-function-list>|<-ms-filter-function-list>",flex:"none|[<'flex-grow'> <'flex-shrink'>?||<'flex-basis'>]","flex-basis":"content|<'width'>","flex-direction":"row|row-reverse|column|column-reverse","flex-flow":"<'flex-direction'>||<'flex-wrap'>","flex-grow":"<number>","flex-shrink":"<number>","flex-wrap":"nowrap|wrap|wrap-reverse",float:"left|right|none|inline-start|inline-end",font:"[[<'font-style'>||<font-variant-css21>||<'font-weight'>||<'font-stretch'>]? <'font-size'> [/ <'line-height'>]? <'font-family'>]|caption|icon|menu|message-box|small-caption|status-bar|<-non-standard-font>","font-family":"[<family-name>|<generic-family>]#","font-feature-settings":"normal|<feature-tag-value>#","font-kerning":"auto|normal|none","font-language-override":"normal|<string>","font-optical-sizing":"auto|none","font-palette":"normal|light|dark|<palette-identifier>","font-variation-settings":"normal|[<string> <number>]#","font-size":"<absolute-size>|<relative-size>|<length-percentage>","font-size-adjust":"none|[ex-height|cap-height|ch-width|ic-width|ic-height]? [from-font|<number>]","font-smooth":"auto|never|always|<absolute-size>|<length>","font-stretch":"<font-stretch-absolute>","font-style":"normal|italic|oblique <angle>?","font-synthesis":"none|[weight||style||small-caps]","font-synthesis-small-caps":"auto|none","font-synthesis-style":"auto|none","font-synthesis-weight":"auto|none","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-alternates":"normal|[stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )]","font-variant-caps":"normal|small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","font-variant-east-asian":"normal|[<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-emoji":"normal|text|emoji|unicode","font-variant-ligatures":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>]","font-variant-numeric":"normal|[<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero]","font-variant-position":"normal|sub|super","font-weight":"<font-weight-absolute>|bolder|lighter","forced-color-adjust":"auto|none",gap:"<'row-gap'> <'column-gap'>?",grid:"<'grid-template'>|<'grid-template-rows'> / [auto-flow&&dense?] <'grid-auto-columns'>?|[auto-flow&&dense?] <'grid-auto-rows'>? / <'grid-template-columns'>","grid-area":"<grid-line> [/ <grid-line>]{0,3}","grid-auto-columns":"<track-size>+","grid-auto-flow":"[row|column]||dense","grid-auto-rows":"<track-size>+","grid-column":"<grid-line> [/ <grid-line>]?","grid-column-end":"<grid-line>","grid-column-gap":"<length-percentage>","grid-column-start":"<grid-line>","grid-gap":"<'grid-row-gap'> <'grid-column-gap'>?","grid-row":"<grid-line> [/ <grid-line>]?","grid-row-end":"<grid-line>","grid-row-gap":"<length-percentage>","grid-row-start":"<grid-line>","grid-template":"none|[<'grid-template-rows'> / <'grid-template-columns'>]|[<line-names>? <string> <track-size>? <line-names>?]+ [/ <explicit-track-list>]?","grid-template-areas":"none|<string>+","grid-template-columns":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","grid-template-rows":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","hanging-punctuation":"none|[first||[force-end|allow-end]||last]",height:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","hyphenate-character":"auto|<string>","hyphenate-limit-chars":"[auto|<integer>]{1,3}",hyphens:"none|manual|auto","image-orientation":"from-image|<angle>|[<angle>? flip]","image-rendering":"auto|crisp-edges|pixelated|optimizeSpeed|optimizeQuality|<-non-standard-image-rendering>","image-resolution":"[from-image||<resolution>]&&snap?","ime-mode":"auto|normal|active|inactive|disabled","initial-letter":"normal|[<number> <integer>?]","initial-letter-align":"[auto|alphabetic|hanging|ideographic]","inline-size":"<'width'>","input-security":"auto|none",inset:"<'top'>{1,4}","inset-block":"<'top'>{1,2}","inset-block-end":"<'top'>","inset-block-start":"<'top'>","inset-inline":"<'top'>{1,2}","inset-inline-end":"<'top'>","inset-inline-start":"<'top'>",isolation:"auto|isolate","justify-content":"normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]","justify-items":"normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]|legacy|legacy&&[left|right|center]","justify-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]","justify-tracks":"[normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]]#",left:"<length>|<percentage>|auto","letter-spacing":"normal|<length-percentage>","line-break":"auto|loose|normal|strict|anywhere","line-clamp":"none|<integer>","line-height":"normal|<number>|<length>|<percentage>","line-height-step":"<length>","list-style":"<'list-style-type'>||<'list-style-position'>||<'list-style-image'>","list-style-image":"<image>|none","list-style-position":"inside|outside","list-style-type":"<counter-style>|<string>|none",margin:"[<length>|<percentage>|auto]{1,4}","margin-block":"<'margin-left'>{1,2}","margin-block-end":"<'margin-left'>","margin-block-start":"<'margin-left'>","margin-bottom":"<length>|<percentage>|auto","margin-inline":"<'margin-left'>{1,2}","margin-inline-end":"<'margin-left'>","margin-inline-start":"<'margin-left'>","margin-left":"<length>|<percentage>|auto","margin-right":"<length>|<percentage>|auto","margin-top":"<length>|<percentage>|auto","margin-trim":"none|in-flow|all",mask:"<mask-layer>#","mask-border":"<'mask-border-source'>||<'mask-border-slice'> [/ <'mask-border-width'>? [/ <'mask-border-outset'>]?]?||<'mask-border-repeat'>||<'mask-border-mode'>","mask-border-mode":"luminance|alpha","mask-border-outset":"[<length>|<number>]{1,4}","mask-border-repeat":"[stretch|repeat|round|space]{1,2}","mask-border-slice":"<number-percentage>{1,4} fill?","mask-border-source":"none|<image>","mask-border-width":"[<length-percentage>|<number>|auto]{1,4}","mask-clip":"[<geometry-box>|no-clip]#","mask-composite":"<compositing-operator>#","mask-image":"<mask-reference>#","mask-mode":"<masking-mode>#","mask-origin":"<geometry-box>#","mask-position":"<position>#","mask-repeat":"<repeat-style>#","mask-size":"<bg-size>#","mask-type":"luminance|alpha","masonry-auto-flow":"[pack|next]||[definite-first|ordered]","math-depth":"auto-add|add( <integer> )|<integer>","math-shift":"normal|compact","math-style":"normal|compact","max-block-size":"<'max-width'>","max-height":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","max-inline-size":"<'max-width'>","max-lines":"none|<integer>","max-width":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","min-block-size":"<'min-width'>","min-height":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","min-inline-size":"<'min-width'>","min-width":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","mix-blend-mode":"<blend-mode>|plus-lighter","object-fit":"fill|contain|cover|none|scale-down","object-position":"<position>",offset:"[<'offset-position'>? [<'offset-path'> [<'offset-distance'>||<'offset-rotate'>]?]?]! [/ <'offset-anchor'>]?","offset-anchor":"auto|<position>","offset-distance":"<length-percentage>","offset-path":"none|<offset-path>||<coord-box>","offset-position":"normal|auto|<position>","offset-rotate":"[auto|reverse]||<angle>",opacity:"<alpha-value>",order:"<integer>",orphans:"<integer>",outline:"[<'outline-color'>||<'outline-style'>||<'outline-width'>]","outline-color":"<color>|invert","outline-offset":"<length>","outline-style":"auto|<'border-style'>","outline-width":"<line-width>",overflow:"[visible|hidden|clip|scroll|auto]{1,2}|<-non-standard-overflow>","overflow-anchor":"auto|none","overflow-block":"visible|hidden|clip|scroll|auto","overflow-clip-box":"padding-box|content-box","overflow-clip-margin":"<visual-box>||<length [0,∞]>","overflow-inline":"visible|hidden|clip|scroll|auto","overflow-wrap":"normal|break-word|anywhere","overflow-x":"visible|hidden|clip|scroll|auto","overflow-y":"visible|hidden|clip|scroll|auto","overscroll-behavior":"[contain|none|auto]{1,2}","overscroll-behavior-block":"contain|none|auto","overscroll-behavior-inline":"contain|none|auto","overscroll-behavior-x":"contain|none|auto","overscroll-behavior-y":"contain|none|auto",padding:"[<length>|<percentage>]{1,4}","padding-block":"<'padding-left'>{1,2}","padding-block-end":"<'padding-left'>","padding-block-start":"<'padding-left'>","padding-bottom":"<length>|<percentage>","padding-inline":"<'padding-left'>{1,2}","padding-inline-end":"<'padding-left'>","padding-inline-start":"<'padding-left'>","padding-left":"<length>|<percentage>","padding-right":"<length>|<percentage>","padding-top":"<length>|<percentage>",page:"auto|<custom-ident>","page-break-after":"auto|always|avoid|left|right|recto|verso","page-break-before":"auto|always|avoid|left|right|recto|verso","page-break-inside":"auto|avoid","paint-order":"normal|[fill||stroke||markers]",perspective:"none|<length>","perspective-origin":"<position>","place-content":"<'align-content'> <'justify-content'>?","place-items":"<'align-items'> <'justify-items'>?","place-self":"<'align-self'> <'justify-self'>?","pointer-events":"auto|none|visiblePainted|visibleFill|visibleStroke|visible|painted|fill|stroke|all|inherit",position:"static|relative|absolute|sticky|fixed|-webkit-sticky","print-color-adjust":"economy|exact",quotes:"none|auto|[<string> <string>]+",resize:"none|both|horizontal|vertical|block|inline",right:"<length>|<percentage>|auto",rotate:"none|<angle>|[x|y|z|<number>{3}]&&<angle>","row-gap":"normal|<length-percentage>","ruby-align":"start|center|space-between|space-around","ruby-merge":"separate|collapse|auto","ruby-position":"[alternate||[over|under]]|inter-character",scale:"none|<number>{1,3}","scrollbar-color":"auto|<color>{2}","scrollbar-gutter":"auto|stable&&both-edges?","scrollbar-width":"auto|thin|none","scroll-behavior":"auto|smooth","scroll-margin":"<length>{1,4}","scroll-margin-block":"<length>{1,2}","scroll-margin-block-start":"<length>","scroll-margin-block-end":"<length>","scroll-margin-bottom":"<length>","scroll-margin-inline":"<length>{1,2}","scroll-margin-inline-start":"<length>","scroll-margin-inline-end":"<length>","scroll-margin-left":"<length>","scroll-margin-right":"<length>","scroll-margin-top":"<length>","scroll-padding":"[auto|<length-percentage>]{1,4}","scroll-padding-block":"[auto|<length-percentage>]{1,2}","scroll-padding-block-start":"auto|<length-percentage>","scroll-padding-block-end":"auto|<length-percentage>","scroll-padding-bottom":"auto|<length-percentage>","scroll-padding-inline":"[auto|<length-percentage>]{1,2}","scroll-padding-inline-start":"auto|<length-percentage>","scroll-padding-inline-end":"auto|<length-percentage>","scroll-padding-left":"auto|<length-percentage>","scroll-padding-right":"auto|<length-percentage>","scroll-padding-top":"auto|<length-percentage>","scroll-snap-align":"[none|start|end|center]{1,2}","scroll-snap-coordinate":"none|<position>#","scroll-snap-destination":"<position>","scroll-snap-points-x":"none|repeat( <length-percentage> )","scroll-snap-points-y":"none|repeat( <length-percentage> )","scroll-snap-stop":"normal|always","scroll-snap-type":"none|[x|y|block|inline|both] [mandatory|proximity]?","scroll-snap-type-x":"none|mandatory|proximity","scroll-snap-type-y":"none|mandatory|proximity","scroll-timeline":"[<'scroll-timeline-name'>||<'scroll-timeline-axis'>]#","scroll-timeline-axis":"[block|inline|vertical|horizontal]#","scroll-timeline-name":"none|<custom-ident>#","shape-image-threshold":"<alpha-value>","shape-margin":"<length-percentage>","shape-outside":"none|[<shape-box>||<basic-shape>]|<image>","tab-size":"<integer>|<length>","table-layout":"auto|fixed","text-align":"start|end|left|right|center|justify|match-parent","text-align-last":"auto|start|end|left|right|center|justify","text-combine-upright":"none|all|[digits <integer>?]","text-decoration":"<'text-decoration-line'>||<'text-decoration-style'>||<'text-decoration-color'>||<'text-decoration-thickness'>","text-decoration-color":"<color>","text-decoration-line":"none|[underline||overline||line-through||blink]|spelling-error|grammar-error","text-decoration-skip":"none|[objects||[spaces|[leading-spaces||trailing-spaces]]||edges||box-decoration]","text-decoration-skip-ink":"auto|all|none","text-decoration-style":"solid|double|dotted|dashed|wavy","text-decoration-thickness":"auto|from-font|<length>|<percentage>","text-emphasis":"<'text-emphasis-style'>||<'text-emphasis-color'>","text-emphasis-color":"<color>","text-emphasis-position":"[over|under]&&[right|left]","text-emphasis-style":"none|[[filled|open]||[dot|circle|double-circle|triangle|sesame]]|<string>","text-indent":"<length-percentage>&&hanging?&&each-line?","text-justify":"auto|inter-character|inter-word|none","text-orientation":"mixed|upright|sideways","text-overflow":"[clip|ellipsis|<string>]{1,2}","text-rendering":"auto|optimizeSpeed|optimizeLegibility|geometricPrecision","text-shadow":"none|<shadow-t>#","text-size-adjust":"none|auto|<percentage>","text-transform":"none|capitalize|uppercase|lowercase|full-width|full-size-kana","text-underline-offset":"auto|<length>|<percentage>","text-underline-position":"auto|from-font|[under||[left|right]]","text-wrap":"wrap|nowrap|balance|stable|pretty","timeline-scope":"none|<dashed-ident>#",top:"<length>|<percentage>|auto","touch-action":"auto|none|[[pan-x|pan-left|pan-right]||[pan-y|pan-up|pan-down]||pinch-zoom]|manipulation",transform:"none|<transform-list>","transform-box":"content-box|border-box|fill-box|stroke-box|view-box","transform-origin":"[<length-percentage>|left|center|right|top|bottom]|[[<length-percentage>|left|center|right]&&[<length-percentage>|top|center|bottom]] <length>?","transform-style":"flat|preserve-3d",transition:"<single-transition>#","transition-delay":"<time>#","transition-duration":"<time>#","transition-property":"none|<single-transition-property>#","transition-timing-function":"<easing-function>#",translate:"none|<length-percentage> [<length-percentage> <length>?]?","unicode-bidi":"normal|embed|isolate|bidi-override|isolate-override|plaintext|-moz-isolate|-moz-isolate-override|-moz-plaintext|-webkit-isolate|-webkit-isolate-override|-webkit-plaintext","user-select":"auto|text|none|contain|all","vertical-align":"baseline|sub|super|text-top|text-bottom|middle|top|bottom|<percentage>|<length>","view-timeline":"[<'view-timeline-name'> <'view-timeline-axis'>?]#","view-timeline-axis":"[block|inline|x|y]#","view-timeline-inset":"[[auto|<length-percentage>]{1,2}]#","view-timeline-name":"none|<dashed-ident>#","view-transition-name":"none|<custom-ident>",visibility:"visible|hidden|collapse","white-space":"normal|pre|nowrap|pre-wrap|pre-line|break-spaces|[<'white-space-collapse'>||<'text-wrap'>||<'white-space-trim'>]","white-space-collapse":"collapse|discard|preserve|preserve-breaks|preserve-spaces|break-spaces","white-space-trim":"none|discard-before||discard-after||discard-inner",widows:"<integer>",width:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|stretch|<-non-standard-size>","will-change":"auto|<animateable-feature>#","word-break":"normal|break-all|keep-all|break-word","word-spacing":"normal|<length>","word-wrap":"normal|break-word","writing-mode":"horizontal-tb|vertical-rl|vertical-lr|sideways-rl|sideways-lr|<svg-writing-mode>","z-index":"auto|<integer>",zoom:"normal|reset|<number>|<percentage>","-moz-background-clip":"padding|border","-moz-border-radius-bottomleft":"<'border-bottom-left-radius'>","-moz-border-radius-bottomright":"<'border-bottom-right-radius'>","-moz-border-radius-topleft":"<'border-top-left-radius'>","-moz-border-radius-topright":"<'border-bottom-right-radius'>","-moz-control-character-visibility":"visible|hidden","-moz-osx-font-smoothing":"auto|grayscale","-moz-user-select":"none|text|all|-moz-none","-ms-flex-align":"start|end|center|baseline|stretch","-ms-flex-item-align":"auto|start|end|center|baseline|stretch","-ms-flex-line-pack":"start|end|center|justify|distribute|stretch","-ms-flex-negative":"<'flex-shrink'>","-ms-flex-pack":"start|end|center|justify|distribute","-ms-flex-order":"<integer>","-ms-flex-positive":"<'flex-grow'>","-ms-flex-preferred-size":"<'flex-basis'>","-ms-interpolation-mode":"nearest-neighbor|bicubic","-ms-grid-column-align":"start|end|center|stretch","-ms-grid-row-align":"start|end|center|stretch","-ms-hyphenate-limit-last":"none|always|column|page|spread","-webkit-background-clip":"[<box>|border|padding|content|text]#","-webkit-column-break-after":"always|auto|avoid","-webkit-column-break-before":"always|auto|avoid","-webkit-column-break-inside":"always|auto|avoid","-webkit-font-smoothing":"auto|none|antialiased|subpixel-antialiased","-webkit-mask-box-image":"[<url>|<gradient>|none] [<length-percentage>{4} <-webkit-mask-box-repeat>{2}]?","-webkit-print-color-adjust":"economy|exact","-webkit-text-security":"none|circle|disc|square","-webkit-user-drag":"none|element|auto","-webkit-user-select":"auto|none|text|all","alignment-baseline":"auto|baseline|before-edge|text-before-edge|middle|central|after-edge|text-after-edge|ideographic|alphabetic|hanging|mathematical","baseline-shift":"baseline|sub|super|<svg-length>",behavior:"<url>+","clip-rule":"nonzero|evenodd",cue:"<'cue-before'> <'cue-after'>?","cue-after":"<url> <decibel>?|none","cue-before":"<url> <decibel>?|none","dominant-baseline":"auto|use-script|no-change|reset-size|ideographic|alphabetic|hanging|mathematical|central|middle|text-after-edge|text-before-edge",fill:"<paint>","fill-opacity":"<number-zero-one>","fill-rule":"nonzero|evenodd","glyph-orientation-horizontal":"<angle>","glyph-orientation-vertical":"<angle>",kerning:"auto|<svg-length>",marker:"none|<url>","marker-end":"none|<url>","marker-mid":"none|<url>","marker-start":"none|<url>",pause:"<'pause-before'> <'pause-after'>?","pause-after":"<time>|none|x-weak|weak|medium|strong|x-strong","pause-before":"<time>|none|x-weak|weak|medium|strong|x-strong",rest:"<'rest-before'> <'rest-after'>?","rest-after":"<time>|none|x-weak|weak|medium|strong|x-strong","rest-before":"<time>|none|x-weak|weak|medium|strong|x-strong","shape-rendering":"auto|optimizeSpeed|crispEdges|geometricPrecision",src:"[<url> [format( <string># )]?|local( <family-name> )]#",speak:"auto|never|always","speak-as":"normal|spell-out||digits||[literal-punctuation|no-punctuation]",stroke:"<paint>","stroke-dasharray":"none|[<svg-length>+]#","stroke-dashoffset":"<svg-length>","stroke-linecap":"butt|round|square","stroke-linejoin":"miter|round|bevel","stroke-miterlimit":"<number-one-or-greater>","stroke-opacity":"<number-zero-one>","stroke-width":"<svg-length>","text-anchor":"start|middle|end","unicode-range":"<urange>#","voice-balance":"<number>|left|center|right|leftwards|rightwards","voice-duration":"auto|<time>","voice-family":"[[<family-name>|<generic-voice>] ,]* [<family-name>|<generic-voice>]|preserve","voice-pitch":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-range":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-rate":"[normal|x-slow|slow|medium|fast|x-fast]||<percentage>","voice-stress":"normal|strong|moderate|none|reduced","voice-volume":"silent|[[x-soft|soft|medium|loud|x-loud]||<decibel>]"},atrules:{charset:{prelude:"<string>",descriptors:null},"counter-style":{prelude:"<counter-style-name>",descriptors:{"additive-symbols":"[<integer>&&<symbol>]#",fallback:"<counter-style-name>",negative:"<symbol> <symbol>?",pad:"<integer>&&<symbol>",prefix:"<symbol>",range:"[[<integer>|infinite]{2}]#|auto","speak-as":"auto|bullets|numbers|words|spell-out|<counter-style-name>",suffix:"<symbol>",symbols:"<symbol>+",system:"cyclic|numeric|alphabetic|symbolic|additive|[fixed <integer>?]|[extends <counter-style-name>]"}},document:{prelude:"[<url>|url-prefix( <string> )|domain( <string> )|media-document( <string> )|regexp( <string> )]#",descriptors:null},"font-palette-values":{prelude:"<dashed-ident>",descriptors:{"base-palette":"light|dark|<integer [0,∞]>","font-family":"<family-name>#","override-colors":"[<integer [0,∞]> <absolute-color-base>]#"}},"font-face":{prelude:null,descriptors:{"ascent-override":"normal|<percentage>","descent-override":"normal|<percentage>","font-display":"[auto|block|swap|fallback|optional]","font-family":"<family-name>","font-feature-settings":"normal|<feature-tag-value>#","font-variation-settings":"normal|[<string> <number>]#","font-stretch":"<font-stretch-absolute>{1,2}","font-style":"normal|italic|oblique <angle>{0,2}","font-weight":"<font-weight-absolute>{1,2}","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","line-gap-override":"normal|<percentage>","size-adjust":"<percentage>",src:"[<url> [format( <string># )]?|local( <family-name> )]#","unicode-range":"<urange>#"}},"font-feature-values":{prelude:"<family-name>#",descriptors:null},import:{prelude:"[<string>|<url>] [layer|layer( <layer-name> )]? [supports( [<supports-condition>|<declaration>] )]? <media-query-list>?",descriptors:null},keyframes:{prelude:"<keyframes-name>",descriptors:null},layer:{prelude:"[<layer-name>#|<layer-name>?]",descriptors:null},media:{prelude:"<media-query-list>",descriptors:null},namespace:{prelude:"<namespace-prefix>? [<string>|<url>]",descriptors:null},page:{prelude:"<page-selector-list>",descriptors:{bleed:"auto|<length>",marks:"none|[crop||cross]","page-orientation":"upright|rotate-left|rotate-right",size:"<length>{1,2}|auto|[<page-size>||[portrait|landscape]]"}},property:{prelude:"<custom-property-name>",descriptors:{syntax:"<string>",inherits:"true|false","initial-value":"<string>"}},supports:{prelude:"<supports-condition>",descriptors:null},viewport:{prelude:null,descriptors:{height:"<viewport-length>{1,2}","max-height":"<viewport-length>","max-width":"<viewport-length>","max-zoom":"auto|<number>|<percentage>","min-height":"<viewport-length>","min-width":"<viewport-length>","min-zoom":"auto|<number>|<percentage>",orientation:"auto|portrait|landscape","user-zoom":"zoom|fixed","viewport-fit":"auto|contain|cover",width:"<viewport-length>{1,2}",zoom:"auto|<number>|<percentage>"}},container:{prelude:"[<container-name>]? <container-condition>",descriptors:null},nest:{prelude:"<complex-selector-list>",descriptors:null},scope:{prelude:"[( <scope-start> )]? [to ( <scope-end> )]?",descriptors:null}},node:Lo},ql={};const Vl=y;var $l=function(e){switch(this.tokenType){case Vl.Hash:return this.Hash();case Vl.Comma:return this.Operator();case Vl.LeftParenthesis:return this.Parentheses(this.readSequence,e.recognizer);case Vl.LeftSquareBracket:return this.Brackets(this.readSequence,e.recognizer);case Vl.String:return this.String();case Vl.Dimension:return this.Dimension();case Vl.Percentage:return this.Percentage();case Vl.Number:return this.Number();case Vl.Function:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case Vl.Url:return this.Url();case Vl.Ident:return this.cmpChar(this.tokenStart,117)&&this.cmpChar(this.tokenStart+1,43)?this.UnicodeRange():this.Identifier();case Vl.Delim:{const e=this.charCodeAt(this.tokenStart);if(47===e||42===e||43===e||45===e)return this.Operator();35===e&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}};const Kl=y,Zl=y;function Gl(e){return null!==e&&"Operator"===e.type&&("-"===e.value[e.value.length-1]||"+"===e.value[e.value.length-1])}const Yl={getNode:$l},Xl={onWhiteSpace:function(e,t){null!==t.last&&"Combinator"!==t.last.type&&null!==e&&"Combinator"!==e.type&&t.push({type:"Combinator",loc:null,name:" "})},getNode:function(){switch(this.tokenType){case Kl.LeftSquareBracket:return this.AttributeSelector();case Kl.Hash:return this.IdSelector();case Kl.Colon:return this.lookupType(1)===Kl.Colon?this.PseudoElementSelector():this.PseudoClassSelector();case Kl.Ident:return this.TypeSelector();case Kl.Number:case Kl.Percentage:return this.Percentage();case Kl.Dimension:46===this.charCodeAt(this.tokenStart)&&this.error("Identifier is expected",this.tokenStart+1);break;case Kl.Delim:switch(this.charCodeAt(this.tokenStart)){case 43:case 62:case 126:case 47:return this.Combinator();case 46:return this.ClassSelector();case 42:case 124:return this.TypeSelector();case 35:return this.IdSelector();case 38:return this.NestingSelector()}}}},Jl={getNode:$l,onWhiteSpace(e,t){Gl(e)&&(e.value=" "+e.value),Gl(t.last)&&(t.last.value+=" ")},expression:function(){return this.createSingleNodeList(this.Raw(null,!1))},var:function(){const e=this.createList();if(this.skipSC(),e.push(this.Identifier()),this.skipSC(),this.tokenType===Zl.Comma){e.push(this.Operator());const t=this.tokenIndex,n=this.parseCustomProperty?this.Value(null):this.Raw(this.consumeUntilExclamationMarkOrSemicolon,!1);if("Value"===n.type&&n.children.isEmpty)for(let e=t-this.tokenIndex;e<=0;e++)if(this.lookupType(e)===Zl.WhiteSpace){n.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}e.push(n)}return e}};ql.AtrulePrelude=Yl,ql.Selector=Xl,ql.Value=Jl;const Ql=y,ec=new Set(["none","and","not","or"]),tc={parse:{prelude(){const e=this.createList();if(this.tokenType===Ql.Ident){const t=this.substring(this.tokenStart,this.tokenEnd);ec.has(t.toLowerCase())||e.push(this.Identifier())}return e.push(this.Condition("container")),e},block(e=!1){return this.Block(e)}}},nc=y;function rc(e,t){return this.parseWithFallback((()=>{try{return e.call(this)}finally{this.skipSC(),this.lookupNonWSType(0)!==nc.RightParenthesis&&this.error()}}),t||(()=>this.Raw(null,!0)))}const oc={layer(){this.skipSC();const e=this.createList(),t=rc.call(this,this.Layer);return"Raw"===t.type&&""===t.value||e.push(t),e},supports(){this.skipSC();const e=this.createList(),t=rc.call(this,this.Declaration,(()=>rc.call(this,(()=>this.Condition("supports")))));return"Raw"===t.type&&""===t.value||e.push(t),e}};var ic={container:tc,"font-face":{parse:{prelude:null,block(){return this.Block(!0)}}},import:{parse:{prelude(){const e=this.createList();switch(this.tokenType){case nc.String:e.push(this.String());break;case nc.Url:case nc.Function:e.push(this.Url());break;default:this.error("String or url() is expected")}return this.skipSC(),this.tokenType===nc.Ident&&this.cmpStr(this.tokenStart,this.tokenEnd,"layer")?e.push(this.Identifier()):this.tokenType===nc.Function&&this.cmpStr(this.tokenStart,this.tokenEnd,"layer(")&&e.push(this.Function(null,oc)),this.skipSC(),this.tokenType===nc.Function&&this.cmpStr(this.tokenStart,this.tokenEnd,"supports(")&&e.push(this.Function(null,oc)),this.lookupNonWSType(0)!==nc.Ident&&this.lookupNonWSType(0)!==nc.LeftParenthesis||e.push(this.MediaQueryList()),e},block:null}},layer:{parse:{prelude(){return this.createSingleNodeList(this.LayerList())},block(){return this.Block(!1)}}},media:{parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(e=!1){return this.Block(e)}}},nest:{parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},page:{parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},scope:{parse:{prelude(){return this.createSingleNodeList(this.Scope())},block(e=!1){return this.Block(e)}}},"starting-style":{parse:{prelude:null,block(e=!1){return this.Block(e)}}},supports:{parse:{prelude(){return this.createSingleNodeList(this.Condition("supports"))},block(e=!1){return this.Block(e)}}}};const ac={parse(){return this.createSingleNodeList(this.SelectorList())}},sc={parse(){return this.createSingleNodeList(this.Selector())}},lc={parse(){return this.createSingleNodeList(this.Identifier())}},cc={parse(){return this.createSingleNodeList(this.Nth())}};var uc={dir:lc,has:ac,lang:lc,matches:ac,is:ac,"-moz-any":ac,"-webkit-any":ac,where:ac,not:ac,"nth-child":cc,"nth-last-child":cc,"nth-last-of-type":cc,"nth-of-type":cc,slotted:sc,host:sc,"host-context":sc},hc={};const dc=Oo,pc=Ho,mc=Zo,fc=Yo,gc=ti,bc=si,yc=ci,kc=hi,wc=pi,vc=gi,xc=ki,Sc=xi,_c=Pi,Cc=Bi,Ac=Fi,zc=Hi,Pc=$i,Ec=Yi,Lc=ta,Oc=oa,Nc=sa,Tc=ua,Rc=pa,Dc=ga,Ic=ka,Bc=va,Mc=_a,jc=Aa,Fc=Pa,Uc=La,Wc=Ta,Hc=Da,qc=Ba,Vc=Fa,$c=Ha,Kc=$a,Zc=Ga,Gc=Qa,Yc=rs,Xc=is,Jc=as,Qc=ls,eu=fs,tu=ys,nu=ws,ru=_s,ou=Ds,iu=Hs,au=qs;hc.AnPlusB=dc.parse,hc.Atrule=pc.parse,hc.AtrulePrelude=mc.parse,hc.AttributeSelector=fc.parse,hc.Block=gc.parse,hc.Brackets=bc.parse,hc.CDC=yc.parse,hc.CDO=kc.parse,hc.ClassSelector=wc.parse,hc.Combinator=vc.parse,hc.Comment=xc.parse,hc.Condition=Sc.parse,hc.Declaration=_c.parse,hc.DeclarationList=Cc.parse,hc.Dimension=Ac.parse,hc.Feature=zc.parse,hc.FeatureFunction=Pc.parse,hc.FeatureRange=Ec.parse,hc.Function=Lc.parse,hc.GeneralEnclosed=Oc.parse,hc.Hash=Nc.parse,hc.Identifier=Tc.parse,hc.IdSelector=Rc.parse,hc.Layer=Dc.parse,hc.LayerList=Ic.parse,hc.MediaQuery=Bc.parse,hc.MediaQueryList=Mc.parse,hc.NestingSelector=jc.parse,hc.Nth=Fc.parse,hc.Number=Uc.parse,hc.Operator=Wc.parse,hc.Parentheses=Hc.parse,hc.Percentage=qc.parse,hc.PseudoClassSelector=Vc.parse,hc.PseudoElementSelector=$c.parse,hc.Ratio=Kc.parse,hc.Raw=Zc.parse,hc.Rule=Gc.parse,hc.Scope=Yc.parse,hc.Selector=Xc.parse,hc.SelectorList=Jc.parse,hc.String=Qc.parse,hc.StyleSheet=eu.parse,hc.SupportsDeclaration=tu.parse,hc.TypeSelector=nu.parse,hc.UnicodeRange=ru.parse,hc.Url=ou.parse,hc.Value=iu.parse,hc.WhiteSpace=au.parse;var su=Eo({...Hl,parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude(e){return this.AtrulePrelude(e.atrule?String(e.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",condition(e){return this.Condition(e.kind)},rule:"Rule",selectorList:"SelectorList",selector:"Selector",block(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},features:{supports:{selector(){return this.Selector()}},container:{style(){return this.Declaration()}}},scope:ql,atrule:ic,pseudo:uc,node:hc,node:Lo}),lu={};const cu=Pn,uu=xt,hu=An,du=Yr;lu.SyntaxError=cu.SyntaxError,lu.generate=uu.generate,lu.parse=hu.parse,lu.walk=du.walk;var pu={};const mu=ie;pu.clone=function e(t){const n={};for(const r of Object.keys(t)){let o=t[r];o&&(Array.isArray(o)||o instanceof mu.List?o=o.map(e):o.constructor===Object&&(o=e(o))),n[r]=o}return n};var fu={};const gu=k,bu=O;fu.decode=function(e){const t=e.length-1;let n="";for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);if(92===o){if(r===t)break;if(o=e.charCodeAt(++r),gu.isValidEscape(92,o)){const t=r-1,o=bu.consumeEscaped(e,t);r=o-1,n+=bu.decodeEscaped(e.substring(t+1,o))}else 13===o&&10===e.charCodeAt(r+1)&&r++}else n+=e[r]}return n},fu.encode=function(e){let t="";if(1===e.length&&45===e.charCodeAt(0))return"\\-";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);0!==r?r<=31||127===r||r>=48&&r<=57&&(0===n||1===n&&45===e.charCodeAt(0))?t+="\\"+r.toString(16)+" ":gu.isName(r)?t+=e.charAt(n):t+="\\"+e.charAt(n):t+="�"}return t};const yu=su,ku=Eo,wu=ie,vu=wt,xu=lu,Su=pu,_u=Lt,Cu=fu,Au=cs,zu=Is,Pu=y,Eu=M,Lu=q,{tokenize:Ou,parse:Nu,generate:Tu,lexer:Ru,createLexer:Du,walk:Iu,find:Bu,findLast:Mu,findAll:ju,toPlainObject:Fu,fromPlainObject:Uu,fork:Wu}=yu;g.version="1.1.4".version,g.createSyntax=ku,g.List=wu.List,g.Lexer=vu.Lexer,g.definitionSyntax=xu,g.clone=Su.clone,g.isCustomProperty=_u.isCustomProperty,g.keyword=_u.keyword,g.property=_u.property,g.vendorPrefix=_u.vendorPrefix,g.ident=Cu,g.string=Au,g.url=zu,g.tokenTypes=Pu,g.tokenNames=Eu,g.TokenStream=Lu.TokenStream,g.createLexer=Du,g.find=Bu,g.findAll=ju,g.findLast=Mu,g.fork=Wu,g.fromPlainObject=Uu,g.generate=Tu,g.lexer=Ru,g.parse=Nu,g.toPlainObject=Fu,g.tokenize=Ou,g.walk=Iu;var Hu={};const qu=new Map([["background",new Set(["background-color","background-position","background-position-x","background-position-y","background-size","background-repeat","background-repeat-x","background-repeat-y","background-clip","background-origin","background-attachment","background-image"])],["background-position",new Set(["background-position-x","background-position-y"])],["background-repeat",new Set(["background-repeat-x","background-repeat-y"])],["font",new Set(["font-style","font-variant-caps","font-weight","font-stretch","font-size","line-height","font-family","font-size-adjust","font-kerning","font-optical-sizing","font-variant-alternates","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-language-override","font-feature-settings","font-variation-settings"])],["font-variant",new Set(["font-variant-caps","font-variant-numeric","font-variant-alternates","font-variant-ligatures","font-variant-east-asian"])],["outline",new Set(["outline-width","outline-style","outline-color"])],["border",new Set(["border-top-width","border-right-width","border-bottom-width","border-left-width","border-top-style","border-right-style","border-bottom-style","border-left-style","border-top-color","border-right-color","border-bottom-color","border-left-color","border-image-source","border-image-slice","border-image-width","border-image-outset","border-image-repeat"])],["border-width",new Set(["border-top-width","border-right-width","border-bottom-width","border-left-width"])],["border-style",new Set(["border-top-style","border-right-style","border-bottom-style","border-left-style"])],["border-color",new Set(["border-top-color","border-right-color","border-bottom-color","border-left-color"])],["border-block",new Set(["border-block-start-width","border-block-end-width","border-block-start-style","border-block-end-style","border-block-start-color","border-block-end-color"])],["border-block-start",new Set(["border-block-start-width","border-block-start-style","border-block-start-color"])],["border-block-end",new Set(["border-block-end-width","border-block-end-style","border-block-end-color"])],["border-inline",new Set(["border-inline-start-width","border-inline-end-width","border-inline-start-style","border-inline-end-style","border-inline-start-color","border-inline-end-color"])],["border-inline-start",new Set(["border-inline-start-width","border-inline-start-style","border-inline-start-color"])],["border-inline-end",new Set(["border-inline-end-width","border-inline-end-style","border-inline-end-color"])],["border-image",new Set(["border-image-source","border-image-slice","border-image-width","border-image-outset","border-image-repeat"])],["border-radius",new Set(["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"])],["padding",new Set(["padding-top","padding-right","padding-bottom","padding-left"])],["padding-block",new Set(["padding-block-start","padding-block-end"])],["padding-inline",new Set(["padding-inline-start","padding-inline-end"])],["margin",new Set(["margin-top","margin-right","margin-bottom","margin-left"])],["margin-block",new Set(["margin-block-start","margin-block-end"])],["margin-inline",new Set(["margin-inline-start","margin-inline-end"])],["inset",new Set(["top","right","bottom","left"])],["inset-block",new Set(["inset-block-start","inset-block-end"])],["inset-inline",new Set(["inset-inline-start","inset-inline-end"])],["flex",new Set(["flex-grow","flex-shrink","flex-basis"])],["flex-flow",new Set(["flex-direction","flex-wrap"])],["gap",new Set(["row-gap","column-gap"])],["transition",new Set(["transition-duration","transition-timing-function","transition-delay","transition-property"])],["grid",new Set(["grid-template-rows","grid-template-columns","grid-template-areas","grid-auto-flow","grid-auto-columns","grid-auto-rows"])],["grid-template",new Set(["grid-template-rows","grid-template-columns","grid-template-areas"])],["grid-row",new Set(["grid-row-start","grid-row-end"])],["grid-column",new Set(["grid-column-start","grid-column-end"])],["grid-gap",new Set(["grid-row-gap","grid-column-gap","row-gap","column-gap"])],["place-content",new Set(["align-content","justify-content"])],["place-items",new Set(["align-items","justify-items"])],["place-self",new Set(["align-self","justify-self"])],["columns",new Set(["column-width","column-count"])],["column-rule",new Set(["column-rule-width","column-rule-style","column-rule-color"])],["list-style",new Set(["list-style-type","list-style-position","list-style-image"])],["offset",new Set(["offset-position","offset-path","offset-distance","offset-rotate","offset-anchor"])],["overflow",new Set(["overflow-x","overflow-y"])],["overscroll-behavior",new Set(["overscroll-behavior-x","overscroll-behavior-y"])],["scroll-margin",new Set(["scroll-margin-top","scroll-margin-right","scroll-margin-bottom","scroll-margin-left"])],["scroll-padding",new Set(["scroll-padding-top","scroll-padding-right","scroll-padding-bottom","scroll-padding-left"])],["text-decoration",new Set(["text-decoration-line","text-decoration-style","text-decoration-color","text-decoration-thickness"])],["text-stroke",new Set(["text-stroke-color","text-stroke-width"])],["animation",new Set(["animation-duration","animation-timing-function","animation-delay","animation-iteration-count","animation-direction","animation-fill-mode","animation-play-state","animation-name","animation-timeline","animation-range-start","animation-range-end"])],["mask",new Set(["mask-image","mask-mode","mask-repeat-x","mask-repeat-y","mask-position-x","mask-position-y","mask-clip","mask-origin","mask-size","mask-composite"])],["mask-repeat",new Set(["mask-repeat-x","mask-repeat-y"])],["mask-position",new Set(["mask-position-x","mask-position-y"])],["perspective-origin",new Set(["perspective-origin-x","perspective-origin-y"])],["transform-origin",new Set(["transform-origin-x","transform-origin-y","transform-origin-z"])],["white-space",new Set(["white-space-collapse","text-wrap"])]]),Vu=new Map([Gu("animation","moz"),Gu("border-image","moz"),Gu("mask","moz"),Gu("transition","moz"),Gu("columns","moz"),Gu("text-stroke","moz"),Gu("column-rule","moz"),["-moz-border-end",new Set(["-moz-border-end-color","-moz-border-end-style","-moz-border-end-width"])],["-moz-border-start",new Set(["-moz-border-start-color","-moz-border-start-style","-moz-border-start-width"])],["-moz-outline-radius",new Set(["-moz-outline-radius-topleft","-moz-outline-radius-topright","-moz-outline-radius-bottomright","-moz-outline-radius-bottomleft"])]]),$u=new Map([Gu("animation","webkit"),Gu("border-radius","webkit"),Gu("column-rule","webkit"),Gu("columns","webkit"),Gu("flex","webkit"),Gu("flex-flow","webkit"),Gu("mask","webkit"),Gu("text-stroke","webkit"),Gu("perspective-origin","webkit"),Gu("transform-origin","webkit"),Gu("transition","webkit"),["-webkit-border-start",new Set(["-webkit-border-start-color","-webkit-border-start-style","-webkit-border-start-width"])],["-webkit-border-before",new Set(["-webkit-border-before-color","-webkit-border-before-style","-webkit-border-before-width"])],["-webkit-border-end",new Set(["-webkit-border-end-color","-webkit-border-end-style","-webkit-border-end-width"])],["-webkit-border-after",new Set(["-webkit-border-after-color","-webkit-border-after-style","-webkit-border-after-width"])]]),Ku=["background-position","background-repeat","text-decoration"];Vu.forEach(((e,t)=>qu.set(t,e))),$u.forEach(((e,t)=>qu.set(t,e)));const Zu=new Map;function Gu(e,t){const n=qu.get(e);if(n)return[`-${t}-${e}`,new Set(Array.from(n,(e=>`-${t}-${e}`)))]}function Yu(e,t){const n=qu.get(e);return!!n&&n.has(t)}qu.forEach(((e,t)=>{e.forEach((e=>{Zu.get(e)||Zu.set(e,new Set),Zu.get(e).add(t)}))})),Hu.isShorthand=function(e){return qu.has(e)},Hu.isShorthandFor=Yu,Hu.hasShorthand=function(e){return Zu.has(e)},Hu.hasShorthandWithin=function(e,t){return t.some((t=>Yu(t,e)))},Hu.getShorthands=function(e){return Zu.get(e)},Hu.preferredShorthand=function(e){return Ku.find((t=>qu.get(t).has(e)))};const{preferredShorthand:Xu,getShorthands:Ju}=Hu;function Qu(e,t){return{type:"Declaration",important:Boolean(e.getPropertyPriority(t)),property:t,value:{type:"Raw",value:e.getPropertyValue(t)}}}var eh=function(e){const t=Array.from(e).reduce(((t,n)=>{const r=Xu(n)||n;t.set(r,Qu(e,r));const o=Ju(n);return o&&o.forEach((n=>{e.getPropertyValue(n)&&(t.delete(n),t.set(n,Qu(e,n)))})),t}),new Map);return Array.from(t.values())};const th=g,nh=eh,rh={2:{atrule:"charset",prelude:"charset"},CSSImportRule:{atrule:"import",prelude:"import"},CSSNamespaceRule:{atrule:"namespace",prelude:"namespace"},CSSStyleRule:{prelude:"selector",block:"style"},CSSKeyframeRule:{prelude:"key",block:"style"},CSSPageRule:{atrule:"page",prelude:"selector",block:"style"},CSSFontFaceRule:{atrule:"font-face",block:"style"},CSSMediaRule:{atrule:"media",prelude:"condition",block:"nested"},CSSSupportsRule:{atrule:"supports",prelude:"condition",block:"nested"},13:{atrule:"document",prelude:"condition",block:"nested"},CSSKeyframesRule:{atrule:"keyframes",prelude:"name",block:"nested"},CSSContainerRule:{atrule:"container",prelude:"condition",block:"nested"},CSSLayerStatementRule:{atrule:"layer",prelude:"nameList"},CSSLayerBlockRule:{atrule:"layer",prelude:"name",block:"nested"}};var oh=function e(t){return Array.from(t,(t=>{const n=rh[t.type]??rh[t.constructor.name];if(!n)throw new Error(`Unknown CSS object model rule ${t}`);const r={};if(n.atrule){r.type="Atrule";const[e,o]=t.cssText.match(new RegExp(`^@(-\\w+-)?${n.atrule}`));r.name=o?o+n.atrule:n.atrule}else r.type="Rule";let o;if("selector"===n.prelude?o=t.selectorText:"key"===n.prelude?o=t.keyText:"condition"===n.prelude?o=t.conditionText:"name"===n.prelude?o=t.name:"import"===n.prelude?o=`url("${t.href}") ${t.media.mediaText}`:"namespace"===n.prelude?o=`${t.prefix} url("${t.namespaceURI}")`:"charset"===n.prelude?o=`"${t.encoding}"`:"nameList"===n.prelude&&(o=t.nameList),o){const e=n.atrule?{context:"atrulePrelude",atrule:n.atrule}:{context:"selectorList"};r.prelude=th.toPlainObject(th.parse(o,e))}else r.prelude=null;return"style"===n.block?r.block={type:"Block",children:nh(t.style)}:"nested"===n.block?r.block={type:"Block",children:e(t.cssRules)}:r.block=null,r}))};const ih=g,ah=new Set(["before","after","first-line","first-letter"]);const{isShorthand:sh,isShorthandFor:lh,hasShorthandWithin:ch}=Hu,uh={"word-wrap":"overflow-wrap",clip:"clip-path"};function hh(e,t){let n=[];return e.forEach((e=>{"Declaration"===e.type&&n.push(e)})),t.forEach((e=>{if("Declaration"!==e.type)return;if(ch(e.property,n.map((e=>e.property))))return;const t=n.filter((t=>t.property===e.property));if(0===t.length)n.push(e);else{const r=t.findLast((t=>t.value.value===e.value.value));if(r)r.important!==e.important&&t.forEach((t=>t.important=e.important));else{if(sh(e.property))return;n=n.filter((t=>t.property!==e.property)),n.push(e)}}})),n}function dh(e,t){return!Array.isArray(e)&&!Array.isArray(t)||Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every(((e,n)=>{const r=t[n];return e.type===r.type&&((a=e.name)===(s=r.name)||a&&s&&a.name&&a.name===s.name)&&((o=e.value)===(i=r.value)||o.type===i.type&&o.value===i.value)&&dh(e.children,r.children);var o,i,a,s}))}function ph(e){return"Rule"===e.type||/^(-\w+-)?(page|font-face)$/.test(e.name)}function mh(e,t,n,r){for(let o=t;o<n;++o)r(e[o],o,e)}var fh=()=>{},gh=function(e){const t=Array.from(e.attributes).map((t=>"id"===t.name?`#${t.value}`:"class"===t.name?Array.from(e.classList).map((e=>`.${e}`)).join(""):`[${t.name}="${t.value}"]`)).join("");return`${e.nodeName}${t}`};const bh=g,yh=oh,kh=function(e){const t=ih.parse(e,{context:"stylesheet",parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!1,parseCustomProperty:!1});return ih.walk(t,{visit:"TypeSelector",enter(e,t){"from"===e.name?t.data={type:"Percentage",value:"0"}:"to"===e.name&&(t.data={type:"Percentage",value:"100"})}}),ih.walk(t,{visit:"AtrulePrelude",enter(e){if(["import","namespace"].includes(this.atrule.name)){const t=e.children.toArray(),n="import"===e.name?0:t.length-1,r=t[n];"String"===r.type&&(t[n]={type:"Url",value:r.value},e.children.fromArray(t))}}}),ih.walk(t,{visit:"PseudoClassSelector",enter(e){ah.has(e.name)&&(e.type="PseudoElementSelector")}}),ih.walk(t,{visit:"Selector",enter(e){const t=e.children.toArray();if(t.length>1){const n=t.filter(((e,n)=>{const r=t[n+1],o=r?"PseudoClassSelector"===r.type||"PseudoElementSelector"===r.type:void 0;return!("*"===e.name&&"TypeSelector"===e.type&&o)}));e.children.fromArray(n.length?n:null)}}}),ih.walk(t,{visit:"AttributeSelector",enter(e){e.value&&"Identifier"===e.value.type&&(e.value={type:"String",value:e.value.name})}}),ih.toPlainObject(t)},wh=function e(t,n){let r=0;const o=[];return t.forEach((t=>{const i={};i.type=t.type,i.name=t.name,i.prelude=t.prelude,i.block=t.block;const a=function(e,t,n){return function(e,t,n){for(let r=t;r<e.length;++r)if(n(e[r]))return r;return-1}(e,t,(e=>{return e.type===n.type&&e.name===n.name&&(o=e.prelude,i=n.prelude,!o&&!i||o.type===i.type&&dh(o.children,i.children))&&(!ph(n)||(t=e.block.children,(r=n.block.children).reduce(((e,n)=>{const r="Declaration"===n.type&&(function(e){return/^(-\w+-)/.test(e)}(n.property)||t.some((e=>function(e,t){const n=uh[e]||e,r=uh[t]||t;return n===r||lh(r,n)||lh(n,r)}(e.property,n.property))));return e+(r?1:0)}),0)>=r.length));var t,r,o,i}))}(n,r,t);a>r&&mh(n,r,a,(e=>o.push(e))),a>=0&&(r=a+1,function(e){return"Atrule"===e.type&&/^(-\w+-)?(media|supports|document|keyframes)$/.test(e.name)}(t)?i.block={type:"Block",children:e(t.block.children,n[a].block.children)}:ph(t)&&(i.block={type:"Block",children:hh(t.block.children,n[a].block.children)})),o.push(i)}),[]),r<n.length&&mh(n,r,n.length,(e=>o.push(e))),o},vh=fh,xh=gh;function Sh(e,t){var n=e[0],r=e[1],o=e[2],i=e[3];n=Ch(n,r,o,i,t[0],7,-680876936),i=Ch(i,n,r,o,t[1],12,-389564586),o=Ch(o,i,n,r,t[2],17,606105819),r=Ch(r,o,i,n,t[3],22,-1044525330),n=Ch(n,r,o,i,t[4],7,-176418897),i=Ch(i,n,r,o,t[5],12,1200080426),o=Ch(o,i,n,r,t[6],17,-1473231341),r=Ch(r,o,i,n,t[7],22,-45705983),n=Ch(n,r,o,i,t[8],7,1770035416),i=Ch(i,n,r,o,t[9],12,-1958414417),o=Ch(o,i,n,r,t[10],17,-42063),r=Ch(r,o,i,n,t[11],22,-1990404162),n=Ch(n,r,o,i,t[12],7,1804603682),i=Ch(i,n,r,o,t[13],12,-40341101),o=Ch(o,i,n,r,t[14],17,-1502002290),n=Ah(n,r=Ch(r,o,i,n,t[15],22,1236535329),o,i,t[1],5,-165796510),i=Ah(i,n,r,o,t[6],9,-1069501632),o=Ah(o,i,n,r,t[11],14,643717713),r=Ah(r,o,i,n,t[0],20,-373897302),n=Ah(n,r,o,i,t[5],5,-701558691),i=Ah(i,n,r,o,t[10],9,38016083),o=Ah(o,i,n,r,t[15],14,-660478335),r=Ah(r,o,i,n,t[4],20,-405537848),n=Ah(n,r,o,i,t[9],5,568446438),i=Ah(i,n,r,o,t[14],9,-1019803690),o=Ah(o,i,n,r,t[3],14,-187363961),r=Ah(r,o,i,n,t[8],20,1163531501),n=Ah(n,r,o,i,t[13],5,-1444681467),i=Ah(i,n,r,o,t[2],9,-51403784),o=Ah(o,i,n,r,t[7],14,1735328473),n=zh(n,r=Ah(r,o,i,n,t[12],20,-1926607734),o,i,t[5],4,-378558),i=zh(i,n,r,o,t[8],11,-2022574463),o=zh(o,i,n,r,t[11],16,1839030562),r=zh(r,o,i,n,t[14],23,-35309556),n=zh(n,r,o,i,t[1],4,-1530992060),i=zh(i,n,r,o,t[4],11,1272893353),o=zh(o,i,n,r,t[7],16,-155497632),r=zh(r,o,i,n,t[10],23,-1094730640),n=zh(n,r,o,i,t[13],4,681279174),i=zh(i,n,r,o,t[0],11,-358537222),o=zh(o,i,n,r,t[3],16,-722521979),r=zh(r,o,i,n,t[6],23,76029189),n=zh(n,r,o,i,t[9],4,-640364487),i=zh(i,n,r,o,t[12],11,-421815835),o=zh(o,i,n,r,t[15],16,530742520),n=Ph(n,r=zh(r,o,i,n,t[2],23,-995338651),o,i,t[0],6,-198630844),i=Ph(i,n,r,o,t[7],10,1126891415),o=Ph(o,i,n,r,t[14],15,-1416354905),r=Ph(r,o,i,n,t[5],21,-57434055),n=Ph(n,r,o,i,t[12],6,1700485571),i=Ph(i,n,r,o,t[3],10,-1894986606),o=Ph(o,i,n,r,t[10],15,-1051523),r=Ph(r,o,i,n,t[1],21,-2054922799),n=Ph(n,r,o,i,t[8],6,1873313359),i=Ph(i,n,r,o,t[15],10,-30611744),o=Ph(o,i,n,r,t[6],15,-1560198380),r=Ph(r,o,i,n,t[13],21,1309151649),n=Ph(n,r,o,i,t[4],6,-145523070),i=Ph(i,n,r,o,t[11],10,-1120210379),o=Ph(o,i,n,r,t[2],15,718787259),r=Ph(r,o,i,n,t[9],21,-343485551),e[0]=Nh(n,e[0]),e[1]=Nh(r,e[1]),e[2]=Nh(o,e[2]),e[3]=Nh(i,e[3])}function _h(e,t,n,r,o,i){return t=Nh(Nh(t,e),Nh(r,i)),Nh(t<<o|t>>>32-o,n)}function Ch(e,t,n,r,o,i,a){return _h(t&n|~t&r,e,t,o,i,a)}function Ah(e,t,n,r,o,i,a){return _h(t&r|n&~r,e,t,o,i,a)}function zh(e,t,n,r,o,i,a){return _h(t^n^r,e,t,o,i,a)}function Ph(e,t,n,r,o,i,a){return _h(n^(t|~r),e,t,o,i,a)}function Eh(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}var Lh="0123456789abcdef".split("");function Oh(e){for(var t="",n=0;n<4;n++)t+=Lh[e>>8*n+4&15]+Lh[e>>8*n&15];return t}function Nh(e,t){return e+t&4294967295}var Th=function(e,{removeReverseProxyURLPrefixes:t}={}){const n=[];return[/url\((?!['"]?:)'([^']*)'\)/g,/url\((?!['"]?:)"([^"]*)"\)/g,/url\((?!['"]?:)([^()'"]*)\)/g].forEach((t=>{let r;for(;null!==(r=t.exec(e));)n.push(r[1])})),t?n.map((e=>{const t=e.match(/\/http(.*)$/);return t&&t.length?t[0].substring(1):e})):n};const Rh=Th;var Dh=function(e){let t=[];for(let n=0,r=e.length;n<r;n++){const r=e[n];let o=e.getPropertyValue(r);(/^\s*var\s*\(/.test(o)||/^--/.test(r))&&(o=o.replace(/(\\[0-9a-fA-F]{1,6}\s?)/g,(e=>String.fromCodePoint(parseInt(e.substr(1).trim(),16)))).replace(/\\([^0-9a-fA-F])/g,"$1"));const i=Rh(o);t=t.concat(i)}return t};const Ih=Dh,Bh=/(\S+)(?:\s+[\d.]+[wx])?(?:,|$)/g;const Mh=g,jh=oh;const Fh=g,Uh=eh;const Wh=g;const Hh=Symbol("raw");function qh(e){const t=function(e){if("undefined"==typeof window)return null;const t=window.Node.prototype.toString.apply(e).replace(/\[object (.*)]/,"$1");return window[t]}(e);return t?(n=e,r=t.prototype,new Proxy(Object.create(n),{get(e,t,o){if(t===Hh)return n;const i=Reflect.get(r,t,n);return"function"==typeof i?function(){return i.apply(this===o?n:this,arguments)}:i}})):e;var n,r}qh.unwrap=function(e){return e[Hh]||e};var Vh=qh;const{absolutizeUrl:$h,isInlineFrame:Kh,isAccessibleFrame:Zh}=u,Gh=function(){return window.crypto.getRandomValues(new Uint32Array(1))[0]},Yh=function(e,t=vh){t("[processInlineCss] processing inline css for",xh(e));try{const n=kh(e.textContent);t("[processInlineCss] created AST for textContent");const r=yh(e.sheet.cssRules);t("[processInlineCss] created AST for CSSOM");const o=wh(n.children,r);t("[processInlineCss] merged AST");const i=bh.generate(bh.fromPlainObject({type:"StyleSheet",children:o}));return t("[processInlineCss] generated cssText of length",i.length),i}catch(n){return t("[processInlineCss] error while processing inline css:",n.message,n),t("[processInlineCss] try to set fallback"),"string"==typeof e.textContent&&e.textContent.length>0?(t("[processInlineCss] set style from `styleNode.textContent`"),e.textContent):e.sheet&&e.sheet.cssRules?(t("[processInlineCss] set style from reduce `sheet.cssRules`"),Array.from(e.sheet.cssRules).reduce(((e,{cssText:t})=>e+t),"")):(t("[processInlineCss] could not set fallback to inline css"),"")}},Xh=function(e){const t=Array.prototype.map.call(e.sheet.cssRules,(e=>e.cssText)).join("");return function(e){return function(e){for(var t=0;t<e.length;t++)e[t]=Oh(e[t]);return e.join("")}(function(e){var t,n=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)Sh(r,Eh(e.substring(t-64,t)));e=e.substring(t-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)o[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(Sh(r,o),t=0;t<16;t++)o[t]=0;return o[14]=8*n,Sh(r,o),r}(e))}(t)},Jh=function(e){const t=(e.matches||e.msMatchesSelector).bind(e);let n=[];if(t("img[srcset],source[srcset]")&&(n=n.concat(function(e,t,n){const r=[],o=new RegExp(e.source,e.flags),i=o.global;let a;for(;(a=o.exec(t))&&(r.push(n(a)),i););return r}(Bh,e.getAttribute("srcset"),(e=>e[1])))),t('img[src],source[src],input[type="image"][src],audio[src],video[src]')&&n.push(e.getAttribute("src")),t("image,use")){const t=e.getAttribute("href")||e.getAttribute("xlink:href");t&&!function(e,t){try{const n=new URL(t),r=new URL(e,t);return r.origin===n.origin&&r.pathname===n.pathname&&Boolean(r.hash)}catch(e){return!1}}(t,e.ownerDocument.location.href)&&n.push(t)}t("object")&&e.getAttribute("data")&&n.push(e.getAttribute("data")),t('link[rel~="stylesheet"], link[as="stylesheet"]')&&n.push(e.getAttribute("href")),t("video[poster]")&&n.push(e.getAttribute("poster")),t("embed[src]")&&n.push(e.getAttribute("src"));const r=function(e){if(e.hasAttribute("style"))return Ih(e.style)}(e);return r&&(n=n.concat(r)),n},Qh=function(e){const t=jh(e.cssRules);return Mh.generate(Mh.fromPlainObject({type:"StyleSheet",children:t}))},ed=function(e){const t={type:"DeclarationList",children:Uh(e)};return Fh.generate(t)},td=fh,nd=function(e){const{ownerDocument:t}=e;if(!t)return!0;const{display:n}=t.defaultView.getComputedStyle(e),{width:r,height:o}=e.getBoundingClientRect();return"none"===n||0===r||0===o},rd=function(e){try{return Wh.toPlainObject(Wh.parse(e.toLowerCase(),{context:"mediaQueryList"})).children.some((e=>{const t=e.condition?.children.reduce(((e,t)=>("Identifier"===t.type&&"and"===t.name||e.push(t),e)),[])??[];return e.mediaType&&t.unshift(e),t.every((e=>!(e.modifier&&!["not","only"].includes(e.modifier))&&("Feature"===e.type||("Identifier"!==e.type&&"MediaQuery"!==e.type||!["all","screen"].includes(e.name??e.mediaType)?e.modifier&&"not"===e.modifier:!e.modifier||"not"!==e.modifier))))}))}catch{return!1}},od=Vh,id=gh,ad=new Set(["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"]),sd=/^on[a-z]+$/;function ld({attributes:e={}}){return Object.keys(e).filter((t=>e[t]&&e[t].name))}function cd(e,t,n){const r=e.find((e=>e.name===t));r?r.value=n:e.push({name:t,value:n})}function ud(e){return Array.from(e.adoptedStyleSheets).map(Qh)}var hd=function(e){const t=[];return new Set(e).forEach((e=>e&&t.push(e))),t};const dd=hd;var pd={};!function(e){var t="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var o in r)n(r,o)&&(e[o]=r[o])}}return e},e.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var r={arraySet:function(e,t,n,r,o){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),o);else for(var i=0;i<r;i++)e[o+i]=t[n+i]},flattenChunks:function(e){var t,n,r,o,i,a;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),o=0,t=0,n=e.length;t<n;t++)i=e[t],a.set(i,o),o+=i.length;return a}},o={arraySet:function(e,t,n,r,o){for(var i=0;i<r;i++)e[o+i]=t[n+i]},flattenChunks:function(e){return[].concat.apply([],e)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,r)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,o))},e.setTyped(t)}(pd);var md={},fd={},gd={},bd=pd;function yd(e){for(var t=e.length;--t>=0;)e[t]=0}var kd=256,wd=286,vd=30,xd=15,Sd=16,_d=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Cd=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Ad=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],zd=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Pd=new Array(576);yd(Pd);var Ed=new Array(60);yd(Ed);var Ld=new Array(512);yd(Ld);var Od=new Array(256);yd(Od);var Nd=new Array(29);yd(Nd);var Td,Rd,Dd,Id=new Array(vd);function Bd(e,t,n,r,o){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=o,this.has_stree=e&&e.length}function Md(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function jd(e){return e<256?Ld[e]:Ld[256+(e>>>7)]}function Fd(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function Ud(e,t,n){e.bi_valid>Sd-n?(e.bi_buf|=t<<e.bi_valid&65535,Fd(e,e.bi_buf),e.bi_buf=t>>Sd-e.bi_valid,e.bi_valid+=n-Sd):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function Wd(e,t,n){Ud(e,n[2*t],n[2*t+1])}function Hd(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function qd(e,t,n){var r,o,i=new Array(xd+1),a=0;for(r=1;r<=xd;r++)i[r]=a=a+n[r-1]<<1;for(o=0;o<=t;o++){var s=e[2*o+1];0!==s&&(e[2*o]=Hd(i[s]++,s))}}function Vd(e){var t;for(t=0;t<wd;t++)e.dyn_ltree[2*t]=0;for(t=0;t<vd;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function $d(e){e.bi_valid>8?Fd(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function Kd(e,t,n,r){var o=2*t,i=2*n;return e[o]<e[i]||e[o]===e[i]&&r[t]<=r[n]}function Zd(e,t,n){for(var r=e.heap[n],o=n<<1;o<=e.heap_len&&(o<e.heap_len&&Kd(t,e.heap[o+1],e.heap[o],e.depth)&&o++,!Kd(t,r,e.heap[o],e.depth));)e.heap[n]=e.heap[o],n=o,o<<=1;e.heap[n]=r}function Gd(e,t,n){var r,o,i,a,s=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],o=e.pending_buf[e.l_buf+s],s++,0===r?Wd(e,o,t):(Wd(e,(i=Od[o])+kd+1,t),0!==(a=_d[i])&&Ud(e,o-=Nd[i],a),Wd(e,i=jd(--r),n),0!==(a=Cd[i])&&Ud(e,r-=Id[i],a))}while(s<e.last_lit);Wd(e,256,t)}function Yd(e,t){var n,r,o,i=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<l;n++)0!==i[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):i[2*n+1]=0;for(;e.heap_len<2;)i[2*(o=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[o]=0,e.opt_len--,s&&(e.static_len-=a[2*o+1]);for(t.max_code=c,n=e.heap_len>>1;n>=1;n--)Zd(e,i,n);o=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Zd(e,i,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,i[2*o]=i[2*n]+i[2*r],e.depth[o]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,i[2*n+1]=i[2*r+1]=o,e.heap[1]=o++,Zd(e,i,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,o,i,a,s,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,h=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,m=t.stat_desc.max_length,f=0;for(i=0;i<=xd;i++)e.bl_count[i]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(i=l[2*l[2*(r=e.heap[n])+1]+1]+1)>m&&(i=m,f++),l[2*r+1]=i,r>c||(e.bl_count[i]++,a=0,r>=p&&(a=d[r-p]),s=l[2*r],e.opt_len+=s*(i+a),h&&(e.static_len+=s*(u[2*r+1]+a)));if(0!==f){do{for(i=m-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[m]--,f-=2}while(f>0);for(i=m;0!==i;i--)for(r=e.bl_count[i];0!==r;)(o=e.heap[--n])>c||(l[2*o+1]!==i&&(e.opt_len+=(i-l[2*o+1])*l[2*o],l[2*o+1]=i),r--)}}(e,t),qd(i,c,e.bl_count)}function Xd(e,t,n){var r,o,i=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)o=a,a=t[2*(r+1)+1],++s<l&&o===a||(s<c?e.bl_tree[2*o]+=s:0!==o?(o!==i&&e.bl_tree[2*o]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,i=o,0===a?(l=138,c=3):o===a?(l=6,c=3):(l=7,c=4))}function Jd(e,t,n){var r,o,i=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),r=0;r<=n;r++)if(o=a,a=t[2*(r+1)+1],!(++s<l&&o===a)){if(s<c)do{Wd(e,o,e.bl_tree)}while(0!=--s);else 0!==o?(o!==i&&(Wd(e,o,e.bl_tree),s--),Wd(e,16,e.bl_tree),Ud(e,s-3,2)):s<=10?(Wd(e,17,e.bl_tree),Ud(e,s-3,3)):(Wd(e,18,e.bl_tree),Ud(e,s-11,7));s=0,i=o,0===a?(l=138,c=3):o===a?(l=6,c=3):(l=7,c=4)}}yd(Id);var Qd=!1;function ep(e,t,n,r){Ud(e,0+(r?1:0),3),function(e,t,n,r){$d(e),Fd(e,n),Fd(e,~n),bd.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n)}gd._tr_init=function(e){Qd||(function(){var e,t,n,r,o,i=new Array(xd+1);for(n=0,r=0;r<28;r++)for(Nd[r]=n,e=0;e<1<<_d[r];e++)Od[n++]=r;for(Od[n-1]=r,o=0,r=0;r<16;r++)for(Id[r]=o,e=0;e<1<<Cd[r];e++)Ld[o++]=r;for(o>>=7;r<vd;r++)for(Id[r]=o<<7,e=0;e<1<<Cd[r]-7;e++)Ld[256+o++]=r;for(t=0;t<=xd;t++)i[t]=0;for(e=0;e<=143;)Pd[2*e+1]=8,e++,i[8]++;for(;e<=255;)Pd[2*e+1]=9,e++,i[9]++;for(;e<=279;)Pd[2*e+1]=7,e++,i[7]++;for(;e<=287;)Pd[2*e+1]=8,e++,i[8]++;for(qd(Pd,287,i),e=0;e<vd;e++)Ed[2*e+1]=5,Ed[2*e]=Hd(e,5);Td=new Bd(Pd,_d,257,wd,xd),Rd=new Bd(Ed,Cd,0,vd,xd),Dd=new Bd(new Array(0),Ad,0,19,7)}(),Qd=!0),e.l_desc=new Md(e.dyn_ltree,Td),e.d_desc=new Md(e.dyn_dtree,Rd),e.bl_desc=new Md(e.bl_tree,Dd),e.bi_buf=0,e.bi_valid=0,Vd(e)},gd._tr_stored_block=ep,gd._tr_flush_block=function(e,t,n,r){var o,i,a=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<kd;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),Yd(e,e.l_desc),Yd(e,e.d_desc),a=function(e){var t;for(Xd(e,e.dyn_ltree,e.l_desc.max_code),Xd(e,e.dyn_dtree,e.d_desc.max_code),Yd(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*zd[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(i=e.static_len+3+7>>>3)<=o&&(o=i)):o=i=n+5,n+4<=o&&-1!==t?ep(e,t,n,r):4===e.strategy||i===o?(Ud(e,2+(r?1:0),3),Gd(e,Pd,Ed)):(Ud(e,4+(r?1:0),3),function(e,t,n,r){var o;for(Ud(e,t-257,5),Ud(e,n-1,5),Ud(e,r-4,4),o=0;o<r;o++)Ud(e,e.bl_tree[2*zd[o]+1],3);Jd(e,e.dyn_ltree,t-1),Jd(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),Gd(e,e.dyn_ltree,e.dyn_dtree)),Vd(e),r&&$d(e)},gd._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(Od[n]+kd+1)]++,e.dyn_dtree[2*jd(t)]++),e.last_lit===e.lit_bufsize-1},gd._tr_align=function(e){Ud(e,2,3),Wd(e,256,Pd),function(e){16===e.bi_valid?(Fd(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)};var tp,np=function(e,t,n,r){for(var o=65535&e|0,i=e>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{i=i+(o=o+t[r++]|0)|0}while(--a);o%=65521,i%=65521}return o|i<<16|0},rp=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}(),op=function(e,t,n,r){var o=rp,i=r+n;e^=-1;for(var a=r;a<i;a++)e=e>>>8^o[255&(e^t[a])];return-1^e},ip={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},ap=pd,sp=gd,lp=np,cp=op,up=ip,hp=0,dp=0,pp=-2,mp=2,fp=8,gp=286,bp=30,yp=19,kp=2*gp+1,wp=15,vp=3,xp=258,Sp=xp+vp+1,_p=42,Cp=103,Ap=113,zp=666;function Pp(e,t){return e.msg=up[t],t}function Ep(e){return(e<<1)-(e>4?9:0)}function Lp(e){for(var t=e.length;--t>=0;)e[t]=0}function Op(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(ap.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function Np(e,t){sp._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Op(e.strm)}function Tp(e,t){e.pending_buf[e.pending++]=t}function Rp(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function Dp(e,t){var n,r,o=e.max_chain_length,i=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-Sp?e.strstart-(e.w_size-Sp):0,c=e.window,u=e.w_mask,h=e.prev,d=e.strstart+xp,p=c[i+a-1],m=c[i+a];e.prev_length>=e.good_match&&(o>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+a]===m&&c[n+a-1]===p&&c[n]===c[i]&&c[++n]===c[i+1]){i+=2,n++;do{}while(c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&i<d);if(r=xp-(d-i),i=d-xp,r>a){if(e.match_start=t,a=r,r>=s)break;p=c[i+a-1],m=c[i+a]}}}while((t=h[t&u])>l&&0!=--o);return a<=e.lookahead?a:e.lookahead}function Ip(e){var t,n,r,o,i,a,s,l,c,u,h=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=h+(h-Sp)){ap.arraySet(e.window,e.window,h,h,0),e.match_start-=h,e.strstart-=h,e.block_start-=h,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=h?r-h:0}while(--n);t=n=h;do{r=e.prev[--t],e.prev[t]=r>=h?r-h:0}while(--n);o+=h}if(0===e.strm.avail_in)break;if(a=e.strm,s=e.window,l=e.strstart+e.lookahead,c=o,u=void 0,(u=a.avail_in)>c&&(u=c),n=0===u?0:(a.avail_in-=u,ap.arraySet(s,a.input,a.next_in,u,l),1===a.state.wrap?a.adler=lp(a.adler,s,u,l):2===a.state.wrap&&(a.adler=cp(a.adler,s,u,l)),a.next_in+=u,a.total_in+=u,u),e.lookahead+=n,e.lookahead+e.insert>=vp)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=(e.ins_h<<e.hash_shift^e.window[i+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[i+vp-1])&e.hash_mask,e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<vp)););}while(e.lookahead<Sp&&0!==e.strm.avail_in)}function Bp(e,t){for(var n,r;;){if(e.lookahead<Sp){if(Ip(e),e.lookahead<Sp&&t===hp)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=vp&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+vp-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-Sp&&(e.match_length=Dp(e,n)),e.match_length>=vp)if(r=sp._tr_tally(e,e.strstart-e.match_start,e.match_length-vp),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=vp){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+vp-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=sp._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Np(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<vp-1?e.strstart:vp-1,4===t?(Np(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Np(e,!1),0===e.strm.avail_out)?1:2}function Mp(e,t){for(var n,r,o;;){if(e.lookahead<Sp){if(Ip(e),e.lookahead<Sp&&t===hp)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=vp&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+vp-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=vp-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-Sp&&(e.match_length=Dp(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===vp&&e.strstart-e.match_start>4096)&&(e.match_length=vp-1)),e.prev_length>=vp&&e.match_length<=e.prev_length){o=e.strstart+e.lookahead-vp,r=sp._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-vp),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=o&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+vp-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=vp-1,e.strstart++,r&&(Np(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=sp._tr_tally(e,0,e.window[e.strstart-1]))&&Np(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=sp._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<vp-1?e.strstart:vp-1,4===t?(Np(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Np(e,!1),0===e.strm.avail_out)?1:2}function jp(e,t,n,r,o){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=o}function Fp(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=fp,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new ap.Buf16(2*kp),this.dyn_dtree=new ap.Buf16(2*(2*bp+1)),this.bl_tree=new ap.Buf16(2*(2*yp+1)),Lp(this.dyn_ltree),Lp(this.dyn_dtree),Lp(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new ap.Buf16(wp+1),this.heap=new ap.Buf16(2*gp+1),Lp(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new ap.Buf16(2*gp+1),Lp(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Up(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=mp,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?_p:Ap,e.adler=2===t.wrap?0:1,t.last_flush=hp,sp._tr_init(t),dp):Pp(e,pp)}function Wp(e){var t,n=Up(e);return n===dp&&((t=e.state).window_size=2*t.w_size,Lp(t.head),t.max_lazy_match=tp[t.level].max_lazy,t.good_match=tp[t.level].good_length,t.nice_match=tp[t.level].nice_length,t.max_chain_length=tp[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=vp-1,t.match_available=0,t.ins_h=0),n}function Hp(e,t,n,r,o,i){if(!e)return pp;var a=1;if(-1===t&&(t=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),o<1||o>9||n!==fp||r<8||r>15||t<0||t>9||i<0||i>4)return Pp(e,pp);8===r&&(r=9);var s=new Fp;return e.state=s,s.strm=e,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=o+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+vp-1)/vp),s.window=new ap.Buf8(2*s.w_size),s.head=new ap.Buf16(s.hash_size),s.prev=new ap.Buf16(s.w_size),s.lit_bufsize=1<<o+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new ap.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=i,s.method=n,Wp(e)}tp=[new jp(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Ip(e),0===e.lookahead&&t===hp)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,Np(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-Sp&&(Np(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Np(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(Np(e,!1),e.strm.avail_out),1)})),new jp(4,4,8,4,Bp),new jp(4,5,16,8,Bp),new jp(4,6,32,32,Bp),new jp(4,4,16,16,Mp),new jp(8,16,32,32,Mp),new jp(8,16,128,128,Mp),new jp(8,32,128,256,Mp),new jp(32,128,258,1024,Mp),new jp(32,258,258,4096,Mp)],fd.deflateInit=function(e,t){return Hp(e,t,fp,15,8,0)},fd.deflateInit2=Hp,fd.deflateReset=Wp,fd.deflateResetKeep=Up,fd.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?pp:(e.state.gzhead=t,dp):pp},fd.deflate=function(e,t){var n,r,o,i;if(!e||!e.state||t>5||t<0)return e?Pp(e,pp):pp;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||r.status===zp&&4!==t)return Pp(e,0===e.avail_out?-5:pp);if(r.strm=e,n=r.last_flush,r.last_flush=t,r.status===_p)if(2===r.wrap)e.adler=0,Tp(r,31),Tp(r,139),Tp(r,8),r.gzhead?(Tp(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Tp(r,255&r.gzhead.time),Tp(r,r.gzhead.time>>8&255),Tp(r,r.gzhead.time>>16&255),Tp(r,r.gzhead.time>>24&255),Tp(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Tp(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Tp(r,255&r.gzhead.extra.length),Tp(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=cp(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(Tp(r,0),Tp(r,0),Tp(r,0),Tp(r,0),Tp(r,0),Tp(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),Tp(r,3),r.status=Ap);else{var a=fp+(r.w_bits-8<<4)<<8;a|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(a|=32),a+=31-a%31,r.status=Ap,Rp(r,a),0!==r.strstart&&(Rp(r,e.adler>>>16),Rp(r,65535&e.adler)),e.adler=1}if(69===r.status)if(r.gzhead.extra){for(o=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>o&&(e.adler=cp(e.adler,r.pending_buf,r.pending-o,o)),Op(e),o=r.pending,r.pending!==r.pending_buf_size));)Tp(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>o&&(e.adler=cp(e.adler,r.pending_buf,r.pending-o,o)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(e.adler=cp(e.adler,r.pending_buf,r.pending-o,o)),Op(e),o=r.pending,r.pending===r.pending_buf_size)){i=1;break}i=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Tp(r,i)}while(0!==i);r.gzhead.hcrc&&r.pending>o&&(e.adler=cp(e.adler,r.pending_buf,r.pending-o,o)),0===i&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(e.adler=cp(e.adler,r.pending_buf,r.pending-o,o)),Op(e),o=r.pending,r.pending===r.pending_buf_size)){i=1;break}i=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Tp(r,i)}while(0!==i);r.gzhead.hcrc&&r.pending>o&&(e.adler=cp(e.adler,r.pending_buf,r.pending-o,o)),0===i&&(r.status=Cp)}else r.status=Cp;if(r.status===Cp&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&Op(e),r.pending+2<=r.pending_buf_size&&(Tp(r,255&e.adler),Tp(r,e.adler>>8&255),e.adler=0,r.status=Ap)):r.status=Ap),0!==r.pending){if(Op(e),0===e.avail_out)return r.last_flush=-1,dp}else if(0===e.avail_in&&Ep(t)<=Ep(n)&&4!==t)return Pp(e,-5);if(r.status===zp&&0!==e.avail_in)return Pp(e,-5);if(0!==e.avail_in||0!==r.lookahead||t!==hp&&r.status!==zp){var s=2===r.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(Ip(e),0===e.lookahead)){if(t===hp)return 1;break}if(e.match_length=0,n=sp._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Np(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Np(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Np(e,!1),0===e.strm.avail_out)?1:2}(r,t):3===r.strategy?function(e,t){for(var n,r,o,i,a=e.window;;){if(e.lookahead<=xp){if(Ip(e),e.lookahead<=xp&&t===hp)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=vp&&e.strstart>0&&(r=a[o=e.strstart-1])===a[++o]&&r===a[++o]&&r===a[++o]){i=e.strstart+xp;do{}while(r===a[++o]&&r===a[++o]&&r===a[++o]&&r===a[++o]&&r===a[++o]&&r===a[++o]&&r===a[++o]&&r===a[++o]&&o<i);e.match_length=xp-(i-o),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=vp?(n=sp._tr_tally(e,1,e.match_length-vp),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=sp._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Np(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(Np(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(Np(e,!1),0===e.strm.avail_out)?1:2}(r,t):tp[r.level].func(r,t);if(3!==s&&4!==s||(r.status=zp),1===s||3===s)return 0===e.avail_out&&(r.last_flush=-1),dp;if(2===s&&(1===t?sp._tr_align(r):5!==t&&(sp._tr_stored_block(r,0,0,!1),3===t&&(Lp(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),Op(e),0===e.avail_out))return r.last_flush=-1,dp}return 4!==t?dp:r.wrap<=0?1:(2===r.wrap?(Tp(r,255&e.adler),Tp(r,e.adler>>8&255),Tp(r,e.adler>>16&255),Tp(r,e.adler>>24&255),Tp(r,255&e.total_in),Tp(r,e.total_in>>8&255),Tp(r,e.total_in>>16&255),Tp(r,e.total_in>>24&255)):(Rp(r,e.adler>>>16),Rp(r,65535&e.adler)),Op(e),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?dp:1)},fd.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==_p&&69!==t&&73!==t&&91!==t&&t!==Cp&&t!==Ap&&t!==zp?Pp(e,pp):(e.state=null,t===Ap?Pp(e,-3):dp):pp},fd.deflateSetDictionary=function(e,t){var n,r,o,i,a,s,l,c,u=t.length;if(!e||!e.state)return pp;if(2===(i=(n=e.state).wrap)||1===i&&n.status!==_p||n.lookahead)return pp;for(1===i&&(e.adler=lp(e.adler,t,u,0)),n.wrap=0,u>=n.w_size&&(0===i&&(Lp(n.head),n.strstart=0,n.block_start=0,n.insert=0),c=new ap.Buf8(n.w_size),ap.arraySet(c,t,u-n.w_size,n.w_size,0),t=c,u=n.w_size),a=e.avail_in,s=e.next_in,l=e.input,e.avail_in=u,e.next_in=0,e.input=t,Ip(n);n.lookahead>=vp;){r=n.strstart,o=n.lookahead-(vp-1);do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+vp-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--o);n.strstart=r,n.lookahead=vp-1,Ip(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=vp-1,n.match_available=0,e.next_in=s,e.input=l,e.avail_in=a,n.wrap=i,dp},fd.deflateInfo="pako deflate (from Nodeca project)";var qp={},Vp=pd,$p=!0,Kp=!0;try{String.fromCharCode.apply(null,[0])}catch(e){$p=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){Kp=!1}for(var Zp=new Vp.Buf8(256),Gp=0;Gp<256;Gp++)Zp[Gp]=Gp>=252?6:Gp>=248?5:Gp>=240?4:Gp>=224?3:Gp>=192?2:1;function Yp(e,t){if(t<65534&&(e.subarray&&Kp||!e.subarray&&$p))return String.fromCharCode.apply(null,Vp.shrinkBuf(e,t));for(var n="",r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n}Zp[254]=Zp[254]=1,qp.string2buf=function(e){var t,n,r,o,i,a=e.length,s=0;for(o=0;o<a;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Vp.Buf8(s),i=0,o=0;i<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?t[i++]=n:n<2048?(t[i++]=192|n>>>6,t[i++]=128|63&n):n<65536?(t[i++]=224|n>>>12,t[i++]=128|n>>>6&63,t[i++]=128|63&n):(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63,t[i++]=128|n>>>6&63,t[i++]=128|63&n);return t},qp.buf2binstring=function(e){return Yp(e,e.length)},qp.binstring2buf=function(e){for(var t=new Vp.Buf8(e.length),n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t},qp.buf2string=function(e,t){var n,r,o,i,a=t||e.length,s=new Array(2*a);for(r=0,n=0;n<a;)if((o=e[n++])<128)s[r++]=o;else if((i=Zp[o])>4)s[r++]=65533,n+=i-1;else{for(o&=2===i?31:3===i?15:7;i>1&&n<a;)o=o<<6|63&e[n++],i--;i>1?s[r++]=65533:o<65536?s[r++]=o:(o-=65536,s[r++]=55296|o>>10&1023,s[r++]=56320|1023&o)}return Yp(s,r)},qp.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+Zp[e[n]]>t?n:t};var Xp=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Jp=fd,Qp=pd,em=qp,tm=ip,nm=Xp,rm=Object.prototype.toString,om=0,im=-1,am=0,sm=8;function lm(e){if(!(this instanceof lm))return new lm(e);this.options=Qp.assign({level:im,method:sm,chunkSize:16384,windowBits:15,memLevel:8,strategy:am,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new nm,this.strm.avail_out=0;var n=Jp.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==om)throw new Error(tm[n]);if(t.header&&Jp.deflateSetHeader(this.strm,t.header),t.dictionary){var r;if(r="string"==typeof t.dictionary?em.string2buf(t.dictionary):"[object ArrayBuffer]"===rm.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=Jp.deflateSetDictionary(this.strm,r))!==om)throw new Error(tm[n]);this._dict_set=!0}}function cm(e,t){var n=new lm(t);if(n.push(e,!0),n.err)throw n.msg||tm[n.err];return n.result}lm.prototype.push=function(e,t){var n,r,o=this.strm,i=this.options.chunkSize;if(this.ended)return!1;r=t===~~t?t:!0===t?4:0,"string"==typeof e?o.input=em.string2buf(e):"[object ArrayBuffer]"===rm.call(e)?o.input=new Uint8Array(e):o.input=e,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=new Qp.Buf8(i),o.next_out=0,o.avail_out=i),1!==(n=Jp.deflate(o,r))&&n!==om)return this.onEnd(n),this.ended=!0,!1;0!==o.avail_out&&(0!==o.avail_in||4!==r&&2!==r)||("string"===this.options.to?this.onData(em.buf2binstring(Qp.shrinkBuf(o.output,o.next_out))):this.onData(Qp.shrinkBuf(o.output,o.next_out)))}while((o.avail_in>0||0===o.avail_out)&&1!==n);return 4===r?(n=Jp.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===om):2!==r||(this.onEnd(om),o.avail_out=0,!0)},lm.prototype.onData=function(e){this.chunks.push(e)},lm.prototype.onEnd=function(e){e===om&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Qp.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},md.Deflate=lm,md.deflate=cm,md.deflateRaw=function(e,t){return(t=t||{}).raw=!0,cm(e,t)},md.gzip=function(e,t){return(t=t||{}).gzip=!0,cm(e,t)};var um={},hm={},dm=pd,pm=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],mm=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],fm=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],gm=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],bm=pd,ym=np,km=op,wm=function(e,t){var n,r,o,i,a,s,l,c,u,h,d,p,m,f,g,b,y,k,w,v,x,S,_,C,A;n=e.state,r=e.next_in,C=e.input,o=r+(e.avail_in-5),i=e.next_out,A=e.output,a=i-(t-e.avail_out),s=i+(e.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,h=n.wnext,d=n.window,p=n.hold,m=n.bits,f=n.lencode,g=n.distcode,b=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;e:do{m<15&&(p+=C[r++]<<m,m+=8,p+=C[r++]<<m,m+=8),k=f[p&b];t:for(;;){if(p>>>=w=k>>>24,m-=w,0==(w=k>>>16&255))A[i++]=65535&k;else{if(!(16&w)){if(0==(64&w)){k=f[(65535&k)+(p&(1<<w)-1)];continue t}if(32&w){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}v=65535&k,(w&=15)&&(m<w&&(p+=C[r++]<<m,m+=8),v+=p&(1<<w)-1,p>>>=w,m-=w),m<15&&(p+=C[r++]<<m,m+=8,p+=C[r++]<<m,m+=8),k=g[p&y];n:for(;;){if(p>>>=w=k>>>24,m-=w,!(16&(w=k>>>16&255))){if(0==(64&w)){k=g[(65535&k)+(p&(1<<w)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(x=65535&k,m<(w&=15)&&(p+=C[r++]<<m,(m+=8)<w&&(p+=C[r++]<<m,m+=8)),(x+=p&(1<<w)-1)>l){e.msg="invalid distance too far back",n.mode=30;break e}if(p>>>=w,m-=w,x>(w=i-a)){if((w=x-w)>u&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(S=0,_=d,0===h){if(S+=c-w,w<v){v-=w;do{A[i++]=d[S++]}while(--w);S=i-x,_=A}}else if(h<w){if(S+=c+h-w,(w-=h)<v){v-=w;do{A[i++]=d[S++]}while(--w);if(S=0,h<v){v-=w=h;do{A[i++]=d[S++]}while(--w);S=i-x,_=A}}}else if(S+=h-w,w<v){v-=w;do{A[i++]=d[S++]}while(--w);S=i-x,_=A}for(;v>2;)A[i++]=_[S++],A[i++]=_[S++],A[i++]=_[S++],v-=3;v&&(A[i++]=_[S++],v>1&&(A[i++]=_[S++]))}else{S=i-x;do{A[i++]=A[S++],A[i++]=A[S++],A[i++]=A[S++],v-=3}while(v>2);v&&(A[i++]=A[S++],v>1&&(A[i++]=A[S++]))}break}}break}}while(r<o&&i<s);r-=v=m>>3,p&=(1<<(m-=v<<3))-1,e.next_in=r,e.next_out=i,e.avail_in=r<o?o-r+5:5-(r-o),e.avail_out=i<s?s-i+257:257-(i-s),n.hold=p,n.bits=m},vm=function(e,t,n,r,o,i,a,s){var l,c,u,h,d,p,m,f,g,b=s.bits,y=0,k=0,w=0,v=0,x=0,S=0,_=0,C=0,A=0,z=0,P=null,E=0,L=new dm.Buf16(16),O=new dm.Buf16(16),N=null,T=0;for(y=0;y<=15;y++)L[y]=0;for(k=0;k<r;k++)L[t[n+k]]++;for(x=b,v=15;v>=1&&0===L[v];v--);if(x>v&&(x=v),0===v)return o[i++]=20971520,o[i++]=20971520,s.bits=1,0;for(w=1;w<v&&0===L[w];w++);for(x<w&&(x=w),C=1,y=1;y<=15;y++)if(C<<=1,(C-=L[y])<0)return-1;if(C>0&&(0===e||1!==v))return-1;for(O[1]=0,y=1;y<15;y++)O[y+1]=O[y]+L[y];for(k=0;k<r;k++)0!==t[n+k]&&(a[O[t[n+k]]++]=k);if(0===e?(P=N=a,p=19):1===e?(P=pm,E-=257,N=mm,T-=257,p=256):(P=fm,N=gm,p=-1),z=0,k=0,y=w,d=i,S=x,_=0,u=-1,h=(A=1<<x)-1,1===e&&A>852||2===e&&A>592)return 1;for(;;){m=y-_,a[k]<p?(f=0,g=a[k]):a[k]>p?(f=N[T+a[k]],g=P[E+a[k]]):(f=96,g=0),l=1<<y-_,w=c=1<<S;do{o[d+(z>>_)+(c-=l)]=m<<24|f<<16|g|0}while(0!==c);for(l=1<<y-1;z&l;)l>>=1;if(0!==l?(z&=l-1,z+=l):z=0,k++,0==--L[y]){if(y===v)break;y=t[n+a[k]]}if(y>x&&(z&h)!==u){for(0===_&&(_=x),d+=w,C=1<<(S=y-_);S+_<v&&!((C-=L[S+_])<=0);)S++,C<<=1;if(A+=1<<S,1===e&&A>852||2===e&&A>592)return 1;o[u=z&h]=x<<24|S<<16|d-i|0}}return 0!==z&&(o[d+z]=y-_<<24|64<<16|0),s.bits=x,0},xm=0,Sm=-2,_m=1,Cm=12,Am=30,zm=852,Pm=592;function Em(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function Lm(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new bm.Buf16(320),this.work=new bm.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Om(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=_m,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new bm.Buf32(zm),t.distcode=t.distdyn=new bm.Buf32(Pm),t.sane=1,t.back=-1,xm):Sm}function Nm(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,Om(e)):Sm}function Tm(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?Sm:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Nm(e))):Sm}function Rm(e,t){var n,r;return e?(r=new Lm,e.state=r,r.window=null,(n=Tm(e,t))!==xm&&(e.state=null),n):Sm}var Dm,Im,Bm=!0;function Mm(e){if(Bm){var t;for(Dm=new bm.Buf32(512),Im=new bm.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(vm(1,e.lens,0,288,Dm,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;vm(2,e.lens,0,32,Im,0,e.work,{bits:5}),Bm=!1}e.lencode=Dm,e.lenbits=9,e.distcode=Im,e.distbits=5}function jm(e,t,n,r){var o,i=e.state;return null===i.window&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new bm.Buf8(i.wsize)),r>=i.wsize?(bm.arraySet(i.window,t,n-i.wsize,i.wsize,0),i.wnext=0,i.whave=i.wsize):((o=i.wsize-i.wnext)>r&&(o=r),bm.arraySet(i.window,t,n-r,o,i.wnext),(r-=o)?(bm.arraySet(i.window,t,n-r,r,0),i.wnext=r,i.whave=i.wsize):(i.wnext+=o,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=o))),0}hm.inflateReset=Nm,hm.inflateReset2=Tm,hm.inflateResetKeep=Om,hm.inflateInit=function(e){return Rm(e,15)},hm.inflateInit2=Rm,hm.inflate=function(e,t){var n,r,o,i,a,s,l,c,u,h,d,p,m,f,g,b,y,k,w,v,x,S,_,C,A=0,z=new bm.Buf8(4),P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return Sm;(n=e.state).mode===Cm&&(n.mode=13),a=e.next_out,o=e.output,l=e.avail_out,i=e.next_in,r=e.input,s=e.avail_in,c=n.hold,u=n.bits,h=s,d=l,S=xm;e:for(;;)switch(n.mode){case _m:if(0===n.wrap){n.mode=13;break}for(;u<16;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(2&n.wrap&&35615===c){n.check=0,z[0]=255&c,z[1]=c>>>8&255,n.check=km(n.check,z,2,0),c=0,u=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&c)<<8)+(c>>8))%31){e.msg="incorrect header check",n.mode=Am;break}if(8!=(15&c)){e.msg="unknown compression method",n.mode=Am;break}if(u-=4,x=8+(15&(c>>>=4)),0===n.wbits)n.wbits=x;else if(x>n.wbits){e.msg="invalid window size",n.mode=Am;break}n.dmax=1<<x,e.adler=n.check=1,n.mode=512&c?10:Cm,c=0,u=0;break;case 2:for(;u<16;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(n.flags=c,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=Am;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=Am;break}n.head&&(n.head.text=c>>8&1),512&n.flags&&(z[0]=255&c,z[1]=c>>>8&255,n.check=km(n.check,z,2,0)),c=0,u=0,n.mode=3;case 3:for(;u<32;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}n.head&&(n.head.time=c),512&n.flags&&(z[0]=255&c,z[1]=c>>>8&255,z[2]=c>>>16&255,z[3]=c>>>24&255,n.check=km(n.check,z,4,0)),c=0,u=0,n.mode=4;case 4:for(;u<16;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}n.head&&(n.head.xflags=255&c,n.head.os=c>>8),512&n.flags&&(z[0]=255&c,z[1]=c>>>8&255,n.check=km(n.check,z,2,0)),c=0,u=0,n.mode=5;case 5:if(1024&n.flags){for(;u<16;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}n.length=c,n.head&&(n.head.extra_len=c),512&n.flags&&(z[0]=255&c,z[1]=c>>>8&255,n.check=km(n.check,z,2,0)),c=0,u=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((p=n.length)>s&&(p=s),p&&(n.head&&(x=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),bm.arraySet(n.head.extra,r,i,p,x)),512&n.flags&&(n.check=km(n.check,r,p,i)),s-=p,i+=p,n.length-=p),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===s)break e;p=0;do{x=r[i+p++],n.head&&x&&n.length<65536&&(n.head.name+=String.fromCharCode(x))}while(x&&p<s);if(512&n.flags&&(n.check=km(n.check,r,p,i)),s-=p,i+=p,x)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===s)break e;p=0;do{x=r[i+p++],n.head&&x&&n.length<65536&&(n.head.comment+=String.fromCharCode(x))}while(x&&p<s);if(512&n.flags&&(n.check=km(n.check,r,p,i)),s-=p,i+=p,x)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;u<16;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(c!==(65535&n.check)){e.msg="header crc mismatch",n.mode=Am;break}c=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Cm;break;case 10:for(;u<32;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}e.adler=n.check=Em(c),c=0,u=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=a,e.avail_out=l,e.next_in=i,e.avail_in=s,n.hold=c,n.bits=u,2;e.adler=n.check=1,n.mode=Cm;case Cm:if(5===t||6===t)break e;case 13:if(n.last){c>>>=7&u,u-=7&u,n.mode=27;break}for(;u<3;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}switch(n.last=1&c,u-=1,3&(c>>>=1)){case 0:n.mode=14;break;case 1:if(Mm(n),n.mode=20,6===t){c>>>=2,u-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=Am}c>>>=2,u-=2;break;case 14:for(c>>>=7&u,u-=7&u;u<32;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if((65535&c)!=(c>>>16^65535)){e.msg="invalid stored block lengths",n.mode=Am;break}if(n.length=65535&c,c=0,u=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(p=n.length){if(p>s&&(p=s),p>l&&(p=l),0===p)break e;bm.arraySet(o,r,i,p,a),s-=p,i+=p,l-=p,a+=p,n.length-=p;break}n.mode=Cm;break;case 17:for(;u<14;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(n.nlen=257+(31&c),c>>>=5,u-=5,n.ndist=1+(31&c),c>>>=5,u-=5,n.ncode=4+(15&c),c>>>=4,u-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=Am;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;u<3;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}n.lens[P[n.have++]]=7&c,c>>>=3,u-=3}for(;n.have<19;)n.lens[P[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,_={bits:n.lenbits},S=vm(0,n.lens,0,19,n.lencode,0,n.work,_),n.lenbits=_.bits,S){e.msg="invalid code lengths set",n.mode=Am;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;b=(A=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,y=65535&A,!((g=A>>>24)<=u);){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(y<16)c>>>=g,u-=g,n.lens[n.have++]=y;else{if(16===y){for(C=g+2;u<C;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(c>>>=g,u-=g,0===n.have){e.msg="invalid bit length repeat",n.mode=Am;break}x=n.lens[n.have-1],p=3+(3&c),c>>>=2,u-=2}else if(17===y){for(C=g+3;u<C;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}u-=g,x=0,p=3+(7&(c>>>=g)),c>>>=3,u-=3}else{for(C=g+7;u<C;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}u-=g,x=0,p=11+(127&(c>>>=g)),c>>>=7,u-=7}if(n.have+p>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=Am;break}for(;p--;)n.lens[n.have++]=x}}if(n.mode===Am)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=Am;break}if(n.lenbits=9,_={bits:n.lenbits},S=vm(1,n.lens,0,n.nlen,n.lencode,0,n.work,_),n.lenbits=_.bits,S){e.msg="invalid literal/lengths set",n.mode=Am;break}if(n.distbits=6,n.distcode=n.distdyn,_={bits:n.distbits},S=vm(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,_),n.distbits=_.bits,S){e.msg="invalid distances set",n.mode=Am;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(s>=6&&l>=258){e.next_out=a,e.avail_out=l,e.next_in=i,e.avail_in=s,n.hold=c,n.bits=u,wm(e,d),a=e.next_out,o=e.output,l=e.avail_out,i=e.next_in,r=e.input,s=e.avail_in,c=n.hold,u=n.bits,n.mode===Cm&&(n.back=-1);break}for(n.back=0;b=(A=n.lencode[c&(1<<n.lenbits)-1])>>>16&255,y=65535&A,!((g=A>>>24)<=u);){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(b&&0==(240&b)){for(k=g,w=b,v=y;b=(A=n.lencode[v+((c&(1<<k+w)-1)>>k)])>>>16&255,y=65535&A,!(k+(g=A>>>24)<=u);){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}c>>>=k,u-=k,n.back+=k}if(c>>>=g,u-=g,n.back+=g,n.length=y,0===b){n.mode=26;break}if(32&b){n.back=-1,n.mode=Cm;break}if(64&b){e.msg="invalid literal/length code",n.mode=Am;break}n.extra=15&b,n.mode=22;case 22:if(n.extra){for(C=n.extra;u<C;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;b=(A=n.distcode[c&(1<<n.distbits)-1])>>>16&255,y=65535&A,!((g=A>>>24)<=u);){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(0==(240&b)){for(k=g,w=b,v=y;b=(A=n.distcode[v+((c&(1<<k+w)-1)>>k)])>>>16&255,y=65535&A,!(k+(g=A>>>24)<=u);){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}c>>>=k,u-=k,n.back+=k}if(c>>>=g,u-=g,n.back+=g,64&b){e.msg="invalid distance code",n.mode=Am;break}n.offset=y,n.extra=15&b,n.mode=24;case 24:if(n.extra){for(C=n.extra;u<C;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=Am;break}n.mode=25;case 25:if(0===l)break e;if(p=d-l,n.offset>p){if((p=n.offset-p)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=Am;break}p>n.wnext?(p-=n.wnext,m=n.wsize-p):m=n.wnext-p,p>n.length&&(p=n.length),f=n.window}else f=o,m=a-n.offset,p=n.length;p>l&&(p=l),l-=p,n.length-=p;do{o[a++]=f[m++]}while(--p);0===n.length&&(n.mode=21);break;case 26:if(0===l)break e;o[a++]=n.length,l--,n.mode=21;break;case 27:if(n.wrap){for(;u<32;){if(0===s)break e;s--,c|=r[i++]<<u,u+=8}if(d-=l,e.total_out+=d,n.total+=d,d&&(e.adler=n.check=n.flags?km(n.check,o,d,a-d):ym(n.check,o,d,a-d)),d=l,(n.flags?c:Em(c))!==n.check){e.msg="incorrect data check",n.mode=Am;break}c=0,u=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;u<32;){if(0===s)break e;s--,c+=r[i++]<<u,u+=8}if(c!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=Am;break}c=0,u=0}n.mode=29;case 29:S=1;break e;case Am:S=-3;break e;case 31:return-4;default:return Sm}return e.next_out=a,e.avail_out=l,e.next_in=i,e.avail_in=s,n.hold=c,n.bits=u,(n.wsize||d!==e.avail_out&&n.mode<Am&&(n.mode<27||4!==t))&&jm(e,e.output,e.next_out,d-e.avail_out),h-=e.avail_in,d-=e.avail_out,e.total_in+=h,e.total_out+=d,n.total+=d,n.wrap&&d&&(e.adler=n.check=n.flags?km(n.check,o,d,e.next_out-d):ym(n.check,o,d,e.next_out-d)),e.data_type=n.bits+(n.last?64:0)+(n.mode===Cm?128:0)+(20===n.mode||15===n.mode?256:0),(0===h&&0===d||4===t)&&S===xm&&(S=-5),S},hm.inflateEnd=function(e){if(!e||!e.state)return Sm;var t=e.state;return t.window&&(t.window=null),e.state=null,xm},hm.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?Sm:(n.head=t,t.done=!1,xm):Sm},hm.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?Sm:11===n.mode&&ym(1,t,r,0)!==n.check?-3:jm(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,xm):Sm},hm.inflateInfo="pako inflate (from Nodeca project)";var Fm={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},Um=hm,Wm=pd,Hm=qp,qm=Fm,Vm=ip,$m=Xp,Km=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},Zm=Object.prototype.toString;function Gm(e){if(!(this instanceof Gm))return new Gm(e);this.options=Wm.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new $m,this.strm.avail_out=0;var n=Um.inflateInit2(this.strm,t.windowBits);if(n!==qm.Z_OK)throw new Error(Vm[n]);if(this.header=new Km,Um.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=Hm.string2buf(t.dictionary):"[object ArrayBuffer]"===Zm.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Um.inflateSetDictionary(this.strm,t.dictionary))!==qm.Z_OK))throw new Error(Vm[n])}function Ym(e,t){var n=new Gm(t);if(n.push(e,!0),n.err)throw n.msg||Vm[n.err];return n.result}Gm.prototype.push=function(e,t){var n,r,o,i,a,s=this.strm,l=this.options.chunkSize,c=this.options.dictionary,u=!1;if(this.ended)return!1;r=t===~~t?t:!0===t?qm.Z_FINISH:qm.Z_NO_FLUSH,"string"==typeof e?s.input=Hm.binstring2buf(e):"[object ArrayBuffer]"===Zm.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new Wm.Buf8(l),s.next_out=0,s.avail_out=l),(n=Um.inflate(s,qm.Z_NO_FLUSH))===qm.Z_NEED_DICT&&c&&(n=Um.inflateSetDictionary(this.strm,c)),n===qm.Z_BUF_ERROR&&!0===u&&(n=qm.Z_OK,u=!1),n!==qm.Z_STREAM_END&&n!==qm.Z_OK)return this.onEnd(n),this.ended=!0,!1;s.next_out&&(0!==s.avail_out&&n!==qm.Z_STREAM_END&&(0!==s.avail_in||r!==qm.Z_FINISH&&r!==qm.Z_SYNC_FLUSH)||("string"===this.options.to?(o=Hm.utf8border(s.output,s.next_out),i=s.next_out-o,a=Hm.buf2string(s.output,o),s.next_out=i,s.avail_out=l-i,i&&Wm.arraySet(s.output,s.output,o,i,0),this.onData(a)):this.onData(Wm.shrinkBuf(s.output,s.next_out)))),0===s.avail_in&&0===s.avail_out&&(u=!0)}while((s.avail_in>0||0===s.avail_out)&&n!==qm.Z_STREAM_END);return n===qm.Z_STREAM_END&&(r=qm.Z_FINISH),r===qm.Z_FINISH?(n=Um.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===qm.Z_OK):r!==qm.Z_SYNC_FLUSH||(this.onEnd(qm.Z_OK),s.avail_out=0,!0)},Gm.prototype.onData=function(e){this.chunks.push(e)},Gm.prototype.onEnd=function(e){e===qm.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Wm.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},um.Inflate=Gm,um.inflate=Ym,um.inflateRaw=function(e,t){return(t=t||{}).raw=!0,Ym(e,t)},um.ungzip=Ym;var Xm={};(0,pd.assign)(Xm,md,um,Fm);var Jm=Xm;const{deflate:Qm}=Jm,ef=function(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),n=new Uint8Array(e),r=n.length,o=r%3,i=[],a=16383;let s;for(let e=0,t=r-o;e<t;e+=a)i.push(l(e,e+a>t?t:e+a));return 1===o?(s=n[r-1],i.push(t[s>>2]+t[s<<4&63]+"==")):2===o&&(s=(n[r-2]<<8)+n[r-1],i.push(t[s>>10]+t[s>>4&63]+t[s<<2&63]+"=")),i.join("");function l(e,r){let o;const i=[];for(let s=e;s<r;s+=3)o=(n[s]<<16&16711680)+(n[s+1]<<8&65280)+(255&n[s+2]),i.push(t[(a=o)>>18&63]+t[a>>12&63]+t[a>>6&63]+t[63&a]);var a;return i.join("")}};var tf=function({type:e,value:t,compress:n,serialize:r}){const o={type:e,value:t};return n&&(o.value=Qm(new Uint8Array(o.value)),o.compressed=!0),r&&(o.value=ef(o.value)),o},nf=function(e){return/^(blob|https?):/.test(e)},rf=function(e){const t=e&&e.match(/(^[^#]*)/),n=t&&t[1]||e;return n&&n.replace(/\?\s*$/,"?")||e},of=function(e){return e.reduce(((e,t)=>e.concat(t)),[])};const{absolutizeUrl:af}=u,sf=tf,lf=nf,cf=rf,uf=fh,hf=of,df=hd;const pf=Th,mf=of;const ff=of,gf=rf,bf=function(e){const t=new URL(e);return t.username&&(t.username=""),t.password&&(t.password=""),t.href};const yf=Th,kf=Dh,wf=hd;const vf=hd;const xf=hd;const Sf=function(t){const n=new TextDecoder("utf-8").decode(t),r=e.head||e.querySelectorAll("head")[0],o=e.createElement("style");return o.type="text/css",o.setAttribute("data-desc","Applitools tmp variable created by DOM SNAPSHOT"),r.appendChild(o),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(e.createTextNode(n)),o.sheet},_f=fh;const Cf=tf;var Af=function(e,{log:t,compress:n,serialize:r}){return e.reduce(((e,{url:o,element:i,cdtNode:a})=>{const s=new Promise((e=>{try{i.toBlob((t=>t?e(t.arrayBuffer()):n()),"image/png")}catch(e){n(e)}function n(n){var r;t("resetting canvas node",n?n.message:"",i&&i.attributes&&(r=i,JSON.stringify(Array(r.attributes).reduce(((e,t)=>Object.assign({[t.name]:t.value},e)),{})))),a.attributes.splice(a.attributes.findIndex((e=>"data-applitools-src"===e.name)),1),a.attributes.push({name:"data-applitools-tainted-canvas",value:"true"}),e()}}));return e.then((e=>s.then((t=>{if(t){const i=Cf({type:"image/png",value:t,compress:n,serialize:r});i.url=o,e.push(i)}return e}))))}),Promise.resolve([]))};const zf=of,Pf=Af,Ef=Vh;const Lf=of,Of=tf;const Nf=f;const Tf="__process_resource";const{cleanupElementIds:Rf}=h,{generateSafeSelectors:Df}=m,{absolutizeUrl:If}=u,Bf=f,Mf=function(e,t,n=td){const r=[{nodeType:Node.DOCUMENT_NODE}],o=[e],i=[],a=[],s=[],l=[];let c=[];const u=[],h=[];return r[0].childNodeIndexes=d(r,e.childNodes),e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&(r[0].exp_adoptedStyleSheets=ud(e)),{cdt:r,docRoots:o,canvasElements:i,frames:s,inlineFrames:a,crossFrames:l,linkUrls:c,imageBlobs:u,videoBlobs:h};function d(e,t){if(!t||0===t.length)return null;const n=[];return Array.prototype.forEach.call(t,(t=>{const r=p(e,t);null!==r&&n.push(r)})),n}function p(e,r){const m=od(r);let f;if([Node.ELEMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(m.nodeType)){if(m.hasAttribute&&m.hasAttribute("data-applitools-skip"))return null;if(["LINK","STYLE","SOURCE"].includes(m.nodeName)&&m.media.trim()&&!rd(m.media))return null;if("SCRIPT"===m.nodeName)f=function(e){return{nodeType:Node.ELEMENT_NODE,nodeName:"SCRIPT",attributes:ld(e).map((t=>{const n=e.attributes[t].name;return{name:n,value:sd.test(n)?"":e.attributes[t].value}})).filter((e=>"src"!==e.name)),childNodeIndexes:[]}}(m);else{const c=m.shadowRoot&&m.shadowRoot.childNodes.length&&"ShadowRoot"!==m.shadowRoot.constructor.name;if(f=function(e){const t={nodeType:e.nodeType,nodeName:e.nodeName,attributes:ld(e).map((t=>{let n=e.attributes[t].value;const r=e.attributes[t].name;return n.includes("blob:")?n=n.replace(/blob:/g,""):sd.test(r)?n="":"IFRAME"===e.nodeName&&Zh(e)&&"src"===r&&"about:blank"!==e.contentDocument.location.href&&e.contentDocument.location.href!==$h(n,e.ownerDocument.location.href)?n=e.contentDocument.location.href:"style"===r&&(n=ed(e.style)),{name:r,value:n}}))};if("INPUT"===e.tagName&&["checkbox","radio"].includes(e.type)){if(e.attributes.checked&&!e.checked){const e=t.attributes.findIndex((e=>"checked"===e.name));t.attributes.splice(e,1)}!e.attributes.checked&&e.checked&&t.attributes.push({name:"checked"}),e.indeterminate&&t.attributes.push({name:"data-applitools-js-properties",value:JSON.stringify({indeterminate:!0})})}return"INPUT"===e.tagName&&ad.has(e.type)&&(e.attributes.value&&e.attributes.value.value)!==e.value&&cd(t.attributes,"value",e.value),"OPTION"===e.tagName&&e.parentElement.selectedOptions&&Array.from(e.parentElement.selectedOptions).indexOf(od.unwrap(e))>-1&&cd(t.attributes,"selected",""),"STYLE"===e.tagName&&e.sheet&&e.sheet.disabled&&t.attributes.push({name:"data-applitools-disabled",value:""}),"LINK"===e.tagName&&"text/css"===e.type&&e.sheet&&e.sheet.disabled&&cd(t.attributes,"disabled",""),t}(m),"STYLE"===m.nodeName&&m.sheet&&m.sheet.cssRules.length?(e.push(function(e,t,n){const r=Xh(e);return n.__dsNodeCache&&n.__dsNodeCache.key===r?t("[domNodesToCdt] using cache for inline css of",id(e)):n.__dsNodeCache={key:r,value:Yh(e,t)},{nodeType:Node.TEXT_NODE,nodeValue:n.__dsNodeCache.value}}(m,n,r)),f.childNodeIndexes=[e.length-1]):"TEXTAREA"===m.tagName&&m.value!==m.textContent?(e.push(function(e){return{nodeType:Node.TEXT_NODE,nodeValue:e.value}}(m)),f.childNodeIndexes=[e.length-1]):f.childNodeIndexes=!c&&m.childNodes.length?d(e,m.childNodes):[],c&&"SLOT"===m.tagName&&"function"==typeof m.assignedNodes){const t=m.assignedNodes();f.childNodeIndexes=f.childNodeIndexes||[],f.childNodeIndexes=t.length?f.childNodeIndexes.concat(d(e,t)):f.childNodeIndexes}if(m.shadowRoot&&(c?f.childNodeIndexes=f.childNodeIndexes.concat(d(e,m.shadowRoot.childNodes)):(f.shadowRootIndex=p(e,m.shadowRoot),o.push(m.shadowRoot))),"CANVAS"===m.nodeName&&!nd(r)){const e=$h(`applitools-canvas-${Gh()}.png`,t);f.attributes.push({name:"data-applitools-src",value:e}),i.push({element:m,cdtNode:f,url:e})}if("IFRAME"===m.nodeName){const n=Gh();if(m.setAttribute("data-applitools-selector",n),nd(r))f.attributes.forEach((e=>{"src"!==e.name&&"srcdoc"!==e.name||(f.attributes.push({name:`data-applitools-original-${e.name}`,value:e.value}),e.value="")}));else if(Zh(r))if(Kh(m)){const e=$h(`?applitools-iframe=${Gh()}`,t);f.attributes.push({name:"data-applitools-src",value:e}),a.push({element:m,url:e})}else{const e=m.contentDocument.location.href,t=$h(`?applitools-iframe=${Gh()}`,e);f.attributes.push({name:"data-applitools-src",value:t}),s.push({element:m,url:t})}else{const t=`[data-applitools-selector="${n}"]`;l.push({selector:t,index:e.length})}}m.adoptedStyleSheets&&m.adoptedStyleSheets.length>0&&(f.exp_adoptedStyleSheets=ud(m))}if(m.nodeType===Node.ELEMENT_NODE){const e=Jh(m);if(e.length>0&&(c=c.concat(e)),"IMG"===m.tagName&&/^blob:/.test(m.src)){const e=m.src.replace(/^blob:/,"");u.push({element:m,cdtNode:f,url:e})}if("VIDEO"===m.tagName&&(/^blob:/.test(m.src)||m.srcObject)){let e;m.src?e=m.src.replace(/^blob:/,""):(e=$h(`applitools-video-${Gh()}.webm`,t),f.attributes.push({name:"data-applitools-src",value:e})),h.push({element:m,cdtNode:f,url:e})}}}else m.nodeType===Node.TEXT_NODE?f=function(e){return{nodeType:Node.TEXT_NODE,nodeValue:e.nodeValue}}(m):m.nodeType===Node.DOCUMENT_TYPE_NODE&&(f=function(e){return{nodeType:Node.DOCUMENT_TYPE_NODE,nodeName:e.nodeName}}(m));return f?(e.push(f),e.length-1):null}},jf=function(e){return e.reduce((({resourceUrls:e,blobsObj:t},{resourceUrls:n,blobsObj:r})=>({resourceUrls:dd(e.concat(n)),blobsObj:Object.assign(t,r)})),{resourceUrls:[],blobsObj:{}})},Ff=function({processResource:e,aggregateResourceUrlsAndBlobs:t}){return function n({documents:r,urls:o,forceCreateStyle:i=!1,skipResources:a}){return Promise.all(o.map((t=>e({url:t,documents:r,getResourceUrlsAndBlobs:n,forceCreateStyle:i,skipResources:a})))).then((e=>t(e)))}},Uf=function({fetchUrl:e,findStyleSheetByUrl:t,getCorsFreeStyleSheet:n,extractResourcesFromStyleSheet:r,extractResourcesFromSvg:o,sessionCache:i,cache:a={},compress:s,serialize:l,log:c=uf}){return function({url:u,documents:h,getResourceUrlsAndBlobs:d,forceCreateStyle:p=!1,skipResources:m}){if(!a[u])if(i&&i.getItem(u)){const e=function e(t){const n=i.getItem(t);return[t].concat(n?df(hf(n.map(e))):[])}(u);c("doProcessResource from sessionStorage",u,"deps:",e.slice(1)),a[u]=Promise.resolve({resourceUrls:e})}else if(m&&m.indexOf(u)>-1||/https:\/\/fonts.googleapis.com/.test(u))c("not processing resource from skip list (or google font):",u),a[u]=Promise.resolve({resourceUrls:[u]});else{const g=Date.now();a[u]=function(a){c("fetching",a);const u=Date.now();return e(a).catch((e=>function(e){const t=e.message&&(e.message.includes("Failed to fetch")||e.message.includes("Network request failed")),n=e.name&&e.name.includes("TypeError");return t&&n}(e)?{probablyCORS:!0,url:a}:e.isTimeout?{isTimeout:!0,url:a}:(c(`error while fetching resource ${a} ${e?`message=${e.message} | name=${e.name}`:""}`,e),{errorStatusCode:599,url:a}))).then((({url:e,type:a,value:f,probablyCORS:g,errorStatusCode:b,isTimeout:y})=>{if(g)return c("not fetched due to CORS",`[${Date.now()-u}ms]`,e),i&&i.setItem(e,[]),{resourceUrls:[e]};if(b){const t={[e]:{errorStatusCode:b}};return i&&i.setItem(e,[]),{blobsObj:t}}if(y)return c("not fetched due to timeout, returning error status code 504 (Gateway timeout)"),i&&i.setItem(e,[]),{blobsObj:{[e]:{errorStatusCode:504}}};let k;if(c(`fetched [${Date.now()-u}ms] ${e} bytes: ${f.byteLength}`),/text\/css/.test(a)){let o=t(e,h);if(o||p){const{corsFreeStyleSheet:e,cleanStyleSheet:t}=n(f,o);k=r(e),t()}}else if(/image\/svg/.test(a))try{k=o(f),p=!!k}catch(e){c("could not parse svg content",e)}const w={[e]:sf({type:a,value:f,compress:s,serialize:l})};if(k){const t=k.map((t=>af(t,e.replace(/^blob:/,"")))).map(cf).filter(lf);return t.length&&(w[e].dependencies=t),i&&i.setItem(e,t),d({documents:h,urls:t,forceCreateStyle:p,skipResources:m}).then((({resourceUrls:e,blobsObj:t})=>({resourceUrls:e,blobsObj:Object.assign(t,w)})))}return i&&i.setItem(e,[]),{blobsObj:w}})).catch((e=>(c("error while processing resource",a,e,e?`message=${e.message} | name=${e.name}`:""),i&&f(),{})))}(u).then((e=>(c("doProcessResource",`[${Date.now()-g}ms]`,u),e)))}return a[u];function f(){c("clearing from sessionStorage:",u),i.keys().forEach((e=>{const t=i.getItem(e);i.setItem(e,t.filter((e=>e!==u)))})),c("cleared from sessionStorage:",u)}}},Wf=function({parser:e,decoder:t,extractResourceUrlsFromStyleTags:n}){return function(r){const o=(t||new TextDecoder("utf-8")).decode(r),i=(e||new DOMParser).parseFromString(o,"image/svg+xml"),a=Array.from(i.querySelectorAll("img[srcset]")).map((e=>e.getAttribute("srcset").split(", ").map((e=>e.trim().split(/\s+/)[0])))).reduce(((e,t)=>e.concat(t)),[]),s=Array.from(i.querySelectorAll("img[src]")).map((e=>e.getAttribute("src"))),l=Array.from(i.querySelectorAll('image,use,link[rel="stylesheet"]')).map((e=>e.getAttribute("href")||e.getAttribute("xlink:href"))),c=Array.from(i.getElementsByTagName("object")).map((e=>e.getAttribute("data"))),u=n(i,!1),h=function(e){return mf(Array.from(e.querySelectorAll("*[style]")).map((e=>e.style.cssText)).map(pf).filter(Boolean))}(i);return a.concat(s).concat(l).concat(c).concat(u).concat(h).filter((e=>"#"!==e[0]))}},Hf=function({fetch:e=window.fetch,AbortController:t=window.AbortController,timeout:n=1e4,mediaDownloadTimeout:r=3e4}){return function(o){return new Promise(((i,a)=>{const s=new t,l=()=>{const e=new Error("fetchUrl timeout reached");e.isTimeout=!0,a(e),s.abort()},c=setTimeout(l,n);return e(o,{cache:"force-cache",credentials:"same-origin",signal:s.signal}).then((e=>{if(clearTimeout(c),200===e.status){const t=e.headers.get("Content-Type"),n=!e.headers.get("Content-Length")&&["audio/","video/"].some((n=>t&&e.headers.get("Content-Type").startsWith(n)))&&setTimeout(l,r);return e.arrayBuffer().then((e=>(n&&clearTimeout(n),{url:o,value:e,type:t})))}return{url:o,errorStatusCode:e.status}})).then(i).catch((e=>a(e)))}))}},qf=function({styleSheetCache:e}){return function(t,n){const r=ff(n.map((e=>{try{return Array.from(e.styleSheets)}catch(e){return[]}})));return e[t]||r.find((e=>{const n=e.href&&gf(e.href);return n&&bf(n)===t}))}},Vf=function({styleSheetCache:e,CSSRule:t=window.CSSRule,removeReverseProxyURLPrefixes:n}){return function r(o){return wf(Array.from(o.cssRules||[]).reduce(((o,i)=>{const a={[t.IMPORT_RULE]:()=>i.styleSheet&&(e[i.styleSheet.href]=i.styleSheet,i.styleSheet.href)?i.styleSheet.href:i.href,[t.FONT_FACE_RULE]:()=>yf(i.cssText,{removeReverseProxyURLPrefixes:n}),[t.SUPPORTS_RULE]:()=>r(i),[t.MEDIA_RULE]:()=>r(i),[t.STYLE_RULE]:()=>kf(i.style)}[i.type],s=a&&a()||[];return i?.cssRules&&s.push(...r(i)),o.concat(s)}),[])).filter((e=>"#"!==e[0]))}},$f=function(e){return function(t,n=!0){return vf(Array.from(t.querySelectorAll("style")).reduce(((r,o)=>{const i=n?Array.from(t.styleSheets).find((e=>e.ownerNode===o)):o.sheet;return i?r.concat(e(i)):r}),[]))}},Kf=function(e){return function(t){return t.adoptedStyleSheets?xf(t.adoptedStyleSheets.reduce(((t,n)=>t.concat(e(n))),[])):[]}},Zf=function(e,t,n=_f){let r;if(t)try{t.cssRules,r=t}catch(o){n(`[dom-snapshot] could not access cssRules for ${t.href} ${o}\ncreating temp style for access.`),r=Sf(e)}else r=Sf(e);return{corsFreeStyleSheet:r,cleanStyleSheet:function(){r!==t&&r.ownerNode.parentNode.removeChild(r.ownerNode)}}},Gf=Af,Yf=function(e,{doc:t,fetchedBlobs:n,log:r,compress:o,serialize:i,sessionCache:a}){if(!t.body||0===e.length)return Promise.resolve([]);const s=new Set(Object.keys(n));let l=e.filter((({url:e})=>!(s.has("blob:"+e)||a&&a.getItem("blob:"+e))));const c=t.createElement("canvas");c.style.display="none";const u=Ef(t.body);return u.appendChild(c),Promise.all(l.map((({element:e,url:t,cdtNode:n})=>(c.width=e.naturalWidth,c.height=e.naturalHeight,c.getContext("2d").drawImage(Ef.unwrap(e),0,0),Pf([{url:t,element:c,cdtNode:n}],{log:r,compress:o,serialize:i}))))).then((e=>(u.removeChild(c),zf(e)))).catch((()=>{u.removeChild(c)}))},Xf=function(e,{doc:t,fetchedBlobs:n,compress:r,serialize:o,sessionCache:i}){if(!t.body)return Promise.resolve([]);const a=new Set(Object.keys(n));let s=e.filter((({url:e})=>!(a.has("blob:"+e)||i&&i.getItem("blob:"+e))));return Promise.all(s.map((({element:e,url:t})=>{const n=e.captureStream();return 0===n.getVideoTracks().length?[]:new Promise((i=>{const a=new MediaRecorder(n,{mimeType:"video/webm"});a.addEventListener("dataavailable",(n=>{a.stop(),e.pause(),n.data.arrayBuffer().then((e=>{const a=Of({type:n.data.type,value:e,compress:r,serialize:o});a.url=t,i(a)}))}),{once:!0}),e.play(),a.start(),setTimeout((()=>a.requestData()),1e3)}))}))).then((e=>Lf(e)))},Jf=function(e){const t=e.querySelectorAll("base")[0]&&e.querySelectorAll("base")[0].href;if(t&&function(e){return e&&!/^(about:blank|javascript:void|blob:)/.test(e)}(t))return Nf(t)},Qf=function(e){return e&&e.replace(/(\\[0-9a-fA-F]{1,6}\s?)/g,(e=>{const t=parseInt(e.substr(1).trim(),16);return t>1114111?e:String.fromCodePoint(t)}))||e},eg=rf,tg=hd,ng=of,rg=nf,og=function(e){return function(){const t=["[dom-snapshot]",`[+${Date.now()-e}ms]`].concat(Array.from(arguments));console.log.apply(console,t)}},ig=fh,ag=function({log:e,sessionStorage:t}){let n;try{const e=(t=t||window.sessionStorage).getItem(Tf);n=e?JSON.parse(e):{}}catch(t){e("error creating session cache",t)}return{getItem:function(e){if(n)return n[e]},setItem:function(t,r){n&&(e("saving to in-memory sessionStorage, key:",t,"value:",r),n[t]=r)},keys:function(){return n?Object.keys(n):[]},persist:function(){n&&t.setItem(Tf,JSON.stringify(n))}}};function sg(e){return e&&rg(e)}const{pollify:lg}=u,{EYES_NAMESPACE:cg,DOM_SNAPSHOT_KEY:ug}={EYES_NAMESPACE:"__EYES__APPLITOOLS__",DOM_SNAPSHOT_KEY:"domSnapshotResult"},hg=function({doc:t=e,showLogs:n,useSessionCache:r,dontFetchResources:o,fetchTimeout:i,skipResources:a,compressResources:s,serializeResources:l,removeReverseProxyURLPrefixes:c,elements:u}={}){
|
|
3
3
|
/* MARKER FOR TEST - DO NOT DELETE */
|
|
4
|
-
arguments[0]instanceof Document&&(t=arguments[0],n=arguments[1].showLogs,r=arguments[1].useSessionCache,o=arguments[1].dontFetchResources,i=arguments[1].fetchTimeout,a=arguments[1].skipResources,s=arguments[1].compressResources,l=arguments[1].serializeResources,c=arguments[1].removeReverseProxyURLPrefixes);const h=n?og(Date.now()):ig;h("processPage start"),h(`skipResources length: ${a&&a.length}`);const d=r&&ag({log:h}),p={},m=Vf({styleSheetCache:p,removeReverseProxyURLPrefixes:c}),f=qf({styleSheetCache:p}),g=$f(m),b=Kf(m),y=Wf({extractResourceUrlsFromStyleTags:g}),k=Hf({timeout:i}),w=Uf({fetchUrl:k,findStyleSheetByUrl:f,getCorsFreeStyleSheet:Zf,extractResourcesFromStyleSheet:m,extractResourcesFromSvg:y,absolutizeUrl:If,log:h,sessionCache:d,compress:s,serialize:l}),v=Ff({processResource:w,aggregateResourceUrlsAndBlobs:jf});return function e(t,n=t.location.href){const r=Jf(t)||n,i=Df(u),{cdt:c,docRoots:p,canvasElements:m,frames:f,inlineFrames:y,crossFrames:k,linkUrls:w,imageBlobs:x,videoBlobs:S}=Mf(t,r,h),_=ng(p.map((e=>g(e)))),C=ng(p.map((e=>b(e)))),A=function(e){return function(t){try{return Bf(If(t,e))}catch(e){}}}(r),z=tg(Array.from(w).concat(Array.from(_)).concat(Array.from(C))).map((e=>e.trim())).reduce(((e,t)=>{e.push(t);const n=Qf(t);return n!==t&&e.push(n),e}),[]).map(A).map(eg).filter(sg),P=o?Promise.resolve({resourceUrls:z,blobsObj:{}}):v({documents:p,urls:z,skipResources:a}).then((e=>(d&&d.persist(),e))),E=Gf(m,{log:h,compress:s,serialize:l}),L=P.then((e=>Yf(x,{fetchedBlobs:e.blobsObj,doc:t,log:h,compress:s,serialize:l,sessionCache:d}))),O=P.then((e=>Xf(S,{fetchedBlobs:e.blobsObj,doc:t,log:h,compress:s,serialize:l,sessionCache:d}))),N=f.map((({element:t,url:n})=>e(t.contentDocument,n))),T=y.map((({element:t,url:n})=>e(t.contentDocument,n)));return Promise.all([P,E,L,O].concat(N).concat(T)).then((function(e){const{resourceUrls:t,blobsObj:o}=e[0],a=e[1],s=e[2],l=e[3],h=e.slice(4),d=R("src"),p=R("data-applitools-selector"),m=p?`[data-applitools-selector="${p}"]`:void 0,f=function(e){return Object.keys(e).map((t=>Object.assign({url:t.replace(/^blob:/,"")},e[t])))}(o).concat(a).concat(s).concat(l),g=[],b=[];for(const e of f)599===e.errorStatusCode||504===e.errorStatusCode?(t.push(e.url),g.push(`${e.errorStatusCode}:${e.url}`)):b.push(e);const y={cdt:c,url:n,srcAttr:d,resourceUrls:t.map((e=>e.replace(/^blob:/,""))),blobs:b,frames:h,crossFrames:k};void 0!==i&&(y.safeSelectors=i),void 0!==m&&(y.selector=m),r!==n&&(y.baseUri=r);try{u&&Rf(u)}catch(e){g.push(e.message)}return g.length>0&&(y.warnings=g),y}));function R(e){return t.defaultView&&t.defaultView.frameElement&&t.defaultView.frameElement.getAttribute(e)}}(t).then((e=>(h("processPage end"),e.scriptVersion="4.11.
|
|
4
|
+
arguments[0]instanceof Document&&(t=arguments[0],n=arguments[1].showLogs,r=arguments[1].useSessionCache,o=arguments[1].dontFetchResources,i=arguments[1].fetchTimeout,a=arguments[1].skipResources,s=arguments[1].compressResources,l=arguments[1].serializeResources,c=arguments[1].removeReverseProxyURLPrefixes);const h=n?og(Date.now()):ig;h("processPage start"),h(`skipResources length: ${a&&a.length}`);const d=r&&ag({log:h}),p={},m=Vf({styleSheetCache:p,removeReverseProxyURLPrefixes:c}),f=qf({styleSheetCache:p}),g=$f(m),b=Kf(m),y=Wf({extractResourceUrlsFromStyleTags:g}),k=Hf({timeout:i}),w=Uf({fetchUrl:k,findStyleSheetByUrl:f,getCorsFreeStyleSheet:Zf,extractResourcesFromStyleSheet:m,extractResourcesFromSvg:y,absolutizeUrl:If,log:h,sessionCache:d,compress:s,serialize:l}),v=Ff({processResource:w,aggregateResourceUrlsAndBlobs:jf});return function e(t,n=t.location.href){const r=Jf(t)||n,i=Df(u),{cdt:c,docRoots:p,canvasElements:m,frames:f,inlineFrames:y,crossFrames:k,linkUrls:w,imageBlobs:x,videoBlobs:S}=Mf(t,r,h),_=ng(p.map((e=>g(e)))),C=ng(p.map((e=>b(e)))),A=function(e){return function(t){try{return Bf(If(t,e))}catch(e){}}}(r),z=tg(Array.from(w).concat(Array.from(_)).concat(Array.from(C))).map((e=>e.trim())).reduce(((e,t)=>{e.push(t);const n=Qf(t);return n!==t&&e.push(n),e}),[]).map(A).map(eg).filter(sg),P=o?Promise.resolve({resourceUrls:z,blobsObj:{}}):v({documents:p,urls:z,skipResources:a}).then((e=>(d&&d.persist(),e))),E=Gf(m,{log:h,compress:s,serialize:l}),L=P.then((e=>Yf(x,{fetchedBlobs:e.blobsObj,doc:t,log:h,compress:s,serialize:l,sessionCache:d}))),O=P.then((e=>Xf(S,{fetchedBlobs:e.blobsObj,doc:t,log:h,compress:s,serialize:l,sessionCache:d}))),N=f.map((({element:t,url:n})=>e(t.contentDocument,n))),T=y.map((({element:t,url:n})=>e(t.contentDocument,n)));return Promise.all([P,E,L,O].concat(N).concat(T)).then((function(e){const{resourceUrls:t,blobsObj:o}=e[0],a=e[1],s=e[2],l=e[3],h=e.slice(4),d=R("src"),p=R("data-applitools-selector"),m=p?`[data-applitools-selector="${p}"]`:void 0,f=function(e){return Object.keys(e).map((t=>Object.assign({url:t.replace(/^blob:/,"")},e[t])))}(o).concat(a).concat(s).concat(l),g=[],b=[];for(const e of f)599===e.errorStatusCode||504===e.errorStatusCode?(t.push(e.url),g.push(`${e.errorStatusCode}:${e.url}`)):b.push(e);const y={cdt:c,url:n,srcAttr:d,resourceUrls:t.map((e=>e.replace(/^blob:/,""))),blobs:b,frames:h,crossFrames:k};void 0!==i&&(y.safeSelectors=i),void 0!==m&&(y.selector=m),r!==n&&(y.baseUri=r);try{u&&Rf(u)}catch(e){g.push(e.message)}return g.length>0&&(y.warnings=g),y}));function R(e){return t.defaultView&&t.defaultView.frameElement&&t.defaultView.frameElement.getAttribute(e)}}(t).then((e=>(h("processPage end"),e.scriptVersion="4.11.10",e)))};window[cg]=window[cg]||{};const dg=lg(hg,window[cg],ug);return function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}((function(e){try{return JSON.stringify(dg(e)(e))}catch(e){return JSON.stringify({status:"ERROR",error:e.message})}}))}()};let t=!0;try{let n=document.head.querySelector("[data-applitools-sandbox]");n||(n=document.createElement("iframe"),n.setAttribute("data-applitools-sandbox",""),n.setAttribute("data-applitools-skip",""),document.head.appendChild(n));const r=window.crypto.getRandomValues(new Uint32Array(1))[0],o=n.contentDocument.createElement("script");o.textContent=`window['ctor-${r}'] = ${e.toString()};`,n.contentDocument.head.appendChild(o);const i=n.contentWindow[`ctor-${r}`];if("function"!=typeof i)throw new Error("Sandbox failed to extract function");return t=!1,i(document).apply(null,arguments)}catch(n){try{return e(document).apply(null,arguments)}catch(e){throw t?e:n}}},n=e(t);module.exports=n;
|