@cas-smartdesign/header-layout 3.0.1 → 3.1.0

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/dist/docs/doc.mjs CHANGED
@@ -1,4 +1,4 @@
1
- (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function t(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=t(i);fetch(i.href,o)}})();const Mr=`<!-- Load element with all dependencies directly -->
1
+ (function(){const d=document.createElement("link").relList;if(d&&d.supports&&d.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))f(r);new MutationObserver(r=>{for(const h of r)if(h.type==="childList")for(const s of h.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&f(s)}).observe(document,{childList:!0,subtree:!0});function m(r){const h={};return r.integrity&&(h.integrity=r.integrity),r.referrerPolicy&&(h.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?h.credentials="include":r.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function f(r){if(r.ep)return;r.ep=!0;const h=m(r);fetch(r.href,h)}})();const jr=`<!-- Load element with all dependencies directly -->
2
2
  <script src="./header-layout-with-externals.js"><\/script>
3
3
 
4
4
  <sd-header-layout>
@@ -6,8 +6,8 @@
6
6
  <div class="header small" slot="header"><img src="monkey.svg" />This is the small header</div>
7
7
  <div class="content" slot="content">And<br />this<br />is<br />the<br />form<br />content</div>
8
8
  </sd-header-layout>
9
- `,Tr=`<h3 id="simple-header-layout-setup">Simple header layout setup</h3>
10
- `,Lr=`sd-header-layout {
9
+ `,zr=`<h3 id="simple-header-layout-setup">Simple header layout setup</h3>
10
+ `,Hr=`sd-header-layout {
11
11
  height: 400px;
12
12
  }
13
13
  .header {
@@ -42,7 +42,7 @@
42
42
  padding: 16px;
43
43
  height: 700px;
44
44
  }
45
- `,Pr={mainContent:Mr,description:Tr,css:Lr},$r=Object.freeze(Object.defineProperty({__proto__:null,default:Pr},Symbol.toStringTag,{value:"Module"})),Ir="modulepreload",jr=function(r,e){return new URL(r,e).href},Zt={},wn=function(e,t,n){let i=Promise.resolve();if(t&&t.length>0){const o=document.getElementsByTagName("link");i=Promise.all(t.map(s=>{if(s=jr(s,n),s in Zt)return;Zt[s]=!0;const a=s.endsWith(".css"),l=a?'[rel="stylesheet"]':"";if(!!n)for(let b=o.length-1;b>=0;b--){const g=o[b];if(g.href===s&&(!a||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${l}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":Ir,a||(u.as="script",u.crossOrigin=""),u.href=s,document.head.appendChild(u),a)return new Promise((b,g)=>{u.addEventListener("load",b),u.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${s}`)))})}))}return i.then(()=>e()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})},zr=`<sd-header-layout id="manual-switch-example">
45
+ `,Br={mainContent:jr,description:zr,css:Hr},Dr=Object.freeze(Object.defineProperty({__proto__:null,default:Br},Symbol.toStringTag,{value:"Module"})),Ur="modulepreload",$r=function(a,d){return new URL(a,d).href},ln={},Bn=function(d,m,f){let r=Promise.resolve();if(m&&m.length>0){let c=function(e){return Promise.all(e.map(i=>Promise.resolve(i).then(t=>({status:"fulfilled",value:t}),t=>({status:"rejected",reason:t}))))};const s=document.getElementsByTagName("link"),g=document.querySelector("meta[property=csp-nonce]"),x=g?.nonce||g?.getAttribute("nonce");r=c(m.map(e=>{if(e=$r(e,f),e in ln)return;ln[e]=!0;const i=e.endsWith(".css"),t=i?'[rel="stylesheet"]':"";if(!!f)for(let u=s.length-1;u>=0;u--){const p=s[u];if(p.href===e&&(!i||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${e}"]${t}`))return;const l=document.createElement("link");if(l.rel=i?"stylesheet":Ur,i||(l.as="script"),l.crossOrigin="",l.href=e,x&&l.setAttribute("nonce",x),document.head.appendChild(l),i)return new Promise((u,p)=>{l.addEventListener("load",u),l.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${e}`)))})}))}function h(s){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=s,window.dispatchEvent(g),!g.defaultPrevented)throw s}return r.then(s=>{for(const g of s||[])g.status==="rejected"&&h(g.reason);return d().catch(h)})},qr=`<sd-header-layout id="manual-switch-example">
46
46
  <div class="header-container" slot="header">
47
47
  <div class="header large"><img src="monkey.svg" />This is the large header</div>
48
48
  <div class="header small"><img src="monkey.svg" />This is the small header</div>
@@ -50,9 +50,9 @@
50
50
  </div>
51
51
  <div class="content" slot="content">And<br />this<br />is<br />the<br />form<br />content</div>
52
52
  </sd-header-layout>
53
- `,Hr=`<h3 id="manually-switch-between-the-headers">Manually switch between the headers</h3>
53
+ `,Fr=`<h3 id="manually-switch-between-the-headers">Manually switch between the headers</h3>
54
54
  <p>This way we can keep some parts of the header.</p>
55
- `,Dr=`sd-header-layout {
55
+ `,Wr=`sd-header-layout {
56
56
  height: 400px;
57
57
  }
58
58
  .header-container {
@@ -92,7 +92,7 @@
92
92
  .sticky-note {
93
93
  text-align: center;
94
94
  }
95
- `,Br=`import "@cas-smartdesign/header-layout";
95
+ `,Gr=`import "@cas-smartdesign/header-layout";
96
96
  import HeaderLayout from "@cas-smartdesign/header-layout";
97
97
 
98
98
  const headerLayout = document.querySelector("#manual-switch-example") as HeaderLayout;
@@ -120,13 +120,13 @@ headerLayout.addEventListener("header-switch", (event: CustomEvent) => {
120
120
  smallContent.style.display = "";
121
121
  }
122
122
  });
123
- `,Ur={mainContent:zr,description:Hr,css:Dr,initializer:{content:Br,type:"typescript",initialize:()=>wn(()=>import("./manual-switch-content.js"),__vite__mapDeps([]),import.meta.url)}},Fr=Object.freeze(Object.defineProperty({__proto__:null,default:Ur},Symbol.toStringTag,{value:"Module"})),Wr=`<sd-header-layout id="custom-event-example">
123
+ `,Zr={mainContent:qr,description:Fr,css:Wr,initializer:{content:Gr,type:"typescript",initialize:()=>Bn(()=>import("./manual-switch-content.js"),[],import.meta.url)}},Kr=Object.freeze(Object.defineProperty({__proto__:null,default:Zr},Symbol.toStringTag,{value:"Module"})),Jr=`<sd-header-layout id="custom-event-example">
124
124
  <div class="header large" slot="header"><img src="monkey.svg" /><span>This is the normal header</span></div>
125
125
  <div class="content" slot="content">And<br />this<br />is<br />the<br />form<br />content</div>
126
126
  </sd-header-layout>
127
- `,Gr=`<h3 id="handle-custom-event-of-header-switch">Handle custom event of header switch</h3>
127
+ `,Vr=`<h3 id="handle-custom-event-of-header-switch">Handle custom event of header switch</h3>
128
128
  <p>The header itself is the same, but a different CSS is applied.</p>
129
- `,Zr=`sd-header-layout {
129
+ `,Xr=`sd-header-layout {
130
130
  height: 400px;
131
131
  }
132
132
  .header {
@@ -162,7 +162,7 @@ headerLayout.addEventListener("header-switch", (event: CustomEvent) => {
162
162
  padding: 16px;
163
163
  height: 700px;
164
164
  }
165
- `,qr=`import "@cas-smartdesign/header-layout";
165
+ `,Qr=`import "@cas-smartdesign/header-layout";
166
166
  import HeaderLayout from "@cas-smartdesign/header-layout";
167
167
 
168
168
  const headerLayout = document.querySelector("#custom-event-example") as HeaderLayout;
@@ -181,7 +181,7 @@ headerLayout.addEventListener("header-switch", (event: CustomEvent) => {
181
181
  event.detail.shouldShowNormalHeader ? "normal" : "small"
182
182
  } header\`;
183
183
  });
184
- `,Kr={mainContent:Wr,description:Gr,css:Zr,initializer:{content:qr,type:"typescript",initialize:()=>wn(()=>import("./manual-switch-style.js"),__vite__mapDeps([]),import.meta.url)}},Vr=Object.freeze(Object.defineProperty({__proto__:null,default:Kr},Symbol.toStringTag,{value:"Module"})),xn=class je extends HTMLElement{memoizedTemplate(){const e=this.is();if(je.TEMPLATE_CACHE[e])return je.TEMPLATE_CACHE[e];const t=this.template();return window.ShadyCSS&&window.ShadyCSS.prepareTemplate(t,this.is()),je.TEMPLATE_CACHE[e]=t,t}connectedCallback(){const e=this.memoizedTemplate();window.ShadyCSS&&window.ShadyCSS.styleElement(this),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(document.importNode(e.content,!0)),requestAnimationFrame(()=>this.dispatchEvent(new CustomEvent("ready"))))}whenReady(e){this.shadowRoot?e():this.addEventListener("ready",()=>e())}};xn.TEMPLATE_CACHE={};let Jr=xn;const Xr=`<style>
184
+ `,Yr={mainContent:Jr,description:Vr,css:Xr,initializer:{content:Qr,type:"typescript",initialize:()=>Bn(()=>import("./manual-switch-style.js"),[],import.meta.url)}},ei=Object.freeze(Object.defineProperty({__proto__:null,default:Yr},Symbol.toStringTag,{value:"Module"})),Dn=class We extends HTMLElement{memoizedTemplate(){const d=this.is();if(We.TEMPLATE_CACHE[d])return We.TEMPLATE_CACHE[d];const m=this.template();return window.ShadyCSS&&window.ShadyCSS.prepareTemplate(m,this.is()),We.TEMPLATE_CACHE[d]=m,m}connectedCallback(){const d=this.memoizedTemplate();window.ShadyCSS&&window.ShadyCSS.styleElement(this),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(document.importNode(d.content,!0)),requestAnimationFrame(()=>this.dispatchEvent(new CustomEvent("ready"))))}whenReady(d){this.shadowRoot?d():this.addEventListener("ready",()=>d())}};Dn.TEMPLATE_CACHE={};let ti=Dn;const ni=`<style>
185
185
  :host {
186
186
  display: block;
187
187
  position: relative;
@@ -240,35 +240,38 @@ headerLayout.addEventListener("header-switch", (event: CustomEvent) => {
240
240
  <div class="content-container">
241
241
  <slot name="content"></slot>
242
242
  </div>
243
- `,Ze=class Ze extends Jr{constructor(){super(),this.headerResizeObserverActive=!0,this.showNormalHeader=!0,this.scrollElement=this,this.debounced={};const e=window.CSS;this.supportsSticky=e&&e.supports("position","sticky"),this.supportsSticky||(this.resizeObserver=new ResizeObserver(()=>this.debounce("non-sticky-resize",()=>{this.lastKnownWidth!==this.offsetWidth&&(this.lastKnownWidth=this.offsetWidth,this.headerContainer.style.width=`calc(100% - ${this.contentContainer.offsetWidth-this.contentContainer.clientWidth}px)`)}))),this.headerResizeObserver=new ResizeObserver(()=>this.headerResizeObserverActive&&this.debounce("header-resize",()=>{this.headerContainer&&this.headerContainer.offsetParent&&(this.updateHeaderHeight(),this.updateHeader())}))}is(){return Ze.ID}template(){const e=document.createElement("template");return e.innerHTML=Xr,e}connectedCallback(){super.connectedCallback(),this.headerContainer||this.initialize(),this.supportsSticky||(this.resizeObserver.observe(this),this.scrollElement=this.contentContainer),this.headerResizeObserver.observe(this.headerContainer),this.updateContentContainerPadding(this.headerContainer.offsetHeight)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect(),this.headerResizeObserver&&this.headerResizeObserver.disconnect()}initialize(){this.headerContainer=this.shadowRoot.querySelector(".header-container"),this.contentContainer=this.shadowRoot.querySelector(".content-container"),this.headerSlot=this.shadowRoot.querySelector(".header-container > slot"),this.headerSlot.addEventListener("slotchange",()=>{this.updateHeaderElementRefs()}),this.supportsSticky&&(this.setAttribute("sticky",""),this.addEventListener("scroll",()=>{this.updateHeader(),this.dispatchCustomScrollEvent()})),this.supportsSticky||(this.headerContainer.addEventListener("wheel",e=>{e.preventDefault(),this.debounce("handle-scroll",()=>{this.contentContainer.scrollTop+=e.deltaY,this.updateHeader(),this.dispatchCustomScrollEvent()})}),this.contentContainer.addEventListener("scroll",()=>{this.debounce("handle-scroll",()=>{this.updateHeader(),this.dispatchCustomScrollEvent()})}))}updateHeaderElementRefs(){this.headerElement=this.headerSlot.assignedNodes()[0],this.smallHeaderElement=this.headerSlot.assignedNodes()[1],this.normalHeaderHeight=this.headerElement.offsetHeight,this.smallHeaderElement&&(this.headersHeightDiff=Math.abs(this.normalHeaderHeight-this.smallHeaderElement.offsetHeight),this.smallHeaderElement.style.display="none")}updateContentContainerPadding(e){this.lastKnownHeaderHeight!==e&&(this.lastKnownHeaderHeight=e,this.contentContainer.style.paddingTop=e+"px")}debounce(e,t){this.debounced[e]||(this.debounced[e]=!0,requestAnimationFrame(()=>{delete this.debounced[e],t()}))}measure(){this.updateHeaderHeight(!0),this.updateHeader(!0)}updateHeaderHeight(e=!1){(e||this.showNormalHeader)&&(this.normalHeaderHeight=this.headerContainer.offsetHeight,this.updateContentContainerPadding(this.normalHeaderHeight)),this.minimumHeaderHeight&&this.smallHeaderElement&&(this.headersHeightDiff=Math.abs(this.normalHeaderHeight-this.smallHeaderElement.offsetHeight))}updateHeader(e=!1){const t=this.scrollElement.scrollTop;if(this.smallHeaderElement)this.headerElement.style.transform=`translateY(-${t}px)`,this.showNormalHeader=t<this.headersHeightDiff,this.showNormalHeader?(this.headerElement.style.display="",this.smallHeaderElement.style.display="none"):(this.headerElement.style.display="none",this.smallHeaderElement.style.display="");else if(this.minimumHeaderHeight){const n=t<this.normalHeaderHeight-this.minimumHeaderHeight;(e||this.showNormalHeader!==n)&&(this.showNormalHeader=n,this.dispatchEvent(new CustomEvent("header-switch",{detail:{shouldShowNormalHeader:this.showNormalHeader}}))),this.headerElement.style.transform=this.showNormalHeader?`translateY(-${t}px)`:""}}dispatchCustomScrollEvent(){this.dispatchEvent(new CustomEvent("header-layout-scroll",{detail:{scrollTop:this.scrollElement.scrollTop}}))}};Ze.ID="sd-header-layout";let de=Ze;customElements.get(de.ID)||customElements.define(de.ID,de);function vn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Qr(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return r[n]}})}),t}var kt={exports:{}},O=String,En=function(){return{isColorSupported:!1,reset:O,bold:O,dim:O,italic:O,underline:O,inverse:O,hidden:O,strikethrough:O,black:O,red:O,green:O,yellow:O,blue:O,magenta:O,cyan:O,white:O,gray:O,bgBlack:O,bgRed:O,bgGreen:O,bgYellow:O,bgBlue:O,bgMagenta:O,bgCyan:O,bgWhite:O}};kt.exports=En();kt.exports.createColors=En;var Yr=kt.exports;const ei={},ti=Object.freeze(Object.defineProperty({__proto__:null,default:ei},Symbol.toStringTag,{value:"Module"})),j=Qr(ti);let qt=Yr,Kt=j,dt=class Sn extends Error{constructor(e,t,n,i,o,s){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),i&&(this.source=i),s&&(this.plugin=s),typeof t<"u"&&typeof n<"u"&&(typeof t=="number"?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Sn)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=qt.isColorSupported),Kt&&e&&(t=Kt(t));let n=t.split(/\r?\n/),i=Math.max(this.line-3,0),o=Math.min(this.line+2,n.length),s=String(o).length,a,l;if(e){let{bold:c,gray:u,red:b}=qt.createColors(!0);a=g=>c(b(g)),l=g=>u(g)}else a=l=c=>c;return n.slice(i,o).map((c,u)=>{let b=i+1+u,g=" "+(" "+b).slice(-s)+" | ";if(b===this.line){let k=l(g.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+l(g)+c+`
244
- `+k+a("^")}return" "+l(g)+c}).join(`
245
- `)}toString(){let e=this.showSourceCode();return e&&(e=`
243
+ `,Ze=class Ze extends ti{constructor(){super(),this.headerResizeObserverActive=!0,this.showNormalHeader=!0,this.scrollElement=this,this.debounced={};const d=window.CSS;this.supportsSticky=d&&d.supports("position","sticky"),this.supportsSticky||(this.resizeObserver=new ResizeObserver(()=>this.debounce("non-sticky-resize",()=>{this.lastKnownWidth!==this.offsetWidth&&(this.lastKnownWidth=this.offsetWidth,this.headerContainer.style.width=`calc(100% - ${this.contentContainer.offsetWidth-this.contentContainer.clientWidth}px)`)}))),this.headerResizeObserver=new ResizeObserver(()=>this.headerResizeObserverActive&&this.debounce("header-resize",()=>{this.headerContainer&&this.headerContainer.offsetParent&&(this.updateHeaderHeight(),this.updateHeader())}))}is(){return Ze.ID}template(){const d=document.createElement("template");return d.innerHTML=ni,d}connectedCallback(){super.connectedCallback(),this.headerContainer||this.initialize(),this.supportsSticky||(this.resizeObserver.observe(this),this.scrollElement=this.contentContainer),this.headerResizeObserver.observe(this.headerContainer),this.updateContentContainerPadding(this.headerContainer.offsetHeight)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.disconnect(),this.headerResizeObserver&&this.headerResizeObserver.disconnect()}initialize(){this.headerContainer=this.shadowRoot.querySelector(".header-container"),this.contentContainer=this.shadowRoot.querySelector(".content-container"),this.headerSlot=this.shadowRoot.querySelector(".header-container > slot"),this.headerSlot.addEventListener("slotchange",()=>{this.updateHeaderElementRefs()}),this.supportsSticky&&(this.setAttribute("sticky",""),this.addEventListener("scroll",()=>{this.updateHeader(),this.dispatchCustomScrollEvent()})),this.supportsSticky||(this.headerContainer.addEventListener("wheel",d=>{d.preventDefault(),this.debounce("handle-scroll",()=>{this.contentContainer.scrollTop+=d.deltaY,this.updateHeader(),this.dispatchCustomScrollEvent()})}),this.contentContainer.addEventListener("scroll",()=>{this.debounce("handle-scroll",()=>{this.updateHeader(),this.dispatchCustomScrollEvent()})}))}updateHeaderElementRefs(){this.headerElement=this.headerSlot.assignedNodes()[0],this.smallHeaderElement=this.headerSlot.assignedNodes()[1],this.normalHeaderHeight=this.headerElement.offsetHeight,this.smallHeaderElement&&(this.headersHeightDiff=Math.abs(this.normalHeaderHeight-this.smallHeaderElement.offsetHeight),this.smallHeaderElement.style.display="none")}updateContentContainerPadding(d){this.lastKnownHeaderHeight!==d&&(this.lastKnownHeaderHeight=d,this.contentContainer.style.paddingTop=d+"px")}debounce(d,m){this.debounced[d]||(this.debounced[d]=!0,requestAnimationFrame(()=>{delete this.debounced[d],m()}))}measure(){this.updateHeaderHeight(!0),this.updateHeader(!0)}updateHeaderHeight(d=!1){(d||this.showNormalHeader)&&(this.normalHeaderHeight=this.headerContainer.offsetHeight,this.updateContentContainerPadding(this.normalHeaderHeight)),this.minimumHeaderHeight&&this.smallHeaderElement&&(this.headersHeightDiff=Math.abs(this.normalHeaderHeight-this.smallHeaderElement.offsetHeight))}updateHeader(d=!1){const m=this.scrollElement.scrollTop;if(this.smallHeaderElement)this.headerElement.style.transform=`translateY(-${m}px)`,this.showNormalHeader=m<this.headersHeightDiff,this.showNormalHeader?(this.headerElement.style.display="",this.smallHeaderElement.style.display="none"):(this.headerElement.style.display="none",this.smallHeaderElement.style.display="");else if(this.minimumHeaderHeight){const f=m<this.normalHeaderHeight-this.minimumHeaderHeight;(d||this.showNormalHeader!==f)&&(this.showNormalHeader=f,this.dispatchEvent(new CustomEvent("header-switch",{detail:{shouldShowNormalHeader:this.showNormalHeader}}))),this.headerElement.style.transform=this.showNormalHeader?`translateY(-${m}px)`:""}}dispatchCustomScrollEvent(){this.dispatchEvent(new CustomEvent("header-layout-scroll",{detail:{scrollTop:this.scrollElement.scrollTop}}))}};Ze.ID="sd-header-layout";let Pe=Ze;customElements.get(Pe.ID)||customElements.define(Pe.ID,Pe);function Un(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}function ri(a){if(Object.prototype.hasOwnProperty.call(a,"__esModule"))return a;var d=a.default;if(typeof d=="function"){var m=function f(){var r=!1;try{r=this instanceof f}catch{}return r?Reflect.construct(d,arguments,this.constructor):d.apply(this,arguments)};m.prototype=d.prototype}else m={};return Object.defineProperty(m,"__esModule",{value:!0}),Object.keys(a).forEach(function(f){var r=Object.getOwnPropertyDescriptor(a,f);Object.defineProperty(m,f,r.get?r:{enumerable:!0,get:function(){return a[f]}})}),m}var $e={exports:{}},cn;function ii(){if(cn)return $e.exports;cn=1;var a=String,d=function(){return{isColorSupported:!1,reset:a,bold:a,dim:a,italic:a,underline:a,inverse:a,hidden:a,strikethrough:a,black:a,red:a,green:a,yellow:a,blue:a,magenta:a,cyan:a,white:a,gray:a,bgBlack:a,bgRed:a,bgGreen:a,bgYellow:a,bgBlue:a,bgMagenta:a,bgCyan:a,bgWhite:a,blackBright:a,redBright:a,greenBright:a,yellowBright:a,blueBright:a,magentaBright:a,cyanBright:a,whiteBright:a,bgBlackBright:a,bgRedBright:a,bgGreenBright:a,bgYellowBright:a,bgBlueBright:a,bgMagentaBright:a,bgCyanBright:a,bgWhiteBright:a}};return $e.exports=d(),$e.exports.createColors=d,$e.exports}const si={},oi=Object.freeze(Object.defineProperty({__proto__:null,default:si},Symbol.toStringTag,{value:"Module"})),le=ri(oi);var ut,un;function Ht(){if(un)return ut;un=1;let a=ii(),d=le;class m extends Error{constructor(r,h,s,g,x,c){super(r),this.name="CssSyntaxError",this.reason=r,x&&(this.file=x),g&&(this.source=g),c&&(this.plugin=c),typeof h<"u"&&typeof s<"u"&&(typeof h=="number"?(this.line=h,this.column=s):(this.line=h.line,this.column=h.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,m)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(r){if(!this.source)return"";let h=this.source;r==null&&(r=a.isColorSupported);let s=n=>n,g=n=>n,x=n=>n;if(r){let{bold:n,gray:l,red:u}=a.createColors(!0);g=p=>n(u(p)),s=p=>l(p),d&&(x=p=>d(p))}let c=h.split(/\r?\n/),e=Math.max(this.line-3,0),i=Math.min(this.line+2,c.length),t=String(i).length;return c.slice(e,i).map((n,l)=>{let u=e+1+l,p=" "+(" "+u).slice(-t)+" | ";if(u===this.line){if(n.length>160){let S=20,w=Math.max(0,this.column-S),y=Math.max(this.column+S,this.endColumn+S),b=n.slice(w,y),k=s(p.replace(/\d/g," "))+n.slice(0,Math.min(this.column-1,S-1)).replace(/[^\t]/g," ");return g(">")+s(p)+x(b)+`
244
+ `+k+g("^")}let E=s(p.replace(/\d/g," "))+n.slice(0,this.column-1).replace(/[^\t]/g," ");return g(">")+s(p)+x(n)+`
245
+ `+E+g("^")}return" "+s(p)+x(n)}).join(`
246
+ `)}toString(){let r=this.showSourceCode();return r&&(r=`
246
247
 
247
- `+e+`
248
- `),this.name+": "+this.message+e}};var At=dt;dt.default=dt;var xe={};xe.isClean=Symbol("isClean");xe.my=Symbol("my");const Vt={after:`
248
+ `+r+`
249
+ `),this.name+": "+this.message+r}}return ut=m,m.default=m,ut}var ht,hn;function $n(){if(hn)return ht;hn=1;const a={after:`
249
250
  `,beforeClose:`
250
251
  `,beforeComment:`
251
252
  `,beforeDecl:`
252
253
  `,beforeOpen:" ",beforeRule:`
253
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function ni(r){return r[0].toUpperCase()+r.slice(1)}let ft=class{constructor(e){this.builder=e}atrule(e,t){let n="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i);else{let o=(e.raws.between||"")+(t?";":"");this.builder(n+i+o,e)}}beforeAfter(e,t){let n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):t==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");let i=e.parent,o=0;for(;i&&i.type!=="root";)o+=1,i=i.parent;if(n.includes(`
254
- `)){let s=this.raw(e,null,"indent");if(s.length)for(let a=0;a<o;a++)n+=s}return n}block(e,t){let n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start");let i;e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let n=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let o=e.nodes[i],s=this.raw(o,"before");s&&this.builder(s),this.stringify(o,t!==i||n)}}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}decl(e,t){let n=this.raw(e,"between","colon"),i=e.prop+n+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),t&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(e,t,n){let i;if(n||(n=t),t&&(i=e.raws[t],typeof i<"u"))return i;let o=e.parent;if(n==="before"&&(!o||o.type==="root"&&o.first===e||o&&o.type==="document"))return"";if(!o)return Vt[n];let s=e.root();if(s.rawCache||(s.rawCache={}),typeof s.rawCache[n]<"u")return s.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);{let a="raw"+ni(n);this[a]?i=this[a](s,e):s.walk(l=>{if(i=l.raws[t],typeof i<"u")return!1})}return typeof i>"u"&&(i=Vt[n]),s.rawCache[n]=i,i}rawBeforeClose(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after<"u")return t=n.raws.after,t.includes(`
255
- `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let n;return e.walkComments(i=>{if(typeof i.raws.before<"u")return n=i.raws.before,n.includes(`
256
- `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls(i=>{if(typeof i.raws.before<"u")return n=i.raws.before,n.includes(`
257
- `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let t;return e.walk(n=>{if(n.type!=="decl"&&(t=n.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before<"u")return t=n.raws.before,t.includes(`
258
- `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(n=>{if(typeof n.raws.between<"u")return t=n.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length===0&&(t=n.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let i=n.parent;if(i&&i!==e&&i.parent&&i.parent===e&&typeof n.raws.before<"u"){let o=n.raws.before.split(`
259
- `);return t=o[o.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(t=n.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let n=e[t],i=e.raws[t];return i&&i.value===n?i.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var Cn=ft;ft.default=ft;let ri=Cn;function pt(r,e){new ri(e).stringify(r)}var qe=pt;pt.default=pt;let{isClean:_e,my:ii}=xe,si=At,oi=Cn,ai=qe;function gt(r,e){let t=new r.constructor;for(let n in r){if(!Object.prototype.hasOwnProperty.call(r,n)||n==="proxyCache")continue;let i=r[n],o=typeof i;n==="parent"&&o==="object"?e&&(t[n]=e):n==="source"?t[n]=i:Array.isArray(i)?t[n]=i.map(s=>gt(s,t)):(o==="object"&&i!==null&&(i=gt(i)),t[n]=i)}return t}let mt=class{constructor(e={}){this.raws={},this[_e]=!1,this[ii]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let n of e[t])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=gt(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new si(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markDirty(){if(this[_e]){this[_e]=!1;let e=this;for(;e=e.parent;)e[_e]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();let i=t.indexOf(e.word);i!==-1&&(n=this.positionInside(i,t))}return n}positionInside(e,t){let n=t||this.toString(),i=this.source.start.column,o=this.source.start.line;for(let s=0;s<e;s++)n[s]===`
260
- `?(i=1,o+=1):i+=1;return{column:i,line:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let i=this.toString(),o=i.indexOf(e.word);o!==-1&&(t=this.positionInside(o,i),n=this.positionInside(o+e.word.length,i))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return new oi().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let i of e)i===this?n=!0:n?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let n={},i=t==null;t=t||new Map;let o=0;for(let s in this){if(!Object.prototype.hasOwnProperty.call(this,s)||s==="parent"||s==="proxyCache")continue;let a=this[s];if(Array.isArray(a))n[s]=a.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,t):l);else if(typeof a=="object"&&a.toJSON)n[s]=a.toJSON(null,t);else if(s==="source"){let l=t.get(a.input);l==null&&(l=o,t.set(a.input,o),o++),n[s]={end:a.end,inputId:l,start:a.start}}else n[s]=a}return i&&(n.inputs=[...t.keys()].map(s=>s.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=ai){e.stringify&&(e=e.stringify);let t="";return e(this,n=>{t+=n}),t}warn(e,t,n){let i={node:this};for(let o in n)i[o]=n[o];return e.warn(t,i)}get proxyOf(){return this}};var Ke=mt;mt.default=mt;let li=Ke,bt=class extends li{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var Ve=bt;bt.default=bt;let ci="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",hi=(r,e=21)=>(t=e)=>{let n="",i=t;for(;i--;)n+=r[Math.random()*r.length|0];return n},ui=(r=21)=>{let e="",t=r;for(;t--;)e+=ci[Math.random()*64|0];return e};var di={nanoid:ui,customAlphabet:hi};let{SourceMapConsumer:Jt,SourceMapGenerator:Xt}=j,{existsSync:fi,readFileSync:pi}=j,{dirname:at,join:gi}=j;function mi(r){return Buffer?Buffer.from(r,"base64").toString():window.atob(r)}let yt=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,i=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=at(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new Jt(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/;if(i.test(e)||o.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||n.test(e))return mi(e.substr(RegExp.lastMatch.length));let s=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+s)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),i=e.indexOf("*/",n);n>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,i)))}loadFile(e){if(this.root=at(e),fi(e))return this.mapFile=e,pi(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let n=t(e);if(n){let i=this.loadFile(n);if(!i)throw new Error("Unable to load previous source map: "+n.toString());return i}}else{if(t instanceof Jt)return Xt.fromSourceMap(t).toString();if(t instanceof Xt)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return e&&(n=gi(at(e),n)),this.loadFile(n)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var On=yt;yt.default=yt;let{SourceMapConsumer:bi,SourceMapGenerator:yi}=j,{fileURLToPath:Qt,pathToFileURL:ke}=j,{isAbsolute:wt,resolve:xt}=j,{nanoid:wi}=di,lt=j,Yt=At,xi=On,ct=Symbol("fromOffsetCache"),vi=!!(bi&&yi),en=!!(xt&&wt),De=class{constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!en||/^\w+:\/\//.test(t.from)||wt(t.from)?this.file=t.from:this.file=xt(t.from)),en&&vi){let n=new xi(this.css,t);if(n.text){this.map=n;let i=n.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+wi(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n,i={}){let o,s,a;if(t&&typeof t=="object"){let c=t,u=n;if(typeof c.offset=="number"){let b=this.fromOffset(c.offset);t=b.line,n=b.col}else t=c.line,n=c.column;if(typeof u.offset=="number"){let b=this.fromOffset(u.offset);s=b.line,a=b.col}else s=u.line,a=u.column}else if(!n){let c=this.fromOffset(t);t=c.line,n=c.col}let l=this.origin(t,n,s,a);return l?o=new Yt(e,l.endLine===void 0?l.line:{column:l.column,line:l.line},l.endLine===void 0?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,i.plugin):o=new Yt(e,s===void 0?t:{column:n,line:t},s===void 0?n:{column:a,line:s},this.css,this.file,i.plugin),o.input={column:n,endColumn:a,endLine:s,line:t,source:this.css},this.file&&(ke&&(o.input.url=ke(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let t,n;if(this[ct])n=this[ct];else{let o=this.css.split(`
261
- `);n=new Array(o.length);let s=0;for(let a=0,l=o.length;a<l;a++)n[a]=s,s+=o[a].length+1;this[ct]=n}t=n[n.length-1];let i=0;if(e>=t)i=n.length-1;else{let o=n.length-2,s;for(;i<o;)if(s=i+(o-i>>1),e<n[s])o=s-1;else if(e>=n[s+1])i=s+1;else{i=s;break}}return{col:e-n[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:xt(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,i){if(!this.map)return!1;let o=this.map.consumer(),s=o.originalPositionFor({column:t,line:e});if(!s.source)return!1;let a;typeof n=="number"&&(a=o.originalPositionFor({column:i,line:n}));let l;wt(s.source)?l=ke(s.source):l=new URL(s.source,this.map.consumer().sourceRoot||ke(this.map.mapFile));let c={column:s.column,endColumn:a&&a.column,endLine:a&&a.line,line:s.line,url:l.toString()};if(l.protocol==="file:")if(Qt)c.file=Qt(l);else throw new Error("file: protocol is not available in this PostCSS build");let u=o.sourceContentFor(s.source);return u&&(c.source=u),c}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var Je=De;De.default=De;lt&&lt.registerInput&&lt.registerInput(De);let{SourceMapConsumer:_n,SourceMapGenerator:ze}=j,{dirname:He,relative:kn,resolve:An,sep:Rn}=j,{pathToFileURL:tn}=j,Ei=Je,Si=!!(_n&&ze),Ci=!!(He&&An&&kn&&Rn),Oi=class{constructor(e,t,n,i){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
254
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function d(f){return f[0].toUpperCase()+f.slice(1)}class m{constructor(r){this.builder=r}atrule(r,h){let s="@"+r.name,g=r.params?this.rawValue(r,"params"):"";if(typeof r.raws.afterName<"u"?s+=r.raws.afterName:g&&(s+=" "),r.nodes)this.block(r,s+g);else{let x=(r.raws.between||"")+(h?";":"");this.builder(s+g+x,r)}}beforeAfter(r,h){let s;r.type==="decl"?s=this.raw(r,null,"beforeDecl"):r.type==="comment"?s=this.raw(r,null,"beforeComment"):h==="before"?s=this.raw(r,null,"beforeRule"):s=this.raw(r,null,"beforeClose");let g=r.parent,x=0;for(;g&&g.type!=="root";)x+=1,g=g.parent;if(s.includes(`
255
+ `)){let c=this.raw(r,null,"indent");if(c.length)for(let e=0;e<x;e++)s+=c}return s}block(r,h){let s=this.raw(r,"between","beforeOpen");this.builder(h+s+"{",r,"start");let g;r.nodes&&r.nodes.length?(this.body(r),g=this.raw(r,"after")):g=this.raw(r,"after","emptyBody"),g&&this.builder(g),this.builder("}",r,"end")}body(r){let h=r.nodes.length-1;for(;h>0&&r.nodes[h].type==="comment";)h-=1;let s=this.raw(r,"semicolon");for(let g=0;g<r.nodes.length;g++){let x=r.nodes[g],c=this.raw(x,"before");c&&this.builder(c),this.stringify(x,h!==g||s)}}comment(r){let h=this.raw(r,"left","commentLeft"),s=this.raw(r,"right","commentRight");this.builder("/*"+h+r.text+s+"*/",r)}decl(r,h){let s=this.raw(r,"between","colon"),g=r.prop+s+this.rawValue(r,"value");r.important&&(g+=r.raws.important||" !important"),h&&(g+=";"),this.builder(g,r)}document(r){this.body(r)}raw(r,h,s){let g;if(s||(s=h),h&&(g=r.raws[h],typeof g<"u"))return g;let x=r.parent;if(s==="before"&&(!x||x.type==="root"&&x.first===r||x&&x.type==="document"))return"";if(!x)return a[s];let c=r.root();if(c.rawCache||(c.rawCache={}),typeof c.rawCache[s]<"u")return c.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(r,s);{let e="raw"+d(s);this[e]?g=this[e](c,r):c.walk(i=>{if(g=i.raws[h],typeof g<"u")return!1})}return typeof g>"u"&&(g=a[s]),c.rawCache[s]=g,g}rawBeforeClose(r){let h;return r.walk(s=>{if(s.nodes&&s.nodes.length>0&&typeof s.raws.after<"u")return h=s.raws.after,h.includes(`
256
+ `)&&(h=h.replace(/[^\n]+$/,"")),!1}),h&&(h=h.replace(/\S/g,"")),h}rawBeforeComment(r,h){let s;return r.walkComments(g=>{if(typeof g.raws.before<"u")return s=g.raws.before,s.includes(`
257
+ `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(h,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(r,h){let s;return r.walkDecls(g=>{if(typeof g.raws.before<"u")return s=g.raws.before,s.includes(`
258
+ `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(h,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(r){let h;return r.walk(s=>{if(s.type!=="decl"&&(h=s.raws.between,typeof h<"u"))return!1}),h}rawBeforeRule(r){let h;return r.walk(s=>{if(s.nodes&&(s.parent!==r||r.first!==s)&&typeof s.raws.before<"u")return h=s.raws.before,h.includes(`
259
+ `)&&(h=h.replace(/[^\n]+$/,"")),!1}),h&&(h=h.replace(/\S/g,"")),h}rawColon(r){let h;return r.walkDecls(s=>{if(typeof s.raws.between<"u")return h=s.raws.between.replace(/[^\s:]/g,""),!1}),h}rawEmptyBody(r){let h;return r.walk(s=>{if(s.nodes&&s.nodes.length===0&&(h=s.raws.after,typeof h<"u"))return!1}),h}rawIndent(r){if(r.raws.indent)return r.raws.indent;let h;return r.walk(s=>{let g=s.parent;if(g&&g!==r&&g.parent&&g.parent===r&&typeof s.raws.before<"u"){let x=s.raws.before.split(`
260
+ `);return h=x[x.length-1],h=h.replace(/\S/g,""),!1}}),h}rawSemicolon(r){let h;return r.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(h=s.raws.semicolon,typeof h<"u"))return!1}),h}rawValue(r,h){let s=r[h],g=r.raws[h];return g&&g.value===s?g.raw:s}root(r){this.body(r),r.raws.after&&this.builder(r.raws.after)}rule(r){this.block(r,this.rawValue(r,"selector")),r.raws.ownSemicolon&&this.builder(r.raws.ownSemicolon,r,"end")}stringify(r,h){if(!this[r.type])throw new Error("Unknown AST node type "+r.type+". Maybe you need to change PostCSS stringifier.");this[r.type](r,h)}}return ht=m,m.default=m,ht}var dt,dn;function Ke(){if(dn)return dt;dn=1;let a=$n();function d(m,f){new a(f).stringify(m)}return dt=d,d.default=d,dt}var qe={},fn;function Bt(){return fn||(fn=1,qe.isClean=Symbol("isClean"),qe.my=Symbol("my")),qe}var ft,pn;function Je(){if(pn)return ft;pn=1;let a=Ht(),d=$n(),m=Ke(),{isClean:f,my:r}=Bt();function h(x,c){let e=new x.constructor;for(let i in x){if(!Object.prototype.hasOwnProperty.call(x,i)||i==="proxyCache")continue;let t=x[i],n=typeof t;i==="parent"&&n==="object"?c&&(e[i]=c):i==="source"?e[i]=t:Array.isArray(t)?e[i]=t.map(l=>h(l,e)):(n==="object"&&t!==null&&(t=h(t)),e[i]=t)}return e}function s(x,c){if(c&&typeof c.offset<"u")return c.offset;let e=1,i=1,t=0;for(let n=0;n<x.length;n++){if(i===c.line&&e===c.column){t=n;break}x[n]===`
261
+ `?(e=1,i+=1):e+=1}return t}class g{get proxyOf(){return this}constructor(c={}){this.raws={},this[f]=!1,this[r]=!0;for(let e in c)if(e==="nodes"){this.nodes=[];for(let i of c[e])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}else this[e]=c[e]}addToError(c){if(c.postcssNode=this,c.stack&&this.source&&/\n\s{4}at /.test(c.stack)){let e=this.source;c.stack=c.stack.replace(/\n\s{4}at /,`$&${e.input.from}:${e.start.line}:${e.start.column}$&`)}return c}after(c){return this.parent.insertAfter(this,c),this}assign(c={}){for(let e in c)this[e]=c[e];return this}before(c){return this.parent.insertBefore(this,c),this}cleanRaws(c){delete this.raws.before,delete this.raws.after,c||delete this.raws.between}clone(c={}){let e=h(this);for(let i in c)e[i]=c[i];return e}cloneAfter(c={}){let e=this.clone(c);return this.parent.insertAfter(this,e),e}cloneBefore(c={}){let e=this.clone(c);return this.parent.insertBefore(this,e),e}error(c,e={}){if(this.source){let{end:i,start:t}=this.rangeBy(e);return this.source.input.error(c,{column:t.column,line:t.line},{column:i.column,line:i.line},e)}return new a(c)}getProxyProcessor(){return{get(c,e){return e==="proxyOf"?c:e==="root"?()=>c.root().toProxy():c[e]},set(c,e,i){return c[e]===i||(c[e]=i,(e==="prop"||e==="value"||e==="name"||e==="params"||e==="important"||e==="text")&&c.markDirty()),!0}}}markClean(){this[f]=!0}markDirty(){if(this[f]){this[f]=!1;let c=this;for(;c=c.parent;)c[f]=!1}}next(){if(!this.parent)return;let c=this.parent.index(this);return this.parent.nodes[c+1]}positionBy(c={}){let e=this.source.start;if(c.index)e=this.positionInside(c.index);else if(c.word){let i="document"in this.source.input?this.source.input.document:this.source.input.css,n=i.slice(s(i,this.source.start),s(i,this.source.end)).indexOf(c.word);n!==-1&&(e=this.positionInside(n))}return e}positionInside(c){let e=this.source.start.column,i=this.source.start.line,t="document"in this.source.input?this.source.input.document:this.source.input.css,n=s(t,this.source.start),l=n+c;for(let u=n;u<l;u++)t[u]===`
262
+ `?(e=1,i+=1):e+=1;return{column:e,line:i,offset:l}}prev(){if(!this.parent)return;let c=this.parent.index(this);return this.parent.nodes[c-1]}rangeBy(c={}){let e="document"in this.source.input?this.source.input.document:this.source.input.css,i={column:this.source.start.column,line:this.source.start.line,offset:s(e,this.source.start)},t=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:s(e,this.source.end)+1}:{column:i.column+1,line:i.line,offset:i.offset+1};if(c.word){let l=e.slice(s(e,this.source.start),s(e,this.source.end)).indexOf(c.word);l!==-1&&(i=this.positionInside(l),t=this.positionInside(l+c.word.length))}else c.start?i={column:c.start.column,line:c.start.line,offset:s(e,c.start)}:c.index&&(i=this.positionInside(c.index)),c.end?t={column:c.end.column,line:c.end.line,offset:s(e,c.end)}:typeof c.endIndex=="number"?t=this.positionInside(c.endIndex):c.index&&(t=this.positionInside(c.index+1));return(t.line<i.line||t.line===i.line&&t.column<=i.column)&&(t={column:i.column+1,line:i.line,offset:i.offset+1}),{end:t,start:i}}raw(c,e){return new d().raw(this,c,e)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...c){if(this.parent){let e=this,i=!1;for(let t of c)t===this?i=!0:i?(this.parent.insertAfter(e,t),e=t):this.parent.insertBefore(e,t);i||this.remove()}return this}root(){let c=this;for(;c.parent&&c.parent.type!=="document";)c=c.parent;return c}toJSON(c,e){let i={},t=e==null;e=e||new Map;let n=0;for(let l in this){if(!Object.prototype.hasOwnProperty.call(this,l)||l==="parent"||l==="proxyCache")continue;let u=this[l];if(Array.isArray(u))i[l]=u.map(p=>typeof p=="object"&&p.toJSON?p.toJSON(null,e):p);else if(typeof u=="object"&&u.toJSON)i[l]=u.toJSON(null,e);else if(l==="source"){if(u==null)continue;let p=e.get(u.input);p==null&&(p=n,e.set(u.input,n),n++),i[l]={end:u.end,inputId:p,start:u.start}}else i[l]=u}return t&&(i.inputs=[...e.keys()].map(l=>l.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(c=m){c.stringify&&(c=c.stringify);let e="";return c(this,i=>{e+=i}),e}warn(c,e,i={}){let t={node:this};for(let n in i)t[n]=i[n];return c.warn(e,t)}}return ft=g,g.default=g,ft}var pt,gn;function Ve(){if(gn)return pt;gn=1;let a=Je();class d extends a{constructor(f){super(f),this.type="comment"}}return pt=d,d.default=d,pt}var gt,mn;function Xe(){if(mn)return gt;mn=1;let a=Je();class d extends a{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(f){f&&typeof f.value<"u"&&typeof f.value!="string"&&(f={...f,value:String(f.value)}),super(f),this.type="decl"}}return gt=d,d.default=d,gt}var mt,bn;function ve(){if(bn)return mt;bn=1;let a=Ve(),d=Xe(),m=Je(),{isClean:f,my:r}=Bt(),h,s,g,x;function c(t){return t.map(n=>(n.nodes&&(n.nodes=c(n.nodes)),delete n.source,n))}function e(t){if(t[f]=!1,t.proxyOf.nodes)for(let n of t.proxyOf.nodes)e(n)}class i extends m{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...n){for(let l of n){let u=this.normalize(l,this.last);for(let p of u)this.proxyOf.nodes.push(p)}return this.markDirty(),this}cleanRaws(n){if(super.cleanRaws(n),this.nodes)for(let l of this.nodes)l.cleanRaws(n)}each(n){if(!this.proxyOf.nodes)return;let l=this.getIterator(),u,p;for(;this.indexes[l]<this.proxyOf.nodes.length&&(u=this.indexes[l],p=n(this.proxyOf.nodes[u],u),p!==!1);)this.indexes[l]+=1;return delete this.indexes[l],p}every(n){return this.nodes.every(n)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let n=this.lastEach;return this.indexes[n]=0,n}getProxyProcessor(){return{get(n,l){return l==="proxyOf"?n:n[l]?l==="each"||typeof l=="string"&&l.startsWith("walk")?(...u)=>n[l](...u.map(p=>typeof p=="function"?(E,S)=>p(E.toProxy(),S):p)):l==="every"||l==="some"?u=>n[l]((p,...E)=>u(p.toProxy(),...E)):l==="root"?()=>n.root().toProxy():l==="nodes"?n.nodes.map(u=>u.toProxy()):l==="first"||l==="last"?n[l].toProxy():n[l]:n[l]},set(n,l,u){return n[l]===u||(n[l]=u,(l==="name"||l==="params"||l==="selector")&&n.markDirty()),!0}}}index(n){return typeof n=="number"?n:(n.proxyOf&&(n=n.proxyOf),this.proxyOf.nodes.indexOf(n))}insertAfter(n,l){let u=this.index(n),p=this.normalize(l,this.proxyOf.nodes[u]).reverse();u=this.index(n);for(let S of p)this.proxyOf.nodes.splice(u+1,0,S);let E;for(let S in this.indexes)E=this.indexes[S],u<E&&(this.indexes[S]=E+p.length);return this.markDirty(),this}insertBefore(n,l){let u=this.index(n),p=u===0?"prepend":!1,E=this.normalize(l,this.proxyOf.nodes[u],p).reverse();u=this.index(n);for(let w of E)this.proxyOf.nodes.splice(u,0,w);let S;for(let w in this.indexes)S=this.indexes[w],u<=S&&(this.indexes[w]=S+E.length);return this.markDirty(),this}normalize(n,l){if(typeof n=="string")n=c(s(n).nodes);else if(typeof n>"u")n=[];else if(Array.isArray(n)){n=n.slice(0);for(let p of n)p.parent&&p.parent.removeChild(p,"ignore")}else if(n.type==="root"&&this.type!=="document"){n=n.nodes.slice(0);for(let p of n)p.parent&&p.parent.removeChild(p,"ignore")}else if(n.type)n=[n];else if(n.prop){if(typeof n.value>"u")throw new Error("Value field is missed in node creation");typeof n.value!="string"&&(n.value=String(n.value)),n=[new d(n)]}else if(n.selector||n.selectors)n=[new x(n)];else if(n.name)n=[new h(n)];else if(n.text)n=[new a(n)];else throw new Error("Unknown node type in node creation");return n.map(p=>(p[r]||i.rebuild(p),p=p.proxyOf,p.parent&&p.parent.removeChild(p),p[f]&&e(p),p.raws||(p.raws={}),typeof p.raws.before>"u"&&l&&typeof l.raws.before<"u"&&(p.raws.before=l.raws.before.replace(/\S/g,"")),p.parent=this.proxyOf,p))}prepend(...n){n=n.reverse();for(let l of n){let u=this.normalize(l,this.first,"prepend").reverse();for(let p of u)this.proxyOf.nodes.unshift(p);for(let p in this.indexes)this.indexes[p]=this.indexes[p]+u.length}return this.markDirty(),this}push(n){return n.parent=this,this.proxyOf.nodes.push(n),this}removeAll(){for(let n of this.proxyOf.nodes)n.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(n){n=this.index(n),this.proxyOf.nodes[n].parent=void 0,this.proxyOf.nodes.splice(n,1);let l;for(let u in this.indexes)l=this.indexes[u],l>=n&&(this.indexes[u]=l-1);return this.markDirty(),this}replaceValues(n,l,u){return u||(u=l,l={}),this.walkDecls(p=>{l.props&&!l.props.includes(p.prop)||l.fast&&!p.value.includes(l.fast)||(p.value=p.value.replace(n,u))}),this.markDirty(),this}some(n){return this.nodes.some(n)}walk(n){return this.each((l,u)=>{let p;try{p=n(l,u)}catch(E){throw l.addToError(E)}return p!==!1&&l.walk&&(p=l.walk(n)),p})}walkAtRules(n,l){return l?n instanceof RegExp?this.walk((u,p)=>{if(u.type==="atrule"&&n.test(u.name))return l(u,p)}):this.walk((u,p)=>{if(u.type==="atrule"&&u.name===n)return l(u,p)}):(l=n,this.walk((u,p)=>{if(u.type==="atrule")return l(u,p)}))}walkComments(n){return this.walk((l,u)=>{if(l.type==="comment")return n(l,u)})}walkDecls(n,l){return l?n instanceof RegExp?this.walk((u,p)=>{if(u.type==="decl"&&n.test(u.prop))return l(u,p)}):this.walk((u,p)=>{if(u.type==="decl"&&u.prop===n)return l(u,p)}):(l=n,this.walk((u,p)=>{if(u.type==="decl")return l(u,p)}))}walkRules(n,l){return l?n instanceof RegExp?this.walk((u,p)=>{if(u.type==="rule"&&n.test(u.selector))return l(u,p)}):this.walk((u,p)=>{if(u.type==="rule"&&u.selector===n)return l(u,p)}):(l=n,this.walk((u,p)=>{if(u.type==="rule")return l(u,p)}))}}return i.registerParse=t=>{s=t},i.registerRule=t=>{x=t},i.registerAtRule=t=>{h=t},i.registerRoot=t=>{g=t},mt=i,i.default=i,i.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,h.prototype):t.type==="rule"?Object.setPrototypeOf(t,x.prototype):t.type==="decl"?Object.setPrototypeOf(t,d.prototype):t.type==="comment"?Object.setPrototypeOf(t,a.prototype):t.type==="root"&&Object.setPrototypeOf(t,g.prototype),t[r]=!0,t.nodes&&t.nodes.forEach(n=>{i.rebuild(n)})},mt}var bt,yn;function Dt(){if(yn)return bt;yn=1;let a=ve();class d extends a{constructor(f){super(f),this.type="atrule"}append(...f){return this.proxyOf.nodes||(this.nodes=[]),super.append(...f)}prepend(...f){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...f)}}return bt=d,d.default=d,a.registerAtRule(d),bt}var yt,wn;function Ut(){if(wn)return yt;wn=1;let a=ve(),d,m;class f extends a{constructor(h){super({type:"document",...h}),this.nodes||(this.nodes=[])}toResult(h={}){return new d(new m,this,h).stringify()}}return f.registerLazyResult=r=>{d=r},f.registerProcessor=r=>{m=r},yt=f,f.default=f,yt}var wt,xn;function ai(){if(xn)return wt;xn=1;let a="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return wt={nanoid:(f=21)=>{let r="",h=f|0;for(;h--;)r+=a[Math.random()*64|0];return r},customAlphabet:(f,r=21)=>(h=r)=>{let s="",g=h|0;for(;g--;)s+=f[Math.random()*f.length|0];return s}},wt}var xt,vn;function qn(){if(vn)return xt;vn=1;let{existsSync:a,readFileSync:d}=le,{dirname:m,join:f}=le,{SourceMapConsumer:r,SourceMapGenerator:h}=le;function s(x){return Buffer?Buffer.from(x,"base64").toString():window.atob(x)}class g{constructor(c,e){if(e.map===!1)return;this.loadAnnotation(c),this.inline=this.startWith(this.annotation,"data:");let i=e.map?e.map.prev:void 0,t=this.loadMap(e.from,i);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=m(this.mapFile)),t&&(this.text=t)}consumer(){return this.consumerCache||(this.consumerCache=new r(this.text)),this.consumerCache}decodeInline(c){let e=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,t=/^data:application\/json;charset=utf-?8,/,n=/^data:application\/json,/,l=c.match(t)||c.match(n);if(l)return decodeURIComponent(c.substr(l[0].length));let u=c.match(e)||c.match(i);if(u)return s(c.substr(u[0].length));let p=c.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+p)}getAnnotationURL(c){return c.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(c){return typeof c!="object"?!1:typeof c.mappings=="string"||typeof c._mappings=="string"||Array.isArray(c.sections)}loadAnnotation(c){let e=c.match(/\/\*\s*# sourceMappingURL=/g);if(!e)return;let i=c.lastIndexOf(e.pop()),t=c.indexOf("*/",i);i>-1&&t>-1&&(this.annotation=this.getAnnotationURL(c.substring(i,t)))}loadFile(c){if(this.root=m(c),a(c))return this.mapFile=c,d(c,"utf-8").toString().trim()}loadMap(c,e){if(e===!1)return!1;if(e){if(typeof e=="string")return e;if(typeof e=="function"){let i=e(c);if(i){let t=this.loadFile(i);if(!t)throw new Error("Unable to load previous source map: "+i.toString());return t}}else{if(e instanceof r)return h.fromSourceMap(e).toString();if(e instanceof h)return e.toString();if(this.isMap(e))return JSON.stringify(e);throw new Error("Unsupported previous source map format: "+e.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let i=this.annotation;return c&&(i=f(m(c),i)),this.loadFile(i)}}}startWith(c,e){return c?c.substr(0,e.length)===e:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return xt=g,g.default=g,xt}var vt,En;function Qe(){if(En)return vt;En=1;let{nanoid:a}=ai(),{isAbsolute:d,resolve:m}=le,{SourceMapConsumer:f,SourceMapGenerator:r}=le,{fileURLToPath:h,pathToFileURL:s}=le,g=Ht(),x=qn(),c=le,e=Symbol("lineToIndexCache"),i=!!(f&&r),t=!!(m&&d);function n(u){if(u[e])return u[e];let p=u.css.split(`
263
+ `),E=new Array(p.length),S=0;for(let w=0,y=p.length;w<y;w++)E[w]=S,S+=p[w].length+1;return u[e]=E,E}class l{get from(){return this.file||this.id}constructor(p,E={}){if(p===null||typeof p>"u"||typeof p=="object"&&!p.toString)throw new Error(`PostCSS received ${p} instead of CSS string`);if(this.css=p.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,E.document&&(this.document=E.document.toString()),E.from&&(!t||/^\w+:\/\//.test(E.from)||d(E.from)?this.file=E.from:this.file=m(E.from)),t&&i){let S=new x(this.css,E);if(S.text){this.map=S;let w=S.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+a(6)+">"),this.map&&(this.map.file=this.from)}error(p,E,S,w={}){let y,b,k,_,I;if(E&&typeof E=="object"){let T=E,J=S;if(typeof T.offset=="number"){_=T.offset;let q=this.fromOffset(_);E=q.line,S=q.col}else E=T.line,S=T.column,_=this.fromLineAndColumn(E,S);if(typeof J.offset=="number"){k=J.offset;let q=this.fromOffset(k);b=q.line,y=q.col}else b=J.line,y=J.column,k=this.fromLineAndColumn(J.line,J.column)}else if(S)_=this.fromLineAndColumn(E,S);else{_=E;let T=this.fromOffset(_);E=T.line,S=T.col}let D=this.origin(E,S,b,y);return D?I=new g(p,D.endLine===void 0?D.line:{column:D.column,line:D.line},D.endLine===void 0?D.column:{column:D.endColumn,line:D.endLine},D.source,D.file,w.plugin):I=new g(p,b===void 0?E:{column:S,line:E},b===void 0?S:{column:y,line:b},this.css,this.file,w.plugin),I.input={column:S,endColumn:y,endLine:b,endOffset:k,line:E,offset:_,source:this.css},this.file&&(s&&(I.input.url=s(this.file).toString()),I.input.file=this.file),I}fromLineAndColumn(p,E){return n(this)[p-1]+E-1}fromOffset(p){let E=n(this),S=E[E.length-1],w=0;if(p>=S)w=E.length-1;else{let y=E.length-2,b;for(;w<y;)if(b=w+(y-w>>1),p<E[b])y=b-1;else if(p>=E[b+1])w=b+1;else{w=b;break}}return{col:p-E[w]+1,line:w+1}}mapResolve(p){return/^\w+:\/\//.test(p)?p:m(this.map.consumer().sourceRoot||this.map.root||".",p)}origin(p,E,S,w){if(!this.map)return!1;let y=this.map.consumer(),b=y.originalPositionFor({column:E,line:p});if(!b.source)return!1;let k;typeof S=="number"&&(k=y.originalPositionFor({column:w,line:S}));let _;d(b.source)?_=s(b.source):_=new URL(b.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let I={column:b.column,endColumn:k&&k.column,endLine:k&&k.line,line:b.line,url:_.toString()};if(_.protocol==="file:")if(h)I.file=h(_);else throw new Error("file: protocol is not available in this PostCSS build");let D=y.sourceContentFor(b.source);return D&&(I.source=D),I}toJSON(){let p={};for(let E of["hasBOM","css","file","id"])this[E]!=null&&(p[E]=this[E]);return this.map&&(p.map={...this.map},p.map.consumerCache&&(p.map.consumerCache=void 0)),p}}return vt=l,l.default=l,c&&c.registerInput&&c.registerInput(l),vt}var Et,Sn;function Le(){if(Sn)return Et;Sn=1;let a=ve(),d,m;class f extends a{constructor(h){super(h),this.type="root",this.nodes||(this.nodes=[])}normalize(h,s,g){let x=super.normalize(h);if(s){if(g==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let c of x)c.raws.before=s.raws.before}return x}removeChild(h,s){let g=this.index(h);return!s&&g===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[g].raws.before),super.removeChild(h)}toResult(h={}){return new d(new m,this,h).stringify()}}return f.registerLazyResult=r=>{d=r},f.registerProcessor=r=>{m=r},Et=f,f.default=f,a.registerRoot(f),Et}var St,kn;function Fn(){if(kn)return St;kn=1;let a={comma(d){return a.split(d,[","],!0)},space(d){let m=[" ",`
264
+ `," "];return a.split(d,m)},split(d,m,f){let r=[],h="",s=!1,g=0,x=!1,c="",e=!1;for(let i of d)e?e=!1:i==="\\"?e=!0:x?i===c&&(x=!1):i==='"'||i==="'"?(x=!0,c=i):i==="("?g+=1:i===")"?g>0&&(g-=1):g===0&&m.includes(i)&&(s=!0),s?(h!==""&&r.push(h.trim()),h="",s=!1):h+=i;return(f||h!=="")&&r.push(h.trim()),r}};return St=a,a.default=a,St}var kt,Cn;function $t(){if(Cn)return kt;Cn=1;let a=ve(),d=Fn();class m extends a{get selectors(){return d.comma(this.selector)}set selectors(r){let h=this.selector?this.selector.match(/,\s*/):null,s=h?h[0]:","+this.raw("between","beforeOpen");this.selector=r.join(s)}constructor(r){super(r),this.type="rule",this.nodes||(this.nodes=[])}}return kt=m,m.default=m,a.registerRule(m),kt}var Ct,On;function li(){if(On)return Ct;On=1;let a=Dt(),d=Ve(),m=Xe(),f=Qe(),r=qn(),h=Le(),s=$t();function g(x,c){if(Array.isArray(x))return x.map(t=>g(t));let{inputs:e,...i}=x;if(e){c=[];for(let t of e){let n={...t,__proto__:f.prototype};n.map&&(n.map={...n.map,__proto__:r.prototype}),c.push(n)}}if(i.nodes&&(i.nodes=x.nodes.map(t=>g(t,c))),i.source){let{inputId:t,...n}=i.source;i.source=n,t!=null&&(i.source.input=c[t])}if(i.type==="root")return new h(i);if(i.type==="decl")return new m(i);if(i.type==="rule")return new s(i);if(i.type==="comment")return new d(i);if(i.type==="atrule")return new a(i);throw new Error("Unknown node type: "+x.type)}return Ct=g,g.default=g,Ct}var Ot,Rn;function Wn(){if(Rn)return Ot;Rn=1;let{dirname:a,relative:d,resolve:m,sep:f}=le,{SourceMapConsumer:r,SourceMapGenerator:h}=le,{pathToFileURL:s}=le,g=Qe(),x=!!(r&&h),c=!!(a&&m&&d&&f);class e{constructor(t,n,l,u){this.stringify=t,this.mapOpts=l.map||{},this.root=n,this.opts=l,this.css=u,this.originalCSS=u,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";let n=`
262
265
  `;this.css.includes(`\r
263
- `)&&(t=`\r
264
- `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),n=e.root||He(e.file),i;this.mapOpts.sourcesContent===!1?(i=new _n(e.text),i.sourcesContent&&(i.sourcesContent=i.sourcesContent.map(()=>null))):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Ci&&Si&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=ze.fromSourceMap(e)}else this.map=new ze({file:this.outputFile()}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new ze({file:this.outputFile()});let e=1,t=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,s;this.stringify(this.root,(a,l,c)=>{if(this.css+=a,l&&c!=="end"&&(i.generated.line=e,i.generated.column=t-1,l.source&&l.source.start?(i.source=this.sourcePath(l),i.original.line=l.source.start.line,i.original.column=l.source.start.column-1,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,this.map.addMapping(i))),o=a.match(/\n/g),o?(e+=o.length,s=a.lastIndexOf(`
265
- `),t=a.length-s):t+=a.length,l&&c!=="start"){let u=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==u.last||u.raws.semicolon)&&(l.source&&l.source.end?(i.source=this.sourcePath(l),i.original.line=l.source.end.line,i.original.column=l.source.end.column-1,i.generated.line=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=n,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=t-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?He(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=He(An(n,this.mapOpts.annotation)));let i=kn(n,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new Ei(this.css,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(i,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(tn){let n=tn(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Rn==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var Nn=Oi;let _i=Ke,vt=class extends _i{constructor(e){super(e),this.type="comment"}};var Xe=vt;vt.default=vt;let{isClean:Mn,my:Tn}=xe,Ln=Ve,Pn=Xe,ki=Ke,$n,Rt,Nt,In;function jn(r){return r.map(e=>(e.nodes&&(e.nodes=jn(e.nodes)),delete e.source,e))}function zn(r){if(r[Mn]=!1,r.proxyOf.nodes)for(let e of r.proxyOf.nodes)zn(e)}let Z=class Hn extends ki{append(...e){for(let t of e){let n=this.normalize(t,this.last);for(let i of n)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),n,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],i=e(this.proxyOf.nodes[n],n),i!==!1);)this.indexes[t]+=1;return delete this.indexes[t],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...n)=>e[t](...n.map(i=>typeof i=="function"?(o,s)=>i(o.toProxy(),s):i)):t==="every"||t==="some"?n=>e[t]((i,...o)=>n(i.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(n=>n.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let s of i)this.proxyOf.nodes.splice(n+1,0,s);let o;for(let s in this.indexes)o=this.indexes[s],n<o&&(this.indexes[s]=o+i.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),i=n===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(let a of o)this.proxyOf.nodes.splice(n,0,a);let s;for(let a in this.indexes)s=this.indexes[a],n<=s&&(this.indexes[a]=s+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=jn($n(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Ln(e)]}else if(e.selector)e=[new Rt(e)];else if(e.name)e=[new Nt(e)];else if(e.text)e=[new Pn(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[Tn]||Hn.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[Mn]&&zn(i),typeof i.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let n=this.normalize(t,this.first,"prepend").reverse();for(let i of n)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+n.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let i;try{i=e(t,n)}catch(o){throw t.addToError(o)}return i!==!1&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="atrule"&&e.test(n.name))return t(n,i)}):this.walk((n,i)=>{if(n.type==="atrule"&&n.name===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="atrule")return t(n,i)}))}walkComments(e){return this.walk((t,n)=>{if(t.type==="comment")return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="decl"&&e.test(n.prop))return t(n,i)}):this.walk((n,i)=>{if(n.type==="decl"&&n.prop===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="decl")return t(n,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="rule"&&e.test(n.selector))return t(n,i)}):this.walk((n,i)=>{if(n.type==="rule"&&n.selector===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="rule")return t(n,i)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};Z.registerParse=r=>{$n=r};Z.registerRule=r=>{Rt=r};Z.registerAtRule=r=>{Nt=r};Z.registerRoot=r=>{In=r};var ee=Z;Z.default=Z;Z.rebuild=r=>{r.type==="atrule"?Object.setPrototypeOf(r,Nt.prototype):r.type==="rule"?Object.setPrototypeOf(r,Rt.prototype):r.type==="decl"?Object.setPrototypeOf(r,Ln.prototype):r.type==="comment"?Object.setPrototypeOf(r,Pn.prototype):r.type==="root"&&Object.setPrototypeOf(r,In.prototype),r[Tn]=!0,r.nodes&&r.nodes.forEach(e=>{Z.rebuild(e)})};let Ai=ee,Dn,Bn,pe=class extends Ai{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Dn(new Bn,this,e).stringify()}};pe.registerLazyResult=r=>{Dn=r};pe.registerProcessor=r=>{Bn=r};var Mt=pe;pe.default=pe;let Et=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in t)this[n]=t[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Un=Et;Et.default=Et;let Ri=Un,St=class{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new Ri(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var Tt=St;St.default=St;const ht=39,nn=34,Ae=92,rn=47,Re=10,ce=32,Ne=12,Me=9,Te=13,Ni=91,Mi=93,Ti=40,Li=41,Pi=123,$i=125,Ii=59,ji=42,zi=58,Hi=64,Le=/[\t\n\f\r "#'()/;[\\\]{}]/g,Pe=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Di=/.[\r\n"'(/\\]/,sn=/[\da-f]/i;var Bi=function(e,t={}){let n=e.css.valueOf(),i=t.ignoreErrors,o,s,a,l,c,u,b,g,k,R,$=n.length,m=0,U=[],F=[];function V(){return m}function I(z){throw e.error("Unclosed "+z,m)}function W(){return F.length===0&&m>=$}function le(z){if(F.length)return F.pop();if(m>=$)return;let T=z?z.ignoreUnclosed:!1;switch(o=n.charCodeAt(m),o){case Re:case ce:case Me:case Te:case Ne:{s=m;do s+=1,o=n.charCodeAt(s);while(o===ce||o===Re||o===Me||o===Te||o===Ne);R=["space",n.slice(m,s)],m=s-1;break}case Ni:case Mi:case Pi:case $i:case zi:case Ii:case Li:{let J=String.fromCharCode(o);R=[J,J,m];break}case Ti:{if(g=U.length?U.pop()[1]:"",k=n.charCodeAt(m+1),g==="url"&&k!==ht&&k!==nn&&k!==ce&&k!==Re&&k!==Me&&k!==Ne&&k!==Te){s=m;do{if(u=!1,s=n.indexOf(")",s+1),s===-1)if(i||T){s=m;break}else I("bracket");for(b=s;n.charCodeAt(b-1)===Ae;)b-=1,u=!u}while(u);R=["brackets",n.slice(m,s+1),m,s],m=s}else s=n.indexOf(")",m+1),l=n.slice(m,s+1),s===-1||Di.test(l)?R=["(","(",m]:(R=["brackets",l,m,s],m=s);break}case ht:case nn:{a=o===ht?"'":'"',s=m;do{if(u=!1,s=n.indexOf(a,s+1),s===-1)if(i||T){s=m+1;break}else I("string");for(b=s;n.charCodeAt(b-1)===Ae;)b-=1,u=!u}while(u);R=["string",n.slice(m,s+1),m,s],m=s;break}case Hi:{Le.lastIndex=m+1,Le.test(n),Le.lastIndex===0?s=n.length-1:s=Le.lastIndex-2,R=["at-word",n.slice(m,s+1),m,s],m=s;break}case Ae:{for(s=m,c=!0;n.charCodeAt(s+1)===Ae;)s+=1,c=!c;if(o=n.charCodeAt(s+1),c&&o!==rn&&o!==ce&&o!==Re&&o!==Me&&o!==Te&&o!==Ne&&(s+=1,sn.test(n.charAt(s)))){for(;sn.test(n.charAt(s+1));)s+=1;n.charCodeAt(s+1)===ce&&(s+=1)}R=["word",n.slice(m,s+1),m,s],m=s;break}default:{o===rn&&n.charCodeAt(m+1)===ji?(s=n.indexOf("*/",m+2)+1,s===0&&(i||T?s=n.length:I("comment")),R=["comment",n.slice(m,s+1),m,s],m=s):(Pe.lastIndex=m+1,Pe.test(n),Pe.lastIndex===0?s=n.length-1:s=Pe.lastIndex-2,R=["word",n.slice(m,s+1),m,s],U.push(R),m=s);break}}return m++,R}function ne(z){F.push(z)}return{back:ne,endOfFile:W,nextToken:le,position:V}};let Fn=ee,Be=class extends Fn{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var Lt=Be;Be.default=Be;Fn.registerAtRule(Be);let Wn=ee,Gn,Zn,ie=class extends Wn{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let i=super.normalize(e);if(t){if(n==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let o of i)o.raws.before=t.raws.before}return i}removeChild(e,t){let n=this.index(e);return!t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new Gn(new Zn,this,e).stringify()}};ie.registerLazyResult=r=>{Gn=r};ie.registerProcessor=r=>{Zn=r};var ve=ie;ie.default=ie;Wn.registerRoot(ie);let ge={comma(r){return ge.split(r,[","],!0)},space(r){let e=[" ",`
266
- `," "];return ge.split(r,e)},split(r,e,t){let n=[],i="",o=!1,s=0,a=!1,l="",c=!1;for(let u of r)c?c=!1:u==="\\"?c=!0:a?u===l&&(a=!1):u==='"'||u==="'"?(a=!0,l=u):u==="("?s+=1:u===")"?s>0&&(s-=1):s===0&&e.includes(u)&&(o=!0),o?(i!==""&&n.push(i.trim()),i="",o=!1):i+=u;return(t||i!=="")&&n.push(i.trim()),n}};var qn=ge;ge.default=ge;let Kn=ee,Ui=qn,Ue=class extends Kn{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Ui.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}};var Pt=Ue;Ue.default=Ue;Kn.registerRule(Ue);let Fi=Ve,Wi=Bi,Gi=Xe,Zi=Lt,qi=ve,on=Pt;const an={empty:!0,space:!0};function Ki(r){for(let e=r.length-1;e>=0;e--){let t=r[e],n=t[3]||t[2];if(n)return n}}let Vi=class{constructor(e){this.input=e,this.root=new qi,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new Zi;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let n,i,o,s=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){a=!0;break}else if(n==="}"){if(l.length>0){for(o=l.length-1,i=l[o];i&&i[0]==="space";)i=l[--o];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),s&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let n=0,i;for(let o=t-1;o>=0&&(i=e[o],!(i[0]!=="space"&&(n+=1,n===2)));o--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,n,i,o;for(let[s,a]of e.entries()){if(n=a,i=n[0],i==="("&&(t+=1),i===")"&&(t-=1),t===0&&i===":")if(!o)this.doubleColon(n);else{if(o[0]==="word"&&o[1]==="progid")continue;return s}o=n}return!1}comment(e){let t=new Gi;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3]}}createTokenizer(){this.tokenizer=Wi(this.input)}decl(e,t){let n=new Fi;this.init(n,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||Ki(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){n.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),n.raws.between+=o[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let s=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)s.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(o=e[c],o[1].toLowerCase()==="!important"){n.important=!0;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(n.raws.important=u);break}else if(o[1].toLowerCase()==="important"){let u=e.slice(0),b="";for(let g=c;g>0;g--){let k=u[g][0];if(b.trim().indexOf("!")===0&&k!=="space")break;b=u.pop()[1]+b}b.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=b,e=u)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(n.raws.between+=s.map(c=>c[1]).join(""),s=[]),this.raw(n,"value",s.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new on;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,n=null,i=!1,o=null,s=[],a=e[1].startsWith("--"),l=[],c=e;for(;c;){if(n=c[0],l.push(c),n==="("||n==="[")o||(o=c),s.push(n==="("?")":"]");else if(a&&i&&n==="{")o||(o=c),s.push("}");else if(s.length===0)if(n===";")if(i){this.decl(l,a);return}else break;else if(n==="{"){this.rule(l);return}else if(n==="}"){this.tokenizer.back(l.pop()),t=!0;break}else n===":"&&(i=!0);else n===s[s.length-1]&&(s.pop(),s.length===0&&(o=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),s.length>0&&this.unclosedBracket(o),t&&i){if(!a)for(;l.length&&(c=l[l.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,i){let o,s,a=n.length,l="",c=!0,u,b;for(let g=0;g<a;g+=1)o=n[g],s=o[0],s==="space"&&g===a-1&&!i?c=!1:s==="comment"?(b=n[g-1]?n[g-1][0]:"empty",u=n[g+1]?n[g+1][0]:"empty",!an[b]&&!an[u]?l.slice(-1)===","?c=!1:l+=o[1]:c=!1):l+=o[1];if(!c){let g=n.reduce((k,R)=>k+R[1],"");e.raws[t]={raw:g,value:l}}e[t]=l}rule(e){e.pop();let t=new on;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let i=t;i<e.length;i++)n+=e[i][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var Ji=Vi;let Xi=ee,Qi=Ji,Yi=Je;function Fe(r,e){let t=new Yi(r,e),n=new Qi(t);try{n.parse()}catch(i){throw i}return n.root}var $t=Fe;Fe.default=Fe;Xi.registerParse(Fe);let{isClean:B,my:es}=xe,ts=Nn,ns=qe,rs=ee,is=Mt,ln=Tt,ss=$t,os=ve;const as={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ls={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},cs={Once:!0,postcssPlugin:!0,prepare:!0},se=0;function he(r){return typeof r=="object"&&typeof r.then=="function"}function Vn(r){let e=!1,t=as[r.type];return r.type==="decl"?e=r.prop.toLowerCase():r.type==="atrule"&&(e=r.name.toLowerCase()),e&&r.append?[t,t+"-"+e,se,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:r.append?[t,se,t+"Exit"]:[t,t+"Exit"]}function cn(r){let e;return r.type==="document"?e=["Document",se,"DocumentExit"]:r.type==="root"?e=["Root",se,"RootExit"]:e=Vn(r),{eventIndex:0,events:e,iterator:0,node:r,visitorIndex:0,visitors:[]}}function Ct(r){return r[B]=!1,r.nodes&&r.nodes.forEach(e=>Ct(e)),r}let Ot={},oe=class Jn{constructor(e,t,n){this.stringified=!1,this.processed=!1;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=Ct(t);else if(t instanceof Jn||t instanceof ln)i=Ct(t.root),t.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let o=ss;n.syntax&&(o=n.syntax.parse),n.parser&&(o=n.parser),o.parse&&(o=o.parse);try{i=o(t,n)}catch(s){this.processed=!0,this.error=s}i&&!i[es]&&rs.rebuild(i)}this.result=new ln(e,i,n),this.helpers={...Ot,postcss:Ot,result:this.result},this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?{...o,...o.prepare(this.result)}:o)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(t,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([t,i])};for(let t of this.plugins)if(typeof t=="object")for(let n in t){if(!ls[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!cs[n])if(typeof t[n]=="object")for(let i in t[n])i==="*"?e(t,n,t[n][i]):e(t,n+"-"+i.toLowerCase(),t[n][i]);else typeof t[n]=="function"&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(he(n))try{await n}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[B];){e[B]=!0;let t=[cn(e)];for(;t.length>0;){let n=this.visitTick(t);if(he(n))try{await n}catch(i){let o=t[t.length-1].node;throw this.handleError(i,o)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(o=>n(o,this.helpers));await Promise.all(i)}else await n(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return he(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=ns;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new ts(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(he(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[B];)e[B]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,i]of e){this.result.lastPlugin=n;let o;try{o=i(t,this.helpers)}catch(s){throw this.handleError(s,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(he(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:i}=t;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[s,a]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=s;try{return a(n.toProxy(),this.helpers)}catch(l){throw this.handleError(l,n)}}if(t.iterator!==0){let s=t.iterator,a;for(;a=n.nodes[n.indexes[s]];)if(n.indexes[s]+=1,!a[B]){a[B]=!0,e.push(cn(a));return}t.iterator=0,delete n.indexes[s]}let o=t.events;for(;t.eventIndex<o.length;){let s=o[t.eventIndex];if(t.eventIndex+=1,s===se){n.nodes&&n.nodes.length&&(n[B]=!0,t.iterator=n.getIterator());return}else if(this.listeners[s]){t.visitors=this.listeners[s];return}}e.pop()}walkSync(e){e[B]=!0;let t=Vn(e);for(let n of t)if(n===se)e.nodes&&e.each(i=>{i[B]||this.walkSync(i)});else{let i=this.listeners[n];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};oe.registerPostcss=r=>{Ot=r};var Xn=oe;oe.default=oe;os.registerLazyResult(oe);is.registerLazyResult(oe);let hs=Nn,us=qe,ds=$t;const fs=Tt;let _t=class{constructor(e,t,n){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let i,o=us;this.result=new fs(this._processor,i,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let a=new hs(o,i,this._opts,t);if(a.isMap()){let[l,c]=a.generate();l&&(this.result.css=l),c&&(this.result.map=c)}}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=ds;try{e=t(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var ps=_t;_t.default=_t;let gs=ps,ms=Xn,bs=Mt,ys=ve,me=class{constructor(e=[]){this.version="8.4.32",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)t.push(n);else if(typeof n=="function")t.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length===0&&typeof t.parser>"u"&&typeof t.stringifier>"u"&&typeof t.syntax>"u"?new gs(this,e,t):new ms(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var ws=me;me.default=me;ys.registerProcessor(me);bs.registerProcessor(me);let xs=Ve,vs=On,Es=Xe,Ss=Lt,Cs=Je,Os=ve,_s=Pt;function be(r,e){if(Array.isArray(r))return r.map(i=>be(i));let{inputs:t,...n}=r;if(t){e=[];for(let i of t){let o={...i,__proto__:Cs.prototype};o.map&&(o.map={...o.map,__proto__:vs.prototype}),e.push(o)}}if(n.nodes&&(n.nodes=r.nodes.map(i=>be(i,e))),n.source){let{inputId:i,...o}=n.source;n.source=o,i!=null&&(n.source.input=e[i])}if(n.type==="root")return new Os(n);if(n.type==="decl")return new xs(n);if(n.type==="rule")return new _s(n);if(n.type==="comment")return new Es(n);if(n.type==="atrule")return new Ss(n);throw new Error("Unknown node type: "+r.type)}var ks=be;be.default=be;var hn={};let As=At,Qn=Ve,Rs=Xn,Ns=ee,It=ws,Ms=qe,Ts=ks,Yn=Mt,Ls=Un,er=Xe,tr=Lt,Ps=Tt,$s=Je,Is=$t,js=qn,nr=Pt,rr=ve,zs=Ke;function E(...r){return r.length===1&&Array.isArray(r[0])&&(r=r[0]),new It(r)}E.plugin=function(e,t){let n=!1;function i(...s){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
267
- https://evilmartians.com/chronicles/postcss-8-plugin-migration`),hn.LANG&&hn.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
268
- https://www.w3ctech.com/topic/2226`));let a=t(...s);return a.postcssPlugin=e,a.postcssVersion=new It().version,a}let o;return Object.defineProperty(i,"postcss",{get(){return o||(o=i()),o}}),i.process=function(s,a,l){return E([i(l)]).process(s,a)},i};E.stringify=Ms;E.parse=Is;E.fromJSON=Ts;E.list=js;E.comment=r=>new er(r);E.atRule=r=>new tr(r);E.decl=r=>new Qn(r);E.rule=r=>new nr(r);E.root=r=>new rr(r);E.document=r=>new Yn(r);E.CssSyntaxError=As;E.Declaration=Qn;E.Container=Ns;E.Processor=It;E.Document=Yn;E.Comment=er;E.Warning=Ls;E.AtRule=tr;E.Result=Ps;E.Input=$s;E.Rule=nr;E.Root=rr;E.Node=zs;Rs.registerPostcss(E);var Hs=E;E.default=E;const _=vn(Hs);_.stringify;_.fromJSON;_.plugin;_.parse;_.list;_.document;_.comment;_.atRule;_.rule;_.decl;_.root;_.CssSyntaxError;_.Declaration;_.Container;_.Processor;_.Document;_.Comment;_.Warning;_.AtRule;_.Result;_.Input;_.Rule;_.Root;_.Node;var Ds=function(e){const t=e.prefix,n=/\s+$/.test(t)?t:`${t} `,i=e.ignoreFiles?[].concat(e.ignoreFiles):[],o=e.includeFiles?[].concat(e.includeFiles):[];return function(s){i.length&&s.source.input.file&&un(s.source.input.file,i)||o.length&&s.source.input.file&&!un(s.source.input.file,o)||s.walkRules(a=>{const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes"];a.parent&&l.includes(a.parent.name)||(a.selectors=a.selectors.map(c=>e.exclude&&Bs(c,e.exclude)?c:e.transform?e.transform(t,c,n+c,s.source.input.file,a):n+c))})}};function un(r,e){return e.some(t=>t instanceof RegExp?t.test(r):r.includes(t))}function Bs(r,e){return e.some(t=>t instanceof RegExp?t.test(r):r===t)}const Us=vn(Ds),Fs="code{white-space:pre}.example{display:flex;flex-wrap:wrap;flex-direction:row;align-items:center;gap:16px}.example>*{flex:1 1 500px}.example .tab-control{overflow:hidden}.example div[role=tab]{cursor:pointer;padding:8px 16px;display:inline-block;font-size:16px;border-bottom:2px solid transparent;background-clip:padding-box;-webkit-user-select:none;user-select:none}.example div[role=tab]:hover{background-color:#1467ba14}.example div[role=tab][selected]{background-color:#1467ba21;border-bottom:2px solid #1467ba}.tab-content{margin:16px 0}.tab-content>pre{padding-top:0}.tab-content.code{max-height:500px;overflow:auto}.tab-content.code pre{margin:0}",Ws="pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}";function Gs(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function ir(r){return r instanceof Map?r.clear=r.delete=r.set=function(){throw new Error("map is read-only")}:r instanceof Set&&(r.add=r.clear=r.delete=function(){throw new Error("set is read-only")}),Object.freeze(r),Object.getOwnPropertyNames(r).forEach(e=>{const t=r[e],n=typeof t;(n==="object"||n==="function")&&!Object.isFrozen(t)&&ir(t)}),r}class dn{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function sr(r){return r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function K(r,...e){const t=Object.create(null);for(const n in r)t[n]=r[n];return e.forEach(function(n){for(const i in n)t[i]=n[i]}),t}const Zs="</span>",fn=r=>!!r.scope,qs=(r,{prefix:e})=>{if(r.startsWith("language:"))return r.replace("language:","language-");if(r.includes(".")){const t=r.split(".");return[`${e}${t.shift()}`,...t.map((n,i)=>`${n}${"_".repeat(i+1)}`)].join(" ")}return`${e}${r}`};class Ks{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=sr(e)}openNode(e){if(!fn(e))return;const t=qs(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){fn(e)&&(this.buffer+=Zs)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const pn=(r={})=>{const e={children:[]};return Object.assign(e,r),e};class jt{constructor(){this.rootNode=pn(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=pn({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t=="string"?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(n=>this._walk(e,n)),e.closeNode(t)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(t=>typeof t=="string")?e.children=[e.children.join("")]:e.children.forEach(t=>{jt._collapse(t)}))}}class Vs extends jt{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new Ks(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function ye(r){return r?typeof r=="string"?r:r.source:null}function or(r){return te("(?=",r,")")}function Js(r){return te("(?:",r,")*")}function Xs(r){return te("(?:",r,")?")}function te(...r){return r.map(e=>ye(e)).join("")}function Qs(r){const e=r[r.length-1];return typeof e=="object"&&e.constructor===Object?(r.splice(r.length-1,1),e):{}}function zt(...r){return"("+(Qs(r).capture?"":"?:")+r.map(e=>ye(e)).join("|")+")"}function ar(r){return new RegExp(r.toString()+"|").exec("").length-1}function Ys(r,e){const t=r&&r.exec(e);return t&&t.index===0}const eo=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Ht(r,{joinWith:e}){let t=0;return r.map(n=>{t+=1;const i=t;let o=ye(n),s="";for(;o.length>0;){const a=eo.exec(o);if(!a){s+=o;break}s+=o.substring(0,a.index),o=o.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?s+="\\"+String(Number(a[1])+i):(s+=a[0],a[0]==="("&&t++)}return s}).map(n=>`(${n})`).join(e)}const to=/\b\B/,lr="[a-zA-Z]\\w*",Dt="[a-zA-Z_]\\w*",cr="\\b\\d+(\\.\\d+)?",hr="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",ur="\\b(0b[01]+)",no="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ro=(r={})=>{const e=/^#![ ]*\//;return r.binary&&(r.begin=te(e,/.*\b/,r.binary,/\b.*/)),K({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,n)=>{t.index!==0&&n.ignoreMatch()}},r)},we={begin:"\\\\[\\s\\S]",relevance:0},io={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[we]},so={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[we]},oo={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Qe=function(r,e,t={}){const n=K({scope:"comment",begin:r,end:e,contains:[]},t);n.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=zt("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return n.contains.push({begin:te(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),n},ao=Qe("//","$"),lo=Qe("/\\*","\\*/"),co=Qe("#","$"),ho={scope:"number",begin:cr,relevance:0},uo={scope:"number",begin:hr,relevance:0},fo={scope:"number",begin:ur,relevance:0},po={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[we,{begin:/\[/,end:/\]/,relevance:0,contains:[we]}]},go={scope:"title",begin:lr,relevance:0},mo={scope:"title",begin:Dt,relevance:0},bo={begin:"\\.\\s*"+Dt,relevance:0},yo=function(r){return Object.assign(r,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var $e=Object.freeze({__proto__:null,APOS_STRING_MODE:io,BACKSLASH_ESCAPE:we,BINARY_NUMBER_MODE:fo,BINARY_NUMBER_RE:ur,COMMENT:Qe,C_BLOCK_COMMENT_MODE:lo,C_LINE_COMMENT_MODE:ao,C_NUMBER_MODE:uo,C_NUMBER_RE:hr,END_SAME_AS_BEGIN:yo,HASH_COMMENT_MODE:co,IDENT_RE:lr,MATCH_NOTHING_RE:to,METHOD_GUARD:bo,NUMBER_MODE:ho,NUMBER_RE:cr,PHRASAL_WORDS_MODE:oo,QUOTE_STRING_MODE:so,REGEXP_MODE:po,RE_STARTERS_RE:no,SHEBANG:ro,TITLE_MODE:go,UNDERSCORE_IDENT_RE:Dt,UNDERSCORE_TITLE_MODE:mo});function wo(r,e){r.input[r.index-1]==="."&&e.ignoreMatch()}function xo(r,e){r.className!==void 0&&(r.scope=r.className,delete r.className)}function vo(r,e){e&&r.beginKeywords&&(r.begin="\\b("+r.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",r.__beforeBegin=wo,r.keywords=r.keywords||r.beginKeywords,delete r.beginKeywords,r.relevance===void 0&&(r.relevance=0))}function Eo(r,e){Array.isArray(r.illegal)&&(r.illegal=zt(...r.illegal))}function So(r,e){if(r.match){if(r.begin||r.end)throw new Error("begin & end are not supported with match");r.begin=r.match,delete r.match}}function Co(r,e){r.relevance===void 0&&(r.relevance=1)}const Oo=(r,e)=>{if(!r.beforeMatch)return;if(r.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},r);Object.keys(r).forEach(n=>{delete r[n]}),r.keywords=t.keywords,r.begin=te(t.beforeMatch,or(t.begin)),r.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},r.relevance=0,delete t.beforeMatch},_o=["of","and","for","in","not","or","if","then","parent","list","value"],ko="keyword";function dr(r,e,t=ko){const n=Object.create(null);return typeof r=="string"?i(t,r.split(" ")):Array.isArray(r)?i(t,r):Object.keys(r).forEach(function(o){Object.assign(n,dr(r[o],e,o))}),n;function i(o,s){e&&(s=s.map(a=>a.toLowerCase())),s.forEach(function(a){const l=a.split("|");n[l[0]]=[o,Ao(l[0],l[1])]})}}function Ao(r,e){return e?Number(e):Ro(r)?0:1}function Ro(r){return _o.includes(r.toLowerCase())}const gn={},Y=r=>{console.error(r)},mn=(r,...e)=>{console.log(`WARN: ${r}`,...e)},re=(r,e)=>{gn[`${r}/${e}`]||(console.log(`Deprecated as of ${r}. ${e}`),gn[`${r}/${e}`]=!0)},We=new Error;function fr(r,e,{key:t}){let n=0;const i=r[t],o={},s={};for(let a=1;a<=e.length;a++)s[a+n]=i[a],o[a+n]=!0,n+=ar(e[a-1]);r[t]=s,r[t]._emit=o,r[t]._multi=!0}function No(r){if(Array.isArray(r.begin)){if(r.skip||r.excludeBegin||r.returnBegin)throw Y("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),We;if(typeof r.beginScope!="object"||r.beginScope===null)throw Y("beginScope must be object"),We;fr(r,r.begin,{key:"beginScope"}),r.begin=Ht(r.begin,{joinWith:""})}}function Mo(r){if(Array.isArray(r.end)){if(r.skip||r.excludeEnd||r.returnEnd)throw Y("skip, excludeEnd, returnEnd not compatible with endScope: {}"),We;if(typeof r.endScope!="object"||r.endScope===null)throw Y("endScope must be object"),We;fr(r,r.end,{key:"endScope"}),r.end=Ht(r.end,{joinWith:""})}}function To(r){r.scope&&typeof r.scope=="object"&&r.scope!==null&&(r.beginScope=r.scope,delete r.scope)}function Lo(r){To(r),typeof r.beginScope=="string"&&(r.beginScope={_wrap:r.beginScope}),typeof r.endScope=="string"&&(r.endScope={_wrap:r.endScope}),No(r),Mo(r)}function Po(r){function e(s,a){return new RegExp(ye(s),"m"+(r.case_insensitive?"i":"")+(r.unicodeRegex?"u":"")+(a?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,a]),this.matchAt+=ar(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(l=>l[1]);this.matcherRe=e(Ht(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(a);if(!l)return null;const c=l.findIndex((b,g)=>g>0&&b!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class n{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const l=new t;return this.rules.slice(a).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[a]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,l){this.rules.push([a,l]),l.type==="begin"&&this.count++}exec(a){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(a);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(a)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(s){const a=new n;return s.contains.forEach(l=>a.addRule(l.begin,{rule:l,type:"begin"})),s.terminatorEnd&&a.addRule(s.terminatorEnd,{type:"end"}),s.illegal&&a.addRule(s.illegal,{type:"illegal"}),a}function o(s,a){const l=s;if(s.isCompiled)return l;[xo,So,Lo,Oo].forEach(u=>u(s,a)),r.compilerExtensions.forEach(u=>u(s,a)),s.__beforeBegin=null,[vo,Eo,Co].forEach(u=>u(s,a)),s.isCompiled=!0;let c=null;return typeof s.keywords=="object"&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),c=s.keywords.$pattern,delete s.keywords.$pattern),c=c||/\w+/,s.keywords&&(s.keywords=dr(s.keywords,r.case_insensitive)),l.keywordPatternRe=e(c,!0),a&&(s.begin||(s.begin=/\B|\b/),l.beginRe=e(l.begin),!s.end&&!s.endsWithParent&&(s.end=/\B|\b/),s.end&&(l.endRe=e(l.end)),l.terminatorEnd=ye(l.end)||"",s.endsWithParent&&a.terminatorEnd&&(l.terminatorEnd+=(s.end?"|":"")+a.terminatorEnd)),s.illegal&&(l.illegalRe=e(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(function(u){return $o(u==="self"?s:u)})),s.contains.forEach(function(u){o(u,l)}),s.starts&&o(s.starts,a),l.matcher=i(l),l}if(r.compilerExtensions||(r.compilerExtensions=[]),r.contains&&r.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return r.classNameAliases=K(r.classNameAliases||{}),o(r)}function pr(r){return r?r.endsWithParent||pr(r.starts):!1}function $o(r){return r.variants&&!r.cachedVariants&&(r.cachedVariants=r.variants.map(function(e){return K(r,{variants:null},e)})),r.cachedVariants?r.cachedVariants:pr(r)?K(r,{starts:r.starts?K(r.starts):null}):Object.isFrozen(r)?K(r):r}var Io="11.9.0";class jo extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const ut=sr,bn=K,yn=Symbol("nomatch"),zo=7,gr=function(r){const e=Object.create(null),t=Object.create(null),n=[];let i=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",s={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Vs};function l(h){return a.noHighlightRe.test(h)}function c(h){let f=h.className+" ";f+=h.parentNode?h.parentNode.className:"";const w=a.languageDetectRe.exec(f);if(w){const v=T(w[1]);return v||(mn(o.replace("{}",w[1])),mn("Falling back to no-highlight mode for this block.",h)),v?w[1]:"no-highlight"}return f.split(/\s+/).find(v=>l(v)||T(v))}function u(h,f,w){let v="",A="";typeof f=="object"?(v=h,w=f.ignoreIllegals,A=f.language):(re("10.7.0","highlight(lang, code, ...args) has been deprecated."),re("10.7.0",`Please use highlight(code, options) instead.
269
- https://github.com/highlightjs/highlight.js/issues/2277`),A=h,v=f),w===void 0&&(w=!0);const L={code:v,language:A};X("before:highlight",L);const q=L.result?L.result:b(L.language,L.code,w);return q.code=L.code,X("after:highlight",q),q}function b(h,f,w,v){const A=Object.create(null);function L(d,p){return d.keywords[p]}function q(){if(!y.keywords){N.addText(C);return}let d=0;y.keywordPatternRe.lastIndex=0;let p=y.keywordPatternRe.exec(C),x="";for(;p;){x+=C.substring(d,p.index);const S=D.case_insensitive?p[0].toLowerCase():p[0],M=L(y,S);if(M){const[G,Rr]=M;if(N.addText(x),x="",A[S]=(A[S]||0)+1,A[S]<=zo&&(Oe+=Rr),G.startsWith("_"))x+=p[0];else{const Nr=D.classNameAliases[G]||G;H(p[0],Nr)}}else x+=p[0];d=y.keywordPatternRe.lastIndex,p=y.keywordPatternRe.exec(C)}x+=C.substring(d),N.addText(x)}function Se(){if(C==="")return;let d=null;if(typeof y.subLanguage=="string"){if(!e[y.subLanguage]){N.addText(C);return}d=b(y.subLanguage,C,!0,Gt[y.subLanguage]),Gt[y.subLanguage]=d._top}else d=k(C,y.subLanguage.length?y.subLanguage:null);y.relevance>0&&(Oe+=d.relevance),N.__addSublanguage(d._emitter,d.language)}function P(){y.subLanguage!=null?Se():q(),C=""}function H(d,p){d!==""&&(N.startScope(p),N.addText(d),N.endScope())}function Bt(d,p){let x=1;const S=p.length-1;for(;x<=S;){if(!d._emit[x]){x++;continue}const M=D.classNameAliases[d[x]]||d[x],G=p[x];M?H(G,M):(C=G,q(),C=""),x++}}function Ut(d,p){return d.scope&&typeof d.scope=="string"&&N.openNode(D.classNameAliases[d.scope]||d.scope),d.beginScope&&(d.beginScope._wrap?(H(C,D.classNameAliases[d.beginScope._wrap]||d.beginScope._wrap),C=""):d.beginScope._multi&&(Bt(d.beginScope,p),C="")),y=Object.create(d,{parent:{value:y}}),y}function Ft(d,p,x){let S=Ys(d.endRe,x);if(S){if(d["on:end"]){const M=new dn(d);d["on:end"](p,M),M.isMatchIgnored&&(S=!1)}if(S){for(;d.endsParent&&d.parent;)d=d.parent;return d}}if(d.endsWithParent)return Ft(d.parent,p,x)}function Cr(d){return y.matcher.regexIndex===0?(C+=d[0],1):(ot=!0,0)}function Or(d){const p=d[0],x=d.rule,S=new dn(x),M=[x.__beforeBegin,x["on:begin"]];for(const G of M)if(G&&(G(d,S),S.isMatchIgnored))return Cr(p);return x.skip?C+=p:(x.excludeBegin&&(C+=p),P(),!x.returnBegin&&!x.excludeBegin&&(C=p)),Ut(x,d),x.returnBegin?0:p.length}function _r(d){const p=d[0],x=f.substring(d.index),S=Ft(y,d,x);if(!S)return yn;const M=y;y.endScope&&y.endScope._wrap?(P(),H(p,y.endScope._wrap)):y.endScope&&y.endScope._multi?(P(),Bt(y.endScope,d)):M.skip?C+=p:(M.returnEnd||M.excludeEnd||(C+=p),P(),M.excludeEnd&&(C=p));do y.scope&&N.closeNode(),!y.skip&&!y.subLanguage&&(Oe+=y.relevance),y=y.parent;while(y!==S.parent);return S.starts&&Ut(S.starts,d),M.returnEnd?0:p.length}function kr(){const d=[];for(let p=y;p!==D;p=p.parent)p.scope&&d.unshift(p.scope);d.forEach(p=>N.openNode(p))}let Ce={};function Wt(d,p){const x=p&&p[0];if(C+=d,x==null)return P(),0;if(Ce.type==="begin"&&p.type==="end"&&Ce.index===p.index&&x===""){if(C+=f.slice(p.index,p.index+1),!i){const S=new Error(`0 width match regex (${h})`);throw S.languageName=h,S.badRule=Ce.rule,S}return 1}if(Ce=p,p.type==="begin")return Or(p);if(p.type==="illegal"&&!w){const S=new Error('Illegal lexeme "'+x+'" for mode "'+(y.scope||"<unnamed>")+'"');throw S.mode=y,S}else if(p.type==="end"){const S=_r(p);if(S!==yn)return S}if(p.type==="illegal"&&x==="")return 1;if(st>1e5&&st>p.index*3)throw new Error("potential infinite loop, way more iterations than matches");return C+=x,x.length}const D=T(h);if(!D)throw Y(o.replace("{}",h)),new Error('Unknown language: "'+h+'"');const Ar=Po(D);let it="",y=v||Ar;const Gt={},N=new a.__emitter(a);kr();let C="",Oe=0,Q=0,st=0,ot=!1;try{if(D.__emitTokens)D.__emitTokens(f,N);else{for(y.matcher.considerAll();;){st++,ot?ot=!1:y.matcher.considerAll(),y.matcher.lastIndex=Q;const d=y.matcher.exec(f);if(!d)break;const p=f.substring(Q,d.index),x=Wt(p,d);Q=d.index+x}Wt(f.substring(Q))}return N.finalize(),it=N.toHTML(),{language:h,value:it,relevance:Oe,illegal:!1,_emitter:N,_top:y}}catch(d){if(d.message&&d.message.includes("Illegal"))return{language:h,value:ut(f),illegal:!0,relevance:0,_illegalBy:{message:d.message,index:Q,context:f.slice(Q-100,Q+100),mode:d.mode,resultSoFar:it},_emitter:N};if(i)return{language:h,value:ut(f),illegal:!1,relevance:0,errorRaised:d,_emitter:N,_top:y};throw d}}function g(h){const f={value:ut(h),illegal:!1,relevance:0,_top:s,_emitter:new a.__emitter(a)};return f._emitter.addText(h),f}function k(h,f){f=f||a.languages||Object.keys(e);const w=g(h),v=f.filter(T).filter(Ee).map(P=>b(P,h,!1));v.unshift(w);const A=v.sort((P,H)=>{if(P.relevance!==H.relevance)return H.relevance-P.relevance;if(P.language&&H.language){if(T(P.language).supersetOf===H.language)return 1;if(T(H.language).supersetOf===P.language)return-1}return 0}),[L,q]=A,Se=L;return Se.secondBest=q,Se}function R(h,f,w){const v=f&&t[f]||w;h.classList.add("hljs"),h.classList.add(`language-${v}`)}function $(h){let f=null;const w=c(h);if(l(w))return;if(X("before:highlightElement",{el:h,language:w}),h.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",h);return}if(h.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(h)),a.throwUnescapedHTML))throw new jo("One of your code blocks includes unescaped HTML.",h.innerHTML);f=h;const v=f.textContent,A=w?u(v,{language:w,ignoreIllegals:!0}):k(v);h.innerHTML=A.value,h.dataset.highlighted="yes",R(h,w,A.language),h.result={language:A.language,re:A.relevance,relevance:A.relevance},A.secondBest&&(h.secondBest={language:A.secondBest.language,relevance:A.secondBest.relevance}),X("after:highlightElement",{el:h,result:A,text:v})}function m(h){a=bn(a,h)}const U=()=>{I(),re("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function F(){I(),re("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let V=!1;function I(){if(document.readyState==="loading"){V=!0;return}document.querySelectorAll(a.cssSelector).forEach($)}function W(){V&&I()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",W,!1);function le(h,f){let w=null;try{w=f(r)}catch(v){if(Y("Language definition for '{}' could not be registered.".replace("{}",h)),i)Y(v);else throw v;w=s}w.name||(w.name=h),e[h]=w,w.rawDefinition=f.bind(null,r),w.aliases&&J(w.aliases,{languageName:h})}function ne(h){delete e[h];for(const f of Object.keys(t))t[f]===h&&delete t[f]}function z(){return Object.keys(e)}function T(h){return h=(h||"").toLowerCase(),e[h]||e[t[h]]}function J(h,{languageName:f}){typeof h=="string"&&(h=[h]),h.forEach(w=>{t[w.toLowerCase()]=f})}function Ee(h){const f=T(h);return f&&!f.disableAutodetect}function et(h){h["before:highlightBlock"]&&!h["before:highlightElement"]&&(h["before:highlightElement"]=f=>{h["before:highlightBlock"](Object.assign({block:f.el},f))}),h["after:highlightBlock"]&&!h["after:highlightElement"]&&(h["after:highlightElement"]=f=>{h["after:highlightBlock"](Object.assign({block:f.el},f))})}function tt(h){et(h),n.push(h)}function nt(h){const f=n.indexOf(h);f!==-1&&n.splice(f,1)}function X(h,f){const w=h;n.forEach(function(v){v[w]&&v[w](f)})}function rt(h){return re("10.7.0","highlightBlock will be removed entirely in v12.0"),re("10.7.0","Please use highlightElement now."),$(h)}Object.assign(r,{highlight:u,highlightAuto:k,highlightAll:I,highlightElement:$,highlightBlock:rt,configure:m,initHighlighting:U,initHighlightingOnLoad:F,registerLanguage:le,unregisterLanguage:ne,listLanguages:z,getLanguage:T,registerAliases:J,autoDetection:Ee,inherit:bn,addPlugin:tt,removePlugin:nt}),r.debugMode=function(){i=!1},r.safeMode=function(){i=!0},r.versionString=Io,r.regex={concat:te,lookahead:or,either:zt,optional:Xs,anyNumberOfTimes:Js};for(const h in $e)typeof $e[h]=="object"&&ir($e[h]);return Object.assign(r,$e),r},ae=gr({});ae.newInstance=()=>gr({});var Ho=ae;ae.HighlightJS=ae;ae.default=ae;const Ye=Gs(Ho),Ge="[A-Za-z$_][0-9A-Za-z$_]*",mr=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],br=["true","false","null","undefined","NaN","Infinity"],yr=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],wr=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],xr=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],vr=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Er=[].concat(xr,yr,wr);function Do(r){const e=r.regex,t=(h,{after:f})=>{const w="</"+h[0].slice(1);return h.input.indexOf(w,f)!==-1},n=Ge,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(h,f)=>{const w=h[0].length+h.index,v=h.input[w];if(v==="<"||v===","){f.ignoreMatch();return}v===">"&&(t(h,{after:w})||f.ignoreMatch());let A;const L=h.input.substring(w);if(A=L.match(/^\s*=/)){f.ignoreMatch();return}if((A=L.match(/^\s+extends\s+/))&&A.index===0){f.ignoreMatch();return}}},a={$pattern:Ge,keyword:mr,literal:br,built_in:Er,"variable.language":vr},l="[0-9](_?[0-9])*",c=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",b={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},g={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},k={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,g],subLanguage:"xml"}},R={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,g],subLanguage:"css"}},$={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,g],subLanguage:"graphql"}},m={className:"string",begin:"`",end:"`",contains:[r.BACKSLASH_ESCAPE,g]},U={className:"comment",variants:[r.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),r.C_BLOCK_COMMENT_MODE,r.C_LINE_COMMENT_MODE]},F=[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,k,R,$,m,{match:/\$\d+/},b];g.contains=F.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(F)});const V=[].concat(U,g.contains),I=V.concat([{begin:/\(/,end:/\)/,keywords:a,contains:["self"].concat(V)}]),W={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:I},le={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,e.concat(n,"(",e.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},ne={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...yr,...wr]}},z={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},T={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[W],illegal:/%/},J={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Ee(h){return e.concat("(?!",h.join("|"),")")}const et={match:e.concat(/\b/,Ee([...xr,"super","import"]),n,e.lookahead(/\(/)),className:"title.function",relevance:0},tt={begin:e.concat(/\./,e.lookahead(e.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},nt={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},W]},X="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+r.UNDERSCORE_IDENT_RE+")\\s*=>",rt={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(X)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[W]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:I,CLASS_REFERENCE:ne},illegal:/#(?![$_A-z])/,contains:[r.SHEBANG({label:"shebang",binary:"node",relevance:5}),z,r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,k,R,$,m,U,{match:/\$\d+/},b,ne,{className:"attr",begin:n+e.lookahead(":"),relevance:0},rt,{begin:"("+r.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[U,r.REGEXP_MODE,{className:"function",begin:X,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:r.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:I}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},T,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+r.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[W,r.inherit(r.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},tt,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[W]},et,J,le,nt,{match:/\$[(.]/}]}}function Bo(r){const e=Do(r),t=Ge,n=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[e.exports.CLASS_REFERENCE]},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:n},contains:[e.exports.CLASS_REFERENCE]},s={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},a=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],l={$pattern:Ge,keyword:mr.concat(a),literal:br,built_in:Er.concat(n),"variable.language":vr},c={className:"meta",begin:"@"+t},u=(g,k,R)=>{const $=g.contains.findIndex(m=>m.label===k);if($===-1)throw new Error("can not find mode to replace");g.contains.splice($,1,R)};Object.assign(e.keywords,l),e.exports.PARAMS_CONTAINS.push(c),e.contains=e.contains.concat([c,i,o]),u(e,"shebang",r.SHEBANG()),u(e,"use_strict",s);const b=e.contains.find(g=>g.label==="func.def");return b.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function Uo(r){const e=r.regex,t=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),n=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=r.inherit(o,{begin:/\(/,end:/\)/}),a=r.inherit(r.APOS_STRING_MODE,{className:"string"}),l=r.inherit(r.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:n,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,l,a,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,s,l,a]}]}]},r.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(t,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:t,relevance:0,starts:c}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(t,/>/))),contains:[{className:"name",begin:t,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const Fo=r=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:r.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:r.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Wo=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Go=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],Zo=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],qo=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],Ko=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function Vo(r){const e=r.regex,t=Fo(r),n={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",o=/@-?\w[\w]*(-\w+)*/,s="[a-zA-Z-][a-zA-Z0-9_-]*",a=[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[t.BLOCK_COMMENT,n,t.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+s,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Zo.join("|")+")"},{begin:":(:)?("+qo.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Ko.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[t.BLOCK_COMMENT,t.HEXCOLOR,t.IMPORTANT,t.CSS_NUMBER_MODE,...a,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...a,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},t.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:Go.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...a,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Wo.join("|")+")\\b"}]}}const Sr=document.createElement("style");Sr.innerText=[Fs,Ws].join(`
270
- `);document.head.appendChild(Sr);Ye.registerLanguage("typescript",Bo);Ye.registerLanguage("html",Uo);Ye.registerLanguage("css",Vo);function Jo(...r){const e=document.createElement("div"),t=document.createElement("div");t.classList.add("tab-control");const n=document.createElement("div");return r.forEach(i=>{e.appendChild(i),i.addEventListener("click",()=>{r.forEach(o=>o.removeAttribute("selected")),i.setAttribute("selected",""),n.innerHTML="",n.appendChild(i.content),n.className=i.className,n.classList.add("tab-content")})}),t.appendChild(e),t.appendChild(n),n.classList.add("tab-content"),r[0].setAttribute("selected",""),n.appendChild(r[0].content),t}function ue(r,e){const t=document.createElement("div");return t.role="tab",t.tabIndex=0,t.innerText=r,t.content=e,e.tagName=="PRE"&&t.classList.add("code"),t}function fe(r,e){const t=document.createElement(r);return typeof e=="string"?t.innerHTML=e:e.forEach(n=>{t.appendChild(n)}),t}async function Xo(r,e,t){var n,i,o;const s=e.mainContent,a=fe("div",s);a.id=`example-preview-${t}`;const l=typeof e.css=="string"||(n=e.css)==null?void 0:n.label,c=typeof e.css=="string"?e.css:(i=e.css)==null?void 0:i.content,u=Jo(ue("Preview",a),ue("HTML",Ie("html",s)),...c?[ue(l??"CSS",Ie("css",c))]:[],...e.initializer&&e.initializer.content?[ue(e.initializer.label??"TS",Ie("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(g=>ue(g.label,Ie(g.language,g.content))));e.description&&r.appendChild(fe("div",e.description));const b=fe("div",[u]);b.classList.add("example"),r.appendChild(b),c&&Qo(`#${a.id}`,c),(o=e.initializer)!=null&&o.initialize&&await e.initializer.initialize(a)}function Ie(r,e){let t=e.split(/\r?\n/).map(n=>{const i=n.indexOf("///");if(i>-1){const o=n.substring(i+3).trimStart();return o?n.replace(/^(\s*)([^\s].*)$/,`$1${o}`):void 0}return n}).filter(n=>typeof n<"u").join(`
271
- `).trim();return r&&r!="raw"&&(t=Ye.highlight(t,{language:r}).value),fe("pre",[fe("code",t)])}function Qo(r,e){const t=document.createElement("style");t.innerHTML=_().use(Us({prefix:r})).process(e).css,document.head.appendChild(t)}async function Yo(r,e=document.body){const t=ta(e);let n=0;Object.keys(r).forEach(async i=>{const o=document.createElement("div");o.className="example-container",t.appendChild(o);const s=r[i].default;Xo(o,s,n++)})}function ea(r){const e=document.createElement("div");e.id="examples-container";const t=r.querySelector("#examples");return t?t.after(e):r.appendChild(e),e}function ta(r){return r.children?ea(r):r}const na=`<h1 id="@cas-smartdesign/header-layout">@cas-smartdesign/header-layout</h1>
266
+ `)&&(n=`\r
267
+ `),this.css+=n+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let n=this.toUrl(this.path(t.file)),l=t.root||a(t.file),u;this.mapOpts.sourcesContent===!1?(u=new r(t.text),u.sourcesContent&&(u.sourcesContent=null)):u=t.consumer(),this.map.applySourceMap(u,n,this.toUrl(this.path(l)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let t;for(let n=this.root.nodes.length-1;n>=0;n--)t=this.root.nodes[n],t.type==="comment"&&t.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(n)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),c&&x&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,n=>{t+=n}),[t]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=h.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new h({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new h({file:this.outputFile(),ignoreInvalidMapping:!0});let t=1,n=1,l="<no source>",u={generated:{column:0,line:0},original:{column:0,line:0},source:""},p,E;this.stringify(this.root,(S,w,y)=>{if(this.css+=S,w&&y!=="end"&&(u.generated.line=t,u.generated.column=n-1,w.source&&w.source.start?(u.source=this.sourcePath(w),u.original.line=w.source.start.line,u.original.column=w.source.start.column-1,this.map.addMapping(u)):(u.source=l,u.original.line=1,u.original.column=0,this.map.addMapping(u))),E=S.match(/\n/g),E?(t+=E.length,p=S.lastIndexOf(`
268
+ `),n=S.length-p):n+=S.length,w&&y!=="start"){let b=w.parent||{raws:{}};(!(w.type==="decl"||w.type==="atrule"&&!w.nodes)||w!==b.last||b.raws.semicolon)&&(w.source&&w.source.end?(u.source=this.sourcePath(w),u.original.line=w.source.end.line,u.original.column=w.source.end.column-1,u.generated.line=t,u.generated.column=n-2,this.map.addMapping(u)):(u.source=l,u.original.line=1,u.original.column=0,u.generated.line=t,u.generated.column=n-1,this.map.addMapping(u)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(t=>t.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let t=this.mapOpts.annotation;return typeof t<"u"&&t!==!0?!1:this.previous().length?this.previous().some(n=>n.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(t=>t.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;let n=this.memoizedPaths.get(t);if(n)return n;let l=this.opts.to?a(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(l=a(m(l,this.mapOpts.annotation)));let u=d(l,t);return this.memoizedPaths.set(t,u),u}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(t=>{if(t.source&&t.source.input.map){let n=t.source.input.map;this.previousMaps.includes(n)||this.previousMaps.push(n)}});else{let t=new g(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk(n=>{if(n.source){let l=n.source.input.from;if(l&&!t[l]){t[l]=!0;let u=this.usesFileUrls?this.toFileUrl(l):this.toUrl(this.path(l));this.map.setSourceContent(u,n.source.input.css)}}});else if(this.css){let n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let n=this.memoizedFileURLs.get(t);if(n)return n;if(s){let l=s(t).toString();return this.memoizedFileURLs.set(t,l),l}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let n=this.memoizedURLs.get(t);if(n)return n;f==="\\"&&(t=t.replace(/\\/g,"/"));let l=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,l),l}}return Ot=e,Ot}var Rt,_n;function ci(){if(_n)return Rt;_n=1;const a=39,d=34,m=92,f=47,r=10,h=32,s=12,g=9,x=13,c=91,e=93,i=40,t=41,n=123,l=125,u=59,p=42,E=58,S=64,w=/[\t\n\f\r "#'()/;[\\\]{}]/g,y=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,k=/[\da-f]/i;return Rt=function(I,D={}){let T=I.css.valueOf(),J=D.ignoreErrors,q,be,ae,N,Ee,W,Q,ie,se,fe,ye=T.length,z=0,Re=[],Se=[];function et(){return z}function _e(pe){throw I.error("Unclosed "+pe,z)}function tt(){return Se.length===0&&z>=ye}function ke(pe){if(Se.length)return Se.pop();if(z>=ye)return;let Ae=pe?pe.ignoreUnclosed:!1;switch(q=T.charCodeAt(z),q){case r:case h:case g:case x:case s:{N=z;do N+=1,q=T.charCodeAt(N);while(q===h||q===r||q===g||q===x||q===s);W=["space",T.slice(z,N)],z=N-1;break}case c:case e:case n:case l:case E:case u:case t:{let Ie=String.fromCharCode(q);W=[Ie,Ie,z];break}case i:{if(fe=Re.length?Re.pop()[1]:"",se=T.charCodeAt(z+1),fe==="url"&&se!==a&&se!==d&&se!==h&&se!==r&&se!==g&&se!==s&&se!==x){N=z;do{if(Q=!1,N=T.indexOf(")",N+1),N===-1)if(J||Ae){N=z;break}else _e("bracket");for(ie=N;T.charCodeAt(ie-1)===m;)ie-=1,Q=!Q}while(Q);W=["brackets",T.slice(z,N+1),z,N],z=N}else N=T.indexOf(")",z+1),be=T.slice(z,N+1),N===-1||b.test(be)?W=["(","(",z]:(W=["brackets",be,z,N],z=N);break}case a:case d:{Ee=q===a?"'":'"',N=z;do{if(Q=!1,N=T.indexOf(Ee,N+1),N===-1)if(J||Ae){N=z+1;break}else _e("string");for(ie=N;T.charCodeAt(ie-1)===m;)ie-=1,Q=!Q}while(Q);W=["string",T.slice(z,N+1),z,N],z=N;break}case S:{w.lastIndex=z+1,w.test(T),w.lastIndex===0?N=T.length-1:N=w.lastIndex-2,W=["at-word",T.slice(z,N+1),z,N],z=N;break}case m:{for(N=z,ae=!0;T.charCodeAt(N+1)===m;)N+=1,ae=!ae;if(q=T.charCodeAt(N+1),ae&&q!==f&&q!==h&&q!==r&&q!==g&&q!==x&&q!==s&&(N+=1,k.test(T.charAt(N)))){for(;k.test(T.charAt(N+1));)N+=1;T.charCodeAt(N+1)===h&&(N+=1)}W=["word",T.slice(z,N+1),z,N],z=N;break}default:{q===f&&T.charCodeAt(z+1)===p?(N=T.indexOf("*/",z+2)+1,N===0&&(J||Ae?N=T.length:_e("comment")),W=["comment",T.slice(z,N+1),z,N],z=N):(y.lastIndex=z+1,y.test(T),y.lastIndex===0?N=T.length-1:N=y.lastIndex-2,W=["word",T.slice(z,N+1),z,N],Re.push(W),z=N);break}}return z++,W}function nt(pe){Se.push(pe)}return{back:nt,endOfFile:tt,nextToken:ke,position:et}},Rt}var _t,An;function ui(){if(An)return _t;An=1;let a=Dt(),d=Ve(),m=Xe(),f=Le(),r=$t(),h=ci();const s={empty:!0,space:!0};function g(c){for(let e=c.length-1;e>=0;e--){let i=c[e],t=i[3]||i[2];if(t)return t}}class x{constructor(e){this.input=e,this.root=new f,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let i=new a;i.name=e[1].slice(1),i.name===""&&this.unnamedAtrule(i,e),this.init(i,e[2]);let t,n,l,u=!1,p=!1,E=[],S=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),t=e[0],t==="("||t==="["?S.push(t==="("?")":"]"):t==="{"&&S.length>0?S.push("}"):t===S[S.length-1]&&S.pop(),S.length===0)if(t===";"){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if(t==="{"){p=!0;break}else if(t==="}"){if(E.length>0){for(l=E.length-1,n=E[l];n&&n[0]==="space";)n=E[--l];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(e);break}else E.push(e);else E.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(E),E.length?(i.raws.afterName=this.spacesAndCommentsFromStart(E),this.raw(i,"params",E),u&&(e=E[E.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),p&&(i.nodes=[],this.current=i)}checkMissedSemicolon(e){let i=this.colon(e);if(i===!1)return;let t=0,n;for(let l=i-1;l>=0&&(n=e[l],!(n[0]!=="space"&&(t+=1,t===2)));l--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(e){let i=0,t,n,l;for(let[u,p]of e.entries()){if(n=p,l=n[0],l==="("&&(i+=1),l===")"&&(i-=1),i===0&&l===":")if(!t)this.doubleColon(n);else{if(t[0]==="word"&&t[1]==="progid")continue;return u}t=n}return!1}comment(e){let i=new d;this.init(i,e[2]),i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++;let t=e[1].slice(2,-2);if(/^\s*$/.test(t))i.text="",i.raws.left=t,i.raws.right="";else{let n=t.match(/^(\s*)([^]*\S)(\s*)$/);i.text=n[2],i.raws.left=n[1],i.raws.right=n[3]}}createTokenizer(){this.tokenizer=h(this.input)}decl(e,i){let t=new m;this.init(t,e[0][2]);let n=e[e.length-1];for(n[0]===";"&&(this.semicolon=!0,e.pop()),t.source.end=this.getPosition(n[3]||n[2]||g(e)),t.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),t.raws.before+=e.shift()[1];for(t.source.start=this.getPosition(e[0][2]),t.prop="";e.length;){let S=e[0][0];if(S===":"||S==="space"||S==="comment")break;t.prop+=e.shift()[1]}t.raws.between="";let l;for(;e.length;)if(l=e.shift(),l[0]===":"){t.raws.between+=l[1];break}else l[0]==="word"&&/\w/.test(l[1])&&this.unknownWord([l]),t.raws.between+=l[1];(t.prop[0]==="_"||t.prop[0]==="*")&&(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1));let u=[],p;for(;e.length&&(p=e[0][0],!(p!=="space"&&p!=="comment"));)u.push(e.shift());this.precheckMissedSemicolon(e);for(let S=e.length-1;S>=0;S--){if(l=e[S],l[1].toLowerCase()==="!important"){t.important=!0;let w=this.stringFrom(e,S);w=this.spacesFromEnd(e)+w,w!==" !important"&&(t.raws.important=w);break}else if(l[1].toLowerCase()==="important"){let w=e.slice(0),y="";for(let b=S;b>0;b--){let k=w[b][0];if(y.trim().startsWith("!")&&k!=="space")break;y=w.pop()[1]+y}y.trim().startsWith("!")&&(t.important=!0,t.raws.important=y,e=w)}if(l[0]!=="space"&&l[0]!=="comment")break}e.some(S=>S[0]!=="space"&&S[0]!=="comment")&&(t.raws.between+=u.map(S=>S[1]).join(""),u=[]),this.raw(t,"value",u.concat(e),i),t.value.includes(":")&&!i&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let i=new r;this.init(i,e[2]),i.selector="",i.raws.between="",this.current=i}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let i=this.current.nodes[this.current.nodes.length-1];i&&i.type==="rule"&&!i.raws.ownSemicolon&&(i.raws.ownSemicolon=this.spaces,this.spaces="",i.source.end=this.getPosition(e[2]),i.source.end.offset+=i.raws.ownSemicolon.length)}}getPosition(e){let i=this.input.fromOffset(e);return{column:i.col,line:i.line,offset:e}}init(e,i){this.current.push(e),e.source={input:this.input,start:this.getPosition(i)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let i=!1,t=null,n=!1,l=null,u=[],p=e[1].startsWith("--"),E=[],S=e;for(;S;){if(t=S[0],E.push(S),t==="("||t==="[")l||(l=S),u.push(t==="("?")":"]");else if(p&&n&&t==="{")l||(l=S),u.push("}");else if(u.length===0)if(t===";")if(n){this.decl(E,p);return}else break;else if(t==="{"){this.rule(E);return}else if(t==="}"){this.tokenizer.back(E.pop()),i=!0;break}else t===":"&&(n=!0);else t===u[u.length-1]&&(u.pop(),u.length===0&&(l=null));S=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(i=!0),u.length>0&&this.unclosedBracket(l),i&&n){if(!p)for(;E.length&&(S=E[E.length-1][0],!(S!=="space"&&S!=="comment"));)this.tokenizer.back(E.pop());this.decl(E,p)}else this.unknownWord(E)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,i,t,n){let l,u,p=t.length,E="",S=!0,w,y;for(let b=0;b<p;b+=1)l=t[b],u=l[0],u==="space"&&b===p-1&&!n?S=!1:u==="comment"?(y=t[b-1]?t[b-1][0]:"empty",w=t[b+1]?t[b+1][0]:"empty",!s[y]&&!s[w]?E.slice(-1)===","?S=!1:E+=l[1]:S=!1):E+=l[1];if(!S){let b=t.reduce((k,_)=>k+_[1],"");e.raws[i]={raw:b,value:E}}e[i]=E}rule(e){e.pop();let i=new r;this.init(i,e[0][2]),i.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(i,"selector",e),this.current=i}spacesAndCommentsFromEnd(e){let i,t="";for(;e.length&&(i=e[e.length-1][0],!(i!=="space"&&i!=="comment"));)t=e.pop()[1]+t;return t}spacesAndCommentsFromStart(e){let i,t="";for(;e.length&&(i=e[0][0],!(i!=="space"&&i!=="comment"));)t+=e.shift()[1];return t}spacesFromEnd(e){let i,t="";for(;e.length&&(i=e[e.length-1][0],i==="space");)t=e.pop()[1]+t;return t}stringFrom(e,i){let t="";for(let n=i;n<e.length;n++)t+=e[n][1];return e.splice(i,e.length-i),t}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,i){throw this.input.error("At-rule without name",{offset:i[2]},{offset:i[2]+i[1].length})}}return _t=x,_t}var At,Nn;function qt(){if(Nn)return At;Nn=1;let a=ve(),d=Qe(),m=ui();function f(r,h){let s=new d(r,h),g=new m(s);try{g.parse()}catch(x){throw x}return g.root}return At=f,f.default=f,a.registerParse(f),At}var Nt,Mn;function Gn(){if(Mn)return Nt;Mn=1;class a{constructor(m,f={}){if(this.type="warning",this.text=m,f.node&&f.node.source){let r=f.node.rangeBy(f);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in f)this[r]=f[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Nt=a,a.default=a,Nt}var Mt,Pn;function Ft(){if(Pn)return Mt;Pn=1;let a=Gn();class d{get content(){return this.css}constructor(f,r,h){this.processor=f,this.messages=[],this.root=r,this.opts=h,this.css="",this.map=void 0}toString(){return this.css}warn(f,r={}){r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);let h=new a(f,r);return this.messages.push(h),h}warnings(){return this.messages.filter(f=>f.type==="warning")}}return Mt=d,d.default=d,Mt}var Pt,Tn;function Zn(){if(Tn)return Pt;Tn=1;let a=ve(),d=Ut(),m=Wn(),f=qt(),r=Ft(),h=Le(),s=Ke(),{isClean:g,my:x}=Bt();const c={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},e={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},i={Once:!0,postcssPlugin:!0,prepare:!0},t=0;function n(w){return typeof w=="object"&&typeof w.then=="function"}function l(w){let y=!1,b=c[w.type];return w.type==="decl"?y=w.prop.toLowerCase():w.type==="atrule"&&(y=w.name.toLowerCase()),y&&w.append?[b,b+"-"+y,t,b+"Exit",b+"Exit-"+y]:y?[b,b+"-"+y,b+"Exit",b+"Exit-"+y]:w.append?[b,t,b+"Exit"]:[b,b+"Exit"]}function u(w){let y;return w.type==="document"?y=["Document",t,"DocumentExit"]:w.type==="root"?y=["Root",t,"RootExit"]:y=l(w),{eventIndex:0,events:y,iterator:0,node:w,visitorIndex:0,visitors:[]}}function p(w){return w[g]=!1,w.nodes&&w.nodes.forEach(y=>p(y)),w}let E={};class S{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(y,b,k){this.stringified=!1,this.processed=!1;let _;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))_=p(b);else if(b instanceof S||b instanceof r)_=p(b.root),b.map&&(typeof k.map>"u"&&(k.map={}),k.map.inline||(k.map.inline=!1),k.map.prev=b.map);else{let I=f;k.syntax&&(I=k.syntax.parse),k.parser&&(I=k.parser),I.parse&&(I=I.parse);try{_=I(b,k)}catch(D){this.processed=!0,this.error=D}_&&!_[x]&&a.rebuild(_)}this.result=new r(y,_,k),this.helpers={...E,postcss:E,result:this.result},this.plugins=this.processor.plugins.map(I=>typeof I=="object"&&I.prepare?{...I,...I.prepare(this.result)}:I)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,b){let k=this.result.lastPlugin;try{b&&b.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=k.postcssPlugin,y.setMessage()):k.postcssVersion}catch(_){console&&console.error&&console.error(_)}return y}prepareVisitors(){this.listeners={};let y=(b,k,_)=>{this.listeners[k]||(this.listeners[k]=[]),this.listeners[k].push([b,_])};for(let b of this.plugins)if(typeof b=="object")for(let k in b){if(!e[k]&&/^[A-Z]/.test(k))throw new Error(`Unknown event ${k} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!i[k])if(typeof b[k]=="object")for(let _ in b[k])_==="*"?y(b,k,b[k][_]):y(b,k+"-"+_.toLowerCase(),b[k][_]);else typeof b[k]=="function"&&y(b,k,b[k])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let b=this.plugins[y],k=this.runOnRoot(b);if(n(k))try{await k}catch(_){throw this.handleError(_)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[g];){y[g]=!0;let b=[u(y)];for(;b.length>0;){let k=this.visitTick(b);if(n(k))try{await k}catch(_){let I=b[b.length-1].node;throw this.handleError(_,I)}}}if(this.listeners.OnceExit)for(let[b,k]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(y.type==="document"){let _=y.nodes.map(I=>k(I,this.helpers));await Promise.all(_)}else await k(y,this.helpers)}catch(_){throw this.handleError(_)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(k=>y.Once(k,this.helpers));return n(b[0])?Promise.all(b):b}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(b){throw this.handleError(b)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,b=s;y.syntax&&(b=y.syntax.stringify),y.stringifier&&(b=y.stringifier),b.stringify&&(b=b.stringify);let _=new m(b,this.result.root,this.result.opts).generate();return this.result.css=_[0],this.result.map=_[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let b=this.runOnRoot(y);if(n(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[g];)y[g]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let b of y.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,b){return this.async().then(y,b)}toString(){return this.css}visitSync(y,b){for(let[k,_]of y){this.result.lastPlugin=k;let I;try{I=_(b,this.helpers)}catch(D){throw this.handleError(D,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(n(I))throw this.getAsyncError()}}visitTick(y){let b=y[y.length-1],{node:k,visitors:_}=b;if(k.type!=="root"&&k.type!=="document"&&!k.parent){y.pop();return}if(_.length>0&&b.visitorIndex<_.length){let[D,T]=_[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===_.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=D;try{return T(k.toProxy(),this.helpers)}catch(J){throw this.handleError(J,k)}}if(b.iterator!==0){let D=b.iterator,T;for(;T=k.nodes[k.indexes[D]];)if(k.indexes[D]+=1,!T[g]){T[g]=!0,y.push(u(T));return}b.iterator=0,delete k.indexes[D]}let I=b.events;for(;b.eventIndex<I.length;){let D=I[b.eventIndex];if(b.eventIndex+=1,D===t){k.nodes&&k.nodes.length&&(k[g]=!0,b.iterator=k.getIterator());return}else if(this.listeners[D]){b.visitors=this.listeners[D];return}}y.pop()}walkSync(y){y[g]=!0;let b=l(y);for(let k of b)if(k===t)y.nodes&&y.each(_=>{_[g]||this.walkSync(_)});else{let _=this.listeners[k];if(_&&this.visitSync(_,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return S.registerPostcss=w=>{E=w},Pt=S,S.default=S,h.registerLazyResult(S),d.registerLazyResult(S),Pt}var Tt,Ln;function hi(){if(Ln)return Tt;Ln=1;let a=Wn(),d=qt();const m=Ft();let f=Ke();class r{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let s,g=d;try{s=g(this._css,this._opts)}catch(x){this.error=x}if(this.error)throw this.error;return this._root=s,s}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(s,g,x){g=g.toString(),this.stringified=!1,this._processor=s,this._css=g,this._opts=x,this._map=void 0;let c,e=f;this.result=new m(this._processor,c,this._opts),this.result.css=g;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let t=new a(e,c,this._opts,g);if(t.isMap()){let[n,l]=t.generate();n&&(this.result.css=n),l&&(this.result.map=l)}else t.clearAnnotation(),this.result.css=t.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(s){return this.async().catch(s)}finally(s){return this.async().then(s,s)}sync(){if(this.error)throw this.error;return this.result}then(s,g){return this.async().then(s,g)}toString(){return this._css}warnings(){return[]}}return Tt=r,r.default=r,Tt}var Lt,In;function di(){if(In)return Lt;In=1;let a=Ut(),d=Zn(),m=hi(),f=Le();class r{constructor(s=[]){this.version="8.5.6",this.plugins=this.normalize(s)}normalize(s){let g=[];for(let x of s)if(x.postcss===!0?x=x():x.postcss&&(x=x.postcss),typeof x=="object"&&Array.isArray(x.plugins))g=g.concat(x.plugins);else if(typeof x=="object"&&x.postcssPlugin)g.push(x);else if(typeof x=="function")g.push(x);else if(!(typeof x=="object"&&(x.parse||x.stringify)))throw new Error(x+" is not a PostCSS plugin");return g}process(s,g={}){return!this.plugins.length&&!g.parser&&!g.stringifier&&!g.syntax?new m(this,s,g):new d(this,s,g)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return Lt=r,r.default=r,f.registerProcessor(r),a.registerProcessor(r),Lt}var It,jn;function fi(){if(jn)return It;jn=1;var a={};let d=Dt(),m=Ve(),f=ve(),r=Ht(),h=Xe(),s=Ut(),g=li(),x=Qe(),c=Zn(),e=Fn(),i=Je(),t=qt(),n=di(),l=Ft(),u=Le(),p=$t(),E=Ke(),S=Gn();function w(...y){return y.length===1&&Array.isArray(y[0])&&(y=y[0]),new n(y)}return w.plugin=function(b,k){let _=!1;function I(...T){console&&console.warn&&!_&&(_=!0,console.warn(b+`: postcss.plugin was deprecated. Migration guide:
269
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),a.LANG&&a.LANG.startsWith("cn")&&console.warn(b+`: 里面 postcss.plugin 被弃用. 迁移指南:
270
+ https://www.w3ctech.com/topic/2226`));let J=k(...T);return J.postcssPlugin=b,J.postcssVersion=new n().version,J}let D;return Object.defineProperty(I,"postcss",{get(){return D||(D=I()),D}}),I.process=function(T,J,q){return w([I(q)]).process(T,J)},I},w.stringify=E,w.parse=t,w.fromJSON=g,w.list=e,w.comment=y=>new m(y),w.atRule=y=>new d(y),w.decl=y=>new h(y),w.rule=y=>new p(y),w.root=y=>new u(y),w.document=y=>new s(y),w.CssSyntaxError=r,w.Declaration=h,w.Container=f,w.Processor=n,w.Document=s,w.Comment=m,w.Warning=S,w.AtRule=d,w.Result=l,w.Input=x,w.Rule=p,w.Root=u,w.Node=i,c.registerPostcss(w),It=w,w.default=w,It}var pi=fi();const K=Un(pi);K.stringify;K.fromJSON;K.plugin;K.parse;K.list;K.document;K.comment;K.atRule;K.rule;K.decl;K.root;K.CssSyntaxError;K.Declaration;K.Container;K.Processor;K.Document;K.Comment;K.Warning;K.AtRule;K.Result;K.Input;K.Rule;K.Root;K.Node;var jt,zn;function gi(){if(zn)return jt;zn=1;const a=(f={})=>{const r=f.prefix,h=/\s+$/.test(r)?r:`${r} `,s=f.ignoreFiles?[].concat(f.ignoreFiles):[],g=f.includeFiles?[].concat(f.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(x){const c=x.root,e=c.source.input.file;if(!(s.length&&e&&d(e,s))&&!(g.length&&e&&!d(e,g)))return{Rule(i,{result:t}){const n=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];i.parent&&n.includes(i.parent.name)||(i.selectors=i.selectors.map(l=>f.exclude&&m(l,f.exclude)?l:f.transform?f.transform(r,l,h+l,c.source.input.file,i):[":root","body","html"].some(u=>l.startsWith(u))?f.skipGlobalSelectors?l:l.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,r):h+l))}}}}};function d(f,r){return r.some(h=>h instanceof RegExp?h.test(f):f.includes(h))}function m(f,r){return r.some(h=>h instanceof RegExp?h.test(f):f===h)}return a.postcss=!0,jt=a,jt}var mi=gi();const bi=Un(mi),yi="code{white-space:pre}.example{display:flex;flex-wrap:wrap;flex-direction:row;align-items:center;gap:16px}.example>*{flex:1 1 500px}.example .tab-control{overflow:hidden}.example div[role=tab]{cursor:pointer;padding:8px 16px;display:inline-block;font-size:16px;border-bottom:2px solid transparent;background-clip:padding-box;-webkit-user-select:none;user-select:none}.example div[role=tab]:hover{background-color:#1467ba14}.example div[role=tab][selected]{background-color:#1467ba21;border-bottom:2px solid #1467ba}.tab-content{margin:16px 0}.tab-content>pre{padding-top:0}.tab-content.code{max-height:500px;overflow:auto}.tab-content.code pre{margin:0}",wi="pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}";function xi(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var zt,Hn;function vi(){if(Hn)return zt;Hn=1;function a(o){return o instanceof Map?o.clear=o.delete=o.set=function(){throw new Error("map is read-only")}:o instanceof Set&&(o.add=o.clear=o.delete=function(){throw new Error("set is read-only")}),Object.freeze(o),Object.getOwnPropertyNames(o).forEach(v=>{const R=o[v],B=typeof R;(B==="object"||B==="function")&&!Object.isFrozen(R)&&a(R)}),o}class d{constructor(v){v.data===void 0&&(v.data={}),this.data=v.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function m(o){return o.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function f(o,...v){const R=Object.create(null);for(const B in o)R[B]=o[B];return v.forEach(function(B){for(const V in B)R[V]=B[V]}),R}const r="</span>",h=o=>!!o.scope,s=(o,{prefix:v})=>{if(o.startsWith("language:"))return o.replace("language:","language-");if(o.includes(".")){const R=o.split(".");return[`${v}${R.shift()}`,...R.map((B,V)=>`${B}${"_".repeat(V+1)}`)].join(" ")}return`${v}${o}`};class g{constructor(v,R){this.buffer="",this.classPrefix=R.classPrefix,v.walk(this)}addText(v){this.buffer+=m(v)}openNode(v){if(!h(v))return;const R=s(v.scope,{prefix:this.classPrefix});this.span(R)}closeNode(v){h(v)&&(this.buffer+=r)}value(){return this.buffer}span(v){this.buffer+=`<span class="${v}">`}}const x=(o={})=>{const v={children:[]};return Object.assign(v,o),v};class c{constructor(){this.rootNode=x(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(v){this.top.children.push(v)}openNode(v){const R=x({scope:v});this.add(R),this.stack.push(R)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(v){return this.constructor._walk(v,this.rootNode)}static _walk(v,R){return typeof R=="string"?v.addText(R):R.children&&(v.openNode(R),R.children.forEach(B=>this._walk(v,B)),v.closeNode(R)),v}static _collapse(v){typeof v!="string"&&v.children&&(v.children.every(R=>typeof R=="string")?v.children=[v.children.join("")]:v.children.forEach(R=>{c._collapse(R)}))}}class e extends c{constructor(v){super(),this.options=v}addText(v){v!==""&&this.add(v)}startScope(v){this.openNode(v)}endScope(){this.closeNode()}__addSublanguage(v,R){const B=v.root;R&&(B.scope=`language:${R}`),this.add(B)}toHTML(){return new g(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function i(o){return o?typeof o=="string"?o:o.source:null}function t(o){return u("(?=",o,")")}function n(o){return u("(?:",o,")*")}function l(o){return u("(?:",o,")?")}function u(...o){return o.map(v=>i(v)).join("")}function p(o){const v=o[o.length-1];return typeof v=="object"&&v.constructor===Object?(o.splice(o.length-1,1),v):{}}function E(...o){return"("+(p(o).capture?"":"?:")+o.map(v=>i(v)).join("|")+")"}function S(o){return new RegExp(o.toString()+"|").exec("").length-1}function w(o,v){const R=o&&o.exec(v);return R&&R.index===0}const y=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function b(o,{joinWith:v}){let R=0;return o.map(B=>{R+=1;const V=R;let X=i(B),M="";for(;X.length>0;){const A=y.exec(X);if(!A){M+=X;break}M+=X.substring(0,A.index),X=X.substring(A.index+A[0].length),A[0][0]==="\\"&&A[1]?M+="\\"+String(Number(A[1])+V):(M+=A[0],A[0]==="("&&R++)}return M}).map(B=>`(${B})`).join(v)}const k=/\b\B/,_="[a-zA-Z]\\w*",I="[a-zA-Z_]\\w*",D="\\b\\d+(\\.\\d+)?",T="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",J="\\b(0b[01]+)",q="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",be=(o={})=>{const v=/^#![ ]*\//;return o.binary&&(o.begin=u(v,/.*\b/,o.binary,/\b.*/)),f({scope:"meta",begin:v,end:/$/,relevance:0,"on:begin":(R,B)=>{R.index!==0&&B.ignoreMatch()}},o)},ae={begin:"\\\\[\\s\\S]",relevance:0},N={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ae]},Ee={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ae]},W={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Q=function(o,v,R={}){const B=f({scope:"comment",begin:o,end:v,contains:[]},R);B.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const V=E("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return B.contains.push({begin:u(/[ ]+/,"(",V,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),B},ie=Q("//","$"),se=Q("/\\*","\\*/"),fe=Q("#","$"),ye={scope:"number",begin:D,relevance:0},z={scope:"number",begin:T,relevance:0},Re={scope:"number",begin:J,relevance:0},Se={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ae,{begin:/\[/,end:/\]/,relevance:0,contains:[ae]}]},et={scope:"title",begin:_,relevance:0},_e={scope:"title",begin:I,relevance:0},tt={begin:"\\.\\s*"+I,relevance:0};var ke=Object.freeze({__proto__:null,APOS_STRING_MODE:N,BACKSLASH_ESCAPE:ae,BINARY_NUMBER_MODE:Re,BINARY_NUMBER_RE:J,COMMENT:Q,C_BLOCK_COMMENT_MODE:se,C_LINE_COMMENT_MODE:ie,C_NUMBER_MODE:z,C_NUMBER_RE:T,END_SAME_AS_BEGIN:function(o){return Object.assign(o,{"on:begin":(v,R)=>{R.data._beginMatch=v[1]},"on:end":(v,R)=>{R.data._beginMatch!==v[1]&&R.ignoreMatch()}})},HASH_COMMENT_MODE:fe,IDENT_RE:_,MATCH_NOTHING_RE:k,METHOD_GUARD:tt,NUMBER_MODE:ye,NUMBER_RE:D,PHRASAL_WORDS_MODE:W,QUOTE_STRING_MODE:Ee,REGEXP_MODE:Se,RE_STARTERS_RE:q,SHEBANG:be,TITLE_MODE:et,UNDERSCORE_IDENT_RE:I,UNDERSCORE_TITLE_MODE:_e});function nt(o,v){o.input[o.index-1]==="."&&v.ignoreMatch()}function pe(o,v){o.className!==void 0&&(o.scope=o.className,delete o.className)}function Ae(o,v){v&&o.beginKeywords&&(o.begin="\\b("+o.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",o.__beforeBegin=nt,o.keywords=o.keywords||o.beginKeywords,delete o.beginKeywords,o.relevance===void 0&&(o.relevance=0))}function Ie(o,v){Array.isArray(o.illegal)&&(o.illegal=E(...o.illegal))}function nr(o,v){if(o.match){if(o.begin||o.end)throw new Error("begin & end are not supported with match");o.begin=o.match,delete o.match}}function rr(o,v){o.relevance===void 0&&(o.relevance=1)}const ir=(o,v)=>{if(!o.beforeMatch)return;if(o.starts)throw new Error("beforeMatch cannot be used with starts");const R=Object.assign({},o);Object.keys(o).forEach(B=>{delete o[B]}),o.keywords=R.keywords,o.begin=u(R.beforeMatch,t(R.begin)),o.starts={relevance:0,contains:[Object.assign(R,{endsParent:!0})]},o.relevance=0,delete R.beforeMatch},sr=["of","and","for","in","not","or","if","then","parent","list","value"],or="keyword";function Wt(o,v,R=or){const B=Object.create(null);return typeof o=="string"?V(R,o.split(" ")):Array.isArray(o)?V(R,o):Object.keys(o).forEach(function(X){Object.assign(B,Wt(o[X],v,X))}),B;function V(X,M){v&&(M=M.map(A=>A.toLowerCase())),M.forEach(function(A){const j=A.split("|");B[j[0]]=[X,ar(j[0],j[1])]})}}function ar(o,v){return v?Number(v):lr(o)?0:1}function lr(o){return sr.includes(o.toLowerCase())}const Gt={},we=o=>{console.error(o)},Zt=(o,...v)=>{console.log(`WARN: ${o}`,...v)},Ce=(o,v)=>{Gt[`${o}/${v}`]||(console.log(`Deprecated as of ${o}. ${v}`),Gt[`${o}/${v}`]=!0)},je=new Error;function Kt(o,v,{key:R}){let B=0;const V=o[R],X={},M={};for(let A=1;A<=v.length;A++)M[A+B]=V[A],X[A+B]=!0,B+=S(v[A-1]);o[R]=M,o[R]._emit=X,o[R]._multi=!0}function cr(o){if(Array.isArray(o.begin)){if(o.skip||o.excludeBegin||o.returnBegin)throw we("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),je;if(typeof o.beginScope!="object"||o.beginScope===null)throw we("beginScope must be object"),je;Kt(o,o.begin,{key:"beginScope"}),o.begin=b(o.begin,{joinWith:""})}}function ur(o){if(Array.isArray(o.end)){if(o.skip||o.excludeEnd||o.returnEnd)throw we("skip, excludeEnd, returnEnd not compatible with endScope: {}"),je;if(typeof o.endScope!="object"||o.endScope===null)throw we("endScope must be object"),je;Kt(o,o.end,{key:"endScope"}),o.end=b(o.end,{joinWith:""})}}function hr(o){o.scope&&typeof o.scope=="object"&&o.scope!==null&&(o.beginScope=o.scope,delete o.scope)}function dr(o){hr(o),typeof o.beginScope=="string"&&(o.beginScope={_wrap:o.beginScope}),typeof o.endScope=="string"&&(o.endScope={_wrap:o.endScope}),cr(o),ur(o)}function fr(o){function v(M,A){return new RegExp(i(M),"m"+(o.case_insensitive?"i":"")+(o.unicodeRegex?"u":"")+(A?"g":""))}class R{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(A,j){j.position=this.position++,this.matchIndexes[this.matchAt]=j,this.regexes.push([j,A]),this.matchAt+=S(A)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const A=this.regexes.map(j=>j[1]);this.matcherRe=v(b(A,{joinWith:"|"}),!0),this.lastIndex=0}exec(A){this.matcherRe.lastIndex=this.lastIndex;const j=this.matcherRe.exec(A);if(!j)return null;const te=j.findIndex((Ne,it)=>it>0&&Ne!==void 0),Y=this.matchIndexes[te];return j.splice(0,te),Object.assign(j,Y)}}class B{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(A){if(this.multiRegexes[A])return this.multiRegexes[A];const j=new R;return this.rules.slice(A).forEach(([te,Y])=>j.addRule(te,Y)),j.compile(),this.multiRegexes[A]=j,j}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(A,j){this.rules.push([A,j]),j.type==="begin"&&this.count++}exec(A){const j=this.getMatcher(this.regexIndex);j.lastIndex=this.lastIndex;let te=j.exec(A);if(this.resumingScanAtSamePosition()&&!(te&&te.index===this.lastIndex)){const Y=this.getMatcher(0);Y.lastIndex=this.lastIndex+1,te=Y.exec(A)}return te&&(this.regexIndex+=te.position+1,this.regexIndex===this.count&&this.considerAll()),te}}function V(M){const A=new B;return M.contains.forEach(j=>A.addRule(j.begin,{rule:j,type:"begin"})),M.terminatorEnd&&A.addRule(M.terminatorEnd,{type:"end"}),M.illegal&&A.addRule(M.illegal,{type:"illegal"}),A}function X(M,A){const j=M;if(M.isCompiled)return j;[pe,nr,dr,ir].forEach(Y=>Y(M,A)),o.compilerExtensions.forEach(Y=>Y(M,A)),M.__beforeBegin=null,[Ae,Ie,rr].forEach(Y=>Y(M,A)),M.isCompiled=!0;let te=null;return typeof M.keywords=="object"&&M.keywords.$pattern&&(M.keywords=Object.assign({},M.keywords),te=M.keywords.$pattern,delete M.keywords.$pattern),te=te||/\w+/,M.keywords&&(M.keywords=Wt(M.keywords,o.case_insensitive)),j.keywordPatternRe=v(te,!0),A&&(M.begin||(M.begin=/\B|\b/),j.beginRe=v(j.begin),!M.end&&!M.endsWithParent&&(M.end=/\B|\b/),M.end&&(j.endRe=v(j.end)),j.terminatorEnd=i(j.end)||"",M.endsWithParent&&A.terminatorEnd&&(j.terminatorEnd+=(M.end?"|":"")+A.terminatorEnd)),M.illegal&&(j.illegalRe=v(M.illegal)),M.contains||(M.contains=[]),M.contains=[].concat(...M.contains.map(function(Y){return pr(Y==="self"?M:Y)})),M.contains.forEach(function(Y){X(Y,j)}),M.starts&&X(M.starts,A),j.matcher=V(j),j}if(o.compilerExtensions||(o.compilerExtensions=[]),o.contains&&o.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return o.classNameAliases=f(o.classNameAliases||{}),X(o)}function Jt(o){return o?o.endsWithParent||Jt(o.starts):!1}function pr(o){return o.variants&&!o.cachedVariants&&(o.cachedVariants=o.variants.map(function(v){return f(o,{variants:null},v)})),o.cachedVariants?o.cachedVariants:Jt(o)?f(o,{starts:o.starts?f(o.starts):null}):Object.isFrozen(o)?f(o):o}var gr="11.11.1";class mr extends Error{constructor(v,R){super(v),this.name="HTMLInjectionError",this.html=R}}const rt=m,Vt=f,Xt=Symbol("nomatch"),br=7,Qt=function(o){const v=Object.create(null),R=Object.create(null),B=[];let V=!0;const X="Could not find the language '{}', did you forget to load/include a language module?",M={disableAutodetect:!0,name:"Plain text",contains:[]};let A={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:e};function j(C){return A.noHighlightRe.test(C)}function te(C){let L=C.className+" ";L+=C.parentNode?C.parentNode.className:"";const $=A.languageDetectRe.exec(L);if($){const G=ge($[1]);return G||(Zt(X.replace("{}",$[1])),Zt("Falling back to no-highlight mode for this block.",C)),G?$[1]:"no-highlight"}return L.split(/\s+/).find(G=>j(G)||ge(G))}function Y(C,L,$){let G="",ee="";typeof L=="object"?(G=C,$=L.ignoreIllegals,ee=L.language):(Ce("10.7.0","highlight(lang, code, ...args) has been deprecated."),Ce("10.7.0",`Please use highlight(code, options) instead.
271
+ https://github.com/highlightjs/highlight.js/issues/2277`),ee=C,G=L),$===void 0&&($=!0);const ce={code:G,language:ee};He("before:highlight",ce);const me=ce.result?ce.result:Ne(ce.language,ce.code,$);return me.code=ce.code,He("after:highlight",me),me}function Ne(C,L,$,G){const ee=Object.create(null);function ce(O,P){return O.keywords[P]}function me(){if(!H.keywords){ne.addText(Z);return}let O=0;H.keywordPatternRe.lastIndex=0;let P=H.keywordPatternRe.exec(Z),U="";for(;P;){U+=Z.substring(O,P.index);const F=he.case_insensitive?P[0].toLowerCase():P[0],re=ce(H,F);if(re){const[de,Lr]=re;if(ne.addText(U),U="",ee[F]=(ee[F]||0)+1,ee[F]<=br&&(Ue+=Lr),de.startsWith("_"))U+=P[0];else{const Ir=he.classNameAliases[de]||de;ue(P[0],Ir)}}else U+=P[0];O=H.keywordPatternRe.lastIndex,P=H.keywordPatternRe.exec(Z)}U+=Z.substring(O),ne.addText(U)}function Be(){if(Z==="")return;let O=null;if(typeof H.subLanguage=="string"){if(!v[H.subLanguage]){ne.addText(Z);return}O=Ne(H.subLanguage,Z,!0,an[H.subLanguage]),an[H.subLanguage]=O._top}else O=st(Z,H.subLanguage.length?H.subLanguage:null);H.relevance>0&&(Ue+=O.relevance),ne.__addSublanguage(O._emitter,O.language)}function oe(){H.subLanguage!=null?Be():me(),Z=""}function ue(O,P){O!==""&&(ne.startScope(P),ne.addText(O),ne.endScope())}function nn(O,P){let U=1;const F=P.length-1;for(;U<=F;){if(!O._emit[U]){U++;continue}const re=he.classNameAliases[O[U]]||O[U],de=P[U];re?ue(de,re):(Z=de,me(),Z=""),U++}}function rn(O,P){return O.scope&&typeof O.scope=="string"&&ne.openNode(he.classNameAliases[O.scope]||O.scope),O.beginScope&&(O.beginScope._wrap?(ue(Z,he.classNameAliases[O.beginScope._wrap]||O.beginScope._wrap),Z=""):O.beginScope._multi&&(nn(O.beginScope,P),Z="")),H=Object.create(O,{parent:{value:H}}),H}function sn(O,P,U){let F=w(O.endRe,U);if(F){if(O["on:end"]){const re=new d(O);O["on:end"](P,re),re.isMatchIgnored&&(F=!1)}if(F){for(;O.endsParent&&O.parent;)O=O.parent;return O}}if(O.endsWithParent)return sn(O.parent,P,U)}function Ar(O){return H.matcher.regexIndex===0?(Z+=O[0],1):(ct=!0,0)}function Nr(O){const P=O[0],U=O.rule,F=new d(U),re=[U.__beforeBegin,U["on:begin"]];for(const de of re)if(de&&(de(O,F),F.isMatchIgnored))return Ar(P);return U.skip?Z+=P:(U.excludeBegin&&(Z+=P),oe(),!U.returnBegin&&!U.excludeBegin&&(Z=P)),rn(U,O),U.returnBegin?0:P.length}function Mr(O){const P=O[0],U=L.substring(O.index),F=sn(H,O,U);if(!F)return Xt;const re=H;H.endScope&&H.endScope._wrap?(oe(),ue(P,H.endScope._wrap)):H.endScope&&H.endScope._multi?(oe(),nn(H.endScope,O)):re.skip?Z+=P:(re.returnEnd||re.excludeEnd||(Z+=P),oe(),re.excludeEnd&&(Z=P));do H.scope&&ne.closeNode(),!H.skip&&!H.subLanguage&&(Ue+=H.relevance),H=H.parent;while(H!==F.parent);return F.starts&&rn(F.starts,O),re.returnEnd?0:P.length}function Pr(){const O=[];for(let P=H;P!==he;P=P.parent)P.scope&&O.unshift(P.scope);O.forEach(P=>ne.openNode(P))}let De={};function on(O,P){const U=P&&P[0];if(Z+=O,U==null)return oe(),0;if(De.type==="begin"&&P.type==="end"&&De.index===P.index&&U===""){if(Z+=L.slice(P.index,P.index+1),!V){const F=new Error(`0 width match regex (${C})`);throw F.languageName=C,F.badRule=De.rule,F}return 1}if(De=P,P.type==="begin")return Nr(P);if(P.type==="illegal"&&!$){const F=new Error('Illegal lexeme "'+U+'" for mode "'+(H.scope||"<unnamed>")+'"');throw F.mode=H,F}else if(P.type==="end"){const F=Mr(P);if(F!==Xt)return F}if(P.type==="illegal"&&U==="")return Z+=`
272
+ `,1;if(lt>1e5&&lt>P.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Z+=U,U.length}const he=ge(C);if(!he)throw we(X.replace("{}",C)),new Error('Unknown language: "'+C+'"');const Tr=fr(he);let at="",H=G||Tr;const an={},ne=new A.__emitter(A);Pr();let Z="",Ue=0,xe=0,lt=0,ct=!1;try{if(he.__emitTokens)he.__emitTokens(L,ne);else{for(H.matcher.considerAll();;){lt++,ct?ct=!1:H.matcher.considerAll(),H.matcher.lastIndex=xe;const O=H.matcher.exec(L);if(!O)break;const P=L.substring(xe,O.index),U=on(P,O);xe=O.index+U}on(L.substring(xe))}return ne.finalize(),at=ne.toHTML(),{language:C,value:at,relevance:Ue,illegal:!1,_emitter:ne,_top:H}}catch(O){if(O.message&&O.message.includes("Illegal"))return{language:C,value:rt(L),illegal:!0,relevance:0,_illegalBy:{message:O.message,index:xe,context:L.slice(xe-100,xe+100),mode:O.mode,resultSoFar:at},_emitter:ne};if(V)return{language:C,value:rt(L),illegal:!1,relevance:0,errorRaised:O,_emitter:ne,_top:H};throw O}}function it(C){const L={value:rt(C),illegal:!1,relevance:0,_top:M,_emitter:new A.__emitter(A)};return L._emitter.addText(C),L}function st(C,L){L=L||A.languages||Object.keys(v);const $=it(C),G=L.filter(ge).filter(tn).map(oe=>Ne(oe,C,!1));G.unshift($);const ee=G.sort((oe,ue)=>{if(oe.relevance!==ue.relevance)return ue.relevance-oe.relevance;if(oe.language&&ue.language){if(ge(oe.language).supersetOf===ue.language)return 1;if(ge(ue.language).supersetOf===oe.language)return-1}return 0}),[ce,me]=ee,Be=ce;return Be.secondBest=me,Be}function yr(C,L,$){const G=L&&R[L]||$;C.classList.add("hljs"),C.classList.add(`language-${G}`)}function ot(C){let L=null;const $=te(C);if(j($))return;if(He("before:highlightElement",{el:C,language:$}),C.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",C);return}if(C.children.length>0&&(A.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(C)),A.throwUnescapedHTML))throw new mr("One of your code blocks includes unescaped HTML.",C.innerHTML);L=C;const G=L.textContent,ee=$?Y(G,{language:$,ignoreIllegals:!0}):st(G);C.innerHTML=ee.value,C.dataset.highlighted="yes",yr(C,$,ee.language),C.result={language:ee.language,re:ee.relevance,relevance:ee.relevance},ee.secondBest&&(C.secondBest={language:ee.secondBest.language,relevance:ee.secondBest.relevance}),He("after:highlightElement",{el:C,result:ee,text:G})}function wr(C){A=Vt(A,C)}const xr=()=>{ze(),Ce("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function vr(){ze(),Ce("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Yt=!1;function ze(){function C(){ze()}if(document.readyState==="loading"){Yt||window.addEventListener("DOMContentLoaded",C,!1),Yt=!0;return}document.querySelectorAll(A.cssSelector).forEach(ot)}function Er(C,L){let $=null;try{$=L(o)}catch(G){if(we("Language definition for '{}' could not be registered.".replace("{}",C)),V)we(G);else throw G;$=M}$.name||($.name=C),v[C]=$,$.rawDefinition=L.bind(null,o),$.aliases&&en($.aliases,{languageName:C})}function Sr(C){delete v[C];for(const L of Object.keys(R))R[L]===C&&delete R[L]}function kr(){return Object.keys(v)}function ge(C){return C=(C||"").toLowerCase(),v[C]||v[R[C]]}function en(C,{languageName:L}){typeof C=="string"&&(C=[C]),C.forEach($=>{R[$.toLowerCase()]=L})}function tn(C){const L=ge(C);return L&&!L.disableAutodetect}function Cr(C){C["before:highlightBlock"]&&!C["before:highlightElement"]&&(C["before:highlightElement"]=L=>{C["before:highlightBlock"](Object.assign({block:L.el},L))}),C["after:highlightBlock"]&&!C["after:highlightElement"]&&(C["after:highlightElement"]=L=>{C["after:highlightBlock"](Object.assign({block:L.el},L))})}function Or(C){Cr(C),B.push(C)}function Rr(C){const L=B.indexOf(C);L!==-1&&B.splice(L,1)}function He(C,L){const $=C;B.forEach(function(G){G[$]&&G[$](L)})}function _r(C){return Ce("10.7.0","highlightBlock will be removed entirely in v12.0"),Ce("10.7.0","Please use highlightElement now."),ot(C)}Object.assign(o,{highlight:Y,highlightAuto:st,highlightAll:ze,highlightElement:ot,highlightBlock:_r,configure:wr,initHighlighting:xr,initHighlightingOnLoad:vr,registerLanguage:Er,unregisterLanguage:Sr,listLanguages:kr,getLanguage:ge,registerAliases:en,autoDetection:tn,inherit:Vt,addPlugin:Or,removePlugin:Rr}),o.debugMode=function(){V=!1},o.safeMode=function(){V=!0},o.versionString=gr,o.regex={concat:u,lookahead:t,either:E,optional:l,anyNumberOfTimes:n};for(const C in ke)typeof ke[C]=="object"&&a(ke[C]);return Object.assign(o,ke),o},Oe=Qt({});return Oe.newInstance=()=>Qt({}),zt=Oe,Oe.HighlightJS=Oe,Oe.default=Oe,zt}var Ei=vi();const Ye=xi(Ei),Ge="[A-Za-z$_][0-9A-Za-z$_]*",Kn=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Jn=["true","false","null","undefined","NaN","Infinity"],Vn=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Xn=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Qn=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Yn=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],er=[].concat(Qn,Vn,Xn);function Si(a){const d=a.regex,m=(W,{after:Q})=>{const ie="</"+W[0].slice(1);return W.input.indexOf(ie,Q)!==-1},f=Ge,r={begin:"<>",end:"</>"},h=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(W,Q)=>{const ie=W[0].length+W.index,se=W.input[ie];if(se==="<"||se===","){Q.ignoreMatch();return}se===">"&&(m(W,{after:ie})||Q.ignoreMatch());let fe;const ye=W.input.substring(ie);if(fe=ye.match(/^\s*=/)){Q.ignoreMatch();return}if((fe=ye.match(/^\s+extends\s+/))&&fe.index===0){Q.ignoreMatch();return}}},g={$pattern:Ge,keyword:Kn,literal:Jn,built_in:er,"variable.language":Yn},x="[0-9](_?[0-9])*",c=`\\.(${x})`,e="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",i={className:"number",variants:[{begin:`(\\b(${e})((${c})|\\.)?|(${c}))[eE][+-]?(${x})\\b`},{begin:`\\b(${e})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},t={className:"subst",begin:"\\$\\{",end:"\\}",keywords:g,contains:[]},n={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[a.BACKSLASH_ESCAPE,t],subLanguage:"xml"}},l={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[a.BACKSLASH_ESCAPE,t],subLanguage:"css"}},u={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[a.BACKSLASH_ESCAPE,t],subLanguage:"graphql"}},p={className:"string",begin:"`",end:"`",contains:[a.BACKSLASH_ESCAPE,t]},E={className:"comment",variants:[a.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:f+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),a.C_BLOCK_COMMENT_MODE,a.C_LINE_COMMENT_MODE]},S=[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,n,l,u,p,{match:/\$\d+/},i];t.contains=S.concat({begin:/\{/,end:/\}/,keywords:g,contains:["self"].concat(S)});const w=[].concat(E,t.contains),y=w.concat([{begin:/(\s*)\(/,end:/\)/,keywords:g,contains:["self"].concat(w)}]),b={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:y},k={variants:[{match:[/class/,/\s+/,f,/\s+/,/extends/,/\s+/,d.concat(f,"(",d.concat(/\./,f),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,f],scope:{1:"keyword",3:"title.class"}}]},_={relevance:0,match:d.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Vn,...Xn]}},I={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},D={variants:[{match:[/function/,/\s+/,f,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[b],illegal:/%/},T={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function J(W){return d.concat("(?!",W.join("|"),")")}const q={match:d.concat(/\b/,J([...Qn,"super","import"].map(W=>`${W}\\s*\\(`)),f,d.lookahead(/\s*\(/)),className:"title.function",relevance:0},be={begin:d.concat(/\./,d.lookahead(d.concat(f,/(?![0-9A-Za-z$_(])/))),end:f,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ae={match:[/get|set/,/\s+/,f,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},b]},N="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+a.UNDERSCORE_IDENT_RE+")\\s*=>",Ee={match:[/const|var|let/,/\s+/,f,/\s*/,/=\s*/,/(async\s*)?/,d.lookahead(N)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[b]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:g,exports:{PARAMS_CONTAINS:y,CLASS_REFERENCE:_},illegal:/#(?![$_A-z])/,contains:[a.SHEBANG({label:"shebang",binary:"node",relevance:5}),I,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,n,l,u,p,E,{match:/\$\d+/},i,_,{scope:"attr",match:f+d.lookahead(":"),relevance:0},Ee,{begin:"("+a.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[E,a.REGEXP_MODE,{className:"function",begin:N,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:a.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:h},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},D,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+a.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[b,a.inherit(a.TITLE_MODE,{begin:f,className:"title.function"})]},{match:/\.\.\./,relevance:0},be,{match:"\\$"+f,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[b]},q,T,k,ae,{match:/\$[(.]/}]}}function ki(a){const d=a.regex,m=Si(a),f=Ge,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],h={begin:[/namespace/,/\s+/,a.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},s={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[m.exports.CLASS_REFERENCE]},g={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},x=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],c={$pattern:Ge,keyword:Kn.concat(x),literal:Jn,built_in:er.concat(r),"variable.language":Yn},e={className:"meta",begin:"@"+f},i=(u,p,E)=>{const S=u.contains.findIndex(w=>w.label===p);if(S===-1)throw new Error("can not find mode to replace");u.contains.splice(S,1,E)};Object.assign(m.keywords,c),m.exports.PARAMS_CONTAINS.push(e);const t=m.contains.find(u=>u.scope==="attr"),n=Object.assign({},t,{match:d.concat(f,d.lookahead(/\s*\?:/))});m.exports.PARAMS_CONTAINS.push([m.exports.CLASS_REFERENCE,t,n]),m.contains=m.contains.concat([e,h,s,n]),i(m,"shebang",a.SHEBANG()),i(m,"use_strict",g);const l=m.contains.find(u=>u.label==="func.def");return l.relevance=0,Object.assign(m,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),m}function Ci(a){const d=a.regex,m=d.concat(/[\p{L}_]/u,d.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),f=/[\p{L}0-9._:-]+/u,r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},h={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=a.inherit(h,{begin:/\(/,end:/\)/}),g=a.inherit(a.APOS_STRING_MODE,{className:"string"}),x=a.inherit(a.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:f,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[r]},{begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[h,x,g,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[h,s,x,g]}]}]},a.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[x]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:d.concat(/</,d.lookahead(d.concat(m,d.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:m,relevance:0,starts:c}]},{className:"tag",begin:d.concat(/<\//,d.lookahead(d.concat(m,/>/))),contains:[{className:"name",begin:m,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const Oi=a=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:a.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:a.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Ri=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],_i=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Ai=[...Ri,..._i],Ni=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Mi=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Pi=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Ti=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function Li(a){const d=a.regex,m=Oi(a),f={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},r="and or not only",h=/@-?\w[\w]*(-\w+)*/,s="[a-zA-Z-][a-zA-Z0-9_-]*",g=[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[m.BLOCK_COMMENT,f,m.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+s,relevance:0},m.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Mi.join("|")+")"},{begin:":(:)?("+Pi.join("|")+")"}]},m.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Ti.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[m.BLOCK_COMMENT,m.HEXCOLOR,m.IMPORTANT,m.CSS_NUMBER_MODE,...g,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...g,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},m.FUNCTION_DISPATCH]},{begin:d.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:h},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:r,attribute:Ni.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...g,m.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Ai.join("|")+")\\b"}]}}const tr=document.createElement("style");tr.innerText=[yi,wi].join(`
273
+ `);document.head.appendChild(tr);Ye.registerLanguage("typescript",ki);Ye.registerLanguage("html",Ci);Ye.registerLanguage("css",Li);function Ii(...a){const d=document.createElement("div"),m=document.createElement("div");m.classList.add("tab-control");const f=document.createElement("div");return a.forEach(r=>{d.appendChild(r),r.addEventListener("click",()=>{a.forEach(h=>h.removeAttribute("selected")),r.setAttribute("selected",""),f.innerHTML="",f.appendChild(r.content),f.className=r.className,f.classList.add("tab-content")})}),m.appendChild(d),m.appendChild(f),f.classList.add("tab-content"),a[0].setAttribute("selected",""),f.appendChild(a[0].content),m}function Me(a,d){const m=document.createElement("div");return m.role="tab",m.tabIndex=0,m.innerText=a,m.content=d,d.tagName=="PRE"&&m.classList.add("code"),m}function Te(a,d){const m=document.createElement(a);return typeof d=="string"?m.innerHTML=d:d.forEach(f=>{m.appendChild(f)}),m}async function ji(a,d,m){const f=d.mainContent,r=Te("div",f);r.id=`example-preview-${m}`;const h=typeof d.css=="string"?void 0:d.css?.label,s=typeof d.css=="string"?d.css:d.css?.content,g=Ii(Me("Preview",r),Me("HTML",Fe("html",f)),...s?[Me(h??"CSS",Fe("css",s))]:[],...d.initializer&&d.initializer.content?[Me(d.initializer.label??"TS",Fe("typescript",d.initializer.content))]:[],...(d.additionalSources||[]).map(c=>Me(c.label,Fe(c.language,c.content))));d.description&&a.appendChild(Te("div",d.description));const x=Te("div",[g]);x.classList.add("example"),a.appendChild(x),s&&zi(`#${r.id}`,s),d.initializer?.initialize&&await d.initializer.initialize(r)}function Fe(a,d){let m=d.split(/\r?\n/).map(f=>{const r=f.indexOf("///");if(r>-1){const h=f.substring(r+3).trimStart();return h?f.replace(/^(\s*)([^\s].*)$/,`$1${h}`):void 0}return f}).filter(f=>typeof f<"u").join(`
274
+ `).trim();return a&&a!="raw"&&(m=Ye.highlight(m,{language:a}).value),Te("pre",[Te("code",m)])}function zi(a,d){const m=document.createElement("style");m.innerHTML=K().use(bi({prefix:a})).process(d).css,document.head.appendChild(m)}async function Hi(a,d=document.body){const m=Di(d);let f=0;Object.keys(a).sort().forEach(async r=>{const h=document.createElement("div");h.className="example-container",m.appendChild(h);const s=a[r].default;ji(h,s,f++)})}function Bi(a){const d=document.createElement("div");d.id="examples-container";const m=a.querySelector("#examples");return m?m.after(d):a.appendChild(d),d}function Di(a){return a.children?Bi(a):a}const Ui=`<h1 id="@cas-smartdesign/header-layout">@cas-smartdesign/header-layout</h1>
272
275
  <p>A layout element with sticky header.</p>
273
276
  <h2 id="usage">Usage</h2>
274
277
  <p>The layout provides two extension points via slot-elements. It can be used to add <code>header</code> and <code>content</code> with similar slot names.</p>
@@ -278,11 +281,4 @@ https://github.com/highlightjs/highlight.js/issues/2277`),A=h,v=f),w===void 0&&(
278
281
  <li>Add event listener to <code>header-switch</code> event and set a <code>minimumHeaderHeight</code> value. The event is fired when <code>shouldShowNormalHeader</code> flag changes therefore it is possible to change the only header element accordingly.</li>
279
282
  </ul>
280
283
  <p>In addition to the above mentioned approaches the element also dispatches <code>header-layout-scroll</code> CustomEvents with the <code>scrollTop</code> detail, allowing the consumer elements to do optimized layout changes.</p>
281
- <h2 id="examples">Examples</h2>
282
- `;document.querySelector("#markdown-container").innerHTML=na;Yo(Object.assign({"./examples/declarative/index.ts":$r,"./examples/manual-switch-content/index.ts":Fr,"./examples/manual-switch-style/index.ts":Vr}));
283
- function __vite__mapDeps(indexes) {
284
- if (!__vite__mapDeps.viteFileDeps) {
285
- __vite__mapDeps.viteFileDeps = []
286
- }
287
- return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
288
- }
284
+ `,$i=document.querySelector("#markdown-container");$i.innerHTML=Ui;Hi(Object.assign({"./examples/declarative/index.ts":Dr,"./examples/manual-switch-content/index.ts":Kr,"./examples/manual-switch-style/index.ts":ei}),document.querySelector(".markdown-body"));