@cas-smartdesign/list-item 7.2.3 → 7.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/docs/doc.css +1 -1
- package/dist/docs/doc.mjs +53 -56
- package/dist/list-item-with-externals.js +17 -47
- package/dist/list-item-with-externals.js.map +4 -4
- package/dist/list-item.mjs +85 -78
- package/dist/list-item.mjs.map +1 -1
- package/npm-third-party-licenses.json +52 -47
- package/package.json +5 -5
package/dist/docs/doc.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const
|
|
1
|
+
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const t of document.querySelectorAll('link[rel="modulepreload"]'))r(t);new MutationObserver(t=>{for(const u of t)if(u.type==="childList")for(const l of u.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function i(t){const u={};return t.integrity&&(u.integrity=t.integrity),t.referrerPolicy&&(u.referrerPolicy=t.referrerPolicy),t.crossOrigin==="use-credentials"?u.credentials="include":t.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function r(t){if(t.ep)return;t.ep=!0;const u=i(t);fetch(t.href,u)}})();const $r=`<!-- Load element with all dependencies directly -->
|
|
2
2
|
<script src="./list-item-with-externals.js"><\/script>
|
|
3
3
|
|
|
4
4
|
<div class="list">
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
icon="fail-to-load.svg"
|
|
26
26
|
role="custom item role"></sd-list-item>
|
|
27
27
|
</div>
|
|
28
|
-
`,
|
|
29
|
-
`,
|
|
28
|
+
`,Rr=`<h3 id="simple-item-examples">Simple item examples</h3>
|
|
29
|
+
`,Mr=`.list {
|
|
30
30
|
border: 1px solid gray;
|
|
31
31
|
max-width: 400px;
|
|
32
32
|
}
|
|
@@ -38,7 +38,7 @@ sd-list-item {
|
|
|
38
38
|
sd-list-item:not(:last-of-type) {
|
|
39
39
|
border-bottom: 1px solid gray;
|
|
40
40
|
}
|
|
41
|
-
`,
|
|
41
|
+
`,Nr={mainContent:$r,description:Rr,css:Mr},Pr=Object.freeze(Object.defineProperty({__proto__:null,default:Nr},Symbol.toStringTag,{value:"Module"})),Tr="modulepreload",Lr=function(n,e){return new URL(n,e).href},zi={},ci=function(e,i,r){let t=Promise.resolve();if(i&&i.length>0){let h=function(s){return Promise.all(s.map(c=>Promise.resolve(c).then(o=>({status:"fulfilled",value:o}),o=>({status:"rejected",reason:o}))))};const l=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),b=p?.nonce||p?.getAttribute("nonce");t=h(i.map(s=>{if(s=Lr(s,r),s in zi)return;zi[s]=!0;const c=s.endsWith(".css"),o=c?'[rel="stylesheet"]':"";if(!!r)for(let m=l.length-1;m>=0;m--){const g=l[m];if(g.href===s&&(!c||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${o}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":Tr,c||(f.as="script"),f.crossOrigin="",f.href=s,b&&f.setAttribute("nonce",b),document.head.appendChild(f),c)return new Promise((m,g)=>{f.addEventListener("load",m),f.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${s}`)))})}))}function u(l){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=l,window.dispatchEvent(p),!p.defaultPrevented)throw l}return t.then(l=>{for(const p of l||[])p.status==="rejected"&&u(p.reason);return e().catch(u)})},Ir=`<div id="long-content-examples">
|
|
42
42
|
<div>
|
|
43
43
|
<h4>Without line clamp:</h4>
|
|
44
44
|
<sd-list-item caption="long caption, have to contain every detail, but there is no description"></sd-list-item>
|
|
@@ -109,7 +109,7 @@ sd-list-item:not(:last-of-type) {
|
|
|
109
109
|
enable-line-clamp></sd-list-item>
|
|
110
110
|
</div>
|
|
111
111
|
</div>
|
|
112
|
-
`,
|
|
112
|
+
`,jr=`<h3 id="examples-showing-long-item-content">Examples showing long item content</h3>
|
|
113
113
|
`,Dr=`#long-content-examples {
|
|
114
114
|
display: grid;
|
|
115
115
|
grid-template-columns: minmax(40%, 400px) minmax(40%, 400px);
|
|
@@ -124,7 +124,7 @@ sd-list-item {
|
|
|
124
124
|
sd-list-item:not(:last-of-type) {
|
|
125
125
|
border-bottom: 1px solid gray;
|
|
126
126
|
}
|
|
127
|
-
`,
|
|
127
|
+
`,zr=`import "@cas-smartdesign/list-item";
|
|
128
128
|
import ListItem from "@cas-smartdesign/list-item";
|
|
129
129
|
|
|
130
130
|
document
|
|
@@ -141,9 +141,9 @@ document
|
|
|
141
141
|
});
|
|
142
142
|
resizeObserver.observe(parentListItem);
|
|
143
143
|
});
|
|
144
|
-
`,Br={mainContent:
|
|
145
|
-
`,
|
|
146
|
-
`,
|
|
144
|
+
`,Br={mainContent:Ir,description:jr,css:Dr,initializer:{content:zr,type:"typescript",initialize:()=>ci(()=>import("./long-content.js"),[],import.meta.url)}},Ur=Object.freeze(Object.defineProperty({__proto__:null,default:Br},Symbol.toStringTag,{value:"Module"})),qr=`<div id="dynamically-created-examples" class="list"></div>
|
|
145
|
+
`,Hr=`<h3 id="dynamically-created-items">Dynamically created items</h3>
|
|
146
|
+
`,Fr=`.list {
|
|
147
147
|
border: 1px solid gray;
|
|
148
148
|
max-width: 400px;
|
|
149
149
|
}
|
|
@@ -155,7 +155,7 @@ sd-list-item {
|
|
|
155
155
|
sd-list-item:not(:last-of-type) {
|
|
156
156
|
border-bottom: 1px solid gray;
|
|
157
157
|
}
|
|
158
|
-
`,
|
|
158
|
+
`,Wr=`import "@cas-smartdesign/list-item";
|
|
159
159
|
import { generator, ContentMode } from "@cas-smartdesign/list-item";
|
|
160
160
|
|
|
161
161
|
const icon = "./icon.svg";
|
|
@@ -174,13 +174,13 @@ createExample("text");
|
|
|
174
174
|
createExample("html");
|
|
175
175
|
createExample("text", "#BADA55");
|
|
176
176
|
createExample("html", "#808080");
|
|
177
|
-
`,
|
|
177
|
+
`,Gr={mainContent:qr,description:Hr,css:Fr,initializer:{content:Wr,type:"typescript",initialize:()=>ci(()=>import("./script-created.js"),[],import.meta.url)}},Zr=Object.freeze(Object.defineProperty({__proto__:null,default:Gr},Symbol.toStringTag,{value:"Module"})),Vr=`<div id="drag-and-drop-example-container">
|
|
178
178
|
<div class="list"></div>
|
|
179
179
|
<div class="list"></div>
|
|
180
180
|
</div>
|
|
181
181
|
`,Jr=`<h3 id="drag-and-drop-example">Drag and drop example</h3>
|
|
182
182
|
<p>This example shows how pointer events are handled on the icons and on the items themselves.</p>
|
|
183
|
-
`,
|
|
183
|
+
`,Kr=`#drag-and-drop-example-container {
|
|
184
184
|
display: flex;
|
|
185
185
|
flex-direction: row;
|
|
186
186
|
gap: 16px;
|
|
@@ -210,7 +210,7 @@ sd-list-item {
|
|
|
210
210
|
height: 50px;
|
|
211
211
|
border-bottom: 1px solid gray;
|
|
212
212
|
}
|
|
213
|
-
`,
|
|
213
|
+
`,Xr=`import "@cas-smartdesign/list-item";
|
|
214
214
|
import ListItem, { generator, ContentMode } from "@cas-smartdesign/list-item";
|
|
215
215
|
|
|
216
216
|
const icon = "./icon.svg";
|
|
@@ -269,13 +269,13 @@ lists.forEach((list: HTMLDivElement) => {
|
|
|
269
269
|
list.appendChild(draggedItem);
|
|
270
270
|
});
|
|
271
271
|
});
|
|
272
|
-
`,
|
|
273
|
-
\f\r]`,
|
|
274
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Li=/'/g,Ii=/"/g,bn=/^(?:script|style|textarea|title)$/i,os=n=>(e,...t)=>({_$litType$:n,strings:e,values:t}),We=os(1),ce=Symbol.for("lit-noChange"),R=Symbol.for("lit-nothing"),ji=new WeakMap,oe=ae.createTreeWalker(ae,129,null,!1);function yn(n,e){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ni!==void 0?Ni.createHTML(e):e}const ls=(n,e)=>{const t=n.length-1,i=[];let r,o=e===2?"<svg>":"",s=Ee;for(let l=0;l<t;l++){const a=n[l];let c,d,p=-1,f=0;for(;f<a.length&&(s.lastIndex=f,d=s.exec(a),d!==null);)f=s.lastIndex,s===Ee?d[1]==="!--"?s=Pi:d[1]!==void 0?s=Ti:d[2]!==void 0?(bn.test(d[2])&&(r=RegExp("</"+d[2],"g")),s=se):d[3]!==void 0&&(s=se):s===se?d[0]===">"?(s=r??Ee,p=-1):d[1]===void 0?p=-2:(p=s.lastIndex-d[2].length,c=d[1],s=d[3]===void 0?se:d[3]==='"'?Ii:Li):s===Ii||s===Li?s=se:s===Pi||s===Ti?s=Ee:(s=se,r=void 0);const x=s===se&&n[l+1].startsWith("/>")?" ":"";o+=s===Ee?a+rs:p>=0?(i.push(c),a.slice(0,p)+Ht+a.slice(p)+Y+x):a+Y+(p===-2?(i.push(void 0),l):x)}return[yn(n,o+(n[t]||"<?>")+(e===2?"</svg>":"")),i]};class Re{constructor({strings:e,_$litType$:t},i){let r;this.parts=[];let o=0,s=0;const l=e.length-1,a=this.parts,[c,d]=ls(e,t);if(this.el=Re.createElement(c,i),oe.currentNode=this.el.content,t===2){const p=this.el.content,f=p.firstChild;f.remove(),p.append(...f.childNodes)}for(;(r=oe.nextNode())!==null&&a.length<l;){if(r.nodeType===1){if(r.hasAttributes()){const p=[];for(const f of r.getAttributeNames())if(f.endsWith(Ht)||f.startsWith(Y)){const x=d[s++];if(p.push(f),x!==void 0){const k=r.getAttribute(x.toLowerCase()+Ht).split(Y),M=/([.?@])?(.*)/.exec(x);a.push({type:1,index:o,name:M[2],strings:k,ctor:M[1]==="."?cs:M[1]==="?"?us:M[1]==="@"?hs:ft})}else a.push({type:6,index:o})}for(const f of p)r.removeAttribute(f)}if(bn.test(r.tagName)){const p=r.textContent.split(Y),f=p.length-1;if(f>0){r.textContent=me?me.emptyScript:"";for(let x=0;x<f;x++)r.append(p[x],ke()),oe.nextNode(),a.push({type:2,index:++o});r.append(p[f],ke())}}}else if(r.nodeType===8)if(r.data===mn)a.push({type:2,index:o});else{let p=-1;for(;(p=r.data.indexOf(Y,p+1))!==-1;)a.push({type:7,index:o}),p+=Y.length-1}o++}}static createElement(e,t){const i=ae.createElement("template");return i.innerHTML=e,i}}function ge(n,e,t=n,i){var r,o,s,l;if(e===ce)return e;let a=i!==void 0?(r=t._$Co)===null||r===void 0?void 0:r[i]:t._$Cl;const c=Oe(e)?void 0:e._$litDirective$;return(a==null?void 0:a.constructor)!==c&&((o=a==null?void 0:a._$AO)===null||o===void 0||o.call(a,!1),c===void 0?a=void 0:(a=new c(n),a._$AT(n,t,i)),i!==void 0?((s=(l=t)._$Co)!==null&&s!==void 0?s:l._$Co=[])[i]=a:t._$Cl=a),a!==void 0&&(e=ge(n,a._$AS(n,e.values),a,i)),e}class as{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:r}=this._$AD,o=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:ae).importNode(i,!0);oe.currentNode=o;let s=oe.nextNode(),l=0,a=0,c=r[0];for(;c!==void 0;){if(l===c.index){let d;c.type===2?d=new je(s,s.nextSibling,this,e):c.type===1?d=new c.ctor(s,c.name,c.strings,this,e):c.type===6&&(d=new ps(s,this,e)),this._$AV.push(d),c=r[++a]}l!==(c==null?void 0:c.index)&&(s=oe.nextNode(),l++)}return oe.currentNode=ae,o}v(e){let t=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class je{constructor(e,t,i,r){var o;this.type=2,this._$AH=R,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=r,this._$Cp=(o=r==null?void 0:r.isConnected)===null||o===void 0||o}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ge(this,e,t),Oe(e)?e===R||e==null||e===""?(this._$AH!==R&&this._$AR(),this._$AH=R):e!==this._$AH&&e!==ce&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):ss(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==R&&Oe(this._$AH)?this._$AA.nextSibling.data=e:this.$(ae.createTextNode(e)),this._$AH=e}g(e){var t;const{values:i,_$litType$:r}=e,o=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=Re.createElement(yn(r.h,r.h[0]),this.options)),r);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===o)this._$AH.v(i);else{const s=new as(o,this),l=s.u(this.options);s.v(i),this.$(l),this._$AH=s}}_$AC(e){let t=ji.get(e.strings);return t===void 0&&ji.set(e.strings,t=new Re(e)),t}T(e){gn(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,r=0;for(const o of e)r===t.length?t.push(i=new je(this.k(ke()),this.k(ke()),this,this.options)):i=t[r],i._$AI(o),r++;r<t.length&&(this._$AR(i&&i._$AB.nextSibling,r),t.length=r)}_$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 r=e.nextSibling;e.remove(),e=r}}setConnected(e){var t;this._$AM===void 0&&(this._$Cp=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}class ft{constructor(e,t,i,r,o){this.type=1,this._$AH=R,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=R}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,r){const o=this.strings;let s=!1;if(o===void 0)e=ge(this,e,t,0),s=!Oe(e)||e!==this._$AH&&e!==ce,s&&(this._$AH=e);else{const l=e;let a,c;for(e=o[0],a=0;a<o.length-1;a++)c=ge(this,l[i+a],t,a),c===ce&&(c=this._$AH[a]),s||(s=!Oe(c)||c!==this._$AH[a]),c===R?e=R:e!==R&&(e+=(c??"")+o[a+1]),this._$AH[a]=c}s&&!r&&this.j(e)}j(e){e===R?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class cs extends ft{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===R?void 0:e}}const ds=me?me.emptyScript:"";class us extends ft{constructor(){super(...arguments),this.type=4}j(e){e&&e!==R?this.element.setAttribute(this.name,ds):this.element.removeAttribute(this.name)}}let hs=class extends ft{constructor(e,t,i,r,o){super(e,t,i,r,o),this.type=5}_$AI(e,t=this){var i;if((e=(i=ge(this,e,t,0))!==null&&i!==void 0?i:R)===ce)return;const r=this._$AH,o=e===R&&r!==R||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,s=e!==R&&(r===R||o);o&&this.element.removeEventListener(this.name,this,r),s&&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 ps{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){ge(this,e)}}const zi=lt.litHtmlPolyfillSupport;zi==null||zi(Re,je),((Mt=lt.litHtmlVersions)!==null&&Mt!==void 0?Mt:lt.litHtmlVersions=[]).push("2.8.0");const fs=(n,e,t)=>{var i,r;const o=(i=t==null?void 0:t.renderBefore)!==null&&i!==void 0?i:e;let s=o._$litPart$;if(s===void 0){const l=(r=t==null?void 0:t.renderBefore)!==null&&r!==void 0?r:null;o._$litPart$=s=new je(e.insertBefore(ke(),l),l,void 0,t??{})}return s._$AI(n),s};var Pt,Tt;class $e extends fe{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=fs(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 ce}}$e.finalized=!0,$e._$litElement$=!0,(Pt=globalThis.litElementHydrateSupport)===null||Pt===void 0||Pt.call(globalThis,{LitElement:$e});const Di=globalThis.litElementPolyfillSupport;Di==null||Di({LitElement:$e});((Tt=globalThis.litElementVersions)!==null&&Tt!==void 0?Tt:globalThis.litElementVersions=[]).push("3.3.3");const ms=(n,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,n)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,n)}},gs=(n,e,t)=>{e.constructor.createProperty(t,n)};function L(n){return(e,t)=>t!==void 0?gs(n,e,t):ms(n,e)}const bs={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ys=n=>(...e)=>({_$litDirective$:n,values:e});class ws{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class Ft extends ws{constructor(e){if(super(e),this.et=R,e.type!==bs.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===R||e==null)return this.ft=void 0,this.et=e;if(e===ce)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;const t=[e];return t.raw=t,this.ft={_$litType$:this.constructor.resultType,strings:t,values:[]}}}Ft.directiveName="unsafeHTML",Ft.resultType=1;const vs=ys(Ft);const Ge=n=>n??R;class xs{static showImage(e,t,i,r){let o;if(r||!(e instanceof HTMLImageElement)?o=s=>e.style.backgroundImage=this.prepareSrc(s):o=s=>e.src=s,o(i),t){const s=()=>{o(t)},l=new Image;l.addEventListener("load",s),l.src=t,l.complete&&(l.removeEventListener("load",s),s())}}static prepareSrc(e){return e?e.startsWith("url")?e:`url("${e}")`:null}}const Es=':host{display:block;contain:strict;height:50px}:host([selected]){background-color:#d3e6fa}:host(:not([selected]):hover),:host(:not([selected])[focused]){background-color:#e7f1fa}@media (forced-colors: active){:host([selected]){outline:4px solid}:host(:not([selected]):hover){outline:4px dotted}:host(:not([selected])[focused]){outline:4px dashed}}:host([enable-line-clamp]) .labels>:only-child{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;word-wrap:break-word}.container{display:flex;height:100%;box-sizing:border-box}.container .level-indicator{width:7px;height:100%}.container .level-indicator.level-0{background-color:#a0c3ef}.container .level-indicator.level-1{background-color:#e7c374}.container .level-indicator.level-2{background-color:#bfd596}.container .level-indicator.level-3{background-color:#fd998d}.container .level-indicator.level-4{background-color:#c6e8f5}.container .level-indicator.level-5{background-color:#fde3a4}.container .level-indicator.level-6{background-color:#dcbfe0}.side-content{display:flex;align-items:center;flex-grow:0}.labels{display:flex;flex-direction:column;justify-content:center;flex:1 1 0px;height:100%;line-height:normal;overflow:hidden;padding:var(--sd-list-item-label-content-padding, 0 8px)}.caption,.description{width:100%;font-family:var(--sd-list-item-font-family, "Segoe UI", "Lucida Sans", Arial, sans-serif);font-style:normal;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;-webkit-user-select:none;user-select:none;text-decoration:var(--sd-list-item-text-decoration, inherit)}.caption em,.description em{font-weight:bolder}.caption{font-size:var(--sd-list-item-caption-font-size, 16px);color:var(--sd-list-item-caption-text-color, #111);font-weight:var(--sd-list-item-caption-font-weight, normal)}.description{font-size:var(--sd-list-item-description-font-size, 13px);color:var(--sd-list-item-description-text-color, #767676);font-weight:var(--sd-list-item-description-font-weight, normal)}.icon-wrapper{width:var(--sd-list-item-icon-wrapper-width, 45px);height:100%;display:flex;align-items:center;justify-content:center}.icon-wrapper .icon{min-height:var(--sd-list-item-icon-size, 24px);min-width:var(--sd-list-item-icon-size, 24px);background-repeat:no-repeat;background-position:center;background-size:cover}';var _s=Object.defineProperty,As=Object.getOwnPropertyDescriptor,I=(n,e,t,i)=>{for(var r=i>1?void 0:i?As(e,t):e,o=n.length-1,s;o>=0;o--)(s=n[o])&&(r=(i?s(e,t,r):s(r))||r);return i&&r&&_s(e,t,r),r},J;const T=(J=class extends $e{constructor(){super(...arguments),this.contentMode="text",this.role="option"}static get styles(){return[ts`
|
|
275
|
-
${
|
|
276
|
-
`]}render(){return
|
|
272
|
+
`,Qr={mainContent:Vr,description:Jr,css:Kr,initializer:{content:Xr,type:"typescript",initialize:()=>ci(()=>import("./script-drag-and-drop.js"),[],import.meta.url)}},Yr=Object.freeze(Object.defineProperty({__proto__:null,default:Qr},Symbol.toStringTag,{value:"Module"}));const ht=globalThis,ui=ht.ShadowRoot&&(ht.ShadyCSS===void 0||ht.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,hi=Symbol(),Bi=new WeakMap;let Cn=class{constructor(e,i,r){if(this._$cssResult$=!0,r!==hi)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(ui&&e===void 0){const r=i!==void 0&&i.length===1;r&&(e=Bi.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Bi.set(i,e))}return e}toString(){return this.cssText}};const On=n=>new Cn(typeof n=="string"?n:n+"",void 0,hi),es=(n,...e)=>{const i=n.length===1?n[0]:e.reduce(((r,t,u)=>r+(l=>{if(l._$cssResult$===!0)return l.cssText;if(typeof l=="number")return l;throw Error("Value passed to 'css' function must be a 'css' function result: "+l+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(t)+n[u+1]),n[0]);return new Cn(i,n,hi)},ts=(n,e)=>{if(ui)n.adoptedStyleSheets=e.map((i=>i instanceof CSSStyleSheet?i:i.styleSheet));else for(const i of e){const r=document.createElement("style"),t=ht.litNonce;t!==void 0&&r.setAttribute("nonce",t),r.textContent=i.cssText,n.appendChild(r)}},Ui=ui?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let i="";for(const r of e.cssRules)i+=r.cssText;return On(i)})(n):n;const{is,defineProperty:ns,getOwnPropertyDescriptor:rs,getOwnPropertyNames:ss,getOwnPropertySymbols:os,getPrototypeOf:ls}=Object,mt=globalThis,qi=mt.trustedTypes,as=qi?qi.emptyScript:"",cs=mt.reactiveElementPolyfillSupport,We=(n,e)=>n,dt={toAttribute(n,e){switch(e){case Boolean:n=n?as:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let i=n;switch(e){case Boolean:i=n!==null;break;case Number:i=n===null?null:Number(n);break;case Object:case Array:try{i=JSON.parse(n)}catch{i=null}}return i}},di=(n,e)=>!is(n,e),Hi={attribute:!0,type:String,converter:dt,reflect:!1,useDefault:!1,hasChanged:di};Symbol.metadata??=Symbol("metadata"),mt.litPropertyMetadata??=new WeakMap;let je=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=Hi){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 r=Symbol(),t=this.getPropertyDescriptor(e,r,i);t!==void 0&&ns(this.prototype,e,t)}}static getPropertyDescriptor(e,i,r){const{get:t,set:u}=rs(this.prototype,e)??{get(){return this[i]},set(l){this[i]=l}};return{get:t,set(l){const p=t?.call(this);u?.call(this,l),this.requestUpdate(e,p,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Hi}static _$Ei(){if(this.hasOwnProperty(We("elementProperties")))return;const e=ls(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(We("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(We("properties"))){const i=this.properties,r=[...ss(i),...os(i)];for(const t of r)this.createProperty(t,i[t])}const e=this[Symbol.metadata];if(e!==null){const i=litPropertyMetadata.get(e);if(i!==void 0)for(const[r,t]of i)this.elementProperties.set(r,t)}this._$Eh=new Map;for(const[i,r]of this.elementProperties){const t=this._$Eu(i,r);t!==void 0&&this._$Eh.set(t,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const t of r)i.unshift(Ui(t))}else e!==void 0&&i.push(Ui(e));return i}static _$Eu(e,i){const r=i.attribute;return r===!1?void 0:typeof r=="string"?r: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 r of i.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ts(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,r){this._$AK(e,r)}_$ET(e,i){const r=this.constructor.elementProperties.get(e),t=this.constructor._$Eu(e,r);if(t!==void 0&&r.reflect===!0){const u=(r.converter?.toAttribute!==void 0?r.converter:dt).toAttribute(i,r.type);this._$Em=e,u==null?this.removeAttribute(t):this.setAttribute(t,u),this._$Em=null}}_$AK(e,i){const r=this.constructor,t=r._$Eh.get(e);if(t!==void 0&&this._$Em!==t){const u=r.getPropertyOptions(t),l=typeof u.converter=="function"?{fromAttribute:u.converter}:u.converter?.fromAttribute!==void 0?u.converter:dt;this._$Em=t;const p=l.fromAttribute(i,u.type);this[t]=p??this._$Ej?.get(t)??p,this._$Em=null}}requestUpdate(e,i,r){if(e!==void 0){const t=this.constructor,u=this[e];if(r??=t.getPropertyOptions(e),!((r.hasChanged??di)(u,i)||r.useDefault&&r.reflect&&u===this._$Ej?.get(e)&&!this.hasAttribute(t._$Eu(e,r))))return;this.C(e,i,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,i,{useDefault:r,reflect:t,wrapped:u},l){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,l??i??this[e]),u!==!0||l!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(i=void 0),this._$AL.set(e,i)),t===!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[t,u]of this._$Ep)this[t]=u;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[t,u]of r){const{wrapped:l}=u,p=this[t];l!==!0||this._$AL.has(t)||p===void 0||this.C(t,void 0,u,p)}}let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),this._$EO?.forEach((r=>r.hostUpdate?.())),this.update(i)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}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){}};je.elementStyles=[],je.shadowRootOptions={mode:"open"},je[We("elementProperties")]=new Map,je[We("finalized")]=new Map,cs?.({ReactiveElement:je}),(mt.reactiveElementVersions??=[]).push("2.1.1");const fi=globalThis,ft=fi.trustedTypes,Fi=ft?ft.createPolicy("lit-html",{createHTML:n=>n}):void 0,$n="$lit$",_e=`lit$${Math.random().toFixed(9).slice(2)}$`,Rn="?"+_e,us=`<${Rn}>`,$e=document,Ve=()=>$e.createComment(""),Je=n=>n===null||typeof n!="object"&&typeof n!="function",pi=Array.isArray,hs=n=>pi(n)||typeof n?.[Symbol.iterator]=="function",Pt=`[
|
|
273
|
+
\f\r]`,He=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Wi=/-->/g,Gi=/>/g,Ce=RegExp(`>|${Pt}(?:([^\\s"'>=/]+)(${Pt}*=${Pt}*(?:[^
|
|
274
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Zi=/'/g,Vi=/"/g,Mn=/^(?:script|style|textarea|title)$/i,ds=n=>(e,...i)=>({_$litType$:n,strings:e,values:i}),ot=ds(1),Re=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),Ji=new WeakMap,Oe=$e.createTreeWalker($e,129);function Nn(n,e){if(!pi(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Fi!==void 0?Fi.createHTML(e):e}const fs=(n,e)=>{const i=n.length-1,r=[];let t,u=e===2?"<svg>":e===3?"<math>":"",l=He;for(let p=0;p<i;p++){const b=n[p];let h,s,c=-1,o=0;for(;o<b.length&&(l.lastIndex=o,s=l.exec(b),s!==null);)o=l.lastIndex,l===He?s[1]==="!--"?l=Wi:s[1]!==void 0?l=Gi:s[2]!==void 0?(Mn.test(s[2])&&(t=RegExp("</"+s[2],"g")),l=Ce):s[3]!==void 0&&(l=Ce):l===Ce?s[0]===">"?(l=t??He,c=-1):s[1]===void 0?c=-2:(c=l.lastIndex-s[2].length,h=s[1],l=s[3]===void 0?Ce:s[3]==='"'?Vi:Zi):l===Vi||l===Zi?l=Ce:l===Wi||l===Gi?l=He:(l=Ce,t=void 0);const a=l===Ce&&n[p+1].startsWith("/>")?" ":"";u+=l===He?b+us:c>=0?(r.push(h),b.slice(0,c)+$n+b.slice(c)+_e+a):b+_e+(c===-2?p:a)}return[Nn(n,u+(n[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class Ke{constructor({strings:e,_$litType$:i},r){let t;this.parts=[];let u=0,l=0;const p=e.length-1,b=this.parts,[h,s]=fs(e,i);if(this.el=Ke.createElement(h,r),Oe.currentNode=this.el.content,i===2||i===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(t=Oe.nextNode())!==null&&b.length<p;){if(t.nodeType===1){if(t.hasAttributes())for(const c of t.getAttributeNames())if(c.endsWith($n)){const o=s[l++],a=t.getAttribute(c).split(_e),f=/([.?@])?(.*)/.exec(o);b.push({type:1,index:u,name:f[2],strings:a,ctor:f[1]==="."?ms:f[1]==="?"?gs:f[1]==="@"?bs:gt}),t.removeAttribute(c)}else c.startsWith(_e)&&(b.push({type:6,index:u}),t.removeAttribute(c));if(Mn.test(t.tagName)){const c=t.textContent.split(_e),o=c.length-1;if(o>0){t.textContent=ft?ft.emptyScript:"";for(let a=0;a<o;a++)t.append(c[a],Ve()),Oe.nextNode(),b.push({type:2,index:++u});t.append(c[o],Ve())}}}else if(t.nodeType===8)if(t.data===Rn)b.push({type:2,index:u});else{let c=-1;for(;(c=t.data.indexOf(_e,c+1))!==-1;)b.push({type:7,index:u}),c+=_e.length-1}u++}}static createElement(e,i){const r=$e.createElement("template");return r.innerHTML=e,r}}function De(n,e,i=n,r){if(e===Re)return e;let t=r!==void 0?i._$Co?.[r]:i._$Cl;const u=Je(e)?void 0:e._$litDirective$;return t?.constructor!==u&&(t?._$AO?.(!1),u===void 0?t=void 0:(t=new u(n),t._$AT(n,i,r)),r!==void 0?(i._$Co??=[])[r]=t:i._$Cl=t),t!==void 0&&(e=De(n,t._$AS(n,e.values),t,r)),e}class ps{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:r}=this._$AD,t=(e?.creationScope??$e).importNode(i,!0);Oe.currentNode=t;let u=Oe.nextNode(),l=0,p=0,b=r[0];for(;b!==void 0;){if(l===b.index){let h;b.type===2?h=new Xe(u,u.nextSibling,this,e):b.type===1?h=new b.ctor(u,b.name,b.strings,this,e):b.type===6&&(h=new ys(u,this,e)),this._$AV.push(h),b=r[++p]}l!==b?.index&&(u=Oe.nextNode(),l++)}return Oe.currentNode=$e,t}p(e){let i=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,i),i+=r.strings.length-2):r._$AI(e[i])),i++}}class Xe{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,r,t){this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=r,this.options=t,this._$Cv=t?.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=De(this,e,i),Je(e)?e===K||e==null||e===""?(this._$AH!==K&&this._$AR(),this._$AH=K):e!==this._$AH&&e!==Re&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):hs(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!==K&&Je(this._$AH)?this._$AA.nextSibling.data=e:this.T($e.createTextNode(e)),this._$AH=e}$(e){const{values:i,_$litType$:r}=e,t=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=Ke.createElement(Nn(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===t)this._$AH.p(i);else{const u=new ps(t,this),l=u.u(this.options);u.p(i),this.T(l),this._$AH=u}}_$AC(e){let i=Ji.get(e.strings);return i===void 0&&Ji.set(e.strings,i=new Ke(e)),i}k(e){pi(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let r,t=0;for(const u of e)t===i.length?i.push(r=new Xe(this.O(Ve()),this.O(Ve()),this,this.options)):r=i[t],r._$AI(u),t++;t<i.length&&(this._$AR(r&&r._$AB.nextSibling,t),i.length=t)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}}class gt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,r,t,u){this.type=1,this._$AH=K,this._$AN=void 0,this.element=e,this.name=i,this._$AM=t,this.options=u,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=K}_$AI(e,i=this,r,t){const u=this.strings;let l=!1;if(u===void 0)e=De(this,e,i,0),l=!Je(e)||e!==this._$AH&&e!==Re,l&&(this._$AH=e);else{const p=e;let b,h;for(e=u[0],b=0;b<u.length-1;b++)h=De(this,p[r+b],i,b),h===Re&&(h=this._$AH[b]),l||=!Je(h)||h!==this._$AH[b],h===K?e=K:e!==K&&(e+=(h??"")+u[b+1]),this._$AH[b]=h}l&&!t&&this.j(e)}j(e){e===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class ms extends gt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===K?void 0:e}}class gs extends gt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==K)}}class bs extends gt{constructor(e,i,r,t,u){super(e,i,r,t,u),this.type=5}_$AI(e,i=this){if((e=De(this,e,i,0)??K)===Re)return;const r=this._$AH,t=e===K&&r!==K||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,u=e!==K&&(r===K||t);t&&this.element.removeEventListener(this.name,this,r),u&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class ys{constructor(e,i,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){De(this,e)}}const ws=fi.litHtmlPolyfillSupport;ws?.(Ke,Xe),(fi.litHtmlVersions??=[]).push("3.3.1");const vs=(n,e,i)=>{const r=i?.renderBefore??e;let t=r._$litPart$;if(t===void 0){const u=i?.renderBefore??null;r._$litPart$=t=new Xe(e.insertBefore(Ve(),u),u,void 0,i??{})}return t._$AI(n),t};const mi=globalThis;let Ge=class extends je{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=vs(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Re}};Ge._$litElement$=!0,Ge.finalized=!0,mi.litElementHydrateSupport?.({LitElement:Ge});const xs=mi.litElementPolyfillSupport;xs?.({LitElement:Ge});(mi.litElementVersions??=[]).push("4.2.1");const _s={attribute:!0,type:String,converter:dt,reflect:!1,hasChanged:di},Es=(n=_s,e,i)=>{const{kind:r,metadata:t}=i;let u=globalThis.litPropertyMetadata.get(t);if(u===void 0&&globalThis.litPropertyMetadata.set(t,u=new Map),r==="setter"&&((n=Object.create(n)).wrapped=!0),u.set(i.name,n),r==="accessor"){const{name:l}=i;return{set(p){const b=e.get.call(this);e.set.call(this,p),this.requestUpdate(l,b,n)},init(p){return p!==void 0&&this.C(l,void 0,n,p),p}}}if(r==="setter"){const{name:l}=i;return function(p){const b=this[l];e.call(this,p),this.requestUpdate(l,b,n)}}throw Error("Unsupported decorator location: "+r)};function oe(n){return(e,i)=>typeof i=="object"?Es(n,e,i):((r,t,u)=>{const l=t.hasOwnProperty(u);return t.constructor.createProperty(u,r),l?Object.getOwnPropertyDescriptor(t,u):void 0})(n,e,i)}const Ss={CHILD:2},As=n=>(...e)=>({_$litDirective$:n,values:e});class ks{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,i,r){this._$Ct=e,this._$AM=i,this._$Ci=r}_$AS(e,i){return this.update(e,i)}update(e,i){return this.render(...i)}}class ai extends ks{constructor(e){if(super(e),this.it=K,e.type!==Ss.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===K||e==null)return this._t=void 0,this.it=e;if(e===Re)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:[]}}}ai.directiveName="unsafeHTML",ai.resultType=1;const Cs=As(ai);const lt=n=>n??K;class Os{static showImage(e,i,r,t){let u;if(t||!(e instanceof HTMLImageElement)?u=l=>e.style.backgroundImage=this.prepareSrc(l):u=l=>e.src=l,u(r),i){const l=()=>{u(i)},p=new Image;p.addEventListener("load",l),p.src=i,p.complete&&(p.removeEventListener("load",l),l())}}static prepareSrc(e){return e?e.startsWith("url")?e:`url("${e}")`:null}}const $s=':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 Rs=Object.defineProperty,le=(n,e,i,r)=>{for(var t=void 0,u=n.length-1,l;u>=0;u--)(l=n[u])&&(t=l(e,i,t)||t);return t&&Rs(e,i,t),t},ge;const se=(ge=class extends Ge{constructor(){super(...arguments),this.contentMode="text",this.role="option"}static get styles(){return[es`
|
|
275
|
+
${On($s)}
|
|
276
|
+
`]}render(){return ot`
|
|
277
277
|
<div class="container">
|
|
278
|
-
${this.getLevelIndicators().map((e,
|
|
278
|
+
${this.getLevelIndicators().map((e,i)=>ot` <div class="level-indicator level-${i}"></div> `)}
|
|
279
279
|
<div class="side-content">
|
|
280
280
|
<slot name="left-content"></slot>
|
|
281
281
|
${this.renderIcon()}
|
|
@@ -288,50 +288,53 @@ lists.forEach((list: HTMLDivElement) => {
|
|
|
288
288
|
<slot name="right-content"></slot>
|
|
289
289
|
</div>
|
|
290
290
|
</div>
|
|
291
|
-
`}renderIcon(){if(this.icon||this.iconPlaceholder){const e=this.iconBackgroundColor!=null?`background-color:${this.iconBackgroundColor}`:void 0;return
|
|
291
|
+
`}renderIcon(){if(this.icon||this.iconPlaceholder){const e=this.iconBackgroundColor!=null?`background-color:${this.iconBackgroundColor}`:void 0;return ot`
|
|
292
292
|
<div
|
|
293
293
|
class="icon-wrapper"
|
|
294
294
|
@pointerdown="${this.handleIconClick}"
|
|
295
|
-
style="${
|
|
295
|
+
style="${lt(e)}"
|
|
296
296
|
role="img"
|
|
297
|
-
aria-label="${
|
|
298
|
-
title="${
|
|
297
|
+
aria-label="${lt(this.iconAttrAriaLabel)}"
|
|
298
|
+
title="${lt(this.iconAttrTitle)}"
|
|
299
299
|
>
|
|
300
300
|
<div class="icon"></div>
|
|
301
301
|
</div>
|
|
302
|
-
`}return
|
|
303
|
-
<div class="${e}" title="${
|
|
304
|
-
${this.contentMode==="html"?
|
|
302
|
+
`}return K}renderLabel(e,i,r){return i?ot`
|
|
303
|
+
<div class="${e}" title="${lt(r)}">
|
|
304
|
+
${this.contentMode==="html"?Cs(i):i}
|
|
305
305
|
</div>
|
|
306
|
-
`:
|
|
307
|
-
`+
|
|
308
|
-
|
|
306
|
+
`:K}updated(e){super.updated(e),(e.has("icon")||e.has("iconPlaceholder"))&&(this.icon||this.iconPlaceholder)&&Os.showImage(this.shadowRoot.querySelector(".icon"),this.icon,this.iconPlaceholder),e.has("selected")&&this.setAttribute("aria-selected",String(this.selected))}get missingWidthForTexts(){const e=this.enableLineClamp;this.removeAttribute("enable-line-clamp");let i=0;const r=this.shadowRoot.querySelector(".caption");r&&(i+=r.scrollWidth-r.clientWidth);const t=this.shadowRoot.querySelector(".description");return t&&(i=Math.max(i,t.scrollWidth-t.clientWidth)),i>0&&i++,e&&this.setAttribute("enable-line-clamp",""),i}handleIconClick(e){!this.disabled&&!this.dispatchEvent(new PointerEvent("list-item-icon-click",e))&&e.preventDefault()}getLevelIndicators(){return this.level?Array(Number(this.level)).fill(null):[]}},ge.ID="sd-list-item",ge.ensureDefined=()=>{customElements.get(ge.ID)||customElements.define(ge.ID,ge)},ge);le([oe({type:String})],se.prototype,"caption");le([oe({type:String})],se.prototype,"description");le([oe({type:Boolean})],se.prototype,"selected");le([oe({type:String})],se.prototype,"icon");le([oe({type:String})],se.prototype,"iconBackgroundColor");le([oe({type:String})],se.prototype,"iconPlaceholder");le([oe({type:Number})],se.prototype,"level");le([oe()],se.prototype,"contentMode");le([oe({type:Boolean,reflect:!0,attribute:"enable-line-clamp"})],se.prototype,"enableLineClamp");le([oe({converter:{fromAttribute:n=>n=="true",toAttribute:n=>n},reflect:!0,attribute:"aria-disabled"})],se.prototype,"disabled");le([oe({type:String,attribute:"icon-attr-aria-label"})],se.prototype,"iconAttrAriaLabel");le([oe({type:String,reflect:!0})],se.prototype,"role");le([oe({type:String,attribute:"caption-attr-title"})],se.prototype,"captionAttrTitle");le([oe({type:String,attribute:"description-attr-title"})],se.prototype,"descriptionAttrTitle");le([oe({type:String,attribute:"icon-attr-title"})],se.prototype,"iconAttrTitle");let Pn=se;const xo=(n,e)=>{const i=document.createElement(Pn.ID);if(n){if(i.caption=n.caption,i.description=n.description,i.icon=n.icon,i.iconBackgroundColor=n.iconBackgroundColor,i.iconPlaceholder=n.iconPlaceholder,i.level=n.level,i.disabled=n.disabled,n.contentMode&&(i.contentMode=n.contentMode),n.leftContentGenerator){const r=n.leftContentGenerator(n,i);r&&(r.slot="left-content",i.appendChild(r))}if(n.rightContentGenerator){const r=n.rightContentGenerator(n,i);r&&(r.slot="right-content",i.appendChild(r))}}return i};Pn.ensureDefined();function Tn(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Ms(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var i=function r(){var t=!1;try{t=this instanceof r}catch{}return t?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(n).forEach(function(r){var t=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(i,r,t.get?t:{enumerable:!0,get:function(){return n[r]}})}),i}var at={exports:{}},Ki;function Ns(){if(Ki)return at.exports;Ki=1;var n=String,e=function(){return{isColorSupported:!1,reset:n,bold:n,dim:n,italic:n,underline:n,inverse:n,hidden:n,strikethrough:n,black:n,red:n,green:n,yellow:n,blue:n,magenta:n,cyan:n,white:n,gray:n,bgBlack:n,bgRed:n,bgGreen:n,bgYellow:n,bgBlue:n,bgMagenta:n,bgCyan:n,bgWhite:n,blackBright:n,redBright:n,greenBright:n,yellowBright:n,blueBright:n,magentaBright:n,cyanBright:n,whiteBright:n,bgBlackBright:n,bgRedBright:n,bgGreenBright:n,bgYellowBright:n,bgBlueBright:n,bgMagentaBright:n,bgCyanBright:n,bgWhiteBright:n}};return at.exports=e(),at.exports.createColors=e,at.exports}const Ps={},Ts=Object.freeze(Object.defineProperty({__proto__:null,default:Ps},Symbol.toStringTag,{value:"Module"})),de=Ms(Ts);var Tt,Xi;function gi(){if(Xi)return Tt;Xi=1;let n=Ns(),e=de;class i extends Error{constructor(t,u,l,p,b,h){super(t),this.name="CssSyntaxError",this.reason=t,b&&(this.file=b),p&&(this.source=p),h&&(this.plugin=h),typeof u<"u"&&typeof l<"u"&&(typeof u=="number"?(this.line=u,this.column=l):(this.line=u.line,this.column=u.column,this.endLine=l.line,this.endColumn=l.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(t){if(!this.source)return"";let u=this.source;t==null&&(t=n.isColorSupported);let l=a=>a,p=a=>a,b=a=>a;if(t){let{bold:a,gray:f,red:m}=n.createColors(!0);p=g=>a(m(g)),l=g=>f(g),e&&(b=g=>e(g))}let h=u.split(/\r?\n/),s=Math.max(this.line-3,0),c=Math.min(this.line+2,h.length),o=String(c).length;return h.slice(s,c).map((a,f)=>{let m=s+1+f,g=" "+(" "+m).slice(-o)+" | ";if(m===this.line){if(a.length>160){let E=20,v=Math.max(0,this.column-E),w=Math.max(this.column+E,this.endColumn+E),y=a.slice(v,w),S=l(g.replace(/\d/g," "))+a.slice(0,Math.min(this.column-1,E-1)).replace(/[^\t]/g," ");return p(">")+l(g)+b(y)+`
|
|
307
|
+
`+S+p("^")}let _=l(g.replace(/\d/g," "))+a.slice(0,this.column-1).replace(/[^\t]/g," ");return p(">")+l(g)+b(a)+`
|
|
308
|
+
`+_+p("^")}return" "+l(g)+b(a)}).join(`
|
|
309
|
+
`)}toString(){let t=this.showSourceCode();return t&&(t=`
|
|
309
310
|
|
|
310
|
-
`+
|
|
311
|
-
`),this.name+": "+this.message+
|
|
311
|
+
`+t+`
|
|
312
|
+
`),this.name+": "+this.message+t}}return Tt=i,i.default=i,Tt}var Lt,Qi;function Ln(){if(Qi)return Lt;Qi=1;const n={after:`
|
|
312
313
|
`,beforeClose:`
|
|
313
314
|
`,beforeComment:`
|
|
314
315
|
`,beforeDecl:`
|
|
315
316
|
`,beforeOpen:" ",beforeRule:`
|
|
316
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function
|
|
317
|
-
`)){let
|
|
318
|
-
`)&&(
|
|
319
|
-
`)&&(
|
|
320
|
-
`)&&(
|
|
321
|
-
`)&&(
|
|
322
|
-
`);return
|
|
323
|
-
`?(
|
|
324
|
-
`);i=new Array(o.length);let s=0;for(let l=0,a=o.length;l<a;l++)i[l]=s,s+=o[l].length+1;this[jt]=i}t=i[i.length-1];let r=0;if(e>=t)r=i.length-1;else{let o=i.length-2,s;for(;r<o;)if(s=r+(o-r>>1),e<i[s])o=s-1;else if(e>=i[s+1])r=s+1;else{r=s;break}}return{col:e-i[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Qt(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,i,r){if(!this.map)return!1;let o=this.map.consumer(),s=o.originalPositionFor({column:t,line:e});if(!s.source)return!1;let l;typeof i=="number"&&(l=o.originalPositionFor({column:r,line:i}));let a;Xt(s.source)?a=Ze(s.source):a=new URL(s.source,this.map.consumer().sourceRoot||Ze(this.map.mapFile));let c={column:s.column,endColumn:l&&l.column,endLine:l&&l.line,line:s.line,url:a.toString()};if(a.protocol==="file:")if(Gi)c.file=Gi(a);else throw new Error("file: protocol is not available in this PostCSS build");let d=o.sourceContentFor(s.source);return d&&(c.source=d),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 yt=at;at.default=at;It&&It.registerInput&&It.registerInput(at);let{SourceMapConsumer:Sn,SourceMapGenerator:rt}=B,{dirname:st,relative:$n,resolve:Cn,sep:kn}=B,{pathToFileURL:Vi}=B,Ks=yt,Js=!!(Sn&&rt),Xs=!!(st&&Cn&&$n&&kn),Qs=class{constructor(e,t,i,r){this.stringify=e,this.mapOpts=i.map||{},this.root=t,this.opts=i,this.css=r,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=`
|
|
317
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function e(r){return r[0].toUpperCase()+r.slice(1)}class i{constructor(t){this.builder=t}atrule(t,u){let l="@"+t.name,p=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName<"u"?l+=t.raws.afterName:p&&(l+=" "),t.nodes)this.block(t,l+p);else{let b=(t.raws.between||"")+(u?";":"");this.builder(l+p+b,t)}}beforeAfter(t,u){let l;t.type==="decl"?l=this.raw(t,null,"beforeDecl"):t.type==="comment"?l=this.raw(t,null,"beforeComment"):u==="before"?l=this.raw(t,null,"beforeRule"):l=this.raw(t,null,"beforeClose");let p=t.parent,b=0;for(;p&&p.type!=="root";)b+=1,p=p.parent;if(l.includes(`
|
|
318
|
+
`)){let h=this.raw(t,null,"indent");if(h.length)for(let s=0;s<b;s++)l+=h}return l}block(t,u){let l=this.raw(t,"between","beforeOpen");this.builder(u+l+"{",t,"start");let p;t.nodes&&t.nodes.length?(this.body(t),p=this.raw(t,"after")):p=this.raw(t,"after","emptyBody"),p&&this.builder(p),this.builder("}",t,"end")}body(t){let u=t.nodes.length-1;for(;u>0&&t.nodes[u].type==="comment";)u-=1;let l=this.raw(t,"semicolon");for(let p=0;p<t.nodes.length;p++){let b=t.nodes[p],h=this.raw(b,"before");h&&this.builder(h),this.stringify(b,u!==p||l)}}comment(t){let u=this.raw(t,"left","commentLeft"),l=this.raw(t,"right","commentRight");this.builder("/*"+u+t.text+l+"*/",t)}decl(t,u){let l=this.raw(t,"between","colon"),p=t.prop+l+this.rawValue(t,"value");t.important&&(p+=t.raws.important||" !important"),u&&(p+=";"),this.builder(p,t)}document(t){this.body(t)}raw(t,u,l){let p;if(l||(l=u),u&&(p=t.raws[u],typeof p<"u"))return p;let b=t.parent;if(l==="before"&&(!b||b.type==="root"&&b.first===t||b&&b.type==="document"))return"";if(!b)return n[l];let h=t.root();if(h.rawCache||(h.rawCache={}),typeof h.rawCache[l]<"u")return h.rawCache[l];if(l==="before"||l==="after")return this.beforeAfter(t,l);{let s="raw"+e(l);this[s]?p=this[s](h,t):h.walk(c=>{if(p=c.raws[u],typeof p<"u")return!1})}return typeof p>"u"&&(p=n[l]),h.rawCache[l]=p,p}rawBeforeClose(t){let u;return t.walk(l=>{if(l.nodes&&l.nodes.length>0&&typeof l.raws.after<"u")return u=l.raws.after,u.includes(`
|
|
319
|
+
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),u&&(u=u.replace(/\S/g,"")),u}rawBeforeComment(t,u){let l;return t.walkComments(p=>{if(typeof p.raws.before<"u")return l=p.raws.before,l.includes(`
|
|
320
|
+
`)&&(l=l.replace(/[^\n]+$/,"")),!1}),typeof l>"u"?l=this.raw(u,null,"beforeDecl"):l&&(l=l.replace(/\S/g,"")),l}rawBeforeDecl(t,u){let l;return t.walkDecls(p=>{if(typeof p.raws.before<"u")return l=p.raws.before,l.includes(`
|
|
321
|
+
`)&&(l=l.replace(/[^\n]+$/,"")),!1}),typeof l>"u"?l=this.raw(u,null,"beforeRule"):l&&(l=l.replace(/\S/g,"")),l}rawBeforeOpen(t){let u;return t.walk(l=>{if(l.type!=="decl"&&(u=l.raws.between,typeof u<"u"))return!1}),u}rawBeforeRule(t){let u;return t.walk(l=>{if(l.nodes&&(l.parent!==t||t.first!==l)&&typeof l.raws.before<"u")return u=l.raws.before,u.includes(`
|
|
322
|
+
`)&&(u=u.replace(/[^\n]+$/,"")),!1}),u&&(u=u.replace(/\S/g,"")),u}rawColon(t){let u;return t.walkDecls(l=>{if(typeof l.raws.between<"u")return u=l.raws.between.replace(/[^\s:]/g,""),!1}),u}rawEmptyBody(t){let u;return t.walk(l=>{if(l.nodes&&l.nodes.length===0&&(u=l.raws.after,typeof u<"u"))return!1}),u}rawIndent(t){if(t.raws.indent)return t.raws.indent;let u;return t.walk(l=>{let p=l.parent;if(p&&p!==t&&p.parent&&p.parent===t&&typeof l.raws.before<"u"){let b=l.raws.before.split(`
|
|
323
|
+
`);return u=b[b.length-1],u=u.replace(/\S/g,""),!1}}),u}rawSemicolon(t){let u;return t.walk(l=>{if(l.nodes&&l.nodes.length&&l.last.type==="decl"&&(u=l.raws.semicolon,typeof u<"u"))return!1}),u}rawValue(t,u){let l=t[u],p=t.raws[u];return p&&p.value===l?p.raw:l}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,u){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,u)}}return Lt=i,i.default=i,Lt}var It,Yi;function bt(){if(Yi)return It;Yi=1;let n=Ln();function e(i,r){new n(r).stringify(i)}return It=e,e.default=e,It}var ct={},en;function bi(){return en||(en=1,ct.isClean=Symbol("isClean"),ct.my=Symbol("my")),ct}var jt,tn;function yt(){if(tn)return jt;tn=1;let n=gi(),e=Ln(),i=bt(),{isClean:r,my:t}=bi();function u(b,h){let s=new b.constructor;for(let c in b){if(!Object.prototype.hasOwnProperty.call(b,c)||c==="proxyCache")continue;let o=b[c],a=typeof o;c==="parent"&&a==="object"?h&&(s[c]=h):c==="source"?s[c]=o:Array.isArray(o)?s[c]=o.map(f=>u(f,s)):(a==="object"&&o!==null&&(o=u(o)),s[c]=o)}return s}function l(b,h){if(h&&typeof h.offset<"u")return h.offset;let s=1,c=1,o=0;for(let a=0;a<b.length;a++){if(c===h.line&&s===h.column){o=a;break}b[a]===`
|
|
324
|
+
`?(s=1,c+=1):s+=1}return o}class p{get proxyOf(){return this}constructor(h={}){this.raws={},this[r]=!1,this[t]=!0;for(let s in h)if(s==="nodes"){this.nodes=[];for(let c of h[s])typeof c.clone=="function"?this.append(c.clone()):this.append(c)}else this[s]=h[s]}addToError(h){if(h.postcssNode=this,h.stack&&this.source&&/\n\s{4}at /.test(h.stack)){let s=this.source;h.stack=h.stack.replace(/\n\s{4}at /,`$&${s.input.from}:${s.start.line}:${s.start.column}$&`)}return h}after(h){return this.parent.insertAfter(this,h),this}assign(h={}){for(let s in h)this[s]=h[s];return this}before(h){return this.parent.insertBefore(this,h),this}cleanRaws(h){delete this.raws.before,delete this.raws.after,h||delete this.raws.between}clone(h={}){let s=u(this);for(let c in h)s[c]=h[c];return s}cloneAfter(h={}){let s=this.clone(h);return this.parent.insertAfter(this,s),s}cloneBefore(h={}){let s=this.clone(h);return this.parent.insertBefore(this,s),s}error(h,s={}){if(this.source){let{end:c,start:o}=this.rangeBy(s);return this.source.input.error(h,{column:o.column,line:o.line},{column:c.column,line:c.line},s)}return new n(h)}getProxyProcessor(){return{get(h,s){return s==="proxyOf"?h:s==="root"?()=>h.root().toProxy():h[s]},set(h,s,c){return h[s]===c||(h[s]=c,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&h.markDirty()),!0}}}markClean(){this[r]=!0}markDirty(){if(this[r]){this[r]=!1;let h=this;for(;h=h.parent;)h[r]=!1}}next(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h+1]}positionBy(h={}){let s=this.source.start;if(h.index)s=this.positionInside(h.index);else if(h.word){let c="document"in this.source.input?this.source.input.document:this.source.input.css,a=c.slice(l(c,this.source.start),l(c,this.source.end)).indexOf(h.word);a!==-1&&(s=this.positionInside(a))}return s}positionInside(h){let s=this.source.start.column,c=this.source.start.line,o="document"in this.source.input?this.source.input.document:this.source.input.css,a=l(o,this.source.start),f=a+h;for(let m=a;m<f;m++)o[m]===`
|
|
325
|
+
`?(s=1,c+=1):s+=1;return{column:s,line:c,offset:f}}prev(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h-1]}rangeBy(h={}){let s="document"in this.source.input?this.source.input.document:this.source.input.css,c={column:this.source.start.column,line:this.source.start.line,offset:l(s,this.source.start)},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:l(s,this.source.end)+1}:{column:c.column+1,line:c.line,offset:c.offset+1};if(h.word){let f=s.slice(l(s,this.source.start),l(s,this.source.end)).indexOf(h.word);f!==-1&&(c=this.positionInside(f),o=this.positionInside(f+h.word.length))}else h.start?c={column:h.start.column,line:h.start.line,offset:l(s,h.start)}:h.index&&(c=this.positionInside(h.index)),h.end?o={column:h.end.column,line:h.end.line,offset:l(s,h.end)}:typeof h.endIndex=="number"?o=this.positionInside(h.endIndex):h.index&&(o=this.positionInside(h.index+1));return(o.line<c.line||o.line===c.line&&o.column<=c.column)&&(o={column:c.column+1,line:c.line,offset:c.offset+1}),{end:o,start:c}}raw(h,s){return new e().raw(this,h,s)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...h){if(this.parent){let s=this,c=!1;for(let o of h)o===this?c=!0:c?(this.parent.insertAfter(s,o),s=o):this.parent.insertBefore(s,o);c||this.remove()}return this}root(){let h=this;for(;h.parent&&h.parent.type!=="document";)h=h.parent;return h}toJSON(h,s){let c={},o=s==null;s=s||new Map;let a=0;for(let f in this){if(!Object.prototype.hasOwnProperty.call(this,f)||f==="parent"||f==="proxyCache")continue;let m=this[f];if(Array.isArray(m))c[f]=m.map(g=>typeof g=="object"&&g.toJSON?g.toJSON(null,s):g);else if(typeof m=="object"&&m.toJSON)c[f]=m.toJSON(null,s);else if(f==="source"){if(m==null)continue;let g=s.get(m.input);g==null&&(g=a,s.set(m.input,a),a++),c[f]={end:m.end,inputId:g,start:m.start}}else c[f]=m}return o&&(c.inputs=[...s.keys()].map(f=>f.toJSON())),c}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(h=i){h.stringify&&(h=h.stringify);let s="";return h(this,c=>{s+=c}),s}warn(h,s,c={}){let o={node:this};for(let a in c)o[a]=c[a];return h.warn(s,o)}}return jt=p,p.default=p,jt}var Dt,nn;function wt(){if(nn)return Dt;nn=1;let n=yt();class e extends n{constructor(r){super(r),this.type="comment"}}return Dt=e,e.default=e,Dt}var zt,rn;function vt(){if(rn)return zt;rn=1;let n=yt();class e extends n{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(r){r&&typeof r.value<"u"&&typeof r.value!="string"&&(r={...r,value:String(r.value)}),super(r),this.type="decl"}}return zt=e,e.default=e,zt}var Bt,sn;function Me(){if(sn)return Bt;sn=1;let n=wt(),e=vt(),i=yt(),{isClean:r,my:t}=bi(),u,l,p,b;function h(o){return o.map(a=>(a.nodes&&(a.nodes=h(a.nodes)),delete a.source,a))}function s(o){if(o[r]=!1,o.proxyOf.nodes)for(let a of o.proxyOf.nodes)s(a)}class c 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(...a){for(let f of a){let m=this.normalize(f,this.last);for(let g of m)this.proxyOf.nodes.push(g)}return this.markDirty(),this}cleanRaws(a){if(super.cleanRaws(a),this.nodes)for(let f of this.nodes)f.cleanRaws(a)}each(a){if(!this.proxyOf.nodes)return;let f=this.getIterator(),m,g;for(;this.indexes[f]<this.proxyOf.nodes.length&&(m=this.indexes[f],g=a(this.proxyOf.nodes[m],m),g!==!1);)this.indexes[f]+=1;return delete this.indexes[f],g}every(a){return this.nodes.every(a)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let a=this.lastEach;return this.indexes[a]=0,a}getProxyProcessor(){return{get(a,f){return f==="proxyOf"?a:a[f]?f==="each"||typeof f=="string"&&f.startsWith("walk")?(...m)=>a[f](...m.map(g=>typeof g=="function"?(_,E)=>g(_.toProxy(),E):g)):f==="every"||f==="some"?m=>a[f]((g,..._)=>m(g.toProxy(),..._)):f==="root"?()=>a.root().toProxy():f==="nodes"?a.nodes.map(m=>m.toProxy()):f==="first"||f==="last"?a[f].toProxy():a[f]:a[f]},set(a,f,m){return a[f]===m||(a[f]=m,(f==="name"||f==="params"||f==="selector")&&a.markDirty()),!0}}}index(a){return typeof a=="number"?a:(a.proxyOf&&(a=a.proxyOf),this.proxyOf.nodes.indexOf(a))}insertAfter(a,f){let m=this.index(a),g=this.normalize(f,this.proxyOf.nodes[m]).reverse();m=this.index(a);for(let E of g)this.proxyOf.nodes.splice(m+1,0,E);let _;for(let E in this.indexes)_=this.indexes[E],m<_&&(this.indexes[E]=_+g.length);return this.markDirty(),this}insertBefore(a,f){let m=this.index(a),g=m===0?"prepend":!1,_=this.normalize(f,this.proxyOf.nodes[m],g).reverse();m=this.index(a);for(let v of _)this.proxyOf.nodes.splice(m,0,v);let E;for(let v in this.indexes)E=this.indexes[v],m<=E&&(this.indexes[v]=E+_.length);return this.markDirty(),this}normalize(a,f){if(typeof a=="string")a=h(l(a).nodes);else if(typeof a>"u")a=[];else if(Array.isArray(a)){a=a.slice(0);for(let g of a)g.parent&&g.parent.removeChild(g,"ignore")}else if(a.type==="root"&&this.type!=="document"){a=a.nodes.slice(0);for(let g of a)g.parent&&g.parent.removeChild(g,"ignore")}else if(a.type)a=[a];else if(a.prop){if(typeof a.value>"u")throw new Error("Value field is missed in node creation");typeof a.value!="string"&&(a.value=String(a.value)),a=[new e(a)]}else if(a.selector||a.selectors)a=[new b(a)];else if(a.name)a=[new u(a)];else if(a.text)a=[new n(a)];else throw new Error("Unknown node type in node creation");return a.map(g=>(g[t]||c.rebuild(g),g=g.proxyOf,g.parent&&g.parent.removeChild(g),g[r]&&s(g),g.raws||(g.raws={}),typeof g.raws.before>"u"&&f&&typeof f.raws.before<"u"&&(g.raws.before=f.raws.before.replace(/\S/g,"")),g.parent=this.proxyOf,g))}prepend(...a){a=a.reverse();for(let f of a){let m=this.normalize(f,this.first,"prepend").reverse();for(let g of m)this.proxyOf.nodes.unshift(g);for(let g in this.indexes)this.indexes[g]=this.indexes[g]+m.length}return this.markDirty(),this}push(a){return a.parent=this,this.proxyOf.nodes.push(a),this}removeAll(){for(let a of this.proxyOf.nodes)a.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(a){a=this.index(a),this.proxyOf.nodes[a].parent=void 0,this.proxyOf.nodes.splice(a,1);let f;for(let m in this.indexes)f=this.indexes[m],f>=a&&(this.indexes[m]=f-1);return this.markDirty(),this}replaceValues(a,f,m){return m||(m=f,f={}),this.walkDecls(g=>{f.props&&!f.props.includes(g.prop)||f.fast&&!g.value.includes(f.fast)||(g.value=g.value.replace(a,m))}),this.markDirty(),this}some(a){return this.nodes.some(a)}walk(a){return this.each((f,m)=>{let g;try{g=a(f,m)}catch(_){throw f.addToError(_)}return g!==!1&&f.walk&&(g=f.walk(a)),g})}walkAtRules(a,f){return f?a instanceof RegExp?this.walk((m,g)=>{if(m.type==="atrule"&&a.test(m.name))return f(m,g)}):this.walk((m,g)=>{if(m.type==="atrule"&&m.name===a)return f(m,g)}):(f=a,this.walk((m,g)=>{if(m.type==="atrule")return f(m,g)}))}walkComments(a){return this.walk((f,m)=>{if(f.type==="comment")return a(f,m)})}walkDecls(a,f){return f?a instanceof RegExp?this.walk((m,g)=>{if(m.type==="decl"&&a.test(m.prop))return f(m,g)}):this.walk((m,g)=>{if(m.type==="decl"&&m.prop===a)return f(m,g)}):(f=a,this.walk((m,g)=>{if(m.type==="decl")return f(m,g)}))}walkRules(a,f){return f?a instanceof RegExp?this.walk((m,g)=>{if(m.type==="rule"&&a.test(m.selector))return f(m,g)}):this.walk((m,g)=>{if(m.type==="rule"&&m.selector===a)return f(m,g)}):(f=a,this.walk((m,g)=>{if(m.type==="rule")return f(m,g)}))}}return c.registerParse=o=>{l=o},c.registerRule=o=>{b=o},c.registerAtRule=o=>{u=o},c.registerRoot=o=>{p=o},Bt=c,c.default=c,c.rebuild=o=>{o.type==="atrule"?Object.setPrototypeOf(o,u.prototype):o.type==="rule"?Object.setPrototypeOf(o,b.prototype):o.type==="decl"?Object.setPrototypeOf(o,e.prototype):o.type==="comment"?Object.setPrototypeOf(o,n.prototype):o.type==="root"&&Object.setPrototypeOf(o,p.prototype),o[t]=!0,o.nodes&&o.nodes.forEach(a=>{c.rebuild(a)})},Bt}var Ut,on;function yi(){if(on)return Ut;on=1;let n=Me();class e extends n{constructor(r){super(r),this.type="atrule"}append(...r){return this.proxyOf.nodes||(this.nodes=[]),super.append(...r)}prepend(...r){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...r)}}return Ut=e,e.default=e,n.registerAtRule(e),Ut}var qt,ln;function wi(){if(ln)return qt;ln=1;let n=Me(),e,i;class r extends n{constructor(u){super({type:"document",...u}),this.nodes||(this.nodes=[])}toResult(u={}){return new e(new i,this,u).stringify()}}return r.registerLazyResult=t=>{e=t},r.registerProcessor=t=>{i=t},qt=r,r.default=r,qt}var Ht,an;function Ls(){if(an)return Ht;an=1;let n="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Ht={nanoid:(r=21)=>{let t="",u=r|0;for(;u--;)t+=n[Math.random()*64|0];return t},customAlphabet:(r,t=21)=>(u=t)=>{let l="",p=u|0;for(;p--;)l+=r[Math.random()*r.length|0];return l}},Ht}var Ft,cn;function In(){if(cn)return Ft;cn=1;let{existsSync:n,readFileSync:e}=de,{dirname:i,join:r}=de,{SourceMapConsumer:t,SourceMapGenerator:u}=de;function l(b){return Buffer?Buffer.from(b,"base64").toString():window.atob(b)}class p{constructor(h,s){if(s.map===!1)return;this.loadAnnotation(h),this.inline=this.startWith(this.annotation,"data:");let c=s.map?s.map.prev:void 0,o=this.loadMap(s.from,c);!this.mapFile&&s.from&&(this.mapFile=s.from),this.mapFile&&(this.root=i(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new t(this.text)),this.consumerCache}decodeInline(h){let s=/^data:application\/json;charset=utf-?8;base64,/,c=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/,f=h.match(o)||h.match(a);if(f)return decodeURIComponent(h.substr(f[0].length));let m=h.match(s)||h.match(c);if(m)return l(h.substr(m[0].length));let g=h.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+g)}getAnnotationURL(h){return h.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(h){return typeof h!="object"?!1:typeof h.mappings=="string"||typeof h._mappings=="string"||Array.isArray(h.sections)}loadAnnotation(h){let s=h.match(/\/\*\s*# sourceMappingURL=/g);if(!s)return;let c=h.lastIndexOf(s.pop()),o=h.indexOf("*/",c);c>-1&&o>-1&&(this.annotation=this.getAnnotationURL(h.substring(c,o)))}loadFile(h){if(this.root=i(h),n(h))return this.mapFile=h,e(h,"utf-8").toString().trim()}loadMap(h,s){if(s===!1)return!1;if(s){if(typeof s=="string")return s;if(typeof s=="function"){let c=s(h);if(c){let o=this.loadFile(c);if(!o)throw new Error("Unable to load previous source map: "+c.toString());return o}}else{if(s instanceof t)return u.fromSourceMap(s).toString();if(s instanceof u)return s.toString();if(this.isMap(s))return JSON.stringify(s);throw new Error("Unsupported previous source map format: "+s.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let c=this.annotation;return h&&(c=r(i(h),c)),this.loadFile(c)}}}startWith(h,s){return h?h.substr(0,s.length)===s:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Ft=p,p.default=p,Ft}var Wt,un;function xt(){if(un)return Wt;un=1;let{nanoid:n}=Ls(),{isAbsolute:e,resolve:i}=de,{SourceMapConsumer:r,SourceMapGenerator:t}=de,{fileURLToPath:u,pathToFileURL:l}=de,p=gi(),b=In(),h=de,s=Symbol("lineToIndexCache"),c=!!(r&&t),o=!!(i&&e);function a(m){if(m[s])return m[s];let g=m.css.split(`
|
|
326
|
+
`),_=new Array(g.length),E=0;for(let v=0,w=g.length;v<w;v++)_[v]=E,E+=g[v].length+1;return m[s]=_,_}class f{get from(){return this.file||this.id}constructor(g,_={}){if(g===null||typeof g>"u"||typeof g=="object"&&!g.toString)throw new Error(`PostCSS received ${g} instead of CSS string`);if(this.css=g.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,_.document&&(this.document=_.document.toString()),_.from&&(!o||/^\w+:\/\//.test(_.from)||e(_.from)?this.file=_.from:this.file=i(_.from)),o&&c){let E=new b(this.css,_);if(E.text){this.map=E;let v=E.consumer().file;!this.file&&v&&(this.file=this.mapResolve(v))}}this.file||(this.id="<input css "+n(6)+">"),this.map&&(this.map.file=this.from)}error(g,_,E,v={}){let w,y,S,O,L;if(_&&typeof _=="object"){let P=_,J=E;if(typeof P.offset=="number"){O=P.offset;let H=this.fromOffset(O);_=H.line,E=H.col}else _=P.line,E=P.column,O=this.fromLineAndColumn(_,E);if(typeof J.offset=="number"){S=J.offset;let H=this.fromOffset(S);y=H.line,w=H.col}else y=J.line,w=J.column,S=this.fromLineAndColumn(J.line,J.column)}else if(E)O=this.fromLineAndColumn(_,E);else{O=_;let P=this.fromOffset(O);_=P.line,E=P.col}let B=this.origin(_,E,y,w);return B?L=new p(g,B.endLine===void 0?B.line:{column:B.column,line:B.line},B.endLine===void 0?B.column:{column:B.endColumn,line:B.endLine},B.source,B.file,v.plugin):L=new p(g,y===void 0?_:{column:E,line:_},y===void 0?E:{column:w,line:y},this.css,this.file,v.plugin),L.input={column:E,endColumn:w,endLine:y,endOffset:S,line:_,offset:O,source:this.css},this.file&&(l&&(L.input.url=l(this.file).toString()),L.input.file=this.file),L}fromLineAndColumn(g,_){return a(this)[g-1]+_-1}fromOffset(g){let _=a(this),E=_[_.length-1],v=0;if(g>=E)v=_.length-1;else{let w=_.length-2,y;for(;v<w;)if(y=v+(w-v>>1),g<_[y])w=y-1;else if(g>=_[y+1])v=y+1;else{v=y;break}}return{col:g-_[v]+1,line:v+1}}mapResolve(g){return/^\w+:\/\//.test(g)?g:i(this.map.consumer().sourceRoot||this.map.root||".",g)}origin(g,_,E,v){if(!this.map)return!1;let w=this.map.consumer(),y=w.originalPositionFor({column:_,line:g});if(!y.source)return!1;let S;typeof E=="number"&&(S=w.originalPositionFor({column:v,line:E}));let O;e(y.source)?O=l(y.source):O=new URL(y.source,this.map.consumer().sourceRoot||l(this.map.mapFile));let L={column:y.column,endColumn:S&&S.column,endLine:S&&S.line,line:y.line,url:O.toString()};if(O.protocol==="file:")if(u)L.file=u(O);else throw new Error("file: protocol is not available in this PostCSS build");let B=w.sourceContentFor(y.source);return B&&(L.source=B),L}toJSON(){let g={};for(let _ of["hasBOM","css","file","id"])this[_]!=null&&(g[_]=this[_]);return this.map&&(g.map={...this.map},g.map.consumerCache&&(g.map.consumerCache=void 0)),g}}return Wt=f,f.default=f,h&&h.registerInput&&h.registerInput(f),Wt}var Gt,hn;function Qe(){if(hn)return Gt;hn=1;let n=Me(),e,i;class r extends n{constructor(u){super(u),this.type="root",this.nodes||(this.nodes=[])}normalize(u,l,p){let b=super.normalize(u);if(l){if(p==="prepend")this.nodes.length>1?l.raws.before=this.nodes[1].raws.before:delete l.raws.before;else if(this.first!==l)for(let h of b)h.raws.before=l.raws.before}return b}removeChild(u,l){let p=this.index(u);return!l&&p===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[p].raws.before),super.removeChild(u)}toResult(u={}){return new e(new i,this,u).stringify()}}return r.registerLazyResult=t=>{e=t},r.registerProcessor=t=>{i=t},Gt=r,r.default=r,n.registerRoot(r),Gt}var Zt,dn;function jn(){if(dn)return Zt;dn=1;let n={comma(e){return n.split(e,[","],!0)},space(e){let i=[" ",`
|
|
327
|
+
`," "];return n.split(e,i)},split(e,i,r){let t=[],u="",l=!1,p=0,b=!1,h="",s=!1;for(let c of e)s?s=!1:c==="\\"?s=!0:b?c===h&&(b=!1):c==='"'||c==="'"?(b=!0,h=c):c==="("?p+=1:c===")"?p>0&&(p-=1):p===0&&i.includes(c)&&(l=!0),l?(u!==""&&t.push(u.trim()),u="",l=!1):u+=c;return(r||u!=="")&&t.push(u.trim()),t}};return Zt=n,n.default=n,Zt}var Vt,fn;function vi(){if(fn)return Vt;fn=1;let n=Me(),e=jn();class i extends n{get selectors(){return e.comma(this.selector)}set selectors(t){let u=this.selector?this.selector.match(/,\s*/):null,l=u?u[0]:","+this.raw("between","beforeOpen");this.selector=t.join(l)}constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}}return Vt=i,i.default=i,n.registerRule(i),Vt}var Jt,pn;function Is(){if(pn)return Jt;pn=1;let n=yi(),e=wt(),i=vt(),r=xt(),t=In(),u=Qe(),l=vi();function p(b,h){if(Array.isArray(b))return b.map(o=>p(o));let{inputs:s,...c}=b;if(s){h=[];for(let o of s){let a={...o,__proto__:r.prototype};a.map&&(a.map={...a.map,__proto__:t.prototype}),h.push(a)}}if(c.nodes&&(c.nodes=b.nodes.map(o=>p(o,h))),c.source){let{inputId:o,...a}=c.source;c.source=a,o!=null&&(c.source.input=h[o])}if(c.type==="root")return new u(c);if(c.type==="decl")return new i(c);if(c.type==="rule")return new l(c);if(c.type==="comment")return new e(c);if(c.type==="atrule")return new n(c);throw new Error("Unknown node type: "+b.type)}return Jt=p,p.default=p,Jt}var Kt,mn;function Dn(){if(mn)return Kt;mn=1;let{dirname:n,relative:e,resolve:i,sep:r}=de,{SourceMapConsumer:t,SourceMapGenerator:u}=de,{pathToFileURL:l}=de,p=xt(),b=!!(t&&u),h=!!(n&&i&&e&&r);class s{constructor(o,a,f,m){this.stringify=o,this.mapOpts=f.map||{},this.root=a,this.opts=f,this.css=m,this.originalCSS=m,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let o;this.isInline()?o="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?o=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?o=this.mapOpts.annotation(this.opts.to,this.root):o=this.outputFile()+".map";let a=`
|
|
325
328
|
`;this.css.includes(`\r
|
|
326
|
-
`)&&(
|
|
327
|
-
`),this.css+=
|
|
328
|
-
`),t=l.length-s):t+=l.length,a&&c!=="start"){let d=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==d.last||d.raws.semicolon)&&(a.source&&a.source.end?(r.source=this.sourcePath(a),r.original.line=a.source.end.line,r.original.column=a.source.end.column-1,r.generated.line=e,r.generated.column=t-2,this.map.addMapping(r)):(r.source=i,r.original.line=1,r.original.column=0,r.generated.line=e,r.generated.column=t-1,this.map.addMapping(r)))}})}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?st(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=st(Cn(i,this.mapOpts.annotation)));let r=$n(i,e);return this.memoizedPaths.set(e,r),r}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 Ks(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 r=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(r,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(Vi){let i=Vi(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;kn==="\\"&&(e=e.replace(/\\/g,"/"));let i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i}};var On=Qs;let Ys=gt,Yt=class extends Ys{constructor(e){super(e),this.type="comment"}};var wt=Yt;Yt.default=Yt;let{isClean:Rn,my:Mn}=ze,Nn=bt,Pn=wt,eo=gt,Tn,di,ui,Ln;function In(n){return n.map(e=>(e.nodes&&(e.nodes=In(e.nodes)),delete e.source,e))}function jn(n){if(n[Rn]=!1,n.proxyOf.nodes)for(let e of n.proxyOf.nodes)jn(e)}let X=class zn extends eo{append(...e){for(let t of e){let i=this.normalize(t,this.last);for(let r of i)this.proxyOf.nodes.push(r)}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,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(i=this.indexes[t],r=e(this.proxyOf.nodes[i],i),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}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(r=>typeof r=="function"?(o,s)=>r(o.toProxy(),s):r)):t==="every"||t==="some"?i=>e[t]((r,...o)=>i(r.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(i=>i.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,i){return e[t]===i||(e[t]=i,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let i=this.index(e),r=this.normalize(t,this.proxyOf.nodes[i]).reverse();i=this.index(e);for(let s of r)this.proxyOf.nodes.splice(i+1,0,s);let o;for(let s in this.indexes)o=this.indexes[s],i<o&&(this.indexes[s]=o+r.length);return this.markDirty(),this}insertBefore(e,t){let i=this.index(e),r=i===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[i],r).reverse();i=this.index(e);for(let l of o)this.proxyOf.nodes.splice(i,0,l);let s;for(let l in this.indexes)s=this.indexes[l],i<=s&&(this.indexes[l]=s+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=In(Tn(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let r of e)r.parent&&r.parent.removeChild(r,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Nn(e)]}else if(e.selector)e=[new di(e)];else if(e.name)e=[new ui(e)];else if(e.text)e=[new Pn(e)];else throw new Error("Unknown node type in node creation");return e.map(r=>(r[Mn]||zn.rebuild(r),r=r.proxyOf,r.parent&&r.parent.removeChild(r),r[Rn]&&jn(r),typeof r.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(r.raws.before=t.raws.before.replace(/\S/g,"")),r.parent=this.proxyOf,r))}prepend(...e){e=e.reverse();for(let t of e){let i=this.normalize(t,this.first,"prepend").reverse();for(let r of i)this.proxyOf.nodes.unshift(r);for(let r in this.indexes)this.indexes[r]=this.indexes[r]+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(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,i))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,i)=>{let r;try{r=e(t,i)}catch(o){throw t.addToError(o)}return r!==!1&&t.walk&&(r=t.walk(e)),r})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="atrule"&&e.test(i.name))return t(i,r)}):this.walk((i,r)=>{if(i.type==="atrule"&&i.name===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="atrule")return t(i,r)}))}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,r)=>{if(i.type==="decl"&&e.test(i.prop))return t(i,r)}):this.walk((i,r)=>{if(i.type==="decl"&&i.prop===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="decl")return t(i,r)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((i,r)=>{if(i.type==="rule"&&e.test(i.selector))return t(i,r)}):this.walk((i,r)=>{if(i.type==="rule"&&i.selector===e)return t(i,r)}):(t=e,this.walk((i,r)=>{if(i.type==="rule")return t(i,r)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};X.registerParse=n=>{Tn=n};X.registerRule=n=>{di=n};X.registerAtRule=n=>{ui=n};X.registerRoot=n=>{Ln=n};var de=X;X.default=X;X.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,ui.prototype):n.type==="rule"?Object.setPrototypeOf(n,di.prototype):n.type==="decl"?Object.setPrototypeOf(n,Nn.prototype):n.type==="comment"?Object.setPrototypeOf(n,Pn.prototype):n.type==="root"&&Object.setPrototypeOf(n,Ln.prototype),n[Mn]=!0,n.nodes&&n.nodes.forEach(e=>{X.rebuild(e)})};let to=de,Dn,Un,Me=class extends to{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Dn(new Un,this,e).stringify()}};Me.registerLazyResult=n=>{Dn=n};Me.registerProcessor=n=>{Un=n};var hi=Me;Me.default=Me;let ei=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 Bn=ei;ei.default=ei;let io=Bn,ti=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 io(e,t);return this.messages.push(i),i}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var pi=ti;ti.default=ti;const zt=39,Ki=34,Ve=92,Ji=47,Ke=10,_e=32,Je=12,Xe=9,Qe=13,no=91,ro=93,so=40,oo=41,lo=123,ao=125,co=59,uo=42,ho=58,po=64,Ye=/[\t\n\f\r "#'()/;[\\\]{}]/g,et=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,fo=/.[\r\n"'(/\\]/,Xi=/[\da-f]/i;var mo=function(e,t={}){let i=e.css.valueOf(),r=t.ignoreErrors,o,s,l,a,c,d,p,f,x,k,M=i.length,b=0,q=[],Z=[];function te(){return b}function U(H){throw e.error("Unclosed "+H,b)}function V(){return Z.length===0&&b>=M}function xe(H){if(Z.length)return Z.pop();if(b>=M)return;let j=H?H.ignoreUnclosed:!1;switch(o=i.charCodeAt(b),o){case Ke:case _e:case Xe:case Qe:case Je:{s=b;do s+=1,o=i.charCodeAt(s);while(o===_e||o===Ke||o===Xe||o===Qe||o===Je);k=["space",i.slice(b,s)],b=s-1;break}case no:case ro:case lo:case ao:case ho:case co:case oo:{let ie=String.fromCharCode(o);k=[ie,ie,b];break}case so:{if(f=q.length?q.pop()[1]:"",x=i.charCodeAt(b+1),f==="url"&&x!==zt&&x!==Ki&&x!==_e&&x!==Ke&&x!==Xe&&x!==Je&&x!==Qe){s=b;do{if(d=!1,s=i.indexOf(")",s+1),s===-1)if(r||j){s=b;break}else U("bracket");for(p=s;i.charCodeAt(p-1)===Ve;)p-=1,d=!d}while(d);k=["brackets",i.slice(b,s+1),b,s],b=s}else s=i.indexOf(")",b+1),a=i.slice(b,s+1),s===-1||fo.test(a)?k=["(","(",b]:(k=["brackets",a,b,s],b=s);break}case zt:case Ki:{l=o===zt?"'":'"',s=b;do{if(d=!1,s=i.indexOf(l,s+1),s===-1)if(r||j){s=b+1;break}else U("string");for(p=s;i.charCodeAt(p-1)===Ve;)p-=1,d=!d}while(d);k=["string",i.slice(b,s+1),b,s],b=s;break}case po:{Ye.lastIndex=b+1,Ye.test(i),Ye.lastIndex===0?s=i.length-1:s=Ye.lastIndex-2,k=["at-word",i.slice(b,s+1),b,s],b=s;break}case Ve:{for(s=b,c=!0;i.charCodeAt(s+1)===Ve;)s+=1,c=!c;if(o=i.charCodeAt(s+1),c&&o!==Ji&&o!==_e&&o!==Ke&&o!==Xe&&o!==Qe&&o!==Je&&(s+=1,Xi.test(i.charAt(s)))){for(;Xi.test(i.charAt(s+1));)s+=1;i.charCodeAt(s+1)===_e&&(s+=1)}k=["word",i.slice(b,s+1),b,s],b=s;break}default:{o===Ji&&i.charCodeAt(b+1)===uo?(s=i.indexOf("*/",b+2)+1,s===0&&(r||j?s=i.length:U("comment")),k=["comment",i.slice(b,s+1),b,s],b=s):(et.lastIndex=b+1,et.test(i),et.lastIndex===0?s=i.length-1:s=et.lastIndex-2,k=["word",i.slice(b,s+1),b,s],q.push(k),b=s);break}}return b++,k}function he(H){Z.push(H)}return{back:he,endOfFile:V,nextToken:xe,position:te}};let Hn=de,ct=class extends Hn{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 fi=ct;ct.default=ct;Hn.registerAtRule(ct);let Fn=de,Wn,Gn,be=class extends Fn{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,i){let r=super.normalize(e);if(t){if(i==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let o of r)o.raws.before=t.raws.before}return r}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 Wn(new Gn,this,e).stringify()}};be.registerLazyResult=n=>{Wn=n};be.registerProcessor=n=>{Gn=n};var De=be;be.default=be;Fn.registerRoot(be);let Ne={comma(n){return Ne.split(n,[","],!0)},space(n){let e=[" ",`
|
|
329
|
-
`," "];return Ne.split(n,e)},split(n,e,t){let i=[],r="",o=!1,s=0,l=!1,a="",c=!1;for(let d of n)c?c=!1:d==="\\"?c=!0:l?d===a&&(l=!1):d==='"'||d==="'"?(l=!0,a=d):d==="("?s+=1:d===")"?s>0&&(s-=1):s===0&&e.includes(d)&&(o=!0),o?(r!==""&&i.push(r.trim()),r="",o=!1):r+=d;return(t||r!=="")&&i.push(r.trim()),i}};var qn=Ne;Ne.default=Ne;let Zn=de,go=qn,dt=class extends Zn{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return go.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 mi=dt;dt.default=dt;Zn.registerRule(dt);let bo=bt,yo=mo,wo=wt,vo=fi,xo=De,Qi=mi;const Yi={empty:!0,space:!0};function Eo(n){for(let e=n.length-1;e>=0;e--){let t=n[e],i=t[3]||t[2];if(i)return i}}let _o=class{constructor(e){this.input=e,this.root=new xo,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 vo;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let i,r,o,s=!1,l=!1,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?c.push(i==="("?")":"]"):i==="{"&&c.length>0?c.push("}"):i===c[c.length-1]&&c.pop(),c.length===0)if(i===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){l=!0;break}else if(i==="}"){if(a.length>0){for(o=a.length-1,r=a[o];r&&r[0]==="space";)r=a[--o];r&&(t.source.end=this.getPosition(r[3]||r[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),s&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),l&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let i=0,r;for(let o=t-1;o>=0&&(r=e[o],!(r[0]!=="space"&&(i+=1,i===2)));o--);throw this.input.error("Missed semicolon",r[0]==="word"?r[3]+1:r[2])}colon(e){let t=0,i,r,o;for(let[s,l]of e.entries()){if(i=l,r=i[0],r==="("&&(t+=1),r===")"&&(t-=1),t===0&&r===":")if(!o)this.doubleColon(i);else{if(o[0]==="word"&&o[1]==="progid")continue;return s}o=i}return!1}comment(e){let t=new wo;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 r=i.match(/^(\s*)([^]*\S)(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}}createTokenizer(){this.tokenizer=yo(this.input)}decl(e,t){let i=new bo;this.init(i,e[0][2]);let r=e[e.length-1];for(r[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(r[3]||r[2]||Eo(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){i.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),i.raws.between+=o[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));let s=[],l;for(;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)s.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(o=e[c],o[1].toLowerCase()==="!important"){i.important=!0;let d=this.stringFrom(e,c);d=this.spacesFromEnd(e)+d,d!==" !important"&&(i.raws.important=d);break}else if(o[1].toLowerCase()==="important"){let d=e.slice(0),p="";for(let f=c;f>0;f--){let x=d[f][0];if(p.trim().indexOf("!")===0&&x!=="space")break;p=d.pop()[1]+p}p.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=p,e=d)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(i.raws.between+=s.map(c=>c[1]).join(""),s=[]),this.raw(i,"value",s.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 Qi;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,r=!1,o=null,s=[],l=e[1].startsWith("--"),a=[],c=e;for(;c;){if(i=c[0],a.push(c),i==="("||i==="[")o||(o=c),s.push(i==="("?")":"]");else if(l&&r&&i==="{")o||(o=c),s.push("}");else if(s.length===0)if(i===";")if(r){this.decl(a,l);return}else break;else if(i==="{"){this.rule(a);return}else if(i==="}"){this.tokenizer.back(a.pop()),t=!0;break}else i===":"&&(r=!0);else i===s[s.length-1]&&(s.pop(),s.length===0&&(o=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),s.length>0&&this.unclosedBracket(o),t&&r){if(!l)for(;a.length&&(c=a[a.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,l)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,i,r){let o,s,l=i.length,a="",c=!0,d,p;for(let f=0;f<l;f+=1)o=i[f],s=o[0],s==="space"&&f===l-1&&!r?c=!1:s==="comment"?(p=i[f-1]?i[f-1][0]:"empty",d=i[f+1]?i[f+1][0]:"empty",!Yi[p]&&!Yi[d]?a.slice(-1)===","?c=!1:a+=o[1]:c=!1):a+=o[1];if(!c){let f=i.reduce((x,k)=>x+k[1],"");e.raws[t]={raw:f,value:a}}e[t]=a}rule(e){e.pop();let t=new Qi;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 r=t;r<e.length;r++)i+=e[r][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 Ao=_o;let So=de,$o=Ao,Co=yt;function ut(n,e){let t=new Co(n,e),i=new $o(t);try{i.parse()}catch(r){throw r}return i.root}var gi=ut;ut.default=ut;So.registerParse(ut);let{isClean:G,my:ko}=ze,Oo=On,Ro=mt,Mo=de,No=hi,en=pi,Po=gi,To=De;const Lo={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Io={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},jo={Once:!0,postcssPlugin:!0,prepare:!0},ye=0;function Ae(n){return typeof n=="object"&&typeof n.then=="function"}function Vn(n){let e=!1,t=Lo[n.type];return n.type==="decl"?e=n.prop.toLowerCase():n.type==="atrule"&&(e=n.name.toLowerCase()),e&&n.append?[t,t+"-"+e,ye,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:n.append?[t,ye,t+"Exit"]:[t,t+"Exit"]}function tn(n){let e;return n.type==="document"?e=["Document",ye,"DocumentExit"]:n.type==="root"?e=["Root",ye,"RootExit"]:e=Vn(n),{eventIndex:0,events:e,iterator:0,node:n,visitorIndex:0,visitors:[]}}function ii(n){return n[G]=!1,n.nodes&&n.nodes.forEach(e=>ii(e)),n}let ni={},we=class Kn{constructor(e,t,i){this.stringified=!1,this.processed=!1;let r;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))r=ii(t);else if(t instanceof Kn||t instanceof en)r=ii(t.root),t.map&&(typeof i.map>"u"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=t.map);else{let o=Po;i.syntax&&(o=i.syntax.parse),i.parser&&(o=i.parser),o.parse&&(o=o.parse);try{r=o(t,i)}catch(s){this.processed=!0,this.error=s}r&&!r[ko]&&Mo.rebuild(r)}this.result=new en(e,r,i),this.helpers={...ni,postcss:ni,result:this.result},this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?{...o,...o.prepare(this.result)}:o)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let i=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=i.postcssPlugin,e.setMessage()):i.postcssVersion}catch(r){console&&console.error&&console.error(r)}return e}prepareVisitors(){this.listeners={};let e=(t,i,r)=>{this.listeners[i]||(this.listeners[i]=[]),this.listeners[i].push([t,r])};for(let t of this.plugins)if(typeof t=="object")for(let i in t){if(!Io[i]&&/^[A-Z]/.test(i))throw new Error(`Unknown event ${i} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!jo[i])if(typeof t[i]=="object")for(let r in t[i])r==="*"?e(t,i,t[i][r]):e(t,i+"-"+r.toLowerCase(),t[i][r]);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(Ae(i))try{await i}catch(r){throw this.handleError(r)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[G];){e[G]=!0;let t=[tn(e)];for(;t.length>0;){let i=this.visitTick(t);if(Ae(i))try{await i}catch(r){let o=t[t.length-1].node;throw this.handleError(r,o)}}}if(this.listeners.OnceExit)for(let[t,i]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let r=e.nodes.map(o=>i(o,this.helpers));await Promise.all(r)}else await i(e,this.helpers)}catch(r){throw this.handleError(r)}}}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 Ae(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=Ro;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let r=new Oo(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[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(Ae(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[G];)e[G]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[i,r]of e){this.result.lastPlugin=i;let o;try{o=r(t,this.helpers)}catch(s){throw this.handleError(s,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(Ae(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:i,visitors:r}=t;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){let[s,l]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=s;try{return l(i.toProxy(),this.helpers)}catch(a){throw this.handleError(a,i)}}if(t.iterator!==0){let s=t.iterator,l;for(;l=i.nodes[i.indexes[s]];)if(i.indexes[s]+=1,!l[G]){l[G]=!0,e.push(tn(l));return}t.iterator=0,delete i.indexes[s]}let o=t.events;for(;t.eventIndex<o.length;){let s=o[t.eventIndex];if(t.eventIndex+=1,s===ye){i.nodes&&i.nodes.length&&(i[G]=!0,t.iterator=i.getIterator());return}else if(this.listeners[s]){t.visitors=this.listeners[s];return}}e.pop()}walkSync(e){e[G]=!0;let t=Vn(e);for(let i of t)if(i===ye)e.nodes&&e.each(r=>{r[G]||this.walkSync(r)});else{let r=this.listeners[i];if(r&&this.visitSync(r,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"}};we.registerPostcss=n=>{ni=n};var Jn=we;we.default=we;To.registerLazyResult(we);No.registerLazyResult(we);let zo=On,Do=mt,Uo=gi;const Bo=pi;let ri=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 r,o=Do;this.result=new Bo(this._processor,r,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let l=new zo(o,r,this._opts,t);if(l.isMap()){let[a,c]=l.generate();a&&(this.result.css=a),c&&(this.result.map=c)}}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=Uo;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 Ho=ri;ri.default=ri;let Fo=Ho,Wo=Jn,Go=hi,qo=De,Pe=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 Fo(this,e,t):new Wo(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Zo=Pe;Pe.default=Pe;qo.registerProcessor(Pe);Go.registerProcessor(Pe);let Vo=bt,Ko=An,Jo=wt,Xo=fi,Qo=yt,Yo=De,el=mi;function Te(n,e){if(Array.isArray(n))return n.map(r=>Te(r));let{inputs:t,...i}=n;if(t){e=[];for(let r of t){let o={...r,__proto__:Qo.prototype};o.map&&(o.map={...o.map,__proto__:Ko.prototype}),e.push(o)}}if(i.nodes&&(i.nodes=n.nodes.map(r=>Te(r,e))),i.source){let{inputId:r,...o}=i.source;i.source=o,r!=null&&(i.source.input=e[r])}if(i.type==="root")return new Yo(i);if(i.type==="decl")return new Vo(i);if(i.type==="rule")return new el(i);if(i.type==="comment")return new Jo(i);if(i.type==="atrule")return new Xo(i);throw new Error("Unknown node type: "+n.type)}var tl=Te;Te.default=Te;var nn={};let il=ci,Xn=bt,nl=Jn,rl=de,bi=Zo,sl=mt,ol=tl,Qn=hi,ll=Bn,Yn=wt,er=fi,al=pi,cl=yt,dl=gi,ul=qn,tr=mi,ir=De,hl=gt;function _(...n){return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new bi(n)}_.plugin=function(e,t){let i=!1;function r(...s){console&&console.warn&&!i&&(i=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
330
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),nn.LANG&&nn.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
331
|
-
https://www.w3ctech.com/topic/2226`));let l=t(...s);return l.postcssPlugin=e,l.postcssVersion=new bi().version,l}let o;return Object.defineProperty(r,"postcss",{get(){return o||(o=r()),o}}),r.process=function(s,l,a){return _([r(a)]).process(s,l)},r};_.stringify=sl;_.parse=dl;_.fromJSON=ol;_.list=ul;_.comment=n=>new Yn(n);_.atRule=n=>new er(n);_.decl=n=>new Xn(n);_.rule=n=>new tr(n);_.root=n=>new ir(n);_.document=n=>new Qn(n);_.CssSyntaxError=il;_.Declaration=Xn;_.Container=rl;_.Processor=bi;_.Document=Qn;_.Comment=Yn;_.Warning=ll;_.AtRule=er;_.Result=al;_.Input=cl;_.Rule=tr;_.Root=ir;_.Node=hl;nl.registerPostcss(_);var pl=_;_.default=_;const C=vn(pl);C.stringify;C.fromJSON;C.plugin;C.parse;C.list;C.document;C.comment;C.atRule;C.rule;C.decl;C.root;C.CssSyntaxError;C.Declaration;C.Container;C.Processor;C.Document;C.Comment;C.Warning;C.AtRule;C.Result;C.Input;C.Rule;C.Root;C.Node;var fl=function(e){const t=e.prefix,i=/\s+$/.test(t)?t:`${t} `,r=e.ignoreFiles?[].concat(e.ignoreFiles):[],o=e.includeFiles?[].concat(e.includeFiles):[];return function(s){r.length&&s.source.input.file&&rn(s.source.input.file,r)||o.length&&s.source.input.file&&!rn(s.source.input.file,o)||s.walkRules(l=>{const a=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes"];l.parent&&a.includes(l.parent.name)||(l.selectors=l.selectors.map(c=>e.exclude&&ml(c,e.exclude)?c:e.transform?e.transform(t,c,i+c,s.source.input.file,l):i+c))})}};function rn(n,e){return e.some(t=>t instanceof RegExp?t.test(n):n.includes(t))}function ml(n,e){return e.some(t=>t instanceof RegExp?t.test(n):n===t)}const gl=vn(fl),bl="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}",yl="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 wl(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function nr(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error("set is read-only")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(e=>{const t=n[e],i=typeof t;(i==="object"||i==="function")&&!Object.isFrozen(t)&&nr(t)}),n}class sn{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function rr(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function ee(n,...e){const t=Object.create(null);for(const i in n)t[i]=n[i];return e.forEach(function(i){for(const r in i)t[r]=i[r]}),t}const vl="</span>",on=n=>!!n.scope,xl=(n,{prefix:e})=>{if(n.startsWith("language:"))return n.replace("language:","language-");if(n.includes(".")){const t=n.split(".");return[`${e}${t.shift()}`,...t.map((i,r)=>`${i}${"_".repeat(r+1)}`)].join(" ")}return`${e}${n}`};class El{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=rr(e)}openNode(e){if(!on(e))return;const t=xl(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){on(e)&&(this.buffer+=vl)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const ln=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class yi{constructor(){this.rootNode=ln(),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=ln({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=>{yi._collapse(t)}))}}class _l extends yi{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 El(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Le(n){return n?typeof n=="string"?n:n.source:null}function sr(n){return ue("(?=",n,")")}function Al(n){return ue("(?:",n,")*")}function Sl(n){return ue("(?:",n,")?")}function ue(...n){return n.map(e=>Le(e)).join("")}function $l(n){const e=n[n.length-1];return typeof e=="object"&&e.constructor===Object?(n.splice(n.length-1,1),e):{}}function wi(...n){return"("+($l(n).capture?"":"?:")+n.map(e=>Le(e)).join("|")+")"}function or(n){return new RegExp(n.toString()+"|").exec("").length-1}function Cl(n,e){const t=n&&n.exec(e);return t&&t.index===0}const kl=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function vi(n,{joinWith:e}){let t=0;return n.map(i=>{t+=1;const r=t;let o=Le(i),s="";for(;o.length>0;){const l=kl.exec(o);if(!l){s+=o;break}s+=o.substring(0,l.index),o=o.substring(l.index+l[0].length),l[0][0]==="\\"&&l[1]?s+="\\"+String(Number(l[1])+r):(s+=l[0],l[0]==="("&&t++)}return s}).map(i=>`(${i})`).join(e)}const Ol=/\b\B/,lr="[a-zA-Z]\\w*",xi="[a-zA-Z_]\\w*",ar="\\b\\d+(\\.\\d+)?",cr="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",dr="\\b(0b[01]+)",Rl="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Ml=(n={})=>{const e=/^#![ ]*\//;return n.binary&&(n.begin=ue(e,/.*\b/,n.binary,/\b.*/)),ee({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,i)=>{t.index!==0&&i.ignoreMatch()}},n)},Ie={begin:"\\\\[\\s\\S]",relevance:0},Nl={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ie]},Pl={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ie]},Tl={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/},vt=function(n,e,t={}){const i=ee({scope:"comment",begin:n,end:e,contains:[]},t);i.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const r=wi("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:ue(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),i},Ll=vt("//","$"),Il=vt("/\\*","\\*/"),jl=vt("#","$"),zl={scope:"number",begin:ar,relevance:0},Dl={scope:"number",begin:cr,relevance:0},Ul={scope:"number",begin:dr,relevance:0},Bl={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ie,{begin:/\[/,end:/\]/,relevance:0,contains:[Ie]}]},Hl={scope:"title",begin:lr,relevance:0},Fl={scope:"title",begin:xi,relevance:0},Wl={begin:"\\.\\s*"+xi,relevance:0},Gl=function(n){return Object.assign(n,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var tt=Object.freeze({__proto__:null,APOS_STRING_MODE:Nl,BACKSLASH_ESCAPE:Ie,BINARY_NUMBER_MODE:Ul,BINARY_NUMBER_RE:dr,COMMENT:vt,C_BLOCK_COMMENT_MODE:Il,C_LINE_COMMENT_MODE:Ll,C_NUMBER_MODE:Dl,C_NUMBER_RE:cr,END_SAME_AS_BEGIN:Gl,HASH_COMMENT_MODE:jl,IDENT_RE:lr,MATCH_NOTHING_RE:Ol,METHOD_GUARD:Wl,NUMBER_MODE:zl,NUMBER_RE:ar,PHRASAL_WORDS_MODE:Tl,QUOTE_STRING_MODE:Pl,REGEXP_MODE:Bl,RE_STARTERS_RE:Rl,SHEBANG:Ml,TITLE_MODE:Hl,UNDERSCORE_IDENT_RE:xi,UNDERSCORE_TITLE_MODE:Fl});function ql(n,e){n.input[n.index-1]==="."&&e.ignoreMatch()}function Zl(n,e){n.className!==void 0&&(n.scope=n.className,delete n.className)}function Vl(n,e){e&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=ql,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function Kl(n,e){Array.isArray(n.illegal)&&(n.illegal=wi(...n.illegal))}function Jl(n,e){if(n.match){if(n.begin||n.end)throw new Error("begin & end are not supported with match");n.begin=n.match,delete n.match}}function Xl(n,e){n.relevance===void 0&&(n.relevance=1)}const Ql=(n,e)=>{if(!n.beforeMatch)return;if(n.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},n);Object.keys(n).forEach(i=>{delete n[i]}),n.keywords=t.keywords,n.begin=ue(t.beforeMatch,sr(t.begin)),n.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},n.relevance=0,delete t.beforeMatch},Yl=["of","and","for","in","not","or","if","then","parent","list","value"],ea="keyword";function ur(n,e,t=ea){const i=Object.create(null);return typeof n=="string"?r(t,n.split(" ")):Array.isArray(n)?r(t,n):Object.keys(n).forEach(function(o){Object.assign(i,ur(n[o],e,o))}),i;function r(o,s){e&&(s=s.map(l=>l.toLowerCase())),s.forEach(function(l){const a=l.split("|");i[a[0]]=[o,ta(a[0],a[1])]})}}function ta(n,e){return e?Number(e):ia(n)?0:1}function ia(n){return Yl.includes(n.toLowerCase())}const an={},le=n=>{console.error(n)},cn=(n,...e)=>{console.log(`WARN: ${n}`,...e)},pe=(n,e)=>{an[`${n}/${e}`]||(console.log(`Deprecated as of ${n}. ${e}`),an[`${n}/${e}`]=!0)},ht=new Error;function hr(n,e,{key:t}){let i=0;const r=n[t],o={},s={};for(let l=1;l<=e.length;l++)s[l+i]=r[l],o[l+i]=!0,i+=or(e[l-1]);n[t]=s,n[t]._emit=o,n[t]._multi=!0}function na(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw le("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),ht;if(typeof n.beginScope!="object"||n.beginScope===null)throw le("beginScope must be object"),ht;hr(n,n.begin,{key:"beginScope"}),n.begin=vi(n.begin,{joinWith:""})}}function ra(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw le("skip, excludeEnd, returnEnd not compatible with endScope: {}"),ht;if(typeof n.endScope!="object"||n.endScope===null)throw le("endScope must be object"),ht;hr(n,n.end,{key:"endScope"}),n.end=vi(n.end,{joinWith:""})}}function sa(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function oa(n){sa(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),na(n),ra(n)}function la(n){function e(s,l){return new RegExp(Le(s),"m"+(n.case_insensitive?"i":"")+(n.unicodeRegex?"u":"")+(l?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(l,a){a.position=this.position++,this.matchIndexes[this.matchAt]=a,this.regexes.push([a,l]),this.matchAt+=or(l)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const l=this.regexes.map(a=>a[1]);this.matcherRe=e(vi(l,{joinWith:"|"}),!0),this.lastIndex=0}exec(l){this.matcherRe.lastIndex=this.lastIndex;const a=this.matcherRe.exec(l);if(!a)return null;const c=a.findIndex((p,f)=>f>0&&p!==void 0),d=this.matchIndexes[c];return a.splice(0,c),Object.assign(a,d)}}class i{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(l){if(this.multiRegexes[l])return this.multiRegexes[l];const a=new t;return this.rules.slice(l).forEach(([c,d])=>a.addRule(c,d)),a.compile(),this.multiRegexes[l]=a,a}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(l,a){this.rules.push([l,a]),a.type==="begin"&&this.count++}exec(l){const a=this.getMatcher(this.regexIndex);a.lastIndex=this.lastIndex;let c=a.exec(l);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const d=this.getMatcher(0);d.lastIndex=this.lastIndex+1,c=d.exec(l)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function r(s){const l=new i;return s.contains.forEach(a=>l.addRule(a.begin,{rule:a,type:"begin"})),s.terminatorEnd&&l.addRule(s.terminatorEnd,{type:"end"}),s.illegal&&l.addRule(s.illegal,{type:"illegal"}),l}function o(s,l){const a=s;if(s.isCompiled)return a;[Zl,Jl,oa,Ql].forEach(d=>d(s,l)),n.compilerExtensions.forEach(d=>d(s,l)),s.__beforeBegin=null,[Vl,Kl,Xl].forEach(d=>d(s,l)),s.isCompiled=!0;let c=null;return typeof s.keywords=="object"&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),c=s.keywords.$pattern,delete s.keywords.$pattern),c=c||/\w+/,s.keywords&&(s.keywords=ur(s.keywords,n.case_insensitive)),a.keywordPatternRe=e(c,!0),l&&(s.begin||(s.begin=/\B|\b/),a.beginRe=e(a.begin),!s.end&&!s.endsWithParent&&(s.end=/\B|\b/),s.end&&(a.endRe=e(a.end)),a.terminatorEnd=Le(a.end)||"",s.endsWithParent&&l.terminatorEnd&&(a.terminatorEnd+=(s.end?"|":"")+l.terminatorEnd)),s.illegal&&(a.illegalRe=e(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(function(d){return aa(d==="self"?s:d)})),s.contains.forEach(function(d){o(d,a)}),s.starts&&o(s.starts,l),a.matcher=r(a),a}if(n.compilerExtensions||(n.compilerExtensions=[]),n.contains&&n.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return n.classNameAliases=ee(n.classNameAliases||{}),o(n)}function pr(n){return n?n.endsWithParent||pr(n.starts):!1}function aa(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(e){return ee(n,{variants:null},e)})),n.cachedVariants?n.cachedVariants:pr(n)?ee(n,{starts:n.starts?ee(n.starts):null}):Object.isFrozen(n)?ee(n):n}var ca="11.9.0";class da extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Dt=rr,dn=ee,un=Symbol("nomatch"),ua=7,fr=function(n){const e=Object.create(null),t=Object.create(null),i=[];let r=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",s={disableAutodetect:!0,name:"Plain text",contains:[]};let l={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:_l};function a(u){return l.noHighlightRe.test(u)}function c(u){let m=u.className+" ";m+=u.parentNode?u.parentNode.className:"";const w=l.languageDetectRe.exec(m);if(w){const E=j(w[1]);return E||(cn(o.replace("{}",w[1])),cn("Falling back to no-highlight mode for this block.",u)),E?w[1]:"no-highlight"}return m.split(/\s+/).find(E=>a(E)||j(E))}function d(u,m,w){let E="",O="";typeof m=="object"?(E=u,w=m.ignoreIllegals,O=m.language):(pe("10.7.0","highlight(lang, code, ...args) has been deprecated."),pe("10.7.0",`Please use highlight(code, options) instead.
|
|
332
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),O=u,E=m),w===void 0&&(w=!0);const z={code:E,language:O};ne("before:highlight",z);const Q=z.result?z.result:p(z.language,z.code,w);return Q.code=z.code,ne("after:highlight",Q),Q}function p(u,m,w,E){const O=Object.create(null);function z(h,g){return h.keywords[g]}function Q(){if(!y.keywords){N.addText(S);return}let h=0;y.keywordPatternRe.lastIndex=0;let g=y.keywordPatternRe.exec(S),v="";for(;g;){v+=S.substring(h,g.index);const A=W.case_insensitive?g[0].toLowerCase():g[0],P=z(y,A);if(P){const[K,kr]=P;if(N.addText(v),v="",O[A]=(O[A]||0)+1,O[A]<=ua&&(Fe+=kr),K.startsWith("_"))v+=g[0];else{const Or=W.classNameAliases[K]||K;F(g[0],Or)}}else v+=g[0];h=y.keywordPatternRe.lastIndex,g=y.keywordPatternRe.exec(S)}v+=S.substring(h),N.addText(v)}function Be(){if(S==="")return;let h=null;if(typeof y.subLanguage=="string"){if(!e[y.subLanguage]){N.addText(S);return}h=p(y.subLanguage,S,!0,$i[y.subLanguage]),$i[y.subLanguage]=h._top}else h=x(S,y.subLanguage.length?y.subLanguage:null);y.relevance>0&&(Fe+=h.relevance),N.__addSublanguage(h._emitter,h.language)}function D(){y.subLanguage!=null?Be():Q(),S=""}function F(h,g){h!==""&&(N.startScope(g),N.addText(h),N.endScope())}function Ei(h,g){let v=1;const A=g.length-1;for(;v<=A;){if(!h._emit[v]){v++;continue}const P=W.classNameAliases[h[v]]||h[v],K=g[v];P?F(K,P):(S=K,Q(),S=""),v++}}function _i(h,g){return h.scope&&typeof h.scope=="string"&&N.openNode(W.classNameAliases[h.scope]||h.scope),h.beginScope&&(h.beginScope._wrap?(F(S,W.classNameAliases[h.beginScope._wrap]||h.beginScope._wrap),S=""):h.beginScope._multi&&(Ei(h.beginScope,g),S="")),y=Object.create(h,{parent:{value:y}}),y}function Ai(h,g,v){let A=Cl(h.endRe,v);if(A){if(h["on:end"]){const P=new sn(h);h["on:end"](g,P),P.isMatchIgnored&&(A=!1)}if(A){for(;h.endsParent&&h.parent;)h=h.parent;return h}}if(h.endsWithParent)return Ai(h.parent,g,v)}function _r(h){return y.matcher.regexIndex===0?(S+=h[0],1):(kt=!0,0)}function Ar(h){const g=h[0],v=h.rule,A=new sn(v),P=[v.__beforeBegin,v["on:begin"]];for(const K of P)if(K&&(K(h,A),A.isMatchIgnored))return _r(g);return v.skip?S+=g:(v.excludeBegin&&(S+=g),D(),!v.returnBegin&&!v.excludeBegin&&(S=g)),_i(v,h),v.returnBegin?0:g.length}function Sr(h){const g=h[0],v=m.substring(h.index),A=Ai(y,h,v);if(!A)return un;const P=y;y.endScope&&y.endScope._wrap?(D(),F(g,y.endScope._wrap)):y.endScope&&y.endScope._multi?(D(),Ei(y.endScope,h)):P.skip?S+=g:(P.returnEnd||P.excludeEnd||(S+=g),D(),P.excludeEnd&&(S=g));do y.scope&&N.closeNode(),!y.skip&&!y.subLanguage&&(Fe+=y.relevance),y=y.parent;while(y!==A.parent);return A.starts&&_i(A.starts,h),P.returnEnd?0:g.length}function $r(){const h=[];for(let g=y;g!==W;g=g.parent)g.scope&&h.unshift(g.scope);h.forEach(g=>N.openNode(g))}let He={};function Si(h,g){const v=g&&g[0];if(S+=h,v==null)return D(),0;if(He.type==="begin"&&g.type==="end"&&He.index===g.index&&v===""){if(S+=m.slice(g.index,g.index+1),!r){const A=new Error(`0 width match regex (${u})`);throw A.languageName=u,A.badRule=He.rule,A}return 1}if(He=g,g.type==="begin")return Ar(g);if(g.type==="illegal"&&!w){const A=new Error('Illegal lexeme "'+v+'" for mode "'+(y.scope||"<unnamed>")+'"');throw A.mode=y,A}else if(g.type==="end"){const A=Sr(g);if(A!==un)return A}if(g.type==="illegal"&&v==="")return 1;if(Ct>1e5&&Ct>g.index*3)throw new Error("potential infinite loop, way more iterations than matches");return S+=v,v.length}const W=j(u);if(!W)throw le(o.replace("{}",u)),new Error('Unknown language: "'+u+'"');const Cr=la(W);let $t="",y=E||Cr;const $i={},N=new l.__emitter(l);$r();let S="",Fe=0,re=0,Ct=0,kt=!1;try{if(W.__emitTokens)W.__emitTokens(m,N);else{for(y.matcher.considerAll();;){Ct++,kt?kt=!1:y.matcher.considerAll(),y.matcher.lastIndex=re;const h=y.matcher.exec(m);if(!h)break;const g=m.substring(re,h.index),v=Si(g,h);re=h.index+v}Si(m.substring(re))}return N.finalize(),$t=N.toHTML(),{language:u,value:$t,relevance:Fe,illegal:!1,_emitter:N,_top:y}}catch(h){if(h.message&&h.message.includes("Illegal"))return{language:u,value:Dt(m),illegal:!0,relevance:0,_illegalBy:{message:h.message,index:re,context:m.slice(re-100,re+100),mode:h.mode,resultSoFar:$t},_emitter:N};if(r)return{language:u,value:Dt(m),illegal:!1,relevance:0,errorRaised:h,_emitter:N,_top:y};throw h}}function f(u){const m={value:Dt(u),illegal:!1,relevance:0,_top:s,_emitter:new l.__emitter(l)};return m._emitter.addText(u),m}function x(u,m){m=m||l.languages||Object.keys(e);const w=f(u),E=m.filter(j).filter(Ue).map(D=>p(D,u,!1));E.unshift(w);const O=E.sort((D,F)=>{if(D.relevance!==F.relevance)return F.relevance-D.relevance;if(D.language&&F.language){if(j(D.language).supersetOf===F.language)return 1;if(j(F.language).supersetOf===D.language)return-1}return 0}),[z,Q]=O,Be=z;return Be.secondBest=Q,Be}function k(u,m,w){const E=m&&t[m]||w;u.classList.add("hljs"),u.classList.add(`language-${E}`)}function M(u){let m=null;const w=c(u);if(a(w))return;if(ne("before:highlightElement",{el:u,language:w}),u.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",u);return}if(u.children.length>0&&(l.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(u)),l.throwUnescapedHTML))throw new da("One of your code blocks includes unescaped HTML.",u.innerHTML);m=u;const E=m.textContent,O=w?d(E,{language:w,ignoreIllegals:!0}):x(E);u.innerHTML=O.value,u.dataset.highlighted="yes",k(u,w,O.language),u.result={language:O.language,re:O.relevance,relevance:O.relevance},O.secondBest&&(u.secondBest={language:O.secondBest.language,relevance:O.secondBest.relevance}),ne("after:highlightElement",{el:u,result:O,text:E})}function b(u){l=dn(l,u)}const q=()=>{U(),pe("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Z(){U(),pe("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let te=!1;function U(){if(document.readyState==="loading"){te=!0;return}document.querySelectorAll(l.cssSelector).forEach(M)}function V(){te&&U()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",V,!1);function xe(u,m){let w=null;try{w=m(n)}catch(E){if(le("Language definition for '{}' could not be registered.".replace("{}",u)),r)le(E);else throw E;w=s}w.name||(w.name=u),e[u]=w,w.rawDefinition=m.bind(null,n),w.aliases&&ie(w.aliases,{languageName:u})}function he(u){delete e[u];for(const m of Object.keys(t))t[m]===u&&delete t[m]}function H(){return Object.keys(e)}function j(u){return u=(u||"").toLowerCase(),e[u]||e[t[u]]}function ie(u,{languageName:m}){typeof u=="string"&&(u=[u]),u.forEach(w=>{t[w.toLowerCase()]=m})}function Ue(u){const m=j(u);return m&&!m.disableAutodetect}function Et(u){u["before:highlightBlock"]&&!u["before:highlightElement"]&&(u["before:highlightElement"]=m=>{u["before:highlightBlock"](Object.assign({block:m.el},m))}),u["after:highlightBlock"]&&!u["after:highlightElement"]&&(u["after:highlightElement"]=m=>{u["after:highlightBlock"](Object.assign({block:m.el},m))})}function _t(u){Et(u),i.push(u)}function At(u){const m=i.indexOf(u);m!==-1&&i.splice(m,1)}function ne(u,m){const w=u;i.forEach(function(E){E[w]&&E[w](m)})}function St(u){return pe("10.7.0","highlightBlock will be removed entirely in v12.0"),pe("10.7.0","Please use highlightElement now."),M(u)}Object.assign(n,{highlight:d,highlightAuto:x,highlightAll:U,highlightElement:M,highlightBlock:St,configure:b,initHighlighting:q,initHighlightingOnLoad:Z,registerLanguage:xe,unregisterLanguage:he,listLanguages:H,getLanguage:j,registerAliases:ie,autoDetection:Ue,inherit:dn,addPlugin:_t,removePlugin:At}),n.debugMode=function(){r=!1},n.safeMode=function(){r=!0},n.versionString=ca,n.regex={concat:ue,lookahead:sr,either:wi,optional:Sl,anyNumberOfTimes:Al};for(const u in tt)typeof tt[u]=="object"&&nr(tt[u]);return Object.assign(n,tt),n},ve=fr({});ve.newInstance=()=>fr({});var ha=ve;ve.HighlightJS=ve;ve.default=ve;const xt=wl(ha),pt="[A-Za-z$_][0-9A-Za-z$_]*",mr=["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"],gr=["true","false","null","undefined","NaN","Infinity"],br=["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"],yr=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],wr=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],vr=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],xr=[].concat(wr,br,yr);function pa(n){const e=n.regex,t=(u,{after:m})=>{const w="</"+u[0].slice(1);return u.input.indexOf(w,m)!==-1},i=pt,r={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(u,m)=>{const w=u[0].length+u.index,E=u.input[w];if(E==="<"||E===","){m.ignoreMatch();return}E===">"&&(t(u,{after:w})||m.ignoreMatch());let O;const z=u.input.substring(w);if(O=z.match(/^\s*=/)){m.ignoreMatch();return}if((O=z.match(/^\s+extends\s+/))&&O.index===0){m.ignoreMatch();return}}},l={$pattern:pt,keyword:mr,literal:gr,built_in:xr,"variable.language":vr},a="[0-9](_?[0-9])*",c=`\\.(${a})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${d})((${c})|\\.)?|(${c}))[eE][+-]?(${a})\\b`},{begin:`\\b(${d})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:l,contains:[]},x={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},k={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,f],subLanguage:"css"}},M={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,f]},q={className:"comment",variants:[n.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),n.C_BLOCK_COMMENT_MODE,n.C_LINE_COMMENT_MODE]},Z=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,x,k,M,b,{match:/\$\d+/},p];f.contains=Z.concat({begin:/\{/,end:/\}/,keywords:l,contains:["self"].concat(Z)});const te=[].concat(q,f.contains),U=te.concat([{begin:/\(/,end:/\)/,keywords:l,contains:["self"].concat(te)}]),V={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:U},xe={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"}}]},he={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:{_:[...br,...yr]}},H={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},j={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[V],illegal:/%/},ie={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Ue(u){return e.concat("(?!",u.join("|"),")")}const Et={match:e.concat(/\b/,Ue([...wr,"super","import"]),i,e.lookahead(/\(/)),className:"title.function",relevance:0},_t={begin:e.concat(/\./,e.lookahead(e.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},At={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},V]},ne="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+n.UNDERSCORE_IDENT_RE+")\\s*=>",St={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(ne)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[V]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:l,exports:{PARAMS_CONTAINS:U,CLASS_REFERENCE:he},illegal:/#(?![$_A-z])/,contains:[n.SHEBANG({label:"shebang",binary:"node",relevance:5}),H,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,x,k,M,b,q,{match:/\$\d+/},p,he,{className:"attr",begin:i+e.lookahead(":"),relevance:0},St,{begin:"("+n.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[q,n.REGEXP_MODE,{className:"function",begin:ne,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:U}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:o},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},j,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+n.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[V,n.inherit(n.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},_t,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[V]},Et,ie,xe,At,{match:/\$[(.]/}]}}function fa(n){const e=pa(n),t=pt,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],r={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[e.exports.CLASS_REFERENCE]},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[e.exports.CLASS_REFERENCE]},s={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},l=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],a={$pattern:pt,keyword:mr.concat(l),literal:gr,built_in:xr.concat(i),"variable.language":vr},c={className:"meta",begin:"@"+t},d=(f,x,k)=>{const M=f.contains.findIndex(b=>b.label===x);if(M===-1)throw new Error("can not find mode to replace");f.contains.splice(M,1,k)};Object.assign(e.keywords,a),e.exports.PARAMS_CONTAINS.push(c),e.contains=e.contains.concat([c,r,o]),d(e,"shebang",n.SHEBANG()),d(e,"use_strict",s);const p=e.contains.find(f=>f.label==="func.def");return p.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function ma(n){const e=n.regex,t=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i=/[\p{L}0-9._:-]+/u,r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=n.inherit(o,{begin:/\(/,end:/\)/}),l=n.inherit(n.APOS_STRING_MODE,{className:"string"}),a=n.inherit(n.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:i,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[r]},{begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,a,l,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,s,a,l]}]}]},n.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[a]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(t,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:t,relevance:0,starts:c}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(t,/>/))),contains:[{className:"name",begin:t,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const ga=n=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:n.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:n.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),ba=["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"],ya=["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"],wa=["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"],va=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],xa=["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 Ea(n){const e=n.regex,t=ga(n),i={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},r="and or not only",o=/@-?\w[\w]*(-\w+)*/,s="[a-zA-Z-][a-zA-Z0-9_-]*",l=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[t.BLOCK_COMMENT,i,t.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+s,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+wa.join("|")+")"},{begin:":(:)?("+va.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+xa.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[t.BLOCK_COMMENT,t.HEXCOLOR,t.IMPORTANT,t.CSS_NUMBER_MODE,...l,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...l,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},t.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:r,attribute:ya.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...l,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+ba.join("|")+")\\b"}]}}const Er=document.createElement("style");Er.innerText=[bl,yl].join(`
|
|
333
|
-
`);document.head.appendChild(
|
|
334
|
-
`).trim();return n&&n!="raw"&&(
|
|
329
|
+
`)&&(a=`\r
|
|
330
|
+
`),this.css+=a+"/*# sourceMappingURL="+o+" */"}applyPrevMaps(){for(let o of this.previous()){let a=this.toUrl(this.path(o.file)),f=o.root||n(o.file),m;this.mapOpts.sourcesContent===!1?(m=new t(o.text),m.sourcesContent&&(m.sourcesContent=null)):m=o.consumer(),this.map.applySourceMap(m,a,this.toUrl(this.path(f)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let o;for(let a=this.root.nodes.length-1;a>=0;a--)o=this.root.nodes[a],o.type==="comment"&&o.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(a)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),h&&b&&this.isMap())return this.generateMap();{let o="";return this.stringify(this.root,a=>{o+=a}),[o]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let o=this.previous()[0].consumer();o.file=this.outputFile(),this.map=u.fromSourceMap(o,{ignoreInvalidMapping:!0})}else this.map=new u({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new u({file:this.outputFile(),ignoreInvalidMapping:!0});let o=1,a=1,f="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},g,_;this.stringify(this.root,(E,v,w)=>{if(this.css+=E,v&&w!=="end"&&(m.generated.line=o,m.generated.column=a-1,v.source&&v.source.start?(m.source=this.sourcePath(v),m.original.line=v.source.start.line,m.original.column=v.source.start.column-1,this.map.addMapping(m)):(m.source=f,m.original.line=1,m.original.column=0,this.map.addMapping(m))),_=E.match(/\n/g),_?(o+=_.length,g=E.lastIndexOf(`
|
|
331
|
+
`),a=E.length-g):a+=E.length,v&&w!=="start"){let y=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==y.last||y.raws.semicolon)&&(v.source&&v.source.end?(m.source=this.sourcePath(v),m.original.line=v.source.end.line,m.original.column=v.source.end.column-1,m.generated.line=o,m.generated.column=a-2,this.map.addMapping(m)):(m.source=f,m.original.line=1,m.original.column=0,m.generated.line=o,m.generated.column=a-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(o=>o.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let o=this.mapOpts.annotation;return typeof o<"u"&&o!==!0?!1:this.previous().length?this.previous().some(a=>a.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(o=>o.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(o){if(this.mapOpts.absolute||o.charCodeAt(0)===60||/^\w+:\/\//.test(o))return o;let a=this.memoizedPaths.get(o);if(a)return a;let f=this.opts.to?n(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(f=n(i(f,this.mapOpts.annotation)));let m=e(f,o);return this.memoizedPaths.set(o,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(o=>{if(o.source&&o.source.input.map){let a=o.source.input.map;this.previousMaps.includes(a)||this.previousMaps.push(a)}});else{let o=new p(this.originalCSS,this.opts);o.map&&this.previousMaps.push(o.map)}return this.previousMaps}setSourcesContent(){let o={};if(this.root)this.root.walk(a=>{if(a.source){let f=a.source.input.from;if(f&&!o[f]){o[f]=!0;let m=this.usesFileUrls?this.toFileUrl(f):this.toUrl(this.path(f));this.map.setSourceContent(m,a.source.input.css)}}});else if(this.css){let a=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(a,this.css)}}sourcePath(o){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(o.source.input.from):this.toUrl(this.path(o.source.input.from))}toBase64(o){return Buffer?Buffer.from(o).toString("base64"):window.btoa(unescape(encodeURIComponent(o)))}toFileUrl(o){let a=this.memoizedFileURLs.get(o);if(a)return a;if(l){let f=l(o).toString();return this.memoizedFileURLs.set(o,f),f}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(o){let a=this.memoizedURLs.get(o);if(a)return a;r==="\\"&&(o=o.replace(/\\/g,"/"));let f=encodeURI(o).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(o,f),f}}return Kt=s,Kt}var Xt,gn;function js(){if(gn)return Xt;gn=1;const n=39,e=34,i=92,r=47,t=10,u=32,l=12,p=9,b=13,h=91,s=93,c=40,o=41,a=123,f=125,m=59,g=42,_=58,E=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,S=/[\da-f]/i;return Xt=function(L,B={}){let P=L.css.valueOf(),J=B.ignoreErrors,H,Ee,he,R,Ne,W,Y,ae,ce,ye,Se=P.length,j=0,ze=[],Pe=[];function Et(){return j}function Be(we){throw L.error("Unclosed "+we,j)}function St(){return Pe.length===0&&j>=Se}function Te(we){if(Pe.length)return Pe.pop();if(j>=Se)return;let Ue=we?we.ignoreUnclosed:!1;switch(H=P.charCodeAt(j),H){case t:case u:case p:case b:case l:{R=j;do R+=1,H=P.charCodeAt(R);while(H===u||H===t||H===p||H===b||H===l);W=["space",P.slice(j,R)],j=R-1;break}case h:case s:case a:case f:case _:case m:case o:{let Ye=String.fromCharCode(H);W=[Ye,Ye,j];break}case c:{if(ye=ze.length?ze.pop()[1]:"",ce=P.charCodeAt(j+1),ye==="url"&&ce!==n&&ce!==e&&ce!==u&&ce!==t&&ce!==p&&ce!==l&&ce!==b){R=j;do{if(Y=!1,R=P.indexOf(")",R+1),R===-1)if(J||Ue){R=j;break}else Be("bracket");for(ae=R;P.charCodeAt(ae-1)===i;)ae-=1,Y=!Y}while(Y);W=["brackets",P.slice(j,R+1),j,R],j=R}else R=P.indexOf(")",j+1),Ee=P.slice(j,R+1),R===-1||y.test(Ee)?W=["(","(",j]:(W=["brackets",Ee,j,R],j=R);break}case n:case e:{Ne=H===n?"'":'"',R=j;do{if(Y=!1,R=P.indexOf(Ne,R+1),R===-1)if(J||Ue){R=j+1;break}else Be("string");for(ae=R;P.charCodeAt(ae-1)===i;)ae-=1,Y=!Y}while(Y);W=["string",P.slice(j,R+1),j,R],j=R;break}case E:{v.lastIndex=j+1,v.test(P),v.lastIndex===0?R=P.length-1:R=v.lastIndex-2,W=["at-word",P.slice(j,R+1),j,R],j=R;break}case i:{for(R=j,he=!0;P.charCodeAt(R+1)===i;)R+=1,he=!he;if(H=P.charCodeAt(R+1),he&&H!==r&&H!==u&&H!==t&&H!==p&&H!==b&&H!==l&&(R+=1,S.test(P.charAt(R)))){for(;S.test(P.charAt(R+1));)R+=1;P.charCodeAt(R+1)===u&&(R+=1)}W=["word",P.slice(j,R+1),j,R],j=R;break}default:{H===r&&P.charCodeAt(j+1)===g?(R=P.indexOf("*/",j+2)+1,R===0&&(J||Ue?R=P.length:Be("comment")),W=["comment",P.slice(j,R+1),j,R],j=R):(w.lastIndex=j+1,w.test(P),w.lastIndex===0?R=P.length-1:R=w.lastIndex-2,W=["word",P.slice(j,R+1),j,R],ze.push(W),j=R);break}}return j++,W}function At(we){Pe.push(we)}return{back:At,endOfFile:St,nextToken:Te,position:Et}},Xt}var Qt,bn;function Ds(){if(bn)return Qt;bn=1;let n=yi(),e=wt(),i=vt(),r=Qe(),t=vi(),u=js();const l={empty:!0,space:!0};function p(h){for(let s=h.length-1;s>=0;s--){let c=h[s],o=c[3]||c[2];if(o)return o}}class b{constructor(s){this.input=s,this.root=new r,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:s,start:{column:1,line:1,offset:0}}}atrule(s){let c=new n;c.name=s[1].slice(1),c.name===""&&this.unnamedAtrule(c,s),this.init(c,s[2]);let o,a,f,m=!1,g=!1,_=[],E=[];for(;!this.tokenizer.endOfFile();){if(s=this.tokenizer.nextToken(),o=s[0],o==="("||o==="["?E.push(o==="("?")":"]"):o==="{"&&E.length>0?E.push("}"):o===E[E.length-1]&&E.pop(),E.length===0)if(o===";"){c.source.end=this.getPosition(s[2]),c.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){g=!0;break}else if(o==="}"){if(_.length>0){for(f=_.length-1,a=_[f];a&&a[0]==="space";)a=_[--f];a&&(c.source.end=this.getPosition(a[3]||a[2]),c.source.end.offset++)}this.end(s);break}else _.push(s);else _.push(s);if(this.tokenizer.endOfFile()){m=!0;break}}c.raws.between=this.spacesAndCommentsFromEnd(_),_.length?(c.raws.afterName=this.spacesAndCommentsFromStart(_),this.raw(c,"params",_),m&&(s=_[_.length-1],c.source.end=this.getPosition(s[3]||s[2]),c.source.end.offset++,this.spaces=c.raws.between,c.raws.between="")):(c.raws.afterName="",c.params=""),g&&(c.nodes=[],this.current=c)}checkMissedSemicolon(s){let c=this.colon(s);if(c===!1)return;let o=0,a;for(let f=c-1;f>=0&&(a=s[f],!(a[0]!=="space"&&(o+=1,o===2)));f--);throw this.input.error("Missed semicolon",a[0]==="word"?a[3]+1:a[2])}colon(s){let c=0,o,a,f;for(let[m,g]of s.entries()){if(a=g,f=a[0],f==="("&&(c+=1),f===")"&&(c-=1),c===0&&f===":")if(!o)this.doubleColon(a);else{if(o[0]==="word"&&o[1]==="progid")continue;return m}o=a}return!1}comment(s){let c=new e;this.init(c,s[2]),c.source.end=this.getPosition(s[3]||s[2]),c.source.end.offset++;let o=s[1].slice(2,-2);if(/^\s*$/.test(o))c.text="",c.raws.left=o,c.raws.right="";else{let a=o.match(/^(\s*)([^]*\S)(\s*)$/);c.text=a[2],c.raws.left=a[1],c.raws.right=a[3]}}createTokenizer(){this.tokenizer=u(this.input)}decl(s,c){let o=new i;this.init(o,s[0][2]);let a=s[s.length-1];for(a[0]===";"&&(this.semicolon=!0,s.pop()),o.source.end=this.getPosition(a[3]||a[2]||p(s)),o.source.end.offset++;s[0][0]!=="word";)s.length===1&&this.unknownWord(s),o.raws.before+=s.shift()[1];for(o.source.start=this.getPosition(s[0][2]),o.prop="";s.length;){let E=s[0][0];if(E===":"||E==="space"||E==="comment")break;o.prop+=s.shift()[1]}o.raws.between="";let f;for(;s.length;)if(f=s.shift(),f[0]===":"){o.raws.between+=f[1];break}else f[0]==="word"&&/\w/.test(f[1])&&this.unknownWord([f]),o.raws.between+=f[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));let m=[],g;for(;s.length&&(g=s[0][0],!(g!=="space"&&g!=="comment"));)m.push(s.shift());this.precheckMissedSemicolon(s);for(let E=s.length-1;E>=0;E--){if(f=s[E],f[1].toLowerCase()==="!important"){o.important=!0;let v=this.stringFrom(s,E);v=this.spacesFromEnd(s)+v,v!==" !important"&&(o.raws.important=v);break}else if(f[1].toLowerCase()==="important"){let v=s.slice(0),w="";for(let y=E;y>0;y--){let S=v[y][0];if(w.trim().startsWith("!")&&S!=="space")break;w=v.pop()[1]+w}w.trim().startsWith("!")&&(o.important=!0,o.raws.important=w,s=v)}if(f[0]!=="space"&&f[0]!=="comment")break}s.some(E=>E[0]!=="space"&&E[0]!=="comment")&&(o.raws.between+=m.map(E=>E[1]).join(""),m=[]),this.raw(o,"value",m.concat(s),c),o.value.includes(":")&&!c&&this.checkMissedSemicolon(s)}doubleColon(s){throw this.input.error("Double colon",{offset:s[2]},{offset:s[2]+s[1].length})}emptyRule(s){let c=new t;this.init(c,s[2]),c.selector="",c.raws.between="",this.current=c}end(s){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(s[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(s)}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(s){if(this.spaces+=s[1],this.current.nodes){let c=this.current.nodes[this.current.nodes.length-1];c&&c.type==="rule"&&!c.raws.ownSemicolon&&(c.raws.ownSemicolon=this.spaces,this.spaces="",c.source.end=this.getPosition(s[2]),c.source.end.offset+=c.raws.ownSemicolon.length)}}getPosition(s){let c=this.input.fromOffset(s);return{column:c.col,line:c.line,offset:s}}init(s,c){this.current.push(s),s.source={input:this.input,start:this.getPosition(c)},s.raws.before=this.spaces,this.spaces="",s.type!=="comment"&&(this.semicolon=!1)}other(s){let c=!1,o=null,a=!1,f=null,m=[],g=s[1].startsWith("--"),_=[],E=s;for(;E;){if(o=E[0],_.push(E),o==="("||o==="[")f||(f=E),m.push(o==="("?")":"]");else if(g&&a&&o==="{")f||(f=E),m.push("}");else if(m.length===0)if(o===";")if(a){this.decl(_,g);return}else break;else if(o==="{"){this.rule(_);return}else if(o==="}"){this.tokenizer.back(_.pop()),c=!0;break}else o===":"&&(a=!0);else o===m[m.length-1]&&(m.pop(),m.length===0&&(f=null));E=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(c=!0),m.length>0&&this.unclosedBracket(f),c&&a){if(!g)for(;_.length&&(E=_[_.length-1][0],!(E!=="space"&&E!=="comment"));)this.tokenizer.back(_.pop());this.decl(_,g)}else this.unknownWord(_)}parse(){let s;for(;!this.tokenizer.endOfFile();)switch(s=this.tokenizer.nextToken(),s[0]){case"space":this.spaces+=s[1];break;case";":this.freeSemicolon(s);break;case"}":this.end(s);break;case"comment":this.comment(s);break;case"at-word":this.atrule(s);break;case"{":this.emptyRule(s);break;default:this.other(s);break}this.endFile()}precheckMissedSemicolon(){}raw(s,c,o,a){let f,m,g=o.length,_="",E=!0,v,w;for(let y=0;y<g;y+=1)f=o[y],m=f[0],m==="space"&&y===g-1&&!a?E=!1:m==="comment"?(w=o[y-1]?o[y-1][0]:"empty",v=o[y+1]?o[y+1][0]:"empty",!l[w]&&!l[v]?_.slice(-1)===","?E=!1:_+=f[1]:E=!1):_+=f[1];if(!E){let y=o.reduce((S,O)=>S+O[1],"");s.raws[c]={raw:y,value:_}}s[c]=_}rule(s){s.pop();let c=new t;this.init(c,s[0][2]),c.raws.between=this.spacesAndCommentsFromEnd(s),this.raw(c,"selector",s),this.current=c}spacesAndCommentsFromEnd(s){let c,o="";for(;s.length&&(c=s[s.length-1][0],!(c!=="space"&&c!=="comment"));)o=s.pop()[1]+o;return o}spacesAndCommentsFromStart(s){let c,o="";for(;s.length&&(c=s[0][0],!(c!=="space"&&c!=="comment"));)o+=s.shift()[1];return o}spacesFromEnd(s){let c,o="";for(;s.length&&(c=s[s.length-1][0],c==="space");)o=s.pop()[1]+o;return o}stringFrom(s,c){let o="";for(let a=c;a<s.length;a++)o+=s[a][1];return s.splice(c,s.length-c),o}unclosedBlock(){let s=this.current.source.start;throw this.input.error("Unclosed block",s.line,s.column)}unclosedBracket(s){throw this.input.error("Unclosed bracket",{offset:s[2]},{offset:s[2]+1})}unexpectedClose(s){throw this.input.error("Unexpected }",{offset:s[2]},{offset:s[2]+1})}unknownWord(s){throw this.input.error("Unknown word "+s[0][1],{offset:s[0][2]},{offset:s[0][2]+s[0][1].length})}unnamedAtrule(s,c){throw this.input.error("At-rule without name",{offset:c[2]},{offset:c[2]+c[1].length})}}return Qt=b,Qt}var Yt,yn;function xi(){if(yn)return Yt;yn=1;let n=Me(),e=xt(),i=Ds();function r(t,u){let l=new e(t,u),p=new i(l);try{p.parse()}catch(b){throw b}return p.root}return Yt=r,r.default=r,n.registerParse(r),Yt}var ei,wn;function zn(){if(wn)return ei;wn=1;class n{constructor(i,r={}){if(this.type="warning",this.text=i,r.node&&r.node.source){let t=r.node.rangeBy(r);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in r)this[t]=r[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return ei=n,n.default=n,ei}var ti,vn;function _i(){if(vn)return ti;vn=1;let n=zn();class e{get content(){return this.css}constructor(r,t,u){this.processor=r,this.messages=[],this.root=t,this.opts=u,this.css="",this.map=void 0}toString(){return this.css}warn(r,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let u=new n(r,t);return this.messages.push(u),u}warnings(){return this.messages.filter(r=>r.type==="warning")}}return ti=e,e.default=e,ti}var ii,xn;function Bn(){if(xn)return ii;xn=1;let n=Me(),e=wi(),i=Dn(),r=xi(),t=_i(),u=Qe(),l=bt(),{isClean:p,my:b}=bi();const h={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},s={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},o=0;function a(v){return typeof v=="object"&&typeof v.then=="function"}function f(v){let w=!1,y=h[v.type];return v.type==="decl"?w=v.prop.toLowerCase():v.type==="atrule"&&(w=v.name.toLowerCase()),w&&v.append?[y,y+"-"+w,o,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:v.append?[y,o,y+"Exit"]:[y,y+"Exit"]}function m(v){let w;return v.type==="document"?w=["Document",o,"DocumentExit"]:v.type==="root"?w=["Root",o,"RootExit"]:w=f(v),{eventIndex:0,events:w,iterator:0,node:v,visitorIndex:0,visitors:[]}}function g(v){return v[p]=!1,v.nodes&&v.nodes.forEach(w=>g(w)),v}let _={};class E{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(w,y,S){this.stringified=!1,this.processed=!1;let O;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))O=g(y);else if(y instanceof E||y instanceof t)O=g(y.root),y.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=y.map);else{let L=r;S.syntax&&(L=S.syntax.parse),S.parser&&(L=S.parser),L.parse&&(L=L.parse);try{O=L(y,S)}catch(B){this.processed=!0,this.error=B}O&&!O[b]&&n.rebuild(O)}this.result=new t(w,O,S),this.helpers={..._,postcss:_,result:this.result},this.plugins=this.processor.plugins.map(L=>typeof L=="object"&&L.prepare?{...L,...L.prepare(this.result)}:L)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let S=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=S.postcssPlugin,w.setMessage()):S.postcssVersion}catch(O){console&&console.error&&console.error(O)}return w}prepareVisitors(){this.listeners={};let w=(y,S,O)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([y,O])};for(let y of this.plugins)if(typeof y=="object")for(let S in y){if(!s[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[S])if(typeof y[S]=="object")for(let O in y[S])O==="*"?w(y,S,y[S][O]):w(y,S+"-"+O.toLowerCase(),y[S][O]);else typeof y[S]=="function"&&w(y,S,y[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],S=this.runOnRoot(y);if(a(S))try{await S}catch(O){throw this.handleError(O)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[p];){w[p]=!0;let y=[m(w)];for(;y.length>0;){let S=this.visitTick(y);if(a(S))try{await S}catch(O){let L=y[y.length-1].node;throw this.handleError(O,L)}}}if(this.listeners.OnceExit)for(let[y,S]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let O=w.nodes.map(L=>S(L,this.helpers));await Promise.all(O)}else await S(w,this.helpers)}catch(O){throw this.handleError(O)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(S=>w.Once(S,this.helpers));return a(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=l;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let O=new i(y,this.result.root,this.result.opts).generate();return this.result.css=O[0],this.result.map=O[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let y=this.runOnRoot(w);if(a(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[p];)w[p]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let y of w.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,y){return this.async().then(w,y)}toString(){return this.css}visitSync(w,y){for(let[S,O]of w){this.result.lastPlugin=S;let L;try{L=O(y,this.helpers)}catch(B){throw this.handleError(B,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(a(L))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:S,visitors:O}=y;if(S.type!=="root"&&S.type!=="document"&&!S.parent){w.pop();return}if(O.length>0&&y.visitorIndex<O.length){let[B,P]=O[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===O.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=B;try{return P(S.toProxy(),this.helpers)}catch(J){throw this.handleError(J,S)}}if(y.iterator!==0){let B=y.iterator,P;for(;P=S.nodes[S.indexes[B]];)if(S.indexes[B]+=1,!P[p]){P[p]=!0,w.push(m(P));return}y.iterator=0,delete S.indexes[B]}let L=y.events;for(;y.eventIndex<L.length;){let B=L[y.eventIndex];if(y.eventIndex+=1,B===o){S.nodes&&S.nodes.length&&(S[p]=!0,y.iterator=S.getIterator());return}else if(this.listeners[B]){y.visitors=this.listeners[B];return}}w.pop()}walkSync(w){w[p]=!0;let y=f(w);for(let S of y)if(S===o)w.nodes&&w.each(O=>{O[p]||this.walkSync(O)});else{let O=this.listeners[S];if(O&&this.visitSync(O,w.toProxy()))return}}warnings(){return this.sync().warnings()}}return E.registerPostcss=v=>{_=v},ii=E,E.default=E,u.registerLazyResult(E),e.registerLazyResult(E),ii}var ni,_n;function zs(){if(_n)return ni;_n=1;let n=Dn(),e=xi();const i=_i();let r=bt();class t{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let l,p=e;try{l=p(this._css,this._opts)}catch(b){this.error=b}if(this.error)throw this.error;return this._root=l,l}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(l,p,b){p=p.toString(),this.stringified=!1,this._processor=l,this._css=p,this._opts=b,this._map=void 0;let h,s=r;this.result=new i(this._processor,h,this._opts),this.result.css=p;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let o=new n(s,h,this._opts,p);if(o.isMap()){let[a,f]=o.generate();a&&(this.result.css=a),f&&(this.result.map=f)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(l){return this.async().catch(l)}finally(l){return this.async().then(l,l)}sync(){if(this.error)throw this.error;return this.result}then(l,p){return this.async().then(l,p)}toString(){return this._css}warnings(){return[]}}return ni=t,t.default=t,ni}var ri,En;function Bs(){if(En)return ri;En=1;let n=wi(),e=Bn(),i=zs(),r=Qe();class t{constructor(l=[]){this.version="8.5.6",this.plugins=this.normalize(l)}normalize(l){let p=[];for(let b of l)if(b.postcss===!0?b=b():b.postcss&&(b=b.postcss),typeof b=="object"&&Array.isArray(b.plugins))p=p.concat(b.plugins);else if(typeof b=="object"&&b.postcssPlugin)p.push(b);else if(typeof b=="function")p.push(b);else if(!(typeof b=="object"&&(b.parse||b.stringify)))throw new Error(b+" is not a PostCSS plugin");return p}process(l,p={}){return!this.plugins.length&&!p.parser&&!p.stringifier&&!p.syntax?new i(this,l,p):new e(this,l,p)}use(l){return this.plugins=this.plugins.concat(this.normalize([l])),this}}return ri=t,t.default=t,r.registerProcessor(t),n.registerProcessor(t),ri}var si,Sn;function Us(){if(Sn)return si;Sn=1;var n={};let e=yi(),i=wt(),r=Me(),t=gi(),u=vt(),l=wi(),p=Is(),b=xt(),h=Bn(),s=jn(),c=yt(),o=xi(),a=Bs(),f=_i(),m=Qe(),g=vi(),_=bt(),E=zn();function v(...w){return w.length===1&&Array.isArray(w[0])&&(w=w[0]),new a(w)}return v.plugin=function(y,S){let O=!1;function L(...P){console&&console.warn&&!O&&(O=!0,console.warn(y+`: postcss.plugin was deprecated. Migration guide:
|
|
332
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),n.LANG&&n.LANG.startsWith("cn")&&console.warn(y+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
333
|
+
https://www.w3ctech.com/topic/2226`));let J=S(...P);return J.postcssPlugin=y,J.postcssVersion=new a().version,J}let B;return Object.defineProperty(L,"postcss",{get(){return B||(B=L()),B}}),L.process=function(P,J,H){return v([L(H)]).process(P,J)},L},v.stringify=_,v.parse=o,v.fromJSON=p,v.list=s,v.comment=w=>new i(w),v.atRule=w=>new e(w),v.decl=w=>new u(w),v.rule=w=>new g(w),v.root=w=>new m(w),v.document=w=>new l(w),v.CssSyntaxError=t,v.Declaration=u,v.Container=r,v.Processor=a,v.Document=l,v.Comment=i,v.Warning=E,v.AtRule=e,v.Result=f,v.Input=b,v.Rule=g,v.Root=m,v.Node=c,h.registerPostcss(v),si=v,v.default=v,si}var qs=Us();const V=Tn(qs);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 oi,An;function Hs(){if(An)return oi;An=1;const n=(r={})=>{const t=r.prefix,u=/\s+$/.test(t)?t:`${t} `,l=r.ignoreFiles?[].concat(r.ignoreFiles):[],p=r.includeFiles?[].concat(r.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(b){const h=b.root,s=h.source.input.file;if(!(l.length&&s&&e(s,l))&&!(p.length&&s&&!e(s,p)))return{Rule(c,{result:o}){const a=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];c.parent&&a.includes(c.parent.name)||(c.selectors=c.selectors.map(f=>r.exclude&&i(f,r.exclude)?f:r.transform?r.transform(t,f,u+f,h.source.input.file,c):[":root","body","html"].some(m=>f.startsWith(m))?r.skipGlobalSelectors?f:f.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,t):u+f))}}}}};function e(r,t){return t.some(u=>u instanceof RegExp?u.test(r):r.includes(u))}function i(r,t){return t.some(u=>u instanceof RegExp?u.test(r):r===u)}return n.postcss=!0,oi=n,oi}var Fs=Hs();const Ws=Tn(Fs),Gs="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}",Zs="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 Vs(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var li,kn;function Js(){if(kn)return li;kn=1;function n(d){return d instanceof Map?d.clear=d.delete=d.set=function(){throw new Error("map is read-only")}:d instanceof Set&&(d.add=d.clear=d.delete=function(){throw new Error("set is read-only")}),Object.freeze(d),Object.getOwnPropertyNames(d).forEach(x=>{const C=d[x],z=typeof C;(z==="object"||z==="function")&&!Object.isFrozen(C)&&n(C)}),d}class e{constructor(x){x.data===void 0&&(x.data={}),this.data=x.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(d){return d.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function r(d,...x){const C=Object.create(null);for(const z in d)C[z]=d[z];return x.forEach(function(z){for(const X in z)C[X]=z[X]}),C}const t="</span>",u=d=>!!d.scope,l=(d,{prefix:x})=>{if(d.startsWith("language:"))return d.replace("language:","language-");if(d.includes(".")){const C=d.split(".");return[`${x}${C.shift()}`,...C.map((z,X)=>`${z}${"_".repeat(X+1)}`)].join(" ")}return`${x}${d}`};class p{constructor(x,C){this.buffer="",this.classPrefix=C.classPrefix,x.walk(this)}addText(x){this.buffer+=i(x)}openNode(x){if(!u(x))return;const C=l(x.scope,{prefix:this.classPrefix});this.span(C)}closeNode(x){u(x)&&(this.buffer+=t)}value(){return this.buffer}span(x){this.buffer+=`<span class="${x}">`}}const b=(d={})=>{const x={children:[]};return Object.assign(x,d),x};class h{constructor(){this.rootNode=b(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(x){this.top.children.push(x)}openNode(x){const C=b({scope:x});this.add(C),this.stack.push(C)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(x){return this.constructor._walk(x,this.rootNode)}static _walk(x,C){return typeof C=="string"?x.addText(C):C.children&&(x.openNode(C),C.children.forEach(z=>this._walk(x,z)),x.closeNode(C)),x}static _collapse(x){typeof x!="string"&&x.children&&(x.children.every(C=>typeof C=="string")?x.children=[x.children.join("")]:x.children.forEach(C=>{h._collapse(C)}))}}class s extends h{constructor(x){super(),this.options=x}addText(x){x!==""&&this.add(x)}startScope(x){this.openNode(x)}endScope(){this.closeNode()}__addSublanguage(x,C){const z=x.root;C&&(z.scope=`language:${C}`),this.add(z)}toHTML(){return new p(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function c(d){return d?typeof d=="string"?d:d.source:null}function o(d){return m("(?=",d,")")}function a(d){return m("(?:",d,")*")}function f(d){return m("(?:",d,")?")}function m(...d){return d.map(x=>c(x)).join("")}function g(d){const x=d[d.length-1];return typeof x=="object"&&x.constructor===Object?(d.splice(d.length-1,1),x):{}}function _(...d){return"("+(g(d).capture?"":"?:")+d.map(x=>c(x)).join("|")+")"}function E(d){return new RegExp(d.toString()+"|").exec("").length-1}function v(d,x){const C=d&&d.exec(x);return C&&C.index===0}const w=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function y(d,{joinWith:x}){let C=0;return d.map(z=>{C+=1;const X=C;let Q=c(z),M="";for(;Q.length>0;){const $=w.exec(Q);if(!$){M+=Q;break}M+=Q.substring(0,$.index),Q=Q.substring($.index+$[0].length),$[0][0]==="\\"&&$[1]?M+="\\"+String(Number($[1])+X):(M+=$[0],$[0]==="("&&C++)}return M}).map(z=>`(${z})`).join(x)}const S=/\b\B/,O="[a-zA-Z]\\w*",L="[a-zA-Z_]\\w*",B="\\b\\d+(\\.\\d+)?",P="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",J="\\b(0b[01]+)",H="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Ee=(d={})=>{const x=/^#![ ]*\//;return d.binary&&(d.begin=m(x,/.*\b/,d.binary,/\b.*/)),r({scope:"meta",begin:x,end:/$/,relevance:0,"on:begin":(C,z)=>{C.index!==0&&z.ignoreMatch()}},d)},he={begin:"\\\\[\\s\\S]",relevance:0},R={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[he]},Ne={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[he]},W={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Y=function(d,x,C={}){const z=r({scope:"comment",begin:d,end:x,contains:[]},C);z.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 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 z.contains.push({begin:m(/[ ]+/,"(",X,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),z},ae=Y("//","$"),ce=Y("/\\*","\\*/"),ye=Y("#","$"),Se={scope:"number",begin:B,relevance:0},j={scope:"number",begin:P,relevance:0},ze={scope:"number",begin:J,relevance:0},Pe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[he,{begin:/\[/,end:/\]/,relevance:0,contains:[he]}]},Et={scope:"title",begin:O,relevance:0},Be={scope:"title",begin:L,relevance:0},St={begin:"\\.\\s*"+L,relevance:0};var Te=Object.freeze({__proto__:null,APOS_STRING_MODE:R,BACKSLASH_ESCAPE:he,BINARY_NUMBER_MODE:ze,BINARY_NUMBER_RE:J,COMMENT:Y,C_BLOCK_COMMENT_MODE:ce,C_LINE_COMMENT_MODE:ae,C_NUMBER_MODE:j,C_NUMBER_RE:P,END_SAME_AS_BEGIN:function(d){return Object.assign(d,{"on:begin":(x,C)=>{C.data._beginMatch=x[1]},"on:end":(x,C)=>{C.data._beginMatch!==x[1]&&C.ignoreMatch()}})},HASH_COMMENT_MODE:ye,IDENT_RE:O,MATCH_NOTHING_RE:S,METHOD_GUARD:St,NUMBER_MODE:Se,NUMBER_RE:B,PHRASAL_WORDS_MODE:W,QUOTE_STRING_MODE:Ne,REGEXP_MODE:Pe,RE_STARTERS_RE:H,SHEBANG:Ee,TITLE_MODE:Et,UNDERSCORE_IDENT_RE:L,UNDERSCORE_TITLE_MODE:Be});function At(d,x){d.input[d.index-1]==="."&&x.ignoreMatch()}function we(d,x){d.className!==void 0&&(d.scope=d.className,delete d.className)}function Ue(d,x){x&&d.beginKeywords&&(d.begin="\\b("+d.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",d.__beforeBegin=At,d.keywords=d.keywords||d.beginKeywords,delete d.beginKeywords,d.relevance===void 0&&(d.relevance=0))}function Ye(d,x){Array.isArray(d.illegal)&&(d.illegal=_(...d.illegal))}function Jn(d,x){if(d.match){if(d.begin||d.end)throw new Error("begin & end are not supported with match");d.begin=d.match,delete d.match}}function Kn(d,x){d.relevance===void 0&&(d.relevance=1)}const Xn=(d,x)=>{if(!d.beforeMatch)return;if(d.starts)throw new Error("beforeMatch cannot be used with starts");const C=Object.assign({},d);Object.keys(d).forEach(z=>{delete d[z]}),d.keywords=C.keywords,d.begin=m(C.beforeMatch,o(C.begin)),d.starts={relevance:0,contains:[Object.assign(C,{endsParent:!0})]},d.relevance=0,delete C.beforeMatch},Qn=["of","and","for","in","not","or","if","then","parent","list","value"],Yn="keyword";function Ei(d,x,C=Yn){const z=Object.create(null);return typeof d=="string"?X(C,d.split(" ")):Array.isArray(d)?X(C,d):Object.keys(d).forEach(function(Q){Object.assign(z,Ei(d[Q],x,Q))}),z;function X(Q,M){x&&(M=M.map($=>$.toLowerCase())),M.forEach(function($){const I=$.split("|");z[I[0]]=[Q,er(I[0],I[1])]})}}function er(d,x){return x?Number(x):tr(d)?0:1}function tr(d){return Qn.includes(d.toLowerCase())}const Si={},Ae=d=>{console.error(d)},Ai=(d,...x)=>{console.log(`WARN: ${d}`,...x)},Le=(d,x)=>{Si[`${d}/${x}`]||(console.log(`Deprecated as of ${d}. ${x}`),Si[`${d}/${x}`]=!0)},et=new Error;function ki(d,x,{key:C}){let z=0;const X=d[C],Q={},M={};for(let $=1;$<=x.length;$++)M[$+z]=X[$],Q[$+z]=!0,z+=E(x[$-1]);d[C]=M,d[C]._emit=Q,d[C]._multi=!0}function ir(d){if(Array.isArray(d.begin)){if(d.skip||d.excludeBegin||d.returnBegin)throw Ae("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),et;if(typeof d.beginScope!="object"||d.beginScope===null)throw Ae("beginScope must be object"),et;ki(d,d.begin,{key:"beginScope"}),d.begin=y(d.begin,{joinWith:""})}}function nr(d){if(Array.isArray(d.end)){if(d.skip||d.excludeEnd||d.returnEnd)throw Ae("skip, excludeEnd, returnEnd not compatible with endScope: {}"),et;if(typeof d.endScope!="object"||d.endScope===null)throw Ae("endScope must be object"),et;ki(d,d.end,{key:"endScope"}),d.end=y(d.end,{joinWith:""})}}function rr(d){d.scope&&typeof d.scope=="object"&&d.scope!==null&&(d.beginScope=d.scope,delete d.scope)}function sr(d){rr(d),typeof d.beginScope=="string"&&(d.beginScope={_wrap:d.beginScope}),typeof d.endScope=="string"&&(d.endScope={_wrap:d.endScope}),ir(d),nr(d)}function or(d){function x(M,$){return new RegExp(c(M),"m"+(d.case_insensitive?"i":"")+(d.unicodeRegex?"u":"")+($?"g":""))}class C{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule($,I){I.position=this.position++,this.matchIndexes[this.matchAt]=I,this.regexes.push([I,$]),this.matchAt+=E($)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const $=this.regexes.map(I=>I[1]);this.matcherRe=x(y($,{joinWith:"|"}),!0),this.lastIndex=0}exec($){this.matcherRe.lastIndex=this.lastIndex;const I=this.matcherRe.exec($);if(!I)return null;const ie=I.findIndex((qe,Ct)=>Ct>0&&qe!==void 0),ee=this.matchIndexes[ie];return I.splice(0,ie),Object.assign(I,ee)}}class z{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher($){if(this.multiRegexes[$])return this.multiRegexes[$];const I=new C;return this.rules.slice($).forEach(([ie,ee])=>I.addRule(ie,ee)),I.compile(),this.multiRegexes[$]=I,I}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule($,I){this.rules.push([$,I]),I.type==="begin"&&this.count++}exec($){const I=this.getMatcher(this.regexIndex);I.lastIndex=this.lastIndex;let ie=I.exec($);if(this.resumingScanAtSamePosition()&&!(ie&&ie.index===this.lastIndex)){const ee=this.getMatcher(0);ee.lastIndex=this.lastIndex+1,ie=ee.exec($)}return ie&&(this.regexIndex+=ie.position+1,this.regexIndex===this.count&&this.considerAll()),ie}}function X(M){const $=new z;return M.contains.forEach(I=>$.addRule(I.begin,{rule:I,type:"begin"})),M.terminatorEnd&&$.addRule(M.terminatorEnd,{type:"end"}),M.illegal&&$.addRule(M.illegal,{type:"illegal"}),$}function Q(M,$){const I=M;if(M.isCompiled)return I;[we,Jn,sr,Xn].forEach(ee=>ee(M,$)),d.compilerExtensions.forEach(ee=>ee(M,$)),M.__beforeBegin=null,[Ue,Ye,Kn].forEach(ee=>ee(M,$)),M.isCompiled=!0;let ie=null;return typeof M.keywords=="object"&&M.keywords.$pattern&&(M.keywords=Object.assign({},M.keywords),ie=M.keywords.$pattern,delete M.keywords.$pattern),ie=ie||/\w+/,M.keywords&&(M.keywords=Ei(M.keywords,d.case_insensitive)),I.keywordPatternRe=x(ie,!0),$&&(M.begin||(M.begin=/\B|\b/),I.beginRe=x(I.begin),!M.end&&!M.endsWithParent&&(M.end=/\B|\b/),M.end&&(I.endRe=x(I.end)),I.terminatorEnd=c(I.end)||"",M.endsWithParent&&$.terminatorEnd&&(I.terminatorEnd+=(M.end?"|":"")+$.terminatorEnd)),M.illegal&&(I.illegalRe=x(M.illegal)),M.contains||(M.contains=[]),M.contains=[].concat(...M.contains.map(function(ee){return lr(ee==="self"?M:ee)})),M.contains.forEach(function(ee){Q(ee,I)}),M.starts&&Q(M.starts,$),I.matcher=X(I),I}if(d.compilerExtensions||(d.compilerExtensions=[]),d.contains&&d.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return d.classNameAliases=r(d.classNameAliases||{}),Q(d)}function Ci(d){return d?d.endsWithParent||Ci(d.starts):!1}function lr(d){return d.variants&&!d.cachedVariants&&(d.cachedVariants=d.variants.map(function(x){return r(d,{variants:null},x)})),d.cachedVariants?d.cachedVariants:Ci(d)?r(d,{starts:d.starts?r(d.starts):null}):Object.isFrozen(d)?r(d):d}var ar="11.11.1";class cr extends Error{constructor(x,C){super(x),this.name="HTMLInjectionError",this.html=C}}const kt=i,Oi=r,$i=Symbol("nomatch"),ur=7,Ri=function(d){const x=Object.create(null),C=Object.create(null),z=[];let X=!0;const Q="Could not find the language '{}', did you forget to load/include a language module?",M={disableAutodetect:!0,name:"Plain text",contains:[]};let $={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:s};function I(A){return $.noHighlightRe.test(A)}function ie(A){let T=A.className+" ";T+=A.parentNode?A.parentNode.className:"";const q=$.languageDetectRe.exec(T);if(q){const G=ve(q[1]);return G||(Ai(Q.replace("{}",q[1])),Ai("Falling back to no-highlight mode for this block.",A)),G?q[1]:"no-highlight"}return T.split(/\s+/).find(G=>I(G)||ve(G))}function ee(A,T,q){let G="",te="";typeof T=="object"?(G=A,q=T.ignoreIllegals,te=T.language):(Le("10.7.0","highlight(lang, code, ...args) has been deprecated."),Le("10.7.0",`Please use highlight(code, options) instead.
|
|
334
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),te=A,G=T),q===void 0&&(q=!0);const fe={code:G,language:te};it("before:highlight",fe);const xe=fe.result?fe.result:qe(fe.language,fe.code,q);return xe.code=fe.code,it("after:highlight",xe),xe}function qe(A,T,q,G){const te=Object.create(null);function fe(k,N){return k.keywords[N]}function xe(){if(!D.keywords){ne.addText(Z);return}let k=0;D.keywordPatternRe.lastIndex=0;let N=D.keywordPatternRe.exec(Z),U="";for(;N;){U+=Z.substring(k,N.index);const F=me.case_insensitive?N[0].toLowerCase():N[0],re=fe(D,F);if(re){const[be,Cr]=re;if(ne.addText(U),U="",te[F]=(te[F]||0)+1,te[F]<=ur&&(st+=Cr),be.startsWith("_"))U+=N[0];else{const Or=me.classNameAliases[be]||be;pe(N[0],Or)}}else U+=N[0];k=D.keywordPatternRe.lastIndex,N=D.keywordPatternRe.exec(Z)}U+=Z.substring(k),ne.addText(U)}function nt(){if(Z==="")return;let k=null;if(typeof D.subLanguage=="string"){if(!x[D.subLanguage]){ne.addText(Z);return}k=qe(D.subLanguage,Z,!0,Di[D.subLanguage]),Di[D.subLanguage]=k._top}else k=Ot(Z,D.subLanguage.length?D.subLanguage:null);D.relevance>0&&(st+=k.relevance),ne.__addSublanguage(k._emitter,k.language)}function ue(){D.subLanguage!=null?nt():xe(),Z=""}function pe(k,N){k!==""&&(ne.startScope(N),ne.addText(k),ne.endScope())}function Ti(k,N){let U=1;const F=N.length-1;for(;U<=F;){if(!k._emit[U]){U++;continue}const re=me.classNameAliases[k[U]]||k[U],be=N[U];re?pe(be,re):(Z=be,xe(),Z=""),U++}}function Li(k,N){return k.scope&&typeof k.scope=="string"&&ne.openNode(me.classNameAliases[k.scope]||k.scope),k.beginScope&&(k.beginScope._wrap?(pe(Z,me.classNameAliases[k.beginScope._wrap]||k.beginScope._wrap),Z=""):k.beginScope._multi&&(Ti(k.beginScope,N),Z="")),D=Object.create(k,{parent:{value:D}}),D}function Ii(k,N,U){let F=v(k.endRe,U);if(F){if(k["on:end"]){const re=new e(k);k["on:end"](N,re),re.isMatchIgnored&&(F=!1)}if(F){for(;k.endsParent&&k.parent;)k=k.parent;return k}}if(k.endsWithParent)return Ii(k.parent,N,U)}function _r(k){return D.matcher.regexIndex===0?(Z+=k[0],1):(Nt=!0,0)}function Er(k){const N=k[0],U=k.rule,F=new e(U),re=[U.__beforeBegin,U["on:begin"]];for(const be of re)if(be&&(be(k,F),F.isMatchIgnored))return _r(N);return U.skip?Z+=N:(U.excludeBegin&&(Z+=N),ue(),!U.returnBegin&&!U.excludeBegin&&(Z=N)),Li(U,k),U.returnBegin?0:N.length}function Sr(k){const N=k[0],U=T.substring(k.index),F=Ii(D,k,U);if(!F)return $i;const re=D;D.endScope&&D.endScope._wrap?(ue(),pe(N,D.endScope._wrap)):D.endScope&&D.endScope._multi?(ue(),Ti(D.endScope,k)):re.skip?Z+=N:(re.returnEnd||re.excludeEnd||(Z+=N),ue(),re.excludeEnd&&(Z=N));do D.scope&&ne.closeNode(),!D.skip&&!D.subLanguage&&(st+=D.relevance),D=D.parent;while(D!==F.parent);return F.starts&&Li(F.starts,k),re.returnEnd?0:N.length}function Ar(){const k=[];for(let N=D;N!==me;N=N.parent)N.scope&&k.unshift(N.scope);k.forEach(N=>ne.openNode(N))}let rt={};function ji(k,N){const U=N&&N[0];if(Z+=k,U==null)return ue(),0;if(rt.type==="begin"&&N.type==="end"&&rt.index===N.index&&U===""){if(Z+=T.slice(N.index,N.index+1),!X){const F=new Error(`0 width match regex (${A})`);throw F.languageName=A,F.badRule=rt.rule,F}return 1}if(rt=N,N.type==="begin")return Er(N);if(N.type==="illegal"&&!q){const F=new Error('Illegal lexeme "'+U+'" for mode "'+(D.scope||"<unnamed>")+'"');throw F.mode=D,F}else if(N.type==="end"){const F=Sr(N);if(F!==$i)return F}if(N.type==="illegal"&&U==="")return Z+=`
|
|
335
|
+
`,1;if(Mt>1e5&&Mt>N.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Z+=U,U.length}const me=ve(A);if(!me)throw Ae(Q.replace("{}",A)),new Error('Unknown language: "'+A+'"');const kr=or(me);let Rt="",D=G||kr;const Di={},ne=new $.__emitter($);Ar();let Z="",st=0,ke=0,Mt=0,Nt=!1;try{if(me.__emitTokens)me.__emitTokens(T,ne);else{for(D.matcher.considerAll();;){Mt++,Nt?Nt=!1:D.matcher.considerAll(),D.matcher.lastIndex=ke;const k=D.matcher.exec(T);if(!k)break;const N=T.substring(ke,k.index),U=ji(N,k);ke=k.index+U}ji(T.substring(ke))}return ne.finalize(),Rt=ne.toHTML(),{language:A,value:Rt,relevance:st,illegal:!1,_emitter:ne,_top:D}}catch(k){if(k.message&&k.message.includes("Illegal"))return{language:A,value:kt(T),illegal:!0,relevance:0,_illegalBy:{message:k.message,index:ke,context:T.slice(ke-100,ke+100),mode:k.mode,resultSoFar:Rt},_emitter:ne};if(X)return{language:A,value:kt(T),illegal:!1,relevance:0,errorRaised:k,_emitter:ne,_top:D};throw k}}function Ct(A){const T={value:kt(A),illegal:!1,relevance:0,_top:M,_emitter:new $.__emitter($)};return T._emitter.addText(A),T}function Ot(A,T){T=T||$.languages||Object.keys(x);const q=Ct(A),G=T.filter(ve).filter(Pi).map(ue=>qe(ue,A,!1));G.unshift(q);const te=G.sort((ue,pe)=>{if(ue.relevance!==pe.relevance)return pe.relevance-ue.relevance;if(ue.language&&pe.language){if(ve(ue.language).supersetOf===pe.language)return 1;if(ve(pe.language).supersetOf===ue.language)return-1}return 0}),[fe,xe]=te,nt=fe;return nt.secondBest=xe,nt}function hr(A,T,q){const G=T&&C[T]||q;A.classList.add("hljs"),A.classList.add(`language-${G}`)}function $t(A){let T=null;const q=ie(A);if(I(q))return;if(it("before:highlightElement",{el:A,language:q}),A.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",A);return}if(A.children.length>0&&($.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)),$.throwUnescapedHTML))throw new cr("One of your code blocks includes unescaped HTML.",A.innerHTML);T=A;const G=T.textContent,te=q?ee(G,{language:q,ignoreIllegals:!0}):Ot(G);A.innerHTML=te.value,A.dataset.highlighted="yes",hr(A,q,te.language),A.result={language:te.language,re:te.relevance,relevance:te.relevance},te.secondBest&&(A.secondBest={language:te.secondBest.language,relevance:te.secondBest.relevance}),it("after:highlightElement",{el:A,result:te,text:G})}function dr(A){$=Oi($,A)}const fr=()=>{tt(),Le("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function pr(){tt(),Le("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Mi=!1;function tt(){function A(){tt()}if(document.readyState==="loading"){Mi||window.addEventListener("DOMContentLoaded",A,!1),Mi=!0;return}document.querySelectorAll($.cssSelector).forEach($t)}function mr(A,T){let q=null;try{q=T(d)}catch(G){if(Ae("Language definition for '{}' could not be registered.".replace("{}",A)),X)Ae(G);else throw G;q=M}q.name||(q.name=A),x[A]=q,q.rawDefinition=T.bind(null,d),q.aliases&&Ni(q.aliases,{languageName:A})}function gr(A){delete x[A];for(const T of Object.keys(C))C[T]===A&&delete C[T]}function br(){return Object.keys(x)}function ve(A){return A=(A||"").toLowerCase(),x[A]||x[C[A]]}function Ni(A,{languageName:T}){typeof A=="string"&&(A=[A]),A.forEach(q=>{C[q.toLowerCase()]=T})}function Pi(A){const T=ve(A);return T&&!T.disableAutodetect}function yr(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 wr(A){yr(A),z.push(A)}function vr(A){const T=z.indexOf(A);T!==-1&&z.splice(T,1)}function it(A,T){const q=A;z.forEach(function(G){G[q]&&G[q](T)})}function xr(A){return Le("10.7.0","highlightBlock will be removed entirely in v12.0"),Le("10.7.0","Please use highlightElement now."),$t(A)}Object.assign(d,{highlight:ee,highlightAuto:Ot,highlightAll:tt,highlightElement:$t,highlightBlock:xr,configure:dr,initHighlighting:fr,initHighlightingOnLoad:pr,registerLanguage:mr,unregisterLanguage:gr,listLanguages:br,getLanguage:ve,registerAliases:Ni,autoDetection:Pi,inherit:Oi,addPlugin:wr,removePlugin:vr}),d.debugMode=function(){X=!1},d.safeMode=function(){X=!0},d.versionString=ar,d.regex={concat:m,lookahead:o,either:_,optional:f,anyNumberOfTimes:a};for(const A in Te)typeof Te[A]=="object"&&n(Te[A]);return Object.assign(d,Te),d},Ie=Ri({});return Ie.newInstance=()=>Ri({}),li=Ie,Ie.HighlightJS=Ie,Ie.default=Ie,li}var Ks=Js();const _t=Vs(Ks),pt="[A-Za-z$_][0-9A-Za-z$_]*",Un=["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"],qn=["true","false","null","undefined","NaN","Infinity"],Hn=["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"],Fn=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Wn=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Gn=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Zn=[].concat(Wn,Hn,Fn);function Xs(n){const e=n.regex,i=(W,{after:Y})=>{const ae="</"+W[0].slice(1);return W.input.indexOf(ae,Y)!==-1},r=pt,t={begin:"<>",end:"</>"},u=/<[A-Za-z0-9\\._:-]+\s*\/>/,l={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(W,Y)=>{const ae=W[0].length+W.index,ce=W.input[ae];if(ce==="<"||ce===","){Y.ignoreMatch();return}ce===">"&&(i(W,{after:ae})||Y.ignoreMatch());let ye;const Se=W.input.substring(ae);if(ye=Se.match(/^\s*=/)){Y.ignoreMatch();return}if((ye=Se.match(/^\s+extends\s+/))&&ye.index===0){Y.ignoreMatch();return}}},p={$pattern:pt,keyword:Un,literal:qn,built_in:Zn,"variable.language":Gn},b="[0-9](_?[0-9])*",h=`\\.(${b})`,s="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",c={className:"number",variants:[{begin:`(\\b(${s})((${h})|\\.)?|(${h}))[eE][+-]?(${b})\\b`},{begin:`\\b(${s})\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},o={className:"subst",begin:"\\$\\{",end:"\\}",keywords:p,contains:[]},a={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,o],subLanguage:"xml"}},f={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,o],subLanguage:"css"}},m={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,o],subLanguage:"graphql"}},g={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,o]},_={className:"comment",variants:[n.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),n.C_BLOCK_COMMENT_MODE,n.C_LINE_COMMENT_MODE]},E=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,a,f,m,g,{match:/\$\d+/},c];o.contains=E.concat({begin:/\{/,end:/\}/,keywords:p,contains:["self"].concat(E)});const v=[].concat(_,o.contains),w=v.concat([{begin:/(\s*)\(/,end:/\)/,keywords:p,contains:["self"].concat(v)}]),y={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:w},S={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,e.concat(r,"(",e.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},O={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:{_:[...Hn,...Fn]}},L={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},B={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[y],illegal:/%/},P={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function J(W){return e.concat("(?!",W.join("|"),")")}const H={match:e.concat(/\b/,J([...Wn,"super","import"].map(W=>`${W}\\s*\\(`)),r,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},Ee={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},he={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},y]},R="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+n.UNDERSCORE_IDENT_RE+")\\s*=>",Ne={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(R)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[y]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:p,exports:{PARAMS_CONTAINS:w,CLASS_REFERENCE:O},illegal:/#(?![$_A-z])/,contains:[n.SHEBANG({label:"shebang",binary:"node",relevance:5}),L,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,a,f,m,g,_,{match:/\$\d+/},c,O,{scope:"attr",match:r+e.lookahead(":"),relevance:0},Ne,{begin:"("+n.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[_,n.REGEXP_MODE,{className:"function",begin:R,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:w}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:t.begin,end:t.end},{match:u},{begin:l.begin,"on:begin":l.isTrulyOpeningTag,end:l.end}],subLanguage:"xml",contains:[{begin:l.begin,end:l.end,skip:!0,contains:["self"]}]}]},B,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+n.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[y,n.inherit(n.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},Ee,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[y]},H,P,S,he,{match:/\$[(.]/}]}}function Qs(n){const e=n.regex,i=Xs(n),r=pt,t=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],u={begin:[/namespace/,/\s+/,n.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},l={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:t},contains:[i.exports.CLASS_REFERENCE]},p={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},b=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],h={$pattern:pt,keyword:Un.concat(b),literal:qn,built_in:Zn.concat(t),"variable.language":Gn},s={className:"meta",begin:"@"+r},c=(m,g,_)=>{const E=m.contains.findIndex(v=>v.label===g);if(E===-1)throw new Error("can not find mode to replace");m.contains.splice(E,1,_)};Object.assign(i.keywords,h),i.exports.PARAMS_CONTAINS.push(s);const o=i.contains.find(m=>m.scope==="attr"),a=Object.assign({},o,{match:e.concat(r,e.lookahead(/\s*\?:/))});i.exports.PARAMS_CONTAINS.push([i.exports.CLASS_REFERENCE,o,a]),i.contains=i.contains.concat([s,u,l,a]),c(i,"shebang",n.SHEBANG()),c(i,"use_strict",p);const f=i.contains.find(m=>m.label==="func.def");return f.relevance=0,Object.assign(i,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),i}function Ys(n){const e=n.regex,i=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,t={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},u={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},l=n.inherit(u,{begin:/\(/,end:/\)/}),p=n.inherit(n.APOS_STRING_MODE,{className:"string"}),b=n.inherit(n.QUOTE_STRING_MODE,{className:"string"}),h={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[t]},{begin:/'/,end:/'/,contains:[t]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[u,b,p,l,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[u,l,b,p]}]}]},n.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},t,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[b]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[h],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[h],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(i,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:i,relevance:0,starts:h}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(i,/>/))),contains:[{className:"name",begin:i,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const eo=n=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:n.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:n.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),to=["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"],io=["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"],no=[...to,...io],ro=["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(),so=["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(),oo=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),lo=["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 ao(n){const e=n.regex,i=eo(n),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},t="and or not only",u=/@-?\w[\w]*(-\w+)*/,l="[a-zA-Z-][a-zA-Z0-9_-]*",p=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[i.BLOCK_COMMENT,r,i.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+l,relevance:0},i.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+so.join("|")+")"},{begin:":(:)?("+oo.join("|")+")"}]},i.CSS_VARIABLE,{className:"attribute",begin:"\\b("+lo.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[i.BLOCK_COMMENT,i.HEXCOLOR,i.IMPORTANT,i.CSS_NUMBER_MODE,...p,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...p,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},i.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:u},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:t,attribute:ro.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...p,i.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+no.join("|")+")\\b"}]}}const Vn=document.createElement("style");Vn.innerText=[Gs,Zs].join(`
|
|
336
|
+
`);document.head.appendChild(Vn);_t.registerLanguage("typescript",Qs);_t.registerLanguage("html",Ys);_t.registerLanguage("css",ao);function co(...n){const e=document.createElement("div"),i=document.createElement("div");i.classList.add("tab-control");const r=document.createElement("div");return n.forEach(t=>{e.appendChild(t),t.addEventListener("click",()=>{n.forEach(u=>u.removeAttribute("selected")),t.setAttribute("selected",""),r.innerHTML="",r.appendChild(t.content),r.className=t.className,r.classList.add("tab-content")})}),i.appendChild(e),i.appendChild(r),r.classList.add("tab-content"),n[0].setAttribute("selected",""),r.appendChild(n[0].content),i}function Fe(n,e){const i=document.createElement("div");return i.role="tab",i.tabIndex=0,i.innerText=n,i.content=e,e.tagName=="PRE"&&i.classList.add("code"),i}function Ze(n,e){const i=document.createElement(n);return typeof e=="string"?i.innerHTML=e:e.forEach(r=>{i.appendChild(r)}),i}async function uo(n,e,i){const r=e.mainContent,t=Ze("div",r);t.id=`example-preview-${i}`;const u=typeof e.css=="string"?void 0:e.css?.label,l=typeof e.css=="string"?e.css:e.css?.content,p=co(Fe("Preview",t),Fe("HTML",ut("html",r)),...l?[Fe(u??"CSS",ut("css",l))]:[],...e.initializer&&e.initializer.content?[Fe(e.initializer.label??"TS",ut("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(h=>Fe(h.label,ut(h.language,h.content))));e.description&&n.appendChild(Ze("div",e.description));const b=Ze("div",[p]);b.classList.add("example"),n.appendChild(b),l&&ho(`#${t.id}`,l),e.initializer?.initialize&&await e.initializer.initialize(t)}function ut(n,e){let i=e.split(/\r?\n/).map(r=>{const t=r.indexOf("///");if(t>-1){const u=r.substring(t+3).trimStart();return u?r.replace(/^(\s*)([^\s].*)$/,`$1${u}`):void 0}return r}).filter(r=>typeof r<"u").join(`
|
|
337
|
+
`).trim();return n&&n!="raw"&&(i=_t.highlight(i,{language:n}).value),Ze("pre",[Ze("code",i)])}function ho(n,e){const i=document.createElement("style");i.innerHTML=V().use(Ws({prefix:n})).process(e).css,document.head.appendChild(i)}async function fo(n,e=document.body){const i=mo(e);let r=0;Object.keys(n).sort().forEach(async t=>{const u=document.createElement("div");u.className="example-container",i.appendChild(u);const l=n[t].default;uo(u,l,r++)})}function po(n){const e=document.createElement("div");e.id="examples-container";const i=n.querySelector("#examples");return i?i.after(e):n.appendChild(e),e}function mo(n){return n.children?po(n):n}const go=`<h1 id="@cas-smartdesign/list-item">@cas-smartdesign/list-item</h1>
|
|
335
338
|
<p>A list item element based on <a href="https://github.com/Polymer/lit-element">lit-element</a> with SmartDesign look & feel.</p>
|
|
336
339
|
<h2 id="requirements">Requirements</h2>
|
|
337
340
|
<p>The main entry point requires ES6 & support for Custom Elements v1</p>
|
|
@@ -446,10 +449,4 @@ https://github.com/highlightjs/highlight.js/issues/2277`),O=u,E=m),w===void 0&&(
|
|
|
446
449
|
</ul>
|
|
447
450
|
</li>
|
|
448
451
|
</ul>
|
|
449
|
-
`,
|
|
450
|
-
function __vite__mapDeps(indexes) {
|
|
451
|
-
if (!__vite__mapDeps.viteFileDeps) {
|
|
452
|
-
__vite__mapDeps.viteFileDeps = []
|
|
453
|
-
}
|
|
454
|
-
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
|
455
|
-
}
|
|
452
|
+
`,bo=document.querySelector("#markdown-container");bo.innerHTML=go;fo(Object.assign({"./examples/declarative/index.ts":Pr,"./examples/long-content/index.ts":Ur,"./examples/script-created/index.ts":Zr,"./examples/script-drag-and-drop/index.ts":Yr}),document.querySelector(".markdown-body"));export{xo as g};
|