@cas-smartdesign/checkbox 5.0.2 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/docs/doc.mjs CHANGED
@@ -1,4 +1,4 @@
1
- (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const 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 Ts=`<div id="basic-examples">
1
+ (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const t of document.querySelectorAll('link[rel="modulepreload"]'))n(t);new MutationObserver(t=>{for(const u of t)if(u.type==="childList")for(const a of u.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function s(t){const u={};return t.integrity&&(u.integrity=t.integrity),t.referrerPolicy&&(u.referrerPolicy=t.referrerPolicy),t.crossOrigin==="use-credentials"?u.credentials="include":t.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function n(t){if(t.ep)return;t.ep=!0;const u=s(t);fetch(t.href,u)}})();const Pn=`<div id="basic-examples">
2
2
  <sd-checkbox label="Default"></sd-checkbox>
3
3
  <sd-checkbox
4
4
  label="[multiline] Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse lobortis eu mauris nec malesuada. Quisque cursus nibh metus, sed efficitur libero vestibulum dignissim. Maecenas non viverra orci. Suspendisse a eleifend ex. Nulla vel nulla a ipsum aliquet ornare eu eget ex. Quisque aliquet metus lectus, quis convallis ligula facilisis sit amet. Morbi fringilla, mi at tempus condimentum, risus tellus blandit quam, vitae blandit metus turpis et turpis. Morbi tincidunt dui eu imperdiet sagittis. Ut sodales, urna sit amet vestibulum sollicitudin, ex neque semper lorem, non porta ex lorem in lorem. Nullam aliquet pellentesque magna, ac accumsan ante ultricies in."></sd-checkbox>
@@ -8,32 +8,32 @@
8
8
  <sd-checkbox label="Disabled" disabled></sd-checkbox>
9
9
  <sd-checkbox label="Disabled & checked" checked="true" disabled></sd-checkbox>
10
10
  </div>
11
- `,Ls=`<h3 id="basic-examples">Basic examples</h3>
12
- `,Is={mainContent:Ts,description:Ls},js=Object.freeze(Object.defineProperty({__proto__:null,default:Is},Symbol.toStringTag,{value:"Module"})),zs="modulepreload",Us=function(n,e){return new URL(n,e).href},Mi={},mn=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=Us(r,i),r in Mi)return;Mi[r]=!0;const l=r.endsWith(".css"),a=l?'[rel="stylesheet"]':"";if(!!i)for(let f=o.length-1;f>=0;f--){const p=o[f];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":zs,l||(u.as="script",u.crossOrigin=""),u.href=r,document.head.appendChild(u),l)return new Promise((f,p)=>{u.addEventListener("load",f),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})},Ds=`<div id="indeterminate-example">
11
+ `,Tn=`<h3 id="basic-examples">Basic examples</h3>
12
+ `,Ln={mainContent:Pn,description:Tn},In=Object.freeze(Object.defineProperty({__proto__:null,default:Ln},Symbol.toStringTag,{value:"Module"})),jn="modulepreload",zn=function(r,e){return new URL(r,e).href},Hi={},$r=function(e,s,n){let t=Promise.resolve();if(s&&s.length>0){let h=function(i){return Promise.all(i.map(c=>Promise.resolve(c).then(o=>({status:"fulfilled",value:o}),o=>({status:"rejected",reason:o}))))};const a=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),b=p?.nonce||p?.getAttribute("nonce");t=h(s.map(i=>{if(i=zn(i,n),i in Hi)return;Hi[i]=!0;const c=i.endsWith(".css"),o=c?'[rel="stylesheet"]':"";if(!!n)for(let g=a.length-1;g>=0;g--){const m=a[g];if(m.href===i&&(!c||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${o}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":jn,c||(f.as="script"),f.crossOrigin="",f.href=i,b&&f.setAttribute("nonce",b),document.head.appendChild(f),c)return new Promise((g,m)=>{f.addEventListener("load",g),f.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${i}`)))})}))}function u(a){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=a,window.dispatchEvent(p),!p.defaultPrevented)throw a}return t.then(a=>{for(const p of a||[])p.status==="rejected"&&u(p.reason);return e().catch(u)})},Un=`<div id="indeterminate-example">
13
13
  <sd-checkbox label="Indeterminate"></sd-checkbox>
14
14
  <sd-checkbox label="Indeterminate & disabled" disabled></sd-checkbox>
15
15
  </div>
16
- `,Bs=`<h3 id="visualizing-indeterminate-state">Visualizing indeterminate state</h3>
17
- `,Hs=`import "@cas-smartdesign/checkbox";
16
+ `,Dn=`<h3 id="visualizing-indeterminate-state">Visualizing indeterminate state</h3>
17
+ `,Bn=`import "@cas-smartdesign/checkbox";
18
18
  import { SDCheckbox } from "@cas-smartdesign/checkbox";
19
19
 
20
20
  document.querySelectorAll("#indeterminate-example sd-checkbox").forEach((checkbox: SDCheckbox) => {
21
21
  checkbox.indeterminate = true;
22
22
  });
23
- `,Fs={mainContent:Ds,description:Bs,initializer:{content:Hs,type:"typescript",initialize:()=>mn(()=>import("./indeterminate.js"),__vite__mapDeps([]),import.meta.url)}},Ws=Object.freeze(Object.defineProperty({__proto__:null,default:Fs},Symbol.toStringTag,{value:"Module"})),Vs=`<div id="basic-examples">
23
+ `,qn={mainContent:Un,description:Dn,initializer:{content:Bn,type:"typescript",initialize:()=>$r(()=>import("./indeterminate.js"),[],import.meta.url)}},Hn=Object.freeze(Object.defineProperty({__proto__:null,default:qn},Symbol.toStringTag,{value:"Module"})),Fn=`<div id="basic-examples">
24
24
  <sd-checkbox label="Enabled with initial tabindex 0" tabindex="0"></sd-checkbox>
25
25
  <sd-checkbox label="Disabled with initial tabindex 0" disabled tabindex="0"></sd-checkbox>
26
26
  <sd-checkbox label="Enabled with initial tabindex -1" tabindex="-1"></sd-checkbox>
27
27
  <sd-checkbox label="Disabled with initial tabindex -1" disabled tabindex="-1"></sd-checkbox>
28
28
  </div>
29
- `,qs=`<h3 id="examples-showing-tabindex-behaviour">Examples showing tabindex behaviour</h3>
30
- `,Gs={mainContent:Vs,description:qs},Zs=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"})),Ks=`<div id="validation-example">
29
+ `,Wn=`<h3 id="examples-showing-tabindex-behaviour">Examples showing tabindex behaviour</h3>
30
+ `,Vn={mainContent:Fn,description:Wn},Gn=Object.freeze(Object.defineProperty({__proto__:null,default:Vn},Symbol.toStringTag,{value:"Module"})),Zn=`<div id="validation-example">
31
31
  <sd-checkbox label="Validation - warning" validationlevel="warn"></sd-checkbox>
32
32
  <sd-checkbox label="Validation - suggestion" validationlevel="suggest"></sd-checkbox>
33
33
  <sd-checkbox label="Validation - error" validationlevel="error"></sd-checkbox>
34
34
  </div>
35
- `,Js=`<h3 id="examples-with-validation-messages">Examples with validation messages</h3>
36
- `,Qs=`import "@cas-smartdesign/checkbox";
35
+ `,Jn=`<h3 id="examples-with-validation-messages">Examples with validation messages</h3>
36
+ `,Kn=`import "@cas-smartdesign/checkbox";
37
37
  import { SDCheckbox } from "@cas-smartdesign/checkbox";
38
38
  import { ValidationLevel } from "@cas-smartdesign/field-validation-message";
39
39
 
@@ -55,27 +55,27 @@ document.querySelectorAll("#validation-example sd-checkbox").forEach((checkbox:
55
55
 
56
56
  validate(checkbox, checkbox.checked);
57
57
  });
58
- `,Xs={mainContent:Ks,description:Js,initializer:{content:Qs,type:"typescript",initialize:()=>mn(()=>import("./validation.js"),__vite__mapDeps([]),import.meta.url)}},Ys=Object.freeze(Object.defineProperty({__proto__:null,default:Xs},Symbol.toStringTag,{value:"Module"}));const nt=window,ai=nt.ShadowRoot&&(nt.ShadyCSS===void 0||nt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ci=Symbol(),Ni=new WeakMap;let bn=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==ci)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(ai&&e===void 0){const i=t!==void 0&&t.length===1;i&&(e=Ni.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Ni.set(t,e))}return e}toString(){return this.cssText}};const ui=n=>new bn(typeof n=="string"?n:n+"",void 0,ci),yn=(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 bn(t,n,ci)},er=(n,e)=>{ai?n.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{const i=document.createElement("style"),s=nt.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=t.cssText,n.appendChild(i)})},Pi=ai?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return ui(t)})(n):n;var Mt;const ot=window,Ti=ot.trustedTypes,tr=Ti?Ti.emptyScript:"",Li=ot.reactiveElementPolyfillSupport,Wt={toAttribute(n,e){switch(e){case Boolean:n=n?tr: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}},wn=(n,e)=>e!==n&&(e==e||n==n),Nt={attribute:!0,type:String,converter:Wt,reflect:!1,hasChanged:wn},Vt="finalized";let ge=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=Nt){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)||Nt}static finalize(){if(this.hasOwnProperty(Vt))return!1;this[Vt]=!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(Pi(s))}else e!==void 0&&t.push(Pi(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 er(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=Nt){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:Wt).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:Wt;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||wn)(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){}};ge[Vt]=!0,ge.elementProperties=new Map,ge.elementStyles=[],ge.shadowRootOptions={mode:"open"},Li==null||Li({ReactiveElement:ge}),((Mt=ot.reactiveElementVersions)!==null&&Mt!==void 0?Mt:ot.reactiveElementVersions=[]).push("1.6.3");var Pt;const lt=window,me=lt.trustedTypes,Ii=me?me.createPolicy("lit-html",{createHTML:n=>n}):void 0,qt="$lit$",Y=`lit$${(Math.random()+"").slice(9)}$`,vn="?"+Y,ir=`<${vn}>`,ce=document,Oe=()=>ce.createComment(""),Re=n=>n===null||typeof n!="object"&&typeof n!="function",xn=Array.isArray,nr=n=>xn(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",Tt=`[
59
- \f\r]`,Se=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ji=/-->/g,zi=/>/g,re=RegExp(`>|${Tt}(?:([^\\s"'>=/]+)(${Tt}*=${Tt}*(?:[^
60
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ui=/'/g,Di=/"/g,_n=/^(?:script|style|textarea|title)$/i,sr=n=>(e,...t)=>({_$litType$:n,strings:e,values:t}),at=sr(1),be=Symbol.for("lit-noChange"),R=Symbol.for("lit-nothing"),Bi=new WeakMap,oe=ce.createTreeWalker(ce,129,null,!1);function En(n,e){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ii!==void 0?Ii.createHTML(e):e}const rr=(n,e)=>{const t=n.length-1,i=[];let s,o=e===2?"<svg>":"",r=Se;for(let l=0;l<t;l++){const a=n[l];let c,u,f=-1,p=0;for(;p<a.length&&(r.lastIndex=p,u=r.exec(a),u!==null);)p=r.lastIndex,r===Se?u[1]==="!--"?r=ji:u[1]!==void 0?r=zi:u[2]!==void 0?(_n.test(u[2])&&(s=RegExp("</"+u[2],"g")),r=re):u[3]!==void 0&&(r=re):r===re?u[0]===">"?(r=s??Se,f=-1):u[1]===void 0?f=-2:(f=r.lastIndex-u[2].length,c=u[1],r=u[3]===void 0?re:u[3]==='"'?Di:Ui):r===Di||r===Ui?r=re:r===ji||r===zi?r=Se:(r=re,s=void 0);const x=r===re&&n[l+1].startsWith("/>")?" ":"";o+=r===Se?a+ir:f>=0?(i.push(c),a.slice(0,f)+qt+a.slice(f)+Y+x):a+Y+(f===-2?(i.push(void 0),l):x)}return[En(n,o+(n[t]||"<?>")+(e===2?"</svg>":"")),i]};class Me{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]=rr(e,t);if(this.el=Me.createElement(c,i),oe.currentNode=this.el.content,t===2){const f=this.el.content,p=f.firstChild;p.remove(),f.append(...p.childNodes)}for(;(s=oe.nextNode())!==null&&a.length<l;){if(s.nodeType===1){if(s.hasAttributes()){const f=[];for(const p of s.getAttributeNames())if(p.endsWith(qt)||p.startsWith(Y)){const x=u[r++];if(f.push(p),x!==void 0){const C=s.getAttribute(x.toLowerCase()+qt).split(Y),M=/([.?@])?(.*)/.exec(x);a.push({type:1,index:o,name:M[2],strings:C,ctor:M[1]==="."?lr:M[1]==="?"?cr:M[1]==="@"?ur:mt})}else a.push({type:6,index:o})}for(const p of f)s.removeAttribute(p)}if(_n.test(s.tagName)){const f=s.textContent.split(Y),p=f.length-1;if(p>0){s.textContent=me?me.emptyScript:"";for(let x=0;x<p;x++)s.append(f[x],Oe()),oe.nextNode(),a.push({type:2,index:++o});s.append(f[p],Oe())}}}else if(s.nodeType===8)if(s.data===vn)a.push({type:2,index:o});else{let f=-1;for(;(f=s.data.indexOf(Y,f+1))!==-1;)a.push({type:7,index:o}),f+=Y.length-1}o++}}static createElement(e,t){const i=ce.createElement("template");return i.innerHTML=e,i}}function ye(n,e,t=n,i){var s,o,r,l;if(e===be)return e;let a=i!==void 0?(s=t._$Co)===null||s===void 0?void 0:s[i]:t._$Cl;const c=Re(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=ye(n,a._$AS(n,e.values),a,i)),e}class or{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:ce).importNode(i,!0);oe.currentNode=o;let r=oe.nextNode(),l=0,a=0,c=s[0];for(;c!==void 0;){if(l===c.index){let u;c.type===2?u=new Ue(r,r.nextSibling,this,e):c.type===1?u=new c.ctor(r,c.name,c.strings,this,e):c.type===6&&(u=new hr(r,this,e)),this._$AV.push(u),c=s[++a]}l!==(c==null?void 0:c.index)&&(r=oe.nextNode(),l++)}return oe.currentNode=ce,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 Ue{constructor(e,t,i,s){var o;this.type=2,this._$AH=R,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=ye(this,e,t),Re(e)?e===R||e==null||e===""?(this._$AH!==R&&this._$AR(),this._$AH=R):e!==this._$AH&&e!==be&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):nr(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!==R&&Re(this._$AH)?this._$AA.nextSibling.data=e:this.$(ce.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=Me.createElement(En(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 or(o,this),l=r.u(this.options);r.v(i),this.$(l),this._$AH=r}}_$AC(e){let t=Bi.get(e.strings);return t===void 0&&Bi.set(e.strings,t=new Me(e)),t}T(e){xn(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 Ue(this.k(Oe()),this.k(Oe()),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 mt{constructor(e,t,i,s,o){this.type=1,this._$AH=R,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=R}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=ye(this,e,t,0),r=!Re(e)||e!==this._$AH&&e!==be,r&&(this._$AH=e);else{const l=e;let a,c;for(e=o[0],a=0;a<o.length-1;a++)c=ye(this,l[i+a],t,a),c===be&&(c=this._$AH[a]),r||(r=!Re(c)||c!==this._$AH[a]),c===R?e=R:e!==R&&(e+=(c??"")+o[a+1]),this._$AH[a]=c}r&&!s&&this.j(e)}j(e){e===R?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class lr extends mt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===R?void 0:e}}const ar=me?me.emptyScript:"";class cr extends mt{constructor(){super(...arguments),this.type=4}j(e){e&&e!==R?this.element.setAttribute(this.name,ar):this.element.removeAttribute(this.name)}}let ur=class extends mt{constructor(e,t,i,s,o){super(e,t,i,s,o),this.type=5}_$AI(e,t=this){var i;if((e=(i=ye(this,e,t,0))!==null&&i!==void 0?i:R)===be)return;const s=this._$AH,o=e===R&&s!==R||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,r=e!==R&&(s===R||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 hr{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){ye(this,e)}}const Hi=lt.litHtmlPolyfillSupport;Hi==null||Hi(Me,Ue),((Pt=lt.litHtmlVersions)!==null&&Pt!==void 0?Pt:lt.litHtmlVersions=[]).push("2.8.0");const dr=(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 Ue(e.insertBefore(Oe(),l),l,void 0,t??{})}return r._$AI(n),r};var Lt,It;class le extends ge{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=dr(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 be}}le.finalized=!0,le._$litElement$=!0,(Lt=globalThis.litElementHydrateSupport)===null||Lt===void 0||Lt.call(globalThis,{LitElement:le});const Fi=globalThis.litElementPolyfillSupport;Fi==null||Fi({LitElement:le});((It=globalThis.litElementVersions)!==null&&It!==void 0?It:globalThis.litElementVersions=[]).push("3.3.3");const fr=(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)}},pr=(n,e,t)=>{e.constructor.createProperty(t,n)};function z(n){return(e,t)=>t!==void 0?pr(n,e,t):fr(n,e)}const gr=n=>n??R,mr=":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}",br="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",yr="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",wr="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 vr=Object.defineProperty,xr=Object.getOwnPropertyDescriptor,hi=(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&&vr(e,t,s),s},fe;const Ne=(fe=class extends le{static parseLevel(n){if(n){const e=Object.keys(ct).find(t=>t.toLowerCase()===n.toLowerCase());return e&&ct[e]}}static get styles(){return[yn`
61
- ${ui(mr)}
62
- `]}render(){return at`${this.iconToUse&&at`<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(fe.parseLevel(this.level)){case"warn":return wr;case"suggest":return yr;case"error":return br;default:return null}}},fe.ID="sd-field-validation-message",fe.levelConverter={fromAttribute(n){return fe.parseLevel(n)},toAttribute(n){return n&&n.toLowerCase()}},fe);hi([z({type:String,attribute:!0})],Ne.prototype,"message",2);hi([z({type:String,attribute:!0})],Ne.prototype,"icon",2);hi([z({converter:Ne.levelConverter,reflect:!0})],Ne.prototype,"level",2);let jt=Ne;var ct=(n=>(n.Warn="warn",n.Suggest="suggest",n.Error="error",n))(ct||{});customElements.get(jt.ID)||customElements.define(jt.ID,jt);const _r=`:host{display:block}:host,.label,.checkbox{outline:none}.checkbox-container{display:flex;flex-direction:row;align-items:flex-start}.checkbox{appearance:none;-moz-appearance:none;-webkit-appearance:none;display:block;margin:0;width:20px;height:20px;border:2px solid #767676;cursor:pointer;background-color:#fff}:host(:not([disabled]):focus) .highlight,:host(:not([disabled])[focused]) .highlight{background-color:#1467ba4d;border-radius:4px}:host(:not([disabled]):focus) .highlight .checkbox,:host(:not([disabled])[focused]) .highlight .checkbox{border-color:#1467ba}:host([checked]) .checkbox{background:#1467ba url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='15'%20height='15'%20viewBox='0%200%2020%2020'%3e%3cpath%20d='M15.9%204.6L17.4%206l-9.5%209.5-5.2-5.2%201.4-1.4%203.8%203.8%208-8.1z'%20fill='%23fff'/%3e%3c/svg%3e") no-repeat center center;border-color:#1467ba}.checkbox.indeterminate{background:#1467ba url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%3e%3cpath%20fill='%23fff'%20d='M8%2014h16v4H8z'/%3e%3c/svg%3e") no-repeat center center;background-size:20px;border-color:#1467ba}.highlight{border:4px solid transparent;margin-right:6px}:host([disabled]) .checkbox-container{opacity:.6;cursor:default;filter:grayscale(100%);pointer-events:none}.validation-message{margin-left:4px}.label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;margin-top:4px;line-height:20px}:host([oneline]) .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}`;var Er=Object.defineProperty,Sr=Object.getOwnPropertyDescriptor,Q=(n,e,t,i)=>{for(var s=i>1?void 0:i?Sr(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&&Er(e,t,s),s};const kr="indeterminate",zt="delegatesFocus"in window.ShadowRoot.prototype;var W;const V=(W=class extends le{constructor(){super(...arguments),this._checked=!1,this._indeterminate=!1}get checked(){return this._checked}set checked(e){const t=this._checked;this._checked=e,this._checked&&(this.indeterminate=!1),this.requestUpdate("checked",t)}get indeterminate(){return this._indeterminate}set indeterminate(e){const t=this._indeterminate;this._indeterminate=e,this._indeterminate&&(this.checked=!1),this.requestUpdate("indeterminate",t)}firstUpdated(e){super.firstUpdated(e),zt||(this.checkboxElement.onfocus=()=>this.setAttribute("focused",""),this.checkboxElement.onblur=()=>this.removeAttribute("focused"),this.addEventListener("focus",t=>{t.target===this&&this.checkboxElement.focus()}))}focus(){this.checkboxElement?this.checkboxElement.focus():super.focus()}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),!zt&&e==="tabindex"&&t!==i&&i==="0"&&this.removeAttribute("tabindex")}render(){return at`
58
+ `,Xn={mainContent:Zn,description:Jn,initializer:{content:Kn,type:"typescript",initialize:()=>$r(()=>import("./validation.js"),[],import.meta.url)}},Qn=Object.freeze(Object.defineProperty({__proto__:null,default:Xn},Symbol.toStringTag,{value:"Module"}));const ht=globalThis,di=ht.ShadowRoot&&(ht.ShadyCSS===void 0||ht.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,fi=Symbol(),Fi=new WeakMap;let Mr=class{constructor(e,s,n){if(this._$cssResult$=!0,n!==fi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=s}get styleSheet(){let e=this.o;const s=this.t;if(di&&e===void 0){const n=s!==void 0&&s.length===1;n&&(e=Fi.get(s)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Fi.set(s,e))}return e}toString(){return this.cssText}};const pi=r=>new Mr(typeof r=="string"?r:r+"",void 0,fi),Nr=(r,...e)=>{const s=r.length===1?r[0]:e.reduce(((n,t,u)=>n+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(t)+r[u+1]),r[0]);return new Mr(s,r,fi)},Yn=(r,e)=>{if(di)r.adoptedStyleSheets=e.map((s=>s instanceof CSSStyleSheet?s:s.styleSheet));else for(const s of e){const n=document.createElement("style"),t=ht.litNonce;t!==void 0&&n.setAttribute("nonce",t),n.textContent=s.cssText,r.appendChild(n)}},Wi=di?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let s="";for(const n of e.cssRules)s+=n.cssText;return pi(s)})(r):r;const{is:es,defineProperty:ts,getOwnPropertyDescriptor:is,getOwnPropertyNames:rs,getOwnPropertySymbols:ns,getPrototypeOf:ss}=Object,bt=globalThis,Vi=bt.trustedTypes,os=Vi?Vi.emptyScript:"",as=bt.reactiveElementPolyfillSupport,Ge=(r,e)=>r,dt={toAttribute(r,e){switch(e){case Boolean:r=r?os:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let s=r;switch(e){case Boolean:s=r!==null;break;case Number:s=r===null?null:Number(r);break;case Object:case Array:try{s=JSON.parse(r)}catch{s=null}}return s}},gi=(r,e)=>!es(r,e),Gi={attribute:!0,type:String,converter:dt,reflect:!1,useDefault:!1,hasChanged:gi};Symbol.metadata??=Symbol("metadata"),bt.litPropertyMetadata??=new WeakMap;let ze=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,s=Gi){if(s.state&&(s.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((s=Object.create(s)).wrapped=!0),this.elementProperties.set(e,s),!s.noAccessor){const n=Symbol(),t=this.getPropertyDescriptor(e,n,s);t!==void 0&&ts(this.prototype,e,t)}}static getPropertyDescriptor(e,s,n){const{get:t,set:u}=is(this.prototype,e)??{get(){return this[s]},set(a){this[s]=a}};return{get:t,set(a){const p=t?.call(this);u?.call(this,a),this.requestUpdate(e,p,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Gi}static _$Ei(){if(this.hasOwnProperty(Ge("elementProperties")))return;const e=ss(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Ge("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ge("properties"))){const s=this.properties,n=[...rs(s),...ns(s)];for(const t of n)this.createProperty(t,s[t])}const e=this[Symbol.metadata];if(e!==null){const s=litPropertyMetadata.get(e);if(s!==void 0)for(const[n,t]of s)this.elementProperties.set(n,t)}this._$Eh=new Map;for(const[s,n]of this.elementProperties){const t=this._$Eu(s,n);t!==void 0&&this._$Eh.set(t,s)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const s=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const t of n)s.unshift(Wi(t))}else e!==void 0&&s.push(Wi(e));return s}static _$Eu(e,s){const n=s.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,s=this.constructor.elementProperties;for(const n of s.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Yn(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,s,n){this._$AK(e,n)}_$ET(e,s){const n=this.constructor.elementProperties.get(e),t=this.constructor._$Eu(e,n);if(t!==void 0&&n.reflect===!0){const u=(n.converter?.toAttribute!==void 0?n.converter:dt).toAttribute(s,n.type);this._$Em=e,u==null?this.removeAttribute(t):this.setAttribute(t,u),this._$Em=null}}_$AK(e,s){const n=this.constructor,t=n._$Eh.get(e);if(t!==void 0&&this._$Em!==t){const u=n.getPropertyOptions(t),a=typeof u.converter=="function"?{fromAttribute:u.converter}:u.converter?.fromAttribute!==void 0?u.converter:dt;this._$Em=t;const p=a.fromAttribute(s,u.type);this[t]=p??this._$Ej?.get(t)??p,this._$Em=null}}requestUpdate(e,s,n){if(e!==void 0){const t=this.constructor,u=this[e];if(n??=t.getPropertyOptions(e),!((n.hasChanged??gi)(u,s)||n.useDefault&&n.reflect&&u===this._$Ej?.get(e)&&!this.hasAttribute(t._$Eu(e,n))))return;this.C(e,s,n)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,s,{useDefault:n,reflect:t,wrapped:u},a){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??s??this[e]),u!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(s=void 0),this._$AL.set(e,s)),t===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(s){Promise.reject(s)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,u]of this._$Ep)this[t]=u;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[t,u]of n){const{wrapped:a}=u,p=this[t];a!==!0||this._$AL.has(t)||p===void 0||this.C(t,void 0,u,p)}}let e=!1;const s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),this._$EO?.forEach((n=>n.hostUpdate?.())),this.update(s)):this._$EM()}catch(n){throw e=!1,this._$EM(),n}e&&this._$AE(s)}willUpdate(e){}_$AE(e){this._$EO?.forEach((s=>s.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((s=>this._$ET(s,this[s]))),this._$EM()}updated(e){}firstUpdated(e){}};ze.elementStyles=[],ze.shadowRootOptions={mode:"open"},ze[Ge("elementProperties")]=new Map,ze[Ge("finalized")]=new Map,as?.({ReactiveElement:ze}),(bt.reactiveElementVersions??=[]).push("2.1.1");const mi=globalThis,ft=mi.trustedTypes,Zi=ft?ft.createPolicy("lit-html",{createHTML:r=>r}):void 0,Pr="$lit$",_e=`lit$${Math.random().toFixed(9).slice(2)}$`,Tr="?"+_e,ls=`<${Tr}>`,$e=document,Je=()=>$e.createComment(""),Ke=r=>r===null||typeof r!="object"&&typeof r!="function",bi=Array.isArray,cs=r=>bi(r)||typeof r?.[Symbol.iterator]=="function",Lt=`[
59
+ \f\r]`,We=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ji=/-->/g,Ki=/>/g,Oe=RegExp(`>|${Lt}(?:([^\\s"'>=/]+)(${Lt}*=${Lt}*(?:[^
60
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Xi=/'/g,Qi=/"/g,Lr=/^(?:script|style|textarea|title)$/i,us=r=>(e,...s)=>({_$litType$:r,strings:e,values:s}),pt=us(1),Ue=Symbol.for("lit-noChange"),te=Symbol.for("lit-nothing"),Yi=new WeakMap,Ce=$e.createTreeWalker($e,129);function Ir(r,e){if(!bi(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Zi!==void 0?Zi.createHTML(e):e}const hs=(r,e)=>{const s=r.length-1,n=[];let t,u=e===2?"<svg>":e===3?"<math>":"",a=We;for(let p=0;p<s;p++){const b=r[p];let h,i,c=-1,o=0;for(;o<b.length&&(a.lastIndex=o,i=a.exec(b),i!==null);)o=a.lastIndex,a===We?i[1]==="!--"?a=Ji:i[1]!==void 0?a=Ki:i[2]!==void 0?(Lr.test(i[2])&&(t=RegExp("</"+i[2],"g")),a=Oe):i[3]!==void 0&&(a=Oe):a===Oe?i[0]===">"?(a=t??We,c=-1):i[1]===void 0?c=-2:(c=a.lastIndex-i[2].length,h=i[1],a=i[3]===void 0?Oe:i[3]==='"'?Qi:Xi):a===Qi||a===Xi?a=Oe:a===Ji||a===Ki?a=We:(a=Oe,t=void 0);const l=a===Oe&&r[p+1].startsWith("/>")?" ":"";u+=a===We?b+ls:c>=0?(n.push(h),b.slice(0,c)+Pr+b.slice(c)+_e+l):b+_e+(c===-2?p:l)}return[Ir(r,u+(r[s]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]};class Xe{constructor({strings:e,_$litType$:s},n){let t;this.parts=[];let u=0,a=0;const p=e.length-1,b=this.parts,[h,i]=hs(e,s);if(this.el=Xe.createElement(h,n),Ce.currentNode=this.el.content,s===2||s===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(t=Ce.nextNode())!==null&&b.length<p;){if(t.nodeType===1){if(t.hasAttributes())for(const c of t.getAttributeNames())if(c.endsWith(Pr)){const o=i[a++],l=t.getAttribute(c).split(_e),f=/([.?@])?(.*)/.exec(o);b.push({type:1,index:u,name:f[2],strings:l,ctor:f[1]==="."?fs:f[1]==="?"?ps:f[1]==="@"?gs:yt}),t.removeAttribute(c)}else c.startsWith(_e)&&(b.push({type:6,index:u}),t.removeAttribute(c));if(Lr.test(t.tagName)){const c=t.textContent.split(_e),o=c.length-1;if(o>0){t.textContent=ft?ft.emptyScript:"";for(let l=0;l<o;l++)t.append(c[l],Je()),Ce.nextNode(),b.push({type:2,index:++u});t.append(c[o],Je())}}}else if(t.nodeType===8)if(t.data===Tr)b.push({type:2,index:u});else{let c=-1;for(;(c=t.data.indexOf(_e,c+1))!==-1;)b.push({type:7,index:u}),c+=_e.length-1}u++}}static createElement(e,s){const n=$e.createElement("template");return n.innerHTML=e,n}}function De(r,e,s=r,n){if(e===Ue)return e;let t=n!==void 0?s._$Co?.[n]:s._$Cl;const u=Ke(e)?void 0:e._$litDirective$;return t?.constructor!==u&&(t?._$AO?.(!1),u===void 0?t=void 0:(t=new u(r),t._$AT(r,s,n)),n!==void 0?(s._$Co??=[])[n]=t:s._$Cl=t),t!==void 0&&(e=De(r,t._$AS(r,e.values),t,n)),e}class ds{constructor(e,s){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=s}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:s},parts:n}=this._$AD,t=(e?.creationScope??$e).importNode(s,!0);Ce.currentNode=t;let u=Ce.nextNode(),a=0,p=0,b=n[0];for(;b!==void 0;){if(a===b.index){let h;b.type===2?h=new Ye(u,u.nextSibling,this,e):b.type===1?h=new b.ctor(u,b.name,b.strings,this,e):b.type===6&&(h=new ms(u,this,e)),this._$AV.push(h),b=n[++p]}a!==b?.index&&(u=Ce.nextNode(),a++)}return Ce.currentNode=$e,t}p(e){let s=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,s),s+=n.strings.length-2):n._$AI(e[s])),s++}}class Ye{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,s,n,t){this.type=2,this._$AH=te,this._$AN=void 0,this._$AA=e,this._$AB=s,this._$AM=n,this.options=t,this._$Cv=t?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const s=this._$AM;return s!==void 0&&e?.nodeType===11&&(e=s.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,s=this){e=De(this,e,s),Ke(e)?e===te||e==null||e===""?(this._$AH!==te&&this._$AR(),this._$AH=te):e!==this._$AH&&e!==Ue&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):cs(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==te&&Ke(this._$AH)?this._$AA.nextSibling.data=e:this.T($e.createTextNode(e)),this._$AH=e}$(e){const{values:s,_$litType$:n}=e,t=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Xe.createElement(Ir(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===t)this._$AH.p(s);else{const u=new ds(t,this),a=u.u(this.options);u.p(s),this.T(a),this._$AH=u}}_$AC(e){let s=Yi.get(e.strings);return s===void 0&&Yi.set(e.strings,s=new Xe(e)),s}k(e){bi(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let n,t=0;for(const u of e)t===s.length?s.push(n=new Ye(this.O(Je()),this.O(Je()),this,this.options)):n=s[t],n._$AI(u),t++;t<s.length&&(this._$AR(n&&n._$AB.nextSibling,t),s.length=t)}_$AR(e=this._$AA.nextSibling,s){for(this._$AP?.(!1,!0,s);e!==this._$AB;){const n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}}class yt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,s,n,t,u){this.type=1,this._$AH=te,this._$AN=void 0,this.element=e,this.name=s,this._$AM=t,this.options=u,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=te}_$AI(e,s=this,n,t){const u=this.strings;let a=!1;if(u===void 0)e=De(this,e,s,0),a=!Ke(e)||e!==this._$AH&&e!==Ue,a&&(this._$AH=e);else{const p=e;let b,h;for(e=u[0],b=0;b<u.length-1;b++)h=De(this,p[n+b],s,b),h===Ue&&(h=this._$AH[b]),a||=!Ke(h)||h!==this._$AH[b],h===te?e=te:e!==te&&(e+=(h??"")+u[b+1]),this._$AH[b]=h}a&&!t&&this.j(e)}j(e){e===te?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class fs extends yt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===te?void 0:e}}class ps extends yt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==te)}}class gs extends yt{constructor(e,s,n,t,u){super(e,s,n,t,u),this.type=5}_$AI(e,s=this){if((e=De(this,e,s,0)??te)===Ue)return;const n=this._$AH,t=e===te&&n!==te||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,u=e!==te&&(n===te||t);t&&this.element.removeEventListener(this.name,this,n),u&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}let ms=class{constructor(e,s,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=s,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){De(this,e)}};const bs=mi.litHtmlPolyfillSupport;bs?.(Xe,Ye),(mi.litHtmlVersions??=[]).push("3.3.1");const ys=(r,e,s)=>{const n=s?.renderBefore??e;let t=n._$litPart$;if(t===void 0){const u=s?.renderBefore??null;n._$litPart$=t=new Ye(e.insertBefore(Je(),u),u,void 0,s??{})}return t._$AI(r),t};const yi=globalThis;class Re extends ze{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ys(s,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ue}}Re._$litElement$=!0,Re.finalized=!0,yi.litElementHydrateSupport?.({LitElement:Re});const ws=yi.litElementPolyfillSupport;ws?.({LitElement:Re});(yi.litElementVersions??=[]).push("4.2.1");const vs={attribute:!0,type:String,converter:dt,reflect:!1,hasChanged:gi},xs=(r=vs,e,s)=>{const{kind:n,metadata:t}=s;let u=globalThis.litPropertyMetadata.get(t);if(u===void 0&&globalThis.litPropertyMetadata.set(t,u=new Map),n==="setter"&&((r=Object.create(r)).wrapped=!0),u.set(s.name,r),n==="accessor"){const{name:a}=s;return{set(p){const b=e.get.call(this);e.set.call(this,p),this.requestUpdate(a,b,r)},init(p){return p!==void 0&&this.C(a,void 0,r,p),p}}}if(n==="setter"){const{name:a}=s;return function(p){const b=this[a];e.call(this,p),this.requestUpdate(a,b,r)}}throw Error("Unsupported decorator location: "+n)};function ce(r){return(e,s)=>typeof s=="object"?xs(r,e,s):((n,t,u)=>{const a=t.hasOwnProperty(u);return t.constructor.createProperty(u,n),a?Object.getOwnPropertyDescriptor(t,u):void 0})(r,e,s)}const _s=r=>r??te,Es=":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}",ks="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",Ss="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",As="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 Os=Object.defineProperty,wi=(r,e,s,n)=>{for(var t=void 0,u=r.length-1,a;u>=0;u--)(a=r[u])&&(t=a(e,s,t)||t);return t&&Os(e,s,t),t},je;const Qe=(je=class extends Re{static parseLevel(r){if(r){const e=Object.keys(gt).find(s=>s.toLowerCase()===r.toLowerCase());return e&&gt[e]}}static get styles(){return[Nr`
61
+ ${pi(Es)}
62
+ `]}render(){return pt`${this.iconToUse&&pt`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(r){return r.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(r)}get iconForLevel(){switch(je.parseLevel(this.level)){case"warn":return As;case"suggest":return Ss;case"error":return ks;default:return null}}},je.ID="sd-field-validation-message",je.levelConverter={fromAttribute(r){return je.parseLevel(r)},toAttribute(r){return r&&r.toLowerCase()}},je);wi([ce({type:String,attribute:!0})],Qe.prototype,"message");wi([ce({type:String,attribute:!0})],Qe.prototype,"icon");wi([ce({converter:Qe.levelConverter,reflect:!0})],Qe.prototype,"level");let It=Qe;var gt=(r=>(r.Warn="warn",r.Suggest="suggest",r.Error="error",r))(gt||{});customElements.get(It.ID)||customElements.define(It.ID,It);const Cs=`:host{display:block}:host,.label,.checkbox{outline:none}.checkbox-container{display:flex;flex-direction:row;align-items:flex-start}.checkbox{appearance:none;-moz-appearance:none;-webkit-appearance:none;display:block;margin:0;width:20px;height:20px;border:2px solid #767676;cursor:pointer;background-color:#fff}:host(:not([disabled]):focus) .highlight,:host(:not([disabled])[focused]) .highlight{background-color:#1467ba4d;border-radius:4px}:host(:not([disabled]):focus) .highlight .checkbox,:host(:not([disabled])[focused]) .highlight .checkbox{border-color:#1467ba}:host([checked]) .checkbox{background:#1467ba url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='15'%20height='15'%20viewBox='0%200%2020%2020'%3e%3cpath%20d='M15.9%204.6L17.4%206l-9.5%209.5-5.2-5.2%201.4-1.4%203.8%203.8%208-8.1z'%20fill='%23fff'/%3e%3c/svg%3e") no-repeat center center;border-color:#1467ba}.checkbox.indeterminate{background:#1467ba url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%3e%3cpath%20fill='%23fff'%20d='M8%2014h16v4H8z'/%3e%3c/svg%3e") no-repeat center center;background-size:20px;border-color:#1467ba}.highlight{border:4px solid transparent;margin-right:6px}:host([disabled]) .checkbox-container{opacity:.6;cursor:default;filter:grayscale(100%);pointer-events:none}.validation-message{margin-left:4px}.label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;margin-top:4px;line-height:20px}:host([oneline]) .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}`;var Rs=Object.defineProperty,$s=Object.getOwnPropertyDescriptor,be=(r,e,s,n)=>{for(var t=n>1?void 0:n?$s(e,s):e,u=r.length-1,a;u>=0;u--)(a=r[u])&&(t=(n?a(e,s,t):a(t))||t);return n&&t&&Rs(e,s,t),t};const Ms="indeterminate",jt="delegatesFocus"in window.ShadowRoot.prototype;var ue;const ge=(ue=class extends Re{constructor(){super(...arguments),this._checked=!1,this._indeterminate=!1}get checked(){return this._checked}set checked(e){const s=this._checked;this._checked=e,this._checked&&(this.indeterminate=!1),this.requestUpdate("checked",s)}get indeterminate(){return this._indeterminate}set indeterminate(e){const s=this._indeterminate;this._indeterminate=e,this._indeterminate&&(this.checked=!1),this.requestUpdate("indeterminate",s)}firstUpdated(e){super.firstUpdated(e),jt||(this.checkboxElement.onfocus=()=>this.setAttribute("focused",""),this.checkboxElement.onblur=()=>this.removeAttribute("focused"),this.addEventListener("focus",s=>{s.target===this&&this.checkboxElement.focus()}))}focus(){this.checkboxElement?this.checkboxElement.focus():super.focus()}attributeChangedCallback(e,s,n){super.attributeChangedCallback(e,s,n),!jt&&e==="tabindex"&&s!==n&&n==="0"&&this.removeAttribute("tabindex")}render(){return pt`
63
63
  <div class="checkbox-container">
64
64
  <div class="highlight">
65
65
  <input
66
66
  type="checkbox"
67
67
  id="input"
68
68
  ?disabled=${this.disabled}
69
- tabindex=${gr(this.tabIndex==null?void 0:this.tabIndex)}
69
+ tabindex=${_s(this.tabIndex==null?void 0:this.tabIndex)}
70
70
  .checked=${this.checked}
71
71
  .indeterminate=${this.indeterminate}
72
- class="checkbox${this.indeterminate?" "+kr:""}"
72
+ class="checkbox${this.indeterminate?" "+Ms:""}"
73
73
  @change="${this.onInputValueChange}"
74
74
  />
75
75
  </div>
76
76
  <label class="label" for="input">${this.label}</label>
77
77
  </div>
78
- ${this.validationMessage&&at`
78
+ ${this.validationMessage&&pt`
79
79
  <sd-field-validation-message
80
80
  class="validation-message"
81
81
  .message=${this.validationMessage}
@@ -84,37 +84,40 @@ document.querySelectorAll("#validation-example sd-checkbox").forEach((checkbox:
84
84
  >
85
85
  </sd-field-validation-message>
86
86
  `}
87
- `}onInputValueChange(e){e.preventDefault(),e.stopPropagation(),this.checked=e.target.checked,this.fireValueChange()}fireValueChange(){this.dispatchEvent(new CustomEvent("value-change",{detail:{value:this.checked}}))}get checkboxElement(){return this.shadowRoot.querySelector(".checkbox")}static get styles(){return[yn`
88
- ${ui(_r)}
89
- `]}},W.ID="sd-checkbox",W.ensureDefined=()=>{customElements.get(W.ID)||customElements.define(W.ID,W)},W.shadowRootOptions={...le.shadowRootOptions,delegatesFocus:zt},W);Q([z({type:Boolean,reflect:!0})],V.prototype,"disabled",2);Q([z({type:String,reflect:!0})],V.prototype,"label",2);Q([z({type:String})],V.prototype,"validationMessage",2);Q([z({type:String})],V.prototype,"validationIconSrc",2);Q([z({type:ct,reflect:!0})],V.prototype,"validationLevel",2);Q([z({type:Number})],V.prototype,"tabIndex",2);Q([z({type:Boolean,reflect:!0})],V.prototype,"oneLine",2);Q([z({type:Boolean,reflect:!0})],V.prototype,"checked",1);Q([z({type:Boolean,reflect:!1,attribute:!1})],V.prototype,"indeterminate",1);let $r=V;$r.ensureDefined();function Sn(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Ar(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 di={exports:{}},$=String,kn=function(){return{isColorSupported:!1,reset:$,bold:$,dim:$,italic:$,underline:$,inverse:$,hidden:$,strikethrough:$,black:$,red:$,green:$,yellow:$,blue:$,magenta:$,cyan:$,white:$,gray:$,bgBlack:$,bgRed:$,bgGreen:$,bgYellow:$,bgBlue:$,bgMagenta:$,bgCyan:$,bgWhite:$}};di.exports=kn();di.exports.createColors=kn;var Cr=di.exports;const Or={},Rr=Object.freeze(Object.defineProperty({__proto__:null,default:Or},Symbol.toStringTag,{value:"Module"})),U=Ar(Rr);let Wi=Cr,Vi=U,Gt=class $n 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,$n)}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=Wi.isColorSupported),Vi&&e&&(t=Vi(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:f}=Wi.createColors(!0);l=p=>c(f(p)),a=p=>u(p)}else l=a=c=>c;return i.slice(s,o).map((c,u)=>{let f=s+1+u,p=" "+(" "+f).slice(-r)+" | ";if(f===this.line){let x=a(p.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(p)+c+`
90
- `+x+l("^")}return" "+a(p)+c}).join(`
91
- `)}toString(){let e=this.showSourceCode();return e&&(e=`
87
+ `}onInputValueChange(e){e.preventDefault(),e.stopPropagation(),this.checked=e.target.checked,this.fireValueChange()}fireValueChange(){this.dispatchEvent(new CustomEvent("value-change",{detail:{value:this.checked}}))}get checkboxElement(){return this.shadowRoot.querySelector(".checkbox")}static get styles(){return[Nr`
88
+ ${pi(Cs)}
89
+ `]}},ue.ID="sd-checkbox",ue.ensureDefined=()=>{customElements.get(ue.ID)||customElements.define(ue.ID,ue)},ue.shadowRootOptions={...Re.shadowRootOptions,delegatesFocus:jt},ue);be([ce({type:Boolean,reflect:!0})],ge.prototype,"disabled",2);be([ce({type:String,reflect:!0})],ge.prototype,"label",2);be([ce({type:String})],ge.prototype,"validationMessage",2);be([ce({type:String})],ge.prototype,"validationIconSrc",2);be([ce({type:gt,reflect:!0})],ge.prototype,"validationLevel",2);be([ce({type:Number})],ge.prototype,"tabIndex",2);be([ce({type:Boolean,reflect:!0})],ge.prototype,"oneLine",2);be([ce({type:Boolean,reflect:!0})],ge.prototype,"checked",1);be([ce({type:Boolean,reflect:!1,attribute:!1})],ge.prototype,"indeterminate",1);let Ns=ge;Ns.ensureDefined();function jr(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Ps(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var e=r.default;if(typeof e=="function"){var s=function n(){var t=!1;try{t=this instanceof n}catch{}return t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};s.prototype=e.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var t=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(s,n,t.get?t:{enumerable:!0,get:function(){return r[n]}})}),s}var lt={exports:{}},er;function Ts(){if(er)return lt.exports;er=1;var r=String,e=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,blackBright:r,redBright:r,greenBright:r,yellowBright:r,blueBright:r,magentaBright:r,cyanBright:r,whiteBright:r,bgBlackBright:r,bgRedBright:r,bgGreenBright:r,bgYellowBright:r,bgBlueBright:r,bgMagentaBright:r,bgCyanBright:r,bgWhiteBright:r}};return lt.exports=e(),lt.exports.createColors=e,lt.exports}const Ls={},Is=Object.freeze(Object.defineProperty({__proto__:null,default:Ls},Symbol.toStringTag,{value:"Module"})),he=Ps(Is);var zt,tr;function vi(){if(tr)return zt;tr=1;let r=Ts(),e=he;class s extends Error{constructor(t,u,a,p,b,h){super(t),this.name="CssSyntaxError",this.reason=t,b&&(this.file=b),p&&(this.source=p),h&&(this.plugin=h),typeof u<"u"&&typeof a<"u"&&(typeof u=="number"?(this.line=u,this.column=a):(this.line=u.line,this.column=u.column,this.endLine=a.line,this.endColumn=a.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,s)}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(t){if(!this.source)return"";let u=this.source;t==null&&(t=r.isColorSupported);let a=l=>l,p=l=>l,b=l=>l;if(t){let{bold:l,gray:f,red:g}=r.createColors(!0);p=m=>l(g(m)),a=m=>f(m),e&&(b=m=>e(m))}let h=u.split(/\r?\n/),i=Math.max(this.line-3,0),c=Math.min(this.line+2,h.length),o=String(c).length;return h.slice(i,c).map((l,f)=>{let g=i+1+f,m=" "+(" "+g).slice(-o)+" | ";if(g===this.line){if(l.length>160){let E=20,v=Math.max(0,this.column-E),w=Math.max(this.column+E,this.endColumn+E),y=l.slice(v,w),k=a(m.replace(/\d/g," "))+l.slice(0,Math.min(this.column-1,E-1)).replace(/[^\t]/g," ");return p(">")+a(m)+b(y)+`
90
+ `+k+p("^")}let _=a(m.replace(/\d/g," "))+l.slice(0,this.column-1).replace(/[^\t]/g," ");return p(">")+a(m)+b(l)+`
91
+ `+_+p("^")}return" "+a(m)+b(l)}).join(`
92
+ `)}toString(){let t=this.showSourceCode();return t&&(t=`
92
93
 
93
- `+e+`
94
- `),this.name+": "+this.message+e}};var fi=Gt;Gt.default=Gt;var De={};De.isClean=Symbol("isClean");De.my=Symbol("my");const qi={after:`
94
+ `+t+`
95
+ `),this.name+": "+this.message+t}}return zt=s,s.default=s,zt}var Ut,ir;function zr(){if(ir)return Ut;ir=1;const r={after:`
95
96
  `,beforeClose:`
96
97
  `,beforeComment:`
97
98
  `,beforeDecl:`
98
99
  `,beforeOpen:" ",beforeRule:`
99
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Mr(n){return n[0].toUpperCase()+n.slice(1)}let Zt=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(`
100
- `)){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 qi[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"+Mr(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=qi[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(`
101
- `)&&(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(`
102
- `)&&(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(`
103
- `)&&(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(`
104
- `)&&(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(`
105
- `);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 An=Zt;Zt.default=Zt;let Nr=An;function Kt(n,e){new Nr(e).stringify(n)}var bt=Kt;Kt.default=Kt;let{isClean:qe,my:Pr}=De,Tr=fi,Lr=An,Ir=bt;function Jt(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=>Jt(r,t)):(o==="object"&&s!==null&&(s=Jt(s)),t[i]=s)}return t}let Qt=class{constructor(e={}){this.raws={},this[qe]=!1,this[Pr]=!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=Jt(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 Tr(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[qe]){this[qe]=!1;let e=this;for(;e=e.parent;)e[qe]=!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]===`
106
- `?(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 Lr().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=Ir){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 yt=Qt;Qt.default=Qt;let jr=yt,Xt=class extends jr{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 wt=Xt;Xt.default=Xt;let zr="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Ur=(n,e=21)=>(t=e)=>{let i="",s=t;for(;s--;)i+=n[Math.random()*n.length|0];return i},Dr=(n=21)=>{let e="",t=n;for(;t--;)e+=zr[Math.random()*64|0];return e};var Br={nanoid:Dr,customAlphabet:Ur};let{SourceMapConsumer:Gi,SourceMapGenerator:Zi}=U,{existsSync:Hr,readFileSync:Fr}=U,{dirname:Ut,join:Wr}=U;function Vr(n){return Buffer?Buffer.from(n,"base64").toString():window.atob(n)}let Yt=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=Ut(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new Gi(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 Vr(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=Ut(e),Hr(e))return this.mapFile=e,Fr(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 Gi)return Zi.fromSourceMap(t).toString();if(t instanceof Zi)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=Wr(Ut(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 Cn=Yt;Yt.default=Yt;let{SourceMapConsumer:qr,SourceMapGenerator:Gr}=U,{fileURLToPath:Ki,pathToFileURL:Ge}=U,{isAbsolute:ei,resolve:ti}=U,{nanoid:Zr}=Br,Dt=U,Ji=fi,Kr=Cn,Bt=Symbol("fromOffsetCache"),Jr=!!(qr&&Gr),Qi=!!(ti&&ei),ut=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&&(!Qi||/^\w+:\/\//.test(t.from)||ei(t.from)?this.file=t.from:this.file=ti(t.from)),Qi&&Jr){let i=new Kr(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 "+Zr(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 f=this.fromOffset(c.offset);t=f.line,i=f.col}else t=c.line,i=c.column;if(typeof u.offset=="number"){let f=this.fromOffset(u.offset);r=f.line,l=f.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 Ji(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 Ji(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&&(Ge&&(o.input.url=Ge(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let t,i;if(this[Bt])i=this[Bt];else{let o=this.css.split(`
107
- `);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[Bt]=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:ti(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;ei(r.source)?a=Ge(r.source):a=new URL(r.source,this.map.consumer().sourceRoot||Ge(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(Ki)c.file=Ki(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 vt=ut;ut.default=ut;Dt&&Dt.registerInput&&Dt.registerInput(ut);let{SourceMapConsumer:On,SourceMapGenerator:st}=U,{dirname:rt,relative:Rn,resolve:Mn,sep:Nn}=U,{pathToFileURL:Xi}=U,Qr=vt,Xr=!!(On&&st),Yr=!!(rt&&Mn&&Rn&&Nn),eo=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=`
100
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function e(n){return n[0].toUpperCase()+n.slice(1)}class s{constructor(t){this.builder=t}atrule(t,u){let a="@"+t.name,p=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName<"u"?a+=t.raws.afterName:p&&(a+=" "),t.nodes)this.block(t,a+p);else{let b=(t.raws.between||"")+(u?";":"");this.builder(a+p+b,t)}}beforeAfter(t,u){let a;t.type==="decl"?a=this.raw(t,null,"beforeDecl"):t.type==="comment"?a=this.raw(t,null,"beforeComment"):u==="before"?a=this.raw(t,null,"beforeRule"):a=this.raw(t,null,"beforeClose");let p=t.parent,b=0;for(;p&&p.type!=="root";)b+=1,p=p.parent;if(a.includes(`
101
+ `)){let h=this.raw(t,null,"indent");if(h.length)for(let i=0;i<b;i++)a+=h}return a}block(t,u){let a=this.raw(t,"between","beforeOpen");this.builder(u+a+"{",t,"start");let p;t.nodes&&t.nodes.length?(this.body(t),p=this.raw(t,"after")):p=this.raw(t,"after","emptyBody"),p&&this.builder(p),this.builder("}",t,"end")}body(t){let u=t.nodes.length-1;for(;u>0&&t.nodes[u].type==="comment";)u-=1;let a=this.raw(t,"semicolon");for(let p=0;p<t.nodes.length;p++){let b=t.nodes[p],h=this.raw(b,"before");h&&this.builder(h),this.stringify(b,u!==p||a)}}comment(t){let u=this.raw(t,"left","commentLeft"),a=this.raw(t,"right","commentRight");this.builder("/*"+u+t.text+a+"*/",t)}decl(t,u){let a=this.raw(t,"between","colon"),p=t.prop+a+this.rawValue(t,"value");t.important&&(p+=t.raws.important||" !important"),u&&(p+=";"),this.builder(p,t)}document(t){this.body(t)}raw(t,u,a){let p;if(a||(a=u),u&&(p=t.raws[u],typeof p<"u"))return p;let b=t.parent;if(a==="before"&&(!b||b.type==="root"&&b.first===t||b&&b.type==="document"))return"";if(!b)return r[a];let h=t.root();if(h.rawCache||(h.rawCache={}),typeof h.rawCache[a]<"u")return h.rawCache[a];if(a==="before"||a==="after")return this.beforeAfter(t,a);{let i="raw"+e(a);this[i]?p=this[i](h,t):h.walk(c=>{if(p=c.raws[u],typeof p<"u")return!1})}return typeof p>"u"&&(p=r[a]),h.rawCache[a]=p,p}rawBeforeClose(t){let u;return t.walk(a=>{if(a.nodes&&a.nodes.length>0&&typeof a.raws.after<"u")return u=a.raws.after,u.includes(`
102
+ `)&&(u=u.replace(/[^\n]+$/,"")),!1}),u&&(u=u.replace(/\S/g,"")),u}rawBeforeComment(t,u){let a;return t.walkComments(p=>{if(typeof p.raws.before<"u")return a=p.raws.before,a.includes(`
103
+ `)&&(a=a.replace(/[^\n]+$/,"")),!1}),typeof a>"u"?a=this.raw(u,null,"beforeDecl"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeDecl(t,u){let a;return t.walkDecls(p=>{if(typeof p.raws.before<"u")return a=p.raws.before,a.includes(`
104
+ `)&&(a=a.replace(/[^\n]+$/,"")),!1}),typeof a>"u"?a=this.raw(u,null,"beforeRule"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeOpen(t){let u;return t.walk(a=>{if(a.type!=="decl"&&(u=a.raws.between,typeof u<"u"))return!1}),u}rawBeforeRule(t){let u;return t.walk(a=>{if(a.nodes&&(a.parent!==t||t.first!==a)&&typeof a.raws.before<"u")return u=a.raws.before,u.includes(`
105
+ `)&&(u=u.replace(/[^\n]+$/,"")),!1}),u&&(u=u.replace(/\S/g,"")),u}rawColon(t){let u;return t.walkDecls(a=>{if(typeof a.raws.between<"u")return u=a.raws.between.replace(/[^\s:]/g,""),!1}),u}rawEmptyBody(t){let u;return t.walk(a=>{if(a.nodes&&a.nodes.length===0&&(u=a.raws.after,typeof u<"u"))return!1}),u}rawIndent(t){if(t.raws.indent)return t.raws.indent;let u;return t.walk(a=>{let p=a.parent;if(p&&p!==t&&p.parent&&p.parent===t&&typeof a.raws.before<"u"){let b=a.raws.before.split(`
106
+ `);return u=b[b.length-1],u=u.replace(/\S/g,""),!1}}),u}rawSemicolon(t){let u;return t.walk(a=>{if(a.nodes&&a.nodes.length&&a.last.type==="decl"&&(u=a.raws.semicolon,typeof u<"u"))return!1}),u}rawValue(t,u){let a=t[u],p=t.raws[u];return p&&p.value===a?p.raw:a}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,u){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,u)}}return Ut=s,s.default=s,Ut}var Dt,rr;function wt(){if(rr)return Dt;rr=1;let r=zr();function e(s,n){new r(n).stringify(s)}return Dt=e,e.default=e,Dt}var ct={},nr;function xi(){return nr||(nr=1,ct.isClean=Symbol("isClean"),ct.my=Symbol("my")),ct}var Bt,sr;function vt(){if(sr)return Bt;sr=1;let r=vi(),e=zr(),s=wt(),{isClean:n,my:t}=xi();function u(b,h){let i=new b.constructor;for(let c in b){if(!Object.prototype.hasOwnProperty.call(b,c)||c==="proxyCache")continue;let o=b[c],l=typeof o;c==="parent"&&l==="object"?h&&(i[c]=h):c==="source"?i[c]=o:Array.isArray(o)?i[c]=o.map(f=>u(f,i)):(l==="object"&&o!==null&&(o=u(o)),i[c]=o)}return i}function a(b,h){if(h&&typeof h.offset<"u")return h.offset;let i=1,c=1,o=0;for(let l=0;l<b.length;l++){if(c===h.line&&i===h.column){o=l;break}b[l]===`
107
+ `?(i=1,c+=1):i+=1}return o}class p{get proxyOf(){return this}constructor(h={}){this.raws={},this[n]=!1,this[t]=!0;for(let i in h)if(i==="nodes"){this.nodes=[];for(let c of h[i])typeof c.clone=="function"?this.append(c.clone()):this.append(c)}else this[i]=h[i]}addToError(h){if(h.postcssNode=this,h.stack&&this.source&&/\n\s{4}at /.test(h.stack)){let i=this.source;h.stack=h.stack.replace(/\n\s{4}at /,`$&${i.input.from}:${i.start.line}:${i.start.column}$&`)}return h}after(h){return this.parent.insertAfter(this,h),this}assign(h={}){for(let i in h)this[i]=h[i];return this}before(h){return this.parent.insertBefore(this,h),this}cleanRaws(h){delete this.raws.before,delete this.raws.after,h||delete this.raws.between}clone(h={}){let i=u(this);for(let c in h)i[c]=h[c];return i}cloneAfter(h={}){let i=this.clone(h);return this.parent.insertAfter(this,i),i}cloneBefore(h={}){let i=this.clone(h);return this.parent.insertBefore(this,i),i}error(h,i={}){if(this.source){let{end:c,start:o}=this.rangeBy(i);return this.source.input.error(h,{column:o.column,line:o.line},{column:c.column,line:c.line},i)}return new r(h)}getProxyProcessor(){return{get(h,i){return i==="proxyOf"?h:i==="root"?()=>h.root().toProxy():h[i]},set(h,i,c){return h[i]===c||(h[i]=c,(i==="prop"||i==="value"||i==="name"||i==="params"||i==="important"||i==="text")&&h.markDirty()),!0}}}markClean(){this[n]=!0}markDirty(){if(this[n]){this[n]=!1;let h=this;for(;h=h.parent;)h[n]=!1}}next(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h+1]}positionBy(h={}){let i=this.source.start;if(h.index)i=this.positionInside(h.index);else if(h.word){let c="document"in this.source.input?this.source.input.document:this.source.input.css,l=c.slice(a(c,this.source.start),a(c,this.source.end)).indexOf(h.word);l!==-1&&(i=this.positionInside(l))}return i}positionInside(h){let i=this.source.start.column,c=this.source.start.line,o="document"in this.source.input?this.source.input.document:this.source.input.css,l=a(o,this.source.start),f=l+h;for(let g=l;g<f;g++)o[g]===`
108
+ `?(i=1,c+=1):i+=1;return{column:i,line:c,offset:f}}prev(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h-1]}rangeBy(h={}){let i="document"in this.source.input?this.source.input.document:this.source.input.css,c={column:this.source.start.column,line:this.source.start.line,offset:a(i,this.source.start)},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:a(i,this.source.end)+1}:{column:c.column+1,line:c.line,offset:c.offset+1};if(h.word){let f=i.slice(a(i,this.source.start),a(i,this.source.end)).indexOf(h.word);f!==-1&&(c=this.positionInside(f),o=this.positionInside(f+h.word.length))}else h.start?c={column:h.start.column,line:h.start.line,offset:a(i,h.start)}:h.index&&(c=this.positionInside(h.index)),h.end?o={column:h.end.column,line:h.end.line,offset:a(i,h.end)}:typeof h.endIndex=="number"?o=this.positionInside(h.endIndex):h.index&&(o=this.positionInside(h.index+1));return(o.line<c.line||o.line===c.line&&o.column<=c.column)&&(o={column:c.column+1,line:c.line,offset:c.offset+1}),{end:o,start:c}}raw(h,i){return new e().raw(this,h,i)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...h){if(this.parent){let i=this,c=!1;for(let o of h)o===this?c=!0:c?(this.parent.insertAfter(i,o),i=o):this.parent.insertBefore(i,o);c||this.remove()}return this}root(){let h=this;for(;h.parent&&h.parent.type!=="document";)h=h.parent;return h}toJSON(h,i){let c={},o=i==null;i=i||new Map;let l=0;for(let f in this){if(!Object.prototype.hasOwnProperty.call(this,f)||f==="parent"||f==="proxyCache")continue;let g=this[f];if(Array.isArray(g))c[f]=g.map(m=>typeof m=="object"&&m.toJSON?m.toJSON(null,i):m);else if(typeof g=="object"&&g.toJSON)c[f]=g.toJSON(null,i);else if(f==="source"){if(g==null)continue;let m=i.get(g.input);m==null&&(m=l,i.set(g.input,l),l++),c[f]={end:g.end,inputId:m,start:g.start}}else c[f]=g}return o&&(c.inputs=[...i.keys()].map(f=>f.toJSON())),c}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(h=s){h.stringify&&(h=h.stringify);let i="";return h(this,c=>{i+=c}),i}warn(h,i,c={}){let o={node:this};for(let l in c)o[l]=c[l];return h.warn(i,o)}}return Bt=p,p.default=p,Bt}var qt,or;function xt(){if(or)return qt;or=1;let r=vt();class e extends r{constructor(n){super(n),this.type="comment"}}return qt=e,e.default=e,qt}var Ht,ar;function _t(){if(ar)return Ht;ar=1;let r=vt();class e extends r{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(n){n&&typeof n.value<"u"&&typeof n.value!="string"&&(n={...n,value:String(n.value)}),super(n),this.type="decl"}}return Ht=e,e.default=e,Ht}var Ft,lr;function Me(){if(lr)return Ft;lr=1;let r=xt(),e=_t(),s=vt(),{isClean:n,my:t}=xi(),u,a,p,b;function h(o){return o.map(l=>(l.nodes&&(l.nodes=h(l.nodes)),delete l.source,l))}function i(o){if(o[n]=!1,o.proxyOf.nodes)for(let l of o.proxyOf.nodes)i(l)}class c extends 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]}append(...l){for(let f of l){let g=this.normalize(f,this.last);for(let m of g)this.proxyOf.nodes.push(m)}return this.markDirty(),this}cleanRaws(l){if(super.cleanRaws(l),this.nodes)for(let f of this.nodes)f.cleanRaws(l)}each(l){if(!this.proxyOf.nodes)return;let f=this.getIterator(),g,m;for(;this.indexes[f]<this.proxyOf.nodes.length&&(g=this.indexes[f],m=l(this.proxyOf.nodes[g],g),m!==!1);)this.indexes[f]+=1;return delete this.indexes[f],m}every(l){return this.nodes.every(l)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let l=this.lastEach;return this.indexes[l]=0,l}getProxyProcessor(){return{get(l,f){return f==="proxyOf"?l:l[f]?f==="each"||typeof f=="string"&&f.startsWith("walk")?(...g)=>l[f](...g.map(m=>typeof m=="function"?(_,E)=>m(_.toProxy(),E):m)):f==="every"||f==="some"?g=>l[f]((m,..._)=>g(m.toProxy(),..._)):f==="root"?()=>l.root().toProxy():f==="nodes"?l.nodes.map(g=>g.toProxy()):f==="first"||f==="last"?l[f].toProxy():l[f]:l[f]},set(l,f,g){return l[f]===g||(l[f]=g,(f==="name"||f==="params"||f==="selector")&&l.markDirty()),!0}}}index(l){return typeof l=="number"?l:(l.proxyOf&&(l=l.proxyOf),this.proxyOf.nodes.indexOf(l))}insertAfter(l,f){let g=this.index(l),m=this.normalize(f,this.proxyOf.nodes[g]).reverse();g=this.index(l);for(let E of m)this.proxyOf.nodes.splice(g+1,0,E);let _;for(let E in this.indexes)_=this.indexes[E],g<_&&(this.indexes[E]=_+m.length);return this.markDirty(),this}insertBefore(l,f){let g=this.index(l),m=g===0?"prepend":!1,_=this.normalize(f,this.proxyOf.nodes[g],m).reverse();g=this.index(l);for(let v of _)this.proxyOf.nodes.splice(g,0,v);let E;for(let v in this.indexes)E=this.indexes[v],g<=E&&(this.indexes[v]=E+_.length);return this.markDirty(),this}normalize(l,f){if(typeof l=="string")l=h(a(l).nodes);else if(typeof l>"u")l=[];else if(Array.isArray(l)){l=l.slice(0);for(let m of l)m.parent&&m.parent.removeChild(m,"ignore")}else if(l.type==="root"&&this.type!=="document"){l=l.nodes.slice(0);for(let m of l)m.parent&&m.parent.removeChild(m,"ignore")}else if(l.type)l=[l];else if(l.prop){if(typeof l.value>"u")throw new Error("Value field is missed in node creation");typeof l.value!="string"&&(l.value=String(l.value)),l=[new e(l)]}else if(l.selector||l.selectors)l=[new b(l)];else if(l.name)l=[new u(l)];else if(l.text)l=[new r(l)];else throw new Error("Unknown node type in node creation");return l.map(m=>(m[t]||c.rebuild(m),m=m.proxyOf,m.parent&&m.parent.removeChild(m),m[n]&&i(m),m.raws||(m.raws={}),typeof m.raws.before>"u"&&f&&typeof f.raws.before<"u"&&(m.raws.before=f.raws.before.replace(/\S/g,"")),m.parent=this.proxyOf,m))}prepend(...l){l=l.reverse();for(let f of l){let g=this.normalize(f,this.first,"prepend").reverse();for(let m of g)this.proxyOf.nodes.unshift(m);for(let m in this.indexes)this.indexes[m]=this.indexes[m]+g.length}return this.markDirty(),this}push(l){return l.parent=this,this.proxyOf.nodes.push(l),this}removeAll(){for(let l of this.proxyOf.nodes)l.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(l){l=this.index(l),this.proxyOf.nodes[l].parent=void 0,this.proxyOf.nodes.splice(l,1);let f;for(let g in this.indexes)f=this.indexes[g],f>=l&&(this.indexes[g]=f-1);return this.markDirty(),this}replaceValues(l,f,g){return g||(g=f,f={}),this.walkDecls(m=>{f.props&&!f.props.includes(m.prop)||f.fast&&!m.value.includes(f.fast)||(m.value=m.value.replace(l,g))}),this.markDirty(),this}some(l){return this.nodes.some(l)}walk(l){return this.each((f,g)=>{let m;try{m=l(f,g)}catch(_){throw f.addToError(_)}return m!==!1&&f.walk&&(m=f.walk(l)),m})}walkAtRules(l,f){return f?l instanceof RegExp?this.walk((g,m)=>{if(g.type==="atrule"&&l.test(g.name))return f(g,m)}):this.walk((g,m)=>{if(g.type==="atrule"&&g.name===l)return f(g,m)}):(f=l,this.walk((g,m)=>{if(g.type==="atrule")return f(g,m)}))}walkComments(l){return this.walk((f,g)=>{if(f.type==="comment")return l(f,g)})}walkDecls(l,f){return f?l instanceof RegExp?this.walk((g,m)=>{if(g.type==="decl"&&l.test(g.prop))return f(g,m)}):this.walk((g,m)=>{if(g.type==="decl"&&g.prop===l)return f(g,m)}):(f=l,this.walk((g,m)=>{if(g.type==="decl")return f(g,m)}))}walkRules(l,f){return f?l instanceof RegExp?this.walk((g,m)=>{if(g.type==="rule"&&l.test(g.selector))return f(g,m)}):this.walk((g,m)=>{if(g.type==="rule"&&g.selector===l)return f(g,m)}):(f=l,this.walk((g,m)=>{if(g.type==="rule")return f(g,m)}))}}return c.registerParse=o=>{a=o},c.registerRule=o=>{b=o},c.registerAtRule=o=>{u=o},c.registerRoot=o=>{p=o},Ft=c,c.default=c,c.rebuild=o=>{o.type==="atrule"?Object.setPrototypeOf(o,u.prototype):o.type==="rule"?Object.setPrototypeOf(o,b.prototype):o.type==="decl"?Object.setPrototypeOf(o,e.prototype):o.type==="comment"?Object.setPrototypeOf(o,r.prototype):o.type==="root"&&Object.setPrototypeOf(o,p.prototype),o[t]=!0,o.nodes&&o.nodes.forEach(l=>{c.rebuild(l)})},Ft}var Wt,cr;function _i(){if(cr)return Wt;cr=1;let r=Me();class e extends r{constructor(n){super(n),this.type="atrule"}append(...n){return this.proxyOf.nodes||(this.nodes=[]),super.append(...n)}prepend(...n){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...n)}}return Wt=e,e.default=e,r.registerAtRule(e),Wt}var Vt,ur;function Ei(){if(ur)return Vt;ur=1;let r=Me(),e,s;class n extends r{constructor(u){super({type:"document",...u}),this.nodes||(this.nodes=[])}toResult(u={}){return new e(new s,this,u).stringify()}}return n.registerLazyResult=t=>{e=t},n.registerProcessor=t=>{s=t},Vt=n,n.default=n,Vt}var Gt,hr;function js(){if(hr)return Gt;hr=1;let r="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Gt={nanoid:(n=21)=>{let t="",u=n|0;for(;u--;)t+=r[Math.random()*64|0];return t},customAlphabet:(n,t=21)=>(u=t)=>{let a="",p=u|0;for(;p--;)a+=n[Math.random()*n.length|0];return a}},Gt}var Zt,dr;function Ur(){if(dr)return Zt;dr=1;let{existsSync:r,readFileSync:e}=he,{dirname:s,join:n}=he,{SourceMapConsumer:t,SourceMapGenerator:u}=he;function a(b){return Buffer?Buffer.from(b,"base64").toString():window.atob(b)}class p{constructor(h,i){if(i.map===!1)return;this.loadAnnotation(h),this.inline=this.startWith(this.annotation,"data:");let c=i.map?i.map.prev:void 0,o=this.loadMap(i.from,c);!this.mapFile&&i.from&&(this.mapFile=i.from),this.mapFile&&(this.root=s(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new t(this.text)),this.consumerCache}decodeInline(h){let i=/^data:application\/json;charset=utf-?8;base64,/,c=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,l=/^data:application\/json,/,f=h.match(o)||h.match(l);if(f)return decodeURIComponent(h.substr(f[0].length));let g=h.match(i)||h.match(c);if(g)return a(h.substr(g[0].length));let m=h.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(h){return h.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(h){return typeof h!="object"?!1:typeof h.mappings=="string"||typeof h._mappings=="string"||Array.isArray(h.sections)}loadAnnotation(h){let i=h.match(/\/\*\s*# sourceMappingURL=/g);if(!i)return;let c=h.lastIndexOf(i.pop()),o=h.indexOf("*/",c);c>-1&&o>-1&&(this.annotation=this.getAnnotationURL(h.substring(c,o)))}loadFile(h){if(this.root=s(h),r(h))return this.mapFile=h,e(h,"utf-8").toString().trim()}loadMap(h,i){if(i===!1)return!1;if(i){if(typeof i=="string")return i;if(typeof i=="function"){let c=i(h);if(c){let o=this.loadFile(c);if(!o)throw new Error("Unable to load previous source map: "+c.toString());return o}}else{if(i instanceof t)return u.fromSourceMap(i).toString();if(i instanceof u)return i.toString();if(this.isMap(i))return JSON.stringify(i);throw new Error("Unsupported previous source map format: "+i.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let c=this.annotation;return h&&(c=n(s(h),c)),this.loadFile(c)}}}startWith(h,i){return h?h.substr(0,i.length)===i:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Zt=p,p.default=p,Zt}var Jt,fr;function Et(){if(fr)return Jt;fr=1;let{nanoid:r}=js(),{isAbsolute:e,resolve:s}=he,{SourceMapConsumer:n,SourceMapGenerator:t}=he,{fileURLToPath:u,pathToFileURL:a}=he,p=vi(),b=Ur(),h=he,i=Symbol("lineToIndexCache"),c=!!(n&&t),o=!!(s&&e);function l(g){if(g[i])return g[i];let m=g.css.split(`
109
+ `),_=new Array(m.length),E=0;for(let v=0,w=m.length;v<w;v++)_[v]=E,E+=m[v].length+1;return g[i]=_,_}class f{get from(){return this.file||this.id}constructor(m,_={}){if(m===null||typeof m>"u"||typeof m=="object"&&!m.toString)throw new Error(`PostCSS received ${m} instead of CSS string`);if(this.css=m.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,_.document&&(this.document=_.document.toString()),_.from&&(!o||/^\w+:\/\//.test(_.from)||e(_.from)?this.file=_.from:this.file=s(_.from)),o&&c){let E=new b(this.css,_);if(E.text){this.map=E;let v=E.consumer().file;!this.file&&v&&(this.file=this.mapResolve(v))}}this.file||(this.id="<input css "+r(6)+">"),this.map&&(this.map.file=this.from)}error(m,_,E,v={}){let w,y,k,C,L;if(_&&typeof _=="object"){let P=_,J=E;if(typeof P.offset=="number"){C=P.offset;let H=this.fromOffset(C);_=H.line,E=H.col}else _=P.line,E=P.column,C=this.fromLineAndColumn(_,E);if(typeof J.offset=="number"){k=J.offset;let H=this.fromOffset(k);y=H.line,w=H.col}else y=J.line,w=J.column,k=this.fromLineAndColumn(J.line,J.column)}else if(E)C=this.fromLineAndColumn(_,E);else{C=_;let P=this.fromOffset(C);_=P.line,E=P.col}let D=this.origin(_,E,y,w);return D?L=new p(m,D.endLine===void 0?D.line:{column:D.column,line:D.line},D.endLine===void 0?D.column:{column:D.endColumn,line:D.endLine},D.source,D.file,v.plugin):L=new p(m,y===void 0?_:{column:E,line:_},y===void 0?E:{column:w,line:y},this.css,this.file,v.plugin),L.input={column:E,endColumn:w,endLine:y,endOffset:k,line:_,offset:C,source:this.css},this.file&&(a&&(L.input.url=a(this.file).toString()),L.input.file=this.file),L}fromLineAndColumn(m,_){return l(this)[m-1]+_-1}fromOffset(m){let _=l(this),E=_[_.length-1],v=0;if(m>=E)v=_.length-1;else{let w=_.length-2,y;for(;v<w;)if(y=v+(w-v>>1),m<_[y])w=y-1;else if(m>=_[y+1])v=y+1;else{v=y;break}}return{col:m-_[v]+1,line:v+1}}mapResolve(m){return/^\w+:\/\//.test(m)?m:s(this.map.consumer().sourceRoot||this.map.root||".",m)}origin(m,_,E,v){if(!this.map)return!1;let w=this.map.consumer(),y=w.originalPositionFor({column:_,line:m});if(!y.source)return!1;let k;typeof E=="number"&&(k=w.originalPositionFor({column:v,line:E}));let C;e(y.source)?C=a(y.source):C=new URL(y.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let L={column:y.column,endColumn:k&&k.column,endLine:k&&k.line,line:y.line,url:C.toString()};if(C.protocol==="file:")if(u)L.file=u(C);else throw new Error("file: protocol is not available in this PostCSS build");let D=w.sourceContentFor(y.source);return D&&(L.source=D),L}toJSON(){let m={};for(let _ of["hasBOM","css","file","id"])this[_]!=null&&(m[_]=this[_]);return this.map&&(m.map={...this.map},m.map.consumerCache&&(m.map.consumerCache=void 0)),m}}return Jt=f,f.default=f,h&&h.registerInput&&h.registerInput(f),Jt}var Kt,pr;function et(){if(pr)return Kt;pr=1;let r=Me(),e,s;class n extends r{constructor(u){super(u),this.type="root",this.nodes||(this.nodes=[])}normalize(u,a,p){let b=super.normalize(u);if(a){if(p==="prepend")this.nodes.length>1?a.raws.before=this.nodes[1].raws.before:delete a.raws.before;else if(this.first!==a)for(let h of b)h.raws.before=a.raws.before}return b}removeChild(u,a){let p=this.index(u);return!a&&p===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[p].raws.before),super.removeChild(u)}toResult(u={}){return new e(new s,this,u).stringify()}}return n.registerLazyResult=t=>{e=t},n.registerProcessor=t=>{s=t},Kt=n,n.default=n,r.registerRoot(n),Kt}var Xt,gr;function Dr(){if(gr)return Xt;gr=1;let r={comma(e){return r.split(e,[","],!0)},space(e){let s=[" ",`
110
+ `," "];return r.split(e,s)},split(e,s,n){let t=[],u="",a=!1,p=0,b=!1,h="",i=!1;for(let c of e)i?i=!1:c==="\\"?i=!0:b?c===h&&(b=!1):c==='"'||c==="'"?(b=!0,h=c):c==="("?p+=1:c===")"?p>0&&(p-=1):p===0&&s.includes(c)&&(a=!0),a?(u!==""&&t.push(u.trim()),u="",a=!1):u+=c;return(n||u!=="")&&t.push(u.trim()),t}};return Xt=r,r.default=r,Xt}var Qt,mr;function ki(){if(mr)return Qt;mr=1;let r=Me(),e=Dr();class s extends r{get selectors(){return e.comma(this.selector)}set selectors(t){let u=this.selector?this.selector.match(/,\s*/):null,a=u?u[0]:","+this.raw("between","beforeOpen");this.selector=t.join(a)}constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}}return Qt=s,s.default=s,r.registerRule(s),Qt}var Yt,br;function zs(){if(br)return Yt;br=1;let r=_i(),e=xt(),s=_t(),n=Et(),t=Ur(),u=et(),a=ki();function p(b,h){if(Array.isArray(b))return b.map(o=>p(o));let{inputs:i,...c}=b;if(i){h=[];for(let o of i){let l={...o,__proto__:n.prototype};l.map&&(l.map={...l.map,__proto__:t.prototype}),h.push(l)}}if(c.nodes&&(c.nodes=b.nodes.map(o=>p(o,h))),c.source){let{inputId:o,...l}=c.source;c.source=l,o!=null&&(c.source.input=h[o])}if(c.type==="root")return new u(c);if(c.type==="decl")return new s(c);if(c.type==="rule")return new a(c);if(c.type==="comment")return new e(c);if(c.type==="atrule")return new r(c);throw new Error("Unknown node type: "+b.type)}return Yt=p,p.default=p,Yt}var ei,yr;function Br(){if(yr)return ei;yr=1;let{dirname:r,relative:e,resolve:s,sep:n}=he,{SourceMapConsumer:t,SourceMapGenerator:u}=he,{pathToFileURL:a}=he,p=Et(),b=!!(t&&u),h=!!(r&&s&&e&&n);class i{constructor(o,l,f,g){this.stringify=o,this.mapOpts=f.map||{},this.root=l,this.opts=f,this.css=g,this.originalCSS=g,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let o;this.isInline()?o="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?o=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?o=this.mapOpts.annotation(this.opts.to,this.root):o=this.outputFile()+".map";let l=`
108
111
  `;this.css.includes(`\r
109
- `)&&(t=`\r
110
- `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),i=e.root||rt(e.file),s;this.mapOpts.sourcesContent===!1?(s=new On(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(),Yr&&Xr&&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=st.fromSourceMap(e)}else this.map=new st({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 st({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(`
111
- `),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?rt(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=rt(Mn(i,this.mapOpts.annotation)));let s=Rn(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 Qr(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(Xi){let i=Xi(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;Nn==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};var Pn=eo;let to=yt,ii=class extends to{constructor(e){super(e),this.type="comment"}};var xt=ii;ii.default=ii;let{isClean:Tn,my:Ln}=De,In=wt,jn=xt,io=yt,zn,pi,gi,Un;function Dn(n){return n.map(e=>(e.nodes&&(e.nodes=Dn(e.nodes)),delete e.source,e))}function Bn(n){if(n[Tn]=!1,n.proxyOf.nodes)for(let e of n.proxyOf.nodes)Bn(e)}let J=class Hn extends io{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=Dn(zn(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 In(e)]}else if(e.selector)e=[new pi(e)];else if(e.name)e=[new gi(e)];else if(e.text)e=[new jn(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[Ln]||Hn.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[Tn]&&Bn(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]}};J.registerParse=n=>{zn=n};J.registerRule=n=>{pi=n};J.registerAtRule=n=>{gi=n};J.registerRoot=n=>{Un=n};var ue=J;J.default=J;J.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,gi.prototype):n.type==="rule"?Object.setPrototypeOf(n,pi.prototype):n.type==="decl"?Object.setPrototypeOf(n,In.prototype):n.type==="comment"?Object.setPrototypeOf(n,jn.prototype):n.type==="root"&&Object.setPrototypeOf(n,Un.prototype),n[Ln]=!0,n.nodes&&n.nodes.forEach(e=>{J.rebuild(e)})};let no=ue,Fn,Wn,Pe=class extends no{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Fn(new Wn,this,e).stringify()}};Pe.registerLazyResult=n=>{Fn=n};Pe.registerProcessor=n=>{Wn=n};var mi=Pe;Pe.default=Pe;let ni=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 Vn=ni;ni.default=ni;let so=Vn,si=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 so(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var bi=si;si.default=si;const Ht=39,Yi=34,Ze=92,en=47,Ke=10,ke=32,Je=12,Qe=9,Xe=13,ro=91,oo=93,lo=40,ao=41,co=123,uo=125,ho=59,fo=42,po=58,go=64,Ye=/[\t\n\f\r "#'()/;[\\\]{}]/g,et=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,mo=/.[\r\n"'(/\\]/,tn=/[\da-f]/i;var bo=function(e,t={}){let i=e.css.valueOf(),s=t.ignoreErrors,o,r,l,a,c,u,f,p,x,C,M=i.length,b=0,q=[],G=[];function te(){return b}function j(D){throw e.error("Unclosed "+D,b)}function Z(){return G.length===0&&b>=M}function Ee(D){if(G.length)return G.pop();if(b>=M)return;let T=D?D.ignoreUnclosed:!1;switch(o=i.charCodeAt(b),o){case Ke:case ke:case Qe:case Xe:case Je:{r=b;do r+=1,o=i.charCodeAt(r);while(o===ke||o===Ke||o===Qe||o===Xe||o===Je);C=["space",i.slice(b,r)],b=r-1;break}case ro:case oo:case co:case uo:case po:case ho:case ao:{let ie=String.fromCharCode(o);C=[ie,ie,b];break}case lo:{if(p=q.length?q.pop()[1]:"",x=i.charCodeAt(b+1),p==="url"&&x!==Ht&&x!==Yi&&x!==ke&&x!==Ke&&x!==Qe&&x!==Je&&x!==Xe){r=b;do{if(u=!1,r=i.indexOf(")",r+1),r===-1)if(s||T){r=b;break}else j("bracket");for(f=r;i.charCodeAt(f-1)===Ze;)f-=1,u=!u}while(u);C=["brackets",i.slice(b,r+1),b,r],b=r}else r=i.indexOf(")",b+1),a=i.slice(b,r+1),r===-1||mo.test(a)?C=["(","(",b]:(C=["brackets",a,b,r],b=r);break}case Ht:case Yi:{l=o===Ht?"'":'"',r=b;do{if(u=!1,r=i.indexOf(l,r+1),r===-1)if(s||T){r=b+1;break}else j("string");for(f=r;i.charCodeAt(f-1)===Ze;)f-=1,u=!u}while(u);C=["string",i.slice(b,r+1),b,r],b=r;break}case go:{Ye.lastIndex=b+1,Ye.test(i),Ye.lastIndex===0?r=i.length-1:r=Ye.lastIndex-2,C=["at-word",i.slice(b,r+1),b,r],b=r;break}case Ze:{for(r=b,c=!0;i.charCodeAt(r+1)===Ze;)r+=1,c=!c;if(o=i.charCodeAt(r+1),c&&o!==en&&o!==ke&&o!==Ke&&o!==Qe&&o!==Xe&&o!==Je&&(r+=1,tn.test(i.charAt(r)))){for(;tn.test(i.charAt(r+1));)r+=1;i.charCodeAt(r+1)===ke&&(r+=1)}C=["word",i.slice(b,r+1),b,r],b=r;break}default:{o===en&&i.charCodeAt(b+1)===fo?(r=i.indexOf("*/",b+2)+1,r===0&&(s||T?r=i.length:j("comment")),C=["comment",i.slice(b,r+1),b,r],b=r):(et.lastIndex=b+1,et.test(i),et.lastIndex===0?r=i.length-1:r=et.lastIndex-2,C=["word",i.slice(b,r+1),b,r],q.push(C),b=r);break}}return b++,C}function de(D){G.push(D)}return{back:de,endOfFile:Z,nextToken:Ee,position:te}};let qn=ue,ht=class extends qn{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 yi=ht;ht.default=ht;qn.registerAtRule(ht);let Gn=ue,Zn,Kn,we=class extends Gn{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 Zn(new Kn,this,e).stringify()}};we.registerLazyResult=n=>{Zn=n};we.registerProcessor=n=>{Kn=n};var Be=we;we.default=we;Gn.registerRoot(we);let Te={comma(n){return Te.split(n,[","],!0)},space(n){let e=[" ",`
112
- `," "];return Te.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 Jn=Te;Te.default=Te;let Qn=ue,yo=Jn,dt=class extends Qn{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return yo.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 wi=dt;dt.default=dt;Qn.registerRule(dt);let wo=wt,vo=bo,xo=xt,_o=yi,Eo=Be,nn=wi;const sn={empty:!0,space:!0};function So(n){for(let e=n.length-1;e>=0;e--){let t=n[e],i=t[3]||t[2];if(i)return i}}let ko=class{constructor(e){this.input=e,this.root=new Eo,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 _o;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 xo;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=vo(this.input)}decl(e,t){let i=new wo;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]||So(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),f="";for(let p=c;p>0;p--){let x=u[p][0];if(f.trim().indexOf("!")===0&&x!=="space")break;f=u.pop()[1]+f}f.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=f,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 nn;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,f;for(let p=0;p<l;p+=1)o=i[p],r=o[0],r==="space"&&p===l-1&&!s?c=!1:r==="comment"?(f=i[p-1]?i[p-1][0]:"empty",u=i[p+1]?i[p+1][0]:"empty",!sn[f]&&!sn[u]?a.slice(-1)===","?c=!1:a+=o[1]:c=!1):a+=o[1];if(!c){let p=i.reduce((x,C)=>x+C[1],"");e.raws[t]={raw:p,value:a}}e[t]=a}rule(e){e.pop();let t=new nn;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 $o=ko;let Ao=ue,Co=$o,Oo=vt;function ft(n,e){let t=new Oo(n,e),i=new Co(t);try{i.parse()}catch(s){throw s}return i.root}var vi=ft;ft.default=ft;Ao.registerParse(ft);let{isClean:F,my:Ro}=De,Mo=Pn,No=bt,Po=ue,To=mi,rn=bi,Lo=vi,Io=Be;const jo={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},zo={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},Uo={Once:!0,postcssPlugin:!0,prepare:!0},ve=0;function $e(n){return typeof n=="object"&&typeof n.then=="function"}function Xn(n){let e=!1,t=jo[n.type];return n.type==="decl"?e=n.prop.toLowerCase():n.type==="atrule"&&(e=n.name.toLowerCase()),e&&n.append?[t,t+"-"+e,ve,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:n.append?[t,ve,t+"Exit"]:[t,t+"Exit"]}function on(n){let e;return n.type==="document"?e=["Document",ve,"DocumentExit"]:n.type==="root"?e=["Root",ve,"RootExit"]:e=Xn(n),{eventIndex:0,events:e,iterator:0,node:n,visitorIndex:0,visitors:[]}}function ri(n){return n[F]=!1,n.nodes&&n.nodes.forEach(e=>ri(e)),n}let oi={},xe=class Yn{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=ri(t);else if(t instanceof Yn||t instanceof rn)s=ri(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=Lo;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[Ro]&&Po.rebuild(s)}this.result=new rn(e,s,i),this.helpers={...oi,postcss:oi,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(!zo[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Uo[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($e(i))try{await i}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[F];){e[F]=!0;let t=[on(e)];for(;t.length>0;){let i=this.visitTick(t);if($e(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 $e(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=No;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new Mo(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($e(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[F];)e[F]=!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($e(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[F]){l[F]=!0,e.push(on(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===ve){i.nodes&&i.nodes.length&&(i[F]=!0,t.iterator=i.getIterator());return}else if(this.listeners[r]){t.visitors=this.listeners[r];return}}e.pop()}walkSync(e){e[F]=!0;let t=Xn(e);for(let i of t)if(i===ve)e.nodes&&e.each(s=>{s[F]||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"}};xe.registerPostcss=n=>{oi=n};var es=xe;xe.default=xe;Io.registerLazyResult(xe);To.registerLazyResult(xe);let Do=Pn,Bo=bt,Ho=vi;const Fo=bi;let li=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=Bo;this.result=new Fo(this._processor,s,this._opts),this.result.css=t;let r=this;Object.defineProperty(this.result,"root",{get(){return r.root}});let l=new Do(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=Ho;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 Wo=li;li.default=li;let Vo=Wo,qo=es,Go=mi,Zo=Be,Le=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 Vo(this,e,t):new qo(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Ko=Le;Le.default=Le;Zo.registerProcessor(Le);Go.registerProcessor(Le);let Jo=wt,Qo=Cn,Xo=xt,Yo=yi,el=vt,tl=Be,il=wi;function Ie(n,e){if(Array.isArray(n))return n.map(s=>Ie(s));let{inputs:t,...i}=n;if(t){e=[];for(let s of t){let o={...s,__proto__:el.prototype};o.map&&(o.map={...o.map,__proto__:Qo.prototype}),e.push(o)}}if(i.nodes&&(i.nodes=n.nodes.map(s=>Ie(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 tl(i);if(i.type==="decl")return new Jo(i);if(i.type==="rule")return new il(i);if(i.type==="comment")return new Xo(i);if(i.type==="atrule")return new Yo(i);throw new Error("Unknown node type: "+n.type)}var nl=Ie;Ie.default=Ie;var ln={};let sl=fi,ts=wt,rl=es,ol=ue,xi=Ko,ll=bt,al=nl,is=mi,cl=Vn,ns=xt,ss=yi,ul=bi,hl=vt,dl=vi,fl=Jn,rs=wi,os=Be,pl=yt;function E(...n){return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new xi(n)}E.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:
113
- https://evilmartians.com/chronicles/postcss-8-plugin-migration`),ln.LANG&&ln.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
114
- https://www.w3ctech.com/topic/2226`));let l=t(...r);return l.postcssPlugin=e,l.postcssVersion=new xi().version,l}let o;return Object.defineProperty(s,"postcss",{get(){return o||(o=s()),o}}),s.process=function(r,l,a){return E([s(a)]).process(r,l)},s};E.stringify=ll;E.parse=dl;E.fromJSON=al;E.list=fl;E.comment=n=>new ns(n);E.atRule=n=>new ss(n);E.decl=n=>new ts(n);E.rule=n=>new rs(n);E.root=n=>new os(n);E.document=n=>new is(n);E.CssSyntaxError=sl;E.Declaration=ts;E.Container=ol;E.Processor=xi;E.Document=is;E.Comment=ns;E.Warning=cl;E.AtRule=ss;E.Result=ul;E.Input=hl;E.Rule=rs;E.Root=os;E.Node=pl;rl.registerPostcss(E);var gl=E;E.default=E;const A=Sn(gl);A.stringify;A.fromJSON;A.plugin;A.parse;A.list;A.document;A.comment;A.atRule;A.rule;A.decl;A.root;A.CssSyntaxError;A.Declaration;A.Container;A.Processor;A.Document;A.Comment;A.Warning;A.AtRule;A.Result;A.Input;A.Rule;A.Root;A.Node;var ml=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&&bl(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 bl(n,e){return e.some(t=>t instanceof RegExp?t.test(n):n===t)}const yl=Sn(ml),wl="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}",vl="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 xl(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function ls(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)&&ls(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 ee(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 _l="</span>",un=n=>!!n.scope,El=(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 Sl{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=as(e)}openNode(e){if(!un(e))return;const t=El(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){un(e)&&(this.buffer+=_l)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const hn=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class _i{constructor(){this.rootNode=hn(),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=hn({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=>{_i._collapse(t)}))}}class kl extends _i{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 Sl(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function je(n){return n?typeof n=="string"?n:n.source:null}function cs(n){return he("(?=",n,")")}function $l(n){return he("(?:",n,")*")}function Al(n){return he("(?:",n,")?")}function he(...n){return n.map(e=>je(e)).join("")}function Cl(n){const e=n[n.length-1];return typeof e=="object"&&e.constructor===Object?(n.splice(n.length-1,1),e):{}}function Ei(...n){return"("+(Cl(n).capture?"":"?:")+n.map(e=>je(e)).join("|")+")"}function us(n){return new RegExp(n.toString()+"|").exec("").length-1}function Ol(n,e){const t=n&&n.exec(e);return t&&t.index===0}const Rl=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Si(n,{joinWith:e}){let t=0;return n.map(i=>{t+=1;const s=t;let o=je(i),r="";for(;o.length>0;){const l=Rl.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 Ml=/\b\B/,hs="[a-zA-Z]\\w*",ki="[a-zA-Z_]\\w*",ds="\\b\\d+(\\.\\d+)?",fs="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",ps="\\b(0b[01]+)",Nl="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Pl=(n={})=>{const e=/^#![ ]*\//;return n.binary&&(n.begin=he(e,/.*\b/,n.binary,/\b.*/)),ee({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,i)=>{t.index!==0&&i.ignoreMatch()}},n)},ze={begin:"\\\\[\\s\\S]",relevance:0},Tl={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ze]},Ll={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ze]},Il={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/},_t=function(n,e,t={}){const i=ee({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=Ei("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:he(/[ ]+/,"(",s,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),i},jl=_t("//","$"),zl=_t("/\\*","\\*/"),Ul=_t("#","$"),Dl={scope:"number",begin:ds,relevance:0},Bl={scope:"number",begin:fs,relevance:0},Hl={scope:"number",begin:ps,relevance:0},Fl={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ze,{begin:/\[/,end:/\]/,relevance:0,contains:[ze]}]},Wl={scope:"title",begin:hs,relevance:0},Vl={scope:"title",begin:ki,relevance:0},ql={begin:"\\.\\s*"+ki,relevance:0},Gl=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 tt=Object.freeze({__proto__:null,APOS_STRING_MODE:Tl,BACKSLASH_ESCAPE:ze,BINARY_NUMBER_MODE:Hl,BINARY_NUMBER_RE:ps,COMMENT:_t,C_BLOCK_COMMENT_MODE:zl,C_LINE_COMMENT_MODE:jl,C_NUMBER_MODE:Bl,C_NUMBER_RE:fs,END_SAME_AS_BEGIN:Gl,HASH_COMMENT_MODE:Ul,IDENT_RE:hs,MATCH_NOTHING_RE:Ml,METHOD_GUARD:ql,NUMBER_MODE:Dl,NUMBER_RE:ds,PHRASAL_WORDS_MODE:Il,QUOTE_STRING_MODE:Ll,REGEXP_MODE:Fl,RE_STARTERS_RE:Nl,SHEBANG:Pl,TITLE_MODE:Wl,UNDERSCORE_IDENT_RE:ki,UNDERSCORE_TITLE_MODE:Vl});function Zl(n,e){n.input[n.index-1]==="."&&e.ignoreMatch()}function Kl(n,e){n.className!==void 0&&(n.scope=n.className,delete n.className)}function Jl(n,e){e&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=Zl,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function Ql(n,e){Array.isArray(n.illegal)&&(n.illegal=Ei(...n.illegal))}function Xl(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 Yl(n,e){n.relevance===void 0&&(n.relevance=1)}const ea=(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=he(t.beforeMatch,cs(t.begin)),n.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},n.relevance=0,delete t.beforeMatch},ta=["of","and","for","in","not","or","if","then","parent","list","value"],ia="keyword";function gs(n,e,t=ia){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,gs(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,na(a[0],a[1])]})}}function na(n,e){return e?Number(e):sa(n)?0:1}function sa(n){return ta.includes(n.toLowerCase())}const dn={},ae=n=>{console.error(n)},fn=(n,...e)=>{console.log(`WARN: ${n}`,...e)},pe=(n,e)=>{dn[`${n}/${e}`]||(console.log(`Deprecated as of ${n}. ${e}`),dn[`${n}/${e}`]=!0)},pt=new Error;function ms(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+=us(e[l-1]);n[t]=r,n[t]._emit=o,n[t]._multi=!0}function ra(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw ae("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),pt;if(typeof n.beginScope!="object"||n.beginScope===null)throw ae("beginScope must be object"),pt;ms(n,n.begin,{key:"beginScope"}),n.begin=Si(n.begin,{joinWith:""})}}function oa(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw ae("skip, excludeEnd, returnEnd not compatible with endScope: {}"),pt;if(typeof n.endScope!="object"||n.endScope===null)throw ae("endScope must be object"),pt;ms(n,n.end,{key:"endScope"}),n.end=Si(n.end,{joinWith:""})}}function la(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function aa(n){la(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),ra(n),oa(n)}function ca(n){function e(r,l){return new RegExp(je(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+=us(l)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const l=this.regexes.map(a=>a[1]);this.matcherRe=e(Si(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((f,p)=>p>0&&f!==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;[Kl,Xl,aa,ea].forEach(u=>u(r,l)),n.compilerExtensions.forEach(u=>u(r,l)),r.__beforeBegin=null,[Jl,Ql,Yl].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=gs(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=je(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 ua(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=ee(n.classNameAliases||{}),o(n)}function bs(n){return n?n.endsWithParent||bs(n.starts):!1}function ua(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(e){return ee(n,{variants:null},e)})),n.cachedVariants?n.cachedVariants:bs(n)?ee(n,{starts:n.starts?ee(n.starts):null}):Object.isFrozen(n)?ee(n):n}var ha="11.9.0";class da extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Ft=as,pn=ee,gn=Symbol("nomatch"),fa=7,ys=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:kl};function a(h){return l.noHighlightRe.test(h)}function c(h){let g=h.className+" ";g+=h.parentNode?h.parentNode.className:"";const w=l.languageDetectRe.exec(g);if(w){const _=T(w[1]);return _||(fn(o.replace("{}",w[1])),fn("Falling back to no-highlight mode for this block.",h)),_?w[1]:"no-highlight"}return g.split(/\s+/).find(_=>a(_)||T(_))}function u(h,g,w){let _="",O="";typeof g=="object"?(_=h,w=g.ignoreIllegals,O=g.language):(pe("10.7.0","highlight(lang, code, ...args) has been deprecated."),pe("10.7.0",`Please use highlight(code, options) instead.
115
- https://github.com/highlightjs/highlight.js/issues/2277`),O=h,_=g),w===void 0&&(w=!0);const L={code:_,language:O};ne("before:highlight",L);const X=L.result?L.result:f(L.language,L.code,w);return X.code=L.code,ne("after:highlight",X),X}function f(h,g,w,_){const O=Object.create(null);function L(d,m){return d.keywords[m]}function X(){if(!y.keywords){N.addText(k);return}let d=0;y.keywordPatternRe.lastIndex=0;let m=y.keywordPatternRe.exec(k),v="";for(;m;){v+=k.substring(d,m.index);const S=H.case_insensitive?m[0].toLowerCase():m[0],P=L(y,S);if(P){const[K,Ns]=P;if(N.addText(v),v="",O[S]=(O[S]||0)+1,O[S]<=fa&&(Ve+=Ns),K.startsWith("_"))v+=m[0];else{const Ps=H.classNameAliases[K]||K;B(m[0],Ps)}}else v+=m[0];d=y.keywordPatternRe.lastIndex,m=y.keywordPatternRe.exec(k)}v+=k.substring(d),N.addText(v)}function Fe(){if(k==="")return;let d=null;if(typeof y.subLanguage=="string"){if(!e[y.subLanguage]){N.addText(k);return}d=f(y.subLanguage,k,!0,Ri[y.subLanguage]),Ri[y.subLanguage]=d._top}else d=x(k,y.subLanguage.length?y.subLanguage:null);y.relevance>0&&(Ve+=d.relevance),N.__addSublanguage(d._emitter,d.language)}function I(){y.subLanguage!=null?Fe():X(),k=""}function B(d,m){d!==""&&(N.startScope(m),N.addText(d),N.endScope())}function $i(d,m){let v=1;const S=m.length-1;for(;v<=S;){if(!d._emit[v]){v++;continue}const P=H.classNameAliases[d[v]]||d[v],K=m[v];P?B(K,P):(k=K,X(),k=""),v++}}function Ai(d,m){return d.scope&&typeof d.scope=="string"&&N.openNode(H.classNameAliases[d.scope]||d.scope),d.beginScope&&(d.beginScope._wrap?(B(k,H.classNameAliases[d.beginScope._wrap]||d.beginScope._wrap),k=""):d.beginScope._multi&&($i(d.beginScope,m),k="")),y=Object.create(d,{parent:{value:y}}),y}function Ci(d,m,v){let S=Ol(d.endRe,v);if(S){if(d["on:end"]){const P=new cn(d);d["on:end"](m,P),P.isMatchIgnored&&(S=!1)}if(S){for(;d.endsParent&&d.parent;)d=d.parent;return d}}if(d.endsWithParent)return Ci(d.parent,m,v)}function As(d){return y.matcher.regexIndex===0?(k+=d[0],1):(Rt=!0,0)}function Cs(d){const m=d[0],v=d.rule,S=new cn(v),P=[v.__beforeBegin,v["on:begin"]];for(const K of P)if(K&&(K(d,S),S.isMatchIgnored))return As(m);return v.skip?k+=m:(v.excludeBegin&&(k+=m),I(),!v.returnBegin&&!v.excludeBegin&&(k=m)),Ai(v,d),v.returnBegin?0:m.length}function Os(d){const m=d[0],v=g.substring(d.index),S=Ci(y,d,v);if(!S)return gn;const P=y;y.endScope&&y.endScope._wrap?(I(),B(m,y.endScope._wrap)):y.endScope&&y.endScope._multi?(I(),$i(y.endScope,d)):P.skip?k+=m:(P.returnEnd||P.excludeEnd||(k+=m),I(),P.excludeEnd&&(k=m));do y.scope&&N.closeNode(),!y.skip&&!y.subLanguage&&(Ve+=y.relevance),y=y.parent;while(y!==S.parent);return S.starts&&Ai(S.starts,d),P.returnEnd?0:m.length}function Rs(){const d=[];for(let m=y;m!==H;m=m.parent)m.scope&&d.unshift(m.scope);d.forEach(m=>N.openNode(m))}let We={};function Oi(d,m){const v=m&&m[0];if(k+=d,v==null)return I(),0;if(We.type==="begin"&&m.type==="end"&&We.index===m.index&&v===""){if(k+=g.slice(m.index,m.index+1),!s){const S=new Error(`0 width match regex (${h})`);throw S.languageName=h,S.badRule=We.rule,S}return 1}if(We=m,m.type==="begin")return Cs(m);if(m.type==="illegal"&&!w){const S=new Error('Illegal lexeme "'+v+'" for mode "'+(y.scope||"<unnamed>")+'"');throw S.mode=y,S}else if(m.type==="end"){const S=Os(m);if(S!==gn)return S}if(m.type==="illegal"&&v==="")return 1;if(Ot>1e5&&Ot>m.index*3)throw new Error("potential infinite loop, way more iterations than matches");return k+=v,v.length}const H=T(h);if(!H)throw ae(o.replace("{}",h)),new Error('Unknown language: "'+h+'"');const Ms=ca(H);let Ct="",y=_||Ms;const Ri={},N=new l.__emitter(l);Rs();let k="",Ve=0,se=0,Ot=0,Rt=!1;try{if(H.__emitTokens)H.__emitTokens(g,N);else{for(y.matcher.considerAll();;){Ot++,Rt?Rt=!1:y.matcher.considerAll(),y.matcher.lastIndex=se;const d=y.matcher.exec(g);if(!d)break;const m=g.substring(se,d.index),v=Oi(m,d);se=d.index+v}Oi(g.substring(se))}return N.finalize(),Ct=N.toHTML(),{language:h,value:Ct,relevance:Ve,illegal:!1,_emitter:N,_top:y}}catch(d){if(d.message&&d.message.includes("Illegal"))return{language:h,value:Ft(g),illegal:!0,relevance:0,_illegalBy:{message:d.message,index:se,context:g.slice(se-100,se+100),mode:d.mode,resultSoFar:Ct},_emitter:N};if(s)return{language:h,value:Ft(g),illegal:!1,relevance:0,errorRaised:d,_emitter:N,_top:y};throw d}}function p(h){const g={value:Ft(h),illegal:!1,relevance:0,_top:r,_emitter:new l.__emitter(l)};return g._emitter.addText(h),g}function x(h,g){g=g||l.languages||Object.keys(e);const w=p(h),_=g.filter(T).filter(He).map(I=>f(I,h,!1));_.unshift(w);const O=_.sort((I,B)=>{if(I.relevance!==B.relevance)return B.relevance-I.relevance;if(I.language&&B.language){if(T(I.language).supersetOf===B.language)return 1;if(T(B.language).supersetOf===I.language)return-1}return 0}),[L,X]=O,Fe=L;return Fe.secondBest=X,Fe}function C(h,g,w){const _=g&&t[g]||w;h.classList.add("hljs"),h.classList.add(`language-${_}`)}function M(h){let g=null;const w=c(h);if(a(w))return;if(ne("before:highlightElement",{el:h,language:w}),h.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",h);return}if(h.children.length>0&&(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(h)),l.throwUnescapedHTML))throw new da("One of your code blocks includes unescaped HTML.",h.innerHTML);g=h;const _=g.textContent,O=w?u(_,{language:w,ignoreIllegals:!0}):x(_);h.innerHTML=O.value,h.dataset.highlighted="yes",C(h,w,O.language),h.result={language:O.language,re:O.relevance,relevance:O.relevance},O.secondBest&&(h.secondBest={language:O.secondBest.language,relevance:O.secondBest.relevance}),ne("after:highlightElement",{el:h,result:O,text:_})}function b(h){l=pn(l,h)}const q=()=>{j(),pe("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function G(){j(),pe("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let te=!1;function j(){if(document.readyState==="loading"){te=!0;return}document.querySelectorAll(l.cssSelector).forEach(M)}function Z(){te&&j()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",Z,!1);function Ee(h,g){let w=null;try{w=g(n)}catch(_){if(ae("Language definition for '{}' could not be registered.".replace("{}",h)),s)ae(_);else throw _;w=r}w.name||(w.name=h),e[h]=w,w.rawDefinition=g.bind(null,n),w.aliases&&ie(w.aliases,{languageName:h})}function de(h){delete e[h];for(const g of Object.keys(t))t[g]===h&&delete t[g]}function D(){return Object.keys(e)}function T(h){return h=(h||"").toLowerCase(),e[h]||e[t[h]]}function ie(h,{languageName:g}){typeof h=="string"&&(h=[h]),h.forEach(w=>{t[w.toLowerCase()]=g})}function He(h){const g=T(h);return g&&!g.disableAutodetect}function St(h){h["before:highlightBlock"]&&!h["before:highlightElement"]&&(h["before:highlightElement"]=g=>{h["before:highlightBlock"](Object.assign({block:g.el},g))}),h["after:highlightBlock"]&&!h["after:highlightElement"]&&(h["after:highlightElement"]=g=>{h["after:highlightBlock"](Object.assign({block:g.el},g))})}function kt(h){St(h),i.push(h)}function $t(h){const g=i.indexOf(h);g!==-1&&i.splice(g,1)}function ne(h,g){const w=h;i.forEach(function(_){_[w]&&_[w](g)})}function At(h){return pe("10.7.0","highlightBlock will be removed entirely in v12.0"),pe("10.7.0","Please use highlightElement now."),M(h)}Object.assign(n,{highlight:u,highlightAuto:x,highlightAll:j,highlightElement:M,highlightBlock:At,configure:b,initHighlighting:q,initHighlightingOnLoad:G,registerLanguage:Ee,unregisterLanguage:de,listLanguages:D,getLanguage:T,registerAliases:ie,autoDetection:He,inherit:pn,addPlugin:kt,removePlugin:$t}),n.debugMode=function(){s=!1},n.safeMode=function(){s=!0},n.versionString=ha,n.regex={concat:he,lookahead:cs,either:Ei,optional:Al,anyNumberOfTimes:$l};for(const h in tt)typeof tt[h]=="object"&&ls(tt[h]);return Object.assign(n,tt),n},_e=ys({});_e.newInstance=()=>ys({});var pa=_e;_e.HighlightJS=_e;_e.default=_e;const Et=xl(pa),gt="[A-Za-z$_][0-9A-Za-z$_]*",ws=["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"],vs=["true","false","null","undefined","NaN","Infinity"],xs=["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"],_s=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Es=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Ss=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],ks=[].concat(Es,xs,_s);function ga(n){const e=n.regex,t=(h,{after:g})=>{const w="</"+h[0].slice(1);return h.input.indexOf(w,g)!==-1},i=gt,s={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,r={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(h,g)=>{const w=h[0].length+h.index,_=h.input[w];if(_==="<"||_===","){g.ignoreMatch();return}_===">"&&(t(h,{after:w})||g.ignoreMatch());let O;const L=h.input.substring(w);if(O=L.match(/^\s*=/)){g.ignoreMatch();return}if((O=L.match(/^\s+extends\s+/))&&O.index===0){g.ignoreMatch();return}}},l={$pattern:gt,keyword:ws,literal:vs,built_in:ks,"variable.language":Ss},a="[0-9](_?[0-9])*",c=`\\.(${a})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",f={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"}},C={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,p],subLanguage:"css"}},M={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,p],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,p]},q={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]},G=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,x,C,M,b,{match:/\$\d+/},f];p.contains=G.concat({begin:/\{/,end:/\}/,keywords:l,contains:["self"].concat(G)});const te=[].concat(q,p.contains),j=te.concat([{begin:/\(/,end:/\)/,keywords:l,contains:["self"].concat(te)}]),Z={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:j},Ee={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"}}]},de={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:{_:[...xs,..._s]}},D={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},T={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[Z],illegal:/%/},ie={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function He(h){return e.concat("(?!",h.join("|"),")")}const St={match:e.concat(/\b/,He([...Es,"super","import"]),i,e.lookahead(/\(/)),className:"title.function",relevance:0},kt={begin:e.concat(/\./,e.lookahead(e.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},$t={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},Z]},ne="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+n.UNDERSCORE_IDENT_RE+")\\s*=>",At={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(ne)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[Z]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:l,exports:{PARAMS_CONTAINS:j,CLASS_REFERENCE:de},illegal:/#(?![$_A-z])/,contains:[n.SHEBANG({label:"shebang",binary:"node",relevance:5}),D,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,x,C,M,b,q,{match:/\$\d+/},f,de,{className:"attr",begin:i+e.lookahead(":"),relevance:0},At,{begin:"("+n.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[q,n.REGEXP_MODE,{className:"function",begin:ne,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:j}]}]},{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"]}]}]},T,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+n.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[Z,n.inherit(n.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},kt,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[Z]},St,ie,Ee,$t,{match:/\$[(.]/}]}}function ma(n){const e=ga(n),t=gt,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:gt,keyword:ws.concat(l),literal:vs,built_in:ks.concat(i),"variable.language":Ss},c={className:"meta",begin:"@"+t},u=(p,x,C)=>{const M=p.contains.findIndex(b=>b.label===x);if(M===-1)throw new Error("can not find mode to replace");p.contains.splice(M,1,C)};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 f=e.contains.find(p=>p.label==="func.def");return f.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function ba(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 ya=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_-]*/}}),wa=["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"],va=["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"],xa=["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"],_a=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],Ea=["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 Sa(n){const e=n.regex,t=ya(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:":("+xa.join("|")+")"},{begin:":(:)?("+_a.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Ea.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:va.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...l,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+wa.join("|")+")\\b"}]}}const $s=document.createElement("style");$s.innerText=[wl,vl].join(`
116
- `);document.head.appendChild($s);Et.registerLanguage("typescript",ma);Et.registerLanguage("html",ba);Et.registerLanguage("css",Sa);function ka(...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 Ae(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 Ce(n,e){const t=document.createElement(n);return typeof e=="string"?t.innerHTML=e:e.forEach(i=>{t.appendChild(i)}),t}async function $a(n,e,t){var i,s,o;const r=e.mainContent,l=Ce("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=ka(Ae("Preview",l),Ae("HTML",it("html",r)),...c?[Ae(a??"CSS",it("css",c))]:[],...e.initializer&&e.initializer.content?[Ae(e.initializer.label??"TS",it("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(p=>Ae(p.label,it(p.language,p.content))));e.description&&n.appendChild(Ce("div",e.description));const f=Ce("div",[u]);f.classList.add("example"),n.appendChild(f),c&&Aa(`#${l.id}`,c),(o=e.initializer)!=null&&o.initialize&&await e.initializer.initialize(l)}function it(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(`
117
- `).trim();return n&&n!="raw"&&(t=Et.highlight(t,{language:n}).value),Ce("pre",[Ce("code",t)])}function Aa(n,e){const t=document.createElement("style");t.innerHTML=A().use(yl({prefix:n})).process(e).css,document.head.appendChild(t)}async function Ca(n,e=document.body){const t=Ra(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;$a(o,r,i++)})}function Oa(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 Ra(n){return n.children?Oa(n):n}const Ma=`<h1 id="@cas-smartdesign/checkbox">@cas-smartdesign/checkbox</h1>
112
+ `)&&(l=`\r
113
+ `),this.css+=l+"/*# sourceMappingURL="+o+" */"}applyPrevMaps(){for(let o of this.previous()){let l=this.toUrl(this.path(o.file)),f=o.root||r(o.file),g;this.mapOpts.sourcesContent===!1?(g=new t(o.text),g.sourcesContent&&(g.sourcesContent=null)):g=o.consumer(),this.map.applySourceMap(g,l,this.toUrl(this.path(f)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let o;for(let l=this.root.nodes.length-1;l>=0;l--)o=this.root.nodes[l],o.type==="comment"&&o.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(l)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),h&&b&&this.isMap())return this.generateMap();{let o="";return this.stringify(this.root,l=>{o+=l}),[o]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let o=this.previous()[0].consumer();o.file=this.outputFile(),this.map=u.fromSourceMap(o,{ignoreInvalidMapping:!0})}else this.map=new u({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new u({file:this.outputFile(),ignoreInvalidMapping:!0});let o=1,l=1,f="<no source>",g={generated:{column:0,line:0},original:{column:0,line:0},source:""},m,_;this.stringify(this.root,(E,v,w)=>{if(this.css+=E,v&&w!=="end"&&(g.generated.line=o,g.generated.column=l-1,v.source&&v.source.start?(g.source=this.sourcePath(v),g.original.line=v.source.start.line,g.original.column=v.source.start.column-1,this.map.addMapping(g)):(g.source=f,g.original.line=1,g.original.column=0,this.map.addMapping(g))),_=E.match(/\n/g),_?(o+=_.length,m=E.lastIndexOf(`
114
+ `),l=E.length-m):l+=E.length,v&&w!=="start"){let y=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==y.last||y.raws.semicolon)&&(v.source&&v.source.end?(g.source=this.sourcePath(v),g.original.line=v.source.end.line,g.original.column=v.source.end.column-1,g.generated.line=o,g.generated.column=l-2,this.map.addMapping(g)):(g.source=f,g.original.line=1,g.original.column=0,g.generated.line=o,g.generated.column=l-1,this.map.addMapping(g)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(o=>o.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let o=this.mapOpts.annotation;return typeof o<"u"&&o!==!0?!1:this.previous().length?this.previous().some(l=>l.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(o=>o.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(o){if(this.mapOpts.absolute||o.charCodeAt(0)===60||/^\w+:\/\//.test(o))return o;let l=this.memoizedPaths.get(o);if(l)return l;let f=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(f=r(s(f,this.mapOpts.annotation)));let g=e(f,o);return this.memoizedPaths.set(o,g),g}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(o=>{if(o.source&&o.source.input.map){let l=o.source.input.map;this.previousMaps.includes(l)||this.previousMaps.push(l)}});else{let o=new p(this.originalCSS,this.opts);o.map&&this.previousMaps.push(o.map)}return this.previousMaps}setSourcesContent(){let o={};if(this.root)this.root.walk(l=>{if(l.source){let f=l.source.input.from;if(f&&!o[f]){o[f]=!0;let g=this.usesFileUrls?this.toFileUrl(f):this.toUrl(this.path(f));this.map.setSourceContent(g,l.source.input.css)}}});else if(this.css){let l=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(l,this.css)}}sourcePath(o){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(o.source.input.from):this.toUrl(this.path(o.source.input.from))}toBase64(o){return Buffer?Buffer.from(o).toString("base64"):window.btoa(unescape(encodeURIComponent(o)))}toFileUrl(o){let l=this.memoizedFileURLs.get(o);if(l)return l;if(a){let f=a(o).toString();return this.memoizedFileURLs.set(o,f),f}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(o){let l=this.memoizedURLs.get(o);if(l)return l;n==="\\"&&(o=o.replace(/\\/g,"/"));let f=encodeURI(o).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(o,f),f}}return ei=i,ei}var ti,wr;function Us(){if(wr)return ti;wr=1;const r=39,e=34,s=92,n=47,t=10,u=32,a=12,p=9,b=13,h=91,i=93,c=40,o=41,l=123,f=125,g=59,m=42,_=58,E=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,k=/[\da-f]/i;return ti=function(L,D={}){let P=L.css.valueOf(),J=D.ignoreErrors,H,Ee,le,$,Ne,W,Q,se,oe,ye,ke=P.length,j=0,Be=[],Pe=[];function St(){return j}function qe(we){throw L.error("Unclosed "+we,j)}function At(){return Pe.length===0&&j>=ke}function Te(we){if(Pe.length)return Pe.pop();if(j>=ke)return;let He=we?we.ignoreUnclosed:!1;switch(H=P.charCodeAt(j),H){case t:case u:case p:case b:case a:{$=j;do $+=1,H=P.charCodeAt($);while(H===u||H===t||H===p||H===b||H===a);W=["space",P.slice(j,$)],j=$-1;break}case h:case i:case l:case f:case _:case g:case o:{let tt=String.fromCharCode(H);W=[tt,tt,j];break}case c:{if(ye=Be.length?Be.pop()[1]:"",oe=P.charCodeAt(j+1),ye==="url"&&oe!==r&&oe!==e&&oe!==u&&oe!==t&&oe!==p&&oe!==a&&oe!==b){$=j;do{if(Q=!1,$=P.indexOf(")",$+1),$===-1)if(J||He){$=j;break}else qe("bracket");for(se=$;P.charCodeAt(se-1)===s;)se-=1,Q=!Q}while(Q);W=["brackets",P.slice(j,$+1),j,$],j=$}else $=P.indexOf(")",j+1),Ee=P.slice(j,$+1),$===-1||y.test(Ee)?W=["(","(",j]:(W=["brackets",Ee,j,$],j=$);break}case r:case e:{Ne=H===r?"'":'"',$=j;do{if(Q=!1,$=P.indexOf(Ne,$+1),$===-1)if(J||He){$=j+1;break}else qe("string");for(se=$;P.charCodeAt(se-1)===s;)se-=1,Q=!Q}while(Q);W=["string",P.slice(j,$+1),j,$],j=$;break}case E:{v.lastIndex=j+1,v.test(P),v.lastIndex===0?$=P.length-1:$=v.lastIndex-2,W=["at-word",P.slice(j,$+1),j,$],j=$;break}case s:{for($=j,le=!0;P.charCodeAt($+1)===s;)$+=1,le=!le;if(H=P.charCodeAt($+1),le&&H!==n&&H!==u&&H!==t&&H!==p&&H!==b&&H!==a&&($+=1,k.test(P.charAt($)))){for(;k.test(P.charAt($+1));)$+=1;P.charCodeAt($+1)===u&&($+=1)}W=["word",P.slice(j,$+1),j,$],j=$;break}default:{H===n&&P.charCodeAt(j+1)===m?($=P.indexOf("*/",j+2)+1,$===0&&(J||He?$=P.length:qe("comment")),W=["comment",P.slice(j,$+1),j,$],j=$):(w.lastIndex=j+1,w.test(P),w.lastIndex===0?$=P.length-1:$=w.lastIndex-2,W=["word",P.slice(j,$+1),j,$],Be.push(W),j=$);break}}return j++,W}function Ot(we){Pe.push(we)}return{back:Ot,endOfFile:At,nextToken:Te,position:St}},ti}var ii,vr;function Ds(){if(vr)return ii;vr=1;let r=_i(),e=xt(),s=_t(),n=et(),t=ki(),u=Us();const a={empty:!0,space:!0};function p(h){for(let i=h.length-1;i>=0;i--){let c=h[i],o=c[3]||c[2];if(o)return o}}class b{constructor(i){this.input=i,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}atrule(i){let c=new r;c.name=i[1].slice(1),c.name===""&&this.unnamedAtrule(c,i),this.init(c,i[2]);let o,l,f,g=!1,m=!1,_=[],E=[];for(;!this.tokenizer.endOfFile();){if(i=this.tokenizer.nextToken(),o=i[0],o==="("||o==="["?E.push(o==="("?")":"]"):o==="{"&&E.length>0?E.push("}"):o===E[E.length-1]&&E.pop(),E.length===0)if(o===";"){c.source.end=this.getPosition(i[2]),c.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){m=!0;break}else if(o==="}"){if(_.length>0){for(f=_.length-1,l=_[f];l&&l[0]==="space";)l=_[--f];l&&(c.source.end=this.getPosition(l[3]||l[2]),c.source.end.offset++)}this.end(i);break}else _.push(i);else _.push(i);if(this.tokenizer.endOfFile()){g=!0;break}}c.raws.between=this.spacesAndCommentsFromEnd(_),_.length?(c.raws.afterName=this.spacesAndCommentsFromStart(_),this.raw(c,"params",_),g&&(i=_[_.length-1],c.source.end=this.getPosition(i[3]||i[2]),c.source.end.offset++,this.spaces=c.raws.between,c.raws.between="")):(c.raws.afterName="",c.params=""),m&&(c.nodes=[],this.current=c)}checkMissedSemicolon(i){let c=this.colon(i);if(c===!1)return;let o=0,l;for(let f=c-1;f>=0&&(l=i[f],!(l[0]!=="space"&&(o+=1,o===2)));f--);throw this.input.error("Missed semicolon",l[0]==="word"?l[3]+1:l[2])}colon(i){let c=0,o,l,f;for(let[g,m]of i.entries()){if(l=m,f=l[0],f==="("&&(c+=1),f===")"&&(c-=1),c===0&&f===":")if(!o)this.doubleColon(l);else{if(o[0]==="word"&&o[1]==="progid")continue;return g}o=l}return!1}comment(i){let c=new e;this.init(c,i[2]),c.source.end=this.getPosition(i[3]||i[2]),c.source.end.offset++;let o=i[1].slice(2,-2);if(/^\s*$/.test(o))c.text="",c.raws.left=o,c.raws.right="";else{let l=o.match(/^(\s*)([^]*\S)(\s*)$/);c.text=l[2],c.raws.left=l[1],c.raws.right=l[3]}}createTokenizer(){this.tokenizer=u(this.input)}decl(i,c){let o=new s;this.init(o,i[0][2]);let l=i[i.length-1];for(l[0]===";"&&(this.semicolon=!0,i.pop()),o.source.end=this.getPosition(l[3]||l[2]||p(i)),o.source.end.offset++;i[0][0]!=="word";)i.length===1&&this.unknownWord(i),o.raws.before+=i.shift()[1];for(o.source.start=this.getPosition(i[0][2]),o.prop="";i.length;){let E=i[0][0];if(E===":"||E==="space"||E==="comment")break;o.prop+=i.shift()[1]}o.raws.between="";let f;for(;i.length;)if(f=i.shift(),f[0]===":"){o.raws.between+=f[1];break}else f[0]==="word"&&/\w/.test(f[1])&&this.unknownWord([f]),o.raws.between+=f[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));let g=[],m;for(;i.length&&(m=i[0][0],!(m!=="space"&&m!=="comment"));)g.push(i.shift());this.precheckMissedSemicolon(i);for(let E=i.length-1;E>=0;E--){if(f=i[E],f[1].toLowerCase()==="!important"){o.important=!0;let v=this.stringFrom(i,E);v=this.spacesFromEnd(i)+v,v!==" !important"&&(o.raws.important=v);break}else if(f[1].toLowerCase()==="important"){let v=i.slice(0),w="";for(let y=E;y>0;y--){let k=v[y][0];if(w.trim().startsWith("!")&&k!=="space")break;w=v.pop()[1]+w}w.trim().startsWith("!")&&(o.important=!0,o.raws.important=w,i=v)}if(f[0]!=="space"&&f[0]!=="comment")break}i.some(E=>E[0]!=="space"&&E[0]!=="comment")&&(o.raws.between+=g.map(E=>E[1]).join(""),g=[]),this.raw(o,"value",g.concat(i),c),o.value.includes(":")&&!c&&this.checkMissedSemicolon(i)}doubleColon(i){throw this.input.error("Double colon",{offset:i[2]},{offset:i[2]+i[1].length})}emptyRule(i){let c=new t;this.init(c,i[2]),c.selector="",c.raws.between="",this.current=c}end(i){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(i[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(i)}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(i){if(this.spaces+=i[1],this.current.nodes){let c=this.current.nodes[this.current.nodes.length-1];c&&c.type==="rule"&&!c.raws.ownSemicolon&&(c.raws.ownSemicolon=this.spaces,this.spaces="",c.source.end=this.getPosition(i[2]),c.source.end.offset+=c.raws.ownSemicolon.length)}}getPosition(i){let c=this.input.fromOffset(i);return{column:c.col,line:c.line,offset:i}}init(i,c){this.current.push(i),i.source={input:this.input,start:this.getPosition(c)},i.raws.before=this.spaces,this.spaces="",i.type!=="comment"&&(this.semicolon=!1)}other(i){let c=!1,o=null,l=!1,f=null,g=[],m=i[1].startsWith("--"),_=[],E=i;for(;E;){if(o=E[0],_.push(E),o==="("||o==="[")f||(f=E),g.push(o==="("?")":"]");else if(m&&l&&o==="{")f||(f=E),g.push("}");else if(g.length===0)if(o===";")if(l){this.decl(_,m);return}else break;else if(o==="{"){this.rule(_);return}else if(o==="}"){this.tokenizer.back(_.pop()),c=!0;break}else o===":"&&(l=!0);else o===g[g.length-1]&&(g.pop(),g.length===0&&(f=null));E=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(c=!0),g.length>0&&this.unclosedBracket(f),c&&l){if(!m)for(;_.length&&(E=_[_.length-1][0],!(E!=="space"&&E!=="comment"));)this.tokenizer.back(_.pop());this.decl(_,m)}else this.unknownWord(_)}parse(){let i;for(;!this.tokenizer.endOfFile();)switch(i=this.tokenizer.nextToken(),i[0]){case"space":this.spaces+=i[1];break;case";":this.freeSemicolon(i);break;case"}":this.end(i);break;case"comment":this.comment(i);break;case"at-word":this.atrule(i);break;case"{":this.emptyRule(i);break;default:this.other(i);break}this.endFile()}precheckMissedSemicolon(){}raw(i,c,o,l){let f,g,m=o.length,_="",E=!0,v,w;for(let y=0;y<m;y+=1)f=o[y],g=f[0],g==="space"&&y===m-1&&!l?E=!1:g==="comment"?(w=o[y-1]?o[y-1][0]:"empty",v=o[y+1]?o[y+1][0]:"empty",!a[w]&&!a[v]?_.slice(-1)===","?E=!1:_+=f[1]:E=!1):_+=f[1];if(!E){let y=o.reduce((k,C)=>k+C[1],"");i.raws[c]={raw:y,value:_}}i[c]=_}rule(i){i.pop();let c=new t;this.init(c,i[0][2]),c.raws.between=this.spacesAndCommentsFromEnd(i),this.raw(c,"selector",i),this.current=c}spacesAndCommentsFromEnd(i){let c,o="";for(;i.length&&(c=i[i.length-1][0],!(c!=="space"&&c!=="comment"));)o=i.pop()[1]+o;return o}spacesAndCommentsFromStart(i){let c,o="";for(;i.length&&(c=i[0][0],!(c!=="space"&&c!=="comment"));)o+=i.shift()[1];return o}spacesFromEnd(i){let c,o="";for(;i.length&&(c=i[i.length-1][0],c==="space");)o=i.pop()[1]+o;return o}stringFrom(i,c){let o="";for(let l=c;l<i.length;l++)o+=i[l][1];return i.splice(c,i.length-c),o}unclosedBlock(){let i=this.current.source.start;throw this.input.error("Unclosed block",i.line,i.column)}unclosedBracket(i){throw this.input.error("Unclosed bracket",{offset:i[2]},{offset:i[2]+1})}unexpectedClose(i){throw this.input.error("Unexpected }",{offset:i[2]},{offset:i[2]+1})}unknownWord(i){throw this.input.error("Unknown word "+i[0][1],{offset:i[0][2]},{offset:i[0][2]+i[0][1].length})}unnamedAtrule(i,c){throw this.input.error("At-rule without name",{offset:c[2]},{offset:c[2]+c[1].length})}}return ii=b,ii}var ri,xr;function Si(){if(xr)return ri;xr=1;let r=Me(),e=Et(),s=Ds();function n(t,u){let a=new e(t,u),p=new s(a);try{p.parse()}catch(b){throw b}return p.root}return ri=n,n.default=n,r.registerParse(n),ri}var ni,_r;function qr(){if(_r)return ni;_r=1;class r{constructor(s,n={}){if(this.type="warning",this.text=s,n.node&&n.node.source){let t=n.node.rangeBy(n);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in n)this[t]=n[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return ni=r,r.default=r,ni}var si,Er;function Ai(){if(Er)return si;Er=1;let r=qr();class e{get content(){return this.css}constructor(n,t,u){this.processor=n,this.messages=[],this.root=t,this.opts=u,this.css="",this.map=void 0}toString(){return this.css}warn(n,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let u=new r(n,t);return this.messages.push(u),u}warnings(){return this.messages.filter(n=>n.type==="warning")}}return si=e,e.default=e,si}var oi,kr;function Hr(){if(kr)return oi;kr=1;let r=Me(),e=Ei(),s=Br(),n=Si(),t=Ai(),u=et(),a=wt(),{isClean:p,my:b}=xi();const h={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},i={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},c={Once:!0,postcssPlugin:!0,prepare:!0},o=0;function l(v){return typeof v=="object"&&typeof v.then=="function"}function f(v){let w=!1,y=h[v.type];return v.type==="decl"?w=v.prop.toLowerCase():v.type==="atrule"&&(w=v.name.toLowerCase()),w&&v.append?[y,y+"-"+w,o,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:v.append?[y,o,y+"Exit"]:[y,y+"Exit"]}function g(v){let w;return v.type==="document"?w=["Document",o,"DocumentExit"]:v.type==="root"?w=["Root",o,"RootExit"]:w=f(v),{eventIndex:0,events:w,iterator:0,node:v,visitorIndex:0,visitors:[]}}function m(v){return v[p]=!1,v.nodes&&v.nodes.forEach(w=>m(w)),v}let _={};class E{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(w,y,k){this.stringified=!1,this.processed=!1;let C;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))C=m(y);else if(y instanceof E||y instanceof t)C=m(y.root),y.map&&(typeof k.map>"u"&&(k.map={}),k.map.inline||(k.map.inline=!1),k.map.prev=y.map);else{let L=n;k.syntax&&(L=k.syntax.parse),k.parser&&(L=k.parser),L.parse&&(L=L.parse);try{C=L(y,k)}catch(D){this.processed=!0,this.error=D}C&&!C[b]&&r.rebuild(C)}this.result=new t(w,C,k),this.helpers={..._,postcss:_,result:this.result},this.plugins=this.processor.plugins.map(L=>typeof L=="object"&&L.prepare?{...L,...L.prepare(this.result)}:L)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let k=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=k.postcssPlugin,w.setMessage()):k.postcssVersion}catch(C){console&&console.error&&console.error(C)}return w}prepareVisitors(){this.listeners={};let w=(y,k,C)=>{this.listeners[k]||(this.listeners[k]=[]),this.listeners[k].push([y,C])};for(let y of this.plugins)if(typeof y=="object")for(let k in y){if(!i[k]&&/^[A-Z]/.test(k))throw new Error(`Unknown event ${k} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[k])if(typeof y[k]=="object")for(let C in y[k])C==="*"?w(y,k,y[k][C]):w(y,k+"-"+C.toLowerCase(),y[k][C]);else typeof y[k]=="function"&&w(y,k,y[k])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],k=this.runOnRoot(y);if(l(k))try{await k}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[p];){w[p]=!0;let y=[g(w)];for(;y.length>0;){let k=this.visitTick(y);if(l(k))try{await k}catch(C){let L=y[y.length-1].node;throw this.handleError(C,L)}}}if(this.listeners.OnceExit)for(let[y,k]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let C=w.nodes.map(L=>k(L,this.helpers));await Promise.all(C)}else await k(w,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(k=>w.Once(k,this.helpers));return l(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=a;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let C=new s(y,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[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 w of this.plugins){let y=this.runOnRoot(w);if(l(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[p];)w[p]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let y of w.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,y){return this.async().then(w,y)}toString(){return this.css}visitSync(w,y){for(let[k,C]of w){this.result.lastPlugin=k;let L;try{L=C(y,this.helpers)}catch(D){throw this.handleError(D,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(l(L))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:k,visitors:C}=y;if(k.type!=="root"&&k.type!=="document"&&!k.parent){w.pop();return}if(C.length>0&&y.visitorIndex<C.length){let[D,P]=C[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===C.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=D;try{return P(k.toProxy(),this.helpers)}catch(J){throw this.handleError(J,k)}}if(y.iterator!==0){let D=y.iterator,P;for(;P=k.nodes[k.indexes[D]];)if(k.indexes[D]+=1,!P[p]){P[p]=!0,w.push(g(P));return}y.iterator=0,delete k.indexes[D]}let L=y.events;for(;y.eventIndex<L.length;){let D=L[y.eventIndex];if(y.eventIndex+=1,D===o){k.nodes&&k.nodes.length&&(k[p]=!0,y.iterator=k.getIterator());return}else if(this.listeners[D]){y.visitors=this.listeners[D];return}}w.pop()}walkSync(w){w[p]=!0;let y=f(w);for(let k of y)if(k===o)w.nodes&&w.each(C=>{C[p]||this.walkSync(C)});else{let C=this.listeners[k];if(C&&this.visitSync(C,w.toProxy()))return}}warnings(){return this.sync().warnings()}}return E.registerPostcss=v=>{_=v},oi=E,E.default=E,u.registerLazyResult(E),e.registerLazyResult(E),oi}var ai,Sr;function Bs(){if(Sr)return ai;Sr=1;let r=Br(),e=Si();const s=Ai();let n=wt();class t{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 a,p=e;try{a=p(this._css,this._opts)}catch(b){this.error=b}if(this.error)throw this.error;return this._root=a,a}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(a,p,b){p=p.toString(),this.stringified=!1,this._processor=a,this._css=p,this._opts=b,this._map=void 0;let h,i=n;this.result=new s(this._processor,h,this._opts),this.result.css=p;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let o=new r(i,h,this._opts,p);if(o.isMap()){let[l,f]=o.generate();l&&(this.result.css=l),f&&(this.result.map=f)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(a){return this.async().catch(a)}finally(a){return this.async().then(a,a)}sync(){if(this.error)throw this.error;return this.result}then(a,p){return this.async().then(a,p)}toString(){return this._css}warnings(){return[]}}return ai=t,t.default=t,ai}var li,Ar;function qs(){if(Ar)return li;Ar=1;let r=Ei(),e=Hr(),s=Bs(),n=et();class t{constructor(a=[]){this.version="8.5.6",this.plugins=this.normalize(a)}normalize(a){let p=[];for(let b of a)if(b.postcss===!0?b=b():b.postcss&&(b=b.postcss),typeof b=="object"&&Array.isArray(b.plugins))p=p.concat(b.plugins);else if(typeof b=="object"&&b.postcssPlugin)p.push(b);else if(typeof b=="function")p.push(b);else if(!(typeof b=="object"&&(b.parse||b.stringify)))throw new Error(b+" is not a PostCSS plugin");return p}process(a,p={}){return!this.plugins.length&&!p.parser&&!p.stringifier&&!p.syntax?new s(this,a,p):new e(this,a,p)}use(a){return this.plugins=this.plugins.concat(this.normalize([a])),this}}return li=t,t.default=t,n.registerProcessor(t),r.registerProcessor(t),li}var ci,Or;function Hs(){if(Or)return ci;Or=1;var r={};let e=_i(),s=xt(),n=Me(),t=vi(),u=_t(),a=Ei(),p=zs(),b=Et(),h=Hr(),i=Dr(),c=vt(),o=Si(),l=qs(),f=Ai(),g=et(),m=ki(),_=wt(),E=qr();function v(...w){return w.length===1&&Array.isArray(w[0])&&(w=w[0]),new l(w)}return v.plugin=function(y,k){let C=!1;function L(...P){console&&console.warn&&!C&&(C=!0,console.warn(y+`: postcss.plugin was deprecated. Migration guide:
115
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),r.LANG&&r.LANG.startsWith("cn")&&console.warn(y+`: 里面 postcss.plugin 被弃用. 迁移指南:
116
+ https://www.w3ctech.com/topic/2226`));let J=k(...P);return J.postcssPlugin=y,J.postcssVersion=new l().version,J}let D;return Object.defineProperty(L,"postcss",{get(){return D||(D=L()),D}}),L.process=function(P,J,H){return v([L(H)]).process(P,J)},L},v.stringify=_,v.parse=o,v.fromJSON=p,v.list=i,v.comment=w=>new s(w),v.atRule=w=>new e(w),v.decl=w=>new u(w),v.rule=w=>new m(w),v.root=w=>new g(w),v.document=w=>new a(w),v.CssSyntaxError=t,v.Declaration=u,v.Container=n,v.Processor=l,v.Document=a,v.Comment=s,v.Warning=E,v.AtRule=e,v.Result=f,v.Input=b,v.Rule=m,v.Root=g,v.Node=c,h.registerPostcss(v),ci=v,v.default=v,ci}var Fs=Hs();const Z=jr(Fs);Z.stringify;Z.fromJSON;Z.plugin;Z.parse;Z.list;Z.document;Z.comment;Z.atRule;Z.rule;Z.decl;Z.root;Z.CssSyntaxError;Z.Declaration;Z.Container;Z.Processor;Z.Document;Z.Comment;Z.Warning;Z.AtRule;Z.Result;Z.Input;Z.Rule;Z.Root;Z.Node;var ui,Cr;function Ws(){if(Cr)return ui;Cr=1;const r=(n={})=>{const t=n.prefix,u=/\s+$/.test(t)?t:`${t} `,a=n.ignoreFiles?[].concat(n.ignoreFiles):[],p=n.includeFiles?[].concat(n.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(b){const h=b.root,i=h.source.input.file;if(!(a.length&&i&&e(i,a))&&!(p.length&&i&&!e(i,p)))return{Rule(c,{result:o}){const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];c.parent&&l.includes(c.parent.name)||(c.selectors=c.selectors.map(f=>n.exclude&&s(f,n.exclude)?f:n.transform?n.transform(t,f,u+f,h.source.input.file,c):[":root","body","html"].some(g=>f.startsWith(g))?n.skipGlobalSelectors?f:f.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,t):u+f))}}}}};function e(n,t){return t.some(u=>u instanceof RegExp?u.test(n):n.includes(u))}function s(n,t){return t.some(u=>u instanceof RegExp?u.test(n):n===u)}return r.postcss=!0,ui=r,ui}var Vs=Ws();const Gs=jr(Vs),Zs="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}",Js="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 Ks(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var hi,Rr;function Xs(){if(Rr)return hi;Rr=1;function r(d){return d instanceof Map?d.clear=d.delete=d.set=function(){throw new Error("map is read-only")}:d instanceof Set&&(d.add=d.clear=d.delete=function(){throw new Error("set is read-only")}),Object.freeze(d),Object.getOwnPropertyNames(d).forEach(x=>{const O=d[x],U=typeof O;(U==="object"||U==="function")&&!Object.isFrozen(O)&&r(O)}),d}class e{constructor(x){x.data===void 0&&(x.data={}),this.data=x.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function s(d){return d.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function n(d,...x){const O=Object.create(null);for(const U in d)O[U]=d[U];return x.forEach(function(U){for(const K in U)O[K]=U[K]}),O}const t="</span>",u=d=>!!d.scope,a=(d,{prefix:x})=>{if(d.startsWith("language:"))return d.replace("language:","language-");if(d.includes(".")){const O=d.split(".");return[`${x}${O.shift()}`,...O.map((U,K)=>`${U}${"_".repeat(K+1)}`)].join(" ")}return`${x}${d}`};class p{constructor(x,O){this.buffer="",this.classPrefix=O.classPrefix,x.walk(this)}addText(x){this.buffer+=s(x)}openNode(x){if(!u(x))return;const O=a(x.scope,{prefix:this.classPrefix});this.span(O)}closeNode(x){u(x)&&(this.buffer+=t)}value(){return this.buffer}span(x){this.buffer+=`<span class="${x}">`}}const b=(d={})=>{const x={children:[]};return Object.assign(x,d),x};class h{constructor(){this.rootNode=b(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(x){this.top.children.push(x)}openNode(x){const O=b({scope:x});this.add(O),this.stack.push(O)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(x){return this.constructor._walk(x,this.rootNode)}static _walk(x,O){return typeof O=="string"?x.addText(O):O.children&&(x.openNode(O),O.children.forEach(U=>this._walk(x,U)),x.closeNode(O)),x}static _collapse(x){typeof x!="string"&&x.children&&(x.children.every(O=>typeof O=="string")?x.children=[x.children.join("")]:x.children.forEach(O=>{h._collapse(O)}))}}class i extends h{constructor(x){super(),this.options=x}addText(x){x!==""&&this.add(x)}startScope(x){this.openNode(x)}endScope(){this.closeNode()}__addSublanguage(x,O){const U=x.root;O&&(U.scope=`language:${O}`),this.add(U)}toHTML(){return new p(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function c(d){return d?typeof d=="string"?d:d.source:null}function o(d){return g("(?=",d,")")}function l(d){return g("(?:",d,")*")}function f(d){return g("(?:",d,")?")}function g(...d){return d.map(x=>c(x)).join("")}function m(d){const x=d[d.length-1];return typeof x=="object"&&x.constructor===Object?(d.splice(d.length-1,1),x):{}}function _(...d){return"("+(m(d).capture?"":"?:")+d.map(x=>c(x)).join("|")+")"}function E(d){return new RegExp(d.toString()+"|").exec("").length-1}function v(d,x){const O=d&&d.exec(x);return O&&O.index===0}const w=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function y(d,{joinWith:x}){let O=0;return d.map(U=>{O+=1;const K=O;let X=c(U),M="";for(;X.length>0;){const R=w.exec(X);if(!R){M+=X;break}M+=X.substring(0,R.index),X=X.substring(R.index+R[0].length),R[0][0]==="\\"&&R[1]?M+="\\"+String(Number(R[1])+K):(M+=R[0],R[0]==="("&&O++)}return M}).map(U=>`(${U})`).join(x)}const k=/\b\B/,C="[a-zA-Z]\\w*",L="[a-zA-Z_]\\w*",D="\\b\\d+(\\.\\d+)?",P="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",J="\\b(0b[01]+)",H="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Ee=(d={})=>{const x=/^#![ ]*\//;return d.binary&&(d.begin=g(x,/.*\b/,d.binary,/\b.*/)),n({scope:"meta",begin:x,end:/$/,relevance:0,"on:begin":(O,U)=>{O.index!==0&&U.ignoreMatch()}},d)},le={begin:"\\\\[\\s\\S]",relevance:0},$={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[le]},Ne={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[le]},W={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Q=function(d,x,O={}){const U=n({scope:"comment",begin:d,end:x,contains:[]},O);U.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 K=_("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 U.contains.push({begin:g(/[ ]+/,"(",K,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),U},se=Q("//","$"),oe=Q("/\\*","\\*/"),ye=Q("#","$"),ke={scope:"number",begin:D,relevance:0},j={scope:"number",begin:P,relevance:0},Be={scope:"number",begin:J,relevance:0},Pe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[le,{begin:/\[/,end:/\]/,relevance:0,contains:[le]}]},St={scope:"title",begin:C,relevance:0},qe={scope:"title",begin:L,relevance:0},At={begin:"\\.\\s*"+L,relevance:0};var Te=Object.freeze({__proto__:null,APOS_STRING_MODE:$,BACKSLASH_ESCAPE:le,BINARY_NUMBER_MODE:Be,BINARY_NUMBER_RE:J,COMMENT:Q,C_BLOCK_COMMENT_MODE:oe,C_LINE_COMMENT_MODE:se,C_NUMBER_MODE:j,C_NUMBER_RE:P,END_SAME_AS_BEGIN:function(d){return Object.assign(d,{"on:begin":(x,O)=>{O.data._beginMatch=x[1]},"on:end":(x,O)=>{O.data._beginMatch!==x[1]&&O.ignoreMatch()}})},HASH_COMMENT_MODE:ye,IDENT_RE:C,MATCH_NOTHING_RE:k,METHOD_GUARD:At,NUMBER_MODE:ke,NUMBER_RE:D,PHRASAL_WORDS_MODE:W,QUOTE_STRING_MODE:Ne,REGEXP_MODE:Pe,RE_STARTERS_RE:H,SHEBANG:Ee,TITLE_MODE:St,UNDERSCORE_IDENT_RE:L,UNDERSCORE_TITLE_MODE:qe});function Ot(d,x){d.input[d.index-1]==="."&&x.ignoreMatch()}function we(d,x){d.className!==void 0&&(d.scope=d.className,delete d.className)}function He(d,x){x&&d.beginKeywords&&(d.begin="\\b("+d.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",d.__beforeBegin=Ot,d.keywords=d.keywords||d.beginKeywords,delete d.beginKeywords,d.relevance===void 0&&(d.relevance=0))}function tt(d,x){Array.isArray(d.illegal)&&(d.illegal=_(...d.illegal))}function Qr(d,x){if(d.match){if(d.begin||d.end)throw new Error("begin & end are not supported with match");d.begin=d.match,delete d.match}}function Yr(d,x){d.relevance===void 0&&(d.relevance=1)}const en=(d,x)=>{if(!d.beforeMatch)return;if(d.starts)throw new Error("beforeMatch cannot be used with starts");const O=Object.assign({},d);Object.keys(d).forEach(U=>{delete d[U]}),d.keywords=O.keywords,d.begin=g(O.beforeMatch,o(O.begin)),d.starts={relevance:0,contains:[Object.assign(O,{endsParent:!0})]},d.relevance=0,delete O.beforeMatch},tn=["of","and","for","in","not","or","if","then","parent","list","value"],rn="keyword";function Oi(d,x,O=rn){const U=Object.create(null);return typeof d=="string"?K(O,d.split(" ")):Array.isArray(d)?K(O,d):Object.keys(d).forEach(function(X){Object.assign(U,Oi(d[X],x,X))}),U;function K(X,M){x&&(M=M.map(R=>R.toLowerCase())),M.forEach(function(R){const I=R.split("|");U[I[0]]=[X,nn(I[0],I[1])]})}}function nn(d,x){return x?Number(x):sn(d)?0:1}function sn(d){return tn.includes(d.toLowerCase())}const Ci={},Se=d=>{console.error(d)},Ri=(d,...x)=>{console.log(`WARN: ${d}`,...x)},Le=(d,x)=>{Ci[`${d}/${x}`]||(console.log(`Deprecated as of ${d}. ${x}`),Ci[`${d}/${x}`]=!0)},it=new Error;function $i(d,x,{key:O}){let U=0;const K=d[O],X={},M={};for(let R=1;R<=x.length;R++)M[R+U]=K[R],X[R+U]=!0,U+=E(x[R-1]);d[O]=M,d[O]._emit=X,d[O]._multi=!0}function on(d){if(Array.isArray(d.begin)){if(d.skip||d.excludeBegin||d.returnBegin)throw Se("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),it;if(typeof d.beginScope!="object"||d.beginScope===null)throw Se("beginScope must be object"),it;$i(d,d.begin,{key:"beginScope"}),d.begin=y(d.begin,{joinWith:""})}}function an(d){if(Array.isArray(d.end)){if(d.skip||d.excludeEnd||d.returnEnd)throw Se("skip, excludeEnd, returnEnd not compatible with endScope: {}"),it;if(typeof d.endScope!="object"||d.endScope===null)throw Se("endScope must be object"),it;$i(d,d.end,{key:"endScope"}),d.end=y(d.end,{joinWith:""})}}function ln(d){d.scope&&typeof d.scope=="object"&&d.scope!==null&&(d.beginScope=d.scope,delete d.scope)}function cn(d){ln(d),typeof d.beginScope=="string"&&(d.beginScope={_wrap:d.beginScope}),typeof d.endScope=="string"&&(d.endScope={_wrap:d.endScope}),on(d),an(d)}function un(d){function x(M,R){return new RegExp(c(M),"m"+(d.case_insensitive?"i":"")+(d.unicodeRegex?"u":"")+(R?"g":""))}class O{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(R,I){I.position=this.position++,this.matchIndexes[this.matchAt]=I,this.regexes.push([I,R]),this.matchAt+=E(R)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const R=this.regexes.map(I=>I[1]);this.matcherRe=x(y(R,{joinWith:"|"}),!0),this.lastIndex=0}exec(R){this.matcherRe.lastIndex=this.lastIndex;const I=this.matcherRe.exec(R);if(!I)return null;const ie=I.findIndex((Fe,Rt)=>Rt>0&&Fe!==void 0),Y=this.matchIndexes[ie];return I.splice(0,ie),Object.assign(I,Y)}}class U{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(R){if(this.multiRegexes[R])return this.multiRegexes[R];const I=new O;return this.rules.slice(R).forEach(([ie,Y])=>I.addRule(ie,Y)),I.compile(),this.multiRegexes[R]=I,I}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(R,I){this.rules.push([R,I]),I.type==="begin"&&this.count++}exec(R){const I=this.getMatcher(this.regexIndex);I.lastIndex=this.lastIndex;let ie=I.exec(R);if(this.resumingScanAtSamePosition()&&!(ie&&ie.index===this.lastIndex)){const Y=this.getMatcher(0);Y.lastIndex=this.lastIndex+1,ie=Y.exec(R)}return ie&&(this.regexIndex+=ie.position+1,this.regexIndex===this.count&&this.considerAll()),ie}}function K(M){const R=new U;return M.contains.forEach(I=>R.addRule(I.begin,{rule:I,type:"begin"})),M.terminatorEnd&&R.addRule(M.terminatorEnd,{type:"end"}),M.illegal&&R.addRule(M.illegal,{type:"illegal"}),R}function X(M,R){const I=M;if(M.isCompiled)return I;[we,Qr,cn,en].forEach(Y=>Y(M,R)),d.compilerExtensions.forEach(Y=>Y(M,R)),M.__beforeBegin=null,[He,tt,Yr].forEach(Y=>Y(M,R)),M.isCompiled=!0;let ie=null;return typeof M.keywords=="object"&&M.keywords.$pattern&&(M.keywords=Object.assign({},M.keywords),ie=M.keywords.$pattern,delete M.keywords.$pattern),ie=ie||/\w+/,M.keywords&&(M.keywords=Oi(M.keywords,d.case_insensitive)),I.keywordPatternRe=x(ie,!0),R&&(M.begin||(M.begin=/\B|\b/),I.beginRe=x(I.begin),!M.end&&!M.endsWithParent&&(M.end=/\B|\b/),M.end&&(I.endRe=x(I.end)),I.terminatorEnd=c(I.end)||"",M.endsWithParent&&R.terminatorEnd&&(I.terminatorEnd+=(M.end?"|":"")+R.terminatorEnd)),M.illegal&&(I.illegalRe=x(M.illegal)),M.contains||(M.contains=[]),M.contains=[].concat(...M.contains.map(function(Y){return hn(Y==="self"?M:Y)})),M.contains.forEach(function(Y){X(Y,I)}),M.starts&&X(M.starts,R),I.matcher=K(I),I}if(d.compilerExtensions||(d.compilerExtensions=[]),d.contains&&d.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return d.classNameAliases=n(d.classNameAliases||{}),X(d)}function Mi(d){return d?d.endsWithParent||Mi(d.starts):!1}function hn(d){return d.variants&&!d.cachedVariants&&(d.cachedVariants=d.variants.map(function(x){return n(d,{variants:null},x)})),d.cachedVariants?d.cachedVariants:Mi(d)?n(d,{starts:d.starts?n(d.starts):null}):Object.isFrozen(d)?n(d):d}var dn="11.11.1";class fn extends Error{constructor(x,O){super(x),this.name="HTMLInjectionError",this.html=O}}const Ct=s,Ni=n,Pi=Symbol("nomatch"),pn=7,Ti=function(d){const x=Object.create(null),O=Object.create(null),U=[];let K=!0;const X="Could not find the language '{}', did you forget to load/include a language module?",M={disableAutodetect:!0,name:"Plain text",contains:[]};let R={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:i};function I(S){return R.noHighlightRe.test(S)}function ie(S){let T=S.className+" ";T+=S.parentNode?S.parentNode.className:"";const q=R.languageDetectRe.exec(T);if(q){const V=ve(q[1]);return V||(Ri(X.replace("{}",q[1])),Ri("Falling back to no-highlight mode for this block.",S)),V?q[1]:"no-highlight"}return T.split(/\s+/).find(V=>I(V)||ve(V))}function Y(S,T,q){let V="",ee="";typeof T=="object"?(V=S,q=T.ignoreIllegals,ee=T.language):(Le("10.7.0","highlight(lang, code, ...args) has been deprecated."),Le("10.7.0",`Please use highlight(code, options) instead.
117
+ https://github.com/highlightjs/highlight.js/issues/2277`),ee=S,V=T),q===void 0&&(q=!0);const de={code:V,language:ee};nt("before:highlight",de);const xe=de.result?de.result:Fe(de.language,de.code,q);return xe.code=de.code,nt("after:highlight",xe),xe}function Fe(S,T,q,V){const ee=Object.create(null);function de(A,N){return A.keywords[N]}function xe(){if(!z.keywords){re.addText(G);return}let A=0;z.keywordPatternRe.lastIndex=0;let N=z.keywordPatternRe.exec(G),B="";for(;N;){B+=G.substring(A,N.index);const F=pe.case_insensitive?N[0].toLowerCase():N[0],ne=de(z,F);if(ne){const[me,Mn]=ne;if(re.addText(B),B="",ee[F]=(ee[F]||0)+1,ee[F]<=pn&&(at+=Mn),me.startsWith("_"))B+=N[0];else{const Nn=pe.classNameAliases[me]||me;fe(N[0],Nn)}}else B+=N[0];A=z.keywordPatternRe.lastIndex,N=z.keywordPatternRe.exec(G)}B+=G.substring(A),re.addText(B)}function st(){if(G==="")return;let A=null;if(typeof z.subLanguage=="string"){if(!x[z.subLanguage]){re.addText(G);return}A=Fe(z.subLanguage,G,!0,qi[z.subLanguage]),qi[z.subLanguage]=A._top}else A=$t(G,z.subLanguage.length?z.subLanguage:null);z.relevance>0&&(at+=A.relevance),re.__addSublanguage(A._emitter,A.language)}function ae(){z.subLanguage!=null?st():xe(),G=""}function fe(A,N){A!==""&&(re.startScope(N),re.addText(A),re.endScope())}function zi(A,N){let B=1;const F=N.length-1;for(;B<=F;){if(!A._emit[B]){B++;continue}const ne=pe.classNameAliases[A[B]]||A[B],me=N[B];ne?fe(me,ne):(G=me,xe(),G=""),B++}}function Ui(A,N){return A.scope&&typeof A.scope=="string"&&re.openNode(pe.classNameAliases[A.scope]||A.scope),A.beginScope&&(A.beginScope._wrap?(fe(G,pe.classNameAliases[A.beginScope._wrap]||A.beginScope._wrap),G=""):A.beginScope._multi&&(zi(A.beginScope,N),G="")),z=Object.create(A,{parent:{value:z}}),z}function Di(A,N,B){let F=v(A.endRe,B);if(F){if(A["on:end"]){const ne=new e(A);A["on:end"](N,ne),ne.isMatchIgnored&&(F=!1)}if(F){for(;A.endsParent&&A.parent;)A=A.parent;return A}}if(A.endsWithParent)return Di(A.parent,N,B)}function An(A){return z.matcher.regexIndex===0?(G+=A[0],1):(Tt=!0,0)}function On(A){const N=A[0],B=A.rule,F=new e(B),ne=[B.__beforeBegin,B["on:begin"]];for(const me of ne)if(me&&(me(A,F),F.isMatchIgnored))return An(N);return B.skip?G+=N:(B.excludeBegin&&(G+=N),ae(),!B.returnBegin&&!B.excludeBegin&&(G=N)),Ui(B,A),B.returnBegin?0:N.length}function Cn(A){const N=A[0],B=T.substring(A.index),F=Di(z,A,B);if(!F)return Pi;const ne=z;z.endScope&&z.endScope._wrap?(ae(),fe(N,z.endScope._wrap)):z.endScope&&z.endScope._multi?(ae(),zi(z.endScope,A)):ne.skip?G+=N:(ne.returnEnd||ne.excludeEnd||(G+=N),ae(),ne.excludeEnd&&(G=N));do z.scope&&re.closeNode(),!z.skip&&!z.subLanguage&&(at+=z.relevance),z=z.parent;while(z!==F.parent);return F.starts&&Ui(F.starts,A),ne.returnEnd?0:N.length}function Rn(){const A=[];for(let N=z;N!==pe;N=N.parent)N.scope&&A.unshift(N.scope);A.forEach(N=>re.openNode(N))}let ot={};function Bi(A,N){const B=N&&N[0];if(G+=A,B==null)return ae(),0;if(ot.type==="begin"&&N.type==="end"&&ot.index===N.index&&B===""){if(G+=T.slice(N.index,N.index+1),!K){const F=new Error(`0 width match regex (${S})`);throw F.languageName=S,F.badRule=ot.rule,F}return 1}if(ot=N,N.type==="begin")return On(N);if(N.type==="illegal"&&!q){const F=new Error('Illegal lexeme "'+B+'" for mode "'+(z.scope||"<unnamed>")+'"');throw F.mode=z,F}else if(N.type==="end"){const F=Cn(N);if(F!==Pi)return F}if(N.type==="illegal"&&B==="")return G+=`
118
+ `,1;if(Pt>1e5&&Pt>N.index*3)throw new Error("potential infinite loop, way more iterations than matches");return G+=B,B.length}const pe=ve(S);if(!pe)throw Se(X.replace("{}",S)),new Error('Unknown language: "'+S+'"');const $n=un(pe);let Nt="",z=V||$n;const qi={},re=new R.__emitter(R);Rn();let G="",at=0,Ae=0,Pt=0,Tt=!1;try{if(pe.__emitTokens)pe.__emitTokens(T,re);else{for(z.matcher.considerAll();;){Pt++,Tt?Tt=!1:z.matcher.considerAll(),z.matcher.lastIndex=Ae;const A=z.matcher.exec(T);if(!A)break;const N=T.substring(Ae,A.index),B=Bi(N,A);Ae=A.index+B}Bi(T.substring(Ae))}return re.finalize(),Nt=re.toHTML(),{language:S,value:Nt,relevance:at,illegal:!1,_emitter:re,_top:z}}catch(A){if(A.message&&A.message.includes("Illegal"))return{language:S,value:Ct(T),illegal:!0,relevance:0,_illegalBy:{message:A.message,index:Ae,context:T.slice(Ae-100,Ae+100),mode:A.mode,resultSoFar:Nt},_emitter:re};if(K)return{language:S,value:Ct(T),illegal:!1,relevance:0,errorRaised:A,_emitter:re,_top:z};throw A}}function Rt(S){const T={value:Ct(S),illegal:!1,relevance:0,_top:M,_emitter:new R.__emitter(R)};return T._emitter.addText(S),T}function $t(S,T){T=T||R.languages||Object.keys(x);const q=Rt(S),V=T.filter(ve).filter(ji).map(ae=>Fe(ae,S,!1));V.unshift(q);const ee=V.sort((ae,fe)=>{if(ae.relevance!==fe.relevance)return fe.relevance-ae.relevance;if(ae.language&&fe.language){if(ve(ae.language).supersetOf===fe.language)return 1;if(ve(fe.language).supersetOf===ae.language)return-1}return 0}),[de,xe]=ee,st=de;return st.secondBest=xe,st}function gn(S,T,q){const V=T&&O[T]||q;S.classList.add("hljs"),S.classList.add(`language-${V}`)}function Mt(S){let T=null;const q=ie(S);if(I(q))return;if(nt("before:highlightElement",{el:S,language:q}),S.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",S);return}if(S.children.length>0&&(R.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(S)),R.throwUnescapedHTML))throw new fn("One of your code blocks includes unescaped HTML.",S.innerHTML);T=S;const V=T.textContent,ee=q?Y(V,{language:q,ignoreIllegals:!0}):$t(V);S.innerHTML=ee.value,S.dataset.highlighted="yes",gn(S,q,ee.language),S.result={language:ee.language,re:ee.relevance,relevance:ee.relevance},ee.secondBest&&(S.secondBest={language:ee.secondBest.language,relevance:ee.secondBest.relevance}),nt("after:highlightElement",{el:S,result:ee,text:V})}function mn(S){R=Ni(R,S)}const bn=()=>{rt(),Le("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function yn(){rt(),Le("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Li=!1;function rt(){function S(){rt()}if(document.readyState==="loading"){Li||window.addEventListener("DOMContentLoaded",S,!1),Li=!0;return}document.querySelectorAll(R.cssSelector).forEach(Mt)}function wn(S,T){let q=null;try{q=T(d)}catch(V){if(Se("Language definition for '{}' could not be registered.".replace("{}",S)),K)Se(V);else throw V;q=M}q.name||(q.name=S),x[S]=q,q.rawDefinition=T.bind(null,d),q.aliases&&Ii(q.aliases,{languageName:S})}function vn(S){delete x[S];for(const T of Object.keys(O))O[T]===S&&delete O[T]}function xn(){return Object.keys(x)}function ve(S){return S=(S||"").toLowerCase(),x[S]||x[O[S]]}function Ii(S,{languageName:T}){typeof S=="string"&&(S=[S]),S.forEach(q=>{O[q.toLowerCase()]=T})}function ji(S){const T=ve(S);return T&&!T.disableAutodetect}function _n(S){S["before:highlightBlock"]&&!S["before:highlightElement"]&&(S["before:highlightElement"]=T=>{S["before:highlightBlock"](Object.assign({block:T.el},T))}),S["after:highlightBlock"]&&!S["after:highlightElement"]&&(S["after:highlightElement"]=T=>{S["after:highlightBlock"](Object.assign({block:T.el},T))})}function En(S){_n(S),U.push(S)}function kn(S){const T=U.indexOf(S);T!==-1&&U.splice(T,1)}function nt(S,T){const q=S;U.forEach(function(V){V[q]&&V[q](T)})}function Sn(S){return Le("10.7.0","highlightBlock will be removed entirely in v12.0"),Le("10.7.0","Please use highlightElement now."),Mt(S)}Object.assign(d,{highlight:Y,highlightAuto:$t,highlightAll:rt,highlightElement:Mt,highlightBlock:Sn,configure:mn,initHighlighting:bn,initHighlightingOnLoad:yn,registerLanguage:wn,unregisterLanguage:vn,listLanguages:xn,getLanguage:ve,registerAliases:Ii,autoDetection:ji,inherit:Ni,addPlugin:En,removePlugin:kn}),d.debugMode=function(){K=!1},d.safeMode=function(){K=!0},d.versionString=dn,d.regex={concat:g,lookahead:o,either:_,optional:f,anyNumberOfTimes:l};for(const S in Te)typeof Te[S]=="object"&&r(Te[S]);return Object.assign(d,Te),d},Ie=Ti({});return Ie.newInstance=()=>Ti({}),hi=Ie,Ie.HighlightJS=Ie,Ie.default=Ie,hi}var Qs=Xs();const kt=Ks(Qs),mt="[A-Za-z$_][0-9A-Za-z$_]*",Fr=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Wr=["true","false","null","undefined","NaN","Infinity"],Vr=["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"],Gr=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Zr=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Jr=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Kr=[].concat(Zr,Vr,Gr);function Ys(r){const e=r.regex,s=(W,{after:Q})=>{const se="</"+W[0].slice(1);return W.input.indexOf(se,Q)!==-1},n=mt,t={begin:"<>",end:"</>"},u=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(W,Q)=>{const se=W[0].length+W.index,oe=W.input[se];if(oe==="<"||oe===","){Q.ignoreMatch();return}oe===">"&&(s(W,{after:se})||Q.ignoreMatch());let ye;const ke=W.input.substring(se);if(ye=ke.match(/^\s*=/)){Q.ignoreMatch();return}if((ye=ke.match(/^\s+extends\s+/))&&ye.index===0){Q.ignoreMatch();return}}},p={$pattern:mt,keyword:Fr,literal:Wr,built_in:Kr,"variable.language":Jr},b="[0-9](_?[0-9])*",h=`\\.(${b})`,i="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",c={className:"number",variants:[{begin:`(\\b(${i})((${h})|\\.)?|(${h}))[eE][+-]?(${b})\\b`},{begin:`\\b(${i})\\b((${h})\\b|\\.)?|(${h})\\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},o={className:"subst",begin:"\\$\\{",end:"\\}",keywords:p,contains:[]},l={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,o],subLanguage:"xml"}},f={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,o],subLanguage:"css"}},g={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,o],subLanguage:"graphql"}},m={className:"string",begin:"`",end:"`",contains:[r.BACKSLASH_ESCAPE,o]},_={className:"comment",variants:[r.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),r.C_BLOCK_COMMENT_MODE,r.C_LINE_COMMENT_MODE]},E=[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,l,f,g,m,{match:/\$\d+/},c];o.contains=E.concat({begin:/\{/,end:/\}/,keywords:p,contains:["self"].concat(E)});const v=[].concat(_,o.contains),w=v.concat([{begin:/(\s*)\(/,end:/\)/,keywords:p,contains:["self"].concat(v)}]),y={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:w},k={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,e.concat(n,"(",e.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},C={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:{_:[...Vr,...Gr]}},L={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},D={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[y],illegal:/%/},P={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function J(W){return e.concat("(?!",W.join("|"),")")}const H={match:e.concat(/\b/,J([...Zr,"super","import"].map(W=>`${W}\\s*\\(`)),n,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},Ee={begin:e.concat(/\./,e.lookahead(e.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},le={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},y]},$="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+r.UNDERSCORE_IDENT_RE+")\\s*=>",Ne={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead($)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[y]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:p,exports:{PARAMS_CONTAINS:w,CLASS_REFERENCE:C},illegal:/#(?![$_A-z])/,contains:[r.SHEBANG({label:"shebang",binary:"node",relevance:5}),L,r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,l,f,g,m,_,{match:/\$\d+/},c,C,{scope:"attr",match:n+e.lookahead(":"),relevance:0},Ne,{begin:"("+r.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[_,r.REGEXP_MODE,{className:"function",begin:$,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:r.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:w}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:t.begin,end:t.end},{match:u},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},D,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+r.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[y,r.inherit(r.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},Ee,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[y]},H,P,k,le,{match:/\$[(.]/}]}}function eo(r){const e=r.regex,s=Ys(r),n=mt,t=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],u={begin:[/namespace/,/\s+/,r.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},a={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:t},contains:[s.exports.CLASS_REFERENCE]},p={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},b=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],h={$pattern:mt,keyword:Fr.concat(b),literal:Wr,built_in:Kr.concat(t),"variable.language":Jr},i={className:"meta",begin:"@"+n},c=(g,m,_)=>{const E=g.contains.findIndex(v=>v.label===m);if(E===-1)throw new Error("can not find mode to replace");g.contains.splice(E,1,_)};Object.assign(s.keywords,h),s.exports.PARAMS_CONTAINS.push(i);const o=s.contains.find(g=>g.scope==="attr"),l=Object.assign({},o,{match:e.concat(n,e.lookahead(/\s*\?:/))});s.exports.PARAMS_CONTAINS.push([s.exports.CLASS_REFERENCE,o,l]),s.contains=s.contains.concat([i,u,a,l]),c(s,"shebang",r.SHEBANG()),c(s,"use_strict",p);const f=s.contains.find(g=>g.label==="func.def");return f.relevance=0,Object.assign(s,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),s}function to(r){const e=r.regex,s=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),n=/[\p{L}0-9._:-]+/u,t={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},u={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=r.inherit(u,{begin:/\(/,end:/\)/}),p=r.inherit(r.APOS_STRING_MODE,{className:"string"}),b=r.inherit(r.QUOTE_STRING_MODE,{className:"string"}),h={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:n,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[t]},{begin:/'/,end:/'/,contains:[t]},{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:[u,b,p,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[u,a,b,p]}]}]},r.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},t,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[b]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[h],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[h],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(s,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:s,relevance:0,starts:h}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(s,/>/))),contains:[{className:"name",begin:s,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const io=r=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:r.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:r.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),ro=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],no=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],so=[...ro,...no],oo=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),ao=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),lo=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),co=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function uo(r){const e=r.regex,s=io(r),n={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},t="and or not only",u=/@-?\w[\w]*(-\w+)*/,a="[a-zA-Z-][a-zA-Z0-9_-]*",p=[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[s.BLOCK_COMMENT,n,s.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+a,relevance:0},s.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+ao.join("|")+")"},{begin:":(:)?("+lo.join("|")+")"}]},s.CSS_VARIABLE,{className:"attribute",begin:"\\b("+co.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[s.BLOCK_COMMENT,s.HEXCOLOR,s.IMPORTANT,s.CSS_NUMBER_MODE,...p,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...p,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},s.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:u},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:t,attribute:oo.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...p,s.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+so.join("|")+")\\b"}]}}const Xr=document.createElement("style");Xr.innerText=[Zs,Js].join(`
119
+ `);document.head.appendChild(Xr);kt.registerLanguage("typescript",eo);kt.registerLanguage("html",to);kt.registerLanguage("css",uo);function ho(...r){const e=document.createElement("div"),s=document.createElement("div");s.classList.add("tab-control");const n=document.createElement("div");return r.forEach(t=>{e.appendChild(t),t.addEventListener("click",()=>{r.forEach(u=>u.removeAttribute("selected")),t.setAttribute("selected",""),n.innerHTML="",n.appendChild(t.content),n.className=t.className,n.classList.add("tab-content")})}),s.appendChild(e),s.appendChild(n),n.classList.add("tab-content"),r[0].setAttribute("selected",""),n.appendChild(r[0].content),s}function Ve(r,e){const s=document.createElement("div");return s.role="tab",s.tabIndex=0,s.innerText=r,s.content=e,e.tagName=="PRE"&&s.classList.add("code"),s}function Ze(r,e){const s=document.createElement(r);return typeof e=="string"?s.innerHTML=e:e.forEach(n=>{s.appendChild(n)}),s}async function fo(r,e,s){const n=e.mainContent,t=Ze("div",n);t.id=`example-preview-${s}`;const u=typeof e.css=="string"?void 0:e.css?.label,a=typeof e.css=="string"?e.css:e.css?.content,p=ho(Ve("Preview",t),Ve("HTML",ut("html",n)),...a?[Ve(u??"CSS",ut("css",a))]:[],...e.initializer&&e.initializer.content?[Ve(e.initializer.label??"TS",ut("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(h=>Ve(h.label,ut(h.language,h.content))));e.description&&r.appendChild(Ze("div",e.description));const b=Ze("div",[p]);b.classList.add("example"),r.appendChild(b),a&&po(`#${t.id}`,a),e.initializer?.initialize&&await e.initializer.initialize(t)}function ut(r,e){let s=e.split(/\r?\n/).map(n=>{const t=n.indexOf("///");if(t>-1){const u=n.substring(t+3).trimStart();return u?n.replace(/^(\s*)([^\s].*)$/,`$1${u}`):void 0}return n}).filter(n=>typeof n<"u").join(`
120
+ `).trim();return r&&r!="raw"&&(s=kt.highlight(s,{language:r}).value),Ze("pre",[Ze("code",s)])}function po(r,e){const s=document.createElement("style");s.innerHTML=Z().use(Gs({prefix:r})).process(e).css,document.head.appendChild(s)}async function go(r,e=document.body){const s=bo(e);let n=0;Object.keys(r).sort().forEach(async t=>{const u=document.createElement("div");u.className="example-container",s.appendChild(u);const a=r[t].default;fo(u,a,n++)})}function mo(r){const e=document.createElement("div");e.id="examples-container";const s=r.querySelector("#examples");return s?s.after(e):r.appendChild(e),e}function bo(r){return r.children?mo(r):r}const yo=`<h1 id="@cas-smartdesign/checkbox">@cas-smartdesign/checkbox</h1>
118
121
  <p>A checkbox element based on <a href="https://github.com/Polymer/lit-element">lit-element</a> with SmartDesign look &amp; feel.</p>
119
122
  <h2 id="attributes">Attributes</h2>
120
123
  <ul>
@@ -163,10 +166,4 @@ https://github.com/highlightjs/highlight.js/issues/2277`),O=h,_=g),w===void 0&&(
163
166
  <li><code>validationIconSrc</code></li>
164
167
  <li><code>validationLevel</code></li>
165
168
  </ul>
166
- `,Na=document.querySelector("#markdown-container");Na.innerHTML=Ma;Ca(Object.assign({"./examples/basic/index.ts":js,"./examples/indeterminate/index.ts":Ws,"./examples/tabindex/index.ts":Zs,"./examples/validation/index.ts":Ys}),document.querySelector(".markdown-body"));export{ct as h};
167
- function __vite__mapDeps(indexes) {
168
- if (!__vite__mapDeps.viteFileDeps) {
169
- __vite__mapDeps.viteFileDeps = []
170
- }
171
- return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
172
- }
169
+ `,wo=document.querySelector("#markdown-container");wo.innerHTML=yo;go(Object.assign({"./examples/basic/index.ts":In,"./examples/indeterminate/index.ts":Hn,"./examples/tabindex/index.ts":Gn,"./examples/validation/index.ts":Qn}),document.querySelector(".markdown-body"));export{gt as a};