@cas-smartdesign/combo-box 7.3.0 → 7.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/docs/doc.mjs CHANGED
@@ -1,4 +1,4 @@
1
- (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))s(a);new MutationObserver(a=>{for(const r of a)if(r.type==="childList")for(const n of r.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&s(n)}).observe(document,{childList:!0,subtree:!0});function t(a){const r={};return a.integrity&&(r.integrity=a.integrity),a.referrerPolicy&&(r.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?r.credentials="include":a.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(a){if(a.ep)return;a.ep=!0;const r=t(a);fetch(a.href,r)}})();const Qn=`<div class="grid-example-container" id="declerative-basic-examples-container">
1
+ (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const r of a)if(r.type==="childList")for(const n of r.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&i(n)}).observe(document,{childList:!0,subtree:!0});function t(a){const r={};return a.integrity&&(r.integrity=a.integrity),a.referrerPolicy&&(r.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?r.credentials="include":a.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(a){if(a.ep)return;a.ep=!0;const r=t(a);fetch(a.href,r)}})();const Qn=`<div class="grid-example-container" id="declerative-basic-examples-container">
2
2
  <div class="combobox-example" declarative>
3
3
  <sd-combo-box label="Declarative">
4
4
  <sd-list-item caption="Linoel" description="Bukac"></sd-list-item>
@@ -26,16 +26,20 @@
26
26
  `,ut=`sd-combo-box {
27
27
  width: 100%;
28
28
  padding-top: 8px;
29
- padding-bottom: 16px;
29
+ --sd-input-validation-message-minheight: 20px;
30
30
  box-sizing: border-box;
31
31
  }
32
+ sd-combo-box.legacy-validation-layout {
33
+ --sd-input-validation-message-minheight: unset;
34
+ padding-bottom: 16px;
35
+ }
32
36
 
33
37
  .grid-example-container {
34
38
  display: grid;
35
39
  grid-template-columns: repeat(2, 1fr);
36
40
  column-gap: 16px;
37
41
  }
38
- `,tr={mainContent:Qn,description:er,css:ut},ir=Object.freeze(Object.defineProperty({__proto__:null,default:tr},Symbol.toStringTag,{value:"Module"})),sr="modulepreload",ar=function(i,e){return new URL(i,e).href},Ps={},Bt=function(e,t,s){let a=Promise.resolve();if(t&&t.length>0){const r=document.getElementsByTagName("link");a=Promise.all(t.map(n=>{if(n=ar(n,s),n in Ps)return;Ps[n]=!0;const o=n.endsWith(".css"),l=o?'[rel="stylesheet"]':"";if(!!s)for(let u=r.length-1;u>=0;u--){const h=r[u];if(h.href===n&&(!o||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${l}`))return;const m=document.createElement("link");if(m.rel=o?"stylesheet":sr,o||(m.as="script",m.crossOrigin=""),m.href=n,document.head.appendChild(m),o)return new Promise((u,h)=>{m.addEventListener("load",u),m.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${n}`)))})}))}return a.then(()=>e()).catch(r=>{const n=new Event("vite:preloadError",{cancelable:!0});if(n.payload=r,window.dispatchEvent(n),!n.defaultPrevented)throw r})},nr=`<div class="grid-example-container" id="basic-examples-container">
42
+ `,tr={mainContent:Qn,description:er,css:ut},ir=Object.freeze(Object.defineProperty({__proto__:null,default:tr},Symbol.toStringTag,{value:"Module"})),sr="modulepreload",ar=function(s,e){return new URL(s,e).href},Ps={},Bt=function(e,t,i){let a=Promise.resolve();if(t&&t.length>0){const r=document.getElementsByTagName("link");a=Promise.all(t.map(n=>{if(n=ar(n,i),n in Ps)return;Ps[n]=!0;const o=n.endsWith(".css"),l=o?'[rel="stylesheet"]':"";if(!!i)for(let u=r.length-1;u>=0;u--){const h=r[u];if(h.href===n&&(!o||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${l}`))return;const m=document.createElement("link");if(m.rel=o?"stylesheet":sr,o||(m.as="script",m.crossOrigin=""),m.href=n,document.head.appendChild(m),o)return new Promise((u,h)=>{m.addEventListener("load",u),m.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${n}`)))})}))}return a.then(()=>e()).catch(r=>{const n=new Event("vite:preloadError",{cancelable:!0});if(n.payload=r,window.dispatchEvent(n),!n.defaultPrevented)throw r})},nr=`<div class="grid-example-container" id="basic-examples-container">
39
43
  <sd-combo-box id="basic-combobox" label="I am a combo box" item-height="40" placeholder="-- select an option --">
40
44
  </sd-combo-box>
41
45
  <sd-combo-box
@@ -1361,10 +1365,15 @@ duplicateExample.comboBoxValue = { index: 88, item: itemsWithDuplicate[88] };
1361
1365
  placeholder="-- select an option --"
1362
1366
  allow-custom-value></sd-combo-box>
1363
1367
  <sd-combo-box null-setting-disallowed label="Null setting not allowed and mandatory"></sd-combo-box>
1368
+ <sd-combo-box long-validation-message label="Long validation message"></sd-combo-box>
1369
+ <sd-combo-box
1370
+ class="legacy-validation-layout"
1371
+ long-validation-message
1372
+ label="Long validation message with single line layout"></sd-combo-box>
1364
1373
  </div>
1365
1374
  `,$r=`<h3 id="validation-examples">Validation examples</h3>
1366
1375
  `,Or=`import "@cas-smartdesign/combo-box";
1367
- import ComboBox from "@cas-smartdesign/combo-box";
1376
+ import ComboBox, { ComboBoxValue } from "@cas-smartdesign/combo-box";
1368
1377
  import { ValidationLevel } from "@cas-smartdesign/field-validation-message";
1369
1378
  import { ItemData } from "@cas-smartdesign/list-item";
1370
1379
 
@@ -1385,21 +1394,32 @@ document.querySelectorAll("#validation-examples-container sd-combo-box").forEach
1385
1394
  });
1386
1395
 
1387
1396
  function updateMandatory(combobox: ComboBox) {
1388
- if (combobox.comboBoxValue) {
1389
- combobox.validationMessage = null;
1390
- combobox.validationLevel = null;
1397
+ const selectedValue = combobox.comboBoxValue as ComboBoxValue;
1398
+ if (combobox.hasAttribute("long-validation-message")) {
1399
+ combobox.validationMessage = "This is a long validation message that might not fit into a single line.";
1400
+ if (selectedValue) {
1401
+ combobox.validationMessage += \` Especially if '\${
1402
+ (selectedValue as ComboBoxValue).item.caption
1403
+ }' is selected\`;
1404
+ }
1405
+ combobox.validationLevel = ValidationLevel.Warn;
1391
1406
  } else {
1392
- combobox.validationMessage = "Should not be empty";
1393
- combobox.validationLevel = ValidationLevel.Error;
1407
+ if (selectedValue) {
1408
+ combobox.validationMessage = null;
1409
+ combobox.validationLevel = null;
1410
+ } else {
1411
+ combobox.validationMessage = "Should not be empty";
1412
+ combobox.validationLevel = ValidationLevel.Error;
1413
+ }
1394
1414
  }
1395
1415
  }
1396
- `,Ir={mainContent:kr,description:$r,css:ut,initializer:{content:Or,type:"typescript",initialize:()=>Bt(()=>import("./6_validation_example.js"),__vite__mapDeps([]),import.meta.url)}},Mr=Object.freeze(Object.defineProperty({__proto__:null,default:Ir},Symbol.toStringTag,{value:"Module"}));const ni=window,ds=ni.ShadowRoot&&(ni.ShadyCSS===void 0||ni.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,us=Symbol(),Ds=new WeakMap;let Oa=class{constructor(e,t,s){if(this._$cssResult$=!0,s!==us)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(ds&&e===void 0){const s=t!==void 0&&t.length===1;s&&(e=Ds.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),s&&Ds.set(t,e))}return e}toString(){return this.cssText}};const ht=i=>new Oa(typeof i=="string"?i:i+"",void 0,us),Tt=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((s,a,r)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+i[r+1],i[0]);return new Oa(t,i,us)},Rr=(i,e)=>{ds?i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{const s=document.createElement("style"),a=ni.litNonce;a!==void 0&&s.setAttribute("nonce",a),s.textContent=t.cssText,i.appendChild(s)})},Bs=ds?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const s of e.cssRules)t+=s.cssText;return ht(t)})(i):i;var Ii;const mi=window,Ts=mi.trustedTypes,Lr=Ts?Ts.emptyScript:"",zs=mi.reactiveElementPolyfillSupport,Hi={toAttribute(i,e){switch(e){case Boolean:i=i?Lr:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},Ia=(i,e)=>e!==i&&(e==e||i==i),Mi={attribute:!0,type:String,converter:Hi,reflect:!1,hasChanged:Ia},Ui="finalized";let et=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,s)=>{const a=this._$Ep(s,t);a!==void 0&&(this._$Ev.set(a,s),e.push(a))}),e}static createProperty(e,t=Mi){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const s=typeof e=="symbol"?Symbol():"__"+e,a=this.getPropertyDescriptor(e,s,t);a!==void 0&&Object.defineProperty(this.prototype,e,a)}}static getPropertyDescriptor(e,t,s){return{get(){return this[t]},set(a){const r=this[e];this[t]=a,this.requestUpdate(e,r,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Mi}static finalize(){if(this.hasOwnProperty(Ui))return!1;this[Ui]=!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,s=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const a of s)this.createProperty(a,t[a])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const s=new Set(e.flat(1/0).reverse());for(const a of s)t.unshift(Bs(a))}else e!==void 0&&t.push(Bs(e));return t}static _$Ep(e,t){const s=t.attribute;return s===!1?void 0:typeof s=="string"?s: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,s;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((s=e.hostConnected)===null||s===void 0||s.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 Rr(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 s;return(s=t.hostConnected)===null||s===void 0?void 0:s.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var s;return(s=t.hostDisconnected)===null||s===void 0?void 0:s.call(t)})}attributeChangedCallback(e,t,s){this._$AK(e,s)}_$EO(e,t,s=Mi){var a;const r=this.constructor._$Ep(e,s);if(r!==void 0&&s.reflect===!0){const n=(((a=s.converter)===null||a===void 0?void 0:a.toAttribute)!==void 0?s.converter:Hi).toAttribute(t,s.type);this._$El=e,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$El=null}}_$AK(e,t){var s;const a=this.constructor,r=a._$Ev.get(e);if(r!==void 0&&this._$El!==r){const n=a.getPropertyOptions(r),o=typeof n.converter=="function"?{fromAttribute:n.converter}:((s=n.converter)===null||s===void 0?void 0:s.fromAttribute)!==void 0?n.converter:Hi;this._$El=r,this[r]=o.fromAttribute(t,n.type),this._$El=null}}requestUpdate(e,t,s){let a=!0;e!==void 0&&(((s=s||this.constructor.getPropertyOptions(e)).hasChanged||Ia)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),s.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,s))):a=!1),!this.isUpdatePending&&a&&(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((a,r)=>this[r]=a),this._$Ei=void 0);let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),(e=this._$ES)===null||e===void 0||e.forEach(a=>{var r;return(r=a.hostUpdate)===null||r===void 0?void 0:r.call(a)}),this.update(s)):this._$Ek()}catch(a){throw t=!1,this._$Ek(),a}t&&this._$AE(s)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(s=>{var a;return(a=s.hostUpdated)===null||a===void 0?void 0:a.call(s)}),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,s)=>this._$EO(s,this[s],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};et[Ui]=!0,et.elementProperties=new Map,et.elementStyles=[],et.shadowRootOptions={mode:"open"},zs==null||zs({ReactiveElement:et}),((Ii=mi.reactiveElementVersions)!==null&&Ii!==void 0?Ii:mi.reactiveElementVersions=[]).push("1.6.3");var Ri;const di=window,it=di.trustedTypes,js=it?it.createPolicy("lit-html",{createHTML:i=>i}):void 0,Gi="$lit$",Me=`lit$${(Math.random()+"").slice(9)}$`,Ma="?"+Me,Pr=`<${Ma}>`,He=document,Ct=()=>He.createComment(""),Et=i=>i===null||typeof i!="object"&&typeof i!="function",Ra=Array.isArray,Dr=i=>Ra(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Li=`[
1416
+ `,Mr={mainContent:kr,description:$r,css:ut,initializer:{content:Or,type:"typescript",initialize:()=>Bt(()=>import("./6_validation_example.js"),__vite__mapDeps([]),import.meta.url)}},Ir=Object.freeze(Object.defineProperty({__proto__:null,default:Mr},Symbol.toStringTag,{value:"Module"}));const ni=window,ds=ni.ShadowRoot&&(ni.ShadyCSS===void 0||ni.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,us=Symbol(),Ds=new WeakMap;let Oa=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==us)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(ds&&e===void 0){const i=t!==void 0&&t.length===1;i&&(e=Ds.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Ds.set(t,e))}return e}toString(){return this.cssText}};const ht=s=>new Oa(typeof s=="string"?s:s+"",void 0,us),Tt=(s,...e)=>{const t=s.length===1?s[0]:e.reduce((i,a,r)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+s[r+1],s[0]);return new Oa(t,s,us)},Rr=(s,e)=>{ds?s.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{const i=document.createElement("style"),a=ni.litNonce;a!==void 0&&i.setAttribute("nonce",a),i.textContent=t.cssText,s.appendChild(i)})},Bs=ds?s=>s:s=>s instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return ht(t)})(s):s;var Mi;const mi=window,Ts=mi.trustedTypes,Lr=Ts?Ts.emptyScript:"",zs=mi.reactiveElementPolyfillSupport,Hi={toAttribute(s,e){switch(e){case Boolean:s=s?Lr:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,e){let t=s;switch(e){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch{t=null}}return t}},Ma=(s,e)=>e!==s&&(e==e||s==s),Ii={attribute:!0,type:String,converter:Hi,reflect:!1,hasChanged:Ma},Ui="finalized";let et=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 a=this._$Ep(i,t);a!==void 0&&(this._$Ev.set(a,i),e.push(a))}),e}static createProperty(e,t=Ii){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,a=this.getPropertyDescriptor(e,i,t);a!==void 0&&Object.defineProperty(this.prototype,e,a)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(a){const r=this[e];this[t]=a,this.requestUpdate(e,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Ii}static finalize(){if(this.hasOwnProperty(Ui))return!1;this[Ui]=!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 a of i)this.createProperty(a,t[a])}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 a of i)t.unshift(Bs(a))}else e!==void 0&&t.push(Bs(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 Rr(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=Ii){var a;const r=this.constructor._$Ep(e,i);if(r!==void 0&&i.reflect===!0){const n=(((a=i.converter)===null||a===void 0?void 0:a.toAttribute)!==void 0?i.converter:Hi).toAttribute(t,i.type);this._$El=e,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$El=null}}_$AK(e,t){var i;const a=this.constructor,r=a._$Ev.get(e);if(r!==void 0&&this._$El!==r){const n=a.getPropertyOptions(r),o=typeof n.converter=="function"?{fromAttribute:n.converter}:((i=n.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?n.converter:Hi;this._$El=r,this[r]=o.fromAttribute(t,n.type),this._$El=null}}requestUpdate(e,t,i){let a=!0;e!==void 0&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||Ma)(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))):a=!1),!this.isUpdatePending&&a&&(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((a,r)=>this[r]=a),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(a=>{var r;return(r=a.hostUpdate)===null||r===void 0?void 0:r.call(a)}),this.update(i)):this._$Ek()}catch(a){throw t=!1,this._$Ek(),a}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(i=>{var a;return(a=i.hostUpdated)===null||a===void 0?void 0:a.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){}};et[Ui]=!0,et.elementProperties=new Map,et.elementStyles=[],et.shadowRootOptions={mode:"open"},zs==null||zs({ReactiveElement:et}),((Mi=mi.reactiveElementVersions)!==null&&Mi!==void 0?Mi:mi.reactiveElementVersions=[]).push("1.6.3");var Ri;const di=window,it=di.trustedTypes,js=it?it.createPolicy("lit-html",{createHTML:s=>s}):void 0,Gi="$lit$",Ie=`lit$${(Math.random()+"").slice(9)}$`,Ia="?"+Ie,Pr=`<${Ia}>`,He=document,Ct=()=>He.createComment(""),Et=s=>s===null||typeof s!="object"&&typeof s!="function",Ra=Array.isArray,Dr=s=>Ra(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",Li=`[
1397
1417
  \f\r]`,gt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Vs=/-->/g,Fs=/>/g,Te=RegExp(`>|${Li}(?:([^\\s"'>=/]+)(${Li}*=${Li}*(?:[^
1398
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Hs=/'/g,Us=/"/g,La=/^(?:script|style|textarea|title)$/i,Br=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),ne=Br(1),Ue=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),Gs=new WeakMap,je=He.createTreeWalker(He,129,null,!1);function Pa(i,e){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return js!==void 0?js.createHTML(e):e}const Tr=(i,e)=>{const t=i.length-1,s=[];let a,r=e===2?"<svg>":"",n=gt;for(let o=0;o<t;o++){const l=i[o];let c,m,u=-1,h=0;for(;h<l.length&&(n.lastIndex=h,m=n.exec(l),m!==null);)h=n.lastIndex,n===gt?m[1]==="!--"?n=Vs:m[1]!==void 0?n=Fs:m[2]!==void 0?(La.test(m[2])&&(a=RegExp("</"+m[2],"g")),n=Te):m[3]!==void 0&&(n=Te):n===Te?m[0]===">"?(n=a??gt,u=-1):m[1]===void 0?u=-2:(u=n.lastIndex-m[2].length,c=m[1],n=m[3]===void 0?Te:m[3]==='"'?Us:Hs):n===Us||n===Hs?n=Te:n===Vs||n===Fs?n=gt:(n=Te,a=void 0);const g=n===Te&&i[o+1].startsWith("/>")?" ":"";r+=n===gt?l+Pr:u>=0?(s.push(c),l.slice(0,u)+Gi+l.slice(u)+Me+g):l+Me+(u===-2?(s.push(void 0),o):g)}return[Pa(i,r+(i[t]||"<?>")+(e===2?"</svg>":"")),s]};class At{constructor({strings:e,_$litType$:t},s){let a;this.parts=[];let r=0,n=0;const o=e.length-1,l=this.parts,[c,m]=Tr(e,t);if(this.el=At.createElement(c,s),je.currentNode=this.el.content,t===2){const u=this.el.content,h=u.firstChild;h.remove(),u.append(...h.childNodes)}for(;(a=je.nextNode())!==null&&l.length<o;){if(a.nodeType===1){if(a.hasAttributes()){const u=[];for(const h of a.getAttributeNames())if(h.endsWith(Gi)||h.startsWith(Me)){const g=m[n++];if(u.push(h),g!==void 0){const _=a.getAttribute(g.toLowerCase()+Gi).split(Me),y=/([.?@])?(.*)/.exec(g);l.push({type:1,index:r,name:y[2],strings:_,ctor:y[1]==="."?jr:y[1]==="?"?Fr:y[1]==="@"?Hr:yi})}else l.push({type:6,index:r})}for(const h of u)a.removeAttribute(h)}if(La.test(a.tagName)){const u=a.textContent.split(Me),h=u.length-1;if(h>0){a.textContent=it?it.emptyScript:"";for(let g=0;g<h;g++)a.append(u[g],Ct()),je.nextNode(),l.push({type:2,index:++r});a.append(u[h],Ct())}}}else if(a.nodeType===8)if(a.data===Ma)l.push({type:2,index:r});else{let u=-1;for(;(u=a.data.indexOf(Me,u+1))!==-1;)l.push({type:7,index:r}),u+=Me.length-1}r++}}static createElement(e,t){const s=He.createElement("template");return s.innerHTML=e,s}}function st(i,e,t=i,s){var a,r,n,o;if(e===Ue)return e;let l=s!==void 0?(a=t._$Co)===null||a===void 0?void 0:a[s]:t._$Cl;const c=Et(e)?void 0:e._$litDirective$;return(l==null?void 0:l.constructor)!==c&&((r=l==null?void 0:l._$AO)===null||r===void 0||r.call(l,!1),c===void 0?l=void 0:(l=new c(i),l._$AT(i,t,s)),s!==void 0?((n=(o=t)._$Co)!==null&&n!==void 0?n:o._$Co=[])[s]=l:t._$Cl=l),l!==void 0&&(e=st(i,l._$AS(i,e.values),l,s)),e}class zr{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:s},parts:a}=this._$AD,r=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:He).importNode(s,!0);je.currentNode=r;let n=je.nextNode(),o=0,l=0,c=a[0];for(;c!==void 0;){if(o===c.index){let m;c.type===2?m=new zt(n,n.nextSibling,this,e):c.type===1?m=new c.ctor(n,c.name,c.strings,this,e):c.type===6&&(m=new Ur(n,this,e)),this._$AV.push(m),c=a[++l]}o!==(c==null?void 0:c.index)&&(n=je.nextNode(),o++)}return je.currentNode=He,r}v(e){let t=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(e,s,t),t+=s.strings.length-2):s._$AI(e[t])),t++}}class zt{constructor(e,t,s,a){var r;this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=s,this.options=a,this._$Cp=(r=a==null?void 0:a.isConnected)===null||r===void 0||r}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=st(this,e,t),Et(e)?e===F||e==null||e===""?(this._$AH!==F&&this._$AR(),this._$AH=F):e!==this._$AH&&e!==Ue&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Dr(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!==F&&Et(this._$AH)?this._$AA.nextSibling.data=e:this.$(He.createTextNode(e)),this._$AH=e}g(e){var t;const{values:s,_$litType$:a}=e,r=typeof a=="number"?this._$AC(e):(a.el===void 0&&(a.el=At.createElement(Pa(a.h,a.h[0]),this.options)),a);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===r)this._$AH.v(s);else{const n=new zr(r,this),o=n.u(this.options);n.v(s),this.$(o),this._$AH=n}}_$AC(e){let t=Gs.get(e.strings);return t===void 0&&Gs.set(e.strings,t=new At(e)),t}T(e){Ra(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let s,a=0;for(const r of e)a===t.length?t.push(s=new zt(this.k(Ct()),this.k(Ct()),this,this.options)):s=t[a],s._$AI(r),a++;a<t.length&&(this._$AR(s&&s._$AB.nextSibling,a),t.length=a)}_$AR(e=this._$AA.nextSibling,t){var s;for((s=this._$AP)===null||s===void 0||s.call(this,!1,!0,t);e&&e!==this._$AB;){const a=e.nextSibling;e.remove(),e=a}}setConnected(e){var t;this._$AM===void 0&&(this._$Cp=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}let yi=class{constructor(e,t,s,a,r){this.type=1,this._$AH=F,this._$AN=void 0,this.element=e,this.name=t,this._$AM=a,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=F}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,s,a){const r=this.strings;let n=!1;if(r===void 0)e=st(this,e,t,0),n=!Et(e)||e!==this._$AH&&e!==Ue,n&&(this._$AH=e);else{const o=e;let l,c;for(e=r[0],l=0;l<r.length-1;l++)c=st(this,o[s+l],t,l),c===Ue&&(c=this._$AH[l]),n||(n=!Et(c)||c!==this._$AH[l]),c===F?e=F:e!==F&&(e+=(c??"")+r[l+1]),this._$AH[l]=c}n&&!a&&this.j(e)}j(e){e===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}};class jr extends yi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===F?void 0:e}}const Vr=it?it.emptyScript:"";let Fr=class extends yi{constructor(){super(...arguments),this.type=4}j(e){e&&e!==F?this.element.setAttribute(this.name,Vr):this.element.removeAttribute(this.name)}},Hr=class extends yi{constructor(e,t,s,a,r){super(e,t,s,a,r),this.type=5}_$AI(e,t=this){var s;if((e=(s=st(this,e,t,0))!==null&&s!==void 0?s:F)===Ue)return;const a=this._$AH,r=e===F&&a!==F||e.capture!==a.capture||e.once!==a.once||e.passive!==a.passive,n=e!==F&&(a===F||r);r&&this.element.removeEventListener(this.name,this,a),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,s;typeof this._$AH=="function"?this._$AH.call((s=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&s!==void 0?s:this.element,e):this._$AH.handleEvent(e)}};class Ur{constructor(e,t,s){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(e){st(this,e)}}const Ws=di.litHtmlPolyfillSupport;Ws==null||Ws(At,zt),((Ri=di.litHtmlVersions)!==null&&Ri!==void 0?Ri:di.litHtmlVersions=[]).push("2.8.0");const Gr=(i,e,t)=>{var s,a;const r=(s=t==null?void 0:t.renderBefore)!==null&&s!==void 0?s:e;let n=r._$litPart$;if(n===void 0){const o=(a=t==null?void 0:t.renderBefore)!==null&&a!==void 0?a:null;r._$litPart$=n=new zt(e.insertBefore(Ct(),o),o,void 0,t??{})}return n._$AI(i),n};var Pi,Di;let Ee=class extends et{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const s=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=s.firstChild),s}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Gr(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 Ue}};Ee.finalized=!0,Ee._$litElement$=!0,(Pi=globalThis.litElementHydrateSupport)===null||Pi===void 0||Pi.call(globalThis,{LitElement:Ee});const Ks=globalThis.litElementPolyfillSupport;Ks==null||Ks({LitElement:Ee});((Di=globalThis.litElementVersions)!==null&&Di!==void 0?Di:globalThis.litElementVersions=[]).push("3.3.3");const Wr=(i,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,i)}}:{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,i)}},Kr=(i,e,t)=>{e.constructor.createProperty(t,i)};function v(i){return(e,t)=>t!==void 0?Kr(i,e,t):Wr(i,e)}var re="top",ue="bottom",he="right",oe="left",hs="auto",jt=[re,ue,he,oe],at="start",kt="end",qr="clippingParents",Da="viewport",Nt="popper",Jr="reference",qs=jt.reduce(function(i,e){return i.concat([e+"-"+at,e+"-"+kt])},[]),Ba=[].concat(jt,[hs]).reduce(function(i,e){return i.concat([e,e+"-"+at,e+"-"+kt])},[]),Zr="beforeRead",Xr="read",Yr="afterRead",Qr="beforeMain",eo="main",to="afterMain",io="beforeWrite",so="write",ao="afterWrite",no=[Zr,Xr,Yr,Qr,eo,to,io,so,ao];function _e(i){return i?(i.nodeName||"").toLowerCase():null}function me(i){if(i==null)return window;if(i.toString()!=="[object Window]"){var e=i.ownerDocument;return e&&e.defaultView||window}return i}function Ge(i){var e=me(i).Element;return i instanceof e||i instanceof Element}function de(i){var e=me(i).HTMLElement;return i instanceof e||i instanceof HTMLElement}function fs(i){if(typeof ShadowRoot>"u")return!1;var e=me(i).ShadowRoot;return i instanceof e||i instanceof ShadowRoot}function ro(i){var e=i.state;Object.keys(e.elements).forEach(function(t){var s=e.styles[t]||{},a=e.attributes[t]||{},r=e.elements[t];!de(r)||!_e(r)||(Object.assign(r.style,s),Object.keys(a).forEach(function(n){var o=a[n];o===!1?r.removeAttribute(n):r.setAttribute(n,o===!0?"":o)}))})}function oo(i){var e=i.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(s){var a=e.elements[s],r=e.attributes[s]||{},n=Object.keys(e.styles.hasOwnProperty(s)?e.styles[s]:t[s]),o=n.reduce(function(l,c){return l[c]="",l},{});!de(a)||!_e(a)||(Object.assign(a.style,o),Object.keys(r).forEach(function(l){a.removeAttribute(l)}))})}}const lo={name:"applyStyles",enabled:!0,phase:"write",fn:ro,effect:oo,requires:["computeStyles"]};function we(i){return i.split("-")[0]}var Ve=Math.max,ui=Math.min,nt=Math.round;function Wi(){var i=navigator.userAgentData;return i!=null&&i.brands&&Array.isArray(i.brands)?i.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Ta(){return!/^((?!chrome|android).)*safari/i.test(Wi())}function rt(i,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var s=i.getBoundingClientRect(),a=1,r=1;e&&de(i)&&(a=i.offsetWidth>0&&nt(s.width)/i.offsetWidth||1,r=i.offsetHeight>0&&nt(s.height)/i.offsetHeight||1);var n=Ge(i)?me(i):window,o=n.visualViewport,l=!Ta()&&t,c=(s.left+(l&&o?o.offsetLeft:0))/a,m=(s.top+(l&&o?o.offsetTop:0))/r,u=s.width/a,h=s.height/r;return{width:u,height:h,top:m,right:c+u,bottom:m+h,left:c,x:c,y:m}}function ps(i){var e=rt(i),t=i.offsetWidth,s=i.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-s)<=1&&(s=e.height),{x:i.offsetLeft,y:i.offsetTop,width:t,height:s}}function za(i,e){var t=e.getRootNode&&e.getRootNode();if(i.contains(e))return!0;if(t&&fs(t)){var s=e;do{if(s&&i.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function Ae(i){return me(i).getComputedStyle(i)}function co(i){return["table","td","th"].indexOf(_e(i))>=0}function Le(i){return((Ge(i)?i.ownerDocument:i.document)||window.document).documentElement}function xi(i){return _e(i)==="html"?i:i.assignedSlot||i.parentNode||(fs(i)?i.host:null)||Le(i)}function Js(i){return!de(i)||Ae(i).position==="fixed"?null:i.offsetParent}function mo(i){var e=/firefox/i.test(Wi()),t=/Trident/i.test(Wi());if(t&&de(i)){var s=Ae(i);if(s.position==="fixed")return null}var a=xi(i);for(fs(a)&&(a=a.host);de(a)&&["html","body"].indexOf(_e(a))<0;){var r=Ae(a);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return a;a=a.parentNode}return null}function Vt(i){for(var e=me(i),t=Js(i);t&&co(t)&&Ae(t).position==="static";)t=Js(t);return t&&(_e(t)==="html"||_e(t)==="body"&&Ae(t).position==="static")?e:t||mo(i)||e}function gs(i){return["top","bottom"].indexOf(i)>=0?"x":"y"}function wt(i,e,t){return Ve(i,ui(e,t))}function uo(i,e,t){var s=wt(i,e,t);return s>t?t:s}function ja(){return{top:0,right:0,bottom:0,left:0}}function Va(i){return Object.assign({},ja(),i)}function Fa(i,e){return e.reduce(function(t,s){return t[s]=i,t},{})}var ho=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Va(typeof e!="number"?e:Fa(e,jt))};function fo(i){var e,t=i.state,s=i.name,a=i.options,r=t.elements.arrow,n=t.modifiersData.popperOffsets,o=we(t.placement),l=gs(o),c=[oe,he].indexOf(o)>=0,m=c?"height":"width";if(!(!r||!n)){var u=ho(a.padding,t),h=ps(r),g=l==="y"?re:oe,_=l==="y"?ue:he,y=t.rects.reference[m]+t.rects.reference[l]-n[l]-t.rects.popper[m],f=n[l]-t.rects.reference[l],A=Vt(r),I=A?l==="y"?A.clientHeight||0:A.clientWidth||0:0,M=y/2-f/2,x=u[g],E=I-h[m]-u[_],$=I/2-h[m]/2+M,R=wt(x,$,E),P=l;t.modifiersData[s]=(e={},e[P]=R,e.centerOffset=R-$,e)}}function po(i){var e=i.state,t=i.options,s=t.element,a=s===void 0?"[data-popper-arrow]":s;a!=null&&(typeof a=="string"&&(a=e.elements.popper.querySelector(a),!a)||za(e.elements.popper,a)&&(e.elements.arrow=a))}const go={name:"arrow",enabled:!0,phase:"main",fn:fo,effect:po,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ot(i){return i.split("-")[1]}var No={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bo(i,e){var t=i.x,s=i.y,a=e.devicePixelRatio||1;return{x:nt(t*a)/a||0,y:nt(s*a)/a||0}}function Zs(i){var e,t=i.popper,s=i.popperRect,a=i.placement,r=i.variation,n=i.offsets,o=i.position,l=i.gpuAcceleration,c=i.adaptive,m=i.roundOffsets,u=i.isFixed,h=n.x,g=h===void 0?0:h,_=n.y,y=_===void 0?0:_,f=typeof m=="function"?m({x:g,y}):{x:g,y};g=f.x,y=f.y;var A=n.hasOwnProperty("x"),I=n.hasOwnProperty("y"),M=oe,x=re,E=window;if(c){var $=Vt(t),R="clientHeight",P="clientWidth";if($===me(t)&&($=Le(t),Ae($).position!=="static"&&o==="absolute"&&(R="scrollHeight",P="scrollWidth")),$=$,a===re||(a===oe||a===he)&&r===kt){x=ue;var O=u&&$===E&&E.visualViewport?E.visualViewport.height:$[R];y-=O-s.height,y*=l?1:-1}if(a===oe||(a===re||a===ue)&&r===kt){M=he;var T=u&&$===E&&E.visualViewport?E.visualViewport.width:$[P];g-=T-s.width,g*=l?1:-1}}var K=Object.assign({position:o},c&&No),ee=m===!0?bo({x:g,y},me(t)):{x:g,y};if(g=ee.x,y=ee.y,l){var q;return Object.assign({},K,(q={},q[x]=I?"0":"",q[M]=A?"0":"",q.transform=(E.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",q))}return Object.assign({},K,(e={},e[x]=I?y+"px":"",e[M]=A?g+"px":"",e.transform="",e))}function vo(i){var e=i.state,t=i.options,s=t.gpuAcceleration,a=s===void 0?!0:s,r=t.adaptive,n=r===void 0?!0:r,o=t.roundOffsets,l=o===void 0?!0:o,c={placement:we(e.placement),variation:ot(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Zs(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:n,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Zs(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const yo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:vo,data:{}};var Kt={passive:!0};function xo(i){var e=i.state,t=i.instance,s=i.options,a=s.scroll,r=a===void 0?!0:a,n=s.resize,o=n===void 0?!0:n,l=me(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&c.forEach(function(m){m.addEventListener("scroll",t.update,Kt)}),o&&l.addEventListener("resize",t.update,Kt),function(){r&&c.forEach(function(m){m.removeEventListener("scroll",t.update,Kt)}),o&&l.removeEventListener("resize",t.update,Kt)}}const wo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:xo,data:{}};var _o={left:"right",right:"left",bottom:"top",top:"bottom"};function ri(i){return i.replace(/left|right|bottom|top/g,function(e){return _o[e]})}var So={start:"end",end:"start"};function Xs(i){return i.replace(/start|end/g,function(e){return So[e]})}function Ns(i){var e=me(i),t=e.pageXOffset,s=e.pageYOffset;return{scrollLeft:t,scrollTop:s}}function bs(i){return rt(Le(i)).left+Ns(i).scrollLeft}function Co(i,e){var t=me(i),s=Le(i),a=t.visualViewport,r=s.clientWidth,n=s.clientHeight,o=0,l=0;if(a){r=a.width,n=a.height;var c=Ta();(c||!c&&e==="fixed")&&(o=a.offsetLeft,l=a.offsetTop)}return{width:r,height:n,x:o+bs(i),y:l}}function Eo(i){var e,t=Le(i),s=Ns(i),a=(e=i.ownerDocument)==null?void 0:e.body,r=Ve(t.scrollWidth,t.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),n=Ve(t.scrollHeight,t.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),o=-s.scrollLeft+bs(i),l=-s.scrollTop;return Ae(a||t).direction==="rtl"&&(o+=Ve(t.clientWidth,a?a.clientWidth:0)-r),{width:r,height:n,x:o,y:l}}function vs(i){var e=Ae(i),t=e.overflow,s=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+a+s)}function Ha(i){return["html","body","#document"].indexOf(_e(i))>=0?i.ownerDocument.body:de(i)&&vs(i)?i:Ha(xi(i))}function _t(i,e){var t;e===void 0&&(e=[]);var s=Ha(i),a=s===((t=i.ownerDocument)==null?void 0:t.body),r=me(s),n=a?[r].concat(r.visualViewport||[],vs(s)?s:[]):s,o=e.concat(n);return a?o:o.concat(_t(xi(n)))}function Ki(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function Ao(i,e){var t=rt(i,!1,e==="fixed");return t.top=t.top+i.clientTop,t.left=t.left+i.clientLeft,t.bottom=t.top+i.clientHeight,t.right=t.left+i.clientWidth,t.width=i.clientWidth,t.height=i.clientHeight,t.x=t.left,t.y=t.top,t}function Ys(i,e,t){return e===Da?Ki(Co(i,t)):Ge(e)?Ao(e,t):Ki(Eo(Le(i)))}function ko(i){var e=_t(xi(i)),t=["absolute","fixed"].indexOf(Ae(i).position)>=0,s=t&&de(i)?Vt(i):i;return Ge(s)?e.filter(function(a){return Ge(a)&&za(a,s)&&_e(a)!=="body"}):[]}function $o(i,e,t,s){var a=e==="clippingParents"?ko(i):[].concat(e),r=[].concat(a,[t]),n=r[0],o=r.reduce(function(l,c){var m=Ys(i,c,s);return l.top=Ve(m.top,l.top),l.right=ui(m.right,l.right),l.bottom=ui(m.bottom,l.bottom),l.left=Ve(m.left,l.left),l},Ys(i,n,s));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Ua(i){var e=i.reference,t=i.element,s=i.placement,a=s?we(s):null,r=s?ot(s):null,n=e.x+e.width/2-t.width/2,o=e.y+e.height/2-t.height/2,l;switch(a){case re:l={x:n,y:e.y-t.height};break;case ue:l={x:n,y:e.y+e.height};break;case he:l={x:e.x+e.width,y:o};break;case oe:l={x:e.x-t.width,y:o};break;default:l={x:e.x,y:e.y}}var c=a?gs(a):null;if(c!=null){var m=c==="y"?"height":"width";switch(r){case at:l[c]=l[c]-(e[m]/2-t[m]/2);break;case kt:l[c]=l[c]+(e[m]/2-t[m]/2);break}}return l}function $t(i,e){e===void 0&&(e={});var t=e,s=t.placement,a=s===void 0?i.placement:s,r=t.strategy,n=r===void 0?i.strategy:r,o=t.boundary,l=o===void 0?qr:o,c=t.rootBoundary,m=c===void 0?Da:c,u=t.elementContext,h=u===void 0?Nt:u,g=t.altBoundary,_=g===void 0?!1:g,y=t.padding,f=y===void 0?0:y,A=Va(typeof f!="number"?f:Fa(f,jt)),I=h===Nt?Jr:Nt,M=i.rects.popper,x=i.elements[_?I:h],E=$o(Ge(x)?x:x.contextElement||Le(i.elements.popper),l,m,n),$=rt(i.elements.reference),R=Ua({reference:$,element:M,strategy:"absolute",placement:a}),P=Ki(Object.assign({},M,R)),O=h===Nt?P:$,T={top:E.top-O.top+A.top,bottom:O.bottom-E.bottom+A.bottom,left:E.left-O.left+A.left,right:O.right-E.right+A.right},K=i.modifiersData.offset;if(h===Nt&&K){var ee=K[a];Object.keys(T).forEach(function(q){var fe=[he,ue].indexOf(q)>=0?1:-1,te=[re,ue].indexOf(q)>=0?"y":"x";T[q]+=ee[te]*fe})}return T}function Oo(i,e){e===void 0&&(e={});var t=e,s=t.placement,a=t.boundary,r=t.rootBoundary,n=t.padding,o=t.flipVariations,l=t.allowedAutoPlacements,c=l===void 0?Ba:l,m=ot(s),u=m?o?qs:qs.filter(function(_){return ot(_)===m}):jt,h=u.filter(function(_){return c.indexOf(_)>=0});h.length===0&&(h=u);var g=h.reduce(function(_,y){return _[y]=$t(i,{placement:y,boundary:a,rootBoundary:r,padding:n})[we(y)],_},{});return Object.keys(g).sort(function(_,y){return g[_]-g[y]})}function Io(i){if(we(i)===hs)return[];var e=ri(i);return[Xs(i),e,Xs(e)]}function Mo(i){var e=i.state,t=i.options,s=i.name;if(!e.modifiersData[s]._skip){for(var a=t.mainAxis,r=a===void 0?!0:a,n=t.altAxis,o=n===void 0?!0:n,l=t.fallbackPlacements,c=t.padding,m=t.boundary,u=t.rootBoundary,h=t.altBoundary,g=t.flipVariations,_=g===void 0?!0:g,y=t.allowedAutoPlacements,f=e.options.placement,A=we(f),I=A===f,M=l||(I||!_?[ri(f)]:Io(f)),x=[f].concat(M).reduce(function(pe,U){return pe.concat(we(U)===hs?Oo(e,{placement:U,boundary:m,rootBoundary:u,padding:c,flipVariations:_,allowedAutoPlacements:y}):U)},[]),E=e.rects.reference,$=e.rects.popper,R=new Map,P=!0,O=x[0],T=0;T<x.length;T++){var K=x[T],ee=we(K),q=ot(K)===at,fe=[re,ue].indexOf(ee)>=0,te=fe?"width":"height",Z=$t(e,{placement:K,boundary:m,rootBoundary:u,altBoundary:h,padding:c}),d=fe?q?he:oe:q?ue:re;E[te]>$[te]&&(d=ri(d));var N=ri(d),w=[];if(r&&w.push(Z[ee]<=0),o&&w.push(Z[d]<=0,Z[N]<=0),w.every(function(pe){return pe})){O=K,P=!1;break}R.set(K,w)}if(P)for(var k=_?3:1,z=function(U){var X=x.find(function(De){var be=R.get(De);if(be)return be.slice(0,U).every(function(qe){return qe})});if(X)return O=X,"break"},J=k;J>0;J--){var le=z(J);if(le==="break")break}e.placement!==O&&(e.modifiersData[s]._skip=!0,e.placement=O,e.reset=!0)}}const Ro={name:"flip",enabled:!0,phase:"main",fn:Mo,requiresIfExists:["offset"],data:{_skip:!1}};function Qs(i,e,t){return t===void 0&&(t={x:0,y:0}),{top:i.top-e.height-t.y,right:i.right-e.width+t.x,bottom:i.bottom-e.height+t.y,left:i.left-e.width-t.x}}function ea(i){return[re,he,ue,oe].some(function(e){return i[e]>=0})}function Lo(i){var e=i.state,t=i.name,s=e.rects.reference,a=e.rects.popper,r=e.modifiersData.preventOverflow,n=$t(e,{elementContext:"reference"}),o=$t(e,{altBoundary:!0}),l=Qs(n,s),c=Qs(o,a,r),m=ea(l),u=ea(c);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:m,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":u})}const Po={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Lo};function Do(i,e,t){var s=we(i),a=[oe,re].indexOf(s)>=0?-1:1,r=typeof t=="function"?t(Object.assign({},e,{placement:i})):t,n=r[0],o=r[1];return n=n||0,o=(o||0)*a,[oe,he].indexOf(s)>=0?{x:o,y:n}:{x:n,y:o}}function Bo(i){var e=i.state,t=i.options,s=i.name,a=t.offset,r=a===void 0?[0,0]:a,n=Ba.reduce(function(m,u){return m[u]=Do(u,e.rects,r),m},{}),o=n[e.placement],l=o.x,c=o.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[s]=n}const To={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Bo};function zo(i){var e=i.state,t=i.name;e.modifiersData[t]=Ua({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const jo={name:"popperOffsets",enabled:!0,phase:"read",fn:zo,data:{}};function Vo(i){return i==="x"?"y":"x"}function Fo(i){var e=i.state,t=i.options,s=i.name,a=t.mainAxis,r=a===void 0?!0:a,n=t.altAxis,o=n===void 0?!1:n,l=t.boundary,c=t.rootBoundary,m=t.altBoundary,u=t.padding,h=t.tether,g=h===void 0?!0:h,_=t.tetherOffset,y=_===void 0?0:_,f=$t(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:m}),A=we(e.placement),I=ot(e.placement),M=!I,x=gs(A),E=Vo(x),$=e.modifiersData.popperOffsets,R=e.rects.reference,P=e.rects.popper,O=typeof y=="function"?y(Object.assign({},e.rects,{placement:e.placement})):y,T=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),K=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,ee={x:0,y:0};if($){if(r){var q,fe=x==="y"?re:oe,te=x==="y"?ue:he,Z=x==="y"?"height":"width",d=$[x],N=d+f[fe],w=d-f[te],k=g?-P[Z]/2:0,z=I===at?R[Z]:P[Z],J=I===at?-P[Z]:-R[Z],le=e.elements.arrow,pe=g&&le?ps(le):{width:0,height:0},U=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:ja(),X=U[fe],De=U[te],be=wt(0,R[Z],pe[Z]),qe=M?R[Z]/2-k-be-X-T.mainAxis:z-be-X-T.mainAxis,$i=M?-R[Z]/2+k+be+De+T.mainAxis:J+be+De+T.mainAxis,ft=e.elements.arrow&&Vt(e.elements.arrow),Oi=ft?x==="y"?ft.clientTop||0:ft.clientLeft||0:0,Ut=(q=K==null?void 0:K[x])!=null?q:0,Je=d+qe-Ut-Oi,Gt=d+$i-Ut,ce=wt(g?ui(N,Je):N,d,g?Ve(w,Gt):w);$[x]=ce,ee[x]=ce-d}if(o){var Wt,pt=x==="x"?re:oe,S=x==="x"?ue:he,ve=$[E],G=E==="y"?"height":"width",D=ve+f[pt],Be=ve-f[S],ge=[re,oe].indexOf(A)!==-1,Ze=(Wt=K==null?void 0:K[E])!=null?Wt:0,Xe=ge?D:ve-R[G]-P[G]-Ze+T.altAxis,p=ge?ve+R[G]+P[G]-Ze-T.altAxis:Be,b=g&&ge?uo(Xe,ve,p):wt(g?Xe:D,ve,g?p:Be);$[E]=b,ee[E]=b-ve}e.modifiersData[s]=ee}}const Ho={name:"preventOverflow",enabled:!0,phase:"main",fn:Fo,requiresIfExists:["offset"]};function Uo(i){return{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}}function Go(i){return i===me(i)||!de(i)?Ns(i):Uo(i)}function Wo(i){var e=i.getBoundingClientRect(),t=nt(e.width)/i.offsetWidth||1,s=nt(e.height)/i.offsetHeight||1;return t!==1||s!==1}function Ko(i,e,t){t===void 0&&(t=!1);var s=de(e),a=de(e)&&Wo(e),r=Le(e),n=rt(i,a,t),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(s||!s&&!t)&&((_e(e)!=="body"||vs(r))&&(o=Go(e)),de(e)?(l=rt(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):r&&(l.x=bs(r))),{x:n.left+o.scrollLeft-l.x,y:n.top+o.scrollTop-l.y,width:n.width,height:n.height}}function qo(i){var e=new Map,t=new Set,s=[];i.forEach(function(r){e.set(r.name,r)});function a(r){t.add(r.name);var n=[].concat(r.requires||[],r.requiresIfExists||[]);n.forEach(function(o){if(!t.has(o)){var l=e.get(o);l&&a(l)}}),s.push(r)}return i.forEach(function(r){t.has(r.name)||a(r)}),s}function Jo(i){var e=qo(i);return no.reduce(function(t,s){return t.concat(e.filter(function(a){return a.phase===s}))},[])}function Zo(i){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(i())})})),e}}function Xo(i){var e=i.reduce(function(t,s){var a=t[s.name];return t[s.name]=a?Object.assign({},a,s,{options:Object.assign({},a.options,s.options),data:Object.assign({},a.data,s.data)}):s,t},{});return Object.keys(e).map(function(t){return e[t]})}var ta={placement:"bottom",modifiers:[],strategy:"absolute"};function ia(){for(var i=arguments.length,e=new Array(i),t=0;t<i;t++)e[t]=arguments[t];return!e.some(function(s){return!(s&&typeof s.getBoundingClientRect=="function")})}function Yo(i){i===void 0&&(i={});var e=i,t=e.defaultModifiers,s=t===void 0?[]:t,a=e.defaultOptions,r=a===void 0?ta:a;return function(o,l,c){c===void 0&&(c=r);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},ta,r),modifiersData:{},elements:{reference:o,popper:l},attributes:{},styles:{}},u=[],h=!1,g={state:m,setOptions:function(A){var I=typeof A=="function"?A(m.options):A;y(),m.options=Object.assign({},r,m.options,I),m.scrollParents={reference:Ge(o)?_t(o):o.contextElement?_t(o.contextElement):[],popper:_t(l)};var M=Jo(Xo([].concat(s,m.options.modifiers)));return m.orderedModifiers=M.filter(function(x){return x.enabled}),_(),g.update()},forceUpdate:function(){if(!h){var A=m.elements,I=A.reference,M=A.popper;if(ia(I,M)){m.rects={reference:Ko(I,Vt(M),m.options.strategy==="fixed"),popper:ps(M)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach(function(T){return m.modifiersData[T.name]=Object.assign({},T.data)});for(var x=0;x<m.orderedModifiers.length;x++){if(m.reset===!0){m.reset=!1,x=-1;continue}var E=m.orderedModifiers[x],$=E.fn,R=E.options,P=R===void 0?{}:R,O=E.name;typeof $=="function"&&(m=$({state:m,options:P,name:O,instance:g})||m)}}}},update:Zo(function(){return new Promise(function(f){g.forceUpdate(),f(m)})}),destroy:function(){y(),h=!0}};if(!ia(o,l))return g;g.setOptions(c).then(function(f){!h&&c.onFirstUpdate&&c.onFirstUpdate(f)});function _(){m.orderedModifiers.forEach(function(f){var A=f.name,I=f.options,M=I===void 0?{}:I,x=f.effect;if(typeof x=="function"){var E=x({state:m,name:A,instance:g,options:M}),$=function(){};u.push(E||$)}})}function y(){u.forEach(function(f){return f()}),u=[]}return g}}var Qo=[wo,jo,yo,lo,To,Ro,Ho,go,Po],el=Yo({defaultModifiers:Qo});const ie=i=>i??F,tl=":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}",il="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",sl="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",al="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 nl=Object.defineProperty,rl=Object.getOwnPropertyDescriptor,ys=(i,e,t,s)=>{for(var a=s>1?void 0:s?rl(e,t):e,r=i.length-1,n;r>=0;r--)(n=i[r])&&(a=(s?n(e,t,a):n(a))||a);return s&&a&&nl(e,t,a),a},Ye;const Ot=(Ye=class extends Ee{static parseLevel(i){if(i){const e=Object.keys(hi).find(t=>t.toLowerCase()===i.toLowerCase());return e&&hi[e]}}static get styles(){return[Tt`
1418
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Hs=/'/g,Us=/"/g,La=/^(?:script|style|textarea|title)$/i,Br=s=>(e,...t)=>({_$litType$:s,strings:e,values:t}),ne=Br(1),Ue=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),Gs=new WeakMap,je=He.createTreeWalker(He,129,null,!1);function Pa(s,e){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return js!==void 0?js.createHTML(e):e}const Tr=(s,e)=>{const t=s.length-1,i=[];let a,r=e===2?"<svg>":"",n=gt;for(let o=0;o<t;o++){const l=s[o];let c,m,u=-1,h=0;for(;h<l.length&&(n.lastIndex=h,m=n.exec(l),m!==null);)h=n.lastIndex,n===gt?m[1]==="!--"?n=Vs:m[1]!==void 0?n=Fs:m[2]!==void 0?(La.test(m[2])&&(a=RegExp("</"+m[2],"g")),n=Te):m[3]!==void 0&&(n=Te):n===Te?m[0]===">"?(n=a??gt,u=-1):m[1]===void 0?u=-2:(u=n.lastIndex-m[2].length,c=m[1],n=m[3]===void 0?Te:m[3]==='"'?Us:Hs):n===Us||n===Hs?n=Te:n===Vs||n===Fs?n=gt:(n=Te,a=void 0);const g=n===Te&&s[o+1].startsWith("/>")?" ":"";r+=n===gt?l+Pr:u>=0?(i.push(c),l.slice(0,u)+Gi+l.slice(u)+Ie+g):l+Ie+(u===-2?(i.push(void 0),o):g)}return[Pa(s,r+(s[t]||"<?>")+(e===2?"</svg>":"")),i]};class At{constructor({strings:e,_$litType$:t},i){let a;this.parts=[];let r=0,n=0;const o=e.length-1,l=this.parts,[c,m]=Tr(e,t);if(this.el=At.createElement(c,i),je.currentNode=this.el.content,t===2){const u=this.el.content,h=u.firstChild;h.remove(),u.append(...h.childNodes)}for(;(a=je.nextNode())!==null&&l.length<o;){if(a.nodeType===1){if(a.hasAttributes()){const u=[];for(const h of a.getAttributeNames())if(h.endsWith(Gi)||h.startsWith(Ie)){const g=m[n++];if(u.push(h),g!==void 0){const _=a.getAttribute(g.toLowerCase()+Gi).split(Ie),y=/([.?@])?(.*)/.exec(g);l.push({type:1,index:r,name:y[2],strings:_,ctor:y[1]==="."?jr:y[1]==="?"?Fr:y[1]==="@"?Hr:yi})}else l.push({type:6,index:r})}for(const h of u)a.removeAttribute(h)}if(La.test(a.tagName)){const u=a.textContent.split(Ie),h=u.length-1;if(h>0){a.textContent=it?it.emptyScript:"";for(let g=0;g<h;g++)a.append(u[g],Ct()),je.nextNode(),l.push({type:2,index:++r});a.append(u[h],Ct())}}}else if(a.nodeType===8)if(a.data===Ia)l.push({type:2,index:r});else{let u=-1;for(;(u=a.data.indexOf(Ie,u+1))!==-1;)l.push({type:7,index:r}),u+=Ie.length-1}r++}}static createElement(e,t){const i=He.createElement("template");return i.innerHTML=e,i}}function st(s,e,t=s,i){var a,r,n,o;if(e===Ue)return e;let l=i!==void 0?(a=t._$Co)===null||a===void 0?void 0:a[i]:t._$Cl;const c=Et(e)?void 0:e._$litDirective$;return(l==null?void 0:l.constructor)!==c&&((r=l==null?void 0:l._$AO)===null||r===void 0||r.call(l,!1),c===void 0?l=void 0:(l=new c(s),l._$AT(s,t,i)),i!==void 0?((n=(o=t)._$Co)!==null&&n!==void 0?n:o._$Co=[])[i]=l:t._$Cl=l),l!==void 0&&(e=st(s,l._$AS(s,e.values),l,i)),e}class zr{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:a}=this._$AD,r=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:He).importNode(i,!0);je.currentNode=r;let n=je.nextNode(),o=0,l=0,c=a[0];for(;c!==void 0;){if(o===c.index){let m;c.type===2?m=new zt(n,n.nextSibling,this,e):c.type===1?m=new c.ctor(n,c.name,c.strings,this,e):c.type===6&&(m=new Ur(n,this,e)),this._$AV.push(m),c=a[++l]}o!==(c==null?void 0:c.index)&&(n=je.nextNode(),o++)}return je.currentNode=He,r}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 zt{constructor(e,t,i,a){var r;this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=a,this._$Cp=(r=a==null?void 0:a.isConnected)===null||r===void 0||r}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=st(this,e,t),Et(e)?e===F||e==null||e===""?(this._$AH!==F&&this._$AR(),this._$AH=F):e!==this._$AH&&e!==Ue&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Dr(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!==F&&Et(this._$AH)?this._$AA.nextSibling.data=e:this.$(He.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:a}=e,r=typeof a=="number"?this._$AC(e):(a.el===void 0&&(a.el=At.createElement(Pa(a.h,a.h[0]),this.options)),a);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===r)this._$AH.v(i);else{const n=new zr(r,this),o=n.u(this.options);n.v(i),this.$(o),this._$AH=n}}_$AC(e){let t=Gs.get(e.strings);return t===void 0&&Gs.set(e.strings,t=new At(e)),t}T(e){Ra(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,a=0;for(const r of e)a===t.length?t.push(i=new zt(this.k(Ct()),this.k(Ct()),this,this.options)):i=t[a],i._$AI(r),a++;a<t.length&&(this._$AR(i&&i._$AB.nextSibling,a),t.length=a)}_$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 a=e.nextSibling;e.remove(),e=a}}setConnected(e){var t;this._$AM===void 0&&(this._$Cp=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}let yi=class{constructor(e,t,i,a,r){this.type=1,this._$AH=F,this._$AN=void 0,this.element=e,this.name=t,this._$AM=a,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=F}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,a){const r=this.strings;let n=!1;if(r===void 0)e=st(this,e,t,0),n=!Et(e)||e!==this._$AH&&e!==Ue,n&&(this._$AH=e);else{const o=e;let l,c;for(e=r[0],l=0;l<r.length-1;l++)c=st(this,o[i+l],t,l),c===Ue&&(c=this._$AH[l]),n||(n=!Et(c)||c!==this._$AH[l]),c===F?e=F:e!==F&&(e+=(c??"")+r[l+1]),this._$AH[l]=c}n&&!a&&this.j(e)}j(e){e===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}};class jr extends yi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===F?void 0:e}}const Vr=it?it.emptyScript:"";let Fr=class extends yi{constructor(){super(...arguments),this.type=4}j(e){e&&e!==F?this.element.setAttribute(this.name,Vr):this.element.removeAttribute(this.name)}},Hr=class extends yi{constructor(e,t,i,a,r){super(e,t,i,a,r),this.type=5}_$AI(e,t=this){var i;if((e=(i=st(this,e,t,0))!==null&&i!==void 0?i:F)===Ue)return;const a=this._$AH,r=e===F&&a!==F||e.capture!==a.capture||e.once!==a.once||e.passive!==a.passive,n=e!==F&&(a===F||r);r&&this.element.removeEventListener(this.name,this,a),n&&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 Ur{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){st(this,e)}}const Ws=di.litHtmlPolyfillSupport;Ws==null||Ws(At,zt),((Ri=di.litHtmlVersions)!==null&&Ri!==void 0?Ri:di.litHtmlVersions=[]).push("2.8.0");const Gr=(s,e,t)=>{var i,a;const r=(i=t==null?void 0:t.renderBefore)!==null&&i!==void 0?i:e;let n=r._$litPart$;if(n===void 0){const o=(a=t==null?void 0:t.renderBefore)!==null&&a!==void 0?a:null;r._$litPart$=n=new zt(e.insertBefore(Ct(),o),o,void 0,t??{})}return n._$AI(s),n};var Pi,Di;let Ee=class extends et{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=Gr(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 Ue}};Ee.finalized=!0,Ee._$litElement$=!0,(Pi=globalThis.litElementHydrateSupport)===null||Pi===void 0||Pi.call(globalThis,{LitElement:Ee});const Ks=globalThis.litElementPolyfillSupport;Ks==null||Ks({LitElement:Ee});((Di=globalThis.litElementVersions)!==null&&Di!==void 0?Di:globalThis.litElementVersions=[]).push("3.3.3");const Wr=(s,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,s)}}:{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,s)}},Kr=(s,e,t)=>{e.constructor.createProperty(t,s)};function v(s){return(e,t)=>t!==void 0?Kr(s,e,t):Wr(s,e)}var re="top",ue="bottom",he="right",oe="left",hs="auto",jt=[re,ue,he,oe],at="start",kt="end",qr="clippingParents",Da="viewport",Nt="popper",Jr="reference",qs=jt.reduce(function(s,e){return s.concat([e+"-"+at,e+"-"+kt])},[]),Ba=[].concat(jt,[hs]).reduce(function(s,e){return s.concat([e,e+"-"+at,e+"-"+kt])},[]),Zr="beforeRead",Xr="read",Yr="afterRead",Qr="beforeMain",eo="main",to="afterMain",io="beforeWrite",so="write",ao="afterWrite",no=[Zr,Xr,Yr,Qr,eo,to,io,so,ao];function _e(s){return s?(s.nodeName||"").toLowerCase():null}function me(s){if(s==null)return window;if(s.toString()!=="[object Window]"){var e=s.ownerDocument;return e&&e.defaultView||window}return s}function Ge(s){var e=me(s).Element;return s instanceof e||s instanceof Element}function de(s){var e=me(s).HTMLElement;return s instanceof e||s instanceof HTMLElement}function fs(s){if(typeof ShadowRoot>"u")return!1;var e=me(s).ShadowRoot;return s instanceof e||s instanceof ShadowRoot}function ro(s){var e=s.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},a=e.attributes[t]||{},r=e.elements[t];!de(r)||!_e(r)||(Object.assign(r.style,i),Object.keys(a).forEach(function(n){var o=a[n];o===!1?r.removeAttribute(n):r.setAttribute(n,o===!0?"":o)}))})}function oo(s){var e=s.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(i){var a=e.elements[i],r=e.attributes[i]||{},n=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:t[i]),o=n.reduce(function(l,c){return l[c]="",l},{});!de(a)||!_e(a)||(Object.assign(a.style,o),Object.keys(r).forEach(function(l){a.removeAttribute(l)}))})}}const lo={name:"applyStyles",enabled:!0,phase:"write",fn:ro,effect:oo,requires:["computeStyles"]};function we(s){return s.split("-")[0]}var Ve=Math.max,ui=Math.min,nt=Math.round;function Wi(){var s=navigator.userAgentData;return s!=null&&s.brands&&Array.isArray(s.brands)?s.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Ta(){return!/^((?!chrome|android).)*safari/i.test(Wi())}function rt(s,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var i=s.getBoundingClientRect(),a=1,r=1;e&&de(s)&&(a=s.offsetWidth>0&&nt(i.width)/s.offsetWidth||1,r=s.offsetHeight>0&&nt(i.height)/s.offsetHeight||1);var n=Ge(s)?me(s):window,o=n.visualViewport,l=!Ta()&&t,c=(i.left+(l&&o?o.offsetLeft:0))/a,m=(i.top+(l&&o?o.offsetTop:0))/r,u=i.width/a,h=i.height/r;return{width:u,height:h,top:m,right:c+u,bottom:m+h,left:c,x:c,y:m}}function ps(s){var e=rt(s),t=s.offsetWidth,i=s.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:s.offsetLeft,y:s.offsetTop,width:t,height:i}}function za(s,e){var t=e.getRootNode&&e.getRootNode();if(s.contains(e))return!0;if(t&&fs(t)){var i=e;do{if(i&&s.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ae(s){return me(s).getComputedStyle(s)}function co(s){return["table","td","th"].indexOf(_e(s))>=0}function Le(s){return((Ge(s)?s.ownerDocument:s.document)||window.document).documentElement}function xi(s){return _e(s)==="html"?s:s.assignedSlot||s.parentNode||(fs(s)?s.host:null)||Le(s)}function Js(s){return!de(s)||Ae(s).position==="fixed"?null:s.offsetParent}function mo(s){var e=/firefox/i.test(Wi()),t=/Trident/i.test(Wi());if(t&&de(s)){var i=Ae(s);if(i.position==="fixed")return null}var a=xi(s);for(fs(a)&&(a=a.host);de(a)&&["html","body"].indexOf(_e(a))<0;){var r=Ae(a);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return a;a=a.parentNode}return null}function Vt(s){for(var e=me(s),t=Js(s);t&&co(t)&&Ae(t).position==="static";)t=Js(t);return t&&(_e(t)==="html"||_e(t)==="body"&&Ae(t).position==="static")?e:t||mo(s)||e}function gs(s){return["top","bottom"].indexOf(s)>=0?"x":"y"}function wt(s,e,t){return Ve(s,ui(e,t))}function uo(s,e,t){var i=wt(s,e,t);return i>t?t:i}function ja(){return{top:0,right:0,bottom:0,left:0}}function Va(s){return Object.assign({},ja(),s)}function Fa(s,e){return e.reduce(function(t,i){return t[i]=s,t},{})}var ho=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Va(typeof e!="number"?e:Fa(e,jt))};function fo(s){var e,t=s.state,i=s.name,a=s.options,r=t.elements.arrow,n=t.modifiersData.popperOffsets,o=we(t.placement),l=gs(o),c=[oe,he].indexOf(o)>=0,m=c?"height":"width";if(!(!r||!n)){var u=ho(a.padding,t),h=ps(r),g=l==="y"?re:oe,_=l==="y"?ue:he,y=t.rects.reference[m]+t.rects.reference[l]-n[l]-t.rects.popper[m],f=n[l]-t.rects.reference[l],A=Vt(r),M=A?l==="y"?A.clientHeight||0:A.clientWidth||0:0,I=y/2-f/2,x=u[g],E=M-h[m]-u[_],$=M/2-h[m]/2+I,R=wt(x,$,E),P=l;t.modifiersData[i]=(e={},e[P]=R,e.centerOffset=R-$,e)}}function po(s){var e=s.state,t=s.options,i=t.element,a=i===void 0?"[data-popper-arrow]":i;a!=null&&(typeof a=="string"&&(a=e.elements.popper.querySelector(a),!a)||za(e.elements.popper,a)&&(e.elements.arrow=a))}const go={name:"arrow",enabled:!0,phase:"main",fn:fo,effect:po,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ot(s){return s.split("-")[1]}var No={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bo(s,e){var t=s.x,i=s.y,a=e.devicePixelRatio||1;return{x:nt(t*a)/a||0,y:nt(i*a)/a||0}}function Zs(s){var e,t=s.popper,i=s.popperRect,a=s.placement,r=s.variation,n=s.offsets,o=s.position,l=s.gpuAcceleration,c=s.adaptive,m=s.roundOffsets,u=s.isFixed,h=n.x,g=h===void 0?0:h,_=n.y,y=_===void 0?0:_,f=typeof m=="function"?m({x:g,y}):{x:g,y};g=f.x,y=f.y;var A=n.hasOwnProperty("x"),M=n.hasOwnProperty("y"),I=oe,x=re,E=window;if(c){var $=Vt(t),R="clientHeight",P="clientWidth";if($===me(t)&&($=Le(t),Ae($).position!=="static"&&o==="absolute"&&(R="scrollHeight",P="scrollWidth")),$=$,a===re||(a===oe||a===he)&&r===kt){x=ue;var O=u&&$===E&&E.visualViewport?E.visualViewport.height:$[R];y-=O-i.height,y*=l?1:-1}if(a===oe||(a===re||a===ue)&&r===kt){I=he;var T=u&&$===E&&E.visualViewport?E.visualViewport.width:$[P];g-=T-i.width,g*=l?1:-1}}var K=Object.assign({position:o},c&&No),ee=m===!0?bo({x:g,y},me(t)):{x:g,y};if(g=ee.x,y=ee.y,l){var q;return Object.assign({},K,(q={},q[x]=M?"0":"",q[I]=A?"0":"",q.transform=(E.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",q))}return Object.assign({},K,(e={},e[x]=M?y+"px":"",e[I]=A?g+"px":"",e.transform="",e))}function vo(s){var e=s.state,t=s.options,i=t.gpuAcceleration,a=i===void 0?!0:i,r=t.adaptive,n=r===void 0?!0:r,o=t.roundOffsets,l=o===void 0?!0:o,c={placement:we(e.placement),variation:ot(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Zs(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:n,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Zs(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const yo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:vo,data:{}};var Kt={passive:!0};function xo(s){var e=s.state,t=s.instance,i=s.options,a=i.scroll,r=a===void 0?!0:a,n=i.resize,o=n===void 0?!0:n,l=me(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&c.forEach(function(m){m.addEventListener("scroll",t.update,Kt)}),o&&l.addEventListener("resize",t.update,Kt),function(){r&&c.forEach(function(m){m.removeEventListener("scroll",t.update,Kt)}),o&&l.removeEventListener("resize",t.update,Kt)}}const wo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:xo,data:{}};var _o={left:"right",right:"left",bottom:"top",top:"bottom"};function ri(s){return s.replace(/left|right|bottom|top/g,function(e){return _o[e]})}var So={start:"end",end:"start"};function Xs(s){return s.replace(/start|end/g,function(e){return So[e]})}function Ns(s){var e=me(s),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function bs(s){return rt(Le(s)).left+Ns(s).scrollLeft}function Co(s,e){var t=me(s),i=Le(s),a=t.visualViewport,r=i.clientWidth,n=i.clientHeight,o=0,l=0;if(a){r=a.width,n=a.height;var c=Ta();(c||!c&&e==="fixed")&&(o=a.offsetLeft,l=a.offsetTop)}return{width:r,height:n,x:o+bs(s),y:l}}function Eo(s){var e,t=Le(s),i=Ns(s),a=(e=s.ownerDocument)==null?void 0:e.body,r=Ve(t.scrollWidth,t.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),n=Ve(t.scrollHeight,t.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),o=-i.scrollLeft+bs(s),l=-i.scrollTop;return Ae(a||t).direction==="rtl"&&(o+=Ve(t.clientWidth,a?a.clientWidth:0)-r),{width:r,height:n,x:o,y:l}}function vs(s){var e=Ae(s),t=e.overflow,i=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+a+i)}function Ha(s){return["html","body","#document"].indexOf(_e(s))>=0?s.ownerDocument.body:de(s)&&vs(s)?s:Ha(xi(s))}function _t(s,e){var t;e===void 0&&(e=[]);var i=Ha(s),a=i===((t=s.ownerDocument)==null?void 0:t.body),r=me(i),n=a?[r].concat(r.visualViewport||[],vs(i)?i:[]):i,o=e.concat(n);return a?o:o.concat(_t(xi(n)))}function Ki(s){return Object.assign({},s,{left:s.x,top:s.y,right:s.x+s.width,bottom:s.y+s.height})}function Ao(s,e){var t=rt(s,!1,e==="fixed");return t.top=t.top+s.clientTop,t.left=t.left+s.clientLeft,t.bottom=t.top+s.clientHeight,t.right=t.left+s.clientWidth,t.width=s.clientWidth,t.height=s.clientHeight,t.x=t.left,t.y=t.top,t}function Ys(s,e,t){return e===Da?Ki(Co(s,t)):Ge(e)?Ao(e,t):Ki(Eo(Le(s)))}function ko(s){var e=_t(xi(s)),t=["absolute","fixed"].indexOf(Ae(s).position)>=0,i=t&&de(s)?Vt(s):s;return Ge(i)?e.filter(function(a){return Ge(a)&&za(a,i)&&_e(a)!=="body"}):[]}function $o(s,e,t,i){var a=e==="clippingParents"?ko(s):[].concat(e),r=[].concat(a,[t]),n=r[0],o=r.reduce(function(l,c){var m=Ys(s,c,i);return l.top=Ve(m.top,l.top),l.right=ui(m.right,l.right),l.bottom=ui(m.bottom,l.bottom),l.left=Ve(m.left,l.left),l},Ys(s,n,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Ua(s){var e=s.reference,t=s.element,i=s.placement,a=i?we(i):null,r=i?ot(i):null,n=e.x+e.width/2-t.width/2,o=e.y+e.height/2-t.height/2,l;switch(a){case re:l={x:n,y:e.y-t.height};break;case ue:l={x:n,y:e.y+e.height};break;case he:l={x:e.x+e.width,y:o};break;case oe:l={x:e.x-t.width,y:o};break;default:l={x:e.x,y:e.y}}var c=a?gs(a):null;if(c!=null){var m=c==="y"?"height":"width";switch(r){case at:l[c]=l[c]-(e[m]/2-t[m]/2);break;case kt:l[c]=l[c]+(e[m]/2-t[m]/2);break}}return l}function $t(s,e){e===void 0&&(e={});var t=e,i=t.placement,a=i===void 0?s.placement:i,r=t.strategy,n=r===void 0?s.strategy:r,o=t.boundary,l=o===void 0?qr:o,c=t.rootBoundary,m=c===void 0?Da:c,u=t.elementContext,h=u===void 0?Nt:u,g=t.altBoundary,_=g===void 0?!1:g,y=t.padding,f=y===void 0?0:y,A=Va(typeof f!="number"?f:Fa(f,jt)),M=h===Nt?Jr:Nt,I=s.rects.popper,x=s.elements[_?M:h],E=$o(Ge(x)?x:x.contextElement||Le(s.elements.popper),l,m,n),$=rt(s.elements.reference),R=Ua({reference:$,element:I,strategy:"absolute",placement:a}),P=Ki(Object.assign({},I,R)),O=h===Nt?P:$,T={top:E.top-O.top+A.top,bottom:O.bottom-E.bottom+A.bottom,left:E.left-O.left+A.left,right:O.right-E.right+A.right},K=s.modifiersData.offset;if(h===Nt&&K){var ee=K[a];Object.keys(T).forEach(function(q){var fe=[he,ue].indexOf(q)>=0?1:-1,te=[re,ue].indexOf(q)>=0?"y":"x";T[q]+=ee[te]*fe})}return T}function Oo(s,e){e===void 0&&(e={});var t=e,i=t.placement,a=t.boundary,r=t.rootBoundary,n=t.padding,o=t.flipVariations,l=t.allowedAutoPlacements,c=l===void 0?Ba:l,m=ot(i),u=m?o?qs:qs.filter(function(_){return ot(_)===m}):jt,h=u.filter(function(_){return c.indexOf(_)>=0});h.length===0&&(h=u);var g=h.reduce(function(_,y){return _[y]=$t(s,{placement:y,boundary:a,rootBoundary:r,padding:n})[we(y)],_},{});return Object.keys(g).sort(function(_,y){return g[_]-g[y]})}function Mo(s){if(we(s)===hs)return[];var e=ri(s);return[Xs(s),e,Xs(e)]}function Io(s){var e=s.state,t=s.options,i=s.name;if(!e.modifiersData[i]._skip){for(var a=t.mainAxis,r=a===void 0?!0:a,n=t.altAxis,o=n===void 0?!0:n,l=t.fallbackPlacements,c=t.padding,m=t.boundary,u=t.rootBoundary,h=t.altBoundary,g=t.flipVariations,_=g===void 0?!0:g,y=t.allowedAutoPlacements,f=e.options.placement,A=we(f),M=A===f,I=l||(M||!_?[ri(f)]:Mo(f)),x=[f].concat(I).reduce(function(pe,U){return pe.concat(we(U)===hs?Oo(e,{placement:U,boundary:m,rootBoundary:u,padding:c,flipVariations:_,allowedAutoPlacements:y}):U)},[]),E=e.rects.reference,$=e.rects.popper,R=new Map,P=!0,O=x[0],T=0;T<x.length;T++){var K=x[T],ee=we(K),q=ot(K)===at,fe=[re,ue].indexOf(ee)>=0,te=fe?"width":"height",Z=$t(e,{placement:K,boundary:m,rootBoundary:u,altBoundary:h,padding:c}),d=fe?q?he:oe:q?ue:re;E[te]>$[te]&&(d=ri(d));var N=ri(d),w=[];if(r&&w.push(Z[ee]<=0),o&&w.push(Z[d]<=0,Z[N]<=0),w.every(function(pe){return pe})){O=K,P=!1;break}R.set(K,w)}if(P)for(var k=_?3:1,z=function(U){var X=x.find(function(De){var be=R.get(De);if(be)return be.slice(0,U).every(function(qe){return qe})});if(X)return O=X,"break"},J=k;J>0;J--){var le=z(J);if(le==="break")break}e.placement!==O&&(e.modifiersData[i]._skip=!0,e.placement=O,e.reset=!0)}}const Ro={name:"flip",enabled:!0,phase:"main",fn:Io,requiresIfExists:["offset"],data:{_skip:!1}};function Qs(s,e,t){return t===void 0&&(t={x:0,y:0}),{top:s.top-e.height-t.y,right:s.right-e.width+t.x,bottom:s.bottom-e.height+t.y,left:s.left-e.width-t.x}}function ea(s){return[re,he,ue,oe].some(function(e){return s[e]>=0})}function Lo(s){var e=s.state,t=s.name,i=e.rects.reference,a=e.rects.popper,r=e.modifiersData.preventOverflow,n=$t(e,{elementContext:"reference"}),o=$t(e,{altBoundary:!0}),l=Qs(n,i),c=Qs(o,a,r),m=ea(l),u=ea(c);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:m,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":u})}const Po={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Lo};function Do(s,e,t){var i=we(s),a=[oe,re].indexOf(i)>=0?-1:1,r=typeof t=="function"?t(Object.assign({},e,{placement:s})):t,n=r[0],o=r[1];return n=n||0,o=(o||0)*a,[oe,he].indexOf(i)>=0?{x:o,y:n}:{x:n,y:o}}function Bo(s){var e=s.state,t=s.options,i=s.name,a=t.offset,r=a===void 0?[0,0]:a,n=Ba.reduce(function(m,u){return m[u]=Do(u,e.rects,r),m},{}),o=n[e.placement],l=o.x,c=o.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=n}const To={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Bo};function zo(s){var e=s.state,t=s.name;e.modifiersData[t]=Ua({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const jo={name:"popperOffsets",enabled:!0,phase:"read",fn:zo,data:{}};function Vo(s){return s==="x"?"y":"x"}function Fo(s){var e=s.state,t=s.options,i=s.name,a=t.mainAxis,r=a===void 0?!0:a,n=t.altAxis,o=n===void 0?!1:n,l=t.boundary,c=t.rootBoundary,m=t.altBoundary,u=t.padding,h=t.tether,g=h===void 0?!0:h,_=t.tetherOffset,y=_===void 0?0:_,f=$t(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:m}),A=we(e.placement),M=ot(e.placement),I=!M,x=gs(A),E=Vo(x),$=e.modifiersData.popperOffsets,R=e.rects.reference,P=e.rects.popper,O=typeof y=="function"?y(Object.assign({},e.rects,{placement:e.placement})):y,T=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),K=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,ee={x:0,y:0};if($){if(r){var q,fe=x==="y"?re:oe,te=x==="y"?ue:he,Z=x==="y"?"height":"width",d=$[x],N=d+f[fe],w=d-f[te],k=g?-P[Z]/2:0,z=M===at?R[Z]:P[Z],J=M===at?-P[Z]:-R[Z],le=e.elements.arrow,pe=g&&le?ps(le):{width:0,height:0},U=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:ja(),X=U[fe],De=U[te],be=wt(0,R[Z],pe[Z]),qe=I?R[Z]/2-k-be-X-T.mainAxis:z-be-X-T.mainAxis,$i=I?-R[Z]/2+k+be+De+T.mainAxis:J+be+De+T.mainAxis,ft=e.elements.arrow&&Vt(e.elements.arrow),Oi=ft?x==="y"?ft.clientTop||0:ft.clientLeft||0:0,Ut=(q=K==null?void 0:K[x])!=null?q:0,Je=d+qe-Ut-Oi,Gt=d+$i-Ut,ce=wt(g?ui(N,Je):N,d,g?Ve(w,Gt):w);$[x]=ce,ee[x]=ce-d}if(o){var Wt,pt=x==="x"?re:oe,S=x==="x"?ue:he,ve=$[E],G=E==="y"?"height":"width",D=ve+f[pt],Be=ve-f[S],ge=[re,oe].indexOf(A)!==-1,Ze=(Wt=K==null?void 0:K[E])!=null?Wt:0,Xe=ge?D:ve-R[G]-P[G]-Ze+T.altAxis,p=ge?ve+R[G]+P[G]-Ze-T.altAxis:Be,b=g&&ge?uo(Xe,ve,p):wt(g?Xe:D,ve,g?p:Be);$[E]=b,ee[E]=b-ve}e.modifiersData[i]=ee}}const Ho={name:"preventOverflow",enabled:!0,phase:"main",fn:Fo,requiresIfExists:["offset"]};function Uo(s){return{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}}function Go(s){return s===me(s)||!de(s)?Ns(s):Uo(s)}function Wo(s){var e=s.getBoundingClientRect(),t=nt(e.width)/s.offsetWidth||1,i=nt(e.height)/s.offsetHeight||1;return t!==1||i!==1}function Ko(s,e,t){t===void 0&&(t=!1);var i=de(e),a=de(e)&&Wo(e),r=Le(e),n=rt(s,a,t),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!t)&&((_e(e)!=="body"||vs(r))&&(o=Go(e)),de(e)?(l=rt(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):r&&(l.x=bs(r))),{x:n.left+o.scrollLeft-l.x,y:n.top+o.scrollTop-l.y,width:n.width,height:n.height}}function qo(s){var e=new Map,t=new Set,i=[];s.forEach(function(r){e.set(r.name,r)});function a(r){t.add(r.name);var n=[].concat(r.requires||[],r.requiresIfExists||[]);n.forEach(function(o){if(!t.has(o)){var l=e.get(o);l&&a(l)}}),i.push(r)}return s.forEach(function(r){t.has(r.name)||a(r)}),i}function Jo(s){var e=qo(s);return no.reduce(function(t,i){return t.concat(e.filter(function(a){return a.phase===i}))},[])}function Zo(s){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(s())})})),e}}function Xo(s){var e=s.reduce(function(t,i){var a=t[i.name];return t[i.name]=a?Object.assign({},a,i,{options:Object.assign({},a.options,i.options),data:Object.assign({},a.data,i.data)}):i,t},{});return Object.keys(e).map(function(t){return e[t]})}var ta={placement:"bottom",modifiers:[],strategy:"absolute"};function ia(){for(var s=arguments.length,e=new Array(s),t=0;t<s;t++)e[t]=arguments[t];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Yo(s){s===void 0&&(s={});var e=s,t=e.defaultModifiers,i=t===void 0?[]:t,a=e.defaultOptions,r=a===void 0?ta:a;return function(o,l,c){c===void 0&&(c=r);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},ta,r),modifiersData:{},elements:{reference:o,popper:l},attributes:{},styles:{}},u=[],h=!1,g={state:m,setOptions:function(A){var M=typeof A=="function"?A(m.options):A;y(),m.options=Object.assign({},r,m.options,M),m.scrollParents={reference:Ge(o)?_t(o):o.contextElement?_t(o.contextElement):[],popper:_t(l)};var I=Jo(Xo([].concat(i,m.options.modifiers)));return m.orderedModifiers=I.filter(function(x){return x.enabled}),_(),g.update()},forceUpdate:function(){if(!h){var A=m.elements,M=A.reference,I=A.popper;if(ia(M,I)){m.rects={reference:Ko(M,Vt(I),m.options.strategy==="fixed"),popper:ps(I)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach(function(T){return m.modifiersData[T.name]=Object.assign({},T.data)});for(var x=0;x<m.orderedModifiers.length;x++){if(m.reset===!0){m.reset=!1,x=-1;continue}var E=m.orderedModifiers[x],$=E.fn,R=E.options,P=R===void 0?{}:R,O=E.name;typeof $=="function"&&(m=$({state:m,options:P,name:O,instance:g})||m)}}}},update:Zo(function(){return new Promise(function(f){g.forceUpdate(),f(m)})}),destroy:function(){y(),h=!0}};if(!ia(o,l))return g;g.setOptions(c).then(function(f){!h&&c.onFirstUpdate&&c.onFirstUpdate(f)});function _(){m.orderedModifiers.forEach(function(f){var A=f.name,M=f.options,I=M===void 0?{}:M,x=f.effect;if(typeof x=="function"){var E=x({state:m,name:A,instance:g,options:I}),$=function(){};u.push(E||$)}})}function y(){u.forEach(function(f){return f()}),u=[]}return g}}var Qo=[wo,jo,yo,lo,To,Ro,Ho,go,Po],el=Yo({defaultModifiers:Qo});const ie=s=>s??F,tl=":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}",il="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",sl="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",al="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 nl=Object.defineProperty,rl=Object.getOwnPropertyDescriptor,ys=(s,e,t,i)=>{for(var a=i>1?void 0:i?rl(e,t):e,r=s.length-1,n;r>=0;r--)(n=s[r])&&(a=(i?n(e,t,a):n(a))||a);return i&&a&&nl(e,t,a),a},Ye;const Ot=(Ye=class extends Ee{static parseLevel(s){if(s){const e=Object.keys(hi).find(t=>t.toLowerCase()===s.toLowerCase());return e&&hi[e]}}static get styles(){return[Tt`
1399
1419
  ${ht(tl)}
1400
- `]}render(){return ne`${this.iconToUse&&ne`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(i){return i.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(i)}get iconForLevel(){switch(Ye.parseLevel(this.level)){case"warn":return al;case"suggest":return sl;case"error":return il;default:return null}}},Ye.ID="sd-field-validation-message",Ye.levelConverter={fromAttribute(i){return Ye.parseLevel(i)},toAttribute(i){return i&&i.toLowerCase()}},Ye);ys([v({type:String,attribute:!0})],Ot.prototype,"message",2);ys([v({type:String,attribute:!0})],Ot.prototype,"icon",2);ys([v({converter:Ot.levelConverter,reflect:!0})],Ot.prototype,"level",2);let Bi=Ot;var hi=(i=>(i.Warn="warn",i.Suggest="suggest",i.Error="error",i))(hi||{});customElements.get(Bi.ID)||customElements.define(Bi.ID,Bi);const ol=":host{display:inline-flex;position:relative;cursor:text;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;font-size:16px;color:#111;contain:layout style;flex-direction:column}:host([hidden]),:host([type=hidden]){display:none!important}:host([effective-disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([effective-disabled]) .unfocused-line,:host([effective-disabled]) .focused-line{border-bottom-style:dashed}:host(:not([effective-disabled]):focus) .focused-line,:host(:not([effective-disabled])[focused]) .focused-line{transform:none;transition:transform .25s}:host(:not([effective-disabled]):focus) .label.float,:host(:not([effective-disabled])[focused]) .label.float{color:var(--sd-input-focused-color, #1467ba)}:host([inactive]) .input{pointer-events:none}:host([effective-disabled]:focus),:host([effective-disabled][focused]){box-shadow:0 0 0 1px #111}:host(:not([effective-disabled])[validationlevel]) .focused-line,:host(:not([effective-disabled]):invalid) .focused-line{transform:none;transition:transform .25s}:host([validationlevel=warn i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn i]) .label,:host([validationlevel=warn i]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest i]) .label,:host([validationlevel=suggest i]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error i]) .focused-line,:host(:not([validationlevel]):invalid) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error i]) .label,:host([validationlevel=error i]) .validation-message,:host(:not([validationlevel]):invalid) .label,:host(:not([validationlevel]):invalid) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}.validation-message-wrapper{position:relative}.validation-message{position:absolute;left:0;right:0}.label.float{transform:translateY(-75%) scale(.75);width:133%}.label:not(.float){max-width:100%}.floated-label-placeholder{height:20px;width:100%}.label{position:absolute;top:0;left:0;line-height:24px;pointer-events:none;color:var(--sd-input-color, #767676);transition:transform .25s,width .25s;transform-origin:left top}.input-wrapper{position:relative;display:flex;flex-direction:row;align-items:center;background-color:var(--input-wrapper-background-color)}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-wrapper{flex-direction:column;align-items:baseline}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-container{width:100%}:host([extended-prefix]:not(:focus-within)) .input-container,:host([extended-prefix][effective-disabled]) .input-container{width:0px}.input-container{line-height:var(--sd-input-line-height, 24px);flex:1 1 auto}.input{width:100%;background:var(--sd-input-background, transparent);font-family:inherit;font-size:inherit;text-align:inherit;color:inherit;border:none;outline:none;resize:none;padding-left:0;padding-right:0}.input:-webkit-autofill{animation-name:onautofillstart}.input:not(:-webkit-autofill){animation-name:onautofillcancel}@keyframes onautofillstart{0%{outline:none}}@keyframes onautofillcancel{0%{outline:none}}.label,input.input,.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.input::placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;top:0;right:0;bottom:0;left:0}.unfocused-line{border-bottom:1px solid var(--sd-input-underline-color, #959595)}.focused-line{border-bottom:2px solid var(--sd-input-focused-color, #1467ba);transform-origin:center center;transform:scale3d(0,1,1)}.prefix,.suffix{display:flex;flex-wrap:nowrap;max-width:100%}.prefix ::slotted(*),.suffix ::slotted(*){display:flex}";var ll=Object.defineProperty,cl=Object.getOwnPropertyDescriptor,W=(i,e,t,s)=>{for(var a=s>1?void 0:s?cl(e,t):e,r=i.length-1,n;r>=0;r--)(n=i[r])&&(a=(s?n(e,t,a):n(a))||a);return s&&a&&ll(e,t,a),a};const ml="sd-lit-input",sa="delegatesFocus"in window.ShadowRoot.prototype;let dl=0;var ye;const H=(ye=class extends Ee{constructor(){super(),this.rows=1,this.effectiveDisabled=!1,this.type="text",this.autocomplete="off";const i=dl++;this._validationMessageId=ye.ID+"_message_"+i,this._inputId=ye.ID+"_input_"+i,this.attachInternals&&!this.activeShadyDOM&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabIndex")||(this.tabIndex=0)}firstUpdated(i){super.firstUpdated(i),this.initAutocompleted(this.inputElement),this.updateInitialValue(),this.updateFormValidity(),this.hasAttribute("disabled")&&(this.disabled=!0),this.inputElement.oninput=e=>{this.autocompleted=e.inputType==="insertReplacementText"||!("data"in e),this.currentText=this.inputElement.value,this.fireValueChange(!0)},this.inputElement.onchange=()=>this.fireValueChange(),sa||(this.inputElement.onfocus=()=>this.setAttribute("focused",""),this.inputElement.onblur=()=>this.removeAttribute("focused"),this.addEventListener("focus",e=>{e.target===this&&this.inputElement.focus()})),this.inputElement.addEventListener("keyup",()=>{this.updateFormValidity()}),this.addEventListener("keydown",e=>{var t,s;e.key=="Enter"&&((s=(t=this._internals)==null?void 0:t.form)==null||s.requestSubmit())}),this._initialized=!0}initAutocompleted(i){const e=t=>{/^onautofillstart(-sd-lit-input-\d+|\s?)$/.test(t.animationName)?this.autocompleted=!0:/^onautofillcancel(-sd-lit-input-\d+|\s?)$/.test(t.animationName)&&(this.autocompleted=!1)};this.activeShadyDOM?(this._needsAutocompletedCheck=!0,this.activeShadyDOM.nativeMethods.addEventListener.call(i,"animationstart",e)):i.addEventListener("animationstart",e)}get activeShadyDOM(){const i=window.ShadyDOM;return i&&i.inUse?i: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(i){i?this.setAttribute("disabled",""):this.removeAttribute("disabled"),this._internals||(this.effectiveDisabled=i)}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(i){this.currentText=i||"",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(i,e){this.updateComplete.then(()=>{this.inputElement&&this.inputElement.setSelectionRange(i,e)})}static get styles(){return[Tt`
1420
+ `]}render(){return ne`${this.iconToUse&&ne`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(s){return s.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(s)}get iconForLevel(){switch(Ye.parseLevel(this.level)){case"warn":return al;case"suggest":return sl;case"error":return il;default:return null}}},Ye.ID="sd-field-validation-message",Ye.levelConverter={fromAttribute(s){return Ye.parseLevel(s)},toAttribute(s){return s&&s.toLowerCase()}},Ye);ys([v({type:String,attribute:!0})],Ot.prototype,"message",2);ys([v({type:String,attribute:!0})],Ot.prototype,"icon",2);ys([v({converter:Ot.levelConverter,reflect:!0})],Ot.prototype,"level",2);let Bi=Ot;var hi=(s=>(s.Warn="warn",s.Suggest="suggest",s.Error="error",s))(hi||{});customElements.get(Bi.ID)||customElements.define(Bi.ID,Bi);const ol=":host{display:inline-flex;position:relative;cursor:text;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;font-size:16px;color:#111;contain:layout style;flex-direction:column}:host([hidden]),:host([type=hidden]){display:none!important}:host([effective-disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([effective-disabled]) .unfocused-line,:host([effective-disabled]) .focused-line{border-bottom-style:dashed}:host(:not([effective-disabled]):focus) .focused-line,:host(:not([effective-disabled])[focused]) .focused-line{transform:none;transition:transform .25s}:host(:not([effective-disabled]):focus) .label.float,:host(:not([effective-disabled])[focused]) .label.float{color:var(--sd-input-focused-color, #1467ba)}:host([inactive]) .input{pointer-events:none}:host([effective-disabled]:focus),:host([effective-disabled][focused]){box-shadow:0 0 0 1px #111}:host(:not([effective-disabled])[validationlevel]) .focused-line,:host(:not([effective-disabled]):invalid) .focused-line{transform:none;transition:transform .25s}:host([validationlevel=warn i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn i]) .label,:host([validationlevel=warn i]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest i]) .label,:host([validationlevel=suggest i]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error i]) .focused-line,:host(:not([validationlevel]):invalid) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error i]) .label,:host([validationlevel=error i]) .validation-message,:host(:not([validationlevel]):invalid) .label,:host(:not([validationlevel]):invalid) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}.validation-message-wrapper{min-height:var(--sd-input-validation-message-minheight, 0px);position:relative;font-size:0}.validation-message{position:relative;position:var(--sd-input-validation-message-minheight, 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:normal;white-space:var(--sd-input-validation-message-minheight, nowrap)}.input::placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;top:0;right:0;bottom:0;left:0}.unfocused-line{border-bottom:1px solid var(--sd-input-underline-color, #959595)}.focused-line{border-bottom:2px solid var(--sd-input-focused-color, #1467ba);transform-origin:center center;transform:scale3d(0,1,1)}.prefix,.suffix{display:flex;flex-wrap:nowrap;max-width:100%}.prefix ::slotted(*),.suffix ::slotted(*){display:flex}";var ll=Object.defineProperty,cl=Object.getOwnPropertyDescriptor,W=(s,e,t,i)=>{for(var a=i>1?void 0:i?cl(e,t):e,r=s.length-1,n;r>=0;r--)(n=s[r])&&(a=(i?n(e,t,a):n(a))||a);return i&&a&&ll(e,t,a),a};const ml="sd-lit-input",sa="delegatesFocus"in window.ShadowRoot.prototype;let dl=0;var ye;const H=(ye=class extends Ee{constructor(){super(),this.rows=1,this.effectiveDisabled=!1,this.type="text",this.autocomplete="off";const s=dl++;this._validationMessageId=ye.ID+"_message_"+s,this._inputId=ye.ID+"_input_"+s,this.attachInternals&&!this.activeShadyDOM&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabIndex")||(this.tabIndex=0)}firstUpdated(s){super.firstUpdated(s),this.initAutocompleted(this.inputElement),this.updateInitialValue(),this.updateFormValidity(),this.hasAttribute("disabled")&&(this.disabled=!0),this.inputElement.oninput=e=>{this.autocompleted=e.inputType==="insertReplacementText"||!("data"in e),this.currentText=this.inputElement.value,this.fireValueChange(!0)},this.inputElement.onchange=()=>this.fireValueChange(),sa||(this.inputElement.onfocus=()=>this.setAttribute("focused",""),this.inputElement.onblur=()=>this.removeAttribute("focused"),this.addEventListener("focus",e=>{e.target===this&&this.inputElement.focus()})),this.inputElement.addEventListener("keyup",()=>{this.updateFormValidity()}),this.addEventListener("keydown",e=>{var t,i;e.key=="Enter"&&((i=(t=this._internals)==null?void 0:t.form)==null||i.requestSubmit())}),this._initialized=!0}initAutocompleted(s){const e=t=>{/^onautofillstart(-sd-lit-input-\d+|\s?)$/.test(t.animationName)?this.autocompleted=!0:/^onautofillcancel(-sd-lit-input-\d+|\s?)$/.test(t.animationName)&&(this.autocompleted=!1)};this.activeShadyDOM?(this._needsAutocompletedCheck=!0,this.activeShadyDOM.nativeMethods.addEventListener.call(s,"animationstart",e)):s.addEventListener("animationstart",e)}get activeShadyDOM(){const s=window.ShadyDOM;return s&&s.inUse?s: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(s){s?this.setAttribute("disabled",""):this.removeAttribute("disabled"),this._internals||(this.effectiveDisabled=s)}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(s){this.currentText=s||"",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(s,e){this.updateComplete.then(()=>{this.inputElement&&this.inputElement.setSelectionRange(s,e)})}static get styles(){return[Tt`
1401
1421
  ${ht(ol)}
1402
- `]}render(){var i;let e;const t=this.validationMessage||((i=this.inputElement)==null?void 0:i.validationMessage),s=t||this.validationLevel!=null;return this.rows===1?e=ne`
1422
+ `]}render(){var s;let e;const t=this.validationMessage||((s=this.inputElement)==null?void 0:s.validationMessage),i=t||this.validationLevel!=null;return this.rows===1?e=ne`
1403
1423
  <input
1404
1424
  id=${this._inputId}
1405
1425
  class="input"
@@ -1413,7 +1433,7 @@ function updateMandatory(combobox: ComboBox) {
1413
1433
  ?required=${this.required}
1414
1434
  maxlength=${this.maxlength>0?this.maxlength:ye.DEFAULT_MAX_LENGTH}
1415
1435
  aria-describedby=${this._validationMessageId}
1416
- aria-invalid=${ie(s)}
1436
+ aria-invalid=${ie(i)}
1417
1437
  aria-label=${ie(this.sdAriaLabel||void 0)}
1418
1438
  min=${ie(this.min||void 0)}
1419
1439
  max=${ie(this.max||void 0)}
@@ -1433,7 +1453,7 @@ function updateMandatory(combobox: ComboBox) {
1433
1453
  maxlength=${this.maxlength>0?this.maxlength:ye.DEFAULT_MAX_LENGTH}
1434
1454
  rows=${this.rows}
1435
1455
  aria-describedby=${this._validationMessageId}
1436
- aria-invalid=${ie(s)}
1456
+ aria-invalid=${ie(i)}
1437
1457
  aria-label=${ie(this.sdAriaLabel||void 0)}
1438
1458
  ></textarea>
1439
1459
  `,ne`
@@ -1466,11 +1486,11 @@ function updateMandatory(combobox: ComboBox) {
1466
1486
  </sd-field-validation-message>
1467
1487
  `}
1468
1488
  </div>
1469
- `}updated(i){super.updated(i),this._needsAutocompletedCheck&&!this.autocompleted&&setTimeout(()=>{try{this.autocompleted=this.autocompleted||!!this.shadowRoot.querySelector(":-webkit-autofill")}catch{}},0),this.rows>1&&((i.has("min")||i.has("max")||i.has("pattern"))&&console.warn("min, max & pattern attributes are not supported with multiple rows configuration."),this.type!="text"&&console.warn(`type: ${this.type} is not supported with multiple rows configuration.`))}update(i){var e,t;if(super.update(i),i.has("validationMessage")&&(this.validationMessage?(e=this._internals)==null||e.setValidity({customError:!0},this.validationMessage):(t=this._internals)==null||t.setValidity(this.inputElement.validity,this.inputElement.validationMessage)),this._initialized&&i.has("rows"))throw Error("rows attribute cannot be changed after the input is attached to the DOM")}fireValueChange(i){this.dispatchEvent(new CustomEvent(`${i?"immediate-":""}value-change`,{detail:{value:this.value}})),this.setFormValue(this.value),this.updateFormValidity()}updateFormValidity(){if(this.validationMessage==null){this._internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage);const i=this.shadowRoot.querySelector("sd-field-validation-message");this.requestUpdate("validationMessage",i==null?null:i.message)}}shouldFloat(){return this.alwaysFloatLabel||this.currentText||this.placeholder||this.autocompleted||this.type==="date"}setFormValue(i){var e;(e=this._internals)==null||e.setFormValue(i)}formResetCallback(){this.value=this._initialValue}formDisabledCallback(i){this.effectiveDisabled=i||this.hasAttribute("disabled")}formAssociatedCallback(i){this._needsAutocompletedCheck=!0}formStateRestoreCallback(i,e){typeof i=="string"&&(this.value=i)}},ye.ID=ml,ye.DEFAULT_MAX_LENGTH=524288,ye.formAssociated=!0,ye.shadowRootOptions={...Ee.shadowRootOptions,delegatesFocus:sa},ye);W([v({type:String,reflect:!0})],H.prototype,"label",2);W([v({type:String,attribute:!0})],H.prototype,"validationMessage",2);W([v({type:String,attribute:!0})],H.prototype,"validationIconSrc",2);W([v({type:hi,attribute:!0,reflect:!0})],H.prototype,"validationLevel",2);W([v({type:String,hasChanged(i,e){return e!=null&&e!=i}})],H.prototype,"currentText",2);W([v({type:Boolean,attribute:!0})],H.prototype,"alwaysFloatLabel",2);W([v({type:Boolean,attribute:!0})],H.prototype,"autocompleted",2);W([v({type:Number,attribute:!0})],H.prototype,"rows",2);W([v({type:Boolean,reflect:!0,attribute:"effective-disabled"})],H.prototype,"effectiveDisabled",2);W([v({type:Boolean,reflect:!0,attribute:"extended-prefix"})],H.prototype,"extendedPrefix",2);W([v({type:String,reflect:!0})],H.prototype,"type",2);W([v({type:String,reflect:!0})],H.prototype,"placeholder",2);W([v({type:String,reflect:!0})],H.prototype,"sdAriaLabel",2);W([v({type:Number,reflect:!0})],H.prototype,"maxlength",2);W([v({type:Boolean,reflect:!0})],H.prototype,"readonly",2);W([v({type:Boolean,reflect:!0})],H.prototype,"required",2);W([v({type:String,reflect:!0})],H.prototype,"name",2);W([v({type:Boolean,reflect:!0})],H.prototype,"inactive",2);W([v({type:String,attribute:!0})],H.prototype,"autocomplete",2);W([v({type:String,attribute:!0})],H.prototype,"min",2);W([v({type:String,attribute:!0})],H.prototype,"max",2);W([v({type:String,attribute:!0})],H.prototype,"pattern",2);let oi=H;customElements.get(oi.ID)||customElements.define(oi.ID,oi);const ul={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},hl=i=>(...e)=>({_$litDirective$:i,values:e});class fl{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,s){this._$Ct=e,this._$AM=t,this._$Ci=s}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class qi extends fl{constructor(e){if(super(e),this.et=F,e.type!==ul.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===F||e==null)return this.ft=void 0,this.et=e;if(e===Ue)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;const t=[e];return t.raw=t,this.ft={_$litType$:this.constructor.resultType,strings:t,values:[]}}}qi.directiveName="unsafeHTML",qi.resultType=1;const pl=hl(qi);let Ga=class{static showImage(e,t,s,a){let r;if(a||!(e instanceof HTMLImageElement)?r=n=>e.style.backgroundImage=this.prepareSrc(n):r=n=>e.src=n,r(s),t){const n=()=>{r(t)},o=new Image;o.addEventListener("load",n),o.src=t,o.complete&&(o.removeEventListener("load",n),n())}}static prepareSrc(e){return e?e.startsWith("url")?e:`url("${e}")`:null}};const gl=':host{display:block;contain:strict;height:50px}:host([selected]){background-color:#d3e6fa}:host(:not([selected]):hover),:host(:not([selected])[focused]){background-color:#e7f1fa}@media (forced-colors: active){:host([selected]){outline:4px solid}:host(:not([selected]):hover){outline:4px dotted}:host(:not([selected])[focused]){outline:4px dashed}}:host([enable-line-clamp]) .labels>:only-child{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;word-wrap:break-word}.container{display:flex;height:100%;box-sizing:border-box}.container .level-indicator{width:7px;height:100%}.container .level-indicator.level-0{background-color:#a0c3ef}.container .level-indicator.level-1{background-color:#e7c374}.container .level-indicator.level-2{background-color:#bfd596}.container .level-indicator.level-3{background-color:#fd998d}.container .level-indicator.level-4{background-color:#c6e8f5}.container .level-indicator.level-5{background-color:#fde3a4}.container .level-indicator.level-6{background-color:#dcbfe0}.side-content{display:flex;align-items:center;flex-grow:0}.labels{display:flex;flex-direction:column;justify-content:center;flex:1 1 0px;height:100%;line-height:normal;overflow:hidden;padding:var(--sd-list-item-label-content-padding, 0 8px)}.caption,.description{width:100%;font-family:var(--sd-list-item-font-family, "Segoe UI", "Lucida Sans", Arial, sans-serif);font-style:normal;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;-webkit-user-select:none;user-select:none;text-decoration:var(--sd-list-item-text-decoration, inherit)}.caption em,.description em{font-weight:bolder}.caption{font-size:var(--sd-list-item-caption-font-size, 16px);color:var(--sd-list-item-caption-text-color, #111);font-weight:var(--sd-list-item-caption-font-weight, normal)}.description{font-size:var(--sd-list-item-description-font-size, 13px);color:var(--sd-list-item-description-text-color, #767676);font-weight:var(--sd-list-item-description-font-weight, normal)}.icon-wrapper{width:var(--sd-list-item-icon-wrapper-width, 45px);height:100%;display:flex;align-items:center;justify-content:center}.icon-wrapper .icon{min-height:var(--sd-list-item-icon-size, 24px);min-width:var(--sd-list-item-icon-size, 24px);background-repeat:no-repeat;background-position:center;background-size:cover}';var Nl=Object.defineProperty,bl=Object.getOwnPropertyDescriptor,se=(i,e,t,s)=>{for(var a=s>1?void 0:s?bl(e,t):e,r=i.length-1,n;r>=0;r--)(n=i[r])&&(a=(s?n(e,t,a):n(a))||a);return s&&a&&Nl(e,t,a),a},ze;const Q=(ze=class extends Ee{constructor(){super(...arguments),this.contentMode="text",this.role="option"}static get styles(){return[Tt`
1489
+ `}updated(s){super.updated(s),this._needsAutocompletedCheck&&!this.autocompleted&&setTimeout(()=>{try{this.autocompleted=this.autocompleted||!!this.shadowRoot.querySelector(":-webkit-autofill")}catch{}},0),this.rows>1&&((s.has("min")||s.has("max")||s.has("pattern"))&&console.warn("min, max & pattern attributes are not supported with multiple rows configuration."),this.type!="text"&&console.warn(`type: ${this.type} is not supported with multiple rows configuration.`))}update(s){var e,t;if(super.update(s),s.has("validationMessage")&&(this.validationMessage?(e=this._internals)==null||e.setValidity({customError:!0},this.validationMessage):(t=this._internals)==null||t.setValidity(this.inputElement.validity,this.inputElement.validationMessage)),this._initialized&&s.has("rows"))throw Error("rows attribute cannot be changed after the input is attached to the DOM")}fireValueChange(s){this.dispatchEvent(new CustomEvent(`${s?"immediate-":""}value-change`,{detail:{value:this.value}})),this.setFormValue(this.value),this.updateFormValidity()}updateFormValidity(){if(this.validationMessage==null){this._internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage);const s=this.shadowRoot.querySelector("sd-field-validation-message");this.requestUpdate("validationMessage",s==null?null:s.message)}}shouldFloat(){return this.alwaysFloatLabel||this.currentText||this.placeholder||this.autocompleted||this.type==="date"}setFormValue(s){var e;(e=this._internals)==null||e.setFormValue(s)}formResetCallback(){this.value=this._initialValue}formDisabledCallback(s){this.effectiveDisabled=s||this.hasAttribute("disabled")}formAssociatedCallback(s){this._needsAutocompletedCheck=!0}formStateRestoreCallback(s,e){typeof s=="string"&&(this.value=s)}},ye.ID=ml,ye.DEFAULT_MAX_LENGTH=524288,ye.formAssociated=!0,ye.shadowRootOptions={...Ee.shadowRootOptions,delegatesFocus:sa},ye);W([v({type:String,reflect:!0})],H.prototype,"label",2);W([v({type:String,attribute:!0})],H.prototype,"validationMessage",2);W([v({type:String,attribute:!0})],H.prototype,"validationIconSrc",2);W([v({type:hi,attribute:!0,reflect:!0})],H.prototype,"validationLevel",2);W([v({type:String,hasChanged(s,e){return e!=null&&e!=s}})],H.prototype,"currentText",2);W([v({type:Boolean,attribute:!0})],H.prototype,"alwaysFloatLabel",2);W([v({type:Boolean,attribute:!0})],H.prototype,"autocompleted",2);W([v({type:Number,attribute:!0})],H.prototype,"rows",2);W([v({type:Boolean,reflect:!0,attribute:"effective-disabled"})],H.prototype,"effectiveDisabled",2);W([v({type:Boolean,reflect:!0,attribute:"extended-prefix"})],H.prototype,"extendedPrefix",2);W([v({type:String,reflect:!0})],H.prototype,"type",2);W([v({type:String,reflect:!0})],H.prototype,"placeholder",2);W([v({type:String,reflect:!0})],H.prototype,"sdAriaLabel",2);W([v({type:Number,reflect:!0})],H.prototype,"maxlength",2);W([v({type:Boolean,reflect:!0})],H.prototype,"readonly",2);W([v({type:Boolean,reflect:!0})],H.prototype,"required",2);W([v({type:String,reflect:!0})],H.prototype,"name",2);W([v({type:Boolean,reflect:!0})],H.prototype,"inactive",2);W([v({type:String,attribute:!0})],H.prototype,"autocomplete",2);W([v({type:String,attribute:!0})],H.prototype,"min",2);W([v({type:String,attribute:!0})],H.prototype,"max",2);W([v({type:String,attribute:!0})],H.prototype,"pattern",2);let oi=H;customElements.get(oi.ID)||customElements.define(oi.ID,oi);const ul={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},hl=s=>(...e)=>({_$litDirective$:s,values:e});class fl{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class qi extends fl{constructor(e){if(super(e),this.et=F,e.type!==ul.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===F||e==null)return this.ft=void 0,this.et=e;if(e===Ue)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;const t=[e];return t.raw=t,this.ft={_$litType$:this.constructor.resultType,strings:t,values:[]}}}qi.directiveName="unsafeHTML",qi.resultType=1;const pl=hl(qi);let Ga=class{static showImage(e,t,i,a){let r;if(a||!(e instanceof HTMLImageElement)?r=n=>e.style.backgroundImage=this.prepareSrc(n):r=n=>e.src=n,r(i),t){const n=()=>{r(t)},o=new Image;o.addEventListener("load",n),o.src=t,o.complete&&(o.removeEventListener("load",n),n())}}static prepareSrc(e){return e?e.startsWith("url")?e:`url("${e}")`:null}};const gl=':host{display:block;contain:strict;height:50px}:host([selected]){background-color:#d3e6fa}:host(:not([selected]):hover),:host(:not([selected])[focused]){background-color:#e7f1fa}@media (forced-colors: active){:host([selected]){outline:4px solid}:host(:not([selected]):hover){outline:4px dotted}:host(:not([selected])[focused]){outline:4px dashed}}:host([enable-line-clamp]) .labels>:only-child{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;word-wrap:break-word}.container{display:flex;height:100%;box-sizing:border-box}.container .level-indicator{width:7px;height:100%}.container .level-indicator.level-0{background-color:#a0c3ef}.container .level-indicator.level-1{background-color:#e7c374}.container .level-indicator.level-2{background-color:#bfd596}.container .level-indicator.level-3{background-color:#fd998d}.container .level-indicator.level-4{background-color:#c6e8f5}.container .level-indicator.level-5{background-color:#fde3a4}.container .level-indicator.level-6{background-color:#dcbfe0}.side-content{display:flex;align-items:center;flex-grow:0}.labels{display:flex;flex-direction:column;justify-content:center;flex:1 1 0px;height:100%;line-height:normal;overflow:hidden;padding:var(--sd-list-item-label-content-padding, 0 8px)}.caption,.description{width:100%;font-family:var(--sd-list-item-font-family, "Segoe UI", "Lucida Sans", Arial, sans-serif);font-style:normal;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;-webkit-user-select:none;user-select:none;text-decoration:var(--sd-list-item-text-decoration, inherit)}.caption em,.description em{font-weight:bolder}.caption{font-size:var(--sd-list-item-caption-font-size, 16px);color:var(--sd-list-item-caption-text-color, #111);font-weight:var(--sd-list-item-caption-font-weight, normal)}.description{font-size:var(--sd-list-item-description-font-size, 13px);color:var(--sd-list-item-description-text-color, #767676);font-weight:var(--sd-list-item-description-font-weight, normal)}.icon-wrapper{width:var(--sd-list-item-icon-wrapper-width, 45px);height:100%;display:flex;align-items:center;justify-content:center}.icon-wrapper .icon{min-height:var(--sd-list-item-icon-size, 24px);min-width:var(--sd-list-item-icon-size, 24px);background-repeat:no-repeat;background-position:center;background-size:cover}';var Nl=Object.defineProperty,bl=Object.getOwnPropertyDescriptor,se=(s,e,t,i)=>{for(var a=i>1?void 0:i?bl(e,t):e,r=s.length-1,n;r>=0;r--)(n=s[r])&&(a=(i?n(e,t,a):n(a))||a);return i&&a&&Nl(e,t,a),a},ze;const Q=(ze=class extends Ee{constructor(){super(...arguments),this.contentMode="text",this.role="option"}static get styles(){return[Tt`
1470
1490
  ${ht(gl)}
1471
1491
  `]}render(){return ne`
1472
1492
  <div class="container">
1473
- ${this.getLevelIndicators().map((i,e)=>ne` <div class="level-indicator level-${e}"></div> `)}
1493
+ ${this.getLevelIndicators().map((s,e)=>ne` <div class="level-indicator level-${e}"></div> `)}
1474
1494
  <div class="side-content">
1475
1495
  <slot name="left-content"></slot>
1476
1496
  ${this.renderIcon()}
@@ -1483,42 +1503,42 @@ function updateMandatory(combobox: ComboBox) {
1483
1503
  <slot name="right-content"></slot>
1484
1504
  </div>
1485
1505
  </div>
1486
- `}renderIcon(){if(this.icon||this.iconPlaceholder){const i=this.iconBackgroundColor!=null?`background-color:${this.iconBackgroundColor}`:void 0;return ne`
1506
+ `}renderIcon(){if(this.icon||this.iconPlaceholder){const s=this.iconBackgroundColor!=null?`background-color:${this.iconBackgroundColor}`:void 0;return ne`
1487
1507
  <div
1488
1508
  class="icon-wrapper"
1489
1509
  @pointerdown="${this.handleIconClick}"
1490
- style="${ie(i)}"
1510
+ style="${ie(s)}"
1491
1511
  role="img"
1492
1512
  aria-label="${ie(this.iconAttrAriaLabel)}"
1493
1513
  title="${ie(this.iconAttrTitle)}"
1494
1514
  >
1495
1515
  <div class="icon"></div>
1496
1516
  </div>
1497
- `}return F}renderLabel(i,e,t){return e?ne`
1498
- <div class="${i}" title="${ie(t)}">
1517
+ `}return F}renderLabel(s,e,t){return e?ne`
1518
+ <div class="${s}" title="${ie(t)}">
1499
1519
  ${this.contentMode==="html"?pl(e):e}
1500
1520
  </div>
1501
- `:F}updated(i){super.updated(i),(i.has("icon")||i.has("iconPlaceholder"))&&(this.icon||this.iconPlaceholder)&&Ga.showImage(this.shadowRoot.querySelector(".icon"),this.icon,this.iconPlaceholder),i.has("selected")&&this.setAttribute("aria-selected",String(this.selected))}get missingWidthForTexts(){const i=this.enableLineClamp;this.removeAttribute("enable-line-clamp");let e=0;const t=this.shadowRoot.querySelector(".caption");t&&(e+=t.scrollWidth-t.clientWidth);const s=this.shadowRoot.querySelector(".description");return s&&(e=Math.max(e,s.scrollWidth-s.clientWidth)),e>0&&e++,i&&this.setAttribute("enable-line-clamp",""),e}handleIconClick(i){!this.disabled&&!this.dispatchEvent(new PointerEvent("list-item-icon-click",i))&&i.preventDefault()}getLevelIndicators(){return this.level?Array(Number(this.level)).fill(null):[]}},ze.ID="sd-list-item",ze.ensureDefined=()=>{customElements.get(ze.ID)||customElements.define(ze.ID,ze)},ze);se([v({type:String})],Q.prototype,"caption",2);se([v({type:String})],Q.prototype,"description",2);se([v({type:Boolean})],Q.prototype,"selected",2);se([v({type:String})],Q.prototype,"icon",2);se([v({type:String})],Q.prototype,"iconBackgroundColor",2);se([v({type:String})],Q.prototype,"iconPlaceholder",2);se([v({type:Number})],Q.prototype,"level",2);se([v()],Q.prototype,"contentMode",2);se([v({type:Boolean,reflect:!0,attribute:"enable-line-clamp"})],Q.prototype,"enableLineClamp",2);se([v({converter:{fromAttribute:i=>i=="true",toAttribute:i=>i},reflect:!0,attribute:"aria-disabled"})],Q.prototype,"disabled",2);se([v({type:String,attribute:"icon-attr-aria-label"})],Q.prototype,"iconAttrAriaLabel",2);se([v({type:String,reflect:!0})],Q.prototype,"role",2);se([v({type:String,attribute:"caption-attr-title"})],Q.prototype,"captionAttrTitle",2);se([v({type:String,attribute:"description-attr-title"})],Q.prototype,"descriptionAttrTitle",2);se([v({type:String,attribute:"icon-attr-title"})],Q.prototype,"iconAttrTitle",2);let tt=Q;const Wa=(i,e)=>{const t=document.createElement(tt.ID);if(i){if(t.caption=i.caption,t.description=i.description,t.icon=i.icon,t.iconBackgroundColor=i.iconBackgroundColor,t.iconPlaceholder=i.iconPlaceholder,t.level=i.level,t.disabled=i.disabled,i.contentMode&&(t.contentMode=i.contentMode),i.leftContentGenerator){const s=i.leftContentGenerator(i,t);s&&(s.slot="left-content",t.appendChild(s))}if(i.rightContentGenerator){const s=i.rightContentGenerator(i,t);s&&(s.slot="right-content",t.appendChild(s))}}return t};tt.ensureDefined();class vl{getOffsetForIndexAndAlignment(e,t,s,a,r,n){const o=Math.max(0,n*a),l=Math.min(o,e*a),c=Math.max(0,e*a-r+a);switch(t){case"start":return l;case"end":return c;case"center":{const m=Math.round(c+(l-c)/2);return m<Math.ceil(r/2)?0:m>o+Math.floor(r/2)?o:m}case"auto":default:return s>=c&&s<=l?s:s<c?c:l}}debounce(e){let t;return(...s)=>{t&&window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{e(...s),t=null})}}}const yl=new vl;class xl{constructor(e=100,t=5){this.pageSize=e,this.preloadedItemsCount=t,this._finalSizeIsKnown=!1,this._itemCache=[],this._lastRequestedFirstIndex=0,this._lastRequestedLastIndex=0,this._lastLoadedIndex=0,this.handleListDataRequest=s=>{const{startIndex:a,stopIndex:r}=s.detail;this._lastRequestedFirstIndex=a,this._lastRequestedLastIndex=r,this._list.items=this._itemCache.slice(a,r+1),!this.finalSizeIsKnown&&this._lastLoadedIndex<r+this.preloadedItemsCount&&this.requestData()},this.itemCount=e}get currentPage(){return this.items.length==0&&this.finalSizeIsKnown?0:Math.floor((this.items.length-1)/this.pageSize)}get finalSizeIsKnown(){return this._finalSizeIsKnown}set finalSizeIsKnown(e){this._finalSizeIsKnown=e,e&&(this.itemCount=this._itemCache.length),this._list&&(this._list.finalSizeIsKnown=e)}get itemCount(){return this._itemCount}set itemCount(e){this._itemCount=e,this._list&&(this._list.itemCount=e)}get items(){return this._itemCache}set items(e){this._itemCache=e,this.onItemsChange()}addItems(e){this._itemCache=this._itemCache.concat(e),this.onItemsChange()}connectList(e){this._list&&this._list.removeEventListener("data-request",this.handleListDataRequest),this._list=e,e.itemCount=this.itemCount,e.addEventListener("data-request",this.handleListDataRequest),e.finalSizeIsKnown=this._finalSizeIsKnown}onItemsChange(){this._pendingDataRequest=!1,this._lastLoadedIndex=this._itemCache.length-1,this.finalSizeIsKnown?this.itemCount=this._itemCache.length:this._lastLoadedIndex>this.itemCount&&(this.itemCount=this._lastLoadedIndex),this._list&&(this._list.items=this._itemCache.slice(this._lastRequestedFirstIndex,this._lastRequestedLastIndex+1))}requestData(){if(!this._pendingDataRequest)if(this.onDataRequest)this._pendingDataRequest=!0,this.onDataRequest(this.currentPage+1),this._lastLoadedIndex+=this.pageSize-1,this._lastLoadedIndex>this.itemCount&&(this.itemCount=this._lastLoadedIndex);else throw Error("The final size is not yet known and the list would require item data from index "+this._lastRequestedFirstIndex+". to "+this._lastRequestedLastIndex+". which is not possible to load without a configured onDataRequest")}}const wl=":host{display:block;position:relative;contain:layout}:host(:focus){outline:none}:host(:focus-visible) ::slotted([focused]){box-shadow:0 0 0 1px #1467ba inset}.container{width:100%}.container>::slotted(*){width:100%;position:absolute;box-sizing:border-box}.container>::slotted(:not([last])){border-bottom:1px solid #d9d9d9}";var _l=Object.defineProperty,Sl=Object.getOwnPropertyDescriptor,Pe=(i,e,t,s)=>{for(var a=s>1?void 0:s?Sl(e,t):e,r=i.length-1,n;r>=0;r--)(n=i[r])&&(a=(s?n(e,t,a):n(a))||a);return s&&a&&_l(e,t,a),a},xt=(i=>(i.TriggerOnly="trigger-only",i.Single="single",i.Multi="multi",i))(xt||{});let Cl=0;var Ie;const $e=(Ie=class extends Ee{constructor(){super(),this.items=[],this.selectionType="trigger-only",this.id=Ie.ID+"_"+Cl++,this.role="listbox",this.itemGenerator=Wa,this._lastKnownScrollTop=0,this._lastRenderedScrollTop=0,this._itemsRenderData=[],this._elementCache=new Map,this._visibleItemsNum=0,this._selectedIndices=[],this._focusIndex=-1,this._lastKnownHeight=0,this.onScroll=()=>{this._lastKnownScrollTop=this.scrollTop;const i=this._lastRenderedScrollTop-this._lastKnownScrollTop;Math.abs(i)>=this.itemHeight&&(this._lastRenderedScrollTop=this._lastKnownScrollTop,this.requestUpdate())},this.handleKeyDown=i=>{let e=!0;switch(i.key){case"Down":case"ArrowDown":this.focusIndex=this.normalizeIndex(this.focusIndex+1);break;case"Up":case"ArrowUp":this.focusIndex=this.normalizeIndex(this.focusIndex-1);break;case"Enter":this.handleSelection(this.focusIndex,i.metaKey||i.ctrlKey);break;case"End":this.focusIndex=this.itemCount-1;break;case"PageDown":this.focusIndex=this.normalizeIndex(this.focusIndex+this._visibleItemsNum-1);break;case"Home":this.focusIndex=0;break;case"PageUp":this.focusIndex=this.normalizeIndex(this.focusIndex-this._visibleItemsNum+1);break;default:e=!1;break}e&&(i.preventDefault(),i.stopPropagation())},this._resizeObserver=new ResizeObserver(()=>{this._lastKnownHeight!==this.offsetHeight&&(this._lastKnownHeight=this.offsetHeight,this.requestUpdate())})}get focusTarget(){return this.hasAttribute("focus-target")}set focusTarget(i){this.toggleAttribute("focus-target",i)}get focusIndex(){return this._focusIndex}set focusIndex(i){if(i>=-1&&i<this.itemCount){const e=this._focusIndex;this._focusIndex=i,(i<=this._firstVisibleIndex||this._lastVisibleIndex<=i)&&this.scrollToItem(i),e!=i&&(i==-1&&this.removeAttribute("aria-activedescendant"),this.requestUpdate("focusIndex",e))}}get selectedIndices(){return this._selectedIndices}set selectedIndices(i){i?this._selectedIndices=i.map(e=>Number(e)):this._selectedIndices=[],this.requestUpdate("selectedIndices")}scrollToItem(i,e="auto"){this.scrollTop=yl.getOffsetForIndexAndAlignment(this.normalizeIndex(i),e,this.scrollTop,this.itemHeight,this.height,this.itemCount),this._lastKnownScrollTop=this.scrollTop}getListItem(i){return!this.shadowRoot||i<this._firstVisibleIndex||this._lastVisibleIndex<i?null:this.querySelector(`[item-index="${i}"]`)}connectedCallback(){super.connectedCallback(),this._resizeObserver.observe(this),this.scrollTop!==this._lastKnownScrollTop&&(this.scrollTop=this._lastKnownScrollTop,this.requestUpdate())}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver.disconnect()}firstUpdated(i){super.firstUpdated(i),this.addEventListener("scroll",this.onScroll),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick),this.addEventListener("mousedown",e=>{e.button==1&&e.preventDefault()}),this.addEventListener("auxclick",this.handleClick),this.addEventListener("focus",()=>{this.matches(":focus-visible")&&(this.focusIndex==-1?(this.selectedIndices&&(this.focusIndex=this.selectedIndices[0]),this.focusIndex==-1&&this.itemCount>0&&(this.focusIndex=0)):this.updateFocusedItemAttributes())}),this.addEventListener("blur",()=>{this.focusIndex!=-1&&this.updateFocusedItemAttributes()}),this.selectedIndices.length>0&&this.scrollToItem(this.selectedIndices[0],"center")}updateFocusedItemAttributes(){const i=this.getListItem(this.focusIndex);i&&(this.focusTarget||document.activeElement==this?(i.setAttribute("focused",""),this.setAttribute("aria-activedescendant",i.id)):(i.removeAttribute("focused"),this.removeAttribute("aria-activedescendant")))}static get styles(){return[Tt`
1521
+ `:F}updated(s){super.updated(s),(s.has("icon")||s.has("iconPlaceholder"))&&(this.icon||this.iconPlaceholder)&&Ga.showImage(this.shadowRoot.querySelector(".icon"),this.icon,this.iconPlaceholder),s.has("selected")&&this.setAttribute("aria-selected",String(this.selected))}get missingWidthForTexts(){const s=this.enableLineClamp;this.removeAttribute("enable-line-clamp");let e=0;const t=this.shadowRoot.querySelector(".caption");t&&(e+=t.scrollWidth-t.clientWidth);const i=this.shadowRoot.querySelector(".description");return i&&(e=Math.max(e,i.scrollWidth-i.clientWidth)),e>0&&e++,s&&this.setAttribute("enable-line-clamp",""),e}handleIconClick(s){!this.disabled&&!this.dispatchEvent(new PointerEvent("list-item-icon-click",s))&&s.preventDefault()}getLevelIndicators(){return this.level?Array(Number(this.level)).fill(null):[]}},ze.ID="sd-list-item",ze.ensureDefined=()=>{customElements.get(ze.ID)||customElements.define(ze.ID,ze)},ze);se([v({type:String})],Q.prototype,"caption",2);se([v({type:String})],Q.prototype,"description",2);se([v({type:Boolean})],Q.prototype,"selected",2);se([v({type:String})],Q.prototype,"icon",2);se([v({type:String})],Q.prototype,"iconBackgroundColor",2);se([v({type:String})],Q.prototype,"iconPlaceholder",2);se([v({type:Number})],Q.prototype,"level",2);se([v()],Q.prototype,"contentMode",2);se([v({type:Boolean,reflect:!0,attribute:"enable-line-clamp"})],Q.prototype,"enableLineClamp",2);se([v({converter:{fromAttribute:s=>s=="true",toAttribute:s=>s},reflect:!0,attribute:"aria-disabled"})],Q.prototype,"disabled",2);se([v({type:String,attribute:"icon-attr-aria-label"})],Q.prototype,"iconAttrAriaLabel",2);se([v({type:String,reflect:!0})],Q.prototype,"role",2);se([v({type:String,attribute:"caption-attr-title"})],Q.prototype,"captionAttrTitle",2);se([v({type:String,attribute:"description-attr-title"})],Q.prototype,"descriptionAttrTitle",2);se([v({type:String,attribute:"icon-attr-title"})],Q.prototype,"iconAttrTitle",2);let tt=Q;const Wa=(s,e)=>{const t=document.createElement(tt.ID);if(s){if(t.caption=s.caption,t.description=s.description,t.icon=s.icon,t.iconBackgroundColor=s.iconBackgroundColor,t.iconPlaceholder=s.iconPlaceholder,t.level=s.level,t.disabled=s.disabled,s.contentMode&&(t.contentMode=s.contentMode),s.leftContentGenerator){const i=s.leftContentGenerator(s,t);i&&(i.slot="left-content",t.appendChild(i))}if(s.rightContentGenerator){const i=s.rightContentGenerator(s,t);i&&(i.slot="right-content",t.appendChild(i))}}return t};tt.ensureDefined();class vl{getOffsetForIndexAndAlignment(e,t,i,a,r,n){const o=Math.max(0,n*a),l=Math.min(o,e*a),c=Math.max(0,e*a-r+a);switch(t){case"start":return l;case"end":return c;case"center":{const m=Math.round(c+(l-c)/2);return m<Math.ceil(r/2)?0:m>o+Math.floor(r/2)?o:m}case"auto":default:return i>=c&&i<=l?i:i<c?c:l}}debounce(e){let t;return(...i)=>{t&&window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{e(...i),t=null})}}}const yl=new vl;class xl{constructor(e=100,t=5){this.pageSize=e,this.preloadedItemsCount=t,this._finalSizeIsKnown=!1,this._itemCache=[],this._lastRequestedFirstIndex=0,this._lastRequestedLastIndex=0,this._lastLoadedIndex=0,this.handleListDataRequest=i=>{const{startIndex:a,stopIndex:r}=i.detail;this._lastRequestedFirstIndex=a,this._lastRequestedLastIndex=r,this._list.items=this._itemCache.slice(a,r+1),!this.finalSizeIsKnown&&this._lastLoadedIndex<r+this.preloadedItemsCount&&this.requestData()},this.itemCount=e}get currentPage(){return this.items.length==0&&this.finalSizeIsKnown?0:Math.floor((this.items.length-1)/this.pageSize)}get finalSizeIsKnown(){return this._finalSizeIsKnown}set finalSizeIsKnown(e){this._finalSizeIsKnown=e,e&&(this.itemCount=this._itemCache.length),this._list&&(this._list.finalSizeIsKnown=e)}get itemCount(){return this._itemCount}set itemCount(e){this._itemCount=e,this._list&&(this._list.itemCount=e)}get items(){return this._itemCache}set items(e){this._itemCache=e,this.onItemsChange()}addItems(e){this._itemCache=this._itemCache.concat(e),this.onItemsChange()}connectList(e){this._list&&this._list.removeEventListener("data-request",this.handleListDataRequest),this._list=e,e.itemCount=this.itemCount,e.addEventListener("data-request",this.handleListDataRequest),e.finalSizeIsKnown=this._finalSizeIsKnown}onItemsChange(){this._pendingDataRequest=!1,this._lastLoadedIndex=this._itemCache.length-1,this.finalSizeIsKnown?this.itemCount=this._itemCache.length:this._lastLoadedIndex>this.itemCount&&(this.itemCount=this._lastLoadedIndex),this._list&&(this._list.items=this._itemCache.slice(this._lastRequestedFirstIndex,this._lastRequestedLastIndex+1))}requestData(){if(!this._pendingDataRequest)if(this.onDataRequest)this._pendingDataRequest=!0,this.onDataRequest(this.currentPage+1),this._lastLoadedIndex+=this.pageSize-1,this._lastLoadedIndex>this.itemCount&&(this.itemCount=this._lastLoadedIndex);else throw Error("The final size is not yet known and the list would require item data from index "+this._lastRequestedFirstIndex+". to "+this._lastRequestedLastIndex+". which is not possible to load without a configured onDataRequest")}}const wl=":host{display:block;position:relative;contain:layout}:host(:focus){outline:none}:host(:focus-visible) ::slotted([focused]){box-shadow:0 0 0 1px #1467ba inset}.container{width:100%}.container>::slotted(*){width:100%;position:absolute;box-sizing:border-box}.container>::slotted(:not([last])){border-bottom:1px solid #d9d9d9}";var _l=Object.defineProperty,Sl=Object.getOwnPropertyDescriptor,Pe=(s,e,t,i)=>{for(var a=i>1?void 0:i?Sl(e,t):e,r=s.length-1,n;r>=0;r--)(n=s[r])&&(a=(i?n(e,t,a):n(a))||a);return i&&a&&_l(e,t,a),a},xt=(s=>(s.TriggerOnly="trigger-only",s.Single="single",s.Multi="multi",s))(xt||{});let Cl=0;var Me;const $e=(Me=class extends Ee{constructor(){super(),this.items=[],this.selectionType="trigger-only",this.id=Me.ID+"_"+Cl++,this.role="listbox",this.itemGenerator=Wa,this._lastKnownScrollTop=0,this._lastRenderedScrollTop=0,this._itemsRenderData=[],this._elementCache=new Map,this._visibleItemsNum=0,this._selectedIndices=[],this._focusIndex=-1,this._lastKnownHeight=0,this.onScroll=()=>{this._lastKnownScrollTop=this.scrollTop;const s=this._lastRenderedScrollTop-this._lastKnownScrollTop;Math.abs(s)>=this.itemHeight&&(this._lastRenderedScrollTop=this._lastKnownScrollTop,this.requestUpdate())},this.handleKeyDown=s=>{let e=!0;switch(s.key){case"Down":case"ArrowDown":this.focusIndex=this.normalizeIndex(this.focusIndex+1);break;case"Up":case"ArrowUp":this.focusIndex=this.normalizeIndex(this.focusIndex-1);break;case"Enter":this.handleSelection(this.focusIndex,s.metaKey||s.ctrlKey);break;case"End":this.focusIndex=this.itemCount-1;break;case"PageDown":this.focusIndex=this.normalizeIndex(this.focusIndex+this._visibleItemsNum-1);break;case"Home":this.focusIndex=0;break;case"PageUp":this.focusIndex=this.normalizeIndex(this.focusIndex-this._visibleItemsNum+1);break;default:e=!1;break}e&&(s.preventDefault(),s.stopPropagation())},this._resizeObserver=new ResizeObserver(()=>{this._lastKnownHeight!==this.offsetHeight&&(this._lastKnownHeight=this.offsetHeight,this.requestUpdate())})}get focusTarget(){return this.hasAttribute("focus-target")}set focusTarget(s){this.toggleAttribute("focus-target",s)}get focusIndex(){return this._focusIndex}set focusIndex(s){if(s>=-1&&s<this.itemCount){const e=this._focusIndex;this._focusIndex=s,(s<=this._firstVisibleIndex||this._lastVisibleIndex<=s)&&this.scrollToItem(s),e!=s&&(s==-1&&this.removeAttribute("aria-activedescendant"),this.requestUpdate("focusIndex",e))}}get selectedIndices(){return this._selectedIndices}set selectedIndices(s){s?this._selectedIndices=s.map(e=>Number(e)):this._selectedIndices=[],this.requestUpdate("selectedIndices")}scrollToItem(s,e="auto"){this.scrollTop=yl.getOffsetForIndexAndAlignment(this.normalizeIndex(s),e,this.scrollTop,this.itemHeight,this.height,this.itemCount),this._lastKnownScrollTop=this.scrollTop}getListItem(s){return!this.shadowRoot||s<this._firstVisibleIndex||this._lastVisibleIndex<s?null:this.querySelector(`[item-index="${s}"]`)}connectedCallback(){super.connectedCallback(),this._resizeObserver.observe(this),this.scrollTop!==this._lastKnownScrollTop&&(this.scrollTop=this._lastKnownScrollTop,this.requestUpdate())}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver.disconnect()}firstUpdated(s){super.firstUpdated(s),this.addEventListener("scroll",this.onScroll),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick),this.addEventListener("mousedown",e=>{e.button==1&&e.preventDefault()}),this.addEventListener("auxclick",this.handleClick),this.addEventListener("focus",()=>{this.matches(":focus-visible")&&(this.focusIndex==-1?(this.selectedIndices&&(this.focusIndex=this.selectedIndices[0]),this.focusIndex==-1&&this.itemCount>0&&(this.focusIndex=0)):this.updateFocusedItemAttributes())}),this.addEventListener("blur",()=>{this.focusIndex!=-1&&this.updateFocusedItemAttributes()}),this.selectedIndices.length>0&&this.scrollToItem(this.selectedIndices[0],"center")}updateFocusedItemAttributes(){const s=this.getListItem(this.focusIndex);s&&(this.focusTarget||document.activeElement==this?(s.setAttribute("focused",""),this.setAttribute("aria-activedescendant",s.id)):(s.removeAttribute("focused"),this.removeAttribute("aria-activedescendant")))}static get styles(){return[Tt`
1502
1522
  ${ht(wl)}
1503
1523
  `]}render(){return this.updateItemsRenderData(),ne`
1504
1524
  <div class="container" style="height: ${this.itemCount*this.itemHeight}px">
1505
1525
  <slot name="items"></slot>
1506
1526
  </div>
1507
- `}updated(i){if(super.updated(i),this._lastRenderedScrollTop=this._lastKnownScrollTop,this.updateItems(),(this._increaseWidthOnNextRenderIfNeeded||this._reachedMaxWidth)&&this._firstVisibleIndex<this._lastVisibleIndex)if(this.querySelector("[item-index]"))this.adjustWidthIfNeeded();else{const e=new MutationObserver(()=>{this.adjustWidthIfNeeded(),e.disconnect()});e.observe(this)}}adjustWidthIfNeeded(){this._increaseWidthOnNextRenderIfNeeded?(this._increaseWidthOnNextRenderIfNeeded=!1,window.requestAnimationFrame(()=>{const i=Number.parseInt(getComputedStyle(this).maxWidth)-this.offsetWidth;if(i==0)this._reachedMaxWidth=!0,this.enableLineClampOnItemsIfNeeded();else{this._reachedMaxWidth=!1;const e=[...this.querySelectorAll("[item-index]")].map(s=>{if(s instanceof tt){s.enableLineClamp=!1;const a=s.missingWidthForTexts;return a>i&&(s.enableLineClamp=!0),a}}),t=Math.max(...e);t>0&&(this.style.width=`${this.offsetWidth+t}px`)}})):this._reachedMaxWidth&&this.enableLineClampOnItemsIfNeeded()}enableLineClampOnItemsIfNeeded(){this.querySelectorAll("[item-index]").forEach(i=>{i instanceof tt&&(i.enableLineClamp=i.enableLineClamp||i.missingWidthForTexts>0)})}increaseWidthOnNextRenderIfNeeded(){this._increaseWidthOnNextRenderIfNeeded=!0}updateItems(){const i=[...this.querySelectorAll("[item-index]")],e=new Map,t=document.createDocumentFragment();for(const s of this._itemsRenderData){const a=this.renderItem(s);a.parentElement||t.appendChild(a),e.set(s.dataHash,a);const r=i.indexOf(a);r!==-1&&i.splice(r,1)}this.appendChild(t);for(const s of i)s instanceof tt&&(s.enableLineClamp=!1),this.removeChild(s);e.forEach((s,a)=>{this._elementCache.set(a,s)})}renderItem({index:i,top:e,dataHash:t,data:s}){let a;return s?this._elementCache.has(t)?(a=this._elementCache.get(t),this._elementCache.delete(t)):(a=this.itemGenerator(s,i),a.setAttribute("slot","items")):(a=document.createElement("div"),a.setAttribute("placeholder-item",""),a.setAttribute("slot","items")),Object.assign(a.style,{transform:`translateY(${e}px)`,height:`${this.itemHeight}px`}),a.setAttribute("item-index",i.toString()),a.setAttribute("aria-setsize",String(this.finalSizeIsKnown?this.itemCount:-1)),a.setAttribute("aria-posinset",String(i+1)),(!a.id||a.id.startsWith(this.id+"_item_"))&&(a.id=this.id+"_item_"+i),this.itemCount-1==i?a.setAttribute("last",""):a.removeAttribute("last"),this.updateSelectedAttribute(i,a),this.updateFocusedAttribute(i,a),a}updateFocusedAttribute(i,e){this.focusIndex==i&&(this.focusTarget||document.activeElement==this)?(e.setAttribute("focused",""),this.setAttribute("aria-activedescendant",e.id)):e.removeAttribute("focused")}updateSelectedAttribute(i,e){const t=this.selectedIndices.indexOf(i)!==-1;t?e.setAttribute("selected",""):e.removeAttribute("selected"),e.setAttribute("aria-selected",String(t))}updateItemsRenderData(){if(this._itemsRenderData=[],this._visibleItemsNum=Math.min(Math.ceil(this.height/this.itemHeight),this.itemCount),this._visibleItemsNum>0){this._firstVisibleIndex=this.normalizeIndex(Math.floor(this._lastKnownScrollTop/this.itemHeight)),this._lastVisibleIndex=this.normalizeIndex(this._firstVisibleIndex+this._visibleItemsNum);const i=this.normalizeIndex(this._firstVisibleIndex-2),e=this.normalizeIndex(this._lastVisibleIndex+2);this.requestData(i,e);for(let t=i;t<=e;t++){const s=t-i,a=this.items[s];let r;a?r=JSON.stringify(a):r=`placeholder-${s}`,this._itemsRenderData.push({index:t,top:this.itemHeight*t,physicalIndex:s,dataHash:r,data:a})}}else this._firstVisibleIndex=0,this._lastVisibleIndex=0}normalizeIndex(i){return Math.max(0,Math.min(i,this.itemCount-1))}get height(){return this.offsetHeight}requestData(i,e){!Number.isNaN(i)&&!Number.isNaN(e)&&this.dispatchEvent(new CustomEvent("data-request",{detail:{startIndex:i,stopIndex:e}}))}handleSelection(i,e){if(i<0||this.itemCount<=i)return;const t=i%this._visibleItemsNum,s=this.items[t];if(!s||s.disabled)return;let a=!0;if(this.selectionType!=="trigger-only"){const r=this.selectedIndices.indexOf(i);a=r==-1,a?this.selectionType==="single"?this.selectedIndices=[i]:this.selectedIndices.push(i):this.selectedIndices.splice(r,1),this.requestUpdate("selectedIndices")}this.focusIndex=i,this.dispatchSelectionEvent(i,a,e)}dispatchSelectionEvent(i,e,t){this.dispatchEvent(new CustomEvent("selection",{detail:{index:i,selected:e,hasModifier:t}}))}handleClick(i){const e=i.composedPath().find(t=>t.hasAttribute&&t.hasAttribute("item-index"));if(e){const t=parseInt(e.getAttribute("item-index"));if(Number.isInteger(t)){if(i.button==0||i.button==1){const s=i.type=="auxclick"&&i.button==1||i.metaKey||i.ctrlKey;this.handleSelection(t,s)}this.focusIndex=t}}}},Ie.ID="sd-virtual-list",Ie.ensureDefined=()=>{tt.ensureDefined(),customElements.get(Ie.ID)||customElements.define(Ie.ID,Ie)},Ie);Pe([v({type:Number,attribute:"item-height",reflect:!0})],$e.prototype,"itemHeight",2);Pe([v({type:Number})],$e.prototype,"itemCount",2);Pe([v({type:Array,attribute:!1})],$e.prototype,"items",2);Pe([v({type:String,attribute:"selection-type",reflect:!0,noAccessor:!0})],$e.prototype,"selectionType",2);Pe([v({type:String,attribute:!0,reflect:!0})],$e.prototype,"id",2);Pe([v({type:String,reflect:!0})],$e.prototype,"role",2);Pe([v({type:Number,attribute:"focus-index",reflect:!0})],$e.prototype,"focusIndex",1);Pe([v({type:Array,attribute:!1})],$e.prototype,"selectedIndices",1);let Ji=$e;Ji.ensureDefined();const El=":host{display:inline-flex;position:relative;cursor:text;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;font-size:16px;color:#111;contain:layout style;flex-direction:column}:host([hidden]),:host([type=hidden]){display:none!important}:host([effective-disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([effective-disabled]) .unfocused-line,:host([effective-disabled]) .focused-line{border-bottom-style:dashed}:host(:not([effective-disabled]):focus) .focused-line,:host(:not([effective-disabled])[focused]) .focused-line{transform:none;transition:transform .25s}:host(:not([effective-disabled]):focus) .label.float,:host(:not([effective-disabled])[focused]) .label.float{color:var(--sd-input-focused-color, #1467ba)}:host([inactive]) .input{pointer-events:none}:host([effective-disabled]:focus),:host([effective-disabled][focused]){box-shadow:0 0 0 1px #111}:host(:not([effective-disabled])[validationlevel]) .focused-line,:host(:not([effective-disabled]):invalid) .focused-line{transform:none;transition:transform .25s}:host([validationlevel=warn i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn i]) .label,:host([validationlevel=warn i]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest i]) .label,:host([validationlevel=suggest i]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error i]) .focused-line,:host(:not([validationlevel]):invalid) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error i]) .label,:host([validationlevel=error i]) .validation-message,:host(:not([validationlevel]):invalid) .label,:host(:not([validationlevel]):invalid) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}.validation-message-wrapper{position:relative}.validation-message{position:absolute;left:0;right:0}.label.float{transform:translateY(-75%) scale(.75);width:133%}.label:not(.float){max-width:100%}.floated-label-placeholder{height:20px;width:100%}.label{position:absolute;top:0;left:0;line-height:24px;pointer-events:none;color:var(--sd-input-color, #767676);transition:transform .25s,width .25s;transform-origin:left top}.input-wrapper{position:relative;display:flex;flex-direction:row;align-items:center;background-color:var(--input-wrapper-background-color)}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-wrapper{flex-direction:column;align-items:baseline}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-container{width:100%}:host([extended-prefix]:not(:focus-within)) .input-container,:host([extended-prefix][effective-disabled]) .input-container{width:0px}.input-container{line-height:var(--sd-input-line-height, 24px);flex:1 1 auto}.input{width:100%;background:var(--sd-input-background, transparent);font-family:inherit;font-size:inherit;text-align:inherit;color:inherit;border:none;outline:none;resize:none;padding-left:0;padding-right:0}.input:-webkit-autofill{animation-name:onautofillstart}.input:not(:-webkit-autofill){animation-name:onautofillcancel}@keyframes onautofillstart{0%{outline:none}}@keyframes onautofillcancel{0%{outline:none}}.label,input.input,.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.input::placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;top:0;right:0;bottom:0;left:0}.unfocused-line{border-bottom:1px solid var(--sd-input-underline-color, #959595)}.focused-line{border-bottom:2px solid var(--sd-input-focused-color, #1467ba);transform-origin:center center;transform:scale3d(0,1,1)}.prefix,.suffix{display:flex;flex-wrap:nowrap;max-width:100%}.prefix ::slotted(*),.suffix ::slotted(*){display:flex}:host(:focus){outline:none}.suffix ::slotted(.clear-button),.suffix ::slotted(.toggle-button){cursor:pointer;width:16px;height:32px;padding:0 8px;margin-top:-8px;margin-bottom:-8px;fill:#666;outline:none;flex-shrink:0}.suffix ::slotted(.toggle-button){transition:transform .2s}:host([opened]) .suffix ::slotted(.toggle-button){transform:rotate(180deg)}:host([disabled]) .suffix ::slotted(.clear-button),:host([disabled]) .suffix ::slotted(.toggle-button){display:none!important}.prefix ::slotted(.icon-wrapper){width:32px;height:32px;padding-right:4px;margin-top:-8px;margin-bottom:-8px;display:flex;align-items:center;justify-content:center;flex-shrink:0}:host(:not([has-value])) .suffix ::slotted(.clear-button),:host([null-setting-disallowed]) .suffix ::slotted(.clear-button){display:none!important}:host(:not([allow-custom-value]):not([trigger-only])) .input{caret-color:transparent}:host(:not([allow-custom-value]):not([disabled])) .input{cursor:pointer}#default-slot{display:none}",Al=`<svg xmlns="http://www.w3.org/2000/svg" class="toggle-button" slot="suffix" viewBox="0 0 16 16">\r
1527
+ `}updated(s){if(super.updated(s),this._lastRenderedScrollTop=this._lastKnownScrollTop,this.updateItems(),(this._increaseWidthOnNextRenderIfNeeded||this._reachedMaxWidth)&&this._firstVisibleIndex<this._lastVisibleIndex)if(this.querySelector("[item-index]"))this.adjustWidthIfNeeded();else{const e=new MutationObserver(()=>{this.adjustWidthIfNeeded(),e.disconnect()});e.observe(this)}}adjustWidthIfNeeded(){this._increaseWidthOnNextRenderIfNeeded?(this._increaseWidthOnNextRenderIfNeeded=!1,window.requestAnimationFrame(()=>{const s=Number.parseInt(getComputedStyle(this).maxWidth)-this.offsetWidth;if(s==0)this._reachedMaxWidth=!0,this.enableLineClampOnItemsIfNeeded();else{this._reachedMaxWidth=!1;const e=[...this.querySelectorAll("[item-index]")].map(i=>{if(i instanceof tt){i.enableLineClamp=!1;const a=i.missingWidthForTexts;return a>s&&(i.enableLineClamp=!0),a}}),t=Math.max(...e);t>0&&(this.style.width=`${this.offsetWidth+t}px`)}})):this._reachedMaxWidth&&this.enableLineClampOnItemsIfNeeded()}enableLineClampOnItemsIfNeeded(){this.querySelectorAll("[item-index]").forEach(s=>{s instanceof tt&&(s.enableLineClamp=s.enableLineClamp||s.missingWidthForTexts>0)})}increaseWidthOnNextRenderIfNeeded(){this._increaseWidthOnNextRenderIfNeeded=!0}updateItems(){const s=[...this.querySelectorAll("[item-index]")],e=new Map,t=document.createDocumentFragment();for(const i of this._itemsRenderData){const a=this.renderItem(i);a.parentElement||t.appendChild(a),e.set(i.dataHash,a);const r=s.indexOf(a);r!==-1&&s.splice(r,1)}this.appendChild(t);for(const i of s)i instanceof tt&&(i.enableLineClamp=!1),this.removeChild(i);e.forEach((i,a)=>{this._elementCache.set(a,i)})}renderItem({index:s,top:e,dataHash:t,data:i}){let a;return i?this._elementCache.has(t)?(a=this._elementCache.get(t),this._elementCache.delete(t)):(a=this.itemGenerator(i,s),a.setAttribute("slot","items")):(a=document.createElement("div"),a.setAttribute("placeholder-item",""),a.setAttribute("slot","items")),Object.assign(a.style,{transform:`translateY(${e}px)`,height:`${this.itemHeight}px`}),a.setAttribute("item-index",s.toString()),a.setAttribute("aria-setsize",String(this.finalSizeIsKnown?this.itemCount:-1)),a.setAttribute("aria-posinset",String(s+1)),(!a.id||a.id.startsWith(this.id+"_item_"))&&(a.id=this.id+"_item_"+s),this.itemCount-1==s?a.setAttribute("last",""):a.removeAttribute("last"),this.updateSelectedAttribute(s,a),this.updateFocusedAttribute(s,a),a}updateFocusedAttribute(s,e){this.focusIndex==s&&(this.focusTarget||document.activeElement==this)?(e.setAttribute("focused",""),this.setAttribute("aria-activedescendant",e.id)):e.removeAttribute("focused")}updateSelectedAttribute(s,e){const t=this.selectedIndices.indexOf(s)!==-1;t?e.setAttribute("selected",""):e.removeAttribute("selected"),e.setAttribute("aria-selected",String(t))}updateItemsRenderData(){if(this._itemsRenderData=[],this._visibleItemsNum=Math.min(Math.ceil(this.height/this.itemHeight),this.itemCount),this._visibleItemsNum>0){this._firstVisibleIndex=this.normalizeIndex(Math.floor(this._lastKnownScrollTop/this.itemHeight)),this._lastVisibleIndex=this.normalizeIndex(this._firstVisibleIndex+this._visibleItemsNum);const s=this.normalizeIndex(this._firstVisibleIndex-2),e=this.normalizeIndex(this._lastVisibleIndex+2);this.requestData(s,e);for(let t=s;t<=e;t++){const i=t-s,a=this.items[i];let r;a?r=JSON.stringify(a):r=`placeholder-${i}`,this._itemsRenderData.push({index:t,top:this.itemHeight*t,physicalIndex:i,dataHash:r,data:a})}}else this._firstVisibleIndex=0,this._lastVisibleIndex=0}normalizeIndex(s){return Math.max(0,Math.min(s,this.itemCount-1))}get height(){return this.offsetHeight}requestData(s,e){!Number.isNaN(s)&&!Number.isNaN(e)&&this.dispatchEvent(new CustomEvent("data-request",{detail:{startIndex:s,stopIndex:e}}))}handleSelection(s,e){if(s<0||this.itemCount<=s)return;const t=this.getListItem(s);if(t.getAttribute("aria-disabled")=="true"||t.hasAttribute("disabled"))return;let i=!0;if(this.selectionType!=="trigger-only"){const a=this.selectedIndices.indexOf(s);i=a==-1,i?this.selectionType==="single"?this.selectedIndices=[s]:this.selectedIndices.push(s):this.selectedIndices.splice(a,1),this.requestUpdate("selectedIndices")}this.focusIndex=s,this.dispatchSelectionEvent(s,i,e)}dispatchSelectionEvent(s,e,t){this.dispatchEvent(new CustomEvent("selection",{detail:{index:s,selected:e,hasModifier:t}}))}handleClick(s){const e=s.composedPath().find(t=>t.hasAttribute&&t.hasAttribute("item-index"));if(e){const t=parseInt(e.getAttribute("item-index"));if(Number.isInteger(t)){if(s.button==0||s.button==1){const i=s.type=="auxclick"&&s.button==1||s.metaKey||s.ctrlKey;this.handleSelection(t,i)}this.focusIndex=t}}}},Me.ID="sd-virtual-list",Me.ensureDefined=()=>{tt.ensureDefined(),customElements.get(Me.ID)||customElements.define(Me.ID,Me)},Me);Pe([v({type:Number,attribute:"item-height",reflect:!0})],$e.prototype,"itemHeight",2);Pe([v({type:Number})],$e.prototype,"itemCount",2);Pe([v({type:Array,attribute:!1})],$e.prototype,"items",2);Pe([v({type:String,attribute:"selection-type",reflect:!0,noAccessor:!0})],$e.prototype,"selectionType",2);Pe([v({type:String,attribute:!0,reflect:!0})],$e.prototype,"id",2);Pe([v({type:String,reflect:!0})],$e.prototype,"role",2);Pe([v({type:Number,attribute:"focus-index",reflect:!0})],$e.prototype,"focusIndex",1);Pe([v({type:Array,attribute:!1})],$e.prototype,"selectedIndices",1);let Ji=$e;Ji.ensureDefined();const El=":host{display:inline-flex;position:relative;cursor:text;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;font-size:16px;color:#111;contain:layout style;flex-direction:column}:host([hidden]),:host([type=hidden]){display:none!important}:host([effective-disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([effective-disabled]) .unfocused-line,:host([effective-disabled]) .focused-line{border-bottom-style:dashed}:host(:not([effective-disabled]):focus) .focused-line,:host(:not([effective-disabled])[focused]) .focused-line{transform:none;transition:transform .25s}:host(:not([effective-disabled]):focus) .label.float,:host(:not([effective-disabled])[focused]) .label.float{color:var(--sd-input-focused-color, #1467ba)}:host([inactive]) .input{pointer-events:none}:host([effective-disabled]:focus),:host([effective-disabled][focused]){box-shadow:0 0 0 1px #111}:host(:not([effective-disabled])[validationlevel]) .focused-line,:host(:not([effective-disabled]):invalid) .focused-line{transform:none;transition:transform .25s}:host([validationlevel=warn i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn i]) .label,:host([validationlevel=warn i]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest i]) .label,:host([validationlevel=suggest i]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error i]) .focused-line,:host(:not([validationlevel]):invalid) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error i]) .label,:host([validationlevel=error i]) .validation-message,:host(:not([validationlevel]):invalid) .label,:host(:not([validationlevel]):invalid) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}.validation-message-wrapper{min-height:var(--sd-input-validation-message-minheight, 0px);position:relative;font-size:0}.validation-message{position:relative;position:var(--sd-input-validation-message-minheight, 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:normal;white-space:var(--sd-input-validation-message-minheight, nowrap)}.input::placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;top:0;right:0;bottom:0;left:0}.unfocused-line{border-bottom:1px solid var(--sd-input-underline-color, #959595)}.focused-line{border-bottom:2px solid var(--sd-input-focused-color, #1467ba);transform-origin:center center;transform:scale3d(0,1,1)}.prefix,.suffix{display:flex;flex-wrap:nowrap;max-width:100%}.prefix ::slotted(*),.suffix ::slotted(*){display:flex}:host(:focus){outline:none}.suffix ::slotted(.clear-button),.suffix ::slotted(.toggle-button){cursor:pointer;width:16px;height:32px;padding:0 8px;margin-top:-8px;margin-bottom:-8px;fill:#666;outline:none;flex-shrink:0}.suffix ::slotted(.toggle-button){transition:transform .2s}:host([opened]) .suffix ::slotted(.toggle-button){transform:rotate(180deg)}:host([disabled]) .suffix ::slotted(.clear-button),:host([disabled]) .suffix ::slotted(.toggle-button){display:none!important}.prefix ::slotted(.icon-wrapper){width:32px;height:32px;padding-right:4px;margin-top:-8px;margin-bottom:-8px;display:flex;align-items:center;justify-content:center;flex-shrink:0}:host(:not([has-value])) .suffix ::slotted(.clear-button),:host([null-setting-disallowed]) .suffix ::slotted(.clear-button){display:none!important}:host(:not([allow-custom-value]):not([trigger-only])) .input{caret-color:transparent}:host(:not([allow-custom-value]):not([disabled])) .input{cursor:pointer}#default-slot{display:none}",Al=`<svg xmlns="http://www.w3.org/2000/svg" class="toggle-button" slot="suffix" viewBox="0 0 16 16">\r
1508
1528
  <path d="M13 4v2l-5 5-5-5v-2l5 5z"/>\r
1509
1529
  </svg>\r
1510
1530
  `,kl=`<svg xmlns="http://www.w3.org/2000/svg" class="clear-button" slot="suffix" viewBox="0 0 16 16">\r
1511
1531
  <path d="M12.96 4.46l-1.42-1.42-3.54 3.55-3.54-3.55-1.42 1.42 3.55 3.54-3.55 3.54 1.42 1.42 3.54-3.55 3.54 3.55 1.42-1.42-3.55-3.54 3.55-3.54z"/>\r
1512
1532
  </svg>\r
1513
- `;var $l=Object.defineProperty,Ol=Object.getOwnPropertyDescriptor,Oe=(i,e,t,s)=>{for(var a=s>1?void 0:s?Ol(e,t):e,r=i.length-1,n;r>=0;r--)(n=i[r])&&(a=(s?n(e,t,a):n(a))||a);return s&&a&&$l(e,t,a),a};const Il="sd-combo-box";function aa(i,e){let t;return function(...s){t!=null&&clearTimeout(t),t=window.setTimeout(()=>i(...s),e)}}let Ml=0;var ae;const Se=(ae=class extends oi{constructor(){super(),this.opened=!1,this.itemHeight=50,this.displayValuePath="caption",this.id=ae.ID+"_"+Ml++,this.inMemoryFilter=(e,t)=>{if(!e)return!0;const s=e.toLowerCase();return!!(typeof t.caption=="string"&&t.caption.toLowerCase().includes(s)||typeof t.description=="string"&&t.description.toLowerCase().includes(s))},this.minimumOverlayWidth=250,this._itemGenerator=Wa,this._itemCache=[],this.debouncedFilterItemsInMemory=aa(this.filterItemsInMemory.bind(this),200),this.handleSelection=e=>{const t=this._dataProvider.items[e.detail.index];e.detail.selected||(this._list.selectedIndices=[e.detail.index]),this.comboBoxValue={index:this._itemCache.indexOf(t),item:t},this.dispatchSelectionChangeEvent(),this.opened=!1},this.handleWindowPointerDown=e=>{!(e.target instanceof Node&&this.contains(e.target))&&this.opened&&e.composedPath().indexOf(this._list)===-1&&(this.triggerOnly&&(this.value=null),this.opened=!1)},this.handleKeyDown=e=>{switch(e.key){case"Down":case"ArrowDown":{e.preventDefault(),this.navigateInList(1);break}case"Up":case"ArrowUp":{e.preventDefault(),this.navigateInList(-1);break}case"Enter":{this.opened&&(e.preventDefault(),e.stopPropagation(),this.opened=!1);break}case"Escape":{this.opened&&(e.preventDefault(),e.stopPropagation(),this._list.selectedIndices.indexOf(this._list.focusIndex)>-1&&this._dataProvider.items.length>this._list.focusIndex?this.opened=!1:(this.clearFilter(),this.updateInputValue(null),this.updateFocusAndSelectedIndexFromValue(),this._list.selectedIndices.includes(this._list.focusIndex)||this._list.selectedIndices.push(this._list.focusIndex)));break}case"Tab":{this.opened&&(this.triggerOnly&&(this.value=null),this.opened=!1);break}}},this.debouncedRequestData=aa(this.requestData.bind(this),250),this._dataProvider=new xl,this._dataProvider.finalSizeIsKnown=!0}get clearFilterOnLazyLoadedSelection(){return this.triggerOnly}set clearFilterOnLazyLoadedSelection(e){console.warn("Using clearFilterOnLazyLoadedSelection setting on a combo-box is deprecated. Use triggerOnly instead."),this.triggerOnly=e}get itemGenerator(){return this._itemGenerator}set itemGenerator(e){this._itemGenerator=e,this._list&&(this._list.itemGenerator=this._itemGenerator)}get items(){return this._itemCache}set items(e){this._itemCache=e,this.isLazyLoadConfigured&&(this._dataProvider.items=e,this._lastRequestedPage=null),this.value&&!this.comboBoxValue&&this.updateComboBoxValueFromValue(),this.filterItemsInMemory(),this.opened&&this._popper&&this._popper.update()}get finalSizeIsKnown(){return this._dataProvider.finalSizeIsKnown}set finalSizeIsKnown(e){this._dataProvider.finalSizeIsKnown=e}configureLazyLoad(e){if(!e)throw new Error("It is not possible to configure lazy load without a given onDataRequest calback.");this._dataProvider.finalSizeIsKnown=!1,this._onDataRequest=e,this._dataProvider.onDataRequest=t=>{this.requestData(t,!1)}}get comboBoxValue(){return this._comboBoxValue}set comboBoxValue(e){this._comboBoxValue=e,this.updateInputValue(null),this.updateHasValue()}get selectedIndex(){return this.isCustomValue(this.comboBoxValue)||!this.comboBoxValue?-1:this.comboBoxValue.index}get displayValue(){return this.value}open(){this.opened=!0}static get styles(){return[Tt`
1533
+ `;var $l=Object.defineProperty,Ol=Object.getOwnPropertyDescriptor,Oe=(s,e,t,i)=>{for(var a=i>1?void 0:i?Ol(e,t):e,r=s.length-1,n;r>=0;r--)(n=s[r])&&(a=(i?n(e,t,a):n(a))||a);return i&&a&&$l(e,t,a),a};const Ml="sd-combo-box";function aa(s,e){let t;return function(...i){t!=null&&clearTimeout(t),t=window.setTimeout(()=>s(...i),e)}}let Il=0;var ae;const Se=(ae=class extends oi{constructor(){super(),this.opened=!1,this.itemHeight=50,this.displayValuePath="caption",this.id=ae.ID+"_"+Il++,this.inMemoryFilter=(e,t)=>{if(!e)return!0;const i=e.toLowerCase();return!!(typeof t.caption=="string"&&t.caption.toLowerCase().includes(i)||typeof t.description=="string"&&t.description.toLowerCase().includes(i))},this.minimumOverlayWidth=250,this._itemGenerator=Wa,this._itemCache=[],this.debouncedFilterItemsInMemory=aa(this.filterItemsInMemory.bind(this),200),this.handleSelection=e=>{const t=this._dataProvider.items[e.detail.index];e.detail.selected||(this._list.selectedIndices=[e.detail.index]),this.comboBoxValue={index:this._itemCache.indexOf(t),item:t},this.dispatchSelectionChangeEvent(),this.opened=!1},this.handleWindowPointerDown=e=>{!(e.target instanceof Node&&this.contains(e.target))&&this.opened&&e.composedPath().indexOf(this._list)===-1&&(this.triggerOnly&&(this.value=null),this.opened=!1)},this.handleKeyDown=e=>{switch(e.key){case"Down":case"ArrowDown":{e.preventDefault(),this.navigateInList(1);break}case"Up":case"ArrowUp":{e.preventDefault(),this.navigateInList(-1);break}case"Enter":{this.opened&&(e.preventDefault(),e.stopPropagation(),this.opened=!1);break}case"Escape":{this.opened&&(e.preventDefault(),e.stopPropagation(),this._list.selectedIndices.indexOf(this._list.focusIndex)>-1&&this._dataProvider.items.length>this._list.focusIndex?this.opened=!1:(this.clearFilter(),this.updateInputValue(null),this.updateFocusAndSelectedIndexFromValue(),this._list.selectedIndices.includes(this._list.focusIndex)||this._list.selectedIndices.push(this._list.focusIndex)));break}case"Tab":{this.opened&&(this.triggerOnly&&(this.value=null),this.opened=!1);break}}},this.debouncedRequestData=aa(this.requestData.bind(this),250),this._dataProvider=new xl,this._dataProvider.finalSizeIsKnown=!0}get clearFilterOnLazyLoadedSelection(){return this.triggerOnly}set clearFilterOnLazyLoadedSelection(e){console.warn("Using clearFilterOnLazyLoadedSelection setting on a combo-box is deprecated. Use triggerOnly instead."),this.triggerOnly=e}get itemGenerator(){return this._itemGenerator}set itemGenerator(e){this._itemGenerator=e,this._list&&(this._list.itemGenerator=this._itemGenerator)}get items(){return this._itemCache}set items(e){this._itemCache=e,this.isLazyLoadConfigured&&(this._dataProvider.items=e,this._lastRequestedPage=null),this.value&&!this.comboBoxValue&&this.updateComboBoxValueFromValue(),this.filterItemsInMemory(),this.opened&&this._popper&&this._popper.update()}get finalSizeIsKnown(){return this._dataProvider.finalSizeIsKnown}set finalSizeIsKnown(e){this._dataProvider.finalSizeIsKnown=e}configureLazyLoad(e){if(!e)throw new Error("It is not possible to configure lazy load without a given onDataRequest calback.");this._dataProvider.finalSizeIsKnown=!1,this._onDataRequest=e,this._dataProvider.onDataRequest=t=>{this.requestData(t,!1)}}get comboBoxValue(){return this._comboBoxValue}set comboBoxValue(e){this._comboBoxValue=e,this.updateInputValue(null),this.updateHasValue()}get selectedIndex(){return this.isCustomValue(this.comboBoxValue)||!this.comboBoxValue?-1:this.comboBoxValue.index}get displayValue(){return this.value}open(){this.opened=!0}static get styles(){return[Tt`
1514
1534
  ${ht(El)}
1515
1535
  `]}disconnectedCallback(){super.disconnectedCallback(),this._popper&&(this._popper.destroy(),this._popper=null)}render(){return ne`
1516
1536
  ${super.render()}
1517
1537
  <slot @slotchange=${this.onDefaultSlotChange} id="default-slot"></slot>
1518
- `}attributeChangedCallback(e,t,s){if(super.attributeChangedCallback(e,t,s),t!==s)switch(e){case"opened":{this.handleOpenedStateChange();break}case"item-height":{this._list&&(this._list.itemHeight=this.itemHeight);break}case"id":{this.updateListId();break}}}firstUpdated(e){super.firstUpdated(e),this.value&&!this.comboBoxValue&&this.updateComboBoxValueFromValue(),window.requestAnimationFrame(()=>{this.initClearButtton(),this.initToggleButtton(),this.updateHasValue(),this.addEventListener("click",()=>{this.disabled||(this.opened=!this.opened)}),this.addEventListener("keydown",t=>{this.disabled||this.handleKeyDown(t)})}),this.inputElement.setAttribute("role","combobox"),this.inputElement.setAttribute("aria-autocomplete","list")}updateComboBoxValueFromValue(){if(this.value){const e=this._itemCache.findIndex(t=>(t[this.displayValuePath]??"")===this.value);e>-1?this._comboBoxValue={index:e,item:this._itemCache[e]}:this.allowCustomValue?this._comboBoxValue=this.value:this._comboBoxValue=null,this.updateHasValue(),this.updateIconFromCurrentValue()}}updated(e){super.updated(e),e.has("showIcon")&&(this.showIcon?this._icon==null&&this.initIconWrapper():this._icon!=null&&(this._icon.remove(),this._icon=null)),e.has("currentText")&&this.updateHasValue(),e.has("triggerOnly")&&this._list&&(this._list.selectionType=this.triggerOnly?xt.TriggerOnly:xt.Single)}initIconWrapper(){this._icon=document.createElement("div"),this._icon.className="icon-wrapper",this._icon.role="img";const e=document.createElement("div");e.style.backgroundRepeat="no-repeat",e.style.backgroundPosition="center",e.style.backgroundSize="cover",e.style.height="24px",e.style.width="24px",this._icon.appendChild(e),this._icon.slot="prefix",this.appendChild(this._icon),this.updateIconFromCurrentValue()}updateIconFromCurrentValue(){var e;this.isCustomValue(this.comboBoxValue)?this.updateIcon(null):this.updateIcon((e=this.comboBoxValue)==null?void 0:e.item)}updateIcon(e){if(this._icon)if(e&&(e.icon||e.iconPlaceholder)){const t=e;t.attributes==null?(this._icon.title="",this._icon.ariaLabel=""):(this._icon.title=t.attributes["icon-attr-title"]??"",this._icon.ariaLabel=t.attributes["icon-attr-aria-label"]??""),this._icon.style.backgroundColor=t.iconBackgroundColor,this._icon.style.display="",Ga.showImage(this._icon.querySelector("div"),e.icon,e.iconPlaceholder)}else this._icon&&(this._icon.style.display="none")}updateHasValue(){this.currentText||this.comboBoxValue!=null&&this.comboBoxValue!=""?(this.setAttribute("has-value",""),this._clearButton&&(this._clearButton.style.display="")):this.removeAttribute("has-value")}shouldFloat(){return super.shouldFloat()||this.comboBoxValue!=null&&this.comboBoxValue!=""}initClearButtton(){const e=document.createElement("template");e.innerHTML=kl,this._clearButton=e.content.firstChild,this.appendChild(this._clearButton),this._clearButton.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),this.opened=!1,this.clearValue()})}initToggleButtton(){const e=document.createElement("template");e.innerHTML=Al,this._toggleButton=e.content.firstChild,this.appendChild(this._toggleButton),this._toggleButton.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),this.opened=!this.opened,this.select()})}filterItemsInMemory(){if(this.isLazyLoadConfigured)return;let e=!1;if(this.filterText&&(this.filterProperty?(this._dataProvider.items=this._itemCache.filter(t=>t[this.filterProperty]&&String(t[this.filterProperty]).indexOf(this.filterText)>-1),e=!0):this.inMemoryFilter&&(this._dataProvider.items=this._itemCache.filter(t=>this.inMemoryFilter(this.filterText,t)),e=!0)),!e)this._dataProvider.items=this._itemCache,this._list&&this.updateFocusAndSelectedIndexFromValue();else if(this._list)if(this.comboBoxValue&&!this.isCustomValue(this.comboBoxValue)){let t=this._dataProvider.items.indexOf(this.comboBoxValue.item);if(t==-1){const s=this.comboBoxValue.item.id;s!=null&&(t=this._dataProvider.items.findIndex(a=>a.id==s))}this._list.focusIndex=t,this._list.selectedIndices=t==-1?[]:[t]}else this._list.focusIndex=null;this.opened&&this._popper&&this._popper.update()}ensureListAndPopperInitialized(){if(this._list||(this._list=document.createElement(Ji.ID),this.updateListId(),this._list.classList.add("combo-box-dropdown"),this._list.itemHeight=this.itemHeight,this._list.itemGenerator=this.itemGenerator,this._list.selectionType=this.triggerOnly?xt.TriggerOnly:xt.Single,this._list.setAttribute("focus-target",""),Object.assign(this._list.style,{zIndex:"21000",boxShadow:`rgba(0, 0, 0, 0.14) 0px 2px 2px 0px,
1538
+ `}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),t!==i)switch(e){case"opened":{this.handleOpenedStateChange();break}case"item-height":{this._list&&(this._list.itemHeight=this.itemHeight);break}case"id":{this.updateListId();break}}}firstUpdated(e){super.firstUpdated(e),this.value&&!this.comboBoxValue&&this.updateComboBoxValueFromValue(),window.requestAnimationFrame(()=>{this.initClearButtton(),this.initToggleButtton(),this.updateHasValue(),this.addEventListener("click",()=>{this.disabled||(this.opened=!this.opened)}),this.addEventListener("keydown",t=>{this.disabled||this.handleKeyDown(t)})}),this.inputElement.setAttribute("role","combobox"),this.inputElement.setAttribute("aria-autocomplete","list")}updateComboBoxValueFromValue(){if(this.value){const e=this._itemCache.findIndex(t=>(t[this.displayValuePath]??"")===this.value);e>-1?this._comboBoxValue={index:e,item:this._itemCache[e]}:this.allowCustomValue?this._comboBoxValue=this.value:this._comboBoxValue=null,this.updateHasValue(),this.updateIconFromCurrentValue()}}updated(e){super.updated(e),e.has("showIcon")&&(this.showIcon?this._icon==null&&this.initIconWrapper():this._icon!=null&&(this._icon.remove(),this._icon=null)),e.has("currentText")&&this.updateHasValue(),e.has("triggerOnly")&&this._list&&(this._list.selectionType=this.triggerOnly?xt.TriggerOnly:xt.Single)}initIconWrapper(){this._icon=document.createElement("div"),this._icon.className="icon-wrapper",this._icon.role="img";const e=document.createElement("div");e.style.backgroundRepeat="no-repeat",e.style.backgroundPosition="center",e.style.backgroundSize="cover",e.style.height="24px",e.style.width="24px",this._icon.appendChild(e),this._icon.slot="prefix",this.appendChild(this._icon),this.updateIconFromCurrentValue()}updateIconFromCurrentValue(){var e;this.isCustomValue(this.comboBoxValue)?this.updateIcon(null):this.updateIcon((e=this.comboBoxValue)==null?void 0:e.item)}updateIcon(e){if(this._icon)if(e&&(e.icon||e.iconPlaceholder)){const t=e;t.attributes==null?(this._icon.title="",this._icon.ariaLabel=""):(this._icon.title=t.attributes["icon-attr-title"]??"",this._icon.ariaLabel=t.attributes["icon-attr-aria-label"]??""),this._icon.style.backgroundColor=t.iconBackgroundColor,this._icon.style.display="",Ga.showImage(this._icon.querySelector("div"),e.icon,e.iconPlaceholder)}else this._icon&&(this._icon.style.display="none")}updateHasValue(){this.currentText||this.comboBoxValue!=null&&this.comboBoxValue!=""?(this.setAttribute("has-value",""),this._clearButton&&(this._clearButton.style.display="")):this.removeAttribute("has-value")}shouldFloat(){return super.shouldFloat()||this.comboBoxValue!=null&&this.comboBoxValue!=""}initClearButtton(){const e=document.createElement("template");e.innerHTML=kl,this._clearButton=e.content.firstChild,this.appendChild(this._clearButton),this._clearButton.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),this.opened=!1,this.clearValue()})}initToggleButtton(){const e=document.createElement("template");e.innerHTML=Al,this._toggleButton=e.content.firstChild,this.appendChild(this._toggleButton),this._toggleButton.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),this.opened=!this.opened,this.select()})}filterItemsInMemory(){if(this.isLazyLoadConfigured)return;let e=!1;if(this.filterText&&(this.filterProperty?(this._dataProvider.items=this._itemCache.filter(t=>t[this.filterProperty]&&String(t[this.filterProperty]).indexOf(this.filterText)>-1),e=!0):this.inMemoryFilter&&(this._dataProvider.items=this._itemCache.filter(t=>this.inMemoryFilter(this.filterText,t)),e=!0)),!e)this._dataProvider.items=this._itemCache,this._list&&this.updateFocusAndSelectedIndexFromValue();else if(this._list)if(this.comboBoxValue&&!this.isCustomValue(this.comboBoxValue)){let t=this._dataProvider.items.indexOf(this.comboBoxValue.item);if(t==-1){const i=this.comboBoxValue.item.id;i!=null&&(t=this._dataProvider.items.findIndex(a=>a.id==i))}this._list.focusIndex=t,this._list.selectedIndices=t==-1?[]:[t]}else this._list.focusIndex=null;this.opened&&this._popper&&this._popper.update()}ensureListAndPopperInitialized(){if(this._list||(this._list=document.createElement(Ji.ID),this.updateListId(),this._list.classList.add("combo-box-dropdown"),this._list.itemHeight=this.itemHeight,this._list.itemGenerator=this.itemGenerator,this._list.selectionType=this.triggerOnly?xt.TriggerOnly:xt.Single,this._list.setAttribute("focus-target",""),Object.assign(this._list.style,{zIndex:"21000",boxShadow:`rgba(0, 0, 0, 0.14) 0px 2px 2px 0px,
1519
1539
  rgba(0, 0, 0, 0.12) 0px 1px 5px 0px,
1520
- rgba(0, 0, 0, 0.2) 0px 3px 1px -2px`,background:"white",overflowY:"auto"}),this._list.addEventListener("selection",this.handleSelection),this._dataProvider.connectList(this._list)),!this._popper){const e=this;this._popper=el(this,this._list,{placement:"bottom-start",modifiers:[{name:"computeStyles",options:{gpuAcceleration:!0}},{name:"hide",enabled:!1},{name:"closeIfReferenceHidden",enabled:!0,phase:"afterWrite",fn({state:t}){t.elements.reference.closeIfNotVisible()}},{name:"offset",options:{offset:({placement:t})=>t.indexOf("top")>-1?[0,-parseInt(getComputedStyle(e).paddingTop,10)]:t.indexOf("bottom")>-1?[0,-parseInt(getComputedStyle(e).paddingBottom,10)]:[0,0]}},{name:"adjustWidthIfNeeded",enabled:!0,phase:"read",fn({state:t}){t.elements.popper.increaseWidthOnNextRenderIfNeeded()}}]})}}closeIfNotVisible(){const e=this.elementFromMiddleOfComboBox();!this.contains(e)&&!this.shadowRoot.contains(e)&&e!==this._list&&(this.triggerOnly&&(this.value=null),this.opened=!1)}elementFromMiddleOfComboBox(){const e=this.getBoundingClientRect();return document.elementFromPoint(e.left+e.width/2,e.top+e.height/2)}async handleOpenedStateChange(){if(this.inputElement.setAttribute("aria-expanded",String(this.opened)),this.opened){if(!this.disabled){this.ensureListAndPopperInitialized();const e=(this.filterText??"")!==(this._lastRequestedFilterText??"");this.isLazyLoadConfigured&&(this.items.length==0||e)&&this.requestData(0,e),this.updateDropdownSizes(),this.ownerDocument.body.appendChild(this._list),this.updateFocusAndSelectedIndexFromValue(),window.requestAnimationFrame(()=>{this._popper&&this._popper.update()}),window.addEventListener("pointerdown",this.handleWindowPointerDown),!this.allowCustomValue&&!this._openedByFilterTextChange&&this.select()}this._openedByFilterTextChange=!1}else await this._list.updateComplete,this._popper&&await this._popper.update,this.ownerDocument.body.removeChild(this._list),window.removeEventListener("pointerdown",this.handleWindowPointerDown),this.updateValueOnClose(),this.clearFilter(),this.setSelectionRange(0,0),this.inputElement.removeAttribute("aria-activedescendant"),this._popper&&(this._popper.destroy(),this._popper=null)}updateValueOnClose(){var t;const e=this.comboBoxValue??"";if(this.nullSettingDisallowed&&!this.value&&this.comboBoxValue)this.restorePreviousSelection();else if(this.value!==(this.convertToDisplayValue(null)??"")){const s=this._dataProvider.items[this._list.focusIndex];if(s&&(s[this.displayValuePath]??"")===this.value){if(s.disabled){this.restorePreviousSelection();return}this.comboBoxValue={index:this._itemCache.indexOf(s),item:s}}else if(this.allowCustomValue||!this.value)this.comboBoxValue=this.value;else{const a=this._itemCache.findIndex(r=>(r[this.displayValuePath]??"")===this.value&&!r.disabled);a>-1?this.comboBoxValue={index:a,item:this._itemCache[a]}:this.restorePreviousSelection()}}else{const s=this._dataProvider.items[this._list.focusIndex];if(s&&s.id!=null){if(s.disabled){this.restorePreviousSelection();return}(!this.comboBoxValue||this.isCustomValue(this.comboBoxValue)||this.comboBoxValue.item.id!=s.id)&&(this.comboBoxValue={index:this._itemCache.indexOf(s),item:s})}}e!==(this.comboBoxValue??"")&&this.dispatchSelectionChangeEvent(),this.updateIcon(this.isCustomValue(this.comboBoxValue)?null:(t=this.comboBoxValue)==null?void 0:t.item)}restorePreviousSelection(){this.updateInputValue(null)}updateFocusAndSelectedIndexFromValue(){if(this.comboBoxValue&&!this.isCustomValue(this.comboBoxValue)&&!this._openedByFilterTextChange){let e=this.comboBoxValue.index;if((e==-1||this.isLazyLoadConfigured)&&(e=this.items.indexOf(this.comboBoxValue.item),e==-1)){const t=this.comboBoxValue.item.id;t!=null&&(e=this.items.findIndex(s=>s.id==t))}this._list.focusIndex=e,this._list.selectedIndices=e==-1?[]:[e]}else this._list.focusIndex=-1,this._list.selectedIndices=[];this.updateActiveDescendant()}navigateInList(e){this.opened?(this._list.focusIndex==null?e>0?this._list.focusIndex=0:this._list.focusIndex=Math.max(0,this._dataProvider.items.length-1):this._list.focusIndex=Math.max(0,Math.min(this._dataProvider.items.length-1,this._list.focusIndex+e)),this.updateInputValue(this._dataProvider.items[this._list.focusIndex]),this.updateActiveDescendant(),this.allowCustomValue||this.select()):this.opened=!0}updateActiveDescendant(){const e=this._list&&this._list.getListItem(this._list.focusIndex);e?this.inputElement.setAttribute("aria-activedescendant",e.id):this.inputElement.removeAttribute("aria-activedescendant")}updateInputValue(e){this.updateComplete.then(()=>{this.value=this.convertToDisplayValue(e),e?this.updateIcon(e):this.updateIconFromCurrentValue()})}convertToDisplayValue(e){return e?e[this.displayValuePath]:this.comboBoxValue?this.isCustomValue(this.comboBoxValue)?this.comboBoxValue:this.comboBoxValue.item[this.displayValuePath]:null}fireValueChange(e){if(e&&this.filterText!==this.value){const t=(this.filterText??"")!==this.value;this.filterText=this.value,this.updateIcon(null),this.opened||(this._openedByFilterTextChange=!0,this.opened=!0),t&&(this.dispatchFilterChangeEvent(),this.debouncedFilterItemsInMemory())}}clearValue(){this.nullSettingDisallowed||(this.value=null,this.inputElement.removeAttribute("aria-activedescendant"),this._list&&(this._list.selectedIndices=[]),this.clearFilter(),this.comboBoxValue&&(this.comboBoxValue=null,this.dispatchSelectionChangeEvent()),this.requestUpdate())}clearFilter(){this.filterText!=null&&(this.filterText=void 0,this.filterItemsInMemory(),this.dispatchFilterChangeEvent(),this.updateIconFromCurrentValue())}updateDropdownSizes(){const t=((window.innerHeight||document.documentElement.clientHeight)-this.offsetHeight)*.5;Object.assign(this._list.style,{maxHeight:`${t}px`,minWidth:`${Math.max(this.offsetWidth,this.minimumOverlayWidth)}px`,maxWidth:`max(50vw, ${this.offsetWidth}px)`})}updateListId(){this.inputElement&&this._list&&(this._list.id=this.id+"_list",this.inputElement.setAttribute("aria-controls",this._list.id))}isCustomValue(e){return typeof e=="string"}dispatchSelectionChangeEvent(){this.updateComplete.then(()=>{var e;if(this.dispatchEvent(new CustomEvent("selection-change",{detail:{selection:this.comboBoxValue,isCustomValue:this.isCustomValue(this.comboBoxValue)}})),this.triggerOnly)this.comboBoxValue=null;else{const t=this.comboBoxValue;this.isCustomValue(t)?this.setFormValue(t):this.setFormValue((e=t==null?void 0:t.item)==null?void 0:e.caption)}}).catch(e=>{console.error("Could not dispatch selection change event due to:",e)})}dispatchFilterChangeEvent(){this.dispatchEvent(new CustomEvent("filter-change",{detail:{value:this.filterText},composed:!0})),this.debouncedRequestData(0)}get isLazyLoadConfigured(){return!!this._onDataRequest}requestData(e,t){if(t==null&&(t=(this.filterText??"")!==(this._lastRequestedFilterText??"")),this.isLazyLoadConfigured){if(!this.opened){t&&(this._dataProvider.items=[],this._itemCache=[]);return}if(this._lastRequestedPage==e&&!t)return;this._pendingDataRequest&&this._pendingDataRequest.cancel(ae.DATA_REQUEST_CANCELLED);const s=new Promise((a,r)=>{this._pendingDataRequest={cancel:r}});this._lastRequestedPage=e,this._lastRequestedFilterText=this.filterText,this.setAttribute("loading",""),Promise.race([s,this._onDataRequest(this._lastRequestedFilterText,e)]).then(a=>{if(this.filterText==this._lastRequestedFilterText&&this._lastRequestedPage==e&&(this._dataProvider.finalSizeIsKnown=a.finalSizeIsKnown,t?(this._dataProvider.items=a.items,this._itemCache=a.items):(this._dataProvider.addItems(a.items),this._itemCache=this._dataProvider.items),this._list&&(this._list.itemCount=this._dataProvider.items.length),this._popper&&this.opened)){if(this.comboBoxValue&&!this.isCustomValue(this.comboBoxValue)){const r=this.comboBoxValue.item;if(this._list.selectedIndices.length==0||this.items[this._list.selectedIndices[0]]!=r){let n=this.items.indexOf(r);if(n==-1){const o=r.id;o!=null&&(n=this.items.findIndex(l=>l.id==o))}this.comboBoxValue.index=n,this._list.selectedIndices=n==-1?[]:[n]}}this.updateDropdownSizes(),this._popper.update()}this._pendingDataRequest=null,this.removeAttribute("loading")}).catch(a=>{a!==ae.DATA_REQUEST_CANCELLED&&(console.error(`Data could not be loaded for filter "${this._lastRequestedFilterText}" and page number "${e}" due to the following error:
1521
- ${a}`),this._dataProvider.finalSizeIsKnown=!0,this.items.length==0?this.opened=!1:this._list&&(this._list.itemCount=this.items.length),this.removeAttribute("loading")),this._pendingDataRequest=null})}}get defaultSlot(){return this.shadowRoot.querySelector("#default-slot")}onDefaultSlotChange(){this._declarativeItems=this.defaultSlot.assignedElements(),this._declarativeItems.length>0&&(this.finalSizeIsKnown=!0,this.itemGenerator=(e,t)=>this._declarativeItems[t].cloneNode(!0),this.items=this._declarativeItems.map(e=>{const t={caption:e.getAttribute("caption"),description:e.getAttribute("description")};return this.displayValuePath!="caption"&&this.displayValuePath!="description"&&(t[this.displayValuePath]=e[this.displayValuePath]||e.getAttribute(this.displayValuePath)),t}))}},ae.ID=Il,ae.ensureDefined=()=>{Ji.ensureDefined(),customElements.get(ae.ID)||customElements.define(ae.ID,ae)},ae.formAssociated=!0,ae.DATA_REQUEST_CANCELLED="cancel_data_request",ae);Oe([v({type:Boolean,reflect:!0})],Se.prototype,"opened",2);Oe([v({type:Number,attribute:"item-height"})],Se.prototype,"itemHeight",2);Oe([v({type:Boolean,attribute:"allow-custom-value",reflect:!0})],Se.prototype,"allowCustomValue",2);Oe([v({type:Boolean,attribute:"trigger-only",reflect:!0})],Se.prototype,"triggerOnly",2);Oe([v({type:Boolean,attribute:"null-setting-disallowed",reflect:!0})],Se.prototype,"nullSettingDisallowed",2);Oe([v({type:Boolean,attribute:"show-icon",reflect:!0})],Se.prototype,"showIcon",2);Oe([v({type:String,attribute:"display-value-path",noAccessor:!0})],Se.prototype,"displayValuePath",2);Oe([v({type:String,attribute:"filter-property",noAccessor:!0})],Se.prototype,"filterProperty",2);Oe([v({type:String,attribute:!0,reflect:!0})],Se.prototype,"id",2);let Rl=Se;Rl.ensureDefined();function Ka(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function Ll(i){if(i.__esModule)return i;var e=i.default;if(typeof e=="function"){var t=function s(){return this instanceof s?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(i).forEach(function(s){var a=Object.getOwnPropertyDescriptor(i,s);Object.defineProperty(t,s,a.get?a:{enumerable:!0,get:function(){return i[s]}})}),t}var xs={exports:{}},j=String,qa=function(){return{isColorSupported:!1,reset:j,bold:j,dim:j,italic:j,underline:j,inverse:j,hidden:j,strikethrough:j,black:j,red:j,green:j,yellow:j,blue:j,magenta:j,cyan:j,white:j,gray:j,bgBlack:j,bgRed:j,bgGreen:j,bgYellow:j,bgBlue:j,bgMagenta:j,bgCyan:j,bgWhite:j}};xs.exports=qa();xs.exports.createColors=qa;var Pl=xs.exports;const Dl={},Bl=Object.freeze(Object.defineProperty({__proto__:null,default:Dl},Symbol.toStringTag,{value:"Module"})),Ne=Ll(Bl);let na=Pl,ra=Ne,Zi=class Ja extends Error{constructor(e,t,s,a,r,n){super(e),this.name="CssSyntaxError",this.reason=e,r&&(this.file=r),a&&(this.source=a),n&&(this.plugin=n),typeof t<"u"&&typeof s<"u"&&(typeof t=="number"?(this.line=t,this.column=s):(this.line=t.line,this.column=t.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Ja)}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=na.isColorSupported),ra&&e&&(t=ra(t));let s=t.split(/\r?\n/),a=Math.max(this.line-3,0),r=Math.min(this.line+2,s.length),n=String(r).length,o,l;if(e){let{bold:c,gray:m,red:u}=na.createColors(!0);o=h=>c(u(h)),l=h=>m(h)}else o=l=c=>c;return s.slice(a,r).map((c,m)=>{let u=a+1+m,h=" "+(" "+u).slice(-n)+" | ";if(u===this.line){let g=l(h.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+l(h)+c+`
1540
+ rgba(0, 0, 0, 0.2) 0px 3px 1px -2px`,background:"white",overflowY:"auto"}),this._list.addEventListener("selection",this.handleSelection),this._dataProvider.connectList(this._list)),!this._popper){const e=this;this._popper=el(this,this._list,{placement:"bottom-start",modifiers:[{name:"computeStyles",options:{gpuAcceleration:!0}},{name:"hide",enabled:!1},{name:"closeIfReferenceHidden",enabled:!0,phase:"afterWrite",fn({state:t}){t.elements.reference.closeIfNotVisible()}},{name:"offset",options:{offset:({placement:t})=>{var i;return t.indexOf("top")>-1?[0,-parseInt(getComputedStyle(e).paddingTop,10)]:t.indexOf("bottom")>-1?[0,-parseInt(getComputedStyle(e).paddingBottom,10)-(((i=this.shadowRoot.querySelector(".validation-message-wrapper"))==null?void 0:i.offsetHeight)??0)]:[0,0]}}},{name:"adjustWidthIfNeeded",enabled:!0,phase:"read",fn({state:t}){t.elements.popper.increaseWidthOnNextRenderIfNeeded()}}]})}}closeIfNotVisible(){const e=this.elementFromMiddleOfComboBox();!this.contains(e)&&!this.shadowRoot.contains(e)&&e!==this._list&&(this.triggerOnly&&(this.value=null),this.opened=!1)}elementFromMiddleOfComboBox(){const e=this.getBoundingClientRect();return document.elementFromPoint(e.left+e.width/2,e.top+e.height/2)}async handleOpenedStateChange(){if(this.inputElement.setAttribute("aria-expanded",String(this.opened)),this.opened){if(!this.disabled){this.ensureListAndPopperInitialized();const e=(this.filterText??"")!==(this._lastRequestedFilterText??"");this.isLazyLoadConfigured&&(this.items.length==0||e)&&this.requestData(0,e),this.updateDropdownSizes(),this.ownerDocument.body.appendChild(this._list),this.updateFocusAndSelectedIndexFromValue(),window.requestAnimationFrame(()=>{this._popper&&this._popper.update()}),window.addEventListener("pointerdown",this.handleWindowPointerDown),!this.allowCustomValue&&!this._openedByFilterTextChange&&this.select()}this._openedByFilterTextChange=!1}else await this._list.updateComplete,this._popper&&await this._popper.update,this.ownerDocument.body.removeChild(this._list),window.removeEventListener("pointerdown",this.handleWindowPointerDown),this.updateValueOnClose(),this.clearFilter(),this.setSelectionRange(0,0),this.inputElement.removeAttribute("aria-activedescendant"),this._popper&&(this._popper.destroy(),this._popper=null)}updateValueOnClose(){var t;const e=this.comboBoxValue??"";if(this.nullSettingDisallowed&&!this.value&&this.comboBoxValue)this.restorePreviousSelection();else if(this.value!==(this.convertToDisplayValue(null)??"")){const i=this._dataProvider.items[this._list.focusIndex];if(i&&(i[this.displayValuePath]??"")===this.value){if(i.disabled){this.restorePreviousSelection();return}this.comboBoxValue={index:this._itemCache.indexOf(i),item:i}}else if(this.allowCustomValue||!this.value)this.comboBoxValue=this.value;else{const a=this._itemCache.findIndex(r=>(r[this.displayValuePath]??"")===this.value&&!r.disabled);a>-1?this.comboBoxValue={index:a,item:this._itemCache[a]}:this.restorePreviousSelection()}}else{const i=this._dataProvider.items[this._list.focusIndex];if(i&&i.id!=null){if(i.disabled){this.restorePreviousSelection();return}(!this.comboBoxValue||this.isCustomValue(this.comboBoxValue)||this.comboBoxValue.item.id!=i.id)&&(this.comboBoxValue={index:this._itemCache.indexOf(i),item:i})}}e!==(this.comboBoxValue??"")&&this.dispatchSelectionChangeEvent(),this.updateIcon(this.isCustomValue(this.comboBoxValue)?null:(t=this.comboBoxValue)==null?void 0:t.item)}restorePreviousSelection(){this.updateInputValue(null)}updateFocusAndSelectedIndexFromValue(){if(this.comboBoxValue&&!this.isCustomValue(this.comboBoxValue)&&!this._openedByFilterTextChange){let e=this.comboBoxValue.index;if((e==-1||this.isLazyLoadConfigured)&&(e=this.items.indexOf(this.comboBoxValue.item),e==-1)){const t=this.comboBoxValue.item.id;t!=null&&(e=this.items.findIndex(i=>i.id==t))}this._list.focusIndex=e,this._list.selectedIndices=e==-1?[]:[e]}else this._list.focusIndex=-1,this._list.selectedIndices=[];this.updateActiveDescendant()}navigateInList(e){this.opened?(this._list.focusIndex==null?e>0?this._list.focusIndex=0:this._list.focusIndex=Math.max(0,this._dataProvider.items.length-1):this._list.focusIndex=Math.max(0,Math.min(this._dataProvider.items.length-1,this._list.focusIndex+e)),this.updateInputValue(this._dataProvider.items[this._list.focusIndex]),this.updateActiveDescendant(),this.allowCustomValue||this.select()):this.opened=!0}updateActiveDescendant(){const e=this._list&&this._list.getListItem(this._list.focusIndex);e?this.inputElement.setAttribute("aria-activedescendant",e.id):this.inputElement.removeAttribute("aria-activedescendant")}updateInputValue(e){this.updateComplete.then(()=>{this.value=this.convertToDisplayValue(e),e?this.updateIcon(e):this.updateIconFromCurrentValue()})}convertToDisplayValue(e){return e?e[this.displayValuePath]:this.comboBoxValue?this.isCustomValue(this.comboBoxValue)?this.comboBoxValue:this.comboBoxValue.item[this.displayValuePath]:null}fireValueChange(e){if(e&&this.filterText!==this.value){const t=(this.filterText??"")!==this.value;this.filterText=this.value,this.updateIcon(null),this.opened||(this._openedByFilterTextChange=!0,this.opened=!0),t&&(this.dispatchFilterChangeEvent(),this.debouncedFilterItemsInMemory())}}clearValue(){this.nullSettingDisallowed||(this.value=null,this.inputElement.removeAttribute("aria-activedescendant"),this._list&&(this._list.selectedIndices=[]),this.clearFilter(),this.comboBoxValue&&(this.comboBoxValue=null,this.dispatchSelectionChangeEvent()),this.requestUpdate())}clearFilter(){this.filterText!=null&&(this.filterText=void 0,this.filterItemsInMemory(),this.dispatchFilterChangeEvent(),this.updateIconFromCurrentValue())}updateDropdownSizes(){const t=((window.innerHeight||document.documentElement.clientHeight)-this.offsetHeight)*.5;Object.assign(this._list.style,{maxHeight:`${t}px`,minWidth:`${Math.max(this.offsetWidth,this.minimumOverlayWidth)}px`,maxWidth:`max(50vw, ${this.offsetWidth}px)`})}updateListId(){this.inputElement&&this._list&&(this._list.id=this.id+"_list",this.inputElement.setAttribute("aria-controls",this._list.id))}isCustomValue(e){return typeof e=="string"}dispatchSelectionChangeEvent(){this.updateComplete.then(()=>{var e;if(this.dispatchEvent(new CustomEvent("selection-change",{detail:{selection:this.comboBoxValue,isCustomValue:this.isCustomValue(this.comboBoxValue)}})),this.triggerOnly)this.comboBoxValue=null;else{const t=this.comboBoxValue;this.isCustomValue(t)?this.setFormValue(t):this.setFormValue((e=t==null?void 0:t.item)==null?void 0:e.caption)}}).catch(e=>{console.error("Could not dispatch selection change event due to:",e)})}dispatchFilterChangeEvent(){this.dispatchEvent(new CustomEvent("filter-change",{detail:{value:this.filterText},composed:!0})),this.debouncedRequestData(0)}get isLazyLoadConfigured(){return!!this._onDataRequest}requestData(e,t){if(t==null&&(t=(this.filterText??"")!==(this._lastRequestedFilterText??"")),this.isLazyLoadConfigured){if(!this.opened){t&&(this._dataProvider.items=[],this._itemCache=[]);return}if(this._lastRequestedPage==e&&!t)return;this._pendingDataRequest&&this._pendingDataRequest.cancel(ae.DATA_REQUEST_CANCELLED);const i=new Promise((a,r)=>{this._pendingDataRequest={cancel:r}});this._lastRequestedPage=e,this._lastRequestedFilterText=this.filterText,this.setAttribute("loading",""),Promise.race([i,this._onDataRequest(this._lastRequestedFilterText,e)]).then(a=>{if(this.filterText==this._lastRequestedFilterText&&this._lastRequestedPage==e&&(this._dataProvider.finalSizeIsKnown=a.finalSizeIsKnown,t?(this._dataProvider.items=a.items,this._itemCache=a.items):(this._dataProvider.addItems(a.items),this._itemCache=this._dataProvider.items),this._list&&(this._list.itemCount=this._dataProvider.items.length),this._popper&&this.opened)){if(this.comboBoxValue&&!this.isCustomValue(this.comboBoxValue)){const r=this.comboBoxValue.item;if(this._list.selectedIndices.length==0||this.items[this._list.selectedIndices[0]]!=r){let n=this.items.indexOf(r);if(n==-1){const o=r.id;o!=null&&(n=this.items.findIndex(l=>l.id==o))}this.comboBoxValue.index=n,this._list.selectedIndices=n==-1?[]:[n]}}this.updateDropdownSizes(),this._popper.update()}this._pendingDataRequest=null,this.removeAttribute("loading")}).catch(a=>{a!==ae.DATA_REQUEST_CANCELLED&&(console.error(`Data could not be loaded for filter "${this._lastRequestedFilterText}" and page number "${e}" due to the following error:
1541
+ ${a}`),this._dataProvider.finalSizeIsKnown=!0,this.items.length==0?this.opened=!1:this._list&&(this._list.itemCount=this.items.length),this.removeAttribute("loading")),this._pendingDataRequest=null})}}get defaultSlot(){return this.shadowRoot.querySelector("#default-slot")}onDefaultSlotChange(){this._declarativeItems=this.defaultSlot.assignedElements(),this._declarativeItems.length>0&&(this.finalSizeIsKnown=!0,this.itemGenerator=(e,t)=>this._declarativeItems[t].cloneNode(!0),this.items=this._declarativeItems.map(e=>{const t={caption:e.getAttribute("caption"),description:e.getAttribute("description")};return this.displayValuePath!="caption"&&this.displayValuePath!="description"&&(t[this.displayValuePath]=e[this.displayValuePath]||e.getAttribute(this.displayValuePath)),t}))}},ae.ID=Ml,ae.ensureDefined=()=>{Ji.ensureDefined(),customElements.get(ae.ID)||customElements.define(ae.ID,ae)},ae.formAssociated=!0,ae.DATA_REQUEST_CANCELLED="cancel_data_request",ae);Oe([v({type:Boolean,reflect:!0})],Se.prototype,"opened",2);Oe([v({type:Number,attribute:"item-height"})],Se.prototype,"itemHeight",2);Oe([v({type:Boolean,attribute:"allow-custom-value",reflect:!0})],Se.prototype,"allowCustomValue",2);Oe([v({type:Boolean,attribute:"trigger-only",reflect:!0})],Se.prototype,"triggerOnly",2);Oe([v({type:Boolean,attribute:"null-setting-disallowed",reflect:!0})],Se.prototype,"nullSettingDisallowed",2);Oe([v({type:Boolean,attribute:"show-icon",reflect:!0})],Se.prototype,"showIcon",2);Oe([v({type:String,attribute:"display-value-path",noAccessor:!0})],Se.prototype,"displayValuePath",2);Oe([v({type:String,attribute:"filter-property",noAccessor:!0})],Se.prototype,"filterProperty",2);Oe([v({type:String,attribute:!0,reflect:!0})],Se.prototype,"id",2);let Rl=Se;Rl.ensureDefined();function Ka(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Ll(s){if(s.__esModule)return s;var e=s.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(s).forEach(function(i){var a=Object.getOwnPropertyDescriptor(s,i);Object.defineProperty(t,i,a.get?a:{enumerable:!0,get:function(){return s[i]}})}),t}var xs={exports:{}},j=String,qa=function(){return{isColorSupported:!1,reset:j,bold:j,dim:j,italic:j,underline:j,inverse:j,hidden:j,strikethrough:j,black:j,red:j,green:j,yellow:j,blue:j,magenta:j,cyan:j,white:j,gray:j,bgBlack:j,bgRed:j,bgGreen:j,bgYellow:j,bgBlue:j,bgMagenta:j,bgCyan:j,bgWhite:j}};xs.exports=qa();xs.exports.createColors=qa;var Pl=xs.exports;const Dl={},Bl=Object.freeze(Object.defineProperty({__proto__:null,default:Dl},Symbol.toStringTag,{value:"Module"})),Ne=Ll(Bl);let na=Pl,ra=Ne,Zi=class Ja extends Error{constructor(e,t,i,a,r,n){super(e),this.name="CssSyntaxError",this.reason=e,r&&(this.file=r),a&&(this.source=a),n&&(this.plugin=n),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,Ja)}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=na.isColorSupported),ra&&e&&(t=ra(t));let i=t.split(/\r?\n/),a=Math.max(this.line-3,0),r=Math.min(this.line+2,i.length),n=String(r).length,o,l;if(e){let{bold:c,gray:m,red:u}=na.createColors(!0);o=h=>c(u(h)),l=h=>m(h)}else o=l=c=>c;return i.slice(a,r).map((c,m)=>{let u=a+1+m,h=" "+(" "+u).slice(-n)+" | ";if(u===this.line){let g=l(h.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+l(h)+c+`
1522
1542
  `+g+o("^")}return" "+l(h)+c}).join(`
1523
1543
  `)}toString(){let e=this.showSourceCode();return e&&(e=`
1524
1544
 
@@ -1528,25 +1548,25 @@ ${a}`),this._dataProvider.finalSizeIsKnown=!0,this.items.length==0?this.opened=!
1528
1548
  `,beforeComment:`
1529
1549
  `,beforeDecl:`
1530
1550
  `,beforeOpen:" ",beforeRule:`
1531
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Tl(i){return i[0].toUpperCase()+i.slice(1)}let Xi=class{constructor(e){this.builder=e}atrule(e,t){let s="@"+e.name,a=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?s+=e.raws.afterName:a&&(s+=" "),e.nodes)this.block(e,s+a);else{let r=(e.raws.between||"")+(t?";":"");this.builder(s+a+r,e)}}beforeAfter(e,t){let s;e.type==="decl"?s=this.raw(e,null,"beforeDecl"):e.type==="comment"?s=this.raw(e,null,"beforeComment"):t==="before"?s=this.raw(e,null,"beforeRule"):s=this.raw(e,null,"beforeClose");let a=e.parent,r=0;for(;a&&a.type!=="root";)r+=1,a=a.parent;if(s.includes(`
1532
- `)){let n=this.raw(e,null,"indent");if(n.length)for(let o=0;o<r;o++)s+=n}return s}block(e,t){let s=this.raw(e,"between","beforeOpen");this.builder(t+s+"{",e,"start");let a;e.nodes&&e.nodes.length?(this.body(e),a=this.raw(e,"after")):a=this.raw(e,"after","emptyBody"),a&&this.builder(a),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let s=this.raw(e,"semicolon");for(let a=0;a<e.nodes.length;a++){let r=e.nodes[a],n=this.raw(r,"before");n&&this.builder(n),this.stringify(r,t!==a||s)}}comment(e){let t=this.raw(e,"left","commentLeft"),s=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+s+"*/",e)}decl(e,t){let s=this.raw(e,"between","colon"),a=e.prop+s+this.rawValue(e,"value");e.important&&(a+=e.raws.important||" !important"),t&&(a+=";"),this.builder(a,e)}document(e){this.body(e)}raw(e,t,s){let a;if(s||(s=t),t&&(a=e.raws[t],typeof a<"u"))return a;let r=e.parent;if(s==="before"&&(!r||r.type==="root"&&r.first===e||r&&r.type==="document"))return"";if(!r)return oa[s];let n=e.root();if(n.rawCache||(n.rawCache={}),typeof n.rawCache[s]<"u")return n.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(e,s);{let o="raw"+Tl(s);this[o]?a=this[o](n,e):n.walk(l=>{if(a=l.raws[t],typeof a<"u")return!1})}return typeof a>"u"&&(a=oa[s]),n.rawCache[s]=a,a}rawBeforeClose(e){let t;return e.walk(s=>{if(s.nodes&&s.nodes.length>0&&typeof s.raws.after<"u")return t=s.raws.after,t.includes(`
1533
- `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let s;return e.walkComments(a=>{if(typeof a.raws.before<"u")return s=a.raws.before,s.includes(`
1534
- `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(t,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(e,t){let s;return e.walkDecls(a=>{if(typeof a.raws.before<"u")return s=a.raws.before,s.includes(`
1535
- `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(t,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(e){let t;return e.walk(s=>{if(s.type!=="decl"&&(t=s.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(s=>{if(s.nodes&&(s.parent!==e||e.first!==s)&&typeof s.raws.before<"u")return t=s.raws.before,t.includes(`
1536
- `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(s=>{if(typeof s.raws.between<"u")return t=s.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(s=>{if(s.nodes&&s.nodes.length===0&&(t=s.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(s=>{let a=s.parent;if(a&&a!==e&&a.parent&&a.parent===e&&typeof s.raws.before<"u"){let r=s.raws.before.split(`
1537
- `);return t=r[r.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(t=s.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let s=e[t],a=e.raws[t];return a&&a.value===s?a.raw:s}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 Za=Xi;Xi.default=Xi;let zl=Za;function Yi(i,e){new zl(e).stringify(i)}var wi=Yi;Yi.default=Yi;let{isClean:qt,my:jl}=Ft,Vl=ws,Fl=Za,Hl=wi;function Qi(i,e){let t=new i.constructor;for(let s in i){if(!Object.prototype.hasOwnProperty.call(i,s)||s==="proxyCache")continue;let a=i[s],r=typeof a;s==="parent"&&r==="object"?e&&(t[s]=e):s==="source"?t[s]=a:Array.isArray(a)?t[s]=a.map(n=>Qi(n,t)):(r==="object"&&a!==null&&(a=Qi(a)),t[s]=a)}return t}let es=class{constructor(e={}){this.raws={},this[qt]=!1,this[jl]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let s of e[t])typeof s.clone=="function"?this.append(s.clone()):this.append(s)}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=Qi(this);for(let s in e)t[s]=e[s];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:s,start:a}=this.rangeBy(t);return this.source.input.error(e,{column:a.column,line:a.line},{column:s.column,line:s.line},t)}return new Vl(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,s){return e[t]===s||(e[t]=s,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markDirty(){if(this[qt]){this[qt]=!1;let e=this;for(;e=e.parent;)e[qt]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let s=this.source.start;if(e.index)s=this.positionInside(e.index,t);else if(e.word){t=this.toString();let a=t.indexOf(e.word);a!==-1&&(s=this.positionInside(a,t))}return s}positionInside(e,t){let s=t||this.toString(),a=this.source.start.column,r=this.source.start.line;for(let n=0;n<e;n++)s[n]===`
1538
- `?(a=1,r+=1):a+=1;return{column:a,line:r}}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},s=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 a=this.toString(),r=a.indexOf(e.word);r!==-1&&(t=this.positionInside(r,a),s=this.positionInside(r+e.word.length,a))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?s={column:e.end.column,line:e.end.line}:e.endIndex?s=this.positionInside(e.endIndex):e.index&&(s=this.positionInside(e.index+1));return(s.line<t.line||s.line===t.line&&s.column<=t.column)&&(s={column:t.column+1,line:t.line}),{end:s,start:t}}raw(e,t){return new Fl().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,s=!1;for(let a of e)a===this?s=!0:s?(this.parent.insertAfter(t,a),t=a):this.parent.insertBefore(t,a);s||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let s={},a=t==null;t=t||new Map;let r=0;for(let n in this){if(!Object.prototype.hasOwnProperty.call(this,n)||n==="parent"||n==="proxyCache")continue;let o=this[n];if(Array.isArray(o))s[n]=o.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,t):l);else if(typeof o=="object"&&o.toJSON)s[n]=o.toJSON(null,t);else if(n==="source"){let l=t.get(o.input);l==null&&(l=r,t.set(o.input,r),r++),s[n]={end:o.end,inputId:l,start:o.start}}else s[n]=o}return a&&(s.inputs=[...t.keys()].map(n=>n.toJSON())),s}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Hl){e.stringify&&(e=e.stringify);let t="";return e(this,s=>{t+=s}),t}warn(e,t,s){let a={node:this};for(let r in s)a[r]=s[r];return e.warn(t,a)}get proxyOf(){return this}};var _i=es;es.default=es;let Ul=_i,ts=class extends Ul{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 Si=ts;ts.default=ts;let Gl="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Wl=(i,e=21)=>(t=e)=>{let s="",a=t;for(;a--;)s+=i[Math.random()*i.length|0];return s},Kl=(i=21)=>{let e="",t=i;for(;t--;)e+=Gl[Math.random()*64|0];return e};var ql={nanoid:Kl,customAlphabet:Wl};let{SourceMapConsumer:la,SourceMapGenerator:ca}=Ne,{existsSync:Jl,readFileSync:Zl}=Ne,{dirname:Ti,join:Xl}=Ne;function Yl(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}let is=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let s=t.map?t.map.prev:void 0,a=this.loadMap(t.from,s);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Ti(this.mapFile)),a&&(this.text=a)}consumer(){return this.consumerCache||(this.consumerCache=new la(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,s=/^data:application\/json;base64,/,a=/^data:application\/json;charset=utf-?8,/,r=/^data:application\/json,/;if(a.test(e)||r.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||s.test(e))return Yl(e.substr(RegExp.lastMatch.length));let n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)}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 s=e.lastIndexOf(t.pop()),a=e.indexOf("*/",s);s>-1&&a>-1&&(this.annotation=this.getAnnotationURL(e.substring(s,a)))}loadFile(e){if(this.root=Ti(e),Jl(e))return this.mapFile=e,Zl(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 s=t(e);if(s){let a=this.loadFile(s);if(!a)throw new Error("Unable to load previous source map: "+s.toString());return a}}else{if(t instanceof la)return ca.fromSourceMap(t).toString();if(t instanceof ca)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 s=this.annotation;return e&&(s=Xl(Ti(e),s)),this.loadFile(s)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Xa=is;is.default=is;let{SourceMapConsumer:Ql,SourceMapGenerator:ec}=Ne,{fileURLToPath:ma,pathToFileURL:Jt}=Ne,{isAbsolute:ss,resolve:as}=Ne,{nanoid:tc}=ql,zi=Ne,da=ws,ic=Xa,ji=Symbol("fromOffsetCache"),sc=!!(Ql&&ec),ua=!!(as&&ss),fi=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&&(!ua||/^\w+:\/\//.test(t.from)||ss(t.from)?this.file=t.from:this.file=as(t.from)),ua&&sc){let s=new ic(this.css,t);if(s.text){this.map=s;let a=s.consumer().file;!this.file&&a&&(this.file=this.mapResolve(a))}}this.file||(this.id="<input css "+tc(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,s,a={}){let r,n,o;if(t&&typeof t=="object"){let c=t,m=s;if(typeof c.offset=="number"){let u=this.fromOffset(c.offset);t=u.line,s=u.col}else t=c.line,s=c.column;if(typeof m.offset=="number"){let u=this.fromOffset(m.offset);n=u.line,o=u.col}else n=m.line,o=m.column}else if(!s){let c=this.fromOffset(t);t=c.line,s=c.col}let l=this.origin(t,s,n,o);return l?r=new da(e,l.endLine===void 0?l.line:{column:l.column,line:l.line},l.endLine===void 0?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,a.plugin):r=new da(e,n===void 0?t:{column:s,line:t},n===void 0?s:{column:o,line:n},this.css,this.file,a.plugin),r.input={column:s,endColumn:o,endLine:n,line:t,source:this.css},this.file&&(Jt&&(r.input.url=Jt(this.file).toString()),r.input.file=this.file),r}fromOffset(e){let t,s;if(this[ji])s=this[ji];else{let r=this.css.split(`
1539
- `);s=new Array(r.length);let n=0;for(let o=0,l=r.length;o<l;o++)s[o]=n,n+=r[o].length+1;this[ji]=s}t=s[s.length-1];let a=0;if(e>=t)a=s.length-1;else{let r=s.length-2,n;for(;a<r;)if(n=a+(r-a>>1),e<s[n])r=n-1;else if(e>=s[n+1])a=n+1;else{a=n;break}}return{col:e-s[a]+1,line:a+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:as(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,s,a){if(!this.map)return!1;let r=this.map.consumer(),n=r.originalPositionFor({column:t,line:e});if(!n.source)return!1;let o;typeof s=="number"&&(o=r.originalPositionFor({column:a,line:s}));let l;ss(n.source)?l=Jt(n.source):l=new URL(n.source,this.map.consumer().sourceRoot||Jt(this.map.mapFile));let c={column:n.column,endColumn:o&&o.column,endLine:o&&o.line,line:n.line,url:l.toString()};if(l.protocol==="file:")if(ma)c.file=ma(l);else throw new Error("file: protocol is not available in this PostCSS build");let m=r.sourceContentFor(n.source);return m&&(c.source=m),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 Ci=fi;fi.default=fi;zi&&zi.registerInput&&zi.registerInput(fi);let{SourceMapConsumer:Ya,SourceMapGenerator:li}=Ne,{dirname:ci,relative:Qa,resolve:en,sep:tn}=Ne,{pathToFileURL:ha}=Ne,ac=Ci,nc=!!(Ya&&li),rc=!!(ci&&en&&Qa&&tn),oc=class{constructor(e,t,s,a){this.stringify=e,this.mapOpts=s.map||{},this.root=t,this.opts=s,this.css=a,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=`
1551
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Tl(s){return s[0].toUpperCase()+s.slice(1)}let Xi=class{constructor(e){this.builder=e}atrule(e,t){let i="@"+e.name,a=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?i+=e.raws.afterName:a&&(i+=" "),e.nodes)this.block(e,i+a);else{let r=(e.raws.between||"")+(t?";":"");this.builder(i+a+r,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 a=e.parent,r=0;for(;a&&a.type!=="root";)r+=1,a=a.parent;if(i.includes(`
1552
+ `)){let n=this.raw(e,null,"indent");if(n.length)for(let o=0;o<r;o++)i+=n}return i}block(e,t){let i=this.raw(e,"between","beforeOpen");this.builder(t+i+"{",e,"start");let a;e.nodes&&e.nodes.length?(this.body(e),a=this.raw(e,"after")):a=this.raw(e,"after","emptyBody"),a&&this.builder(a),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 a=0;a<e.nodes.length;a++){let r=e.nodes[a],n=this.raw(r,"before");n&&this.builder(n),this.stringify(r,t!==a||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"),a=e.prop+i+this.rawValue(e,"value");e.important&&(a+=e.raws.important||" !important"),t&&(a+=";"),this.builder(a,e)}document(e){this.body(e)}raw(e,t,i){let a;if(i||(i=t),t&&(a=e.raws[t],typeof a<"u"))return a;let r=e.parent;if(i==="before"&&(!r||r.type==="root"&&r.first===e||r&&r.type==="document"))return"";if(!r)return oa[i];let n=e.root();if(n.rawCache||(n.rawCache={}),typeof n.rawCache[i]<"u")return n.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(e,i);{let o="raw"+Tl(i);this[o]?a=this[o](n,e):n.walk(l=>{if(a=l.raws[t],typeof a<"u")return!1})}return typeof a>"u"&&(a=oa[i]),n.rawCache[i]=a,a}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(`
1553
+ `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let i;return e.walkComments(a=>{if(typeof a.raws.before<"u")return i=a.raws.before,i.includes(`
1554
+ `)&&(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(a=>{if(typeof a.raws.before<"u")return i=a.raws.before,i.includes(`
1555
+ `)&&(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(`
1556
+ `)&&(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 a=i.parent;if(a&&a!==e&&a.parent&&a.parent===e&&typeof i.raws.before<"u"){let r=i.raws.before.split(`
1557
+ `);return t=r[r.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],a=e.raws[t];return a&&a.value===i?a.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 Za=Xi;Xi.default=Xi;let zl=Za;function Yi(s,e){new zl(e).stringify(s)}var wi=Yi;Yi.default=Yi;let{isClean:qt,my:jl}=Ft,Vl=ws,Fl=Za,Hl=wi;function Qi(s,e){let t=new s.constructor;for(let i in s){if(!Object.prototype.hasOwnProperty.call(s,i)||i==="proxyCache")continue;let a=s[i],r=typeof a;i==="parent"&&r==="object"?e&&(t[i]=e):i==="source"?t[i]=a:Array.isArray(a)?t[i]=a.map(n=>Qi(n,t)):(r==="object"&&a!==null&&(a=Qi(a)),t[i]=a)}return t}let es=class{constructor(e={}){this.raws={},this[qt]=!1,this[jl]=!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=Qi(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:a}=this.rangeBy(t);return this.source.input.error(e,{column:a.column,line:a.line},{column:i.column,line:i.line},t)}return new Vl(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[qt]){this[qt]=!1;let e=this;for(;e=e.parent;)e[qt]=!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 a=t.indexOf(e.word);a!==-1&&(i=this.positionInside(a,t))}return i}positionInside(e,t){let i=t||this.toString(),a=this.source.start.column,r=this.source.start.line;for(let n=0;n<e;n++)i[n]===`
1558
+ `?(a=1,r+=1):a+=1;return{column:a,line:r}}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 a=this.toString(),r=a.indexOf(e.word);r!==-1&&(t=this.positionInside(r,a),i=this.positionInside(r+e.word.length,a))}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 Fl().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 a of e)a===this?i=!0:i?(this.parent.insertAfter(t,a),t=a):this.parent.insertBefore(t,a);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={},a=t==null;t=t||new Map;let r=0;for(let n in this){if(!Object.prototype.hasOwnProperty.call(this,n)||n==="parent"||n==="proxyCache")continue;let o=this[n];if(Array.isArray(o))i[n]=o.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,t):l);else if(typeof o=="object"&&o.toJSON)i[n]=o.toJSON(null,t);else if(n==="source"){let l=t.get(o.input);l==null&&(l=r,t.set(o.input,r),r++),i[n]={end:o.end,inputId:l,start:o.start}}else i[n]=o}return a&&(i.inputs=[...t.keys()].map(n=>n.toJSON())),i}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Hl){e.stringify&&(e=e.stringify);let t="";return e(this,i=>{t+=i}),t}warn(e,t,i){let a={node:this};for(let r in i)a[r]=i[r];return e.warn(t,a)}get proxyOf(){return this}};var _i=es;es.default=es;let Ul=_i,ts=class extends Ul{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 Si=ts;ts.default=ts;let Gl="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Wl=(s,e=21)=>(t=e)=>{let i="",a=t;for(;a--;)i+=s[Math.random()*s.length|0];return i},Kl=(s=21)=>{let e="",t=s;for(;t--;)e+=Gl[Math.random()*64|0];return e};var ql={nanoid:Kl,customAlphabet:Wl};let{SourceMapConsumer:la,SourceMapGenerator:ca}=Ne,{existsSync:Jl,readFileSync:Zl}=Ne,{dirname:Ti,join:Xl}=Ne;function Yl(s){return Buffer?Buffer.from(s,"base64").toString():window.atob(s)}let is=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,a=this.loadMap(t.from,i);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Ti(this.mapFile)),a&&(this.text=a)}consumer(){return this.consumerCache||(this.consumerCache=new la(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,a=/^data:application\/json;charset=utf-?8,/,r=/^data:application\/json,/;if(a.test(e)||r.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||i.test(e))return Yl(e.substr(RegExp.lastMatch.length));let n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)}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()),a=e.indexOf("*/",i);i>-1&&a>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,a)))}loadFile(e){if(this.root=Ti(e),Jl(e))return this.mapFile=e,Zl(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 a=this.loadFile(i);if(!a)throw new Error("Unable to load previous source map: "+i.toString());return a}}else{if(t instanceof la)return ca.fromSourceMap(t).toString();if(t instanceof ca)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=Xl(Ti(e),i)),this.loadFile(i)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Xa=is;is.default=is;let{SourceMapConsumer:Ql,SourceMapGenerator:ec}=Ne,{fileURLToPath:ma,pathToFileURL:Jt}=Ne,{isAbsolute:ss,resolve:as}=Ne,{nanoid:tc}=ql,zi=Ne,da=ws,ic=Xa,ji=Symbol("fromOffsetCache"),sc=!!(Ql&&ec),ua=!!(as&&ss),fi=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&&(!ua||/^\w+:\/\//.test(t.from)||ss(t.from)?this.file=t.from:this.file=as(t.from)),ua&&sc){let i=new ic(this.css,t);if(i.text){this.map=i;let a=i.consumer().file;!this.file&&a&&(this.file=this.mapResolve(a))}}this.file||(this.id="<input css "+tc(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,i,a={}){let r,n,o;if(t&&typeof t=="object"){let c=t,m=i;if(typeof c.offset=="number"){let u=this.fromOffset(c.offset);t=u.line,i=u.col}else t=c.line,i=c.column;if(typeof m.offset=="number"){let u=this.fromOffset(m.offset);n=u.line,o=u.col}else n=m.line,o=m.column}else if(!i){let c=this.fromOffset(t);t=c.line,i=c.col}let l=this.origin(t,i,n,o);return l?r=new da(e,l.endLine===void 0?l.line:{column:l.column,line:l.line},l.endLine===void 0?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,a.plugin):r=new da(e,n===void 0?t:{column:i,line:t},n===void 0?i:{column:o,line:n},this.css,this.file,a.plugin),r.input={column:i,endColumn:o,endLine:n,line:t,source:this.css},this.file&&(Jt&&(r.input.url=Jt(this.file).toString()),r.input.file=this.file),r}fromOffset(e){let t,i;if(this[ji])i=this[ji];else{let r=this.css.split(`
1559
+ `);i=new Array(r.length);let n=0;for(let o=0,l=r.length;o<l;o++)i[o]=n,n+=r[o].length+1;this[ji]=i}t=i[i.length-1];let a=0;if(e>=t)a=i.length-1;else{let r=i.length-2,n;for(;a<r;)if(n=a+(r-a>>1),e<i[n])r=n-1;else if(e>=i[n+1])a=n+1;else{a=n;break}}return{col:e-i[a]+1,line:a+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:as(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,i,a){if(!this.map)return!1;let r=this.map.consumer(),n=r.originalPositionFor({column:t,line:e});if(!n.source)return!1;let o;typeof i=="number"&&(o=r.originalPositionFor({column:a,line:i}));let l;ss(n.source)?l=Jt(n.source):l=new URL(n.source,this.map.consumer().sourceRoot||Jt(this.map.mapFile));let c={column:n.column,endColumn:o&&o.column,endLine:o&&o.line,line:n.line,url:l.toString()};if(l.protocol==="file:")if(ma)c.file=ma(l);else throw new Error("file: protocol is not available in this PostCSS build");let m=r.sourceContentFor(n.source);return m&&(c.source=m),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 Ci=fi;fi.default=fi;zi&&zi.registerInput&&zi.registerInput(fi);let{SourceMapConsumer:Ya,SourceMapGenerator:li}=Ne,{dirname:ci,relative:Qa,resolve:en,sep:tn}=Ne,{pathToFileURL:ha}=Ne,ac=Ci,nc=!!(Ya&&li),rc=!!(ci&&en&&Qa&&tn),oc=class{constructor(e,t,i,a){this.stringify=e,this.mapOpts=i.map||{},this.root=t,this.opts=i,this.css=a,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=`
1540
1560
  `;this.css.includes(`\r
1541
1561
  `)&&(t=`\r
1542
- `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),s=e.root||ci(e.file),a;this.mapOpts.sourcesContent===!1?(a=new Ya(e.text),a.sourcesContent&&(a.sourcesContent=a.sourcesContent.map(()=>null))):a=e.consumer(),this.map.applySourceMap(a,t,this.toUrl(this.path(s)))}}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(),rc&&nc&&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=li.fromSourceMap(e)}else this.map=new li({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 li({file:this.outputFile()});let e=1,t=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},r,n;this.stringify(this.root,(o,l,c)=>{if(this.css+=o,l&&c!=="end"&&(a.generated.line=e,a.generated.column=t-1,l.source&&l.source.start?(a.source=this.sourcePath(l),a.original.line=l.source.start.line,a.original.column=l.source.start.column-1,this.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,this.map.addMapping(a))),r=o.match(/\n/g),r?(e+=r.length,n=o.lastIndexOf(`
1543
- `),t=o.length-n):t+=o.length,l&&c!=="start"){let m=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==m.last||m.raws.semicolon)&&(l.source&&l.source.end?(a.source=this.sourcePath(l),a.original.line=l.source.end.line,a.original.column=l.source.end.column-1,a.generated.line=e,a.generated.column=t-2,this.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=e,a.generated.column=t-1,this.map.addMapping(a)))}})}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 s=this.opts.to?ci(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(s=ci(en(s,this.mapOpts.annotation)));let a=Qa(s,e);return this.memoizedPaths.set(e,a),a}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 ac(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 s=t.source.input.from;if(s&&!e[s]){e[s]=!0;let a=this.usesFileUrls?this.toFileUrl(s):this.toUrl(this.path(s));this.map.setSourceContent(a,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(ha){let s=ha(e).toString();return this.memoizedFileURLs.set(e,s),s}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;tn==="\\"&&(e=e.replace(/\\/g,"/"));let s=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,s),s}};var sn=oc;let lc=_i,ns=class extends lc{constructor(e){super(e),this.type="comment"}};var Ei=ns;ns.default=ns;let{isClean:an,my:nn}=Ft,rn=Si,on=Ei,cc=_i,ln,_s,Ss,cn;function mn(i){return i.map(e=>(e.nodes&&(e.nodes=mn(e.nodes)),delete e.source,e))}function dn(i){if(i[an]=!1,i.proxyOf.nodes)for(let e of i.proxyOf.nodes)dn(e)}let ke=class un extends cc{append(...e){for(let t of e){let s=this.normalize(t,this.last);for(let a of s)this.proxyOf.nodes.push(a)}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(),s,a;for(;this.indexes[t]<this.proxyOf.nodes.length&&(s=this.indexes[t],a=e(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[t]+=1;return delete this.indexes[t],a}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")?(...s)=>e[t](...s.map(a=>typeof a=="function"?(r,n)=>a(r.toProxy(),n):a)):t==="every"||t==="some"?s=>e[t]((a,...r)=>s(a.toProxy(),...r)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(s=>s.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,s){return e[t]===s||(e[t]=s,(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 s=this.index(e),a=this.normalize(t,this.proxyOf.nodes[s]).reverse();s=this.index(e);for(let n of a)this.proxyOf.nodes.splice(s+1,0,n);let r;for(let n in this.indexes)r=this.indexes[n],s<r&&(this.indexes[n]=r+a.length);return this.markDirty(),this}insertBefore(e,t){let s=this.index(e),a=s===0?"prepend":!1,r=this.normalize(t,this.proxyOf.nodes[s],a).reverse();s=this.index(e);for(let o of r)this.proxyOf.nodes.splice(s,0,o);let n;for(let o in this.indexes)n=this.indexes[o],s<=n&&(this.indexes[o]=n+r.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=mn(ln(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let a of e)a.parent&&a.parent.removeChild(a,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let a of e)a.parent&&a.parent.removeChild(a,"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 rn(e)]}else if(e.selector)e=[new _s(e)];else if(e.name)e=[new Ss(e)];else if(e.text)e=[new on(e)];else throw new Error("Unknown node type in node creation");return e.map(a=>(a[nn]||un.rebuild(a),a=a.proxyOf,a.parent&&a.parent.removeChild(a),a[an]&&dn(a),typeof a.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(a.raws.before=t.raws.before.replace(/\S/g,"")),a.parent=this.proxyOf,a))}prepend(...e){e=e.reverse();for(let t of e){let s=this.normalize(t,this.first,"prepend").reverse();for(let a of s)this.proxyOf.nodes.unshift(a);for(let a in this.indexes)this.indexes[a]=this.indexes[a]+s.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 s in this.indexes)t=this.indexes[s],t>=e&&(this.indexes[s]=t-1);return this.markDirty(),this}replaceValues(e,t,s){return s||(s=t,t={}),this.walkDecls(a=>{t.props&&!t.props.includes(a.prop)||t.fast&&!a.value.includes(t.fast)||(a.value=a.value.replace(e,s))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,s)=>{let a;try{a=e(t,s)}catch(r){throw t.addToError(r)}return a!==!1&&t.walk&&(a=t.walk(e)),a})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((s,a)=>{if(s.type==="atrule"&&e.test(s.name))return t(s,a)}):this.walk((s,a)=>{if(s.type==="atrule"&&s.name===e)return t(s,a)}):(t=e,this.walk((s,a)=>{if(s.type==="atrule")return t(s,a)}))}walkComments(e){return this.walk((t,s)=>{if(t.type==="comment")return e(t,s)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((s,a)=>{if(s.type==="decl"&&e.test(s.prop))return t(s,a)}):this.walk((s,a)=>{if(s.type==="decl"&&s.prop===e)return t(s,a)}):(t=e,this.walk((s,a)=>{if(s.type==="decl")return t(s,a)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((s,a)=>{if(s.type==="rule"&&e.test(s.selector))return t(s,a)}):this.walk((s,a)=>{if(s.type==="rule"&&s.selector===e)return t(s,a)}):(t=e,this.walk((s,a)=>{if(s.type==="rule")return t(s,a)}))}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]}};ke.registerParse=i=>{ln=i};ke.registerRule=i=>{_s=i};ke.registerAtRule=i=>{Ss=i};ke.registerRoot=i=>{cn=i};var We=ke;ke.default=ke;ke.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,Ss.prototype):i.type==="rule"?Object.setPrototypeOf(i,_s.prototype):i.type==="decl"?Object.setPrototypeOf(i,rn.prototype):i.type==="comment"?Object.setPrototypeOf(i,on.prototype):i.type==="root"&&Object.setPrototypeOf(i,cn.prototype),i[nn]=!0,i.nodes&&i.nodes.forEach(e=>{ke.rebuild(e)})};let mc=We,hn,fn,It=class extends mc{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new hn(new fn,this,e).stringify()}};It.registerLazyResult=i=>{hn=i};It.registerProcessor=i=>{fn=i};var Cs=It;It.default=It;let rs=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let s=t.node.rangeBy(t);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in t)this[s]=t[s]}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 pn=rs;rs.default=rs;let dc=pn,os=class{constructor(e,t,s){this.processor=e,this.messages=[],this.root=t,this.opts=s,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 s=new dc(e,t);return this.messages.push(s),s}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var Es=os;os.default=os;const Vi=39,fa=34,Zt=92,pa=47,Xt=10,bt=32,Yt=12,Qt=9,ei=13,uc=91,hc=93,fc=40,pc=41,gc=123,Nc=125,bc=59,vc=42,yc=58,xc=64,ti=/[\t\n\f\r "#'()/;[\\\]{}]/g,ii=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,wc=/.[\r\n"'(/\\]/,ga=/[\da-f]/i;var _c=function(e,t={}){let s=e.css.valueOf(),a=t.ignoreErrors,r,n,o,l,c,m,u,h,g,_,y=s.length,f=0,A=[],I=[];function M(){return f}function x(P){throw e.error("Unclosed "+P,f)}function E(){return I.length===0&&f>=y}function $(P){if(I.length)return I.pop();if(f>=y)return;let O=P?P.ignoreUnclosed:!1;switch(r=s.charCodeAt(f),r){case Xt:case bt:case Qt:case ei:case Yt:{n=f;do n+=1,r=s.charCodeAt(n);while(r===bt||r===Xt||r===Qt||r===ei||r===Yt);_=["space",s.slice(f,n)],f=n-1;break}case uc:case hc:case gc:case Nc:case yc:case bc:case pc:{let T=String.fromCharCode(r);_=[T,T,f];break}case fc:{if(h=A.length?A.pop()[1]:"",g=s.charCodeAt(f+1),h==="url"&&g!==Vi&&g!==fa&&g!==bt&&g!==Xt&&g!==Qt&&g!==Yt&&g!==ei){n=f;do{if(m=!1,n=s.indexOf(")",n+1),n===-1)if(a||O){n=f;break}else x("bracket");for(u=n;s.charCodeAt(u-1)===Zt;)u-=1,m=!m}while(m);_=["brackets",s.slice(f,n+1),f,n],f=n}else n=s.indexOf(")",f+1),l=s.slice(f,n+1),n===-1||wc.test(l)?_=["(","(",f]:(_=["brackets",l,f,n],f=n);break}case Vi:case fa:{o=r===Vi?"'":'"',n=f;do{if(m=!1,n=s.indexOf(o,n+1),n===-1)if(a||O){n=f+1;break}else x("string");for(u=n;s.charCodeAt(u-1)===Zt;)u-=1,m=!m}while(m);_=["string",s.slice(f,n+1),f,n],f=n;break}case xc:{ti.lastIndex=f+1,ti.test(s),ti.lastIndex===0?n=s.length-1:n=ti.lastIndex-2,_=["at-word",s.slice(f,n+1),f,n],f=n;break}case Zt:{for(n=f,c=!0;s.charCodeAt(n+1)===Zt;)n+=1,c=!c;if(r=s.charCodeAt(n+1),c&&r!==pa&&r!==bt&&r!==Xt&&r!==Qt&&r!==ei&&r!==Yt&&(n+=1,ga.test(s.charAt(n)))){for(;ga.test(s.charAt(n+1));)n+=1;s.charCodeAt(n+1)===bt&&(n+=1)}_=["word",s.slice(f,n+1),f,n],f=n;break}default:{r===pa&&s.charCodeAt(f+1)===vc?(n=s.indexOf("*/",f+2)+1,n===0&&(a||O?n=s.length:x("comment")),_=["comment",s.slice(f,n+1),f,n],f=n):(ii.lastIndex=f+1,ii.test(s),ii.lastIndex===0?n=s.length-1:n=ii.lastIndex-2,_=["word",s.slice(f,n+1),f,n],A.push(_),f=n);break}}return f++,_}function R(P){I.push(P)}return{back:R,endOfFile:E,nextToken:$,position:M}};let gn=We,pi=class extends gn{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 As=pi;pi.default=pi;gn.registerAtRule(pi);let Nn=We,bn,vn,lt=class extends Nn{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,s){let a=super.normalize(e);if(t){if(s==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let r of a)r.raws.before=t.raws.before}return a}removeChild(e,t){let s=this.index(e);return!t&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),super.removeChild(e)}toResult(e={}){return new bn(new vn,this,e).stringify()}};lt.registerLazyResult=i=>{bn=i};lt.registerProcessor=i=>{vn=i};var Ht=lt;lt.default=lt;Nn.registerRoot(lt);let Mt={comma(i){return Mt.split(i,[","],!0)},space(i){let e=[" ",`
1544
- `," "];return Mt.split(i,e)},split(i,e,t){let s=[],a="",r=!1,n=0,o=!1,l="",c=!1;for(let m of i)c?c=!1:m==="\\"?c=!0:o?m===l&&(o=!1):m==='"'||m==="'"?(o=!0,l=m):m==="("?n+=1:m===")"?n>0&&(n-=1):n===0&&e.includes(m)&&(r=!0),r?(a!==""&&s.push(a.trim()),a="",r=!1):a+=m;return(t||a!=="")&&s.push(a.trim()),s}};var yn=Mt;Mt.default=Mt;let xn=We,Sc=yn,gi=class extends xn{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Sc.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,s=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(s)}};var ks=gi;gi.default=gi;xn.registerRule(gi);let Cc=Si,Ec=_c,Ac=Ei,kc=As,$c=Ht,Na=ks;const ba={empty:!0,space:!0};function Oc(i){for(let e=i.length-1;e>=0;e--){let t=i[e],s=t[3]||t[2];if(s)return s}}let Ic=class{constructor(e){this.input=e,this.root=new $c,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 kc;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let s,a,r,n=!1,o=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),s=e[0],s==="("||s==="["?c.push(s==="("?")":"]"):s==="{"&&c.length>0?c.push("}"):s===c[c.length-1]&&c.pop(),c.length===0)if(s===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(s==="{"){o=!0;break}else if(s==="}"){if(l.length>0){for(r=l.length-1,a=l[r];a&&a[0]==="space";)a=l[--r];a&&(t.source.end=this.getPosition(a[3]||a[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){n=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),n&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),o&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let s=0,a;for(let r=t-1;r>=0&&(a=e[r],!(a[0]!=="space"&&(s+=1,s===2)));r--);throw this.input.error("Missed semicolon",a[0]==="word"?a[3]+1:a[2])}colon(e){let t=0,s,a,r;for(let[n,o]of e.entries()){if(s=o,a=s[0],a==="("&&(t+=1),a===")"&&(t-=1),t===0&&a===":")if(!r)this.doubleColon(s);else{if(r[0]==="word"&&r[1]==="progid")continue;return n}r=s}return!1}comment(e){let t=new Ac;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let s=e[1].slice(2,-2);if(/^\s*$/.test(s))t.text="",t.raws.left=s,t.raws.right="";else{let a=s.match(/^(\s*)([^]*\S)(\s*)$/);t.text=a[2],t.raws.left=a[1],t.raws.right=a[3]}}createTokenizer(){this.tokenizer=Ec(this.input)}decl(e,t){let s=new Cc;this.init(s,e[0][2]);let a=e[e.length-1];for(a[0]===";"&&(this.semicolon=!0,e.pop()),s.source.end=this.getPosition(a[3]||a[2]||Oc(e)),s.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),s.raws.before+=e.shift()[1];for(s.source.start=this.getPosition(e[0][2]),s.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;s.prop+=e.shift()[1]}s.raws.between="";let r;for(;e.length;)if(r=e.shift(),r[0]===":"){s.raws.between+=r[1];break}else r[0]==="word"&&/\w/.test(r[1])&&this.unknownWord([r]),s.raws.between+=r[1];(s.prop[0]==="_"||s.prop[0]==="*")&&(s.raws.before+=s.prop[0],s.prop=s.prop.slice(1));let n=[],o;for(;e.length&&(o=e[0][0],!(o!=="space"&&o!=="comment"));)n.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(r=e[c],r[1].toLowerCase()==="!important"){s.important=!0;let m=this.stringFrom(e,c);m=this.spacesFromEnd(e)+m,m!==" !important"&&(s.raws.important=m);break}else if(r[1].toLowerCase()==="important"){let m=e.slice(0),u="";for(let h=c;h>0;h--){let g=m[h][0];if(u.trim().indexOf("!")===0&&g!=="space")break;u=m.pop()[1]+u}u.trim().indexOf("!")===0&&(s.important=!0,s.raws.important=u,e=m)}if(r[0]!=="space"&&r[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(s.raws.between+=n.map(c=>c[1]).join(""),n=[]),this.raw(s,"value",n.concat(e),t),s.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 Na;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,s=null,a=!1,r=null,n=[],o=e[1].startsWith("--"),l=[],c=e;for(;c;){if(s=c[0],l.push(c),s==="("||s==="[")r||(r=c),n.push(s==="("?")":"]");else if(o&&a&&s==="{")r||(r=c),n.push("}");else if(n.length===0)if(s===";")if(a){this.decl(l,o);return}else break;else if(s==="{"){this.rule(l);return}else if(s==="}"){this.tokenizer.back(l.pop()),t=!0;break}else s===":"&&(a=!0);else s===n[n.length-1]&&(n.pop(),n.length===0&&(r=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),n.length>0&&this.unclosedBracket(r),t&&a){if(!o)for(;l.length&&(c=l[l.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,o)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,s,a){let r,n,o=s.length,l="",c=!0,m,u;for(let h=0;h<o;h+=1)r=s[h],n=r[0],n==="space"&&h===o-1&&!a?c=!1:n==="comment"?(u=s[h-1]?s[h-1][0]:"empty",m=s[h+1]?s[h+1][0]:"empty",!ba[u]&&!ba[m]?l.slice(-1)===","?c=!1:l+=r[1]:c=!1):l+=r[1];if(!c){let h=s.reduce((g,_)=>g+_[1],"");e.raws[t]={raw:h,value:l}}e[t]=l}rule(e){e.pop();let t=new Na;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,s="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)s=e.pop()[1]+s;return s}spacesAndCommentsFromStart(e){let t,s="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)s+=e.shift()[1];return s}spacesFromEnd(e){let t,s="";for(;e.length&&(t=e[e.length-1][0],t==="space");)s=e.pop()[1]+s;return s}stringFrom(e,t){let s="";for(let a=t;a<e.length;a++)s+=e[a][1];return e.splice(t,e.length-t),s}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 Mc=Ic;let Rc=We,Lc=Mc,Pc=Ci;function Ni(i,e){let t=new Pc(i,e),s=new Lc(t);try{s.parse()}catch(a){throw a}return s.root}var $s=Ni;Ni.default=Ni;Rc.registerParse(Ni);let{isClean:xe,my:Dc}=Ft,Bc=sn,Tc=wi,zc=We,jc=Cs,va=Es,Vc=$s,Fc=Ht;const Hc={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Uc={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},Gc={Once:!0,postcssPlugin:!0,prepare:!0},ct=0;function vt(i){return typeof i=="object"&&typeof i.then=="function"}function wn(i){let e=!1,t=Hc[i.type];return i.type==="decl"?e=i.prop.toLowerCase():i.type==="atrule"&&(e=i.name.toLowerCase()),e&&i.append?[t,t+"-"+e,ct,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:i.append?[t,ct,t+"Exit"]:[t,t+"Exit"]}function ya(i){let e;return i.type==="document"?e=["Document",ct,"DocumentExit"]:i.type==="root"?e=["Root",ct,"RootExit"]:e=wn(i),{eventIndex:0,events:e,iterator:0,node:i,visitorIndex:0,visitors:[]}}function ls(i){return i[xe]=!1,i.nodes&&i.nodes.forEach(e=>ls(e)),i}let cs={},mt=class _n{constructor(e,t,s){this.stringified=!1,this.processed=!1;let a;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))a=ls(t);else if(t instanceof _n||t instanceof va)a=ls(t.root),t.map&&(typeof s.map>"u"&&(s.map={}),s.map.inline||(s.map.inline=!1),s.map.prev=t.map);else{let r=Vc;s.syntax&&(r=s.syntax.parse),s.parser&&(r=s.parser),r.parse&&(r=r.parse);try{a=r(t,s)}catch(n){this.processed=!0,this.error=n}a&&!a[Dc]&&zc.rebuild(a)}this.result=new va(e,a,s),this.helpers={...cs,postcss:cs,result:this.result},this.plugins=this.processor.plugins.map(r=>typeof r=="object"&&r.prepare?{...r,...r.prepare(this.result)}:r)}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 s=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=s.postcssPlugin,e.setMessage()):s.postcssVersion}catch(a){console&&console.error&&console.error(a)}return e}prepareVisitors(){this.listeners={};let e=(t,s,a)=>{this.listeners[s]||(this.listeners[s]=[]),this.listeners[s].push([t,a])};for(let t of this.plugins)if(typeof t=="object")for(let s in t){if(!Uc[s]&&/^[A-Z]/.test(s))throw new Error(`Unknown event ${s} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Gc[s])if(typeof t[s]=="object")for(let a in t[s])a==="*"?e(t,s,t[s][a]):e(t,s+"-"+a.toLowerCase(),t[s][a]);else typeof t[s]=="function"&&e(t,s,t[s])}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],s=this.runOnRoot(t);if(vt(s))try{await s}catch(a){throw this.handleError(a)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[xe];){e[xe]=!0;let t=[ya(e)];for(;t.length>0;){let s=this.visitTick(t);if(vt(s))try{await s}catch(a){let r=t[t.length-1].node;throw this.handleError(a,r)}}}if(this.listeners.OnceExit)for(let[t,s]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let a=e.nodes.map(r=>s(r,this.helpers));await Promise.all(a)}else await s(e,this.helpers)}catch(a){throw this.handleError(a)}}}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(s=>e.Once(s,this.helpers));return vt(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=Tc;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let a=new Bc(t,this.result.root,this.result.opts).generate();return this.result.css=a[0],this.result.map=a[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(vt(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[xe];)e[xe]=!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[s,a]of e){this.result.lastPlugin=s;let r;try{r=a(t,this.helpers)}catch(n){throw this.handleError(n,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(vt(r))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:s,visitors:a}=t;if(s.type!=="root"&&s.type!=="document"&&!s.parent){e.pop();return}if(a.length>0&&t.visitorIndex<a.length){let[n,o]=a[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===a.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=n;try{return o(s.toProxy(),this.helpers)}catch(l){throw this.handleError(l,s)}}if(t.iterator!==0){let n=t.iterator,o;for(;o=s.nodes[s.indexes[n]];)if(s.indexes[n]+=1,!o[xe]){o[xe]=!0,e.push(ya(o));return}t.iterator=0,delete s.indexes[n]}let r=t.events;for(;t.eventIndex<r.length;){let n=r[t.eventIndex];if(t.eventIndex+=1,n===ct){s.nodes&&s.nodes.length&&(s[xe]=!0,t.iterator=s.getIterator());return}else if(this.listeners[n]){t.visitors=this.listeners[n];return}}e.pop()}walkSync(e){e[xe]=!0;let t=wn(e);for(let s of t)if(s===ct)e.nodes&&e.each(a=>{a[xe]||this.walkSync(a)});else{let a=this.listeners[s];if(a&&this.visitSync(a,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"}};mt.registerPostcss=i=>{cs=i};var Sn=mt;mt.default=mt;Fc.registerLazyResult(mt);jc.registerLazyResult(mt);let Wc=sn,Kc=wi,qc=$s;const Jc=Es;let ms=class{constructor(e,t,s){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=s,this._map=void 0;let a,r=Kc;this.result=new Jc(this._processor,a,this._opts),this.result.css=t;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let o=new Wc(r,a,this._opts,t);if(o.isMap()){let[l,c]=o.generate();l&&(this.result.css=l),c&&(this.result.map=c)}}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=qc;try{e=t(this._css,this._opts)}catch(s){this.error=s}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Zc=ms;ms.default=ms;let Xc=Zc,Yc=Sn,Qc=Cs,em=Ht,Rt=class{constructor(e=[]){this.version="8.4.32",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let s of e)if(s.postcss===!0?s=s():s.postcss&&(s=s.postcss),typeof s=="object"&&Array.isArray(s.plugins))t=t.concat(s.plugins);else if(typeof s=="object"&&s.postcssPlugin)t.push(s);else if(typeof s=="function")t.push(s);else if(!(typeof s=="object"&&(s.parse||s.stringify)))throw new Error(s+" 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 Xc(this,e,t):new Yc(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var tm=Rt;Rt.default=Rt;em.registerProcessor(Rt);Qc.registerProcessor(Rt);let im=Si,sm=Xa,am=Ei,nm=As,rm=Ci,om=Ht,lm=ks;function Lt(i,e){if(Array.isArray(i))return i.map(a=>Lt(a));let{inputs:t,...s}=i;if(t){e=[];for(let a of t){let r={...a,__proto__:rm.prototype};r.map&&(r.map={...r.map,__proto__:sm.prototype}),e.push(r)}}if(s.nodes&&(s.nodes=i.nodes.map(a=>Lt(a,e))),s.source){let{inputId:a,...r}=s.source;s.source=r,a!=null&&(s.source.input=e[a])}if(s.type==="root")return new om(s);if(s.type==="decl")return new im(s);if(s.type==="rule")return new lm(s);if(s.type==="comment")return new am(s);if(s.type==="atrule")return new nm(s);throw new Error("Unknown node type: "+i.type)}var cm=Lt;Lt.default=Lt;var xa={};let mm=ws,Cn=Si,dm=Sn,um=We,Os=tm,hm=wi,fm=cm,En=Cs,pm=pn,An=Ei,kn=As,gm=Es,Nm=Ci,bm=$s,vm=yn,$n=ks,On=Ht,ym=_i;function L(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new Os(i)}L.plugin=function(e,t){let s=!1;function a(...n){console&&console.warn&&!s&&(s=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
1562
+ `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),i=e.root||ci(e.file),a;this.mapOpts.sourcesContent===!1?(a=new Ya(e.text),a.sourcesContent&&(a.sourcesContent=a.sourcesContent.map(()=>null))):a=e.consumer(),this.map.applySourceMap(a,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(),rc&&nc&&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=li.fromSourceMap(e)}else this.map=new li({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 li({file:this.outputFile()});let e=1,t=1,i="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},r,n;this.stringify(this.root,(o,l,c)=>{if(this.css+=o,l&&c!=="end"&&(a.generated.line=e,a.generated.column=t-1,l.source&&l.source.start?(a.source=this.sourcePath(l),a.original.line=l.source.start.line,a.original.column=l.source.start.column-1,this.map.addMapping(a)):(a.source=i,a.original.line=1,a.original.column=0,this.map.addMapping(a))),r=o.match(/\n/g),r?(e+=r.length,n=o.lastIndexOf(`
1563
+ `),t=o.length-n):t+=o.length,l&&c!=="start"){let m=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==m.last||m.raws.semicolon)&&(l.source&&l.source.end?(a.source=this.sourcePath(l),a.original.line=l.source.end.line,a.original.column=l.source.end.column-1,a.generated.line=e,a.generated.column=t-2,this.map.addMapping(a)):(a.source=i,a.original.line=1,a.original.column=0,a.generated.line=e,a.generated.column=t-1,this.map.addMapping(a)))}})}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?ci(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=ci(en(i,this.mapOpts.annotation)));let a=Qa(i,e);return this.memoizedPaths.set(e,a),a}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 ac(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 a=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(a,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(ha){let i=ha(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;tn==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};var sn=oc;let lc=_i,ns=class extends lc{constructor(e){super(e),this.type="comment"}};var Ei=ns;ns.default=ns;let{isClean:an,my:nn}=Ft,rn=Si,on=Ei,cc=_i,ln,_s,Ss,cn;function mn(s){return s.map(e=>(e.nodes&&(e.nodes=mn(e.nodes)),delete e.source,e))}function dn(s){if(s[an]=!1,s.proxyOf.nodes)for(let e of s.proxyOf.nodes)dn(e)}let ke=class un extends cc{append(...e){for(let t of e){let i=this.normalize(t,this.last);for(let a of i)this.proxyOf.nodes.push(a)}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,a;for(;this.indexes[t]<this.proxyOf.nodes.length&&(i=this.indexes[t],a=e(this.proxyOf.nodes[i],i),a!==!1);)this.indexes[t]+=1;return delete this.indexes[t],a}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(a=>typeof a=="function"?(r,n)=>a(r.toProxy(),n):a)):t==="every"||t==="some"?i=>e[t]((a,...r)=>i(a.toProxy(),...r)):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),a=this.normalize(t,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let n of a)this.proxyOf.nodes.splice(i+1,0,n);let r;for(let n in this.indexes)r=this.indexes[n],i<r&&(this.indexes[n]=r+a.length);return this.markDirty(),this}insertBefore(e,t){let i=this.index(e),a=i===0?"prepend":!1,r=this.normalize(t,this.proxyOf.nodes[i],a).reverse();i=this.index(e);for(let o of r)this.proxyOf.nodes.splice(i,0,o);let n;for(let o in this.indexes)n=this.indexes[o],i<=n&&(this.indexes[o]=n+r.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=mn(ln(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let a of e)a.parent&&a.parent.removeChild(a,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let a of e)a.parent&&a.parent.removeChild(a,"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 rn(e)]}else if(e.selector)e=[new _s(e)];else if(e.name)e=[new Ss(e)];else if(e.text)e=[new on(e)];else throw new Error("Unknown node type in node creation");return e.map(a=>(a[nn]||un.rebuild(a),a=a.proxyOf,a.parent&&a.parent.removeChild(a),a[an]&&dn(a),typeof a.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(a.raws.before=t.raws.before.replace(/\S/g,"")),a.parent=this.proxyOf,a))}prepend(...e){e=e.reverse();for(let t of e){let i=this.normalize(t,this.first,"prepend").reverse();for(let a of i)this.proxyOf.nodes.unshift(a);for(let a in this.indexes)this.indexes[a]=this.indexes[a]+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(a=>{t.props&&!t.props.includes(a.prop)||t.fast&&!a.value.includes(t.fast)||(a.value=a.value.replace(e,i))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,i)=>{let a;try{a=e(t,i)}catch(r){throw t.addToError(r)}return a!==!1&&t.walk&&(a=t.walk(e)),a})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((i,a)=>{if(i.type==="atrule"&&e.test(i.name))return t(i,a)}):this.walk((i,a)=>{if(i.type==="atrule"&&i.name===e)return t(i,a)}):(t=e,this.walk((i,a)=>{if(i.type==="atrule")return t(i,a)}))}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,a)=>{if(i.type==="decl"&&e.test(i.prop))return t(i,a)}):this.walk((i,a)=>{if(i.type==="decl"&&i.prop===e)return t(i,a)}):(t=e,this.walk((i,a)=>{if(i.type==="decl")return t(i,a)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((i,a)=>{if(i.type==="rule"&&e.test(i.selector))return t(i,a)}):this.walk((i,a)=>{if(i.type==="rule"&&i.selector===e)return t(i,a)}):(t=e,this.walk((i,a)=>{if(i.type==="rule")return t(i,a)}))}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]}};ke.registerParse=s=>{ln=s};ke.registerRule=s=>{_s=s};ke.registerAtRule=s=>{Ss=s};ke.registerRoot=s=>{cn=s};var We=ke;ke.default=ke;ke.rebuild=s=>{s.type==="atrule"?Object.setPrototypeOf(s,Ss.prototype):s.type==="rule"?Object.setPrototypeOf(s,_s.prototype):s.type==="decl"?Object.setPrototypeOf(s,rn.prototype):s.type==="comment"?Object.setPrototypeOf(s,on.prototype):s.type==="root"&&Object.setPrototypeOf(s,cn.prototype),s[nn]=!0,s.nodes&&s.nodes.forEach(e=>{ke.rebuild(e)})};let mc=We,hn,fn,Mt=class extends mc{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new hn(new fn,this,e).stringify()}};Mt.registerLazyResult=s=>{hn=s};Mt.registerProcessor=s=>{fn=s};var Cs=Mt;Mt.default=Mt;let rs=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 pn=rs;rs.default=rs;let dc=pn,os=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 dc(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var Es=os;os.default=os;const Vi=39,fa=34,Zt=92,pa=47,Xt=10,bt=32,Yt=12,Qt=9,ei=13,uc=91,hc=93,fc=40,pc=41,gc=123,Nc=125,bc=59,vc=42,yc=58,xc=64,ti=/[\t\n\f\r "#'()/;[\\\]{}]/g,ii=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,wc=/.[\r\n"'(/\\]/,ga=/[\da-f]/i;var _c=function(e,t={}){let i=e.css.valueOf(),a=t.ignoreErrors,r,n,o,l,c,m,u,h,g,_,y=i.length,f=0,A=[],M=[];function I(){return f}function x(P){throw e.error("Unclosed "+P,f)}function E(){return M.length===0&&f>=y}function $(P){if(M.length)return M.pop();if(f>=y)return;let O=P?P.ignoreUnclosed:!1;switch(r=i.charCodeAt(f),r){case Xt:case bt:case Qt:case ei:case Yt:{n=f;do n+=1,r=i.charCodeAt(n);while(r===bt||r===Xt||r===Qt||r===ei||r===Yt);_=["space",i.slice(f,n)],f=n-1;break}case uc:case hc:case gc:case Nc:case yc:case bc:case pc:{let T=String.fromCharCode(r);_=[T,T,f];break}case fc:{if(h=A.length?A.pop()[1]:"",g=i.charCodeAt(f+1),h==="url"&&g!==Vi&&g!==fa&&g!==bt&&g!==Xt&&g!==Qt&&g!==Yt&&g!==ei){n=f;do{if(m=!1,n=i.indexOf(")",n+1),n===-1)if(a||O){n=f;break}else x("bracket");for(u=n;i.charCodeAt(u-1)===Zt;)u-=1,m=!m}while(m);_=["brackets",i.slice(f,n+1),f,n],f=n}else n=i.indexOf(")",f+1),l=i.slice(f,n+1),n===-1||wc.test(l)?_=["(","(",f]:(_=["brackets",l,f,n],f=n);break}case Vi:case fa:{o=r===Vi?"'":'"',n=f;do{if(m=!1,n=i.indexOf(o,n+1),n===-1)if(a||O){n=f+1;break}else x("string");for(u=n;i.charCodeAt(u-1)===Zt;)u-=1,m=!m}while(m);_=["string",i.slice(f,n+1),f,n],f=n;break}case xc:{ti.lastIndex=f+1,ti.test(i),ti.lastIndex===0?n=i.length-1:n=ti.lastIndex-2,_=["at-word",i.slice(f,n+1),f,n],f=n;break}case Zt:{for(n=f,c=!0;i.charCodeAt(n+1)===Zt;)n+=1,c=!c;if(r=i.charCodeAt(n+1),c&&r!==pa&&r!==bt&&r!==Xt&&r!==Qt&&r!==ei&&r!==Yt&&(n+=1,ga.test(i.charAt(n)))){for(;ga.test(i.charAt(n+1));)n+=1;i.charCodeAt(n+1)===bt&&(n+=1)}_=["word",i.slice(f,n+1),f,n],f=n;break}default:{r===pa&&i.charCodeAt(f+1)===vc?(n=i.indexOf("*/",f+2)+1,n===0&&(a||O?n=i.length:x("comment")),_=["comment",i.slice(f,n+1),f,n],f=n):(ii.lastIndex=f+1,ii.test(i),ii.lastIndex===0?n=i.length-1:n=ii.lastIndex-2,_=["word",i.slice(f,n+1),f,n],A.push(_),f=n);break}}return f++,_}function R(P){M.push(P)}return{back:R,endOfFile:E,nextToken:$,position:I}};let gn=We,pi=class extends gn{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 As=pi;pi.default=pi;gn.registerAtRule(pi);let Nn=We,bn,vn,lt=class extends Nn{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,i){let a=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 r of a)r.raws.before=t.raws.before}return a}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 bn(new vn,this,e).stringify()}};lt.registerLazyResult=s=>{bn=s};lt.registerProcessor=s=>{vn=s};var Ht=lt;lt.default=lt;Nn.registerRoot(lt);let It={comma(s){return It.split(s,[","],!0)},space(s){let e=[" ",`
1564
+ `," "];return It.split(s,e)},split(s,e,t){let i=[],a="",r=!1,n=0,o=!1,l="",c=!1;for(let m of s)c?c=!1:m==="\\"?c=!0:o?m===l&&(o=!1):m==='"'||m==="'"?(o=!0,l=m):m==="("?n+=1:m===")"?n>0&&(n-=1):n===0&&e.includes(m)&&(r=!0),r?(a!==""&&i.push(a.trim()),a="",r=!1):a+=m;return(t||a!=="")&&i.push(a.trim()),i}};var yn=It;It.default=It;let xn=We,Sc=yn,gi=class extends xn{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Sc.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 ks=gi;gi.default=gi;xn.registerRule(gi);let Cc=Si,Ec=_c,Ac=Ei,kc=As,$c=Ht,Na=ks;const ba={empty:!0,space:!0};function Oc(s){for(let e=s.length-1;e>=0;e--){let t=s[e],i=t[3]||t[2];if(i)return i}}let Mc=class{constructor(e){this.input=e,this.root=new $c,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 kc;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let i,a,r,n=!1,o=!1,l=[],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==="{"){o=!0;break}else if(i==="}"){if(l.length>0){for(r=l.length-1,a=l[r];a&&a[0]==="space";)a=l[--r];a&&(t.source.end=this.getPosition(a[3]||a[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){n=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),n&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),o&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let i=0,a;for(let r=t-1;r>=0&&(a=e[r],!(a[0]!=="space"&&(i+=1,i===2)));r--);throw this.input.error("Missed semicolon",a[0]==="word"?a[3]+1:a[2])}colon(e){let t=0,i,a,r;for(let[n,o]of e.entries()){if(i=o,a=i[0],a==="("&&(t+=1),a===")"&&(t-=1),t===0&&a===":")if(!r)this.doubleColon(i);else{if(r[0]==="word"&&r[1]==="progid")continue;return n}r=i}return!1}comment(e){let t=new Ac;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 a=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=a[2],t.raws.left=a[1],t.raws.right=a[3]}}createTokenizer(){this.tokenizer=Ec(this.input)}decl(e,t){let i=new Cc;this.init(i,e[0][2]);let a=e[e.length-1];for(a[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(a[3]||a[2]||Oc(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 r;for(;e.length;)if(r=e.shift(),r[0]===":"){i.raws.between+=r[1];break}else r[0]==="word"&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let n=[],o;for(;e.length&&(o=e[0][0],!(o!=="space"&&o!=="comment"));)n.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(r=e[c],r[1].toLowerCase()==="!important"){i.important=!0;let m=this.stringFrom(e,c);m=this.spacesFromEnd(e)+m,m!==" !important"&&(i.raws.important=m);break}else if(r[1].toLowerCase()==="important"){let m=e.slice(0),u="";for(let h=c;h>0;h--){let g=m[h][0];if(u.trim().indexOf("!")===0&&g!=="space")break;u=m.pop()[1]+u}u.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=u,e=m)}if(r[0]!=="space"&&r[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(i.raws.between+=n.map(c=>c[1]).join(""),n=[]),this.raw(i,"value",n.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 Na;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,a=!1,r=null,n=[],o=e[1].startsWith("--"),l=[],c=e;for(;c;){if(i=c[0],l.push(c),i==="("||i==="[")r||(r=c),n.push(i==="("?")":"]");else if(o&&a&&i==="{")r||(r=c),n.push("}");else if(n.length===0)if(i===";")if(a){this.decl(l,o);return}else break;else if(i==="{"){this.rule(l);return}else if(i==="}"){this.tokenizer.back(l.pop()),t=!0;break}else i===":"&&(a=!0);else i===n[n.length-1]&&(n.pop(),n.length===0&&(r=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),n.length>0&&this.unclosedBracket(r),t&&a){if(!o)for(;l.length&&(c=l[l.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,o)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,i,a){let r,n,o=i.length,l="",c=!0,m,u;for(let h=0;h<o;h+=1)r=i[h],n=r[0],n==="space"&&h===o-1&&!a?c=!1:n==="comment"?(u=i[h-1]?i[h-1][0]:"empty",m=i[h+1]?i[h+1][0]:"empty",!ba[u]&&!ba[m]?l.slice(-1)===","?c=!1:l+=r[1]:c=!1):l+=r[1];if(!c){let h=i.reduce((g,_)=>g+_[1],"");e.raws[t]={raw:h,value:l}}e[t]=l}rule(e){e.pop();let t=new Na;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 a=t;a<e.length;a++)i+=e[a][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 Ic=Mc;let Rc=We,Lc=Ic,Pc=Ci;function Ni(s,e){let t=new Pc(s,e),i=new Lc(t);try{i.parse()}catch(a){throw a}return i.root}var $s=Ni;Ni.default=Ni;Rc.registerParse(Ni);let{isClean:xe,my:Dc}=Ft,Bc=sn,Tc=wi,zc=We,jc=Cs,va=Es,Vc=$s,Fc=Ht;const Hc={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Uc={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},Gc={Once:!0,postcssPlugin:!0,prepare:!0},ct=0;function vt(s){return typeof s=="object"&&typeof s.then=="function"}function wn(s){let e=!1,t=Hc[s.type];return s.type==="decl"?e=s.prop.toLowerCase():s.type==="atrule"&&(e=s.name.toLowerCase()),e&&s.append?[t,t+"-"+e,ct,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:s.append?[t,ct,t+"Exit"]:[t,t+"Exit"]}function ya(s){let e;return s.type==="document"?e=["Document",ct,"DocumentExit"]:s.type==="root"?e=["Root",ct,"RootExit"]:e=wn(s),{eventIndex:0,events:e,iterator:0,node:s,visitorIndex:0,visitors:[]}}function ls(s){return s[xe]=!1,s.nodes&&s.nodes.forEach(e=>ls(e)),s}let cs={},mt=class _n{constructor(e,t,i){this.stringified=!1,this.processed=!1;let a;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))a=ls(t);else if(t instanceof _n||t instanceof va)a=ls(t.root),t.map&&(typeof i.map>"u"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=t.map);else{let r=Vc;i.syntax&&(r=i.syntax.parse),i.parser&&(r=i.parser),r.parse&&(r=r.parse);try{a=r(t,i)}catch(n){this.processed=!0,this.error=n}a&&!a[Dc]&&zc.rebuild(a)}this.result=new va(e,a,i),this.helpers={...cs,postcss:cs,result:this.result},this.plugins=this.processor.plugins.map(r=>typeof r=="object"&&r.prepare?{...r,...r.prepare(this.result)}:r)}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(a){console&&console.error&&console.error(a)}return e}prepareVisitors(){this.listeners={};let e=(t,i,a)=>{this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push([t,a])};for(let t of this.plugins)if(typeof t=="object")for(let i in t){if(!Uc[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Gc[i])if(typeof t[i]=="object")for(let a in t[i])a==="*"?e(t,i,t[i][a]):e(t,i+"-"+a.toLowerCase(),t[i][a]);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(vt(i))try{await i}catch(a){throw this.handleError(a)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[xe];){e[xe]=!0;let t=[ya(e)];for(;t.length>0;){let i=this.visitTick(t);if(vt(i))try{await i}catch(a){let r=t[t.length-1].node;throw this.handleError(a,r)}}}if(this.listeners.OnceExit)for(let[t,i]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let a=e.nodes.map(r=>i(r,this.helpers));await Promise.all(a)}else await i(e,this.helpers)}catch(a){throw this.handleError(a)}}}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 vt(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=Tc;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let a=new Bc(t,this.result.root,this.result.opts).generate();return this.result.css=a[0],this.result.map=a[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(vt(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[xe];)e[xe]=!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,a]of e){this.result.lastPlugin=i;let r;try{r=a(t,this.helpers)}catch(n){throw this.handleError(n,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(vt(r))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:i,visitors:a}=t;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(a.length>0&&t.visitorIndex<a.length){let[n,o]=a[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===a.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=n;try{return o(i.toProxy(),this.helpers)}catch(l){throw this.handleError(l,i)}}if(t.iterator!==0){let n=t.iterator,o;for(;o=i.nodes[i.indexes[n]];)if(i.indexes[n]+=1,!o[xe]){o[xe]=!0,e.push(ya(o));return}t.iterator=0,delete i.indexes[n]}let r=t.events;for(;t.eventIndex<r.length;){let n=r[t.eventIndex];if(t.eventIndex+=1,n===ct){i.nodes&&i.nodes.length&&(i[xe]=!0,t.iterator=i.getIterator());return}else if(this.listeners[n]){t.visitors=this.listeners[n];return}}e.pop()}walkSync(e){e[xe]=!0;let t=wn(e);for(let i of t)if(i===ct)e.nodes&&e.each(a=>{a[xe]||this.walkSync(a)});else{let a=this.listeners[i];if(a&&this.visitSync(a,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"}};mt.registerPostcss=s=>{cs=s};var Sn=mt;mt.default=mt;Fc.registerLazyResult(mt);jc.registerLazyResult(mt);let Wc=sn,Kc=wi,qc=$s;const Jc=Es;let ms=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 a,r=Kc;this.result=new Jc(this._processor,a,this._opts),this.result.css=t;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let o=new Wc(r,a,this._opts,t);if(o.isMap()){let[l,c]=o.generate();l&&(this.result.css=l),c&&(this.result.map=c)}}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=qc;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 Zc=ms;ms.default=ms;let Xc=Zc,Yc=Sn,Qc=Cs,em=Ht,Rt=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 Xc(this,e,t):new Yc(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var tm=Rt;Rt.default=Rt;em.registerProcessor(Rt);Qc.registerProcessor(Rt);let im=Si,sm=Xa,am=Ei,nm=As,rm=Ci,om=Ht,lm=ks;function Lt(s,e){if(Array.isArray(s))return s.map(a=>Lt(a));let{inputs:t,...i}=s;if(t){e=[];for(let a of t){let r={...a,__proto__:rm.prototype};r.map&&(r.map={...r.map,__proto__:sm.prototype}),e.push(r)}}if(i.nodes&&(i.nodes=s.nodes.map(a=>Lt(a,e))),i.source){let{inputId:a,...r}=i.source;i.source=r,a!=null&&(i.source.input=e[a])}if(i.type==="root")return new om(i);if(i.type==="decl")return new im(i);if(i.type==="rule")return new lm(i);if(i.type==="comment")return new am(i);if(i.type==="atrule")return new nm(i);throw new Error("Unknown node type: "+s.type)}var cm=Lt;Lt.default=Lt;var xa={};let mm=ws,Cn=Si,dm=Sn,um=We,Os=tm,hm=wi,fm=cm,En=Cs,pm=pn,An=Ei,kn=As,gm=Es,Nm=Ci,bm=$s,vm=yn,$n=ks,On=Ht,ym=_i;function L(...s){return s.length===1&&Array.isArray(s[0])&&(s=s[0]),new Os(s)}L.plugin=function(e,t){let i=!1;function a(...n){console&&console.warn&&!i&&(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
1545
1565
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),xa.LANG&&xa.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
1546
- https://www.w3ctech.com/topic/2226`));let o=t(...n);return o.postcssPlugin=e,o.postcssVersion=new Os().version,o}let r;return Object.defineProperty(a,"postcss",{get(){return r||(r=a()),r}}),a.process=function(n,o,l){return L([a(l)]).process(n,o)},a};L.stringify=hm;L.parse=bm;L.fromJSON=fm;L.list=vm;L.comment=i=>new An(i);L.atRule=i=>new kn(i);L.decl=i=>new Cn(i);L.rule=i=>new $n(i);L.root=i=>new On(i);L.document=i=>new En(i);L.CssSyntaxError=mm;L.Declaration=Cn;L.Container=um;L.Processor=Os;L.Document=En;L.Comment=An;L.Warning=pm;L.AtRule=kn;L.Result=gm;L.Input=Nm;L.Rule=$n;L.Root=On;L.Node=ym;dm.registerPostcss(L);var xm=L;L.default=L;const V=Ka(xm);V.stringify;V.fromJSON;V.plugin;V.parse;V.list;V.document;V.comment;V.atRule;V.rule;V.decl;V.root;V.CssSyntaxError;V.Declaration;V.Container;V.Processor;V.Document;V.Comment;V.Warning;V.AtRule;V.Result;V.Input;V.Rule;V.Root;V.Node;var wm=function(e){const t=e.prefix,s=/\s+$/.test(t)?t:`${t} `,a=e.ignoreFiles?[].concat(e.ignoreFiles):[],r=e.includeFiles?[].concat(e.includeFiles):[];return function(n){a.length&&n.source.input.file&&wa(n.source.input.file,a)||r.length&&n.source.input.file&&!wa(n.source.input.file,r)||n.walkRules(o=>{const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes"];o.parent&&l.includes(o.parent.name)||(o.selectors=o.selectors.map(c=>e.exclude&&_m(c,e.exclude)?c:e.transform?e.transform(t,c,s+c,n.source.input.file,o):s+c))})}};function wa(i,e){return e.some(t=>t instanceof RegExp?t.test(i):i.includes(t))}function _m(i,e){return e.some(t=>t instanceof RegExp?t.test(i):i===t)}const Sm=Ka(wm),Cm="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}",Em="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 Am(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function In(i){return i instanceof Map?i.clear=i.delete=i.set=function(){throw new Error("map is read-only")}:i instanceof Set&&(i.add=i.clear=i.delete=function(){throw new Error("set is read-only")}),Object.freeze(i),Object.getOwnPropertyNames(i).forEach(e=>{const t=i[e],s=typeof t;(s==="object"||s==="function")&&!Object.isFrozen(t)&&In(t)}),i}class _a{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Mn(i){return i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function Re(i,...e){const t=Object.create(null);for(const s in i)t[s]=i[s];return e.forEach(function(s){for(const a in s)t[a]=s[a]}),t}const km="</span>",Sa=i=>!!i.scope,$m=(i,{prefix:e})=>{if(i.startsWith("language:"))return i.replace("language:","language-");if(i.includes(".")){const t=i.split(".");return[`${e}${t.shift()}`,...t.map((s,a)=>`${s}${"_".repeat(a+1)}`)].join(" ")}return`${e}${i}`};class Om{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=Mn(e)}openNode(e){if(!Sa(e))return;const t=$m(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){Sa(e)&&(this.buffer+=km)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const Ca=(i={})=>{const e={children:[]};return Object.assign(e,i),e};class Is{constructor(){this.rootNode=Ca(),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=Ca({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(s=>this._walk(e,s)),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=>{Is._collapse(t)}))}}class Im extends Is{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const s=e.root;t&&(s.scope=`language:${t}`),this.add(s)}toHTML(){return new Om(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Pt(i){return i?typeof i=="string"?i:i.source:null}function Rn(i){return Ke("(?=",i,")")}function Mm(i){return Ke("(?:",i,")*")}function Rm(i){return Ke("(?:",i,")?")}function Ke(...i){return i.map(e=>Pt(e)).join("")}function Lm(i){const e=i[i.length-1];return typeof e=="object"&&e.constructor===Object?(i.splice(i.length-1,1),e):{}}function Ms(...i){return"("+(Lm(i).capture?"":"?:")+i.map(e=>Pt(e)).join("|")+")"}function Ln(i){return new RegExp(i.toString()+"|").exec("").length-1}function Pm(i,e){const t=i&&i.exec(e);return t&&t.index===0}const Dm=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Rs(i,{joinWith:e}){let t=0;return i.map(s=>{t+=1;const a=t;let r=Pt(s),n="";for(;r.length>0;){const o=Dm.exec(r);if(!o){n+=r;break}n+=r.substring(0,o.index),r=r.substring(o.index+o[0].length),o[0][0]==="\\"&&o[1]?n+="\\"+String(Number(o[1])+a):(n+=o[0],o[0]==="("&&t++)}return n}).map(s=>`(${s})`).join(e)}const Bm=/\b\B/,Pn="[a-zA-Z]\\w*",Ls="[a-zA-Z_]\\w*",Dn="\\b\\d+(\\.\\d+)?",Bn="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Tn="\\b(0b[01]+)",Tm="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",zm=(i={})=>{const e=/^#![ ]*\//;return i.binary&&(i.begin=Ke(e,/.*\b/,i.binary,/\b.*/)),Re({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,s)=>{t.index!==0&&s.ignoreMatch()}},i)},Dt={begin:"\\\\[\\s\\S]",relevance:0},jm={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Dt]},Vm={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Dt]},Fm={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/},Ai=function(i,e,t={}){const s=Re({scope:"comment",begin:i,end:e,contains:[]},t);s.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 a=Ms("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 s.contains.push({begin:Ke(/[ ]+/,"(",a,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),s},Hm=Ai("//","$"),Um=Ai("/\\*","\\*/"),Gm=Ai("#","$"),Wm={scope:"number",begin:Dn,relevance:0},Km={scope:"number",begin:Bn,relevance:0},qm={scope:"number",begin:Tn,relevance:0},Jm={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Dt,{begin:/\[/,end:/\]/,relevance:0,contains:[Dt]}]},Zm={scope:"title",begin:Pn,relevance:0},Xm={scope:"title",begin:Ls,relevance:0},Ym={begin:"\\.\\s*"+Ls,relevance:0},Qm=function(i){return Object.assign(i,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var si=Object.freeze({__proto__:null,APOS_STRING_MODE:jm,BACKSLASH_ESCAPE:Dt,BINARY_NUMBER_MODE:qm,BINARY_NUMBER_RE:Tn,COMMENT:Ai,C_BLOCK_COMMENT_MODE:Um,C_LINE_COMMENT_MODE:Hm,C_NUMBER_MODE:Km,C_NUMBER_RE:Bn,END_SAME_AS_BEGIN:Qm,HASH_COMMENT_MODE:Gm,IDENT_RE:Pn,MATCH_NOTHING_RE:Bm,METHOD_GUARD:Ym,NUMBER_MODE:Wm,NUMBER_RE:Dn,PHRASAL_WORDS_MODE:Fm,QUOTE_STRING_MODE:Vm,REGEXP_MODE:Jm,RE_STARTERS_RE:Tm,SHEBANG:zm,TITLE_MODE:Zm,UNDERSCORE_IDENT_RE:Ls,UNDERSCORE_TITLE_MODE:Xm});function ed(i,e){i.input[i.index-1]==="."&&e.ignoreMatch()}function td(i,e){i.className!==void 0&&(i.scope=i.className,delete i.className)}function id(i,e){e&&i.beginKeywords&&(i.begin="\\b("+i.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",i.__beforeBegin=ed,i.keywords=i.keywords||i.beginKeywords,delete i.beginKeywords,i.relevance===void 0&&(i.relevance=0))}function sd(i,e){Array.isArray(i.illegal)&&(i.illegal=Ms(...i.illegal))}function ad(i,e){if(i.match){if(i.begin||i.end)throw new Error("begin & end are not supported with match");i.begin=i.match,delete i.match}}function nd(i,e){i.relevance===void 0&&(i.relevance=1)}const rd=(i,e)=>{if(!i.beforeMatch)return;if(i.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},i);Object.keys(i).forEach(s=>{delete i[s]}),i.keywords=t.keywords,i.begin=Ke(t.beforeMatch,Rn(t.begin)),i.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},i.relevance=0,delete t.beforeMatch},od=["of","and","for","in","not","or","if","then","parent","list","value"],ld="keyword";function zn(i,e,t=ld){const s=Object.create(null);return typeof i=="string"?a(t,i.split(" ")):Array.isArray(i)?a(t,i):Object.keys(i).forEach(function(r){Object.assign(s,zn(i[r],e,r))}),s;function a(r,n){e&&(n=n.map(o=>o.toLowerCase())),n.forEach(function(o){const l=o.split("|");s[l[0]]=[r,cd(l[0],l[1])]})}}function cd(i,e){return e?Number(e):md(i)?0:1}function md(i){return od.includes(i.toLowerCase())}const Ea={},Fe=i=>{console.error(i)},Aa=(i,...e)=>{console.log(`WARN: ${i}`,...e)},Qe=(i,e)=>{Ea[`${i}/${e}`]||(console.log(`Deprecated as of ${i}. ${e}`),Ea[`${i}/${e}`]=!0)},bi=new Error;function jn(i,e,{key:t}){let s=0;const a=i[t],r={},n={};for(let o=1;o<=e.length;o++)n[o+s]=a[o],r[o+s]=!0,s+=Ln(e[o-1]);i[t]=n,i[t]._emit=r,i[t]._multi=!0}function dd(i){if(Array.isArray(i.begin)){if(i.skip||i.excludeBegin||i.returnBegin)throw Fe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),bi;if(typeof i.beginScope!="object"||i.beginScope===null)throw Fe("beginScope must be object"),bi;jn(i,i.begin,{key:"beginScope"}),i.begin=Rs(i.begin,{joinWith:""})}}function ud(i){if(Array.isArray(i.end)){if(i.skip||i.excludeEnd||i.returnEnd)throw Fe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),bi;if(typeof i.endScope!="object"||i.endScope===null)throw Fe("endScope must be object"),bi;jn(i,i.end,{key:"endScope"}),i.end=Rs(i.end,{joinWith:""})}}function hd(i){i.scope&&typeof i.scope=="object"&&i.scope!==null&&(i.beginScope=i.scope,delete i.scope)}function fd(i){hd(i),typeof i.beginScope=="string"&&(i.beginScope={_wrap:i.beginScope}),typeof i.endScope=="string"&&(i.endScope={_wrap:i.endScope}),dd(i),ud(i)}function pd(i){function e(n,o){return new RegExp(Pt(n),"m"+(i.case_insensitive?"i":"")+(i.unicodeRegex?"u":"")+(o?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(o,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,o]),this.matchAt+=Ln(o)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const o=this.regexes.map(l=>l[1]);this.matcherRe=e(Rs(o,{joinWith:"|"}),!0),this.lastIndex=0}exec(o){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(o);if(!l)return null;const c=l.findIndex((u,h)=>h>0&&u!==void 0),m=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,m)}}class s{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(o){if(this.multiRegexes[o])return this.multiRegexes[o];const l=new t;return this.rules.slice(o).forEach(([c,m])=>l.addRule(c,m)),l.compile(),this.multiRegexes[o]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(o,l){this.rules.push([o,l]),l.type==="begin"&&this.count++}exec(o){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(o);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const m=this.getMatcher(0);m.lastIndex=this.lastIndex+1,c=m.exec(o)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function a(n){const o=new s;return n.contains.forEach(l=>o.addRule(l.begin,{rule:l,type:"begin"})),n.terminatorEnd&&o.addRule(n.terminatorEnd,{type:"end"}),n.illegal&&o.addRule(n.illegal,{type:"illegal"}),o}function r(n,o){const l=n;if(n.isCompiled)return l;[td,ad,fd,rd].forEach(m=>m(n,o)),i.compilerExtensions.forEach(m=>m(n,o)),n.__beforeBegin=null,[id,sd,nd].forEach(m=>m(n,o)),n.isCompiled=!0;let c=null;return typeof n.keywords=="object"&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),c=n.keywords.$pattern,delete n.keywords.$pattern),c=c||/\w+/,n.keywords&&(n.keywords=zn(n.keywords,i.case_insensitive)),l.keywordPatternRe=e(c,!0),o&&(n.begin||(n.begin=/\B|\b/),l.beginRe=e(l.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(l.endRe=e(l.end)),l.terminatorEnd=Pt(l.end)||"",n.endsWithParent&&o.terminatorEnd&&(l.terminatorEnd+=(n.end?"|":"")+o.terminatorEnd)),n.illegal&&(l.illegalRe=e(n.illegal)),n.contains||(n.contains=[]),n.contains=[].concat(...n.contains.map(function(m){return gd(m==="self"?n:m)})),n.contains.forEach(function(m){r(m,l)}),n.starts&&r(n.starts,o),l.matcher=a(l),l}if(i.compilerExtensions||(i.compilerExtensions=[]),i.contains&&i.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return i.classNameAliases=Re(i.classNameAliases||{}),r(i)}function Vn(i){return i?i.endsWithParent||Vn(i.starts):!1}function gd(i){return i.variants&&!i.cachedVariants&&(i.cachedVariants=i.variants.map(function(e){return Re(i,{variants:null},e)})),i.cachedVariants?i.cachedVariants:Vn(i)?Re(i,{starts:i.starts?Re(i.starts):null}):Object.isFrozen(i)?Re(i):i}var Nd="11.9.0";class bd extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Fi=Mn,ka=Re,$a=Symbol("nomatch"),vd=7,Fn=function(i){const e=Object.create(null),t=Object.create(null),s=[];let a=!0;const r="Could not find the language '{}', did you forget to load/include a language module?",n={disableAutodetect:!0,name:"Plain text",contains:[]};let o={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Im};function l(d){return o.noHighlightRe.test(d)}function c(d){let N=d.className+" ";N+=d.parentNode?d.parentNode.className:"";const w=o.languageDetectRe.exec(N);if(w){const k=O(w[1]);return k||(Aa(r.replace("{}",w[1])),Aa("Falling back to no-highlight mode for this block.",d)),k?w[1]:"no-highlight"}return N.split(/\s+/).find(k=>l(k)||O(k))}function m(d,N,w){let k="",z="";typeof N=="object"?(k=d,w=N.ignoreIllegals,z=N.language):(Qe("10.7.0","highlight(lang, code, ...args) has been deprecated."),Qe("10.7.0",`Please use highlight(code, options) instead.
1547
- https://github.com/highlightjs/highlight.js/issues/2277`),z=d,k=N),w===void 0&&(w=!0);const J={code:k,language:z};te("before:highlight",J);const le=J.result?J.result:u(J.language,J.code,w);return le.code=J.code,te("after:highlight",le),le}function u(d,N,w,k){const z=Object.create(null);function J(p,b){return p.keywords[b]}function le(){if(!S.keywords){G.addText(D);return}let p=0;S.keywordPatternRe.lastIndex=0;let b=S.keywordPatternRe.exec(D),C="";for(;b;){C+=D.substring(p,b.index);const B=ce.case_insensitive?b[0].toLowerCase():b[0],Y=J(S,B);if(Y){const[Ce,Xn]=Y;if(G.addText(C),C="",z[B]=(z[B]||0)+1,z[B]<=vd&&(Be+=Xn),Ce.startsWith("_"))C+=b[0];else{const Yn=ce.classNameAliases[Ce]||Ce;X(b[0],Yn)}}else C+=b[0];p=S.keywordPatternRe.lastIndex,b=S.keywordPatternRe.exec(D)}C+=D.substring(p),G.addText(C)}function pe(){if(D==="")return;let p=null;if(typeof S.subLanguage=="string"){if(!e[S.subLanguage]){G.addText(D);return}p=u(S.subLanguage,D,!0,ve[S.subLanguage]),ve[S.subLanguage]=p._top}else p=g(D,S.subLanguage.length?S.subLanguage:null);S.relevance>0&&(Be+=p.relevance),G.__addSublanguage(p._emitter,p.language)}function U(){S.subLanguage!=null?pe():le(),D=""}function X(p,b){p!==""&&(G.startScope(b),G.addText(p),G.endScope())}function De(p,b){let C=1;const B=b.length-1;for(;C<=B;){if(!p._emit[C]){C++;continue}const Y=ce.classNameAliases[p[C]]||p[C],Ce=b[C];Y?X(Ce,Y):(D=Ce,le(),D=""),C++}}function be(p,b){return p.scope&&typeof p.scope=="string"&&G.openNode(ce.classNameAliases[p.scope]||p.scope),p.beginScope&&(p.beginScope._wrap?(X(D,ce.classNameAliases[p.beginScope._wrap]||p.beginScope._wrap),D=""):p.beginScope._multi&&(De(p.beginScope,b),D="")),S=Object.create(p,{parent:{value:S}}),S}function qe(p,b,C){let B=Pm(p.endRe,C);if(B){if(p["on:end"]){const Y=new _a(p);p["on:end"](b,Y),Y.isMatchIgnored&&(B=!1)}if(B){for(;p.endsParent&&p.parent;)p=p.parent;return p}}if(p.endsWithParent)return qe(p.parent,b,C)}function $i(p){return S.matcher.regexIndex===0?(D+=p[0],1):(Xe=!0,0)}function ft(p){const b=p[0],C=p.rule,B=new _a(C),Y=[C.__beforeBegin,C["on:begin"]];for(const Ce of Y)if(Ce&&(Ce(p,B),B.isMatchIgnored))return $i(b);return C.skip?D+=b:(C.excludeBegin&&(D+=b),U(),!C.returnBegin&&!C.excludeBegin&&(D=b)),be(C,p),C.returnBegin?0:b.length}function Oi(p){const b=p[0],C=N.substring(p.index),B=qe(S,p,C);if(!B)return $a;const Y=S;S.endScope&&S.endScope._wrap?(U(),X(b,S.endScope._wrap)):S.endScope&&S.endScope._multi?(U(),De(S.endScope,p)):Y.skip?D+=b:(Y.returnEnd||Y.excludeEnd||(D+=b),U(),Y.excludeEnd&&(D=b));do S.scope&&G.closeNode(),!S.skip&&!S.subLanguage&&(Be+=S.relevance),S=S.parent;while(S!==B.parent);return B.starts&&be(B.starts,p),Y.returnEnd?0:b.length}function Ut(){const p=[];for(let b=S;b!==ce;b=b.parent)b.scope&&p.unshift(b.scope);p.forEach(b=>G.openNode(b))}let Je={};function Gt(p,b){const C=b&&b[0];if(D+=p,C==null)return U(),0;if(Je.type==="begin"&&b.type==="end"&&Je.index===b.index&&C===""){if(D+=N.slice(b.index,b.index+1),!a){const B=new Error(`0 width match regex (${d})`);throw B.languageName=d,B.badRule=Je.rule,B}return 1}if(Je=b,b.type==="begin")return ft(b);if(b.type==="illegal"&&!w){const B=new Error('Illegal lexeme "'+C+'" for mode "'+(S.scope||"<unnamed>")+'"');throw B.mode=S,B}else if(b.type==="end"){const B=Oi(b);if(B!==$a)return B}if(b.type==="illegal"&&C==="")return 1;if(Ze>1e5&&Ze>b.index*3)throw new Error("potential infinite loop, way more iterations than matches");return D+=C,C.length}const ce=O(d);if(!ce)throw Fe(r.replace("{}",d)),new Error('Unknown language: "'+d+'"');const Wt=pd(ce);let pt="",S=k||Wt;const ve={},G=new o.__emitter(o);Ut();let D="",Be=0,ge=0,Ze=0,Xe=!1;try{if(ce.__emitTokens)ce.__emitTokens(N,G);else{for(S.matcher.considerAll();;){Ze++,Xe?Xe=!1:S.matcher.considerAll(),S.matcher.lastIndex=ge;const p=S.matcher.exec(N);if(!p)break;const b=N.substring(ge,p.index),C=Gt(b,p);ge=p.index+C}Gt(N.substring(ge))}return G.finalize(),pt=G.toHTML(),{language:d,value:pt,relevance:Be,illegal:!1,_emitter:G,_top:S}}catch(p){if(p.message&&p.message.includes("Illegal"))return{language:d,value:Fi(N),illegal:!0,relevance:0,_illegalBy:{message:p.message,index:ge,context:N.slice(ge-100,ge+100),mode:p.mode,resultSoFar:pt},_emitter:G};if(a)return{language:d,value:Fi(N),illegal:!1,relevance:0,errorRaised:p,_emitter:G,_top:S};throw p}}function h(d){const N={value:Fi(d),illegal:!1,relevance:0,_top:n,_emitter:new o.__emitter(o)};return N._emitter.addText(d),N}function g(d,N){N=N||o.languages||Object.keys(e);const w=h(d),k=N.filter(O).filter(K).map(U=>u(U,d,!1));k.unshift(w);const z=k.sort((U,X)=>{if(U.relevance!==X.relevance)return X.relevance-U.relevance;if(U.language&&X.language){if(O(U.language).supersetOf===X.language)return 1;if(O(X.language).supersetOf===U.language)return-1}return 0}),[J,le]=z,pe=J;return pe.secondBest=le,pe}function _(d,N,w){const k=N&&t[N]||w;d.classList.add("hljs"),d.classList.add(`language-${k}`)}function y(d){let N=null;const w=c(d);if(l(w))return;if(te("before:highlightElement",{el:d,language:w}),d.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",d);return}if(d.children.length>0&&(o.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)),o.throwUnescapedHTML))throw new bd("One of your code blocks includes unescaped HTML.",d.innerHTML);N=d;const k=N.textContent,z=w?m(k,{language:w,ignoreIllegals:!0}):g(k);d.innerHTML=z.value,d.dataset.highlighted="yes",_(d,w,z.language),d.result={language:z.language,re:z.relevance,relevance:z.relevance},z.secondBest&&(d.secondBest={language:z.secondBest.language,relevance:z.secondBest.relevance}),te("after:highlightElement",{el:d,result:z,text:k})}function f(d){o=ka(o,d)}const A=()=>{x(),Qe("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function I(){x(),Qe("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let M=!1;function x(){if(document.readyState==="loading"){M=!0;return}document.querySelectorAll(o.cssSelector).forEach(y)}function E(){M&&x()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",E,!1);function $(d,N){let w=null;try{w=N(i)}catch(k){if(Fe("Language definition for '{}' could not be registered.".replace("{}",d)),a)Fe(k);else throw k;w=n}w.name||(w.name=d),e[d]=w,w.rawDefinition=N.bind(null,i),w.aliases&&T(w.aliases,{languageName:d})}function R(d){delete e[d];for(const N of Object.keys(t))t[N]===d&&delete t[N]}function P(){return Object.keys(e)}function O(d){return d=(d||"").toLowerCase(),e[d]||e[t[d]]}function T(d,{languageName:N}){typeof d=="string"&&(d=[d]),d.forEach(w=>{t[w.toLowerCase()]=N})}function K(d){const N=O(d);return N&&!N.disableAutodetect}function ee(d){d["before:highlightBlock"]&&!d["before:highlightElement"]&&(d["before:highlightElement"]=N=>{d["before:highlightBlock"](Object.assign({block:N.el},N))}),d["after:highlightBlock"]&&!d["after:highlightElement"]&&(d["after:highlightElement"]=N=>{d["after:highlightBlock"](Object.assign({block:N.el},N))})}function q(d){ee(d),s.push(d)}function fe(d){const N=s.indexOf(d);N!==-1&&s.splice(N,1)}function te(d,N){const w=d;s.forEach(function(k){k[w]&&k[w](N)})}function Z(d){return Qe("10.7.0","highlightBlock will be removed entirely in v12.0"),Qe("10.7.0","Please use highlightElement now."),y(d)}Object.assign(i,{highlight:m,highlightAuto:g,highlightAll:x,highlightElement:y,highlightBlock:Z,configure:f,initHighlighting:A,initHighlightingOnLoad:I,registerLanguage:$,unregisterLanguage:R,listLanguages:P,getLanguage:O,registerAliases:T,autoDetection:K,inherit:ka,addPlugin:q,removePlugin:fe}),i.debugMode=function(){a=!1},i.safeMode=function(){a=!0},i.versionString=Nd,i.regex={concat:Ke,lookahead:Rn,either:Ms,optional:Rm,anyNumberOfTimes:Mm};for(const d in si)typeof si[d]=="object"&&In(si[d]);return Object.assign(i,si),i},dt=Fn({});dt.newInstance=()=>Fn({});var yd=dt;dt.HighlightJS=dt;dt.default=dt;const ki=Am(yd),vi="[A-Za-z$_][0-9A-Za-z$_]*",Hn=["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"],Un=["true","false","null","undefined","NaN","Infinity"],Gn=["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"],Wn=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Kn=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],qn=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Jn=[].concat(Kn,Gn,Wn);function xd(i){const e=i.regex,t=(d,{after:N})=>{const w="</"+d[0].slice(1);return d.input.indexOf(w,N)!==-1},s=vi,a={begin:"<>",end:"</>"},r=/<[A-Za-z0-9\\._:-]+\s*\/>/,n={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(d,N)=>{const w=d[0].length+d.index,k=d.input[w];if(k==="<"||k===","){N.ignoreMatch();return}k===">"&&(t(d,{after:w})||N.ignoreMatch());let z;const J=d.input.substring(w);if(z=J.match(/^\s*=/)){N.ignoreMatch();return}if((z=J.match(/^\s+extends\s+/))&&z.index===0){N.ignoreMatch();return}}},o={$pattern:vi,keyword:Hn,literal:Un,built_in:Jn,"variable.language":qn},l="[0-9](_?[0-9])*",c=`\\.(${l})`,m="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",u={className:"number",variants:[{begin:`(\\b(${m})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${m})\\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},h={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},g={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,h],subLanguage:"xml"}},_={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,h],subLanguage:"css"}},y={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,h],subLanguage:"graphql"}},f={className:"string",begin:"`",end:"`",contains:[i.BACKSLASH_ESCAPE,h]},A={className:"comment",variants:[i.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:s+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE]},I=[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,g,_,y,f,{match:/\$\d+/},u];h.contains=I.concat({begin:/\{/,end:/\}/,keywords:o,contains:["self"].concat(I)});const M=[].concat(A,h.contains),x=M.concat([{begin:/\(/,end:/\)/,keywords:o,contains:["self"].concat(M)}]),E={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:x},$={variants:[{match:[/class/,/\s+/,s,/\s+/,/extends/,/\s+/,e.concat(s,"(",e.concat(/\./,s),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,s],scope:{1:"keyword",3:"title.class"}}]},R={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:{_:[...Gn,...Wn]}},P={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},O={variants:[{match:[/function/,/\s+/,s,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[E],illegal:/%/},T={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function K(d){return e.concat("(?!",d.join("|"),")")}const ee={match:e.concat(/\b/,K([...Kn,"super","import"]),s,e.lookahead(/\(/)),className:"title.function",relevance:0},q={begin:e.concat(/\./,e.lookahead(e.concat(s,/(?![0-9A-Za-z$_(])/))),end:s,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},fe={match:[/get|set/,/\s+/,s,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},E]},te="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+i.UNDERSCORE_IDENT_RE+")\\s*=>",Z={match:[/const|var|let/,/\s+/,s,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(te)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[E]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:o,exports:{PARAMS_CONTAINS:x,CLASS_REFERENCE:R},illegal:/#(?![$_A-z])/,contains:[i.SHEBANG({label:"shebang",binary:"node",relevance:5}),P,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,g,_,y,f,A,{match:/\$\d+/},u,R,{className:"attr",begin:s+e.lookahead(":"),relevance:0},Z,{begin:"("+i.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[A,i.REGEXP_MODE,{className:"function",begin:te,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:i.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:x}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:a.begin,end:a.end},{match:r},{begin:n.begin,"on:begin":n.isTrulyOpeningTag,end:n.end}],subLanguage:"xml",contains:[{begin:n.begin,end:n.end,skip:!0,contains:["self"]}]}]},O,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+i.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[E,i.inherit(i.TITLE_MODE,{begin:s,className:"title.function"})]},{match:/\.\.\./,relevance:0},q,{match:"\\$"+s,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[E]},ee,T,$,fe,{match:/\$[(.]/}]}}function wd(i){const e=xd(i),t=vi,s=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],a={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[e.exports.CLASS_REFERENCE]},r={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:s},contains:[e.exports.CLASS_REFERENCE]},n={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},o=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],l={$pattern:vi,keyword:Hn.concat(o),literal:Un,built_in:Jn.concat(s),"variable.language":qn},c={className:"meta",begin:"@"+t},m=(h,g,_)=>{const y=h.contains.findIndex(f=>f.label===g);if(y===-1)throw new Error("can not find mode to replace");h.contains.splice(y,1,_)};Object.assign(e.keywords,l),e.exports.PARAMS_CONTAINS.push(c),e.contains=e.contains.concat([c,a,r]),m(e,"shebang",i.SHEBANG()),m(e,"use_strict",n);const u=e.contains.find(h=>h.label==="func.def");return u.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function _d(i){const e=i.regex,t=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),s=/[\p{L}0-9._:-]+/u,a={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},r={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},n=i.inherit(r,{begin:/\(/,end:/\)/}),o=i.inherit(i.APOS_STRING_MODE,{className:"string"}),l=i.inherit(i.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:s,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[a]},{begin:/'/,end:/'/,contains:[a]},{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:[r,l,o,n,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[r,n,l,o]}]}]},i.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},a,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(t,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:t,relevance:0,starts:c}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(t,/>/))),contains:[{className:"name",begin:t,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const Sd=i=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:i.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:[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:i.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_-]*/}}),Cd=["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"],Ed=["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"],Ad=["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"],kd=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],$d=["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 Od(i){const e=i.regex,t=Sd(i),s={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},a="and or not only",r=/@-?\w[\w]*(-\w+)*/,n="[a-zA-Z-][a-zA-Z0-9_-]*",o=[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[t.BLOCK_COMMENT,s,t.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+n,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Ad.join("|")+")"},{begin:":(:)?("+kd.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+$d.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[t.BLOCK_COMMENT,t.HEXCOLOR,t.IMPORTANT,t.CSS_NUMBER_MODE,...o,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...o,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},t.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:r},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:a,attribute:Ed.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...o,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Cd.join("|")+")\\b"}]}}const Zn=document.createElement("style");Zn.innerText=[Cm,Em].join(`
1548
- `);document.head.appendChild(Zn);ki.registerLanguage("typescript",wd);ki.registerLanguage("html",_d);ki.registerLanguage("css",Od);function Id(...i){const e=document.createElement("div"),t=document.createElement("div");t.classList.add("tab-control");const s=document.createElement("div");return i.forEach(a=>{e.appendChild(a),a.addEventListener("click",()=>{i.forEach(r=>r.removeAttribute("selected")),a.setAttribute("selected",""),s.innerHTML="",s.appendChild(a.content),s.className=a.className,s.classList.add("tab-content")})}),t.appendChild(e),t.appendChild(s),s.classList.add("tab-content"),i[0].setAttribute("selected",""),s.appendChild(i[0].content),t}function yt(i,e){const t=document.createElement("div");return t.role="tab",t.tabIndex=0,t.innerText=i,t.content=e,e.tagName=="PRE"&&t.classList.add("code"),t}function St(i,e){const t=document.createElement(i);return typeof e=="string"?t.innerHTML=e:e.forEach(s=>{t.appendChild(s)}),t}async function Md(i,e,t){var s,a,r;const n=e.mainContent,o=St("div",n);o.id=`example-preview-${t}`;const l=typeof e.css=="string"||(s=e.css)==null?void 0:s.label,c=typeof e.css=="string"?e.css:(a=e.css)==null?void 0:a.content,m=Id(yt("Preview",o),yt("HTML",ai("html",n)),...c?[yt(l??"CSS",ai("css",c))]:[],...e.initializer&&e.initializer.content?[yt(e.initializer.label??"TS",ai("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(h=>yt(h.label,ai(h.language,h.content))));e.description&&i.appendChild(St("div",e.description));const u=St("div",[m]);u.classList.add("example"),i.appendChild(u),c&&Rd(`#${o.id}`,c),(r=e.initializer)!=null&&r.initialize&&await e.initializer.initialize(o)}function ai(i,e){let t=e.split(/\r?\n/).map(s=>{const a=s.indexOf("///");if(a>-1){const r=s.substring(a+3).trimStart();return r?s.replace(/^(\s*)([^\s].*)$/,`$1${r}`):void 0}return s}).filter(s=>typeof s<"u").join(`
1549
- `).trim();return i&&i!="raw"&&(t=ki.highlight(t,{language:i}).value),St("pre",[St("code",t)])}function Rd(i,e){const t=document.createElement("style");t.innerHTML=V().use(Sm({prefix:i})).process(e).css,document.head.appendChild(t)}async function Ld(i,e=document.body){const t=Dd(e);let s=0;Object.keys(i).forEach(async a=>{const r=document.createElement("div");r.className="example-container",t.appendChild(r);const n=i[a].default;Md(r,n,s++)})}function Pd(i){const e=document.createElement("div");e.id="examples-container";const t=i.querySelector("#examples");return t?t.after(e):i.appendChild(e),e}function Dd(i){return i.children?Pd(i):i}const Bd=`<h1 id="@cas-smartdesign/combo-box">@cas-smartdesign/combo-box</h1>
1566
+ https://www.w3ctech.com/topic/2226`));let o=t(...n);return o.postcssPlugin=e,o.postcssVersion=new Os().version,o}let r;return Object.defineProperty(a,"postcss",{get(){return r||(r=a()),r}}),a.process=function(n,o,l){return L([a(l)]).process(n,o)},a};L.stringify=hm;L.parse=bm;L.fromJSON=fm;L.list=vm;L.comment=s=>new An(s);L.atRule=s=>new kn(s);L.decl=s=>new Cn(s);L.rule=s=>new $n(s);L.root=s=>new On(s);L.document=s=>new En(s);L.CssSyntaxError=mm;L.Declaration=Cn;L.Container=um;L.Processor=Os;L.Document=En;L.Comment=An;L.Warning=pm;L.AtRule=kn;L.Result=gm;L.Input=Nm;L.Rule=$n;L.Root=On;L.Node=ym;dm.registerPostcss(L);var xm=L;L.default=L;const V=Ka(xm);V.stringify;V.fromJSON;V.plugin;V.parse;V.list;V.document;V.comment;V.atRule;V.rule;V.decl;V.root;V.CssSyntaxError;V.Declaration;V.Container;V.Processor;V.Document;V.Comment;V.Warning;V.AtRule;V.Result;V.Input;V.Rule;V.Root;V.Node;var wm=function(e){const t=e.prefix,i=/\s+$/.test(t)?t:`${t} `,a=e.ignoreFiles?[].concat(e.ignoreFiles):[],r=e.includeFiles?[].concat(e.includeFiles):[];return function(n){a.length&&n.source.input.file&&wa(n.source.input.file,a)||r.length&&n.source.input.file&&!wa(n.source.input.file,r)||n.walkRules(o=>{const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes"];o.parent&&l.includes(o.parent.name)||(o.selectors=o.selectors.map(c=>e.exclude&&_m(c,e.exclude)?c:e.transform?e.transform(t,c,i+c,n.source.input.file,o):i+c))})}};function wa(s,e){return e.some(t=>t instanceof RegExp?t.test(s):s.includes(t))}function _m(s,e){return e.some(t=>t instanceof RegExp?t.test(s):s===t)}const Sm=Ka(wm),Cm="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}",Em="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 Am(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Mn(s){return s instanceof Map?s.clear=s.delete=s.set=function(){throw new Error("map is read-only")}:s instanceof Set&&(s.add=s.clear=s.delete=function(){throw new Error("set is read-only")}),Object.freeze(s),Object.getOwnPropertyNames(s).forEach(e=>{const t=s[e],i=typeof t;(i==="object"||i==="function")&&!Object.isFrozen(t)&&Mn(t)}),s}class _a{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function In(s){return s.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function Re(s,...e){const t=Object.create(null);for(const i in s)t[i]=s[i];return e.forEach(function(i){for(const a in i)t[a]=i[a]}),t}const km="</span>",Sa=s=>!!s.scope,$m=(s,{prefix:e})=>{if(s.startsWith("language:"))return s.replace("language:","language-");if(s.includes(".")){const t=s.split(".");return[`${e}${t.shift()}`,...t.map((i,a)=>`${i}${"_".repeat(a+1)}`)].join(" ")}return`${e}${s}`};class Om{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=In(e)}openNode(e){if(!Sa(e))return;const t=$m(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){Sa(e)&&(this.buffer+=km)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const Ca=(s={})=>{const e={children:[]};return Object.assign(e,s),e};class Ms{constructor(){this.rootNode=Ca(),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=Ca({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=>{Ms._collapse(t)}))}}class Mm extends Ms{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 Om(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Pt(s){return s?typeof s=="string"?s:s.source:null}function Rn(s){return Ke("(?=",s,")")}function Im(s){return Ke("(?:",s,")*")}function Rm(s){return Ke("(?:",s,")?")}function Ke(...s){return s.map(e=>Pt(e)).join("")}function Lm(s){const e=s[s.length-1];return typeof e=="object"&&e.constructor===Object?(s.splice(s.length-1,1),e):{}}function Is(...s){return"("+(Lm(s).capture?"":"?:")+s.map(e=>Pt(e)).join("|")+")"}function Ln(s){return new RegExp(s.toString()+"|").exec("").length-1}function Pm(s,e){const t=s&&s.exec(e);return t&&t.index===0}const Dm=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Rs(s,{joinWith:e}){let t=0;return s.map(i=>{t+=1;const a=t;let r=Pt(i),n="";for(;r.length>0;){const o=Dm.exec(r);if(!o){n+=r;break}n+=r.substring(0,o.index),r=r.substring(o.index+o[0].length),o[0][0]==="\\"&&o[1]?n+="\\"+String(Number(o[1])+a):(n+=o[0],o[0]==="("&&t++)}return n}).map(i=>`(${i})`).join(e)}const Bm=/\b\B/,Pn="[a-zA-Z]\\w*",Ls="[a-zA-Z_]\\w*",Dn="\\b\\d+(\\.\\d+)?",Bn="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Tn="\\b(0b[01]+)",Tm="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",zm=(s={})=>{const e=/^#![ ]*\//;return s.binary&&(s.begin=Ke(e,/.*\b/,s.binary,/\b.*/)),Re({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,i)=>{t.index!==0&&i.ignoreMatch()}},s)},Dt={begin:"\\\\[\\s\\S]",relevance:0},jm={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Dt]},Vm={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Dt]},Fm={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/},Ai=function(s,e,t={}){const i=Re({scope:"comment",begin:s,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 a=Is("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:Ke(/[ ]+/,"(",a,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),i},Hm=Ai("//","$"),Um=Ai("/\\*","\\*/"),Gm=Ai("#","$"),Wm={scope:"number",begin:Dn,relevance:0},Km={scope:"number",begin:Bn,relevance:0},qm={scope:"number",begin:Tn,relevance:0},Jm={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Dt,{begin:/\[/,end:/\]/,relevance:0,contains:[Dt]}]},Zm={scope:"title",begin:Pn,relevance:0},Xm={scope:"title",begin:Ls,relevance:0},Ym={begin:"\\.\\s*"+Ls,relevance:0},Qm=function(s){return Object.assign(s,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var si=Object.freeze({__proto__:null,APOS_STRING_MODE:jm,BACKSLASH_ESCAPE:Dt,BINARY_NUMBER_MODE:qm,BINARY_NUMBER_RE:Tn,COMMENT:Ai,C_BLOCK_COMMENT_MODE:Um,C_LINE_COMMENT_MODE:Hm,C_NUMBER_MODE:Km,C_NUMBER_RE:Bn,END_SAME_AS_BEGIN:Qm,HASH_COMMENT_MODE:Gm,IDENT_RE:Pn,MATCH_NOTHING_RE:Bm,METHOD_GUARD:Ym,NUMBER_MODE:Wm,NUMBER_RE:Dn,PHRASAL_WORDS_MODE:Fm,QUOTE_STRING_MODE:Vm,REGEXP_MODE:Jm,RE_STARTERS_RE:Tm,SHEBANG:zm,TITLE_MODE:Zm,UNDERSCORE_IDENT_RE:Ls,UNDERSCORE_TITLE_MODE:Xm});function ed(s,e){s.input[s.index-1]==="."&&e.ignoreMatch()}function td(s,e){s.className!==void 0&&(s.scope=s.className,delete s.className)}function id(s,e){e&&s.beginKeywords&&(s.begin="\\b("+s.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",s.__beforeBegin=ed,s.keywords=s.keywords||s.beginKeywords,delete s.beginKeywords,s.relevance===void 0&&(s.relevance=0))}function sd(s,e){Array.isArray(s.illegal)&&(s.illegal=Is(...s.illegal))}function ad(s,e){if(s.match){if(s.begin||s.end)throw new Error("begin & end are not supported with match");s.begin=s.match,delete s.match}}function nd(s,e){s.relevance===void 0&&(s.relevance=1)}const rd=(s,e)=>{if(!s.beforeMatch)return;if(s.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},s);Object.keys(s).forEach(i=>{delete s[i]}),s.keywords=t.keywords,s.begin=Ke(t.beforeMatch,Rn(t.begin)),s.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},s.relevance=0,delete t.beforeMatch},od=["of","and","for","in","not","or","if","then","parent","list","value"],ld="keyword";function zn(s,e,t=ld){const i=Object.create(null);return typeof s=="string"?a(t,s.split(" ")):Array.isArray(s)?a(t,s):Object.keys(s).forEach(function(r){Object.assign(i,zn(s[r],e,r))}),i;function a(r,n){e&&(n=n.map(o=>o.toLowerCase())),n.forEach(function(o){const l=o.split("|");i[l[0]]=[r,cd(l[0],l[1])]})}}function cd(s,e){return e?Number(e):md(s)?0:1}function md(s){return od.includes(s.toLowerCase())}const Ea={},Fe=s=>{console.error(s)},Aa=(s,...e)=>{console.log(`WARN: ${s}`,...e)},Qe=(s,e)=>{Ea[`${s}/${e}`]||(console.log(`Deprecated as of ${s}. ${e}`),Ea[`${s}/${e}`]=!0)},bi=new Error;function jn(s,e,{key:t}){let i=0;const a=s[t],r={},n={};for(let o=1;o<=e.length;o++)n[o+i]=a[o],r[o+i]=!0,i+=Ln(e[o-1]);s[t]=n,s[t]._emit=r,s[t]._multi=!0}function dd(s){if(Array.isArray(s.begin)){if(s.skip||s.excludeBegin||s.returnBegin)throw Fe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),bi;if(typeof s.beginScope!="object"||s.beginScope===null)throw Fe("beginScope must be object"),bi;jn(s,s.begin,{key:"beginScope"}),s.begin=Rs(s.begin,{joinWith:""})}}function ud(s){if(Array.isArray(s.end)){if(s.skip||s.excludeEnd||s.returnEnd)throw Fe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),bi;if(typeof s.endScope!="object"||s.endScope===null)throw Fe("endScope must be object"),bi;jn(s,s.end,{key:"endScope"}),s.end=Rs(s.end,{joinWith:""})}}function hd(s){s.scope&&typeof s.scope=="object"&&s.scope!==null&&(s.beginScope=s.scope,delete s.scope)}function fd(s){hd(s),typeof s.beginScope=="string"&&(s.beginScope={_wrap:s.beginScope}),typeof s.endScope=="string"&&(s.endScope={_wrap:s.endScope}),dd(s),ud(s)}function pd(s){function e(n,o){return new RegExp(Pt(n),"m"+(s.case_insensitive?"i":"")+(s.unicodeRegex?"u":"")+(o?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(o,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,o]),this.matchAt+=Ln(o)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const o=this.regexes.map(l=>l[1]);this.matcherRe=e(Rs(o,{joinWith:"|"}),!0),this.lastIndex=0}exec(o){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(o);if(!l)return null;const c=l.findIndex((u,h)=>h>0&&u!==void 0),m=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,m)}}class i{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(o){if(this.multiRegexes[o])return this.multiRegexes[o];const l=new t;return this.rules.slice(o).forEach(([c,m])=>l.addRule(c,m)),l.compile(),this.multiRegexes[o]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(o,l){this.rules.push([o,l]),l.type==="begin"&&this.count++}exec(o){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(o);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const m=this.getMatcher(0);m.lastIndex=this.lastIndex+1,c=m.exec(o)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function a(n){const o=new i;return n.contains.forEach(l=>o.addRule(l.begin,{rule:l,type:"begin"})),n.terminatorEnd&&o.addRule(n.terminatorEnd,{type:"end"}),n.illegal&&o.addRule(n.illegal,{type:"illegal"}),o}function r(n,o){const l=n;if(n.isCompiled)return l;[td,ad,fd,rd].forEach(m=>m(n,o)),s.compilerExtensions.forEach(m=>m(n,o)),n.__beforeBegin=null,[id,sd,nd].forEach(m=>m(n,o)),n.isCompiled=!0;let c=null;return typeof n.keywords=="object"&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),c=n.keywords.$pattern,delete n.keywords.$pattern),c=c||/\w+/,n.keywords&&(n.keywords=zn(n.keywords,s.case_insensitive)),l.keywordPatternRe=e(c,!0),o&&(n.begin||(n.begin=/\B|\b/),l.beginRe=e(l.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(l.endRe=e(l.end)),l.terminatorEnd=Pt(l.end)||"",n.endsWithParent&&o.terminatorEnd&&(l.terminatorEnd+=(n.end?"|":"")+o.terminatorEnd)),n.illegal&&(l.illegalRe=e(n.illegal)),n.contains||(n.contains=[]),n.contains=[].concat(...n.contains.map(function(m){return gd(m==="self"?n:m)})),n.contains.forEach(function(m){r(m,l)}),n.starts&&r(n.starts,o),l.matcher=a(l),l}if(s.compilerExtensions||(s.compilerExtensions=[]),s.contains&&s.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return s.classNameAliases=Re(s.classNameAliases||{}),r(s)}function Vn(s){return s?s.endsWithParent||Vn(s.starts):!1}function gd(s){return s.variants&&!s.cachedVariants&&(s.cachedVariants=s.variants.map(function(e){return Re(s,{variants:null},e)})),s.cachedVariants?s.cachedVariants:Vn(s)?Re(s,{starts:s.starts?Re(s.starts):null}):Object.isFrozen(s)?Re(s):s}var Nd="11.9.0";class bd extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Fi=In,ka=Re,$a=Symbol("nomatch"),vd=7,Fn=function(s){const e=Object.create(null),t=Object.create(null),i=[];let a=!0;const r="Could not find the language '{}', did you forget to load/include a language module?",n={disableAutodetect:!0,name:"Plain text",contains:[]};let o={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Mm};function l(d){return o.noHighlightRe.test(d)}function c(d){let N=d.className+" ";N+=d.parentNode?d.parentNode.className:"";const w=o.languageDetectRe.exec(N);if(w){const k=O(w[1]);return k||(Aa(r.replace("{}",w[1])),Aa("Falling back to no-highlight mode for this block.",d)),k?w[1]:"no-highlight"}return N.split(/\s+/).find(k=>l(k)||O(k))}function m(d,N,w){let k="",z="";typeof N=="object"?(k=d,w=N.ignoreIllegals,z=N.language):(Qe("10.7.0","highlight(lang, code, ...args) has been deprecated."),Qe("10.7.0",`Please use highlight(code, options) instead.
1567
+ https://github.com/highlightjs/highlight.js/issues/2277`),z=d,k=N),w===void 0&&(w=!0);const J={code:k,language:z};te("before:highlight",J);const le=J.result?J.result:u(J.language,J.code,w);return le.code=J.code,te("after:highlight",le),le}function u(d,N,w,k){const z=Object.create(null);function J(p,b){return p.keywords[b]}function le(){if(!S.keywords){G.addText(D);return}let p=0;S.keywordPatternRe.lastIndex=0;let b=S.keywordPatternRe.exec(D),C="";for(;b;){C+=D.substring(p,b.index);const B=ce.case_insensitive?b[0].toLowerCase():b[0],Y=J(S,B);if(Y){const[Ce,Xn]=Y;if(G.addText(C),C="",z[B]=(z[B]||0)+1,z[B]<=vd&&(Be+=Xn),Ce.startsWith("_"))C+=b[0];else{const Yn=ce.classNameAliases[Ce]||Ce;X(b[0],Yn)}}else C+=b[0];p=S.keywordPatternRe.lastIndex,b=S.keywordPatternRe.exec(D)}C+=D.substring(p),G.addText(C)}function pe(){if(D==="")return;let p=null;if(typeof S.subLanguage=="string"){if(!e[S.subLanguage]){G.addText(D);return}p=u(S.subLanguage,D,!0,ve[S.subLanguage]),ve[S.subLanguage]=p._top}else p=g(D,S.subLanguage.length?S.subLanguage:null);S.relevance>0&&(Be+=p.relevance),G.__addSublanguage(p._emitter,p.language)}function U(){S.subLanguage!=null?pe():le(),D=""}function X(p,b){p!==""&&(G.startScope(b),G.addText(p),G.endScope())}function De(p,b){let C=1;const B=b.length-1;for(;C<=B;){if(!p._emit[C]){C++;continue}const Y=ce.classNameAliases[p[C]]||p[C],Ce=b[C];Y?X(Ce,Y):(D=Ce,le(),D=""),C++}}function be(p,b){return p.scope&&typeof p.scope=="string"&&G.openNode(ce.classNameAliases[p.scope]||p.scope),p.beginScope&&(p.beginScope._wrap?(X(D,ce.classNameAliases[p.beginScope._wrap]||p.beginScope._wrap),D=""):p.beginScope._multi&&(De(p.beginScope,b),D="")),S=Object.create(p,{parent:{value:S}}),S}function qe(p,b,C){let B=Pm(p.endRe,C);if(B){if(p["on:end"]){const Y=new _a(p);p["on:end"](b,Y),Y.isMatchIgnored&&(B=!1)}if(B){for(;p.endsParent&&p.parent;)p=p.parent;return p}}if(p.endsWithParent)return qe(p.parent,b,C)}function $i(p){return S.matcher.regexIndex===0?(D+=p[0],1):(Xe=!0,0)}function ft(p){const b=p[0],C=p.rule,B=new _a(C),Y=[C.__beforeBegin,C["on:begin"]];for(const Ce of Y)if(Ce&&(Ce(p,B),B.isMatchIgnored))return $i(b);return C.skip?D+=b:(C.excludeBegin&&(D+=b),U(),!C.returnBegin&&!C.excludeBegin&&(D=b)),be(C,p),C.returnBegin?0:b.length}function Oi(p){const b=p[0],C=N.substring(p.index),B=qe(S,p,C);if(!B)return $a;const Y=S;S.endScope&&S.endScope._wrap?(U(),X(b,S.endScope._wrap)):S.endScope&&S.endScope._multi?(U(),De(S.endScope,p)):Y.skip?D+=b:(Y.returnEnd||Y.excludeEnd||(D+=b),U(),Y.excludeEnd&&(D=b));do S.scope&&G.closeNode(),!S.skip&&!S.subLanguage&&(Be+=S.relevance),S=S.parent;while(S!==B.parent);return B.starts&&be(B.starts,p),Y.returnEnd?0:b.length}function Ut(){const p=[];for(let b=S;b!==ce;b=b.parent)b.scope&&p.unshift(b.scope);p.forEach(b=>G.openNode(b))}let Je={};function Gt(p,b){const C=b&&b[0];if(D+=p,C==null)return U(),0;if(Je.type==="begin"&&b.type==="end"&&Je.index===b.index&&C===""){if(D+=N.slice(b.index,b.index+1),!a){const B=new Error(`0 width match regex (${d})`);throw B.languageName=d,B.badRule=Je.rule,B}return 1}if(Je=b,b.type==="begin")return ft(b);if(b.type==="illegal"&&!w){const B=new Error('Illegal lexeme "'+C+'" for mode "'+(S.scope||"<unnamed>")+'"');throw B.mode=S,B}else if(b.type==="end"){const B=Oi(b);if(B!==$a)return B}if(b.type==="illegal"&&C==="")return 1;if(Ze>1e5&&Ze>b.index*3)throw new Error("potential infinite loop, way more iterations than matches");return D+=C,C.length}const ce=O(d);if(!ce)throw Fe(r.replace("{}",d)),new Error('Unknown language: "'+d+'"');const Wt=pd(ce);let pt="",S=k||Wt;const ve={},G=new o.__emitter(o);Ut();let D="",Be=0,ge=0,Ze=0,Xe=!1;try{if(ce.__emitTokens)ce.__emitTokens(N,G);else{for(S.matcher.considerAll();;){Ze++,Xe?Xe=!1:S.matcher.considerAll(),S.matcher.lastIndex=ge;const p=S.matcher.exec(N);if(!p)break;const b=N.substring(ge,p.index),C=Gt(b,p);ge=p.index+C}Gt(N.substring(ge))}return G.finalize(),pt=G.toHTML(),{language:d,value:pt,relevance:Be,illegal:!1,_emitter:G,_top:S}}catch(p){if(p.message&&p.message.includes("Illegal"))return{language:d,value:Fi(N),illegal:!0,relevance:0,_illegalBy:{message:p.message,index:ge,context:N.slice(ge-100,ge+100),mode:p.mode,resultSoFar:pt},_emitter:G};if(a)return{language:d,value:Fi(N),illegal:!1,relevance:0,errorRaised:p,_emitter:G,_top:S};throw p}}function h(d){const N={value:Fi(d),illegal:!1,relevance:0,_top:n,_emitter:new o.__emitter(o)};return N._emitter.addText(d),N}function g(d,N){N=N||o.languages||Object.keys(e);const w=h(d),k=N.filter(O).filter(K).map(U=>u(U,d,!1));k.unshift(w);const z=k.sort((U,X)=>{if(U.relevance!==X.relevance)return X.relevance-U.relevance;if(U.language&&X.language){if(O(U.language).supersetOf===X.language)return 1;if(O(X.language).supersetOf===U.language)return-1}return 0}),[J,le]=z,pe=J;return pe.secondBest=le,pe}function _(d,N,w){const k=N&&t[N]||w;d.classList.add("hljs"),d.classList.add(`language-${k}`)}function y(d){let N=null;const w=c(d);if(l(w))return;if(te("before:highlightElement",{el:d,language:w}),d.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",d);return}if(d.children.length>0&&(o.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)),o.throwUnescapedHTML))throw new bd("One of your code blocks includes unescaped HTML.",d.innerHTML);N=d;const k=N.textContent,z=w?m(k,{language:w,ignoreIllegals:!0}):g(k);d.innerHTML=z.value,d.dataset.highlighted="yes",_(d,w,z.language),d.result={language:z.language,re:z.relevance,relevance:z.relevance},z.secondBest&&(d.secondBest={language:z.secondBest.language,relevance:z.secondBest.relevance}),te("after:highlightElement",{el:d,result:z,text:k})}function f(d){o=ka(o,d)}const A=()=>{x(),Qe("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function M(){x(),Qe("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let I=!1;function x(){if(document.readyState==="loading"){I=!0;return}document.querySelectorAll(o.cssSelector).forEach(y)}function E(){I&&x()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",E,!1);function $(d,N){let w=null;try{w=N(s)}catch(k){if(Fe("Language definition for '{}' could not be registered.".replace("{}",d)),a)Fe(k);else throw k;w=n}w.name||(w.name=d),e[d]=w,w.rawDefinition=N.bind(null,s),w.aliases&&T(w.aliases,{languageName:d})}function R(d){delete e[d];for(const N of Object.keys(t))t[N]===d&&delete t[N]}function P(){return Object.keys(e)}function O(d){return d=(d||"").toLowerCase(),e[d]||e[t[d]]}function T(d,{languageName:N}){typeof d=="string"&&(d=[d]),d.forEach(w=>{t[w.toLowerCase()]=N})}function K(d){const N=O(d);return N&&!N.disableAutodetect}function ee(d){d["before:highlightBlock"]&&!d["before:highlightElement"]&&(d["before:highlightElement"]=N=>{d["before:highlightBlock"](Object.assign({block:N.el},N))}),d["after:highlightBlock"]&&!d["after:highlightElement"]&&(d["after:highlightElement"]=N=>{d["after:highlightBlock"](Object.assign({block:N.el},N))})}function q(d){ee(d),i.push(d)}function fe(d){const N=i.indexOf(d);N!==-1&&i.splice(N,1)}function te(d,N){const w=d;i.forEach(function(k){k[w]&&k[w](N)})}function Z(d){return Qe("10.7.0","highlightBlock will be removed entirely in v12.0"),Qe("10.7.0","Please use highlightElement now."),y(d)}Object.assign(s,{highlight:m,highlightAuto:g,highlightAll:x,highlightElement:y,highlightBlock:Z,configure:f,initHighlighting:A,initHighlightingOnLoad:M,registerLanguage:$,unregisterLanguage:R,listLanguages:P,getLanguage:O,registerAliases:T,autoDetection:K,inherit:ka,addPlugin:q,removePlugin:fe}),s.debugMode=function(){a=!1},s.safeMode=function(){a=!0},s.versionString=Nd,s.regex={concat:Ke,lookahead:Rn,either:Is,optional:Rm,anyNumberOfTimes:Im};for(const d in si)typeof si[d]=="object"&&Mn(si[d]);return Object.assign(s,si),s},dt=Fn({});dt.newInstance=()=>Fn({});var yd=dt;dt.HighlightJS=dt;dt.default=dt;const ki=Am(yd),vi="[A-Za-z$_][0-9A-Za-z$_]*",Hn=["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"],Un=["true","false","null","undefined","NaN","Infinity"],Gn=["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"],Wn=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Kn=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],qn=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Jn=[].concat(Kn,Gn,Wn);function xd(s){const e=s.regex,t=(d,{after:N})=>{const w="</"+d[0].slice(1);return d.input.indexOf(w,N)!==-1},i=vi,a={begin:"<>",end:"</>"},r=/<[A-Za-z0-9\\._:-]+\s*\/>/,n={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(d,N)=>{const w=d[0].length+d.index,k=d.input[w];if(k==="<"||k===","){N.ignoreMatch();return}k===">"&&(t(d,{after:w})||N.ignoreMatch());let z;const J=d.input.substring(w);if(z=J.match(/^\s*=/)){N.ignoreMatch();return}if((z=J.match(/^\s+extends\s+/))&&z.index===0){N.ignoreMatch();return}}},o={$pattern:vi,keyword:Hn,literal:Un,built_in:Jn,"variable.language":qn},l="[0-9](_?[0-9])*",c=`\\.(${l})`,m="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",u={className:"number",variants:[{begin:`(\\b(${m})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${m})\\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},h={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},g={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[s.BACKSLASH_ESCAPE,h],subLanguage:"xml"}},_={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[s.BACKSLASH_ESCAPE,h],subLanguage:"css"}},y={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[s.BACKSLASH_ESCAPE,h],subLanguage:"graphql"}},f={className:"string",begin:"`",end:"`",contains:[s.BACKSLASH_ESCAPE,h]},A={className:"comment",variants:[s.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}]}]}),s.C_BLOCK_COMMENT_MODE,s.C_LINE_COMMENT_MODE]},M=[s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,g,_,y,f,{match:/\$\d+/},u];h.contains=M.concat({begin:/\{/,end:/\}/,keywords:o,contains:["self"].concat(M)});const I=[].concat(A,h.contains),x=I.concat([{begin:/\(/,end:/\)/,keywords:o,contains:["self"].concat(I)}]),E={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:x},$={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"}}]},R={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:{_:[...Gn,...Wn]}},P={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},O={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[E],illegal:/%/},T={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function K(d){return e.concat("(?!",d.join("|"),")")}const ee={match:e.concat(/\b/,K([...Kn,"super","import"]),i,e.lookahead(/\(/)),className:"title.function",relevance:0},q={begin:e.concat(/\./,e.lookahead(e.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},fe={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},E]},te="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+s.UNDERSCORE_IDENT_RE+")\\s*=>",Z={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(te)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[E]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:o,exports:{PARAMS_CONTAINS:x,CLASS_REFERENCE:R},illegal:/#(?![$_A-z])/,contains:[s.SHEBANG({label:"shebang",binary:"node",relevance:5}),P,s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,g,_,y,f,A,{match:/\$\d+/},u,R,{className:"attr",begin:i+e.lookahead(":"),relevance:0},Z,{begin:"("+s.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[A,s.REGEXP_MODE,{className:"function",begin:te,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:s.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:x}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:a.begin,end:a.end},{match:r},{begin:n.begin,"on:begin":n.isTrulyOpeningTag,end:n.end}],subLanguage:"xml",contains:[{begin:n.begin,end:n.end,skip:!0,contains:["self"]}]}]},O,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+s.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[E,s.inherit(s.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},q,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[E]},ee,T,$,fe,{match:/\$[(.]/}]}}function wd(s){const e=xd(s),t=vi,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],a={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[e.exports.CLASS_REFERENCE]},r={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[e.exports.CLASS_REFERENCE]},n={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},o=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],l={$pattern:vi,keyword:Hn.concat(o),literal:Un,built_in:Jn.concat(i),"variable.language":qn},c={className:"meta",begin:"@"+t},m=(h,g,_)=>{const y=h.contains.findIndex(f=>f.label===g);if(y===-1)throw new Error("can not find mode to replace");h.contains.splice(y,1,_)};Object.assign(e.keywords,l),e.exports.PARAMS_CONTAINS.push(c),e.contains=e.contains.concat([c,a,r]),m(e,"shebang",s.SHEBANG()),m(e,"use_strict",n);const u=e.contains.find(h=>h.label==="func.def");return u.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function _d(s){const e=s.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,a={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},r={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},n=s.inherit(r,{begin:/\(/,end:/\)/}),o=s.inherit(s.APOS_STRING_MODE,{className:"string"}),l=s.inherit(s.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:[a]},{begin:/'/,end:/'/,contains:[a]},{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:[r,l,o,n,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[r,n,l,o]}]}]},s.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},a,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(t,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:t,relevance:0,starts:c}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(t,/>/))),contains:[{className:"name",begin:t,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const Sd=s=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:s.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:[s.APOS_STRING_MODE,s.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:s.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_-]*/}}),Cd=["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"],Ed=["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"],Ad=["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"],kd=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],$d=["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 Od(s){const e=s.regex,t=Sd(s),i={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},a="and or not only",r=/@-?\w[\w]*(-\w+)*/,n="[a-zA-Z-][a-zA-Z0-9_-]*",o=[s.APOS_STRING_MODE,s.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:"\\."+n,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Ad.join("|")+")"},{begin:":(:)?("+kd.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+$d.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[t.BLOCK_COMMENT,t.HEXCOLOR,t.IMPORTANT,t.CSS_NUMBER_MODE,...o,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...o,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},t.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:r},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:a,attribute:Ed.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...o,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Cd.join("|")+")\\b"}]}}const Zn=document.createElement("style");Zn.innerText=[Cm,Em].join(`
1568
+ `);document.head.appendChild(Zn);ki.registerLanguage("typescript",wd);ki.registerLanguage("html",_d);ki.registerLanguage("css",Od);function Md(...s){const e=document.createElement("div"),t=document.createElement("div");t.classList.add("tab-control");const i=document.createElement("div");return s.forEach(a=>{e.appendChild(a),a.addEventListener("click",()=>{s.forEach(r=>r.removeAttribute("selected")),a.setAttribute("selected",""),i.innerHTML="",i.appendChild(a.content),i.className=a.className,i.classList.add("tab-content")})}),t.appendChild(e),t.appendChild(i),i.classList.add("tab-content"),s[0].setAttribute("selected",""),i.appendChild(s[0].content),t}function yt(s,e){const t=document.createElement("div");return t.role="tab",t.tabIndex=0,t.innerText=s,t.content=e,e.tagName=="PRE"&&t.classList.add("code"),t}function St(s,e){const t=document.createElement(s);return typeof e=="string"?t.innerHTML=e:e.forEach(i=>{t.appendChild(i)}),t}async function Id(s,e,t){var i,a,r;const n=e.mainContent,o=St("div",n);o.id=`example-preview-${t}`;const l=typeof e.css=="string"||(i=e.css)==null?void 0:i.label,c=typeof e.css=="string"?e.css:(a=e.css)==null?void 0:a.content,m=Md(yt("Preview",o),yt("HTML",ai("html",n)),...c?[yt(l??"CSS",ai("css",c))]:[],...e.initializer&&e.initializer.content?[yt(e.initializer.label??"TS",ai("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(h=>yt(h.label,ai(h.language,h.content))));e.description&&s.appendChild(St("div",e.description));const u=St("div",[m]);u.classList.add("example"),s.appendChild(u),c&&Rd(`#${o.id}`,c),(r=e.initializer)!=null&&r.initialize&&await e.initializer.initialize(o)}function ai(s,e){let t=e.split(/\r?\n/).map(i=>{const a=i.indexOf("///");if(a>-1){const r=i.substring(a+3).trimStart();return r?i.replace(/^(\s*)([^\s].*)$/,`$1${r}`):void 0}return i}).filter(i=>typeof i<"u").join(`
1569
+ `).trim();return s&&s!="raw"&&(t=ki.highlight(t,{language:s}).value),St("pre",[St("code",t)])}function Rd(s,e){const t=document.createElement("style");t.innerHTML=V().use(Sm({prefix:s})).process(e).css,document.head.appendChild(t)}async function Ld(s,e=document.body){const t=Dd(e);let i=0;Object.keys(s).forEach(async a=>{const r=document.createElement("div");r.className="example-container",t.appendChild(r);const n=s[a].default;Id(r,n,i++)})}function Pd(s){const e=document.createElement("div");e.id="examples-container";const t=s.querySelector("#examples");return t?t.after(e):s.appendChild(e),e}function Dd(s){return s.children?Pd(s):s}const Bd=`<h1 id="@cas-smartdesign/combo-box">@cas-smartdesign/combo-box</h1>
1550
1570
  <p>A combo-box element with the look and feel of the SmartDesign inputs &amp; list item layouts. It extends the <code>lit-input</code>, therefore the regular API of that element (such as configuring a label) should work here as well, except the <code>value</code>. As it is possible to select an item in the combo-box, the regular string based value may not be enough. Instead <code>comboBoxValue</code> property provides an extended information about the current selection.</p>
1551
1571
  <h2 id="attributes">Attributes</h2>
1552
1572
  <p><em>(in addition to lit-input)</em></p>
@@ -1641,7 +1661,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`),z=d,k=N),w===void 0&&(
1641
1661
  </ul>
1642
1662
  <h2 id="lazy-loading">Lazy loading</h2>
1643
1663
  <p>It is possible to fetch the suggestions from the server lazily. It means that if the combo-box is configured via the <code>configureLazyLoad</code>, then the included list in the dropdown will use the given <code>onDataRequest</code> callback. If the lazy mode is activated then inMemory filtering is disabled, but the mentioned data request is also called whenever the filter text changes. A <code>loading</code> attribute is added while a pending data request is present to be able to show a loading indicator for example. See the <code>doc.ts</code> for some comprehensive examples.</p>
1644
- `,Td=document.querySelector("#markdown-container");Td.innerHTML=Bd;Ld(Object.assign({"./examples/1_declarative/index.ts":ir,"./examples/2_basic-examples/index.ts":cr,"./examples/3_filtering/index.ts":fr,"./examples/4_lazy_loading/index.ts":wr,"./examples/5_unusual_data/index.ts":Ar,"./examples/6_validation_example/index.ts":Mr}),document.querySelector(".markdown-body"));export{hi as h};
1664
+ `,Td=document.querySelector("#markdown-container");Td.innerHTML=Bd;Ld(Object.assign({"./examples/1_declarative/index.ts":ir,"./examples/2_basic-examples/index.ts":cr,"./examples/3_filtering/index.ts":fr,"./examples/4_lazy_loading/index.ts":wr,"./examples/5_unusual_data/index.ts":Ar,"./examples/6_validation_example/index.ts":Ir}),document.querySelector(".markdown-body"));export{hi as h};
1645
1665
  function __vite__mapDeps(indexes) {
1646
1666
  if (!__vite__mapDeps.viteFileDeps) {
1647
1667
  __vite__mapDeps.viteFileDeps = []