@cas-smartdesign/combo-box 7.2.7 → 7.2.9
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/combo-box-with-externals.js +38 -35
- package/dist/combo-box-with-externals.js.map +3 -3
- package/dist/combo-box.mjs +10 -10
- package/dist/combo-box.mjs.map +1 -1
- package/dist/docs/doc.mjs +80 -77
- package/package.json +5 -5
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
|
|
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 Yn=`<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>
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
</form>
|
|
23
23
|
</div>
|
|
24
24
|
</div>
|
|
25
|
-
`,
|
|
25
|
+
`,Qn=`<h3 id="basic-examples">Basic examples</h3>
|
|
26
26
|
`,ut=`sd-combo-box {
|
|
27
27
|
width: 100%;
|
|
28
28
|
padding-top: 8px;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
grid-template-columns: repeat(2, 1fr);
|
|
36
36
|
column-gap: 16px;
|
|
37
37
|
}
|
|
38
|
-
`,
|
|
38
|
+
`,er={mainContent:Yn,description:Qn,css:ut},tr=Object.freeze(Object.defineProperty({__proto__:null,default:er},Symbol.toStringTag,{value:"Module"})),ir="modulepreload",sr=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=sr(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":ir,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})},ar=`<div class="grid-example-container" id="basic-examples-container">
|
|
39
39
|
<sd-combo-box id="basic-combobox" label="I am a combo box" item-height="40" placeholder="-- select an option --">
|
|
40
40
|
</sd-combo-box>
|
|
41
41
|
<sd-combo-box
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
<div style="margin-top: -20px">Latest selection: <span></span></div>
|
|
61
61
|
</div>
|
|
62
62
|
</div>
|
|
63
|
-
`,
|
|
64
|
-
`,
|
|
63
|
+
`,nr=`<h3 id="basic-examples">Basic examples</h3>
|
|
64
|
+
`,rr=`import "@cas-smartdesign/combo-box";
|
|
65
65
|
import ComboBox, { ComboBoxValue } from "@cas-smartdesign/combo-box";
|
|
66
66
|
import { ItemData } from "@cas-smartdesign/list-item";
|
|
67
67
|
|
|
@@ -103,14 +103,14 @@ container.querySelectorAll(".trigger-only-example-wrapper").forEach((wrapper) =>
|
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
105
|
});
|
|
106
|
-
`,
|
|
106
|
+
`,or={mainContent:ar,description:nr,css:ut,initializer:{content:rr,type:"typescript",initialize:()=>Bt(()=>import("./2_basic-examples.js"),__vite__mapDeps([]),import.meta.url)}},lr=Object.freeze(Object.defineProperty({__proto__:null,default:or},Symbol.toStringTag,{value:"Module"})),cr=`<div id="filtering-examples-container">
|
|
107
107
|
<sd-combo-box
|
|
108
108
|
id="custom-property-filtering"
|
|
109
109
|
label="Search in the index property"
|
|
110
110
|
filter-property="index"></sd-combo-box>
|
|
111
111
|
</div>
|
|
112
|
-
`,
|
|
113
|
-
`,
|
|
112
|
+
`,mr=`<h3 id="advanced-filtering">Advanced filtering</h3>
|
|
113
|
+
`,dr=`import { ItemData } from "@cas-smartdesign/list-item";
|
|
114
114
|
import ComboBox from "@cas-smartdesign/combo-box";
|
|
115
115
|
|
|
116
116
|
const alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");
|
|
@@ -130,7 +130,7 @@ const items: ItemData[] = alphabet.map((letter) => {
|
|
|
130
130
|
|
|
131
131
|
const combobox = document.querySelector("#custom-property-filtering") as ComboBox;
|
|
132
132
|
combobox.items = items;
|
|
133
|
-
`,
|
|
133
|
+
`,ur={mainContent:cr,description:mr,css:ut,initializer:{content:dr,type:"typescript",initialize:()=>Bt(()=>import("./3_filtering.js"),__vite__mapDeps([]),import.meta.url)}},hr=Object.freeze(Object.defineProperty({__proto__:null,default:ur},Symbol.toStringTag,{value:"Module"})),fr=`<div class="grid-example-container" id="lazy-loading-examples-container">
|
|
134
134
|
<sd-combo-box id="lazy-loading-example" label="Lazy loading with loading indicator"
|
|
135
135
|
><div class="loader" slot="suffix">
|
|
136
136
|
<div></div>
|
|
@@ -149,8 +149,8 @@ combobox.items = items;
|
|
|
149
149
|
<div style="margin-top: -20px">Latest selection: <span id="trigger-only-selection-message"></span></div>
|
|
150
150
|
</div>
|
|
151
151
|
</div>
|
|
152
|
-
`,
|
|
153
|
-
`,
|
|
152
|
+
`,pr=`<h3 id="lazy-loading-examples">Lazy loading examples</h3>
|
|
153
|
+
`,gr=`.grid {
|
|
154
154
|
display: grid;
|
|
155
155
|
grid-template-columns: repeat(2, 1fr);
|
|
156
156
|
column-gap: 16px;
|
|
@@ -196,7 +196,7 @@ combobox.items = items;
|
|
|
196
196
|
sd-combo-box[loading] .loader {
|
|
197
197
|
display: block !important;
|
|
198
198
|
}
|
|
199
|
-
`,
|
|
199
|
+
`,Nr=`import "@cas-smartdesign/combo-box";
|
|
200
200
|
import DataProvider from "./data-provider";
|
|
201
201
|
import ComboBox, { ComboBoxValue } from "@cas-smartdesign/combo-box";
|
|
202
202
|
|
|
@@ -218,7 +218,7 @@ triggerOnlyCombobox.addEventListener("selection-change", (event) => {
|
|
|
218
218
|
triggerOnlySelectionMessage.textContent = selectionAsValue.item.caption;
|
|
219
219
|
}
|
|
220
220
|
});
|
|
221
|
-
`,
|
|
221
|
+
`,br=`import { ItemData } from "@cas-smartdesign/list-item";
|
|
222
222
|
import ComboBox, { DataResponse } from "@cas-smartdesign/combo-box";
|
|
223
223
|
import data from "./data";
|
|
224
224
|
|
|
@@ -301,7 +301,7 @@ export default class DataProvider {
|
|
|
301
301
|
return item;
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
|
-
`,
|
|
304
|
+
`,vr=`export default [
|
|
305
305
|
{ firstName: "Linoel", lastName: "Bukac" },
|
|
306
306
|
{ firstName: "Lucho", lastName: "Giacopello" },
|
|
307
307
|
{ firstName: "Rik", lastName: "Lapham" },
|
|
@@ -1303,7 +1303,7 @@ export default class DataProvider {
|
|
|
1303
1303
|
{ firstName: "Therese", lastName: "Janota" },
|
|
1304
1304
|
{ firstName: "Aaren", lastName: "Phair" },
|
|
1305
1305
|
];
|
|
1306
|
-
`,
|
|
1306
|
+
`,yr={mainContent:fr,description:pr,initializer:{content:Nr,type:"typescript",initialize:()=>Bt(()=>import("./4_lazy_loading.js"),__vite__mapDeps([]),import.meta.url)},css:ut+gr,additionalSources:[{content:br,language:"typescript",label:"DataProvider",type:"source"},{content:vr,language:"typescript",label:"Example data",type:"source"}]},xr=Object.freeze(Object.defineProperty({__proto__:null,default:yr},Symbol.toStringTag,{value:"Module"})),wr=`<div class="grid-example-container" id="unusual-data-examples">
|
|
1307
1307
|
<sd-combo-box
|
|
1308
1308
|
id="long-prefixes-example"
|
|
1309
1309
|
label="Long prefixes"
|
|
@@ -1319,8 +1319,8 @@ export default class DataProvider {
|
|
|
1319
1319
|
style="grid-column: span 2"></sd-combo-box>
|
|
1320
1320
|
<sd-combo-box id="duplicate-example" label="Duplicates, initial selected via property"></sd-combo-box>
|
|
1321
1321
|
</div>
|
|
1322
|
-
`,
|
|
1323
|
-
`,
|
|
1322
|
+
`,_r=`<h3 id="handle-unusual-data">Handle unusual data</h3>
|
|
1323
|
+
`,Sr=`import "@cas-smartdesign/combo-box";
|
|
1324
1324
|
import ComboBox from "@cas-smartdesign/combo-box";
|
|
1325
1325
|
import { ItemData } from "@cas-smartdesign/list-item";
|
|
1326
1326
|
|
|
@@ -1347,7 +1347,7 @@ duplicateExample.comboBoxValue = { index: 88, item: itemsWithDuplicate[88] };
|
|
|
1347
1347
|
(document.querySelector("#long-prefixes-example") as ComboBox).items = items;
|
|
1348
1348
|
(document.querySelector("#long-prefixes-large-example") as ComboBox).items = items;
|
|
1349
1349
|
(document.querySelector("#long-prefixes-line-clamp-example") as ComboBox).items = itemWithoutDescription;
|
|
1350
|
-
`,
|
|
1350
|
+
`,Cr={mainContent:wr,description:_r,css:ut,initializer:{content:Sr,type:"typescript",initialize:()=>Bt(()=>import("./5_unusual_data.js"),__vite__mapDeps([]),import.meta.url)}},Er=Object.freeze(Object.defineProperty({__proto__:null,default:Cr},Symbol.toStringTag,{value:"Module"})),Ar=`<div class="grid-example-container" id="validation-examples-container">
|
|
1351
1351
|
<sd-combo-box
|
|
1352
1352
|
label="This is a mandatory combo box"
|
|
1353
1353
|
item-height="40"
|
|
@@ -1359,8 +1359,8 @@ duplicateExample.comboBoxValue = { index: 88, item: itemsWithDuplicate[88] };
|
|
|
1359
1359
|
allow-custom-value></sd-combo-box>
|
|
1360
1360
|
<sd-combo-box null-setting-disallowed label="Null setting not allowed and mandatory"></sd-combo-box>
|
|
1361
1361
|
</div>
|
|
1362
|
-
`,
|
|
1363
|
-
`,$
|
|
1362
|
+
`,kr=`<h3 id="validation-examples">Validation examples</h3>
|
|
1363
|
+
`,$r=`import "@cas-smartdesign/combo-box";
|
|
1364
1364
|
import ComboBox from "@cas-smartdesign/combo-box";
|
|
1365
1365
|
import { ValidationLevel } from "@cas-smartdesign/field-validation-message";
|
|
1366
1366
|
import { ItemData } from "@cas-smartdesign/list-item";
|
|
@@ -1390,19 +1390,19 @@ function updateMandatory(combobox: ComboBox) {
|
|
|
1390
1390
|
combobox.validationLevel = ValidationLevel.Error;
|
|
1391
1391
|
}
|
|
1392
1392
|
}
|
|
1393
|
-
`,
|
|
1394
|
-
\f\r]`,gt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
1395
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Vs=/'/g,Us=/"/g,La=/^(?:script|style|textarea|title)$/i,Pn=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),ae=Pn(1),Ue=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),Gs=new WeakMap,je=Ve.createTreeWalker(Ve,129,null,!1);function Da(i,e){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return js!==void 0?js.createHTML(e):e}const Tn=(i,e)=>{const t=i.length-1,s=[];let a,n=e===2?"<svg>":"",r=gt;for(let o=0;o<t;o++){const l=i[o];let c,m,u=-1,f=0;for(;f<l.length&&(r.lastIndex=f,m=r.exec(l),m!==null);)f=r.lastIndex,r===gt?m[1]==="!--"?r=Hs:m[1]!==void 0?r=Fs:m[2]!==void 0?(La.test(m[2])&&(a=RegExp("</"+m[2],"g")),r=Be):m[3]!==void 0&&(r=Be):r===Be?m[0]===">"?(r=a??gt,u=-1):m[1]===void 0?u=-2:(u=r.lastIndex-m[2].length,c=m[1],r=m[3]===void 0?Be:m[3]==='"'?Us:Vs):r===Us||r===Vs?r=Be:r===Hs||r===Fs?r=gt:(r=Be,a=void 0);const g=r===Be&&i[o+1].startsWith("/>")?" ":"";n+=r===gt?l+Ln: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[Da(i,n+(i[t]||"<?>")+(e===2?"</svg>":"")),s]};class At{constructor({strings:e,_$litType$:t},s){let a;this.parts=[];let n=0,r=0;const o=e.length-1,l=this.parts,[c,m]=Tn(e,t);if(this.el=At.createElement(c,s),je.currentNode=this.el.content,t===2){const u=this.el.content,f=u.firstChild;f.remove(),u.append(...f.childNodes)}for(;(a=je.nextNode())!==null&&l.length<o;){if(a.nodeType===1){if(a.hasAttributes()){const u=[];for(const f of a.getAttributeNames())if(f.endsWith(Gi)||f.startsWith(Me)){const g=m[r++];if(u.push(f),g!==void 0){const _=a.getAttribute(g.toLowerCase()+Gi).split(Me),y=/([.?@])?(.*)/.exec(g);l.push({type:1,index:n,name:y[2],strings:_,ctor:y[1]==="."?zn:y[1]==="?"?Hn:y[1]==="@"?Fn:yi})}else l.push({type:6,index:n})}for(const f of u)a.removeAttribute(f)}if(La.test(a.tagName)){const u=a.textContent.split(Me),f=u.length-1;if(f>0){a.textContent=it?it.emptyScript:"";for(let g=0;g<f;g++)a.append(u[g],Ct()),je.nextNode(),l.push({type:2,index:++n});a.append(u[f],Ct())}}}else if(a.nodeType===8)if(a.data===Ia)l.push({type:2,index:n});else{let u=-1;for(;(u=a.data.indexOf(Me,u+1))!==-1;)l.push({type:7,index:n}),u+=Me.length-1}n++}}static createElement(e,t){const s=Ve.createElement("template");return s.innerHTML=e,s}}function st(i,e,t=i,s){var a,n,r,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&&((n=l==null?void 0:l._$AO)===null||n===void 0||n.call(l,!1),c===void 0?l=void 0:(l=new c(i),l._$AT(i,t,s)),s!==void 0?((r=(o=t)._$Co)!==null&&r!==void 0?r:o._$Co=[])[s]=l:t._$Cl=l),l!==void 0&&(e=st(i,l._$AS(i,e.values),l,s)),e}class Bn{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,n=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:Ve).importNode(s,!0);je.currentNode=n;let r=je.nextNode(),o=0,l=0,c=a[0];for(;c!==void 0;){if(o===c.index){let m;c.type===2?m=new jt(r,r.nextSibling,this,e):c.type===1?m=new c.ctor(r,c.name,c.strings,this,e):c.type===6&&(m=new Vn(r,this,e)),this._$AV.push(m),c=a[++l]}o!==(c==null?void 0:c.index)&&(r=je.nextNode(),o++)}return je.currentNode=Ve,n}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 jt{constructor(e,t,s,a){var n;this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=s,this.options=a,this._$Cp=(n=a==null?void 0:a.isConnected)===null||n===void 0||n}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):Dn(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.$(Ve.createTextNode(e)),this._$AH=e}g(e){var t;const{values:s,_$litType$:a}=e,n=typeof a=="number"?this._$AC(e):(a.el===void 0&&(a.el=At.createElement(Da(a.h,a.h[0]),this.options)),a);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===n)this._$AH.v(s);else{const r=new Bn(n,this),o=r.u(this.options);r.v(s),this.$(o),this._$AH=r}}_$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 n of e)a===t.length?t.push(s=new jt(this.k(Ct()),this.k(Ct()),this,this.options)):s=t[a],s._$AI(n),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,n){this.type=1,this._$AH=F,this._$AN=void 0,this.element=e,this.name=t,this._$AM=a,this.options=n,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 n=this.strings;let r=!1;if(n===void 0)e=st(this,e,t,0),r=!Et(e)||e!==this._$AH&&e!==Ue,r&&(this._$AH=e);else{const o=e;let l,c;for(e=n[0],l=0;l<n.length-1;l++)c=st(this,o[s+l],t,l),c===Ue&&(c=this._$AH[l]),r||(r=!Et(c)||c!==this._$AH[l]),c===F?e=F:e!==F&&(e+=(c??"")+n[l+1]),this._$AH[l]=c}r&&!a&&this.j(e)}j(e){e===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}};class zn extends yi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===F?void 0:e}}const jn=it?it.emptyScript:"";let Hn=class extends yi{constructor(){super(...arguments),this.type=4}j(e){e&&e!==F?this.element.setAttribute(this.name,jn):this.element.removeAttribute(this.name)}},Fn=class extends yi{constructor(e,t,s,a,n){super(e,t,s,a,n),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,n=e===F&&a!==F||e.capture!==a.capture||e.once!==a.once||e.passive!==a.passive,r=e!==F&&(a===F||n);n&&this.element.removeEventListener(this.name,this,a),r&&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 Vn{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=ui.litHtmlPolyfillSupport;Ws==null||Ws(At,jt),((Ri=ui.litHtmlVersions)!==null&&Ri!==void 0?Ri:ui.litHtmlVersions=[]).push("2.8.0");const Un=(i,e,t)=>{var s,a;const n=(s=t==null?void 0:t.renderBefore)!==null&&s!==void 0?s:e;let r=n._$litPart$;if(r===void 0){const o=(a=t==null?void 0:t.renderBefore)!==null&&a!==void 0?a:null;n._$litPart$=r=new jt(e.insertBefore(Ct(),o),o,void 0,t??{})}return r._$AI(i),r};var Di,Pi;let Ce=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=Un(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}};Ce.finalized=!0,Ce._$litElement$=!0,(Di=globalThis.litElementHydrateSupport)===null||Di===void 0||Di.call(globalThis,{LitElement:Ce});const Ks=globalThis.litElementPolyfillSupport;Ks==null||Ks({LitElement:Ce});((Pi=globalThis.litElementVersions)!==null&&Pi!==void 0?Pi:globalThis.litElementVersions=[]).push("3.3.3");const Gn=(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)}},Wn=(i,e,t)=>{e.constructor.createProperty(t,i)};function v(i){return(e,t)=>t!==void 0?Wn(i,e,t):Gn(i,e)}var re="top",ue="bottom",fe="right",ne="left",fs="auto",Ht=[re,ue,fe,ne],at="start",kt="end",Kn="clippingParents",Pa="viewport",Nt="popper",qn="reference",qs=Ht.reduce(function(i,e){return i.concat([e+"-"+at,e+"-"+kt])},[]),Ta=[].concat(Ht,[fs]).reduce(function(i,e){return i.concat([e,e+"-"+at,e+"-"+kt])},[]),Jn="beforeRead",Zn="read",Xn="afterRead",Yn="beforeMain",Qn="main",eo="afterMain",to="beforeWrite",io="write",so="afterWrite",ao=[Jn,Zn,Xn,Yn,Qn,eo,to,io,so];function _e(i){return i?(i.nodeName||"").toLowerCase():null}function ce(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=ce(i).Element;return i instanceof e||i instanceof Element}function de(i){var e=ce(i).HTMLElement;return i instanceof e||i instanceof HTMLElement}function hs(i){if(typeof ShadowRoot>"u")return!1;var e=ce(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]||{},n=e.elements[t];!de(n)||!_e(n)||(Object.assign(n.style,s),Object.keys(a).forEach(function(r){var o=a[r];o===!1?n.removeAttribute(r):n.setAttribute(r,o===!0?"":o)}))})}function no(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],n=e.attributes[s]||{},r=Object.keys(e.styles.hasOwnProperty(s)?e.styles[s]:t[s]),o=r.reduce(function(l,c){return l[c]="",l},{});!de(a)||!_e(a)||(Object.assign(a.style,o),Object.keys(n).forEach(function(l){a.removeAttribute(l)}))})}}const oo={name:"applyStyles",enabled:!0,phase:"write",fn:ro,effect:no,requires:["computeStyles"]};function we(i){return i.split("-")[0]}var He=Math.max,fi=Math.min,rt=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 Ba(){return!/^((?!chrome|android).)*safari/i.test(Wi())}function nt(i,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var s=i.getBoundingClientRect(),a=1,n=1;e&&de(i)&&(a=i.offsetWidth>0&&rt(s.width)/i.offsetWidth||1,n=i.offsetHeight>0&&rt(s.height)/i.offsetHeight||1);var r=Ge(i)?ce(i):window,o=r.visualViewport,l=!Ba()&&t,c=(s.left+(l&&o?o.offsetLeft:0))/a,m=(s.top+(l&&o?o.offsetTop:0))/n,u=s.width/a,f=s.height/n;return{width:u,height:f,top:m,right:c+u,bottom:m+f,left:c,x:c,y:m}}function ps(i){var e=nt(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&&hs(t)){var s=e;do{if(s&&i.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function Ee(i){return ce(i).getComputedStyle(i)}function lo(i){return["table","td","th"].indexOf(_e(i))>=0}function Re(i){return((Ge(i)?i.ownerDocument:i.document)||window.document).documentElement}function xi(i){return _e(i)==="html"?i:i.assignedSlot||i.parentNode||(hs(i)?i.host:null)||Re(i)}function Js(i){return!de(i)||Ee(i).position==="fixed"?null:i.offsetParent}function co(i){var e=/firefox/i.test(Wi()),t=/Trident/i.test(Wi());if(t&&de(i)){var s=Ee(i);if(s.position==="fixed")return null}var a=xi(i);for(hs(a)&&(a=a.host);de(a)&&["html","body"].indexOf(_e(a))<0;){var n=Ee(a);if(n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].indexOf(n.willChange)!==-1||e&&n.willChange==="filter"||e&&n.filter&&n.filter!=="none")return a;a=a.parentNode}return null}function Ft(i){for(var e=ce(i),t=Js(i);t&&lo(t)&&Ee(t).position==="static";)t=Js(t);return t&&(_e(t)==="html"||_e(t)==="body"&&Ee(t).position==="static")?e:t||co(i)||e}function gs(i){return["top","bottom"].indexOf(i)>=0?"x":"y"}function wt(i,e,t){return He(i,fi(e,t))}function mo(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 Ha(i){return Object.assign({},ja(),i)}function Fa(i,e){return e.reduce(function(t,s){return t[s]=i,t},{})}var uo=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Ha(typeof e!="number"?e:Fa(e,Ht))};function fo(i){var e,t=i.state,s=i.name,a=i.options,n=t.elements.arrow,r=t.modifiersData.popperOffsets,o=we(t.placement),l=gs(o),c=[ne,fe].indexOf(o)>=0,m=c?"height":"width";if(!(!n||!r)){var u=uo(a.padding,t),f=ps(n),g=l==="y"?re:ne,_=l==="y"?ue:fe,y=t.rects.reference[m]+t.rects.reference[l]-r[l]-t.rects.popper[m],h=r[l]-t.rects.reference[l],A=Ft(n),M=A?l==="y"?A.clientHeight||0:A.clientWidth||0:0,I=y/2-h/2,x=u[g],E=M-f[m]-u[_],$=M/2-f[m]/2+I,R=wt(x,$,E),D=l;t.modifiersData[s]=(e={},e[D]=R,e.centerOffset=R-$,e)}}function ho(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 po={name:"arrow",enabled:!0,phase:"main",fn:fo,effect:ho,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ot(i){return i.split("-")[1]}var go={top:"auto",right:"auto",bottom:"auto",left:"auto"};function No(i,e){var t=i.x,s=i.y,a=e.devicePixelRatio||1;return{x:rt(t*a)/a||0,y:rt(s*a)/a||0}}function Zs(i){var e,t=i.popper,s=i.popperRect,a=i.placement,n=i.variation,r=i.offsets,o=i.position,l=i.gpuAcceleration,c=i.adaptive,m=i.roundOffsets,u=i.isFixed,f=r.x,g=f===void 0?0:f,_=r.y,y=_===void 0?0:_,h=typeof m=="function"?m({x:g,y}):{x:g,y};g=h.x,y=h.y;var A=r.hasOwnProperty("x"),M=r.hasOwnProperty("y"),I=ne,x=re,E=window;if(c){var $=Ft(t),R="clientHeight",D="clientWidth";if($===ce(t)&&($=Re(t),Ee($).position!=="static"&&o==="absolute"&&(R="scrollHeight",D="scrollWidth")),$=$,a===re||(a===ne||a===fe)&&n===kt){x=ue;var O=u&&$===E&&E.visualViewport?E.visualViewport.height:$[R];y-=O-s.height,y*=l?1:-1}if(a===ne||(a===re||a===ue)&&n===kt){I=fe;var B=u&&$===E&&E.visualViewport?E.visualViewport.width:$[D];g-=B-s.width,g*=l?1:-1}}var G=Object.assign({position:o},c&&go),ee=m===!0?No({x:g,y},ce(t)):{x:g,y};if(g=ee.x,y=ee.y,l){var K;return Object.assign({},G,(K={},K[x]=M?"0":"",K[I]=A?"0":"",K.transform=(E.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",K))}return Object.assign({},G,(e={},e[x]=M?y+"px":"",e[I]=A?g+"px":"",e.transform="",e))}function bo(i){var e=i.state,t=i.options,s=t.gpuAcceleration,a=s===void 0?!0:s,n=t.adaptive,r=n===void 0?!0:n,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:r,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 vo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:bo,data:{}};var qt={passive:!0};function yo(i){var e=i.state,t=i.instance,s=i.options,a=s.scroll,n=a===void 0?!0:a,r=s.resize,o=r===void 0?!0:r,l=ce(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return n&&c.forEach(function(m){m.addEventListener("scroll",t.update,qt)}),o&&l.addEventListener("resize",t.update,qt),function(){n&&c.forEach(function(m){m.removeEventListener("scroll",t.update,qt)}),o&&l.removeEventListener("resize",t.update,qt)}}const xo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:yo,data:{}};var wo={left:"right",right:"left",bottom:"top",top:"bottom"};function oi(i){return i.replace(/left|right|bottom|top/g,function(e){return wo[e]})}var _o={start:"end",end:"start"};function Xs(i){return i.replace(/start|end/g,function(e){return _o[e]})}function Ns(i){var e=ce(i),t=e.pageXOffset,s=e.pageYOffset;return{scrollLeft:t,scrollTop:s}}function bs(i){return nt(Re(i)).left+Ns(i).scrollLeft}function So(i,e){var t=ce(i),s=Re(i),a=t.visualViewport,n=s.clientWidth,r=s.clientHeight,o=0,l=0;if(a){n=a.width,r=a.height;var c=Ba();(c||!c&&e==="fixed")&&(o=a.offsetLeft,l=a.offsetTop)}return{width:n,height:r,x:o+bs(i),y:l}}function Co(i){var e,t=Re(i),s=Ns(i),a=(e=i.ownerDocument)==null?void 0:e.body,n=He(t.scrollWidth,t.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),r=He(t.scrollHeight,t.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),o=-s.scrollLeft+bs(i),l=-s.scrollTop;return Ee(a||t).direction==="rtl"&&(o+=He(t.clientWidth,a?a.clientWidth:0)-n),{width:n,height:r,x:o,y:l}}function vs(i){var e=Ee(i),t=e.overflow,s=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+a+s)}function Va(i){return["html","body","#document"].indexOf(_e(i))>=0?i.ownerDocument.body:de(i)&&vs(i)?i:Va(xi(i))}function _t(i,e){var t;e===void 0&&(e=[]);var s=Va(i),a=s===((t=i.ownerDocument)==null?void 0:t.body),n=ce(s),r=a?[n].concat(n.visualViewport||[],vs(s)?s:[]):s,o=e.concat(r);return a?o:o.concat(_t(xi(r)))}function Ki(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function Eo(i,e){var t=nt(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===Pa?Ki(So(i,t)):Ge(e)?Eo(e,t):Ki(Co(Re(i)))}function Ao(i){var e=_t(xi(i)),t=["absolute","fixed"].indexOf(Ee(i).position)>=0,s=t&&de(i)?Ft(i):i;return Ge(s)?e.filter(function(a){return Ge(a)&&za(a,s)&&_e(a)!=="body"}):[]}function ko(i,e,t,s){var a=e==="clippingParents"?Ao(i):[].concat(e),n=[].concat(a,[t]),r=n[0],o=n.reduce(function(l,c){var m=Ys(i,c,s);return l.top=He(m.top,l.top),l.right=fi(m.right,l.right),l.bottom=fi(m.bottom,l.bottom),l.left=He(m.left,l.left),l},Ys(i,r,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,n=s?ot(s):null,r=e.x+e.width/2-t.width/2,o=e.y+e.height/2-t.height/2,l;switch(a){case re:l={x:r,y:e.y-t.height};break;case ue:l={x:r,y:e.y+e.height};break;case fe:l={x:e.x+e.width,y:o};break;case ne: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(n){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,n=t.strategy,r=n===void 0?i.strategy:n,o=t.boundary,l=o===void 0?Kn:o,c=t.rootBoundary,m=c===void 0?Pa:c,u=t.elementContext,f=u===void 0?Nt:u,g=t.altBoundary,_=g===void 0?!1:g,y=t.padding,h=y===void 0?0:y,A=Ha(typeof h!="number"?h:Fa(h,Ht)),M=f===Nt?qn:Nt,I=i.rects.popper,x=i.elements[_?M:f],E=ko(Ge(x)?x:x.contextElement||Re(i.elements.popper),l,m,r),$=nt(i.elements.reference),R=Ua({reference:$,element:I,strategy:"absolute",placement:a}),D=Ki(Object.assign({},I,R)),O=f===Nt?D:$,B={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},G=i.modifiersData.offset;if(f===Nt&&G){var ee=G[a];Object.keys(B).forEach(function(K){var he=[fe,ue].indexOf(K)>=0?1:-1,te=[re,ue].indexOf(K)>=0?"y":"x";B[K]+=ee[te]*he})}return B}function $o(i,e){e===void 0&&(e={});var t=e,s=t.placement,a=t.boundary,n=t.rootBoundary,r=t.padding,o=t.flipVariations,l=t.allowedAutoPlacements,c=l===void 0?Ta:l,m=ot(s),u=m?o?qs:qs.filter(function(_){return ot(_)===m}):Ht,f=u.filter(function(_){return c.indexOf(_)>=0});f.length===0&&(f=u);var g=f.reduce(function(_,y){return _[y]=$t(i,{placement:y,boundary:a,rootBoundary:n,padding:r})[we(y)],_},{});return Object.keys(g).sort(function(_,y){return g[_]-g[y]})}function Oo(i){if(we(i)===fs)return[];var e=oi(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,n=a===void 0?!0:a,r=t.altAxis,o=r===void 0?!0:r,l=t.fallbackPlacements,c=t.padding,m=t.boundary,u=t.rootBoundary,f=t.altBoundary,g=t.flipVariations,_=g===void 0?!0:g,y=t.allowedAutoPlacements,h=e.options.placement,A=we(h),M=A===h,I=l||(M||!_?[oi(h)]:Oo(h)),x=[h].concat(I).reduce(function(pe,V){return pe.concat(we(V)===fs?$o(e,{placement:V,boundary:m,rootBoundary:u,padding:c,flipVariations:_,allowedAutoPlacements:y}):V)},[]),E=e.rects.reference,$=e.rects.popper,R=new Map,D=!0,O=x[0],B=0;B<x.length;B++){var G=x[B],ee=we(G),K=ot(G)===at,he=[re,ue].indexOf(ee)>=0,te=he?"width":"height",Z=$t(e,{placement:G,boundary:m,rootBoundary:u,altBoundary:f,padding:c}),d=he?K?fe:ne:K?ue:re;E[te]>$[te]&&(d=oi(d));var N=oi(d),w=[];if(n&&w.push(Z[ee]<=0),o&&w.push(Z[d]<=0,Z[N]<=0),w.every(function(pe){return pe})){O=G,D=!1;break}R.set(G,w)}if(D)for(var k=_?3:1,z=function(V){var X=x.find(function(Pe){var be=R.get(Pe);if(be)return be.slice(0,V).every(function(qe){return qe})});if(X)return O=X,"break"},q=k;q>0;q--){var oe=z(q);if(oe==="break")break}e.placement!==O&&(e.modifiersData[s]._skip=!0,e.placement=O,e.reset=!0)}}const Io={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,fe,ue,ne].some(function(e){return i[e]>=0})}function Ro(i){var e=i.state,t=i.name,s=e.rects.reference,a=e.rects.popper,n=e.modifiersData.preventOverflow,r=$t(e,{elementContext:"reference"}),o=$t(e,{altBoundary:!0}),l=Qs(r,s),c=Qs(o,a,n),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 Lo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ro};function Do(i,e,t){var s=we(i),a=[ne,re].indexOf(s)>=0?-1:1,n=typeof t=="function"?t(Object.assign({},e,{placement:i})):t,r=n[0],o=n[1];return r=r||0,o=(o||0)*a,[ne,fe].indexOf(s)>=0?{x:o,y:r}:{x:r,y:o}}function Po(i){var e=i.state,t=i.options,s=i.name,a=t.offset,n=a===void 0?[0,0]:a,r=Ta.reduce(function(m,u){return m[u]=Do(u,e.rects,n),m},{}),o=r[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]=r}const To={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Po};function Bo(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 zo={name:"popperOffsets",enabled:!0,phase:"read",fn:Bo,data:{}};function jo(i){return i==="x"?"y":"x"}function Ho(i){var e=i.state,t=i.options,s=i.name,a=t.mainAxis,n=a===void 0?!0:a,r=t.altAxis,o=r===void 0?!1:r,l=t.boundary,c=t.rootBoundary,m=t.altBoundary,u=t.padding,f=t.tether,g=f===void 0?!0:f,_=t.tetherOffset,y=_===void 0?0:_,h=$t(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:m}),A=we(e.placement),M=ot(e.placement),I=!M,x=gs(A),E=jo(x),$=e.modifiersData.popperOffsets,R=e.rects.reference,D=e.rects.popper,O=typeof y=="function"?y(Object.assign({},e.rects,{placement:e.placement})):y,B=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),G=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,ee={x:0,y:0};if($){if(n){var K,he=x==="y"?re:ne,te=x==="y"?ue:fe,Z=x==="y"?"height":"width",d=$[x],N=d+h[he],w=d-h[te],k=g?-D[Z]/2:0,z=M===at?R[Z]:D[Z],q=M===at?-D[Z]:-R[Z],oe=e.elements.arrow,pe=g&&oe?ps(oe):{width:0,height:0},V=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:ja(),X=V[he],Pe=V[te],be=wt(0,R[Z],pe[Z]),qe=I?R[Z]/2-k-be-X-B.mainAxis:z-be-X-B.mainAxis,$i=I?-R[Z]/2+k+be+Pe+B.mainAxis:q+be+Pe+B.mainAxis,ht=e.elements.arrow&&Ft(e.elements.arrow),Oi=ht?x==="y"?ht.clientTop||0:ht.clientLeft||0:0,Gt=(K=G==null?void 0:G[x])!=null?K:0,Je=d+qe-Gt-Oi,Wt=d+$i-Gt,le=wt(g?fi(N,Je):N,d,g?He(w,Wt):w);$[x]=le,ee[x]=le-d}if(o){var Kt,pt=x==="x"?re:ne,S=x==="x"?ue:fe,ve=$[E],U=E==="y"?"height":"width",P=ve+h[pt],Te=ve-h[S],ge=[re,ne].indexOf(A)!==-1,Ze=(Kt=G==null?void 0:G[E])!=null?Kt:0,Xe=ge?P:ve-R[U]-D[U]-Ze+B.altAxis,p=ge?ve+R[U]+D[U]-Ze-B.altAxis:Te,b=g&&ge?mo(Xe,ve,p):wt(g?Xe:P,ve,g?p:Te);$[E]=b,ee[E]=b-ve}e.modifiersData[s]=ee}}const Fo={name:"preventOverflow",enabled:!0,phase:"main",fn:Ho,requiresIfExists:["offset"]};function Vo(i){return{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}}function Uo(i){return i===ce(i)||!de(i)?Ns(i):Vo(i)}function Go(i){var e=i.getBoundingClientRect(),t=rt(e.width)/i.offsetWidth||1,s=rt(e.height)/i.offsetHeight||1;return t!==1||s!==1}function Wo(i,e,t){t===void 0&&(t=!1);var s=de(e),a=de(e)&&Go(e),n=Re(e),r=nt(i,a,t),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(s||!s&&!t)&&((_e(e)!=="body"||vs(n))&&(o=Uo(e)),de(e)?(l=nt(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):n&&(l.x=bs(n))),{x:r.left+o.scrollLeft-l.x,y:r.top+o.scrollTop-l.y,width:r.width,height:r.height}}function Ko(i){var e=new Map,t=new Set,s=[];i.forEach(function(n){e.set(n.name,n)});function a(n){t.add(n.name);var r=[].concat(n.requires||[],n.requiresIfExists||[]);r.forEach(function(o){if(!t.has(o)){var l=e.get(o);l&&a(l)}}),s.push(n)}return i.forEach(function(n){t.has(n.name)||a(n)}),s}function qo(i){var e=Ko(i);return ao.reduce(function(t,s){return t.concat(e.filter(function(a){return a.phase===s}))},[])}function Jo(i){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(i())})})),e}}function Zo(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 Xo(i){i===void 0&&(i={});var e=i,t=e.defaultModifiers,s=t===void 0?[]:t,a=e.defaultOptions,n=a===void 0?ta:a;return function(o,l,c){c===void 0&&(c=n);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},ta,n),modifiersData:{},elements:{reference:o,popper:l},attributes:{},styles:{}},u=[],f=!1,g={state:m,setOptions:function(A){var M=typeof A=="function"?A(m.options):A;y(),m.options=Object.assign({},n,m.options,M),m.scrollParents={reference:Ge(o)?_t(o):o.contextElement?_t(o.contextElement):[],popper:_t(l)};var I=qo(Zo([].concat(s,m.options.modifiers)));return m.orderedModifiers=I.filter(function(x){return x.enabled}),_(),g.update()},forceUpdate:function(){if(!f){var A=m.elements,M=A.reference,I=A.popper;if(ia(M,I)){m.rects={reference:Wo(M,Ft(I),m.options.strategy==="fixed"),popper:ps(I)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach(function(B){return m.modifiersData[B.name]=Object.assign({},B.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,D=R===void 0?{}:R,O=E.name;typeof $=="function"&&(m=$({state:m,options:D,name:O,instance:g})||m)}}}},update:Jo(function(){return new Promise(function(h){g.forceUpdate(),h(m)})}),destroy:function(){y(),f=!0}};if(!ia(o,l))return g;g.setOptions(c).then(function(h){!f&&c.onFirstUpdate&&c.onFirstUpdate(h)});function _(){m.orderedModifiers.forEach(function(h){var A=h.name,M=h.options,I=M===void 0?{}:M,x=h.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(h){return h()}),u=[]}return g}}var Yo=[xo,zo,vo,oo,To,Io,Fo,po,Lo],Qo=Xo({defaultModifiers:Yo});const me=i=>i??F,el=":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}",tl="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",il="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",sl="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 al=Object.defineProperty,rl=Object.getOwnPropertyDescriptor,ys=(i,e,t,s)=>{for(var a=s>1?void 0:s?rl(e,t):e,n=i.length-1,r;n>=0;n--)(r=i[n])&&(a=(s?r(e,t,a):r(a))||a);return s&&a&&al(e,t,a),a},Ye;const Ot=(Ye=class extends Ce{static parseLevel(i){if(i){const e=Object.keys(Mt).find(t=>t.toLowerCase()===i.toLowerCase());return e&&Mt[e]}}static get styles(){return[zt`
|
|
1396
|
-
${
|
|
1397
|
-
`]}render(){return
|
|
1398
|
-
${
|
|
1399
|
-
`]}render(){let i;return this.rows===1?
|
|
1393
|
+
`,Or={mainContent:Ar,description:kr,css:ut,initializer:{content:$r,type:"typescript",initialize:()=>Bt(()=>import("./6_validation_example.js"),__vite__mapDeps([]),import.meta.url)}},Mr=Object.freeze(Object.defineProperty({__proto__:null,default:Or},Symbol.toStringTag,{value:"Module"}));const ri=window,ds=ri.ShadowRoot&&(ri.ShadyCSS===void 0||ri.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),zt=(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)},Ir=(i,e)=>{ds?i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{const s=document.createElement("style"),a=ri.litNonce;a!==void 0&&s.setAttribute("nonce",a),s.textContent=t.cssText,i.appendChild(s)})},Ts=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 Mi;const di=window,Bs=di.trustedTypes,Rr=Bs?Bs.emptyScript:"",zs=di.reactiveElementPolyfillSupport,Vi={toAttribute(i,e){switch(e){case Boolean:i=i?Rr: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}},Ma=(i,e)=>e!==i&&(e==e||i==i),Ii={attribute:!0,type:String,converter:Vi,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,s)=>{const a=this._$Ep(s,t);a!==void 0&&(this._$Ev.set(a,s),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 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)||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,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(Ts(a))}else e!==void 0&&t.push(Ts(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 Ir(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=Ii){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:Vi).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:Vi;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||Ma)(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}),((Mi=di.reactiveElementVersions)!==null&&Mi!==void 0?Mi:di.reactiveElementVersions=[]).push("1.6.3");var Ri;const ui=window,it=ui.trustedTypes,js=it?it.createPolicy("lit-html",{createHTML:i=>i}):void 0,Gi="$lit$",Me=`lit$${(Math.random()+"").slice(9)}$`,Ia="?"+Me,Lr=`<${Ia}>`,Ve=document,Ct=()=>Ve.createComment(""),Et=i=>i===null||typeof i!="object"&&typeof i!="function",Ra=Array.isArray,Pr=i=>Ra(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Li=`[
|
|
1394
|
+
\f\r]`,gt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Fs=/-->/g,Hs=/>/g,Be=RegExp(`>|${Li}(?:([^\\s"'>=/]+)(${Li}*=${Li}*(?:[^
|
|
1395
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Vs=/'/g,Us=/"/g,La=/^(?:script|style|textarea|title)$/i,Dr=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),ne=Dr(1),Ue=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),Gs=new WeakMap,je=Ve.createTreeWalker(Ve,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=Fs:m[1]!==void 0?n=Hs:m[2]!==void 0?(La.test(m[2])&&(a=RegExp("</"+m[2],"g")),n=Be):m[3]!==void 0&&(n=Be):n===Be?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?Be:m[3]==='"'?Us:Vs):n===Us||n===Vs?n=Be:n===Fs||n===Hs?n=gt:(n=Be,a=void 0);const g=n===Be&&i[o+1].startsWith("/>")?" ":"";r+=n===gt?l+Lr: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]==="."?zr: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===Ia)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=Ve.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 Br{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:s},parts:a}=this._$AD,r=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:Ve).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 jt(n,n.nextSibling,this,e):c.type===1?m=new c.ctor(n,c.name,c.strings,this,e):c.type===6&&(m=new Vr(n,this,e)),this._$AV.push(m),c=a[++l]}o!==(c==null?void 0:c.index)&&(n=je.nextNode(),o++)}return je.currentNode=Ve,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 jt{constructor(e,t,s,a){var r;this.type=2,this._$AH=H,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===H||e==null||e===""?(this._$AH!==H&&this._$AR(),this._$AH=H):e!==this._$AH&&e!==Ue&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Pr(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!==H&&Et(this._$AH)?this._$AA.nextSibling.data=e:this.$(Ve.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 Br(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 jt(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=H,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=H}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===H?e=H:e!==H&&(e+=(c??"")+r[l+1]),this._$AH[l]=c}n&&!a&&this.j(e)}j(e){e===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}};class zr extends yi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===H?void 0:e}}const jr=it?it.emptyScript:"";let Fr=class extends yi{constructor(){super(...arguments),this.type=4}j(e){e&&e!==H?this.element.setAttribute(this.name,jr):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:H)===Ue)return;const a=this._$AH,r=e===H&&a!==H||e.capture!==a.capture||e.once!==a.once||e.passive!==a.passive,n=e!==H&&(a===H||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 Vr{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=ui.litHtmlPolyfillSupport;Ws==null||Ws(At,jt),((Ri=ui.litHtmlVersions)!==null&&Ri!==void 0?Ri:ui.litHtmlVersions=[]).push("2.8.0");const Ur=(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 jt(e.insertBefore(Ct(),o),o,void 0,t??{})}return n._$AI(i),n};var Pi,Di;let Ce=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=Ur(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}};Ce.finalized=!0,Ce._$litElement$=!0,(Pi=globalThis.litElementHydrateSupport)===null||Pi===void 0||Pi.call(globalThis,{LitElement:Ce});const Ks=globalThis.litElementPolyfillSupport;Ks==null||Ks({LitElement:Ce});((Di=globalThis.litElementVersions)!==null&&Di!==void 0?Di:globalThis.litElementVersions=[]).push("3.3.3");const Gr=(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)}},Wr=(i,e,t)=>{e.constructor.createProperty(t,i)};function v(i){return(e,t)=>t!==void 0?Wr(i,e,t):Gr(i,e)}var re="top",ue="bottom",he="right",oe="left",hs="auto",Ft=[re,ue,he,oe],at="start",kt="end",Kr="clippingParents",Da="viewport",Nt="popper",qr="reference",qs=Ft.reduce(function(i,e){return i.concat([e+"-"+at,e+"-"+kt])},[]),Ta=[].concat(Ft,[hs]).reduce(function(i,e){return i.concat([e,e+"-"+at,e+"-"+kt])},[]),Jr="beforeRead",Zr="read",Xr="afterRead",Yr="beforeMain",Qr="main",eo="afterMain",to="beforeWrite",io="write",so="afterWrite",ao=[Jr,Zr,Xr,Yr,Qr,eo,to,io,so];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 no(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 ro(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 oo={name:"applyStyles",enabled:!0,phase:"write",fn:no,effect:ro,requires:["computeStyles"]};function we(i){return i.split("-")[0]}var Fe=Math.max,hi=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 Ba(){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=!Ba()&&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 Ee(i){return me(i).getComputedStyle(i)}function lo(i){return["table","td","th"].indexOf(_e(i))>=0}function Re(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)||Re(i)}function Js(i){return!de(i)||Ee(i).position==="fixed"?null:i.offsetParent}function co(i){var e=/firefox/i.test(Wi()),t=/Trident/i.test(Wi());if(t&&de(i)){var s=Ee(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=Ee(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 Ht(i){for(var e=me(i),t=Js(i);t&&lo(t)&&Ee(t).position==="static";)t=Js(t);return t&&(_e(t)==="html"||_e(t)==="body"&&Ee(t).position==="static")?e:t||co(i)||e}function gs(i){return["top","bottom"].indexOf(i)>=0?"x":"y"}function wt(i,e,t){return Fe(i,hi(e,t))}function mo(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 Fa(i){return Object.assign({},ja(),i)}function Ha(i,e){return e.reduce(function(t,s){return t[s]=i,t},{})}var uo=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Fa(typeof e!="number"?e:Ha(e,Ft))};function ho(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=uo(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=Ht(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[s]=(e={},e[P]=R,e.centerOffset=R-$,e)}}function fo(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 po={name:"arrow",enabled:!0,phase:"main",fn:ho,effect:fo,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ot(i){return i.split("-")[1]}var go={top:"auto",right:"auto",bottom:"auto",left:"auto"};function No(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"),M=n.hasOwnProperty("y"),I=oe,x=re,E=window;if(c){var $=Ht(t),R="clientHeight",P="clientWidth";if($===me(t)&&($=Re(t),Ee($).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){I=he;var B=u&&$===E&&E.visualViewport?E.visualViewport.width:$[P];g-=B-s.width,g*=l?1:-1}}var K=Object.assign({position:o},c&&go),ee=m===!0?No({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 bo(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 vo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:bo,data:{}};var qt={passive:!0};function yo(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,qt)}),o&&l.addEventListener("resize",t.update,qt),function(){r&&c.forEach(function(m){m.removeEventListener("scroll",t.update,qt)}),o&&l.removeEventListener("resize",t.update,qt)}}const xo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:yo,data:{}};var wo={left:"right",right:"left",bottom:"top",top:"bottom"};function oi(i){return i.replace(/left|right|bottom|top/g,function(e){return wo[e]})}var _o={start:"end",end:"start"};function Xs(i){return i.replace(/start|end/g,function(e){return _o[e]})}function Ns(i){var e=me(i),t=e.pageXOffset,s=e.pageYOffset;return{scrollLeft:t,scrollTop:s}}function bs(i){return rt(Re(i)).left+Ns(i).scrollLeft}function So(i,e){var t=me(i),s=Re(i),a=t.visualViewport,r=s.clientWidth,n=s.clientHeight,o=0,l=0;if(a){r=a.width,n=a.height;var c=Ba();(c||!c&&e==="fixed")&&(o=a.offsetLeft,l=a.offsetTop)}return{width:r,height:n,x:o+bs(i),y:l}}function Co(i){var e,t=Re(i),s=Ns(i),a=(e=i.ownerDocument)==null?void 0:e.body,r=Fe(t.scrollWidth,t.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),n=Fe(t.scrollHeight,t.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),o=-s.scrollLeft+bs(i),l=-s.scrollTop;return Ee(a||t).direction==="rtl"&&(o+=Fe(t.clientWidth,a?a.clientWidth:0)-r),{width:r,height:n,x:o,y:l}}function vs(i){var e=Ee(i),t=e.overflow,s=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+a+s)}function Va(i){return["html","body","#document"].indexOf(_e(i))>=0?i.ownerDocument.body:de(i)&&vs(i)?i:Va(xi(i))}function _t(i,e){var t;e===void 0&&(e=[]);var s=Va(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 Eo(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(So(i,t)):Ge(e)?Eo(e,t):Ki(Co(Re(i)))}function Ao(i){var e=_t(xi(i)),t=["absolute","fixed"].indexOf(Ee(i).position)>=0,s=t&&de(i)?Ht(i):i;return Ge(s)?e.filter(function(a){return Ge(a)&&za(a,s)&&_e(a)!=="body"}):[]}function ko(i,e,t,s){var a=e==="clippingParents"?Ao(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=Fe(m.top,l.top),l.right=hi(m.right,l.right),l.bottom=hi(m.bottom,l.bottom),l.left=Fe(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?Kr: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=Fa(typeof f!="number"?f:Ha(f,Ft)),M=h===Nt?qr:Nt,I=i.rects.popper,x=i.elements[_?M:h],E=ko(Ge(x)?x:x.contextElement||Re(i.elements.popper),l,m,n),$=rt(i.elements.reference),R=Ua({reference:$,element:I,strategy:"absolute",placement:a}),P=Ki(Object.assign({},I,R)),O=h===Nt?P:$,B={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(B).forEach(function(q){var fe=[he,ue].indexOf(q)>=0?1:-1,te=[re,ue].indexOf(q)>=0?"y":"x";B[q]+=ee[te]*fe})}return B}function $o(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?Ta:l,m=ot(s),u=m?o?qs:qs.filter(function(_){return ot(_)===m}):Ft,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 Oo(i){if(we(i)===hs)return[];var e=oi(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),M=A===f,I=l||(M||!_?[oi(f)]:Oo(f)),x=[f].concat(I).reduce(function(pe,U){return pe.concat(we(U)===hs?$o(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],B=0;B<x.length;B++){var K=x[B],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=oi(d));var N=oi(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 Io={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 Ro(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 Lo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ro};function Po(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 Do(i){var e=i.state,t=i.options,s=i.name,a=t.offset,r=a===void 0?[0,0]:a,n=Ta.reduce(function(m,u){return m[u]=Po(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:Do};function Bo(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 zo={name:"popperOffsets",enabled:!0,phase:"read",fn:Bo,data:{}};function jo(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),M=ot(e.placement),I=!M,x=gs(A),E=jo(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,B=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-B.mainAxis:z-be-X-B.mainAxis,$i=I?-R[Z]/2+k+be+De+B.mainAxis:J+be+De+B.mainAxis,ft=e.elements.arrow&&Ht(e.elements.arrow),Oi=ft?x==="y"?ft.clientTop||0:ft.clientLeft||0:0,Gt=(q=K==null?void 0:K[x])!=null?q:0,Je=d+qe-Gt-Oi,Wt=d+$i-Gt,ce=wt(g?hi(N,Je):N,d,g?Fe(w,Wt):w);$[x]=ce,ee[x]=ce-d}if(o){var Kt,pt=x==="x"?re:oe,S=x==="x"?ue:he,ve=$[E],G=E==="y"?"height":"width",D=ve+f[pt],Te=ve-f[S],ge=[re,oe].indexOf(A)!==-1,Ze=(Kt=K==null?void 0:K[E])!=null?Kt:0,Xe=ge?D:ve-R[G]-P[G]-Ze+B.altAxis,p=ge?ve+R[G]+P[G]-Ze-B.altAxis:Te,b=g&&ge?mo(Xe,ve,p):wt(g?Xe:D,ve,g?p:Te);$[E]=b,ee[E]=b-ve}e.modifiersData[s]=ee}}const Ho={name:"preventOverflow",enabled:!0,phase:"main",fn:Fo,requiresIfExists:["offset"]};function Vo(i){return{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}}function Uo(i){return i===me(i)||!de(i)?Ns(i):Vo(i)}function Go(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 Wo(i,e,t){t===void 0&&(t=!1);var s=de(e),a=de(e)&&Go(e),r=Re(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=Uo(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 Ko(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 qo(i){var e=Ko(i);return ao.reduce(function(t,s){return t.concat(e.filter(function(a){return a.phase===s}))},[])}function Jo(i){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(i())})})),e}}function Zo(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 Xo(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 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=qo(Zo([].concat(s,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:Wo(M,Ht(I),m.options.strategy==="fixed"),popper:ps(I)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach(function(B){return m.modifiersData[B.name]=Object.assign({},B.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:Jo(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 Yo=[xo,zo,vo,oo,To,Io,Ho,po,Lo],Qo=Xo({defaultModifiers:Yo});const ie=i=>i??H,el=":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}",tl="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",il="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",sl="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 al=Object.defineProperty,nl=Object.getOwnPropertyDescriptor,ys=(i,e,t,s)=>{for(var a=s>1?void 0:s?nl(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&&al(e,t,a),a},Ye;const Ot=(Ye=class extends Ce{static parseLevel(i){if(i){const e=Object.keys(Mt).find(t=>t.toLowerCase()===i.toLowerCase());return e&&Mt[e]}}static get styles(){return[zt`
|
|
1396
|
+
${ht(el)}
|
|
1397
|
+
`]}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 sl;case"suggest":return il;case"error":return tl;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 Ti=Ot;var Mt=(i=>(i.Warn="warn",i.Suggest="suggest",i.Error="error",i))(Mt||{});customElements.get(Ti.ID)||customElements.define(Ti.ID,Ti);const rl=":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 ol=Object.defineProperty,ll=Object.getOwnPropertyDescriptor,W=(i,e,t,s)=>{for(var a=s>1?void 0:s?ll(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&&ol(e,t,a),a};const cl="sd-lit-input",sa="delegatesFocus"in window.ShadowRoot.prototype;let ml=0;var ye;const V=(ye=class extends Ce{constructor(){super(),this.rows=1,this.effectiveDisabled=!1,this.type="text",this.autocomplete="off";const i=ml++;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[zt`
|
|
1398
|
+
${ht(rl)}
|
|
1399
|
+
`]}render(){var i;let e;const t=this.validationMessage||((i=this.inputElement)==null?void 0:i.validationMessage);return this.rows===1?e=ne`
|
|
1400
1400
|
<input
|
|
1401
1401
|
id=${this._inputId}
|
|
1402
1402
|
class="input"
|
|
1403
1403
|
.type=${this.type}
|
|
1404
|
-
placeholder=${
|
|
1405
|
-
name=${
|
|
1404
|
+
placeholder=${ie(this.placeholder||void 0)}
|
|
1405
|
+
name=${ie(this.name||void 0)}
|
|
1406
1406
|
aria-disabled=${this.effectiveDisabled}
|
|
1407
1407
|
autocomplete=${this.autocomplete}
|
|
1408
1408
|
?disabled=${this.inactive}
|
|
@@ -1410,15 +1410,18 @@ function updateMandatory(combobox: ComboBox) {
|
|
|
1410
1410
|
?required=${this.required}
|
|
1411
1411
|
maxlength=${this.maxlength>0?this.maxlength:ye.DEFAULT_MAX_LENGTH}
|
|
1412
1412
|
aria-describedby=${this._validationMessageId}
|
|
1413
|
-
aria-invalid=${
|
|
1414
|
-
aria-label=${
|
|
1413
|
+
aria-invalid=${ie(!!t||void 0)}
|
|
1414
|
+
aria-label=${ie(this.sdAriaLabel||void 0)}
|
|
1415
|
+
min=${ie(this.min||void 0)}
|
|
1416
|
+
max=${ie(this.max||void 0)}
|
|
1417
|
+
pattern=${ie(this.pattern||void 0)}
|
|
1415
1418
|
/>
|
|
1416
|
-
`:
|
|
1419
|
+
`:e=ne`
|
|
1417
1420
|
<textarea
|
|
1418
1421
|
id=${this._inputId}
|
|
1419
1422
|
class="input"
|
|
1420
|
-
placeholder=${
|
|
1421
|
-
name=${
|
|
1423
|
+
placeholder=${ie(this.placeholder||void 0)}
|
|
1424
|
+
name=${ie(this.name||void 0)}
|
|
1422
1425
|
aria-disabled=${this.effectiveDisabled}
|
|
1423
1426
|
autocomplete=${this.autocomplete}
|
|
1424
1427
|
?disabled=${this.inactive}
|
|
@@ -1427,20 +1430,20 @@ function updateMandatory(combobox: ComboBox) {
|
|
|
1427
1430
|
maxlength=${this.maxlength>0?this.maxlength:ye.DEFAULT_MAX_LENGTH}
|
|
1428
1431
|
rows=${this.rows}
|
|
1429
1432
|
aria-describedby=${this._validationMessageId}
|
|
1430
|
-
aria-invalid=${
|
|
1431
|
-
aria-label=${
|
|
1433
|
+
aria-invalid=${ie(!!t||void 0)}
|
|
1434
|
+
aria-label=${ie(this.sdAriaLabel||void 0)}
|
|
1432
1435
|
></textarea>
|
|
1433
|
-
`,
|
|
1434
|
-
${this.label?
|
|
1436
|
+
`,ne`
|
|
1437
|
+
${this.label?ne` <div class="floated-label-placeholder" aria-hidden="true"> </div> `:H}
|
|
1435
1438
|
<div class="input-wrapper">
|
|
1436
1439
|
<span class="prefix"><slot name="prefix"></slot></span>
|
|
1437
1440
|
<div class="input-container" style="position:${this.shouldFloat()?"static":"relative"};">
|
|
1438
|
-
${this.label&&
|
|
1441
|
+
${this.label&&ne`
|
|
1439
1442
|
<label for="${this._inputId}" class="label ${this.shouldFloat()?"float":""}"
|
|
1440
1443
|
>${this.label}</label
|
|
1441
1444
|
>
|
|
1442
1445
|
`}
|
|
1443
|
-
${
|
|
1446
|
+
${e}
|
|
1444
1447
|
</div>
|
|
1445
1448
|
<span class="suffix"><slot name="suffix"></slot></span>
|
|
1446
1449
|
</div>
|
|
@@ -1449,22 +1452,22 @@ function updateMandatory(combobox: ComboBox) {
|
|
|
1449
1452
|
<div class="focused-line"></div>
|
|
1450
1453
|
</div>
|
|
1451
1454
|
<div class="validation-message-wrapper" aria-hidden="true">
|
|
1452
|
-
${
|
|
1455
|
+
${t&&ne`
|
|
1453
1456
|
<sd-field-validation-message
|
|
1454
1457
|
id=${this._validationMessageId}
|
|
1455
1458
|
class="validation-message"
|
|
1456
|
-
.message=${
|
|
1459
|
+
.message=${t}
|
|
1457
1460
|
.icon=${this.validationIconSrc}
|
|
1458
1461
|
.level=${this.validationLevel}
|
|
1459
1462
|
>
|
|
1460
1463
|
</sd-field-validation-message>
|
|
1461
1464
|
`}
|
|
1462
1465
|
</div>
|
|
1463
|
-
`}updated(i){super.updated(i),this._needsAutocompletedCheck&&!this.autocompleted&&setTimeout(()=>{try{this.autocompleted=this.autocompleted||!!this.shadowRoot.querySelector(":-webkit-autofill")}catch{}},0)}update(i){var e,t;if(super.update(i),i.has("validationMessage")&&(this.validationMessage?(this.validationLevel||(this.validationLevel=Mt.Error),(e=this._internals)==null||e.setValidity({customError:!0},this.validationMessage)):(this.validationLevel=null,(t=this._internals)==null||t.setValidity(
|
|
1464
|
-
${
|
|
1465
|
-
`]}render(){return
|
|
1466
|
+
`}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?(this.validationLevel||(this.validationLevel=Mt.Error),(e=this._internals)==null||e.setValidity({customError:!0},this.validationMessage)):(this.validationLevel=null,(t=this._internals)==null||t.setValidity(this.inputElement.validity,this.inputElement.validationMessage))),this._initialized&&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=cl,ye.DEFAULT_MAX_LENGTH=524288,ye.formAssociated=!0,ye.shadowRootOptions={...Ce.shadowRootOptions,delegatesFocus:sa},ye);W([v({type:String,reflect:!0})],V.prototype,"label",2);W([v({type:String,attribute:!0})],V.prototype,"validationMessage",2);W([v({type:String,attribute:!0})],V.prototype,"validationIconSrc",2);W([v({type:Mt,attribute:!0,reflect:!0})],V.prototype,"validationLevel",2);W([v({type:String,hasChanged(i,e){return e!=null&&e!=i}})],V.prototype,"currentText",2);W([v({type:Boolean,attribute:!0})],V.prototype,"alwaysFloatLabel",2);W([v({type:Boolean,attribute:!0})],V.prototype,"autocompleted",2);W([v({type:Number,attribute:!0})],V.prototype,"rows",2);W([v({type:Boolean,reflect:!0,attribute:"effective-disabled"})],V.prototype,"effectiveDisabled",2);W([v({type:Boolean,reflect:!0,attribute:"extended-prefix"})],V.prototype,"extendedPrefix",2);W([v({type:String,reflect:!0})],V.prototype,"type",2);W([v({type:String,reflect:!0})],V.prototype,"placeholder",2);W([v({type:String,reflect:!0})],V.prototype,"sdAriaLabel",2);W([v({type:Number,reflect:!0})],V.prototype,"maxlength",2);W([v({type:Boolean,reflect:!0})],V.prototype,"readonly",2);W([v({type:Boolean,reflect:!0})],V.prototype,"required",2);W([v({type:String,reflect:!0})],V.prototype,"name",2);W([v({type:Boolean,reflect:!0})],V.prototype,"inactive",2);W([v({type:String,attribute:!0})],V.prototype,"autocomplete",2);W([v({type:String,attribute:!0})],V.prototype,"min",2);W([v({type:String,attribute:!0})],V.prototype,"max",2);W([v({type:String,attribute:!0})],V.prototype,"pattern",2);let li=V;customElements.get(li.ID)||customElements.define(li.ID,li);const dl={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ul=i=>(...e)=>({_$litDirective$:i,values:e});class hl{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 hl{constructor(e){if(super(e),this.et=H,e.type!==dl.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===H||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 fl=ul(qi);let pl=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 Ce{constructor(){super(...arguments),this.contentMode="text",this.role="option"}static get styles(){return[zt`
|
|
1467
|
+
${ht(gl)}
|
|
1468
|
+
`]}render(){return ne`
|
|
1466
1469
|
<div class="container">
|
|
1467
|
-
${this.getLevelIndicators().map((i,e)=>
|
|
1470
|
+
${this.getLevelIndicators().map((i,e)=>ne` <div class="level-indicator level-${e}"></div> `)}
|
|
1468
1471
|
<div class="side-content">
|
|
1469
1472
|
<slot name="left-content"></slot>
|
|
1470
1473
|
${this.renderIcon()}
|
|
@@ -1477,43 +1480,43 @@ function updateMandatory(combobox: ComboBox) {
|
|
|
1477
1480
|
<slot name="right-content"></slot>
|
|
1478
1481
|
</div>
|
|
1479
1482
|
</div>
|
|
1480
|
-
`}renderIcon(){if(this.icon||this.iconPlaceholder){const i=this.iconBackgroundColor!=null?`background-color:${this.iconBackgroundColor}`:void 0;return
|
|
1483
|
+
`}renderIcon(){if(this.icon||this.iconPlaceholder){const i=this.iconBackgroundColor!=null?`background-color:${this.iconBackgroundColor}`:void 0;return ne`
|
|
1481
1484
|
<div
|
|
1482
1485
|
class="icon-wrapper"
|
|
1483
1486
|
@pointerdown="${this.handleIconClick}"
|
|
1484
|
-
style="${
|
|
1487
|
+
style="${ie(i)}"
|
|
1485
1488
|
role="img"
|
|
1486
|
-
aria-label="${
|
|
1487
|
-
title="${
|
|
1489
|
+
aria-label="${ie(this.iconAttrAriaLabel)}"
|
|
1490
|
+
title="${ie(this.iconAttrTitle)}"
|
|
1488
1491
|
>
|
|
1489
1492
|
<div class="icon"></div>
|
|
1490
1493
|
</div>
|
|
1491
|
-
`}return
|
|
1492
|
-
<div class="${i}" title="${
|
|
1493
|
-
${this.contentMode==="html"?
|
|
1494
|
+
`}return H}renderLabel(i,e,t){return e?ne`
|
|
1495
|
+
<div class="${i}" title="${ie(t)}">
|
|
1496
|
+
${this.contentMode==="html"?fl(e):e}
|
|
1494
1497
|
</div>
|
|
1495
|
-
`:
|
|
1496
|
-
${
|
|
1497
|
-
`]}render(){return this.updateItemsRenderData(),
|
|
1498
|
+
`:H}updated(i){super.updated(i),(i.has("icon")||i.has("iconPlaceholder"))&&(this.icon||this.iconPlaceholder)&&pl.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({type:Boolean,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 Ga=(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,Le=(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 Oe;const ke=(Oe=class extends Ce{constructor(){super(),this.items=[],this.selectionType="trigger-only",this.id=Oe.ID+"_"+Cl++,this.role="listbox",this.itemGenerator=Ga,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[zt`
|
|
1499
|
+
${ht(wl)}
|
|
1500
|
+
`]}render(){return this.updateItemsRenderData(),ne`
|
|
1498
1501
|
<div class="container" style="height: ${this.itemCount*this.itemHeight}px">
|
|
1499
1502
|
<slot name="items"></slot>
|
|
1500
1503
|
</div>
|
|
1501
|
-
`}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 n=i.indexOf(a);n!==-1&&i.splice(n,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 n;a?n=JSON.stringify(a):n=`placeholder-${s}`,this._itemsRenderData.push({index:t,top:this.itemHeight*t,physicalIndex:s,dataHash:n,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 n=this.selectedIndices.indexOf(i);a=n==-1,a?this.selectionType==="single"?this.selectedIndices=[i]:this.selectedIndices.push(i):this.selectedIndices.splice(n,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}}}},Oe.ID="sd-virtual-list",Oe.ensureDefined=()=>{tt.ensureDefined(),customElements.get(Oe.ID)||customElements.define(Oe.ID,Oe)},Oe);Le([v({type:Number,attribute:"item-height",reflect:!0})],ke.prototype,"itemHeight",2);Le([v({type:Number})],ke.prototype,"itemCount",2);Le([v({type:Array,attribute:!1})],ke.prototype,"items",2);Le([v({type:String,attribute:"selection-type",reflect:!0,noAccessor:!0})],ke.prototype,"selectionType",2);Le([v({type:String,attribute:!0,reflect:!0})],ke.prototype,"id",2);Le([v({type:String,reflect:!0})],ke.prototype,"role",2);Le([v({type:Number,attribute:"focus-index",reflect:!0})],ke.prototype,"focusIndex",1);Le([v({type:Array,attribute:!1})],ke.prototype,"selectedIndices",1);let Ji=ke;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{transform:none;transition:transform .25s}:host([validationlevel=warn i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn i]) .label,:host([validationlevel=warn i]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest i]) .label,:host([validationlevel=suggest i]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error i]) .label,:host([validationlevel=error i]) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}:host([validationlevel=warn]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn]) .label,:host([validationlevel=warn]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest]) .label,:host([validationlevel=suggest]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error]) .label,:host([validationlevel=error]) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}.validation-message-wrapper{position:relative}.validation-message{position:absolute;left:0;right:0}.label.float{transform:translateY(-75%) scale(.75);width:133%}.label:not(.float){max-width:100%}.floated-label-placeholder{height:20px;width:100%}.label{position:absolute;top:0;left:0;line-height:24px;pointer-events:none;color:var(--sd-input-color, #767676);transition:transform .25s,width .25s;transform-origin:left top}.input-wrapper{position:relative;display:flex;flex-direction:row;align-items:center;background-color:var(--input-wrapper-background-color)}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-wrapper{flex-direction:column;align-items:baseline}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-container{width:100%}:host([extended-prefix]:not(:focus-within)) .input-container,:host([extended-prefix][effective-disabled]) .input-container{width:0px}.input-container{line-height:var(--sd-input-line-height, 24px);flex:1 1 auto}.input{width:100%;background:var(--sd-input-background, transparent);font-family:inherit;font-size:inherit;text-align:inherit;color:inherit;border:none;outline:none;resize:none;padding-left:0;padding-right:0}.input:-webkit-autofill{animation-name:onautofillstart}.input:not(:-webkit-autofill){animation-name:onautofillcancel}@keyframes onautofillstart{0%{outline:none}}@keyframes onautofillcancel{0%{outline:none}}.label,input.input,.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.input::-ms-clear{display:none}.input::placeholder{color:var(--sd-input-color, #767676)}.input:-ms-input-placeholder{color:var(--sd-input-color, #767676)}.input::-ms-input-placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;top:0;right:0;bottom:0;left:0}.unfocused-line{border-bottom:1px solid var(--sd-input-underline-color, #959595)}.focused-line{border-bottom:2px solid var(--sd-input-focused-color, #1467ba);transform-origin:center center;transform:scale3d(0,1,1)}.prefix,.suffix{display:flex;flex-wrap:nowrap;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}: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
|
|
1504
|
+
`}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}}}},Oe.ID="sd-virtual-list",Oe.ensureDefined=()=>{tt.ensureDefined(),customElements.get(Oe.ID)||customElements.define(Oe.ID,Oe)},Oe);Le([v({type:Number,attribute:"item-height",reflect:!0})],ke.prototype,"itemHeight",2);Le([v({type:Number})],ke.prototype,"itemCount",2);Le([v({type:Array,attribute:!1})],ke.prototype,"items",2);Le([v({type:String,attribute:"selection-type",reflect:!0,noAccessor:!0})],ke.prototype,"selectionType",2);Le([v({type:String,attribute:!0,reflect:!0})],ke.prototype,"id",2);Le([v({type:String,reflect:!0})],ke.prototype,"role",2);Le([v({type:Number,attribute:"focus-index",reflect:!0})],ke.prototype,"focusIndex",1);Le([v({type:Array,attribute:!1})],ke.prototype,"selectedIndices",1);let Ji=ke;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}: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
|
|
1502
1505
|
<path d="M13 4v2l-5 5-5-5v-2l5 5z"/>\r
|
|
1503
1506
|
</svg>\r
|
|
1504
1507
|
`,kl=`<svg xmlns="http://www.w3.org/2000/svg" class="clear-button" slot="suffix" viewBox="0 0 16 16">\r
|
|
1505
1508
|
<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
|
|
1506
1509
|
</svg>\r
|
|
1507
|
-
`;var $l=Object.defineProperty,Ol=Object.getOwnPropertyDescriptor,
|
|
1508
|
-
${
|
|
1509
|
-
`]}disconnectedCallback(){super.disconnectedCallback(),this._popper&&(this._popper.destroy(),this._popper=null)}render(){return
|
|
1510
|
+
`;var $l=Object.defineProperty,Ol=Object.getOwnPropertyDescriptor,Pe=(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 Ml="sd-combo-box";function aa(i,e){let t;return function(...s){t!=null&&clearTimeout(t),t=window.setTimeout(()=>i(...s),e)}}let Il=0;var ae;const $e=(ae=class extends li{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 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=Ga,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.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)}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[zt`
|
|
1511
|
+
${ht(El)}
|
|
1512
|
+
`]}disconnectedCallback(){super.disconnectedCallback(),this._popper&&(this._popper.destroy(),this._popper=null)}render(){return ne`
|
|
1510
1513
|
${super.render()}
|
|
1511
1514
|
<slot @slotchange=${this.onDefaultSlotChange} id="default-slot"></slot>
|
|
1512
1515
|
`}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.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}}updated(e){super.updated(e),e.has("currentText")?this.currentText?(this.setAttribute("has-value",""),this._clearButton&&(this._clearButton.style.display="")):this.removeAttribute("has-value"):e.has("triggerOnly")&&this._list&&(this._list.selectionType=this.triggerOnly?xt.TriggerOnly:xt.Single)}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;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._list.focusIndex=null:this._dataProvider.items=this._itemCache,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,
|
|
1513
1516
|
rgba(0, 0, 0, 0.12) 0px 1px 5px 0px,
|
|
1514
|
-
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=Qo(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(){const e=this.comboBoxValue||"";if(this.nullSettingDisallowed&&!this.value&&this.comboBoxValue)this.restorePreviousSelection();else if(this.value!==this.convertToDisplayValue(null)){const t=this._dataProvider.items[this._list.focusIndex];if(t&&t[this.displayValuePath]===this.value){if(t.disabled)return;this.comboBoxValue={index:this._itemCache.indexOf(t),item:t}}else if(this.allowCustomValue||!this.value)this.comboBoxValue=this.value;else{const s=this._itemCache.findIndex(a=>a[this.displayValuePath]===this.value&&!a.disabled);s>-1?this.comboBoxValue={index:s,item:this._itemCache[s]}:this.restorePreviousSelection()}}e!==(this.comboBoxValue||"")&&this.dispatchSelectionChangeEvent()}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)})}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.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()))}clearFilter(){this.filterText!=null&&(this.filterText=void 0,this.filterItemsInMemory(),this.dispatchFilterChangeEvent())}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;typeof t=="string"?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(
|
|
1515
|
-
${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}))}},
|
|
1516
|
-
`+g+o("^")}return" "+l(
|
|
1517
|
+
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=Qo(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(){const e=this.comboBoxValue||"";if(this.nullSettingDisallowed&&!this.value&&this.comboBoxValue)this.restorePreviousSelection();else if(this.value!==this.convertToDisplayValue(null)){const t=this._dataProvider.items[this._list.focusIndex];if(t&&t[this.displayValuePath]===this.value){if(t.disabled)return;this.comboBoxValue={index:this._itemCache.indexOf(t),item:t}}else if(this.allowCustomValue||!this.value)this.comboBoxValue=this.value;else{const s=this._itemCache.findIndex(a=>a[this.displayValuePath]===this.value&&!a.disabled);s>-1?this.comboBoxValue={index:s,item:this._itemCache[s]}:this.restorePreviousSelection()}}e!==(this.comboBoxValue||"")&&this.dispatchSelectionChangeEvent()}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)})}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.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()))}clearFilter(){this.filterText!=null&&(this.filterText=void 0,this.filterItemsInMemory(),this.dispatchFilterChangeEvent())}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;typeof t=="string"?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:
|
|
1518
|
+
${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);Pe([v({type:Boolean,reflect:!0})],$e.prototype,"opened",2);Pe([v({type:Number,attribute:"item-height"})],$e.prototype,"itemHeight",2);Pe([v({type:Boolean,attribute:"allow-custom-value",reflect:!0})],$e.prototype,"allowCustomValue",2);Pe([v({type:Boolean,attribute:"trigger-only",reflect:!0})],$e.prototype,"triggerOnly",2);Pe([v({type:Boolean,attribute:"null-setting-disallowed",reflect:!0})],$e.prototype,"nullSettingDisallowed",2);Pe([v({type:String,attribute:"display-value-path",noAccessor:!0})],$e.prototype,"displayValuePath",2);Pe([v({type:String,attribute:"filter-property",noAccessor:!0})],$e.prototype,"filterProperty",2);Pe([v({type:String,attribute:!0,reflect:!0})],$e.prototype,"id",2);let Rl=$e;Rl.ensureDefined();function Wa(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,Ka=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=Ka();xs.exports.createColors=Ka;var Pl=xs.exports;const Dl={},Tl=Object.freeze(Object.defineProperty({__proto__:null,default:Dl},Symbol.toStringTag,{value:"Module"})),Ne=Ll(Tl);let na=Pl,ra=Ne,Zi=class qa 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,qa)}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+`
|
|
1519
|
+
`+g+o("^")}return" "+l(h)+c}).join(`
|
|
1517
1520
|
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
|
1518
1521
|
|
|
1519
1522
|
`+e+`
|
|
@@ -1522,25 +1525,25 @@ ${a}`),this._dataProvider.finalSizeIsKnown=!0,this.items.length==0?this.opened=!
|
|
|
1522
1525
|
`,beforeComment:`
|
|
1523
1526
|
`,beforeDecl:`
|
|
1524
1527
|
`,beforeOpen:" ",beforeRule:`
|
|
1525
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Bl(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
|
|
1526
|
-
`)){let
|
|
1528
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Bl(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(`
|
|
1529
|
+
`)){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"+Bl(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(`
|
|
1527
1530
|
`)&&(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(`
|
|
1528
1531
|
`)&&(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(`
|
|
1529
1532
|
`)&&(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(`
|
|
1530
|
-
`)&&(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
|
|
1531
|
-
`);return t=
|
|
1532
|
-
`?(a=1,
|
|
1533
|
-
`);s=new Array(
|
|
1533
|
+
`)&&(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(`
|
|
1534
|
+
`);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 Ja=Xi;Xi.default=Xi;let zl=Ja;function Yi(i,e){new zl(e).stringify(i)}var wi=Yi;Yi.default=Yi;let{isClean:Jt,my:jl}=Vt,Fl=ws,Hl=Ja,Vl=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[Jt]=!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 Fl(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[Jt]){this[Jt]=!1;let e=this;for(;e=e.parent;)e[Jt]=!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]===`
|
|
1535
|
+
`?(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 Hl().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=Vl){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:Bi,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=Bi(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=Bi(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(Bi(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 Za=is;is.default=is;let{SourceMapConsumer:Ql,SourceMapGenerator:ec}=Ne,{fileURLToPath:ma,pathToFileURL:Zt}=Ne,{isAbsolute:ss,resolve:as}=Ne,{nanoid:tc}=ql,zi=Ne,da=ws,ic=Za,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&&(Zt&&(r.input.url=Zt(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(`
|
|
1536
|
+
`);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=Zt(n.source):l=new URL(n.source,this.map.consumer().sourceRoot||Zt(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:Xa,SourceMapGenerator:ci}=Ne,{dirname:mi,relative:Ya,resolve:Qa,sep:en}=Ne,{pathToFileURL:ha}=Ne,ac=Ci,nc=!!(Xa&&ci),rc=!!(mi&&Qa&&Ya&&en),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=`
|
|
1534
1537
|
`;this.css.includes(`\r
|
|
1535
1538
|
`)&&(t=`\r
|
|
1536
|
-
`),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),s=e.root||mi(e.file),a;this.mapOpts.sourcesContent===!1?(a=new Xa(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(),nc&&
|
|
1537
|
-
`),t=o.length-r):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?mi(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(s=mi(Qa(s,this.mapOpts.annotation)));let a=Ya(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(fa){let s=fa(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;er==="\\"&&(e=e.replace(/\\/g,"/"));let s=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,s),s}};var tr=oc;let lc=_i,rs=class extends lc{constructor(e){super(e),this.type="comment"}};var Ei=rs;rs.default=rs;let{isClean:ir,my:sr}=Vt,ar=Si,rr=Ei,cc=_i,nr,_s,Ss,or;function lr(i){return i.map(e=>(e.nodes&&(e.nodes=lr(e.nodes)),delete e.source,e))}function cr(i){if(i[ir]=!1,i.proxyOf.nodes)for(let e of i.proxyOf.nodes)cr(e)}let Ae=class mr 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"?(n,r)=>a(n.toProxy(),r):a)):t==="every"||t==="some"?s=>e[t]((a,...n)=>s(a.toProxy(),...n)):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 r of a)this.proxyOf.nodes.splice(s+1,0,r);let n;for(let r in this.indexes)n=this.indexes[r],s<n&&(this.indexes[r]=n+a.length);return this.markDirty(),this}insertBefore(e,t){let s=this.index(e),a=s===0?"prepend":!1,n=this.normalize(t,this.proxyOf.nodes[s],a).reverse();s=this.index(e);for(let o of n)this.proxyOf.nodes.splice(s,0,o);let r;for(let o in this.indexes)r=this.indexes[o],s<=r&&(this.indexes[o]=r+n.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=lr(nr(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 ar(e)]}else if(e.selector)e=[new _s(e)];else if(e.name)e=[new Ss(e)];else if(e.text)e=[new rr(e)];else throw new Error("Unknown node type in node creation");return e.map(a=>(a[sr]||mr.rebuild(a),a=a.proxyOf,a.parent&&a.parent.removeChild(a),a[ir]&&cr(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(n){throw t.addToError(n)}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]}};Ae.registerParse=i=>{nr=i};Ae.registerRule=i=>{_s=i};Ae.registerAtRule=i=>{Ss=i};Ae.registerRoot=i=>{or=i};var We=Ae;Ae.default=Ae;Ae.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,Ss.prototype):i.type==="rule"?Object.setPrototypeOf(i,_s.prototype):i.type==="decl"?Object.setPrototypeOf(i,ar.prototype):i.type==="comment"?Object.setPrototypeOf(i,rr.prototype):i.type==="root"&&Object.setPrototypeOf(i,or.prototype),i[sr]=!0,i.nodes&&i.nodes.forEach(e=>{Ae.rebuild(e)})};let mc=We,dr,ur,It=class extends mc{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new dr(new ur,this,e).stringify()}};It.registerLazyResult=i=>{dr=i};It.registerProcessor=i=>{ur=i};var Cs=It;It.default=It;let ns=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 fr=ns;ns.default=ns;let dc=fr,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 Hi=39,ha=34,Xt=92,pa=47,Yt=10,bt=32,Qt=12,ei=9,ti=13,uc=91,fc=93,hc=40,pc=41,gc=123,Nc=125,bc=59,vc=42,yc=58,xc=64,ii=/[\t\n\f\r "#'()/;[\\\]{}]/g,si=/[\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,n,r,o,l,c,m,u,f,g,_,y=s.length,h=0,A=[],M=[];function I(){return h}function x(D){throw e.error("Unclosed "+D,h)}function E(){return M.length===0&&h>=y}function $(D){if(M.length)return M.pop();if(h>=y)return;let O=D?D.ignoreUnclosed:!1;switch(n=s.charCodeAt(h),n){case Yt:case bt:case ei:case ti:case Qt:{r=h;do r+=1,n=s.charCodeAt(r);while(n===bt||n===Yt||n===ei||n===ti||n===Qt);_=["space",s.slice(h,r)],h=r-1;break}case uc:case fc:case gc:case Nc:case yc:case bc:case pc:{let B=String.fromCharCode(n);_=[B,B,h];break}case hc:{if(f=A.length?A.pop()[1]:"",g=s.charCodeAt(h+1),f==="url"&&g!==Hi&&g!==ha&&g!==bt&&g!==Yt&&g!==ei&&g!==Qt&&g!==ti){r=h;do{if(m=!1,r=s.indexOf(")",r+1),r===-1)if(a||O){r=h;break}else x("bracket");for(u=r;s.charCodeAt(u-1)===Xt;)u-=1,m=!m}while(m);_=["brackets",s.slice(h,r+1),h,r],h=r}else r=s.indexOf(")",h+1),l=s.slice(h,r+1),r===-1||wc.test(l)?_=["(","(",h]:(_=["brackets",l,h,r],h=r);break}case Hi:case ha:{o=n===Hi?"'":'"',r=h;do{if(m=!1,r=s.indexOf(o,r+1),r===-1)if(a||O){r=h+1;break}else x("string");for(u=r;s.charCodeAt(u-1)===Xt;)u-=1,m=!m}while(m);_=["string",s.slice(h,r+1),h,r],h=r;break}case xc:{ii.lastIndex=h+1,ii.test(s),ii.lastIndex===0?r=s.length-1:r=ii.lastIndex-2,_=["at-word",s.slice(h,r+1),h,r],h=r;break}case Xt:{for(r=h,c=!0;s.charCodeAt(r+1)===Xt;)r+=1,c=!c;if(n=s.charCodeAt(r+1),c&&n!==pa&&n!==bt&&n!==Yt&&n!==ei&&n!==ti&&n!==Qt&&(r+=1,ga.test(s.charAt(r)))){for(;ga.test(s.charAt(r+1));)r+=1;s.charCodeAt(r+1)===bt&&(r+=1)}_=["word",s.slice(h,r+1),h,r],h=r;break}default:{n===pa&&s.charCodeAt(h+1)===vc?(r=s.indexOf("*/",h+2)+1,r===0&&(a||O?r=s.length:x("comment")),_=["comment",s.slice(h,r+1),h,r],h=r):(si.lastIndex=h+1,si.test(s),si.lastIndex===0?r=s.length-1:r=si.lastIndex-2,_=["word",s.slice(h,r+1),h,r],A.push(_),h=r);break}}return h++,_}function R(D){M.push(D)}return{back:R,endOfFile:E,nextToken:$,position:I}};let hr=We,pi=class extends hr{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;hr.registerAtRule(pi);let pr=We,gr,Nr,lt=class extends pr{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 n of a)n.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 gr(new Nr,this,e).stringify()}};lt.registerLazyResult=i=>{gr=i};lt.registerProcessor=i=>{Nr=i};var Ut=lt;lt.default=lt;pr.registerRoot(lt);let Rt={comma(i){return Rt.split(i,[","],!0)},space(i){let e=[" ",`
|
|
1538
|
-
`," "];return Rt.split(i,e)},split(i,e,t){let s=[],a="",n=!1,r=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==="("?r+=1:m===")"?r>0&&(r-=1):r===0&&e.includes(m)&&(n=!0),n?(a!==""&&s.push(a.trim()),a="",n=!1):a+=m;return(t||a!=="")&&s.push(a.trim()),s}};var br=Rt;Rt.default=Rt;let vr=We,Sc=br,gi=class extends vr{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;vr.registerRule(gi);let Cc=Si,Ec=_c,Ac=Ei,kc=As,$c=Ut,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 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 s,a,n,r=!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(n=l.length-1,a=l[n];a&&a[0]==="space";)a=l[--n];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()){r=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),r&&(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 n=t-1;n>=0&&(a=e[n],!(a[0]!=="space"&&(s+=1,s===2)));n--);throw this.input.error("Missed semicolon",a[0]==="word"?a[3]+1:a[2])}colon(e){let t=0,s,a,n;for(let[r,o]of e.entries()){if(s=o,a=s[0],a==="("&&(t+=1),a===")"&&(t-=1),t===0&&a===":")if(!n)this.doubleColon(s);else{if(n[0]==="word"&&n[1]==="progid")continue;return r}n=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 n;for(;e.length;)if(n=e.shift(),n[0]===":"){s.raws.between+=n[1];break}else n[0]==="word"&&/\w/.test(n[1])&&this.unknownWord([n]),s.raws.between+=n[1];(s.prop[0]==="_"||s.prop[0]==="*")&&(s.raws.before+=s.prop[0],s.prop=s.prop.slice(1));let r=[],o;for(;e.length&&(o=e[0][0],!(o!=="space"&&o!=="comment"));)r.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(n=e[c],n[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(n[1].toLowerCase()==="important"){let m=e.slice(0),u="";for(let f=c;f>0;f--){let g=m[f][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(n[0]!=="space"&&n[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(s.raws.between+=r.map(c=>c[1]).join(""),r=[]),this.raw(s,"value",r.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,n=null,r=[],o=e[1].startsWith("--"),l=[],c=e;for(;c;){if(s=c[0],l.push(c),s==="("||s==="[")n||(n=c),r.push(s==="("?")":"]");else if(o&&a&&s==="{")n||(n=c),r.push("}");else if(r.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===r[r.length-1]&&(r.pop(),r.length===0&&(n=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),r.length>0&&this.unclosedBracket(n),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 n,r,o=s.length,l="",c=!0,m,u;for(let f=0;f<o;f+=1)n=s[f],r=n[0],r==="space"&&f===o-1&&!a?c=!1:r==="comment"?(u=s[f-1]?s[f-1][0]:"empty",m=s[f+1]?s[f+1][0]:"empty",!ba[u]&&!ba[m]?l.slice(-1)===","?c=!1:l+=n[1]:c=!1):l+=n[1];if(!c){let f=s.reduce((g,_)=>g+_[1],"");e.raws[t]={raw:f,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 Ic=Mc;let Rc=We,Lc=Ic,Dc=Ci;function Ni(i,e){let t=new Dc(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:Pc}=Vt,Tc=tr,Bc=wi,zc=We,jc=Cs,va=Es,Hc=$s,Fc=Ut;const Vc={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 yr(i){let e=!1,t=Vc[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=yr(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 xr{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 xr||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 n=Hc;s.syntax&&(n=s.syntax.parse),s.parser&&(n=s.parser),n.parse&&(n=n.parse);try{a=n(t,s)}catch(r){this.processed=!0,this.error=r}a&&!a[Pc]&&zc.rebuild(a)}this.result=new va(e,a,s),this.helpers={...cs,postcss:cs,result:this.result},this.plugins=this.processor.plugins.map(n=>typeof n=="object"&&n.prepare?{...n,...n.prepare(this.result)}:n)}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 n=t[t.length-1].node;throw this.handleError(a,n)}}}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(n=>s(n,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=Bc;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let a=new Tc(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 n;try{n=a(t,this.helpers)}catch(r){throw this.handleError(r,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(vt(n))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[r,o]=a[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===a.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=r;try{return o(s.toProxy(),this.helpers)}catch(l){throw this.handleError(l,s)}}if(t.iterator!==0){let r=t.iterator,o;for(;o=s.nodes[s.indexes[r]];)if(s.indexes[r]+=1,!o[xe]){o[xe]=!0,e.push(ya(o));return}t.iterator=0,delete s.indexes[r]}let n=t.events;for(;t.eventIndex<n.length;){let r=n[t.eventIndex];if(t.eventIndex+=1,r===ct){s.nodes&&s.nodes.length&&(s[xe]=!0,t.iterator=s.getIterator());return}else if(this.listeners[r]){t.visitors=this.listeners[r];return}}e.pop()}walkSync(e){e[xe]=!0;let t=yr(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 wr=mt;mt.default=mt;Fc.registerLazyResult(mt);jc.registerLazyResult(mt);let Wc=tr,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,n=Kc;this.result=new Jc(this._processor,a,this._opts),this.result.css=t;let r=this;Object.defineProperty(this.result,"root",{get(){return r.root}});let o=new Wc(n,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=wr,Qc=Cs,em=Ut,Lt=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=Lt;Lt.default=Lt;em.registerProcessor(Lt);Qc.registerProcessor(Lt);let im=Si,sm=Za,am=Ei,rm=As,nm=Ci,om=Ut,lm=ks;function Dt(i,e){if(Array.isArray(i))return i.map(a=>Dt(a));let{inputs:t,...s}=i;if(t){e=[];for(let a of t){let n={...a,__proto__:nm.prototype};n.map&&(n.map={...n.map,__proto__:sm.prototype}),e.push(n)}}if(s.nodes&&(s.nodes=i.nodes.map(a=>Dt(a,e))),s.source){let{inputId:a,...n}=s.source;s.source=n,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 rm(s);throw new Error("Unknown node type: "+i.type)}var cm=Dt;Dt.default=Dt;var xa={};let mm=ws,_r=Si,dm=wr,um=We,Os=tm,fm=wi,hm=cm,Sr=Cs,pm=fr,Cr=Ei,Er=As,gm=Es,Nm=Ci,bm=$s,vm=br,Ar=ks,kr=Ut,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(...r){console&&console.warn&&!s&&(s=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
1539
|
+
`),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),s=e.root||mi(e.file),a;this.mapOpts.sourcesContent===!1?(a=new Xa(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=ci.fromSourceMap(e)}else this.map=new ci({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 ci({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(`
|
|
1540
|
+
`),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?mi(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(s=mi(Qa(s,this.mapOpts.annotation)));let a=Ya(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;en==="\\"&&(e=e.replace(/\\/g,"/"));let s=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,s),s}};var tn=oc;let lc=_i,ns=class extends lc{constructor(e){super(e),this.type="comment"}};var Ei=ns;ns.default=ns;let{isClean:sn,my:an}=Vt,nn=Si,rn=Ei,cc=_i,on,_s,Ss,ln;function cn(i){return i.map(e=>(e.nodes&&(e.nodes=cn(e.nodes)),delete e.source,e))}function mn(i){if(i[sn]=!1,i.proxyOf.nodes)for(let e of i.proxyOf.nodes)mn(e)}let Ae=class dn 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=cn(on(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 nn(e)]}else if(e.selector)e=[new _s(e)];else if(e.name)e=[new Ss(e)];else if(e.text)e=[new rn(e)];else throw new Error("Unknown node type in node creation");return e.map(a=>(a[an]||dn.rebuild(a),a=a.proxyOf,a.parent&&a.parent.removeChild(a),a[sn]&&mn(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]}};Ae.registerParse=i=>{on=i};Ae.registerRule=i=>{_s=i};Ae.registerAtRule=i=>{Ss=i};Ae.registerRoot=i=>{ln=i};var We=Ae;Ae.default=Ae;Ae.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,Ss.prototype):i.type==="rule"?Object.setPrototypeOf(i,_s.prototype):i.type==="decl"?Object.setPrototypeOf(i,nn.prototype):i.type==="comment"?Object.setPrototypeOf(i,rn.prototype):i.type==="root"&&Object.setPrototypeOf(i,ln.prototype),i[an]=!0,i.nodes&&i.nodes.forEach(e=>{Ae.rebuild(e)})};let mc=We,un,hn,It=class extends mc{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new un(new hn,this,e).stringify()}};It.registerLazyResult=i=>{un=i};It.registerProcessor=i=>{hn=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 fn=rs;rs.default=rs;let dc=fn,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 Fi=39,fa=34,Xt=92,pa=47,Yt=10,bt=32,Qt=12,ei=9,ti=13,uc=91,hc=93,fc=40,pc=41,gc=123,Nc=125,bc=59,vc=42,yc=58,xc=64,ii=/[\t\n\f\r "#'()/;[\\\]{}]/g,si=/[\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=[],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=s.charCodeAt(f),r){case Yt:case bt:case ei:case ti:case Qt:{n=f;do n+=1,r=s.charCodeAt(n);while(r===bt||r===Yt||r===ei||r===ti||r===Qt);_=["space",s.slice(f,n)],f=n-1;break}case uc:case hc:case gc:case Nc:case yc:case bc:case pc:{let B=String.fromCharCode(r);_=[B,B,f];break}case fc:{if(h=A.length?A.pop()[1]:"",g=s.charCodeAt(f+1),h==="url"&&g!==Fi&&g!==fa&&g!==bt&&g!==Yt&&g!==ei&&g!==Qt&&g!==ti){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)===Xt;)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 Fi:case fa:{o=r===Fi?"'":'"',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)===Xt;)u-=1,m=!m}while(m);_=["string",s.slice(f,n+1),f,n],f=n;break}case xc:{ii.lastIndex=f+1,ii.test(s),ii.lastIndex===0?n=s.length-1:n=ii.lastIndex-2,_=["at-word",s.slice(f,n+1),f,n],f=n;break}case Xt:{for(n=f,c=!0;s.charCodeAt(n+1)===Xt;)n+=1,c=!c;if(r=s.charCodeAt(n+1),c&&r!==pa&&r!==bt&&r!==Yt&&r!==ei&&r!==ti&&r!==Qt&&(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):(si.lastIndex=f+1,si.test(s),si.lastIndex===0?n=s.length-1:n=si.lastIndex-2,_=["word",s.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 pn=We,pi=class extends pn{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;pn.registerAtRule(pi);let gn=We,Nn,bn,lt=class extends gn{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 Nn(new bn,this,e).stringify()}};lt.registerLazyResult=i=>{Nn=i};lt.registerProcessor=i=>{bn=i};var Ut=lt;lt.default=lt;gn.registerRoot(lt);let Rt={comma(i){return Rt.split(i,[","],!0)},space(i){let e=[" ",`
|
|
1541
|
+
`," "];return Rt.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 vn=Rt;Rt.default=Rt;let yn=We,Sc=vn,gi=class extends yn{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;yn.registerRule(gi);let Cc=Si,Ec=_c,Ac=Ei,kc=As,$c=Ut,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 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 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 Ic=Mc;let Rc=We,Lc=Ic,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}=Vt,Tc=tn,Bc=wi,zc=We,jc=Cs,va=Es,Fc=$s,Hc=Ut;const Vc={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 xn(i){let e=!1,t=Vc[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=xn(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 wn{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 wn||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=Fc;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=Bc;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let a=new Tc(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=xn(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 _n=mt;mt.default=mt;Hc.registerLazyResult(mt);jc.registerLazyResult(mt);let Wc=tn,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=_n,Qc=Cs,em=Ut,Lt=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=Lt;Lt.default=Lt;em.registerProcessor(Lt);Qc.registerProcessor(Lt);let im=Si,sm=Za,am=Ei,nm=As,rm=Ci,om=Ut,lm=ks;function Pt(i,e){if(Array.isArray(i))return i.map(a=>Pt(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=>Pt(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=Pt;Pt.default=Pt;var xa={};let mm=ws,Sn=Si,dm=_n,um=We,Os=tm,hm=wi,fm=cm,Cn=Cs,pm=fn,En=Ei,An=As,gm=Es,Nm=Ci,bm=$s,vm=vn,kn=ks,$n=Ut,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:
|
|
1539
1542
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),xa.LANG&&xa.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
1540
|
-
https://www.w3ctech.com/topic/2226`));let o=t(...r);return o.postcssPlugin=e,o.postcssVersion=new Os().version,o}let n;return Object.defineProperty(a,"postcss",{get(){return n||(n=a()),n}}),a.process=function(r,o,l){return L([a(l)]).process(r,o)},a};L.stringify=fm;L.parse=bm;L.fromJSON=hm;L.list=vm;L.comment=i=>new Cr(i);L.atRule=i=>new Er(i);L.decl=i=>new _r(i);L.rule=i=>new Ar(i);L.root=i=>new kr(i);L.document=i=>new Sr(i);L.CssSyntaxError=mm;L.Declaration=_r;L.Container=um;L.Processor=Os;L.Document=Sr;L.Comment=Cr;L.Warning=pm;L.AtRule=Er;L.Result=gm;L.Input=Nm;L.Rule=Ar;L.Root=kr;L.Node=ym;dm.registerPostcss(L);var xm=L;L.default=L;const H=Wa(xm);H.stringify;H.fromJSON;H.plugin;H.parse;H.list;H.document;H.comment;H.atRule;H.rule;H.decl;H.root;H.CssSyntaxError;H.Declaration;H.Container;H.Processor;H.Document;H.Comment;H.Warning;H.AtRule;H.Result;H.Input;H.Rule;H.Root;H.Node;var wm=function(e){const t=e.prefix,s=/\s+$/.test(t)?t:`${t} `,a=e.ignoreFiles?[].concat(e.ignoreFiles):[],n=e.includeFiles?[].concat(e.includeFiles):[];return function(r){a.length&&r.source.input.file&&wa(r.source.input.file,a)||n.length&&r.source.input.file&&!wa(r.source.input.file,n)||r.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,r.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=Wa(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 $r(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)&&$r(t)}),i}class _a{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Or(i){return i.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Ie(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+=Or(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 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(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=>{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 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 Mr(i){return Ke("(?=",i,")")}function Im(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 Is(...i){return"("+(Lm(i).capture?"":"?:")+i.map(e=>Pt(e)).join("|")+")"}function Ir(i){return new RegExp(i.toString()+"|").exec("").length-1}function Dm(i,e){const t=i&&i.exec(e);return t&&t.index===0}const Pm=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Rs(i,{joinWith:e}){let t=0;return i.map(s=>{t+=1;const a=t;let n=Pt(s),r="";for(;n.length>0;){const o=Pm.exec(n);if(!o){r+=n;break}r+=n.substring(0,o.index),n=n.substring(o.index+o[0].length),o[0][0]==="\\"&&o[1]?r+="\\"+String(Number(o[1])+a):(r+=o[0],o[0]==="("&&t++)}return r}).map(s=>`(${s})`).join(e)}const Tm=/\b\B/,Rr="[a-zA-Z]\\w*",Ls="[a-zA-Z_]\\w*",Lr="\\b\\d+(\\.\\d+)?",Dr="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Pr="\\b(0b[01]+)",Bm="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",zm=(i={})=>{const e=/^#![ ]*\//;return i.binary&&(i.begin=Ke(e,/.*\b/,i.binary,/\b.*/)),Ie({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,s)=>{t.index!==0&&s.ignoreMatch()}},i)},Tt={begin:"\\\\[\\s\\S]",relevance:0},jm={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Tt]},Hm={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Tt]},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=Ie({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=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 s.contains.push({begin:Ke(/[ ]+/,"(",a,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),s},Vm=Ai("//","$"),Um=Ai("/\\*","\\*/"),Gm=Ai("#","$"),Wm={scope:"number",begin:Lr,relevance:0},Km={scope:"number",begin:Dr,relevance:0},qm={scope:"number",begin:Pr,relevance:0},Jm={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Tt,{begin:/\[/,end:/\]/,relevance:0,contains:[Tt]}]},Zm={scope:"title",begin:Rr,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 ai=Object.freeze({__proto__:null,APOS_STRING_MODE:jm,BACKSLASH_ESCAPE:Tt,BINARY_NUMBER_MODE:qm,BINARY_NUMBER_RE:Pr,COMMENT:Ai,C_BLOCK_COMMENT_MODE:Um,C_LINE_COMMENT_MODE:Vm,C_NUMBER_MODE:Km,C_NUMBER_RE:Dr,END_SAME_AS_BEGIN:Qm,HASH_COMMENT_MODE:Gm,IDENT_RE:Rr,MATCH_NOTHING_RE:Tm,METHOD_GUARD:Ym,NUMBER_MODE:Wm,NUMBER_RE:Lr,PHRASAL_WORDS_MODE:Fm,QUOTE_STRING_MODE:Hm,REGEXP_MODE:Jm,RE_STARTERS_RE:Bm,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=Is(...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 rd(i,e){i.relevance===void 0&&(i.relevance=1)}const nd=(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,Mr(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 Tr(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(n){Object.assign(s,Tr(i[n],e,n))}),s;function a(n,r){e&&(r=r.map(o=>o.toLowerCase())),r.forEach(function(o){const l=o.split("|");s[l[0]]=[n,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 Br(i,e,{key:t}){let s=0;const a=i[t],n={},r={};for(let o=1;o<=e.length;o++)r[o+s]=a[o],n[o+s]=!0,s+=Ir(e[o-1]);i[t]=r,i[t]._emit=n,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;Br(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;Br(i,i.end,{key:"endScope"}),i.end=Rs(i.end,{joinWith:""})}}function fd(i){i.scope&&typeof i.scope=="object"&&i.scope!==null&&(i.beginScope=i.scope,delete i.scope)}function hd(i){fd(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(r,o){return new RegExp(Pt(r),"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+=Ir(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,f)=>f>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(r){const o=new s;return r.contains.forEach(l=>o.addRule(l.begin,{rule:l,type:"begin"})),r.terminatorEnd&&o.addRule(r.terminatorEnd,{type:"end"}),r.illegal&&o.addRule(r.illegal,{type:"illegal"}),o}function n(r,o){const l=r;if(r.isCompiled)return l;[td,ad,hd,nd].forEach(m=>m(r,o)),i.compilerExtensions.forEach(m=>m(r,o)),r.__beforeBegin=null,[id,sd,rd].forEach(m=>m(r,o)),r.isCompiled=!0;let c=null;return typeof r.keywords=="object"&&r.keywords.$pattern&&(r.keywords=Object.assign({},r.keywords),c=r.keywords.$pattern,delete r.keywords.$pattern),c=c||/\w+/,r.keywords&&(r.keywords=Tr(r.keywords,i.case_insensitive)),l.keywordPatternRe=e(c,!0),o&&(r.begin||(r.begin=/\B|\b/),l.beginRe=e(l.begin),!r.end&&!r.endsWithParent&&(r.end=/\B|\b/),r.end&&(l.endRe=e(l.end)),l.terminatorEnd=Pt(l.end)||"",r.endsWithParent&&o.terminatorEnd&&(l.terminatorEnd+=(r.end?"|":"")+o.terminatorEnd)),r.illegal&&(l.illegalRe=e(r.illegal)),r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map(function(m){return gd(m==="self"?r:m)})),r.contains.forEach(function(m){n(m,l)}),r.starts&&n(r.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=Ie(i.classNameAliases||{}),n(i)}function zr(i){return i?i.endsWithParent||zr(i.starts):!1}function gd(i){return i.variants&&!i.cachedVariants&&(i.cachedVariants=i.variants.map(function(e){return Ie(i,{variants:null},e)})),i.cachedVariants?i.cachedVariants:zr(i)?Ie(i,{starts:i.starts?Ie(i.starts):null}):Object.isFrozen(i)?Ie(i):i}var Nd="11.9.0";class bd extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Fi=Or,ka=Ie,$a=Symbol("nomatch"),vd=7,jr=function(i){const e=Object.create(null),t=Object.create(null),s=[];let a=!0;const n="Could not find the language '{}', did you forget to load/include a language module?",r={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(n.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.
|
|
1541
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),z=d,k=N),w===void 0&&(w=!0);const q={code:k,language:z};te("before:highlight",q);const oe=q.result?q.result:u(q.language,q.code,w);return oe.code=q.code,te("after:highlight",oe),oe}function u(d,N,w,k){const z=Object.create(null);function q(p,b){return p.keywords[b]}function oe(){if(!S.keywords){U.addText(P);return}let p=0;S.keywordPatternRe.lastIndex=0;let b=S.keywordPatternRe.exec(P),C="";for(;b;){C+=P.substring(p,b.index);const T=le.case_insensitive?b[0].toLowerCase():b[0],Y=q(S,T);if(Y){const[Se,Jr]=Y;if(U.addText(C),C="",z[T]=(z[T]||0)+1,z[T]<=vd&&(Te+=Jr),Se.startsWith("_"))C+=b[0];else{const Zr=le.classNameAliases[Se]||Se;X(b[0],Zr)}}else C+=b[0];p=S.keywordPatternRe.lastIndex,b=S.keywordPatternRe.exec(P)}C+=P.substring(p),U.addText(C)}function pe(){if(P==="")return;let p=null;if(typeof S.subLanguage=="string"){if(!e[S.subLanguage]){U.addText(P);return}p=u(S.subLanguage,P,!0,ve[S.subLanguage]),ve[S.subLanguage]=p._top}else p=g(P,S.subLanguage.length?S.subLanguage:null);S.relevance>0&&(Te+=p.relevance),U.__addSublanguage(p._emitter,p.language)}function V(){S.subLanguage!=null?pe():oe(),P=""}function X(p,b){p!==""&&(U.startScope(b),U.addText(p),U.endScope())}function Pe(p,b){let C=1;const T=b.length-1;for(;C<=T;){if(!p._emit[C]){C++;continue}const Y=le.classNameAliases[p[C]]||p[C],Se=b[C];Y?X(Se,Y):(P=Se,oe(),P=""),C++}}function be(p,b){return p.scope&&typeof p.scope=="string"&&U.openNode(le.classNameAliases[p.scope]||p.scope),p.beginScope&&(p.beginScope._wrap?(X(P,le.classNameAliases[p.beginScope._wrap]||p.beginScope._wrap),P=""):p.beginScope._multi&&(Pe(p.beginScope,b),P="")),S=Object.create(p,{parent:{value:S}}),S}function qe(p,b,C){let T=Dm(p.endRe,C);if(T){if(p["on:end"]){const Y=new _a(p);p["on:end"](b,Y),Y.isMatchIgnored&&(T=!1)}if(T){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?(P+=p[0],1):(Xe=!0,0)}function ht(p){const b=p[0],C=p.rule,T=new _a(C),Y=[C.__beforeBegin,C["on:begin"]];for(const Se of Y)if(Se&&(Se(p,T),T.isMatchIgnored))return $i(b);return C.skip?P+=b:(C.excludeBegin&&(P+=b),V(),!C.returnBegin&&!C.excludeBegin&&(P=b)),be(C,p),C.returnBegin?0:b.length}function Oi(p){const b=p[0],C=N.substring(p.index),T=qe(S,p,C);if(!T)return $a;const Y=S;S.endScope&&S.endScope._wrap?(V(),X(b,S.endScope._wrap)):S.endScope&&S.endScope._multi?(V(),Pe(S.endScope,p)):Y.skip?P+=b:(Y.returnEnd||Y.excludeEnd||(P+=b),V(),Y.excludeEnd&&(P=b));do S.scope&&U.closeNode(),!S.skip&&!S.subLanguage&&(Te+=S.relevance),S=S.parent;while(S!==T.parent);return T.starts&&be(T.starts,p),Y.returnEnd?0:b.length}function Gt(){const p=[];for(let b=S;b!==le;b=b.parent)b.scope&&p.unshift(b.scope);p.forEach(b=>U.openNode(b))}let Je={};function Wt(p,b){const C=b&&b[0];if(P+=p,C==null)return V(),0;if(Je.type==="begin"&&b.type==="end"&&Je.index===b.index&&C===""){if(P+=N.slice(b.index,b.index+1),!a){const T=new Error(`0 width match regex (${d})`);throw T.languageName=d,T.badRule=Je.rule,T}return 1}if(Je=b,b.type==="begin")return ht(b);if(b.type==="illegal"&&!w){const T=new Error('Illegal lexeme "'+C+'" for mode "'+(S.scope||"<unnamed>")+'"');throw T.mode=S,T}else if(b.type==="end"){const T=Oi(b);if(T!==$a)return T}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 P+=C,C.length}const le=O(d);if(!le)throw Fe(n.replace("{}",d)),new Error('Unknown language: "'+d+'"');const Kt=pd(le);let pt="",S=k||Kt;const ve={},U=new o.__emitter(o);Gt();let P="",Te=0,ge=0,Ze=0,Xe=!1;try{if(le.__emitTokens)le.__emitTokens(N,U);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=Wt(b,p);ge=p.index+C}Wt(N.substring(ge))}return U.finalize(),pt=U.toHTML(),{language:d,value:pt,relevance:Te,illegal:!1,_emitter:U,_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:U};if(a)return{language:d,value:Fi(N),illegal:!1,relevance:0,errorRaised:p,_emitter:U,_top:S};throw p}}function f(d){const N={value:Fi(d),illegal:!1,relevance:0,_top:r,_emitter:new o.__emitter(o)};return N._emitter.addText(d),N}function g(d,N){N=N||o.languages||Object.keys(e);const w=f(d),k=N.filter(O).filter(G).map(V=>u(V,d,!1));k.unshift(w);const z=k.sort((V,X)=>{if(V.relevance!==X.relevance)return X.relevance-V.relevance;if(V.language&&X.language){if(O(V.language).supersetOf===X.language)return 1;if(O(X.language).supersetOf===V.language)return-1}return 0}),[q,oe]=z,pe=q;return pe.secondBest=oe,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 h(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(i)}catch(k){if(Fe("Language definition for '{}' could not be registered.".replace("{}",d)),a)Fe(k);else throw k;w=r}w.name||(w.name=d),e[d]=w,w.rawDefinition=N.bind(null,i),w.aliases&&B(w.aliases,{languageName:d})}function R(d){delete e[d];for(const N of Object.keys(t))t[N]===d&&delete t[N]}function D(){return Object.keys(e)}function O(d){return d=(d||"").toLowerCase(),e[d]||e[t[d]]}function B(d,{languageName:N}){typeof d=="string"&&(d=[d]),d.forEach(w=>{t[w.toLowerCase()]=N})}function G(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 K(d){ee(d),s.push(d)}function he(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:h,initHighlighting:A,initHighlightingOnLoad:M,registerLanguage:$,unregisterLanguage:R,listLanguages:D,getLanguage:O,registerAliases:B,autoDetection:G,inherit:ka,addPlugin:K,removePlugin:he}),i.debugMode=function(){a=!1},i.safeMode=function(){a=!0},i.versionString=Nd,i.regex={concat:Ke,lookahead:Mr,either:Is,optional:Rm,anyNumberOfTimes:Im};for(const d in ai)typeof ai[d]=="object"&&$r(ai[d]);return Object.assign(i,ai),i},dt=jr({});dt.newInstance=()=>jr({});var yd=dt;dt.HighlightJS=dt;dt.default=dt;const ki=Am(yd),vi="[A-Za-z$_][0-9A-Za-z$_]*",Hr=["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"],Fr=["true","false","null","undefined","NaN","Infinity"],Vr=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Ur=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Gr=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Wr=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Kr=[].concat(Gr,Vr,Ur);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:"</>"},n=/<[A-Za-z0-9\\._:-]+\s*\/>/,r={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 q=d.input.substring(w);if(z=q.match(/^\s*=/)){N.ignoreMatch();return}if((z=q.match(/^\s+extends\s+/))&&z.index===0){N.ignoreMatch();return}}},o={$pattern:vi,keyword:Hr,literal:Fr,built_in:Kr,"variable.language":Wr},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},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},g={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},_={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,f],subLanguage:"css"}},y={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},h={className:"string",begin:"`",end:"`",contains:[i.BACKSLASH_ESCAPE,f]},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]},M=[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,g,_,y,h,{match:/\$\d+/},u];f.contains=M.concat({begin:/\{/,end:/\}/,keywords:o,contains:["self"].concat(M)});const I=[].concat(A,f.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+/,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:{_:[...Vr,...Ur]}},D={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:/%/},B={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function G(d){return e.concat("(?!",d.join("|"),")")}const ee={match:e.concat(/\b/,G([...Gr,"super","import"]),s,e.lookahead(/\(/)),className:"title.function",relevance:0},K={begin:e.concat(/\./,e.lookahead(e.concat(s,/(?![0-9A-Za-z$_(])/))),end:s,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},he={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}),D,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,g,_,y,h,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:n},{begin:r.begin,"on:begin":r.isTrulyOpeningTag,end:r.end}],subLanguage:"xml",contains:[{begin:r.begin,end:r.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},K,{match:"\\$"+s,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[E]},ee,B,$,he,{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]},n={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:s},contains:[e.exports.CLASS_REFERENCE]},r={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:Hr.concat(o),literal:Fr,built_in:Kr.concat(s),"variable.language":Wr},c={className:"meta",begin:"@"+t},m=(f,g,_)=>{const y=f.contains.findIndex(h=>h.label===g);if(y===-1)throw new Error("can not find mode to replace");f.contains.splice(y,1,_)};Object.assign(e.keywords,l),e.exports.PARAMS_CONTAINS.push(c),e.contains=e.contains.concat([c,a,n]),m(e,"shebang",i.SHEBANG()),m(e,"use_strict",r);const u=e.contains.find(f=>f.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]+;/},n={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},r=i.inherit(n,{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:[n,l,o,r,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[n,r,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",n=/@-?\w[\w]*(-\w+)*/,r="[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:"\\."+r,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:n},{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 qr=document.createElement("style");qr.innerText=[Cm,Em].join(`
|
|
1542
|
-
`);document.head.appendChild(
|
|
1543
|
-
`).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=
|
|
1543
|
+
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 En(i);L.atRule=i=>new An(i);L.decl=i=>new Sn(i);L.rule=i=>new kn(i);L.root=i=>new $n(i);L.document=i=>new Cn(i);L.CssSyntaxError=mm;L.Declaration=Sn;L.Container=um;L.Processor=Os;L.Document=Cn;L.Comment=En;L.Warning=pm;L.AtRule=An;L.Result=gm;L.Input=Nm;L.Rule=kn;L.Root=$n;L.Node=ym;dm.registerPostcss(L);var xm=L;L.default=L;const F=Wa(xm);F.stringify;F.fromJSON;F.plugin;F.parse;F.list;F.document;F.comment;F.atRule;F.rule;F.decl;F.root;F.CssSyntaxError;F.Declaration;F.Container;F.Processor;F.Document;F.Comment;F.Warning;F.AtRule;F.Result;F.Input;F.Rule;F.Root;F.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=Wa(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 On(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)&&On(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,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Ie(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 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(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=>{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 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 Dt(i){return i?typeof i=="string"?i:i.source:null}function In(i){return Ke("(?=",i,")")}function Im(i){return Ke("(?:",i,")*")}function Rm(i){return Ke("(?:",i,")?")}function Ke(...i){return i.map(e=>Dt(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 Is(...i){return"("+(Lm(i).capture?"":"?:")+i.map(e=>Dt(e)).join("|")+")"}function Rn(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=Dt(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 Tm=/\b\B/,Ln="[a-zA-Z]\\w*",Ls="[a-zA-Z_]\\w*",Pn="\\b\\d+(\\.\\d+)?",Dn="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Tn="\\b(0b[01]+)",Bm="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",zm=(i={})=>{const e=/^#![ ]*\//;return i.binary&&(i.begin=Ke(e,/.*\b/,i.binary,/\b.*/)),Ie({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,s)=>{t.index!==0&&s.ignoreMatch()}},i)},Tt={begin:"\\\\[\\s\\S]",relevance:0},jm={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Tt]},Fm={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Tt]},Hm={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=Ie({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=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 s.contains.push({begin:Ke(/[ ]+/,"(",a,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),s},Vm=Ai("//","$"),Um=Ai("/\\*","\\*/"),Gm=Ai("#","$"),Wm={scope:"number",begin:Pn,relevance:0},Km={scope:"number",begin:Dn,relevance:0},qm={scope:"number",begin:Tn,relevance:0},Jm={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Tt,{begin:/\[/,end:/\]/,relevance:0,contains:[Tt]}]},Zm={scope:"title",begin:Ln,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 ai=Object.freeze({__proto__:null,APOS_STRING_MODE:jm,BACKSLASH_ESCAPE:Tt,BINARY_NUMBER_MODE:qm,BINARY_NUMBER_RE:Tn,COMMENT:Ai,C_BLOCK_COMMENT_MODE:Um,C_LINE_COMMENT_MODE:Vm,C_NUMBER_MODE:Km,C_NUMBER_RE:Dn,END_SAME_AS_BEGIN:Qm,HASH_COMMENT_MODE:Gm,IDENT_RE:Ln,MATCH_NOTHING_RE:Tm,METHOD_GUARD:Ym,NUMBER_MODE:Wm,NUMBER_RE:Pn,PHRASAL_WORDS_MODE:Hm,QUOTE_STRING_MODE:Fm,REGEXP_MODE:Jm,RE_STARTERS_RE:Bm,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=Is(...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,In(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 Bn(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,Bn(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={},He=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 zn(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+=Rn(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 He("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),bi;if(typeof i.beginScope!="object"||i.beginScope===null)throw He("beginScope must be object"),bi;zn(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 He("skip, excludeEnd, returnEnd not compatible with endScope: {}"),bi;if(typeof i.endScope!="object"||i.endScope===null)throw He("endScope must be object"),bi;zn(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(Dt(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+=Rn(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=Bn(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=Dt(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=Ie(i.classNameAliases||{}),r(i)}function jn(i){return i?i.endsWithParent||jn(i.starts):!1}function gd(i){return i.variants&&!i.cachedVariants&&(i.cachedVariants=i.variants.map(function(e){return Ie(i,{variants:null},e)})),i.cachedVariants?i.cachedVariants:jn(i)?Ie(i,{starts:i.starts?Ie(i.starts):null}):Object.isFrozen(i)?Ie(i):i}var Nd="11.9.0";class bd extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Hi=Mn,ka=Ie,$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: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.
|
|
1544
|
+
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 T=ce.case_insensitive?b[0].toLowerCase():b[0],Y=J(S,T);if(Y){const[Se,Zn]=Y;if(G.addText(C),C="",z[T]=(z[T]||0)+1,z[T]<=vd&&(Te+=Zn),Se.startsWith("_"))C+=b[0];else{const Xn=ce.classNameAliases[Se]||Se;X(b[0],Xn)}}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&&(Te+=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 T=b.length-1;for(;C<=T;){if(!p._emit[C]){C++;continue}const Y=ce.classNameAliases[p[C]]||p[C],Se=b[C];Y?X(Se,Y):(D=Se,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 T=Pm(p.endRe,C);if(T){if(p["on:end"]){const Y=new _a(p);p["on:end"](b,Y),Y.isMatchIgnored&&(T=!1)}if(T){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,T=new _a(C),Y=[C.__beforeBegin,C["on:begin"]];for(const Se of Y)if(Se&&(Se(p,T),T.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),T=qe(S,p,C);if(!T)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&&(Te+=S.relevance),S=S.parent;while(S!==T.parent);return T.starts&&be(T.starts,p),Y.returnEnd?0:b.length}function Gt(){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 Wt(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 T=new Error(`0 width match regex (${d})`);throw T.languageName=d,T.badRule=Je.rule,T}return 1}if(Je=b,b.type==="begin")return ft(b);if(b.type==="illegal"&&!w){const T=new Error('Illegal lexeme "'+C+'" for mode "'+(S.scope||"<unnamed>")+'"');throw T.mode=S,T}else if(b.type==="end"){const T=Oi(b);if(T!==$a)return T}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 He(r.replace("{}",d)),new Error('Unknown language: "'+d+'"');const Kt=pd(ce);let pt="",S=k||Kt;const ve={},G=new o.__emitter(o);Gt();let D="",Te=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=Wt(b,p);ge=p.index+C}Wt(N.substring(ge))}return G.finalize(),pt=G.toHTML(),{language:d,value:pt,relevance:Te,illegal:!1,_emitter:G,_top:S}}catch(p){if(p.message&&p.message.includes("Illegal"))return{language:d,value:Hi(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:Hi(N),illegal:!1,relevance:0,errorRaised:p,_emitter:G,_top:S};throw p}}function h(d){const N={value:Hi(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(i)}catch(k){if(He("Language definition for '{}' could not be registered.".replace("{}",d)),a)He(k);else throw k;w=n}w.name||(w.name=d),e[d]=w,w.rawDefinition=N.bind(null,i),w.aliases&&B(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 B(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:M,registerLanguage:$,unregisterLanguage:R,listLanguages:P,getLanguage:O,registerAliases:B,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:In,either:Is,optional:Rm,anyNumberOfTimes:Im};for(const d in ai)typeof ai[d]=="object"&&On(ai[d]);return Object.assign(i,ai),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"],Vn=["true","false","null","undefined","NaN","Infinity"],Un=["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"],Gn=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Wn=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Kn=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],qn=[].concat(Wn,Un,Gn);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:Vn,built_in:qn,"variable.language":Kn},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]},M=[i.APOS_STRING_MODE,i.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+/,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:{_:[...Un,...Gn]}},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:/%/},B={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([...Wn,"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,B,$,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:Vn,built_in:qn.concat(s),"variable.language":Kn},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 Jn=document.createElement("style");Jn.innerText=[Cm,Em].join(`
|
|
1545
|
+
`);document.head.appendChild(Jn);ki.registerLanguage("typescript",wd);ki.registerLanguage("html",_d);ki.registerLanguage("css",Od);function Md(...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 Id(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=Md(yt("Preview",o),yt("HTML",ni("html",n)),...c?[yt(l??"CSS",ni("css",c))]:[],...e.initializer&&e.initializer.content?[yt(e.initializer.label??"TS",ni("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(h=>yt(h.label,ni(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 ni(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(`
|
|
1546
|
+
`).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=F().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;Id(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 Td=`<h1 id="@cas-smartdesign/combo-box">@cas-smartdesign/combo-box</h1>
|
|
1544
1547
|
<p>A combo-box element with the look and feel of the SmartDesign inputs & 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>
|
|
1545
1548
|
<h2 id="attributes">Attributes</h2>
|
|
1546
1549
|
<p><em>(in addition to lit-input)</em></p>
|
|
@@ -1631,7 +1634,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`),z=d,k=N),w===void 0&&(
|
|
|
1631
1634
|
</ul>
|
|
1632
1635
|
<h2 id="lazy-loading">Lazy loading</h2>
|
|
1633
1636
|
<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>
|
|
1634
|
-
`,Bd=document.querySelector("#markdown-container");Bd.innerHTML=Td;Ld(Object.assign({"./examples/1_declarative/index.ts":
|
|
1637
|
+
`,Bd=document.querySelector("#markdown-container");Bd.innerHTML=Td;Ld(Object.assign({"./examples/1_declarative/index.ts":tr,"./examples/2_basic-examples/index.ts":lr,"./examples/3_filtering/index.ts":hr,"./examples/4_lazy_loading/index.ts":xr,"./examples/5_unusual_data/index.ts":Er,"./examples/6_validation_example/index.ts":Mr}),document.querySelector(".markdown-body"));export{Mt as h};
|
|
1635
1638
|
function __vite__mapDeps(indexes) {
|
|
1636
1639
|
if (!__vite__mapDeps.viteFileDeps) {
|
|
1637
1640
|
__vite__mapDeps.viteFileDeps = []
|