@cas-smartdesign/lit-input 7.1.3

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.
@@ -0,0 +1,502 @@
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=`<!-- Load element with all dependencies directly -->
2
+ <script src="./input-with-externals.js"><\/script>
3
+
4
+ <div class="examples">
5
+ <div class="example-container">
6
+ <span>Default</span>
7
+ <sd-lit-input label="default"></sd-lit-input>
8
+ </div>
9
+ <div class="example-container">
10
+ <span>Aria label</span>
11
+ <sd-lit-input label="default" sd-aria-label="aria label"></sd-lit-input>
12
+ </div>
13
+ <div class="example-container">
14
+ <span>Always float</span>
15
+ <sd-lit-input label="this should always float" value="" alwaysFloatLabel></sd-lit-input>
16
+ </div>
17
+ <div class="example-container">
18
+ <span>Only placeholder</span>
19
+ <sd-lit-input class="smartdesign-global-smartsearch" placeholder="placeholder"></sd-lit-input>
20
+ </div>
21
+ <div class="example-container">
22
+ <span>Prefix & suffix</span>
23
+ <sd-lit-input label="prefix & suffix">
24
+ <span slot="prefix">$</span>
25
+ <span slot="suffix">%</span>
26
+ </sd-lit-input>
27
+ </div>
28
+ <div class="example-container">
29
+ <span>Custom type</span>
30
+ <sd-lit-input label="password" type="password" value="supersecret"></sd-lit-input>
31
+ </div>
32
+ </div>
33
+ `,js=`<h3 id="basic-usage">Basic usage</h3>
34
+ `,Ds=`sd-lit-input {
35
+ min-height: 66px;
36
+ margin: 0 16px;
37
+ width: 400px;
38
+ outline: none;
39
+ }
40
+
41
+ .example-container {
42
+ display: flex;
43
+ align-items: center;
44
+ margin-bottom: 8px;
45
+ }
46
+
47
+ .example-container > span {
48
+ width: 280px;
49
+ text-align: right;
50
+ }
51
+ `,zs={mainContent:Ts,description:js,css:Ds},Us=Object.freeze(Object.defineProperty({__proto__:null,default:zs},Symbol.toStringTag,{value:"Module"})),Bs=`<!-- Load element with all dependencies directly -->
52
+ <script src="./input-with-externals.js"><\/script>
53
+ <form action="" autocomplete="on">
54
+ <sd-lit-input label="E-Mail" type="email" name="email-field" id="email-field"></sd-lit-input>
55
+ <sd-lit-input
56
+ label="Password"
57
+ type="password"
58
+ name="password-field"
59
+ autocomplete="current-password"
60
+ id="password-field"></sd-lit-input>
61
+ <div>
62
+ <button type="reset">Reset</button>
63
+ <button type="submit">Submit</button>
64
+ </div>
65
+ </form>
66
+ `,Hs=`<h3 id="login-form">Login form</h3>
67
+ <p>This form can be used to test autofill/autocomplete mechanism</p>
68
+ `,Fs=`sd-lit-input {
69
+ min-height: 66px;
70
+ width: 400px;
71
+ outline: none;
72
+ }
73
+
74
+ fieldset {
75
+ padding: 0;
76
+ border: none;
77
+ }
78
+
79
+ form > * {
80
+ display: block;
81
+ }
82
+ `,Vs={mainContent:Bs,description:Hs,css:Fs},Ws=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"})),Gs="modulepreload",qs=function(n,e){return new URL(n,e).href},Ni={},vn=function(e,t,i){let s=Promise.resolve();if(t&&t.length>0){const o=document.getElementsByTagName("link");s=Promise.all(t.map(r=>{if(r=qs(r,i),r in Ni)return;Ni[r]=!0;const l=r.endsWith(".css"),a=l?'[rel="stylesheet"]':"";if(!!i)for(let p=o.length-1;p>=0;p--){const f=o[p];if(f.href===r&&(!l||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${a}`))return;const u=document.createElement("link");if(u.rel=l?"stylesheet":Gs,l||(u.as="script",u.crossOrigin=""),u.href=r,document.head.appendChild(u),l)return new Promise((p,f)=>{u.addEventListener("load",p),u.addEventListener("error",()=>f(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})},Zs=`<div id="advanced-examples">
83
+ <div class="example-container">
84
+ <span>Even the placeholder is blue</span>
85
+ <sd-lit-input class="blue" label="blue" placeholder="placeholder"></sd-lit-input>
86
+ </div>
87
+ <div class="example-container" token-selector-example>
88
+ <span>Token prefixes</span>
89
+ <sd-lit-input label="Token selector" extended-prefix alwaysfloatlabel>
90
+ <div slot="prefix" class="token-wrapper">
91
+ <div>token1</div>
92
+ <div>token2</div>
93
+ <div>token3</div>
94
+ <div>token4</div>
95
+ </div>
96
+ </sd-lit-input>
97
+ </div>
98
+ <div class="example-container">
99
+ <span>Multiple rows</span>
100
+ <sd-lit-input label="multiple rows" rows="5"></sd-lit-input>
101
+ </div>
102
+ <div class="example-container">
103
+ <span>Multiple rows with aria label</span>
104
+ <sd-lit-input label="multiple rows" rows="5" sd-aria-label="ariaLabel"></sd-lit-input>
105
+ </div>
106
+ <div class="example-container" mandatory>
107
+ <span>Multiple rows (mandatory)</span>
108
+ <sd-lit-input label="multiple rows" rows="5" style="padding-bottom: 20px"></sd-lit-input>
109
+ </div>
110
+ </div>
111
+ `,Ks=`<h3 id="advanced-use-cases">Advanced use cases</h3>
112
+ `,Js=`sd-lit-input {
113
+ min-height: 66px;
114
+ margin: 0 16px;
115
+ width: 400px;
116
+ outline: none;
117
+ }
118
+
119
+ .token-wrapper {
120
+ display: flex;
121
+ flex-wrap: wrap;
122
+ gap: 4px;
123
+ padding: 2px 0;
124
+ width: 100%;
125
+ }
126
+
127
+ .token-wrapper div {
128
+ border: 1px solid #5d5d5d5d;
129
+ padding: 0 4px;
130
+ }
131
+
132
+ .token-wrapper div:nth-of-type(2n) {
133
+ background-color: rgba(138, 189, 12, 0.2);
134
+ }
135
+
136
+ .token-wrapper div:nth-of-type(2n + 1) {
137
+ background-color: rgba(237, 156, 38, 0.2);
138
+ }
139
+
140
+ .example-container {
141
+ display: flex;
142
+ align-items: center;
143
+ margin-bottom: 8px;
144
+ }
145
+
146
+ .example-container > span {
147
+ width: 280px;
148
+ text-align: right;
149
+ }
150
+ `,Xs=`import { ValidationLevel } from "@cas-smartdesign/field-validation-message";
151
+ import SDInput from "@cas-smartdesign/lit-input";
152
+ import "@cas-smartdesign/lit-input";
153
+
154
+ function updateMandatory(input: SDInput, value: string) {
155
+ if (value) {
156
+ input.validationMessage = input.validationIconSrc = input.validationLevel = null;
157
+ } else {
158
+ input.validationMessage = "Should not be empty";
159
+ input.validationLevel = ValidationLevel.Error;
160
+ }
161
+ }
162
+
163
+ document.querySelectorAll(\`#advanced-examples .example-container[mandatory]\`).forEach((element) => {
164
+ const input = element.querySelector("sd-lit-input") as SDInput;
165
+ // Set up the initial validation visibility
166
+ updateMandatory(input, input.value);
167
+ input.addEventListener("value-change", (event: CustomEvent) => updateMandatory(input, event.detail.value));
168
+ });
169
+
170
+ const tokenSelectorExample = document.querySelector("#advanced-examples [token-selector-example]") as HTMLElement;
171
+ const tokenSelectorInput = tokenSelectorExample.querySelector("sd-lit-input") as SDInput;
172
+ tokenSelectorInput.addEventListener("value-change", (event) => {
173
+ const tokenEl = document.createElement("div");
174
+ tokenEl.innerText = event.detail.value;
175
+ tokenSelectorExample.querySelector(".token-wrapper").appendChild(tokenEl);
176
+ tokenSelectorInput.value = "";
177
+ });
178
+ `,Qs={mainContent:Zs,description:Ks,css:Js,initializer:{content:Xs,type:"typescript",initialize:()=>vn(()=>import("./misc-examples.js"),__vite__mapDeps([]),import.meta.url)}},Ys=Object.freeze(Object.defineProperty({__proto__:null,default:Qs},Symbol.toStringTag,{value:"Module"})),er=`<!-- Load element with all dependencies directly -->
179
+ <script src="./input-with-externals.js"><\/script>
180
+
181
+ <div class="examples">
182
+ <div class="example-container">
183
+ <span>Max length: 10 without label</span>
184
+ <sd-lit-input maxlength="10" value="0123456789"></sd-lit-input>
185
+ </div>
186
+ <div class="example-container">
187
+ <span>Readonly</span>
188
+ <sd-lit-input label="readonly" value="can't edit this" readonly></sd-lit-input>
189
+ </div>
190
+ <div class="example-container">
191
+ <span>Disabled</span>
192
+ <sd-lit-input label="Can't edit this" value="read only value" disabled></sd-lit-input>
193
+ </div>
194
+ <div class="example-container">
195
+ <span>Inactive</span>
196
+ <sd-lit-input
197
+ label="Can't edit or focus this, but looks like a normal"
198
+ value="read only value"
199
+ inactive></sd-lit-input>
200
+ </div>
201
+ </div>
202
+ `,tr=`<h3 id="declarative-restrictions">Declarative restrictions</h3>
203
+ `,ir=`sd-lit-input {
204
+ min-height: 66px;
205
+ margin: 0 16px;
206
+ width: 400px;
207
+ outline: none;
208
+ }
209
+
210
+ .example-container {
211
+ display: flex;
212
+ align-items: center;
213
+ margin-bottom: 8px;
214
+ }
215
+
216
+ .example-container > span {
217
+ width: 280px;
218
+ text-align: right;
219
+ }
220
+ `,nr={mainContent:er,description:tr,css:ir},sr=Object.freeze(Object.defineProperty({__proto__:null,default:nr},Symbol.toStringTag,{value:"Module"})),rr=`<div id="validation-examples" class="examples">
221
+ <div class="example-container" mandatory>
222
+ <span>Mandatory</span>
223
+ <sd-lit-input label="mandatory"></sd-lit-input>
224
+ </div>
225
+ <div class="example-container" mandatory>
226
+ <span>Mandatory with aria label</span>
227
+ <sd-lit-input label="mandatory" sd-aria-label="ariaLabel"></sd-lit-input>
228
+ </div>
229
+ <div class="example-container" immediate mandatory>
230
+ <span>Immediate mandatory</span>
231
+ <sd-lit-input label="immediate mandatory"></sd-lit-input>
232
+ </div>
233
+ <div class="example-container" recommended>
234
+ <span>Mandatory (recommended color)</span>
235
+ <sd-lit-input label="recommended"></sd-lit-input>
236
+ </div>
237
+ <div class="example-container" suggestion>
238
+ <span>Suggestion level</span>
239
+ <sd-lit-input label="suggest"></sd-lit-input>
240
+ </div>
241
+ <div class="example-container" recommended custom-icon>
242
+ <span>Recommended with custom icon</span>
243
+ <sd-lit-input label="recommended"></sd-lit-input>
244
+ </div>
245
+ <div
246
+ class="example-container"
247
+ recommended
248
+ validation-message="Should not be empty, but describe it with a very long validation message so that ellipsis should be used">
249
+ <span>Long validation message</span>
250
+ <!-- long-validation attribute is used only within the demo -->
251
+ <sd-lit-input label="recommended" style="padding-bottom: 20px"></sd-lit-input>
252
+ </div>
253
+ <div class="example-container" recommended custom-icon>
254
+ <span>Disabled with validation message</span>
255
+ <sd-lit-input label="Can't touch this" disabled></sd-lit-input>
256
+ </div>
257
+ </div>
258
+ `,or=`<h3 id="validation-examples">Validation examples</h3>
259
+ `,lr=`sd-lit-input {
260
+ min-height: 66px;
261
+ margin: 0 16px;
262
+ width: 400px;
263
+ outline: none;
264
+ }
265
+
266
+ .example-container {
267
+ display: flex;
268
+ align-items: center;
269
+ margin-bottom: 8px;
270
+ }
271
+
272
+ .example-container > span {
273
+ width: 280px;
274
+ text-align: right;
275
+ }
276
+ `,ar=`import { ValidationLevel } from "@cas-smartdesign/field-validation-message";
277
+ import SDInput from "@cas-smartdesign/lit-input";
278
+ import "@cas-smartdesign/lit-input";
279
+
280
+ const customIcon = "./monkey.svg";
281
+
282
+ function updateMandatory(
283
+ input: SDInput,
284
+ value: string,
285
+ validationLevel: ValidationLevel,
286
+ validationMessage: string,
287
+ validationIcon: string,
288
+ ) {
289
+ if (value) {
290
+ input.validationMessage = input.validationIconSrc = input.validationLevel = null;
291
+ } else {
292
+ input.validationMessage = validationMessage;
293
+ input.validationIconSrc = validationIcon;
294
+ input.validationLevel = validationLevel;
295
+ }
296
+ }
297
+
298
+ function setupValidation(attribute: string, validationLevel: ValidationLevel) {
299
+ document.querySelectorAll(\`#validation-examples .example-container[\${attribute}]\`).forEach((element) => {
300
+ const input = element.querySelector("sd-lit-input") as SDInput;
301
+ const validationMessage = element.getAttribute("validation-message") ?? "Should not be empty";
302
+ const validationIcon = element.hasAttribute("custom-icon") ? customIcon : undefined;
303
+ // Set up the initial validation visibility
304
+ updateMandatory(input, input.value, validationLevel, validationMessage, validationIcon);
305
+ input.addEventListener(
306
+ \`\${element.hasAttribute("immediate") ? "immediate-" : ""}value-change\`,
307
+ (event: CustomEvent) =>
308
+ updateMandatory(input, event.detail.value, validationLevel, validationMessage, validationIcon),
309
+ );
310
+ });
311
+ }
312
+
313
+ setupValidation("mandatory", ValidationLevel.Error);
314
+ setupValidation("recommended", ValidationLevel.Warn);
315
+ setupValidation("suggestion", ValidationLevel.Suggest);
316
+ `,cr={mainContent:rr,description:or,css:lr,initializer:{content:ar,type:"typescript",initialize:()=>vn(()=>import("./validation.js"),__vite__mapDeps([]),import.meta.url)}},ur=Object.freeze(Object.defineProperty({__proto__:null,default:cr},Symbol.toStringTag,{value:"Module"}));const ot=window,ci=ot.ShadowRoot&&(ot.ShadyCSS===void 0||ot.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ui=Symbol(),Pi=new WeakMap;let yn=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==ui)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(ci&&e===void 0){const i=t!==void 0&&t.length===1;i&&(e=Pi.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Pi.set(t,e))}return e}toString(){return this.cssText}};const di=n=>new yn(typeof n=="string"?n:n+"",void 0,ui),wn=(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 yn(t,n,ui)},dr=(n,e)=>{ci?n.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{const i=document.createElement("style"),s=ot.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=t.cssText,n.appendChild(i)})},Li=ci?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return di(t)})(n):n;var Nt;const ct=window,Ii=ct.trustedTypes,hr=Ii?Ii.emptyScript:"",Ti=ct.reactiveElementPolyfillSupport,Wt={toAttribute(n,e){switch(e){case Boolean:n=n?hr: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}},xn=(n,e)=>e!==n&&(e==e||n==n),Pt={attribute:!0,type:String,converter:Wt,reflect:!1,hasChanged:xn},Gt="finalized";let be=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=Pt){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)||Pt}static finalize(){if(this.hasOwnProperty(Gt))return!1;this[Gt]=!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(Li(s))}else e!==void 0&&t.push(Li(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 dr(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=Pt){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||xn)(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){}};be[Gt]=!0,be.elementProperties=new Map,be.elementStyles=[],be.shadowRootOptions={mode:"open"},Ti==null||Ti({ReactiveElement:be}),((Nt=ct.reactiveElementVersions)!==null&&Nt!==void 0?Nt:ct.reactiveElementVersions=[]).push("1.6.3");var Lt;const ut=window,ve=ut.trustedTypes,ji=ve?ve.createPolicy("lit-html",{createHTML:n=>n}):void 0,qt="$lit$",te=`lit$${(Math.random()+"").slice(9)}$`,_n="?"+te,pr=`<${_n}>`,de=document,Me=()=>de.createComment(""),Ne=n=>n===null||typeof n!="object"&&typeof n!="function",En=Array.isArray,fr=n=>En(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",It=`[
317
+ \f\r]`,Ae=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Di=/-->/g,zi=/>/g,le=RegExp(`>|${It}(?:([^\\s"'>=/]+)(${It}*=${It}*(?:[^
318
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ui=/'/g,Bi=/"/g,Sn=/^(?:script|style|textarea|title)$/i,mr=n=>(e,...t)=>({_$litType$:n,strings:e,values:t}),ee=mr(1),ye=Symbol.for("lit-noChange"),M=Symbol.for("lit-nothing"),Hi=new WeakMap,ae=de.createTreeWalker(de,129,null,!1);function $n(n,e){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return ji!==void 0?ji.createHTML(e):e}const gr=(n,e)=>{const t=n.length-1,i=[];let s,o=e===2?"<svg>":"",r=Ae;for(let l=0;l<t;l++){const a=n[l];let c,u,p=-1,f=0;for(;f<a.length&&(r.lastIndex=f,u=r.exec(a),u!==null);)f=r.lastIndex,r===Ae?u[1]==="!--"?r=Di:u[1]!==void 0?r=zi:u[2]!==void 0?(Sn.test(u[2])&&(s=RegExp("</"+u[2],"g")),r=le):u[3]!==void 0&&(r=le):r===le?u[0]===">"?(r=s??Ae,p=-1):u[1]===void 0?p=-2:(p=r.lastIndex-u[2].length,c=u[1],r=u[3]===void 0?le:u[3]==='"'?Bi:Ui):r===Bi||r===Ui?r=le:r===Di||r===zi?r=Ae:(r=le,s=void 0);const x=r===le&&n[l+1].startsWith("/>")?" ":"";o+=r===Ae?a+pr:p>=0?(i.push(c),a.slice(0,p)+qt+a.slice(p)+te+x):a+te+(p===-2?(i.push(void 0),l):x)}return[$n(n,o+(n[t]||"<?>")+(e===2?"</svg>":"")),i]};class Pe{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]=gr(e,t);if(this.el=Pe.createElement(c,i),ae.currentNode=this.el.content,t===2){const p=this.el.content,f=p.firstChild;f.remove(),p.append(...f.childNodes)}for(;(s=ae.nextNode())!==null&&a.length<l;){if(s.nodeType===1){if(s.hasAttributes()){const p=[];for(const f of s.getAttributeNames())if(f.endsWith(qt)||f.startsWith(te)){const x=u[r++];if(p.push(f),x!==void 0){const k=s.getAttribute(x.toLowerCase()+qt).split(te),L=/([.?@])?(.*)/.exec(x);a.push({type:1,index:o,name:L[2],strings:k,ctor:L[1]==="."?vr:L[1]==="?"?wr:L[1]==="@"?xr:bt})}else a.push({type:6,index:o})}for(const f of p)s.removeAttribute(f)}if(Sn.test(s.tagName)){const p=s.textContent.split(te),f=p.length-1;if(f>0){s.textContent=ve?ve.emptyScript:"";for(let x=0;x<f;x++)s.append(p[x],Me()),ae.nextNode(),a.push({type:2,index:++o});s.append(p[f],Me())}}}else if(s.nodeType===8)if(s.data===_n)a.push({type:2,index:o});else{let p=-1;for(;(p=s.data.indexOf(te,p+1))!==-1;)a.push({type:7,index:o}),p+=te.length-1}o++}}static createElement(e,t){const i=de.createElement("template");return i.innerHTML=e,i}}function we(n,e,t=n,i){var s,o,r,l;if(e===ye)return e;let a=i!==void 0?(s=t._$Co)===null||s===void 0?void 0:s[i]:t._$Cl;const c=Ne(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=we(n,a._$AS(n,e.values),a,i)),e}class br{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:de).importNode(i,!0);ae.currentNode=o;let r=ae.nextNode(),l=0,a=0,c=s[0];for(;c!==void 0;){if(l===c.index){let u;c.type===2?u=new He(r,r.nextSibling,this,e):c.type===1?u=new c.ctor(r,c.name,c.strings,this,e):c.type===6&&(u=new _r(r,this,e)),this._$AV.push(u),c=s[++a]}l!==(c==null?void 0:c.index)&&(r=ae.nextNode(),l++)}return ae.currentNode=de,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 He{constructor(e,t,i,s){var o;this.type=2,this._$AH=M,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=we(this,e,t),Ne(e)?e===M||e==null||e===""?(this._$AH!==M&&this._$AR(),this._$AH=M):e!==this._$AH&&e!==ye&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):fr(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!==M&&Ne(this._$AH)?this._$AA.nextSibling.data=e:this.$(de.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=Pe.createElement($n(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 br(o,this),l=r.u(this.options);r.v(i),this.$(l),this._$AH=r}}_$AC(e){let t=Hi.get(e.strings);return t===void 0&&Hi.set(e.strings,t=new Pe(e)),t}T(e){En(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 He(this.k(Me()),this.k(Me()),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 bt{constructor(e,t,i,s,o){this.type=1,this._$AH=M,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=M}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=we(this,e,t,0),r=!Ne(e)||e!==this._$AH&&e!==ye,r&&(this._$AH=e);else{const l=e;let a,c;for(e=o[0],a=0;a<o.length-1;a++)c=we(this,l[i+a],t,a),c===ye&&(c=this._$AH[a]),r||(r=!Ne(c)||c!==this._$AH[a]),c===M?e=M:e!==M&&(e+=(c??"")+o[a+1]),this._$AH[a]=c}r&&!s&&this.j(e)}j(e){e===M?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class vr extends bt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===M?void 0:e}}const yr=ve?ve.emptyScript:"";class wr extends bt{constructor(){super(...arguments),this.type=4}j(e){e&&e!==M?this.element.setAttribute(this.name,yr):this.element.removeAttribute(this.name)}}let xr=class extends bt{constructor(e,t,i,s,o){super(e,t,i,s,o),this.type=5}_$AI(e,t=this){var i;if((e=(i=we(this,e,t,0))!==null&&i!==void 0?i:M)===ye)return;const s=this._$AH,o=e===M&&s!==M||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,r=e!==M&&(s===M||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 _r{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){we(this,e)}}const Fi=ut.litHtmlPolyfillSupport;Fi==null||Fi(Pe,He),((Lt=ut.litHtmlVersions)!==null&&Lt!==void 0?Lt:ut.litHtmlVersions=[]).push("2.8.0");const Er=(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 He(e.insertBefore(Me(),l),l,void 0,t??{})}return r._$AI(n),r};var Tt,jt;class ce extends be{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=Er(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 ye}}ce.finalized=!0,ce._$litElement$=!0,(Tt=globalThis.litElementHydrateSupport)===null||Tt===void 0||Tt.call(globalThis,{LitElement:ce});const Vi=globalThis.litElementPolyfillSupport;Vi==null||Vi({LitElement:ce});((jt=globalThis.litElementVersions)!==null&&jt!==void 0?jt:globalThis.litElementVersions=[]).push("3.3.3");const Sr=(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)}},$r=(n,e,t)=>{e.constructor.createProperty(t,n)};function R(n){return(e,t)=>t!==void 0?$r(n,e,t):Sr(n,e)}const Y=n=>n??M,Ar=":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}",Cr="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",kr="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",Or="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 Rr=Object.defineProperty,Mr=Object.getOwnPropertyDescriptor,hi=(n,e,t,i)=>{for(var s=i>1?void 0:i?Mr(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&&Rr(e,t,s),s},me;const Le=(me=class extends ce{static parseLevel(n){if(n){const e=Object.keys(Ie).find(t=>t.toLowerCase()===n.toLowerCase());return e&&Ie[e]}}static get styles(){return[wn`
319
+ ${di(Ar)}
320
+ `]}render(){return ee`${this.iconToUse&&ee`<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(me.parseLevel(this.level)){case"warn":return Or;case"suggest":return kr;case"error":return Cr;default:return null}}},me.ID="sd-field-validation-message",me.levelConverter={fromAttribute(n){return me.parseLevel(n)},toAttribute(n){return n&&n.toLowerCase()}},me);hi([R({type:String,attribute:!0})],Le.prototype,"message",2);hi([R({type:String,attribute:!0})],Le.prototype,"icon",2);hi([R({converter:Le.levelConverter,reflect:!0})],Le.prototype,"level",2);let Dt=Le;var Ie=(n=>(n.Warn="warn",n.Suggest="suggest",n.Error="error",n))(Ie||{});customElements.get(Dt.ID)||customElements.define(Dt.ID,Dt);const Nr=":host{display:inline-flex;position:relative;cursor:text;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;font-size:16px;color:#111;contain:layout style;flex-direction:column}:host([hidden]),:host([type=hidden]){display:none!important}:host([effective-disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([effective-disabled]) .unfocused-line,:host([effective-disabled]) .focused-line{border-bottom-style:dashed}:host(:not([effective-disabled]):focus) .focused-line,:host(:not([effective-disabled])[focused]) .focused-line{transform:none;transition:transform .25s}:host(:not([effective-disabled]):focus) .label.float,:host(:not([effective-disabled])[focused]) .label.float{color:var(--sd-input-focused-color, #1467ba)}:host([inactive]) .input{pointer-events:none}:host([effective-disabled]:focus),:host([effective-disabled][focused]){box-shadow:0 0 0 1px #111}:host(:not([effective-disabled])[validationlevel]) .focused-line{transform:none;transition:transform .25s}:host([validationlevel=warn i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn i]) .label,:host([validationlevel=warn i]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest i]) .label,:host([validationlevel=suggest i]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error i]) .label,:host([validationlevel=error i]) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}:host([validationlevel=warn]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn]) .label,:host([validationlevel=warn]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest]) .label,:host([validationlevel=suggest]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error]) .label,:host([validationlevel=error]) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}.validation-message-wrapper{position:relative}.validation-message{position:absolute;left:0;right:0}.label.float{transform:translateY(-75%) scale(.75);width:133%}.label:not(.float){max-width:100%}.floated-label-placeholder{height:20px;width:100%}.label{position:absolute;top:0;left:0;line-height:24px;pointer-events:none;color:var(--sd-input-color, #767676);transition:transform .25s,width .25s;transform-origin:left top}.input-wrapper{position:relative;display:flex;flex-direction:row;align-items:center;background-color:var(--input-wrapper-background-color)}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-wrapper{flex-direction:column;align-items:baseline}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-container{width:100%}:host([extended-prefix]:not(:focus-within)) .input-container,:host([extended-prefix][effective-disabled]) .input-container{width:0px}.input-container{line-height:var(--sd-input-line-height, 24px);flex:1 1 auto}.input{width:100%;background:var(--sd-input-background, transparent);font-family:inherit;font-size:inherit;text-align:inherit;color:inherit;border:none;outline:none;resize:none;padding-left:0;padding-right:0}.input:-webkit-autofill{animation-name:onautofillstart}.input:not(:-webkit-autofill){animation-name:onautofillcancel}@keyframes onautofillstart{0%{outline:none}}@keyframes onautofillcancel{0%{outline:none}}.label,input.input,.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.input::-ms-clear{display:none}.input::placeholder{color:var(--sd-input-color, #767676)}.input:-ms-input-placeholder{color:var(--sd-input-color, #767676)}.input::-ms-input-placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;top:0;right:0;bottom:0;left:0}.unfocused-line{border-bottom:1px solid var(--sd-input-underline-color, #959595)}.focused-line{border-bottom:2px solid var(--sd-input-focused-color, #1467ba);transform-origin:center center;transform:scale3d(0,1,1)}.prefix,.suffix{display:flex;flex-wrap:nowrap}.prefix ::slotted(*),.suffix ::slotted(*){display:flex}";var Pr=Object.defineProperty,Lr=Object.getOwnPropertyDescriptor,P=(n,e,t,i)=>{for(var s=i>1?void 0:i?Lr(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&&Pr(e,t,s),s};const Ir="sd-lit-input",Wi="delegatesFocus"in window.ShadowRoot.prototype;let Tr=0;var B;const N=(B=class extends ce{constructor(){super(),this.rows=1,this.effectiveDisabled=!1,this.type="text",this.autocomplete="off";const e=Tr++;this._validationMessageId=B.ID+"_message_"+e,this._inputId=B.ID+"_input_"+e,this.attachInternals&&!this.activeShadyDOM&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabIndex")||(this.tabIndex=0)}firstUpdated(e){super.firstUpdated(e),this.initAutocompleted(this.inputElement),this.updateInitialValue(),this.hasAttribute("disabled")&&(this.disabled=!0),this.inputElement.oninput=t=>{this.autocompleted=t.inputType==="insertReplacementText"||!("data"in t),this.currentText=this.inputElement.value,this.fireValueChange(!0)},this.inputElement.onchange=()=>this.fireValueChange(),Wi||(this.inputElement.onfocus=()=>this.setAttribute("focused",""),this.inputElement.onblur=()=>this.removeAttribute("focused"),this.addEventListener("focus",t=>{t.target===this&&this.inputElement.focus()})),this.addEventListener("keydown",t=>{var i,s;t.key=="Enter"&&((s=(i=this._internals)==null?void 0:i.form)==null||s.requestSubmit())}),this._initialized=!0}initAutocompleted(e){const t=i=>{/^onautofillstart(-sd-lit-input-\d+|\s?)$/.test(i.animationName)?this.autocompleted=!0:/^onautofillcancel(-sd-lit-input-\d+|\s?)$/.test(i.animationName)&&(this.autocompleted=!1)};this.activeShadyDOM?(this._needsAutocompletedCheck=!0,this.activeShadyDOM.nativeMethods.addEventListener.call(e,"animationstart",t)):e.addEventListener("animationstart",t)}get activeShadyDOM(){const e=window.ShadyDOM;return e&&e.inUse?e:null}updateInitialValue(){typeof this.currentText<"u"?this.value=this.currentText:this.value=this.getAttribute("value"),this.value&&(this.currentText=this.inputElement.value),this._initialValue=this.value}get disabled(){return this.hasAttribute("disabled")}set disabled(e){e?this.setAttribute("disabled",""):this.removeAttribute("disabled"),this._internals||(this.effectiveDisabled=e)}get inputElement(){return this.shadowRoot&&!this._inputElement&&(this._inputElement=this.shadowRoot.querySelector(".input")),this._inputElement}get value(){return this.inputElement&&this.inputElement.value}set value(e){this.currentText=e||"",this.inputElement&&(this.inputElement.value=this.currentText),this.setFormValue(this.currentText)}get selectionStart(){return this.inputElement?this.inputElement.selectionStart:0}focus(){this.inputElement?this.inputElement.focus():super.focus()}select(){this.inputElement&&this.inputElement.select()}setSelectionRange(e,t){this.updateComplete.then(()=>{this.inputElement&&this.inputElement.setSelectionRange(e,t)})}static get styles(){return[wn`
321
+ ${di(Nr)}
322
+ `]}render(){let e;return this.rows===1?e=ee`
323
+ <input
324
+ id=${this._inputId}
325
+ class="input"
326
+ .type=${this.type}
327
+ placeholder=${Y(this.placeholder||void 0)}
328
+ name=${Y(this.name||void 0)}
329
+ aria-disabled=${this.effectiveDisabled}
330
+ autocomplete=${this.autocomplete}
331
+ ?disabled=${this.inactive}
332
+ ?readonly=${this.readonly||this.effectiveDisabled}
333
+ ?required=${this.required}
334
+ maxlength=${this.maxlength>0?this.maxlength:B.DEFAULT_MAX_LENGTH}
335
+ aria-describedby=${this._validationMessageId}
336
+ aria-invalid=${Y(!!this.validationMessage||void 0)}
337
+ aria-label=${Y(this.sdAriaLabel||void 0)}
338
+ />
339
+ `:e=ee`
340
+ <textarea
341
+ id=${this._inputId}
342
+ class="input"
343
+ placeholder=${Y(this.placeholder||void 0)}
344
+ name=${Y(this.name||void 0)}
345
+ aria-disabled=${this.effectiveDisabled}
346
+ autocomplete=${this.autocomplete}
347
+ ?disabled=${this.inactive}
348
+ ?readonly=${this.readonly||this.effectiveDisabled}
349
+ ?required=${this.required}
350
+ maxlength=${this.maxlength>0?this.maxlength:B.DEFAULT_MAX_LENGTH}
351
+ rows=${this.rows}
352
+ aria-describedby=${this._validationMessageId}
353
+ aria-invalid=${Y(!!this.validationMessage||void 0)}
354
+ aria-label=${Y(this.sdAriaLabel||void 0)}
355
+ ></textarea>
356
+ `,ee`
357
+ ${this.label?ee` <div class="floated-label-placeholder" aria-hidden="true">&nbsp;</div> `:M}
358
+ <div class="input-wrapper">
359
+ <span class="prefix"><slot name="prefix"></slot></span>
360
+ <div class="input-container" style="position:${this.shouldFloat()?"static":"relative"};">
361
+ ${this.label&&ee`
362
+ <label for="${this._inputId}" class="label ${this.shouldFloat()?"float":""}"
363
+ >${this.label}</label
364
+ >
365
+ `}
366
+ ${e}
367
+ </div>
368
+ <span class="suffix"><slot name="suffix"></slot></span>
369
+ </div>
370
+ <div class="underline" aria-hidden="true">
371
+ <div class="unfocused-line"></div>
372
+ <div class="focused-line"></div>
373
+ </div>
374
+ <div class="validation-message-wrapper" aria-hidden="true">
375
+ ${this.validationMessage&&ee`
376
+ <sd-field-validation-message
377
+ id=${this._validationMessageId}
378
+ class="validation-message"
379
+ .message=${this.validationMessage}
380
+ .icon=${this.validationIconSrc}
381
+ .level=${this.validationLevel}
382
+ >
383
+ </sd-field-validation-message>
384
+ `}
385
+ </div>
386
+ `}updated(e){super.updated(e),this._needsAutocompletedCheck&&!this.autocompleted&&setTimeout(()=>{try{this.autocompleted=this.autocompleted||!!this.shadowRoot.querySelector(":-webkit-autofill")}catch{}},0)}update(e){var t,i;if(super.update(e),e.has("validationMessage")&&(this.validationMessage?(this.validationLevel||(this.validationLevel=Ie.Error),(t=this._internals)==null||t.setValidity({customError:!0},this.validationMessage)):(this.validationLevel=null,(i=this._internals)==null||i.setValidity({}))),this._initialized&&e.has("rows"))throw Error("rows attribute cannot be changed after the input is attached to the DOM")}fireValueChange(e){this.dispatchEvent(new CustomEvent(`${e?"immediate-":""}value-change`,{detail:{value:this.value}})),this.setFormValue(this.value)}shouldFloat(){return this.alwaysFloatLabel||this.currentText||this.placeholder||this.autocompleted}setFormValue(e){var t;(t=this._internals)==null||t.setFormValue(e)}formResetCallback(){this.value=this._initialValue}formDisabledCallback(e){this.effectiveDisabled=e||this.hasAttribute("disabled")}formAssociatedCallback(e){this._needsAutocompletedCheck=!0}formStateRestoreCallback(e,t){typeof e=="string"&&(this.value=e)}},B.ID=Ir,B.DEFAULT_MAX_LENGTH=524288,B.formAssociated=!0,B.shadowRootOptions={...ce.shadowRootOptions,delegatesFocus:Wi},B);P([R({type:String,reflect:!0})],N.prototype,"label",2);P([R({type:String,attribute:!0})],N.prototype,"validationMessage",2);P([R({type:String,attribute:!0})],N.prototype,"validationIconSrc",2);P([R({type:Ie,attribute:!0,reflect:!0})],N.prototype,"validationLevel",2);P([R({type:String,hasChanged(n,e){return e!=null&&e!=n}})],N.prototype,"currentText",2);P([R({type:Boolean,attribute:!0})],N.prototype,"alwaysFloatLabel",2);P([R({type:Boolean,attribute:!0})],N.prototype,"autocompleted",2);P([R({type:Number,attribute:!0})],N.prototype,"rows",2);P([R({type:Boolean,reflect:!0,attribute:"effective-disabled"})],N.prototype,"effectiveDisabled",2);P([R({type:Boolean,reflect:!0,attribute:"extended-prefix"})],N.prototype,"extendedPrefix",2);P([R({type:String,reflect:!0})],N.prototype,"type",2);P([R({type:String,reflect:!0})],N.prototype,"placeholder",2);P([R({type:String,reflect:!0})],N.prototype,"sdAriaLabel",2);P([R({type:Number,reflect:!0})],N.prototype,"maxlength",2);P([R({type:Boolean,reflect:!0})],N.prototype,"readonly",2);P([R({type:Boolean,reflect:!0})],N.prototype,"required",2);P([R({type:String,reflect:!0})],N.prototype,"name",2);P([R({type:Boolean,reflect:!0})],N.prototype,"inactive",2);P([R({type:String,attribute:!0})],N.prototype,"autocomplete",2);let zt=N;customElements.get(zt.ID)||customElements.define(zt.ID,zt);function An(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function jr(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 pi={exports:{}},A=String,Cn=function(){return{isColorSupported:!1,reset:A,bold:A,dim:A,italic:A,underline:A,inverse:A,hidden:A,strikethrough:A,black:A,red:A,green:A,yellow:A,blue:A,magenta:A,cyan:A,white:A,gray:A,bgBlack:A,bgRed:A,bgGreen:A,bgYellow:A,bgBlue:A,bgMagenta:A,bgCyan:A,bgWhite:A}};pi.exports=Cn();pi.exports.createColors=Cn;var Dr=pi.exports;const zr={},Ur=Object.freeze(Object.defineProperty({__proto__:null,default:zr},Symbol.toStringTag,{value:"Module"})),H=jr(Ur);let Gi=Dr,qi=H,Zt=class kn 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,kn)}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=Gi.isColorSupported),qi&&e&&(t=qi(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:p}=Gi.createColors(!0);l=f=>c(p(f)),a=f=>u(f)}else l=a=c=>c;return i.slice(s,o).map((c,u)=>{let p=s+1+u,f=" "+(" "+p).slice(-r)+" | ";if(p===this.line){let x=a(f.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+a(f)+c+`
387
+ `+x+l("^")}return" "+a(f)+c}).join(`
388
+ `)}toString(){let e=this.showSourceCode();return e&&(e=`
389
+
390
+ `+e+`
391
+ `),this.name+": "+this.message+e}};var fi=Zt;Zt.default=Zt;var Fe={};Fe.isClean=Symbol("isClean");Fe.my=Symbol("my");const Zi={after:`
392
+ `,beforeClose:`
393
+ `,beforeComment:`
394
+ `,beforeDecl:`
395
+ `,beforeOpen:" ",beforeRule:`
396
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Br(n){return n[0].toUpperCase()+n.slice(1)}let Kt=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(`
397
+ `)){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 Zi[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"+Br(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=Zi[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(`
398
+ `)&&(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(`
399
+ `)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(t,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeDecl(e,t){let i;return e.walkDecls(s=>{if(typeof s.raws.before<"u")return i=s.raws.before,i.includes(`
400
+ `)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(t,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeOpen(e){let t;return e.walk(i=>{if(i.type!=="decl"&&(t=i.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(i=>{if(i.nodes&&(i.parent!==e||e.first!==i)&&typeof i.raws.before<"u")return t=i.raws.before,t.includes(`
401
+ `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(i=>{if(typeof i.raws.between<"u")return t=i.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length===0&&(t=i.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(i=>{let s=i.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof i.raws.before<"u"){let o=i.raws.before.split(`
402
+ `);return t=o[o.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(i=>{if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(t=i.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let i=e[t],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 On=Kt;Kt.default=Kt;let Hr=On;function Jt(n,e){new Hr(e).stringify(n)}var vt=Jt;Jt.default=Jt;let{isClean:Ke,my:Fr}=Fe,Vr=fi,Wr=On,Gr=vt;function Xt(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=>Xt(r,t)):(o==="object"&&s!==null&&(s=Xt(s)),t[i]=s)}return t}let Qt=class{constructor(e={}){this.raws={},this[Ke]=!1,this[Fr]=!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=Xt(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 Vr(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[Ke]){this[Ke]=!1;let e=this;for(;e=e.parent;)e[Ke]=!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]===`
403
+ `?(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 Wr().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=Gr){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 qr=yt,Yt=class extends qr{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=Yt;Yt.default=Yt;let Zr="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Kr=(n,e=21)=>(t=e)=>{let i="",s=t;for(;s--;)i+=n[Math.random()*n.length|0];return i},Jr=(n=21)=>{let e="",t=n;for(;t--;)e+=Zr[Math.random()*64|0];return e};var Xr={nanoid:Jr,customAlphabet:Kr};let{SourceMapConsumer:Ki,SourceMapGenerator:Ji}=H,{existsSync:Qr,readFileSync:Yr}=H,{dirname:Ut,join:eo}=H;function to(n){return Buffer?Buffer.from(n,"base64").toString():window.atob(n)}let ei=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 Ki(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 to(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),Qr(e))return this.mapFile=e,Yr(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 Ki)return Ji.fromSourceMap(t).toString();if(t instanceof Ji)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=eo(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 Rn=ei;ei.default=ei;let{SourceMapConsumer:io,SourceMapGenerator:no}=H,{fileURLToPath:Xi,pathToFileURL:Je}=H,{isAbsolute:ti,resolve:ii}=H,{nanoid:so}=Xr,Bt=H,Qi=fi,ro=Rn,Ht=Symbol("fromOffsetCache"),oo=!!(io&&no),Yi=!!(ii&&ti),dt=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&&(!Yi||/^\w+:\/\//.test(t.from)||ti(t.from)?this.file=t.from:this.file=ii(t.from)),Yi&&oo){let i=new ro(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 "+so(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 p=this.fromOffset(c.offset);t=p.line,i=p.col}else t=c.line,i=c.column;if(typeof u.offset=="number"){let p=this.fromOffset(u.offset);r=p.line,l=p.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 Qi(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 Qi(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&&(Je&&(o.input.url=Je(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let t,i;if(this[Ht])i=this[Ht];else{let o=this.css.split(`
404
+ `);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[Ht]=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:ii(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;ti(r.source)?a=Je(r.source):a=new URL(r.source,this.map.consumer().sourceRoot||Je(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(Xi)c.file=Xi(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 xt=dt;dt.default=dt;Bt&&Bt.registerInput&&Bt.registerInput(dt);let{SourceMapConsumer:Mn,SourceMapGenerator:lt}=H,{dirname:at,relative:Nn,resolve:Pn,sep:Ln}=H,{pathToFileURL:en}=H,lo=xt,ao=!!(Mn&&lt),co=!!(at&&Pn&&Nn&&Ln),uo=class{constructor(e,t,i,s){this.stringify=e,this.mapOpts=i.map||{},this.root=t,this.opts=i,this.css=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
405
+ `;this.css.includes(`\r
406
+ `)&&(t=`\r
407
+ `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),i=e.root||at(e.file),s;this.mapOpts.sourcesContent===!1?(s=new Mn(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(),co&&ao&&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=lt.fromSourceMap(e)}else this.map=new lt({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 lt({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(`
408
+ `),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?at(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=at(Pn(i,this.mapOpts.annotation)));let s=Nn(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 lo(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(en){let i=en(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;Ln==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};var In=uo;let ho=yt,ni=class extends ho{constructor(e){super(e),this.type="comment"}};var _t=ni;ni.default=ni;let{isClean:Tn,my:jn}=Fe,Dn=wt,zn=_t,po=yt,Un,mi,gi,Bn;function Hn(n){return n.map(e=>(e.nodes&&(e.nodes=Hn(e.nodes)),delete e.source,e))}function Fn(n){if(n[Tn]=!1,n.proxyOf.nodes)for(let e of n.proxyOf.nodes)Fn(e)}let X=class Vn extends po{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=Hn(Un(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 Dn(e)]}else if(e.selector)e=[new mi(e)];else if(e.name)e=[new gi(e)];else if(e.text)e=[new zn(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[jn]||Vn.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[Tn]&&Fn(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]}};X.registerParse=n=>{Un=n};X.registerRule=n=>{mi=n};X.registerAtRule=n=>{gi=n};X.registerRoot=n=>{Bn=n};var he=X;X.default=X;X.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,gi.prototype):n.type==="rule"?Object.setPrototypeOf(n,mi.prototype):n.type==="decl"?Object.setPrototypeOf(n,Dn.prototype):n.type==="comment"?Object.setPrototypeOf(n,zn.prototype):n.type==="root"&&Object.setPrototypeOf(n,Bn.prototype),n[jn]=!0,n.nodes&&n.nodes.forEach(e=>{X.rebuild(e)})};let fo=he,Wn,Gn,Te=class extends fo{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Wn(new Gn,this,e).stringify()}};Te.registerLazyResult=n=>{Wn=n};Te.registerProcessor=n=>{Gn=n};var bi=Te;Te.default=Te;let si=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 qn=si;si.default=si;let mo=qn,ri=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 mo(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var vi=ri;ri.default=ri;const Ft=39,tn=34,Xe=92,nn=47,Qe=10,Ce=32,Ye=12,et=9,tt=13,go=91,bo=93,vo=40,yo=41,wo=123,xo=125,_o=59,Eo=42,So=58,$o=64,it=/[\t\n\f\r "#'()/;[\\\]{}]/g,nt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ao=/.[\r\n"'(/\\]/,sn=/[\da-f]/i;var Co=function(e,t={}){let i=e.css.valueOf(),s=t.ignoreErrors,o,r,l,a,c,u,p,f,x,k,L=i.length,b=0,q=[],Z=[];function ne(){return b}function U(F){throw e.error("Unclosed "+F,b)}function K(){return Z.length===0&&b>=L}function $e(F){if(Z.length)return Z.pop();if(b>=L)return;let j=F?F.ignoreUnclosed:!1;switch(o=i.charCodeAt(b),o){case Qe:case Ce:case et:case tt:case Ye:{r=b;do r+=1,o=i.charCodeAt(r);while(o===Ce||o===Qe||o===et||o===tt||o===Ye);k=["space",i.slice(b,r)],b=r-1;break}case go:case bo:case wo:case xo:case So:case _o:case yo:{let se=String.fromCharCode(o);k=[se,se,b];break}case vo:{if(f=q.length?q.pop()[1]:"",x=i.charCodeAt(b+1),f==="url"&&x!==Ft&&x!==tn&&x!==Ce&&x!==Qe&&x!==et&&x!==Ye&&x!==tt){r=b;do{if(u=!1,r=i.indexOf(")",r+1),r===-1)if(s||j){r=b;break}else U("bracket");for(p=r;i.charCodeAt(p-1)===Xe;)p-=1,u=!u}while(u);k=["brackets",i.slice(b,r+1),b,r],b=r}else r=i.indexOf(")",b+1),a=i.slice(b,r+1),r===-1||Ao.test(a)?k=["(","(",b]:(k=["brackets",a,b,r],b=r);break}case Ft:case tn:{l=o===Ft?"'":'"',r=b;do{if(u=!1,r=i.indexOf(l,r+1),r===-1)if(s||j){r=b+1;break}else U("string");for(p=r;i.charCodeAt(p-1)===Xe;)p-=1,u=!u}while(u);k=["string",i.slice(b,r+1),b,r],b=r;break}case $o:{it.lastIndex=b+1,it.test(i),it.lastIndex===0?r=i.length-1:r=it.lastIndex-2,k=["at-word",i.slice(b,r+1),b,r],b=r;break}case Xe:{for(r=b,c=!0;i.charCodeAt(r+1)===Xe;)r+=1,c=!c;if(o=i.charCodeAt(r+1),c&&o!==nn&&o!==Ce&&o!==Qe&&o!==et&&o!==tt&&o!==Ye&&(r+=1,sn.test(i.charAt(r)))){for(;sn.test(i.charAt(r+1));)r+=1;i.charCodeAt(r+1)===Ce&&(r+=1)}k=["word",i.slice(b,r+1),b,r],b=r;break}default:{o===nn&&i.charCodeAt(b+1)===Eo?(r=i.indexOf("*/",b+2)+1,r===0&&(s||j?r=i.length:U("comment")),k=["comment",i.slice(b,r+1),b,r],b=r):(nt.lastIndex=b+1,nt.test(i),nt.lastIndex===0?r=i.length-1:r=nt.lastIndex-2,k=["word",i.slice(b,r+1),b,r],q.push(k),b=r);break}}return b++,k}function fe(F){Z.push(F)}return{back:fe,endOfFile:K,nextToken:$e,position:ne}};let Zn=he,ht=class extends Zn{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;Zn.registerAtRule(ht);let Kn=he,Jn,Xn,xe=class extends Kn{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 Jn(new Xn,this,e).stringify()}};xe.registerLazyResult=n=>{Jn=n};xe.registerProcessor=n=>{Xn=n};var Ve=xe;xe.default=xe;Kn.registerRoot(xe);let je={comma(n){return je.split(n,[","],!0)},space(n){let e=[" ",`
409
+ `," "];return je.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 Qn=je;je.default=je;let Yn=he,ko=Qn,pt=class extends Yn{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return ko.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=pt;pt.default=pt;Yn.registerRule(pt);let Oo=wt,Ro=Co,Mo=_t,No=yi,Po=Ve,rn=wi;const on={empty:!0,space:!0};function Lo(n){for(let e=n.length-1;e>=0;e--){let t=n[e],i=t[3]||t[2];if(i)return i}}let Io=class{constructor(e){this.input=e,this.root=new Po,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 No;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 Mo;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=Ro(this.input)}decl(e,t){let i=new Oo;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]||Lo(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),p="";for(let f=c;f>0;f--){let x=u[f][0];if(p.trim().indexOf("!")===0&&x!=="space")break;p=u.pop()[1]+p}p.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=p,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 rn;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,p;for(let f=0;f<l;f+=1)o=i[f],r=o[0],r==="space"&&f===l-1&&!s?c=!1:r==="comment"?(p=i[f-1]?i[f-1][0]:"empty",u=i[f+1]?i[f+1][0]:"empty",!on[p]&&!on[u]?a.slice(-1)===","?c=!1:a+=o[1]:c=!1):a+=o[1];if(!c){let f=i.reduce((x,k)=>x+k[1],"");e.raws[t]={raw:f,value:a}}e[t]=a}rule(e){e.pop();let t=new rn;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 To=Io;let jo=he,Do=To,zo=xt;function ft(n,e){let t=new zo(n,e),i=new Do(t);try{i.parse()}catch(s){throw s}return i.root}var xi=ft;ft.default=ft;jo.registerParse(ft);let{isClean:G,my:Uo}=Fe,Bo=In,Ho=vt,Fo=he,Vo=bi,ln=vi,Wo=xi,Go=Ve;const qo={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},Ko={Once:!0,postcssPlugin:!0,prepare:!0},_e=0;function ke(n){return typeof n=="object"&&typeof n.then=="function"}function es(n){let e=!1,t=qo[n.type];return n.type==="decl"?e=n.prop.toLowerCase():n.type==="atrule"&&(e=n.name.toLowerCase()),e&&n.append?[t,t+"-"+e,_e,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:n.append?[t,_e,t+"Exit"]:[t,t+"Exit"]}function an(n){let e;return n.type==="document"?e=["Document",_e,"DocumentExit"]:n.type==="root"?e=["Root",_e,"RootExit"]:e=es(n),{eventIndex:0,events:e,iterator:0,node:n,visitorIndex:0,visitors:[]}}function oi(n){return n[G]=!1,n.nodes&&n.nodes.forEach(e=>oi(e)),n}let li={},Ee=class ts{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=oi(t);else if(t instanceof ts||t instanceof ln)s=oi(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=Wo;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[Uo]&&Fo.rebuild(s)}this.result=new ln(e,s,i),this.helpers={...li,postcss:li,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(!Ko[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(ke(i))try{await i}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[G];){e[G]=!0;let t=[an(e)];for(;t.length>0;){let i=this.visitTick(t);if(ke(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 ke(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=Ho;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new Bo(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(ke(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[G];)e[G]=!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(ke(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[G]){l[G]=!0,e.push(an(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===_e){i.nodes&&i.nodes.length&&(i[G]=!0,t.iterator=i.getIterator());return}else if(this.listeners[r]){t.visitors=this.listeners[r];return}}e.pop()}walkSync(e){e[G]=!0;let t=es(e);for(let i of t)if(i===_e)e.nodes&&e.each(s=>{s[G]||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"}};Ee.registerPostcss=n=>{li=n};var is=Ee;Ee.default=Ee;Go.registerLazyResult(Ee);Vo.registerLazyResult(Ee);let Jo=In,Xo=vt,Qo=xi;const Yo=vi;let ai=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=Xo;this.result=new Yo(this._processor,s,this._opts),this.result.css=t;let r=this;Object.defineProperty(this.result,"root",{get(){return r.root}});let l=new Jo(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=Qo;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 el=ai;ai.default=ai;let tl=el,il=is,nl=bi,sl=Ve,De=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 tl(this,e,t):new il(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var rl=De;De.default=De;sl.registerProcessor(De);nl.registerProcessor(De);let ol=wt,ll=Rn,al=_t,cl=yi,ul=xt,dl=Ve,hl=wi;function ze(n,e){if(Array.isArray(n))return n.map(s=>ze(s));let{inputs:t,...i}=n;if(t){e=[];for(let s of t){let o={...s,__proto__:ul.prototype};o.map&&(o.map={...o.map,__proto__:ll.prototype}),e.push(o)}}if(i.nodes&&(i.nodes=n.nodes.map(s=>ze(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 dl(i);if(i.type==="decl")return new ol(i);if(i.type==="rule")return new hl(i);if(i.type==="comment")return new al(i);if(i.type==="atrule")return new cl(i);throw new Error("Unknown node type: "+n.type)}var pl=ze;ze.default=ze;var cn={};let fl=fi,ns=wt,ml=is,gl=he,_i=rl,bl=vt,vl=pl,ss=bi,yl=qn,rs=_t,os=yi,wl=vi,xl=xt,_l=xi,El=Qn,ls=wi,as=Ve,Sl=yt;function E(...n){return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new _i(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:
410
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),cn.LANG&&cn.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
411
+ https://www.w3ctech.com/topic/2226`));let l=t(...r);return l.postcssPlugin=e,l.postcssVersion=new _i().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=bl;E.parse=_l;E.fromJSON=vl;E.list=El;E.comment=n=>new rs(n);E.atRule=n=>new os(n);E.decl=n=>new ns(n);E.rule=n=>new ls(n);E.root=n=>new as(n);E.document=n=>new ss(n);E.CssSyntaxError=fl;E.Declaration=ns;E.Container=gl;E.Processor=_i;E.Document=ss;E.Comment=rs;E.Warning=yl;E.AtRule=os;E.Result=wl;E.Input=xl;E.Rule=ls;E.Root=as;E.Node=Sl;ml.registerPostcss(E);var $l=E;E.default=E;const C=An($l);C.stringify;C.fromJSON;C.plugin;C.parse;C.list;C.document;C.comment;C.atRule;C.rule;C.decl;C.root;C.CssSyntaxError;C.Declaration;C.Container;C.Processor;C.Document;C.Comment;C.Warning;C.AtRule;C.Result;C.Input;C.Rule;C.Root;C.Node;var Al=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&&un(r.source.input.file,s)||o.length&&r.source.input.file&&!un(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&&Cl(c,e.exclude)?c:e.transform?e.transform(t,c,i+c,r.source.input.file,l):i+c))})}};function un(n,e){return e.some(t=>t instanceof RegExp?t.test(n):n.includes(t))}function Cl(n,e){return e.some(t=>t instanceof RegExp?t.test(n):n===t)}const kl=An(Al),Ol="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}",Rl="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 Ml(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function cs(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)&&cs(t)}),n}class dn{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function us(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function ie(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 Nl="</span>",hn=n=>!!n.scope,Pl=(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 Ll{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=us(e)}openNode(e){if(!hn(e))return;const t=Pl(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){hn(e)&&(this.buffer+=Nl)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const pn=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class Ei{constructor(){this.rootNode=pn(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=pn({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t=="string"?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(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=>{Ei._collapse(t)}))}}class Il extends Ei{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 Ll(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Ue(n){return n?typeof n=="string"?n:n.source:null}function ds(n){return pe("(?=",n,")")}function Tl(n){return pe("(?:",n,")*")}function jl(n){return pe("(?:",n,")?")}function pe(...n){return n.map(e=>Ue(e)).join("")}function Dl(n){const e=n[n.length-1];return typeof e=="object"&&e.constructor===Object?(n.splice(n.length-1,1),e):{}}function Si(...n){return"("+(Dl(n).capture?"":"?:")+n.map(e=>Ue(e)).join("|")+")"}function hs(n){return new RegExp(n.toString()+"|").exec("").length-1}function zl(n,e){const t=n&&n.exec(e);return t&&t.index===0}const Ul=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function $i(n,{joinWith:e}){let t=0;return n.map(i=>{t+=1;const s=t;let o=Ue(i),r="";for(;o.length>0;){const l=Ul.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 Bl=/\b\B/,ps="[a-zA-Z]\\w*",Ai="[a-zA-Z_]\\w*",fs="\\b\\d+(\\.\\d+)?",ms="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",gs="\\b(0b[01]+)",Hl="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Fl=(n={})=>{const e=/^#![ ]*\//;return n.binary&&(n.begin=pe(e,/.*\b/,n.binary,/\b.*/)),ie({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,i)=>{t.index!==0&&i.ignoreMatch()}},n)},Be={begin:"\\\\[\\s\\S]",relevance:0},Vl={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Be]},Wl={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Be]},Gl={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/},Et=function(n,e,t={}){const i=ie({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=Si("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:pe(/[ ]+/,"(",s,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),i},ql=Et("//","$"),Zl=Et("/\\*","\\*/"),Kl=Et("#","$"),Jl={scope:"number",begin:fs,relevance:0},Xl={scope:"number",begin:ms,relevance:0},Ql={scope:"number",begin:gs,relevance:0},Yl={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Be,{begin:/\[/,end:/\]/,relevance:0,contains:[Be]}]},ea={scope:"title",begin:ps,relevance:0},ta={scope:"title",begin:Ai,relevance:0},ia={begin:"\\.\\s*"+Ai,relevance:0},na=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 st=Object.freeze({__proto__:null,APOS_STRING_MODE:Vl,BACKSLASH_ESCAPE:Be,BINARY_NUMBER_MODE:Ql,BINARY_NUMBER_RE:gs,COMMENT:Et,C_BLOCK_COMMENT_MODE:Zl,C_LINE_COMMENT_MODE:ql,C_NUMBER_MODE:Xl,C_NUMBER_RE:ms,END_SAME_AS_BEGIN:na,HASH_COMMENT_MODE:Kl,IDENT_RE:ps,MATCH_NOTHING_RE:Bl,METHOD_GUARD:ia,NUMBER_MODE:Jl,NUMBER_RE:fs,PHRASAL_WORDS_MODE:Gl,QUOTE_STRING_MODE:Wl,REGEXP_MODE:Yl,RE_STARTERS_RE:Hl,SHEBANG:Fl,TITLE_MODE:ea,UNDERSCORE_IDENT_RE:Ai,UNDERSCORE_TITLE_MODE:ta});function sa(n,e){n.input[n.index-1]==="."&&e.ignoreMatch()}function ra(n,e){n.className!==void 0&&(n.scope=n.className,delete n.className)}function oa(n,e){e&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=sa,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function la(n,e){Array.isArray(n.illegal)&&(n.illegal=Si(...n.illegal))}function aa(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 ca(n,e){n.relevance===void 0&&(n.relevance=1)}const ua=(n,e)=>{if(!n.beforeMatch)return;if(n.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},n);Object.keys(n).forEach(i=>{delete n[i]}),n.keywords=t.keywords,n.begin=pe(t.beforeMatch,ds(t.begin)),n.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},n.relevance=0,delete t.beforeMatch},da=["of","and","for","in","not","or","if","then","parent","list","value"],ha="keyword";function bs(n,e,t=ha){const i=Object.create(null);return typeof n=="string"?s(t,n.split(" ")):Array.isArray(n)?s(t,n):Object.keys(n).forEach(function(o){Object.assign(i,bs(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,pa(a[0],a[1])]})}}function pa(n,e){return e?Number(e):fa(n)?0:1}function fa(n){return da.includes(n.toLowerCase())}const fn={},ue=n=>{console.error(n)},mn=(n,...e)=>{console.log(`WARN: ${n}`,...e)},ge=(n,e)=>{fn[`${n}/${e}`]||(console.log(`Deprecated as of ${n}. ${e}`),fn[`${n}/${e}`]=!0)},mt=new Error;function vs(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+=hs(e[l-1]);n[t]=r,n[t]._emit=o,n[t]._multi=!0}function ma(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw ue("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),mt;if(typeof n.beginScope!="object"||n.beginScope===null)throw ue("beginScope must be object"),mt;vs(n,n.begin,{key:"beginScope"}),n.begin=$i(n.begin,{joinWith:""})}}function ga(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw ue("skip, excludeEnd, returnEnd not compatible with endScope: {}"),mt;if(typeof n.endScope!="object"||n.endScope===null)throw ue("endScope must be object"),mt;vs(n,n.end,{key:"endScope"}),n.end=$i(n.end,{joinWith:""})}}function ba(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function va(n){ba(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),ma(n),ga(n)}function ya(n){function e(r,l){return new RegExp(Ue(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+=hs(l)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const l=this.regexes.map(a=>a[1]);this.matcherRe=e($i(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((p,f)=>f>0&&p!==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;[ra,aa,va,ua].forEach(u=>u(r,l)),n.compilerExtensions.forEach(u=>u(r,l)),r.__beforeBegin=null,[oa,la,ca].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=bs(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=Ue(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 wa(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=ie(n.classNameAliases||{}),o(n)}function ys(n){return n?n.endsWithParent||ys(n.starts):!1}function wa(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(e){return ie(n,{variants:null},e)})),n.cachedVariants?n.cachedVariants:ys(n)?ie(n,{starts:n.starts?ie(n.starts):null}):Object.isFrozen(n)?ie(n):n}var xa="11.9.0";class _a extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Vt=us,gn=ie,bn=Symbol("nomatch"),Ea=7,ws=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:Il};function a(d){return l.noHighlightRe.test(d)}function c(d){let m=d.className+" ";m+=d.parentNode?d.parentNode.className:"";const y=l.languageDetectRe.exec(m);if(y){const _=j(y[1]);return _||(mn(o.replace("{}",y[1])),mn("Falling back to no-highlight mode for this block.",d)),_?y[1]:"no-highlight"}return m.split(/\s+/).find(_=>a(_)||j(_))}function u(d,m,y){let _="",O="";typeof m=="object"?(_=d,y=m.ignoreIllegals,O=m.language):(ge("10.7.0","highlight(lang, code, ...args) has been deprecated."),ge("10.7.0",`Please use highlight(code, options) instead.
412
+ https://github.com/highlightjs/highlight.js/issues/2277`),O=d,_=m),y===void 0&&(y=!0);const D={code:_,language:O};re("before:highlight",D);const Q=D.result?D.result:p(D.language,D.code,y);return Q.code=D.code,re("after:highlight",Q),Q}function p(d,m,y,_){const O=Object.create(null);function D(h,g){return h.keywords[g]}function Q(){if(!v.keywords){I.addText($);return}let h=0;v.keywordPatternRe.lastIndex=0;let g=v.keywordPatternRe.exec($),w="";for(;g;){w+=$.substring(h,g.index);const S=W.case_insensitive?g[0].toLowerCase():g[0],T=D(v,S);if(T){const[J,Ls]=T;if(I.addText(w),w="",O[S]=(O[S]||0)+1,O[S]<=Ea&&(Ze+=Ls),J.startsWith("_"))w+=g[0];else{const Is=W.classNameAliases[J]||J;V(g[0],Is)}}else w+=g[0];h=v.keywordPatternRe.lastIndex,g=v.keywordPatternRe.exec($)}w+=$.substring(h),I.addText(w)}function Ge(){if($==="")return;let h=null;if(typeof v.subLanguage=="string"){if(!e[v.subLanguage]){I.addText($);return}h=p(v.subLanguage,$,!0,Mi[v.subLanguage]),Mi[v.subLanguage]=h._top}else h=x($,v.subLanguage.length?v.subLanguage:null);v.relevance>0&&(Ze+=h.relevance),I.__addSublanguage(h._emitter,h.language)}function z(){v.subLanguage!=null?Ge():Q(),$=""}function V(h,g){h!==""&&(I.startScope(g),I.addText(h),I.endScope())}function Ci(h,g){let w=1;const S=g.length-1;for(;w<=S;){if(!h._emit[w]){w++;continue}const T=W.classNameAliases[h[w]]||h[w],J=g[w];T?V(J,T):($=J,Q(),$=""),w++}}function ki(h,g){return h.scope&&typeof h.scope=="string"&&I.openNode(W.classNameAliases[h.scope]||h.scope),h.beginScope&&(h.beginScope._wrap?(V($,W.classNameAliases[h.beginScope._wrap]||h.beginScope._wrap),$=""):h.beginScope._multi&&(Ci(h.beginScope,g),$="")),v=Object.create(h,{parent:{value:v}}),v}function Oi(h,g,w){let S=zl(h.endRe,w);if(S){if(h["on:end"]){const T=new dn(h);h["on:end"](g,T),T.isMatchIgnored&&(S=!1)}if(S){for(;h.endsParent&&h.parent;)h=h.parent;return h}}if(h.endsWithParent)return Oi(h.parent,g,w)}function Os(h){return v.matcher.regexIndex===0?($+=h[0],1):(Mt=!0,0)}function Rs(h){const g=h[0],w=h.rule,S=new dn(w),T=[w.__beforeBegin,w["on:begin"]];for(const J of T)if(J&&(J(h,S),S.isMatchIgnored))return Os(g);return w.skip?$+=g:(w.excludeBegin&&($+=g),z(),!w.returnBegin&&!w.excludeBegin&&($=g)),ki(w,h),w.returnBegin?0:g.length}function Ms(h){const g=h[0],w=m.substring(h.index),S=Oi(v,h,w);if(!S)return bn;const T=v;v.endScope&&v.endScope._wrap?(z(),V(g,v.endScope._wrap)):v.endScope&&v.endScope._multi?(z(),Ci(v.endScope,h)):T.skip?$+=g:(T.returnEnd||T.excludeEnd||($+=g),z(),T.excludeEnd&&($=g));do v.scope&&I.closeNode(),!v.skip&&!v.subLanguage&&(Ze+=v.relevance),v=v.parent;while(v!==S.parent);return S.starts&&ki(S.starts,h),T.returnEnd?0:g.length}function Ns(){const h=[];for(let g=v;g!==W;g=g.parent)g.scope&&h.unshift(g.scope);h.forEach(g=>I.openNode(g))}let qe={};function Ri(h,g){const w=g&&g[0];if($+=h,w==null)return z(),0;if(qe.type==="begin"&&g.type==="end"&&qe.index===g.index&&w===""){if($+=m.slice(g.index,g.index+1),!s){const S=new Error(`0 width match regex (${d})`);throw S.languageName=d,S.badRule=qe.rule,S}return 1}if(qe=g,g.type==="begin")return Rs(g);if(g.type==="illegal"&&!y){const S=new Error('Illegal lexeme "'+w+'" for mode "'+(v.scope||"<unnamed>")+'"');throw S.mode=v,S}else if(g.type==="end"){const S=Ms(g);if(S!==bn)return S}if(g.type==="illegal"&&w==="")return 1;if(Rt>1e5&&Rt>g.index*3)throw new Error("potential infinite loop, way more iterations than matches");return $+=w,w.length}const W=j(d);if(!W)throw ue(o.replace("{}",d)),new Error('Unknown language: "'+d+'"');const Ps=ya(W);let Ot="",v=_||Ps;const Mi={},I=new l.__emitter(l);Ns();let $="",Ze=0,oe=0,Rt=0,Mt=!1;try{if(W.__emitTokens)W.__emitTokens(m,I);else{for(v.matcher.considerAll();;){Rt++,Mt?Mt=!1:v.matcher.considerAll(),v.matcher.lastIndex=oe;const h=v.matcher.exec(m);if(!h)break;const g=m.substring(oe,h.index),w=Ri(g,h);oe=h.index+w}Ri(m.substring(oe))}return I.finalize(),Ot=I.toHTML(),{language:d,value:Ot,relevance:Ze,illegal:!1,_emitter:I,_top:v}}catch(h){if(h.message&&h.message.includes("Illegal"))return{language:d,value:Vt(m),illegal:!0,relevance:0,_illegalBy:{message:h.message,index:oe,context:m.slice(oe-100,oe+100),mode:h.mode,resultSoFar:Ot},_emitter:I};if(s)return{language:d,value:Vt(m),illegal:!1,relevance:0,errorRaised:h,_emitter:I,_top:v};throw h}}function f(d){const m={value:Vt(d),illegal:!1,relevance:0,_top:r,_emitter:new l.__emitter(l)};return m._emitter.addText(d),m}function x(d,m){m=m||l.languages||Object.keys(e);const y=f(d),_=m.filter(j).filter(We).map(z=>p(z,d,!1));_.unshift(y);const O=_.sort((z,V)=>{if(z.relevance!==V.relevance)return V.relevance-z.relevance;if(z.language&&V.language){if(j(z.language).supersetOf===V.language)return 1;if(j(V.language).supersetOf===z.language)return-1}return 0}),[D,Q]=O,Ge=D;return Ge.secondBest=Q,Ge}function k(d,m,y){const _=m&&t[m]||y;d.classList.add("hljs"),d.classList.add(`language-${_}`)}function L(d){let m=null;const y=c(d);if(a(y))return;if(re("before:highlightElement",{el:d,language:y}),d.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",d);return}if(d.children.length>0&&(l.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(d)),l.throwUnescapedHTML))throw new _a("One of your code blocks includes unescaped HTML.",d.innerHTML);m=d;const _=m.textContent,O=y?u(_,{language:y,ignoreIllegals:!0}):x(_);d.innerHTML=O.value,d.dataset.highlighted="yes",k(d,y,O.language),d.result={language:O.language,re:O.relevance,relevance:O.relevance},O.secondBest&&(d.secondBest={language:O.secondBest.language,relevance:O.secondBest.relevance}),re("after:highlightElement",{el:d,result:O,text:_})}function b(d){l=gn(l,d)}const q=()=>{U(),ge("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Z(){U(),ge("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let ne=!1;function U(){if(document.readyState==="loading"){ne=!0;return}document.querySelectorAll(l.cssSelector).forEach(L)}function K(){ne&&U()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",K,!1);function $e(d,m){let y=null;try{y=m(n)}catch(_){if(ue("Language definition for '{}' could not be registered.".replace("{}",d)),s)ue(_);else throw _;y=r}y.name||(y.name=d),e[d]=y,y.rawDefinition=m.bind(null,n),y.aliases&&se(y.aliases,{languageName:d})}function fe(d){delete e[d];for(const m of Object.keys(t))t[m]===d&&delete t[m]}function F(){return Object.keys(e)}function j(d){return d=(d||"").toLowerCase(),e[d]||e[t[d]]}function se(d,{languageName:m}){typeof d=="string"&&(d=[d]),d.forEach(y=>{t[y.toLowerCase()]=m})}function We(d){const m=j(d);return m&&!m.disableAutodetect}function $t(d){d["before:highlightBlock"]&&!d["before:highlightElement"]&&(d["before:highlightElement"]=m=>{d["before:highlightBlock"](Object.assign({block:m.el},m))}),d["after:highlightBlock"]&&!d["after:highlightElement"]&&(d["after:highlightElement"]=m=>{d["after:highlightBlock"](Object.assign({block:m.el},m))})}function At(d){$t(d),i.push(d)}function Ct(d){const m=i.indexOf(d);m!==-1&&i.splice(m,1)}function re(d,m){const y=d;i.forEach(function(_){_[y]&&_[y](m)})}function kt(d){return ge("10.7.0","highlightBlock will be removed entirely in v12.0"),ge("10.7.0","Please use highlightElement now."),L(d)}Object.assign(n,{highlight:u,highlightAuto:x,highlightAll:U,highlightElement:L,highlightBlock:kt,configure:b,initHighlighting:q,initHighlightingOnLoad:Z,registerLanguage:$e,unregisterLanguage:fe,listLanguages:F,getLanguage:j,registerAliases:se,autoDetection:We,inherit:gn,addPlugin:At,removePlugin:Ct}),n.debugMode=function(){s=!1},n.safeMode=function(){s=!0},n.versionString=xa,n.regex={concat:pe,lookahead:ds,either:Si,optional:jl,anyNumberOfTimes:Tl};for(const d in st)typeof st[d]=="object"&&cs(st[d]);return Object.assign(n,st),n},Se=ws({});Se.newInstance=()=>ws({});var Sa=Se;Se.HighlightJS=Se;Se.default=Se;const St=Ml(Sa),gt="[A-Za-z$_][0-9A-Za-z$_]*",xs=["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"],_s=["true","false","null","undefined","NaN","Infinity"],Es=["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"],Ss=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],$s=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],As=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Cs=[].concat($s,Es,Ss);function $a(n){const e=n.regex,t=(d,{after:m})=>{const y="</"+d[0].slice(1);return d.input.indexOf(y,m)!==-1},i=gt,s={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,r={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(d,m)=>{const y=d[0].length+d.index,_=d.input[y];if(_==="<"||_===","){m.ignoreMatch();return}_===">"&&(t(d,{after:y})||m.ignoreMatch());let O;const D=d.input.substring(y);if(O=D.match(/^\s*=/)){m.ignoreMatch();return}if((O=D.match(/^\s+extends\s+/))&&O.index===0){m.ignoreMatch();return}}},l={$pattern:gt,keyword:xs,literal:_s,built_in:Cs,"variable.language":As},a="[0-9](_?[0-9])*",c=`\\.(${a})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={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},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:l,contains:[]},x={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},k={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,f],subLanguage:"css"}},L={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,f]},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]},Z=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,x,k,L,b,{match:/\$\d+/},p];f.contains=Z.concat({begin:/\{/,end:/\}/,keywords:l,contains:["self"].concat(Z)});const ne=[].concat(q,f.contains),U=ne.concat([{begin:/\(/,end:/\)/,keywords:l,contains:["self"].concat(ne)}]),K={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:U},$e={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"}}]},fe={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:{_:[...Es,...Ss]}},F={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},j={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[K],illegal:/%/},se={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function We(d){return e.concat("(?!",d.join("|"),")")}const $t={match:e.concat(/\b/,We([...$s,"super","import"]),i,e.lookahead(/\(/)),className:"title.function",relevance:0},At={begin:e.concat(/\./,e.lookahead(e.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Ct={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},K]},re="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+n.UNDERSCORE_IDENT_RE+")\\s*=>",kt={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(re)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[K]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:l,exports:{PARAMS_CONTAINS:U,CLASS_REFERENCE:fe},illegal:/#(?![$_A-z])/,contains:[n.SHEBANG({label:"shebang",binary:"node",relevance:5}),F,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,x,k,L,b,q,{match:/\$\d+/},p,fe,{className:"attr",begin:i+e.lookahead(":"),relevance:0},kt,{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:re,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:U}]}]},{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"]}]}]},j,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+n.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[K,n.inherit(n.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},At,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[K]},$t,se,$e,Ct,{match:/\$[(.]/}]}}function Aa(n){const e=$a(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:xs.concat(l),literal:_s,built_in:Cs.concat(i),"variable.language":As},c={className:"meta",begin:"@"+t},u=(f,x,k)=>{const L=f.contains.findIndex(b=>b.label===x);if(L===-1)throw new Error("can not find mode to replace");f.contains.splice(L,1,k)};Object.assign(e.keywords,a),e.exports.PARAMS_CONTAINS.push(c),e.contains=e.contains.concat([c,s,o]),u(e,"shebang",n.SHEBANG()),u(e,"use_strict",r);const p=e.contains.find(f=>f.label==="func.def");return p.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function Ca(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 ka=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_-]*/}}),Oa=["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"],Ra=["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"],Ma=["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"],Na=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],Pa=["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 La(n){const e=n.regex,t=ka(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:":("+Ma.join("|")+")"},{begin:":(:)?("+Na.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Pa.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:Ra.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...l,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Oa.join("|")+")\\b"}]}}const ks=document.createElement("style");ks.innerText=[Ol,Rl].join(`
413
+ `);document.head.appendChild(ks);St.registerLanguage("typescript",Aa);St.registerLanguage("html",Ca);St.registerLanguage("css",La);function Ia(...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 Oe(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 Re(n,e){const t=document.createElement(n);return typeof e=="string"?t.innerHTML=e:e.forEach(i=>{t.appendChild(i)}),t}async function Ta(n,e,t){var i,s,o;const r=e.mainContent,l=Re("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=Ia(Oe("Preview",l),Oe("HTML",rt("html",r)),...c?[Oe(a??"CSS",rt("css",c))]:[],...e.initializer&&e.initializer.content?[Oe(e.initializer.label??"TS",rt("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(f=>Oe(f.label,rt(f.language,f.content))));e.description&&n.appendChild(Re("div",e.description));const p=Re("div",[u]);p.classList.add("example"),n.appendChild(p),c&&ja(`#${l.id}`,c),(o=e.initializer)!=null&&o.initialize&&await e.initializer.initialize(l)}function rt(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(`
414
+ `).trim();return n&&n!="raw"&&(t=St.highlight(t,{language:n}).value),Re("pre",[Re("code",t)])}function ja(n,e){const t=document.createElement("style");t.innerHTML=C().use(kl({prefix:n})).process(e).css,document.head.appendChild(t)}async function Da(n,e=document.body){const t=Ua(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;Ta(o,r,i++)})}function za(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 Ua(n){return n.children?za(n):n}const Ba=`<h1 id="@cas-smartdesign/lit-input">@cas-smartdesign/lit-input</h1>
415
+ <p>An input element based on LitElement &amp; material components.</p>
416
+ <h2 id="requirements">Requirements</h2>
417
+ <p>The main entry point requires ES6 &amp; support for Custom Elements v1</p>
418
+ <h2 id="properties-and-attributes">Properties and attributes</h2>
419
+ <ul>
420
+ <li><code>label</code>: string;<ul>
421
+ <li>The label of the input</li>
422
+ </ul>
423
+ </li>
424
+ <li><code>sdAriaLabel</code>: string;<ul>
425
+ <li>The aria-label of the input that is used by the screen readers</li>
426
+ </ul>
427
+ </li>
428
+ <li><code>currentText</code>: string;<ul>
429
+ <li>The current text of the input element</li>
430
+ </ul>
431
+ </li>
432
+ <li><code>alwaysFloatLabel</code>: boolean;<ul>
433
+ <li>A flag which indicates whether the label should always be &quot;floated&quot; above the input</li>
434
+ </ul>
435
+ </li>
436
+ <li><code>autocompleted</code>: boolean;<ul>
437
+ <li>A flag which indicates whether the browser&#39;s autocompletion was executed</li>
438
+ </ul>
439
+ </li>
440
+ <li><code>rows</code>: number;<ul>
441
+ <li>If greater than 1, a textarea element is used instead of an input element</li>
442
+ </ul>
443
+ </li>
444
+ <li><code>type</code>: string (default=&quot;text&quot;)<ul>
445
+ <li>The type of the input element</li>
446
+ </ul>
447
+ </li>
448
+ <li><code>placeholder</code>: string;<ul>
449
+ <li>The placeholder text to be used</li>
450
+ </ul>
451
+ </li>
452
+ <li><code>maxlength</code>: number;<ul>
453
+ <li>The maximum length of the text which is allowed to be entered</li>
454
+ </ul>
455
+ </li>
456
+ <li><code>disabled</code>: boolean;<ul>
457
+ <li>Defines whether the input is disabled. Note that it uses aria-disabled and readonly attributes, thus allowing pointer/mouse events.</li>
458
+ </ul>
459
+ </li>
460
+ <li><code>readonly</code>: boolean;<ul>
461
+ <li>Defines whether the input should be read only.</li>
462
+ </ul>
463
+ </li>
464
+ <li><code>required</code>: boolean;<ul>
465
+ <li>Defines whether the input should be required.</li>
466
+ </ul>
467
+ </li>
468
+ <li><code>name</code>: string;<ul>
469
+ <li>Defines the name attribute on the element.</li>
470
+ </ul>
471
+ </li>
472
+ <li><code>inactive</code>: boolean;<ul>
473
+ <li>Renders the input element disabled, without the top level <code>sd-lit-input</code> being set to disabled</li>
474
+ </ul>
475
+ </li>
476
+ <li><code>extendedPrefix</code>: boolean;<ul>
477
+ <li>If set, the positioning of the prefixed (&amp; also the suffix) content is changed in a way that the internal input field occupies space only in a focused state. With this the prefixed content can have an extended layouting, for example if tokens need to be shown in that position.</li>
478
+ </ul>
479
+ </li>
480
+ </ul>
481
+ <h2 id="custom-events">Custom events</h2>
482
+ <ul>
483
+ <li><code>value-change</code><ul>
484
+ <li>This event is dispatched when the value is changed because of a user interaction</li>
485
+ </ul>
486
+ </li>
487
+ </ul>
488
+ <h2 id="validation">Validation</h2>
489
+ <p>The element could show validation messages via an <code>sd-field-validation-message</code> element which can be configured with the following attributes &amp; properties which are all delegated to that:</p>
490
+ <ul>
491
+ <li><code>validationMessage</code></li>
492
+ <li><code>validationIconSrc</code></li>
493
+ <li><code>validationLevel</code></li>
494
+ </ul>
495
+ <h2 id="examples">Examples</h2>
496
+ `;document.querySelector("#markdown-container").innerHTML=Ba;Da(Object.assign({"./examples/declarative/index.ts":Us,"./examples/login-form/index.ts":Ws,"./examples/misc-examples/index.ts":Ys,"./examples/restrictions/index.ts":sr,"./examples/validation/index.ts":ur}));export{Ie as h};
497
+ function __vite__mapDeps(indexes) {
498
+ if (!__vite__mapDeps.viteFileDeps) {
499
+ __vite__mapDeps.viteFileDeps = []
500
+ }
501
+ return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
502
+ }