@cas-smartdesign/combo-box 7.4.2 → 7.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/combo-box-with-externals.js +48 -72
- package/dist/combo-box-with-externals.js.map +4 -4
- package/dist/combo-box.mjs +75 -82
- package/dist/combo-box.mjs.map +1 -1
- package/dist/docs/2_basic-examples.js +1 -1
- package/dist/docs/6_validation_example.js +1 -1
- package/dist/docs/doc.css +1 -1
- package/dist/docs/doc.mjs +101 -106
- package/npm-third-party-licenses.json +57 -47
- package/package.json +10 -9
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
|
|
1
|
+
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))a(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&a(o)}).observe(document,{childList:!0,subtree:!0});function i(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?r.credentials="include":s.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function a(s){if(s.ep)return;s.ep=!0;const r=i(s);fetch(s.href,r)}})();const rn=`<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,8 +22,8 @@
|
|
|
22
22
|
</form>
|
|
23
23
|
</div>
|
|
24
24
|
</div>
|
|
25
|
-
`,
|
|
26
|
-
`,
|
|
25
|
+
`,nn=`<h3 id="basic-examples">Basic examples</h3>
|
|
26
|
+
`,Ct=`sd-combo-box {
|
|
27
27
|
width: 100%;
|
|
28
28
|
padding-top: 8px;
|
|
29
29
|
--sd-input-validation-message-minheight: 20px;
|
|
@@ -39,7 +39,7 @@ sd-combo-box.legacy-validation-layout {
|
|
|
39
39
|
grid-template-columns: repeat(2, 1fr);
|
|
40
40
|
column-gap: 16px;
|
|
41
41
|
}
|
|
42
|
-
`,
|
|
42
|
+
`,on={mainContent:rn,description:nn,css:Ct},ln=Object.freeze(Object.defineProperty({__proto__:null,default:on},Symbol.toStringTag,{value:"Module"})),cn="modulepreload",mn=function(t,e){return new URL(t,e).href},ea={},Wt=function(e,i,a){let s=Promise.resolve();if(i&&i.length>0){let u=function(n){return Promise.all(n.map(m=>Promise.resolve(m).then(c=>({status:"fulfilled",value:c}),c=>({status:"rejected",reason:c}))))};const o=document.getElementsByTagName("link"),d=document.querySelector("meta[property=csp-nonce]"),h=d?.nonce||d?.getAttribute("nonce");s=u(i.map(n=>{if(n=mn(n,a),n in ea)return;ea[n]=!0;const m=n.endsWith(".css"),c=m?'[rel="stylesheet"]':"";if(!!a)for(let p=o.length-1;p>=0;p--){const N=o[p];if(N.href===n&&(!m||N.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${c}`))return;const f=document.createElement("link");if(f.rel=m?"stylesheet":cn,m||(f.as="script"),f.crossOrigin="",f.href=n,h&&f.setAttribute("nonce",h),document.head.appendChild(f),m)return new Promise((p,N)=>{f.addEventListener("load",p),f.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${n}`)))})}))}function r(o){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=o,window.dispatchEvent(d),!d.defaultPrevented)throw o}return s.then(o=>{for(const d of o||[])d.status==="rejected"&&r(d.reason);return e().catch(r)})},dn=`<div class="grid-example-container" id="basic-examples-container">
|
|
43
43
|
<sd-combo-box id="basic-combobox" label="I am a combo box" item-height="40" placeholder="-- select an option --">
|
|
44
44
|
</sd-combo-box>
|
|
45
45
|
<sd-combo-box
|
|
@@ -64,8 +64,8 @@ sd-combo-box.legacy-validation-layout {
|
|
|
64
64
|
<div style="margin-top: -20px">Latest selection: <span></span></div>
|
|
65
65
|
</div>
|
|
66
66
|
</div>
|
|
67
|
-
`,
|
|
68
|
-
`,
|
|
67
|
+
`,un=`<h3 id="basic-examples">Basic examples</h3>
|
|
68
|
+
`,hn=`import "@cas-smartdesign/combo-box";
|
|
69
69
|
import ComboBox, { ComboBoxValue } from "@cas-smartdesign/combo-box";
|
|
70
70
|
import { ItemData } from "@cas-smartdesign/list-item";
|
|
71
71
|
|
|
@@ -110,14 +110,14 @@ container.querySelectorAll(".trigger-only-example-wrapper").forEach((wrapper) =>
|
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
112
|
});
|
|
113
|
-
`,
|
|
113
|
+
`,fn={mainContent:dn,description:un,css:Ct,initializer:{content:hn,type:"typescript",initialize:()=>Wt(()=>import("./2_basic-examples.js"),[],import.meta.url)}},pn=Object.freeze(Object.defineProperty({__proto__:null,default:fn},Symbol.toStringTag,{value:"Module"})),gn=`<div id="filtering-examples-container">
|
|
114
114
|
<sd-combo-box
|
|
115
115
|
id="custom-property-filtering"
|
|
116
116
|
label="Search in the index property"
|
|
117
117
|
filter-property="index"></sd-combo-box>
|
|
118
118
|
</div>
|
|
119
|
-
`,
|
|
120
|
-
`,
|
|
119
|
+
`,Nn=`<h3 id="advanced-filtering">Advanced filtering</h3>
|
|
120
|
+
`,bn=`import { ItemData } from "@cas-smartdesign/list-item";
|
|
121
121
|
import ComboBox from "@cas-smartdesign/combo-box";
|
|
122
122
|
|
|
123
123
|
const alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");
|
|
@@ -137,7 +137,7 @@ const items: ItemData[] = alphabet.map((letter) => {
|
|
|
137
137
|
|
|
138
138
|
const combobox = document.querySelector("#custom-property-filtering") as ComboBox;
|
|
139
139
|
combobox.items = items;
|
|
140
|
-
`,
|
|
140
|
+
`,yn={mainContent:gn,description:Nn,css:Ct,initializer:{content:bn,type:"typescript",initialize:()=>Wt(()=>import("./3_filtering.js"),[],import.meta.url)}},vn=Object.freeze(Object.defineProperty({__proto__:null,default:yn},Symbol.toStringTag,{value:"Module"})),xn=`<div class="grid-example-container" id="lazy-loading-examples-container">
|
|
141
141
|
<sd-combo-box id="lazy-loading-example" label="Lazy loading with loading indicator & icon" show-icon
|
|
142
142
|
><div class="loader" slot="suffix">
|
|
143
143
|
<div></div>
|
|
@@ -156,8 +156,8 @@ combobox.items = items;
|
|
|
156
156
|
<div style="margin-top: -20px">Latest selection: <span id="trigger-only-selection-message"></span></div>
|
|
157
157
|
</div>
|
|
158
158
|
</div>
|
|
159
|
-
`,
|
|
160
|
-
`,
|
|
159
|
+
`,wn=`<h3 id="lazy-loading-examples">Lazy loading examples</h3>
|
|
160
|
+
`,_n=`.grid {
|
|
161
161
|
display: grid;
|
|
162
162
|
grid-template-columns: repeat(2, 1fr);
|
|
163
163
|
column-gap: 16px;
|
|
@@ -203,7 +203,7 @@ combobox.items = items;
|
|
|
203
203
|
sd-combo-box[loading] .loader {
|
|
204
204
|
display: block !important;
|
|
205
205
|
}
|
|
206
|
-
`,
|
|
206
|
+
`,Sn=`import "@cas-smartdesign/combo-box";
|
|
207
207
|
import DataProvider from "./data-provider";
|
|
208
208
|
import ComboBox, { ComboBoxValue } from "@cas-smartdesign/combo-box";
|
|
209
209
|
|
|
@@ -225,7 +225,7 @@ triggerOnlyCombobox.addEventListener("selection-change", (event) => {
|
|
|
225
225
|
triggerOnlySelectionMessage.textContent = selectionAsValue.item.caption;
|
|
226
226
|
}
|
|
227
227
|
});
|
|
228
|
-
`,
|
|
228
|
+
`,Cn=`import { ItemData } from "@cas-smartdesign/list-item";
|
|
229
229
|
import ComboBox, { DataResponse } from "@cas-smartdesign/combo-box";
|
|
230
230
|
import data from "./data";
|
|
231
231
|
|
|
@@ -308,7 +308,7 @@ export default class DataProvider {
|
|
|
308
308
|
return item;
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
`,
|
|
311
|
+
`,An=`export default [
|
|
312
312
|
{ firstName: "Linoel", lastName: "Bukac" },
|
|
313
313
|
{ firstName: "Lucho", lastName: "Giacopello" },
|
|
314
314
|
{ firstName: "Rik", lastName: "Lapham" },
|
|
@@ -1310,7 +1310,7 @@ export default class DataProvider {
|
|
|
1310
1310
|
{ firstName: "Therese", lastName: "Janota" },
|
|
1311
1311
|
{ firstName: "Aaren", lastName: "Phair" },
|
|
1312
1312
|
];
|
|
1313
|
-
`,
|
|
1313
|
+
`,En={mainContent:xn,description:wn,initializer:{content:Sn,type:"typescript",initialize:()=>Wt(()=>import("./4_lazy_loading.js"),[],import.meta.url)},css:Ct+_n,additionalSources:[{content:Cn,language:"typescript",label:"DataProvider",type:"source"},{content:An,language:"typescript",label:"Example data",type:"source"}]},kn=Object.freeze(Object.defineProperty({__proto__:null,default:En},Symbol.toStringTag,{value:"Module"})),Mn=`<div class="grid-example-container" id="unusual-data-examples">
|
|
1314
1314
|
<sd-combo-box
|
|
1315
1315
|
id="long-prefixes-example"
|
|
1316
1316
|
label="Long prefixes"
|
|
@@ -1326,8 +1326,8 @@ export default class DataProvider {
|
|
|
1326
1326
|
style="grid-column: span 2"></sd-combo-box>
|
|
1327
1327
|
<sd-combo-box id="duplicate-example" label="Duplicates, initial selected via property"></sd-combo-box>
|
|
1328
1328
|
</div>
|
|
1329
|
-
`,
|
|
1330
|
-
`,
|
|
1329
|
+
`,On=`<h3 id="handle-unusual-data">Handle unusual data</h3>
|
|
1330
|
+
`,In=`import "@cas-smartdesign/combo-box";
|
|
1331
1331
|
import ComboBox from "@cas-smartdesign/combo-box";
|
|
1332
1332
|
import { ItemData } from "@cas-smartdesign/list-item";
|
|
1333
1333
|
|
|
@@ -1354,7 +1354,7 @@ duplicateExample.comboBoxValue = { index: 88, item: itemsWithDuplicate[88] };
|
|
|
1354
1354
|
(document.querySelector("#long-prefixes-example") as ComboBox).items = items;
|
|
1355
1355
|
(document.querySelector("#long-prefixes-large-example") as ComboBox).items = items;
|
|
1356
1356
|
(document.querySelector("#long-prefixes-line-clamp-example") as ComboBox).items = itemWithoutDescription;
|
|
1357
|
-
`,
|
|
1357
|
+
`,Rn={mainContent:Mn,description:On,css:Ct,initializer:{content:In,type:"typescript",initialize:()=>Wt(()=>import("./5_unusual_data.js"),[],import.meta.url)}},$n=Object.freeze(Object.defineProperty({__proto__:null,default:Rn},Symbol.toStringTag,{value:"Module"})),Ln=`<div class="grid-example-container" id="validation-examples-container">
|
|
1358
1358
|
<sd-combo-box
|
|
1359
1359
|
label="This is a mandatory combo box"
|
|
1360
1360
|
item-height="40"
|
|
@@ -1371,8 +1371,8 @@ duplicateExample.comboBoxValue = { index: 88, item: itemsWithDuplicate[88] };
|
|
|
1371
1371
|
long-validation-message
|
|
1372
1372
|
label="Long validation message with single line layout"></sd-combo-box>
|
|
1373
1373
|
</div>
|
|
1374
|
-
|
|
1375
|
-
`,
|
|
1374
|
+
`,Pn=`<h3 id="validation-examples">Validation examples</h3>
|
|
1375
|
+
`,Bn=`import "@cas-smartdesign/combo-box";
|
|
1376
1376
|
import ComboBox, { ComboBoxValue } from "@cas-smartdesign/combo-box";
|
|
1377
1377
|
import { ValidationLevel } from "@cas-smartdesign/field-validation-message";
|
|
1378
1378
|
import { ItemData } from "@cas-smartdesign/list-item";
|
|
@@ -1413,60 +1413,60 @@ function updateMandatory(combobox: ComboBox) {
|
|
|
1413
1413
|
}
|
|
1414
1414
|
}
|
|
1415
1415
|
}
|
|
1416
|
-
`,
|
|
1417
|
-
\f\r]`,
|
|
1418
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Hs=/'/g,Us=/"/g,La=/^(?:script|style|textarea|title)$/i,Br=s=>(e,...t)=>({_$litType$:s,strings:e,values:t}),ne=Br(1),Ue=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),Gs=new WeakMap,je=He.createTreeWalker(He,129,null,!1);function Pa(s,e){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return js!==void 0?js.createHTML(e):e}const Tr=(s,e)=>{const t=s.length-1,i=[];let a,r=e===2?"<svg>":"",n=gt;for(let o=0;o<t;o++){const l=s[o];let c,m,u=-1,h=0;for(;h<l.length&&(n.lastIndex=h,m=n.exec(l),m!==null);)h=n.lastIndex,n===gt?m[1]==="!--"?n=Vs:m[1]!==void 0?n=Fs:m[2]!==void 0?(La.test(m[2])&&(a=RegExp("</"+m[2],"g")),n=Te):m[3]!==void 0&&(n=Te):n===Te?m[0]===">"?(n=a??gt,u=-1):m[1]===void 0?u=-2:(u=n.lastIndex-m[2].length,c=m[1],n=m[3]===void 0?Te:m[3]==='"'?Us:Hs):n===Us||n===Hs?n=Te:n===Vs||n===Fs?n=gt:(n=Te,a=void 0);const g=n===Te&&s[o+1].startsWith("/>")?" ":"";r+=n===gt?l+Pr:u>=0?(i.push(c),l.slice(0,u)+Gi+l.slice(u)+Ie+g):l+Ie+(u===-2?(i.push(void 0),o):g)}return[Pa(s,r+(s[t]||"<?>")+(e===2?"</svg>":"")),i]};class At{constructor({strings:e,_$litType$:t},i){let a;this.parts=[];let r=0,n=0;const o=e.length-1,l=this.parts,[c,m]=Tr(e,t);if(this.el=At.createElement(c,i),je.currentNode=this.el.content,t===2){const u=this.el.content,h=u.firstChild;h.remove(),u.append(...h.childNodes)}for(;(a=je.nextNode())!==null&&l.length<o;){if(a.nodeType===1){if(a.hasAttributes()){const u=[];for(const h of a.getAttributeNames())if(h.endsWith(Gi)||h.startsWith(Ie)){const g=m[n++];if(u.push(h),g!==void 0){const _=a.getAttribute(g.toLowerCase()+Gi).split(Ie),y=/([.?@])?(.*)/.exec(g);l.push({type:1,index:r,name:y[2],strings:_,ctor:y[1]==="."?jr:y[1]==="?"?Fr:y[1]==="@"?Hr:yi})}else l.push({type:6,index:r})}for(const h of u)a.removeAttribute(h)}if(La.test(a.tagName)){const u=a.textContent.split(Ie),h=u.length-1;if(h>0){a.textContent=it?it.emptyScript:"";for(let g=0;g<h;g++)a.append(u[g],Ct()),je.nextNode(),l.push({type:2,index:++r});a.append(u[h],Ct())}}}else if(a.nodeType===8)if(a.data===Ia)l.push({type:2,index:r});else{let u=-1;for(;(u=a.data.indexOf(Ie,u+1))!==-1;)l.push({type:7,index:r}),u+=Ie.length-1}r++}}static createElement(e,t){const i=He.createElement("template");return i.innerHTML=e,i}}function st(s,e,t=s,i){var a,r,n,o;if(e===Ue)return e;let l=i!==void 0?(a=t._$Co)===null||a===void 0?void 0:a[i]:t._$Cl;const c=Et(e)?void 0:e._$litDirective$;return(l==null?void 0:l.constructor)!==c&&((r=l==null?void 0:l._$AO)===null||r===void 0||r.call(l,!1),c===void 0?l=void 0:(l=new c(s),l._$AT(s,t,i)),i!==void 0?((n=(o=t)._$Co)!==null&&n!==void 0?n:o._$Co=[])[i]=l:t._$Cl=l),l!==void 0&&(e=st(s,l._$AS(s,e.values),l,i)),e}class zr{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:a}=this._$AD,r=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:He).importNode(i,!0);je.currentNode=r;let n=je.nextNode(),o=0,l=0,c=a[0];for(;c!==void 0;){if(o===c.index){let m;c.type===2?m=new zt(n,n.nextSibling,this,e):c.type===1?m=new c.ctor(n,c.name,c.strings,this,e):c.type===6&&(m=new Ur(n,this,e)),this._$AV.push(m),c=a[++l]}o!==(c==null?void 0:c.index)&&(n=je.nextNode(),o++)}return je.currentNode=He,r}v(e){let t=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class zt{constructor(e,t,i,a){var r;this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=a,this._$Cp=(r=a==null?void 0:a.isConnected)===null||r===void 0||r}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=st(this,e,t),Et(e)?e===F||e==null||e===""?(this._$AH!==F&&this._$AR(),this._$AH=F):e!==this._$AH&&e!==Ue&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Dr(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==F&&Et(this._$AH)?this._$AA.nextSibling.data=e:this.$(He.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:a}=e,r=typeof a=="number"?this._$AC(e):(a.el===void 0&&(a.el=At.createElement(Pa(a.h,a.h[0]),this.options)),a);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===r)this._$AH.v(i);else{const n=new zr(r,this),o=n.u(this.options);n.v(i),this.$(o),this._$AH=n}}_$AC(e){let t=Gs.get(e.strings);return t===void 0&&Gs.set(e.strings,t=new At(e)),t}T(e){Ra(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,a=0;for(const r of e)a===t.length?t.push(i=new zt(this.k(Ct()),this.k(Ct()),this,this.options)):i=t[a],i._$AI(r),a++;a<t.length&&(this._$AR(i&&i._$AB.nextSibling,a),t.length=a)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,t);e&&e!==this._$AB;){const a=e.nextSibling;e.remove(),e=a}}setConnected(e){var t;this._$AM===void 0&&(this._$Cp=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}let yi=class{constructor(e,t,i,a,r){this.type=1,this._$AH=F,this._$AN=void 0,this.element=e,this.name=t,this._$AM=a,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=F}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,a){const r=this.strings;let n=!1;if(r===void 0)e=st(this,e,t,0),n=!Et(e)||e!==this._$AH&&e!==Ue,n&&(this._$AH=e);else{const o=e;let l,c;for(e=r[0],l=0;l<r.length-1;l++)c=st(this,o[i+l],t,l),c===Ue&&(c=this._$AH[l]),n||(n=!Et(c)||c!==this._$AH[l]),c===F?e=F:e!==F&&(e+=(c??"")+r[l+1]),this._$AH[l]=c}n&&!a&&this.j(e)}j(e){e===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}};class jr extends yi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===F?void 0:e}}const Vr=it?it.emptyScript:"";let Fr=class extends yi{constructor(){super(...arguments),this.type=4}j(e){e&&e!==F?this.element.setAttribute(this.name,Vr):this.element.removeAttribute(this.name)}},Hr=class extends yi{constructor(e,t,i,a,r){super(e,t,i,a,r),this.type=5}_$AI(e,t=this){var i;if((e=(i=st(this,e,t,0))!==null&&i!==void 0?i:F)===Ue)return;const a=this._$AH,r=e===F&&a!==F||e.capture!==a.capture||e.once!==a.once||e.passive!==a.passive,n=e!==F&&(a===F||r);r&&this.element.removeEventListener(this.name,this,a),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&i!==void 0?i:this.element,e):this._$AH.handleEvent(e)}};class Ur{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){st(this,e)}}const Ws=di.litHtmlPolyfillSupport;Ws==null||Ws(At,zt),((Ri=di.litHtmlVersions)!==null&&Ri!==void 0?Ri:di.litHtmlVersions=[]).push("2.8.0");const Gr=(s,e,t)=>{var i,a;const r=(i=t==null?void 0:t.renderBefore)!==null&&i!==void 0?i:e;let n=r._$litPart$;if(n===void 0){const o=(a=t==null?void 0:t.renderBefore)!==null&&a!==void 0?a:null;r._$litPart$=n=new zt(e.insertBefore(Ct(),o),o,void 0,t??{})}return n._$AI(s),n};var Pi,Di;let Ee=class extends et{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Gr(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return Ue}};Ee.finalized=!0,Ee._$litElement$=!0,(Pi=globalThis.litElementHydrateSupport)===null||Pi===void 0||Pi.call(globalThis,{LitElement:Ee});const Ks=globalThis.litElementPolyfillSupport;Ks==null||Ks({LitElement:Ee});((Di=globalThis.litElementVersions)!==null&&Di!==void 0?Di:globalThis.litElementVersions=[]).push("3.3.3");const Wr=(s,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,s)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,s)}},Kr=(s,e,t)=>{e.constructor.createProperty(t,s)};function v(s){return(e,t)=>t!==void 0?Kr(s,e,t):Wr(s,e)}var re="top",ue="bottom",he="right",oe="left",hs="auto",jt=[re,ue,he,oe],at="start",kt="end",qr="clippingParents",Da="viewport",Nt="popper",Jr="reference",qs=jt.reduce(function(s,e){return s.concat([e+"-"+at,e+"-"+kt])},[]),Ba=[].concat(jt,[hs]).reduce(function(s,e){return s.concat([e,e+"-"+at,e+"-"+kt])},[]),Zr="beforeRead",Xr="read",Yr="afterRead",Qr="beforeMain",eo="main",to="afterMain",io="beforeWrite",so="write",ao="afterWrite",no=[Zr,Xr,Yr,Qr,eo,to,io,so,ao];function _e(s){return s?(s.nodeName||"").toLowerCase():null}function me(s){if(s==null)return window;if(s.toString()!=="[object Window]"){var e=s.ownerDocument;return e&&e.defaultView||window}return s}function Ge(s){var e=me(s).Element;return s instanceof e||s instanceof Element}function de(s){var e=me(s).HTMLElement;return s instanceof e||s instanceof HTMLElement}function fs(s){if(typeof ShadowRoot>"u")return!1;var e=me(s).ShadowRoot;return s instanceof e||s instanceof ShadowRoot}function ro(s){var e=s.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},a=e.attributes[t]||{},r=e.elements[t];!de(r)||!_e(r)||(Object.assign(r.style,i),Object.keys(a).forEach(function(n){var o=a[n];o===!1?r.removeAttribute(n):r.setAttribute(n,o===!0?"":o)}))})}function oo(s){var e=s.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(i){var a=e.elements[i],r=e.attributes[i]||{},n=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:t[i]),o=n.reduce(function(l,c){return l[c]="",l},{});!de(a)||!_e(a)||(Object.assign(a.style,o),Object.keys(r).forEach(function(l){a.removeAttribute(l)}))})}}const lo={name:"applyStyles",enabled:!0,phase:"write",fn:ro,effect:oo,requires:["computeStyles"]};function we(s){return s.split("-")[0]}var Ve=Math.max,ui=Math.min,nt=Math.round;function Wi(){var s=navigator.userAgentData;return s!=null&&s.brands&&Array.isArray(s.brands)?s.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Ta(){return!/^((?!chrome|android).)*safari/i.test(Wi())}function rt(s,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var i=s.getBoundingClientRect(),a=1,r=1;e&&de(s)&&(a=s.offsetWidth>0&&nt(i.width)/s.offsetWidth||1,r=s.offsetHeight>0&&nt(i.height)/s.offsetHeight||1);var n=Ge(s)?me(s):window,o=n.visualViewport,l=!Ta()&&t,c=(i.left+(l&&o?o.offsetLeft:0))/a,m=(i.top+(l&&o?o.offsetTop:0))/r,u=i.width/a,h=i.height/r;return{width:u,height:h,top:m,right:c+u,bottom:m+h,left:c,x:c,y:m}}function ps(s){var e=rt(s),t=s.offsetWidth,i=s.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:s.offsetLeft,y:s.offsetTop,width:t,height:i}}function za(s,e){var t=e.getRootNode&&e.getRootNode();if(s.contains(e))return!0;if(t&&fs(t)){var i=e;do{if(i&&s.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ae(s){return me(s).getComputedStyle(s)}function co(s){return["table","td","th"].indexOf(_e(s))>=0}function Le(s){return((Ge(s)?s.ownerDocument:s.document)||window.document).documentElement}function xi(s){return _e(s)==="html"?s:s.assignedSlot||s.parentNode||(fs(s)?s.host:null)||Le(s)}function Js(s){return!de(s)||Ae(s).position==="fixed"?null:s.offsetParent}function mo(s){var e=/firefox/i.test(Wi()),t=/Trident/i.test(Wi());if(t&&de(s)){var i=Ae(s);if(i.position==="fixed")return null}var a=xi(s);for(fs(a)&&(a=a.host);de(a)&&["html","body"].indexOf(_e(a))<0;){var r=Ae(a);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return a;a=a.parentNode}return null}function Vt(s){for(var e=me(s),t=Js(s);t&&co(t)&&Ae(t).position==="static";)t=Js(t);return t&&(_e(t)==="html"||_e(t)==="body"&&Ae(t).position==="static")?e:t||mo(s)||e}function gs(s){return["top","bottom"].indexOf(s)>=0?"x":"y"}function wt(s,e,t){return Ve(s,ui(e,t))}function uo(s,e,t){var i=wt(s,e,t);return i>t?t:i}function ja(){return{top:0,right:0,bottom:0,left:0}}function Va(s){return Object.assign({},ja(),s)}function Fa(s,e){return e.reduce(function(t,i){return t[i]=s,t},{})}var ho=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Va(typeof e!="number"?e:Fa(e,jt))};function fo(s){var e,t=s.state,i=s.name,a=s.options,r=t.elements.arrow,n=t.modifiersData.popperOffsets,o=we(t.placement),l=gs(o),c=[oe,he].indexOf(o)>=0,m=c?"height":"width";if(!(!r||!n)){var u=ho(a.padding,t),h=ps(r),g=l==="y"?re:oe,_=l==="y"?ue:he,y=t.rects.reference[m]+t.rects.reference[l]-n[l]-t.rects.popper[m],f=n[l]-t.rects.reference[l],A=Vt(r),M=A?l==="y"?A.clientHeight||0:A.clientWidth||0:0,I=y/2-f/2,x=u[g],E=M-h[m]-u[_],$=M/2-h[m]/2+I,R=wt(x,$,E),P=l;t.modifiersData[i]=(e={},e[P]=R,e.centerOffset=R-$,e)}}function po(s){var e=s.state,t=s.options,i=t.element,a=i===void 0?"[data-popper-arrow]":i;a!=null&&(typeof a=="string"&&(a=e.elements.popper.querySelector(a),!a)||za(e.elements.popper,a)&&(e.elements.arrow=a))}const go={name:"arrow",enabled:!0,phase:"main",fn:fo,effect:po,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ot(s){return s.split("-")[1]}var No={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bo(s,e){var t=s.x,i=s.y,a=e.devicePixelRatio||1;return{x:nt(t*a)/a||0,y:nt(i*a)/a||0}}function Zs(s){var e,t=s.popper,i=s.popperRect,a=s.placement,r=s.variation,n=s.offsets,o=s.position,l=s.gpuAcceleration,c=s.adaptive,m=s.roundOffsets,u=s.isFixed,h=n.x,g=h===void 0?0:h,_=n.y,y=_===void 0?0:_,f=typeof m=="function"?m({x:g,y}):{x:g,y};g=f.x,y=f.y;var A=n.hasOwnProperty("x"),M=n.hasOwnProperty("y"),I=oe,x=re,E=window;if(c){var $=Vt(t),R="clientHeight",P="clientWidth";if($===me(t)&&($=Le(t),Ae($).position!=="static"&&o==="absolute"&&(R="scrollHeight",P="scrollWidth")),$=$,a===re||(a===oe||a===he)&&r===kt){x=ue;var O=u&&$===E&&E.visualViewport?E.visualViewport.height:$[R];y-=O-i.height,y*=l?1:-1}if(a===oe||(a===re||a===ue)&&r===kt){I=he;var T=u&&$===E&&E.visualViewport?E.visualViewport.width:$[P];g-=T-i.width,g*=l?1:-1}}var K=Object.assign({position:o},c&&No),ee=m===!0?bo({x:g,y},me(t)):{x:g,y};if(g=ee.x,y=ee.y,l){var q;return Object.assign({},K,(q={},q[x]=M?"0":"",q[I]=A?"0":"",q.transform=(E.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",q))}return Object.assign({},K,(e={},e[x]=M?y+"px":"",e[I]=A?g+"px":"",e.transform="",e))}function vo(s){var e=s.state,t=s.options,i=t.gpuAcceleration,a=i===void 0?!0:i,r=t.adaptive,n=r===void 0?!0:r,o=t.roundOffsets,l=o===void 0?!0:o,c={placement:we(e.placement),variation:ot(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Zs(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:n,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Zs(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const yo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:vo,data:{}};var Kt={passive:!0};function xo(s){var e=s.state,t=s.instance,i=s.options,a=i.scroll,r=a===void 0?!0:a,n=i.resize,o=n===void 0?!0:n,l=me(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&c.forEach(function(m){m.addEventListener("scroll",t.update,Kt)}),o&&l.addEventListener("resize",t.update,Kt),function(){r&&c.forEach(function(m){m.removeEventListener("scroll",t.update,Kt)}),o&&l.removeEventListener("resize",t.update,Kt)}}const wo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:xo,data:{}};var _o={left:"right",right:"left",bottom:"top",top:"bottom"};function ri(s){return s.replace(/left|right|bottom|top/g,function(e){return _o[e]})}var So={start:"end",end:"start"};function Xs(s){return s.replace(/start|end/g,function(e){return So[e]})}function Ns(s){var e=me(s),t=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:t,scrollTop:i}}function bs(s){return rt(Le(s)).left+Ns(s).scrollLeft}function Co(s,e){var t=me(s),i=Le(s),a=t.visualViewport,r=i.clientWidth,n=i.clientHeight,o=0,l=0;if(a){r=a.width,n=a.height;var c=Ta();(c||!c&&e==="fixed")&&(o=a.offsetLeft,l=a.offsetTop)}return{width:r,height:n,x:o+bs(s),y:l}}function Eo(s){var e,t=Le(s),i=Ns(s),a=(e=s.ownerDocument)==null?void 0:e.body,r=Ve(t.scrollWidth,t.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),n=Ve(t.scrollHeight,t.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),o=-i.scrollLeft+bs(s),l=-i.scrollTop;return Ae(a||t).direction==="rtl"&&(o+=Ve(t.clientWidth,a?a.clientWidth:0)-r),{width:r,height:n,x:o,y:l}}function vs(s){var e=Ae(s),t=e.overflow,i=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+a+i)}function Ha(s){return["html","body","#document"].indexOf(_e(s))>=0?s.ownerDocument.body:de(s)&&vs(s)?s:Ha(xi(s))}function _t(s,e){var t;e===void 0&&(e=[]);var i=Ha(s),a=i===((t=s.ownerDocument)==null?void 0:t.body),r=me(i),n=a?[r].concat(r.visualViewport||[],vs(i)?i:[]):i,o=e.concat(n);return a?o:o.concat(_t(xi(n)))}function Ki(s){return Object.assign({},s,{left:s.x,top:s.y,right:s.x+s.width,bottom:s.y+s.height})}function Ao(s,e){var t=rt(s,!1,e==="fixed");return t.top=t.top+s.clientTop,t.left=t.left+s.clientLeft,t.bottom=t.top+s.clientHeight,t.right=t.left+s.clientWidth,t.width=s.clientWidth,t.height=s.clientHeight,t.x=t.left,t.y=t.top,t}function Ys(s,e,t){return e===Da?Ki(Co(s,t)):Ge(e)?Ao(e,t):Ki(Eo(Le(s)))}function ko(s){var e=_t(xi(s)),t=["absolute","fixed"].indexOf(Ae(s).position)>=0,i=t&&de(s)?Vt(s):s;return Ge(i)?e.filter(function(a){return Ge(a)&&za(a,i)&&_e(a)!=="body"}):[]}function $o(s,e,t,i){var a=e==="clippingParents"?ko(s):[].concat(e),r=[].concat(a,[t]),n=r[0],o=r.reduce(function(l,c){var m=Ys(s,c,i);return l.top=Ve(m.top,l.top),l.right=ui(m.right,l.right),l.bottom=ui(m.bottom,l.bottom),l.left=Ve(m.left,l.left),l},Ys(s,n,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Ua(s){var e=s.reference,t=s.element,i=s.placement,a=i?we(i):null,r=i?ot(i):null,n=e.x+e.width/2-t.width/2,o=e.y+e.height/2-t.height/2,l;switch(a){case re:l={x:n,y:e.y-t.height};break;case ue:l={x:n,y:e.y+e.height};break;case he:l={x:e.x+e.width,y:o};break;case oe:l={x:e.x-t.width,y:o};break;default:l={x:e.x,y:e.y}}var c=a?gs(a):null;if(c!=null){var m=c==="y"?"height":"width";switch(r){case at:l[c]=l[c]-(e[m]/2-t[m]/2);break;case kt:l[c]=l[c]+(e[m]/2-t[m]/2);break}}return l}function $t(s,e){e===void 0&&(e={});var t=e,i=t.placement,a=i===void 0?s.placement:i,r=t.strategy,n=r===void 0?s.strategy:r,o=t.boundary,l=o===void 0?qr:o,c=t.rootBoundary,m=c===void 0?Da:c,u=t.elementContext,h=u===void 0?Nt:u,g=t.altBoundary,_=g===void 0?!1:g,y=t.padding,f=y===void 0?0:y,A=Va(typeof f!="number"?f:Fa(f,jt)),M=h===Nt?Jr:Nt,I=s.rects.popper,x=s.elements[_?M:h],E=$o(Ge(x)?x:x.contextElement||Le(s.elements.popper),l,m,n),$=rt(s.elements.reference),R=Ua({reference:$,element:I,strategy:"absolute",placement:a}),P=Ki(Object.assign({},I,R)),O=h===Nt?P:$,T={top:E.top-O.top+A.top,bottom:O.bottom-E.bottom+A.bottom,left:E.left-O.left+A.left,right:O.right-E.right+A.right},K=s.modifiersData.offset;if(h===Nt&&K){var ee=K[a];Object.keys(T).forEach(function(q){var fe=[he,ue].indexOf(q)>=0?1:-1,te=[re,ue].indexOf(q)>=0?"y":"x";T[q]+=ee[te]*fe})}return T}function Oo(s,e){e===void 0&&(e={});var t=e,i=t.placement,a=t.boundary,r=t.rootBoundary,n=t.padding,o=t.flipVariations,l=t.allowedAutoPlacements,c=l===void 0?Ba:l,m=ot(i),u=m?o?qs:qs.filter(function(_){return ot(_)===m}):jt,h=u.filter(function(_){return c.indexOf(_)>=0});h.length===0&&(h=u);var g=h.reduce(function(_,y){return _[y]=$t(s,{placement:y,boundary:a,rootBoundary:r,padding:n})[we(y)],_},{});return Object.keys(g).sort(function(_,y){return g[_]-g[y]})}function Mo(s){if(we(s)===hs)return[];var e=ri(s);return[Xs(s),e,Xs(e)]}function Io(s){var e=s.state,t=s.options,i=s.name;if(!e.modifiersData[i]._skip){for(var a=t.mainAxis,r=a===void 0?!0:a,n=t.altAxis,o=n===void 0?!0:n,l=t.fallbackPlacements,c=t.padding,m=t.boundary,u=t.rootBoundary,h=t.altBoundary,g=t.flipVariations,_=g===void 0?!0:g,y=t.allowedAutoPlacements,f=e.options.placement,A=we(f),M=A===f,I=l||(M||!_?[ri(f)]:Mo(f)),x=[f].concat(I).reduce(function(pe,U){return pe.concat(we(U)===hs?Oo(e,{placement:U,boundary:m,rootBoundary:u,padding:c,flipVariations:_,allowedAutoPlacements:y}):U)},[]),E=e.rects.reference,$=e.rects.popper,R=new Map,P=!0,O=x[0],T=0;T<x.length;T++){var K=x[T],ee=we(K),q=ot(K)===at,fe=[re,ue].indexOf(ee)>=0,te=fe?"width":"height",Z=$t(e,{placement:K,boundary:m,rootBoundary:u,altBoundary:h,padding:c}),d=fe?q?he:oe:q?ue:re;E[te]>$[te]&&(d=ri(d));var N=ri(d),w=[];if(r&&w.push(Z[ee]<=0),o&&w.push(Z[d]<=0,Z[N]<=0),w.every(function(pe){return pe})){O=K,P=!1;break}R.set(K,w)}if(P)for(var k=_?3:1,z=function(U){var X=x.find(function(De){var be=R.get(De);if(be)return be.slice(0,U).every(function(qe){return qe})});if(X)return O=X,"break"},J=k;J>0;J--){var le=z(J);if(le==="break")break}e.placement!==O&&(e.modifiersData[i]._skip=!0,e.placement=O,e.reset=!0)}}const Ro={name:"flip",enabled:!0,phase:"main",fn:Io,requiresIfExists:["offset"],data:{_skip:!1}};function Qs(s,e,t){return t===void 0&&(t={x:0,y:0}),{top:s.top-e.height-t.y,right:s.right-e.width+t.x,bottom:s.bottom-e.height+t.y,left:s.left-e.width-t.x}}function ea(s){return[re,he,ue,oe].some(function(e){return s[e]>=0})}function Lo(s){var e=s.state,t=s.name,i=e.rects.reference,a=e.rects.popper,r=e.modifiersData.preventOverflow,n=$t(e,{elementContext:"reference"}),o=$t(e,{altBoundary:!0}),l=Qs(n,i),c=Qs(o,a,r),m=ea(l),u=ea(c);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:m,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":u})}const Po={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Lo};function Do(s,e,t){var i=we(s),a=[oe,re].indexOf(i)>=0?-1:1,r=typeof t=="function"?t(Object.assign({},e,{placement:s})):t,n=r[0],o=r[1];return n=n||0,o=(o||0)*a,[oe,he].indexOf(i)>=0?{x:o,y:n}:{x:n,y:o}}function Bo(s){var e=s.state,t=s.options,i=s.name,a=t.offset,r=a===void 0?[0,0]:a,n=Ba.reduce(function(m,u){return m[u]=Do(u,e.rects,r),m},{}),o=n[e.placement],l=o.x,c=o.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[i]=n}const To={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Bo};function zo(s){var e=s.state,t=s.name;e.modifiersData[t]=Ua({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const jo={name:"popperOffsets",enabled:!0,phase:"read",fn:zo,data:{}};function Vo(s){return s==="x"?"y":"x"}function Fo(s){var e=s.state,t=s.options,i=s.name,a=t.mainAxis,r=a===void 0?!0:a,n=t.altAxis,o=n===void 0?!1:n,l=t.boundary,c=t.rootBoundary,m=t.altBoundary,u=t.padding,h=t.tether,g=h===void 0?!0:h,_=t.tetherOffset,y=_===void 0?0:_,f=$t(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:m}),A=we(e.placement),M=ot(e.placement),I=!M,x=gs(A),E=Vo(x),$=e.modifiersData.popperOffsets,R=e.rects.reference,P=e.rects.popper,O=typeof y=="function"?y(Object.assign({},e.rects,{placement:e.placement})):y,T=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),K=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,ee={x:0,y:0};if($){if(r){var q,fe=x==="y"?re:oe,te=x==="y"?ue:he,Z=x==="y"?"height":"width",d=$[x],N=d+f[fe],w=d-f[te],k=g?-P[Z]/2:0,z=M===at?R[Z]:P[Z],J=M===at?-P[Z]:-R[Z],le=e.elements.arrow,pe=g&&le?ps(le):{width:0,height:0},U=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:ja(),X=U[fe],De=U[te],be=wt(0,R[Z],pe[Z]),qe=I?R[Z]/2-k-be-X-T.mainAxis:z-be-X-T.mainAxis,$i=I?-R[Z]/2+k+be+De+T.mainAxis:J+be+De+T.mainAxis,ft=e.elements.arrow&&Vt(e.elements.arrow),Oi=ft?x==="y"?ft.clientTop||0:ft.clientLeft||0:0,Ut=(q=K==null?void 0:K[x])!=null?q:0,Je=d+qe-Ut-Oi,Gt=d+$i-Ut,ce=wt(g?ui(N,Je):N,d,g?Ve(w,Gt):w);$[x]=ce,ee[x]=ce-d}if(o){var Wt,pt=x==="x"?re:oe,S=x==="x"?ue:he,ve=$[E],G=E==="y"?"height":"width",D=ve+f[pt],Be=ve-f[S],ge=[re,oe].indexOf(A)!==-1,Ze=(Wt=K==null?void 0:K[E])!=null?Wt:0,Xe=ge?D:ve-R[G]-P[G]-Ze+T.altAxis,p=ge?ve+R[G]+P[G]-Ze-T.altAxis:Be,b=g&&ge?uo(Xe,ve,p):wt(g?Xe:D,ve,g?p:Be);$[E]=b,ee[E]=b-ve}e.modifiersData[i]=ee}}const Ho={name:"preventOverflow",enabled:!0,phase:"main",fn:Fo,requiresIfExists:["offset"]};function Uo(s){return{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}}function Go(s){return s===me(s)||!de(s)?Ns(s):Uo(s)}function Wo(s){var e=s.getBoundingClientRect(),t=nt(e.width)/s.offsetWidth||1,i=nt(e.height)/s.offsetHeight||1;return t!==1||i!==1}function Ko(s,e,t){t===void 0&&(t=!1);var i=de(e),a=de(e)&&Wo(e),r=Le(e),n=rt(s,a,t),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!t)&&((_e(e)!=="body"||vs(r))&&(o=Go(e)),de(e)?(l=rt(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):r&&(l.x=bs(r))),{x:n.left+o.scrollLeft-l.x,y:n.top+o.scrollTop-l.y,width:n.width,height:n.height}}function qo(s){var e=new Map,t=new Set,i=[];s.forEach(function(r){e.set(r.name,r)});function a(r){t.add(r.name);var n=[].concat(r.requires||[],r.requiresIfExists||[]);n.forEach(function(o){if(!t.has(o)){var l=e.get(o);l&&a(l)}}),i.push(r)}return s.forEach(function(r){t.has(r.name)||a(r)}),i}function Jo(s){var e=qo(s);return no.reduce(function(t,i){return t.concat(e.filter(function(a){return a.phase===i}))},[])}function Zo(s){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(s())})})),e}}function Xo(s){var e=s.reduce(function(t,i){var a=t[i.name];return t[i.name]=a?Object.assign({},a,i,{options:Object.assign({},a.options,i.options),data:Object.assign({},a.data,i.data)}):i,t},{});return Object.keys(e).map(function(t){return e[t]})}var ta={placement:"bottom",modifiers:[],strategy:"absolute"};function ia(){for(var s=arguments.length,e=new Array(s),t=0;t<s;t++)e[t]=arguments[t];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Yo(s){s===void 0&&(s={});var e=s,t=e.defaultModifiers,i=t===void 0?[]:t,a=e.defaultOptions,r=a===void 0?ta:a;return function(o,l,c){c===void 0&&(c=r);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},ta,r),modifiersData:{},elements:{reference:o,popper:l},attributes:{},styles:{}},u=[],h=!1,g={state:m,setOptions:function(A){var M=typeof A=="function"?A(m.options):A;y(),m.options=Object.assign({},r,m.options,M),m.scrollParents={reference:Ge(o)?_t(o):o.contextElement?_t(o.contextElement):[],popper:_t(l)};var I=Jo(Xo([].concat(i,m.options.modifiers)));return m.orderedModifiers=I.filter(function(x){return x.enabled}),_(),g.update()},forceUpdate:function(){if(!h){var A=m.elements,M=A.reference,I=A.popper;if(ia(M,I)){m.rects={reference:Ko(M,Vt(I),m.options.strategy==="fixed"),popper:ps(I)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach(function(T){return m.modifiersData[T.name]=Object.assign({},T.data)});for(var x=0;x<m.orderedModifiers.length;x++){if(m.reset===!0){m.reset=!1,x=-1;continue}var E=m.orderedModifiers[x],$=E.fn,R=E.options,P=R===void 0?{}:R,O=E.name;typeof $=="function"&&(m=$({state:m,options:P,name:O,instance:g})||m)}}}},update:Zo(function(){return new Promise(function(f){g.forceUpdate(),f(m)})}),destroy:function(){y(),h=!0}};if(!ia(o,l))return g;g.setOptions(c).then(function(f){!h&&c.onFirstUpdate&&c.onFirstUpdate(f)});function _(){m.orderedModifiers.forEach(function(f){var A=f.name,M=f.options,I=M===void 0?{}:M,x=f.effect;if(typeof x=="function"){var E=x({state:m,name:A,instance:g,options:I}),$=function(){};u.push(E||$)}})}function y(){u.forEach(function(f){return f()}),u=[]}return g}}var Qo=[wo,jo,yo,lo,To,Ro,Ho,go,Po],el=Yo({defaultModifiers:Qo});const ie=s=>s??F,tl=":host{display:inline-block;font-size:13px;line-height:20px;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;color:#111;contain:content}:host([hidden]){display:none!important}:host([level=warn i]){color:#555}:host([level=suggest i]){color:#bf8800}:host([level=error i]){color:#cc0017}:host([level=warn]){color:#555}:host([level=suggest]){color:#bf8800}:host([level=error]){color:#cc0017}.icon{height:12px;width:12px;padding-right:4px;margin-bottom:-1px}",il="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cstyle%20id='style3'%3e%20.st0{fill:%23fff}.st1{fill:%23c00}%20%3c/style%3e%3cg%20id='g5'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20id='path9'/%3e%3c/g%3e%3cg%20id='g11'%3e%3cpath%20class='st0'%20id='rect13'%20d='M5.5%202.5h1v4h-1z'/%3e%3cpath%20class='st1'%20d='M6%203v3-3m1-1H5v5h2V2z'%20id='path15'/%3e%3c/g%3e%3cg%20id='g17'%3e%3cpath%20class='st0'%20id='rect19'%20d='M5.5%208.5h1v1h-1z'/%3e%3cpath%20class='st1'%20id='polygon21'%20d='M7%208H5v2h2V8z'/%3e%3c/g%3e%3c/svg%3e",sl="data:image/svg+xml,%3csvg%20id='Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cstyle%3e%20.st0{fill:%23bf8800}%20%3c/style%3e%3cpath%20class='st0'%20d='M12%20.8l11%2019.8v1.3H1v-1.3L12%20.8zm.8-.6h-1.6L0%2020v3h24v-3L12.8.2z'/%3e%3cpath%20class='st0'%20d='M11%208h2v8h-2zm0%2010h2v2h-2z'/%3e%3c/svg%3e",al="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20fill='%23555'/%3e%3cpath%20d='M6%209V6v3m-1%201h2V5H5v5zm2-8H5v2h2z'%20class='st1'%20fill='%23555'/%3e%3c/svg%3e";var nl=Object.defineProperty,rl=Object.getOwnPropertyDescriptor,ys=(s,e,t,i)=>{for(var a=i>1?void 0:i?rl(e,t):e,r=s.length-1,n;r>=0;r--)(n=s[r])&&(a=(i?n(e,t,a):n(a))||a);return i&&a&&nl(e,t,a),a},Ye;const Ot=(Ye=class extends Ee{static parseLevel(s){if(s){const e=Object.keys(hi).find(t=>t.toLowerCase()===s.toLowerCase());return e&&hi[e]}}static get styles(){return[Tt`
|
|
1419
|
-
${
|
|
1420
|
-
`]}render(){return
|
|
1421
|
-
${
|
|
1422
|
-
`]}render(){
|
|
1416
|
+
`,Tn={mainContent:Ln,description:Pn,css:Ct,initializer:{content:Bn,type:"typescript",initialize:()=>Wt(()=>import("./6_validation_example.js"),[],import.meta.url)}},Dn=Object.freeze(Object.defineProperty({__proto__:null,default:Tn},Symbol.toStringTag,{value:"Module"}));const di=globalThis,vs=di.ShadowRoot&&(di.ShadyCSS===void 0||di.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,xs=Symbol(),ta=new WeakMap;let Ya=class{constructor(e,i,a){if(this._$cssResult$=!0,a!==xs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o;const i=this.t;if(vs&&e===void 0){const a=i!==void 0&&i.length===1;a&&(e=ta.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),a&&ta.set(i,e))}return e}toString(){return this.cssText}};const At=t=>new Ya(typeof t=="string"?t:t+"",void 0,xs),Gt=(t,...e)=>{const i=t.length===1?t[0]:e.reduce(((a,s,r)=>a+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[r+1]),t[0]);return new Ya(i,t,xs)},zn=(t,e)=>{if(vs)t.adoptedStyleSheets=e.map((i=>i instanceof CSSStyleSheet?i:i.styleSheet));else for(const i of e){const a=document.createElement("style"),s=di.litNonce;s!==void 0&&a.setAttribute("nonce",s),a.textContent=i.cssText,t.appendChild(a)}},ia=vs?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let i="";for(const a of e.cssRules)i+=a.cssText;return At(i)})(t):t;const{is:jn,defineProperty:Vn,getOwnPropertyDescriptor:Fn,getOwnPropertyNames:Hn,getOwnPropertySymbols:qn,getPrototypeOf:Un}=Object,vi=globalThis,sa=vi.trustedTypes,Wn=sa?sa.emptyScript:"",Gn=vi.reactiveElementPolyfillSupport,Pt=(t,e)=>t,fi={toAttribute(t,e){switch(e){case Boolean:t=t?Wn:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=t!==null;break;case Number:i=t===null?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch{i=null}}return i}},ws=(t,e)=>!jn(t,e),aa={attribute:!0,type:String,converter:fi,reflect:!1,useDefault:!1,hasChanged:ws};Symbol.metadata??=Symbol("metadata"),vi.litPropertyMetadata??=new WeakMap;let bt=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,i=aa){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(e,i),!i.noAccessor){const a=Symbol(),s=this.getPropertyDescriptor(e,a,i);s!==void 0&&Vn(this.prototype,e,s)}}static getPropertyDescriptor(e,i,a){const{get:s,set:r}=Fn(this.prototype,e)??{get(){return this[i]},set(o){this[i]=o}};return{get:s,set(o){const d=s?.call(this);r?.call(this,o),this.requestUpdate(e,d,a)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??aa}static _$Ei(){if(this.hasOwnProperty(Pt("elementProperties")))return;const e=Un(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Pt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Pt("properties"))){const i=this.properties,a=[...Hn(i),...qn(i)];for(const s of a)this.createProperty(s,i[s])}const e=this[Symbol.metadata];if(e!==null){const i=litPropertyMetadata.get(e);if(i!==void 0)for(const[a,s]of i)this.elementProperties.set(a,s)}this._$Eh=new Map;for(const[i,a]of this.elementProperties){const s=this._$Eu(i,a);s!==void 0&&this._$Eh.set(s,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const a=new Set(e.flat(1/0).reverse());for(const s of a)i.unshift(ia(s))}else e!==void 0&&i.push(ia(e));return i}static _$Eu(e,i){const a=i.attribute;return a===!1?void 0:typeof a=="string"?a:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,i=this.constructor.elementProperties;for(const a of i.keys())this.hasOwnProperty(a)&&(e.set(a,this[a]),delete this[a]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return zn(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,i,a){this._$AK(e,a)}_$ET(e,i){const a=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,a);if(s!==void 0&&a.reflect===!0){const r=(a.converter?.toAttribute!==void 0?a.converter:fi).toAttribute(i,a.type);this._$Em=e,r==null?this.removeAttribute(s):this.setAttribute(s,r),this._$Em=null}}_$AK(e,i){const a=this.constructor,s=a._$Eh.get(e);if(s!==void 0&&this._$Em!==s){const r=a.getPropertyOptions(s),o=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:fi;this._$Em=s;const d=o.fromAttribute(i,r.type);this[s]=d??this._$Ej?.get(s)??d,this._$Em=null}}requestUpdate(e,i,a){if(e!==void 0){const s=this.constructor,r=this[e];if(a??=s.getPropertyOptions(e),!((a.hasChanged??ws)(r,i)||a.useDefault&&a.reflect&&r===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,a))))return;this.C(e,i,a)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,i,{useDefault:a,reflect:s,wrapped:r},o){a&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,o??i??this[e]),r!==!0||o!==void 0)||(this._$AL.has(e)||(this.hasUpdated||a||(i=void 0),this._$AL.set(e,i)),s===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[s,r]of this._$Ep)this[s]=r;this._$Ep=void 0}const a=this.constructor.elementProperties;if(a.size>0)for(const[s,r]of a){const{wrapped:o}=r,d=this[s];o!==!0||this._$AL.has(s)||d===void 0||this.C(s,void 0,r,d)}}let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),this._$EO?.forEach((a=>a.hostUpdate?.())),this.update(i)):this._$EM()}catch(a){throw e=!1,this._$EM(),a}e&&this._$AE(i)}willUpdate(e){}_$AE(e){this._$EO?.forEach((i=>i.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((i=>this._$ET(i,this[i]))),this._$EM()}updated(e){}firstUpdated(e){}};bt.elementStyles=[],bt.shadowRootOptions={mode:"open"},bt[Pt("elementProperties")]=new Map,bt[Pt("finalized")]=new Map,Gn?.({ReactiveElement:bt}),(vi.reactiveElementVersions??=[]).push("2.1.1");const _s=globalThis,pi=_s.trustedTypes,ra=pi?pi.createPolicy("lit-html",{createHTML:t=>t}):void 0,Qa="$lit$",Qe=`lit$${Math.random().toFixed(9).slice(2)}$`,er="?"+Qe,Kn=`<${er}>`,mt=document,jt=()=>mt.createComment(""),Vt=t=>t===null||typeof t!="object"&&typeof t!="function",Ss=Array.isArray,Jn=t=>Ss(t)||typeof t?.[Symbol.iterator]=="function",zi=`[
|
|
1417
|
+
\f\r]`,It=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,na=/-->/g,oa=/>/g,nt=RegExp(`>|${zi}(?:([^\\s"'>=/]+)(${zi}*=${zi}*(?:[^
|
|
1418
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),la=/'/g,ca=/"/g,tr=/^(?:script|style|textarea|title)$/i,Zn=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),be=Zn(1),dt=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),ma=new WeakMap,lt=mt.createTreeWalker(mt,129);function ir(t,e){if(!Ss(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ra!==void 0?ra.createHTML(e):e}const Xn=(t,e)=>{const i=t.length-1,a=[];let s,r=e===2?"<svg>":e===3?"<math>":"",o=It;for(let d=0;d<i;d++){const h=t[d];let u,n,m=-1,c=0;for(;c<h.length&&(o.lastIndex=c,n=o.exec(h),n!==null);)c=o.lastIndex,o===It?n[1]==="!--"?o=na:n[1]!==void 0?o=oa:n[2]!==void 0?(tr.test(n[2])&&(s=RegExp("</"+n[2],"g")),o=nt):n[3]!==void 0&&(o=nt):o===nt?n[0]===">"?(o=s??It,m=-1):n[1]===void 0?m=-2:(m=o.lastIndex-n[2].length,u=n[1],o=n[3]===void 0?nt:n[3]==='"'?ca:la):o===ca||o===la?o=nt:o===na||o===oa?o=It:(o=nt,s=void 0);const l=o===nt&&t[d+1].startsWith("/>")?" ":"";r+=o===It?h+Kn:m>=0?(a.push(u),h.slice(0,m)+Qa+h.slice(m)+Qe+l):h+Qe+(m===-2?d:l)}return[ir(t,r+(t[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),a]};class Ft{constructor({strings:e,_$litType$:i},a){let s;this.parts=[];let r=0,o=0;const d=e.length-1,h=this.parts,[u,n]=Xn(e,i);if(this.el=Ft.createElement(u,a),lt.currentNode=this.el.content,i===2||i===3){const m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(s=lt.nextNode())!==null&&h.length<d;){if(s.nodeType===1){if(s.hasAttributes())for(const m of s.getAttributeNames())if(m.endsWith(Qa)){const c=n[o++],l=s.getAttribute(m).split(Qe),f=/([.?@])?(.*)/.exec(c);h.push({type:1,index:r,name:f[2],strings:l,ctor:f[1]==="."?Qn:f[1]==="?"?eo:f[1]==="@"?to:xi}),s.removeAttribute(m)}else m.startsWith(Qe)&&(h.push({type:6,index:r}),s.removeAttribute(m));if(tr.test(s.tagName)){const m=s.textContent.split(Qe),c=m.length-1;if(c>0){s.textContent=pi?pi.emptyScript:"";for(let l=0;l<c;l++)s.append(m[l],jt()),lt.nextNode(),h.push({type:2,index:++r});s.append(m[c],jt())}}}else if(s.nodeType===8)if(s.data===er)h.push({type:2,index:r});else{let m=-1;for(;(m=s.data.indexOf(Qe,m+1))!==-1;)h.push({type:7,index:r}),m+=Qe.length-1}r++}}static createElement(e,i){const a=mt.createElement("template");return a.innerHTML=e,a}}function vt(t,e,i=t,a){if(e===dt)return e;let s=a!==void 0?i._$Co?.[a]:i._$Cl;const r=Vt(e)?void 0:e._$litDirective$;return s?.constructor!==r&&(s?._$AO?.(!1),r===void 0?s=void 0:(s=new r(t),s._$AT(t,i,a)),a!==void 0?(i._$Co??=[])[a]=s:i._$Cl=s),s!==void 0&&(e=vt(t,s._$AS(t,e.values),s,a)),e}class Yn{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:i},parts:a}=this._$AD,s=(e?.creationScope??mt).importNode(i,!0);lt.currentNode=s;let r=lt.nextNode(),o=0,d=0,h=a[0];for(;h!==void 0;){if(o===h.index){let u;h.type===2?u=new Kt(r,r.nextSibling,this,e):h.type===1?u=new h.ctor(r,h.name,h.strings,this,e):h.type===6&&(u=new io(r,this,e)),this._$AV.push(u),h=a[++d]}o!==h?.index&&(r=lt.nextNode(),o++)}return lt.currentNode=mt,s}p(e){let i=0;for(const a of this._$AV)a!==void 0&&(a.strings!==void 0?(a._$AI(e,a,i),i+=a.strings.length-2):a._$AI(e[i])),i++}}class Kt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,a,s){this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=a,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=vt(this,e,i),Vt(e)?e===Y||e==null||e===""?(this._$AH!==Y&&this._$AR(),this._$AH=Y):e!==this._$AH&&e!==dt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Jn(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Y&&Vt(this._$AH)?this._$AA.nextSibling.data=e:this.T(mt.createTextNode(e)),this._$AH=e}$(e){const{values:i,_$litType$:a}=e,s=typeof a=="number"?this._$AC(e):(a.el===void 0&&(a.el=Ft.createElement(ir(a.h,a.h[0]),this.options)),a);if(this._$AH?._$AD===s)this._$AH.p(i);else{const r=new Yn(s,this),o=r.u(this.options);r.p(i),this.T(o),this._$AH=r}}_$AC(e){let i=ma.get(e.strings);return i===void 0&&ma.set(e.strings,i=new Ft(e)),i}k(e){Ss(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let a,s=0;for(const r of e)s===i.length?i.push(a=new Kt(this.O(jt()),this.O(jt()),this,this.options)):a=i[s],a._$AI(r),s++;s<i.length&&(this._$AR(a&&a._$AB.nextSibling,s),i.length=s)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){const a=e.nextSibling;e.remove(),e=a}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}}class xi{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,a,s,r){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=e,this.name=i,this._$AM=s,this.options=r,a.length>2||a[0]!==""||a[1]!==""?(this._$AH=Array(a.length-1).fill(new String),this.strings=a):this._$AH=Y}_$AI(e,i=this,a,s){const r=this.strings;let o=!1;if(r===void 0)e=vt(this,e,i,0),o=!Vt(e)||e!==this._$AH&&e!==dt,o&&(this._$AH=e);else{const d=e;let h,u;for(e=r[0],h=0;h<r.length-1;h++)u=vt(this,d[a+h],i,h),u===dt&&(u=this._$AH[h]),o||=!Vt(u)||u!==this._$AH[h],u===Y?e=Y:e!==Y&&(e+=(u??"")+r[h+1]),this._$AH[h]=u}o&&!s&&this.j(e)}j(e){e===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Qn extends xi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Y?void 0:e}}class eo extends xi{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Y)}}let to=class extends xi{constructor(e,i,a,s,r){super(e,i,a,s,r),this.type=5}_$AI(e,i=this){if((e=vt(this,e,i,0)??Y)===dt)return;const a=this._$AH,s=e===Y&&a!==Y||e.capture!==a.capture||e.once!==a.once||e.passive!==a.passive,r=e!==Y&&(a===Y||s);s&&this.element.removeEventListener(this.name,this,a),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},io=class{constructor(e,i,a){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=a}get _$AU(){return this._$AM._$AU}_$AI(e){vt(this,e)}};const so=_s.litHtmlPolyfillSupport;so?.(Ft,Kt),(_s.litHtmlVersions??=[]).push("3.3.1");const ao=(t,e,i)=>{const a=i?.renderBefore??e;let s=a._$litPart$;if(s===void 0){const r=i?.renderBefore??null;a._$litPart$=s=new Kt(e.insertBefore(jt(),r),r,void 0,i??{})}return s._$AI(t),s};const Cs=globalThis;let We=class extends bt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ao(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return dt}};We._$litElement$=!0,We.finalized=!0,Cs.litElementHydrateSupport?.({LitElement:We});const ro=Cs.litElementPolyfillSupport;ro?.({LitElement:We});(Cs.litElementVersions??=[]).push("4.2.1");const no={attribute:!0,type:String,converter:fi,reflect:!1,hasChanged:ws},oo=(t=no,e,i)=>{const{kind:a,metadata:s}=i;let r=globalThis.litPropertyMetadata.get(s);if(r===void 0&&globalThis.litPropertyMetadata.set(s,r=new Map),a==="setter"&&((t=Object.create(t)).wrapped=!0),r.set(i.name,t),a==="accessor"){const{name:o}=i;return{set(d){const h=e.get.call(this);e.set.call(this,d),this.requestUpdate(o,h,t)},init(d){return d!==void 0&&this.C(o,void 0,t,d),d}}}if(a==="setter"){const{name:o}=i;return function(d){const h=this[o];e.call(this,d),this.requestUpdate(o,h,t)}}throw Error("Unsupported decorator location: "+a)};function B(t){return(e,i)=>typeof i=="object"?oo(t,e,i):((a,s,r)=>{const o=s.hasOwnProperty(r);return s.constructor.createProperty(r,a),o?Object.getOwnPropertyDescriptor(s,r):void 0})(t,e,i)}var ye="top",ke="bottom",Me="right",ve="left",As="auto",Jt=[ye,ke,Me,ve],xt="start",Ht="end",lo="clippingParents",sr="viewport",Rt="popper",co="reference",da=Jt.reduce(function(t,e){return t.concat([e+"-"+xt,e+"-"+Ht])},[]),ar=[].concat(Jt,[As]).reduce(function(t,e){return t.concat([e,e+"-"+xt,e+"-"+Ht])},[]),mo="beforeRead",uo="read",ho="afterRead",fo="beforeMain",po="main",go="afterMain",No="beforeWrite",bo="write",yo="afterWrite",vo=[mo,uo,ho,fo,po,go,No,bo,yo];function je(t){return t?(t.nodeName||"").toLowerCase():null}function _e(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ut(t){var e=_e(t).Element;return t instanceof e||t instanceof Element}function Ee(t){var e=_e(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Es(t){if(typeof ShadowRoot>"u")return!1;var e=_e(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function xo(t){var e=t.state;Object.keys(e.elements).forEach(function(i){var a=e.styles[i]||{},s=e.attributes[i]||{},r=e.elements[i];!Ee(r)||!je(r)||(Object.assign(r.style,a),Object.keys(s).forEach(function(o){var d=s[o];d===!1?r.removeAttribute(o):r.setAttribute(o,d===!0?"":d)}))})}function wo(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(a){var s=e.elements[a],r=e.attributes[a]||{},o=Object.keys(e.styles.hasOwnProperty(a)?e.styles[a]:i[a]),d=o.reduce(function(h,u){return h[u]="",h},{});!Ee(s)||!je(s)||(Object.assign(s.style,d),Object.keys(r).forEach(function(h){s.removeAttribute(h)}))})}}const _o={name:"applyStyles",enabled:!0,phase:"write",fn:xo,effect:wo,requires:["computeStyles"]};function ze(t){return t.split("-")[0]}var ct=Math.max,gi=Math.min,wt=Math.round;function ps(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function rr(){return!/^((?!chrome|android).)*safari/i.test(ps())}function _t(t,e,i){e===void 0&&(e=!1),i===void 0&&(i=!1);var a=t.getBoundingClientRect(),s=1,r=1;e&&Ee(t)&&(s=t.offsetWidth>0&&wt(a.width)/t.offsetWidth||1,r=t.offsetHeight>0&&wt(a.height)/t.offsetHeight||1);var o=ut(t)?_e(t):window,d=o.visualViewport,h=!rr()&&i,u=(a.left+(h&&d?d.offsetLeft:0))/s,n=(a.top+(h&&d?d.offsetTop:0))/r,m=a.width/s,c=a.height/r;return{width:m,height:c,top:n,right:u+m,bottom:n+c,left:u,x:u,y:n}}function ks(t){var e=_t(t),i=t.offsetWidth,a=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-a)<=1&&(a=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:a}}function nr(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&Es(i)){var a=e;do{if(a&&t.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function Ge(t){return _e(t).getComputedStyle(t)}function So(t){return["table","td","th"].indexOf(je(t))>=0}function et(t){return((ut(t)?t.ownerDocument:t.document)||window.document).documentElement}function wi(t){return je(t)==="html"?t:t.assignedSlot||t.parentNode||(Es(t)?t.host:null)||et(t)}function ua(t){return!Ee(t)||Ge(t).position==="fixed"?null:t.offsetParent}function Co(t){var e=/firefox/i.test(ps()),i=/Trident/i.test(ps());if(i&&Ee(t)){var a=Ge(t);if(a.position==="fixed")return null}var s=wi(t);for(Es(s)&&(s=s.host);Ee(s)&&["html","body"].indexOf(je(s))<0;){var r=Ge(s);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 s;s=s.parentNode}return null}function Zt(t){for(var e=_e(t),i=ua(t);i&&So(i)&&Ge(i).position==="static";)i=ua(i);return i&&(je(i)==="html"||je(i)==="body"&&Ge(i).position==="static")?e:i||Co(t)||e}function Ms(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Bt(t,e,i){return ct(t,gi(e,i))}function Ao(t,e,i){var a=Bt(t,e,i);return a>i?i:a}function or(){return{top:0,right:0,bottom:0,left:0}}function lr(t){return Object.assign({},or(),t)}function cr(t,e){return e.reduce(function(i,a){return i[a]=t,i},{})}var Eo=function(e,i){return e=typeof e=="function"?e(Object.assign({},i.rects,{placement:i.placement})):e,lr(typeof e!="number"?e:cr(e,Jt))};function ko(t){var e,i=t.state,a=t.name,s=t.options,r=i.elements.arrow,o=i.modifiersData.popperOffsets,d=ze(i.placement),h=Ms(d),u=[ve,Me].indexOf(d)>=0,n=u?"height":"width";if(!(!r||!o)){var m=Eo(s.padding,i),c=ks(r),l=h==="y"?ye:ve,f=h==="y"?ke:Me,p=i.rects.reference[n]+i.rects.reference[h]-o[h]-i.rects.popper[n],N=o[h]-i.rects.reference[h],x=Zt(r),w=x?h==="y"?x.clientHeight||0:x.clientWidth||0:0,v=p/2-N/2,y=m[l],b=w-c[n]-m[f],_=w/2-c[n]/2+v,C=Bt(y,_,b),I=h;i.modifiersData[a]=(e={},e[I]=C,e.centerOffset=C-_,e)}}function Mo(t){var e=t.state,i=t.options,a=i.element,s=a===void 0?"[data-popper-arrow]":a;s!=null&&(typeof s=="string"&&(s=e.elements.popper.querySelector(s),!s)||nr(e.elements.popper,s)&&(e.elements.arrow=s))}const Oo={name:"arrow",enabled:!0,phase:"main",fn:ko,effect:Mo,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function St(t){return t.split("-")[1]}var Io={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ro(t,e){var i=t.x,a=t.y,s=e.devicePixelRatio||1;return{x:wt(i*s)/s||0,y:wt(a*s)/s||0}}function ha(t){var e,i=t.popper,a=t.popperRect,s=t.placement,r=t.variation,o=t.offsets,d=t.position,h=t.gpuAcceleration,u=t.adaptive,n=t.roundOffsets,m=t.isFixed,c=o.x,l=c===void 0?0:c,f=o.y,p=f===void 0?0:f,N=typeof n=="function"?n({x:l,y:p}):{x:l,y:p};l=N.x,p=N.y;var x=o.hasOwnProperty("x"),w=o.hasOwnProperty("y"),v=ve,y=ye,b=window;if(u){var _=Zt(i),C="clientHeight",I="clientWidth";if(_===_e(i)&&(_=et(i),Ge(_).position!=="static"&&d==="absolute"&&(C="scrollHeight",I="scrollWidth")),_=_,s===ye||(s===ve||s===Me)&&r===Ht){y=ke;var L=m&&_===b&&b.visualViewport?b.visualViewport.height:_[C];p-=L-a.height,p*=h?1:-1}if(s===ve||(s===ye||s===ke)&&r===Ht){v=Me;var E=m&&_===b&&b.visualViewport?b.visualViewport.width:_[I];l-=E-a.width,l*=h?1:-1}}var H=Object.assign({position:d},u&&Io),V=n===!0?Ro({x:l,y:p},_e(i)):{x:l,y:p};if(l=V.x,p=V.y,h){var Q;return Object.assign({},H,(Q={},Q[y]=w?"0":"",Q[v]=x?"0":"",Q.transform=(b.devicePixelRatio||1)<=1?"translate("+l+"px, "+p+"px)":"translate3d("+l+"px, "+p+"px, 0)",Q))}return Object.assign({},H,(e={},e[y]=w?p+"px":"",e[v]=x?l+"px":"",e.transform="",e))}function $o(t){var e=t.state,i=t.options,a=i.gpuAcceleration,s=a===void 0?!0:a,r=i.adaptive,o=r===void 0?!0:r,d=i.roundOffsets,h=d===void 0?!0:d,u={placement:ze(e.placement),variation:St(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,ha(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:h})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,ha(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:h})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Lo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:$o,data:{}};var oi={passive:!0};function Po(t){var e=t.state,i=t.instance,a=t.options,s=a.scroll,r=s===void 0?!0:s,o=a.resize,d=o===void 0?!0:o,h=_e(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&u.forEach(function(n){n.addEventListener("scroll",i.update,oi)}),d&&h.addEventListener("resize",i.update,oi),function(){r&&u.forEach(function(n){n.removeEventListener("scroll",i.update,oi)}),d&&h.removeEventListener("resize",i.update,oi)}}const Bo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Po,data:{}};var To={left:"right",right:"left",bottom:"top",top:"bottom"};function ui(t){return t.replace(/left|right|bottom|top/g,function(e){return To[e]})}var Do={start:"end",end:"start"};function fa(t){return t.replace(/start|end/g,function(e){return Do[e]})}function Os(t){var e=_e(t),i=e.pageXOffset,a=e.pageYOffset;return{scrollLeft:i,scrollTop:a}}function Is(t){return _t(et(t)).left+Os(t).scrollLeft}function zo(t,e){var i=_e(t),a=et(t),s=i.visualViewport,r=a.clientWidth,o=a.clientHeight,d=0,h=0;if(s){r=s.width,o=s.height;var u=rr();(u||!u&&e==="fixed")&&(d=s.offsetLeft,h=s.offsetTop)}return{width:r,height:o,x:d+Is(t),y:h}}function jo(t){var e,i=et(t),a=Os(t),s=(e=t.ownerDocument)==null?void 0:e.body,r=ct(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=ct(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),d=-a.scrollLeft+Is(t),h=-a.scrollTop;return Ge(s||i).direction==="rtl"&&(d+=ct(i.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:d,y:h}}function Rs(t){var e=Ge(t),i=e.overflow,a=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+a)}function mr(t){return["html","body","#document"].indexOf(je(t))>=0?t.ownerDocument.body:Ee(t)&&Rs(t)?t:mr(wi(t))}function Tt(t,e){var i;e===void 0&&(e=[]);var a=mr(t),s=a===((i=t.ownerDocument)==null?void 0:i.body),r=_e(a),o=s?[r].concat(r.visualViewport||[],Rs(a)?a:[]):a,d=e.concat(o);return s?d:d.concat(Tt(wi(o)))}function gs(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Vo(t,e){var i=_t(t,!1,e==="fixed");return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}function pa(t,e,i){return e===sr?gs(zo(t,i)):ut(e)?Vo(e,i):gs(jo(et(t)))}function Fo(t){var e=Tt(wi(t)),i=["absolute","fixed"].indexOf(Ge(t).position)>=0,a=i&&Ee(t)?Zt(t):t;return ut(a)?e.filter(function(s){return ut(s)&&nr(s,a)&&je(s)!=="body"}):[]}function Ho(t,e,i,a){var s=e==="clippingParents"?Fo(t):[].concat(e),r=[].concat(s,[i]),o=r[0],d=r.reduce(function(h,u){var n=pa(t,u,a);return h.top=ct(n.top,h.top),h.right=gi(n.right,h.right),h.bottom=gi(n.bottom,h.bottom),h.left=ct(n.left,h.left),h},pa(t,o,a));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function dr(t){var e=t.reference,i=t.element,a=t.placement,s=a?ze(a):null,r=a?St(a):null,o=e.x+e.width/2-i.width/2,d=e.y+e.height/2-i.height/2,h;switch(s){case ye:h={x:o,y:e.y-i.height};break;case ke:h={x:o,y:e.y+e.height};break;case Me:h={x:e.x+e.width,y:d};break;case ve:h={x:e.x-i.width,y:d};break;default:h={x:e.x,y:e.y}}var u=s?Ms(s):null;if(u!=null){var n=u==="y"?"height":"width";switch(r){case xt:h[u]=h[u]-(e[n]/2-i[n]/2);break;case Ht:h[u]=h[u]+(e[n]/2-i[n]/2);break}}return h}function qt(t,e){e===void 0&&(e={});var i=e,a=i.placement,s=a===void 0?t.placement:a,r=i.strategy,o=r===void 0?t.strategy:r,d=i.boundary,h=d===void 0?lo:d,u=i.rootBoundary,n=u===void 0?sr:u,m=i.elementContext,c=m===void 0?Rt:m,l=i.altBoundary,f=l===void 0?!1:l,p=i.padding,N=p===void 0?0:p,x=lr(typeof N!="number"?N:cr(N,Jt)),w=c===Rt?co:Rt,v=t.rects.popper,y=t.elements[f?w:c],b=Ho(ut(y)?y:y.contextElement||et(t.elements.popper),h,n,o),_=_t(t.elements.reference),C=dr({reference:_,element:v,placement:s}),I=gs(Object.assign({},v,C)),L=c===Rt?I:_,E={top:b.top-L.top+x.top,bottom:L.bottom-b.bottom+x.bottom,left:b.left-L.left+x.left,right:L.right-b.right+x.right},H=t.modifiersData.offset;if(c===Rt&&H){var V=H[s];Object.keys(E).forEach(function(Q){var re=[Me,ke].indexOf(Q)>=0?1:-1,O=[ye,ke].indexOf(Q)>=0?"y":"x";E[Q]+=V[O]*re})}return E}function qo(t,e){e===void 0&&(e={});var i=e,a=i.placement,s=i.boundary,r=i.rootBoundary,o=i.padding,d=i.flipVariations,h=i.allowedAutoPlacements,u=h===void 0?ar:h,n=St(a),m=n?d?da:da.filter(function(f){return St(f)===n}):Jt,c=m.filter(function(f){return u.indexOf(f)>=0});c.length===0&&(c=m);var l=c.reduce(function(f,p){return f[p]=qt(t,{placement:p,boundary:s,rootBoundary:r,padding:o})[ze(p)],f},{});return Object.keys(l).sort(function(f,p){return l[f]-l[p]})}function Uo(t){if(ze(t)===As)return[];var e=ui(t);return[fa(t),e,fa(e)]}function Wo(t){var e=t.state,i=t.options,a=t.name;if(!e.modifiersData[a]._skip){for(var s=i.mainAxis,r=s===void 0?!0:s,o=i.altAxis,d=o===void 0?!0:o,h=i.fallbackPlacements,u=i.padding,n=i.boundary,m=i.rootBoundary,c=i.altBoundary,l=i.flipVariations,f=l===void 0?!0:l,p=i.allowedAutoPlacements,N=e.options.placement,x=ze(N),w=x===N,v=h||(w||!f?[ui(N)]:Uo(N)),y=[N].concat(v).reduce(function(Ce,fe){return Ce.concat(ze(fe)===As?qo(e,{placement:fe,boundary:n,rootBoundary:m,padding:u,flipVariations:f,allowedAutoPlacements:p}):fe)},[]),b=e.rects.reference,_=e.rects.popper,C=new Map,I=!0,L=y[0],E=0;E<y.length;E++){var H=y[E],V=ze(H),Q=St(H)===xt,re=[ye,ke].indexOf(V)>=0,O=re?"width":"height",ne=qt(e,{placement:H,boundary:n,rootBoundary:m,altBoundary:c,padding:u}),q=re?Q?Me:ve:Q?ke:ye;b[O]>_[O]&&(q=ui(q));var Z=ui(q),te=[];if(r&&te.push(ne[V]<=0),d&&te.push(ne[q]<=0,ne[Z]<=0),te.every(function(Ce){return Ce})){L=H,I=!1;break}C.set(H,te)}if(I)for(var le=f?3:1,Se=function(fe){var Fe=y.find(function(Re){var Oe=C.get(Re);if(Oe)return Oe.slice(0,fe).every(function($e){return $e})});if(Fe)return L=Fe,"break"},xe=le;xe>0;xe--){var D=Se(xe);if(D==="break")break}e.placement!==L&&(e.modifiersData[a]._skip=!0,e.placement=L,e.reset=!0)}}const Go={name:"flip",enabled:!0,phase:"main",fn:Wo,requiresIfExists:["offset"],data:{_skip:!1}};function ga(t,e,i){return i===void 0&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function Na(t){return[ye,Me,ke,ve].some(function(e){return t[e]>=0})}function Ko(t){var e=t.state,i=t.name,a=e.rects.reference,s=e.rects.popper,r=e.modifiersData.preventOverflow,o=qt(e,{elementContext:"reference"}),d=qt(e,{altBoundary:!0}),h=ga(o,a),u=ga(d,s,r),n=Na(h),m=Na(u);e.modifiersData[i]={referenceClippingOffsets:h,popperEscapeOffsets:u,isReferenceHidden:n,hasPopperEscaped:m},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":n,"data-popper-escaped":m})}const Jo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ko};function Zo(t,e,i){var a=ze(t),s=[ve,ye].indexOf(a)>=0?-1:1,r=typeof i=="function"?i(Object.assign({},e,{placement:t})):i,o=r[0],d=r[1];return o=o||0,d=(d||0)*s,[ve,Me].indexOf(a)>=0?{x:d,y:o}:{x:o,y:d}}function Xo(t){var e=t.state,i=t.options,a=t.name,s=i.offset,r=s===void 0?[0,0]:s,o=ar.reduce(function(n,m){return n[m]=Zo(m,e.rects,r),n},{}),d=o[e.placement],h=d.x,u=d.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=h,e.modifiersData.popperOffsets.y+=u),e.modifiersData[a]=o}const Yo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Xo};function Qo(t){var e=t.state,i=t.name;e.modifiersData[i]=dr({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const el={name:"popperOffsets",enabled:!0,phase:"read",fn:Qo,data:{}};function tl(t){return t==="x"?"y":"x"}function il(t){var e=t.state,i=t.options,a=t.name,s=i.mainAxis,r=s===void 0?!0:s,o=i.altAxis,d=o===void 0?!1:o,h=i.boundary,u=i.rootBoundary,n=i.altBoundary,m=i.padding,c=i.tether,l=c===void 0?!0:c,f=i.tetherOffset,p=f===void 0?0:f,N=qt(e,{boundary:h,rootBoundary:u,padding:m,altBoundary:n}),x=ze(e.placement),w=St(e.placement),v=!w,y=Ms(x),b=tl(y),_=e.modifiersData.popperOffsets,C=e.rects.reference,I=e.rects.popper,L=typeof p=="function"?p(Object.assign({},e.rects,{placement:e.placement})):p,E=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),H=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,V={x:0,y:0};if(_){if(r){var Q,re=y==="y"?ye:ve,O=y==="y"?ke:Me,ne=y==="y"?"height":"width",q=_[y],Z=q+N[re],te=q-N[O],le=l?-I[ne]/2:0,Se=w===xt?C[ne]:I[ne],xe=w===xt?-I[ne]:-C[ne],D=e.elements.arrow,Ce=l&&D?ks(D):{width:0,height:0},fe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:or(),Fe=fe[re],Re=fe[O],Oe=Bt(0,C[ne],Ce[ne]),$e=v?C[ne]/2-le-Oe-Fe-E.mainAxis:Se-Oe-Fe-E.mainAxis,Et=v?-C[ne]/2+le+Oe+Re+E.mainAxis:xe+Oe+Re+E.mainAxis,Ae=e.elements.arrow&&Zt(e.elements.arrow),it=Ae?y==="y"?Ae.clientTop||0:Ae.clientLeft||0:0,st=(Q=H?.[y])!=null?Q:0,Mi=q+$e-st-it,Oi=q+Et-st,Yt=Bt(l?gi(Z,Mi):Z,q,l?ct(te,Oi):te);_[y]=Yt,V[y]=Yt-q}if(d){var Qt,Ii=y==="x"?ye:ve,ei=y==="x"?ke:Me,He=_[b],ft=b==="y"?"height":"width",kt=He+N[Ii],Le=He-N[ei],pt=[ye,ve].indexOf(x)!==-1,qe=(Qt=H?.[b])!=null?Qt:0,at=pt?kt:He-C[ft]-I[ft]-qe+E.altAxis,Mt=pt?He+C[ft]+I[ft]-qe-E.altAxis:Le,ti=l&&pt?Ao(at,He,Mt):Bt(l?at:kt,He,l?Mt:Le);_[b]=ti,V[b]=ti-He}e.modifiersData[a]=V}}const sl={name:"preventOverflow",enabled:!0,phase:"main",fn:il,requiresIfExists:["offset"]};function al(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function rl(t){return t===_e(t)||!Ee(t)?Os(t):al(t)}function nl(t){var e=t.getBoundingClientRect(),i=wt(e.width)/t.offsetWidth||1,a=wt(e.height)/t.offsetHeight||1;return i!==1||a!==1}function ol(t,e,i){i===void 0&&(i=!1);var a=Ee(e),s=Ee(e)&&nl(e),r=et(e),o=_t(t,s,i),d={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(a||!a&&!i)&&((je(e)!=="body"||Rs(r))&&(d=rl(e)),Ee(e)?(h=_t(e,!0),h.x+=e.clientLeft,h.y+=e.clientTop):r&&(h.x=Is(r))),{x:o.left+d.scrollLeft-h.x,y:o.top+d.scrollTop-h.y,width:o.width,height:o.height}}function ll(t){var e=new Map,i=new Set,a=[];t.forEach(function(r){e.set(r.name,r)});function s(r){i.add(r.name);var o=[].concat(r.requires||[],r.requiresIfExists||[]);o.forEach(function(d){if(!i.has(d)){var h=e.get(d);h&&s(h)}}),a.push(r)}return t.forEach(function(r){i.has(r.name)||s(r)}),a}function cl(t){var e=ll(t);return vo.reduce(function(i,a){return i.concat(e.filter(function(s){return s.phase===a}))},[])}function ml(t){var e;return function(){return e||(e=new Promise(function(i){Promise.resolve().then(function(){e=void 0,i(t())})})),e}}function dl(t){var e=t.reduce(function(i,a){var s=i[a.name];return i[a.name]=s?Object.assign({},s,a,{options:Object.assign({},s.options,a.options),data:Object.assign({},s.data,a.data)}):a,i},{});return Object.keys(e).map(function(i){return e[i]})}var ba={placement:"bottom",modifiers:[],strategy:"absolute"};function ya(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function ul(t){t===void 0&&(t={});var e=t,i=e.defaultModifiers,a=i===void 0?[]:i,s=e.defaultOptions,r=s===void 0?ba:s;return function(d,h,u){u===void 0&&(u=r);var n={placement:"bottom",orderedModifiers:[],options:Object.assign({},ba,r),modifiersData:{},elements:{reference:d,popper:h},attributes:{},styles:{}},m=[],c=!1,l={state:n,setOptions:function(x){var w=typeof x=="function"?x(n.options):x;p(),n.options=Object.assign({},r,n.options,w),n.scrollParents={reference:ut(d)?Tt(d):d.contextElement?Tt(d.contextElement):[],popper:Tt(h)};var v=cl(dl([].concat(a,n.options.modifiers)));return n.orderedModifiers=v.filter(function(y){return y.enabled}),f(),l.update()},forceUpdate:function(){if(!c){var x=n.elements,w=x.reference,v=x.popper;if(ya(w,v)){n.rects={reference:ol(w,Zt(v),n.options.strategy==="fixed"),popper:ks(v)},n.reset=!1,n.placement=n.options.placement,n.orderedModifiers.forEach(function(E){return n.modifiersData[E.name]=Object.assign({},E.data)});for(var y=0;y<n.orderedModifiers.length;y++){if(n.reset===!0){n.reset=!1,y=-1;continue}var b=n.orderedModifiers[y],_=b.fn,C=b.options,I=C===void 0?{}:C,L=b.name;typeof _=="function"&&(n=_({state:n,options:I,name:L,instance:l})||n)}}}},update:ml(function(){return new Promise(function(N){l.forceUpdate(),N(n)})}),destroy:function(){p(),c=!0}};if(!ya(d,h))return l;l.setOptions(u).then(function(N){!c&&u.onFirstUpdate&&u.onFirstUpdate(N)});function f(){n.orderedModifiers.forEach(function(N){var x=N.name,w=N.options,v=w===void 0?{}:w,y=N.effect;if(typeof y=="function"){var b=y({state:n,name:x,instance:l,options:v}),_=function(){};m.push(b||_)}})}function p(){m.forEach(function(N){return N()}),m=[]}return l}}var hl=[Bo,el,Lo,_o,Yo,Go,sl,Oo,Jo],fl=ul({defaultModifiers:hl});const pe=t=>t??Y,pl=":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}",gl="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",Nl="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",bl="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 yl=Object.defineProperty,$s=(t,e,i,a)=>{for(var s=void 0,r=t.length-1,o;r>=0;r--)(o=t[r])&&(s=o(e,i,s)||s);return s&&yl(e,i,s),s},Nt;const Ut=(Nt=class extends We{static parseLevel(t){if(t){const e=Object.keys(Ni).find(i=>i.toLowerCase()===t.toLowerCase());return e&&Ni[e]}}static get styles(){return[Gt`
|
|
1419
|
+
${At(pl)}
|
|
1420
|
+
`]}render(){return be`${this.iconToUse&&be`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(t){return t.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(t)}get iconForLevel(){switch(Nt.parseLevel(this.level)){case"warn":return bl;case"suggest":return Nl;case"error":return gl;default:return null}}},Nt.ID="sd-field-validation-message",Nt.levelConverter={fromAttribute(t){return Nt.parseLevel(t)},toAttribute(t){return t&&t.toLowerCase()}},Nt);$s([B({type:String,attribute:!0})],Ut.prototype,"message");$s([B({type:String,attribute:!0})],Ut.prototype,"icon");$s([B({converter:Ut.levelConverter,reflect:!0})],Ut.prototype,"level");let ji=Ut;var Ni=(t=>(t.Warn="warn",t.Suggest="suggest",t.Error="error",t))(Ni||{});customElements.get(ji.ID)||customElements.define(ji.ID,ji);const vl=":host{display:inline-flex;position:relative;cursor:text;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;font-size:16px;color:#111;contain:layout style;flex-direction:column}:host([hidden]),:host([type=hidden]){display:none!important}:host([effective-disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([effective-disabled]) .unfocused-line,:host([effective-disabled]) .focused-line{border-bottom-style:dashed}:host(:not([effective-disabled]):focus) .focused-line,:host(:not([effective-disabled])[focused]) .focused-line{transform:none;transition:transform .25s}:host(:not([effective-disabled]):focus) .label.float,:host(:not([effective-disabled])[focused]) .label.float{color:var(--sd-input-focused-color, #1467ba)}:host([inactive]) .input{pointer-events:none}:host([effective-disabled]:focus),:host([effective-disabled][focused]){box-shadow:0 0 0 1px #111}:host(:not([effective-disabled])[validationlevel]) .focused-line,:host(:not([effective-disabled]):invalid) .focused-line{transform:none;transition:transform .25s}:host([validationlevel=warn i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn i]) .label,:host([validationlevel=warn i]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest i]) .label,:host([validationlevel=suggest i]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error i]) .focused-line,:host(:not([validationlevel]):invalid) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error i]) .label,:host([validationlevel=error i]) .validation-message,:host(:not([validationlevel]):invalid) .label,:host(:not([validationlevel]):invalid) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}.validation-message-wrapper{min-height:var(--sd-input-validation-message-minheight, 0px);position:relative;font-size:0}.validation-message{position:relative;position:var(--sd-input-validation-message-minheight, absolute);left:0;right:0}.label.float{transform:translateY(-75%) scale(.75);width:133%}.label:not(.float){max-width:100%}.floated-label-placeholder{height:20px;width:100%}.label{position:absolute;top:0;left:0;line-height:24px;pointer-events:none;color:var(--sd-input-color, #767676);transition:transform .25s,width .25s;transform-origin:left top}.input-wrapper{position:relative;display:flex;flex-direction:row;align-items:center;background-color:var(--input-wrapper-background-color)}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-wrapper{flex-direction:column;align-items:baseline}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-container{width:100%}:host([extended-prefix]:not(:focus-within)) .input-container,:host([extended-prefix][effective-disabled]) .input-container{width:0px}.input-container{line-height:var(--sd-input-line-height, 24px);flex:1 1 auto}.input{width:100%;background:var(--sd-input-background, transparent);font-family:inherit;font-size:inherit;text-align:inherit;color:inherit;border:none;outline:none;resize:none;padding-left:0;padding-right:0}.input:-webkit-autofill{animation-name:onautofillstart}.input:not(:-webkit-autofill){animation-name:onautofillcancel}@keyframes onautofillstart{0%{outline:none}}@keyframes onautofillcancel{0%{outline:none}}.label,input.input{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:normal;white-space:var(--sd-input-validation-message-minheight, nowrap)}.input::placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;inset: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 xl=Object.defineProperty,ie=(t,e,i,a)=>{for(var s=void 0,r=t.length-1,o;r>=0;r--)(o=t[r])&&(s=o(e,i,s)||s);return s&&xl(e,i,s),s};const wl="sd-lit-input",va="delegatesFocus"in window.ShadowRoot.prototype;let _l=0;var De;const ee=(De=class extends We{constructor(){super(),this.rows=1,this.effectiveDisabled=!1,this.type="text",this.autocomplete="off";const t=_l++;this._validationMessageId=De.ID+"_message_"+t,this._inputId=De.ID+"_input_"+t,this.attachInternals&&!this.activeShadyDOM&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabIndex")||(this.tabIndex=0)}firstUpdated(t){super.firstUpdated(t),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(),va||(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=>{e.key=="Enter"&&this._internals?.form?.requestSubmit()}),this._initialized=!0}initAutocompleted(t){const e=i=>{/^onautofillstart(-sd-lit-input-\d+|\s?)$/.test(i.animationName)?this.autocompleted=!0:/^onautofillcancel(-sd-lit-input-\d+|\s?)$/.test(i.animationName)&&(this.autocompleted=!1)};this.activeShadyDOM?(this._needsAutocompletedCheck=!0,this.activeShadyDOM.nativeMethods.addEventListener.call(t,"animationstart",e)):t.addEventListener("animationstart",e)}get activeShadyDOM(){const t=window.ShadyDOM;return t&&t.inUse?t: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(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled"),this._internals||(this.effectiveDisabled=t)}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(t){this.currentText=t||"",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(t,e){this.updateComplete.then(()=>{this.inputElement&&this.inputElement.setSelectionRange(t,e)})}static get styles(){return[Gt`
|
|
1421
|
+
${At(vl)}
|
|
1422
|
+
`]}render(){let t;const e=this.validationMessage||this.inputElement?.validationMessage,i=e||this.validationLevel!=null;return this.rows===1?t=be`
|
|
1423
1423
|
<input
|
|
1424
1424
|
id=${this._inputId}
|
|
1425
1425
|
class="input"
|
|
1426
1426
|
.type=${this.type}
|
|
1427
|
-
placeholder=${
|
|
1428
|
-
name=${
|
|
1427
|
+
placeholder=${pe(this.placeholder||void 0)}
|
|
1428
|
+
name=${pe(this.name||void 0)}
|
|
1429
1429
|
aria-disabled=${this.effectiveDisabled}
|
|
1430
1430
|
autocomplete=${this.autocomplete}
|
|
1431
1431
|
?disabled=${this.inactive}
|
|
1432
1432
|
?readonly=${this.readonly||this.effectiveDisabled}
|
|
1433
1433
|
?required=${this.required}
|
|
1434
|
-
maxlength=${this.maxlength>0?this.maxlength:
|
|
1434
|
+
maxlength=${this.maxlength>0?this.maxlength:De.DEFAULT_MAX_LENGTH}
|
|
1435
1435
|
aria-describedby=${this._validationMessageId}
|
|
1436
|
-
aria-invalid=${
|
|
1437
|
-
aria-label=${
|
|
1438
|
-
min=${
|
|
1439
|
-
max=${
|
|
1440
|
-
pattern=${
|
|
1436
|
+
aria-invalid=${pe(i)}
|
|
1437
|
+
aria-label=${pe(this.sdAriaLabel||void 0)}
|
|
1438
|
+
min=${pe(this.min||void 0)}
|
|
1439
|
+
max=${pe(this.max||void 0)}
|
|
1440
|
+
pattern=${pe(this.pattern||void 0)}
|
|
1441
1441
|
/>
|
|
1442
|
-
`:
|
|
1442
|
+
`:t=be`
|
|
1443
1443
|
<textarea
|
|
1444
1444
|
id=${this._inputId}
|
|
1445
1445
|
class="input"
|
|
1446
|
-
placeholder=${
|
|
1447
|
-
name=${
|
|
1446
|
+
placeholder=${pe(this.placeholder||void 0)}
|
|
1447
|
+
name=${pe(this.name||void 0)}
|
|
1448
1448
|
aria-disabled=${this.effectiveDisabled}
|
|
1449
1449
|
autocomplete=${this.autocomplete}
|
|
1450
1450
|
?disabled=${this.inactive}
|
|
1451
1451
|
?readonly=${this.readonly||this.effectiveDisabled}
|
|
1452
1452
|
?required=${this.required}
|
|
1453
|
-
maxlength=${this.maxlength>0?this.maxlength:
|
|
1453
|
+
maxlength=${this.maxlength>0?this.maxlength:De.DEFAULT_MAX_LENGTH}
|
|
1454
1454
|
rows=${this.rows}
|
|
1455
1455
|
aria-describedby=${this._validationMessageId}
|
|
1456
|
-
aria-invalid=${
|
|
1457
|
-
aria-label=${
|
|
1456
|
+
aria-invalid=${pe(i)}
|
|
1457
|
+
aria-label=${pe(this.sdAriaLabel||void 0)}
|
|
1458
1458
|
></textarea>
|
|
1459
|
-
`,
|
|
1460
|
-
${this.label?
|
|
1459
|
+
`,be`
|
|
1460
|
+
${this.label?be` <div class="floated-label-placeholder" aria-hidden="true"> </div> `:Y}
|
|
1461
1461
|
<div class="input-wrapper">
|
|
1462
1462
|
<span class="prefix"><slot name="prefix"></slot></span>
|
|
1463
1463
|
<div class="input-container" style="position:${this.shouldFloat()?"static":"relative"};">
|
|
1464
|
-
${this.label&&
|
|
1464
|
+
${this.label&&be`
|
|
1465
1465
|
<label for="${this._inputId}" class="label ${this.shouldFloat()?"float":""}"
|
|
1466
1466
|
>${this.label}</label
|
|
1467
1467
|
>
|
|
1468
1468
|
`}
|
|
1469
|
-
${
|
|
1469
|
+
${t}
|
|
1470
1470
|
</div>
|
|
1471
1471
|
<span class="suffix"><slot name="suffix"></slot></span>
|
|
1472
1472
|
</div>
|
|
@@ -1475,22 +1475,22 @@ function updateMandatory(combobox: ComboBox) {
|
|
|
1475
1475
|
<div class="focused-line"></div>
|
|
1476
1476
|
</div>
|
|
1477
1477
|
<div class="validation-message-wrapper" aria-hidden="true">
|
|
1478
|
-
${(
|
|
1478
|
+
${(e||this.validationIconSrc)&&be`
|
|
1479
1479
|
<sd-field-validation-message
|
|
1480
1480
|
id=${this._validationMessageId}
|
|
1481
1481
|
class="validation-message"
|
|
1482
|
-
.message=${
|
|
1482
|
+
.message=${e}
|
|
1483
1483
|
.icon=${this.validationIconSrc}
|
|
1484
1484
|
.level=${this.validationLevel}
|
|
1485
1485
|
>
|
|
1486
1486
|
</sd-field-validation-message>
|
|
1487
1487
|
`}
|
|
1488
1488
|
</div>
|
|
1489
|
-
`}updated(
|
|
1490
|
-
${
|
|
1491
|
-
`]}render(){return
|
|
1489
|
+
`}updated(t){super.updated(t),this._needsAutocompletedCheck&&!this.autocompleted&&setTimeout(()=>{try{this.autocompleted=this.autocompleted||!!this.shadowRoot.querySelector(":-webkit-autofill")}catch{}},0),this.rows>1&&((t.has("min")||t.has("max")||t.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(t){if(super.update(t),t.has("validationMessage")&&(this.validationMessage?this._internals?.setValidity({customError:!0},this.validationMessage):this._internals?.setValidity(this.inputElement.validity,this.inputElement.validationMessage)),this._initialized&&t.has("rows"))throw Error("rows attribute cannot be changed after the input is attached to the DOM")}fireValueChange(t){this.dispatchEvent(new CustomEvent(`${t?"immediate-":""}value-change`,{detail:{value:this.value}})),this.setFormValue(this.value)}updateFormValidity(){if(this.validationMessage==null){this._internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage);const t=this.shadowRoot.querySelector("sd-field-validation-message");this.requestUpdate("validationMessage",t==null?null:t.message)}}shouldFloat(){return this.alwaysFloatLabel||this.currentText||this.placeholder||this.autocompleted||this.type==="date"}setFormValue(t){this._internals?.setFormValue(t),this.updateFormValidity()}formResetCallback(){this.value=this._initialValue}formDisabledCallback(t){this.effectiveDisabled=t||this.hasAttribute("disabled")}formAssociatedCallback(t){this._needsAutocompletedCheck=!0}formStateRestoreCallback(t,e){typeof t=="string"&&(this.value=t)}},De.ID=wl,De.DEFAULT_MAX_LENGTH=524288,De.formAssociated=!0,De.shadowRootOptions={...We.shadowRootOptions,delegatesFocus:va},De);ie([B({type:String,reflect:!0})],ee.prototype,"label");ie([B({type:String,attribute:!0})],ee.prototype,"validationMessage");ie([B({type:String,attribute:!0})],ee.prototype,"validationIconSrc");ie([B({type:Ni,attribute:!0,reflect:!0})],ee.prototype,"validationLevel");ie([B({type:String,hasChanged(t,e){return e!=null&&e!=t}})],ee.prototype,"currentText");ie([B({type:Boolean,attribute:!0})],ee.prototype,"alwaysFloatLabel");ie([B({type:Boolean,attribute:!0})],ee.prototype,"autocompleted");ie([B({type:Number,attribute:!0})],ee.prototype,"rows");ie([B({type:Boolean,reflect:!0,attribute:"effective-disabled"})],ee.prototype,"effectiveDisabled");ie([B({type:Boolean,reflect:!0,attribute:"extended-prefix"})],ee.prototype,"extendedPrefix");ie([B({type:String,reflect:!0})],ee.prototype,"type");ie([B({type:String,reflect:!0})],ee.prototype,"placeholder");ie([B({type:String,reflect:!0})],ee.prototype,"sdAriaLabel");ie([B({type:Number,reflect:!0})],ee.prototype,"maxlength");ie([B({type:Boolean,reflect:!0})],ee.prototype,"readonly");ie([B({type:Boolean,reflect:!0})],ee.prototype,"required");ie([B({type:String,reflect:!0})],ee.prototype,"name");ie([B({type:Boolean,reflect:!0})],ee.prototype,"inactive");ie([B({type:String,attribute:!0})],ee.prototype,"autocomplete");ie([B({type:String,attribute:!0})],ee.prototype,"min");ie([B({type:String,attribute:!0})],ee.prototype,"max");ie([B({type:String,attribute:!0})],ee.prototype,"pattern");let hi=ee;customElements.get(hi.ID)||customElements.define(hi.ID,hi);const Ls={ATTRIBUTE:1,CHILD:2},ur=t=>(...e)=>({_$litDirective$:t,values:e});let hr=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,i,a){this._$Ct=e,this._$AM=i,this._$Ci=a}_$AS(e,i){return this.update(e,i)}update(e,i){return this.render(...i)}};class Ns extends hr{constructor(e){if(super(e),this.it=Y,e.type!==Ls.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===Y||e==null)return this._t=void 0,this.it=e;if(e===dt)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const i=[e];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}Ns.directiveName="unsafeHTML",Ns.resultType=1;const Sl=ur(Ns);const Cl=t=>t.strings===void 0;const Dt=(t,e)=>{const i=t._$AN;if(i===void 0)return!1;for(const a of i)a._$AO?.(e,!1),Dt(a,e);return!0},bi=t=>{let e,i;do{if((e=t._$AM)===void 0)break;i=e._$AN,i.delete(t),t=e}while(i?.size===0)},fr=t=>{for(let e;e=t._$AM;t=e){let i=e._$AN;if(i===void 0)e._$AN=i=new Set;else if(i.has(t))break;i.add(t),kl(e)}};function Al(t){this._$AN!==void 0?(bi(this),this._$AM=t,fr(this)):this._$AM=t}function El(t,e=!1,i=0){const a=this._$AH,s=this._$AN;if(s!==void 0&&s.size!==0)if(e)if(Array.isArray(a))for(let r=i;r<a.length;r++)Dt(a[r],!1),bi(a[r]);else a!=null&&(Dt(a,!1),bi(a));else Dt(this,t)}const kl=t=>{t.type==Ls.CHILD&&(t._$AP??=El,t._$AQ??=Al)};let Ml=class extends hr{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,i,a){super._$AT(e,i,a),fr(this),this.isConnected=e._$AU}_$AO(e,i=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),i&&(Dt(this,e),bi(this))}setValue(e){if(Cl(this._$Ct))this._$Ct._$AI(e,this);else{const i=[...this._$Ct._$AH];i[this._$Ci]=e,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}};const bs=t=>t?t.startsWith("url")?t:`url("${t}")`:null,pr=(t,e)=>{if(t){const i=new Image;i.addEventListener("load",e),i.src=t,i.complete&&(i.removeEventListener("load",e),e())}};class Ol{static showImage(e,i,a,s){let r;s||!(e instanceof HTMLImageElement)?r=o=>e.style.backgroundImage=bs(o):r=o=>e.src=o,r(a),pr(i,()=>{r(i)})}}class Il extends Ml{constructor(e){if(super(e),e.type!==Ls.ATTRIBUTE||e.name!=="src"&&e.name!=="style")throw new Error("The `placeholder` directive must be used in the `src` or `style` attributes")}update(e,[i,a]){return this.useCssBackground=e.name=="style",this.render(i,a)}render(e,i){this.loadingToken!=null&&(this.loadingToken.cancelled=!0);const a={cancelled:!1};return this.loadingToken=a,typeof e=="string"?this.preload(e,a):e?.then(s=>{this.preload(s,a)}),this.useCssBackground?bs(i):i}preload(e,i){e!=null&&!i.cancelled&&pr(e,()=>{i.cancelled||this.setValue(this.useCssBackground?bs(e):e)})}}const Rl=ur(Il),$l=':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;overflow-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 Ll=Object.defineProperty,Ne=(t,e,i,a)=>{for(var s=void 0,r=t.length-1,o;r>=0;r--)(o=t[r])&&(s=o(e,i,s)||s);return s&&Ll(e,i,s),s},ot;const he=(ot=class extends We{constructor(){super(...arguments),this.contentMode="text",this.role="option"}static get styles(){return[Gt`
|
|
1490
|
+
${At($l)}
|
|
1491
|
+
`]}render(){return be`
|
|
1492
1492
|
<div class="container">
|
|
1493
|
-
${this.getLevelIndicators().map((
|
|
1493
|
+
${this.getLevelIndicators().map((t,e)=>be` <div class="level-indicator level-${e}"></div> `)}
|
|
1494
1494
|
<div class="side-content">
|
|
1495
1495
|
<slot name="left-content"></slot>
|
|
1496
1496
|
${this.renderIcon()}
|
|
@@ -1503,70 +1503,71 @@ function updateMandatory(combobox: ComboBox) {
|
|
|
1503
1503
|
<slot name="right-content"></slot>
|
|
1504
1504
|
</div>
|
|
1505
1505
|
</div>
|
|
1506
|
-
`}renderIcon(){
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
>
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
<div class="${s}" title="${ie(t)}">
|
|
1519
|
-
${this.contentMode==="html"?pl(e):e}
|
|
1506
|
+
`}renderIcon(){return this.icon||this.iconPlaceholder?be`<div
|
|
1507
|
+
class="icon-wrapper"
|
|
1508
|
+
@pointerdown="${this.handleIconClick}"
|
|
1509
|
+
style="background-color:${pe(this.iconBackgroundColor)};"
|
|
1510
|
+
role="img"
|
|
1511
|
+
aria-label="${pe(this.iconAttrAriaLabel)}"
|
|
1512
|
+
title="${pe(this.iconAttrTitle)}"
|
|
1513
|
+
>
|
|
1514
|
+
<div class="icon" style="background-image:${Rl(this.icon,this.iconPlaceholder)}"></div>
|
|
1515
|
+
</div> `:Y}renderLabel(t,e,i){return e?be`
|
|
1516
|
+
<div class="${t}" title="${pe(i)}">
|
|
1517
|
+
${this.contentMode==="html"?Sl(e):e}
|
|
1520
1518
|
</div>
|
|
1521
|
-
`:
|
|
1522
|
-
${
|
|
1523
|
-
`]}render(){return this.updateItemsRenderData(),
|
|
1519
|
+
`:Y}updated(t){super.updated(t),t.has("selected")&&this.setAttribute("aria-selected",String(this.selected))}get missingWidthForTexts(){const t=this.enableLineClamp;this.removeAttribute("enable-line-clamp");let e=0;const i=this.shadowRoot.querySelector(".caption");i&&(e+=i.scrollWidth-i.clientWidth);const a=this.shadowRoot.querySelector(".description");return a&&(e=Math.max(e,a.scrollWidth-a.clientWidth)),e>0&&e++,t&&this.setAttribute("enable-line-clamp",""),e}handleIconClick(t){!this.disabled&&!this.dispatchEvent(new PointerEvent("list-item-icon-click",t))&&t.preventDefault()}getLevelIndicators(){return this.level?Array(Number(this.level)).fill(null):[]}},ot.ID="sd-list-item",ot.ensureDefined=()=>{customElements.get(ot.ID)||customElements.define(ot.ID,ot)},ot);Ne([B({type:String})],he.prototype,"caption");Ne([B({type:String})],he.prototype,"description");Ne([B({type:Boolean})],he.prototype,"selected");Ne([B({type:String})],he.prototype,"icon");Ne([B({type:String})],he.prototype,"iconBackgroundColor");Ne([B({type:String})],he.prototype,"iconPlaceholder");Ne([B({type:Number})],he.prototype,"level");Ne([B()],he.prototype,"contentMode");Ne([B({type:Boolean,reflect:!0,attribute:"enable-line-clamp"})],he.prototype,"enableLineClamp");Ne([B({converter:{fromAttribute:t=>t=="true",toAttribute:t=>t},reflect:!0,attribute:"aria-disabled"})],he.prototype,"disabled");Ne([B({type:String,attribute:"icon-attr-aria-label"})],he.prototype,"iconAttrAriaLabel");Ne([B({type:String,reflect:!0})],he.prototype,"role");Ne([B({type:String,attribute:"caption-attr-title"})],he.prototype,"captionAttrTitle");Ne([B({type:String,attribute:"description-attr-title"})],he.prototype,"descriptionAttrTitle");Ne([B({type:String,attribute:"icon-attr-title"})],he.prototype,"iconAttrTitle");let yt=he;const gr=(t,e)=>{const i=document.createElement(yt.ID);if(t){if(i.caption=t.caption,i.description=t.description,i.icon=t.icon,i.iconBackgroundColor=t.iconBackgroundColor,i.iconPlaceholder=t.iconPlaceholder,i.level=t.level,i.disabled=t.disabled,t.contentMode&&(i.contentMode=t.contentMode),t.leftContentGenerator){const a=t.leftContentGenerator(t,i);a&&(a.slot="left-content",i.appendChild(a))}if(t.rightContentGenerator){const a=t.rightContentGenerator(t,i);a&&(a.slot="right-content",i.appendChild(a))}}return i};yt.ensureDefined();class Pl{getOffsetForIndexAndAlignment(e,i,a,s,r,o){const d=Math.max(0,o*s),h=Math.min(d,e*s),u=Math.max(0,e*s-r+s);switch(i){case"start":return h;case"end":return u;case"center":{const n=Math.round(u+(h-u)/2);return n<Math.ceil(r/2)?0:n>d+Math.floor(r/2)?d:n}case"auto":default:return a>=u&&a<=h?a:a<u?u:h}}debounce(e){let i;return(...a)=>{i&&window.cancelAnimationFrame(i),i=window.requestAnimationFrame(()=>{e(...a),i=null})}}}const Bl=new Pl;class Tl{constructor(e=100,i=5){this.pageSize=e,this.preloadedItemsCount=i,this._finalSizeIsKnown=!1,this._itemCache=[],this._lastRequestedFirstIndex=0,this._lastRequestedLastIndex=0,this._lastLoadedIndex=0,this.handleListDataRequest=a=>{const{startIndex:s,stopIndex:r}=a.detail;this._lastRequestedFirstIndex=s,this._lastRequestedLastIndex=r,this._list.items=this._itemCache.slice(s,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 Dl=":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 zl=Object.defineProperty,jl=Object.getOwnPropertyDescriptor,tt=(t,e,i,a)=>{for(var s=a>1?void 0:a?jl(e,i):e,r=t.length-1,o;r>=0;r--)(o=t[r])&&(s=(a?o(e,i,s):o(s))||s);return a&&s&&zl(e,i,s),s},Lt=(t=>(t.TriggerOnly="trigger-only",t.Single="single",t.Multi="multi",t))(Lt||{});let Vl=0;var Ye;const Ke=(Ye=class extends We{constructor(){super(),this.items=[],this.selectionType="trigger-only",this.id=Ye.ID+"_"+Vl++,this.role="listbox",this.itemGenerator=gr,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 t=this._lastRenderedScrollTop-this._lastKnownScrollTop;Math.abs(t)>=this.itemHeight&&(this._lastRenderedScrollTop=this._lastKnownScrollTop,this.requestUpdate())},this.handleKeyDown=t=>{let e=!0;switch(t.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,t.metaKey||t.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&&(t.preventDefault(),t.stopPropagation())},this._resizeObserver=new ResizeObserver(()=>{this._lastKnownHeight!==this.offsetHeight&&(this._lastKnownHeight=this.offsetHeight,this.requestUpdate())})}get focusTarget(){return this.hasAttribute("focus-target")}set focusTarget(t){this.toggleAttribute("focus-target",t)}get focusIndex(){return this._focusIndex}set focusIndex(t){if(t>=-1&&t<this.itemCount){const e=this._focusIndex;this._focusIndex=t,(t<=this._firstVisibleIndex||this._lastVisibleIndex<=t)&&this.scrollToItem(t),e!=t&&(t==-1&&this.removeAttribute("aria-activedescendant"),this.requestUpdate("focusIndex",e))}}get selectedIndices(){return this._selectedIndices}set selectedIndices(t){t?this._selectedIndices=t.map(e=>Number(e)):this._selectedIndices=[],this.requestUpdate("selectedIndices")}scrollToItem(t,e="auto"){this.scrollTop=Bl.getOffsetForIndexAndAlignment(this.normalizeIndex(t),e,this.scrollTop,this.itemHeight,this.height,this.itemCount),this._lastKnownScrollTop=this.scrollTop}getListItem(t){return!this.shadowRoot||t<this._firstVisibleIndex||this._lastVisibleIndex<t?null:this.querySelector(`[item-index="${t}"]`)}connectedCallback(){super.connectedCallback(),this._resizeObserver.observe(this),this.scrollTop!==this._lastKnownScrollTop&&(this.scrollTop=this._lastKnownScrollTop,this.requestUpdate())}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver.disconnect()}firstUpdated(t){super.firstUpdated(t),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 t=this.getListItem(this.focusIndex);t&&(this.focusTarget||document.activeElement==this?(t.setAttribute("focused",""),this.setAttribute("aria-activedescendant",t.id)):(t.removeAttribute("focused"),this.removeAttribute("aria-activedescendant")))}static get styles(){return[Gt`
|
|
1520
|
+
${At(Dl)}
|
|
1521
|
+
`]}render(){return this.updateItemsRenderData(),be`
|
|
1524
1522
|
<div class="container" style="height: ${this.itemCount*this.itemHeight}px">
|
|
1525
1523
|
<slot name="items"></slot>
|
|
1526
1524
|
</div>
|
|
1527
|
-
`}updated(s){if(super.updated(s),this._lastRenderedScrollTop=this._lastKnownScrollTop,this.updateItems(),(this._increaseWidthOnNextRenderIfNeeded||this._reachedMaxWidth)&&this._firstVisibleIndex<this._lastVisibleIndex)if(this.querySelector("[item-index]"))this.adjustWidthIfNeeded();else{const e=new MutationObserver(()=>{this.adjustWidthIfNeeded(),e.disconnect()});e.observe(this)}}adjustWidthIfNeeded(){this._increaseWidthOnNextRenderIfNeeded?(this._increaseWidthOnNextRenderIfNeeded=!1,window.requestAnimationFrame(()=>{const s=Number.parseInt(getComputedStyle(this).maxWidth)-this.offsetWidth;if(s==0)this._reachedMaxWidth=!0,this.enableLineClampOnItemsIfNeeded();else{this._reachedMaxWidth=!1;const e=[...this.querySelectorAll("[item-index]")].map(i=>{if(i instanceof tt){i.enableLineClamp=!1;const a=i.missingWidthForTexts;return a>s&&(i.enableLineClamp=!0),a}}),t=Math.max(...e);t>0&&(this.style.width=`${this.offsetWidth+t}px`)}})):this._reachedMaxWidth&&this.enableLineClampOnItemsIfNeeded()}enableLineClampOnItemsIfNeeded(){this.querySelectorAll("[item-index]").forEach(s=>{s instanceof tt&&(s.enableLineClamp=s.enableLineClamp||s.missingWidthForTexts>0)})}increaseWidthOnNextRenderIfNeeded(){this._increaseWidthOnNextRenderIfNeeded=!0}updateItems(){const s=[...this.querySelectorAll("[item-index]")],e=new Map,t=document.createDocumentFragment();for(const i of this._itemsRenderData){const a=this.renderItem(i);a.parentElement||t.appendChild(a),e.set(i.dataHash,a);const r=s.indexOf(a);r!==-1&&s.splice(r,1)}this.appendChild(t);for(const i of s)i instanceof tt&&(i.enableLineClamp=!1),this.removeChild(i);e.forEach((i,a)=>{this._elementCache.set(a,i)})}renderItem({index:s,top:e,dataHash:t,data:i}){let a;return i?this._elementCache.has(t)?(a=this._elementCache.get(t),this._elementCache.delete(t)):(a=this.itemGenerator(i,s),a.setAttribute("slot","items")):(a=document.createElement("div"),a.setAttribute("placeholder-item",""),a.setAttribute("slot","items")),Object.assign(a.style,{transform:`translateY(${e}px)`,height:`${this.itemHeight}px`}),a.setAttribute("item-index",s.toString()),a.setAttribute("aria-setsize",String(this.finalSizeIsKnown?this.itemCount:-1)),a.setAttribute("aria-posinset",String(s+1)),(!a.id||a.id.startsWith(this.id+"_item_"))&&(a.id=this.id+"_item_"+s),this.itemCount-1==s?a.setAttribute("last",""):a.removeAttribute("last"),this.updateSelectedAttribute(s,a),this.updateFocusedAttribute(s,a),a}updateFocusedAttribute(s,e){this.focusIndex==s&&(this.focusTarget||document.activeElement==this)?(e.setAttribute("focused",""),this.setAttribute("aria-activedescendant",e.id)):e.removeAttribute("focused")}updateSelectedAttribute(s,e){const t=this.selectedIndices.indexOf(s)!==-1;t?e.setAttribute("selected",""):e.removeAttribute("selected"),e.setAttribute("aria-selected",String(t))}updateItemsRenderData(){if(this._itemsRenderData=[],this._visibleItemsNum=Math.min(Math.ceil(this.height/this.itemHeight),this.itemCount),this._visibleItemsNum>0){this._firstVisibleIndex=this.normalizeIndex(Math.floor(this._lastKnownScrollTop/this.itemHeight)),this._lastVisibleIndex=this.normalizeIndex(this._firstVisibleIndex+this._visibleItemsNum);const s=this.normalizeIndex(this._firstVisibleIndex-2),e=this.normalizeIndex(this._lastVisibleIndex+2);this.requestData(s,e);for(let t=s;t<=e;t++){const i=t-s,a=this.items[i];let r;a?r=JSON.stringify(a):r=`placeholder-${i}`,this._itemsRenderData.push({index:t,top:this.itemHeight*t,physicalIndex:i,dataHash:r,data:a})}}else this._firstVisibleIndex=0,this._lastVisibleIndex=0}normalizeIndex(s){return Math.max(0,Math.min(s,this.itemCount-1))}get height(){return this.offsetHeight}requestData(s,e){!Number.isNaN(s)&&!Number.isNaN(e)&&this.dispatchEvent(new CustomEvent("data-request",{detail:{startIndex:s,stopIndex:e}}))}handleSelection(s,e){if(s<0||this.itemCount<=s)return;const t=this.getListItem(s);if(t.getAttribute("aria-disabled")=="true"||t.hasAttribute("disabled"))return;let i=!0;if(this.selectionType!=="trigger-only"){const a=this.selectedIndices.indexOf(s);i=a==-1,i?this.selectionType==="single"?this.selectedIndices=[s]:this.selectedIndices.push(s):this.selectedIndices.splice(a,1),this.requestUpdate("selectedIndices")}this.focusIndex=s,this.dispatchSelectionEvent(s,i,e)}dispatchSelectionEvent(s,e,t){this.dispatchEvent(new CustomEvent("selection",{detail:{index:s,selected:e,hasModifier:t}}))}handleClick(s){const e=s.composedPath().find(t=>t.hasAttribute&&t.hasAttribute("item-index"));if(e){const t=parseInt(e.getAttribute("item-index"));if(Number.isInteger(t)){if(s.button==0||s.button==1){const i=s.type=="auxclick"&&s.button==1||s.metaKey||s.ctrlKey;this.handleSelection(t,i)}this.focusIndex=t}}}},Me.ID="sd-virtual-list",Me.ensureDefined=()=>{tt.ensureDefined(),customElements.get(Me.ID)||customElements.define(Me.ID,Me)},Me);Pe([v({type:Number,attribute:"item-height",reflect:!0})],$e.prototype,"itemHeight",2);Pe([v({type:Number})],$e.prototype,"itemCount",2);Pe([v({type:Array,attribute:!1})],$e.prototype,"items",2);Pe([v({type:String,attribute:"selection-type",reflect:!0,noAccessor:!0})],$e.prototype,"selectionType",2);Pe([v({type:String,attribute:!0,reflect:!0})],$e.prototype,"id",2);Pe([v({type:String,reflect:!0})],$e.prototype,"role",2);Pe([v({type:Number,attribute:"focus-index",reflect:!0})],$e.prototype,"focusIndex",1);Pe([v({type:Array,attribute:!1})],$e.prototype,"selectedIndices",1);let Ji=$e;Ji.ensureDefined();const El=":host{display:inline-flex;position:relative;cursor:text;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;font-size:16px;color:#111;contain:layout style;flex-direction:column}:host([hidden]),:host([type=hidden]){display:none!important}:host([effective-disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([effective-disabled]) .unfocused-line,:host([effective-disabled]) .focused-line{border-bottom-style:dashed}:host(:not([effective-disabled]):focus) .focused-line,:host(:not([effective-disabled])[focused]) .focused-line{transform:none;transition:transform .25s}:host(:not([effective-disabled]):focus) .label.float,:host(:not([effective-disabled])[focused]) .label.float{color:var(--sd-input-focused-color, #1467ba)}:host([inactive]) .input{pointer-events:none}:host([effective-disabled]:focus),:host([effective-disabled][focused]){box-shadow:0 0 0 1px #111}:host(:not([effective-disabled])[validationlevel]) .focused-line,:host(:not([effective-disabled]):invalid) .focused-line{transform:none;transition:transform .25s}:host([validationlevel=warn i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn i]) .label,:host([validationlevel=warn i]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest i]) .label,:host([validationlevel=suggest i]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error i]) .focused-line,:host(:not([validationlevel]):invalid) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error i]) .label,:host([validationlevel=error i]) .validation-message,:host(:not([validationlevel]):invalid) .label,:host(:not([validationlevel]):invalid) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}.validation-message-wrapper{min-height:var(--sd-input-validation-message-minheight, 0px);position:relative;font-size:0}.validation-message{position:relative;position:var(--sd-input-validation-message-minheight, absolute);left:0;right:0}.label.float{transform:translateY(-75%) scale(.75);width:133%}.label:not(.float){max-width:100%}.floated-label-placeholder{height:20px;width:100%}.label{position:absolute;top:0;left:0;line-height:24px;pointer-events:none;color:var(--sd-input-color, #767676);transition:transform .25s,width .25s;transform-origin:left top}.input-wrapper{position:relative;display:flex;flex-direction:row;align-items:center;background-color:var(--input-wrapper-background-color)}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-wrapper{flex-direction:column;align-items:baseline}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-container{width:100%}:host([extended-prefix]:not(:focus-within)) .input-container,:host([extended-prefix][effective-disabled]) .input-container{width:0px}.input-container{line-height:var(--sd-input-line-height, 24px);flex:1 1 auto}.input{width:100%;background:var(--sd-input-background, transparent);font-family:inherit;font-size:inherit;text-align:inherit;color:inherit;border:none;outline:none;resize:none;padding-left:0;padding-right:0}.input:-webkit-autofill{animation-name:onautofillstart}.input:not(:-webkit-autofill){animation-name:onautofillcancel}@keyframes onautofillstart{0%{outline:none}}@keyframes onautofillcancel{0%{outline:none}}.label,input.input{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:normal;white-space:var(--sd-input-validation-message-minheight, nowrap)}.input::placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;top:0;right:0;bottom:0;left:0}.unfocused-line{border-bottom:1px solid var(--sd-input-underline-color, #959595)}.focused-line{border-bottom:2px solid var(--sd-input-focused-color, #1467ba);transform-origin:center center;transform:scale3d(0,1,1)}.prefix,.suffix{display:flex;flex-wrap:nowrap;max-width:100%}.prefix ::slotted(*),.suffix ::slotted(*){display:flex}:host(:focus){outline:none}.suffix ::slotted(.clear-button),.suffix ::slotted(.toggle-button){cursor:pointer;width:16px;height:32px;padding:0 8px;margin-top:-8px;margin-bottom:-8px;fill:#666;outline:none;flex-shrink:0}.suffix ::slotted(.toggle-button){transition:transform .2s}:host([opened]) .suffix ::slotted(.toggle-button){transform:rotate(180deg)}:host([disabled]) .suffix ::slotted(.clear-button),:host([disabled]) .suffix ::slotted(.toggle-button){display:none!important}.prefix ::slotted(.icon-wrapper){width:32px;height:32px;padding-right:4px;margin-top:-8px;margin-bottom:-8px;display:flex;align-items:center;justify-content:center;flex-shrink:0}:host(:not([has-value])) .suffix ::slotted(.clear-button),:host([null-setting-disallowed]) .suffix ::slotted(.clear-button){display:none!important}:host(:not([allow-custom-value]):not([trigger-only])) .input{caret-color:transparent}:host(:not([allow-custom-value]):not([disabled])) .input{cursor:pointer}#default-slot{display:none}",Al=`<svg xmlns="http://www.w3.org/2000/svg" class="toggle-button" slot="suffix" viewBox="0 0 16 16">\r
|
|
1525
|
+
`}updated(t){if(super.updated(t),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 t=Number.parseInt(getComputedStyle(this).maxWidth)-this.offsetWidth;if(t==0)this._reachedMaxWidth=!0,this.enableLineClampOnItemsIfNeeded();else{this._reachedMaxWidth=!1;const e=[...this.querySelectorAll("[item-index]")].map(a=>{if(a instanceof yt){a.enableLineClamp=!1;const s=a.missingWidthForTexts;return s>t&&(a.enableLineClamp=!0),s}}),i=Math.max(...e);i>0&&(this.style.width=`${this.offsetWidth+i}px`)}})):this._reachedMaxWidth&&this.enableLineClampOnItemsIfNeeded()}enableLineClampOnItemsIfNeeded(){this.querySelectorAll("[item-index]").forEach(t=>{t instanceof yt&&(t.enableLineClamp=t.enableLineClamp||t.missingWidthForTexts>0)})}increaseWidthOnNextRenderIfNeeded(){this._increaseWidthOnNextRenderIfNeeded=!0}updateItems(){const t=[...this.querySelectorAll("[item-index]")],e=new Map,i=document.createDocumentFragment();for(const a of this._itemsRenderData){const s=this.renderItem(a);s.parentElement||i.appendChild(s),e.set(a.dataHash,s);const r=t.indexOf(s);r!==-1&&t.splice(r,1)}this.appendChild(i);for(const a of t)a instanceof yt&&(a.enableLineClamp=!1),this.removeChild(a);e.forEach((a,s)=>{this._elementCache.set(s,a)})}renderItem({index:t,top:e,dataHash:i,data:a}){let s;return a?this._elementCache.has(i)?(s=this._elementCache.get(i),this._elementCache.delete(i)):(s=this.itemGenerator(a,t),s.setAttribute("slot","items")):(s=document.createElement("div"),s.setAttribute("placeholder-item",""),s.setAttribute("slot","items")),Object.assign(s.style,{transform:`translateY(${e}px)`,height:`${this.itemHeight}px`}),s.setAttribute("item-index",t.toString()),s.setAttribute("aria-setsize",String(this.finalSizeIsKnown?this.itemCount:-1)),s.setAttribute("aria-posinset",String(t+1)),(!s.id||s.id.startsWith(this.id+"_item_"))&&(s.id=this.id+"_item_"+t),this.itemCount-1==t?s.setAttribute("last",""):s.removeAttribute("last"),this.updateSelectedAttribute(t,s),this.updateFocusedAttribute(t,s),s}updateFocusedAttribute(t,e){this.focusIndex==t&&(this.focusTarget||document.activeElement==this)?(e.setAttribute("focused",""),this.setAttribute("aria-activedescendant",e.id)):e.removeAttribute("focused")}updateSelectedAttribute(t,e){const i=this.selectedIndices.indexOf(t)!==-1;i?e.setAttribute("selected",""):e.removeAttribute("selected"),e.setAttribute("aria-selected",String(i))}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 t=this.normalizeIndex(this._firstVisibleIndex-2),e=this.normalizeIndex(this._lastVisibleIndex+2);this.requestData(t,e);for(let i=t;i<=e;i++){const a=i-t,s=this.items[a];let r;s?r=JSON.stringify(s):r=`placeholder-${a}`,this._itemsRenderData.push({index:i,top:this.itemHeight*i,physicalIndex:a,dataHash:r,data:s})}}else this._firstVisibleIndex=0,this._lastVisibleIndex=0}normalizeIndex(t){return Math.max(0,Math.min(t,this.itemCount-1))}get height(){return this.offsetHeight}requestData(t,e){!Number.isNaN(t)&&!Number.isNaN(e)&&this.dispatchEvent(new CustomEvent("data-request",{detail:{startIndex:t,stopIndex:e}}))}handleSelection(t,e){if(t<0||this.itemCount<=t)return;const i=this.getListItem(t);if(i.getAttribute("aria-disabled")=="true"||i.hasAttribute("disabled"))return;let a=!0;if(this.selectionType!=="trigger-only"){const s=this.selectedIndices.indexOf(t);a=s==-1,a?this.selectionType==="single"?this.selectedIndices=[t]:this.selectedIndices.push(t):this.selectedIndices.splice(s,1),this.requestUpdate("selectedIndices")}this.focusIndex=t,this.dispatchSelectionEvent(t,a,e)}dispatchSelectionEvent(t,e,i){this.dispatchEvent(new CustomEvent("selection",{detail:{index:t,selected:e,hasModifier:i}}))}handleClick(t){const e=t.composedPath().find(i=>i.hasAttribute&&i.hasAttribute("item-index"));if(e){const i=parseInt(e.getAttribute("item-index"));if(Number.isInteger(i)){if(t.button==0||t.button==1){const a=t.type=="auxclick"&&t.button==1||t.metaKey||t.ctrlKey;this.handleSelection(i,a)}this.focusIndex=i}}}},Ye.ID="sd-virtual-list",Ye.ensureDefined=()=>{yt.ensureDefined(),customElements.get(Ye.ID)||customElements.define(Ye.ID,Ye)},Ye);tt([B({type:Number,attribute:"item-height",reflect:!0})],Ke.prototype,"itemHeight",2);tt([B({type:Number})],Ke.prototype,"itemCount",2);tt([B({type:Array,attribute:!1})],Ke.prototype,"items",2);tt([B({type:String,attribute:"selection-type",reflect:!0,noAccessor:!0})],Ke.prototype,"selectionType",2);tt([B({type:String,attribute:!0,reflect:!0})],Ke.prototype,"id",2);tt([B({type:String,reflect:!0})],Ke.prototype,"role",2);tt([B({type:Number,attribute:"focus-index",reflect:!0})],Ke.prototype,"focusIndex",1);tt([B({type:Array,attribute:!1})],Ke.prototype,"selectedIndices",1);let ys=Ke;ys.ensureDefined();const Fl=":host{display:inline-flex;position:relative;cursor:text;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;font-size:16px;color:#111;contain:layout style;flex-direction:column}:host([hidden]),:host([type=hidden]){display:none!important}:host([effective-disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([effective-disabled]) .unfocused-line,:host([effective-disabled]) .focused-line{border-bottom-style:dashed}:host(:not([effective-disabled]):focus) .focused-line,:host(:not([effective-disabled])[focused]) .focused-line{transform:none;transition:transform .25s}:host(:not([effective-disabled]):focus) .label.float,:host(:not([effective-disabled])[focused]) .label.float{color:var(--sd-input-focused-color, #1467ba)}:host([inactive]) .input{pointer-events:none}:host([effective-disabled]:focus),:host([effective-disabled][focused]){box-shadow:0 0 0 1px #111}:host(:not([effective-disabled])[validationlevel]) .focused-line,:host(:not([effective-disabled]):invalid) .focused-line{transform:none;transition:transform .25s}:host([validationlevel=warn i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn i]) .label,:host([validationlevel=warn i]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest i]) .label,:host([validationlevel=suggest i]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error i]) .focused-line,:host(:not([validationlevel]):invalid) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error i]) .label,:host([validationlevel=error i]) .validation-message,:host(:not([validationlevel]):invalid) .label,:host(:not([validationlevel]):invalid) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}.validation-message-wrapper{min-height:var(--sd-input-validation-message-minheight, 0px);position:relative;font-size:0}.validation-message{position:relative;position:var(--sd-input-validation-message-minheight, absolute);left:0;right:0}.label.float{transform:translateY(-75%) scale(.75);width:133%}.label:not(.float){max-width:100%}.floated-label-placeholder{height:20px;width:100%}.label{position:absolute;top:0;left:0;line-height:24px;pointer-events:none;color:var(--sd-input-color, #767676);transition:transform .25s,width .25s;transform-origin:left top}.input-wrapper{position:relative;display:flex;flex-direction:row;align-items:center;background-color:var(--input-wrapper-background-color)}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-wrapper{flex-direction:column;align-items:baseline}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-container{width:100%}:host([extended-prefix]:not(:focus-within)) .input-container,:host([extended-prefix][effective-disabled]) .input-container{width:0px}.input-container{line-height:var(--sd-input-line-height, 24px);flex:1 1 auto}.input{width:100%;background:var(--sd-input-background, transparent);font-family:inherit;font-size:inherit;text-align:inherit;color:inherit;border:none;outline:none;resize:none;padding-left:0;padding-right:0}.input:-webkit-autofill{animation-name:onautofillstart}.input:not(:-webkit-autofill){animation-name:onautofillcancel}@keyframes onautofillstart{0%{outline:none}}@keyframes onautofillcancel{0%{outline:none}}.label,input.input{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:normal;white-space:var(--sd-input-validation-message-minheight, nowrap)}.input::placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;inset:0}.unfocused-line{border-bottom:1px solid var(--sd-input-underline-color, #959595)}.focused-line{border-bottom:2px solid var(--sd-input-focused-color, #1467ba);transform-origin:center center;transform:scale3d(0,1,1)}.prefix,.suffix{display:flex;flex-wrap:nowrap;max-width:100%}.prefix ::slotted(*),.suffix ::slotted(*){display:flex}:host(:focus){outline:none}.suffix ::slotted(.clear-button),.suffix ::slotted(.toggle-button){cursor:pointer;width:16px;height:32px;padding:0 8px;margin-top:-8px;margin-bottom:-8px;fill:#666;outline:none;flex-shrink:0}.suffix ::slotted(.toggle-button){transition:transform .2s}:host([opened]) .suffix ::slotted(.toggle-button){transform:rotate(180deg)}:host([disabled]) .suffix ::slotted(.clear-button),:host([disabled]) .suffix ::slotted(.toggle-button){display:none!important}.prefix ::slotted(.icon-wrapper){width:32px;height:32px;padding-right:4px;margin-top:-8px;margin-bottom:-8px;display:flex;align-items:center;justify-content:center;flex-shrink:0}:host(:not([has-value])) .suffix ::slotted(.clear-button),:host([null-setting-disallowed]) .suffix ::slotted(.clear-button){display:none!important}:host(:not([allow-custom-value]):not([trigger-only])) .input{caret-color:transparent}:host(:not([allow-custom-value]):not([disabled])) .input{cursor:pointer}#default-slot{display:none}",Hl=`<svg xmlns="http://www.w3.org/2000/svg" class="toggle-button" slot="suffix" viewBox="0 0 16 16">\r
|
|
1528
1526
|
<path d="M13 4v2l-5 5-5-5v-2l5 5z"/>\r
|
|
1529
1527
|
</svg>\r
|
|
1530
|
-
`,
|
|
1528
|
+
`,ql=`<svg xmlns="http://www.w3.org/2000/svg" class="clear-button" slot="suffix" viewBox="0 0 16 16">\r
|
|
1531
1529
|
<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
|
|
1532
1530
|
</svg>\r
|
|
1533
|
-
`;var
|
|
1534
|
-
${
|
|
1535
|
-
`]}disconnectedCallback(){super.disconnectedCallback(),this._popper&&(this._popper.destroy(),this._popper=null)}render(){return
|
|
1531
|
+
`;var Ul=Object.defineProperty,Je=(t,e,i,a)=>{for(var s=void 0,r=t.length-1,o;r>=0;r--)(o=t[r])&&(s=o(e,i,s)||s);return s&&Ul(e,i,s),s};const Wl="sd-combo-box";function xa(t,e){let i;return function(...a){i!=null&&clearTimeout(i),i=window.setTimeout(()=>t(...a),e)}}let Gl=0;var ge;const Ve=(ge=class extends hi{constructor(){super(),this.opened=!1,this.itemHeight=50,this.displayValuePath="caption",this.id=ge.ID+"_"+Gl++,this.inMemoryFilter=(e,i)=>{if(!e)return!0;const a=e.toLowerCase();return!!(typeof i.caption=="string"&&i.caption.toLowerCase().includes(a)||typeof i.description=="string"&&i.description.toLowerCase().includes(a))},this.minimumOverlayWidth=250,this._itemGenerator=gr,this._itemCache=[],this.debouncedFilterItemsInMemory=xa(this.filterItemsInMemory.bind(this),200),this.handleSelection=e=>{const i=this._dataProvider.items[e.detail.index];e.detail.selected||(this._list.selectedIndices=[e.detail.index]),this.comboBoxValue={index:this._itemCache.indexOf(i),item:i},this.dispatchSelectionChangeEvent(),this.opened=!1},this.handleWindowPointerDown=e=>{!(e.target instanceof Node&&this.contains(e.target))&&this.opened&&e.composedPath().indexOf(this._list)===-1&&(this.triggerOnly&&(this.value=null),this.opened=!1)},this.handleKeyDown=e=>{switch(e.key){case"Down":case"ArrowDown":{e.preventDefault(),this.navigateInList(1);break}case"Up":case"ArrowUp":{e.preventDefault(),this.navigateInList(-1);break}case"Enter":{this.opened&&(e.preventDefault(),e.stopPropagation(),this.opened=!1);break}case"Escape":{this.opened&&(e.preventDefault(),e.stopPropagation(),this._list.selectedIndices.indexOf(this._list.focusIndex)>-1&&this._dataProvider.items.length>this._list.focusIndex?this.opened=!1:(this.clearFilter(),this.updateInputValue(null),this.updateFocusAndSelectedIndexFromValue(),this._list.selectedIndices.includes(this._list.focusIndex)||this._list.selectedIndices.push(this._list.focusIndex)));break}case"Tab":{this.opened&&(this.triggerOnly&&(this.value=null),this.opened=!1);break}}},this.debouncedRequestData=xa(this.requestData.bind(this),250),this._dataProvider=new Tl,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=i=>{this.requestData(i,!1)}}get comboBoxValue(){return this._comboBoxValue}set comboBoxValue(e){this._comboBoxValue=e,this.updateInputValue(null),this.updateHasValue()}get selectedIndex(){return this.isCustomValue(this.comboBoxValue)||!this.comboBoxValue?-1:this.comboBoxValue.index}get displayValue(){return this.value}open(){this.opened=!0}static get styles(){return[Gt`
|
|
1532
|
+
${At(Fl)}
|
|
1533
|
+
`]}disconnectedCallback(){super.disconnectedCallback(),this._popper&&(this._popper.destroy(),this._popper=null)}render(){return be`
|
|
1536
1534
|
${super.render()}
|
|
1537
1535
|
<slot @slotchange=${this.onDefaultSlotChange} id="default-slot"></slot>
|
|
1538
|
-
`}attributeChangedCallback(e,
|
|
1536
|
+
`}attributeChangedCallback(e,i,a){if(super.attributeChangedCallback(e,i,a),i!==a)switch(e){case"opened":{this.handleOpenedStateChange();break}case"item-height":{this._list&&(this._list.itemHeight=this.itemHeight);break}case"id":{this.updateListId();break}}}firstUpdated(e){super.firstUpdated(e),this.value&&!this.comboBoxValue&&this.updateComboBoxValueFromValue(),window.requestAnimationFrame(()=>{this.initClearButtton(),this.initToggleButtton(),this.updateHasValue(),this.addEventListener("click",()=>{this.disabled||(this.opened=!this.opened)}),this.addEventListener("keydown",i=>{this.disabled||this.handleKeyDown(i)})}),this.inputElement.setAttribute("role","combobox"),this.inputElement.setAttribute("aria-autocomplete","list")}updateComboBoxValueFromValue(){if(this.value){const e=this._itemCache.findIndex(i=>(i[this.displayValuePath]??"")===this.value);e>-1?this._comboBoxValue={index:e,item:this._itemCache[e]}:this.allowCustomValue?this._comboBoxValue=this.value:this._comboBoxValue=null,this.updateHasValue(),this.updateIconFromCurrentValue()}}updated(e){super.updated(e),e.has("showIcon")&&(this.showIcon?this._icon==null&&this.initIconWrapper():this._icon!=null&&(this._icon.remove(),this._icon=null)),e.has("currentText")&&this.updateHasValue(),e.has("triggerOnly")&&this._list&&(this._list.selectionType=this.triggerOnly?Lt.TriggerOnly:Lt.Single)}initIconWrapper(){this._icon=document.createElement("div"),this._icon.className="icon-wrapper",this._icon.role="img";const e=document.createElement("div");e.style.backgroundRepeat="no-repeat",e.style.backgroundPosition="center",e.style.backgroundSize="cover",e.style.height="24px",e.style.width="24px",this._icon.appendChild(e),this._icon.slot="prefix",this.appendChild(this._icon),this.updateIconFromCurrentValue()}updateIconFromCurrentValue(){this.isCustomValue(this.comboBoxValue)?this.updateIcon(null):this.updateIcon(this.comboBoxValue?.item)}updateIcon(e){if(this._icon)if(e&&(e.icon||e.iconPlaceholder)){const i=e;i.attributes==null?(this._icon.title="",this._icon.ariaLabel=""):(this._icon.title=i.attributes["icon-attr-title"]??"",this._icon.ariaLabel=i.attributes["icon-attr-aria-label"]??""),this._icon.style.backgroundColor=i.iconBackgroundColor,this._icon.style.display="",Ol.showImage(this._icon.querySelector("div"),e.icon,e.iconPlaceholder)}else this._icon&&(this._icon.style.display="none")}updateHasValue(){this.currentText||this.comboBoxValue!=null&&this.comboBoxValue!=""?(this.setAttribute("has-value",""),this._clearButton&&(this._clearButton.style.display="")):this.removeAttribute("has-value")}shouldFloat(){return super.shouldFloat()||this.comboBoxValue!=null&&this.comboBoxValue!=""}initClearButtton(){const e=document.createElement("template");e.innerHTML=ql,this._clearButton=e.content.firstChild,this.appendChild(this._clearButton),this._clearButton.addEventListener("click",i=>{i.preventDefault(),i.stopPropagation(),this.opened=!1,this.clearValue()})}initToggleButtton(){const e=document.createElement("template");e.innerHTML=Hl,this._toggleButton=e.content.firstChild,this.appendChild(this._toggleButton),this._toggleButton.addEventListener("click",i=>{i.preventDefault(),i.stopPropagation(),this.opened=!this.opened,this.select()})}filterItemsInMemory(){if(this.isLazyLoadConfigured)return;let e=!1;if(this.filterText&&(this.filterProperty?(this._dataProvider.items=this._itemCache.filter(i=>i[this.filterProperty]&&String(i[this.filterProperty]).indexOf(this.filterText)>-1),e=!0):this.inMemoryFilter&&(this._dataProvider.items=this._itemCache.filter(i=>this.inMemoryFilter(this.filterText,i)),e=!0)),!e)this._dataProvider.items=this._itemCache,this._list&&this.updateFocusAndSelectedIndexFromValue();else if(this._list)if(this.comboBoxValue&&!this.isCustomValue(this.comboBoxValue)){let i=this._dataProvider.items.indexOf(this.comboBoxValue.item);if(i==-1){const a=this.comboBoxValue.item.id;a!=null&&(i=this._dataProvider.items.findIndex(s=>s.id==a))}this._list.focusIndex=i,this._list.selectedIndices=i==-1?[]:[i]}else this._list.focusIndex=null;this.opened&&this._popper&&this._popper.update()}ensureListAndPopperInitialized(){if(this._list||(this._list=document.createElement(ys.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?Lt.TriggerOnly:Lt.Single,this._list.setAttribute("focus-target",""),Object.assign(this._list.style,{zIndex:"21000",boxShadow:`rgba(0, 0, 0, 0.14) 0px 2px 2px 0px,
|
|
1539
1537
|
rgba(0, 0, 0, 0.12) 0px 1px 5px 0px,
|
|
1540
|
-
rgba(0, 0, 0, 0.2) 0px 3px 1px -2px`,background:"white",overflowY:"auto"}),this._list.addEventListener("selection",this.handleSelection),this._dataProvider.connectList(this._list)),!this._popper){const e=this;this._popper=
|
|
1541
|
-
${
|
|
1542
|
-
`+
|
|
1543
|
-
|
|
1538
|
+
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=fl(this,this._list,{placement:"bottom-start",modifiers:[{name:"computeStyles",options:{gpuAcceleration:!0}},{name:"hide",enabled:!1},{name:"closeIfReferenceHidden",enabled:!0,phase:"afterWrite",fn({state:i}){i.elements.reference.closeIfNotVisible()}},{name:"offset",options:{offset:({placement:i})=>i.indexOf("top")>-1?[0,-parseInt(getComputedStyle(e).paddingTop,10)]:i.indexOf("bottom")>-1?[0,-parseInt(getComputedStyle(e).paddingBottom,10)-(this.shadowRoot.querySelector(".validation-message-wrapper")?.offsetHeight??0)]:[0,0]}},{name:"adjustWidthIfNeeded",enabled:!0,phase:"read",fn({state:i}){i.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 i=this._dataProvider.items[this._list.focusIndex];if(i&&(i[this.displayValuePath]??"")===this.value){if(i.disabled){this.restorePreviousSelection();return}this.comboBoxValue={index:this._itemCache.indexOf(i),item:i}}else if(this.allowCustomValue||!this.value)this.comboBoxValue=this.value;else{const a=this._itemCache.findIndex(s=>(s[this.displayValuePath]??"")===this.value&&!s.disabled);a>-1?this.comboBoxValue={index:a,item:this._itemCache[a]}:this.restorePreviousSelection()}}else{const i=this._dataProvider.items[this._list.focusIndex];if(i&&i.id!=null){if(i.disabled){this.restorePreviousSelection();return}(!this.comboBoxValue||this.isCustomValue(this.comboBoxValue)||this.comboBoxValue.item.id!=i.id)&&(this.comboBoxValue={index:this._itemCache.indexOf(i),item:i})}}e!==(this.comboBoxValue??"")&&this.dispatchSelectionChangeEvent(),this.updateIcon(this.isCustomValue(this.comboBoxValue)?null:this.comboBoxValue?.item)}restorePreviousSelection(){this.updateInputValue(null)}updateFocusAndSelectedIndexFromValue(){if(this.comboBoxValue&&!this.isCustomValue(this.comboBoxValue)&&!this._openedByFilterTextChange){let e=this.comboBoxValue.index;if((e==-1||this.isLazyLoadConfigured)&&(e=this.items.indexOf(this.comboBoxValue.item),e==-1)){const i=this.comboBoxValue.item.id;i!=null&&(e=this.items.findIndex(a=>a.id==i))}this._list.focusIndex=e,this._list.selectedIndices=e==-1?[]:[e]}else this._list.focusIndex=-1,this._list.selectedIndices=[];this.updateActiveDescendant()}navigateInList(e){this.opened?(this._list.focusIndex==null?e>0?this._list.focusIndex=0:this._list.focusIndex=Math.max(0,this._dataProvider.items.length-1):this._list.focusIndex=Math.max(0,Math.min(this._dataProvider.items.length-1,this._list.focusIndex+e)),this.updateInputValue(this._dataProvider.items[this._list.focusIndex]),this.updateActiveDescendant(),this.allowCustomValue||this.select()):this.opened=!0}updateActiveDescendant(){const e=this._list&&this._list.getListItem(this._list.focusIndex);e?this.inputElement.setAttribute("aria-activedescendant",e.id):this.inputElement.removeAttribute("aria-activedescendant")}updateInputValue(e){this.updateComplete.then(()=>{this.value=this.convertToDisplayValue(e),e?this.updateIcon(e):this.updateIconFromCurrentValue()})}convertToDisplayValue(e){return e?e[this.displayValuePath]:this.comboBoxValue?this.isCustomValue(this.comboBoxValue)?this.comboBoxValue:this.comboBoxValue.item[this.displayValuePath]:null}fireValueChange(e){if(e&&this.filterText!==this.value){const i=(this.filterText??"")!==this.value;this.filterText=this.value,this.updateIcon(null),this.opened||(this._openedByFilterTextChange=!0,this.opened=!0),i&&(this.dispatchFilterChangeEvent(),this.debouncedFilterItemsInMemory())}}clearValue(){this.nullSettingDisallowed||(this.value=null,this.inputElement.removeAttribute("aria-activedescendant"),this._list&&(this._list.selectedIndices=[]),this.clearFilter(),this.comboBoxValue&&(this.comboBoxValue=null,this.dispatchSelectionChangeEvent()),this.requestUpdate())}clearFilter(){this.filterText!=null&&(this.filterText=void 0,this.filterItemsInMemory(),this.dispatchFilterChangeEvent(),this.updateIconFromCurrentValue())}updateDropdownSizes(){const i=((window.innerHeight||document.documentElement.clientHeight)-this.offsetHeight)*.5;Object.assign(this._list.style,{maxHeight:`${i}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(()=>{if(this.dispatchEvent(new CustomEvent("selection-change",{detail:{selection:this.comboBoxValue,isCustomValue:this.isCustomValue(this.comboBoxValue)}})),this.triggerOnly)this.comboBoxValue=null;else{const e=this.comboBoxValue;this.isCustomValue(e)?this.setFormValue(e):this.setFormValue(e?.item?.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,i){if(i==null&&(i=(this.filterText??"")!==(this._lastRequestedFilterText??"")),this.isLazyLoadConfigured){if(!this.opened){i&&(this._dataProvider.items=[],this._itemCache=[]);return}if(this._lastRequestedPage==e&&!i)return;this._pendingDataRequest&&this._pendingDataRequest.cancel(ge.DATA_REQUEST_CANCELLED);const a=new Promise((s,r)=>{this._pendingDataRequest={cancel:r}});this._lastRequestedPage=e,this._lastRequestedFilterText=this.filterText,this.setAttribute("loading",""),Promise.race([a,this._onDataRequest(this._lastRequestedFilterText,e)]).then(s=>{if(this.filterText==this._lastRequestedFilterText&&this._lastRequestedPage==e&&(this._dataProvider.finalSizeIsKnown=s.finalSizeIsKnown,i?(this._dataProvider.items=s.items,this._itemCache=s.items):(this._dataProvider.addItems(s.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 o=this.items.indexOf(r);if(o==-1){const d=r.id;d!=null&&(o=this.items.findIndex(h=>h.id==d))}this.comboBoxValue.index=o,this._list.selectedIndices=o==-1?[]:[o]}}this.updateDropdownSizes(),this._popper.update()}this._pendingDataRequest=null,this.removeAttribute("loading")}).catch(s=>{s!==ge.DATA_REQUEST_CANCELLED&&(console.error(`Data could not be loaded for filter "${this._lastRequestedFilterText}" and page number "${e}" due to the following error:
|
|
1539
|
+
${s}`),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,i)=>this._declarativeItems[i].cloneNode(!0),this.items=this._declarativeItems.map(e=>{const i={caption:e.getAttribute("caption"),description:e.getAttribute("description")};return this.displayValuePath!="caption"&&this.displayValuePath!="description"&&(i[this.displayValuePath]=e[this.displayValuePath]||e.getAttribute(this.displayValuePath)),i}))}},ge.ID=Wl,ge.ensureDefined=()=>{ys.ensureDefined(),customElements.get(ge.ID)||customElements.define(ge.ID,ge)},ge.formAssociated=!0,ge.DATA_REQUEST_CANCELLED="cancel_data_request",ge);Je([B({type:Boolean,reflect:!0})],Ve.prototype,"opened");Je([B({type:Number,attribute:"item-height"})],Ve.prototype,"itemHeight");Je([B({type:Boolean,attribute:"allow-custom-value",reflect:!0})],Ve.prototype,"allowCustomValue");Je([B({type:Boolean,attribute:"trigger-only",reflect:!0})],Ve.prototype,"triggerOnly");Je([B({type:Boolean,attribute:"null-setting-disallowed",reflect:!0})],Ve.prototype,"nullSettingDisallowed");Je([B({type:Boolean,attribute:"show-icon",reflect:!0})],Ve.prototype,"showIcon");Je([B({type:String,attribute:"display-value-path",noAccessor:!0})],Ve.prototype,"displayValuePath");Je([B({type:String,attribute:"filter-property",noAccessor:!0})],Ve.prototype,"filterProperty");Je([B({type:String,attribute:!0,reflect:!0})],Ve.prototype,"id");let Kl=Ve;Kl.ensureDefined();function Nr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Jl(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var i=function a(){var s=!1;try{s=this instanceof a}catch{}return s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};i.prototype=e.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(a){var s=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(i,a,s.get?s:{enumerable:!0,get:function(){return t[a]}})}),i}var li={exports:{}},wa;function Zl(){if(wa)return li.exports;wa=1;var t=String,e=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};return li.exports=e(),li.exports.createColors=e,li.exports}const Xl={},Yl=Object.freeze(Object.defineProperty({__proto__:null,default:Xl},Symbol.toStringTag,{value:"Module"})),Ie=Jl(Yl);var Vi,_a;function Ps(){if(_a)return Vi;_a=1;let t=Zl(),e=Ie;class i extends Error{constructor(s,r,o,d,h,u){super(s),this.name="CssSyntaxError",this.reason=s,h&&(this.file=h),d&&(this.source=d),u&&(this.plugin=u),typeof r<"u"&&typeof o<"u"&&(typeof r=="number"?(this.line=r,this.column=o):(this.line=r.line,this.column=r.column,this.endLine=o.line,this.endColumn=o.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}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(s){if(!this.source)return"";let r=this.source;s==null&&(s=t.isColorSupported);let o=l=>l,d=l=>l,h=l=>l;if(s){let{bold:l,gray:f,red:p}=t.createColors(!0);d=N=>l(p(N)),o=N=>f(N),e&&(h=N=>e(N))}let u=r.split(/\r?\n/),n=Math.max(this.line-3,0),m=Math.min(this.line+2,u.length),c=String(m).length;return u.slice(n,m).map((l,f)=>{let p=n+1+f,N=" "+(" "+p).slice(-c)+" | ";if(p===this.line){if(l.length>160){let w=20,v=Math.max(0,this.column-w),y=Math.max(this.column+w,this.endColumn+w),b=l.slice(v,y),_=o(N.replace(/\d/g," "))+l.slice(0,Math.min(this.column-1,w-1)).replace(/[^\t]/g," ");return d(">")+o(N)+h(b)+`
|
|
1540
|
+
`+_+d("^")}let x=o(N.replace(/\d/g," "))+l.slice(0,this.column-1).replace(/[^\t]/g," ");return d(">")+o(N)+h(l)+`
|
|
1541
|
+
`+x+d("^")}return" "+o(N)+h(l)}).join(`
|
|
1542
|
+
`)}toString(){let s=this.showSourceCode();return s&&(s=`
|
|
1544
1543
|
|
|
1545
|
-
`+
|
|
1546
|
-
`),this.name+": "+this.message+
|
|
1544
|
+
`+s+`
|
|
1545
|
+
`),this.name+": "+this.message+s}}return Vi=i,i.default=i,Vi}var Fi,Sa;function br(){if(Sa)return Fi;Sa=1;const t={after:`
|
|
1547
1546
|
`,beforeClose:`
|
|
1548
1547
|
`,beforeComment:`
|
|
1549
1548
|
`,beforeDecl:`
|
|
1550
1549
|
`,beforeOpen:" ",beforeRule:`
|
|
1551
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function
|
|
1552
|
-
`)){let
|
|
1553
|
-
`)&&(
|
|
1554
|
-
`)&&(
|
|
1555
|
-
`)&&(
|
|
1556
|
-
`)&&(
|
|
1557
|
-
`);return
|
|
1558
|
-
`?(
|
|
1559
|
-
`);i=new Array(r.length);let n=0;for(let o=0,l=r.length;o<l;o++)i[o]=n,n+=r[o].length+1;this[ji]=i}t=i[i.length-1];let a=0;if(e>=t)a=i.length-1;else{let r=i.length-2,n;for(;a<r;)if(n=a+(r-a>>1),e<i[n])r=n-1;else if(e>=i[n+1])a=n+1;else{a=n;break}}return{col:e-i[a]+1,line:a+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:as(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,i,a){if(!this.map)return!1;let r=this.map.consumer(),n=r.originalPositionFor({column:t,line:e});if(!n.source)return!1;let o;typeof i=="number"&&(o=r.originalPositionFor({column:a,line:i}));let l;ss(n.source)?l=Jt(n.source):l=new URL(n.source,this.map.consumer().sourceRoot||Jt(this.map.mapFile));let c={column:n.column,endColumn:o&&o.column,endLine:o&&o.line,line:n.line,url:l.toString()};if(l.protocol==="file:")if(ma)c.file=ma(l);else throw new Error("file: protocol is not available in this PostCSS build");let m=r.sourceContentFor(n.source);return m&&(c.source=m),c}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var Ci=fi;fi.default=fi;zi&&zi.registerInput&&zi.registerInput(fi);let{SourceMapConsumer:Ya,SourceMapGenerator:li}=Ne,{dirname:ci,relative:Qa,resolve:en,sep:tn}=Ne,{pathToFileURL:ha}=Ne,ac=Ci,nc=!!(Ya&&li),rc=!!(ci&&en&&Qa&&tn),oc=class{constructor(e,t,i,a){this.stringify=e,this.mapOpts=i.map||{},this.root=t,this.opts=i,this.css=a,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
|
|
1550
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function e(a){return a[0].toUpperCase()+a.slice(1)}class i{constructor(s){this.builder=s}atrule(s,r){let o="@"+s.name,d=s.params?this.rawValue(s,"params"):"";if(typeof s.raws.afterName<"u"?o+=s.raws.afterName:d&&(o+=" "),s.nodes)this.block(s,o+d);else{let h=(s.raws.between||"")+(r?";":"");this.builder(o+d+h,s)}}beforeAfter(s,r){let o;s.type==="decl"?o=this.raw(s,null,"beforeDecl"):s.type==="comment"?o=this.raw(s,null,"beforeComment"):r==="before"?o=this.raw(s,null,"beforeRule"):o=this.raw(s,null,"beforeClose");let d=s.parent,h=0;for(;d&&d.type!=="root";)h+=1,d=d.parent;if(o.includes(`
|
|
1551
|
+
`)){let u=this.raw(s,null,"indent");if(u.length)for(let n=0;n<h;n++)o+=u}return o}block(s,r){let o=this.raw(s,"between","beforeOpen");this.builder(r+o+"{",s,"start");let d;s.nodes&&s.nodes.length?(this.body(s),d=this.raw(s,"after")):d=this.raw(s,"after","emptyBody"),d&&this.builder(d),this.builder("}",s,"end")}body(s){let r=s.nodes.length-1;for(;r>0&&s.nodes[r].type==="comment";)r-=1;let o=this.raw(s,"semicolon");for(let d=0;d<s.nodes.length;d++){let h=s.nodes[d],u=this.raw(h,"before");u&&this.builder(u),this.stringify(h,r!==d||o)}}comment(s){let r=this.raw(s,"left","commentLeft"),o=this.raw(s,"right","commentRight");this.builder("/*"+r+s.text+o+"*/",s)}decl(s,r){let o=this.raw(s,"between","colon"),d=s.prop+o+this.rawValue(s,"value");s.important&&(d+=s.raws.important||" !important"),r&&(d+=";"),this.builder(d,s)}document(s){this.body(s)}raw(s,r,o){let d;if(o||(o=r),r&&(d=s.raws[r],typeof d<"u"))return d;let h=s.parent;if(o==="before"&&(!h||h.type==="root"&&h.first===s||h&&h.type==="document"))return"";if(!h)return t[o];let u=s.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[o]<"u")return u.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(s,o);{let n="raw"+e(o);this[n]?d=this[n](u,s):u.walk(m=>{if(d=m.raws[r],typeof d<"u")return!1})}return typeof d>"u"&&(d=t[o]),u.rawCache[o]=d,d}rawBeforeClose(s){let r;return s.walk(o=>{if(o.nodes&&o.nodes.length>0&&typeof o.raws.after<"u")return r=o.raws.after,r.includes(`
|
|
1552
|
+
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawBeforeComment(s,r){let o;return s.walkComments(d=>{if(typeof d.raws.before<"u")return o=d.raws.before,o.includes(`
|
|
1553
|
+
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(r,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeDecl(s,r){let o;return s.walkDecls(d=>{if(typeof d.raws.before<"u")return o=d.raws.before,o.includes(`
|
|
1554
|
+
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(r,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o}rawBeforeOpen(s){let r;return s.walk(o=>{if(o.type!=="decl"&&(r=o.raws.between,typeof r<"u"))return!1}),r}rawBeforeRule(s){let r;return s.walk(o=>{if(o.nodes&&(o.parent!==s||s.first!==o)&&typeof o.raws.before<"u")return r=o.raws.before,r.includes(`
|
|
1555
|
+
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawColon(s){let r;return s.walkDecls(o=>{if(typeof o.raws.between<"u")return r=o.raws.between.replace(/[^\s:]/g,""),!1}),r}rawEmptyBody(s){let r;return s.walk(o=>{if(o.nodes&&o.nodes.length===0&&(r=o.raws.after,typeof r<"u"))return!1}),r}rawIndent(s){if(s.raws.indent)return s.raws.indent;let r;return s.walk(o=>{let d=o.parent;if(d&&d!==s&&d.parent&&d.parent===s&&typeof o.raws.before<"u"){let h=o.raws.before.split(`
|
|
1556
|
+
`);return r=h[h.length-1],r=r.replace(/\S/g,""),!1}}),r}rawSemicolon(s){let r;return s.walk(o=>{if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(r=o.raws.semicolon,typeof r<"u"))return!1}),r}rawValue(s,r){let o=s[r],d=s.raws[r];return d&&d.value===o?d.raw:o}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,r){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,r)}}return Fi=i,i.default=i,Fi}var Hi,Ca;function _i(){if(Ca)return Hi;Ca=1;let t=br();function e(i,a){new t(a).stringify(i)}return Hi=e,e.default=e,Hi}var ci={},Aa;function Bs(){return Aa||(Aa=1,ci.isClean=Symbol("isClean"),ci.my=Symbol("my")),ci}var qi,Ea;function Si(){if(Ea)return qi;Ea=1;let t=Ps(),e=br(),i=_i(),{isClean:a,my:s}=Bs();function r(h,u){let n=new h.constructor;for(let m in h){if(!Object.prototype.hasOwnProperty.call(h,m)||m==="proxyCache")continue;let c=h[m],l=typeof c;m==="parent"&&l==="object"?u&&(n[m]=u):m==="source"?n[m]=c:Array.isArray(c)?n[m]=c.map(f=>r(f,n)):(l==="object"&&c!==null&&(c=r(c)),n[m]=c)}return n}function o(h,u){if(u&&typeof u.offset<"u")return u.offset;let n=1,m=1,c=0;for(let l=0;l<h.length;l++){if(m===u.line&&n===u.column){c=l;break}h[l]===`
|
|
1557
|
+
`?(n=1,m+=1):n+=1}return c}class d{get proxyOf(){return this}constructor(u={}){this.raws={},this[a]=!1,this[s]=!0;for(let n in u)if(n==="nodes"){this.nodes=[];for(let m of u[n])typeof m.clone=="function"?this.append(m.clone()):this.append(m)}else this[n]=u[n]}addToError(u){if(u.postcssNode=this,u.stack&&this.source&&/\n\s{4}at /.test(u.stack)){let n=this.source;u.stack=u.stack.replace(/\n\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return u}after(u){return this.parent.insertAfter(this,u),this}assign(u={}){for(let n in u)this[n]=u[n];return this}before(u){return this.parent.insertBefore(this,u),this}cleanRaws(u){delete this.raws.before,delete this.raws.after,u||delete this.raws.between}clone(u={}){let n=r(this);for(let m in u)n[m]=u[m];return n}cloneAfter(u={}){let n=this.clone(u);return this.parent.insertAfter(this,n),n}cloneBefore(u={}){let n=this.clone(u);return this.parent.insertBefore(this,n),n}error(u,n={}){if(this.source){let{end:m,start:c}=this.rangeBy(n);return this.source.input.error(u,{column:c.column,line:c.line},{column:m.column,line:m.line},n)}return new t(u)}getProxyProcessor(){return{get(u,n){return n==="proxyOf"?u:n==="root"?()=>u.root().toProxy():u[n]},set(u,n,m){return u[n]===m||(u[n]=m,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&u.markDirty()),!0}}}markClean(){this[a]=!0}markDirty(){if(this[a]){this[a]=!1;let u=this;for(;u=u.parent;)u[a]=!1}}next(){if(!this.parent)return;let u=this.parent.index(this);return this.parent.nodes[u+1]}positionBy(u={}){let n=this.source.start;if(u.index)n=this.positionInside(u.index);else if(u.word){let m="document"in this.source.input?this.source.input.document:this.source.input.css,l=m.slice(o(m,this.source.start),o(m,this.source.end)).indexOf(u.word);l!==-1&&(n=this.positionInside(l))}return n}positionInside(u){let n=this.source.start.column,m=this.source.start.line,c="document"in this.source.input?this.source.input.document:this.source.input.css,l=o(c,this.source.start),f=l+u;for(let p=l;p<f;p++)c[p]===`
|
|
1558
|
+
`?(n=1,m+=1):n+=1;return{column:n,line:m,offset:f}}prev(){if(!this.parent)return;let u=this.parent.index(this);return this.parent.nodes[u-1]}rangeBy(u={}){let n="document"in this.source.input?this.source.input.document:this.source.input.css,m={column:this.source.start.column,line:this.source.start.line,offset:o(n,this.source.start)},c=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:o(n,this.source.end)+1}:{column:m.column+1,line:m.line,offset:m.offset+1};if(u.word){let f=n.slice(o(n,this.source.start),o(n,this.source.end)).indexOf(u.word);f!==-1&&(m=this.positionInside(f),c=this.positionInside(f+u.word.length))}else u.start?m={column:u.start.column,line:u.start.line,offset:o(n,u.start)}:u.index&&(m=this.positionInside(u.index)),u.end?c={column:u.end.column,line:u.end.line,offset:o(n,u.end)}:typeof u.endIndex=="number"?c=this.positionInside(u.endIndex):u.index&&(c=this.positionInside(u.index+1));return(c.line<m.line||c.line===m.line&&c.column<=m.column)&&(c={column:m.column+1,line:m.line,offset:m.offset+1}),{end:c,start:m}}raw(u,n){return new e().raw(this,u,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...u){if(this.parent){let n=this,m=!1;for(let c of u)c===this?m=!0:m?(this.parent.insertAfter(n,c),n=c):this.parent.insertBefore(n,c);m||this.remove()}return this}root(){let u=this;for(;u.parent&&u.parent.type!=="document";)u=u.parent;return u}toJSON(u,n){let m={},c=n==null;n=n||new Map;let l=0;for(let f in this){if(!Object.prototype.hasOwnProperty.call(this,f)||f==="parent"||f==="proxyCache")continue;let p=this[f];if(Array.isArray(p))m[f]=p.map(N=>typeof N=="object"&&N.toJSON?N.toJSON(null,n):N);else if(typeof p=="object"&&p.toJSON)m[f]=p.toJSON(null,n);else if(f==="source"){if(p==null)continue;let N=n.get(p.input);N==null&&(N=l,n.set(p.input,l),l++),m[f]={end:p.end,inputId:N,start:p.start}}else m[f]=p}return c&&(m.inputs=[...n.keys()].map(f=>f.toJSON())),m}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(u=i){u.stringify&&(u=u.stringify);let n="";return u(this,m=>{n+=m}),n}warn(u,n,m={}){let c={node:this};for(let l in m)c[l]=m[l];return u.warn(n,c)}}return qi=d,d.default=d,qi}var Ui,ka;function Ci(){if(ka)return Ui;ka=1;let t=Si();class e extends t{constructor(a){super(a),this.type="comment"}}return Ui=e,e.default=e,Ui}var Wi,Ma;function Ai(){if(Ma)return Wi;Ma=1;let t=Si();class e extends t{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(a){a&&typeof a.value<"u"&&typeof a.value!="string"&&(a={...a,value:String(a.value)}),super(a),this.type="decl"}}return Wi=e,e.default=e,Wi}var Gi,Oa;function ht(){if(Oa)return Gi;Oa=1;let t=Ci(),e=Ai(),i=Si(),{isClean:a,my:s}=Bs(),r,o,d,h;function u(c){return c.map(l=>(l.nodes&&(l.nodes=u(l.nodes)),delete l.source,l))}function n(c){if(c[a]=!1,c.proxyOf.nodes)for(let l of c.proxyOf.nodes)n(l)}class m extends i{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...l){for(let f of l){let p=this.normalize(f,this.last);for(let N of p)this.proxyOf.nodes.push(N)}return this.markDirty(),this}cleanRaws(l){if(super.cleanRaws(l),this.nodes)for(let f of this.nodes)f.cleanRaws(l)}each(l){if(!this.proxyOf.nodes)return;let f=this.getIterator(),p,N;for(;this.indexes[f]<this.proxyOf.nodes.length&&(p=this.indexes[f],N=l(this.proxyOf.nodes[p],p),N!==!1);)this.indexes[f]+=1;return delete this.indexes[f],N}every(l){return this.nodes.every(l)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let l=this.lastEach;return this.indexes[l]=0,l}getProxyProcessor(){return{get(l,f){return f==="proxyOf"?l:l[f]?f==="each"||typeof f=="string"&&f.startsWith("walk")?(...p)=>l[f](...p.map(N=>typeof N=="function"?(x,w)=>N(x.toProxy(),w):N)):f==="every"||f==="some"?p=>l[f]((N,...x)=>p(N.toProxy(),...x)):f==="root"?()=>l.root().toProxy():f==="nodes"?l.nodes.map(p=>p.toProxy()):f==="first"||f==="last"?l[f].toProxy():l[f]:l[f]},set(l,f,p){return l[f]===p||(l[f]=p,(f==="name"||f==="params"||f==="selector")&&l.markDirty()),!0}}}index(l){return typeof l=="number"?l:(l.proxyOf&&(l=l.proxyOf),this.proxyOf.nodes.indexOf(l))}insertAfter(l,f){let p=this.index(l),N=this.normalize(f,this.proxyOf.nodes[p]).reverse();p=this.index(l);for(let w of N)this.proxyOf.nodes.splice(p+1,0,w);let x;for(let w in this.indexes)x=this.indexes[w],p<x&&(this.indexes[w]=x+N.length);return this.markDirty(),this}insertBefore(l,f){let p=this.index(l),N=p===0?"prepend":!1,x=this.normalize(f,this.proxyOf.nodes[p],N).reverse();p=this.index(l);for(let v of x)this.proxyOf.nodes.splice(p,0,v);let w;for(let v in this.indexes)w=this.indexes[v],p<=w&&(this.indexes[v]=w+x.length);return this.markDirty(),this}normalize(l,f){if(typeof l=="string")l=u(o(l).nodes);else if(typeof l>"u")l=[];else if(Array.isArray(l)){l=l.slice(0);for(let N of l)N.parent&&N.parent.removeChild(N,"ignore")}else if(l.type==="root"&&this.type!=="document"){l=l.nodes.slice(0);for(let N of l)N.parent&&N.parent.removeChild(N,"ignore")}else if(l.type)l=[l];else if(l.prop){if(typeof l.value>"u")throw new Error("Value field is missed in node creation");typeof l.value!="string"&&(l.value=String(l.value)),l=[new e(l)]}else if(l.selector||l.selectors)l=[new h(l)];else if(l.name)l=[new r(l)];else if(l.text)l=[new t(l)];else throw new Error("Unknown node type in node creation");return l.map(N=>(N[s]||m.rebuild(N),N=N.proxyOf,N.parent&&N.parent.removeChild(N),N[a]&&n(N),N.raws||(N.raws={}),typeof N.raws.before>"u"&&f&&typeof f.raws.before<"u"&&(N.raws.before=f.raws.before.replace(/\S/g,"")),N.parent=this.proxyOf,N))}prepend(...l){l=l.reverse();for(let f of l){let p=this.normalize(f,this.first,"prepend").reverse();for(let N of p)this.proxyOf.nodes.unshift(N);for(let N in this.indexes)this.indexes[N]=this.indexes[N]+p.length}return this.markDirty(),this}push(l){return l.parent=this,this.proxyOf.nodes.push(l),this}removeAll(){for(let l of this.proxyOf.nodes)l.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(l){l=this.index(l),this.proxyOf.nodes[l].parent=void 0,this.proxyOf.nodes.splice(l,1);let f;for(let p in this.indexes)f=this.indexes[p],f>=l&&(this.indexes[p]=f-1);return this.markDirty(),this}replaceValues(l,f,p){return p||(p=f,f={}),this.walkDecls(N=>{f.props&&!f.props.includes(N.prop)||f.fast&&!N.value.includes(f.fast)||(N.value=N.value.replace(l,p))}),this.markDirty(),this}some(l){return this.nodes.some(l)}walk(l){return this.each((f,p)=>{let N;try{N=l(f,p)}catch(x){throw f.addToError(x)}return N!==!1&&f.walk&&(N=f.walk(l)),N})}walkAtRules(l,f){return f?l instanceof RegExp?this.walk((p,N)=>{if(p.type==="atrule"&&l.test(p.name))return f(p,N)}):this.walk((p,N)=>{if(p.type==="atrule"&&p.name===l)return f(p,N)}):(f=l,this.walk((p,N)=>{if(p.type==="atrule")return f(p,N)}))}walkComments(l){return this.walk((f,p)=>{if(f.type==="comment")return l(f,p)})}walkDecls(l,f){return f?l instanceof RegExp?this.walk((p,N)=>{if(p.type==="decl"&&l.test(p.prop))return f(p,N)}):this.walk((p,N)=>{if(p.type==="decl"&&p.prop===l)return f(p,N)}):(f=l,this.walk((p,N)=>{if(p.type==="decl")return f(p,N)}))}walkRules(l,f){return f?l instanceof RegExp?this.walk((p,N)=>{if(p.type==="rule"&&l.test(p.selector))return f(p,N)}):this.walk((p,N)=>{if(p.type==="rule"&&p.selector===l)return f(p,N)}):(f=l,this.walk((p,N)=>{if(p.type==="rule")return f(p,N)}))}}return m.registerParse=c=>{o=c},m.registerRule=c=>{h=c},m.registerAtRule=c=>{r=c},m.registerRoot=c=>{d=c},Gi=m,m.default=m,m.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,r.prototype):c.type==="rule"?Object.setPrototypeOf(c,h.prototype):c.type==="decl"?Object.setPrototypeOf(c,e.prototype):c.type==="comment"?Object.setPrototypeOf(c,t.prototype):c.type==="root"&&Object.setPrototypeOf(c,d.prototype),c[s]=!0,c.nodes&&c.nodes.forEach(l=>{m.rebuild(l)})},Gi}var Ki,Ia;function Ts(){if(Ia)return Ki;Ia=1;let t=ht();class e extends t{constructor(a){super(a),this.type="atrule"}append(...a){return this.proxyOf.nodes||(this.nodes=[]),super.append(...a)}prepend(...a){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...a)}}return Ki=e,e.default=e,t.registerAtRule(e),Ki}var Ji,Ra;function Ds(){if(Ra)return Ji;Ra=1;let t=ht(),e,i;class a extends t{constructor(r){super({type:"document",...r}),this.nodes||(this.nodes=[])}toResult(r={}){return new e(new i,this,r).stringify()}}return a.registerLazyResult=s=>{e=s},a.registerProcessor=s=>{i=s},Ji=a,a.default=a,Ji}var Zi,$a;function Ql(){if($a)return Zi;$a=1;let t="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Zi={nanoid:(a=21)=>{let s="",r=a|0;for(;r--;)s+=t[Math.random()*64|0];return s},customAlphabet:(a,s=21)=>(r=s)=>{let o="",d=r|0;for(;d--;)o+=a[Math.random()*a.length|0];return o}},Zi}var Xi,La;function yr(){if(La)return Xi;La=1;let{existsSync:t,readFileSync:e}=Ie,{dirname:i,join:a}=Ie,{SourceMapConsumer:s,SourceMapGenerator:r}=Ie;function o(h){return Buffer?Buffer.from(h,"base64").toString():window.atob(h)}class d{constructor(u,n){if(n.map===!1)return;this.loadAnnotation(u),this.inline=this.startWith(this.annotation,"data:");let m=n.map?n.map.prev:void 0,c=this.loadMap(n.from,m);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=i(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new s(this.text)),this.consumerCache}decodeInline(u){let n=/^data:application\/json;charset=utf-?8;base64,/,m=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,l=/^data:application\/json,/,f=u.match(c)||u.match(l);if(f)return decodeURIComponent(u.substr(f[0].length));let p=u.match(n)||u.match(m);if(p)return o(u.substr(p[0].length));let N=u.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+N)}getAnnotationURL(u){return u.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(u){return typeof u!="object"?!1:typeof u.mappings=="string"||typeof u._mappings=="string"||Array.isArray(u.sections)}loadAnnotation(u){let n=u.match(/\/\*\s*# sourceMappingURL=/g);if(!n)return;let m=u.lastIndexOf(n.pop()),c=u.indexOf("*/",m);m>-1&&c>-1&&(this.annotation=this.getAnnotationURL(u.substring(m,c)))}loadFile(u){if(this.root=i(u),t(u))return this.mapFile=u,e(u,"utf-8").toString().trim()}loadMap(u,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let m=n(u);if(m){let c=this.loadFile(m);if(!c)throw new Error("Unable to load previous source map: "+m.toString());return c}}else{if(n instanceof s)return r.fromSourceMap(n).toString();if(n instanceof r)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let m=this.annotation;return u&&(m=a(i(u),m)),this.loadFile(m)}}}startWith(u,n){return u?u.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Xi=d,d.default=d,Xi}var Yi,Pa;function Ei(){if(Pa)return Yi;Pa=1;let{nanoid:t}=Ql(),{isAbsolute:e,resolve:i}=Ie,{SourceMapConsumer:a,SourceMapGenerator:s}=Ie,{fileURLToPath:r,pathToFileURL:o}=Ie,d=Ps(),h=yr(),u=Ie,n=Symbol("lineToIndexCache"),m=!!(a&&s),c=!!(i&&e);function l(p){if(p[n])return p[n];let N=p.css.split(`
|
|
1559
|
+
`),x=new Array(N.length),w=0;for(let v=0,y=N.length;v<y;v++)x[v]=w,w+=N[v].length+1;return p[n]=x,x}class f{get from(){return this.file||this.id}constructor(N,x={}){if(N===null||typeof N>"u"||typeof N=="object"&&!N.toString)throw new Error(`PostCSS received ${N} instead of CSS string`);if(this.css=N.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,x.document&&(this.document=x.document.toString()),x.from&&(!c||/^\w+:\/\//.test(x.from)||e(x.from)?this.file=x.from:this.file=i(x.from)),c&&m){let w=new h(this.css,x);if(w.text){this.map=w;let v=w.consumer().file;!this.file&&v&&(this.file=this.mapResolve(v))}}this.file||(this.id="<input css "+t(6)+">"),this.map&&(this.map.file=this.from)}error(N,x,w,v={}){let y,b,_,C,I;if(x&&typeof x=="object"){let E=x,H=w;if(typeof E.offset=="number"){C=E.offset;let V=this.fromOffset(C);x=V.line,w=V.col}else x=E.line,w=E.column,C=this.fromLineAndColumn(x,w);if(typeof H.offset=="number"){_=H.offset;let V=this.fromOffset(_);b=V.line,y=V.col}else b=H.line,y=H.column,_=this.fromLineAndColumn(H.line,H.column)}else if(w)C=this.fromLineAndColumn(x,w);else{C=x;let E=this.fromOffset(C);x=E.line,w=E.col}let L=this.origin(x,w,b,y);return L?I=new d(N,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,v.plugin):I=new d(N,b===void 0?x:{column:w,line:x},b===void 0?w:{column:y,line:b},this.css,this.file,v.plugin),I.input={column:w,endColumn:y,endLine:b,endOffset:_,line:x,offset:C,source:this.css},this.file&&(o&&(I.input.url=o(this.file).toString()),I.input.file=this.file),I}fromLineAndColumn(N,x){return l(this)[N-1]+x-1}fromOffset(N){let x=l(this),w=x[x.length-1],v=0;if(N>=w)v=x.length-1;else{let y=x.length-2,b;for(;v<y;)if(b=v+(y-v>>1),N<x[b])y=b-1;else if(N>=x[b+1])v=b+1;else{v=b;break}}return{col:N-x[v]+1,line:v+1}}mapResolve(N){return/^\w+:\/\//.test(N)?N:i(this.map.consumer().sourceRoot||this.map.root||".",N)}origin(N,x,w,v){if(!this.map)return!1;let y=this.map.consumer(),b=y.originalPositionFor({column:x,line:N});if(!b.source)return!1;let _;typeof w=="number"&&(_=y.originalPositionFor({column:v,line:w}));let C;e(b.source)?C=o(b.source):C=new URL(b.source,this.map.consumer().sourceRoot||o(this.map.mapFile));let I={column:b.column,endColumn:_&&_.column,endLine:_&&_.line,line:b.line,url:C.toString()};if(C.protocol==="file:")if(r)I.file=r(C);else throw new Error("file: protocol is not available in this PostCSS build");let L=y.sourceContentFor(b.source);return L&&(I.source=L),I}toJSON(){let N={};for(let x of["hasBOM","css","file","id"])this[x]!=null&&(N[x]=this[x]);return this.map&&(N.map={...this.map},N.map.consumerCache&&(N.map.consumerCache=void 0)),N}}return Yi=f,f.default=f,u&&u.registerInput&&u.registerInput(f),Yi}var Qi,Ba;function Xt(){if(Ba)return Qi;Ba=1;let t=ht(),e,i;class a extends t{constructor(r){super(r),this.type="root",this.nodes||(this.nodes=[])}normalize(r,o,d){let h=super.normalize(r);if(o){if(d==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(let u of h)u.raws.before=o.raws.before}return h}removeChild(r,o){let d=this.index(r);return!o&&d===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[d].raws.before),super.removeChild(r)}toResult(r={}){return new e(new i,this,r).stringify()}}return a.registerLazyResult=s=>{e=s},a.registerProcessor=s=>{i=s},Qi=a,a.default=a,t.registerRoot(a),Qi}var es,Ta;function vr(){if(Ta)return es;Ta=1;let t={comma(e){return t.split(e,[","],!0)},space(e){let i=[" ",`
|
|
1560
|
+
`," "];return t.split(e,i)},split(e,i,a){let s=[],r="",o=!1,d=0,h=!1,u="",n=!1;for(let m of e)n?n=!1:m==="\\"?n=!0:h?m===u&&(h=!1):m==='"'||m==="'"?(h=!0,u=m):m==="("?d+=1:m===")"?d>0&&(d-=1):d===0&&i.includes(m)&&(o=!0),o?(r!==""&&s.push(r.trim()),r="",o=!1):r+=m;return(a||r!=="")&&s.push(r.trim()),s}};return es=t,t.default=t,es}var ts,Da;function zs(){if(Da)return ts;Da=1;let t=ht(),e=vr();class i extends t{get selectors(){return e.comma(this.selector)}set selectors(s){let r=this.selector?this.selector.match(/,\s*/):null,o=r?r[0]:","+this.raw("between","beforeOpen");this.selector=s.join(o)}constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}}return ts=i,i.default=i,t.registerRule(i),ts}var is,za;function ec(){if(za)return is;za=1;let t=Ts(),e=Ci(),i=Ai(),a=Ei(),s=yr(),r=Xt(),o=zs();function d(h,u){if(Array.isArray(h))return h.map(c=>d(c));let{inputs:n,...m}=h;if(n){u=[];for(let c of n){let l={...c,__proto__:a.prototype};l.map&&(l.map={...l.map,__proto__:s.prototype}),u.push(l)}}if(m.nodes&&(m.nodes=h.nodes.map(c=>d(c,u))),m.source){let{inputId:c,...l}=m.source;m.source=l,c!=null&&(m.source.input=u[c])}if(m.type==="root")return new r(m);if(m.type==="decl")return new i(m);if(m.type==="rule")return new o(m);if(m.type==="comment")return new e(m);if(m.type==="atrule")return new t(m);throw new Error("Unknown node type: "+h.type)}return is=d,d.default=d,is}var ss,ja;function xr(){if(ja)return ss;ja=1;let{dirname:t,relative:e,resolve:i,sep:a}=Ie,{SourceMapConsumer:s,SourceMapGenerator:r}=Ie,{pathToFileURL:o}=Ie,d=Ei(),h=!!(s&&r),u=!!(t&&i&&e&&a);class n{constructor(c,l,f,p){this.stringify=c,this.mapOpts=f.map||{},this.root=l,this.opts=f,this.css=p,this.originalCSS=p,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let l=`
|
|
1560
1561
|
`;this.css.includes(`\r
|
|
1561
|
-
`)&&(
|
|
1562
|
-
`),this.css+=
|
|
1563
|
-
`),t=o.length-n):t+=o.length,l&&c!=="start"){let m=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==m.last||m.raws.semicolon)&&(l.source&&l.source.end?(a.source=this.sourcePath(l),a.original.line=l.source.end.line,a.original.column=l.source.end.column-1,a.generated.line=e,a.generated.column=t-2,this.map.addMapping(a)):(a.source=i,a.original.line=1,a.original.column=0,a.generated.line=e,a.generated.column=t-1,this.map.addMapping(a)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let i=this.opts.to?ci(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=ci(en(i,this.mapOpts.annotation)));let a=Qa(i,e);return this.memoizedPaths.set(e,a),a}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new ac(this.css,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let i=t.source.input.from;if(i&&!e[i]){e[i]=!0;let a=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(a,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(ha){let i=ha(e).toString();return this.memoizedFileURLs.set(e,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;tn==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};var sn=oc;let lc=_i,ns=class extends lc{constructor(e){super(e),this.type="comment"}};var Ei=ns;ns.default=ns;let{isClean:an,my:nn}=Ft,rn=Si,on=Ei,cc=_i,ln,_s,Ss,cn;function mn(s){return s.map(e=>(e.nodes&&(e.nodes=mn(e.nodes)),delete e.source,e))}function dn(s){if(s[an]=!1,s.proxyOf.nodes)for(let e of s.proxyOf.nodes)dn(e)}let ke=class un extends cc{append(...e){for(let t of e){let i=this.normalize(t,this.last);for(let a of i)this.proxyOf.nodes.push(a)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),i,a;for(;this.indexes[t]<this.proxyOf.nodes.length&&(i=this.indexes[t],a=e(this.proxyOf.nodes[i],i),a!==!1);)this.indexes[t]+=1;return delete this.indexes[t],a}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...i)=>e[t](...i.map(a=>typeof a=="function"?(r,n)=>a(r.toProxy(),n):a)):t==="every"||t==="some"?i=>e[t]((a,...r)=>i(a.toProxy(),...r)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(i=>i.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let i=this.index(e),a=this.normalize(t,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let n of a)this.proxyOf.nodes.splice(i+1,0,n);let r;for(let n in this.indexes)r=this.indexes[n],i<r&&(this.indexes[n]=r+a.length);return this.markDirty(),this}insertBefore(e,t){let i=this.index(e),a=i===0?"prepend":!1,r=this.normalize(t,this.proxyOf.nodes[i],a).reverse();i=this.index(e);for(let o of r)this.proxyOf.nodes.splice(i,0,o);let n;for(let o in this.indexes)n=this.indexes[o],i<=n&&(this.indexes[o]=n+r.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=mn(ln(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let a of e)a.parent&&a.parent.removeChild(a,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let a of e)a.parent&&a.parent.removeChild(a,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new rn(e)]}else if(e.selector)e=[new _s(e)];else if(e.name)e=[new Ss(e)];else if(e.text)e=[new on(e)];else throw new Error("Unknown node type in node creation");return e.map(a=>(a[nn]||un.rebuild(a),a=a.proxyOf,a.parent&&a.parent.removeChild(a),a[an]&&dn(a),typeof a.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(a.raws.before=t.raws.before.replace(/\S/g,"")),a.parent=this.proxyOf,a))}prepend(...e){e=e.reverse();for(let t of e){let i=this.normalize(t,this.first,"prepend").reverse();for(let a of i)this.proxyOf.nodes.unshift(a);for(let a in this.indexes)this.indexes[a]=this.indexes[a]+i.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let i in this.indexes)t=this.indexes[i],t>=e&&(this.indexes[i]=t-1);return this.markDirty(),this}replaceValues(e,t,i){return i||(i=t,t={}),this.walkDecls(a=>{t.props&&!t.props.includes(a.prop)||t.fast&&!a.value.includes(t.fast)||(a.value=a.value.replace(e,i))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,i)=>{let a;try{a=e(t,i)}catch(r){throw t.addToError(r)}return a!==!1&&t.walk&&(a=t.walk(e)),a})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((i,a)=>{if(i.type==="atrule"&&e.test(i.name))return t(i,a)}):this.walk((i,a)=>{if(i.type==="atrule"&&i.name===e)return t(i,a)}):(t=e,this.walk((i,a)=>{if(i.type==="atrule")return t(i,a)}))}walkComments(e){return this.walk((t,i)=>{if(t.type==="comment")return e(t,i)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((i,a)=>{if(i.type==="decl"&&e.test(i.prop))return t(i,a)}):this.walk((i,a)=>{if(i.type==="decl"&&i.prop===e)return t(i,a)}):(t=e,this.walk((i,a)=>{if(i.type==="decl")return t(i,a)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((i,a)=>{if(i.type==="rule"&&e.test(i.selector))return t(i,a)}):this.walk((i,a)=>{if(i.type==="rule"&&i.selector===e)return t(i,a)}):(t=e,this.walk((i,a)=>{if(i.type==="rule")return t(i,a)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};ke.registerParse=s=>{ln=s};ke.registerRule=s=>{_s=s};ke.registerAtRule=s=>{Ss=s};ke.registerRoot=s=>{cn=s};var We=ke;ke.default=ke;ke.rebuild=s=>{s.type==="atrule"?Object.setPrototypeOf(s,Ss.prototype):s.type==="rule"?Object.setPrototypeOf(s,_s.prototype):s.type==="decl"?Object.setPrototypeOf(s,rn.prototype):s.type==="comment"?Object.setPrototypeOf(s,on.prototype):s.type==="root"&&Object.setPrototypeOf(s,cn.prototype),s[nn]=!0,s.nodes&&s.nodes.forEach(e=>{ke.rebuild(e)})};let mc=We,hn,fn,Mt=class extends mc{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new hn(new fn,this,e).stringify()}};Mt.registerLazyResult=s=>{hn=s};Mt.registerProcessor=s=>{fn=s};var Cs=Mt;Mt.default=Mt;let rs=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let i=t.node.rangeBy(t);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in t)this[i]=t[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var pn=rs;rs.default=rs;let dc=pn,os=class{constructor(e,t,i){this.processor=e,this.messages=[],this.root=t,this.opts=i,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let i=new dc(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var Es=os;os.default=os;const Vi=39,fa=34,Zt=92,pa=47,Xt=10,bt=32,Yt=12,Qt=9,ei=13,uc=91,hc=93,fc=40,pc=41,gc=123,Nc=125,bc=59,vc=42,yc=58,xc=64,ti=/[\t\n\f\r "#'()/;[\\\]{}]/g,ii=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,wc=/.[\r\n"'(/\\]/,ga=/[\da-f]/i;var _c=function(e,t={}){let i=e.css.valueOf(),a=t.ignoreErrors,r,n,o,l,c,m,u,h,g,_,y=i.length,f=0,A=[],M=[];function I(){return f}function x(P){throw e.error("Unclosed "+P,f)}function E(){return M.length===0&&f>=y}function $(P){if(M.length)return M.pop();if(f>=y)return;let O=P?P.ignoreUnclosed:!1;switch(r=i.charCodeAt(f),r){case Xt:case bt:case Qt:case ei:case Yt:{n=f;do n+=1,r=i.charCodeAt(n);while(r===bt||r===Xt||r===Qt||r===ei||r===Yt);_=["space",i.slice(f,n)],f=n-1;break}case uc:case hc:case gc:case Nc:case yc:case bc:case pc:{let T=String.fromCharCode(r);_=[T,T,f];break}case fc:{if(h=A.length?A.pop()[1]:"",g=i.charCodeAt(f+1),h==="url"&&g!==Vi&&g!==fa&&g!==bt&&g!==Xt&&g!==Qt&&g!==Yt&&g!==ei){n=f;do{if(m=!1,n=i.indexOf(")",n+1),n===-1)if(a||O){n=f;break}else x("bracket");for(u=n;i.charCodeAt(u-1)===Zt;)u-=1,m=!m}while(m);_=["brackets",i.slice(f,n+1),f,n],f=n}else n=i.indexOf(")",f+1),l=i.slice(f,n+1),n===-1||wc.test(l)?_=["(","(",f]:(_=["brackets",l,f,n],f=n);break}case Vi:case fa:{o=r===Vi?"'":'"',n=f;do{if(m=!1,n=i.indexOf(o,n+1),n===-1)if(a||O){n=f+1;break}else x("string");for(u=n;i.charCodeAt(u-1)===Zt;)u-=1,m=!m}while(m);_=["string",i.slice(f,n+1),f,n],f=n;break}case xc:{ti.lastIndex=f+1,ti.test(i),ti.lastIndex===0?n=i.length-1:n=ti.lastIndex-2,_=["at-word",i.slice(f,n+1),f,n],f=n;break}case Zt:{for(n=f,c=!0;i.charCodeAt(n+1)===Zt;)n+=1,c=!c;if(r=i.charCodeAt(n+1),c&&r!==pa&&r!==bt&&r!==Xt&&r!==Qt&&r!==ei&&r!==Yt&&(n+=1,ga.test(i.charAt(n)))){for(;ga.test(i.charAt(n+1));)n+=1;i.charCodeAt(n+1)===bt&&(n+=1)}_=["word",i.slice(f,n+1),f,n],f=n;break}default:{r===pa&&i.charCodeAt(f+1)===vc?(n=i.indexOf("*/",f+2)+1,n===0&&(a||O?n=i.length:x("comment")),_=["comment",i.slice(f,n+1),f,n],f=n):(ii.lastIndex=f+1,ii.test(i),ii.lastIndex===0?n=i.length-1:n=ii.lastIndex-2,_=["word",i.slice(f,n+1),f,n],A.push(_),f=n);break}}return f++,_}function R(P){M.push(P)}return{back:R,endOfFile:E,nextToken:$,position:I}};let gn=We,pi=class extends gn{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var As=pi;pi.default=pi;gn.registerAtRule(pi);let Nn=We,bn,vn,lt=class extends Nn{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,i){let a=super.normalize(e);if(t){if(i==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let r of a)r.raws.before=t.raws.before}return a}removeChild(e,t){let i=this.index(e);return!t&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(e)}toResult(e={}){return new bn(new vn,this,e).stringify()}};lt.registerLazyResult=s=>{bn=s};lt.registerProcessor=s=>{vn=s};var Ht=lt;lt.default=lt;Nn.registerRoot(lt);let It={comma(s){return It.split(s,[","],!0)},space(s){let e=[" ",`
|
|
1564
|
-
`," "];return It.split(s,e)},split(s,e,t){let i=[],a="",r=!1,n=0,o=!1,l="",c=!1;for(let m of s)c?c=!1:m==="\\"?c=!0:o?m===l&&(o=!1):m==='"'||m==="'"?(o=!0,l=m):m==="("?n+=1:m===")"?n>0&&(n-=1):n===0&&e.includes(m)&&(r=!0),r?(a!==""&&i.push(a.trim()),a="",r=!1):a+=m;return(t||a!=="")&&i.push(a.trim()),i}};var yn=It;It.default=It;let xn=We,Sc=yn,gi=class extends xn{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Sc.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,i=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}};var ks=gi;gi.default=gi;xn.registerRule(gi);let Cc=Si,Ec=_c,Ac=Ei,kc=As,$c=Ht,Na=ks;const ba={empty:!0,space:!0};function Oc(s){for(let e=s.length-1;e>=0;e--){let t=s[e],i=t[3]||t[2];if(i)return i}}let Mc=class{constructor(e){this.input=e,this.root=new $c,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new kc;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let i,a,r,n=!1,o=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?c.push(i==="("?")":"]"):i==="{"&&c.length>0?c.push("}"):i===c[c.length-1]&&c.pop(),c.length===0)if(i===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){o=!0;break}else if(i==="}"){if(l.length>0){for(r=l.length-1,a=l[r];a&&a[0]==="space";)a=l[--r];a&&(t.source.end=this.getPosition(a[3]||a[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){n=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),n&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),o&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let i=0,a;for(let r=t-1;r>=0&&(a=e[r],!(a[0]!=="space"&&(i+=1,i===2)));r--);throw this.input.error("Missed semicolon",a[0]==="word"?a[3]+1:a[2])}colon(e){let t=0,i,a,r;for(let[n,o]of e.entries()){if(i=o,a=i[0],a==="("&&(t+=1),a===")"&&(t-=1),t===0&&a===":")if(!r)this.doubleColon(i);else{if(r[0]==="word"&&r[1]==="progid")continue;return n}r=i}return!1}comment(e){let t=new Ac;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let i=e[1].slice(2,-2);if(/^\s*$/.test(i))t.text="",t.raws.left=i,t.raws.right="";else{let a=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=a[2],t.raws.left=a[1],t.raws.right=a[3]}}createTokenizer(){this.tokenizer=Ec(this.input)}decl(e,t){let i=new Cc;this.init(i,e[0][2]);let a=e[e.length-1];for(a[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(a[3]||a[2]||Oc(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let r;for(;e.length;)if(r=e.shift(),r[0]===":"){i.raws.between+=r[1];break}else r[0]==="word"&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let n=[],o;for(;e.length&&(o=e[0][0],!(o!=="space"&&o!=="comment"));)n.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(r=e[c],r[1].toLowerCase()==="!important"){i.important=!0;let m=this.stringFrom(e,c);m=this.spacesFromEnd(e)+m,m!==" !important"&&(i.raws.important=m);break}else if(r[1].toLowerCase()==="important"){let m=e.slice(0),u="";for(let h=c;h>0;h--){let g=m[h][0];if(u.trim().indexOf("!")===0&&g!=="space")break;u=m.pop()[1]+u}u.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=u,e=m)}if(r[0]!=="space"&&r[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(i.raws.between+=n.map(c=>c[1]).join(""),n=[]),this.raw(i,"value",n.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Na;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,i=null,a=!1,r=null,n=[],o=e[1].startsWith("--"),l=[],c=e;for(;c;){if(i=c[0],l.push(c),i==="("||i==="[")r||(r=c),n.push(i==="("?")":"]");else if(o&&a&&i==="{")r||(r=c),n.push("}");else if(n.length===0)if(i===";")if(a){this.decl(l,o);return}else break;else if(i==="{"){this.rule(l);return}else if(i==="}"){this.tokenizer.back(l.pop()),t=!0;break}else i===":"&&(a=!0);else i===n[n.length-1]&&(n.pop(),n.length===0&&(r=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),n.length>0&&this.unclosedBracket(r),t&&a){if(!o)for(;l.length&&(c=l[l.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,o)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,i,a){let r,n,o=i.length,l="",c=!0,m,u;for(let h=0;h<o;h+=1)r=i[h],n=r[0],n==="space"&&h===o-1&&!a?c=!1:n==="comment"?(u=i[h-1]?i[h-1][0]:"empty",m=i[h+1]?i[h+1][0]:"empty",!ba[u]&&!ba[m]?l.slice(-1)===","?c=!1:l+=r[1]:c=!1):l+=r[1];if(!c){let h=i.reduce((g,_)=>g+_[1],"");e.raws[t]={raw:h,value:l}}e[t]=l}rule(e){e.pop();let t=new Na;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)i=e.pop()[1]+i;return i}spacesAndCommentsFromStart(e){let t,i="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)i+=e.shift()[1];return i}spacesFromEnd(e){let t,i="";for(;e.length&&(t=e[e.length-1][0],t==="space");)i=e.pop()[1]+i;return i}stringFrom(e,t){let i="";for(let a=t;a<e.length;a++)i+=e[a][1];return e.splice(t,e.length-t),i}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var Ic=Mc;let Rc=We,Lc=Ic,Pc=Ci;function Ni(s,e){let t=new Pc(s,e),i=new Lc(t);try{i.parse()}catch(a){throw a}return i.root}var $s=Ni;Ni.default=Ni;Rc.registerParse(Ni);let{isClean:xe,my:Dc}=Ft,Bc=sn,Tc=wi,zc=We,jc=Cs,va=Es,Vc=$s,Fc=Ht;const Hc={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Uc={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Gc={Once:!0,postcssPlugin:!0,prepare:!0},ct=0;function vt(s){return typeof s=="object"&&typeof s.then=="function"}function wn(s){let e=!1,t=Hc[s.type];return s.type==="decl"?e=s.prop.toLowerCase():s.type==="atrule"&&(e=s.name.toLowerCase()),e&&s.append?[t,t+"-"+e,ct,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:s.append?[t,ct,t+"Exit"]:[t,t+"Exit"]}function ya(s){let e;return s.type==="document"?e=["Document",ct,"DocumentExit"]:s.type==="root"?e=["Root",ct,"RootExit"]:e=wn(s),{eventIndex:0,events:e,iterator:0,node:s,visitorIndex:0,visitors:[]}}function ls(s){return s[xe]=!1,s.nodes&&s.nodes.forEach(e=>ls(e)),s}let cs={},mt=class _n{constructor(e,t,i){this.stringified=!1,this.processed=!1;let a;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))a=ls(t);else if(t instanceof _n||t instanceof va)a=ls(t.root),t.map&&(typeof i.map>"u"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=t.map);else{let r=Vc;i.syntax&&(r=i.syntax.parse),i.parser&&(r=i.parser),r.parse&&(r=r.parse);try{a=r(t,i)}catch(n){this.processed=!0,this.error=n}a&&!a[Dc]&&zc.rebuild(a)}this.result=new va(e,a,i),this.helpers={...cs,postcss:cs,result:this.result},this.plugins=this.processor.plugins.map(r=>typeof r=="object"&&r.prepare?{...r,...r.prepare(this.result)}:r)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let i=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=i.postcssPlugin,e.setMessage()):i.postcssVersion}catch(a){console&&console.error&&console.error(a)}return e}prepareVisitors(){this.listeners={};let e=(t,i,a)=>{this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push([t,a])};for(let t of this.plugins)if(typeof t=="object")for(let i in t){if(!Uc[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Gc[i])if(typeof t[i]=="object")for(let a in t[i])a==="*"?e(t,i,t[i][a]):e(t,i+"-"+a.toLowerCase(),t[i][a]);else typeof t[i]=="function"&&e(t,i,t[i])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],i=this.runOnRoot(t);if(vt(i))try{await i}catch(a){throw this.handleError(a)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[xe];){e[xe]=!0;let t=[ya(e)];for(;t.length>0;){let i=this.visitTick(t);if(vt(i))try{await i}catch(a){let r=t[t.length-1].node;throw this.handleError(a,r)}}}if(this.listeners.OnceExit)for(let[t,i]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let a=e.nodes.map(r=>i(r,this.helpers));await Promise.all(a)}else await i(e,this.helpers)}catch(a){throw this.handleError(a)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(i=>e.Once(i,this.helpers));return vt(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Tc;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let a=new Bc(t,this.result.root,this.result.opts).generate();return this.result.css=a[0],this.result.map=a[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(vt(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[xe];)e[xe]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[i,a]of e){this.result.lastPlugin=i;let r;try{r=a(t,this.helpers)}catch(n){throw this.handleError(n,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(vt(r))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:i,visitors:a}=t;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(a.length>0&&t.visitorIndex<a.length){let[n,o]=a[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===a.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=n;try{return o(i.toProxy(),this.helpers)}catch(l){throw this.handleError(l,i)}}if(t.iterator!==0){let n=t.iterator,o;for(;o=i.nodes[i.indexes[n]];)if(i.indexes[n]+=1,!o[xe]){o[xe]=!0,e.push(ya(o));return}t.iterator=0,delete i.indexes[n]}let r=t.events;for(;t.eventIndex<r.length;){let n=r[t.eventIndex];if(t.eventIndex+=1,n===ct){i.nodes&&i.nodes.length&&(i[xe]=!0,t.iterator=i.getIterator());return}else if(this.listeners[n]){t.visitors=this.listeners[n];return}}e.pop()}walkSync(e){e[xe]=!0;let t=wn(e);for(let i of t)if(i===ct)e.nodes&&e.each(a=>{a[xe]||this.walkSync(a)});else{let a=this.listeners[i];if(a&&this.visitSync(a,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};mt.registerPostcss=s=>{cs=s};var Sn=mt;mt.default=mt;Fc.registerLazyResult(mt);jc.registerLazyResult(mt);let Wc=sn,Kc=wi,qc=$s;const Jc=Es;let ms=class{constructor(e,t,i){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=i,this._map=void 0;let a,r=Kc;this.result=new Jc(this._processor,a,this._opts),this.result.css=t;let n=this;Object.defineProperty(this.result,"root",{get(){return n.root}});let o=new Wc(r,a,this._opts,t);if(o.isMap()){let[l,c]=o.generate();l&&(this.result.css=l),c&&(this.result.map=c)}}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=qc;try{e=t(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Zc=ms;ms.default=ms;let Xc=Zc,Yc=Sn,Qc=Cs,em=Ht,Rt=class{constructor(e=[]){this.version="8.4.32",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let i of e)if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),typeof i=="object"&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if(typeof i=="object"&&i.postcssPlugin)t.push(i);else if(typeof i=="function")t.push(i);else if(!(typeof i=="object"&&(i.parse||i.stringify)))throw new Error(i+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length===0&&typeof t.parser>"u"&&typeof t.stringifier>"u"&&typeof t.syntax>"u"?new Xc(this,e,t):new Yc(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var tm=Rt;Rt.default=Rt;em.registerProcessor(Rt);Qc.registerProcessor(Rt);let im=Si,sm=Xa,am=Ei,nm=As,rm=Ci,om=Ht,lm=ks;function Lt(s,e){if(Array.isArray(s))return s.map(a=>Lt(a));let{inputs:t,...i}=s;if(t){e=[];for(let a of t){let r={...a,__proto__:rm.prototype};r.map&&(r.map={...r.map,__proto__:sm.prototype}),e.push(r)}}if(i.nodes&&(i.nodes=s.nodes.map(a=>Lt(a,e))),i.source){let{inputId:a,...r}=i.source;i.source=r,a!=null&&(i.source.input=e[a])}if(i.type==="root")return new om(i);if(i.type==="decl")return new im(i);if(i.type==="rule")return new lm(i);if(i.type==="comment")return new am(i);if(i.type==="atrule")return new nm(i);throw new Error("Unknown node type: "+s.type)}var cm=Lt;Lt.default=Lt;var xa={};let mm=ws,Cn=Si,dm=Sn,um=We,Os=tm,hm=wi,fm=cm,En=Cs,pm=pn,An=Ei,kn=As,gm=Es,Nm=Ci,bm=$s,vm=yn,$n=ks,On=Ht,ym=_i;function L(...s){return s.length===1&&Array.isArray(s[0])&&(s=s[0]),new Os(s)}L.plugin=function(e,t){let i=!1;function a(...n){console&&console.warn&&!i&&(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
1565
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),xa.LANG&&xa.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
1566
|
-
https://www.w3ctech.com/topic/2226`));let o=t(...n);return o.postcssPlugin=e,o.postcssVersion=new Os().version,o}let r;return Object.defineProperty(a,"postcss",{get(){return r||(r=a()),r}}),a.process=function(n,o,l){return L([a(l)]).process(n,o)},a};L.stringify=hm;L.parse=bm;L.fromJSON=fm;L.list=vm;L.comment=s=>new An(s);L.atRule=s=>new kn(s);L.decl=s=>new Cn(s);L.rule=s=>new $n(s);L.root=s=>new On(s);L.document=s=>new En(s);L.CssSyntaxError=mm;L.Declaration=Cn;L.Container=um;L.Processor=Os;L.Document=En;L.Comment=An;L.Warning=pm;L.AtRule=kn;L.Result=gm;L.Input=Nm;L.Rule=$n;L.Root=On;L.Node=ym;dm.registerPostcss(L);var xm=L;L.default=L;const V=Ka(xm);V.stringify;V.fromJSON;V.plugin;V.parse;V.list;V.document;V.comment;V.atRule;V.rule;V.decl;V.root;V.CssSyntaxError;V.Declaration;V.Container;V.Processor;V.Document;V.Comment;V.Warning;V.AtRule;V.Result;V.Input;V.Rule;V.Root;V.Node;var wm=function(e){const t=e.prefix,i=/\s+$/.test(t)?t:`${t} `,a=e.ignoreFiles?[].concat(e.ignoreFiles):[],r=e.includeFiles?[].concat(e.includeFiles):[];return function(n){a.length&&n.source.input.file&&wa(n.source.input.file,a)||r.length&&n.source.input.file&&!wa(n.source.input.file,r)||n.walkRules(o=>{const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes"];o.parent&&l.includes(o.parent.name)||(o.selectors=o.selectors.map(c=>e.exclude&&_m(c,e.exclude)?c:e.transform?e.transform(t,c,i+c,n.source.input.file,o):i+c))})}};function wa(s,e){return e.some(t=>t instanceof RegExp?t.test(s):s.includes(t))}function _m(s,e){return e.some(t=>t instanceof RegExp?t.test(s):s===t)}const Sm=Ka(wm),Cm="code{white-space:pre}.example{display:flex;flex-wrap:wrap;flex-direction:row;align-items:center;gap:16px}.example>*{flex:1 1 500px}.example .tab-control{overflow:hidden}.example div[role=tab]{cursor:pointer;padding:8px 16px;display:inline-block;font-size:16px;border-bottom:2px solid transparent;background-clip:padding-box;-webkit-user-select:none;user-select:none}.example div[role=tab]:hover{background-color:#1467ba14}.example div[role=tab][selected]{background-color:#1467ba21;border-bottom:2px solid #1467ba}.tab-content{margin:16px 0}.tab-content>pre{padding-top:0}.tab-content.code{max-height:500px;overflow:auto}.tab-content.code pre{margin:0}",Em="pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}";function Am(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}function Mn(s){return s instanceof Map?s.clear=s.delete=s.set=function(){throw new Error("map is read-only")}:s instanceof Set&&(s.add=s.clear=s.delete=function(){throw new Error("set is read-only")}),Object.freeze(s),Object.getOwnPropertyNames(s).forEach(e=>{const t=s[e],i=typeof t;(i==="object"||i==="function")&&!Object.isFrozen(t)&&Mn(t)}),s}class _a{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function In(s){return s.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Re(s,...e){const t=Object.create(null);for(const i in s)t[i]=s[i];return e.forEach(function(i){for(const a in i)t[a]=i[a]}),t}const km="</span>",Sa=s=>!!s.scope,$m=(s,{prefix:e})=>{if(s.startsWith("language:"))return s.replace("language:","language-");if(s.includes(".")){const t=s.split(".");return[`${e}${t.shift()}`,...t.map((i,a)=>`${i}${"_".repeat(a+1)}`)].join(" ")}return`${e}${s}`};class Om{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=In(e)}openNode(e){if(!Sa(e))return;const t=$m(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){Sa(e)&&(this.buffer+=km)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const Ca=(s={})=>{const e={children:[]};return Object.assign(e,s),e};class Ms{constructor(){this.rootNode=Ca(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=Ca({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t=="string"?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(i=>this._walk(e,i)),e.closeNode(t)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(t=>typeof t=="string")?e.children=[e.children.join("")]:e.children.forEach(t=>{Ms._collapse(t)}))}}class Mm extends Ms{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const i=e.root;t&&(i.scope=`language:${t}`),this.add(i)}toHTML(){return new Om(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Pt(s){return s?typeof s=="string"?s:s.source:null}function Rn(s){return Ke("(?=",s,")")}function Im(s){return Ke("(?:",s,")*")}function Rm(s){return Ke("(?:",s,")?")}function Ke(...s){return s.map(e=>Pt(e)).join("")}function Lm(s){const e=s[s.length-1];return typeof e=="object"&&e.constructor===Object?(s.splice(s.length-1,1),e):{}}function Is(...s){return"("+(Lm(s).capture?"":"?:")+s.map(e=>Pt(e)).join("|")+")"}function Ln(s){return new RegExp(s.toString()+"|").exec("").length-1}function Pm(s,e){const t=s&&s.exec(e);return t&&t.index===0}const Dm=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Rs(s,{joinWith:e}){let t=0;return s.map(i=>{t+=1;const a=t;let r=Pt(i),n="";for(;r.length>0;){const o=Dm.exec(r);if(!o){n+=r;break}n+=r.substring(0,o.index),r=r.substring(o.index+o[0].length),o[0][0]==="\\"&&o[1]?n+="\\"+String(Number(o[1])+a):(n+=o[0],o[0]==="("&&t++)}return n}).map(i=>`(${i})`).join(e)}const Bm=/\b\B/,Pn="[a-zA-Z]\\w*",Ls="[a-zA-Z_]\\w*",Dn="\\b\\d+(\\.\\d+)?",Bn="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Tn="\\b(0b[01]+)",Tm="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",zm=(s={})=>{const e=/^#![ ]*\//;return s.binary&&(s.begin=Ke(e,/.*\b/,s.binary,/\b.*/)),Re({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,i)=>{t.index!==0&&i.ignoreMatch()}},s)},Dt={begin:"\\\\[\\s\\S]",relevance:0},jm={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Dt]},Vm={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Dt]},Fm={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Ai=function(s,e,t={}){const i=Re({scope:"comment",begin:s,end:e,contains:[]},t);i.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const a=Is("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return i.contains.push({begin:Ke(/[ ]+/,"(",a,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),i},Hm=Ai("//","$"),Um=Ai("/\\*","\\*/"),Gm=Ai("#","$"),Wm={scope:"number",begin:Dn,relevance:0},Km={scope:"number",begin:Bn,relevance:0},qm={scope:"number",begin:Tn,relevance:0},Jm={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Dt,{begin:/\[/,end:/\]/,relevance:0,contains:[Dt]}]},Zm={scope:"title",begin:Pn,relevance:0},Xm={scope:"title",begin:Ls,relevance:0},Ym={begin:"\\.\\s*"+Ls,relevance:0},Qm=function(s){return Object.assign(s,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var si=Object.freeze({__proto__:null,APOS_STRING_MODE:jm,BACKSLASH_ESCAPE:Dt,BINARY_NUMBER_MODE:qm,BINARY_NUMBER_RE:Tn,COMMENT:Ai,C_BLOCK_COMMENT_MODE:Um,C_LINE_COMMENT_MODE:Hm,C_NUMBER_MODE:Km,C_NUMBER_RE:Bn,END_SAME_AS_BEGIN:Qm,HASH_COMMENT_MODE:Gm,IDENT_RE:Pn,MATCH_NOTHING_RE:Bm,METHOD_GUARD:Ym,NUMBER_MODE:Wm,NUMBER_RE:Dn,PHRASAL_WORDS_MODE:Fm,QUOTE_STRING_MODE:Vm,REGEXP_MODE:Jm,RE_STARTERS_RE:Tm,SHEBANG:zm,TITLE_MODE:Zm,UNDERSCORE_IDENT_RE:Ls,UNDERSCORE_TITLE_MODE:Xm});function ed(s,e){s.input[s.index-1]==="."&&e.ignoreMatch()}function td(s,e){s.className!==void 0&&(s.scope=s.className,delete s.className)}function id(s,e){e&&s.beginKeywords&&(s.begin="\\b("+s.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",s.__beforeBegin=ed,s.keywords=s.keywords||s.beginKeywords,delete s.beginKeywords,s.relevance===void 0&&(s.relevance=0))}function sd(s,e){Array.isArray(s.illegal)&&(s.illegal=Is(...s.illegal))}function ad(s,e){if(s.match){if(s.begin||s.end)throw new Error("begin & end are not supported with match");s.begin=s.match,delete s.match}}function nd(s,e){s.relevance===void 0&&(s.relevance=1)}const rd=(s,e)=>{if(!s.beforeMatch)return;if(s.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},s);Object.keys(s).forEach(i=>{delete s[i]}),s.keywords=t.keywords,s.begin=Ke(t.beforeMatch,Rn(t.begin)),s.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},s.relevance=0,delete t.beforeMatch},od=["of","and","for","in","not","or","if","then","parent","list","value"],ld="keyword";function zn(s,e,t=ld){const i=Object.create(null);return typeof s=="string"?a(t,s.split(" ")):Array.isArray(s)?a(t,s):Object.keys(s).forEach(function(r){Object.assign(i,zn(s[r],e,r))}),i;function a(r,n){e&&(n=n.map(o=>o.toLowerCase())),n.forEach(function(o){const l=o.split("|");i[l[0]]=[r,cd(l[0],l[1])]})}}function cd(s,e){return e?Number(e):md(s)?0:1}function md(s){return od.includes(s.toLowerCase())}const Ea={},Fe=s=>{console.error(s)},Aa=(s,...e)=>{console.log(`WARN: ${s}`,...e)},Qe=(s,e)=>{Ea[`${s}/${e}`]||(console.log(`Deprecated as of ${s}. ${e}`),Ea[`${s}/${e}`]=!0)},bi=new Error;function jn(s,e,{key:t}){let i=0;const a=s[t],r={},n={};for(let o=1;o<=e.length;o++)n[o+i]=a[o],r[o+i]=!0,i+=Ln(e[o-1]);s[t]=n,s[t]._emit=r,s[t]._multi=!0}function dd(s){if(Array.isArray(s.begin)){if(s.skip||s.excludeBegin||s.returnBegin)throw Fe("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),bi;if(typeof s.beginScope!="object"||s.beginScope===null)throw Fe("beginScope must be object"),bi;jn(s,s.begin,{key:"beginScope"}),s.begin=Rs(s.begin,{joinWith:""})}}function ud(s){if(Array.isArray(s.end)){if(s.skip||s.excludeEnd||s.returnEnd)throw Fe("skip, excludeEnd, returnEnd not compatible with endScope: {}"),bi;if(typeof s.endScope!="object"||s.endScope===null)throw Fe("endScope must be object"),bi;jn(s,s.end,{key:"endScope"}),s.end=Rs(s.end,{joinWith:""})}}function hd(s){s.scope&&typeof s.scope=="object"&&s.scope!==null&&(s.beginScope=s.scope,delete s.scope)}function fd(s){hd(s),typeof s.beginScope=="string"&&(s.beginScope={_wrap:s.beginScope}),typeof s.endScope=="string"&&(s.endScope={_wrap:s.endScope}),dd(s),ud(s)}function pd(s){function e(n,o){return new RegExp(Pt(n),"m"+(s.case_insensitive?"i":"")+(s.unicodeRegex?"u":"")+(o?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(o,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,o]),this.matchAt+=Ln(o)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const o=this.regexes.map(l=>l[1]);this.matcherRe=e(Rs(o,{joinWith:"|"}),!0),this.lastIndex=0}exec(o){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(o);if(!l)return null;const c=l.findIndex((u,h)=>h>0&&u!==void 0),m=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,m)}}class i{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(o){if(this.multiRegexes[o])return this.multiRegexes[o];const l=new t;return this.rules.slice(o).forEach(([c,m])=>l.addRule(c,m)),l.compile(),this.multiRegexes[o]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(o,l){this.rules.push([o,l]),l.type==="begin"&&this.count++}exec(o){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(o);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const m=this.getMatcher(0);m.lastIndex=this.lastIndex+1,c=m.exec(o)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function a(n){const o=new i;return n.contains.forEach(l=>o.addRule(l.begin,{rule:l,type:"begin"})),n.terminatorEnd&&o.addRule(n.terminatorEnd,{type:"end"}),n.illegal&&o.addRule(n.illegal,{type:"illegal"}),o}function r(n,o){const l=n;if(n.isCompiled)return l;[td,ad,fd,rd].forEach(m=>m(n,o)),s.compilerExtensions.forEach(m=>m(n,o)),n.__beforeBegin=null,[id,sd,nd].forEach(m=>m(n,o)),n.isCompiled=!0;let c=null;return typeof n.keywords=="object"&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),c=n.keywords.$pattern,delete n.keywords.$pattern),c=c||/\w+/,n.keywords&&(n.keywords=zn(n.keywords,s.case_insensitive)),l.keywordPatternRe=e(c,!0),o&&(n.begin||(n.begin=/\B|\b/),l.beginRe=e(l.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(l.endRe=e(l.end)),l.terminatorEnd=Pt(l.end)||"",n.endsWithParent&&o.terminatorEnd&&(l.terminatorEnd+=(n.end?"|":"")+o.terminatorEnd)),n.illegal&&(l.illegalRe=e(n.illegal)),n.contains||(n.contains=[]),n.contains=[].concat(...n.contains.map(function(m){return gd(m==="self"?n:m)})),n.contains.forEach(function(m){r(m,l)}),n.starts&&r(n.starts,o),l.matcher=a(l),l}if(s.compilerExtensions||(s.compilerExtensions=[]),s.contains&&s.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return s.classNameAliases=Re(s.classNameAliases||{}),r(s)}function Vn(s){return s?s.endsWithParent||Vn(s.starts):!1}function gd(s){return s.variants&&!s.cachedVariants&&(s.cachedVariants=s.variants.map(function(e){return Re(s,{variants:null},e)})),s.cachedVariants?s.cachedVariants:Vn(s)?Re(s,{starts:s.starts?Re(s.starts):null}):Object.isFrozen(s)?Re(s):s}var Nd="11.9.0";class bd extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Fi=In,ka=Re,$a=Symbol("nomatch"),vd=7,Fn=function(s){const e=Object.create(null),t=Object.create(null),i=[];let a=!0;const r="Could not find the language '{}', did you forget to load/include a language module?",n={disableAutodetect:!0,name:"Plain text",contains:[]};let o={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Mm};function l(d){return o.noHighlightRe.test(d)}function c(d){let N=d.className+" ";N+=d.parentNode?d.parentNode.className:"";const w=o.languageDetectRe.exec(N);if(w){const k=O(w[1]);return k||(Aa(r.replace("{}",w[1])),Aa("Falling back to no-highlight mode for this block.",d)),k?w[1]:"no-highlight"}return N.split(/\s+/).find(k=>l(k)||O(k))}function m(d,N,w){let k="",z="";typeof N=="object"?(k=d,w=N.ignoreIllegals,z=N.language):(Qe("10.7.0","highlight(lang, code, ...args) has been deprecated."),Qe("10.7.0",`Please use highlight(code, options) instead.
|
|
1567
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),z=d,k=N),w===void 0&&(w=!0);const J={code:k,language:z};te("before:highlight",J);const le=J.result?J.result:u(J.language,J.code,w);return le.code=J.code,te("after:highlight",le),le}function u(d,N,w,k){const z=Object.create(null);function J(p,b){return p.keywords[b]}function le(){if(!S.keywords){G.addText(D);return}let p=0;S.keywordPatternRe.lastIndex=0;let b=S.keywordPatternRe.exec(D),C="";for(;b;){C+=D.substring(p,b.index);const B=ce.case_insensitive?b[0].toLowerCase():b[0],Y=J(S,B);if(Y){const[Ce,Xn]=Y;if(G.addText(C),C="",z[B]=(z[B]||0)+1,z[B]<=vd&&(Be+=Xn),Ce.startsWith("_"))C+=b[0];else{const Yn=ce.classNameAliases[Ce]||Ce;X(b[0],Yn)}}else C+=b[0];p=S.keywordPatternRe.lastIndex,b=S.keywordPatternRe.exec(D)}C+=D.substring(p),G.addText(C)}function pe(){if(D==="")return;let p=null;if(typeof S.subLanguage=="string"){if(!e[S.subLanguage]){G.addText(D);return}p=u(S.subLanguage,D,!0,ve[S.subLanguage]),ve[S.subLanguage]=p._top}else p=g(D,S.subLanguage.length?S.subLanguage:null);S.relevance>0&&(Be+=p.relevance),G.__addSublanguage(p._emitter,p.language)}function U(){S.subLanguage!=null?pe():le(),D=""}function X(p,b){p!==""&&(G.startScope(b),G.addText(p),G.endScope())}function De(p,b){let C=1;const B=b.length-1;for(;C<=B;){if(!p._emit[C]){C++;continue}const Y=ce.classNameAliases[p[C]]||p[C],Ce=b[C];Y?X(Ce,Y):(D=Ce,le(),D=""),C++}}function be(p,b){return p.scope&&typeof p.scope=="string"&&G.openNode(ce.classNameAliases[p.scope]||p.scope),p.beginScope&&(p.beginScope._wrap?(X(D,ce.classNameAliases[p.beginScope._wrap]||p.beginScope._wrap),D=""):p.beginScope._multi&&(De(p.beginScope,b),D="")),S=Object.create(p,{parent:{value:S}}),S}function qe(p,b,C){let B=Pm(p.endRe,C);if(B){if(p["on:end"]){const Y=new _a(p);p["on:end"](b,Y),Y.isMatchIgnored&&(B=!1)}if(B){for(;p.endsParent&&p.parent;)p=p.parent;return p}}if(p.endsWithParent)return qe(p.parent,b,C)}function $i(p){return S.matcher.regexIndex===0?(D+=p[0],1):(Xe=!0,0)}function ft(p){const b=p[0],C=p.rule,B=new _a(C),Y=[C.__beforeBegin,C["on:begin"]];for(const Ce of Y)if(Ce&&(Ce(p,B),B.isMatchIgnored))return $i(b);return C.skip?D+=b:(C.excludeBegin&&(D+=b),U(),!C.returnBegin&&!C.excludeBegin&&(D=b)),be(C,p),C.returnBegin?0:b.length}function Oi(p){const b=p[0],C=N.substring(p.index),B=qe(S,p,C);if(!B)return $a;const Y=S;S.endScope&&S.endScope._wrap?(U(),X(b,S.endScope._wrap)):S.endScope&&S.endScope._multi?(U(),De(S.endScope,p)):Y.skip?D+=b:(Y.returnEnd||Y.excludeEnd||(D+=b),U(),Y.excludeEnd&&(D=b));do S.scope&&G.closeNode(),!S.skip&&!S.subLanguage&&(Be+=S.relevance),S=S.parent;while(S!==B.parent);return B.starts&&be(B.starts,p),Y.returnEnd?0:b.length}function Ut(){const p=[];for(let b=S;b!==ce;b=b.parent)b.scope&&p.unshift(b.scope);p.forEach(b=>G.openNode(b))}let Je={};function Gt(p,b){const C=b&&b[0];if(D+=p,C==null)return U(),0;if(Je.type==="begin"&&b.type==="end"&&Je.index===b.index&&C===""){if(D+=N.slice(b.index,b.index+1),!a){const B=new Error(`0 width match regex (${d})`);throw B.languageName=d,B.badRule=Je.rule,B}return 1}if(Je=b,b.type==="begin")return ft(b);if(b.type==="illegal"&&!w){const B=new Error('Illegal lexeme "'+C+'" for mode "'+(S.scope||"<unnamed>")+'"');throw B.mode=S,B}else if(b.type==="end"){const B=Oi(b);if(B!==$a)return B}if(b.type==="illegal"&&C==="")return 1;if(Ze>1e5&&Ze>b.index*3)throw new Error("potential infinite loop, way more iterations than matches");return D+=C,C.length}const ce=O(d);if(!ce)throw Fe(r.replace("{}",d)),new Error('Unknown language: "'+d+'"');const Wt=pd(ce);let pt="",S=k||Wt;const ve={},G=new o.__emitter(o);Ut();let D="",Be=0,ge=0,Ze=0,Xe=!1;try{if(ce.__emitTokens)ce.__emitTokens(N,G);else{for(S.matcher.considerAll();;){Ze++,Xe?Xe=!1:S.matcher.considerAll(),S.matcher.lastIndex=ge;const p=S.matcher.exec(N);if(!p)break;const b=N.substring(ge,p.index),C=Gt(b,p);ge=p.index+C}Gt(N.substring(ge))}return G.finalize(),pt=G.toHTML(),{language:d,value:pt,relevance:Be,illegal:!1,_emitter:G,_top:S}}catch(p){if(p.message&&p.message.includes("Illegal"))return{language:d,value:Fi(N),illegal:!0,relevance:0,_illegalBy:{message:p.message,index:ge,context:N.slice(ge-100,ge+100),mode:p.mode,resultSoFar:pt},_emitter:G};if(a)return{language:d,value:Fi(N),illegal:!1,relevance:0,errorRaised:p,_emitter:G,_top:S};throw p}}function h(d){const N={value:Fi(d),illegal:!1,relevance:0,_top:n,_emitter:new o.__emitter(o)};return N._emitter.addText(d),N}function g(d,N){N=N||o.languages||Object.keys(e);const w=h(d),k=N.filter(O).filter(K).map(U=>u(U,d,!1));k.unshift(w);const z=k.sort((U,X)=>{if(U.relevance!==X.relevance)return X.relevance-U.relevance;if(U.language&&X.language){if(O(U.language).supersetOf===X.language)return 1;if(O(X.language).supersetOf===U.language)return-1}return 0}),[J,le]=z,pe=J;return pe.secondBest=le,pe}function _(d,N,w){const k=N&&t[N]||w;d.classList.add("hljs"),d.classList.add(`language-${k}`)}function y(d){let N=null;const w=c(d);if(l(w))return;if(te("before:highlightElement",{el:d,language:w}),d.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",d);return}if(d.children.length>0&&(o.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(d)),o.throwUnescapedHTML))throw new bd("One of your code blocks includes unescaped HTML.",d.innerHTML);N=d;const k=N.textContent,z=w?m(k,{language:w,ignoreIllegals:!0}):g(k);d.innerHTML=z.value,d.dataset.highlighted="yes",_(d,w,z.language),d.result={language:z.language,re:z.relevance,relevance:z.relevance},z.secondBest&&(d.secondBest={language:z.secondBest.language,relevance:z.secondBest.relevance}),te("after:highlightElement",{el:d,result:z,text:k})}function f(d){o=ka(o,d)}const A=()=>{x(),Qe("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function M(){x(),Qe("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let I=!1;function x(){if(document.readyState==="loading"){I=!0;return}document.querySelectorAll(o.cssSelector).forEach(y)}function E(){I&&x()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",E,!1);function $(d,N){let w=null;try{w=N(s)}catch(k){if(Fe("Language definition for '{}' could not be registered.".replace("{}",d)),a)Fe(k);else throw k;w=n}w.name||(w.name=d),e[d]=w,w.rawDefinition=N.bind(null,s),w.aliases&&T(w.aliases,{languageName:d})}function R(d){delete e[d];for(const N of Object.keys(t))t[N]===d&&delete t[N]}function P(){return Object.keys(e)}function O(d){return d=(d||"").toLowerCase(),e[d]||e[t[d]]}function T(d,{languageName:N}){typeof d=="string"&&(d=[d]),d.forEach(w=>{t[w.toLowerCase()]=N})}function K(d){const N=O(d);return N&&!N.disableAutodetect}function ee(d){d["before:highlightBlock"]&&!d["before:highlightElement"]&&(d["before:highlightElement"]=N=>{d["before:highlightBlock"](Object.assign({block:N.el},N))}),d["after:highlightBlock"]&&!d["after:highlightElement"]&&(d["after:highlightElement"]=N=>{d["after:highlightBlock"](Object.assign({block:N.el},N))})}function q(d){ee(d),i.push(d)}function fe(d){const N=i.indexOf(d);N!==-1&&i.splice(N,1)}function te(d,N){const w=d;i.forEach(function(k){k[w]&&k[w](N)})}function Z(d){return Qe("10.7.0","highlightBlock will be removed entirely in v12.0"),Qe("10.7.0","Please use highlightElement now."),y(d)}Object.assign(s,{highlight:m,highlightAuto:g,highlightAll:x,highlightElement:y,highlightBlock:Z,configure:f,initHighlighting:A,initHighlightingOnLoad:M,registerLanguage:$,unregisterLanguage:R,listLanguages:P,getLanguage:O,registerAliases:T,autoDetection:K,inherit:ka,addPlugin:q,removePlugin:fe}),s.debugMode=function(){a=!1},s.safeMode=function(){a=!0},s.versionString=Nd,s.regex={concat:Ke,lookahead:Rn,either:Is,optional:Rm,anyNumberOfTimes:Im};for(const d in si)typeof si[d]=="object"&&Mn(si[d]);return Object.assign(s,si),s},dt=Fn({});dt.newInstance=()=>Fn({});var yd=dt;dt.HighlightJS=dt;dt.default=dt;const ki=Am(yd),vi="[A-Za-z$_][0-9A-Za-z$_]*",Hn=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],Un=["true","false","null","undefined","NaN","Infinity"],Gn=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Wn=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Kn=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],qn=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Jn=[].concat(Kn,Gn,Wn);function xd(s){const e=s.regex,t=(d,{after:N})=>{const w="</"+d[0].slice(1);return d.input.indexOf(w,N)!==-1},i=vi,a={begin:"<>",end:"</>"},r=/<[A-Za-z0-9\\._:-]+\s*\/>/,n={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(d,N)=>{const w=d[0].length+d.index,k=d.input[w];if(k==="<"||k===","){N.ignoreMatch();return}k===">"&&(t(d,{after:w})||N.ignoreMatch());let z;const J=d.input.substring(w);if(z=J.match(/^\s*=/)){N.ignoreMatch();return}if((z=J.match(/^\s+extends\s+/))&&z.index===0){N.ignoreMatch();return}}},o={$pattern:vi,keyword:Hn,literal:Un,built_in:Jn,"variable.language":qn},l="[0-9](_?[0-9])*",c=`\\.(${l})`,m="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",u={className:"number",variants:[{begin:`(\\b(${m})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${m})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},h={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},g={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[s.BACKSLASH_ESCAPE,h],subLanguage:"xml"}},_={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[s.BACKSLASH_ESCAPE,h],subLanguage:"css"}},y={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[s.BACKSLASH_ESCAPE,h],subLanguage:"graphql"}},f={className:"string",begin:"`",end:"`",contains:[s.BACKSLASH_ESCAPE,h]},A={className:"comment",variants:[s.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),s.C_BLOCK_COMMENT_MODE,s.C_LINE_COMMENT_MODE]},M=[s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,g,_,y,f,{match:/\$\d+/},u];h.contains=M.concat({begin:/\{/,end:/\}/,keywords:o,contains:["self"].concat(M)});const I=[].concat(A,h.contains),x=I.concat([{begin:/\(/,end:/\)/,keywords:o,contains:["self"].concat(I)}]),E={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:x},$={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,e.concat(i,"(",e.concat(/\./,i),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,i],scope:{1:"keyword",3:"title.class"}}]},R={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Gn,...Wn]}},P={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},O={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[E],illegal:/%/},T={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function K(d){return e.concat("(?!",d.join("|"),")")}const ee={match:e.concat(/\b/,K([...Kn,"super","import"]),i,e.lookahead(/\(/)),className:"title.function",relevance:0},q={begin:e.concat(/\./,e.lookahead(e.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},fe={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},E]},te="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+s.UNDERSCORE_IDENT_RE+")\\s*=>",Z={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(te)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[E]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:o,exports:{PARAMS_CONTAINS:x,CLASS_REFERENCE:R},illegal:/#(?![$_A-z])/,contains:[s.SHEBANG({label:"shebang",binary:"node",relevance:5}),P,s.APOS_STRING_MODE,s.QUOTE_STRING_MODE,g,_,y,f,A,{match:/\$\d+/},u,R,{className:"attr",begin:i+e.lookahead(":"),relevance:0},Z,{begin:"("+s.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[A,s.REGEXP_MODE,{className:"function",begin:te,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:s.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:x}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:a.begin,end:a.end},{match:r},{begin:n.begin,"on:begin":n.isTrulyOpeningTag,end:n.end}],subLanguage:"xml",contains:[{begin:n.begin,end:n.end,skip:!0,contains:["self"]}]}]},O,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+s.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[E,s.inherit(s.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},q,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[E]},ee,T,$,fe,{match:/\$[(.]/}]}}function wd(s){const e=xd(s),t=vi,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],a={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[e.exports.CLASS_REFERENCE]},r={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[e.exports.CLASS_REFERENCE]},n={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},o=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],l={$pattern:vi,keyword:Hn.concat(o),literal:Un,built_in:Jn.concat(i),"variable.language":qn},c={className:"meta",begin:"@"+t},m=(h,g,_)=>{const y=h.contains.findIndex(f=>f.label===g);if(y===-1)throw new Error("can not find mode to replace");h.contains.splice(y,1,_)};Object.assign(e.keywords,l),e.exports.PARAMS_CONTAINS.push(c),e.contains=e.contains.concat([c,a,r]),m(e,"shebang",s.SHEBANG()),m(e,"use_strict",n);const u=e.contains.find(h=>h.label==="func.def");return u.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function _d(s){const e=s.regex,t=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i=/[\p{L}0-9._:-]+/u,a={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},r={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},n=s.inherit(r,{begin:/\(/,end:/\)/}),o=s.inherit(s.APOS_STRING_MODE,{className:"string"}),l=s.inherit(s.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:i,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[a]},{begin:/'/,end:/'/,contains:[a]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[r,l,o,n,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[r,n,l,o]}]}]},s.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},a,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(t,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:t,relevance:0,starts:c}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(t,/>/))),contains:[{className:"name",begin:t,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const Sd=s=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:s.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[s.APOS_STRING_MODE,s.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:s.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Cd=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Ed=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],Ad=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],kd=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],$d=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function Od(s){const e=s.regex,t=Sd(s),i={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},a="and or not only",r=/@-?\w[\w]*(-\w+)*/,n="[a-zA-Z-][a-zA-Z0-9_-]*",o=[s.APOS_STRING_MODE,s.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[t.BLOCK_COMMENT,i,t.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+n,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Ad.join("|")+")"},{begin:":(:)?("+kd.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+$d.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[t.BLOCK_COMMENT,t.HEXCOLOR,t.IMPORTANT,t.CSS_NUMBER_MODE,...o,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...o,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},t.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:r},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:a,attribute:Ed.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...o,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Cd.join("|")+")\\b"}]}}const Zn=document.createElement("style");Zn.innerText=[Cm,Em].join(`
|
|
1568
|
-
`);document.head.appendChild(
|
|
1569
|
-
`).trim();return
|
|
1562
|
+
`)&&(l=`\r
|
|
1563
|
+
`),this.css+=l+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let l=this.toUrl(this.path(c.file)),f=c.root||t(c.file),p;this.mapOpts.sourcesContent===!1?(p=new s(c.text),p.sourcesContent&&(p.sourcesContent=null)):p=c.consumer(),this.map.applySourceMap(p,l,this.toUrl(this.path(f)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let l=this.root.nodes.length-1;l>=0;l--)c=this.root.nodes[l],c.type==="comment"&&c.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(l)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),u&&h&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,l=>{c+=l}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=r.fromSourceMap(c,{ignoreInvalidMapping:!0})}else this.map=new r({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new r({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,l=1,f="<no source>",p={generated:{column:0,line:0},original:{column:0,line:0},source:""},N,x;this.stringify(this.root,(w,v,y)=>{if(this.css+=w,v&&y!=="end"&&(p.generated.line=c,p.generated.column=l-1,v.source&&v.source.start?(p.source=this.sourcePath(v),p.original.line=v.source.start.line,p.original.column=v.source.start.column-1,this.map.addMapping(p)):(p.source=f,p.original.line=1,p.original.column=0,this.map.addMapping(p))),x=w.match(/\n/g),x?(c+=x.length,N=w.lastIndexOf(`
|
|
1564
|
+
`),l=w.length-N):l+=w.length,v&&y!=="start"){let b=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==b.last||b.raws.semicolon)&&(v.source&&v.source.end?(p.source=this.sourcePath(v),p.original.line=v.source.end.line,p.original.column=v.source.end.column-1,p.generated.line=c,p.generated.column=l-2,this.map.addMapping(p)):(p.source=f,p.original.line=1,p.original.column=0,p.generated.line=c,p.generated.column=l-1,this.map.addMapping(p)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!0?!1:this.previous().length?this.previous().some(l=>l.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let l=this.memoizedPaths.get(c);if(l)return l;let f=this.opts.to?t(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(f=t(i(f,this.mapOpts.annotation)));let p=e(f,c);return this.memoizedPaths.set(c,p),p}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let l=c.source.input.map;this.previousMaps.includes(l)||this.previousMaps.push(l)}});else{let c=new d(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(l=>{if(l.source){let f=l.source.input.from;if(f&&!c[f]){c[f]=!0;let p=this.usesFileUrls?this.toFileUrl(f):this.toUrl(this.path(f));this.map.setSourceContent(p,l.source.input.css)}}});else if(this.css){let l=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(l,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let l=this.memoizedFileURLs.get(c);if(l)return l;if(o){let f=o(c).toString();return this.memoizedFileURLs.set(c,f),f}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let l=this.memoizedURLs.get(c);if(l)return l;a==="\\"&&(c=c.replace(/\\/g,"/"));let f=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,f),f}}return ss=n,ss}var as,Va;function tc(){if(Va)return as;Va=1;const t=39,e=34,i=92,a=47,s=10,r=32,o=12,d=9,h=13,u=91,n=93,m=40,c=41,l=123,f=125,p=59,N=42,x=58,w=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,y=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,_=/[\da-f]/i;return as=function(I,L={}){let E=I.css.valueOf(),H=L.ignoreErrors,V,Q,re,O,ne,q,Z,te,le,Se,xe=E.length,D=0,Ce=[],fe=[];function Fe(){return D}function Re(Ae){throw I.error("Unclosed "+Ae,D)}function Oe(){return fe.length===0&&D>=xe}function $e(Ae){if(fe.length)return fe.pop();if(D>=xe)return;let it=Ae?Ae.ignoreUnclosed:!1;switch(V=E.charCodeAt(D),V){case s:case r:case d:case h:case o:{O=D;do O+=1,V=E.charCodeAt(O);while(V===r||V===s||V===d||V===h||V===o);q=["space",E.slice(D,O)],D=O-1;break}case u:case n:case l:case f:case x:case p:case c:{let st=String.fromCharCode(V);q=[st,st,D];break}case m:{if(Se=Ce.length?Ce.pop()[1]:"",le=E.charCodeAt(D+1),Se==="url"&&le!==t&&le!==e&&le!==r&&le!==s&&le!==d&&le!==o&&le!==h){O=D;do{if(Z=!1,O=E.indexOf(")",O+1),O===-1)if(H||it){O=D;break}else Re("bracket");for(te=O;E.charCodeAt(te-1)===i;)te-=1,Z=!Z}while(Z);q=["brackets",E.slice(D,O+1),D,O],D=O}else O=E.indexOf(")",D+1),Q=E.slice(D,O+1),O===-1||b.test(Q)?q=["(","(",D]:(q=["brackets",Q,D,O],D=O);break}case t:case e:{ne=V===t?"'":'"',O=D;do{if(Z=!1,O=E.indexOf(ne,O+1),O===-1)if(H||it){O=D+1;break}else Re("string");for(te=O;E.charCodeAt(te-1)===i;)te-=1,Z=!Z}while(Z);q=["string",E.slice(D,O+1),D,O],D=O;break}case w:{v.lastIndex=D+1,v.test(E),v.lastIndex===0?O=E.length-1:O=v.lastIndex-2,q=["at-word",E.slice(D,O+1),D,O],D=O;break}case i:{for(O=D,re=!0;E.charCodeAt(O+1)===i;)O+=1,re=!re;if(V=E.charCodeAt(O+1),re&&V!==a&&V!==r&&V!==s&&V!==d&&V!==h&&V!==o&&(O+=1,_.test(E.charAt(O)))){for(;_.test(E.charAt(O+1));)O+=1;E.charCodeAt(O+1)===r&&(O+=1)}q=["word",E.slice(D,O+1),D,O],D=O;break}default:{V===a&&E.charCodeAt(D+1)===N?(O=E.indexOf("*/",D+2)+1,O===0&&(H||it?O=E.length:Re("comment")),q=["comment",E.slice(D,O+1),D,O],D=O):(y.lastIndex=D+1,y.test(E),y.lastIndex===0?O=E.length-1:O=y.lastIndex-2,q=["word",E.slice(D,O+1),D,O],Ce.push(q),D=O);break}}return D++,q}function Et(Ae){fe.push(Ae)}return{back:Et,endOfFile:Oe,nextToken:$e,position:Fe}},as}var rs,Fa;function ic(){if(Fa)return rs;Fa=1;let t=Ts(),e=Ci(),i=Ai(),a=Xt(),s=zs(),r=tc();const o={empty:!0,space:!0};function d(u){for(let n=u.length-1;n>=0;n--){let m=u[n],c=m[3]||m[2];if(c)return c}}class h{constructor(n){this.input=n,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:n,start:{column:1,line:1,offset:0}}}atrule(n){let m=new t;m.name=n[1].slice(1),m.name===""&&this.unnamedAtrule(m,n),this.init(m,n[2]);let c,l,f,p=!1,N=!1,x=[],w=[];for(;!this.tokenizer.endOfFile();){if(n=this.tokenizer.nextToken(),c=n[0],c==="("||c==="["?w.push(c==="("?")":"]"):c==="{"&&w.length>0?w.push("}"):c===w[w.length-1]&&w.pop(),w.length===0)if(c===";"){m.source.end=this.getPosition(n[2]),m.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){N=!0;break}else if(c==="}"){if(x.length>0){for(f=x.length-1,l=x[f];l&&l[0]==="space";)l=x[--f];l&&(m.source.end=this.getPosition(l[3]||l[2]),m.source.end.offset++)}this.end(n);break}else x.push(n);else x.push(n);if(this.tokenizer.endOfFile()){p=!0;break}}m.raws.between=this.spacesAndCommentsFromEnd(x),x.length?(m.raws.afterName=this.spacesAndCommentsFromStart(x),this.raw(m,"params",x),p&&(n=x[x.length-1],m.source.end=this.getPosition(n[3]||n[2]),m.source.end.offset++,this.spaces=m.raws.between,m.raws.between="")):(m.raws.afterName="",m.params=""),N&&(m.nodes=[],this.current=m)}checkMissedSemicolon(n){let m=this.colon(n);if(m===!1)return;let c=0,l;for(let f=m-1;f>=0&&(l=n[f],!(l[0]!=="space"&&(c+=1,c===2)));f--);throw this.input.error("Missed semicolon",l[0]==="word"?l[3]+1:l[2])}colon(n){let m=0,c,l,f;for(let[p,N]of n.entries()){if(l=N,f=l[0],f==="("&&(m+=1),f===")"&&(m-=1),m===0&&f===":")if(!c)this.doubleColon(l);else{if(c[0]==="word"&&c[1]==="progid")continue;return p}c=l}return!1}comment(n){let m=new e;this.init(m,n[2]),m.source.end=this.getPosition(n[3]||n[2]),m.source.end.offset++;let c=n[1].slice(2,-2);if(/^\s*$/.test(c))m.text="",m.raws.left=c,m.raws.right="";else{let l=c.match(/^(\s*)([^]*\S)(\s*)$/);m.text=l[2],m.raws.left=l[1],m.raws.right=l[3]}}createTokenizer(){this.tokenizer=r(this.input)}decl(n,m){let c=new i;this.init(c,n[0][2]);let l=n[n.length-1];for(l[0]===";"&&(this.semicolon=!0,n.pop()),c.source.end=this.getPosition(l[3]||l[2]||d(n)),c.source.end.offset++;n[0][0]!=="word";)n.length===1&&this.unknownWord(n),c.raws.before+=n.shift()[1];for(c.source.start=this.getPosition(n[0][2]),c.prop="";n.length;){let w=n[0][0];if(w===":"||w==="space"||w==="comment")break;c.prop+=n.shift()[1]}c.raws.between="";let f;for(;n.length;)if(f=n.shift(),f[0]===":"){c.raws.between+=f[1];break}else f[0]==="word"&&/\w/.test(f[1])&&this.unknownWord([f]),c.raws.between+=f[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let p=[],N;for(;n.length&&(N=n[0][0],!(N!=="space"&&N!=="comment"));)p.push(n.shift());this.precheckMissedSemicolon(n);for(let w=n.length-1;w>=0;w--){if(f=n[w],f[1].toLowerCase()==="!important"){c.important=!0;let v=this.stringFrom(n,w);v=this.spacesFromEnd(n)+v,v!==" !important"&&(c.raws.important=v);break}else if(f[1].toLowerCase()==="important"){let v=n.slice(0),y="";for(let b=w;b>0;b--){let _=v[b][0];if(y.trim().startsWith("!")&&_!=="space")break;y=v.pop()[1]+y}y.trim().startsWith("!")&&(c.important=!0,c.raws.important=y,n=v)}if(f[0]!=="space"&&f[0]!=="comment")break}n.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(c.raws.between+=p.map(w=>w[1]).join(""),p=[]),this.raw(c,"value",p.concat(n),m),c.value.includes(":")&&!m&&this.checkMissedSemicolon(n)}doubleColon(n){throw this.input.error("Double colon",{offset:n[2]},{offset:n[2]+n[1].length})}emptyRule(n){let m=new s;this.init(m,n[2]),m.selector="",m.raws.between="",this.current=m}end(n){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(n[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(n)}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(n){if(this.spaces+=n[1],this.current.nodes){let m=this.current.nodes[this.current.nodes.length-1];m&&m.type==="rule"&&!m.raws.ownSemicolon&&(m.raws.ownSemicolon=this.spaces,this.spaces="",m.source.end=this.getPosition(n[2]),m.source.end.offset+=m.raws.ownSemicolon.length)}}getPosition(n){let m=this.input.fromOffset(n);return{column:m.col,line:m.line,offset:n}}init(n,m){this.current.push(n),n.source={input:this.input,start:this.getPosition(m)},n.raws.before=this.spaces,this.spaces="",n.type!=="comment"&&(this.semicolon=!1)}other(n){let m=!1,c=null,l=!1,f=null,p=[],N=n[1].startsWith("--"),x=[],w=n;for(;w;){if(c=w[0],x.push(w),c==="("||c==="[")f||(f=w),p.push(c==="("?")":"]");else if(N&&l&&c==="{")f||(f=w),p.push("}");else if(p.length===0)if(c===";")if(l){this.decl(x,N);return}else break;else if(c==="{"){this.rule(x);return}else if(c==="}"){this.tokenizer.back(x.pop()),m=!0;break}else c===":"&&(l=!0);else c===p[p.length-1]&&(p.pop(),p.length===0&&(f=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(m=!0),p.length>0&&this.unclosedBracket(f),m&&l){if(!N)for(;x.length&&(w=x[x.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(x.pop());this.decl(x,N)}else this.unknownWord(x)}parse(){let n;for(;!this.tokenizer.endOfFile();)switch(n=this.tokenizer.nextToken(),n[0]){case"space":this.spaces+=n[1];break;case";":this.freeSemicolon(n);break;case"}":this.end(n);break;case"comment":this.comment(n);break;case"at-word":this.atrule(n);break;case"{":this.emptyRule(n);break;default:this.other(n);break}this.endFile()}precheckMissedSemicolon(){}raw(n,m,c,l){let f,p,N=c.length,x="",w=!0,v,y;for(let b=0;b<N;b+=1)f=c[b],p=f[0],p==="space"&&b===N-1&&!l?w=!1:p==="comment"?(y=c[b-1]?c[b-1][0]:"empty",v=c[b+1]?c[b+1][0]:"empty",!o[y]&&!o[v]?x.slice(-1)===","?w=!1:x+=f[1]:w=!1):x+=f[1];if(!w){let b=c.reduce((_,C)=>_+C[1],"");n.raws[m]={raw:b,value:x}}n[m]=x}rule(n){n.pop();let m=new s;this.init(m,n[0][2]),m.raws.between=this.spacesAndCommentsFromEnd(n),this.raw(m,"selector",n),this.current=m}spacesAndCommentsFromEnd(n){let m,c="";for(;n.length&&(m=n[n.length-1][0],!(m!=="space"&&m!=="comment"));)c=n.pop()[1]+c;return c}spacesAndCommentsFromStart(n){let m,c="";for(;n.length&&(m=n[0][0],!(m!=="space"&&m!=="comment"));)c+=n.shift()[1];return c}spacesFromEnd(n){let m,c="";for(;n.length&&(m=n[n.length-1][0],m==="space");)c=n.pop()[1]+c;return c}stringFrom(n,m){let c="";for(let l=m;l<n.length;l++)c+=n[l][1];return n.splice(m,n.length-m),c}unclosedBlock(){let n=this.current.source.start;throw this.input.error("Unclosed block",n.line,n.column)}unclosedBracket(n){throw this.input.error("Unclosed bracket",{offset:n[2]},{offset:n[2]+1})}unexpectedClose(n){throw this.input.error("Unexpected }",{offset:n[2]},{offset:n[2]+1})}unknownWord(n){throw this.input.error("Unknown word "+n[0][1],{offset:n[0][2]},{offset:n[0][2]+n[0][1].length})}unnamedAtrule(n,m){throw this.input.error("At-rule without name",{offset:m[2]},{offset:m[2]+m[1].length})}}return rs=h,rs}var ns,Ha;function js(){if(Ha)return ns;Ha=1;let t=ht(),e=Ei(),i=ic();function a(s,r){let o=new e(s,r),d=new i(o);try{d.parse()}catch(h){throw h}return d.root}return ns=a,a.default=a,t.registerParse(a),ns}var os,qa;function wr(){if(qa)return os;qa=1;class t{constructor(i,a={}){if(this.type="warning",this.text=i,a.node&&a.node.source){let s=a.node.rangeBy(a);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in a)this[s]=a[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}}return os=t,t.default=t,os}var ls,Ua;function Vs(){if(Ua)return ls;Ua=1;let t=wr();class e{get content(){return this.css}constructor(a,s,r){this.processor=a,this.messages=[],this.root=s,this.opts=r,this.css="",this.map=void 0}toString(){return this.css}warn(a,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let r=new t(a,s);return this.messages.push(r),r}warnings(){return this.messages.filter(a=>a.type==="warning")}}return ls=e,e.default=e,ls}var cs,Wa;function _r(){if(Wa)return cs;Wa=1;let t=ht(),e=Ds(),i=xr(),a=js(),s=Vs(),r=Xt(),o=_i(),{isClean:d,my:h}=Bs();const u={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},n={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},m={Once:!0,postcssPlugin:!0,prepare:!0},c=0;function l(v){return typeof v=="object"&&typeof v.then=="function"}function f(v){let y=!1,b=u[v.type];return v.type==="decl"?y=v.prop.toLowerCase():v.type==="atrule"&&(y=v.name.toLowerCase()),y&&v.append?[b,b+"-"+y,c,b+"Exit",b+"Exit-"+y]:y?[b,b+"-"+y,b+"Exit",b+"Exit-"+y]:v.append?[b,c,b+"Exit"]:[b,b+"Exit"]}function p(v){let y;return v.type==="document"?y=["Document",c,"DocumentExit"]:v.type==="root"?y=["Root",c,"RootExit"]:y=f(v),{eventIndex:0,events:y,iterator:0,node:v,visitorIndex:0,visitors:[]}}function N(v){return v[d]=!1,v.nodes&&v.nodes.forEach(y=>N(y)),v}let x={};class w{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(y,b,_){this.stringified=!1,this.processed=!1;let C;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))C=N(b);else if(b instanceof w||b instanceof s)C=N(b.root),b.map&&(typeof _.map>"u"&&(_.map={}),_.map.inline||(_.map.inline=!1),_.map.prev=b.map);else{let I=a;_.syntax&&(I=_.syntax.parse),_.parser&&(I=_.parser),I.parse&&(I=I.parse);try{C=I(b,_)}catch(L){this.processed=!0,this.error=L}C&&!C[h]&&t.rebuild(C)}this.result=new s(y,C,_),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(I=>typeof I=="object"&&I.prepare?{...I,...I.prepare(this.result)}:I)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,b){let _=this.result.lastPlugin;try{b&&b.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=_.postcssPlugin,y.setMessage()):_.postcssVersion}catch(C){console&&console.error&&console.error(C)}return y}prepareVisitors(){this.listeners={};let y=(b,_,C)=>{this.listeners[_]||(this.listeners[_]=[]),this.listeners[_].push([b,C])};for(let b of this.plugins)if(typeof b=="object")for(let _ in b){if(!n[_]&&/^[A-Z]/.test(_))throw new Error(`Unknown event ${_} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!m[_])if(typeof b[_]=="object")for(let C in b[_])C==="*"?y(b,_,b[_][C]):y(b,_+"-"+C.toLowerCase(),b[_][C]);else typeof b[_]=="function"&&y(b,_,b[_])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let b=this.plugins[y],_=this.runOnRoot(b);if(l(_))try{await _}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[d];){y[d]=!0;let b=[p(y)];for(;b.length>0;){let _=this.visitTick(b);if(l(_))try{await _}catch(C){let I=b[b.length-1].node;throw this.handleError(C,I)}}}if(this.listeners.OnceExit)for(let[b,_]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(y.type==="document"){let C=y.nodes.map(I=>_(I,this.helpers));await Promise.all(C)}else await _(y,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(_=>y.Once(_,this.helpers));return l(b[0])?Promise.all(b):b}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(b){throw this.handleError(b)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,b=o;y.syntax&&(b=y.syntax.stringify),y.stringifier&&(b=y.stringifier),b.stringify&&(b=b.stringify);let C=new i(b,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let b=this.runOnRoot(y);if(l(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[d];)y[d]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let b of y.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,b){return this.async().then(y,b)}toString(){return this.css}visitSync(y,b){for(let[_,C]of y){this.result.lastPlugin=_;let I;try{I=C(b,this.helpers)}catch(L){throw this.handleError(L,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(l(I))throw this.getAsyncError()}}visitTick(y){let b=y[y.length-1],{node:_,visitors:C}=b;if(_.type!=="root"&&_.type!=="document"&&!_.parent){y.pop();return}if(C.length>0&&b.visitorIndex<C.length){let[L,E]=C[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===C.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=L;try{return E(_.toProxy(),this.helpers)}catch(H){throw this.handleError(H,_)}}if(b.iterator!==0){let L=b.iterator,E;for(;E=_.nodes[_.indexes[L]];)if(_.indexes[L]+=1,!E[d]){E[d]=!0,y.push(p(E));return}b.iterator=0,delete _.indexes[L]}let I=b.events;for(;b.eventIndex<I.length;){let L=I[b.eventIndex];if(b.eventIndex+=1,L===c){_.nodes&&_.nodes.length&&(_[d]=!0,b.iterator=_.getIterator());return}else if(this.listeners[L]){b.visitors=this.listeners[L];return}}y.pop()}walkSync(y){y[d]=!0;let b=f(y);for(let _ of b)if(_===c)y.nodes&&y.each(C=>{C[d]||this.walkSync(C)});else{let C=this.listeners[_];if(C&&this.visitSync(C,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return w.registerPostcss=v=>{x=v},cs=w,w.default=w,r.registerLazyResult(w),e.registerLazyResult(w),cs}var ms,Ga;function sc(){if(Ga)return ms;Ga=1;let t=xr(),e=js();const i=Vs();let a=_i();class s{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 o,d=e;try{o=d(this._css,this._opts)}catch(h){this.error=h}if(this.error)throw this.error;return this._root=o,o}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(o,d,h){d=d.toString(),this.stringified=!1,this._processor=o,this._css=d,this._opts=h,this._map=void 0;let u,n=a;this.result=new i(this._processor,u,this._opts),this.result.css=d;let m=this;Object.defineProperty(this.result,"root",{get(){return m.root}});let c=new t(n,u,this._opts,d);if(c.isMap()){let[l,f]=c.generate();l&&(this.result.css=l),f&&(this.result.map=f)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(o){return this.async().catch(o)}finally(o){return this.async().then(o,o)}sync(){if(this.error)throw this.error;return this.result}then(o,d){return this.async().then(o,d)}toString(){return this._css}warnings(){return[]}}return ms=s,s.default=s,ms}var ds,Ka;function ac(){if(Ka)return ds;Ka=1;let t=Ds(),e=_r(),i=sc(),a=Xt();class s{constructor(o=[]){this.version="8.5.6",this.plugins=this.normalize(o)}normalize(o){let d=[];for(let h of o)if(h.postcss===!0?h=h():h.postcss&&(h=h.postcss),typeof h=="object"&&Array.isArray(h.plugins))d=d.concat(h.plugins);else if(typeof h=="object"&&h.postcssPlugin)d.push(h);else if(typeof h=="function")d.push(h);else if(!(typeof h=="object"&&(h.parse||h.stringify)))throw new Error(h+" is not a PostCSS plugin");return d}process(o,d={}){return!this.plugins.length&&!d.parser&&!d.stringifier&&!d.syntax?new i(this,o,d):new e(this,o,d)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}}return ds=s,s.default=s,a.registerProcessor(s),t.registerProcessor(s),ds}var us,Ja;function rc(){if(Ja)return us;Ja=1;var t={};let e=Ts(),i=Ci(),a=ht(),s=Ps(),r=Ai(),o=Ds(),d=ec(),h=Ei(),u=_r(),n=vr(),m=Si(),c=js(),l=ac(),f=Vs(),p=Xt(),N=zs(),x=_i(),w=wr();function v(...y){return y.length===1&&Array.isArray(y[0])&&(y=y[0]),new l(y)}return v.plugin=function(b,_){let C=!1;function I(...E){console&&console.warn&&!C&&(C=!0,console.warn(b+`: postcss.plugin was deprecated. Migration guide:
|
|
1565
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),t.LANG&&t.LANG.startsWith("cn")&&console.warn(b+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
1566
|
+
https://www.w3ctech.com/topic/2226`));let H=_(...E);return H.postcssPlugin=b,H.postcssVersion=new l().version,H}let L;return Object.defineProperty(I,"postcss",{get(){return L||(L=I()),L}}),I.process=function(E,H,V){return v([I(V)]).process(E,H)},I},v.stringify=x,v.parse=c,v.fromJSON=d,v.list=n,v.comment=y=>new i(y),v.atRule=y=>new e(y),v.decl=y=>new r(y),v.rule=y=>new N(y),v.root=y=>new p(y),v.document=y=>new o(y),v.CssSyntaxError=s,v.Declaration=r,v.Container=a,v.Processor=l,v.Document=o,v.Comment=i,v.Warning=w,v.AtRule=e,v.Result=f,v.Input=h,v.Rule=N,v.Root=p,v.Node=m,u.registerPostcss(v),us=v,v.default=v,us}var nc=rc();const X=Nr(nc);X.stringify;X.fromJSON;X.plugin;X.parse;X.list;X.document;X.comment;X.atRule;X.rule;X.decl;X.root;X.CssSyntaxError;X.Declaration;X.Container;X.Processor;X.Document;X.Comment;X.Warning;X.AtRule;X.Result;X.Input;X.Rule;X.Root;X.Node;var hs,Za;function oc(){if(Za)return hs;Za=1;const t=(a={})=>{const s=a.prefix,r=/\s+$/.test(s)?s:`${s} `,o=a.ignoreFiles?[].concat(a.ignoreFiles):[],d=a.includeFiles?[].concat(a.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(h){const u=h.root,n=u.source.input.file;if(!(o.length&&n&&e(n,o))&&!(d.length&&n&&!e(n,d)))return{Rule(m,{result:c}){const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];m.parent&&l.includes(m.parent.name)||(m.selectors=m.selectors.map(f=>a.exclude&&i(f,a.exclude)?f:a.transform?a.transform(s,f,r+f,u.source.input.file,m):[":root","body","html"].some(p=>f.startsWith(p))?a.skipGlobalSelectors?f:f.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,s):r+f))}}}}};function e(a,s){return s.some(r=>r instanceof RegExp?r.test(a):a.includes(r))}function i(a,s){return s.some(r=>r instanceof RegExp?r.test(a):a===r)}return t.postcss=!0,hs=t,hs}var lc=oc();const cc=Nr(lc),mc="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}",dc="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 uc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var fs,Xa;function hc(){if(Xa)return fs;Xa=1;function t(g){return g instanceof Map?g.clear=g.delete=g.set=function(){throw new Error("map is read-only")}:g instanceof Set&&(g.add=g.clear=g.delete=function(){throw new Error("set is read-only")}),Object.freeze(g),Object.getOwnPropertyNames(g).forEach(S=>{const M=g[S],F=typeof M;(F==="object"||F==="function")&&!Object.isFrozen(M)&&t(M)}),g}class e{constructor(S){S.data===void 0&&(S.data={}),this.data=S.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(g){return g.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function a(g,...S){const M=Object.create(null);for(const F in g)M[F]=g[F];return S.forEach(function(F){for(const se in F)M[se]=F[se]}),M}const s="</span>",r=g=>!!g.scope,o=(g,{prefix:S})=>{if(g.startsWith("language:"))return g.replace("language:","language-");if(g.includes(".")){const M=g.split(".");return[`${S}${M.shift()}`,...M.map((F,se)=>`${F}${"_".repeat(se+1)}`)].join(" ")}return`${S}${g}`};class d{constructor(S,M){this.buffer="",this.classPrefix=M.classPrefix,S.walk(this)}addText(S){this.buffer+=i(S)}openNode(S){if(!r(S))return;const M=o(S.scope,{prefix:this.classPrefix});this.span(M)}closeNode(S){r(S)&&(this.buffer+=s)}value(){return this.buffer}span(S){this.buffer+=`<span class="${S}">`}}const h=(g={})=>{const S={children:[]};return Object.assign(S,g),S};class u{constructor(){this.rootNode=h(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(S){this.top.children.push(S)}openNode(S){const M=h({scope:S});this.add(M),this.stack.push(M)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(S){return this.constructor._walk(S,this.rootNode)}static _walk(S,M){return typeof M=="string"?S.addText(M):M.children&&(S.openNode(M),M.children.forEach(F=>this._walk(S,F)),S.closeNode(M)),S}static _collapse(S){typeof S!="string"&&S.children&&(S.children.every(M=>typeof M=="string")?S.children=[S.children.join("")]:S.children.forEach(M=>{u._collapse(M)}))}}class n extends u{constructor(S){super(),this.options=S}addText(S){S!==""&&this.add(S)}startScope(S){this.openNode(S)}endScope(){this.closeNode()}__addSublanguage(S,M){const F=S.root;M&&(F.scope=`language:${M}`),this.add(F)}toHTML(){return new d(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function m(g){return g?typeof g=="string"?g:g.source:null}function c(g){return p("(?=",g,")")}function l(g){return p("(?:",g,")*")}function f(g){return p("(?:",g,")?")}function p(...g){return g.map(S=>m(S)).join("")}function N(g){const S=g[g.length-1];return typeof S=="object"&&S.constructor===Object?(g.splice(g.length-1,1),S):{}}function x(...g){return"("+(N(g).capture?"":"?:")+g.map(S=>m(S)).join("|")+")"}function w(g){return new RegExp(g.toString()+"|").exec("").length-1}function v(g,S){const M=g&&g.exec(S);return M&&M.index===0}const y=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function b(g,{joinWith:S}){let M=0;return g.map(F=>{M+=1;const se=M;let ae=m(F),$="";for(;ae.length>0;){const R=y.exec(ae);if(!R){$+=ae;break}$+=ae.substring(0,R.index),ae=ae.substring(R.index+R[0].length),R[0][0]==="\\"&&R[1]?$+="\\"+String(Number(R[1])+se):($+=R[0],R[0]==="("&&M++)}return $}).map(F=>`(${F})`).join(S)}const _=/\b\B/,C="[a-zA-Z]\\w*",I="[a-zA-Z_]\\w*",L="\\b\\d+(\\.\\d+)?",E="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",H="\\b(0b[01]+)",V="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Q=(g={})=>{const S=/^#![ ]*\//;return g.binary&&(g.begin=p(S,/.*\b/,g.binary,/\b.*/)),a({scope:"meta",begin:S,end:/$/,relevance:0,"on:begin":(M,F)=>{M.index!==0&&F.ignoreMatch()}},g)},re={begin:"\\\\[\\s\\S]",relevance:0},O={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[re]},ne={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[re]},q={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/},Z=function(g,S,M={}){const F=a({scope:"comment",begin:g,end:S,contains:[]},M);F.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 se=x("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 F.contains.push({begin:p(/[ ]+/,"(",se,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),F},te=Z("//","$"),le=Z("/\\*","\\*/"),Se=Z("#","$"),xe={scope:"number",begin:L,relevance:0},D={scope:"number",begin:E,relevance:0},Ce={scope:"number",begin:H,relevance:0},fe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[re,{begin:/\[/,end:/\]/,relevance:0,contains:[re]}]},Fe={scope:"title",begin:C,relevance:0},Re={scope:"title",begin:I,relevance:0},Oe={begin:"\\.\\s*"+I,relevance:0};var $e=Object.freeze({__proto__:null,APOS_STRING_MODE:O,BACKSLASH_ESCAPE:re,BINARY_NUMBER_MODE:Ce,BINARY_NUMBER_RE:H,COMMENT:Z,C_BLOCK_COMMENT_MODE:le,C_LINE_COMMENT_MODE:te,C_NUMBER_MODE:D,C_NUMBER_RE:E,END_SAME_AS_BEGIN:function(g){return Object.assign(g,{"on:begin":(S,M)=>{M.data._beginMatch=S[1]},"on:end":(S,M)=>{M.data._beginMatch!==S[1]&&M.ignoreMatch()}})},HASH_COMMENT_MODE:Se,IDENT_RE:C,MATCH_NOTHING_RE:_,METHOD_GUARD:Oe,NUMBER_MODE:xe,NUMBER_RE:L,PHRASAL_WORDS_MODE:q,QUOTE_STRING_MODE:ne,REGEXP_MODE:fe,RE_STARTERS_RE:V,SHEBANG:Q,TITLE_MODE:Fe,UNDERSCORE_IDENT_RE:I,UNDERSCORE_TITLE_MODE:Re});function Et(g,S){g.input[g.index-1]==="."&&S.ignoreMatch()}function Ae(g,S){g.className!==void 0&&(g.scope=g.className,delete g.className)}function it(g,S){S&&g.beginKeywords&&(g.begin="\\b("+g.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",g.__beforeBegin=Et,g.keywords=g.keywords||g.beginKeywords,delete g.beginKeywords,g.relevance===void 0&&(g.relevance=0))}function st(g,S){Array.isArray(g.illegal)&&(g.illegal=x(...g.illegal))}function Mi(g,S){if(g.match){if(g.begin||g.end)throw new Error("begin & end are not supported with match");g.begin=g.match,delete g.match}}function Oi(g,S){g.relevance===void 0&&(g.relevance=1)}const Yt=(g,S)=>{if(!g.beforeMatch)return;if(g.starts)throw new Error("beforeMatch cannot be used with starts");const M=Object.assign({},g);Object.keys(g).forEach(F=>{delete g[F]}),g.keywords=M.keywords,g.begin=p(M.beforeMatch,c(M.begin)),g.starts={relevance:0,contains:[Object.assign(M,{endsParent:!0})]},g.relevance=0,delete M.beforeMatch},Qt=["of","and","for","in","not","or","if","then","parent","list","value"],Ii="keyword";function ei(g,S,M=Ii){const F=Object.create(null);return typeof g=="string"?se(M,g.split(" ")):Array.isArray(g)?se(M,g):Object.keys(g).forEach(function(ae){Object.assign(F,ei(g[ae],S,ae))}),F;function se(ae,$){S&&($=$.map(R=>R.toLowerCase())),$.forEach(function(R){const z=R.split("|");F[z[0]]=[ae,He(z[0],z[1])]})}}function He(g,S){return S?Number(S):ft(g)?0:1}function ft(g){return Qt.includes(g.toLowerCase())}const kt={},Le=g=>{console.error(g)},pt=(g,...S)=>{console.log(`WARN: ${g}`,...S)},qe=(g,S)=>{kt[`${g}/${S}`]||(console.log(`Deprecated as of ${g}. ${S}`),kt[`${g}/${S}`]=!0)},at=new Error;function Mt(g,S,{key:M}){let F=0;const se=g[M],ae={},$={};for(let R=1;R<=S.length;R++)$[R+F]=se[R],ae[R+F]=!0,F+=w(S[R-1]);g[M]=$,g[M]._emit=ae,g[M]._multi=!0}function ti(g){if(Array.isArray(g.begin)){if(g.skip||g.excludeBegin||g.returnBegin)throw Le("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),at;if(typeof g.beginScope!="object"||g.beginScope===null)throw Le("beginScope must be object"),at;Mt(g,g.begin,{key:"beginScope"}),g.begin=b(g.begin,{joinWith:""})}}function Rr(g){if(Array.isArray(g.end)){if(g.skip||g.excludeEnd||g.returnEnd)throw Le("skip, excludeEnd, returnEnd not compatible with endScope: {}"),at;if(typeof g.endScope!="object"||g.endScope===null)throw Le("endScope must be object"),at;Mt(g,g.end,{key:"endScope"}),g.end=b(g.end,{joinWith:""})}}function $r(g){g.scope&&typeof g.scope=="object"&&g.scope!==null&&(g.beginScope=g.scope,delete g.scope)}function Lr(g){$r(g),typeof g.beginScope=="string"&&(g.beginScope={_wrap:g.beginScope}),typeof g.endScope=="string"&&(g.endScope={_wrap:g.endScope}),ti(g),Rr(g)}function Pr(g){function S($,R){return new RegExp(m($),"m"+(g.case_insensitive?"i":"")+(g.unicodeRegex?"u":"")+(R?"g":""))}class M{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(R,z){z.position=this.position++,this.matchIndexes[this.matchAt]=z,this.regexes.push([z,R]),this.matchAt+=w(R)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const R=this.regexes.map(z=>z[1]);this.matcherRe=S(b(R,{joinWith:"|"}),!0),this.lastIndex=0}exec(R){this.matcherRe.lastIndex=this.lastIndex;const z=this.matcherRe.exec(R);if(!z)return null;const me=z.findIndex((Ot,$i)=>$i>0&&Ot!==void 0),oe=this.matchIndexes[me];return z.splice(0,me),Object.assign(z,oe)}}class F{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(R){if(this.multiRegexes[R])return this.multiRegexes[R];const z=new M;return this.rules.slice(R).forEach(([me,oe])=>z.addRule(me,oe)),z.compile(),this.multiRegexes[R]=z,z}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(R,z){this.rules.push([R,z]),z.type==="begin"&&this.count++}exec(R){const z=this.getMatcher(this.regexIndex);z.lastIndex=this.lastIndex;let me=z.exec(R);if(this.resumingScanAtSamePosition()&&!(me&&me.index===this.lastIndex)){const oe=this.getMatcher(0);oe.lastIndex=this.lastIndex+1,me=oe.exec(R)}return me&&(this.regexIndex+=me.position+1,this.regexIndex===this.count&&this.considerAll()),me}}function se($){const R=new F;return $.contains.forEach(z=>R.addRule(z.begin,{rule:z,type:"begin"})),$.terminatorEnd&&R.addRule($.terminatorEnd,{type:"end"}),$.illegal&&R.addRule($.illegal,{type:"illegal"}),R}function ae($,R){const z=$;if($.isCompiled)return z;[Ae,Mi,Lr,Yt].forEach(oe=>oe($,R)),g.compilerExtensions.forEach(oe=>oe($,R)),$.__beforeBegin=null,[it,st,Oi].forEach(oe=>oe($,R)),$.isCompiled=!0;let me=null;return typeof $.keywords=="object"&&$.keywords.$pattern&&($.keywords=Object.assign({},$.keywords),me=$.keywords.$pattern,delete $.keywords.$pattern),me=me||/\w+/,$.keywords&&($.keywords=ei($.keywords,g.case_insensitive)),z.keywordPatternRe=S(me,!0),R&&($.begin||($.begin=/\B|\b/),z.beginRe=S(z.begin),!$.end&&!$.endsWithParent&&($.end=/\B|\b/),$.end&&(z.endRe=S(z.end)),z.terminatorEnd=m(z.end)||"",$.endsWithParent&&R.terminatorEnd&&(z.terminatorEnd+=($.end?"|":"")+R.terminatorEnd)),$.illegal&&(z.illegalRe=S($.illegal)),$.contains||($.contains=[]),$.contains=[].concat(...$.contains.map(function(oe){return Br(oe==="self"?$:oe)})),$.contains.forEach(function(oe){ae(oe,z)}),$.starts&&ae($.starts,R),z.matcher=se(z),z}if(g.compilerExtensions||(g.compilerExtensions=[]),g.contains&&g.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return g.classNameAliases=a(g.classNameAliases||{}),ae(g)}function Fs(g){return g?g.endsWithParent||Fs(g.starts):!1}function Br(g){return g.variants&&!g.cachedVariants&&(g.cachedVariants=g.variants.map(function(S){return a(g,{variants:null},S)})),g.cachedVariants?g.cachedVariants:Fs(g)?a(g,{starts:g.starts?a(g.starts):null}):Object.isFrozen(g)?a(g):g}var Tr="11.11.1";class Dr extends Error{constructor(S,M){super(S),this.name="HTMLInjectionError",this.html=M}}const Ri=i,Hs=a,qs=Symbol("nomatch"),zr=7,Us=function(g){const S=Object.create(null),M=Object.create(null),F=[];let se=!0;const ae="Could not find the language '{}', did you forget to load/include a language module?",$={disableAutodetect:!0,name:"Plain text",contains:[]};let R={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:n};function z(A){return R.noHighlightRe.test(A)}function me(A){let T=A.className+" ";T+=A.parentNode?A.parentNode.className:"";const W=R.languageDetectRe.exec(T);if(W){const K=Ze(W[1]);return K||(pt(ae.replace("{}",W[1])),pt("Falling back to no-highlight mode for this block.",A)),K?W[1]:"no-highlight"}return T.split(/\s+/).find(K=>z(K)||Ze(K))}function oe(A,T,W){let K="",ce="";typeof T=="object"?(K=A,W=T.ignoreIllegals,ce=T.language):(qe("10.7.0","highlight(lang, code, ...args) has been deprecated."),qe("10.7.0",`Please use highlight(code, options) instead.
|
|
1567
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),ce=A,K=T),W===void 0&&(W=!0);const Pe={code:K,language:ce};si("before:highlight",Pe);const Xe=Pe.result?Pe.result:Ot(Pe.language,Pe.code,W);return Xe.code=Pe.code,si("after:highlight",Xe),Xe}function Ot(A,T,W,K){const ce=Object.create(null);function Pe(k,P){return k.keywords[P]}function Xe(){if(!j.keywords){de.addText(J);return}let k=0;j.keywordPatternRe.lastIndex=0;let P=j.keywordPatternRe.exec(J),U="";for(;P;){U+=J.substring(k,P.index);const G=Te.case_insensitive?P[0].toLowerCase():P[0],ue=Pe(j,G);if(ue){const[Ue,sn]=ue;if(de.addText(U),U="",ce[G]=(ce[G]||0)+1,ce[G]<=zr&&(ni+=sn),Ue.startsWith("_"))U+=P[0];else{const an=Te.classNameAliases[Ue]||Ue;Be(P[0],an)}}else U+=P[0];k=j.keywordPatternRe.lastIndex,P=j.keywordPatternRe.exec(J)}U+=J.substring(k),de.addText(U)}function ai(){if(J==="")return;let k=null;if(typeof j.subLanguage=="string"){if(!S[j.subLanguage]){de.addText(J);return}k=Ot(j.subLanguage,J,!0,Qs[j.subLanguage]),Qs[j.subLanguage]=k._top}else k=Li(J,j.subLanguage.length?j.subLanguage:null);j.relevance>0&&(ni+=k.relevance),de.__addSublanguage(k._emitter,k.language)}function we(){j.subLanguage!=null?ai():Xe(),J=""}function Be(k,P){k!==""&&(de.startScope(P),de.addText(k),de.endScope())}function Js(k,P){let U=1;const G=P.length-1;for(;U<=G;){if(!k._emit[U]){U++;continue}const ue=Te.classNameAliases[k[U]]||k[U],Ue=P[U];ue?Be(Ue,ue):(J=Ue,Xe(),J=""),U++}}function Zs(k,P){return k.scope&&typeof k.scope=="string"&&de.openNode(Te.classNameAliases[k.scope]||k.scope),k.beginScope&&(k.beginScope._wrap?(Be(J,Te.classNameAliases[k.beginScope._wrap]||k.beginScope._wrap),J=""):k.beginScope._multi&&(Js(k.beginScope,P),J="")),j=Object.create(k,{parent:{value:j}}),j}function Xs(k,P,U){let G=v(k.endRe,U);if(G){if(k["on:end"]){const ue=new e(k);k["on:end"](P,ue),ue.isMatchIgnored&&(G=!1)}if(G){for(;k.endsParent&&k.parent;)k=k.parent;return k}}if(k.endsWithParent)return Xs(k.parent,P,U)}function Xr(k){return j.matcher.regexIndex===0?(J+=k[0],1):(Di=!0,0)}function Yr(k){const P=k[0],U=k.rule,G=new e(U),ue=[U.__beforeBegin,U["on:begin"]];for(const Ue of ue)if(Ue&&(Ue(k,G),G.isMatchIgnored))return Xr(P);return U.skip?J+=P:(U.excludeBegin&&(J+=P),we(),!U.returnBegin&&!U.excludeBegin&&(J=P)),Zs(U,k),U.returnBegin?0:P.length}function Qr(k){const P=k[0],U=T.substring(k.index),G=Xs(j,k,U);if(!G)return qs;const ue=j;j.endScope&&j.endScope._wrap?(we(),Be(P,j.endScope._wrap)):j.endScope&&j.endScope._multi?(we(),Js(j.endScope,k)):ue.skip?J+=P:(ue.returnEnd||ue.excludeEnd||(J+=P),we(),ue.excludeEnd&&(J=P));do j.scope&&de.closeNode(),!j.skip&&!j.subLanguage&&(ni+=j.relevance),j=j.parent;while(j!==G.parent);return G.starts&&Zs(G.starts,k),ue.returnEnd?0:P.length}function en(){const k=[];for(let P=j;P!==Te;P=P.parent)P.scope&&k.unshift(P.scope);k.forEach(P=>de.openNode(P))}let ri={};function Ys(k,P){const U=P&&P[0];if(J+=k,U==null)return we(),0;if(ri.type==="begin"&&P.type==="end"&&ri.index===P.index&&U===""){if(J+=T.slice(P.index,P.index+1),!se){const G=new Error(`0 width match regex (${A})`);throw G.languageName=A,G.badRule=ri.rule,G}return 1}if(ri=P,P.type==="begin")return Yr(P);if(P.type==="illegal"&&!W){const G=new Error('Illegal lexeme "'+U+'" for mode "'+(j.scope||"<unnamed>")+'"');throw G.mode=j,G}else if(P.type==="end"){const G=Qr(P);if(G!==qs)return G}if(P.type==="illegal"&&U==="")return J+=`
|
|
1568
|
+
`,1;if(Ti>1e5&&Ti>P.index*3)throw new Error("potential infinite loop, way more iterations than matches");return J+=U,U.length}const Te=Ze(A);if(!Te)throw Le(ae.replace("{}",A)),new Error('Unknown language: "'+A+'"');const tn=Pr(Te);let Bi="",j=K||tn;const Qs={},de=new R.__emitter(R);en();let J="",ni=0,rt=0,Ti=0,Di=!1;try{if(Te.__emitTokens)Te.__emitTokens(T,de);else{for(j.matcher.considerAll();;){Ti++,Di?Di=!1:j.matcher.considerAll(),j.matcher.lastIndex=rt;const k=j.matcher.exec(T);if(!k)break;const P=T.substring(rt,k.index),U=Ys(P,k);rt=k.index+U}Ys(T.substring(rt))}return de.finalize(),Bi=de.toHTML(),{language:A,value:Bi,relevance:ni,illegal:!1,_emitter:de,_top:j}}catch(k){if(k.message&&k.message.includes("Illegal"))return{language:A,value:Ri(T),illegal:!0,relevance:0,_illegalBy:{message:k.message,index:rt,context:T.slice(rt-100,rt+100),mode:k.mode,resultSoFar:Bi},_emitter:de};if(se)return{language:A,value:Ri(T),illegal:!1,relevance:0,errorRaised:k,_emitter:de,_top:j};throw k}}function $i(A){const T={value:Ri(A),illegal:!1,relevance:0,_top:$,_emitter:new R.__emitter(R)};return T._emitter.addText(A),T}function Li(A,T){T=T||R.languages||Object.keys(S);const W=$i(A),K=T.filter(Ze).filter(Ks).map(we=>Ot(we,A,!1));K.unshift(W);const ce=K.sort((we,Be)=>{if(we.relevance!==Be.relevance)return Be.relevance-we.relevance;if(we.language&&Be.language){if(Ze(we.language).supersetOf===Be.language)return 1;if(Ze(Be.language).supersetOf===we.language)return-1}return 0}),[Pe,Xe]=ce,ai=Pe;return ai.secondBest=Xe,ai}function jr(A,T,W){const K=T&&M[T]||W;A.classList.add("hljs"),A.classList.add(`language-${K}`)}function Pi(A){let T=null;const W=me(A);if(z(W))return;if(si("before:highlightElement",{el:A,language:W}),A.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",A);return}if(A.children.length>0&&(R.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(A)),R.throwUnescapedHTML))throw new Dr("One of your code blocks includes unescaped HTML.",A.innerHTML);T=A;const K=T.textContent,ce=W?oe(K,{language:W,ignoreIllegals:!0}):Li(K);A.innerHTML=ce.value,A.dataset.highlighted="yes",jr(A,W,ce.language),A.result={language:ce.language,re:ce.relevance,relevance:ce.relevance},ce.secondBest&&(A.secondBest={language:ce.secondBest.language,relevance:ce.secondBest.relevance}),si("after:highlightElement",{el:A,result:ce,text:K})}function Vr(A){R=Hs(R,A)}const Fr=()=>{ii(),qe("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Hr(){ii(),qe("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Ws=!1;function ii(){function A(){ii()}if(document.readyState==="loading"){Ws||window.addEventListener("DOMContentLoaded",A,!1),Ws=!0;return}document.querySelectorAll(R.cssSelector).forEach(Pi)}function qr(A,T){let W=null;try{W=T(g)}catch(K){if(Le("Language definition for '{}' could not be registered.".replace("{}",A)),se)Le(K);else throw K;W=$}W.name||(W.name=A),S[A]=W,W.rawDefinition=T.bind(null,g),W.aliases&&Gs(W.aliases,{languageName:A})}function Ur(A){delete S[A];for(const T of Object.keys(M))M[T]===A&&delete M[T]}function Wr(){return Object.keys(S)}function Ze(A){return A=(A||"").toLowerCase(),S[A]||S[M[A]]}function Gs(A,{languageName:T}){typeof A=="string"&&(A=[A]),A.forEach(W=>{M[W.toLowerCase()]=T})}function Ks(A){const T=Ze(A);return T&&!T.disableAutodetect}function Gr(A){A["before:highlightBlock"]&&!A["before:highlightElement"]&&(A["before:highlightElement"]=T=>{A["before:highlightBlock"](Object.assign({block:T.el},T))}),A["after:highlightBlock"]&&!A["after:highlightElement"]&&(A["after:highlightElement"]=T=>{A["after:highlightBlock"](Object.assign({block:T.el},T))})}function Kr(A){Gr(A),F.push(A)}function Jr(A){const T=F.indexOf(A);T!==-1&&F.splice(T,1)}function si(A,T){const W=A;F.forEach(function(K){K[W]&&K[W](T)})}function Zr(A){return qe("10.7.0","highlightBlock will be removed entirely in v12.0"),qe("10.7.0","Please use highlightElement now."),Pi(A)}Object.assign(g,{highlight:oe,highlightAuto:Li,highlightAll:ii,highlightElement:Pi,highlightBlock:Zr,configure:Vr,initHighlighting:Fr,initHighlightingOnLoad:Hr,registerLanguage:qr,unregisterLanguage:Ur,listLanguages:Wr,getLanguage:Ze,registerAliases:Gs,autoDetection:Ks,inherit:Hs,addPlugin:Kr,removePlugin:Jr}),g.debugMode=function(){se=!1},g.safeMode=function(){se=!0},g.versionString=Tr,g.regex={concat:p,lookahead:c,either:x,optional:f,anyNumberOfTimes:l};for(const A in $e)typeof $e[A]=="object"&&t($e[A]);return Object.assign(g,$e),g},gt=Us({});return gt.newInstance=()=>Us({}),fs=gt,gt.HighlightJS=gt,gt.default=gt,fs}var fc=hc();const ki=uc(fc),yi="[A-Za-z$_][0-9A-Za-z$_]*",Sr=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Cr=["true","false","null","undefined","NaN","Infinity"],Ar=["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"],Er=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],kr=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Mr=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Or=[].concat(kr,Ar,Er);function pc(t){const e=t.regex,i=(q,{after:Z})=>{const te="</"+q[0].slice(1);return q.input.indexOf(te,Z)!==-1},a=yi,s={begin:"<>",end:"</>"},r=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(q,Z)=>{const te=q[0].length+q.index,le=q.input[te];if(le==="<"||le===","){Z.ignoreMatch();return}le===">"&&(i(q,{after:te})||Z.ignoreMatch());let Se;const xe=q.input.substring(te);if(Se=xe.match(/^\s*=/)){Z.ignoreMatch();return}if((Se=xe.match(/^\s+extends\s+/))&&Se.index===0){Z.ignoreMatch();return}}},d={$pattern:yi,keyword:Sr,literal:Cr,built_in:Or,"variable.language":Mr},h="[0-9](_?[0-9])*",u=`\\.(${h})`,n="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",m={className:"number",variants:[{begin:`(\\b(${n})((${u})|\\.)?|(${u}))[eE][+-]?(${h})\\b`},{begin:`\\b(${n})\\b((${u})\\b|\\.)?|(${u})\\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},c={className:"subst",begin:"\\$\\{",end:"\\}",keywords:d,contains:[]},l={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,c],subLanguage:"xml"}},f={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,c],subLanguage:"css"}},p={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,c],subLanguage:"graphql"}},N={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,c]},x={className:"comment",variants:[t.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:a+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},w=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,l,f,p,N,{match:/\$\d+/},m];c.contains=w.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(w)});const v=[].concat(x,c.contains),y=v.concat([{begin:/(\s*)\(/,end:/\)/,keywords:d,contains:["self"].concat(v)}]),b={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:y},_={variants:[{match:[/class/,/\s+/,a,/\s+/,/extends/,/\s+/,e.concat(a,"(",e.concat(/\./,a),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,a],scope:{1:"keyword",3:"title.class"}}]},C={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Ar,...Er]}},I={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},L={variants:[{match:[/function/,/\s+/,a,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[b],illegal:/%/},E={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function H(q){return e.concat("(?!",q.join("|"),")")}const V={match:e.concat(/\b/,H([...kr,"super","import"].map(q=>`${q}\\s*\\(`)),a,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},Q={begin:e.concat(/\./,e.lookahead(e.concat(a,/(?![0-9A-Za-z$_(])/))),end:a,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},re={match:[/get|set/,/\s+/,a,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},b]},O="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",ne={match:[/const|var|let/,/\s+/,a,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(O)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[b]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:y,CLASS_REFERENCE:C},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),I,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,l,f,p,N,x,{match:/\$\d+/},m,C,{scope:"attr",match:a+e.lookahead(":"),relevance:0},ne,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[x,t.REGEXP_MODE,{className:"function",begin:O,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:r},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},L,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[b,t.inherit(t.TITLE_MODE,{begin:a,className:"title.function"})]},{match:/\.\.\./,relevance:0},Q,{match:"\\$"+a,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[b]},V,E,_,re,{match:/\$[(.]/}]}}function gc(t){const e=t.regex,i=pc(t),a=yi,s=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],r={begin:[/namespace/,/\s+/,t.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:s},contains:[i.exports.CLASS_REFERENCE]},d={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},h=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],u={$pattern:yi,keyword:Sr.concat(h),literal:Cr,built_in:Or.concat(s),"variable.language":Mr},n={className:"meta",begin:"@"+a},m=(p,N,x)=>{const w=p.contains.findIndex(v=>v.label===N);if(w===-1)throw new Error("can not find mode to replace");p.contains.splice(w,1,x)};Object.assign(i.keywords,u),i.exports.PARAMS_CONTAINS.push(n);const c=i.contains.find(p=>p.scope==="attr"),l=Object.assign({},c,{match:e.concat(a,e.lookahead(/\s*\?:/))});i.exports.PARAMS_CONTAINS.push([i.exports.CLASS_REFERENCE,c,l]),i.contains=i.contains.concat([n,r,o,l]),m(i,"shebang",t.SHEBANG()),m(i,"use_strict",d);const f=i.contains.find(p=>p.label==="func.def");return f.relevance=0,Object.assign(i,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),i}function Nc(t){const e=t.regex,i=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),a=/[\p{L}0-9._:-]+/u,s={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/}]},o=t.inherit(r,{begin:/\(/,end:/\)/}),d=t.inherit(t.APOS_STRING_MODE,{className:"string"}),h=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),u={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:a,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[s]},{begin:/'/,end:/'/,contains:[s]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[r,h,d,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[r,o,h,d]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[h]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(i,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:i,relevance:0,starts:u}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(i,/>/))),contains:[{className:"name",begin:i,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const bc=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.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:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.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_-]*/}}),yc=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],vc=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],xc=[...yc,...vc],wc=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),_c=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Sc=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Cc=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function Ac(t){const e=t.regex,i=bc(t),a={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},s="and or not only",r=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",d=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[i.BLOCK_COMMENT,a,i.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},i.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+_c.join("|")+")"},{begin:":(:)?("+Sc.join("|")+")"}]},i.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Cc.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[i.BLOCK_COMMENT,i.HEXCOLOR,i.IMPORTANT,i.CSS_NUMBER_MODE,...d,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...d,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},i.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:s,attribute:wc.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...d,i.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+xc.join("|")+")\\b"}]}}const Ir=document.createElement("style");Ir.innerText=[mc,dc].join(`
|
|
1569
|
+
`);document.head.appendChild(Ir);ki.registerLanguage("typescript",gc);ki.registerLanguage("html",Nc);ki.registerLanguage("css",Ac);function Ec(...t){const e=document.createElement("div"),i=document.createElement("div");i.classList.add("tab-control");const a=document.createElement("div");return t.forEach(s=>{e.appendChild(s),s.addEventListener("click",()=>{t.forEach(r=>r.removeAttribute("selected")),s.setAttribute("selected",""),a.innerHTML="",a.appendChild(s.content),a.className=s.className,a.classList.add("tab-content")})}),i.appendChild(e),i.appendChild(a),a.classList.add("tab-content"),t[0].setAttribute("selected",""),a.appendChild(t[0].content),i}function $t(t,e){const i=document.createElement("div");return i.role="tab",i.tabIndex=0,i.innerText=t,i.content=e,e.tagName=="PRE"&&i.classList.add("code"),i}function zt(t,e){const i=document.createElement(t);return typeof e=="string"?i.innerHTML=e:e.forEach(a=>{i.appendChild(a)}),i}async function kc(t,e,i){const a=e.mainContent,s=zt("div",a);s.id=`example-preview-${i}`;const r=typeof e.css=="string"?void 0:e.css?.label,o=typeof e.css=="string"?e.css:e.css?.content,d=Ec($t("Preview",s),$t("HTML",mi("html",a)),...o?[$t(r??"CSS",mi("css",o))]:[],...e.initializer&&e.initializer.content?[$t(e.initializer.label??"TS",mi("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(u=>$t(u.label,mi(u.language,u.content))));e.description&&t.appendChild(zt("div",e.description));const h=zt("div",[d]);h.classList.add("example"),t.appendChild(h),o&&Mc(`#${s.id}`,o),e.initializer?.initialize&&await e.initializer.initialize(s)}function mi(t,e){let i=e.split(/\r?\n/).map(a=>{const s=a.indexOf("///");if(s>-1){const r=a.substring(s+3).trimStart();return r?a.replace(/^(\s*)([^\s].*)$/,`$1${r}`):void 0}return a}).filter(a=>typeof a<"u").join(`
|
|
1570
|
+
`).trim();return t&&t!="raw"&&(i=ki.highlight(i,{language:t}).value),zt("pre",[zt("code",i)])}function Mc(t,e){const i=document.createElement("style");i.innerHTML=X().use(cc({prefix:t})).process(e).css,document.head.appendChild(i)}async function Oc(t,e=document.body){const i=Rc(e);let a=0;Object.keys(t).sort().forEach(async s=>{const r=document.createElement("div");r.className="example-container",i.appendChild(r);const o=t[s].default;kc(r,o,a++)})}function Ic(t){const e=document.createElement("div");e.id="examples-container";const i=t.querySelector("#examples");return i?i.after(e):t.appendChild(e),e}function Rc(t){return t.children?Ic(t):t}const $c=`<h1 id="@cas-smartdesign/combo-box">@cas-smartdesign/combo-box</h1>
|
|
1570
1571
|
<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>
|
|
1571
1572
|
<h2 id="attributes">Attributes</h2>
|
|
1572
1573
|
<p><em>(in addition to lit-input)</em></p>
|
|
@@ -1661,10 +1662,4 @@ https://github.com/highlightjs/highlight.js/issues/2277`),z=d,k=N),w===void 0&&(
|
|
|
1661
1662
|
</ul>
|
|
1662
1663
|
<h2 id="lazy-loading">Lazy loading</h2>
|
|
1663
1664
|
<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>
|
|
1664
|
-
`,
|
|
1665
|
-
function __vite__mapDeps(indexes) {
|
|
1666
|
-
if (!__vite__mapDeps.viteFileDeps) {
|
|
1667
|
-
__vite__mapDeps.viteFileDeps = []
|
|
1668
|
-
}
|
|
1669
|
-
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
|
1670
|
-
}
|
|
1665
|
+
`,Lc=document.querySelector("#markdown-container");Lc.innerHTML=$c;Oc(Object.assign({"./examples/1_declarative/index.ts":ln,"./examples/2_basic-examples/index.ts":pn,"./examples/3_filtering/index.ts":vn,"./examples/4_lazy_loading/index.ts":kn,"./examples/5_unusual_data/index.ts":$n,"./examples/6_validation_example/index.ts":Dn}),document.querySelector(".markdown-body"));export{Ni as a};
|