@cas-smartdesign/lit-slider 7.0.4 → 7.0.6

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 r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function t(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(r){if(r.ep)return;r.ep=!0;const o=t(r);fetch(r.href,o)}})();const Yr="modulepreload",Qr=function(n,e){return new URL(n,e).href},Gi={},kt=function(e,t,i){let r=Promise.resolve();if(t&&t.length>0){const o=document.getElementsByTagName("link");r=Promise.all(t.map(s=>{if(s=Qr(s,i),s in Gi)return;Gi[s]=!0;const l=s.endsWith(".css"),a=l?'[rel="stylesheet"]':"";if(!!i)for(let h=o.length-1;h>=0;h--){const p=o[h];if(p.href===s&&(!l||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${a}`))return;const u=document.createElement("link");if(u.rel=l?"stylesheet":Yr,l||(u.as="script",u.crossOrigin=""),u.href=s,document.head.appendChild(u),l)return new Promise((h,p)=>{u.addEventListener("load",h),u.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${s}`)))})}))}return r.then(()=>e()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})},es=`<div id="basic-usage">
1
+ (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&i(r)}).observe(document,{childList:!0,subtree:!0});function t(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(s){if(s.ep)return;s.ep=!0;const o=t(s);fetch(s.href,o)}})();const Ys="modulepreload",Qs=function(n,e){return new URL(n,e).href},Gi={},kt=function(e,t,i){let s=Promise.resolve();if(t&&t.length>0){const o=document.getElementsByTagName("link");s=Promise.all(t.map(r=>{if(r=Qs(r,i),r in Gi)return;Gi[r]=!0;const l=r.endsWith(".css"),a=l?'[rel="stylesheet"]':"";if(!!i)for(let h=o.length-1;h>=0;h--){const p=o[h];if(p.href===r&&(!l||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${a}`))return;const u=document.createElement("link");if(u.rel=l?"stylesheet":Ys,l||(u.as="script",u.crossOrigin=""),u.href=r,document.head.appendChild(u),l)return new Promise((h,p)=>{u.addEventListener("load",h),u.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${r}`)))})}))}return s.then(()=>e()).catch(o=>{const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=o,window.dispatchEvent(r),!r.defaultPrevented)throw o})},er=`<div id="basic-usage">
2
2
  <div class="example-container">
3
3
  <span>Continuous (default) 0-1</span>
4
4
  <sd-lit-slider></sd-lit-slider>
@@ -42,8 +42,8 @@
42
42
  <div normal style="width: 120px; white-space: nowrap">normal: 0</div>
43
43
  </div>
44
44
  </div>
45
- `,ts=`<h3 id="basic-usage">Basic usage</h3>
46
- `,is=`sd-lit-slider {
45
+ `,tr=`<h3 id="basic-usage">Basic usage</h3>
46
+ `,ir=`sd-lit-slider {
47
47
  margin: 0 16px;
48
48
  width: 400px;
49
49
  }
@@ -58,7 +58,7 @@
58
58
  width: 280px;
59
59
  text-align: right;
60
60
  }
61
- `,ns=`import "@cas-smartdesign/lit-slider";
61
+ `,nr=`import "@cas-smartdesign/lit-slider";
62
62
  import Slider from "@cas-smartdesign/lit-slider";
63
63
 
64
64
  function bindSliderAndInput(slider: Slider, input: HTMLInputElement, immediate?: boolean) {
@@ -84,7 +84,7 @@ syncTestExample.querySelector("sd-lit-slider").addEventListener("immediate-value
84
84
  syncTestExample.querySelector("sd-lit-slider").addEventListener("value-change", (event: CustomEvent) => {
85
85
  syncTestExample.querySelector("[normal]").innerHTML = \`normal: \${event.detail.value}\`;
86
86
  });
87
- `,rs={mainContent:es,description:ts,css:is,initializer:{content:ns,type:"typescript",initialize:()=>kt(()=>import("./basic-usages.js"),__vite__mapDeps([]),import.meta.url)}},ss=Object.freeze(Object.defineProperty({__proto__:null,default:rs},Symbol.toStringTag,{value:"Module"})),os=`<div id="coloring-examples">
87
+ `,sr={mainContent:er,description:tr,css:ir,initializer:{content:nr,type:"typescript",initialize:()=>kt(()=>import("./basic-usages.js"),__vite__mapDeps([]),import.meta.url)}},rr=Object.freeze(Object.defineProperty({__proto__:null,default:sr},Symbol.toStringTag,{value:"Module"})),or=`<div id="coloring-examples">
88
88
  <div class="example-container" id="one-custom-color">
89
89
  <span>One custom color</span>
90
90
  <sd-lit-slider></sd-lit-slider>
@@ -106,8 +106,8 @@ syncTestExample.querySelector("sd-lit-slider").addEventListener("value-change",
106
106
  <sd-lit-slider></sd-lit-slider>
107
107
  </div>
108
108
  </div>
109
- `,ls=`<h3 id="coloring-examples">Coloring examples</h3>
110
- `,as=`sd-lit-slider {
109
+ `,lr=`<h3 id="coloring-examples">Coloring examples</h3>
110
+ `,ar=`sd-lit-slider {
111
111
  margin: 0 16px;
112
112
  width: 400px;
113
113
  }
@@ -122,7 +122,7 @@ syncTestExample.querySelector("sd-lit-slider").addEventListener("value-change",
122
122
  width: 280px;
123
123
  text-align: right;
124
124
  }
125
- `,cs=`import "@cas-smartdesign/lit-slider";
125
+ `,cr=`import "@cas-smartdesign/lit-slider";
126
126
  import Slider from "@cas-smartdesign/lit-slider";
127
127
 
128
128
  const oneCustomColorSlider = document.querySelector("#one-custom-color sd-lit-slider") as Slider;
@@ -159,7 +159,7 @@ rainbowSlider.colors = new Map([
159
159
  [5 / 6, "#FF7F00"],
160
160
  [1, "#FF0000"],
161
161
  ]);
162
- `,us={mainContent:os,description:ls,css:as,initializer:{content:cs,type:"typescript",initialize:()=>kt(()=>import("./coloring.js"),__vite__mapDeps([]),import.meta.url)}},ds=Object.freeze(Object.defineProperty({__proto__:null,default:us},Symbol.toStringTag,{value:"Module"})),hs=`<div id="editable-usage">
162
+ `,ur={mainContent:or,description:lr,css:ar,initializer:{content:cr,type:"typescript",initialize:()=>kt(()=>import("./coloring.js"),__vite__mapDeps([]),import.meta.url)}},dr=Object.freeze(Object.defineProperty({__proto__:null,default:ur},Symbol.toStringTag,{value:"Module"})),hr=`<div id="editable-usage">
163
163
  <div class="example-container">
164
164
  <span>Percentage (decimal)</span>
165
165
  <sd-lit-slider editable inputSuffix="%" min="0" max="100" step="1"></sd-lit-slider>
@@ -196,8 +196,8 @@ rainbowSlider.colors = new Map([
196
196
  style="--slider-suffix-width: 120px"></sd-lit-slider>
197
197
  </div>
198
198
  </div>
199
- `,ps=`<h3 id="examples-with-the-<code>editable</code>-setting">Examples with the <code>editable</code> setting</h3>
200
- `,fs=`sd-lit-slider {
199
+ `,pr=`<h3 id="examples-with-the-<code>editable</code>-setting">Examples with the <code>editable</code> setting</h3>
200
+ `,fr=`sd-lit-slider {
201
201
  margin: 0 16px;
202
202
  width: 400px;
203
203
  }
@@ -212,7 +212,7 @@ rainbowSlider.colors = new Map([
212
212
  width: 280px;
213
213
  text-align: right;
214
214
  }
215
- `,gs=`import "@cas-smartdesign/lit-slider";
215
+ `,mr=`import "@cas-smartdesign/lit-slider";
216
216
  import Slider from "@cas-smartdesign/lit-slider";
217
217
 
218
218
  function bindSliderAndInput(slider: Slider, input: HTMLInputElement, immediate?: boolean) {
@@ -238,7 +238,7 @@ syncTestExample.querySelector("sd-lit-slider").addEventListener("immediate-value
238
238
  syncTestExample.querySelector("sd-lit-slider").addEventListener("value-change", (event: CustomEvent) => {
239
239
  syncTestExample.querySelector("[normal]").innerHTML = \`normal: \${event.detail.value}\`;
240
240
  });
241
- `,ms={mainContent:hs,description:ps,css:fs,initializer:{content:gs,type:"typescript",initialize:()=>kt(()=>import("./editable-usages.js"),__vite__mapDeps([]),import.meta.url)}},bs=Object.freeze(Object.defineProperty({__proto__:null,default:ms},Symbol.toStringTag,{value:"Module"})),vs=`<div id="validation-examples">
241
+ `,gr={mainContent:hr,description:pr,css:fr,initializer:{content:mr,type:"typescript",initialize:()=>kt(()=>import("./editable-usages.js"),__vite__mapDeps([]),import.meta.url)}},br=Object.freeze(Object.defineProperty({__proto__:null,default:gr},Symbol.toStringTag,{value:"Module"})),vr=`<div id="validation-examples">
242
242
  <div class="example-container" validate-it>
243
243
  <span>Default validation level</span>
244
244
  <sd-lit-slider></sd-lit-slider>
@@ -256,8 +256,8 @@ syncTestExample.querySelector("sd-lit-slider").addEventListener("value-change",
256
256
  <sd-lit-slider validationlevel="error"></sd-lit-slider>
257
257
  </div>
258
258
  </div>
259
- `,ys=`<h3 id="validation-examples">Validation examples</h3>
260
- `,ws=`sd-lit-slider {
259
+ `,yr=`<h3 id="validation-examples">Validation examples</h3>
260
+ `,wr=`sd-lit-slider {
261
261
  margin: 0 16px;
262
262
  width: 400px;
263
263
  }
@@ -272,7 +272,7 @@ syncTestExample.querySelector("sd-lit-slider").addEventListener("value-change",
272
272
  width: 280px;
273
273
  text-align: right;
274
274
  }
275
- `,xs=`import "@cas-smartdesign/lit-slider";
275
+ `,xr=`import "@cas-smartdesign/lit-slider";
276
276
  import Slider from "@cas-smartdesign/lit-slider";
277
277
 
278
278
  document.querySelectorAll("[validate-it] sd-lit-slider").forEach((slider: Slider) => {
@@ -290,57 +290,60 @@ document.querySelectorAll("[validate-it] sd-lit-slider").forEach((slider: Slider
290
290
  validate(event.detail.value);
291
291
  });
292
292
  });
293
- `,Es={mainContent:vs,description:ys,css:ws,initializer:{content:xs,type:"typescript",initialize:()=>kt(()=>import("./validation.js"),__vite__mapDeps([]),import.meta.url)}},_s=Object.freeze(Object.defineProperty({__proto__:null,default:Es},Symbol.toStringTag,{value:"Module"}));const bt=window,Si=bt.ShadowRoot&&(bt.ShadyCSS===void 0||bt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$i=Symbol(),Zi=new WeakMap;let Tn=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==$i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Si&&e===void 0){const i=t!==void 0&&t.length===1;i&&(e=Zi.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Zi.set(t,e))}return e}toString(){return this.cssText}};const Ot=n=>new Tn(typeof n=="string"?n:n+"",void 0,$i),Ai=(n,...e)=>{const t=n.length===1?n[0]:e.reduce((i,r,o)=>i+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+n[o+1],n[0]);return new Tn(t,n,$i)},Ss=(n,e)=>{Si?n.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{const i=document.createElement("style"),r=bt.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=t.cssText,n.appendChild(i)})},Ki=Si?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return Ot(t)})(n):n;var Wt;const wt=window,Xi=wt.trustedTypes,$s=Xi?Xi.emptyScript:"",Ji=wt.reactiveElementPolyfillSupport,oi={toAttribute(n,e){switch(e){case Boolean:n=n?$s:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let t=n;switch(e){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch{t=null}}return t}},In=(n,e)=>e!==n&&(e==e||n==n),Gt={attribute:!0,type:String,converter:oi,reflect:!1,hasChanged:In},li="finalized";let $e=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,i)=>{const r=this._$Ep(i,t);r!==void 0&&(this._$Ev.set(r,i),e.push(r))}),e}static createProperty(e,t=Gt){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i=typeof e=="symbol"?Symbol():"__"+e,r=this.getPropertyDescriptor(e,i,t);r!==void 0&&Object.defineProperty(this.prototype,e,r)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(r){const o=this[e];this[t]=r,this.requestUpdate(e,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Gt}static finalize(){if(this.hasOwnProperty(li))return!1;this[li]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const r of i)this.createProperty(r,t[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const r of i)t.unshift(Ki(r))}else e!==void 0&&t.push(Ki(e));return t}static _$Ep(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,i;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)===null||i===void 0||i.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Ss(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var i;return(i=t.hostConnected)===null||i===void 0?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var i;return(i=t.hostDisconnected)===null||i===void 0?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t,i=Gt){var r;const o=this.constructor._$Ep(e,i);if(o!==void 0&&i.reflect===!0){const s=(((r=i.converter)===null||r===void 0?void 0:r.toAttribute)!==void 0?i.converter:oi).toAttribute(t,i.type);this._$El=e,s==null?this.removeAttribute(o):this.setAttribute(o,s),this._$El=null}}_$AK(e,t){var i;const r=this.constructor,o=r._$Ev.get(e);if(o!==void 0&&this._$El!==o){const s=r.getPropertyOptions(o),l=typeof s.converter=="function"?{fromAttribute:s.converter}:((i=s.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?s.converter:oi;this._$El=o,this[o]=l.fromAttribute(t,s.type),this._$El=null}}requestUpdate(e,t,i){let r=!0;e!==void 0&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||In)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),i.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,i))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((r,o)=>this[o]=r),this._$Ei=void 0);let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var o;return(o=r.hostUpdate)===null||o===void 0?void 0:o.call(r)}),this.update(i)):this._$Ek()}catch(r){throw t=!1,this._$Ek(),r}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(i=>{var r;return(r=i.hostUpdated)===null||r===void 0?void 0:r.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,i)=>this._$EO(i,this[i],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};$e[li]=!0,$e.elementProperties=new Map,$e.elementStyles=[],$e.shadowRootOptions={mode:"open"},Ji==null||Ji({ReactiveElement:$e}),((Wt=wt.reactiveElementVersions)!==null&&Wt!==void 0?Wt:wt.reactiveElementVersions=[]).push("1.6.3");var Zt;const xt=window,Ae=xt.trustedTypes,Yi=Ae?Ae.createPolicy("lit-html",{createHTML:n=>n}):void 0,ai="$lit$",oe=`lit$${(Math.random()+"").slice(9)}$`,Ln="?"+oe,As=`<${Ln}>`,me=document,Be=()=>me.createComment(""),Ue=n=>n===null||typeof n!="object"&&typeof n!="function",jn=Array.isArray,Cs=n=>jn(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",Kt=`[
293
+ `,Er={mainContent:vr,description:yr,css:wr,initializer:{content:xr,type:"typescript",initialize:()=>kt(()=>import("./validation.js"),__vite__mapDeps([]),import.meta.url)}},_r=Object.freeze(Object.defineProperty({__proto__:null,default:Er},Symbol.toStringTag,{value:"Module"}));const bt=window,Si=bt.ShadowRoot&&(bt.ShadyCSS===void 0||bt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$i=Symbol(),Zi=new WeakMap;let Tn=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==$i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Si&&e===void 0){const i=t!==void 0&&t.length===1;i&&(e=Zi.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Zi.set(t,e))}return e}toString(){return this.cssText}};const Ot=n=>new Tn(typeof n=="string"?n:n+"",void 0,$i),Ai=(n,...e)=>{const t=n.length===1?n[0]:e.reduce((i,s,o)=>i+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+n[o+1],n[0]);return new Tn(t,n,$i)},Sr=(n,e)=>{Si?n.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{const i=document.createElement("style"),s=bt.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=t.cssText,n.appendChild(i)})},Ki=Si?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return Ot(t)})(n):n;var Wt;const wt=window,Xi=wt.trustedTypes,$r=Xi?Xi.emptyScript:"",Ji=wt.reactiveElementPolyfillSupport,oi={toAttribute(n,e){switch(e){case Boolean:n=n?$r:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let t=n;switch(e){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch{t=null}}return t}},In=(n,e)=>e!==n&&(e==e||n==n),Gt={attribute:!0,type:String,converter:oi,reflect:!1,hasChanged:In},li="finalized";let $e=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,i)=>{const s=this._$Ep(i,t);s!==void 0&&(this._$Ev.set(s,i),e.push(s))}),e}static createProperty(e,t=Gt){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i=typeof e=="symbol"?Symbol():"__"+e,s=this.getPropertyDescriptor(e,i,t);s!==void 0&&Object.defineProperty(this.prototype,e,s)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(s){const o=this[e];this[t]=s,this.requestUpdate(e,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Gt}static finalize(){if(this.hasOwnProperty(li))return!1;this[li]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of i)this.createProperty(s,t[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const s of i)t.unshift(Ki(s))}else e!==void 0&&t.push(Ki(e));return t}static _$Ep(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,i;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)===null||i===void 0||i.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Sr(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var i;return(i=t.hostConnected)===null||i===void 0?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var i;return(i=t.hostDisconnected)===null||i===void 0?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EO(e,t,i=Gt){var s;const o=this.constructor._$Ep(e,i);if(o!==void 0&&i.reflect===!0){const r=(((s=i.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?i.converter:oi).toAttribute(t,i.type);this._$El=e,r==null?this.removeAttribute(o):this.setAttribute(o,r),this._$El=null}}_$AK(e,t){var i;const s=this.constructor,o=s._$Ev.get(e);if(o!==void 0&&this._$El!==o){const r=s.getPropertyOptions(o),l=typeof r.converter=="function"?{fromAttribute:r.converter}:((i=r.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?r.converter:oi;this._$El=o,this[o]=l.fromAttribute(t,r.type),this._$El=null}}requestUpdate(e,t,i){let s=!0;e!==void 0&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||In)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),i.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,i))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((s,o)=>this[o]=s),this._$Ei=void 0);let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),(e=this._$ES)===null||e===void 0||e.forEach(s=>{var o;return(o=s.hostUpdate)===null||o===void 0?void 0:o.call(s)}),this.update(i)):this._$Ek()}catch(s){throw t=!1,this._$Ek(),s}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(i=>{var s;return(s=i.hostUpdated)===null||s===void 0?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,i)=>this._$EO(i,this[i],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};$e[li]=!0,$e.elementProperties=new Map,$e.elementStyles=[],$e.shadowRootOptions={mode:"open"},Ji==null||Ji({ReactiveElement:$e}),((Wt=wt.reactiveElementVersions)!==null&&Wt!==void 0?Wt:wt.reactiveElementVersions=[]).push("1.6.3");var Zt;const xt=window,Ae=xt.trustedTypes,Yi=Ae?Ae.createPolicy("lit-html",{createHTML:n=>n}):void 0,ai="$lit$",oe=`lit$${(Math.random()+"").slice(9)}$`,Ln="?"+oe,Ar=`<${Ln}>`,ge=document,Ue=()=>ge.createComment(""),Be=n=>n===null||typeof n!="object"&&typeof n!="function",jn=Array.isArray,Cr=n=>jn(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",Kt=`[
294
294
  \f\r]`,Ie=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Qi=/-->/g,en=/>/g,pe=RegExp(`>|${Kt}(?:([^\\s"'>=/]+)(${Kt}*=${Kt}*(?:[^
295
- \f\r"'\`<>=]|("|')|))|$)`,"g"),tn=/'/g,nn=/"/g,Dn=/^(?:script|style|textarea|title)$/i,ks=n=>(e,...t)=>({_$litType$:n,strings:e,values:t}),G=ks(1),Ce=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),rn=new WeakMap,fe=me.createTreeWalker(me,129,null,!1);function zn(n,e){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Yi!==void 0?Yi.createHTML(e):e}const Os=(n,e)=>{const t=n.length-1,i=[];let r,o=e===2?"<svg>":"",s=Ie;for(let l=0;l<t;l++){const a=n[l];let c,u,h=-1,p=0;for(;p<a.length&&(s.lastIndex=p,u=s.exec(a),u!==null);)p=s.lastIndex,s===Ie?u[1]==="!--"?s=Qi:u[1]!==void 0?s=en:u[2]!==void 0?(Dn.test(u[2])&&(r=RegExp("</"+u[2],"g")),s=pe):u[3]!==void 0&&(s=pe):s===pe?u[0]===">"?(s=r??Ie,h=-1):u[1]===void 0?h=-2:(h=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?pe:u[3]==='"'?nn:tn):s===nn||s===tn?s=pe:s===Qi||s===en?s=Ie:(s=pe,r=void 0);const x=s===pe&&n[l+1].startsWith("/>")?" ":"";o+=s===Ie?a+As:h>=0?(i.push(c),a.slice(0,h)+ai+a.slice(h)+oe+x):a+oe+(h===-2?(i.push(void 0),l):x)}return[zn(n,o+(n[t]||"<?>")+(e===2?"</svg>":"")),i]};class Fe{constructor({strings:e,_$litType$:t},i){let r;this.parts=[];let o=0,s=0;const l=e.length-1,a=this.parts,[c,u]=Os(e,t);if(this.el=Fe.createElement(c,i),fe.currentNode=this.el.content,t===2){const h=this.el.content,p=h.firstChild;p.remove(),h.append(...p.childNodes)}for(;(r=fe.nextNode())!==null&&a.length<l;){if(r.nodeType===1){if(r.hasAttributes()){const h=[];for(const p of r.getAttributeNames())if(p.endsWith(ai)||p.startsWith(oe)){const x=u[s++];if(h.push(p),x!==void 0){const k=r.getAttribute(x.toLowerCase()+ai).split(oe),E=/([.?@])?(.*)/.exec(x);a.push({type:1,index:o,name:E[2],strings:k,ctor:E[1]==="."?Ms:E[1]==="?"?Ps:E[1]==="@"?Ts:Rt})}else a.push({type:6,index:o})}for(const p of h)r.removeAttribute(p)}if(Dn.test(r.tagName)){const h=r.textContent.split(oe),p=h.length-1;if(p>0){r.textContent=Ae?Ae.emptyScript:"";for(let x=0;x<p;x++)r.append(h[x],Be()),fe.nextNode(),a.push({type:2,index:++o});r.append(h[p],Be())}}}else if(r.nodeType===8)if(r.data===Ln)a.push({type:2,index:o});else{let h=-1;for(;(h=r.data.indexOf(oe,h+1))!==-1;)a.push({type:7,index:o}),h+=oe.length-1}o++}}static createElement(e,t){const i=me.createElement("template");return i.innerHTML=e,i}}function ke(n,e,t=n,i){var r,o,s,l;if(e===Ce)return e;let a=i!==void 0?(r=t._$Co)===null||r===void 0?void 0:r[i]:t._$Cl;const c=Ue(e)?void 0:e._$litDirective$;return(a==null?void 0:a.constructor)!==c&&((o=a==null?void 0:a._$AO)===null||o===void 0||o.call(a,!1),c===void 0?a=void 0:(a=new c(n),a._$AT(n,t,i)),i!==void 0?((s=(l=t)._$Co)!==null&&s!==void 0?s:l._$Co=[])[i]=a:t._$Cl=a),a!==void 0&&(e=ke(n,a._$AS(n,e.values),a,i)),e}class Rs{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:r}=this._$AD,o=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:me).importNode(i,!0);fe.currentNode=o;let s=fe.nextNode(),l=0,a=0,c=r[0];for(;c!==void 0;){if(l===c.index){let u;c.type===2?u=new Ye(s,s.nextSibling,this,e):c.type===1?u=new c.ctor(s,c.name,c.strings,this,e):c.type===6&&(u=new Is(s,this,e)),this._$AV.push(u),c=r[++a]}l!==(c==null?void 0:c.index)&&(s=fe.nextNode(),l++)}return fe.currentNode=me,o}v(e){let t=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class Ye{constructor(e,t,i,r){var o;this.type=2,this._$AH=P,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=r,this._$Cp=(o=r==null?void 0:r.isConnected)===null||o===void 0||o}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ke(this,e,t),Ue(e)?e===P||e==null||e===""?(this._$AH!==P&&this._$AR(),this._$AH=P):e!==this._$AH&&e!==Ce&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Cs(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==P&&Ue(this._$AH)?this._$AA.nextSibling.data=e:this.$(me.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:r}=e,o=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=Fe.createElement(zn(r.h,r.h[0]),this.options)),r);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===o)this._$AH.v(i);else{const s=new Rs(o,this),l=s.u(this.options);s.v(i),this.$(l),this._$AH=s}}_$AC(e){let t=rn.get(e.strings);return t===void 0&&rn.set(e.strings,t=new Fe(e)),t}T(e){jn(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,r=0;for(const o of e)r===t.length?t.push(i=new Ye(this.k(Be()),this.k(Be()),this,this.options)):i=t[r],i._$AI(o),r++;r<t.length&&(this._$AR(i&&i._$AB.nextSibling,r),t.length=r)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,t);e&&e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){var t;this._$AM===void 0&&(this._$Cp=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}class Rt{constructor(e,t,i,r,o){this.type=1,this._$AH=P,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=P}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,r){const o=this.strings;let s=!1;if(o===void 0)e=ke(this,e,t,0),s=!Ue(e)||e!==this._$AH&&e!==Ce,s&&(this._$AH=e);else{const l=e;let a,c;for(e=o[0],a=0;a<o.length-1;a++)c=ke(this,l[i+a],t,a),c===Ce&&(c=this._$AH[a]),s||(s=!Ue(c)||c!==this._$AH[a]),c===P?e=P:e!==P&&(e+=(c??"")+o[a+1]),this._$AH[a]=c}s&&!r&&this.j(e)}j(e){e===P?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Ms extends Rt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===P?void 0:e}}const Ns=Ae?Ae.emptyScript:"";class Ps extends Rt{constructor(){super(...arguments),this.type=4}j(e){e&&e!==P?this.element.setAttribute(this.name,Ns):this.element.removeAttribute(this.name)}}let Ts=class extends Rt{constructor(e,t,i,r,o){super(e,t,i,r,o),this.type=5}_$AI(e,t=this){var i;if((e=(i=ke(this,e,t,0))!==null&&i!==void 0?i:P)===Ce)return;const r=this._$AH,o=e===P&&r!==P||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,s=e!==P&&(r===P||o);o&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&i!==void 0?i:this.element,e):this._$AH.handleEvent(e)}};class Is{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){ke(this,e)}}const sn=xt.litHtmlPolyfillSupport;sn==null||sn(Fe,Ye),((Zt=xt.litHtmlVersions)!==null&&Zt!==void 0?Zt:xt.litHtmlVersions=[]).push("2.8.0");const Ls=(n,e,t)=>{var i,r;const o=(i=t==null?void 0:t.renderBefore)!==null&&i!==void 0?i:e;let s=o._$litPart$;if(s===void 0){const l=(r=t==null?void 0:t.renderBefore)!==null&&r!==void 0?r:null;o._$litPart$=s=new Ye(e.insertBefore(Be(),l),l,void 0,t??{})}return s._$AI(n),s};var Xt,Jt;class ce extends $e{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ls(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return Ce}}ce.finalized=!0,ce._$litElement$=!0,(Xt=globalThis.litElementHydrateSupport)===null||Xt===void 0||Xt.call(globalThis,{LitElement:ce});const on=globalThis.litElementPolyfillSupport;on==null||on({LitElement:ce});((Jt=globalThis.litElementVersions)!==null&&Jt!==void 0?Jt:globalThis.litElementVersions=[]).push("3.3.3");const js=(n,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,n)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,n)}},Ds=(n,e,t)=>{e.constructor.createProperty(t,n)};function _(n){return(e,t)=>t!==void 0?Ds(n,e,t):js(n,e)}const He="a-f\\d",zs=`#?[${He}]{3}[${He}]?`,Bs=`#?[${He}]{6}([${He}]{2})?`,Us=new RegExp(`[^#${He}]`,"gi"),Fs=new RegExp(`^${zs}$|^${Bs}$`,"i");function Hs(n,e={}){if(typeof n!="string"||Us.test(n)||!Fs.test(n))throw new TypeError("Expected a valid hex string");n=n.replace(/^#/,"");let t=1;n.length===8&&(t=Number.parseInt(n.slice(6,8),16)/255,n=n.slice(0,6)),n.length===4&&(t=Number.parseInt(n.slice(3,4).repeat(2),16)/255,n=n.slice(0,3)),n.length===3&&(n=n[0]+n[0]+n[1]+n[1]+n[2]+n[2]);const i=Number.parseInt(n,16),r=i>>16,o=i>>8&255,s=i&255,l=typeof e.alpha=="number"?e.alpha:t;if(e.format==="array")return[r,o,s,l];if(e.format==="css"){const a=l===1?"":` / ${Number((l*100).toFixed(2))}%`;return`rgb(${r} ${o} ${s}${a})`}return{red:r,green:o,blue:s,alpha:l}}class Vs{constructor(){this._rgbaColors=new Map,this._originalColors=new Map}get colors(){return this._originalColors}set colors(e){if(this._rgbaColors.clear(),this._originalColors=e,e&&e.size){if(Array.from(e.keys()).find(r=>r<0||r>1))throw Error("The keys of the colors must represent the relative value where the color is fully applied.");e.forEach((r,o)=>{const s=this.convertFromRGBAString(r)||this.convertFromHex(r);if(Object.keys(s).length===0&&s.constructor===Object)throw Error(`Cannot convert color: ${r} to rgba-color`);this._rgbaColors.set(o,s)});const i=Array.from(this._rgbaColors.entries()).sort();this._rgbaColors=new Map(i)}}blend(e){if(!this._rgbaColors.size)throw Error("It is not possible to blend without a color list.");let t,i;for(const o of this._rgbaColors)if(t||(t=o),o[0]<e)t=o;else if(o[0]===e){t=i=o;break}else{i=o;break}i||(i=t);const r=i[0]-t[0];return r?this.blendColors(t[1],i[1],(e-t[0])/r):this.convertToRGBAString(t[1])}blendColors(e,t,i){return this.convertToRGBAString({red:Math.round(e.red+(t.red-e.red)*i),green:Math.round(e.green+(t.green-e.green)*i),blue:Math.round(e.blue+(t.blue-e.blue)*i),alpha:e.alpha+(t.alpha-e.alpha)*i})}convertFromHex(e){const t=Hs(e);return t.alpha>1&&(t.alpha/=255),t}convertFromRGBAString(e){const t=e.match(/rgba?\((\d{1,3}), ?(\d{1,3}), ?(\d{1,3})\)?(?:, ?(\d(?:\.\d?))\))?/);return t?{red:parseInt(t[1],10),green:parseInt(t[2],10),blue:parseInt(t[3],10),alpha:parseInt(t[4],10)||1}:null}transparentize(e,t){return this.convertToRGBAString(this.convertFromRGBAString(e),t)}convertToRGBAString(e,t){return`rgba(${e.red},${e.green},${e.blue},${t||e.alpha})`}}const se=n=>n??P,qs=":host{display:inline-block;font-size:13px;line-height:20px;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;color:#111;contain:content}:host([hidden]){display:none!important}:host([level=warn i]){color:#555}:host([level=suggest i]){color:#bf8800}:host([level=error i]){color:#cc0017}:host([level=warn]){color:#555}:host([level=suggest]){color:#bf8800}:host([level=error]){color:#cc0017}.icon{height:12px;width:12px;padding-right:4px;margin-bottom:-1px}",Ws="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cstyle%20id='style3'%3e%20.st0{fill:%23fff}.st1{fill:%23c00}%20%3c/style%3e%3cg%20id='g5'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20id='path9'/%3e%3c/g%3e%3cg%20id='g11'%3e%3cpath%20class='st0'%20id='rect13'%20d='M5.5%202.5h1v4h-1z'/%3e%3cpath%20class='st1'%20d='M6%203v3-3m1-1H5v5h2V2z'%20id='path15'/%3e%3c/g%3e%3cg%20id='g17'%3e%3cpath%20class='st0'%20id='rect19'%20d='M5.5%208.5h1v1h-1z'/%3e%3cpath%20class='st1'%20id='polygon21'%20d='M7%208H5v2h2V8z'/%3e%3c/g%3e%3c/svg%3e",Gs="data:image/svg+xml,%3csvg%20id='Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cstyle%3e%20.st0{fill:%23bf8800}%20%3c/style%3e%3cpath%20class='st0'%20d='M12%20.8l11%2019.8v1.3H1v-1.3L12%20.8zm.8-.6h-1.6L0%2020v3h24v-3L12.8.2z'/%3e%3cpath%20class='st0'%20d='M11%208h2v8h-2zm0%2010h2v2h-2z'/%3e%3c/svg%3e",Zs="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20fill='%23555'/%3e%3cpath%20d='M6%209V6v3m-1%201h2V5H5v5zm2-8H5v2h2z'%20class='st1'%20fill='%23555'/%3e%3c/svg%3e";var Ks=Object.defineProperty,Xs=Object.getOwnPropertyDescriptor,Ci=(n,e,t,i)=>{for(var r=i>1?void 0:i?Xs(e,t):e,o=n.length-1,s;o>=0;o--)(s=n[o])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Ks(e,t,r),r},_e;const Ve=(_e=class extends ce{static parseLevel(n){if(n){const e=Object.keys(qe).find(t=>t.toLowerCase()===n.toLowerCase());return e&&qe[e]}}static get styles(){return[Ai`
296
- ${Ot(qs)}
297
- `]}render(){return G`${this.iconToUse&&G`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(n){return n.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(n)}get iconForLevel(){switch(_e.parseLevel(this.level)){case"warn":return Zs;case"suggest":return Gs;case"error":return Ws;default:return null}}},_e.ID="sd-field-validation-message",_e.levelConverter={fromAttribute(n){return _e.parseLevel(n)},toAttribute(n){return n&&n.toLowerCase()}},_e);Ci([_({type:String,attribute:!0})],Ve.prototype,"message",2);Ci([_({type:String,attribute:!0})],Ve.prototype,"icon",2);Ci([_({converter:Ve.levelConverter,reflect:!0})],Ve.prototype,"level",2);let Yt=Ve;var qe=(n=>(n.Warn="warn",n.Suggest="suggest",n.Error="error",n))(qe||{});customElements.get(Yt.ID)||customElements.define(Yt.ID,Yt);const Js=":host{display:inline-flex;position:relative;cursor:text;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;font-size:16px;color:#111;contain:layout style;flex-direction:column}:host([hidden]),:host([type=hidden]){display:none!important}:host([effective-disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([effective-disabled]) .unfocused-line,:host([effective-disabled]) .focused-line{border-bottom-style:dashed}:host(:not([effective-disabled]):focus) .focused-line,:host(:not([effective-disabled])[focused]) .focused-line{transform:none;transition:transform .25s}:host(:not([effective-disabled]):focus) .label.float,:host(:not([effective-disabled])[focused]) .label.float{color:var(--sd-input-focused-color, #1467ba)}:host([inactive]) .input{pointer-events:none}:host([effective-disabled]:focus),:host([effective-disabled][focused]){box-shadow:0 0 0 1px #111}:host(:not([effective-disabled])[validationlevel]) .focused-line{transform:none;transition:transform .25s}:host([validationlevel=warn i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn i]) .label,:host([validationlevel=warn i]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest i]) .label,:host([validationlevel=suggest i]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error i]) .label,:host([validationlevel=error i]) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}:host([validationlevel=warn]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn]) .label,:host([validationlevel=warn]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest]) .label,:host([validationlevel=suggest]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error]) .label,:host([validationlevel=error]) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}.validation-message-wrapper{position:relative}.validation-message{position:absolute;left:0;right:0}.label.float{transform:translateY(-75%) scale(.75);width:133%}.label:not(.float){max-width:100%}.floated-label-placeholder{height:20px;width:100%}.label{position:absolute;top:0;left:0;line-height:24px;pointer-events:none;color:var(--sd-input-color, #767676);transition:transform .25s,width .25s;transform-origin:left top}.input-wrapper{position:relative;display:flex;flex-direction:row;align-items:center;background-color:var(--input-wrapper-background-color)}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-wrapper{flex-direction:column;align-items:baseline}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-container{width:100%}:host([extended-prefix]:not(:focus-within)) .input-container,:host([extended-prefix][effective-disabled]) .input-container{width:0px}.input-container{line-height:var(--sd-input-line-height, 24px);flex:1 1 auto}.input{width:100%;background:var(--sd-input-background, transparent);font-family:inherit;font-size:inherit;text-align:inherit;color:inherit;border:none;outline:none;resize:none;padding-left:0;padding-right:0}.input:-webkit-autofill{animation-name:onautofillstart}.input:not(:-webkit-autofill){animation-name:onautofillcancel}@keyframes onautofillstart{0%{outline:none}}@keyframes onautofillcancel{0%{outline:none}}.label,input.input,.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.input::-ms-clear{display:none}.input::placeholder{color:var(--sd-input-color, #767676)}.input:-ms-input-placeholder{color:var(--sd-input-color, #767676)}.input::-ms-input-placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;top:0;right:0;bottom:0;left:0}.unfocused-line{border-bottom:1px solid var(--sd-input-underline-color, #959595)}.focused-line{border-bottom:2px solid var(--sd-input-focused-color, #1467ba);transform-origin:center center;transform:scale3d(0,1,1)}.prefix,.suffix{display:flex;flex-wrap:nowrap}.prefix ::slotted(*),.suffix ::slotted(*){display:flex}";var Ys=Object.defineProperty,Qs=Object.getOwnPropertyDescriptor,I=(n,e,t,i)=>{for(var r=i>1?void 0:i?Qs(e,t):e,o=n.length-1,s;o>=0;o--)(s=n[o])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&Ys(e,t,r),r};const eo="sd-lit-input",ln="delegatesFocus"in window.ShadowRoot.prototype;let to=0;var Y;const T=(Y=class extends ce{constructor(){super(),this.rows=1,this.effectiveDisabled=!1,this.type="text",this.autocomplete="off";const n=to++;this._validationMessageId=Y.ID+"_message_"+n,this._inputId=Y.ID+"_input_"+n,this.attachInternals&&!this.activeShadyDOM&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabIndex")||(this.tabIndex=0)}firstUpdated(n){super.firstUpdated(n),this.initAutocompleted(this.inputElement),this.updateInitialValue(),this.hasAttribute("disabled")&&(this.disabled=!0),this.inputElement.oninput=e=>{this.autocompleted=e.inputType==="insertReplacementText"||!("data"in e),this.currentText=this.inputElement.value,this.fireValueChange(!0)},this.inputElement.onchange=()=>this.fireValueChange(),ln||(this.inputElement.onfocus=()=>this.setAttribute("focused",""),this.inputElement.onblur=()=>this.removeAttribute("focused"),this.addEventListener("focus",e=>{e.target===this&&this.inputElement.focus()})),this.addEventListener("keydown",e=>{var t,i;e.key=="Enter"&&((i=(t=this._internals)==null?void 0:t.form)==null||i.requestSubmit())}),this._initialized=!0}initAutocompleted(n){const e=t=>{/^onautofillstart(-sd-lit-input-\d+|\s?)$/.test(t.animationName)?this.autocompleted=!0:/^onautofillcancel(-sd-lit-input-\d+|\s?)$/.test(t.animationName)&&(this.autocompleted=!1)};this.activeShadyDOM?(this._needsAutocompletedCheck=!0,this.activeShadyDOM.nativeMethods.addEventListener.call(n,"animationstart",e)):n.addEventListener("animationstart",e)}get activeShadyDOM(){const n=window.ShadyDOM;return n&&n.inUse?n:null}updateInitialValue(){typeof this.currentText<"u"?this.value=this.currentText:this.value=this.getAttribute("value"),this.value&&(this.currentText=this.inputElement.value),this._initialValue=this.value}get disabled(){return this.hasAttribute("disabled")}set disabled(n){n?this.setAttribute("disabled",""):this.removeAttribute("disabled"),this._internals||(this.effectiveDisabled=n)}get inputElement(){return this.shadowRoot&&!this._inputElement&&(this._inputElement=this.shadowRoot.querySelector(".input")),this._inputElement}get value(){return this.inputElement&&this.inputElement.value}set value(n){this.currentText=n||"",this.inputElement&&(this.inputElement.value=this.currentText),this.setFormValue(this.currentText)}get selectionStart(){return this.inputElement?this.inputElement.selectionStart:0}focus(){this.inputElement?this.inputElement.focus():super.focus()}select(){this.inputElement&&this.inputElement.select()}setSelectionRange(n,e){this.updateComplete.then(()=>{this.inputElement&&this.inputElement.setSelectionRange(n,e)})}static get styles(){return[Ai`
298
- ${Ot(Js)}
299
- `]}render(){let n;return this.rows===1?n=G`
295
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),tn=/'/g,nn=/"/g,Dn=/^(?:script|style|textarea|title)$/i,kr=n=>(e,...t)=>({_$litType$:n,strings:e,values:t}),Z=kr(1),Ce=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),sn=new WeakMap,fe=ge.createTreeWalker(ge,129,null,!1);function zn(n,e){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Yi!==void 0?Yi.createHTML(e):e}const Or=(n,e)=>{const t=n.length-1,i=[];let s,o=e===2?"<svg>":"",r=Ie;for(let l=0;l<t;l++){const a=n[l];let c,u,h=-1,p=0;for(;p<a.length&&(r.lastIndex=p,u=r.exec(a),u!==null);)p=r.lastIndex,r===Ie?u[1]==="!--"?r=Qi:u[1]!==void 0?r=en:u[2]!==void 0?(Dn.test(u[2])&&(s=RegExp("</"+u[2],"g")),r=pe):u[3]!==void 0&&(r=pe):r===pe?u[0]===">"?(r=s??Ie,h=-1):u[1]===void 0?h=-2:(h=r.lastIndex-u[2].length,c=u[1],r=u[3]===void 0?pe:u[3]==='"'?nn:tn):r===nn||r===tn?r=pe:r===Qi||r===en?r=Ie:(r=pe,s=void 0);const x=r===pe&&n[l+1].startsWith("/>")?" ":"";o+=r===Ie?a+Ar:h>=0?(i.push(c),a.slice(0,h)+ai+a.slice(h)+oe+x):a+oe+(h===-2?(i.push(void 0),l):x)}return[zn(n,o+(n[t]||"<?>")+(e===2?"</svg>":"")),i]};class Fe{constructor({strings:e,_$litType$:t},i){let s;this.parts=[];let o=0,r=0;const l=e.length-1,a=this.parts,[c,u]=Or(e,t);if(this.el=Fe.createElement(c,i),fe.currentNode=this.el.content,t===2){const h=this.el.content,p=h.firstChild;p.remove(),h.append(...p.childNodes)}for(;(s=fe.nextNode())!==null&&a.length<l;){if(s.nodeType===1){if(s.hasAttributes()){const h=[];for(const p of s.getAttributeNames())if(p.endsWith(ai)||p.startsWith(oe)){const x=u[r++];if(h.push(p),x!==void 0){const k=s.getAttribute(x.toLowerCase()+ai).split(oe),_=/([.?@])?(.*)/.exec(x);a.push({type:1,index:o,name:_[2],strings:k,ctor:_[1]==="."?Mr:_[1]==="?"?Pr:_[1]==="@"?Tr:Rt})}else a.push({type:6,index:o})}for(const p of h)s.removeAttribute(p)}if(Dn.test(s.tagName)){const h=s.textContent.split(oe),p=h.length-1;if(p>0){s.textContent=Ae?Ae.emptyScript:"";for(let x=0;x<p;x++)s.append(h[x],Ue()),fe.nextNode(),a.push({type:2,index:++o});s.append(h[p],Ue())}}}else if(s.nodeType===8)if(s.data===Ln)a.push({type:2,index:o});else{let h=-1;for(;(h=s.data.indexOf(oe,h+1))!==-1;)a.push({type:7,index:o}),h+=oe.length-1}o++}}static createElement(e,t){const i=ge.createElement("template");return i.innerHTML=e,i}}function ke(n,e,t=n,i){var s,o,r,l;if(e===Ce)return e;let a=i!==void 0?(s=t._$Co)===null||s===void 0?void 0:s[i]:t._$Cl;const c=Be(e)?void 0:e._$litDirective$;return(a==null?void 0:a.constructor)!==c&&((o=a==null?void 0:a._$AO)===null||o===void 0||o.call(a,!1),c===void 0?a=void 0:(a=new c(n),a._$AT(n,t,i)),i!==void 0?((r=(l=t)._$Co)!==null&&r!==void 0?r:l._$Co=[])[i]=a:t._$Cl=a),a!==void 0&&(e=ke(n,a._$AS(n,e.values),a,i)),e}class Rr{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:s}=this._$AD,o=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:ge).importNode(i,!0);fe.currentNode=o;let r=fe.nextNode(),l=0,a=0,c=s[0];for(;c!==void 0;){if(l===c.index){let u;c.type===2?u=new Ye(r,r.nextSibling,this,e):c.type===1?u=new c.ctor(r,c.name,c.strings,this,e):c.type===6&&(u=new Ir(r,this,e)),this._$AV.push(u),c=s[++a]}l!==(c==null?void 0:c.index)&&(r=fe.nextNode(),l++)}return fe.currentNode=ge,o}v(e){let t=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class Ye{constructor(e,t,i,s){var o;this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=s,this._$Cp=(o=s==null?void 0:s.isConnected)===null||o===void 0||o}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ke(this,e,t),Be(e)?e===I||e==null||e===""?(this._$AH!==I&&this._$AR(),this._$AH=I):e!==this._$AH&&e!==Ce&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Cr(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==I&&Be(this._$AH)?this._$AA.nextSibling.data=e:this.$(ge.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:s}=e,o=typeof s=="number"?this._$AC(e):(s.el===void 0&&(s.el=Fe.createElement(zn(s.h,s.h[0]),this.options)),s);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===o)this._$AH.v(i);else{const r=new Rr(o,this),l=r.u(this.options);r.v(i),this.$(l),this._$AH=r}}_$AC(e){let t=sn.get(e.strings);return t===void 0&&sn.set(e.strings,t=new Fe(e)),t}T(e){jn(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,s=0;for(const o of e)s===t.length?t.push(i=new Ye(this.k(Ue()),this.k(Ue()),this,this.options)):i=t[s],i._$AI(o),s++;s<t.length&&(this._$AR(i&&i._$AB.nextSibling,s),t.length=s)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,t);e&&e!==this._$AB;){const s=e.nextSibling;e.remove(),e=s}}setConnected(e){var t;this._$AM===void 0&&(this._$Cp=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}class Rt{constructor(e,t,i,s,o){this.type=1,this._$AH=I,this._$AN=void 0,this.element=e,this.name=t,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=I}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,s){const o=this.strings;let r=!1;if(o===void 0)e=ke(this,e,t,0),r=!Be(e)||e!==this._$AH&&e!==Ce,r&&(this._$AH=e);else{const l=e;let a,c;for(e=o[0],a=0;a<o.length-1;a++)c=ke(this,l[i+a],t,a),c===Ce&&(c=this._$AH[a]),r||(r=!Be(c)||c!==this._$AH[a]),c===I?e=I:e!==I&&(e+=(c??"")+o[a+1]),this._$AH[a]=c}r&&!s&&this.j(e)}j(e){e===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Mr extends Rt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===I?void 0:e}}const Nr=Ae?Ae.emptyScript:"";class Pr extends Rt{constructor(){super(...arguments),this.type=4}j(e){e&&e!==I?this.element.setAttribute(this.name,Nr):this.element.removeAttribute(this.name)}}let Tr=class extends Rt{constructor(e,t,i,s,o){super(e,t,i,s,o),this.type=5}_$AI(e,t=this){var i;if((e=(i=ke(this,e,t,0))!==null&&i!==void 0?i:I)===Ce)return;const s=this._$AH,o=e===I&&s!==I||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,r=e!==I&&(s===I||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&i!==void 0?i:this.element,e):this._$AH.handleEvent(e)}};class Ir{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){ke(this,e)}}const rn=xt.litHtmlPolyfillSupport;rn==null||rn(Fe,Ye),((Zt=xt.litHtmlVersions)!==null&&Zt!==void 0?Zt:xt.litHtmlVersions=[]).push("2.8.0");const Lr=(n,e,t)=>{var i,s;const o=(i=t==null?void 0:t.renderBefore)!==null&&i!==void 0?i:e;let r=o._$litPart$;if(r===void 0){const l=(s=t==null?void 0:t.renderBefore)!==null&&s!==void 0?s:null;o._$litPart$=r=new Ye(e.insertBefore(Ue(),l),l,void 0,t??{})}return r._$AI(n),r};var Xt,Jt;let ce=class extends $e{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Lr(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return Ce}};ce.finalized=!0,ce._$litElement$=!0,(Xt=globalThis.litElementHydrateSupport)===null||Xt===void 0||Xt.call(globalThis,{LitElement:ce});const on=globalThis.litElementPolyfillSupport;on==null||on({LitElement:ce});((Jt=globalThis.litElementVersions)!==null&&Jt!==void 0?Jt:globalThis.litElementVersions=[]).push("3.3.3");const jr=(n,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,n)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,n)}},Dr=(n,e,t)=>{e.constructor.createProperty(t,n)};function E(n){return(e,t)=>t!==void 0?Dr(n,e,t):jr(n,e)}const He="a-f\\d",zr=`#?[${He}]{3}[${He}]?`,Ur=`#?[${He}]{6}([${He}]{2})?`,Br=new RegExp(`[^#${He}]`,"gi"),Fr=new RegExp(`^${zr}$|^${Ur}$`,"i");function Hr(n,e={}){if(typeof n!="string"||Br.test(n)||!Fr.test(n))throw new TypeError("Expected a valid hex string");n=n.replace(/^#/,"");let t=1;n.length===8&&(t=Number.parseInt(n.slice(6,8),16)/255,n=n.slice(0,6)),n.length===4&&(t=Number.parseInt(n.slice(3,4).repeat(2),16)/255,n=n.slice(0,3)),n.length===3&&(n=n[0]+n[0]+n[1]+n[1]+n[2]+n[2]);const i=Number.parseInt(n,16),s=i>>16,o=i>>8&255,r=i&255,l=typeof e.alpha=="number"?e.alpha:t;if(e.format==="array")return[s,o,r,l];if(e.format==="css"){const a=l===1?"":` / ${Number((l*100).toFixed(2))}%`;return`rgb(${s} ${o} ${r}${a})`}return{red:s,green:o,blue:r,alpha:l}}class Vr{constructor(){this._rgbaColors=new Map,this._originalColors=new Map}get colors(){return this._originalColors}set colors(e){if(this._rgbaColors.clear(),this._originalColors=e,e&&e.size){if(Array.from(e.keys()).find(s=>s<0||s>1))throw Error("The keys of the colors must represent the relative value where the color is fully applied.");e.forEach((s,o)=>{const r=this.convertFromRGBAString(s)||this.convertFromHex(s);if(Object.keys(r).length===0&&r.constructor===Object)throw Error(`Cannot convert color: ${s} to rgba-color`);this._rgbaColors.set(o,r)});const i=Array.from(this._rgbaColors.entries()).sort();this._rgbaColors=new Map(i)}}blend(e){if(!this._rgbaColors.size)throw Error("It is not possible to blend without a color list.");let t,i;for(const o of this._rgbaColors)if(t||(t=o),o[0]<e)t=o;else if(o[0]===e){t=i=o;break}else{i=o;break}i||(i=t);const s=i[0]-t[0];return s?this.blendColors(t[1],i[1],(e-t[0])/s):this.convertToRGBAString(t[1])}blendColors(e,t,i){return this.convertToRGBAString({red:Math.round(e.red+(t.red-e.red)*i),green:Math.round(e.green+(t.green-e.green)*i),blue:Math.round(e.blue+(t.blue-e.blue)*i),alpha:e.alpha+(t.alpha-e.alpha)*i})}convertFromHex(e){const t=Hr(e);return t.alpha>1&&(t.alpha/=255),t}convertFromRGBAString(e){const t=e.match(/rgba?\((\d{1,3}), ?(\d{1,3}), ?(\d{1,3})\)?(?:, ?(\d(?:\.\d?))\))?/);return t?{red:parseInt(t[1],10),green:parseInt(t[2],10),blue:parseInt(t[3],10),alpha:parseInt(t[4],10)||1}:null}transparentize(e,t){return this.convertToRGBAString(this.convertFromRGBAString(e),t)}convertToRGBAString(e,t){return`rgba(${e.red},${e.green},${e.blue},${t||e.alpha})`}}const G=n=>n??I,qr=":host{display:inline-block;font-size:13px;line-height:20px;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;color:#111;contain:content}:host([hidden]){display:none!important}:host([level=warn i]){color:#555}:host([level=suggest i]){color:#bf8800}:host([level=error i]){color:#cc0017}:host([level=warn]){color:#555}:host([level=suggest]){color:#bf8800}:host([level=error]){color:#cc0017}.icon{height:12px;width:12px;padding-right:4px;margin-bottom:-1px}",Wr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cstyle%20id='style3'%3e%20.st0{fill:%23fff}.st1{fill:%23c00}%20%3c/style%3e%3cg%20id='g5'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20id='path9'/%3e%3c/g%3e%3cg%20id='g11'%3e%3cpath%20class='st0'%20id='rect13'%20d='M5.5%202.5h1v4h-1z'/%3e%3cpath%20class='st1'%20d='M6%203v3-3m1-1H5v5h2V2z'%20id='path15'/%3e%3c/g%3e%3cg%20id='g17'%3e%3cpath%20class='st0'%20id='rect19'%20d='M5.5%208.5h1v1h-1z'/%3e%3cpath%20class='st1'%20id='polygon21'%20d='M7%208H5v2h2V8z'/%3e%3c/g%3e%3c/svg%3e",Gr="data:image/svg+xml,%3csvg%20id='Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cstyle%3e%20.st0{fill:%23bf8800}%20%3c/style%3e%3cpath%20class='st0'%20d='M12%20.8l11%2019.8v1.3H1v-1.3L12%20.8zm.8-.6h-1.6L0%2020v3h24v-3L12.8.2z'/%3e%3cpath%20class='st0'%20d='M11%208h2v8h-2zm0%2010h2v2h-2z'/%3e%3c/svg%3e",Zr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20fill='%23555'/%3e%3cpath%20d='M6%209V6v3m-1%201h2V5H5v5zm2-8H5v2h2z'%20class='st1'%20fill='%23555'/%3e%3c/svg%3e";var Kr=Object.defineProperty,Xr=Object.getOwnPropertyDescriptor,Ci=(n,e,t,i)=>{for(var s=i>1?void 0:i?Xr(e,t):e,o=n.length-1,r;o>=0;o--)(r=n[o])&&(s=(i?r(e,t,s):r(s))||s);return i&&s&&Kr(e,t,s),s},_e;const Ve=(_e=class extends ce{static parseLevel(n){if(n){const e=Object.keys(qe).find(t=>t.toLowerCase()===n.toLowerCase());return e&&qe[e]}}static get styles(){return[Ai`
296
+ ${Ot(qr)}
297
+ `]}render(){return Z`${this.iconToUse&&Z`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(n){return n.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(n)}get iconForLevel(){switch(_e.parseLevel(this.level)){case"warn":return Zr;case"suggest":return Gr;case"error":return Wr;default:return null}}},_e.ID="sd-field-validation-message",_e.levelConverter={fromAttribute(n){return _e.parseLevel(n)},toAttribute(n){return n&&n.toLowerCase()}},_e);Ci([E({type:String,attribute:!0})],Ve.prototype,"message",2);Ci([E({type:String,attribute:!0})],Ve.prototype,"icon",2);Ci([E({converter:Ve.levelConverter,reflect:!0})],Ve.prototype,"level",2);let Yt=Ve;var qe=(n=>(n.Warn="warn",n.Suggest="suggest",n.Error="error",n))(qe||{});customElements.get(Yt.ID)||customElements.define(Yt.ID,Yt);const Jr=":host{display:inline-flex;position:relative;cursor:text;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;font-size:16px;color:#111;contain:layout style;flex-direction:column}:host([hidden]),:host([type=hidden]){display:none!important}:host([effective-disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([effective-disabled]) .unfocused-line,:host([effective-disabled]) .focused-line{border-bottom-style:dashed}:host(:not([effective-disabled]):focus) .focused-line,:host(:not([effective-disabled])[focused]) .focused-line{transform:none;transition:transform .25s}:host(:not([effective-disabled]):focus) .label.float,:host(:not([effective-disabled])[focused]) .label.float{color:var(--sd-input-focused-color, #1467ba)}:host([inactive]) .input{pointer-events:none}:host([effective-disabled]:focus),:host([effective-disabled][focused]){box-shadow:0 0 0 1px #111}:host(:not([effective-disabled])[validationlevel]) .focused-line,:host(:not([effective-disabled]):invalid) .focused-line{transform:none;transition:transform .25s}:host([validationlevel=warn i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn i]) .label,:host([validationlevel=warn i]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest i]) .label,:host([validationlevel=suggest i]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error i]) .focused-line,:host(:not([validationlevel]):invalid) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error i]) .label,:host([validationlevel=error i]) .validation-message,:host(:not([validationlevel]):invalid) .label,:host(:not([validationlevel]):invalid) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}.validation-message-wrapper{position:relative}.validation-message{position:absolute;left:0;right:0}.label.float{transform:translateY(-75%) scale(.75);width:133%}.label:not(.float){max-width:100%}.floated-label-placeholder{height:20px;width:100%}.label{position:absolute;top:0;left:0;line-height:24px;pointer-events:none;color:var(--sd-input-color, #767676);transition:transform .25s,width .25s;transform-origin:left top}.input-wrapper{position:relative;display:flex;flex-direction:row;align-items:center;background-color:var(--input-wrapper-background-color)}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-wrapper{flex-direction:column;align-items:baseline}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-container{width:100%}:host([extended-prefix]:not(:focus-within)) .input-container,:host([extended-prefix][effective-disabled]) .input-container{width:0px}.input-container{line-height:var(--sd-input-line-height, 24px);flex:1 1 auto}.input{width:100%;background:var(--sd-input-background, transparent);font-family:inherit;font-size:inherit;text-align:inherit;color:inherit;border:none;outline:none;resize:none;padding-left:0;padding-right:0}.input:-webkit-autofill{animation-name:onautofillstart}.input:not(:-webkit-autofill){animation-name:onautofillcancel}@keyframes onautofillstart{0%{outline:none}}@keyframes onautofillcancel{0%{outline:none}}.label,input.input,.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.input::placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;top:0;right:0;bottom:0;left:0}.unfocused-line{border-bottom:1px solid var(--sd-input-underline-color, #959595)}.focused-line{border-bottom:2px solid var(--sd-input-focused-color, #1467ba);transform-origin:center center;transform:scale3d(0,1,1)}.prefix,.suffix{display:flex;flex-wrap:nowrap;max-width:100%}.prefix ::slotted(*),.suffix ::slotted(*){display:flex}";var Yr=Object.defineProperty,Qr=Object.getOwnPropertyDescriptor,T=(n,e,t,i)=>{for(var s=i>1?void 0:i?Qr(e,t):e,o=n.length-1,r;o>=0;o--)(r=n[o])&&(s=(i?r(e,t,s):r(s))||s);return i&&s&&Yr(e,t,s),s};const eo="sd-lit-input",ln="delegatesFocus"in window.ShadowRoot.prototype;let to=0;var Q;const P=(Q=class extends ce{constructor(){super(),this.rows=1,this.effectiveDisabled=!1,this.type="text",this.autocomplete="off";const n=to++;this._validationMessageId=Q.ID+"_message_"+n,this._inputId=Q.ID+"_input_"+n,this.attachInternals&&!this.activeShadyDOM&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabIndex")||(this.tabIndex=0)}firstUpdated(n){super.firstUpdated(n),this.initAutocompleted(this.inputElement),this.updateInitialValue(),this.updateFormValidity(),this.hasAttribute("disabled")&&(this.disabled=!0),this.inputElement.oninput=e=>{this.autocompleted=e.inputType==="insertReplacementText"||!("data"in e),this.currentText=this.inputElement.value,this.fireValueChange(!0)},this.inputElement.onchange=()=>this.fireValueChange(),ln||(this.inputElement.onfocus=()=>this.setAttribute("focused",""),this.inputElement.onblur=()=>this.removeAttribute("focused"),this.addEventListener("focus",e=>{e.target===this&&this.inputElement.focus()})),this.inputElement.addEventListener("keyup",()=>{this.updateFormValidity()}),this.addEventListener("keydown",e=>{var t,i;e.key=="Enter"&&((i=(t=this._internals)==null?void 0:t.form)==null||i.requestSubmit())}),this._initialized=!0}initAutocompleted(n){const e=t=>{/^onautofillstart(-sd-lit-input-\d+|\s?)$/.test(t.animationName)?this.autocompleted=!0:/^onautofillcancel(-sd-lit-input-\d+|\s?)$/.test(t.animationName)&&(this.autocompleted=!1)};this.activeShadyDOM?(this._needsAutocompletedCheck=!0,this.activeShadyDOM.nativeMethods.addEventListener.call(n,"animationstart",e)):n.addEventListener("animationstart",e)}get activeShadyDOM(){const n=window.ShadyDOM;return n&&n.inUse?n:null}updateInitialValue(){typeof this.currentText<"u"?this.value=this.currentText:this.value=this.getAttribute("value"),this.value&&(this.currentText=this.inputElement.value),this._initialValue=this.value}get disabled(){return this.hasAttribute("disabled")}set disabled(n){n?this.setAttribute("disabled",""):this.removeAttribute("disabled"),this._internals||(this.effectiveDisabled=n)}get inputElement(){return this.shadowRoot&&!this._inputElement&&(this._inputElement=this.shadowRoot.querySelector(".input")),this._inputElement}get value(){return this.inputElement&&this.inputElement.value}set value(n){this.currentText=n||"",this.inputElement&&(this.inputElement.value=this.currentText),this.setFormValue(this.currentText)}get selectionStart(){return this.inputElement?this.inputElement.selectionStart:0}focus(){this.inputElement?this.inputElement.focus():super.focus()}select(){this.inputElement&&this.inputElement.select()}setSelectionRange(n,e){this.updateComplete.then(()=>{this.inputElement&&this.inputElement.setSelectionRange(n,e)})}static get styles(){return[Ai`
298
+ ${Ot(Jr)}
299
+ `]}render(){var n;let e;const t=this.validationMessage||((n=this._internals)==null?void 0:n.validationMessage);return this.rows===1?e=Z`
300
300
  <input
301
301
  id=${this._inputId}
302
302
  class="input"
303
303
  .type=${this.type}
304
- placeholder=${se(this.placeholder||void 0)}
305
- name=${se(this.name||void 0)}
304
+ placeholder=${G(this.placeholder||void 0)}
305
+ name=${G(this.name||void 0)}
306
306
  aria-disabled=${this.effectiveDisabled}
307
307
  autocomplete=${this.autocomplete}
308
308
  ?disabled=${this.inactive}
309
309
  ?readonly=${this.readonly||this.effectiveDisabled}
310
310
  ?required=${this.required}
311
- maxlength=${this.maxlength>0?this.maxlength:Y.DEFAULT_MAX_LENGTH}
311
+ maxlength=${this.maxlength>0?this.maxlength:Q.DEFAULT_MAX_LENGTH}
312
312
  aria-describedby=${this._validationMessageId}
313
- aria-invalid=${se(!!this.validationMessage||void 0)}
314
- aria-label=${se(this.sdAriaLabel||void 0)}
313
+ aria-invalid=${G(!!t||void 0)}
314
+ aria-label=${G(this.sdAriaLabel||void 0)}
315
+ min=${G(this.min||void 0)}
316
+ max=${G(this.max||void 0)}
317
+ pattern=${G(this.pattern||void 0)}
315
318
  />
316
- `:n=G`
319
+ `:e=Z`
317
320
  <textarea
318
321
  id=${this._inputId}
319
322
  class="input"
320
- placeholder=${se(this.placeholder||void 0)}
321
- name=${se(this.name||void 0)}
323
+ placeholder=${G(this.placeholder||void 0)}
324
+ name=${G(this.name||void 0)}
322
325
  aria-disabled=${this.effectiveDisabled}
323
326
  autocomplete=${this.autocomplete}
324
327
  ?disabled=${this.inactive}
325
328
  ?readonly=${this.readonly||this.effectiveDisabled}
326
329
  ?required=${this.required}
327
- maxlength=${this.maxlength>0?this.maxlength:Y.DEFAULT_MAX_LENGTH}
330
+ maxlength=${this.maxlength>0?this.maxlength:Q.DEFAULT_MAX_LENGTH}
328
331
  rows=${this.rows}
329
332
  aria-describedby=${this._validationMessageId}
330
- aria-invalid=${se(!!this.validationMessage||void 0)}
331
- aria-label=${se(this.sdAriaLabel||void 0)}
333
+ aria-invalid=${G(!!t||void 0)}
334
+ aria-label=${G(this.sdAriaLabel||void 0)}
332
335
  ></textarea>
333
- `,G`
334
- ${this.label?G` <div class="floated-label-placeholder" aria-hidden="true">&nbsp;</div> `:P}
336
+ `,Z`
337
+ ${this.label?Z` <div class="floated-label-placeholder" aria-hidden="true">&nbsp;</div> `:I}
335
338
  <div class="input-wrapper">
336
339
  <span class="prefix"><slot name="prefix"></slot></span>
337
340
  <div class="input-container" style="position:${this.shouldFloat()?"static":"relative"};">
338
- ${this.label&&G`
341
+ ${this.label&&Z`
339
342
  <label for="${this._inputId}" class="label ${this.shouldFloat()?"float":""}"
340
343
  >${this.label}</label
341
344
  >
342
345
  `}
343
- ${n}
346
+ ${e}
344
347
  </div>
345
348
  <span class="suffix"><slot name="suffix"></slot></span>
346
349
  </div>
@@ -349,25 +352,25 @@ document.querySelectorAll("[validate-it] sd-lit-slider").forEach((slider: Slider
349
352
  <div class="focused-line"></div>
350
353
  </div>
351
354
  <div class="validation-message-wrapper" aria-hidden="true">
352
- ${this.validationMessage&&G`
355
+ ${t&&Z`
353
356
  <sd-field-validation-message
354
357
  id=${this._validationMessageId}
355
358
  class="validation-message"
356
- .message=${this.validationMessage}
359
+ .message=${t}
357
360
  .icon=${this.validationIconSrc}
358
361
  .level=${this.validationLevel}
359
362
  >
360
363
  </sd-field-validation-message>
361
364
  `}
362
365
  </div>
363
- `}updated(n){super.updated(n),this._needsAutocompletedCheck&&!this.autocompleted&&setTimeout(()=>{try{this.autocompleted=this.autocompleted||!!this.shadowRoot.querySelector(":-webkit-autofill")}catch{}},0)}update(n){var e,t;if(super.update(n),n.has("validationMessage")&&(this.validationMessage?(this.validationLevel||(this.validationLevel=qe.Error),(e=this._internals)==null||e.setValidity({customError:!0},this.validationMessage)):(this.validationLevel=null,(t=this._internals)==null||t.setValidity({}))),this._initialized&&n.has("rows"))throw Error("rows attribute cannot be changed after the input is attached to the DOM")}fireValueChange(n){this.dispatchEvent(new CustomEvent(`${n?"immediate-":""}value-change`,{detail:{value:this.value}})),this.setFormValue(this.value)}shouldFloat(){return this.alwaysFloatLabel||this.currentText||this.placeholder||this.autocompleted}setFormValue(n){var e;(e=this._internals)==null||e.setFormValue(n)}formResetCallback(){this.value=this._initialValue}formDisabledCallback(n){this.effectiveDisabled=n||this.hasAttribute("disabled")}formAssociatedCallback(n){this._needsAutocompletedCheck=!0}formStateRestoreCallback(n,e){typeof n=="string"&&(this.value=n)}},Y.ID=eo,Y.DEFAULT_MAX_LENGTH=524288,Y.formAssociated=!0,Y.shadowRootOptions={...ce.shadowRootOptions,delegatesFocus:ln},Y);I([_({type:String,reflect:!0})],T.prototype,"label",2);I([_({type:String,attribute:!0})],T.prototype,"validationMessage",2);I([_({type:String,attribute:!0})],T.prototype,"validationIconSrc",2);I([_({type:qe,attribute:!0,reflect:!0})],T.prototype,"validationLevel",2);I([_({type:String,hasChanged(n,e){return e!=null&&e!=n}})],T.prototype,"currentText",2);I([_({type:Boolean,attribute:!0})],T.prototype,"alwaysFloatLabel",2);I([_({type:Boolean,attribute:!0})],T.prototype,"autocompleted",2);I([_({type:Number,attribute:!0})],T.prototype,"rows",2);I([_({type:Boolean,reflect:!0,attribute:"effective-disabled"})],T.prototype,"effectiveDisabled",2);I([_({type:Boolean,reflect:!0,attribute:"extended-prefix"})],T.prototype,"extendedPrefix",2);I([_({type:String,reflect:!0})],T.prototype,"type",2);I([_({type:String,reflect:!0})],T.prototype,"placeholder",2);I([_({type:String,reflect:!0})],T.prototype,"sdAriaLabel",2);I([_({type:Number,reflect:!0})],T.prototype,"maxlength",2);I([_({type:Boolean,reflect:!0})],T.prototype,"readonly",2);I([_({type:Boolean,reflect:!0})],T.prototype,"required",2);I([_({type:String,reflect:!0})],T.prototype,"name",2);I([_({type:Boolean,reflect:!0})],T.prototype,"inactive",2);I([_({type:String,attribute:!0})],T.prototype,"autocomplete",2);let Qt=T;customElements.get(Qt.ID)||customElements.define(Qt.ID,Qt);var io=20,no=1,be=1e6,an=1e6,ro=-7,so=21,oo=!1,Qe="[big.js] ",ve=Qe+"Invalid ",Mt=ve+"decimal places",lo=ve+"rounding mode",Bn=Qe+"Division by zero",$={},ee=void 0,ao=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function Un(){function n(e){var t=this;if(!(t instanceof n))return e===ee?Un():new n(e);if(e instanceof n)t.s=e.s,t.e=e.e,t.c=e.c.slice();else{if(typeof e!="string"){if(n.strict===!0&&typeof e!="bigint")throw TypeError(ve+"value");e=e===0&&1/e<0?"-0":String(e)}co(t,e)}t.constructor=n}return n.prototype=$,n.DP=io,n.RM=no,n.NE=ro,n.PE=so,n.strict=oo,n.roundDown=0,n.roundHalfUp=1,n.roundHalfEven=2,n.roundUp=3,n}function co(n,e){var t,i,r;if(!ao.test(e))throw Error(ve+"number");for(n.s=e.charAt(0)=="-"?(e=e.slice(1),-1):1,(t=e.indexOf("."))>-1&&(e=e.replace(".","")),(i=e.search(/e/i))>0?(t<0&&(t=i),t+=+e.slice(i+1),e=e.substring(0,i)):t<0&&(t=e.length),r=e.length,i=0;i<r&&e.charAt(i)=="0";)++i;if(i==r)n.c=[n.e=0];else{for(;r>0&&e.charAt(--r)=="0";);for(n.e=t-i-1,n.c=[],t=0;i<=r;)n.c[t++]=+e.charAt(i++)}return n}function ye(n,e,t,i){var r=n.c;if(t===ee&&(t=n.constructor.RM),t!==0&&t!==1&&t!==2&&t!==3)throw Error(lo);if(e<1)i=t===3&&(i||!!r[0])||e===0&&(t===1&&r[0]>=5||t===2&&(r[0]>5||r[0]===5&&(i||r[1]!==ee))),r.length=1,i?(n.e=n.e-e+1,r[0]=1):r[0]=n.e=0;else if(e<r.length){if(i=t===1&&r[e]>=5||t===2&&(r[e]>5||r[e]===5&&(i||r[e+1]!==ee||r[e-1]&1))||t===3&&(i||!!r[0]),r.length=e,i){for(;++r[--e]>9;)if(r[e]=0,e===0){++n.e,r.unshift(1);break}}for(e=r.length;!r[--e];)r.pop()}return n}function Pe(n,e,t){var i=n.e,r=n.c.join(""),o=r.length;if(e)r=r.charAt(0)+(o>1?"."+r.slice(1):"")+(i<0?"e":"e+")+i;else if(i<0){for(;++i;)r="0"+r;r="0."+r}else if(i>0)if(++i>o)for(i-=o;i--;)r+="0";else i<o&&(r=r.slice(0,i)+"."+r.slice(i));else o>1&&(r=r.charAt(0)+"."+r.slice(1));return n.s<0&&t?"-"+r:r}$.abs=function(){var n=new this.constructor(this);return n.s=1,n};$.cmp=function(n){var e,t=this,i=t.c,r=(n=new t.constructor(n)).c,o=t.s,s=n.s,l=t.e,a=n.e;if(!i[0]||!r[0])return i[0]?o:r[0]?-s:0;if(o!=s)return o;if(e=o<0,l!=a)return l>a^e?1:-1;for(s=(l=i.length)<(a=r.length)?l:a,o=-1;++o<s;)if(i[o]!=r[o])return i[o]>r[o]^e?1:-1;return l==a?0:l>a^e?1:-1};$.div=function(n){var e=this,t=e.constructor,i=e.c,r=(n=new t(n)).c,o=e.s==n.s?1:-1,s=t.DP;if(s!==~~s||s<0||s>be)throw Error(Mt);if(!r[0])throw Error(Bn);if(!i[0])return n.s=o,n.c=[n.e=0],n;var l,a,c,u,h,p=r.slice(),x=l=r.length,k=i.length,E=i.slice(0,l),g=E.length,D=n,F=D.c=[],W=0,L=s+(D.e=e.e-n.e)+1;for(D.s=o,o=L<0?0:L,p.unshift(0);g++<l;)E.push(0);do{for(c=0;c<10;c++){if(l!=(g=E.length))u=l>g?1:-1;else for(h=-1,u=0;++h<l;)if(r[h]!=E[h]){u=r[h]>E[h]?1:-1;break}if(u<0){for(a=g==l?r:p;g;){if(E[--g]<a[g]){for(h=g;h&&!E[--h];)E[h]=9;--E[h],E[g]+=10}E[g]-=a[g]}for(;!E[0];)E.shift()}else break}F[W++]=u?c:++c,E[0]&&u?E[g]=i[x]||0:E=[i[x]]}while((x++<k||E[0]!==ee)&&o--);return!F[0]&&W!=1&&(F.shift(),D.e--,L--),W>L&&ye(D,L,t.RM,E[0]!==ee),D};$.eq=function(n){return this.cmp(n)===0};$.gt=function(n){return this.cmp(n)>0};$.gte=function(n){return this.cmp(n)>-1};$.lt=function(n){return this.cmp(n)<0};$.lte=function(n){return this.cmp(n)<1};$.minus=$.sub=function(n){var e,t,i,r,o=this,s=o.constructor,l=o.s,a=(n=new s(n)).s;if(l!=a)return n.s=-a,o.plus(n);var c=o.c.slice(),u=o.e,h=n.c,p=n.e;if(!c[0]||!h[0])return h[0]?n.s=-a:c[0]?n=new s(o):n.s=1,n;if(l=u-p){for((r=l<0)?(l=-l,i=c):(p=u,i=h),i.reverse(),a=l;a--;)i.push(0);i.reverse()}else for(t=((r=c.length<h.length)?c:h).length,l=a=0;a<t;a++)if(c[a]!=h[a]){r=c[a]<h[a];break}if(r&&(i=c,c=h,h=i,n.s=-n.s),(a=(t=h.length)-(e=c.length))>0)for(;a--;)c[e++]=0;for(a=e;t>l;){if(c[--t]<h[t]){for(e=t;e&&!c[--e];)c[e]=9;--c[e],c[t]+=10}c[t]-=h[t]}for(;c[--a]===0;)c.pop();for(;c[0]===0;)c.shift(),--p;return c[0]||(n.s=1,c=[p=0]),n.c=c,n.e=p,n};$.mod=function(n){var e,t=this,i=t.constructor,r=t.s,o=(n=new i(n)).s;if(!n.c[0])throw Error(Bn);return t.s=n.s=1,e=n.cmp(t)==1,t.s=r,n.s=o,e?new i(t):(r=i.DP,o=i.RM,i.DP=i.RM=0,t=t.div(n),i.DP=r,i.RM=o,this.minus(t.times(n)))};$.neg=function(){var n=new this.constructor(this);return n.s=-n.s,n};$.plus=$.add=function(n){var e,t,i,r=this,o=r.constructor;if(n=new o(n),r.s!=n.s)return n.s=-n.s,r.minus(n);var s=r.e,l=r.c,a=n.e,c=n.c;if(!l[0]||!c[0])return c[0]||(l[0]?n=new o(r):n.s=r.s),n;if(l=l.slice(),e=s-a){for(e>0?(a=s,i=c):(e=-e,i=l),i.reverse();e--;)i.push(0);i.reverse()}for(l.length-c.length<0&&(i=c,c=l,l=i),e=c.length,t=0;e;l[e]%=10)t=(l[--e]=l[e]+c[e]+t)/10|0;for(t&&(l.unshift(t),++a),e=l.length;l[--e]===0;)l.pop();return n.c=l,n.e=a,n};$.pow=function(n){var e=this,t=new e.constructor("1"),i=t,r=n<0;if(n!==~~n||n<-an||n>an)throw Error(ve+"exponent");for(r&&(n=-n);n&1&&(i=i.times(e)),n>>=1,!!n;)e=e.times(e);return r?t.div(i):i};$.prec=function(n,e){if(n!==~~n||n<1||n>be)throw Error(ve+"precision");return ye(new this.constructor(this),n,e)};$.round=function(n,e){if(n===ee)n=0;else if(n!==~~n||n<-be||n>be)throw Error(Mt);return ye(new this.constructor(this),n+this.e+1,e)};$.sqrt=function(){var n,e,t,i=this,r=i.constructor,o=i.s,s=i.e,l=new r("0.5");if(!i.c[0])return new r(i);if(o<0)throw Error(Qe+"No square root");o=Math.sqrt(i+""),o===0||o===1/0?(e=i.c.join(""),e.length+s&1||(e+="0"),o=Math.sqrt(e),s=((s+1)/2|0)-(s<0||s&1),n=new r((o==1/0?"5e":(o=o.toExponential()).slice(0,o.indexOf("e")+1))+s)):n=new r(o+""),s=n.e+(r.DP+=4);do t=n,n=l.times(t.plus(i.div(t)));while(t.c.slice(0,s).join("")!==n.c.slice(0,s).join(""));return ye(n,(r.DP-=4)+n.e+1,r.RM)};$.times=$.mul=function(n){var e,t=this,i=t.constructor,r=t.c,o=(n=new i(n)).c,s=r.length,l=o.length,a=t.e,c=n.e;if(n.s=t.s==n.s?1:-1,!r[0]||!o[0])return n.c=[n.e=0],n;for(n.e=a+c,s<l&&(e=r,r=o,o=e,c=s,s=l,l=c),e=new Array(c=s+l);c--;)e[c]=0;for(a=l;a--;){for(l=0,c=s+a;c>a;)l=e[c]+o[a]*r[c-a-1]+l,e[c--]=l%10,l=l/10|0;e[c]=l}for(l?++n.e:e.shift(),a=e.length;!e[--a];)e.pop();return n.c=e,n};$.toExponential=function(n,e){var t=this,i=t.c[0];if(n!==ee){if(n!==~~n||n<0||n>be)throw Error(Mt);for(t=ye(new t.constructor(t),++n,e);t.c.length<n;)t.c.push(0)}return Pe(t,!0,!!i)};$.toFixed=function(n,e){var t=this,i=t.c[0];if(n!==ee){if(n!==~~n||n<0||n>be)throw Error(Mt);for(t=ye(new t.constructor(t),n+t.e+1,e),n=n+t.e+1;t.c.length<n;)t.c.push(0)}return Pe(t,!1,!!i)};$[Symbol.for("nodejs.util.inspect.custom")]=$.toJSON=$.toString=function(){var n=this,e=n.constructor;return Pe(n,n.e<=e.NE||n.e>=e.PE,!!n.c[0])};$.toNumber=function(){var n=Number(Pe(this,!0,!0));if(this.constructor.strict===!0&&!this.eq(n.toString()))throw Error(Qe+"Imprecise conversion");return n};$.toPrecision=function(n,e){var t=this,i=t.constructor,r=t.c[0];if(n!==ee){if(n!==~~n||n<1||n>be)throw Error(ve+"precision");for(t=ye(new i(t),n,e);t.c.length<n;)t.c.push(0)}return Pe(t,n<=t.e||t.e<=i.NE||t.e>=i.PE,!!r)};$.valueOf=function(){var n=this,e=n.constructor;if(e.strict===!0)throw Error(Qe+"valueOf disallowed");return Pe(n,n.e<=e.NE||n.e>=e.PE,!0)};var uo=Un();const ho=":host{display:block;position:relative;width:100%;height:48px;cursor:pointer;touch-action:none;contain:layout style}:host([hidden]){display:none!important}:host([disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([disabled]) sd-lit-input{opacity:1}#track-container{position:absolute;top:50%;left:0;height:2px;overflow:hidden}#track{position:absolute;width:100%;height:100%;transform-origin:left top;will-change:transform}:host(:focus) #thumb{top:11px;left:-14px;border-width:8px}#thumb[active]{top:7px!important;left:-18px!important;border-width:12px!important}#thumb{width:12px;height:12px;position:absolute;top:19px;left:-6px;border-radius:50%;border-width:0;background-clip:padding-box;-webkit-user-select:none;user-select:none;will-change:transform;border-style:solid}sd-lit-input{position:absolute;height:100%;width:var(--slider-suffix-width, 50px);right:0;text-align:center;outline:none;white-space:nowrap}sd-field-validation-message{position:absolute;bottom:0}";var po=Object.defineProperty,fo=Object.getOwnPropertyDescriptor,q=(n,e,t,i)=>{for(var r=i>1?void 0:i?fo(e,t):e,o=n.length-1,s;o>=0;o--)(s=n[o])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&po(e,t,r),r},ae;const U=(ae=class extends ce{constructor(){super(),this.thumbPosition=0,this._value=0,this._relativeValue=0,this.min=0,this.max=1,this.colorBlender=new Vs,this.baseColor=ae.defaultColor,this.resizeObserver=new ResizeObserver(()=>{window.requestAnimationFrame(()=>{this.lastKnownWidth!==this.trackContainerWidth&&(this.lastKnownWidth=this.trackContainerWidth,this.doUpdateRelativeValue(this._relativeValue,!0))})})}firstUpdated(e){super.firstUpdated(e),this.updateInitialValue(),this.addEventListener(this.useTouchEvents()?"touchstart":"pointerdown",t=>{!this.hasAttribute("disabled")&&t.composedPath().indexOf(this.inputElement)===-1&&(t.preventDefault(),t.pointerId&&this.setPointerCapture(t.pointerId),this.focus(),this.listenMoveEvents(t.clientX||t.changedTouches[0].clientX))}),this.addEventListener("keydown",this.handleKeyDown,!0),this.setAttribute("aria-valuemin",this.min.toString()),this.setAttribute("aria-valuemax",this.max.toString()),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0")}connectedCallback(){super.connectedCallback(),["colors","min","max","step","editable","inputSuffix","value"].forEach(e=>{this.upgradeProperty(e)}),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.lastKnownWidth=void 0,this.resizeObserver.disconnect()}upgradeProperty(e){if(Object.prototype.hasOwnProperty.call(this,e)){const t=this[e];delete this[e],this[e]=t}}updateInitialValue(){const e=Number.parseFloat(this.getAttribute("value"))||this._value;this.setValueInternal(e)&&(this.inputElement&&(this.inputElement.value=this.formattedValue()),this.fireBothValueChangeEvents())}shouldUpdate(e){return e.has("step")&&this.setValueInternal(this._value)&&this.fireBothValueChangeEvents(),super.shouldUpdate(e)}get value(){return this._value}set value(e){this.setValueInternal(e)&&this.fireBothValueChangeEvents()}roundToStep(e){let t=Number.parseFloat(e);if(Number.isNaN(t))return this._value;if(this.step){const i=uo(t).div(this.step).round().mul(this.step);t=Number.parseFloat(i.toString())}return t}setValueInternal(e){const t=this.roundToStep(e);if(this._value!==t){const i=this._value;return this._value=t,this.relativeValue=(t-this.min)/(this.max-this.min),this.setAttribute("aria-valuenow",this._value.toString()),this.requestUpdate("value",i),!0}return!1}get relativeValue(){return this._relativeValue}set relativeValue(e){this._relativeValue!==e&&this.doUpdateRelativeValue(e)}doUpdateRelativeValue(e,t){this._relativeValue=e,this.thumbPosition=Math.min(Math.max(0,e),1)*this.trackContainerWidth;const i=this.min+(this.max-this.min)*this._relativeValue;this.setValueInternal(i),!t&&this.colors&&this.colors.size&&(this.baseColor=this.colorBlender.blend(this._relativeValue))}get colors(){return this.colorBlender.colors}set colors(e){this.colorBlender.colors=e,this.colors&&this.colors.size?this.baseColor=this.colorBlender.blend(this._relativeValue):this.baseColor=ae.defaultColor}static get styles(){return[Ai`
366
+ `}updated(n){super.updated(n),this._needsAutocompletedCheck&&!this.autocompleted&&setTimeout(()=>{try{this.autocompleted=this.autocompleted||!!this.shadowRoot.querySelector(":-webkit-autofill")}catch{}},0),this.rows>1&&((n.has("min")||n.has("max")||n.has("pattern"))&&console.warn("min, max & pattern attributes are not supported with multiple rows configuration."),this.type!="text"&&console.warn(`type: ${this.type} is not supported with multiple rows configuration.`))}update(n){var e,t;if(super.update(n),n.has("validationMessage")&&(this.validationMessage?(this.validationLevel||(this.validationLevel=qe.Error),(e=this._internals)==null||e.setValidity({customError:!0},this.validationMessage)):(this.validationLevel=null,(t=this._internals)==null||t.setValidity(this.inputElement.validity,this.inputElement.validationMessage))),this._initialized&&n.has("rows"))throw Error("rows attribute cannot be changed after the input is attached to the DOM")}fireValueChange(n){this.dispatchEvent(new CustomEvent(`${n?"immediate-":""}value-change`,{detail:{value:this.value}})),this.setFormValue(this.value),this.updateFormValidity()}updateFormValidity(){if(this.validationMessage==null){this._internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage);const n=this.shadowRoot.querySelector("sd-field-validation-message");this.requestUpdate("validationMessage",n==null?null:n.message)}}shouldFloat(){return this.alwaysFloatLabel||this.currentText||this.placeholder||this.autocompleted||this.type==="date"}setFormValue(n){var e;(e=this._internals)==null||e.setFormValue(n)}formResetCallback(){this.value=this._initialValue}formDisabledCallback(n){this.effectiveDisabled=n||this.hasAttribute("disabled")}formAssociatedCallback(n){this._needsAutocompletedCheck=!0}formStateRestoreCallback(n,e){typeof n=="string"&&(this.value=n)}},Q.ID=eo,Q.DEFAULT_MAX_LENGTH=524288,Q.formAssociated=!0,Q.shadowRootOptions={...ce.shadowRootOptions,delegatesFocus:ln},Q);T([E({type:String,reflect:!0})],P.prototype,"label",2);T([E({type:String,attribute:!0})],P.prototype,"validationMessage",2);T([E({type:String,attribute:!0})],P.prototype,"validationIconSrc",2);T([E({type:qe,attribute:!0,reflect:!0})],P.prototype,"validationLevel",2);T([E({type:String,hasChanged(n,e){return e!=null&&e!=n}})],P.prototype,"currentText",2);T([E({type:Boolean,attribute:!0})],P.prototype,"alwaysFloatLabel",2);T([E({type:Boolean,attribute:!0})],P.prototype,"autocompleted",2);T([E({type:Number,attribute:!0})],P.prototype,"rows",2);T([E({type:Boolean,reflect:!0,attribute:"effective-disabled"})],P.prototype,"effectiveDisabled",2);T([E({type:Boolean,reflect:!0,attribute:"extended-prefix"})],P.prototype,"extendedPrefix",2);T([E({type:String,reflect:!0})],P.prototype,"type",2);T([E({type:String,reflect:!0})],P.prototype,"placeholder",2);T([E({type:String,reflect:!0})],P.prototype,"sdAriaLabel",2);T([E({type:Number,reflect:!0})],P.prototype,"maxlength",2);T([E({type:Boolean,reflect:!0})],P.prototype,"readonly",2);T([E({type:Boolean,reflect:!0})],P.prototype,"required",2);T([E({type:String,reflect:!0})],P.prototype,"name",2);T([E({type:Boolean,reflect:!0})],P.prototype,"inactive",2);T([E({type:String,attribute:!0})],P.prototype,"autocomplete",2);T([E({type:String,attribute:!0})],P.prototype,"min",2);T([E({type:String,attribute:!0})],P.prototype,"max",2);T([E({type:String,attribute:!0})],P.prototype,"pattern",2);let Qt=P;customElements.get(Qt.ID)||customElements.define(Qt.ID,Qt);var io=20,no=1,be=1e6,an=1e6,so=-7,ro=21,oo=!1,Qe="[big.js] ",ve=Qe+"Invalid ",Mt=ve+"decimal places",lo=ve+"rounding mode",Un=Qe+"Division by zero",$={},te=void 0,ao=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function Bn(){function n(e){var t=this;if(!(t instanceof n))return e===te?Bn():new n(e);if(e instanceof n)t.s=e.s,t.e=e.e,t.c=e.c.slice();else{if(typeof e!="string"){if(n.strict===!0&&typeof e!="bigint")throw TypeError(ve+"value");e=e===0&&1/e<0?"-0":String(e)}co(t,e)}t.constructor=n}return n.prototype=$,n.DP=io,n.RM=no,n.NE=so,n.PE=ro,n.strict=oo,n.roundDown=0,n.roundHalfUp=1,n.roundHalfEven=2,n.roundUp=3,n}function co(n,e){var t,i,s;if(!ao.test(e))throw Error(ve+"number");for(n.s=e.charAt(0)=="-"?(e=e.slice(1),-1):1,(t=e.indexOf("."))>-1&&(e=e.replace(".","")),(i=e.search(/e/i))>0?(t<0&&(t=i),t+=+e.slice(i+1),e=e.substring(0,i)):t<0&&(t=e.length),s=e.length,i=0;i<s&&e.charAt(i)=="0";)++i;if(i==s)n.c=[n.e=0];else{for(;s>0&&e.charAt(--s)=="0";);for(n.e=t-i-1,n.c=[],t=0;i<=s;)n.c[t++]=+e.charAt(i++)}return n}function ye(n,e,t,i){var s=n.c;if(t===te&&(t=n.constructor.RM),t!==0&&t!==1&&t!==2&&t!==3)throw Error(lo);if(e<1)i=t===3&&(i||!!s[0])||e===0&&(t===1&&s[0]>=5||t===2&&(s[0]>5||s[0]===5&&(i||s[1]!==te))),s.length=1,i?(n.e=n.e-e+1,s[0]=1):s[0]=n.e=0;else if(e<s.length){if(i=t===1&&s[e]>=5||t===2&&(s[e]>5||s[e]===5&&(i||s[e+1]!==te||s[e-1]&1))||t===3&&(i||!!s[0]),s.length=e,i){for(;++s[--e]>9;)if(s[e]=0,e===0){++n.e,s.unshift(1);break}}for(e=s.length;!s[--e];)s.pop()}return n}function Pe(n,e,t){var i=n.e,s=n.c.join(""),o=s.length;if(e)s=s.charAt(0)+(o>1?"."+s.slice(1):"")+(i<0?"e":"e+")+i;else if(i<0){for(;++i;)s="0"+s;s="0."+s}else if(i>0)if(++i>o)for(i-=o;i--;)s+="0";else i<o&&(s=s.slice(0,i)+"."+s.slice(i));else o>1&&(s=s.charAt(0)+"."+s.slice(1));return n.s<0&&t?"-"+s:s}$.abs=function(){var n=new this.constructor(this);return n.s=1,n};$.cmp=function(n){var e,t=this,i=t.c,s=(n=new t.constructor(n)).c,o=t.s,r=n.s,l=t.e,a=n.e;if(!i[0]||!s[0])return i[0]?o:s[0]?-r:0;if(o!=r)return o;if(e=o<0,l!=a)return l>a^e?1:-1;for(r=(l=i.length)<(a=s.length)?l:a,o=-1;++o<r;)if(i[o]!=s[o])return i[o]>s[o]^e?1:-1;return l==a?0:l>a^e?1:-1};$.div=function(n){var e=this,t=e.constructor,i=e.c,s=(n=new t(n)).c,o=e.s==n.s?1:-1,r=t.DP;if(r!==~~r||r<0||r>be)throw Error(Mt);if(!s[0])throw Error(Un);if(!i[0])return n.s=o,n.c=[n.e=0],n;var l,a,c,u,h,p=s.slice(),x=l=s.length,k=i.length,_=i.slice(0,l),m=_.length,D=n,F=D.c=[],W=0,L=r+(D.e=e.e-n.e)+1;for(D.s=o,o=L<0?0:L,p.unshift(0);m++<l;)_.push(0);do{for(c=0;c<10;c++){if(l!=(m=_.length))u=l>m?1:-1;else for(h=-1,u=0;++h<l;)if(s[h]!=_[h]){u=s[h]>_[h]?1:-1;break}if(u<0){for(a=m==l?s:p;m;){if(_[--m]<a[m]){for(h=m;h&&!_[--h];)_[h]=9;--_[h],_[m]+=10}_[m]-=a[m]}for(;!_[0];)_.shift()}else break}F[W++]=u?c:++c,_[0]&&u?_[m]=i[x]||0:_=[i[x]]}while((x++<k||_[0]!==te)&&o--);return!F[0]&&W!=1&&(F.shift(),D.e--,L--),W>L&&ye(D,L,t.RM,_[0]!==te),D};$.eq=function(n){return this.cmp(n)===0};$.gt=function(n){return this.cmp(n)>0};$.gte=function(n){return this.cmp(n)>-1};$.lt=function(n){return this.cmp(n)<0};$.lte=function(n){return this.cmp(n)<1};$.minus=$.sub=function(n){var e,t,i,s,o=this,r=o.constructor,l=o.s,a=(n=new r(n)).s;if(l!=a)return n.s=-a,o.plus(n);var c=o.c.slice(),u=o.e,h=n.c,p=n.e;if(!c[0]||!h[0])return h[0]?n.s=-a:c[0]?n=new r(o):n.s=1,n;if(l=u-p){for((s=l<0)?(l=-l,i=c):(p=u,i=h),i.reverse(),a=l;a--;)i.push(0);i.reverse()}else for(t=((s=c.length<h.length)?c:h).length,l=a=0;a<t;a++)if(c[a]!=h[a]){s=c[a]<h[a];break}if(s&&(i=c,c=h,h=i,n.s=-n.s),(a=(t=h.length)-(e=c.length))>0)for(;a--;)c[e++]=0;for(a=e;t>l;){if(c[--t]<h[t]){for(e=t;e&&!c[--e];)c[e]=9;--c[e],c[t]+=10}c[t]-=h[t]}for(;c[--a]===0;)c.pop();for(;c[0]===0;)c.shift(),--p;return c[0]||(n.s=1,c=[p=0]),n.c=c,n.e=p,n};$.mod=function(n){var e,t=this,i=t.constructor,s=t.s,o=(n=new i(n)).s;if(!n.c[0])throw Error(Un);return t.s=n.s=1,e=n.cmp(t)==1,t.s=s,n.s=o,e?new i(t):(s=i.DP,o=i.RM,i.DP=i.RM=0,t=t.div(n),i.DP=s,i.RM=o,this.minus(t.times(n)))};$.neg=function(){var n=new this.constructor(this);return n.s=-n.s,n};$.plus=$.add=function(n){var e,t,i,s=this,o=s.constructor;if(n=new o(n),s.s!=n.s)return n.s=-n.s,s.minus(n);var r=s.e,l=s.c,a=n.e,c=n.c;if(!l[0]||!c[0])return c[0]||(l[0]?n=new o(s):n.s=s.s),n;if(l=l.slice(),e=r-a){for(e>0?(a=r,i=c):(e=-e,i=l),i.reverse();e--;)i.push(0);i.reverse()}for(l.length-c.length<0&&(i=c,c=l,l=i),e=c.length,t=0;e;l[e]%=10)t=(l[--e]=l[e]+c[e]+t)/10|0;for(t&&(l.unshift(t),++a),e=l.length;l[--e]===0;)l.pop();return n.c=l,n.e=a,n};$.pow=function(n){var e=this,t=new e.constructor("1"),i=t,s=n<0;if(n!==~~n||n<-an||n>an)throw Error(ve+"exponent");for(s&&(n=-n);n&1&&(i=i.times(e)),n>>=1,!!n;)e=e.times(e);return s?t.div(i):i};$.prec=function(n,e){if(n!==~~n||n<1||n>be)throw Error(ve+"precision");return ye(new this.constructor(this),n,e)};$.round=function(n,e){if(n===te)n=0;else if(n!==~~n||n<-be||n>be)throw Error(Mt);return ye(new this.constructor(this),n+this.e+1,e)};$.sqrt=function(){var n,e,t,i=this,s=i.constructor,o=i.s,r=i.e,l=new s("0.5");if(!i.c[0])return new s(i);if(o<0)throw Error(Qe+"No square root");o=Math.sqrt(i+""),o===0||o===1/0?(e=i.c.join(""),e.length+r&1||(e+="0"),o=Math.sqrt(e),r=((r+1)/2|0)-(r<0||r&1),n=new s((o==1/0?"5e":(o=o.toExponential()).slice(0,o.indexOf("e")+1))+r)):n=new s(o+""),r=n.e+(s.DP+=4);do t=n,n=l.times(t.plus(i.div(t)));while(t.c.slice(0,r).join("")!==n.c.slice(0,r).join(""));return ye(n,(s.DP-=4)+n.e+1,s.RM)};$.times=$.mul=function(n){var e,t=this,i=t.constructor,s=t.c,o=(n=new i(n)).c,r=s.length,l=o.length,a=t.e,c=n.e;if(n.s=t.s==n.s?1:-1,!s[0]||!o[0])return n.c=[n.e=0],n;for(n.e=a+c,r<l&&(e=s,s=o,o=e,c=r,r=l,l=c),e=new Array(c=r+l);c--;)e[c]=0;for(a=l;a--;){for(l=0,c=r+a;c>a;)l=e[c]+o[a]*s[c-a-1]+l,e[c--]=l%10,l=l/10|0;e[c]=l}for(l?++n.e:e.shift(),a=e.length;!e[--a];)e.pop();return n.c=e,n};$.toExponential=function(n,e){var t=this,i=t.c[0];if(n!==te){if(n!==~~n||n<0||n>be)throw Error(Mt);for(t=ye(new t.constructor(t),++n,e);t.c.length<n;)t.c.push(0)}return Pe(t,!0,!!i)};$.toFixed=function(n,e){var t=this,i=t.c[0];if(n!==te){if(n!==~~n||n<0||n>be)throw Error(Mt);for(t=ye(new t.constructor(t),n+t.e+1,e),n=n+t.e+1;t.c.length<n;)t.c.push(0)}return Pe(t,!1,!!i)};$[Symbol.for("nodejs.util.inspect.custom")]=$.toJSON=$.toString=function(){var n=this,e=n.constructor;return Pe(n,n.e<=e.NE||n.e>=e.PE,!!n.c[0])};$.toNumber=function(){var n=Number(Pe(this,!0,!0));if(this.constructor.strict===!0&&!this.eq(n.toString()))throw Error(Qe+"Imprecise conversion");return n};$.toPrecision=function(n,e){var t=this,i=t.constructor,s=t.c[0];if(n!==te){if(n!==~~n||n<1||n>be)throw Error(ve+"precision");for(t=ye(new i(t),n,e);t.c.length<n;)t.c.push(0)}return Pe(t,n<=t.e||t.e<=i.NE||t.e>=i.PE,!!s)};$.valueOf=function(){var n=this,e=n.constructor;if(e.strict===!0)throw Error(Qe+"valueOf disallowed");return Pe(n,n.e<=e.NE||n.e>=e.PE,!0)};var uo=Bn();const ho=":host{display:block;position:relative;width:100%;height:48px;cursor:pointer;touch-action:none;contain:layout style}:host([hidden]){display:none!important}:host([disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([disabled]) sd-lit-input{opacity:1}#track-container{position:absolute;top:50%;left:0;height:2px;overflow:hidden}#track{position:absolute;width:100%;height:100%;transform-origin:left top;will-change:transform}:host(:focus) #thumb{top:11px;left:-14px;border-width:8px}#thumb[active]{top:7px!important;left:-18px!important;border-width:12px!important}#thumb{width:12px;height:12px;position:absolute;top:19px;left:-6px;border-radius:50%;border-width:0;background-clip:padding-box;-webkit-user-select:none;user-select:none;will-change:transform;border-style:solid}sd-lit-input{position:absolute;height:100%;width:var(--slider-suffix-width, 50px);right:0;text-align:center;outline:none;white-space:nowrap}sd-field-validation-message{position:absolute;bottom:0}";var po=Object.defineProperty,fo=Object.getOwnPropertyDescriptor,q=(n,e,t,i)=>{for(var s=i>1?void 0:i?fo(e,t):e,o=n.length-1,r;o>=0;o--)(r=n[o])&&(s=(i?r(e,t,s):r(s))||s);return i&&s&&po(e,t,s),s},ae;const B=(ae=class extends ce{constructor(){super(),this.thumbPosition=0,this._value=0,this._relativeValue=0,this.min=0,this.max=1,this.colorBlender=new Vr,this.baseColor=ae.defaultColor,this.resizeObserver=new ResizeObserver(()=>{window.requestAnimationFrame(()=>{this.lastKnownWidth!==this.trackContainerWidth&&(this.lastKnownWidth=this.trackContainerWidth,this.doUpdateRelativeValue(this._relativeValue,!0))})})}firstUpdated(e){super.firstUpdated(e),this.updateInitialValue(),this.addEventListener(this.useTouchEvents()?"touchstart":"pointerdown",t=>{!this.hasAttribute("disabled")&&t.composedPath().indexOf(this.inputElement)===-1&&(t.preventDefault(),t.pointerId&&this.setPointerCapture(t.pointerId),this.focus(),this.listenMoveEvents(t.clientX||t.changedTouches[0].clientX))}),this.addEventListener("keydown",this.handleKeyDown,!0),this.setAttribute("aria-valuemin",this.min.toString()),this.setAttribute("aria-valuemax",this.max.toString()),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0")}connectedCallback(){super.connectedCallback(),["colors","min","max","step","editable","inputSuffix","value"].forEach(e=>{this.upgradeProperty(e)}),this.resizeObserver.observe(this)}disconnectedCallback(){super.disconnectedCallback(),this.lastKnownWidth=void 0,this.resizeObserver.disconnect()}upgradeProperty(e){if(Object.prototype.hasOwnProperty.call(this,e)){const t=this[e];delete this[e],this[e]=t}}updateInitialValue(){const e=Number.parseFloat(this.getAttribute("value"))||this._value;this.setValueInternal(e)&&(this.inputElement&&(this.inputElement.value=this.formattedValue()),this.fireBothValueChangeEvents())}shouldUpdate(e){return e.has("step")&&this.setValueInternal(this._value)&&this.fireBothValueChangeEvents(),super.shouldUpdate(e)}get value(){return this._value}set value(e){this.setValueInternal(e)&&this.fireBothValueChangeEvents()}roundToStep(e){let t=Number.parseFloat(e);if(Number.isNaN(t))return this._value;if(this.step){const i=uo(t).div(this.step).round().mul(this.step);t=Number.parseFloat(i.toString())}return t}setValueInternal(e){const t=this.roundToStep(e);if(this._value!==t){const i=this._value;return this._value=t,this.relativeValue=(t-this.min)/(this.max-this.min),this.setAttribute("aria-valuenow",this._value.toString()),this.requestUpdate("value",i),!0}return!1}get relativeValue(){return this._relativeValue}set relativeValue(e){this._relativeValue!==e&&this.doUpdateRelativeValue(e)}doUpdateRelativeValue(e,t){this._relativeValue=e,this.thumbPosition=Math.min(Math.max(0,e),1)*this.trackContainerWidth;const i=this.min+(this.max-this.min)*this._relativeValue;this.setValueInternal(i),!t&&this.colors&&this.colors.size&&(this.baseColor=this.colorBlender.blend(this._relativeValue))}get colors(){return this.colorBlender.colors}set colors(e){this.colorBlender.colors=e,this.colors&&this.colors.size?this.baseColor=this.colorBlender.blend(this._relativeValue):this.baseColor=ae.defaultColor}static get styles(){return[Ai`
364
367
  ${Ot(ho)}
365
- `]}render(){const e=this.colorBlender.transparentize(this.baseColor,.26),t=`background-color:${e}; right: ${this.editable?"calc(var(--slider-suffix-width, 50px) + 8px)":"0"}`,i=`transform: scaleX(${this.relativeValue}); background-color:${this.baseColor};`,r=`transform: translateX(${this.thumbPosition}px); background-color:${this.baseColor}; border-color:${e};`;return G`
368
+ `]}render(){const e=this.colorBlender.transparentize(this.baseColor,.26),t=`background-color:${e}; right: ${this.editable?"calc(var(--slider-suffix-width, 50px) + 8px)":"0"}`,i=`transform: scaleX(${this.relativeValue}); background-color:${this.baseColor};`,s=`transform: translateX(${this.thumbPosition}px); background-color:${this.baseColor}; border-color:${e};`;return Z`
366
369
  <div id="track-container" style="${t}">
367
370
  <div id="track" style="${i}"></div>
368
371
  </div>
369
- <div id="thumb" ?active="${this.active}" style="${r}"></div>
370
- ${this.editable&&G`
372
+ <div id="thumb" ?active="${this.active}" style="${s}"></div>
373
+ ${this.editable&&Z`
371
374
  <sd-lit-input
372
375
  .value="${this.formattedValue()}"
373
376
  @value-change="${this.onInputValueChange}"
@@ -375,7 +378,7 @@ document.querySelectorAll("[validate-it] sd-lit-slider").forEach((slider: Slider
375
378
  ><span slot="suffix">${this.inputSuffix}</span>
376
379
  </sd-lit-input>
377
380
  `}
378
- ${this.validationMessage&&G`
381
+ ${this.validationMessage&&Z`
379
382
  <sd-field-validation-message
380
383
  .message="${this.validationMessage}"
381
384
  .icon="${this.validationIconSrc}"
@@ -383,7 +386,7 @@ document.querySelectorAll("[validate-it] sd-lit-slider").forEach((slider: Slider
383
386
  >
384
387
  </sd-field-validation-message>
385
388
  `}
386
- `}listenMoveEvents(e){this.active=!0,this.onPointerMove(e);const t=[],i=o=>{o.stopPropagation(),o.preventDefault(),this.onPointerMove(o.clientX||o.changedTouches&&o.changedTouches[0].clientX)},r=()=>{this.active=!1,t.forEach(o=>o.remove()),this.fireValueChange()};this.useTouchEvents()?(t.push(this.addPointerEventListener("touchmove",i)),t.push(this.addPointerEventListener("touchend",r)),t.push(this.addPointerEventListener("touchcancel",r))):(t.push(this.addPointerEventListener("pointermove",i)),t.push(this.addPointerEventListener("pointerup",r)))}onPointerMove(e){this.updateAlreadyRequested||(this.updateAlreadyRequested=!0,window.requestAnimationFrame(async()=>{this.updateAlreadyRequested=!1,this.updateThumbPosition(e);const t=this.relativeValue;this.relativeValue=this.thumbPosition/this.trackContainerWidth,this.relativeValue!==t&&(await this.updateComplete,this.fireValueChange(!0),this.active||this.fireValueChange())}))}addPointerEventListener(e,t){return window.addEventListener(e,t,!0),{remove:()=>{window.removeEventListener(e,t,!0)}}}updateThumbPosition(e){if(this.thumbPosition=Math.min(this.trackContainerWidth,Math.max(0,e-this.getBoundingClientRect().left)),this.max-this.min>1){const t=this.trackContainerWidth/(this.max-this.min),i=this.thumbPosition%t;i&&(i<t/2?this.thumbPosition-=i:this.thumbPosition+=t-i)}}onInputValueChange(e){this.value=Number(e.detail.value.replace(RegExp(this.escapedDecimalSeparator),".")),String(this.value)!==String(e.detail.value)&&(e.target.value=String(this.value))}formattedValue(){return this.value.toString().replace(/\./,this.decimalSeparatorOrDefault)}get escapedDecimalSeparator(){return this.decimalSeparatorOrDefault.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}get decimalSeparatorOrDefault(){return this.decimalSeparator||1.1.toLocaleString(this.navigatorLanguage).substring(1,2)}get navigatorLanguage(){return navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.userLanguage||navigator.language||navigator.browserLanguage||"en"}handleKeyDown(e){if(!this.hasAttribute("disabled")&&e.composedPath().indexOf(this.inputElement)===-1){let t=this.step||(this.max-this.min)/100;switch(this.max-this.min>1&&(t=Math.round(t)||1),e.keyCode){case 37:case 40:this.value=Math.max(this.value-t,this.min),e.preventDefault();break;case 38:case 39:this.value=Math.min(this.value+t,this.max),e.preventDefault();break}}}get inputElement(){return this._inputElement||(this._inputElement=this.shadowRoot.querySelector("sd-lit-input")),this._inputElement}get trackContainer(){return this._trackContainer||(this._trackContainer=this.shadowRoot.querySelector("#track-container")),this._trackContainer}get trackContainerWidth(){return this.trackContainer&&this.trackContainer.offsetWidth}fireBothValueChangeEvents(){this.fireValueChange(!0),this.fireValueChange()}fireValueChange(e){this.dispatchEvent(new CustomEvent(`${e?"immediate-":""}value-change`,{detail:{value:this.value}}))}useTouchEvents(){return this.hasAttribute("use-touch-events")}},ae.ID="sd-lit-slider",ae.defaultColor="rgb(20, 103, 186)",ae);q([_({type:Number})],U.prototype,"thumbPosition",2);q([_({type:Number,reflect:!0})],U.prototype,"min",2);q([_({type:Number,reflect:!0})],U.prototype,"max",2);q([_({type:Number,reflect:!0})],U.prototype,"step",2);q([_({type:Boolean,reflect:!0})],U.prototype,"editable",2);q([_({type:String,reflect:!0})],U.prototype,"inputSuffix",2);q([_({type:Boolean,reflect:!0})],U.prototype,"disabled",2);q([_({type:String,attribute:!0})],U.prototype,"validationMessage",2);q([_({type:String,attribute:!0})],U.prototype,"validationIconSrc",2);q([_({type:String,attribute:!0})],U.prototype,"validationLevel",2);q([_({type:String,attribute:!0})],U.prototype,"decimalSeparator",2);q([_({type:Boolean})],U.prototype,"active",2);q([_()],U.prototype,"baseColor",2);let ei=U;customElements.get(ei.ID)||customElements.define(ei.ID,ei);function Fn(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function go(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function i(){return this instanceof i?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(n).forEach(function(i){var r=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return n[i]}})}),t}var ki={exports:{}},R=String,Hn=function(){return{isColorSupported:!1,reset:R,bold:R,dim:R,italic:R,underline:R,inverse:R,hidden:R,strikethrough:R,black:R,red:R,green:R,yellow:R,blue:R,magenta:R,cyan:R,white:R,gray:R,bgBlack:R,bgRed:R,bgGreen:R,bgYellow:R,bgBlue:R,bgMagenta:R,bgCyan:R,bgWhite:R}};ki.exports=Hn();ki.exports.createColors=Hn;var mo=ki.exports;const bo={},vo=Object.freeze(Object.defineProperty({__proto__:null,default:bo},Symbol.toStringTag,{value:"Module"})),Z=go(vo);let cn=mo,un=Z,ci=class Vn extends Error{constructor(e,t,i,r,o,s){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),r&&(this.source=r),s&&(this.plugin=s),typeof t<"u"&&typeof i<"u"&&(typeof t=="number"?(this.line=t,this.column=i):(this.line=t.line,this.column=t.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Vn)}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=cn.isColorSupported),un&&e&&(t=un(t));let i=t.split(/\r?\n/),r=Math.max(this.line-3,0),o=Math.min(this.line+2,i.length),s=String(o).length,l,a;if(e){let{bold:c,gray:u,red:h}=cn.createColors(!0);l=p=>c(h(p)),a=p=>u(p)}else l=a=c=>c;return i.slice(r,o).map((c,u)=>{let h=r+1+u,p=" "+(" "+h).slice(-s)+" | ";if(h===this.line){let x=a(p.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(p)+c+`
389
+ `}listenMoveEvents(e){this.active=!0,this.onPointerMove(e);const t=[],i=o=>{o.stopPropagation(),o.preventDefault(),this.onPointerMove(o.clientX||o.changedTouches&&o.changedTouches[0].clientX)},s=()=>{this.active=!1,t.forEach(o=>o.remove()),this.fireValueChange()};this.useTouchEvents()?(t.push(this.addPointerEventListener("touchmove",i)),t.push(this.addPointerEventListener("touchend",s)),t.push(this.addPointerEventListener("touchcancel",s))):(t.push(this.addPointerEventListener("pointermove",i)),t.push(this.addPointerEventListener("pointerup",s)))}onPointerMove(e){this.updateAlreadyRequested||(this.updateAlreadyRequested=!0,window.requestAnimationFrame(async()=>{this.updateAlreadyRequested=!1,this.updateThumbPosition(e);const t=this.relativeValue;this.relativeValue=this.thumbPosition/this.trackContainerWidth,this.relativeValue!==t&&(await this.updateComplete,this.fireValueChange(!0),this.active||this.fireValueChange())}))}addPointerEventListener(e,t){return window.addEventListener(e,t,!0),{remove:()=>{window.removeEventListener(e,t,!0)}}}updateThumbPosition(e){if(this.thumbPosition=Math.min(this.trackContainerWidth,Math.max(0,e-this.getBoundingClientRect().left)),this.max-this.min>1){const t=this.trackContainerWidth/(this.max-this.min),i=this.thumbPosition%t;i&&(i<t/2?this.thumbPosition-=i:this.thumbPosition+=t-i)}}onInputValueChange(e){this.value=Number(e.detail.value.replace(RegExp(this.escapedDecimalSeparator),".")),String(this.value)!==String(e.detail.value)&&(e.target.value=String(this.value))}formattedValue(){return this.value.toString().replace(/\./,this.decimalSeparatorOrDefault)}get escapedDecimalSeparator(){return this.decimalSeparatorOrDefault.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}get decimalSeparatorOrDefault(){return this.decimalSeparator||1.1.toLocaleString(this.navigatorLanguage).substring(1,2)}get navigatorLanguage(){return navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.userLanguage||navigator.language||navigator.browserLanguage||"en"}handleKeyDown(e){if(!this.hasAttribute("disabled")&&e.composedPath().indexOf(this.inputElement)===-1){let t=this.step||(this.max-this.min)/100;switch(this.max-this.min>1&&(t=Math.round(t)||1),e.keyCode){case 37:case 40:this.value=Math.max(this.value-t,this.min),e.preventDefault();break;case 38:case 39:this.value=Math.min(this.value+t,this.max),e.preventDefault();break}}}get inputElement(){return this._inputElement||(this._inputElement=this.shadowRoot.querySelector("sd-lit-input")),this._inputElement}get trackContainer(){return this._trackContainer||(this._trackContainer=this.shadowRoot.querySelector("#track-container")),this._trackContainer}get trackContainerWidth(){return this.trackContainer&&this.trackContainer.offsetWidth}fireBothValueChangeEvents(){this.fireValueChange(!0),this.fireValueChange()}fireValueChange(e){this.dispatchEvent(new CustomEvent(`${e?"immediate-":""}value-change`,{detail:{value:this.value}}))}useTouchEvents(){return this.hasAttribute("use-touch-events")}},ae.ID="sd-lit-slider",ae.defaultColor="rgb(20, 103, 186)",ae);q([E({type:Number})],B.prototype,"thumbPosition",2);q([E({type:Number,reflect:!0})],B.prototype,"min",2);q([E({type:Number,reflect:!0})],B.prototype,"max",2);q([E({type:Number,reflect:!0})],B.prototype,"step",2);q([E({type:Boolean,reflect:!0})],B.prototype,"editable",2);q([E({type:String,reflect:!0})],B.prototype,"inputSuffix",2);q([E({type:Boolean,reflect:!0})],B.prototype,"disabled",2);q([E({type:String,attribute:!0})],B.prototype,"validationMessage",2);q([E({type:String,attribute:!0})],B.prototype,"validationIconSrc",2);q([E({type:String,attribute:!0})],B.prototype,"validationLevel",2);q([E({type:String,attribute:!0})],B.prototype,"decimalSeparator",2);q([E({type:Boolean})],B.prototype,"active",2);q([E()],B.prototype,"baseColor",2);let ei=B;customElements.get(ei.ID)||customElements.define(ei.ID,ei);function Fn(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function mo(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function i(){return this instanceof i?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(n).forEach(function(i){var s=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:function(){return n[i]}})}),t}var ki={exports:{}},R=String,Hn=function(){return{isColorSupported:!1,reset:R,bold:R,dim:R,italic:R,underline:R,inverse:R,hidden:R,strikethrough:R,black:R,red:R,green:R,yellow:R,blue:R,magenta:R,cyan:R,white:R,gray:R,bgBlack:R,bgRed:R,bgGreen:R,bgYellow:R,bgBlue:R,bgMagenta:R,bgCyan:R,bgWhite:R}};ki.exports=Hn();ki.exports.createColors=Hn;var go=ki.exports;const bo={},vo=Object.freeze(Object.defineProperty({__proto__:null,default:bo},Symbol.toStringTag,{value:"Module"})),K=mo(vo);let cn=go,un=K,ci=class Vn extends Error{constructor(e,t,i,s,o,r){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),s&&(this.source=s),r&&(this.plugin=r),typeof t<"u"&&typeof i<"u"&&(typeof t=="number"?(this.line=t,this.column=i):(this.line=t.line,this.column=t.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Vn)}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=cn.isColorSupported),un&&e&&(t=un(t));let i=t.split(/\r?\n/),s=Math.max(this.line-3,0),o=Math.min(this.line+2,i.length),r=String(o).length,l,a;if(e){let{bold:c,gray:u,red:h}=cn.createColors(!0);l=p=>c(h(p)),a=p=>u(p)}else l=a=c=>c;return i.slice(s,o).map((c,u)=>{let h=s+1+u,p=" "+(" "+h).slice(-r)+" | ";if(h===this.line){let x=a(p.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(p)+c+`
387
390
  `+x+l("^")}return" "+a(p)+c}).join(`
388
391
  `)}toString(){let e=this.showSourceCode();return e&&(e=`
389
392
 
@@ -393,25 +396,25 @@ document.querySelectorAll("[validate-it] sd-lit-slider").forEach((slider: Slider
393
396
  `,beforeComment:`
394
397
  `,beforeDecl:`
395
398
  `,beforeOpen:" ",beforeRule:`
396
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function yo(n){return n[0].toUpperCase()+n.slice(1)}let ui=class{constructor(e){this.builder=e}atrule(e,t){let i="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?i+=e.raws.afterName:r&&(i+=" "),e.nodes)this.block(e,i+r);else{let o=(e.raws.between||"")+(t?";":"");this.builder(i+r+o,e)}}beforeAfter(e,t){let i;e.type==="decl"?i=this.raw(e,null,"beforeDecl"):e.type==="comment"?i=this.raw(e,null,"beforeComment"):t==="before"?i=this.raw(e,null,"beforeRule"):i=this.raw(e,null,"beforeClose");let r=e.parent,o=0;for(;r&&r.type!=="root";)o+=1,r=r.parent;if(i.includes(`
397
- `)){let s=this.raw(e,null,"indent");if(s.length)for(let l=0;l<o;l++)i+=s}return i}block(e,t){let i=this.raw(e,"between","beforeOpen");this.builder(t+i+"{",e,"start");let r;e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let i=this.raw(e,"semicolon");for(let r=0;r<e.nodes.length;r++){let o=e.nodes[r],s=this.raw(o,"before");s&&this.builder(s),this.stringify(o,t!==r||i)}}comment(e){let t=this.raw(e,"left","commentLeft"),i=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+i+"*/",e)}decl(e,t){let i=this.raw(e,"between","colon"),r=e.prop+i+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}document(e){this.body(e)}raw(e,t,i){let r;if(i||(i=t),t&&(r=e.raws[t],typeof r<"u"))return r;let o=e.parent;if(i==="before"&&(!o||o.type==="root"&&o.first===e||o&&o.type==="document"))return"";if(!o)return dn[i];let s=e.root();if(s.rawCache||(s.rawCache={}),typeof s.rawCache[i]<"u")return s.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(e,i);{let l="raw"+yo(i);this[l]?r=this[l](s,e):s.walk(a=>{if(r=a.raws[t],typeof r<"u")return!1})}return typeof r>"u"&&(r=dn[i]),s.rawCache[i]=r,r}rawBeforeClose(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length>0&&typeof i.raws.after<"u")return t=i.raws.after,t.includes(`
398
- `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let i;return e.walkComments(r=>{if(typeof r.raws.before<"u")return i=r.raws.before,i.includes(`
399
- `)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(t,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeDecl(e,t){let i;return e.walkDecls(r=>{if(typeof r.raws.before<"u")return i=r.raws.before,i.includes(`
399
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function yo(n){return n[0].toUpperCase()+n.slice(1)}let ui=class{constructor(e){this.builder=e}atrule(e,t){let i="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?i+=e.raws.afterName:s&&(i+=" "),e.nodes)this.block(e,i+s);else{let o=(e.raws.between||"")+(t?";":"");this.builder(i+s+o,e)}}beforeAfter(e,t){let i;e.type==="decl"?i=this.raw(e,null,"beforeDecl"):e.type==="comment"?i=this.raw(e,null,"beforeComment"):t==="before"?i=this.raw(e,null,"beforeRule"):i=this.raw(e,null,"beforeClose");let s=e.parent,o=0;for(;s&&s.type!=="root";)o+=1,s=s.parent;if(i.includes(`
400
+ `)){let r=this.raw(e,null,"indent");if(r.length)for(let l=0;l<o;l++)i+=r}return i}block(e,t){let i=this.raw(e,"between","beforeOpen");this.builder(t+i+"{",e,"start");let s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let i=this.raw(e,"semicolon");for(let s=0;s<e.nodes.length;s++){let o=e.nodes[s],r=this.raw(o,"before");r&&this.builder(r),this.stringify(o,t!==s||i)}}comment(e){let t=this.raw(e,"left","commentLeft"),i=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+i+"*/",e)}decl(e,t){let i=this.raw(e,"between","colon"),s=e.prop+i+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)}document(e){this.body(e)}raw(e,t,i){let s;if(i||(i=t),t&&(s=e.raws[t],typeof s<"u"))return s;let o=e.parent;if(i==="before"&&(!o||o.type==="root"&&o.first===e||o&&o.type==="document"))return"";if(!o)return dn[i];let r=e.root();if(r.rawCache||(r.rawCache={}),typeof r.rawCache[i]<"u")return r.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(e,i);{let l="raw"+yo(i);this[l]?s=this[l](r,e):r.walk(a=>{if(s=a.raws[t],typeof s<"u")return!1})}return typeof s>"u"&&(s=dn[i]),r.rawCache[i]=s,s}rawBeforeClose(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length>0&&typeof i.raws.after<"u")return t=i.raws.after,t.includes(`
401
+ `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let i;return e.walkComments(s=>{if(typeof s.raws.before<"u")return i=s.raws.before,i.includes(`
402
+ `)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(t,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeDecl(e,t){let i;return e.walkDecls(s=>{if(typeof s.raws.before<"u")return i=s.raws.before,i.includes(`
400
403
  `)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(t,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeOpen(e){let t;return e.walk(i=>{if(i.type!=="decl"&&(t=i.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(i=>{if(i.nodes&&(i.parent!==e||e.first!==i)&&typeof i.raws.before<"u")return t=i.raws.before,t.includes(`
401
- `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(i=>{if(typeof i.raws.between<"u")return t=i.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length===0&&(t=i.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(i=>{let r=i.parent;if(r&&r!==e&&r.parent&&r.parent===e&&typeof i.raws.before<"u"){let o=i.raws.before.split(`
402
- `);return t=o[o.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(t=i.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let i=e[t],r=e.raws[t];return r&&r.value===i?r.raw:i}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 qn=ui;ui.default=ui;let wo=qn;function di(n,e){new wo(e).stringify(n)}var Nt=di;di.default=di;let{isClean:ot,my:xo}=et,Eo=Oi,_o=qn,So=Nt;function hi(n,e){let t=new n.constructor;for(let i in n){if(!Object.prototype.hasOwnProperty.call(n,i)||i==="proxyCache")continue;let r=n[i],o=typeof r;i==="parent"&&o==="object"?e&&(t[i]=e):i==="source"?t[i]=r:Array.isArray(r)?t[i]=r.map(s=>hi(s,t)):(o==="object"&&r!==null&&(r=hi(r)),t[i]=r)}return t}let pi=class{constructor(e={}){this.raws={},this[ot]=!1,this[xo]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let i of e[t])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}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=hi(this);for(let i in e)t[i]=e[i];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:i,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:i.column,line:i.line},t)}return new Eo(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markDirty(){if(this[ot]){this[ot]=!1;let e=this;for(;e=e.parent;)e[ot]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let i=this.source.start;if(e.index)i=this.positionInside(e.index,t);else if(e.word){t=this.toString();let r=t.indexOf(e.word);r!==-1&&(i=this.positionInside(r,t))}return i}positionInside(e,t){let i=t||this.toString(),r=this.source.start.column,o=this.source.start.line;for(let s=0;s<e;s++)i[s]===`
403
- `?(r=1,o+=1):r+=1;return{column:r,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},i=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 r=this.toString(),o=r.indexOf(e.word);o!==-1&&(t=this.positionInside(o,r),i=this.positionInside(o+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line}:e.endIndex?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<t.line||i.line===t.line&&i.column<=t.column)&&(i={column:t.column+1,line:t.line}),{end:i,start:t}}raw(e,t){return new _o().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,i=!1;for(let r of e)r===this?i=!0:i?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);i||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let i={},r=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 l=this[s];if(Array.isArray(l))i[s]=l.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof l=="object"&&l.toJSON)i[s]=l.toJSON(null,t);else if(s==="source"){let a=t.get(l.input);a==null&&(a=o,t.set(l.input,o),o++),i[s]={end:l.end,inputId:a,start:l.start}}else i[s]=l}return r&&(i.inputs=[...t.keys()].map(s=>s.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=So){e.stringify&&(e=e.stringify);let t="";return e(this,i=>{t+=i}),t}warn(e,t,i){let r={node:this};for(let o in i)r[o]=i[o];return e.warn(t,r)}get proxyOf(){return this}};var Pt=pi;pi.default=pi;let $o=Pt,fi=class extends $o{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 Tt=fi;fi.default=fi;let Ao="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Co=(n,e=21)=>(t=e)=>{let i="",r=t;for(;r--;)i+=n[Math.random()*n.length|0];return i},ko=(n=21)=>{let e="",t=n;for(;t--;)e+=Ao[Math.random()*64|0];return e};var Oo={nanoid:ko,customAlphabet:Co};let{SourceMapConsumer:hn,SourceMapGenerator:pn}=Z,{existsSync:Ro,readFileSync:Mo}=Z,{dirname:ti,join:No}=Z;function Po(n){return Buffer?Buffer.from(n,"base64").toString():window.atob(n)}let gi=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let i=t.map?t.map.prev:void 0,r=this.loadMap(t.from,i);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=ti(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new hn(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,r=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/;if(r.test(e)||o.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||i.test(e))return Po(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 i=e.lastIndexOf(t.pop()),r=e.indexOf("*/",i);i>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,r)))}loadFile(e){if(this.root=ti(e),Ro(e))return this.mapFile=e,Mo(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 i=t(e);if(i){let r=this.loadFile(i);if(!r)throw new Error("Unable to load previous source map: "+i.toString());return r}}else{if(t instanceof hn)return pn.fromSourceMap(t).toString();if(t instanceof pn)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 i=this.annotation;return e&&(i=No(ti(e),i)),this.loadFile(i)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Wn=gi;gi.default=gi;let{SourceMapConsumer:To,SourceMapGenerator:Io}=Z,{fileURLToPath:fn,pathToFileURL:lt}=Z,{isAbsolute:mi,resolve:bi}=Z,{nanoid:Lo}=Oo,ii=Z,gn=Oi,jo=Wn,ni=Symbol("fromOffsetCache"),Do=!!(To&&Io),mn=!!(bi&&mi),Et=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&&(!mn||/^\w+:\/\//.test(t.from)||mi(t.from)?this.file=t.from:this.file=bi(t.from)),mn&&Do){let i=new jo(this.css,t);if(i.text){this.map=i;let r=i.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}}this.file||(this.id="<input css "+Lo(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,i,r={}){let o,s,l;if(t&&typeof t=="object"){let c=t,u=i;if(typeof c.offset=="number"){let h=this.fromOffset(c.offset);t=h.line,i=h.col}else t=c.line,i=c.column;if(typeof u.offset=="number"){let h=this.fromOffset(u.offset);s=h.line,l=h.col}else s=u.line,l=u.column}else if(!i){let c=this.fromOffset(t);t=c.line,i=c.col}let a=this.origin(t,i,s,l);return a?o=new gn(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,r.plugin):o=new gn(e,s===void 0?t:{column:i,line:t},s===void 0?i:{column:l,line:s},this.css,this.file,r.plugin),o.input={column:i,endColumn:l,endLine:s,line:t,source:this.css},this.file&&(lt&&(o.input.url=lt(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let t,i;if(this[ni])i=this[ni];else{let o=this.css.split(`
404
- `);i=new Array(o.length);let s=0;for(let l=0,a=o.length;l<a;l++)i[l]=s,s+=o[l].length+1;this[ni]=i}t=i[i.length-1];let r=0;if(e>=t)r=i.length-1;else{let o=i.length-2,s;for(;r<o;)if(s=r+(o-r>>1),e<i[s])o=s-1;else if(e>=i[s+1])r=s+1;else{r=s;break}}return{col:e-i[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:bi(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,i,r){if(!this.map)return!1;let o=this.map.consumer(),s=o.originalPositionFor({column:t,line:e});if(!s.source)return!1;let l;typeof i=="number"&&(l=o.originalPositionFor({column:r,line:i}));let a;mi(s.source)?a=lt(s.source):a=new URL(s.source,this.map.consumer().sourceRoot||lt(this.map.mapFile));let c={column:s.column,endColumn:l&&l.column,endLine:l&&l.line,line:s.line,url:a.toString()};if(a.protocol==="file:")if(fn)c.file=fn(a);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 It=Et;Et.default=Et;ii&&ii.registerInput&&ii.registerInput(Et);let{SourceMapConsumer:Gn,SourceMapGenerator:vt}=Z,{dirname:yt,relative:Zn,resolve:Kn,sep:Xn}=Z,{pathToFileURL:bn}=Z,zo=It,Bo=!!(Gn&&vt),Uo=!!(yt&&Kn&&Zn&&Xn),Fo=class{constructor(e,t,i,r){this.stringify=e,this.mapOpts=i.map||{},this.root=t,this.opts=i,this.css=r,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=`
404
+ `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(i=>{if(typeof i.raws.between<"u")return t=i.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length===0&&(t=i.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(i=>{let s=i.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof i.raws.before<"u"){let o=i.raws.before.split(`
405
+ `);return t=o[o.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(t=i.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let i=e[t],s=e.raws[t];return s&&s.value===i?s.raw:i}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 qn=ui;ui.default=ui;let wo=qn;function di(n,e){new wo(e).stringify(n)}var Nt=di;di.default=di;let{isClean:ot,my:xo}=et,Eo=Oi,_o=qn,So=Nt;function hi(n,e){let t=new n.constructor;for(let i in n){if(!Object.prototype.hasOwnProperty.call(n,i)||i==="proxyCache")continue;let s=n[i],o=typeof s;i==="parent"&&o==="object"?e&&(t[i]=e):i==="source"?t[i]=s:Array.isArray(s)?t[i]=s.map(r=>hi(r,t)):(o==="object"&&s!==null&&(s=hi(s)),t[i]=s)}return t}let pi=class{constructor(e={}){this.raws={},this[ot]=!1,this[xo]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let i of e[t])typeof i.clone=="function"?this.append(i.clone()):this.append(i)}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=hi(this);for(let i in e)t[i]=e[i];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:i,start:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:i.column,line:i.line},t)}return new Eo(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markDirty(){if(this[ot]){this[ot]=!1;let e=this;for(;e=e.parent;)e[ot]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let i=this.source.start;if(e.index)i=this.positionInside(e.index,t);else if(e.word){t=this.toString();let s=t.indexOf(e.word);s!==-1&&(i=this.positionInside(s,t))}return i}positionInside(e,t){let i=t||this.toString(),s=this.source.start.column,o=this.source.start.line;for(let r=0;r<e;r++)i[r]===`
406
+ `?(s=1,o+=1):s+=1;return{column:s,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},i=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 s=this.toString(),o=s.indexOf(e.word);o!==-1&&(t=this.positionInside(o,s),i=this.positionInside(o+e.word.length,s))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line}:e.endIndex?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<t.line||i.line===t.line&&i.column<=t.column)&&(i={column:t.column+1,line:t.line}),{end:i,start:t}}raw(e,t){return new _o().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,i=!1;for(let s of e)s===this?i=!0:i?(this.parent.insertAfter(t,s),t=s):this.parent.insertBefore(t,s);i||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let i={},s=t==null;t=t||new Map;let o=0;for(let r in this){if(!Object.prototype.hasOwnProperty.call(this,r)||r==="parent"||r==="proxyCache")continue;let l=this[r];if(Array.isArray(l))i[r]=l.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof l=="object"&&l.toJSON)i[r]=l.toJSON(null,t);else if(r==="source"){let a=t.get(l.input);a==null&&(a=o,t.set(l.input,o),o++),i[r]={end:l.end,inputId:a,start:l.start}}else i[r]=l}return s&&(i.inputs=[...t.keys()].map(r=>r.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=So){e.stringify&&(e=e.stringify);let t="";return e(this,i=>{t+=i}),t}warn(e,t,i){let s={node:this};for(let o in i)s[o]=i[o];return e.warn(t,s)}get proxyOf(){return this}};var Pt=pi;pi.default=pi;let $o=Pt,fi=class extends $o{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 Tt=fi;fi.default=fi;let Ao="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Co=(n,e=21)=>(t=e)=>{let i="",s=t;for(;s--;)i+=n[Math.random()*n.length|0];return i},ko=(n=21)=>{let e="",t=n;for(;t--;)e+=Ao[Math.random()*64|0];return e};var Oo={nanoid:ko,customAlphabet:Co};let{SourceMapConsumer:hn,SourceMapGenerator:pn}=K,{existsSync:Ro,readFileSync:Mo}=K,{dirname:ti,join:No}=K;function Po(n){return Buffer?Buffer.from(n,"base64").toString():window.atob(n)}let mi=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let i=t.map?t.map.prev:void 0,s=this.loadMap(t.from,i);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=ti(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new hn(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/;if(s.test(e)||o.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||i.test(e))return Po(e.substr(RegExp.lastMatch.length));let r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}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 i=e.lastIndexOf(t.pop()),s=e.indexOf("*/",i);i>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,s)))}loadFile(e){if(this.root=ti(e),Ro(e))return this.mapFile=e,Mo(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 i=t(e);if(i){let s=this.loadFile(i);if(!s)throw new Error("Unable to load previous source map: "+i.toString());return s}}else{if(t instanceof hn)return pn.fromSourceMap(t).toString();if(t instanceof pn)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 i=this.annotation;return e&&(i=No(ti(e),i)),this.loadFile(i)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Wn=mi;mi.default=mi;let{SourceMapConsumer:To,SourceMapGenerator:Io}=K,{fileURLToPath:fn,pathToFileURL:lt}=K,{isAbsolute:gi,resolve:bi}=K,{nanoid:Lo}=Oo,ii=K,mn=Oi,jo=Wn,ni=Symbol("fromOffsetCache"),Do=!!(To&&Io),gn=!!(bi&&gi),Et=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&&(!gn||/^\w+:\/\//.test(t.from)||gi(t.from)?this.file=t.from:this.file=bi(t.from)),gn&&Do){let i=new jo(this.css,t);if(i.text){this.map=i;let s=i.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+Lo(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,i,s={}){let o,r,l;if(t&&typeof t=="object"){let c=t,u=i;if(typeof c.offset=="number"){let h=this.fromOffset(c.offset);t=h.line,i=h.col}else t=c.line,i=c.column;if(typeof u.offset=="number"){let h=this.fromOffset(u.offset);r=h.line,l=h.col}else r=u.line,l=u.column}else if(!i){let c=this.fromOffset(t);t=c.line,i=c.col}let a=this.origin(t,i,r,l);return a?o=new mn(e,a.endLine===void 0?a.line:{column:a.column,line:a.line},a.endLine===void 0?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,s.plugin):o=new mn(e,r===void 0?t:{column:i,line:t},r===void 0?i:{column:l,line:r},this.css,this.file,s.plugin),o.input={column:i,endColumn:l,endLine:r,line:t,source:this.css},this.file&&(lt&&(o.input.url=lt(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let t,i;if(this[ni])i=this[ni];else{let o=this.css.split(`
407
+ `);i=new Array(o.length);let r=0;for(let l=0,a=o.length;l<a;l++)i[l]=r,r+=o[l].length+1;this[ni]=i}t=i[i.length-1];let s=0;if(e>=t)s=i.length-1;else{let o=i.length-2,r;for(;s<o;)if(r=s+(o-s>>1),e<i[r])o=r-1;else if(e>=i[r+1])s=r+1;else{s=r;break}}return{col:e-i[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:bi(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,i,s){if(!this.map)return!1;let o=this.map.consumer(),r=o.originalPositionFor({column:t,line:e});if(!r.source)return!1;let l;typeof i=="number"&&(l=o.originalPositionFor({column:s,line:i}));let a;gi(r.source)?a=lt(r.source):a=new URL(r.source,this.map.consumer().sourceRoot||lt(this.map.mapFile));let c={column:r.column,endColumn:l&&l.column,endLine:l&&l.line,line:r.line,url:a.toString()};if(a.protocol==="file:")if(fn)c.file=fn(a);else throw new Error("file: protocol is not available in this PostCSS build");let u=o.sourceContentFor(r.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 It=Et;Et.default=Et;ii&&ii.registerInput&&ii.registerInput(Et);let{SourceMapConsumer:Gn,SourceMapGenerator:vt}=K,{dirname:yt,relative:Zn,resolve:Kn,sep:Xn}=K,{pathToFileURL:bn}=K,zo=It,Uo=!!(Gn&&vt),Bo=!!(yt&&Kn&&Zn&&Xn),Fo=class{constructor(e,t,i,s){this.stringify=e,this.mapOpts=i.map||{},this.root=t,this.opts=i,this.css=s,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=`
405
408
  `;this.css.includes(`\r
406
409
  `)&&(t=`\r
407
- `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),i=e.root||yt(e.file),r;this.mapOpts.sourcesContent===!1?(r=new Gn(e.text),r.sourcesContent&&(r.sourcesContent=r.sourcesContent.map(()=>null))):r=e.consumer(),this.map.applySourceMap(r,t,this.toUrl(this.path(i)))}}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(),Uo&&Bo&&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=vt.fromSourceMap(e)}else this.map=new vt({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 vt({file:this.outputFile()});let e=1,t=1,i="<no source>",r={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,s;this.stringify(this.root,(l,a,c)=>{if(this.css+=l,a&&c!=="end"&&(r.generated.line=e,r.generated.column=t-1,a.source&&a.source.start?(r.source=this.sourcePath(a),r.original.line=a.source.start.line,r.original.column=a.source.start.column-1,this.map.addMapping(r)):(r.source=i,r.original.line=1,r.original.column=0,this.map.addMapping(r))),o=l.match(/\n/g),o?(e+=o.length,s=l.lastIndexOf(`
408
- `),t=l.length-s):t+=l.length,a&&c!=="start"){let u=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==u.last||u.raws.semicolon)&&(a.source&&a.source.end?(r.source=this.sourcePath(a),r.original.line=a.source.end.line,r.original.column=a.source.end.column-1,r.generated.line=e,r.generated.column=t-2,this.map.addMapping(r)):(r.source=i,r.original.line=1,r.original.column=0,r.generated.line=e,r.generated.column=t-1,this.map.addMapping(r)))}})}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 i=this.opts.to?yt(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=yt(Kn(i,this.mapOpts.annotation)));let r=Zn(i,e);return this.memoizedPaths.set(e,r),r}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 zo(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 i=t.source.input.from;if(i&&!e[i]){e[i]=!0;let r=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(r,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(bn){let i=bn(e).toString();return this.memoizedFileURLs.set(e,i),i}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;Xn==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};var Jn=Fo;let Ho=Pt,vi=class extends Ho{constructor(e){super(e),this.type="comment"}};var Lt=vi;vi.default=vi;let{isClean:Yn,my:Qn}=et,er=Tt,tr=Lt,Vo=Pt,ir,Ri,Mi,nr;function rr(n){return n.map(e=>(e.nodes&&(e.nodes=rr(e.nodes)),delete e.source,e))}function sr(n){if(n[Yn]=!1,n.proxyOf.nodes)for(let e of n.proxyOf.nodes)sr(e)}let ne=class or extends Vo{append(...e){for(let t of e){let i=this.normalize(t,this.last);for(let r of i)this.proxyOf.nodes.push(r)}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(),i,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(i=this.indexes[t],r=e(this.proxyOf.nodes[i],i),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}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")?(...i)=>e[t](...i.map(r=>typeof r=="function"?(o,s)=>r(o.toProxy(),s):r)):t==="every"||t==="some"?i=>e[t]((r,...o)=>i(r.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(i=>i.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(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 i=this.index(e),r=this.normalize(t,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let s of r)this.proxyOf.nodes.splice(i+1,0,s);let o;for(let s in this.indexes)o=this.indexes[s],i<o&&(this.indexes[s]=o+r.length);return this.markDirty(),this}insertBefore(e,t){let i=this.index(e),r=i===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[i],r).reverse();i=this.index(e);for(let l of o)this.proxyOf.nodes.splice(i,0,l);let s;for(let l in this.indexes)s=this.indexes[l],i<=s&&(this.indexes[l]=s+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=rr(ir(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"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 er(e)]}else if(e.selector)e=[new Ri(e)];else if(e.name)e=[new Mi(e)];else if(e.text)e=[new tr(e)];else throw new Error("Unknown node type in node creation");return e.map(r=>(r[Qn]||or.rebuild(r),r=r.proxyOf,r.parent&&r.parent.removeChild(r),r[Yn]&&sr(r),typeof r.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(r.raws.before=t.raws.before.replace(/\S/g,"")),r.parent=this.proxyOf,r))}prepend(...e){e=e.reverse();for(let t of e){let i=this.normalize(t,this.first,"prepend").reverse();for(let r of i)this.proxyOf.nodes.unshift(r);for(let r in this.indexes)this.indexes[r]=this.indexes[r]+i.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 i in this.indexes)t=this.indexes[i],t>=e&&(this.indexes[i]=t-1);return this.markDirty(),this}replaceValues(e,t,i){return i||(i=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,i))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,i)=>{let r;try{r=e(t,i)}catch(o){throw t.addToError(o)}return r!==!1&&t.walk&&(r=t.walk(e)),r})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="atrule"&&e.test(i.name))return t(i,r)}):this.walk((i,r)=>{if(i.type==="atrule"&&i.name===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="atrule")return t(i,r)}))}walkComments(e){return this.walk((t,i)=>{if(t.type==="comment")return e(t,i)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="decl"&&e.test(i.prop))return t(i,r)}):this.walk((i,r)=>{if(i.type==="decl"&&i.prop===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="decl")return t(i,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="rule"&&e.test(i.selector))return t(i,r)}):this.walk((i,r)=>{if(i.type==="rule"&&i.selector===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="rule")return t(i,r)}))}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]}};ne.registerParse=n=>{ir=n};ne.registerRule=n=>{Ri=n};ne.registerAtRule=n=>{Mi=n};ne.registerRoot=n=>{nr=n};var we=ne;ne.default=ne;ne.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,Mi.prototype):n.type==="rule"?Object.setPrototypeOf(n,Ri.prototype):n.type==="decl"?Object.setPrototypeOf(n,er.prototype):n.type==="comment"?Object.setPrototypeOf(n,tr.prototype):n.type==="root"&&Object.setPrototypeOf(n,nr.prototype),n[Qn]=!0,n.nodes&&n.nodes.forEach(e=>{ne.rebuild(e)})};let qo=we,lr,ar,We=class extends qo{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new lr(new ar,this,e).stringify()}};We.registerLazyResult=n=>{lr=n};We.registerProcessor=n=>{ar=n};var Ni=We;We.default=We;let yi=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let i=t.node.rangeBy(t);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in t)this[i]=t[i]}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 cr=yi;yi.default=yi;let Wo=cr,wi=class{constructor(e,t,i){this.processor=e,this.messages=[],this.root=t,this.opts=i,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 i=new Wo(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var Pi=wi;wi.default=wi;const ri=39,vn=34,at=92,yn=47,ct=10,Le=32,ut=12,dt=9,ht=13,Go=91,Zo=93,Ko=40,Xo=41,Jo=123,Yo=125,Qo=59,el=42,tl=58,il=64,pt=/[\t\n\f\r "#'()/;[\\\]{}]/g,ft=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,nl=/.[\r\n"'(/\\]/,wn=/[\da-f]/i;var rl=function(e,t={}){let i=e.css.valueOf(),r=t.ignoreErrors,o,s,l,a,c,u,h,p,x,k,E=i.length,g=0,D=[],F=[];function W(){return g}function L(K){throw e.error("Unclosed "+K,g)}function te(){return F.length===0&&g>=E}function Te(K){if(F.length)return F.pop();if(g>=E)return;let B=K?K.ignoreUnclosed:!1;switch(o=i.charCodeAt(g),o){case ct:case Le:case dt:case ht:case ut:{s=g;do s+=1,o=i.charCodeAt(s);while(o===Le||o===ct||o===dt||o===ht||o===ut);k=["space",i.slice(g,s)],g=s-1;break}case Go:case Zo:case Jo:case Yo:case tl:case Qo:case Xo:{let ue=String.fromCharCode(o);k=[ue,ue,g];break}case Ko:{if(p=D.length?D.pop()[1]:"",x=i.charCodeAt(g+1),p==="url"&&x!==ri&&x!==vn&&x!==Le&&x!==ct&&x!==dt&&x!==ut&&x!==ht){s=g;do{if(u=!1,s=i.indexOf(")",s+1),s===-1)if(r||B){s=g;break}else L("bracket");for(h=s;i.charCodeAt(h-1)===at;)h-=1,u=!u}while(u);k=["brackets",i.slice(g,s+1),g,s],g=s}else s=i.indexOf(")",g+1),a=i.slice(g,s+1),s===-1||nl.test(a)?k=["(","(",g]:(k=["brackets",a,g,s],g=s);break}case ri:case vn:{l=o===ri?"'":'"',s=g;do{if(u=!1,s=i.indexOf(l,s+1),s===-1)if(r||B){s=g+1;break}else L("string");for(h=s;i.charCodeAt(h-1)===at;)h-=1,u=!u}while(u);k=["string",i.slice(g,s+1),g,s],g=s;break}case il:{pt.lastIndex=g+1,pt.test(i),pt.lastIndex===0?s=i.length-1:s=pt.lastIndex-2,k=["at-word",i.slice(g,s+1),g,s],g=s;break}case at:{for(s=g,c=!0;i.charCodeAt(s+1)===at;)s+=1,c=!c;if(o=i.charCodeAt(s+1),c&&o!==yn&&o!==Le&&o!==ct&&o!==dt&&o!==ht&&o!==ut&&(s+=1,wn.test(i.charAt(s)))){for(;wn.test(i.charAt(s+1));)s+=1;i.charCodeAt(s+1)===Le&&(s+=1)}k=["word",i.slice(g,s+1),g,s],g=s;break}default:{o===yn&&i.charCodeAt(g+1)===el?(s=i.indexOf("*/",g+2)+1,s===0&&(r||B?s=i.length:L("comment")),k=["comment",i.slice(g,s+1),g,s],g=s):(ft.lastIndex=g+1,ft.test(i),ft.lastIndex===0?s=i.length-1:s=ft.lastIndex-2,k=["word",i.slice(g,s+1),g,s],D.push(k),g=s);break}}return g++,k}function Ee(K){F.push(K)}return{back:Ee,endOfFile:te,nextToken:Te,position:W}};let ur=we,_t=class extends ur{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 Ti=_t;_t.default=_t;ur.registerAtRule(_t);let dr=we,hr,pr,Oe=class extends dr{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,i){let r=super.normalize(e);if(t){if(i==="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 r)o.raws.before=t.raws.before}return r}removeChild(e,t){let i=this.index(e);return!t&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(e)}toResult(e={}){return new hr(new pr,this,e).stringify()}};Oe.registerLazyResult=n=>{hr=n};Oe.registerProcessor=n=>{pr=n};var tt=Oe;Oe.default=Oe;dr.registerRoot(Oe);let Ge={comma(n){return Ge.split(n,[","],!0)},space(n){let e=[" ",`
409
- `," "];return Ge.split(n,e)},split(n,e,t){let i=[],r="",o=!1,s=0,l=!1,a="",c=!1;for(let u of n)c?c=!1:u==="\\"?c=!0:l?u===a&&(l=!1):u==='"'||u==="'"?(l=!0,a=u):u==="("?s+=1:u===")"?s>0&&(s-=1):s===0&&e.includes(u)&&(o=!0),o?(r!==""&&i.push(r.trim()),r="",o=!1):r+=u;return(t||r!=="")&&i.push(r.trim()),i}};var fr=Ge;Ge.default=Ge;let gr=we,sl=fr,St=class extends gr{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return sl.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,i=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}};var Ii=St;St.default=St;gr.registerRule(St);let ol=Tt,ll=rl,al=Lt,cl=Ti,ul=tt,xn=Ii;const En={empty:!0,space:!0};function dl(n){for(let e=n.length-1;e>=0;e--){let t=n[e],i=t[3]||t[2];if(i)return i}}let hl=class{constructor(e){this.input=e,this.root=new ul,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 cl;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let i,r,o,s=!1,l=!1,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?c.push(i==="("?")":"]"):i==="{"&&c.length>0?c.push("}"):i===c[c.length-1]&&c.pop(),c.length===0)if(i===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){l=!0;break}else if(i==="}"){if(a.length>0){for(o=a.length-1,r=a[o];r&&r[0]==="space";)r=a[--o];r&&(t.source.end=this.getPosition(r[3]||r[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),s&&(e=a[a.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=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let i=0,r;for(let o=t-1;o>=0&&(r=e[o],!(r[0]!=="space"&&(i+=1,i===2)));o--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(e){let t=0,i,r,o;for(let[s,l]of e.entries()){if(i=l,r=i[0],r==="("&&(t+=1),r===")"&&(t-=1),t===0&&r===":")if(!o)this.doubleColon(i);else{if(o[0]==="word"&&o[1]==="progid")continue;return s}o=i}return!1}comment(e){let t=new al;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let i=e[1].slice(2,-2);if(/^\s*$/.test(i))t.text="",t.raws.left=i,t.raws.right="";else{let r=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}}createTokenizer(){this.tokenizer=ll(this.input)}decl(e,t){let i=new ol;this.init(i,e[0][2]);let r=e[e.length-1];for(r[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(r[3]||r[2]||dl(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){i.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),i.raws.between+=o[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let s=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="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"){i.important=!0;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(i.raws.important=u);break}else if(o[1].toLowerCase()==="important"){let u=e.slice(0),h="";for(let p=c;p>0;p--){let x=u[p][0];if(h.trim().indexOf("!")===0&&x!=="space")break;h=u.pop()[1]+h}h.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=h,e=u)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(i.raws.between+=s.map(c=>c[1]).join(""),s=[]),this.raw(i,"value",s.concat(e),t),i.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 xn;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,i=null,r=!1,o=null,s=[],l=e[1].startsWith("--"),a=[],c=e;for(;c;){if(i=c[0],a.push(c),i==="("||i==="[")o||(o=c),s.push(i==="("?")":"]");else if(l&&r&&i==="{")o||(o=c),s.push("}");else if(s.length===0)if(i===";")if(r){this.decl(a,l);return}else break;else if(i==="{"){this.rule(a);return}else if(i==="}"){this.tokenizer.back(a.pop()),t=!0;break}else i===":"&&(r=!0);else i===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&&r){if(!l)for(;a.length&&(c=a[a.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}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,i,r){let o,s,l=i.length,a="",c=!0,u,h;for(let p=0;p<l;p+=1)o=i[p],s=o[0],s==="space"&&p===l-1&&!r?c=!1:s==="comment"?(h=i[p-1]?i[p-1][0]:"empty",u=i[p+1]?i[p+1][0]:"empty",!En[h]&&!En[u]?a.slice(-1)===","?c=!1:a+=o[1]:c=!1):a+=o[1];if(!c){let p=i.reduce((x,k)=>x+k[1],"");e.raws[t]={raw:p,value:a}}e[t]=a}rule(e){e.pop();let t=new xn;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)i=e.pop()[1]+i;return i}spacesAndCommentsFromStart(e){let t,i="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)i+=e.shift()[1];return i}spacesFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],t==="space");)i=e.pop()[1]+i;return i}stringFrom(e,t){let i="";for(let r=t;r<e.length;r++)i+=e[r][1];return e.splice(t,e.length-t),i}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 pl=hl;let fl=we,gl=pl,ml=It;function $t(n,e){let t=new ml(n,e),i=new gl(t);try{i.parse()}catch(r){throw r}return i.root}var Li=$t;$t.default=$t;fl.registerParse($t);let{isClean:Q,my:bl}=et,vl=Jn,yl=Nt,wl=we,xl=Ni,_n=Pi,El=Li,_l=tt;const Sl={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},$l={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},Al={Once:!0,postcssPlugin:!0,prepare:!0},Re=0;function je(n){return typeof n=="object"&&typeof n.then=="function"}function mr(n){let e=!1,t=Sl[n.type];return n.type==="decl"?e=n.prop.toLowerCase():n.type==="atrule"&&(e=n.name.toLowerCase()),e&&n.append?[t,t+"-"+e,Re,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:n.append?[t,Re,t+"Exit"]:[t,t+"Exit"]}function Sn(n){let e;return n.type==="document"?e=["Document",Re,"DocumentExit"]:n.type==="root"?e=["Root",Re,"RootExit"]:e=mr(n),{eventIndex:0,events:e,iterator:0,node:n,visitorIndex:0,visitors:[]}}function xi(n){return n[Q]=!1,n.nodes&&n.nodes.forEach(e=>xi(e)),n}let Ei={},Me=class br{constructor(e,t,i){this.stringified=!1,this.processed=!1;let r;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))r=xi(t);else if(t instanceof br||t instanceof _n)r=xi(t.root),t.map&&(typeof i.map>"u"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=t.map);else{let o=El;i.syntax&&(o=i.syntax.parse),i.parser&&(o=i.parser),o.parse&&(o=o.parse);try{r=o(t,i)}catch(s){this.processed=!0,this.error=s}r&&!r[bl]&&wl.rebuild(r)}this.result=new _n(e,r,i),this.helpers={...Ei,postcss:Ei,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 i=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=i.postcssPlugin,e.setMessage()):i.postcssVersion}catch(r){console&&console.error&&console.error(r)}return e}prepareVisitors(){this.listeners={};let e=(t,i,r)=>{this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push([t,r])};for(let t of this.plugins)if(typeof t=="object")for(let i in t){if(!$l[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Al[i])if(typeof t[i]=="object")for(let r in t[i])r==="*"?e(t,i,t[i][r]):e(t,i+"-"+r.toLowerCase(),t[i][r]);else typeof t[i]=="function"&&e(t,i,t[i])}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],i=this.runOnRoot(t);if(je(i))try{await i}catch(r){throw this.handleError(r)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Q];){e[Q]=!0;let t=[Sn(e)];for(;t.length>0;){let i=this.visitTick(t);if(je(i))try{await i}catch(r){let o=t[t.length-1].node;throw this.handleError(r,o)}}}if(this.listeners.OnceExit)for(let[t,i]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let r=e.nodes.map(o=>i(o,this.helpers));await Promise.all(r)}else await i(e,this.helpers)}catch(r){throw this.handleError(r)}}}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(i=>e.Once(i,this.helpers));return je(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=yl;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new vl(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[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(je(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Q];)e[Q]=!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[i,r]of e){this.result.lastPlugin=i;let o;try{o=r(t,this.helpers)}catch(s){throw this.handleError(s,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(je(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:i,visitors:r}=t;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){let[s,l]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=s;try{return l(i.toProxy(),this.helpers)}catch(a){throw this.handleError(a,i)}}if(t.iterator!==0){let s=t.iterator,l;for(;l=i.nodes[i.indexes[s]];)if(i.indexes[s]+=1,!l[Q]){l[Q]=!0,e.push(Sn(l));return}t.iterator=0,delete i.indexes[s]}let o=t.events;for(;t.eventIndex<o.length;){let s=o[t.eventIndex];if(t.eventIndex+=1,s===Re){i.nodes&&i.nodes.length&&(i[Q]=!0,t.iterator=i.getIterator());return}else if(this.listeners[s]){t.visitors=this.listeners[s];return}}e.pop()}walkSync(e){e[Q]=!0;let t=mr(e);for(let i of t)if(i===Re)e.nodes&&e.each(r=>{r[Q]||this.walkSync(r)});else{let r=this.listeners[i];if(r&&this.visitSync(r,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"}};Me.registerPostcss=n=>{Ei=n};var vr=Me;Me.default=Me;_l.registerLazyResult(Me);xl.registerLazyResult(Me);let Cl=Jn,kl=Nt,Ol=Li;const Rl=Pi;let _i=class{constructor(e,t,i){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=i,this._map=void 0;let r,o=kl;this.result=new Rl(this._processor,r,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let l=new Cl(o,r,this._opts,t);if(l.isMap()){let[a,c]=l.generate();a&&(this.result.css=a),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=Ol;try{e=t(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Ml=_i;_i.default=_i;let Nl=Ml,Pl=vr,Tl=Ni,Il=tt,Ze=class{constructor(e=[]){this.version="8.4.32",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let i of e)if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),typeof i=="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if(typeof i=="object"&&i.postcssPlugin)t.push(i);else if(typeof i=="function")t.push(i);else if(!(typeof i=="object"&&(i.parse||i.stringify)))throw new Error(i+" 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 Nl(this,e,t):new Pl(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Ll=Ze;Ze.default=Ze;Il.registerProcessor(Ze);Tl.registerProcessor(Ze);let jl=Tt,Dl=Wn,zl=Lt,Bl=Ti,Ul=It,Fl=tt,Hl=Ii;function Ke(n,e){if(Array.isArray(n))return n.map(r=>Ke(r));let{inputs:t,...i}=n;if(t){e=[];for(let r of t){let o={...r,__proto__:Ul.prototype};o.map&&(o.map={...o.map,__proto__:Dl.prototype}),e.push(o)}}if(i.nodes&&(i.nodes=n.nodes.map(r=>Ke(r,e))),i.source){let{inputId:r,...o}=i.source;i.source=o,r!=null&&(i.source.input=e[r])}if(i.type==="root")return new Fl(i);if(i.type==="decl")return new jl(i);if(i.type==="rule")return new Hl(i);if(i.type==="comment")return new zl(i);if(i.type==="atrule")return new Bl(i);throw new Error("Unknown node type: "+n.type)}var Vl=Ke;Ke.default=Ke;var $n={};let ql=Oi,yr=Tt,Wl=vr,Gl=we,ji=Ll,Zl=Nt,Kl=Vl,wr=Ni,Xl=cr,xr=Lt,Er=Ti,Jl=Pi,Yl=It,Ql=Li,ea=fr,_r=Ii,Sr=tt,ta=Pt;function A(...n){return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new ji(n)}A.plugin=function(e,t){let i=!1;function r(...s){console&&console.warn&&!i&&(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
410
+ `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),i=e.root||yt(e.file),s;this.mapOpts.sourcesContent===!1?(s=new Gn(e.text),s.sourcesContent&&(s.sourcesContent=s.sourcesContent.map(()=>null))):s=e.consumer(),this.map.applySourceMap(s,t,this.toUrl(this.path(i)))}}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(),Bo&&Uo&&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=vt.fromSourceMap(e)}else this.map=new vt({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 vt({file:this.outputFile()});let e=1,t=1,i="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,r;this.stringify(this.root,(l,a,c)=>{if(this.css+=l,a&&c!=="end"&&(s.generated.line=e,s.generated.column=t-1,a.source&&a.source.start?(s.source=this.sourcePath(a),s.original.line=a.source.start.line,s.original.column=a.source.start.column-1,this.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,this.map.addMapping(s))),o=l.match(/\n/g),o?(e+=o.length,r=l.lastIndexOf(`
411
+ `),t=l.length-r):t+=l.length,a&&c!=="start"){let u=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==u.last||u.raws.semicolon)&&(a.source&&a.source.end?(s.source=this.sourcePath(a),s.original.line=a.source.end.line,s.original.column=a.source.end.column-1,s.generated.line=e,s.generated.column=t-2,this.map.addMapping(s)):(s.source=i,s.original.line=1,s.original.column=0,s.generated.line=e,s.generated.column=t-1,this.map.addMapping(s)))}})}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 i=this.opts.to?yt(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=yt(Kn(i,this.mapOpts.annotation)));let s=Zn(i,e);return this.memoizedPaths.set(e,s),s}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 zo(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 i=t.source.input.from;if(i&&!e[i]){e[i]=!0;let s=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(s,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(bn){let i=bn(e).toString();return this.memoizedFileURLs.set(e,i),i}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;Xn==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};var Jn=Fo;let Ho=Pt,vi=class extends Ho{constructor(e){super(e),this.type="comment"}};var Lt=vi;vi.default=vi;let{isClean:Yn,my:Qn}=et,es=Tt,ts=Lt,Vo=Pt,is,Ri,Mi,ns;function ss(n){return n.map(e=>(e.nodes&&(e.nodes=ss(e.nodes)),delete e.source,e))}function rs(n){if(n[Yn]=!1,n.proxyOf.nodes)for(let e of n.proxyOf.nodes)rs(e)}let se=class os extends Vo{append(...e){for(let t of e){let i=this.normalize(t,this.last);for(let s of i)this.proxyOf.nodes.push(s)}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(),i,s;for(;this.indexes[t]<this.proxyOf.nodes.length&&(i=this.indexes[t],s=e(this.proxyOf.nodes[i],i),s!==!1);)this.indexes[t]+=1;return delete this.indexes[t],s}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")?(...i)=>e[t](...i.map(s=>typeof s=="function"?(o,r)=>s(o.toProxy(),r):s)):t==="every"||t==="some"?i=>e[t]((s,...o)=>i(s.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(i=>i.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(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 i=this.index(e),s=this.normalize(t,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let r of s)this.proxyOf.nodes.splice(i+1,0,r);let o;for(let r in this.indexes)o=this.indexes[r],i<o&&(this.indexes[r]=o+s.length);return this.markDirty(),this}insertBefore(e,t){let i=this.index(e),s=i===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[i],s).reverse();i=this.index(e);for(let l of o)this.proxyOf.nodes.splice(i,0,l);let r;for(let l in this.indexes)r=this.indexes[l],i<=r&&(this.indexes[l]=r+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=ss(is(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"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 es(e)]}else if(e.selector)e=[new Ri(e)];else if(e.name)e=[new Mi(e)];else if(e.text)e=[new ts(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[Qn]||os.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[Yn]&&rs(s),typeof s.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(s.raws.before=t.raws.before.replace(/\S/g,"")),s.parent=this.proxyOf,s))}prepend(...e){e=e.reverse();for(let t of e){let i=this.normalize(t,this.first,"prepend").reverse();for(let s of i)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+i.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 i in this.indexes)t=this.indexes[i],t>=e&&(this.indexes[i]=t-1);return this.markDirty(),this}replaceValues(e,t,i){return i||(i=t,t={}),this.walkDecls(s=>{t.props&&!t.props.includes(s.prop)||t.fast&&!s.value.includes(t.fast)||(s.value=s.value.replace(e,i))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,i)=>{let s;try{s=e(t,i)}catch(o){throw t.addToError(o)}return s!==!1&&t.walk&&(s=t.walk(e)),s})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((i,s)=>{if(i.type==="atrule"&&e.test(i.name))return t(i,s)}):this.walk((i,s)=>{if(i.type==="atrule"&&i.name===e)return t(i,s)}):(t=e,this.walk((i,s)=>{if(i.type==="atrule")return t(i,s)}))}walkComments(e){return this.walk((t,i)=>{if(t.type==="comment")return e(t,i)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((i,s)=>{if(i.type==="decl"&&e.test(i.prop))return t(i,s)}):this.walk((i,s)=>{if(i.type==="decl"&&i.prop===e)return t(i,s)}):(t=e,this.walk((i,s)=>{if(i.type==="decl")return t(i,s)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((i,s)=>{if(i.type==="rule"&&e.test(i.selector))return t(i,s)}):this.walk((i,s)=>{if(i.type==="rule"&&i.selector===e)return t(i,s)}):(t=e,this.walk((i,s)=>{if(i.type==="rule")return t(i,s)}))}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]}};se.registerParse=n=>{is=n};se.registerRule=n=>{Ri=n};se.registerAtRule=n=>{Mi=n};se.registerRoot=n=>{ns=n};var we=se;se.default=se;se.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,Mi.prototype):n.type==="rule"?Object.setPrototypeOf(n,Ri.prototype):n.type==="decl"?Object.setPrototypeOf(n,es.prototype):n.type==="comment"?Object.setPrototypeOf(n,ts.prototype):n.type==="root"&&Object.setPrototypeOf(n,ns.prototype),n[Qn]=!0,n.nodes&&n.nodes.forEach(e=>{se.rebuild(e)})};let qo=we,ls,as,We=class extends qo{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new ls(new as,this,e).stringify()}};We.registerLazyResult=n=>{ls=n};We.registerProcessor=n=>{as=n};var Ni=We;We.default=We;let yi=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let i=t.node.rangeBy(t);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in t)this[i]=t[i]}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 cs=yi;yi.default=yi;let Wo=cs,wi=class{constructor(e,t,i){this.processor=e,this.messages=[],this.root=t,this.opts=i,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 i=new Wo(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var Pi=wi;wi.default=wi;const si=39,vn=34,at=92,yn=47,ct=10,Le=32,ut=12,dt=9,ht=13,Go=91,Zo=93,Ko=40,Xo=41,Jo=123,Yo=125,Qo=59,el=42,tl=58,il=64,pt=/[\t\n\f\r "#'()/;[\\\]{}]/g,ft=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,nl=/.[\r\n"'(/\\]/,wn=/[\da-f]/i;var sl=function(e,t={}){let i=e.css.valueOf(),s=t.ignoreErrors,o,r,l,a,c,u,h,p,x,k,_=i.length,m=0,D=[],F=[];function W(){return m}function L(X){throw e.error("Unclosed "+X,m)}function ie(){return F.length===0&&m>=_}function Te(X){if(F.length)return F.pop();if(m>=_)return;let U=X?X.ignoreUnclosed:!1;switch(o=i.charCodeAt(m),o){case ct:case Le:case dt:case ht:case ut:{r=m;do r+=1,o=i.charCodeAt(r);while(o===Le||o===ct||o===dt||o===ht||o===ut);k=["space",i.slice(m,r)],m=r-1;break}case Go:case Zo:case Jo:case Yo:case tl:case Qo:case Xo:{let ue=String.fromCharCode(o);k=[ue,ue,m];break}case Ko:{if(p=D.length?D.pop()[1]:"",x=i.charCodeAt(m+1),p==="url"&&x!==si&&x!==vn&&x!==Le&&x!==ct&&x!==dt&&x!==ut&&x!==ht){r=m;do{if(u=!1,r=i.indexOf(")",r+1),r===-1)if(s||U){r=m;break}else L("bracket");for(h=r;i.charCodeAt(h-1)===at;)h-=1,u=!u}while(u);k=["brackets",i.slice(m,r+1),m,r],m=r}else r=i.indexOf(")",m+1),a=i.slice(m,r+1),r===-1||nl.test(a)?k=["(","(",m]:(k=["brackets",a,m,r],m=r);break}case si:case vn:{l=o===si?"'":'"',r=m;do{if(u=!1,r=i.indexOf(l,r+1),r===-1)if(s||U){r=m+1;break}else L("string");for(h=r;i.charCodeAt(h-1)===at;)h-=1,u=!u}while(u);k=["string",i.slice(m,r+1),m,r],m=r;break}case il:{pt.lastIndex=m+1,pt.test(i),pt.lastIndex===0?r=i.length-1:r=pt.lastIndex-2,k=["at-word",i.slice(m,r+1),m,r],m=r;break}case at:{for(r=m,c=!0;i.charCodeAt(r+1)===at;)r+=1,c=!c;if(o=i.charCodeAt(r+1),c&&o!==yn&&o!==Le&&o!==ct&&o!==dt&&o!==ht&&o!==ut&&(r+=1,wn.test(i.charAt(r)))){for(;wn.test(i.charAt(r+1));)r+=1;i.charCodeAt(r+1)===Le&&(r+=1)}k=["word",i.slice(m,r+1),m,r],m=r;break}default:{o===yn&&i.charCodeAt(m+1)===el?(r=i.indexOf("*/",m+2)+1,r===0&&(s||U?r=i.length:L("comment")),k=["comment",i.slice(m,r+1),m,r],m=r):(ft.lastIndex=m+1,ft.test(i),ft.lastIndex===0?r=i.length-1:r=ft.lastIndex-2,k=["word",i.slice(m,r+1),m,r],D.push(k),m=r);break}}return m++,k}function Ee(X){F.push(X)}return{back:Ee,endOfFile:ie,nextToken:Te,position:W}};let us=we,_t=class extends us{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 Ti=_t;_t.default=_t;us.registerAtRule(_t);let ds=we,hs,ps,Oe=class extends ds{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,i){let s=super.normalize(e);if(t){if(i==="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 s)o.raws.before=t.raws.before}return s}removeChild(e,t){let i=this.index(e);return!t&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(e)}toResult(e={}){return new hs(new ps,this,e).stringify()}};Oe.registerLazyResult=n=>{hs=n};Oe.registerProcessor=n=>{ps=n};var tt=Oe;Oe.default=Oe;ds.registerRoot(Oe);let Ge={comma(n){return Ge.split(n,[","],!0)},space(n){let e=[" ",`
412
+ `," "];return Ge.split(n,e)},split(n,e,t){let i=[],s="",o=!1,r=0,l=!1,a="",c=!1;for(let u of n)c?c=!1:u==="\\"?c=!0:l?u===a&&(l=!1):u==='"'||u==="'"?(l=!0,a=u):u==="("?r+=1:u===")"?r>0&&(r-=1):r===0&&e.includes(u)&&(o=!0),o?(s!==""&&i.push(s.trim()),s="",o=!1):s+=u;return(t||s!=="")&&i.push(s.trim()),i}};var fs=Ge;Ge.default=Ge;let ms=we,rl=fs,St=class extends ms{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return rl.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,i=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}};var Ii=St;St.default=St;ms.registerRule(St);let ol=Tt,ll=sl,al=Lt,cl=Ti,ul=tt,xn=Ii;const En={empty:!0,space:!0};function dl(n){for(let e=n.length-1;e>=0;e--){let t=n[e],i=t[3]||t[2];if(i)return i}}let hl=class{constructor(e){this.input=e,this.root=new ul,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 cl;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let i,s,o,r=!1,l=!1,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?c.push(i==="("?")":"]"):i==="{"&&c.length>0?c.push("}"):i===c[c.length-1]&&c.pop(),c.length===0)if(i===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){l=!0;break}else if(i==="}"){if(a.length>0){for(o=a.length-1,s=a[o];s&&s[0]==="space";)s=a[--o];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){r=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),r&&(e=a[a.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=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let i=0,s;for(let o=t-1;o>=0&&(s=e[o],!(s[0]!=="space"&&(i+=1,i===2)));o--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let t=0,i,s,o;for(let[r,l]of e.entries()){if(i=l,s=i[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!o)this.doubleColon(i);else{if(o[0]==="word"&&o[1]==="progid")continue;return r}o=i}return!1}comment(e){let t=new al;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let i=e[1].slice(2,-2);if(/^\s*$/.test(i))t.text="",t.raws.left=i,t.raws.right="";else{let s=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}}createTokenizer(){this.tokenizer=ll(this.input)}decl(e,t){let i=new ol;this.init(i,e[0][2]);let s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(s[3]||s[2]||dl(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){i.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),i.raws.between+=o[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let r=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)r.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(o=e[c],o[1].toLowerCase()==="!important"){i.important=!0;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(i.raws.important=u);break}else if(o[1].toLowerCase()==="important"){let u=e.slice(0),h="";for(let p=c;p>0;p--){let x=u[p][0];if(h.trim().indexOf("!")===0&&x!=="space")break;h=u.pop()[1]+h}h.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=h,e=u)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(i.raws.between+=r.map(c=>c[1]).join(""),r=[]),this.raw(i,"value",r.concat(e),t),i.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 xn;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,i=null,s=!1,o=null,r=[],l=e[1].startsWith("--"),a=[],c=e;for(;c;){if(i=c[0],a.push(c),i==="("||i==="[")o||(o=c),r.push(i==="("?")":"]");else if(l&&s&&i==="{")o||(o=c),r.push("}");else if(r.length===0)if(i===";")if(s){this.decl(a,l);return}else break;else if(i==="{"){this.rule(a);return}else if(i==="}"){this.tokenizer.back(a.pop()),t=!0;break}else i===":"&&(s=!0);else i===r[r.length-1]&&(r.pop(),r.length===0&&(o=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),r.length>0&&this.unclosedBracket(o),t&&s){if(!l)for(;a.length&&(c=a[a.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}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,i,s){let o,r,l=i.length,a="",c=!0,u,h;for(let p=0;p<l;p+=1)o=i[p],r=o[0],r==="space"&&p===l-1&&!s?c=!1:r==="comment"?(h=i[p-1]?i[p-1][0]:"empty",u=i[p+1]?i[p+1][0]:"empty",!En[h]&&!En[u]?a.slice(-1)===","?c=!1:a+=o[1]:c=!1):a+=o[1];if(!c){let p=i.reduce((x,k)=>x+k[1],"");e.raws[t]={raw:p,value:a}}e[t]=a}rule(e){e.pop();let t=new xn;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)i=e.pop()[1]+i;return i}spacesAndCommentsFromStart(e){let t,i="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)i+=e.shift()[1];return i}spacesFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],t==="space");)i=e.pop()[1]+i;return i}stringFrom(e,t){let i="";for(let s=t;s<e.length;s++)i+=e[s][1];return e.splice(t,e.length-t),i}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 pl=hl;let fl=we,ml=pl,gl=It;function $t(n,e){let t=new gl(n,e),i=new ml(t);try{i.parse()}catch(s){throw s}return i.root}var Li=$t;$t.default=$t;fl.registerParse($t);let{isClean:ee,my:bl}=et,vl=Jn,yl=Nt,wl=we,xl=Ni,_n=Pi,El=Li,_l=tt;const Sl={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},$l={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},Al={Once:!0,postcssPlugin:!0,prepare:!0},Re=0;function je(n){return typeof n=="object"&&typeof n.then=="function"}function gs(n){let e=!1,t=Sl[n.type];return n.type==="decl"?e=n.prop.toLowerCase():n.type==="atrule"&&(e=n.name.toLowerCase()),e&&n.append?[t,t+"-"+e,Re,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:n.append?[t,Re,t+"Exit"]:[t,t+"Exit"]}function Sn(n){let e;return n.type==="document"?e=["Document",Re,"DocumentExit"]:n.type==="root"?e=["Root",Re,"RootExit"]:e=gs(n),{eventIndex:0,events:e,iterator:0,node:n,visitorIndex:0,visitors:[]}}function xi(n){return n[ee]=!1,n.nodes&&n.nodes.forEach(e=>xi(e)),n}let Ei={},Me=class bs{constructor(e,t,i){this.stringified=!1,this.processed=!1;let s;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=xi(t);else if(t instanceof bs||t instanceof _n)s=xi(t.root),t.map&&(typeof i.map>"u"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=t.map);else{let o=El;i.syntax&&(o=i.syntax.parse),i.parser&&(o=i.parser),o.parse&&(o=o.parse);try{s=o(t,i)}catch(r){this.processed=!0,this.error=r}s&&!s[bl]&&wl.rebuild(s)}this.result=new _n(e,s,i),this.helpers={...Ei,postcss:Ei,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 i=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=i.postcssPlugin,e.setMessage()):i.postcssVersion}catch(s){console&&console.error&&console.error(s)}return e}prepareVisitors(){this.listeners={};let e=(t,i,s)=>{this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push([t,s])};for(let t of this.plugins)if(typeof t=="object")for(let i in t){if(!$l[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Al[i])if(typeof t[i]=="object")for(let s in t[i])s==="*"?e(t,i,t[i][s]):e(t,i+"-"+s.toLowerCase(),t[i][s]);else typeof t[i]=="function"&&e(t,i,t[i])}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],i=this.runOnRoot(t);if(je(i))try{await i}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ee];){e[ee]=!0;let t=[Sn(e)];for(;t.length>0;){let i=this.visitTick(t);if(je(i))try{await i}catch(s){let o=t[t.length-1].node;throw this.handleError(s,o)}}}if(this.listeners.OnceExit)for(let[t,i]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let s=e.nodes.map(o=>i(o,this.helpers));await Promise.all(s)}else await i(e,this.helpers)}catch(s){throw this.handleError(s)}}}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(i=>e.Once(i,this.helpers));return je(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=yl;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new vl(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[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(je(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[ee];)e[ee]=!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[i,s]of e){this.result.lastPlugin=i;let o;try{o=s(t,this.helpers)}catch(r){throw this.handleError(r,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(je(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:i,visitors:s}=t;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){let[r,l]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=r;try{return l(i.toProxy(),this.helpers)}catch(a){throw this.handleError(a,i)}}if(t.iterator!==0){let r=t.iterator,l;for(;l=i.nodes[i.indexes[r]];)if(i.indexes[r]+=1,!l[ee]){l[ee]=!0,e.push(Sn(l));return}t.iterator=0,delete i.indexes[r]}let o=t.events;for(;t.eventIndex<o.length;){let r=o[t.eventIndex];if(t.eventIndex+=1,r===Re){i.nodes&&i.nodes.length&&(i[ee]=!0,t.iterator=i.getIterator());return}else if(this.listeners[r]){t.visitors=this.listeners[r];return}}e.pop()}walkSync(e){e[ee]=!0;let t=gs(e);for(let i of t)if(i===Re)e.nodes&&e.each(s=>{s[ee]||this.walkSync(s)});else{let s=this.listeners[i];if(s&&this.visitSync(s,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"}};Me.registerPostcss=n=>{Ei=n};var vs=Me;Me.default=Me;_l.registerLazyResult(Me);xl.registerLazyResult(Me);let Cl=Jn,kl=Nt,Ol=Li;const Rl=Pi;let _i=class{constructor(e,t,i){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=i,this._map=void 0;let s,o=kl;this.result=new Rl(this._processor,s,this._opts),this.result.css=t;let r=this;Object.defineProperty(this.result,"root",{get(){return r.root}});let l=new Cl(o,s,this._opts,t);if(l.isMap()){let[a,c]=l.generate();a&&(this.result.css=a),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=Ol;try{e=t(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Ml=_i;_i.default=_i;let Nl=Ml,Pl=vs,Tl=Ni,Il=tt,Ze=class{constructor(e=[]){this.version="8.4.32",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let i of e)if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),typeof i=="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if(typeof i=="object"&&i.postcssPlugin)t.push(i);else if(typeof i=="function")t.push(i);else if(!(typeof i=="object"&&(i.parse||i.stringify)))throw new Error(i+" 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 Nl(this,e,t):new Pl(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Ll=Ze;Ze.default=Ze;Il.registerProcessor(Ze);Tl.registerProcessor(Ze);let jl=Tt,Dl=Wn,zl=Lt,Ul=Ti,Bl=It,Fl=tt,Hl=Ii;function Ke(n,e){if(Array.isArray(n))return n.map(s=>Ke(s));let{inputs:t,...i}=n;if(t){e=[];for(let s of t){let o={...s,__proto__:Bl.prototype};o.map&&(o.map={...o.map,__proto__:Dl.prototype}),e.push(o)}}if(i.nodes&&(i.nodes=n.nodes.map(s=>Ke(s,e))),i.source){let{inputId:s,...o}=i.source;i.source=o,s!=null&&(i.source.input=e[s])}if(i.type==="root")return new Fl(i);if(i.type==="decl")return new jl(i);if(i.type==="rule")return new Hl(i);if(i.type==="comment")return new zl(i);if(i.type==="atrule")return new Ul(i);throw new Error("Unknown node type: "+n.type)}var Vl=Ke;Ke.default=Ke;var $n={};let ql=Oi,ys=Tt,Wl=vs,Gl=we,ji=Ll,Zl=Nt,Kl=Vl,ws=Ni,Xl=cs,xs=Lt,Es=Ti,Jl=Pi,Yl=It,Ql=Li,ea=fs,_s=Ii,Ss=tt,ta=Pt;function A(...n){return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new ji(n)}A.plugin=function(e,t){let i=!1;function s(...r){console&&console.warn&&!i&&(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
410
413
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),$n.LANG&&$n.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
411
- https://www.w3ctech.com/topic/2226`));let l=t(...s);return l.postcssPlugin=e,l.postcssVersion=new ji().version,l}let o;return Object.defineProperty(r,"postcss",{get(){return o||(o=r()),o}}),r.process=function(s,l,a){return A([r(a)]).process(s,l)},r};A.stringify=Zl;A.parse=Ql;A.fromJSON=Kl;A.list=ea;A.comment=n=>new xr(n);A.atRule=n=>new Er(n);A.decl=n=>new yr(n);A.rule=n=>new _r(n);A.root=n=>new Sr(n);A.document=n=>new wr(n);A.CssSyntaxError=ql;A.Declaration=yr;A.Container=Gl;A.Processor=ji;A.Document=wr;A.Comment=xr;A.Warning=Xl;A.AtRule=Er;A.Result=Jl;A.Input=Yl;A.Rule=_r;A.Root=Sr;A.Node=ta;Wl.registerPostcss(A);var ia=A;A.default=A;const M=Fn(ia);M.stringify;M.fromJSON;M.plugin;M.parse;M.list;M.document;M.comment;M.atRule;M.rule;M.decl;M.root;M.CssSyntaxError;M.Declaration;M.Container;M.Processor;M.Document;M.Comment;M.Warning;M.AtRule;M.Result;M.Input;M.Rule;M.Root;M.Node;var na=function(e){const t=e.prefix,i=/\s+$/.test(t)?t:`${t} `,r=e.ignoreFiles?[].concat(e.ignoreFiles):[],o=e.includeFiles?[].concat(e.includeFiles):[];return function(s){r.length&&s.source.input.file&&An(s.source.input.file,r)||o.length&&s.source.input.file&&!An(s.source.input.file,o)||s.walkRules(l=>{const a=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes"];l.parent&&a.includes(l.parent.name)||(l.selectors=l.selectors.map(c=>e.exclude&&ra(c,e.exclude)?c:e.transform?e.transform(t,c,i+c,s.source.input.file,l):i+c))})}};function An(n,e){return e.some(t=>t instanceof RegExp?t.test(n):n.includes(t))}function ra(n,e){return e.some(t=>t instanceof RegExp?t.test(n):n===t)}const sa=Fn(na),oa="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}",la="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 aa(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function $r(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error("set is read-only")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(e=>{const t=n[e],i=typeof t;(i==="object"||i==="function")&&!Object.isFrozen(t)&&$r(t)}),n}class Cn{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Ar(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function le(n,...e){const t=Object.create(null);for(const i in n)t[i]=n[i];return e.forEach(function(i){for(const r in i)t[r]=i[r]}),t}const ca="</span>",kn=n=>!!n.scope,ua=(n,{prefix:e})=>{if(n.startsWith("language:"))return n.replace("language:","language-");if(n.includes(".")){const t=n.split(".");return[`${e}${t.shift()}`,...t.map((i,r)=>`${i}${"_".repeat(r+1)}`)].join(" ")}return`${e}${n}`};class da{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=Ar(e)}openNode(e){if(!kn(e))return;const t=ua(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){kn(e)&&(this.buffer+=ca)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const On=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class Di{constructor(){this.rootNode=On(),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=On({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(i=>this._walk(e,i)),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=>{Di._collapse(t)}))}}class ha extends Di{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const i=e.root;t&&(i.scope=`language:${t}`),this.add(i)}toHTML(){return new da(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Xe(n){return n?typeof n=="string"?n:n.source:null}function Cr(n){return xe("(?=",n,")")}function pa(n){return xe("(?:",n,")*")}function fa(n){return xe("(?:",n,")?")}function xe(...n){return n.map(e=>Xe(e)).join("")}function ga(n){const e=n[n.length-1];return typeof e=="object"&&e.constructor===Object?(n.splice(n.length-1,1),e):{}}function zi(...n){return"("+(ga(n).capture?"":"?:")+n.map(e=>Xe(e)).join("|")+")"}function kr(n){return new RegExp(n.toString()+"|").exec("").length-1}function ma(n,e){const t=n&&n.exec(e);return t&&t.index===0}const ba=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Bi(n,{joinWith:e}){let t=0;return n.map(i=>{t+=1;const r=t;let o=Xe(i),s="";for(;o.length>0;){const l=ba.exec(o);if(!l){s+=o;break}s+=o.substring(0,l.index),o=o.substring(l.index+l[0].length),l[0][0]==="\\"&&l[1]?s+="\\"+String(Number(l[1])+r):(s+=l[0],l[0]==="("&&t++)}return s}).map(i=>`(${i})`).join(e)}const va=/\b\B/,Or="[a-zA-Z]\\w*",Ui="[a-zA-Z_]\\w*",Rr="\\b\\d+(\\.\\d+)?",Mr="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Nr="\\b(0b[01]+)",ya="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",wa=(n={})=>{const e=/^#![ ]*\//;return n.binary&&(n.begin=xe(e,/.*\b/,n.binary,/\b.*/)),le({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,i)=>{t.index!==0&&i.ignoreMatch()}},n)},Je={begin:"\\\\[\\s\\S]",relevance:0},xa={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Je]},Ea={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Je]},_a={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/},jt=function(n,e,t={}){const i=le({scope:"comment",begin:n,end:e,contains:[]},t);i.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 r=zi("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 i.contains.push({begin:xe(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),i},Sa=jt("//","$"),$a=jt("/\\*","\\*/"),Aa=jt("#","$"),Ca={scope:"number",begin:Rr,relevance:0},ka={scope:"number",begin:Mr,relevance:0},Oa={scope:"number",begin:Nr,relevance:0},Ra={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Je,{begin:/\[/,end:/\]/,relevance:0,contains:[Je]}]},Ma={scope:"title",begin:Or,relevance:0},Na={scope:"title",begin:Ui,relevance:0},Pa={begin:"\\.\\s*"+Ui,relevance:0},Ta=function(n){return Object.assign(n,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var gt=Object.freeze({__proto__:null,APOS_STRING_MODE:xa,BACKSLASH_ESCAPE:Je,BINARY_NUMBER_MODE:Oa,BINARY_NUMBER_RE:Nr,COMMENT:jt,C_BLOCK_COMMENT_MODE:$a,C_LINE_COMMENT_MODE:Sa,C_NUMBER_MODE:ka,C_NUMBER_RE:Mr,END_SAME_AS_BEGIN:Ta,HASH_COMMENT_MODE:Aa,IDENT_RE:Or,MATCH_NOTHING_RE:va,METHOD_GUARD:Pa,NUMBER_MODE:Ca,NUMBER_RE:Rr,PHRASAL_WORDS_MODE:_a,QUOTE_STRING_MODE:Ea,REGEXP_MODE:Ra,RE_STARTERS_RE:ya,SHEBANG:wa,TITLE_MODE:Ma,UNDERSCORE_IDENT_RE:Ui,UNDERSCORE_TITLE_MODE:Na});function Ia(n,e){n.input[n.index-1]==="."&&e.ignoreMatch()}function La(n,e){n.className!==void 0&&(n.scope=n.className,delete n.className)}function ja(n,e){e&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=Ia,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function Da(n,e){Array.isArray(n.illegal)&&(n.illegal=zi(...n.illegal))}function za(n,e){if(n.match){if(n.begin||n.end)throw new Error("begin & end are not supported with match");n.begin=n.match,delete n.match}}function Ba(n,e){n.relevance===void 0&&(n.relevance=1)}const Ua=(n,e)=>{if(!n.beforeMatch)return;if(n.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},n);Object.keys(n).forEach(i=>{delete n[i]}),n.keywords=t.keywords,n.begin=xe(t.beforeMatch,Cr(t.begin)),n.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},n.relevance=0,delete t.beforeMatch},Fa=["of","and","for","in","not","or","if","then","parent","list","value"],Ha="keyword";function Pr(n,e,t=Ha){const i=Object.create(null);return typeof n=="string"?r(t,n.split(" ")):Array.isArray(n)?r(t,n):Object.keys(n).forEach(function(o){Object.assign(i,Pr(n[o],e,o))}),i;function r(o,s){e&&(s=s.map(l=>l.toLowerCase())),s.forEach(function(l){const a=l.split("|");i[a[0]]=[o,Va(a[0],a[1])]})}}function Va(n,e){return e?Number(e):qa(n)?0:1}function qa(n){return Fa.includes(n.toLowerCase())}const Rn={},ge=n=>{console.error(n)},Mn=(n,...e)=>{console.log(`WARN: ${n}`,...e)},Se=(n,e)=>{Rn[`${n}/${e}`]||(console.log(`Deprecated as of ${n}. ${e}`),Rn[`${n}/${e}`]=!0)},At=new Error;function Tr(n,e,{key:t}){let i=0;const r=n[t],o={},s={};for(let l=1;l<=e.length;l++)s[l+i]=r[l],o[l+i]=!0,i+=kr(e[l-1]);n[t]=s,n[t]._emit=o,n[t]._multi=!0}function Wa(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw ge("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),At;if(typeof n.beginScope!="object"||n.beginScope===null)throw ge("beginScope must be object"),At;Tr(n,n.begin,{key:"beginScope"}),n.begin=Bi(n.begin,{joinWith:""})}}function Ga(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw ge("skip, excludeEnd, returnEnd not compatible with endScope: {}"),At;if(typeof n.endScope!="object"||n.endScope===null)throw ge("endScope must be object"),At;Tr(n,n.end,{key:"endScope"}),n.end=Bi(n.end,{joinWith:""})}}function Za(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function Ka(n){Za(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),Wa(n),Ga(n)}function Xa(n){function e(s,l){return new RegExp(Xe(s),"m"+(n.case_insensitive?"i":"")+(n.unicodeRegex?"u":"")+(l?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(l,a){a.position=this.position++,this.matchIndexes[this.matchAt]=a,this.regexes.push([a,l]),this.matchAt+=kr(l)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const l=this.regexes.map(a=>a[1]);this.matcherRe=e(Bi(l,{joinWith:"|"}),!0),this.lastIndex=0}exec(l){this.matcherRe.lastIndex=this.lastIndex;const a=this.matcherRe.exec(l);if(!a)return null;const c=a.findIndex((h,p)=>p>0&&h!==void 0),u=this.matchIndexes[c];return a.splice(0,c),Object.assign(a,u)}}class i{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(l){if(this.multiRegexes[l])return this.multiRegexes[l];const a=new t;return this.rules.slice(l).forEach(([c,u])=>a.addRule(c,u)),a.compile(),this.multiRegexes[l]=a,a}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(l,a){this.rules.push([l,a]),a.type==="begin"&&this.count++}exec(l){const a=this.getMatcher(this.regexIndex);a.lastIndex=this.lastIndex;let c=a.exec(l);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(l)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function r(s){const l=new i;return s.contains.forEach(a=>l.addRule(a.begin,{rule:a,type:"begin"})),s.terminatorEnd&&l.addRule(s.terminatorEnd,{type:"end"}),s.illegal&&l.addRule(s.illegal,{type:"illegal"}),l}function o(s,l){const a=s;if(s.isCompiled)return a;[La,za,Ka,Ua].forEach(u=>u(s,l)),n.compilerExtensions.forEach(u=>u(s,l)),s.__beforeBegin=null,[ja,Da,Ba].forEach(u=>u(s,l)),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=Pr(s.keywords,n.case_insensitive)),a.keywordPatternRe=e(c,!0),l&&(s.begin||(s.begin=/\B|\b/),a.beginRe=e(a.begin),!s.end&&!s.endsWithParent&&(s.end=/\B|\b/),s.end&&(a.endRe=e(a.end)),a.terminatorEnd=Xe(a.end)||"",s.endsWithParent&&l.terminatorEnd&&(a.terminatorEnd+=(s.end?"|":"")+l.terminatorEnd)),s.illegal&&(a.illegalRe=e(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(function(u){return Ja(u==="self"?s:u)})),s.contains.forEach(function(u){o(u,a)}),s.starts&&o(s.starts,l),a.matcher=r(a),a}if(n.compilerExtensions||(n.compilerExtensions=[]),n.contains&&n.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return n.classNameAliases=le(n.classNameAliases||{}),o(n)}function Ir(n){return n?n.endsWithParent||Ir(n.starts):!1}function Ja(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(e){return le(n,{variants:null},e)})),n.cachedVariants?n.cachedVariants:Ir(n)?le(n,{starts:n.starts?le(n.starts):null}):Object.isFrozen(n)?le(n):n}var Ya="11.9.0";class Qa extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const si=Ar,Nn=le,Pn=Symbol("nomatch"),ec=7,Lr=function(n){const e=Object.create(null),t=Object.create(null),i=[];let r=!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 l={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:ha};function a(d){return l.noHighlightRe.test(d)}function c(d){let m=d.className+" ";m+=d.parentNode?d.parentNode.className:"";const y=l.languageDetectRe.exec(m);if(y){const S=B(y[1]);return S||(Mn(o.replace("{}",y[1])),Mn("Falling back to no-highlight mode for this block.",d)),S?y[1]:"no-highlight"}return m.split(/\s+/).find(S=>a(S)||B(S))}function u(d,m,y){let S="",N="";typeof m=="object"?(S=d,y=m.ignoreIllegals,N=m.language):(Se("10.7.0","highlight(lang, code, ...args) has been deprecated."),Se("10.7.0",`Please use highlight(code, options) instead.
412
- https://github.com/highlightjs/highlight.js/issues/2277`),N=d,S=m),y===void 0&&(y=!0);const H={code:S,language:N};de("before:highlight",H);const re=H.result?H.result:h(H.language,H.code,y);return re.code=H.code,de("after:highlight",re),re}function h(d,m,y,S){const N=Object.create(null);function H(f,b){return f.keywords[b]}function re(){if(!v.keywords){j.addText(O);return}let f=0;v.keywordPatternRe.lastIndex=0;let b=v.keywordPatternRe.exec(O),w="";for(;b;){w+=O.substring(f,b.index);const C=J.case_insensitive?b[0].toLowerCase():b[0],z=H(v,C);if(z){const[ie,Xr]=z;if(j.addText(w),w="",N[C]=(N[C]||0)+1,N[C]<=ec&&(st+=Xr),ie.startsWith("_"))w+=b[0];else{const Jr=J.classNameAliases[ie]||ie;X(b[0],Jr)}}else w+=b[0];f=v.keywordPatternRe.lastIndex,b=v.keywordPatternRe.exec(O)}w+=O.substring(f),j.addText(w)}function nt(){if(O==="")return;let f=null;if(typeof v.subLanguage=="string"){if(!e[v.subLanguage]){j.addText(O);return}f=h(v.subLanguage,O,!0,Wi[v.subLanguage]),Wi[v.subLanguage]=f._top}else f=x(O,v.subLanguage.length?v.subLanguage:null);v.relevance>0&&(st+=f.relevance),j.__addSublanguage(f._emitter,f.language)}function V(){v.subLanguage!=null?nt():re(),O=""}function X(f,b){f!==""&&(j.startScope(b),j.addText(f),j.endScope())}function Fi(f,b){let w=1;const C=b.length-1;for(;w<=C;){if(!f._emit[w]){w++;continue}const z=J.classNameAliases[f[w]]||f[w],ie=b[w];z?X(ie,z):(O=ie,re(),O=""),w++}}function Hi(f,b){return f.scope&&typeof f.scope=="string"&&j.openNode(J.classNameAliases[f.scope]||f.scope),f.beginScope&&(f.beginScope._wrap?(X(O,J.classNameAliases[f.beginScope._wrap]||f.beginScope._wrap),O=""):f.beginScope._multi&&(Fi(f.beginScope,b),O="")),v=Object.create(f,{parent:{value:v}}),v}function Vi(f,b,w){let C=ma(f.endRe,w);if(C){if(f["on:end"]){const z=new Cn(f);f["on:end"](b,z),z.isMatchIgnored&&(C=!1)}if(C){for(;f.endsParent&&f.parent;)f=f.parent;return f}}if(f.endsWithParent)return Vi(f.parent,b,w)}function qr(f){return v.matcher.regexIndex===0?(O+=f[0],1):(qt=!0,0)}function Wr(f){const b=f[0],w=f.rule,C=new Cn(w),z=[w.__beforeBegin,w["on:begin"]];for(const ie of z)if(ie&&(ie(f,C),C.isMatchIgnored))return qr(b);return w.skip?O+=b:(w.excludeBegin&&(O+=b),V(),!w.returnBegin&&!w.excludeBegin&&(O=b)),Hi(w,f),w.returnBegin?0:b.length}function Gr(f){const b=f[0],w=m.substring(f.index),C=Vi(v,f,w);if(!C)return Pn;const z=v;v.endScope&&v.endScope._wrap?(V(),X(b,v.endScope._wrap)):v.endScope&&v.endScope._multi?(V(),Fi(v.endScope,f)):z.skip?O+=b:(z.returnEnd||z.excludeEnd||(O+=b),V(),z.excludeEnd&&(O=b));do v.scope&&j.closeNode(),!v.skip&&!v.subLanguage&&(st+=v.relevance),v=v.parent;while(v!==C.parent);return C.starts&&Hi(C.starts,f),z.returnEnd?0:b.length}function Zr(){const f=[];for(let b=v;b!==J;b=b.parent)b.scope&&f.unshift(b.scope);f.forEach(b=>j.openNode(b))}let rt={};function qi(f,b){const w=b&&b[0];if(O+=f,w==null)return V(),0;if(rt.type==="begin"&&b.type==="end"&&rt.index===b.index&&w===""){if(O+=m.slice(b.index,b.index+1),!r){const C=new Error(`0 width match regex (${d})`);throw C.languageName=d,C.badRule=rt.rule,C}return 1}if(rt=b,b.type==="begin")return Wr(b);if(b.type==="illegal"&&!y){const C=new Error('Illegal lexeme "'+w+'" for mode "'+(v.scope||"<unnamed>")+'"');throw C.mode=v,C}else if(b.type==="end"){const C=Gr(b);if(C!==Pn)return C}if(b.type==="illegal"&&w==="")return 1;if(Vt>1e5&&Vt>b.index*3)throw new Error("potential infinite loop, way more iterations than matches");return O+=w,w.length}const J=B(d);if(!J)throw ge(o.replace("{}",d)),new Error('Unknown language: "'+d+'"');const Kr=Xa(J);let Ht="",v=S||Kr;const Wi={},j=new l.__emitter(l);Zr();let O="",st=0,he=0,Vt=0,qt=!1;try{if(J.__emitTokens)J.__emitTokens(m,j);else{for(v.matcher.considerAll();;){Vt++,qt?qt=!1:v.matcher.considerAll(),v.matcher.lastIndex=he;const f=v.matcher.exec(m);if(!f)break;const b=m.substring(he,f.index),w=qi(b,f);he=f.index+w}qi(m.substring(he))}return j.finalize(),Ht=j.toHTML(),{language:d,value:Ht,relevance:st,illegal:!1,_emitter:j,_top:v}}catch(f){if(f.message&&f.message.includes("Illegal"))return{language:d,value:si(m),illegal:!0,relevance:0,_illegalBy:{message:f.message,index:he,context:m.slice(he-100,he+100),mode:f.mode,resultSoFar:Ht},_emitter:j};if(r)return{language:d,value:si(m),illegal:!1,relevance:0,errorRaised:f,_emitter:j,_top:v};throw f}}function p(d){const m={value:si(d),illegal:!1,relevance:0,_top:s,_emitter:new l.__emitter(l)};return m._emitter.addText(d),m}function x(d,m){m=m||l.languages||Object.keys(e);const y=p(d),S=m.filter(B).filter(it).map(V=>h(V,d,!1));S.unshift(y);const N=S.sort((V,X)=>{if(V.relevance!==X.relevance)return X.relevance-V.relevance;if(V.language&&X.language){if(B(V.language).supersetOf===X.language)return 1;if(B(X.language).supersetOf===V.language)return-1}return 0}),[H,re]=N,nt=H;return nt.secondBest=re,nt}function k(d,m,y){const S=m&&t[m]||y;d.classList.add("hljs"),d.classList.add(`language-${S}`)}function E(d){let m=null;const y=c(d);if(a(y))return;if(de("before:highlightElement",{el:d,language:y}),d.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",d);return}if(d.children.length>0&&(l.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(d)),l.throwUnescapedHTML))throw new Qa("One of your code blocks includes unescaped HTML.",d.innerHTML);m=d;const S=m.textContent,N=y?u(S,{language:y,ignoreIllegals:!0}):x(S);d.innerHTML=N.value,d.dataset.highlighted="yes",k(d,y,N.language),d.result={language:N.language,re:N.relevance,relevance:N.relevance},N.secondBest&&(d.secondBest={language:N.secondBest.language,relevance:N.secondBest.relevance}),de("after:highlightElement",{el:d,result:N,text:S})}function g(d){l=Nn(l,d)}const D=()=>{L(),Se("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function F(){L(),Se("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let W=!1;function L(){if(document.readyState==="loading"){W=!0;return}document.querySelectorAll(l.cssSelector).forEach(E)}function te(){W&&L()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",te,!1);function Te(d,m){let y=null;try{y=m(n)}catch(S){if(ge("Language definition for '{}' could not be registered.".replace("{}",d)),r)ge(S);else throw S;y=s}y.name||(y.name=d),e[d]=y,y.rawDefinition=m.bind(null,n),y.aliases&&ue(y.aliases,{languageName:d})}function Ee(d){delete e[d];for(const m of Object.keys(t))t[m]===d&&delete t[m]}function K(){return Object.keys(e)}function B(d){return d=(d||"").toLowerCase(),e[d]||e[t[d]]}function ue(d,{languageName:m}){typeof d=="string"&&(d=[d]),d.forEach(y=>{t[y.toLowerCase()]=m})}function it(d){const m=B(d);return m&&!m.disableAutodetect}function zt(d){d["before:highlightBlock"]&&!d["before:highlightElement"]&&(d["before:highlightElement"]=m=>{d["before:highlightBlock"](Object.assign({block:m.el},m))}),d["after:highlightBlock"]&&!d["after:highlightElement"]&&(d["after:highlightElement"]=m=>{d["after:highlightBlock"](Object.assign({block:m.el},m))})}function Bt(d){zt(d),i.push(d)}function Ut(d){const m=i.indexOf(d);m!==-1&&i.splice(m,1)}function de(d,m){const y=d;i.forEach(function(S){S[y]&&S[y](m)})}function Ft(d){return Se("10.7.0","highlightBlock will be removed entirely in v12.0"),Se("10.7.0","Please use highlightElement now."),E(d)}Object.assign(n,{highlight:u,highlightAuto:x,highlightAll:L,highlightElement:E,highlightBlock:Ft,configure:g,initHighlighting:D,initHighlightingOnLoad:F,registerLanguage:Te,unregisterLanguage:Ee,listLanguages:K,getLanguage:B,registerAliases:ue,autoDetection:it,inherit:Nn,addPlugin:Bt,removePlugin:Ut}),n.debugMode=function(){r=!1},n.safeMode=function(){r=!0},n.versionString=Ya,n.regex={concat:xe,lookahead:Cr,either:zi,optional:fa,anyNumberOfTimes:pa};for(const d in gt)typeof gt[d]=="object"&&$r(gt[d]);return Object.assign(n,gt),n},Ne=Lr({});Ne.newInstance=()=>Lr({});var tc=Ne;Ne.HighlightJS=Ne;Ne.default=Ne;const Dt=aa(tc),Ct="[A-Za-z$_][0-9A-Za-z$_]*",jr=["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"],Dr=["true","false","null","undefined","NaN","Infinity"],zr=["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"],Br=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Ur=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Fr=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Hr=[].concat(Ur,zr,Br);function ic(n){const e=n.regex,t=(d,{after:m})=>{const y="</"+d[0].slice(1);return d.input.indexOf(y,m)!==-1},i=Ct,r={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(d,m)=>{const y=d[0].length+d.index,S=d.input[y];if(S==="<"||S===","){m.ignoreMatch();return}S===">"&&(t(d,{after:y})||m.ignoreMatch());let N;const H=d.input.substring(y);if(N=H.match(/^\s*=/)){m.ignoreMatch();return}if((N=H.match(/^\s+extends\s+/))&&N.index===0){m.ignoreMatch();return}}},l={$pattern:Ct,keyword:jr,literal:Dr,built_in:Hr,"variable.language":Fr},a="[0-9](_?[0-9])*",c=`\\.(${a})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",h={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${a})\\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},p={className:"subst",begin:"\\$\\{",end:"\\}",keywords:l,contains:[]},x={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,p],subLanguage:"xml"}},k={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,p],subLanguage:"css"}},E={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,p],subLanguage:"graphql"}},g={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,p]},D={className:"comment",variants:[n.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:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),n.C_BLOCK_COMMENT_MODE,n.C_LINE_COMMENT_MODE]},F=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,x,k,E,g,{match:/\$\d+/},h];p.contains=F.concat({begin:/\{/,end:/\}/,keywords:l,contains:["self"].concat(F)});const W=[].concat(D,p.contains),L=W.concat([{begin:/\(/,end:/\)/,keywords:l,contains:["self"].concat(W)}]),te={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:L},Te={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,e.concat(i,"(",e.concat(/\./,i),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,i],scope:{1:"keyword",3:"title.class"}}]},Ee={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:{_:[...zr,...Br]}},K={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},B={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[te],illegal:/%/},ue={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function it(d){return e.concat("(?!",d.join("|"),")")}const zt={match:e.concat(/\b/,it([...Ur,"super","import"]),i,e.lookahead(/\(/)),className:"title.function",relevance:0},Bt={begin:e.concat(/\./,e.lookahead(e.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Ut={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},te]},de="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+n.UNDERSCORE_IDENT_RE+")\\s*=>",Ft={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(de)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[te]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:l,exports:{PARAMS_CONTAINS:L,CLASS_REFERENCE:Ee},illegal:/#(?![$_A-z])/,contains:[n.SHEBANG({label:"shebang",binary:"node",relevance:5}),K,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,x,k,E,g,D,{match:/\$\d+/},h,Ee,{className:"attr",begin:i+e.lookahead(":"),relevance:0},Ft,{begin:"("+n.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[D,n.REGEXP_MODE,{className:"function",begin:de,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:L}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.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"]}]}]},B,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+n.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[te,n.inherit(n.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},Bt,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[te]},zt,ue,Te,Ut,{match:/\$[(.]/}]}}function nc(n){const e=ic(n),t=Ct,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],r={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[e.exports.CLASS_REFERENCE]},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[e.exports.CLASS_REFERENCE]},s={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},l=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],a={$pattern:Ct,keyword:jr.concat(l),literal:Dr,built_in:Hr.concat(i),"variable.language":Fr},c={className:"meta",begin:"@"+t},u=(p,x,k)=>{const E=p.contains.findIndex(g=>g.label===x);if(E===-1)throw new Error("can not find mode to replace");p.contains.splice(E,1,k)};Object.assign(e.keywords,a),e.exports.PARAMS_CONTAINS.push(c),e.contains=e.contains.concat([c,r,o]),u(e,"shebang",n.SHEBANG()),u(e,"use_strict",s);const h=e.contains.find(p=>p.label==="func.def");return h.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function rc(n){const e=n.regex,t=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i=/[\p{L}0-9._:-]+/u,r={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=n.inherit(o,{begin:/\(/,end:/\)/}),l=n.inherit(n.APOS_STRING_MODE,{className:"string"}),a=n.inherit(n.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:i,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:[o,a,l,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,s,a,l]}]}]},n.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[a]},{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 sc=n=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:n.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:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:n.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_-]*/}}),oc=["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"],lc=["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"],ac=["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"],cc=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],uc=["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 dc(n){const e=n.regex,t=sc(n),i={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},r="and or not only",o=/@-?\w[\w]*(-\w+)*/,s="[a-zA-Z-][a-zA-Z0-9_-]*",l=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[t.BLOCK_COMMENT,i,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:":("+ac.join("|")+")"},{begin:":(:)?("+cc.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+uc.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[t.BLOCK_COMMENT,t.HEXCOLOR,t.IMPORTANT,t.CSS_NUMBER_MODE,...l,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...l,{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:r,attribute:lc.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...l,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+oc.join("|")+")\\b"}]}}const Vr=document.createElement("style");Vr.innerText=[oa,la].join(`
413
- `);document.head.appendChild(Vr);Dt.registerLanguage("typescript",nc);Dt.registerLanguage("html",rc);Dt.registerLanguage("css",dc);function hc(...n){const e=document.createElement("div"),t=document.createElement("div");t.classList.add("tab-control");const i=document.createElement("div");return n.forEach(r=>{e.appendChild(r),r.addEventListener("click",()=>{n.forEach(o=>o.removeAttribute("selected")),r.setAttribute("selected",""),i.innerHTML="",i.appendChild(r.content),i.className=r.className,i.classList.add("tab-content")})}),t.appendChild(e),t.appendChild(i),i.classList.add("tab-content"),n[0].setAttribute("selected",""),i.appendChild(n[0].content),t}function De(n,e){const t=document.createElement("div");return t.role="tab",t.tabIndex=0,t.innerText=n,t.content=e,e.tagName=="PRE"&&t.classList.add("code"),t}function ze(n,e){const t=document.createElement(n);return typeof e=="string"?t.innerHTML=e:e.forEach(i=>{t.appendChild(i)}),t}async function pc(n,e,t){var i,r,o;const s=e.mainContent,l=ze("div",s);l.id=`example-preview-${t}`;const a=typeof e.css=="string"||(i=e.css)==null?void 0:i.label,c=typeof e.css=="string"?e.css:(r=e.css)==null?void 0:r.content,u=hc(De("Preview",l),De("HTML",mt("html",s)),...c?[De(a??"CSS",mt("css",c))]:[],...e.initializer&&e.initializer.content?[De(e.initializer.label??"TS",mt("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(p=>De(p.label,mt(p.language,p.content))));e.description&&n.appendChild(ze("div",e.description));const h=ze("div",[u]);h.classList.add("example"),n.appendChild(h),c&&fc(`#${l.id}`,c),(o=e.initializer)!=null&&o.initialize&&await e.initializer.initialize(l)}function mt(n,e){let t=e.split(/\r?\n/).map(i=>{const r=i.indexOf("///");if(r>-1){const o=i.substring(r+3).trimStart();return o?i.replace(/^(\s*)([^\s].*)$/,`$1${o}`):void 0}return i}).filter(i=>typeof i<"u").join(`
414
- `).trim();return n&&n!="raw"&&(t=Dt.highlight(t,{language:n}).value),ze("pre",[ze("code",t)])}function fc(n,e){const t=document.createElement("style");t.innerHTML=M().use(sa({prefix:n})).process(e).css,document.head.appendChild(t)}async function gc(n,e=document.body){const t=bc(e);let i=0;Object.keys(n).forEach(async r=>{const o=document.createElement("div");o.className="example-container",t.appendChild(o);const s=n[r].default;pc(o,s,i++)})}function mc(n){const e=document.createElement("div");e.id="examples-container";const t=n.querySelector("#examples");return t?t.after(e):n.appendChild(e),e}function bc(n){return n.children?mc(n):n}const vc=`<h1 id="@cas-smartdesign/lit-slider">@cas-smartdesign/lit-slider</h1>
414
+ https://www.w3ctech.com/topic/2226`));let l=t(...r);return l.postcssPlugin=e,l.postcssVersion=new ji().version,l}let o;return Object.defineProperty(s,"postcss",{get(){return o||(o=s()),o}}),s.process=function(r,l,a){return A([s(a)]).process(r,l)},s};A.stringify=Zl;A.parse=Ql;A.fromJSON=Kl;A.list=ea;A.comment=n=>new xs(n);A.atRule=n=>new Es(n);A.decl=n=>new ys(n);A.rule=n=>new _s(n);A.root=n=>new Ss(n);A.document=n=>new ws(n);A.CssSyntaxError=ql;A.Declaration=ys;A.Container=Gl;A.Processor=ji;A.Document=ws;A.Comment=xs;A.Warning=Xl;A.AtRule=Es;A.Result=Jl;A.Input=Yl;A.Rule=_s;A.Root=Ss;A.Node=ta;Wl.registerPostcss(A);var ia=A;A.default=A;const M=Fn(ia);M.stringify;M.fromJSON;M.plugin;M.parse;M.list;M.document;M.comment;M.atRule;M.rule;M.decl;M.root;M.CssSyntaxError;M.Declaration;M.Container;M.Processor;M.Document;M.Comment;M.Warning;M.AtRule;M.Result;M.Input;M.Rule;M.Root;M.Node;var na=function(e){const t=e.prefix,i=/\s+$/.test(t)?t:`${t} `,s=e.ignoreFiles?[].concat(e.ignoreFiles):[],o=e.includeFiles?[].concat(e.includeFiles):[];return function(r){s.length&&r.source.input.file&&An(r.source.input.file,s)||o.length&&r.source.input.file&&!An(r.source.input.file,o)||r.walkRules(l=>{const a=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes"];l.parent&&a.includes(l.parent.name)||(l.selectors=l.selectors.map(c=>e.exclude&&sa(c,e.exclude)?c:e.transform?e.transform(t,c,i+c,r.source.input.file,l):i+c))})}};function An(n,e){return e.some(t=>t instanceof RegExp?t.test(n):n.includes(t))}function sa(n,e){return e.some(t=>t instanceof RegExp?t.test(n):n===t)}const ra=Fn(na),oa="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}",la="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 aa(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function $s(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error("set is read-only")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(e=>{const t=n[e],i=typeof t;(i==="object"||i==="function")&&!Object.isFrozen(t)&&$s(t)}),n}class Cn{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function As(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function le(n,...e){const t=Object.create(null);for(const i in n)t[i]=n[i];return e.forEach(function(i){for(const s in i)t[s]=i[s]}),t}const ca="</span>",kn=n=>!!n.scope,ua=(n,{prefix:e})=>{if(n.startsWith("language:"))return n.replace("language:","language-");if(n.includes(".")){const t=n.split(".");return[`${e}${t.shift()}`,...t.map((i,s)=>`${i}${"_".repeat(s+1)}`)].join(" ")}return`${e}${n}`};class da{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=As(e)}openNode(e){if(!kn(e))return;const t=ua(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){kn(e)&&(this.buffer+=ca)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const On=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class Di{constructor(){this.rootNode=On(),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=On({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(i=>this._walk(e,i)),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=>{Di._collapse(t)}))}}class ha extends Di{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const i=e.root;t&&(i.scope=`language:${t}`),this.add(i)}toHTML(){return new da(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Xe(n){return n?typeof n=="string"?n:n.source:null}function Cs(n){return xe("(?=",n,")")}function pa(n){return xe("(?:",n,")*")}function fa(n){return xe("(?:",n,")?")}function xe(...n){return n.map(e=>Xe(e)).join("")}function ma(n){const e=n[n.length-1];return typeof e=="object"&&e.constructor===Object?(n.splice(n.length-1,1),e):{}}function zi(...n){return"("+(ma(n).capture?"":"?:")+n.map(e=>Xe(e)).join("|")+")"}function ks(n){return new RegExp(n.toString()+"|").exec("").length-1}function ga(n,e){const t=n&&n.exec(e);return t&&t.index===0}const ba=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Ui(n,{joinWith:e}){let t=0;return n.map(i=>{t+=1;const s=t;let o=Xe(i),r="";for(;o.length>0;){const l=ba.exec(o);if(!l){r+=o;break}r+=o.substring(0,l.index),o=o.substring(l.index+l[0].length),l[0][0]==="\\"&&l[1]?r+="\\"+String(Number(l[1])+s):(r+=l[0],l[0]==="("&&t++)}return r}).map(i=>`(${i})`).join(e)}const va=/\b\B/,Os="[a-zA-Z]\\w*",Bi="[a-zA-Z_]\\w*",Rs="\\b\\d+(\\.\\d+)?",Ms="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Ns="\\b(0b[01]+)",ya="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",wa=(n={})=>{const e=/^#![ ]*\//;return n.binary&&(n.begin=xe(e,/.*\b/,n.binary,/\b.*/)),le({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,i)=>{t.index!==0&&i.ignoreMatch()}},n)},Je={begin:"\\\\[\\s\\S]",relevance:0},xa={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Je]},Ea={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Je]},_a={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/},jt=function(n,e,t={}){const i=le({scope:"comment",begin:n,end:e,contains:[]},t);i.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 s=zi("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 i.contains.push({begin:xe(/[ ]+/,"(",s,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),i},Sa=jt("//","$"),$a=jt("/\\*","\\*/"),Aa=jt("#","$"),Ca={scope:"number",begin:Rs,relevance:0},ka={scope:"number",begin:Ms,relevance:0},Oa={scope:"number",begin:Ns,relevance:0},Ra={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Je,{begin:/\[/,end:/\]/,relevance:0,contains:[Je]}]},Ma={scope:"title",begin:Os,relevance:0},Na={scope:"title",begin:Bi,relevance:0},Pa={begin:"\\.\\s*"+Bi,relevance:0},Ta=function(n){return Object.assign(n,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var mt=Object.freeze({__proto__:null,APOS_STRING_MODE:xa,BACKSLASH_ESCAPE:Je,BINARY_NUMBER_MODE:Oa,BINARY_NUMBER_RE:Ns,COMMENT:jt,C_BLOCK_COMMENT_MODE:$a,C_LINE_COMMENT_MODE:Sa,C_NUMBER_MODE:ka,C_NUMBER_RE:Ms,END_SAME_AS_BEGIN:Ta,HASH_COMMENT_MODE:Aa,IDENT_RE:Os,MATCH_NOTHING_RE:va,METHOD_GUARD:Pa,NUMBER_MODE:Ca,NUMBER_RE:Rs,PHRASAL_WORDS_MODE:_a,QUOTE_STRING_MODE:Ea,REGEXP_MODE:Ra,RE_STARTERS_RE:ya,SHEBANG:wa,TITLE_MODE:Ma,UNDERSCORE_IDENT_RE:Bi,UNDERSCORE_TITLE_MODE:Na});function Ia(n,e){n.input[n.index-1]==="."&&e.ignoreMatch()}function La(n,e){n.className!==void 0&&(n.scope=n.className,delete n.className)}function ja(n,e){e&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=Ia,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function Da(n,e){Array.isArray(n.illegal)&&(n.illegal=zi(...n.illegal))}function za(n,e){if(n.match){if(n.begin||n.end)throw new Error("begin & end are not supported with match");n.begin=n.match,delete n.match}}function Ua(n,e){n.relevance===void 0&&(n.relevance=1)}const Ba=(n,e)=>{if(!n.beforeMatch)return;if(n.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},n);Object.keys(n).forEach(i=>{delete n[i]}),n.keywords=t.keywords,n.begin=xe(t.beforeMatch,Cs(t.begin)),n.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},n.relevance=0,delete t.beforeMatch},Fa=["of","and","for","in","not","or","if","then","parent","list","value"],Ha="keyword";function Ps(n,e,t=Ha){const i=Object.create(null);return typeof n=="string"?s(t,n.split(" ")):Array.isArray(n)?s(t,n):Object.keys(n).forEach(function(o){Object.assign(i,Ps(n[o],e,o))}),i;function s(o,r){e&&(r=r.map(l=>l.toLowerCase())),r.forEach(function(l){const a=l.split("|");i[a[0]]=[o,Va(a[0],a[1])]})}}function Va(n,e){return e?Number(e):qa(n)?0:1}function qa(n){return Fa.includes(n.toLowerCase())}const Rn={},me=n=>{console.error(n)},Mn=(n,...e)=>{console.log(`WARN: ${n}`,...e)},Se=(n,e)=>{Rn[`${n}/${e}`]||(console.log(`Deprecated as of ${n}. ${e}`),Rn[`${n}/${e}`]=!0)},At=new Error;function Ts(n,e,{key:t}){let i=0;const s=n[t],o={},r={};for(let l=1;l<=e.length;l++)r[l+i]=s[l],o[l+i]=!0,i+=ks(e[l-1]);n[t]=r,n[t]._emit=o,n[t]._multi=!0}function Wa(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw me("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),At;if(typeof n.beginScope!="object"||n.beginScope===null)throw me("beginScope must be object"),At;Ts(n,n.begin,{key:"beginScope"}),n.begin=Ui(n.begin,{joinWith:""})}}function Ga(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw me("skip, excludeEnd, returnEnd not compatible with endScope: {}"),At;if(typeof n.endScope!="object"||n.endScope===null)throw me("endScope must be object"),At;Ts(n,n.end,{key:"endScope"}),n.end=Ui(n.end,{joinWith:""})}}function Za(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function Ka(n){Za(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),Wa(n),Ga(n)}function Xa(n){function e(r,l){return new RegExp(Xe(r),"m"+(n.case_insensitive?"i":"")+(n.unicodeRegex?"u":"")+(l?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(l,a){a.position=this.position++,this.matchIndexes[this.matchAt]=a,this.regexes.push([a,l]),this.matchAt+=ks(l)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const l=this.regexes.map(a=>a[1]);this.matcherRe=e(Ui(l,{joinWith:"|"}),!0),this.lastIndex=0}exec(l){this.matcherRe.lastIndex=this.lastIndex;const a=this.matcherRe.exec(l);if(!a)return null;const c=a.findIndex((h,p)=>p>0&&h!==void 0),u=this.matchIndexes[c];return a.splice(0,c),Object.assign(a,u)}}class i{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(l){if(this.multiRegexes[l])return this.multiRegexes[l];const a=new t;return this.rules.slice(l).forEach(([c,u])=>a.addRule(c,u)),a.compile(),this.multiRegexes[l]=a,a}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(l,a){this.rules.push([l,a]),a.type==="begin"&&this.count++}exec(l){const a=this.getMatcher(this.regexIndex);a.lastIndex=this.lastIndex;let c=a.exec(l);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(l)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function s(r){const l=new i;return r.contains.forEach(a=>l.addRule(a.begin,{rule:a,type:"begin"})),r.terminatorEnd&&l.addRule(r.terminatorEnd,{type:"end"}),r.illegal&&l.addRule(r.illegal,{type:"illegal"}),l}function o(r,l){const a=r;if(r.isCompiled)return a;[La,za,Ka,Ba].forEach(u=>u(r,l)),n.compilerExtensions.forEach(u=>u(r,l)),r.__beforeBegin=null,[ja,Da,Ua].forEach(u=>u(r,l)),r.isCompiled=!0;let c=null;return typeof r.keywords=="object"&&r.keywords.$pattern&&(r.keywords=Object.assign({},r.keywords),c=r.keywords.$pattern,delete r.keywords.$pattern),c=c||/\w+/,r.keywords&&(r.keywords=Ps(r.keywords,n.case_insensitive)),a.keywordPatternRe=e(c,!0),l&&(r.begin||(r.begin=/\B|\b/),a.beginRe=e(a.begin),!r.end&&!r.endsWithParent&&(r.end=/\B|\b/),r.end&&(a.endRe=e(a.end)),a.terminatorEnd=Xe(a.end)||"",r.endsWithParent&&l.terminatorEnd&&(a.terminatorEnd+=(r.end?"|":"")+l.terminatorEnd)),r.illegal&&(a.illegalRe=e(r.illegal)),r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map(function(u){return Ja(u==="self"?r:u)})),r.contains.forEach(function(u){o(u,a)}),r.starts&&o(r.starts,l),a.matcher=s(a),a}if(n.compilerExtensions||(n.compilerExtensions=[]),n.contains&&n.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return n.classNameAliases=le(n.classNameAliases||{}),o(n)}function Is(n){return n?n.endsWithParent||Is(n.starts):!1}function Ja(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(e){return le(n,{variants:null},e)})),n.cachedVariants?n.cachedVariants:Is(n)?le(n,{starts:n.starts?le(n.starts):null}):Object.isFrozen(n)?le(n):n}var Ya="11.9.0";class Qa extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const ri=As,Nn=le,Pn=Symbol("nomatch"),ec=7,Ls=function(n){const e=Object.create(null),t=Object.create(null),i=[];let s=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",r={disableAutodetect:!0,name:"Plain text",contains:[]};let l={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:ha};function a(d){return l.noHighlightRe.test(d)}function c(d){let g=d.className+" ";g+=d.parentNode?d.parentNode.className:"";const y=l.languageDetectRe.exec(g);if(y){const S=U(y[1]);return S||(Mn(o.replace("{}",y[1])),Mn("Falling back to no-highlight mode for this block.",d)),S?y[1]:"no-highlight"}return g.split(/\s+/).find(S=>a(S)||U(S))}function u(d,g,y){let S="",N="";typeof g=="object"?(S=d,y=g.ignoreIllegals,N=g.language):(Se("10.7.0","highlight(lang, code, ...args) has been deprecated."),Se("10.7.0",`Please use highlight(code, options) instead.
415
+ https://github.com/highlightjs/highlight.js/issues/2277`),N=d,S=g),y===void 0&&(y=!0);const H={code:S,language:N};de("before:highlight",H);const re=H.result?H.result:h(H.language,H.code,y);return re.code=H.code,de("after:highlight",re),re}function h(d,g,y,S){const N=Object.create(null);function H(f,b){return f.keywords[b]}function re(){if(!v.keywords){j.addText(O);return}let f=0;v.keywordPatternRe.lastIndex=0;let b=v.keywordPatternRe.exec(O),w="";for(;b;){w+=O.substring(f,b.index);const C=Y.case_insensitive?b[0].toLowerCase():b[0],z=H(v,C);if(z){const[ne,Xs]=z;if(j.addText(w),w="",N[C]=(N[C]||0)+1,N[C]<=ec&&(rt+=Xs),ne.startsWith("_"))w+=b[0];else{const Js=Y.classNameAliases[ne]||ne;J(b[0],Js)}}else w+=b[0];f=v.keywordPatternRe.lastIndex,b=v.keywordPatternRe.exec(O)}w+=O.substring(f),j.addText(w)}function nt(){if(O==="")return;let f=null;if(typeof v.subLanguage=="string"){if(!e[v.subLanguage]){j.addText(O);return}f=h(v.subLanguage,O,!0,Wi[v.subLanguage]),Wi[v.subLanguage]=f._top}else f=x(O,v.subLanguage.length?v.subLanguage:null);v.relevance>0&&(rt+=f.relevance),j.__addSublanguage(f._emitter,f.language)}function V(){v.subLanguage!=null?nt():re(),O=""}function J(f,b){f!==""&&(j.startScope(b),j.addText(f),j.endScope())}function Fi(f,b){let w=1;const C=b.length-1;for(;w<=C;){if(!f._emit[w]){w++;continue}const z=Y.classNameAliases[f[w]]||f[w],ne=b[w];z?J(ne,z):(O=ne,re(),O=""),w++}}function Hi(f,b){return f.scope&&typeof f.scope=="string"&&j.openNode(Y.classNameAliases[f.scope]||f.scope),f.beginScope&&(f.beginScope._wrap?(J(O,Y.classNameAliases[f.beginScope._wrap]||f.beginScope._wrap),O=""):f.beginScope._multi&&(Fi(f.beginScope,b),O="")),v=Object.create(f,{parent:{value:v}}),v}function Vi(f,b,w){let C=ga(f.endRe,w);if(C){if(f["on:end"]){const z=new Cn(f);f["on:end"](b,z),z.isMatchIgnored&&(C=!1)}if(C){for(;f.endsParent&&f.parent;)f=f.parent;return f}}if(f.endsWithParent)return Vi(f.parent,b,w)}function qs(f){return v.matcher.regexIndex===0?(O+=f[0],1):(qt=!0,0)}function Ws(f){const b=f[0],w=f.rule,C=new Cn(w),z=[w.__beforeBegin,w["on:begin"]];for(const ne of z)if(ne&&(ne(f,C),C.isMatchIgnored))return qs(b);return w.skip?O+=b:(w.excludeBegin&&(O+=b),V(),!w.returnBegin&&!w.excludeBegin&&(O=b)),Hi(w,f),w.returnBegin?0:b.length}function Gs(f){const b=f[0],w=g.substring(f.index),C=Vi(v,f,w);if(!C)return Pn;const z=v;v.endScope&&v.endScope._wrap?(V(),J(b,v.endScope._wrap)):v.endScope&&v.endScope._multi?(V(),Fi(v.endScope,f)):z.skip?O+=b:(z.returnEnd||z.excludeEnd||(O+=b),V(),z.excludeEnd&&(O=b));do v.scope&&j.closeNode(),!v.skip&&!v.subLanguage&&(rt+=v.relevance),v=v.parent;while(v!==C.parent);return C.starts&&Hi(C.starts,f),z.returnEnd?0:b.length}function Zs(){const f=[];for(let b=v;b!==Y;b=b.parent)b.scope&&f.unshift(b.scope);f.forEach(b=>j.openNode(b))}let st={};function qi(f,b){const w=b&&b[0];if(O+=f,w==null)return V(),0;if(st.type==="begin"&&b.type==="end"&&st.index===b.index&&w===""){if(O+=g.slice(b.index,b.index+1),!s){const C=new Error(`0 width match regex (${d})`);throw C.languageName=d,C.badRule=st.rule,C}return 1}if(st=b,b.type==="begin")return Ws(b);if(b.type==="illegal"&&!y){const C=new Error('Illegal lexeme "'+w+'" for mode "'+(v.scope||"<unnamed>")+'"');throw C.mode=v,C}else if(b.type==="end"){const C=Gs(b);if(C!==Pn)return C}if(b.type==="illegal"&&w==="")return 1;if(Vt>1e5&&Vt>b.index*3)throw new Error("potential infinite loop, way more iterations than matches");return O+=w,w.length}const Y=U(d);if(!Y)throw me(o.replace("{}",d)),new Error('Unknown language: "'+d+'"');const Ks=Xa(Y);let Ht="",v=S||Ks;const Wi={},j=new l.__emitter(l);Zs();let O="",rt=0,he=0,Vt=0,qt=!1;try{if(Y.__emitTokens)Y.__emitTokens(g,j);else{for(v.matcher.considerAll();;){Vt++,qt?qt=!1:v.matcher.considerAll(),v.matcher.lastIndex=he;const f=v.matcher.exec(g);if(!f)break;const b=g.substring(he,f.index),w=qi(b,f);he=f.index+w}qi(g.substring(he))}return j.finalize(),Ht=j.toHTML(),{language:d,value:Ht,relevance:rt,illegal:!1,_emitter:j,_top:v}}catch(f){if(f.message&&f.message.includes("Illegal"))return{language:d,value:ri(g),illegal:!0,relevance:0,_illegalBy:{message:f.message,index:he,context:g.slice(he-100,he+100),mode:f.mode,resultSoFar:Ht},_emitter:j};if(s)return{language:d,value:ri(g),illegal:!1,relevance:0,errorRaised:f,_emitter:j,_top:v};throw f}}function p(d){const g={value:ri(d),illegal:!1,relevance:0,_top:r,_emitter:new l.__emitter(l)};return g._emitter.addText(d),g}function x(d,g){g=g||l.languages||Object.keys(e);const y=p(d),S=g.filter(U).filter(it).map(V=>h(V,d,!1));S.unshift(y);const N=S.sort((V,J)=>{if(V.relevance!==J.relevance)return J.relevance-V.relevance;if(V.language&&J.language){if(U(V.language).supersetOf===J.language)return 1;if(U(J.language).supersetOf===V.language)return-1}return 0}),[H,re]=N,nt=H;return nt.secondBest=re,nt}function k(d,g,y){const S=g&&t[g]||y;d.classList.add("hljs"),d.classList.add(`language-${S}`)}function _(d){let g=null;const y=c(d);if(a(y))return;if(de("before:highlightElement",{el:d,language:y}),d.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",d);return}if(d.children.length>0&&(l.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(d)),l.throwUnescapedHTML))throw new Qa("One of your code blocks includes unescaped HTML.",d.innerHTML);g=d;const S=g.textContent,N=y?u(S,{language:y,ignoreIllegals:!0}):x(S);d.innerHTML=N.value,d.dataset.highlighted="yes",k(d,y,N.language),d.result={language:N.language,re:N.relevance,relevance:N.relevance},N.secondBest&&(d.secondBest={language:N.secondBest.language,relevance:N.secondBest.relevance}),de("after:highlightElement",{el:d,result:N,text:S})}function m(d){l=Nn(l,d)}const D=()=>{L(),Se("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function F(){L(),Se("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let W=!1;function L(){if(document.readyState==="loading"){W=!0;return}document.querySelectorAll(l.cssSelector).forEach(_)}function ie(){W&&L()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",ie,!1);function Te(d,g){let y=null;try{y=g(n)}catch(S){if(me("Language definition for '{}' could not be registered.".replace("{}",d)),s)me(S);else throw S;y=r}y.name||(y.name=d),e[d]=y,y.rawDefinition=g.bind(null,n),y.aliases&&ue(y.aliases,{languageName:d})}function Ee(d){delete e[d];for(const g of Object.keys(t))t[g]===d&&delete t[g]}function X(){return Object.keys(e)}function U(d){return d=(d||"").toLowerCase(),e[d]||e[t[d]]}function ue(d,{languageName:g}){typeof d=="string"&&(d=[d]),d.forEach(y=>{t[y.toLowerCase()]=g})}function it(d){const g=U(d);return g&&!g.disableAutodetect}function zt(d){d["before:highlightBlock"]&&!d["before:highlightElement"]&&(d["before:highlightElement"]=g=>{d["before:highlightBlock"](Object.assign({block:g.el},g))}),d["after:highlightBlock"]&&!d["after:highlightElement"]&&(d["after:highlightElement"]=g=>{d["after:highlightBlock"](Object.assign({block:g.el},g))})}function Ut(d){zt(d),i.push(d)}function Bt(d){const g=i.indexOf(d);g!==-1&&i.splice(g,1)}function de(d,g){const y=d;i.forEach(function(S){S[y]&&S[y](g)})}function Ft(d){return Se("10.7.0","highlightBlock will be removed entirely in v12.0"),Se("10.7.0","Please use highlightElement now."),_(d)}Object.assign(n,{highlight:u,highlightAuto:x,highlightAll:L,highlightElement:_,highlightBlock:Ft,configure:m,initHighlighting:D,initHighlightingOnLoad:F,registerLanguage:Te,unregisterLanguage:Ee,listLanguages:X,getLanguage:U,registerAliases:ue,autoDetection:it,inherit:Nn,addPlugin:Ut,removePlugin:Bt}),n.debugMode=function(){s=!1},n.safeMode=function(){s=!0},n.versionString=Ya,n.regex={concat:xe,lookahead:Cs,either:zi,optional:fa,anyNumberOfTimes:pa};for(const d in mt)typeof mt[d]=="object"&&$s(mt[d]);return Object.assign(n,mt),n},Ne=Ls({});Ne.newInstance=()=>Ls({});var tc=Ne;Ne.HighlightJS=Ne;Ne.default=Ne;const Dt=aa(tc),Ct="[A-Za-z$_][0-9A-Za-z$_]*",js=["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"],Ds=["true","false","null","undefined","NaN","Infinity"],zs=["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"],Us=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Bs=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Fs=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Hs=[].concat(Bs,zs,Us);function ic(n){const e=n.regex,t=(d,{after:g})=>{const y="</"+d[0].slice(1);return d.input.indexOf(y,g)!==-1},i=Ct,s={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,r={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(d,g)=>{const y=d[0].length+d.index,S=d.input[y];if(S==="<"||S===","){g.ignoreMatch();return}S===">"&&(t(d,{after:y})||g.ignoreMatch());let N;const H=d.input.substring(y);if(N=H.match(/^\s*=/)){g.ignoreMatch();return}if((N=H.match(/^\s+extends\s+/))&&N.index===0){g.ignoreMatch();return}}},l={$pattern:Ct,keyword:js,literal:Ds,built_in:Hs,"variable.language":Fs},a="[0-9](_?[0-9])*",c=`\\.(${a})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",h={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${a})\\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},p={className:"subst",begin:"\\$\\{",end:"\\}",keywords:l,contains:[]},x={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,p],subLanguage:"xml"}},k={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,p],subLanguage:"css"}},_={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,p],subLanguage:"graphql"}},m={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,p]},D={className:"comment",variants:[n.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:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),n.C_BLOCK_COMMENT_MODE,n.C_LINE_COMMENT_MODE]},F=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,x,k,_,m,{match:/\$\d+/},h];p.contains=F.concat({begin:/\{/,end:/\}/,keywords:l,contains:["self"].concat(F)});const W=[].concat(D,p.contains),L=W.concat([{begin:/\(/,end:/\)/,keywords:l,contains:["self"].concat(W)}]),ie={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:L},Te={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,e.concat(i,"(",e.concat(/\./,i),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,i],scope:{1:"keyword",3:"title.class"}}]},Ee={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:{_:[...zs,...Us]}},X={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},U={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[ie],illegal:/%/},ue={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function it(d){return e.concat("(?!",d.join("|"),")")}const zt={match:e.concat(/\b/,it([...Bs,"super","import"]),i,e.lookahead(/\(/)),className:"title.function",relevance:0},Ut={begin:e.concat(/\./,e.lookahead(e.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Bt={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},ie]},de="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+n.UNDERSCORE_IDENT_RE+")\\s*=>",Ft={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(de)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[ie]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:l,exports:{PARAMS_CONTAINS:L,CLASS_REFERENCE:Ee},illegal:/#(?![$_A-z])/,contains:[n.SHEBANG({label:"shebang",binary:"node",relevance:5}),X,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,x,k,_,m,D,{match:/\$\d+/},h,Ee,{className:"attr",begin:i+e.lookahead(":"),relevance:0},Ft,{begin:"("+n.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[D,n.REGEXP_MODE,{className:"function",begin:de,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:L}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:o},{begin:r.begin,"on:begin":r.isTrulyOpeningTag,end:r.end}],subLanguage:"xml",contains:[{begin:r.begin,end:r.end,skip:!0,contains:["self"]}]}]},U,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+n.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[ie,n.inherit(n.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},Ut,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[ie]},zt,ue,Te,Bt,{match:/\$[(.]/}]}}function nc(n){const e=ic(n),t=Ct,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],s={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[e.exports.CLASS_REFERENCE]},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[e.exports.CLASS_REFERENCE]},r={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},l=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],a={$pattern:Ct,keyword:js.concat(l),literal:Ds,built_in:Hs.concat(i),"variable.language":Fs},c={className:"meta",begin:"@"+t},u=(p,x,k)=>{const _=p.contains.findIndex(m=>m.label===x);if(_===-1)throw new Error("can not find mode to replace");p.contains.splice(_,1,k)};Object.assign(e.keywords,a),e.exports.PARAMS_CONTAINS.push(c),e.contains=e.contains.concat([c,s,o]),u(e,"shebang",n.SHEBANG()),u(e,"use_strict",r);const h=e.contains.find(p=>p.label==="func.def");return h.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function sc(n){const e=n.regex,t=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i=/[\p{L}0-9._:-]+/u,s={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/}]},r=n.inherit(o,{begin:/\(/,end:/\)/}),l=n.inherit(n.APOS_STRING_MODE,{className:"string"}),a=n.inherit(n.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:i,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[s]},{begin:/'/,end:/'/,contains:[s]},{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,a,l,r,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,r,a,l]}]}]},n.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[a]},{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 rc=n=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:n.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:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:n.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_-]*/}}),oc=["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"],lc=["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"],ac=["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"],cc=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],uc=["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 dc(n){const e=n.regex,t=rc(n),i={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},s="and or not only",o=/@-?\w[\w]*(-\w+)*/,r="[a-zA-Z-][a-zA-Z0-9_-]*",l=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[t.BLOCK_COMMENT,i,t.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+r,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+ac.join("|")+")"},{begin:":(:)?("+cc.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+uc.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[t.BLOCK_COMMENT,t.HEXCOLOR,t.IMPORTANT,t.CSS_NUMBER_MODE,...l,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...l,{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:s,attribute:lc.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...l,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+oc.join("|")+")\\b"}]}}const Vs=document.createElement("style");Vs.innerText=[oa,la].join(`
416
+ `);document.head.appendChild(Vs);Dt.registerLanguage("typescript",nc);Dt.registerLanguage("html",sc);Dt.registerLanguage("css",dc);function hc(...n){const e=document.createElement("div"),t=document.createElement("div");t.classList.add("tab-control");const i=document.createElement("div");return n.forEach(s=>{e.appendChild(s),s.addEventListener("click",()=>{n.forEach(o=>o.removeAttribute("selected")),s.setAttribute("selected",""),i.innerHTML="",i.appendChild(s.content),i.className=s.className,i.classList.add("tab-content")})}),t.appendChild(e),t.appendChild(i),i.classList.add("tab-content"),n[0].setAttribute("selected",""),i.appendChild(n[0].content),t}function De(n,e){const t=document.createElement("div");return t.role="tab",t.tabIndex=0,t.innerText=n,t.content=e,e.tagName=="PRE"&&t.classList.add("code"),t}function ze(n,e){const t=document.createElement(n);return typeof e=="string"?t.innerHTML=e:e.forEach(i=>{t.appendChild(i)}),t}async function pc(n,e,t){var i,s,o;const r=e.mainContent,l=ze("div",r);l.id=`example-preview-${t}`;const a=typeof e.css=="string"||(i=e.css)==null?void 0:i.label,c=typeof e.css=="string"?e.css:(s=e.css)==null?void 0:s.content,u=hc(De("Preview",l),De("HTML",gt("html",r)),...c?[De(a??"CSS",gt("css",c))]:[],...e.initializer&&e.initializer.content?[De(e.initializer.label??"TS",gt("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(p=>De(p.label,gt(p.language,p.content))));e.description&&n.appendChild(ze("div",e.description));const h=ze("div",[u]);h.classList.add("example"),n.appendChild(h),c&&fc(`#${l.id}`,c),(o=e.initializer)!=null&&o.initialize&&await e.initializer.initialize(l)}function gt(n,e){let t=e.split(/\r?\n/).map(i=>{const s=i.indexOf("///");if(s>-1){const o=i.substring(s+3).trimStart();return o?i.replace(/^(\s*)([^\s].*)$/,`$1${o}`):void 0}return i}).filter(i=>typeof i<"u").join(`
417
+ `).trim();return n&&n!="raw"&&(t=Dt.highlight(t,{language:n}).value),ze("pre",[ze("code",t)])}function fc(n,e){const t=document.createElement("style");t.innerHTML=M().use(ra({prefix:n})).process(e).css,document.head.appendChild(t)}async function mc(n,e=document.body){const t=bc(e);let i=0;Object.keys(n).forEach(async s=>{const o=document.createElement("div");o.className="example-container",t.appendChild(o);const r=n[s].default;pc(o,r,i++)})}function gc(n){const e=document.createElement("div");e.id="examples-container";const t=n.querySelector("#examples");return t?t.after(e):n.appendChild(e),e}function bc(n){return n.children?gc(n):n}const vc=`<h1 id="@cas-smartdesign/lit-slider">@cas-smartdesign/lit-slider</h1>
415
418
  <p>A slider element based on <a href="https://github.com/Polymer/lit-element">lit-element</a> with SmartDesign look &amp; feel.</p>
416
419
  <h2 id="requirements">Requirements</h2>
417
420
  <p>The main entry point requires ES6 &amp; support for Custom Elements v1</p>
@@ -479,8 +482,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`),N=d,S=m),y===void 0&&(
479
482
  </ul>
480
483
  <h2 id="other">Other</h2>
481
484
  <p>It supports touch devices, uses aria attributes and includes the default keydown event handling such as arrow- left, top, right, bottom.</p>
482
- <h2 id="examples">Examples</h2>
483
- `;document.querySelector("#markdown-container").innerHTML=vc;gc(Object.assign({"./examples/basic-usages/index.ts":ss,"./examples/coloring/index.ts":ds,"./examples/editable-usages/index.ts":bs,"./examples/validation/index.ts":_s}));
485
+ `,yc=document.querySelector("#markdown-container");yc.innerHTML=vc;mc(Object.assign({"./examples/basic-usages/index.ts":rr,"./examples/coloring/index.ts":dr,"./examples/editable-usages/index.ts":br,"./examples/validation/index.ts":_r}),document.querySelector(".markdown-body"));
484
486
  function __vite__mapDeps(indexes) {
485
487
  if (!__vite__mapDeps.viteFileDeps) {
486
488
  __vite__mapDeps.viteFileDeps = []