@cas-smartdesign/radio-button-group 4.1.1 → 4.2.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.mjs +23 -23
- package/dist/radio-button-group-with-externals.js +4 -4
- package/dist/radio-button-group-with-externals.js.map +3 -3
- package/dist/radio-button-group.d.ts +2 -0
- package/dist/radio-button-group.mjs +50 -40
- package/dist/radio-button-group.mjs.map +1 -1
- 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 t of document.querySelectorAll('link[rel="modulepreload"]'))
|
|
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 c of t)if(c.type==="childList")for(const a of c.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function i(t){const c={};return t.integrity&&(c.integrity=t.integrity),t.referrerPolicy&&(c.referrerPolicy=t.referrerPolicy),t.crossOrigin==="use-credentials"?c.credentials="include":t.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function r(t){if(t.ep)return;t.ep=!0;const c=i(t);fetch(t.href,c)}})();const zr=`<!-- Load element with all dependencies directly -->
|
|
2
2
|
<script src="./radio-button-group-with-externals.js"><\/script>
|
|
3
3
|
|
|
4
4
|
<div class="example-root">
|
|
@@ -94,7 +94,7 @@ sd-radio-button {
|
|
|
94
94
|
</sd-radio-button-group>
|
|
95
95
|
</div>
|
|
96
96
|
`,Xr=`<h3 id="vertical-group-with-long-text">Vertical group with long text</h3>
|
|
97
|
-
`,Qr={mainContent:Jr,description:Xr},Yr=Object.freeze(Object.defineProperty({__proto__:null,default:Qr},Symbol.toStringTag,{value:"Module"})),es="modulepreload",ts=function(
|
|
97
|
+
`,Qr={mainContent:Jr,description:Xr},Yr=Object.freeze(Object.defineProperty({__proto__:null,default:Qr},Symbol.toStringTag,{value:"Module"})),es="modulepreload",ts=function(n,e){return new URL(n,e).href},Zi={},Ln=function(e,i,r){let t=Promise.resolve();if(i&&i.length>0){let d=function(s){return Promise.all(s.map(u=>Promise.resolve(u).then(o=>({status:"fulfilled",value:o}),o=>({status:"rejected",reason:o}))))};const a=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),b=p?.nonce||p?.getAttribute("nonce");t=d(i.map(s=>{if(s=ts(s,r),s in Zi)return;Zi[s]=!0;const u=s.endsWith(".css"),o=u?'[rel="stylesheet"]':"";if(!!r)for(let g=a.length-1;g>=0;g--){const m=a[g];if(m.href===s&&(!u||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${o}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":es,u||(f.as="script"),f.crossOrigin="",f.href=s,b&&f.setAttribute("nonce",b),document.head.appendChild(f),u)return new Promise((g,m)=>{f.addEventListener("load",g),f.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${s}`)))})}))}function c(a){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=a,window.dispatchEvent(p),!p.defaultPrevented)throw a}return t.then(a=>{for(const p of a||[])p.status==="rejected"&&c(p.reason);return e().catch(c)})},is=`<div id="validation-example-root">
|
|
98
98
|
<b>Error</b>
|
|
99
99
|
<sd-radio-button-group tabindex="0" validationlevel="error">
|
|
100
100
|
<sd-radio-button value="britta" label="Britta"></sd-radio-button>
|
|
@@ -247,9 +247,9 @@ function onValueChange(value: string, selectedIndex: number) {
|
|
|
247
247
|
valueElement.innerText = value || "<unselected>";
|
|
248
248
|
indexElement.innerText = selectedIndex?.toString();
|
|
249
249
|
}
|
|
250
|
-
`,hs={mainContent:ls,description:cs,css:us,initializer:{content:ds,type:"typescript",initialize:()=>Ln(()=>import("./5_segmented_button.js"),[],import.meta.url)}},fs=Object.freeze(Object.defineProperty({__proto__:null,default:hs},Symbol.toStringTag,{value:"Module"}));const pt=globalThis,bi=pt.ShadowRoot&&(pt.ShadyCSS===void 0||pt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,yi=Symbol(),Ki=new WeakMap;let jn=class{constructor(e,i,
|
|
250
|
+
`,hs={mainContent:ls,description:cs,css:us,initializer:{content:ds,type:"typescript",initialize:()=>Ln(()=>import("./5_segmented_button.js"),[],import.meta.url)}},fs=Object.freeze(Object.defineProperty({__proto__:null,default:hs},Symbol.toStringTag,{value:"Module"}));const pt=globalThis,bi=pt.ShadowRoot&&(pt.ShadyCSS===void 0||pt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,yi=Symbol(),Ki=new WeakMap;let jn=class{constructor(e,i,r){if(this._$cssResult$=!0,r!==yi)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(bi&&e===void 0){const r=i!==void 0&&i.length===1;r&&(e=Ki.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Ki.set(i,e))}return e}toString(){return this.cssText}};const wt=n=>new jn(typeof n=="string"?n:n+"",void 0,yi),vi=(n,...e)=>{const i=n.length===1?n[0]:e.reduce(((r,t,c)=>r+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(t)+n[c+1]),n[0]);return new jn(i,n,yi)},ps=(n,e)=>{if(bi)n.adoptedStyleSheets=e.map((i=>i instanceof CSSStyleSheet?i:i.styleSheet));else for(const i of e){const r=document.createElement("style"),t=pt.litNonce;t!==void 0&&r.setAttribute("nonce",t),r.textContent=i.cssText,n.appendChild(r)}},Ji=bi?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let i="";for(const r of e.cssRules)i+=r.cssText;return wt(i)})(n):n;const{is:gs,defineProperty:ms,getOwnPropertyDescriptor:bs,getOwnPropertyNames:ys,getOwnPropertySymbols:vs,getPrototypeOf:ws}=Object,xt=globalThis,Xi=xt.trustedTypes,xs=Xi?Xi.emptyScript:"",_s=xt.reactiveElementPolyfillSupport,Ze=(n,e)=>n,mt={toAttribute(n,e){switch(e){case Boolean:n=n?xs: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}},wi=(n,e)=>!gs(n,e),Qi={attribute:!0,type:String,converter:mt,reflect:!1,useDefault:!1,hasChanged:wi};Symbol.metadata??=Symbol("metadata"),xt.litPropertyMetadata??=new WeakMap;let De=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=Qi){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&&ms(this.prototype,e,t)}}static getPropertyDescriptor(e,i,r){const{get:t,set:c}=bs(this.prototype,e)??{get(){return this[i]},set(a){this[i]=a}};return{get:t,set(a){const p=t?.call(this);c?.call(this,a),this.requestUpdate(e,p,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Qi}static _$Ei(){if(this.hasOwnProperty(Ze("elementProperties")))return;const e=ws(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Ze("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ze("properties"))){const i=this.properties,r=[...ys(i),...vs(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(Ji(t))}else e!==void 0&&i.push(Ji(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 ps(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 c=(r.converter?.toAttribute!==void 0?r.converter:mt).toAttribute(i,r.type);this._$Em=e,c==null?this.removeAttribute(t):this.setAttribute(t,c),this._$Em=null}}_$AK(e,i){const r=this.constructor,t=r._$Eh.get(e);if(t!==void 0&&this._$Em!==t){const c=r.getPropertyOptions(t),a=typeof c.converter=="function"?{fromAttribute:c.converter}:c.converter?.fromAttribute!==void 0?c.converter:mt;this._$Em=t;const p=a.fromAttribute(i,c.type);this[t]=p??this._$Ej?.get(t)??p,this._$Em=null}}requestUpdate(e,i,r){if(e!==void 0){const t=this.constructor,c=this[e];if(r??=t.getPropertyOptions(e),!((r.hasChanged??wi)(c,i)||r.useDefault&&r.reflect&&c===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:c},a){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??i??this[e]),c!==!0||a!==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,c]of this._$Ep)this[t]=c;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[t,c]of r){const{wrapped:a}=c,p=this[t];a!==!0||this._$AL.has(t)||p===void 0||this.C(t,void 0,c,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){}};De.elementStyles=[],De.shadowRootOptions={mode:"open"},De[Ze("elementProperties")]=new Map,De[Ze("finalized")]=new Map,_s?.({ReactiveElement:De}),(xt.reactiveElementVersions??=[]).push("2.1.1");const xi=globalThis,bt=xi.trustedTypes,Yi=bt?bt.createPolicy("lit-html",{createHTML:n=>n}):void 0,Bn="$lit$",xe=`lit$${Math.random().toFixed(9).slice(2)}$`,Dn="?"+xe,Es=`<${Dn}>`,$e=document,Je=()=>$e.createComment(""),Xe=n=>n===null||typeof n!="object"&&typeof n!="function",_i=Array.isArray,Ss=n=>_i(n)||typeof n?.[Symbol.iterator]=="function",zt=`[
|
|
251
251
|
\f\r]`,Ge=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,en=/-->/g,tn=/>/g,Ce=RegExp(`>|${zt}(?:([^\\s"'>=/]+)(${zt}*=${zt}*(?:[^
|
|
252
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),nn=/'/g,rn=/"/g,zn=/^(?:script|style|textarea|title)$/i,As=
|
|
252
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),nn=/'/g,rn=/"/g,zn=/^(?:script|style|textarea|title)$/i,As=n=>(e,...i)=>({_$litType$:n,strings:e,values:i}),Qe=As(1),ze=Symbol.for("lit-noChange"),te=Symbol.for("lit-nothing"),sn=new WeakMap,Oe=$e.createTreeWalker($e,129);function Un(n,e){if(!_i(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Yi!==void 0?Yi.createHTML(e):e}const ks=(n,e)=>{const i=n.length-1,r=[];let t,c=e===2?"<svg>":e===3?"<math>":"",a=Ge;for(let p=0;p<i;p++){const b=n[p];let d,s,u=-1,o=0;for(;o<b.length&&(a.lastIndex=o,s=a.exec(b),s!==null);)o=a.lastIndex,a===Ge?s[1]==="!--"?a=en:s[1]!==void 0?a=tn:s[2]!==void 0?(zn.test(s[2])&&(t=RegExp("</"+s[2],"g")),a=Ce):s[3]!==void 0&&(a=Ce):a===Ce?s[0]===">"?(a=t??Ge,u=-1):s[1]===void 0?u=-2:(u=a.lastIndex-s[2].length,d=s[1],a=s[3]===void 0?Ce:s[3]==='"'?rn:nn):a===rn||a===nn?a=Ce:a===en||a===tn?a=Ge:(a=Ce,t=void 0);const l=a===Ce&&n[p+1].startsWith("/>")?" ":"";c+=a===Ge?b+Es:u>=0?(r.push(d),b.slice(0,u)+Bn+b.slice(u)+xe+l):b+xe+(u===-2?p:l)}return[Un(n,c+(n[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class Ye{constructor({strings:e,_$litType$:i},r){let t;this.parts=[];let c=0,a=0;const p=e.length-1,b=this.parts,[d,s]=ks(e,i);if(this.el=Ye.createElement(d,r),Oe.currentNode=this.el.content,i===2||i===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(t=Oe.nextNode())!==null&&b.length<p;){if(t.nodeType===1){if(t.hasAttributes())for(const u of t.getAttributeNames())if(u.endsWith(Bn)){const o=s[a++],l=t.getAttribute(u).split(xe),f=/([.?@])?(.*)/.exec(o);b.push({type:1,index:c,name:f[2],strings:l,ctor:f[1]==="."?Os:f[1]==="?"?Rs:f[1]==="@"?$s:_t}),t.removeAttribute(u)}else u.startsWith(xe)&&(b.push({type:6,index:c}),t.removeAttribute(u));if(zn.test(t.tagName)){const u=t.textContent.split(xe),o=u.length-1;if(o>0){t.textContent=bt?bt.emptyScript:"";for(let l=0;l<o;l++)t.append(u[l],Je()),Oe.nextNode(),b.push({type:2,index:++c});t.append(u[o],Je())}}}else if(t.nodeType===8)if(t.data===Dn)b.push({type:2,index:c});else{let u=-1;for(;(u=t.data.indexOf(xe,u+1))!==-1;)b.push({type:7,index:c}),u+=xe.length-1}c++}}static createElement(e,i){const r=$e.createElement("template");return r.innerHTML=e,r}}function Ue(n,e,i=n,r){if(e===ze)return e;let t=r!==void 0?i._$Co?.[r]:i._$Cl;const c=Xe(e)?void 0:e._$litDirective$;return t?.constructor!==c&&(t?._$AO?.(!1),c===void 0?t=void 0:(t=new c(n),t._$AT(n,i,r)),r!==void 0?(i._$Co??=[])[r]=t:i._$Cl=t),t!==void 0&&(e=Ue(n,t._$AS(n,e.values),t,r)),e}class Cs{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 c=Oe.nextNode(),a=0,p=0,b=r[0];for(;b!==void 0;){if(a===b.index){let d;b.type===2?d=new tt(c,c.nextSibling,this,e):b.type===1?d=new b.ctor(c,b.name,b.strings,this,e):b.type===6&&(d=new Ms(c,this,e)),this._$AV.push(d),b=r[++p]}a!==b?.index&&(c=Oe.nextNode(),a++)}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 tt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,r,t){this.type=2,this._$AH=te,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=Ue(this,e,i),Xe(e)?e===te||e==null||e===""?(this._$AH!==te&&this._$AR(),this._$AH=te):e!==this._$AH&&e!==ze&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ss(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!==te&&Xe(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=Ye.createElement(Un(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===t)this._$AH.p(i);else{const c=new Cs(t,this),a=c.u(this.options);c.p(i),this.T(a),this._$AH=c}}_$AC(e){let i=sn.get(e.strings);return i===void 0&&sn.set(e.strings,i=new Ye(e)),i}k(e){_i(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let r,t=0;for(const c of e)t===i.length?i.push(r=new tt(this.O(Je()),this.O(Je()),this,this.options)):r=i[t],r._$AI(c),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 _t{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,r,t,c){this.type=1,this._$AH=te,this._$AN=void 0,this.element=e,this.name=i,this._$AM=t,this.options=c,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=te}_$AI(e,i=this,r,t){const c=this.strings;let a=!1;if(c===void 0)e=Ue(this,e,i,0),a=!Xe(e)||e!==this._$AH&&e!==ze,a&&(this._$AH=e);else{const p=e;let b,d;for(e=c[0],b=0;b<c.length-1;b++)d=Ue(this,p[r+b],i,b),d===ze&&(d=this._$AH[b]),a||=!Xe(d)||d!==this._$AH[b],d===te?e=te:e!==te&&(e+=(d??"")+c[b+1]),this._$AH[b]=d}a&&!t&&this.j(e)}j(e){e===te?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Os extends _t{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===te?void 0:e}}class Rs extends _t{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==te)}}class $s extends _t{constructor(e,i,r,t,c){super(e,i,r,t,c),this.type=5}_$AI(e,i=this){if((e=Ue(this,e,i,0)??te)===ze)return;const r=this._$AH,t=e===te&&r!==te||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,c=e!==te&&(r===te||t);t&&this.element.removeEventListener(this.name,this,r),c&&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)}}let Ms=class{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){Ue(this,e)}};const Ps=xi.litHtmlPolyfillSupport;Ps?.(Ye,tt),(xi.litHtmlVersions??=[]).push("3.3.1");const Ns=(n,e,i)=>{const r=i?.renderBefore??e;let t=r._$litPart$;if(t===void 0){const c=i?.renderBefore??null;r._$litPart$=t=new tt(e.insertBefore(Je(),c),c,void 0,i??{})}return t._$AI(n),t};const Ei=globalThis;class Re extends De{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=Ns(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ze}}Re._$litElement$=!0,Re.finalized=!0,Ei.litElementHydrateSupport?.({LitElement:Re});const Is=Ei.litElementPolyfillSupport;Is?.({LitElement:Re});(Ei.litElementVersions??=[]).push("4.2.1");const Ts={attribute:!0,type:String,converter:mt,reflect:!1,hasChanged:wi},Ls=(n=Ts,e,i)=>{const{kind:r,metadata:t}=i;let c=globalThis.litPropertyMetadata.get(t);if(c===void 0&&globalThis.litPropertyMetadata.set(t,c=new Map),r==="setter"&&((n=Object.create(n)).wrapped=!0),c.set(i.name,n),r==="accessor"){const{name:a}=i;return{set(p){const b=e.get.call(this);e.set.call(this,p),this.requestUpdate(a,b,n)},init(p){return p!==void 0&&this.C(a,void 0,n,p),p}}}if(r==="setter"){const{name:a}=i;return function(p){const b=this[a];e.call(this,p),this.requestUpdate(a,b,n)}}throw Error("Unsupported decorator location: "+r)};function ae(n){return(e,i)=>typeof i=="object"?Ls(n,e,i):((r,t,c)=>{const a=t.hasOwnProperty(c);return t.constructor.createProperty(c,r),a?Object.getOwnPropertyDescriptor(t,c):void 0})(n,e,i)}const js=n=>n??te,Bs=":host{display:block}:host,.label,.checkbox{outline:none}:host([disabled]){pointer-events:none}:host([disabled]) .root{opacity:.6;cursor:default;filter:grayscale(100%)}:host(:not([disabled])[focused]) .highlight{display:block!important}:host([checked]) circle.inner{display:block!important}:host([checked]) circle.outer{stroke:var(--sd-radio-button-checked-color, #1467ba)!important}:host([oneline]) .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.root{display:inline-flex;align-items:center;vertical-align:middle;width:100%;padding-top:6px;padding-bottom:6px}.root .radio-button-container{position:relative;display:inline-block;width:28px;height:28px;box-sizing:border-box;cursor:pointer;margin-right:5px;flex-shrink:0}.root .radio-button-container input{position:absolute;top:0;left:0;opacity:0}.root .radio-button-container circle.highlight{stroke:var(--sd-radio-button-highlight-color, rgba(20, 103, 186, .3))}.root .radio-button-container circle.inner{fill:var(--sd-radio-button-checked-color, #1467ba)}.root .radio-button-container circle.outer{stroke:var(--sd-radio-button-unchecked-color, #767676)}.root .label{font-family:Segoe UI,Lucida Sans,Arial,sans-serif;text-overflow:ellipsis;overflow-x:hidden;-webkit-user-select:none;user-select:none;cursor:pointer;padding-top:2px;padding-bottom:2px}";var Ds=Object.defineProperty,Et=(n,e,i,r)=>{for(var t=void 0,c=n.length-1,a;c>=0;c--)(a=n[c])&&(t=a(e,i,t)||t);return t&&Ds(e,i,t),t};let zs=0;var ue;const it=(ue=class extends Re{constructor(){super(),this.checked=!1,this.value="",this.disabled=!1,this.label="",this.handleClick=e=>{e.preventDefault()},this.a11yID=ue.ID+"_"+zs++}static get styles(){return[vi`
|
|
253
253
|
${wt(Bs)}
|
|
254
254
|
`]}render(){return Qe`
|
|
255
255
|
<div class="root">
|
|
@@ -276,9 +276,9 @@ function onValueChange(value: string, selectedIndex: number) {
|
|
|
276
276
|
</div>
|
|
277
277
|
<label class="label" for="${this.a11yID}" @click="${this.handleClick}">${this.label}</label>
|
|
278
278
|
</div>
|
|
279
|
-
`}},ue.ID="sd-radio-button",ue.ensureDefined=()=>{customElements.get(ue.ID)||customElements.define(ue.ID,ue)},ue);Et([ae({type:Boolean,reflect:!0,attribute:!0})],it.prototype,"checked");Et([ae({type:String,reflect:!0,attribute:!0})],it.prototype,"value");Et([ae({type:Boolean,reflect:!0,attribute:!0})],it.prototype,"disabled");Et([ae({type:String,reflect:!0,attribute:!0})],it.prototype,"label");let Us=it;const qs=":host{display:inline-block;font-size:13px;line-height:20px;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;color:#111;contain:content}:host([hidden]){display:none!important}:host([level=warn i]){color:#555}:host([level=suggest i]){color:#bf8800}:host([level=error i]){color:#cc0017}:host([level=warn]){color:#555}:host([level=suggest]){color:#bf8800}:host([level=error]){color:#cc0017}.icon{height:12px;width:12px;padding-right:4px;margin-bottom:-1px}",Hs="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cstyle%20id='style3'%3e%20.st0{fill:%23fff}.st1{fill:%23c00}%20%3c/style%3e%3cg%20id='g5'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20id='path9'/%3e%3c/g%3e%3cg%20id='g11'%3e%3cpath%20class='st0'%20id='rect13'%20d='M5.5%202.5h1v4h-1z'/%3e%3cpath%20class='st1'%20d='M6%203v3-3m1-1H5v5h2V2z'%20id='path15'/%3e%3c/g%3e%3cg%20id='g17'%3e%3cpath%20class='st0'%20id='rect19'%20d='M5.5%208.5h1v1h-1z'/%3e%3cpath%20class='st1'%20id='polygon21'%20d='M7%208H5v2h2V8z'/%3e%3c/g%3e%3c/svg%3e",Fs="data:image/svg+xml,%3csvg%20id='Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cstyle%3e%20.st0{fill:%23bf8800}%20%3c/style%3e%3cpath%20class='st0'%20d='M12%20.8l11%2019.8v1.3H1v-1.3L12%20.8zm.8-.6h-1.6L0%2020v3h24v-3L12.8.2z'/%3e%3cpath%20class='st0'%20d='M11%208h2v8h-2zm0%2010h2v2h-2z'/%3e%3c/svg%3e",Ws="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20fill='%23555'/%3e%3cpath%20d='M6%209V6v3m-1%201h2V5H5v5zm2-8H5v2h2z'%20class='st1'%20fill='%23555'/%3e%3c/svg%3e";var Gs=Object.defineProperty,Si=(
|
|
279
|
+
`}},ue.ID="sd-radio-button",ue.ensureDefined=()=>{customElements.get(ue.ID)||customElements.define(ue.ID,ue)},ue);Et([ae({type:Boolean,reflect:!0,attribute:!0})],it.prototype,"checked");Et([ae({type:String,reflect:!0,attribute:!0})],it.prototype,"value");Et([ae({type:Boolean,reflect:!0,attribute:!0})],it.prototype,"disabled");Et([ae({type:String,reflect:!0,attribute:!0})],it.prototype,"label");let Us=it;const qs=":host{display:inline-block;font-size:13px;line-height:20px;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;color:#111;contain:content}:host([hidden]){display:none!important}:host([level=warn i]){color:#555}:host([level=suggest i]){color:#bf8800}:host([level=error i]){color:#cc0017}:host([level=warn]){color:#555}:host([level=suggest]){color:#bf8800}:host([level=error]){color:#cc0017}.icon{height:12px;width:12px;padding-right:4px;margin-bottom:-1px}",Hs="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cstyle%20id='style3'%3e%20.st0{fill:%23fff}.st1{fill:%23c00}%20%3c/style%3e%3cg%20id='g5'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20id='path9'/%3e%3c/g%3e%3cg%20id='g11'%3e%3cpath%20class='st0'%20id='rect13'%20d='M5.5%202.5h1v4h-1z'/%3e%3cpath%20class='st1'%20d='M6%203v3-3m1-1H5v5h2V2z'%20id='path15'/%3e%3c/g%3e%3cg%20id='g17'%3e%3cpath%20class='st0'%20id='rect19'%20d='M5.5%208.5h1v1h-1z'/%3e%3cpath%20class='st1'%20id='polygon21'%20d='M7%208H5v2h2V8z'/%3e%3c/g%3e%3c/svg%3e",Fs="data:image/svg+xml,%3csvg%20id='Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cstyle%3e%20.st0{fill:%23bf8800}%20%3c/style%3e%3cpath%20class='st0'%20d='M12%20.8l11%2019.8v1.3H1v-1.3L12%20.8zm.8-.6h-1.6L0%2020v3h24v-3L12.8.2z'/%3e%3cpath%20class='st0'%20d='M11%208h2v8h-2zm0%2010h2v2h-2z'/%3e%3c/svg%3e",Ws="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20fill='%23555'/%3e%3cpath%20d='M6%209V6v3m-1%201h2V5H5v5zm2-8H5v2h2z'%20class='st1'%20fill='%23555'/%3e%3c/svg%3e";var Gs=Object.defineProperty,Si=(n,e,i,r)=>{for(var t=void 0,c=n.length-1,a;c>=0;c--)(a=n[c])&&(t=a(e,i,t)||t);return t&&Gs(e,i,t),t},Be;const et=(Be=class extends Re{static parseLevel(n){if(n){const e=Object.keys(yt).find(i=>i.toLowerCase()===n.toLowerCase());return e&&yt[e]}}static get styles(){return[vi`
|
|
280
280
|
${wt(qs)}
|
|
281
|
-
`]}render(){return Qe`${this.iconToUse&&Qe`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(
|
|
281
|
+
`]}render(){return Qe`${this.iconToUse&&Qe`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(n){return n.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(n)}get iconForLevel(){switch(Be.parseLevel(this.level)){case"warn":return Ws;case"suggest":return Fs;case"error":return Hs;default:return null}}},Be.ID="sd-field-validation-message",Be.levelConverter={fromAttribute(n){return Be.parseLevel(n)},toAttribute(n){return n&&n.toLowerCase()}},Be);Si([ae({type:String,attribute:!0})],et.prototype,"message");Si([ae({type:String,attribute:!0})],et.prototype,"icon");Si([ae({converter:et.levelConverter,reflect:!0})],et.prototype,"level");let Ut=et;var yt=(n=>(n.Warn="warn",n.Suggest="suggest",n.Error="error",n))(yt||{});customElements.get(Ut.ID)||customElements.define(Ut.ID,Ut);const Vs=":host(:focus){outline:none}.buttons-container{display:flex}.buttons-container.vertical{flex-direction:column}.validation-message{margin-left:5px}";var Zs=Object.defineProperty,Me=(n,e,i,r)=>{for(var t=void 0,c=n.length-1,a;c>=0;c--)(a=n[c])&&(t=a(e,i,t)||t);return t&&Zs(e,i,t),t},ge;const _e=(ge=class extends Re{constructor(){super(...arguments),this.layout="horizontal",this.value="",this.uncheckAllowed=!1,this.disabled=!1,this._focusIndex=-1,this._checkedButton=null,this.handleSlotChange=()=>{this._buttons=this.buttonsSlot.assignedElements(),this._buttons.forEach(e=>{!e.hasAttribute("disabled")&&this.disabled&&e.setAttribute("disabled",""),e.setAttribute("tabIndex","-1"),this.updateCheckedButton(e)})},this.handleFocusIn=e=>{const i=e.target,r=this._buttons.findIndex(t=>t==i);this.focusIndex=this.focusIndex>=0?this.focusIndex:this.getNextFocusIndex(r!==-1?r:0),this.updateFocused(null,this._buttons[this.focusIndex])},this.handleFocusOut=()=>{this.updateFocused(this._buttons[this.focusIndex])},this.handleButtonClick=e=>{this.focus();const i=this._buttons.find(t=>t.contains(e.target)),r=this._buttons.findIndex(t=>t==i);r>=0&&(this.focusIndex=r,this.updateChecked())},this.handleKeyDown=e=>{let i=!0;switch(e.key){case"Down":case"ArrowDown":case"Right":case"ArrowRight":{this.focusNext();break}case"Up":case"ArrowUp":case"Left":case"ArrowLeft":{this.focusPrevious();break}case"Enter":{this.updateChecked();break}default:i=!1}i&&(e.preventDefault(),e.stopPropagation())}}get focusIndex(){return this._focusIndex}set focusIndex(e){if(e>=-1&&e<this.childElementCount){const i=this._focusIndex;if(this._focusIndex=e,i!==e){const r=this._buttons[i],t=this._buttons[this.focusIndex];this.updateFocused(r,t)}}}firstUpdated(e){super.firstUpdated(e),this.buttonsSlot.addEventListener("slotchange",this.handleSlotChange),this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut),this.addEventListener("keydown",this.handleKeyDown)}updated(e){super.updated(e),e.has("disabled")&&(this.disabled?this.disableButtons():this.enableButtons())}static get styles(){return[vi`
|
|
282
282
|
${wt(Vs)}
|
|
283
283
|
`]}render(){return Qe`
|
|
284
284
|
<div
|
|
@@ -296,7 +296,7 @@ function onValueChange(value: string, selectedIndex: number) {
|
|
|
296
296
|
>
|
|
297
297
|
</sd-field-validation-message>
|
|
298
298
|
`}
|
|
299
|
-
`}updateCheckedButton(e){if(this._checkedButton&&this._checkedButton!==e)this.uncheckButton(e);else if(e.hasAttribute("checked")){this._checkedButton=e;const i=e.getAttribute("value");this.updateValue(i)}}disableButtons(){this._buttons?.forEach(e=>{e.setAttribute("disabled","")})}enableButtons(){this._buttons?.forEach(e=>{e.removeAttribute("disabled")})}fireValueChangeEvent(){this.dispatchEvent(new CustomEvent("value-change",{detail:{value:this.value,selectedIndex:this.selectedIndex}}))}getNextFocusIndex(e){for(let i=e;i<this.childElementCount;i++){const
|
|
299
|
+
`}updateCheckedButton(e){if(this._checkedButton&&this._checkedButton!==e)this.uncheckButton(e);else if(e.hasAttribute("checked")){this._checkedButton=e;const i=e.getAttribute("value");this.updateValue(i)}}disableButtons(){this._buttons?.forEach(e=>{e.setAttribute("disabled","")})}enableButtons(){this._buttons?.forEach(e=>{e.removeAttribute("disabled")})}fireValueChangeEvent(){this.dispatchEvent(new CustomEvent("value-change",{detail:{value:this.value,selectedIndex:this.selectedIndex}}))}focusNext(){const e=this.getNextFocusIndex(this.focusIndex+1);this.focusIndex=e!==-1?e:this.getNextFocusIndex(0),this.uncheckAllowed||this.updateChecked()}focusPrevious(){const e=this.getPreviousFocusIndex(this.focusIndex-1);this.focusIndex=e!==-1?e:this.getPreviousFocusIndex(this.childElementCount-1),this.uncheckAllowed||this.updateChecked()}getNextFocusIndex(e){for(let i=e;i<this.childElementCount;i++){const r=this._buttons[i];if(this.isFocusable(r))return i}return-1}getPreviousFocusIndex(e){for(let i=e;i>=0;i--){const r=this._buttons[i];if(this.isFocusable(r))return i}return-1}isFocusable(e){return!e.hasAttribute("disabled")}updateChecked(){const e=this._checkedButton,i=this._buttons[this.focusIndex];this._checkedButton=i,e&&e!==i&&this.uncheckButton(e),i&&this.toggleButton(i)}toggleButton(e){e.hasAttribute("checked")?this.uncheckAllowed&&(this.uncheckButton(e),this._checkedButton=null,this.updateValue("")):(this.checkButton(e),this.updateValue(e.getAttribute("value")))}updateValue(e){this.value=e,this.fireValueChangeEvent()}updateFocused(e,i){e?.removeAttribute?.("focused"),i?.setAttribute?.("focused","")}checkButton(e){e.setAttribute("checked","")}uncheckButton(e){e.removeAttribute("checked")}get buttonsSlot(){return this.shadowRoot&&!this._buttonsSlot&&(this._buttonsSlot=this.shadowRoot.querySelector("slot")),this._buttonsSlot}get selectedIndex(){return this._buttons.indexOf(this._checkedButton)}},ge.ID="sd-radio-button-group",ge.ensureDefined=()=>{Us.ensureDefined(),customElements.get(ge.ID)||customElements.define(ge.ID,ge)},ge);Me([ae({type:String,reflect:!0,attribute:!0})],_e.prototype,"layout");Me([ae({type:String})],_e.prototype,"value");Me([ae({type:Boolean,reflect:!0,attribute:"uncheck-allowed"})],_e.prototype,"uncheckAllowed");Me([ae({type:Boolean,reflect:!0,attribute:!0})],_e.prototype,"disabled");Me([ae({type:String})],_e.prototype,"validationMessage");Me([ae({type:String})],_e.prototype,"validationIconSrc");Me([ae({type:{fromAttribute(n){return n&&yt[n.toLowerCase()]},toAttribute(n){return n&&n.toLowerCase()}},reflect:!0})],_e.prototype,"validationLevel");let Ks=_e;Ks.ensureDefined();const qn=class gt extends HTMLElement{memoizedTemplate(){const e=this.is();if(gt.TEMPLATE_CACHE[e])return gt.TEMPLATE_CACHE[e];const i=this.template();return window.ShadyCSS&&window.ShadyCSS.prepareTemplate(i,this.is()),gt.TEMPLATE_CACHE[e]=i,i}connectedCallback(){const e=this.memoizedTemplate();window.ShadyCSS&&window.ShadyCSS.styleElement(this),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(document.importNode(e.content,!0)),requestAnimationFrame(()=>this.dispatchEvent(new CustomEvent("ready"))))}whenReady(e){this.shadowRoot?e():this.addEventListener("ready",()=>e())}};qn.TEMPLATE_CACHE={};let Js=qn;const Xs=`<style>
|
|
300
300
|
:host {
|
|
301
301
|
contain: content;
|
|
302
302
|
background: rgba(20, 103, 186, 0);
|
|
@@ -401,38 +401,38 @@ function onValueChange(value: string, selectedIndex: number) {
|
|
|
401
401
|
<div class="content">
|
|
402
402
|
<slot></slot>
|
|
403
403
|
</div>
|
|
404
|
-
`,Hn=class Fn extends Js{constructor(){super(),this._isSpaceOrEnterKeyDown=!1,this.addEventListener("keydown",e=>{this.isSpaceOrEnter(e)&&(this._isSpaceOrEnterKeyDown=!0,e.preventDefault())}),this.addEventListener("keyup",e=>{this.isSpaceOrEnter(e)&&this._isSpaceOrEnterKeyDown==!0&&(this._isSpaceOrEnterKeyDown=!1,this.click())}),this.addEventListener("click",e=>{if(this.disabled||this.hasAttribute("disabled")){e.stopImmediatePropagation();return}const i=this.getAttribute("type")?.toLowerCase()?.trim();if(i!=="submit"&&i!=="reset")return;const
|
|
404
|
+
`,Hn=class Fn extends Js{constructor(){super(),this._isSpaceOrEnterKeyDown=!1,this.addEventListener("keydown",e=>{this.isSpaceOrEnter(e)&&(this._isSpaceOrEnterKeyDown=!0,e.preventDefault())}),this.addEventListener("keyup",e=>{this.isSpaceOrEnter(e)&&this._isSpaceOrEnterKeyDown==!0&&(this._isSpaceOrEnterKeyDown=!1,this.click())}),this.addEventListener("click",e=>{if(this.disabled||this.hasAttribute("disabled")){e.stopImmediatePropagation();return}const i=this.getAttribute("type")?.toLowerCase()?.trim();if(i!=="submit"&&i!=="reset")return;const r=this.closest("form");r&&i==="submit"&&r.requestSubmit(),r&&i==="reset"&&r.reset()},{capture:!0})}get imageElement(){return this._image}get icon(){return this.getAttribute("icon")}set icon(e){this.icon!==e&&(e?this.setAttribute("icon",e):this.removeAttribute("icon"),this.updateIcon())}get primary(){return this.hasAttribute("primary")}set primary(e){e?this.setAttribute("primary",""):this.removeAttribute("primary")}get disabled(){return this.getAttribute("aria-disabled")=="true"}set disabled(e){this.setAttribute("aria-disabled",e.toString())}static get observedAttributes(){return["icon"]}is(){return Fn.ID}template(){const e=document.createElement("template");return e.innerHTML=Xs,e}isSpaceOrEnter(e){switch(e.key){case" ":case"Space":case"Enter":return!0;default:return!1}}click(){!this.disabled&&!this.hasAttribute("disabled")&&super.click()}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabIndex")||(this.tabIndex=0),this._image=this.shadowRoot.querySelector(".icon"),this.updateIcon(),this.hasAttribute("role")||this.setAttribute("role","button")}attributeChangedCallback(){this.updateIcon()}updateIcon(){if(this._image){const e=this.getAttribute("icon");e&&(this._image.src=e)}}};Hn.ID="sd-button";let qt=Hn;customElements.get(qt.ID)||customElements.define(qt.ID,qt);function Wn(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Qs(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 dt={exports:{}},on;function Ys(){if(on)return dt.exports;on=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 dt.exports=e(),dt.exports.createColors=e,dt.exports}const eo={},to=Object.freeze(Object.defineProperty({__proto__:null,default:eo},Symbol.toStringTag,{value:"Module"})),de=Qs(to);var Ht,an;function Ai(){if(an)return Ht;an=1;let n=Ys(),e=de;class i extends Error{constructor(t,c,a,p,b,d){super(t),this.name="CssSyntaxError",this.reason=t,b&&(this.file=b),p&&(this.source=p),d&&(this.plugin=d),typeof c<"u"&&typeof a<"u"&&(typeof c=="number"?(this.line=c,this.column=a):(this.line=c.line,this.column=c.column,this.endLine=a.line,this.endColumn=a.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 c=this.source;t==null&&(t=n.isColorSupported);let a=l=>l,p=l=>l,b=l=>l;if(t){let{bold:l,gray:f,red:g}=n.createColors(!0);p=m=>l(g(m)),a=m=>f(m),e&&(b=m=>e(m))}let d=c.split(/\r?\n/),s=Math.max(this.line-3,0),u=Math.min(this.line+2,d.length),o=String(u).length;return d.slice(s,u).map((l,f)=>{let g=s+1+f,m=" "+(" "+g).slice(-o)+" | ";if(g===this.line){if(l.length>160){let E=20,w=Math.max(0,this.column-E),v=Math.max(this.column+E,this.endColumn+E),y=l.slice(w,v),S=a(m.replace(/\d/g," "))+l.slice(0,Math.min(this.column-1,E-1)).replace(/[^\t]/g," ");return p(">")+a(m)+b(y)+`
|
|
405
405
|
`+S+p("^")}let _=a(m.replace(/\d/g," "))+l.slice(0,this.column-1).replace(/[^\t]/g," ");return p(">")+a(m)+b(l)+`
|
|
406
406
|
`+_+p("^")}return" "+a(m)+b(l)}).join(`
|
|
407
407
|
`)}toString(){let t=this.showSourceCode();return t&&(t=`
|
|
408
408
|
|
|
409
409
|
`+t+`
|
|
410
|
-
`),this.name+": "+this.message+t}}return Ht=i,i.default=i,Ht}var Ft,ln;function Gn(){if(ln)return Ft;ln=1;const
|
|
410
|
+
`),this.name+": "+this.message+t}}return Ht=i,i.default=i,Ht}var Ft,ln;function Gn(){if(ln)return Ft;ln=1;const n={after:`
|
|
411
411
|
`,beforeClose:`
|
|
412
412
|
`,beforeComment:`
|
|
413
413
|
`,beforeDecl:`
|
|
414
414
|
`,beforeOpen:" ",beforeRule:`
|
|
415
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function e(
|
|
416
|
-
`)){let d=this.raw(t,null,"indent");if(d.length)for(let s=0;s<b;s++)a+=d}return a}block(t,c){let a=this.raw(t,"between","beforeOpen");this.builder(c+a+"{",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 c=t.nodes.length-1;for(;c>0&&t.nodes[c].type==="comment";)c-=1;let a=this.raw(t,"semicolon");for(let p=0;p<t.nodes.length;p++){let b=t.nodes[p],d=this.raw(b,"before");d&&this.builder(d),this.stringify(b,c!==p||a)}}comment(t){let c=this.raw(t,"left","commentLeft"),a=this.raw(t,"right","commentRight");this.builder("/*"+c+t.text+a+"*/",t)}decl(t,c){let a=this.raw(t,"between","colon"),p=t.prop+a+this.rawValue(t,"value");t.important&&(p+=t.raws.important||" !important"),c&&(p+=";"),this.builder(p,t)}document(t){this.body(t)}raw(t,c,a){let p;if(a||(a=c),c&&(p=t.raws[c],typeof p<"u"))return p;let b=t.parent;if(a==="before"&&(!b||b.type==="root"&&b.first===t||b&&b.type==="document"))return"";if(!b)return
|
|
415
|
+
`,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,c){let a="@"+t.name,p=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName<"u"?a+=t.raws.afterName:p&&(a+=" "),t.nodes)this.block(t,a+p);else{let b=(t.raws.between||"")+(c?";":"");this.builder(a+p+b,t)}}beforeAfter(t,c){let a;t.type==="decl"?a=this.raw(t,null,"beforeDecl"):t.type==="comment"?a=this.raw(t,null,"beforeComment"):c==="before"?a=this.raw(t,null,"beforeRule"):a=this.raw(t,null,"beforeClose");let p=t.parent,b=0;for(;p&&p.type!=="root";)b+=1,p=p.parent;if(a.includes(`
|
|
416
|
+
`)){let d=this.raw(t,null,"indent");if(d.length)for(let s=0;s<b;s++)a+=d}return a}block(t,c){let a=this.raw(t,"between","beforeOpen");this.builder(c+a+"{",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 c=t.nodes.length-1;for(;c>0&&t.nodes[c].type==="comment";)c-=1;let a=this.raw(t,"semicolon");for(let p=0;p<t.nodes.length;p++){let b=t.nodes[p],d=this.raw(b,"before");d&&this.builder(d),this.stringify(b,c!==p||a)}}comment(t){let c=this.raw(t,"left","commentLeft"),a=this.raw(t,"right","commentRight");this.builder("/*"+c+t.text+a+"*/",t)}decl(t,c){let a=this.raw(t,"between","colon"),p=t.prop+a+this.rawValue(t,"value");t.important&&(p+=t.raws.important||" !important"),c&&(p+=";"),this.builder(p,t)}document(t){this.body(t)}raw(t,c,a){let p;if(a||(a=c),c&&(p=t.raws[c],typeof p<"u"))return p;let b=t.parent;if(a==="before"&&(!b||b.type==="root"&&b.first===t||b&&b.type==="document"))return"";if(!b)return n[a];let d=t.root();if(d.rawCache||(d.rawCache={}),typeof d.rawCache[a]<"u")return d.rawCache[a];if(a==="before"||a==="after")return this.beforeAfter(t,a);{let s="raw"+e(a);this[s]?p=this[s](d,t):d.walk(u=>{if(p=u.raws[c],typeof p<"u")return!1})}return typeof p>"u"&&(p=n[a]),d.rawCache[a]=p,p}rawBeforeClose(t){let c;return t.walk(a=>{if(a.nodes&&a.nodes.length>0&&typeof a.raws.after<"u")return c=a.raws.after,c.includes(`
|
|
417
417
|
`)&&(c=c.replace(/[^\n]+$/,"")),!1}),c&&(c=c.replace(/\S/g,"")),c}rawBeforeComment(t,c){let a;return t.walkComments(p=>{if(typeof p.raws.before<"u")return a=p.raws.before,a.includes(`
|
|
418
418
|
`)&&(a=a.replace(/[^\n]+$/,"")),!1}),typeof a>"u"?a=this.raw(c,null,"beforeDecl"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeDecl(t,c){let a;return t.walkDecls(p=>{if(typeof p.raws.before<"u")return a=p.raws.before,a.includes(`
|
|
419
419
|
`)&&(a=a.replace(/[^\n]+$/,"")),!1}),typeof a>"u"?a=this.raw(c,null,"beforeRule"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeOpen(t){let c;return t.walk(a=>{if(a.type!=="decl"&&(c=a.raws.between,typeof c<"u"))return!1}),c}rawBeforeRule(t){let c;return t.walk(a=>{if(a.nodes&&(a.parent!==t||t.first!==a)&&typeof a.raws.before<"u")return c=a.raws.before,c.includes(`
|
|
420
420
|
`)&&(c=c.replace(/[^\n]+$/,"")),!1}),c&&(c=c.replace(/\S/g,"")),c}rawColon(t){let c;return t.walkDecls(a=>{if(typeof a.raws.between<"u")return c=a.raws.between.replace(/[^\s:]/g,""),!1}),c}rawEmptyBody(t){let c;return t.walk(a=>{if(a.nodes&&a.nodes.length===0&&(c=a.raws.after,typeof c<"u"))return!1}),c}rawIndent(t){if(t.raws.indent)return t.raws.indent;let c;return t.walk(a=>{let p=a.parent;if(p&&p!==t&&p.parent&&p.parent===t&&typeof a.raws.before<"u"){let b=a.raws.before.split(`
|
|
421
|
-
`);return c=b[b.length-1],c=c.replace(/\S/g,""),!1}}),c}rawSemicolon(t){let c;return t.walk(a=>{if(a.nodes&&a.nodes.length&&a.last.type==="decl"&&(c=a.raws.semicolon,typeof c<"u"))return!1}),c}rawValue(t,c){let a=t[c],p=t.raws[c];return p&&p.value===a?p.raw:a}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,c){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,c)}}return Ft=i,i.default=i,Ft}var Wt,cn;function St(){if(cn)return Wt;cn=1;let
|
|
422
|
-
`?(s=1,u+=1):s+=1}return o}class p{get proxyOf(){return this}constructor(d={}){this.raws={},this[
|
|
423
|
-
`?(s=1,u+=1):s+=1;return{column:s,line:u,offset:f}}prev(){if(!this.parent)return;let d=this.parent.index(this);return this.parent.nodes[d-1]}rangeBy(d={}){let s="document"in this.source.input?this.source.input.document:this.source.input.css,u={column:this.source.start.column,line:this.source.start.line,offset:a(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:a(s,this.source.end)+1}:{column:u.column+1,line:u.line,offset:u.offset+1};if(d.word){let f=s.slice(a(s,this.source.start),a(s,this.source.end)).indexOf(d.word);f!==-1&&(u=this.positionInside(f),o=this.positionInside(f+d.word.length))}else d.start?u={column:d.start.column,line:d.start.line,offset:a(s,d.start)}:d.index&&(u=this.positionInside(d.index)),d.end?o={column:d.end.column,line:d.end.line,offset:a(s,d.end)}:typeof d.endIndex=="number"?o=this.positionInside(d.endIndex):d.index&&(o=this.positionInside(d.index+1));return(o.line<u.line||o.line===u.line&&o.column<=u.column)&&(o={column:u.column+1,line:u.line,offset:u.offset+1}),{end:o,start:u}}raw(d,s){return new e().raw(this,d,s)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...d){if(this.parent){let s=this,u=!1;for(let o of d)o===this?u=!0:u?(this.parent.insertAfter(s,o),s=o):this.parent.insertBefore(s,o);u||this.remove()}return this}root(){let d=this;for(;d.parent&&d.parent.type!=="document";)d=d.parent;return d}toJSON(d,s){let u={},o=s==null;s=s||new Map;let l=0;for(let f in this){if(!Object.prototype.hasOwnProperty.call(this,f)||f==="parent"||f==="proxyCache")continue;let g=this[f];if(Array.isArray(g))u[f]=g.map(m=>typeof m=="object"&&m.toJSON?m.toJSON(null,s):m);else if(typeof g=="object"&&g.toJSON)u[f]=g.toJSON(null,s);else if(f==="source"){if(g==null)continue;let m=s.get(g.input);m==null&&(m=l,s.set(g.input,l),l++),u[f]={end:g.end,inputId:m,start:g.start}}else u[f]=g}return o&&(u.inputs=[...s.keys()].map(f=>f.toJSON())),u}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(d=i){d.stringify&&(d=d.stringify);let s="";return d(this,u=>{s+=u}),s}warn(d,s,u={}){let o={node:this};for(let l in u)o[l]=u[l];return d.warn(s,o)}}return Gt=p,p.default=p,Gt}var Vt,hn;function kt(){if(hn)return Vt;hn=1;let r=At();class e extends r{constructor(n){super(n),this.type="comment"}}return Vt=e,e.default=e,Vt}var Zt,fn;function Ct(){if(fn)return Zt;fn=1;let r=At();class e extends r{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(n){n&&typeof n.value<"u"&&typeof n.value!="string"&&(n={...n,value:String(n.value)}),super(n),this.type="decl"}}return Zt=e,e.default=e,Zt}var Kt,pn;function Pe(){if(pn)return Kt;pn=1;let r=kt(),e=Ct(),i=At(),{isClean:n,my:t}=ki(),c,a,p,b;function d(o){return o.map(l=>(l.nodes&&(l.nodes=d(l.nodes)),delete l.source,l))}function s(o){if(o[n]=!1,o.proxyOf.nodes)for(let l of o.proxyOf.nodes)s(l)}class u extends i{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...l){for(let f of l){let g=this.normalize(f,this.last);for(let m of g)this.proxyOf.nodes.push(m)}return this.markDirty(),this}cleanRaws(l){if(super.cleanRaws(l),this.nodes)for(let f of this.nodes)f.cleanRaws(l)}each(l){if(!this.proxyOf.nodes)return;let f=this.getIterator(),g,m;for(;this.indexes[f]<this.proxyOf.nodes.length&&(g=this.indexes[f],m=l(this.proxyOf.nodes[g],g),m!==!1);)this.indexes[f]+=1;return delete this.indexes[f],m}every(l){return this.nodes.every(l)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let l=this.lastEach;return this.indexes[l]=0,l}getProxyProcessor(){return{get(l,f){return f==="proxyOf"?l:l[f]?f==="each"||typeof f=="string"&&f.startsWith("walk")?(...g)=>l[f](...g.map(m=>typeof m=="function"?(_,E)=>m(_.toProxy(),E):m)):f==="every"||f==="some"?g=>l[f]((m,..._)=>g(m.toProxy(),..._)):f==="root"?()=>l.root().toProxy():f==="nodes"?l.nodes.map(g=>g.toProxy()):f==="first"||f==="last"?l[f].toProxy():l[f]:l[f]},set(l,f,g){return l[f]===g||(l[f]=g,(f==="name"||f==="params"||f==="selector")&&l.markDirty()),!0}}}index(l){return typeof l=="number"?l:(l.proxyOf&&(l=l.proxyOf),this.proxyOf.nodes.indexOf(l))}insertAfter(l,f){let g=this.index(l),m=this.normalize(f,this.proxyOf.nodes[g]).reverse();g=this.index(l);for(let E of m)this.proxyOf.nodes.splice(g+1,0,E);let _;for(let E in this.indexes)_=this.indexes[E],g<_&&(this.indexes[E]=_+m.length);return this.markDirty(),this}insertBefore(l,f){let g=this.index(l),m=g===0?"prepend":!1,_=this.normalize(f,this.proxyOf.nodes[g],m).reverse();g=this.index(l);for(let w of _)this.proxyOf.nodes.splice(g,0,w);let E;for(let w in this.indexes)E=this.indexes[w],g<=E&&(this.indexes[w]=E+_.length);return this.markDirty(),this}normalize(l,f){if(typeof l=="string")l=d(a(l).nodes);else if(typeof l>"u")l=[];else if(Array.isArray(l)){l=l.slice(0);for(let m of l)m.parent&&m.parent.removeChild(m,"ignore")}else if(l.type==="root"&&this.type!=="document"){l=l.nodes.slice(0);for(let m of l)m.parent&&m.parent.removeChild(m,"ignore")}else if(l.type)l=[l];else if(l.prop){if(typeof l.value>"u")throw new Error("Value field is missed in node creation");typeof l.value!="string"&&(l.value=String(l.value)),l=[new e(l)]}else if(l.selector||l.selectors)l=[new b(l)];else if(l.name)l=[new c(l)];else if(l.text)l=[new r(l)];else throw new Error("Unknown node type in node creation");return l.map(m=>(m[t]||u.rebuild(m),m=m.proxyOf,m.parent&&m.parent.removeChild(m),m[n]&&s(m),m.raws||(m.raws={}),typeof m.raws.before>"u"&&f&&typeof f.raws.before<"u"&&(m.raws.before=f.raws.before.replace(/\S/g,"")),m.parent=this.proxyOf,m))}prepend(...l){l=l.reverse();for(let f of l){let g=this.normalize(f,this.first,"prepend").reverse();for(let m of g)this.proxyOf.nodes.unshift(m);for(let m in this.indexes)this.indexes[m]=this.indexes[m]+g.length}return this.markDirty(),this}push(l){return l.parent=this,this.proxyOf.nodes.push(l),this}removeAll(){for(let l of this.proxyOf.nodes)l.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(l){l=this.index(l),this.proxyOf.nodes[l].parent=void 0,this.proxyOf.nodes.splice(l,1);let f;for(let g in this.indexes)f=this.indexes[g],f>=l&&(this.indexes[g]=f-1);return this.markDirty(),this}replaceValues(l,f,g){return g||(g=f,f={}),this.walkDecls(m=>{f.props&&!f.props.includes(m.prop)||f.fast&&!m.value.includes(f.fast)||(m.value=m.value.replace(l,g))}),this.markDirty(),this}some(l){return this.nodes.some(l)}walk(l){return this.each((f,g)=>{let m;try{m=l(f,g)}catch(_){throw f.addToError(_)}return m!==!1&&f.walk&&(m=f.walk(l)),m})}walkAtRules(l,f){return f?l instanceof RegExp?this.walk((g,m)=>{if(g.type==="atrule"&&l.test(g.name))return f(g,m)}):this.walk((g,m)=>{if(g.type==="atrule"&&g.name===l)return f(g,m)}):(f=l,this.walk((g,m)=>{if(g.type==="atrule")return f(g,m)}))}walkComments(l){return this.walk((f,g)=>{if(f.type==="comment")return l(f,g)})}walkDecls(l,f){return f?l instanceof RegExp?this.walk((g,m)=>{if(g.type==="decl"&&l.test(g.prop))return f(g,m)}):this.walk((g,m)=>{if(g.type==="decl"&&g.prop===l)return f(g,m)}):(f=l,this.walk((g,m)=>{if(g.type==="decl")return f(g,m)}))}walkRules(l,f){return f?l instanceof RegExp?this.walk((g,m)=>{if(g.type==="rule"&&l.test(g.selector))return f(g,m)}):this.walk((g,m)=>{if(g.type==="rule"&&g.selector===l)return f(g,m)}):(f=l,this.walk((g,m)=>{if(g.type==="rule")return f(g,m)}))}}return u.registerParse=o=>{a=o},u.registerRule=o=>{b=o},u.registerAtRule=o=>{c=o},u.registerRoot=o=>{p=o},Kt=u,u.default=u,u.rebuild=o=>{o.type==="atrule"?Object.setPrototypeOf(o,c.prototype):o.type==="rule"?Object.setPrototypeOf(o,b.prototype):o.type==="decl"?Object.setPrototypeOf(o,e.prototype):o.type==="comment"?Object.setPrototypeOf(o,r.prototype):o.type==="root"&&Object.setPrototypeOf(o,p.prototype),o[t]=!0,o.nodes&&o.nodes.forEach(l=>{u.rebuild(l)})},Kt}var Jt,gn;function Ci(){if(gn)return Jt;gn=1;let r=Pe();class e extends r{constructor(n){super(n),this.type="atrule"}append(...n){return this.proxyOf.nodes||(this.nodes=[]),super.append(...n)}prepend(...n){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...n)}}return Jt=e,e.default=e,r.registerAtRule(e),Jt}var Xt,mn;function Oi(){if(mn)return Xt;mn=1;let r=Pe(),e,i;class n extends r{constructor(c){super({type:"document",...c}),this.nodes||(this.nodes=[])}toResult(c={}){return new e(new i,this,c).stringify()}}return n.registerLazyResult=t=>{e=t},n.registerProcessor=t=>{i=t},Xt=n,n.default=n,Xt}var Qt,bn;function io(){if(bn)return Qt;bn=1;let r="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Qt={nanoid:(n=21)=>{let t="",c=n|0;for(;c--;)t+=r[Math.random()*64|0];return t},customAlphabet:(n,t=21)=>(c=t)=>{let a="",p=c|0;for(;p--;)a+=n[Math.random()*n.length|0];return a}},Qt}var Yt,yn;function Vn(){if(yn)return Yt;yn=1;let{existsSync:r,readFileSync:e}=de,{dirname:i,join:n}=de,{SourceMapConsumer:t,SourceMapGenerator:c}=de;function a(b){return Buffer?Buffer.from(b,"base64").toString():window.atob(b)}class p{constructor(d,s){if(s.map===!1)return;this.loadAnnotation(d),this.inline=this.startWith(this.annotation,"data:");let u=s.map?s.map.prev:void 0,o=this.loadMap(s.from,u);!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(d){let s=/^data:application\/json;charset=utf-?8;base64,/,u=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,l=/^data:application\/json,/,f=d.match(o)||d.match(l);if(f)return decodeURIComponent(d.substr(f[0].length));let g=d.match(s)||d.match(u);if(g)return a(d.substr(g[0].length));let m=d.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(d){return d.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(d){return typeof d!="object"?!1:typeof d.mappings=="string"||typeof d._mappings=="string"||Array.isArray(d.sections)}loadAnnotation(d){let s=d.match(/\/\*\s*# sourceMappingURL=/g);if(!s)return;let u=d.lastIndexOf(s.pop()),o=d.indexOf("*/",u);u>-1&&o>-1&&(this.annotation=this.getAnnotationURL(d.substring(u,o)))}loadFile(d){if(this.root=i(d),r(d))return this.mapFile=d,e(d,"utf-8").toString().trim()}loadMap(d,s){if(s===!1)return!1;if(s){if(typeof s=="string")return s;if(typeof s=="function"){let u=s(d);if(u){let o=this.loadFile(u);if(!o)throw new Error("Unable to load previous source map: "+u.toString());return o}}else{if(s instanceof t)return c.fromSourceMap(s).toString();if(s instanceof c)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 u=this.annotation;return d&&(u=n(i(d),u)),this.loadFile(u)}}}startWith(d,s){return d?d.substr(0,s.length)===s:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Yt=p,p.default=p,Yt}var ei,vn;function Ot(){if(vn)return ei;vn=1;let{nanoid:r}=io(),{isAbsolute:e,resolve:i}=de,{SourceMapConsumer:n,SourceMapGenerator:t}=de,{fileURLToPath:c,pathToFileURL:a}=de,p=Ai(),b=Vn(),d=de,s=Symbol("lineToIndexCache"),u=!!(n&&t),o=!!(i&&e);function l(g){if(g[s])return g[s];let m=g.css.split(`
|
|
424
|
-
`),_=new Array(m.length),E=0;for(let w=0,v=m.length;w<v;w++)_[w]=E,E+=m[w].length+1;return g[s]=_,_}class f{get from(){return this.file||this.id}constructor(m,_={}){if(m===null||typeof m>"u"||typeof m=="object"&&!m.toString)throw new Error(`PostCSS received ${m} instead of CSS string`);if(this.css=m.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&&u){let E=new b(this.css,_);if(E.text){this.map=E;let w=E.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+
|
|
425
|
-
`," "];return
|
|
421
|
+
`);return c=b[b.length-1],c=c.replace(/\S/g,""),!1}}),c}rawSemicolon(t){let c;return t.walk(a=>{if(a.nodes&&a.nodes.length&&a.last.type==="decl"&&(c=a.raws.semicolon,typeof c<"u"))return!1}),c}rawValue(t,c){let a=t[c],p=t.raws[c];return p&&p.value===a?p.raw:a}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,c){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,c)}}return Ft=i,i.default=i,Ft}var Wt,cn;function St(){if(cn)return Wt;cn=1;let n=Gn();function e(i,r){new n(r).stringify(i)}return Wt=e,e.default=e,Wt}var ht={},un;function ki(){return un||(un=1,ht.isClean=Symbol("isClean"),ht.my=Symbol("my")),ht}var Gt,dn;function At(){if(dn)return Gt;dn=1;let n=Ai(),e=Gn(),i=St(),{isClean:r,my:t}=ki();function c(b,d){let s=new b.constructor;for(let u in b){if(!Object.prototype.hasOwnProperty.call(b,u)||u==="proxyCache")continue;let o=b[u],l=typeof o;u==="parent"&&l==="object"?d&&(s[u]=d):u==="source"?s[u]=o:Array.isArray(o)?s[u]=o.map(f=>c(f,s)):(l==="object"&&o!==null&&(o=c(o)),s[u]=o)}return s}function a(b,d){if(d&&typeof d.offset<"u")return d.offset;let s=1,u=1,o=0;for(let l=0;l<b.length;l++){if(u===d.line&&s===d.column){o=l;break}b[l]===`
|
|
422
|
+
`?(s=1,u+=1):s+=1}return o}class p{get proxyOf(){return this}constructor(d={}){this.raws={},this[r]=!1,this[t]=!0;for(let s in d)if(s==="nodes"){this.nodes=[];for(let u of d[s])typeof u.clone=="function"?this.append(u.clone()):this.append(u)}else this[s]=d[s]}addToError(d){if(d.postcssNode=this,d.stack&&this.source&&/\n\s{4}at /.test(d.stack)){let s=this.source;d.stack=d.stack.replace(/\n\s{4}at /,`$&${s.input.from}:${s.start.line}:${s.start.column}$&`)}return d}after(d){return this.parent.insertAfter(this,d),this}assign(d={}){for(let s in d)this[s]=d[s];return this}before(d){return this.parent.insertBefore(this,d),this}cleanRaws(d){delete this.raws.before,delete this.raws.after,d||delete this.raws.between}clone(d={}){let s=c(this);for(let u in d)s[u]=d[u];return s}cloneAfter(d={}){let s=this.clone(d);return this.parent.insertAfter(this,s),s}cloneBefore(d={}){let s=this.clone(d);return this.parent.insertBefore(this,s),s}error(d,s={}){if(this.source){let{end:u,start:o}=this.rangeBy(s);return this.source.input.error(d,{column:o.column,line:o.line},{column:u.column,line:u.line},s)}return new n(d)}getProxyProcessor(){return{get(d,s){return s==="proxyOf"?d:s==="root"?()=>d.root().toProxy():d[s]},set(d,s,u){return d[s]===u||(d[s]=u,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&d.markDirty()),!0}}}markClean(){this[r]=!0}markDirty(){if(this[r]){this[r]=!1;let d=this;for(;d=d.parent;)d[r]=!1}}next(){if(!this.parent)return;let d=this.parent.index(this);return this.parent.nodes[d+1]}positionBy(d={}){let s=this.source.start;if(d.index)s=this.positionInside(d.index);else if(d.word){let u="document"in this.source.input?this.source.input.document:this.source.input.css,l=u.slice(a(u,this.source.start),a(u,this.source.end)).indexOf(d.word);l!==-1&&(s=this.positionInside(l))}return s}positionInside(d){let s=this.source.start.column,u=this.source.start.line,o="document"in this.source.input?this.source.input.document:this.source.input.css,l=a(o,this.source.start),f=l+d;for(let g=l;g<f;g++)o[g]===`
|
|
423
|
+
`?(s=1,u+=1):s+=1;return{column:s,line:u,offset:f}}prev(){if(!this.parent)return;let d=this.parent.index(this);return this.parent.nodes[d-1]}rangeBy(d={}){let s="document"in this.source.input?this.source.input.document:this.source.input.css,u={column:this.source.start.column,line:this.source.start.line,offset:a(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:a(s,this.source.end)+1}:{column:u.column+1,line:u.line,offset:u.offset+1};if(d.word){let f=s.slice(a(s,this.source.start),a(s,this.source.end)).indexOf(d.word);f!==-1&&(u=this.positionInside(f),o=this.positionInside(f+d.word.length))}else d.start?u={column:d.start.column,line:d.start.line,offset:a(s,d.start)}:d.index&&(u=this.positionInside(d.index)),d.end?o={column:d.end.column,line:d.end.line,offset:a(s,d.end)}:typeof d.endIndex=="number"?o=this.positionInside(d.endIndex):d.index&&(o=this.positionInside(d.index+1));return(o.line<u.line||o.line===u.line&&o.column<=u.column)&&(o={column:u.column+1,line:u.line,offset:u.offset+1}),{end:o,start:u}}raw(d,s){return new e().raw(this,d,s)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...d){if(this.parent){let s=this,u=!1;for(let o of d)o===this?u=!0:u?(this.parent.insertAfter(s,o),s=o):this.parent.insertBefore(s,o);u||this.remove()}return this}root(){let d=this;for(;d.parent&&d.parent.type!=="document";)d=d.parent;return d}toJSON(d,s){let u={},o=s==null;s=s||new Map;let l=0;for(let f in this){if(!Object.prototype.hasOwnProperty.call(this,f)||f==="parent"||f==="proxyCache")continue;let g=this[f];if(Array.isArray(g))u[f]=g.map(m=>typeof m=="object"&&m.toJSON?m.toJSON(null,s):m);else if(typeof g=="object"&&g.toJSON)u[f]=g.toJSON(null,s);else if(f==="source"){if(g==null)continue;let m=s.get(g.input);m==null&&(m=l,s.set(g.input,l),l++),u[f]={end:g.end,inputId:m,start:g.start}}else u[f]=g}return o&&(u.inputs=[...s.keys()].map(f=>f.toJSON())),u}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(d=i){d.stringify&&(d=d.stringify);let s="";return d(this,u=>{s+=u}),s}warn(d,s,u={}){let o={node:this};for(let l in u)o[l]=u[l];return d.warn(s,o)}}return Gt=p,p.default=p,Gt}var Vt,hn;function kt(){if(hn)return Vt;hn=1;let n=At();class e extends n{constructor(r){super(r),this.type="comment"}}return Vt=e,e.default=e,Vt}var Zt,fn;function Ct(){if(fn)return Zt;fn=1;let n=At();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 Kt,pn;function Pe(){if(pn)return Kt;pn=1;let n=kt(),e=Ct(),i=At(),{isClean:r,my:t}=ki(),c,a,p,b;function d(o){return o.map(l=>(l.nodes&&(l.nodes=d(l.nodes)),delete l.source,l))}function s(o){if(o[r]=!1,o.proxyOf.nodes)for(let l of o.proxyOf.nodes)s(l)}class u extends i{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...l){for(let f of l){let g=this.normalize(f,this.last);for(let m of g)this.proxyOf.nodes.push(m)}return this.markDirty(),this}cleanRaws(l){if(super.cleanRaws(l),this.nodes)for(let f of this.nodes)f.cleanRaws(l)}each(l){if(!this.proxyOf.nodes)return;let f=this.getIterator(),g,m;for(;this.indexes[f]<this.proxyOf.nodes.length&&(g=this.indexes[f],m=l(this.proxyOf.nodes[g],g),m!==!1);)this.indexes[f]+=1;return delete this.indexes[f],m}every(l){return this.nodes.every(l)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let l=this.lastEach;return this.indexes[l]=0,l}getProxyProcessor(){return{get(l,f){return f==="proxyOf"?l:l[f]?f==="each"||typeof f=="string"&&f.startsWith("walk")?(...g)=>l[f](...g.map(m=>typeof m=="function"?(_,E)=>m(_.toProxy(),E):m)):f==="every"||f==="some"?g=>l[f]((m,..._)=>g(m.toProxy(),..._)):f==="root"?()=>l.root().toProxy():f==="nodes"?l.nodes.map(g=>g.toProxy()):f==="first"||f==="last"?l[f].toProxy():l[f]:l[f]},set(l,f,g){return l[f]===g||(l[f]=g,(f==="name"||f==="params"||f==="selector")&&l.markDirty()),!0}}}index(l){return typeof l=="number"?l:(l.proxyOf&&(l=l.proxyOf),this.proxyOf.nodes.indexOf(l))}insertAfter(l,f){let g=this.index(l),m=this.normalize(f,this.proxyOf.nodes[g]).reverse();g=this.index(l);for(let E of m)this.proxyOf.nodes.splice(g+1,0,E);let _;for(let E in this.indexes)_=this.indexes[E],g<_&&(this.indexes[E]=_+m.length);return this.markDirty(),this}insertBefore(l,f){let g=this.index(l),m=g===0?"prepend":!1,_=this.normalize(f,this.proxyOf.nodes[g],m).reverse();g=this.index(l);for(let w of _)this.proxyOf.nodes.splice(g,0,w);let E;for(let w in this.indexes)E=this.indexes[w],g<=E&&(this.indexes[w]=E+_.length);return this.markDirty(),this}normalize(l,f){if(typeof l=="string")l=d(a(l).nodes);else if(typeof l>"u")l=[];else if(Array.isArray(l)){l=l.slice(0);for(let m of l)m.parent&&m.parent.removeChild(m,"ignore")}else if(l.type==="root"&&this.type!=="document"){l=l.nodes.slice(0);for(let m of l)m.parent&&m.parent.removeChild(m,"ignore")}else if(l.type)l=[l];else if(l.prop){if(typeof l.value>"u")throw new Error("Value field is missed in node creation");typeof l.value!="string"&&(l.value=String(l.value)),l=[new e(l)]}else if(l.selector||l.selectors)l=[new b(l)];else if(l.name)l=[new c(l)];else if(l.text)l=[new n(l)];else throw new Error("Unknown node type in node creation");return l.map(m=>(m[t]||u.rebuild(m),m=m.proxyOf,m.parent&&m.parent.removeChild(m),m[r]&&s(m),m.raws||(m.raws={}),typeof m.raws.before>"u"&&f&&typeof f.raws.before<"u"&&(m.raws.before=f.raws.before.replace(/\S/g,"")),m.parent=this.proxyOf,m))}prepend(...l){l=l.reverse();for(let f of l){let g=this.normalize(f,this.first,"prepend").reverse();for(let m of g)this.proxyOf.nodes.unshift(m);for(let m in this.indexes)this.indexes[m]=this.indexes[m]+g.length}return this.markDirty(),this}push(l){return l.parent=this,this.proxyOf.nodes.push(l),this}removeAll(){for(let l of this.proxyOf.nodes)l.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(l){l=this.index(l),this.proxyOf.nodes[l].parent=void 0,this.proxyOf.nodes.splice(l,1);let f;for(let g in this.indexes)f=this.indexes[g],f>=l&&(this.indexes[g]=f-1);return this.markDirty(),this}replaceValues(l,f,g){return g||(g=f,f={}),this.walkDecls(m=>{f.props&&!f.props.includes(m.prop)||f.fast&&!m.value.includes(f.fast)||(m.value=m.value.replace(l,g))}),this.markDirty(),this}some(l){return this.nodes.some(l)}walk(l){return this.each((f,g)=>{let m;try{m=l(f,g)}catch(_){throw f.addToError(_)}return m!==!1&&f.walk&&(m=f.walk(l)),m})}walkAtRules(l,f){return f?l instanceof RegExp?this.walk((g,m)=>{if(g.type==="atrule"&&l.test(g.name))return f(g,m)}):this.walk((g,m)=>{if(g.type==="atrule"&&g.name===l)return f(g,m)}):(f=l,this.walk((g,m)=>{if(g.type==="atrule")return f(g,m)}))}walkComments(l){return this.walk((f,g)=>{if(f.type==="comment")return l(f,g)})}walkDecls(l,f){return f?l instanceof RegExp?this.walk((g,m)=>{if(g.type==="decl"&&l.test(g.prop))return f(g,m)}):this.walk((g,m)=>{if(g.type==="decl"&&g.prop===l)return f(g,m)}):(f=l,this.walk((g,m)=>{if(g.type==="decl")return f(g,m)}))}walkRules(l,f){return f?l instanceof RegExp?this.walk((g,m)=>{if(g.type==="rule"&&l.test(g.selector))return f(g,m)}):this.walk((g,m)=>{if(g.type==="rule"&&g.selector===l)return f(g,m)}):(f=l,this.walk((g,m)=>{if(g.type==="rule")return f(g,m)}))}}return u.registerParse=o=>{a=o},u.registerRule=o=>{b=o},u.registerAtRule=o=>{c=o},u.registerRoot=o=>{p=o},Kt=u,u.default=u,u.rebuild=o=>{o.type==="atrule"?Object.setPrototypeOf(o,c.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(l=>{u.rebuild(l)})},Kt}var Jt,gn;function Ci(){if(gn)return Jt;gn=1;let n=Pe();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 Jt=e,e.default=e,n.registerAtRule(e),Jt}var Xt,mn;function Oi(){if(mn)return Xt;mn=1;let n=Pe(),e,i;class r extends n{constructor(c){super({type:"document",...c}),this.nodes||(this.nodes=[])}toResult(c={}){return new e(new i,this,c).stringify()}}return r.registerLazyResult=t=>{e=t},r.registerProcessor=t=>{i=t},Xt=r,r.default=r,Xt}var Qt,bn;function io(){if(bn)return Qt;bn=1;let n="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Qt={nanoid:(r=21)=>{let t="",c=r|0;for(;c--;)t+=n[Math.random()*64|0];return t},customAlphabet:(r,t=21)=>(c=t)=>{let a="",p=c|0;for(;p--;)a+=r[Math.random()*r.length|0];return a}},Qt}var Yt,yn;function Vn(){if(yn)return Yt;yn=1;let{existsSync:n,readFileSync:e}=de,{dirname:i,join:r}=de,{SourceMapConsumer:t,SourceMapGenerator:c}=de;function a(b){return Buffer?Buffer.from(b,"base64").toString():window.atob(b)}class p{constructor(d,s){if(s.map===!1)return;this.loadAnnotation(d),this.inline=this.startWith(this.annotation,"data:");let u=s.map?s.map.prev:void 0,o=this.loadMap(s.from,u);!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(d){let s=/^data:application\/json;charset=utf-?8;base64,/,u=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,l=/^data:application\/json,/,f=d.match(o)||d.match(l);if(f)return decodeURIComponent(d.substr(f[0].length));let g=d.match(s)||d.match(u);if(g)return a(d.substr(g[0].length));let m=d.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(d){return d.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(d){return typeof d!="object"?!1:typeof d.mappings=="string"||typeof d._mappings=="string"||Array.isArray(d.sections)}loadAnnotation(d){let s=d.match(/\/\*\s*# sourceMappingURL=/g);if(!s)return;let u=d.lastIndexOf(s.pop()),o=d.indexOf("*/",u);u>-1&&o>-1&&(this.annotation=this.getAnnotationURL(d.substring(u,o)))}loadFile(d){if(this.root=i(d),n(d))return this.mapFile=d,e(d,"utf-8").toString().trim()}loadMap(d,s){if(s===!1)return!1;if(s){if(typeof s=="string")return s;if(typeof s=="function"){let u=s(d);if(u){let o=this.loadFile(u);if(!o)throw new Error("Unable to load previous source map: "+u.toString());return o}}else{if(s instanceof t)return c.fromSourceMap(s).toString();if(s instanceof c)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 u=this.annotation;return d&&(u=r(i(d),u)),this.loadFile(u)}}}startWith(d,s){return d?d.substr(0,s.length)===s:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Yt=p,p.default=p,Yt}var ei,vn;function Ot(){if(vn)return ei;vn=1;let{nanoid:n}=io(),{isAbsolute:e,resolve:i}=de,{SourceMapConsumer:r,SourceMapGenerator:t}=de,{fileURLToPath:c,pathToFileURL:a}=de,p=Ai(),b=Vn(),d=de,s=Symbol("lineToIndexCache"),u=!!(r&&t),o=!!(i&&e);function l(g){if(g[s])return g[s];let m=g.css.split(`
|
|
424
|
+
`),_=new Array(m.length),E=0;for(let w=0,v=m.length;w<v;w++)_[w]=E,E+=m[w].length+1;return g[s]=_,_}class f{get from(){return this.file||this.id}constructor(m,_={}){if(m===null||typeof m>"u"||typeof m=="object"&&!m.toString)throw new Error(`PostCSS received ${m} instead of CSS string`);if(this.css=m.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&&u){let E=new b(this.css,_);if(E.text){this.map=E;let w=E.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+n(6)+">"),this.map&&(this.map.file=this.from)}error(m,_,E,w={}){let v,y,S,O,T;if(_&&typeof _=="object"){let N=_,K=E;if(typeof N.offset=="number"){O=N.offset;let H=this.fromOffset(O);_=H.line,E=H.col}else _=N.line,E=N.column,O=this.fromLineAndColumn(_,E);if(typeof K.offset=="number"){S=K.offset;let H=this.fromOffset(S);y=H.line,v=H.col}else y=K.line,v=K.column,S=this.fromLineAndColumn(K.line,K.column)}else if(E)O=this.fromLineAndColumn(_,E);else{O=_;let N=this.fromOffset(O);_=N.line,E=N.col}let z=this.origin(_,E,y,v);return z?T=new p(m,z.endLine===void 0?z.line:{column:z.column,line:z.line},z.endLine===void 0?z.column:{column:z.endColumn,line:z.endLine},z.source,z.file,w.plugin):T=new p(m,y===void 0?_:{column:E,line:_},y===void 0?E:{column:v,line:y},this.css,this.file,w.plugin),T.input={column:E,endColumn:v,endLine:y,endOffset:S,line:_,offset:O,source:this.css},this.file&&(a&&(T.input.url=a(this.file).toString()),T.input.file=this.file),T}fromLineAndColumn(m,_){return l(this)[m-1]+_-1}fromOffset(m){let _=l(this),E=_[_.length-1],w=0;if(m>=E)w=_.length-1;else{let v=_.length-2,y;for(;w<v;)if(y=w+(v-w>>1),m<_[y])v=y-1;else if(m>=_[y+1])w=y+1;else{w=y;break}}return{col:m-_[w]+1,line:w+1}}mapResolve(m){return/^\w+:\/\//.test(m)?m:i(this.map.consumer().sourceRoot||this.map.root||".",m)}origin(m,_,E,w){if(!this.map)return!1;let v=this.map.consumer(),y=v.originalPositionFor({column:_,line:m});if(!y.source)return!1;let S;typeof E=="number"&&(S=v.originalPositionFor({column:w,line:E}));let O;e(y.source)?O=a(y.source):O=new URL(y.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let T={column:y.column,endColumn:S&&S.column,endLine:S&&S.line,line:y.line,url:O.toString()};if(O.protocol==="file:")if(c)T.file=c(O);else throw new Error("file: protocol is not available in this PostCSS build");let z=v.sourceContentFor(y.source);return z&&(T.source=z),T}toJSON(){let m={};for(let _ of["hasBOM","css","file","id"])this[_]!=null&&(m[_]=this[_]);return this.map&&(m.map={...this.map},m.map.consumerCache&&(m.map.consumerCache=void 0)),m}}return ei=f,f.default=f,d&&d.registerInput&&d.registerInput(f),ei}var ti,wn;function nt(){if(wn)return ti;wn=1;let n=Pe(),e,i;class r extends n{constructor(c){super(c),this.type="root",this.nodes||(this.nodes=[])}normalize(c,a,p){let b=super.normalize(c);if(a){if(p==="prepend")this.nodes.length>1?a.raws.before=this.nodes[1].raws.before:delete a.raws.before;else if(this.first!==a)for(let d of b)d.raws.before=a.raws.before}return b}removeChild(c,a){let p=this.index(c);return!a&&p===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[p].raws.before),super.removeChild(c)}toResult(c={}){return new e(new i,this,c).stringify()}}return r.registerLazyResult=t=>{e=t},r.registerProcessor=t=>{i=t},ti=r,r.default=r,n.registerRoot(r),ti}var ii,xn;function Zn(){if(xn)return ii;xn=1;let n={comma(e){return n.split(e,[","],!0)},space(e){let i=[" ",`
|
|
425
|
+
`," "];return n.split(e,i)},split(e,i,r){let t=[],c="",a=!1,p=0,b=!1,d="",s=!1;for(let u of e)s?s=!1:u==="\\"?s=!0:b?u===d&&(b=!1):u==='"'||u==="'"?(b=!0,d=u):u==="("?p+=1:u===")"?p>0&&(p-=1):p===0&&i.includes(u)&&(a=!0),a?(c!==""&&t.push(c.trim()),c="",a=!1):c+=u;return(r||c!=="")&&t.push(c.trim()),t}};return ii=n,n.default=n,ii}var ni,_n;function Ri(){if(_n)return ni;_n=1;let n=Pe(),e=Zn();class i extends n{get selectors(){return e.comma(this.selector)}set selectors(t){let c=this.selector?this.selector.match(/,\s*/):null,a=c?c[0]:","+this.raw("between","beforeOpen");this.selector=t.join(a)}constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}}return ni=i,i.default=i,n.registerRule(i),ni}var ri,En;function no(){if(En)return ri;En=1;let n=Ci(),e=kt(),i=Ct(),r=Ot(),t=Vn(),c=nt(),a=Ri();function p(b,d){if(Array.isArray(b))return b.map(o=>p(o));let{inputs:s,...u}=b;if(s){d=[];for(let o of s){let l={...o,__proto__:r.prototype};l.map&&(l.map={...l.map,__proto__:t.prototype}),d.push(l)}}if(u.nodes&&(u.nodes=b.nodes.map(o=>p(o,d))),u.source){let{inputId:o,...l}=u.source;u.source=l,o!=null&&(u.source.input=d[o])}if(u.type==="root")return new c(u);if(u.type==="decl")return new i(u);if(u.type==="rule")return new a(u);if(u.type==="comment")return new e(u);if(u.type==="atrule")return new n(u);throw new Error("Unknown node type: "+b.type)}return ri=p,p.default=p,ri}var si,Sn;function Kn(){if(Sn)return si;Sn=1;let{dirname:n,relative:e,resolve:i,sep:r}=de,{SourceMapConsumer:t,SourceMapGenerator:c}=de,{pathToFileURL:a}=de,p=Ot(),b=!!(t&&c),d=!!(n&&i&&e&&r);class s{constructor(o,l,f,g){this.stringify=o,this.mapOpts=f.map||{},this.root=l,this.opts=f,this.css=g,this.originalCSS=g,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 l=`
|
|
426
426
|
`;this.css.includes(`\r
|
|
427
427
|
`)&&(l=`\r
|
|
428
|
-
`),this.css+=l+"/*# sourceMappingURL="+o+" */"}applyPrevMaps(){for(let o of this.previous()){let l=this.toUrl(this.path(o.file)),f=o.root||
|
|
429
|
-
`),l=E.length-m):l+=E.length,w&&v!=="start"){let y=w.parent||{raws:{}};(!(w.type==="decl"||w.type==="atrule"&&!w.nodes)||w!==y.last||y.raws.semicolon)&&(w.source&&w.source.end?(g.source=this.sourcePath(w),g.original.line=w.source.end.line,g.original.column=w.source.end.column-1,g.generated.line=o,g.generated.column=l-2,this.map.addMapping(g)):(g.source=f,g.original.line=1,g.original.column=0,g.generated.line=o,g.generated.column=l-1,this.map.addMapping(g)))}})}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(l=>l.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(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 l=this.memoizedPaths.get(o);if(l)return l;let f=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(f=r(i(f,this.mapOpts.annotation)));let g=e(f,o);return this.memoizedPaths.set(o,g),g}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(o=>{if(o.source&&o.source.input.map){let l=o.source.input.map;this.previousMaps.includes(l)||this.previousMaps.push(l)}});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(l=>{if(l.source){let f=l.source.input.from;if(f&&!o[f]){o[f]=!0;let g=this.usesFileUrls?this.toFileUrl(f):this.toUrl(this.path(f));this.map.setSourceContent(g,l.source.input.css)}}});else if(this.css){let l=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(l,this.css)}}sourcePath(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 l=this.memoizedFileURLs.get(o);if(l)return l;if(a){let f=a(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 l=this.memoizedURLs.get(o);if(l)return l;n==="\\"&&(o=o.replace(/\\/g,"/"));let f=encodeURI(o).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(o,f),f}}return si=s,si}var oi,An;function ro(){if(An)return oi;An=1;const r=39,e=34,i=92,n=47,t=10,c=32,a=12,p=9,b=13,d=91,s=93,u=40,o=41,l=123,f=125,g=59,m=42,_=58,E=64,w=/[\t\n\f\r "#'()/;[\\\]{}]/g,v=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,S=/[\da-f]/i;return oi=function(T,z={}){let N=T.css.valueOf(),K=z.ignoreErrors,H,Ee,ce,$,Ne,W,Q,se,oe,be,Se=N.length,j=0,qe=[],Ie=[];function $t(){return j}function He(ye){throw T.error("Unclosed "+ye,j)}function Mt(){return Ie.length===0&&j>=Se}function Te(ye){if(Ie.length)return Ie.pop();if(j>=Se)return;let Fe=ye?ye.ignoreUnclosed:!1;switch(H=N.charCodeAt(j),H){case t:case c:case p:case b:case a:{$=j;do $+=1,H=N.charCodeAt($);while(H===c||H===t||H===p||H===b||H===a);W=["space",N.slice(j,$)],j=$-1;break}case d:case s:case l:case f:case _:case g:case o:{let rt=String.fromCharCode(H);W=[rt,rt,j];break}case u:{if(be=qe.length?qe.pop()[1]:"",oe=N.charCodeAt(j+1),be==="url"&&oe!==r&&oe!==e&&oe!==c&&oe!==t&&oe!==p&&oe!==a&&oe!==b){$=j;do{if(Q=!1,$=N.indexOf(")",$+1),$===-1)if(K||Fe){$=j;break}else He("bracket");for(se=$;N.charCodeAt(se-1)===i;)se-=1,Q=!Q}while(Q);W=["brackets",N.slice(j,$+1),j,$],j=$}else $=N.indexOf(")",j+1),Ee=N.slice(j,$+1),$===-1||y.test(Ee)?W=["(","(",j]:(W=["brackets",Ee,j,$],j=$);break}case r:case e:{Ne=H===r?"'":'"',$=j;do{if(Q=!1,$=N.indexOf(Ne,$+1),$===-1)if(K||Fe){$=j+1;break}else He("string");for(se=$;N.charCodeAt(se-1)===i;)se-=1,Q=!Q}while(Q);W=["string",N.slice(j,$+1),j,$],j=$;break}case E:{w.lastIndex=j+1,w.test(N),w.lastIndex===0?$=N.length-1:$=w.lastIndex-2,W=["at-word",N.slice(j,$+1),j,$],j=$;break}case i:{for($=j,ce=!0;N.charCodeAt($+1)===i;)$+=1,ce=!ce;if(H=N.charCodeAt($+1),ce&&H!==n&&H!==c&&H!==t&&H!==p&&H!==b&&H!==a&&($+=1,S.test(N.charAt($)))){for(;S.test(N.charAt($+1));)$+=1;N.charCodeAt($+1)===c&&($+=1)}W=["word",N.slice(j,$+1),j,$],j=$;break}default:{H===n&&N.charCodeAt(j+1)===m?($=N.indexOf("*/",j+2)+1,$===0&&(K||Fe?$=N.length:He("comment")),W=["comment",N.slice(j,$+1),j,$],j=$):(v.lastIndex=j+1,v.test(N),v.lastIndex===0?$=N.length-1:$=v.lastIndex-2,W=["word",N.slice(j,$+1),j,$],qe.push(W),j=$);break}}return j++,W}function Pt(ye){Ie.push(ye)}return{back:Pt,endOfFile:Mt,nextToken:Te,position:$t}},oi}var ai,kn;function so(){if(kn)return ai;kn=1;let r=Ci(),e=kt(),i=Ct(),n=nt(),t=Ri(),c=ro();const a={empty:!0,space:!0};function p(d){for(let s=d.length-1;s>=0;s--){let u=d[s],o=u[3]||u[2];if(o)return o}}class b{constructor(s){this.input=s,this.root=new n,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 u=new r;u.name=s[1].slice(1),u.name===""&&this.unnamedAtrule(u,s),this.init(u,s[2]);let o,l,f,g=!1,m=!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===";"){u.source.end=this.getPosition(s[2]),u.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){m=!0;break}else if(o==="}"){if(_.length>0){for(f=_.length-1,l=_[f];l&&l[0]==="space";)l=_[--f];l&&(u.source.end=this.getPosition(l[3]||l[2]),u.source.end.offset++)}this.end(s);break}else _.push(s);else _.push(s);if(this.tokenizer.endOfFile()){g=!0;break}}u.raws.between=this.spacesAndCommentsFromEnd(_),_.length?(u.raws.afterName=this.spacesAndCommentsFromStart(_),this.raw(u,"params",_),g&&(s=_[_.length-1],u.source.end=this.getPosition(s[3]||s[2]),u.source.end.offset++,this.spaces=u.raws.between,u.raws.between="")):(u.raws.afterName="",u.params=""),m&&(u.nodes=[],this.current=u)}checkMissedSemicolon(s){let u=this.colon(s);if(u===!1)return;let o=0,l;for(let f=u-1;f>=0&&(l=s[f],!(l[0]!=="space"&&(o+=1,o===2)));f--);throw this.input.error("Missed semicolon",l[0]==="word"?l[3]+1:l[2])}colon(s){let u=0,o,l,f;for(let[g,m]of s.entries()){if(l=m,f=l[0],f==="("&&(u+=1),f===")"&&(u-=1),u===0&&f===":")if(!o)this.doubleColon(l);else{if(o[0]==="word"&&o[1]==="progid")continue;return g}o=l}return!1}comment(s){let u=new e;this.init(u,s[2]),u.source.end=this.getPosition(s[3]||s[2]),u.source.end.offset++;let o=s[1].slice(2,-2);if(/^\s*$/.test(o))u.text="",u.raws.left=o,u.raws.right="";else{let l=o.match(/^(\s*)([^]*\S)(\s*)$/);u.text=l[2],u.raws.left=l[1],u.raws.right=l[3]}}createTokenizer(){this.tokenizer=c(this.input)}decl(s,u){let o=new i;this.init(o,s[0][2]);let l=s[s.length-1];for(l[0]===";"&&(this.semicolon=!0,s.pop()),o.source.end=this.getPosition(l[3]||l[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 g=[],m;for(;s.length&&(m=s[0][0],!(m!=="space"&&m!=="comment"));)g.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 w=this.stringFrom(s,E);w=this.spacesFromEnd(s)+w,w!==" !important"&&(o.raws.important=w);break}else if(f[1].toLowerCase()==="important"){let w=s.slice(0),v="";for(let y=E;y>0;y--){let S=w[y][0];if(v.trim().startsWith("!")&&S!=="space")break;v=w.pop()[1]+v}v.trim().startsWith("!")&&(o.important=!0,o.raws.important=v,s=w)}if(f[0]!=="space"&&f[0]!=="comment")break}s.some(E=>E[0]!=="space"&&E[0]!=="comment")&&(o.raws.between+=g.map(E=>E[1]).join(""),g=[]),this.raw(o,"value",g.concat(s),u),o.value.includes(":")&&!u&&this.checkMissedSemicolon(s)}doubleColon(s){throw this.input.error("Double colon",{offset:s[2]},{offset:s[2]+s[1].length})}emptyRule(s){let u=new t;this.init(u,s[2]),u.selector="",u.raws.between="",this.current=u}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 u=this.current.nodes[this.current.nodes.length-1];u&&u.type==="rule"&&!u.raws.ownSemicolon&&(u.raws.ownSemicolon=this.spaces,this.spaces="",u.source.end=this.getPosition(s[2]),u.source.end.offset+=u.raws.ownSemicolon.length)}}getPosition(s){let u=this.input.fromOffset(s);return{column:u.col,line:u.line,offset:s}}init(s,u){this.current.push(s),s.source={input:this.input,start:this.getPosition(u)},s.raws.before=this.spaces,this.spaces="",s.type!=="comment"&&(this.semicolon=!1)}other(s){let u=!1,o=null,l=!1,f=null,g=[],m=s[1].startsWith("--"),_=[],E=s;for(;E;){if(o=E[0],_.push(E),o==="("||o==="[")f||(f=E),g.push(o==="("?")":"]");else if(m&&l&&o==="{")f||(f=E),g.push("}");else if(g.length===0)if(o===";")if(l){this.decl(_,m);return}else break;else if(o==="{"){this.rule(_);return}else if(o==="}"){this.tokenizer.back(_.pop()),u=!0;break}else o===":"&&(l=!0);else o===g[g.length-1]&&(g.pop(),g.length===0&&(f=null));E=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(u=!0),g.length>0&&this.unclosedBracket(f),u&&l){if(!m)for(;_.length&&(E=_[_.length-1][0],!(E!=="space"&&E!=="comment"));)this.tokenizer.back(_.pop());this.decl(_,m)}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,u,o,l){let f,g,m=o.length,_="",E=!0,w,v;for(let y=0;y<m;y+=1)f=o[y],g=f[0],g==="space"&&y===m-1&&!l?E=!1:g==="comment"?(v=o[y-1]?o[y-1][0]:"empty",w=o[y+1]?o[y+1][0]:"empty",!a[v]&&!a[w]?_.slice(-1)===","?E=!1:_+=f[1]:E=!1):_+=f[1];if(!E){let y=o.reduce((S,O)=>S+O[1],"");s.raws[u]={raw:y,value:_}}s[u]=_}rule(s){s.pop();let u=new t;this.init(u,s[0][2]),u.raws.between=this.spacesAndCommentsFromEnd(s),this.raw(u,"selector",s),this.current=u}spacesAndCommentsFromEnd(s){let u,o="";for(;s.length&&(u=s[s.length-1][0],!(u!=="space"&&u!=="comment"));)o=s.pop()[1]+o;return o}spacesAndCommentsFromStart(s){let u,o="";for(;s.length&&(u=s[0][0],!(u!=="space"&&u!=="comment"));)o+=s.shift()[1];return o}spacesFromEnd(s){let u,o="";for(;s.length&&(u=s[s.length-1][0],u==="space");)o=s.pop()[1]+o;return o}stringFrom(s,u){let o="";for(let l=u;l<s.length;l++)o+=s[l][1];return s.splice(u,s.length-u),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,u){throw this.input.error("At-rule without name",{offset:u[2]},{offset:u[2]+u[1].length})}}return ai=b,ai}var li,Cn;function $i(){if(Cn)return li;Cn=1;let r=Pe(),e=Ot(),i=so();function n(t,c){let a=new e(t,c),p=new i(a);try{p.parse()}catch(b){throw b}return p.root}return li=n,n.default=n,r.registerParse(n),li}var ci,On;function Jn(){if(On)return ci;On=1;class r{constructor(i,n={}){if(this.type="warning",this.text=i,n.node&&n.node.source){let t=n.node.rangeBy(n);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in n)this[t]=n[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 ci=r,r.default=r,ci}var ui,Rn;function Mi(){if(Rn)return ui;Rn=1;let r=Jn();class e{get content(){return this.css}constructor(n,t,c){this.processor=n,this.messages=[],this.root=t,this.opts=c,this.css="",this.map=void 0}toString(){return this.css}warn(n,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let c=new r(n,t);return this.messages.push(c),c}warnings(){return this.messages.filter(n=>n.type==="warning")}}return ui=e,e.default=e,ui}var di,$n;function Xn(){if($n)return di;$n=1;let r=Pe(),e=Oi(),i=Kn(),n=$i(),t=Mi(),c=nt(),a=St(),{isClean:p,my:b}=ki();const d={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},u={Once:!0,postcssPlugin:!0,prepare:!0},o=0;function l(w){return typeof w=="object"&&typeof w.then=="function"}function f(w){let v=!1,y=d[w.type];return w.type==="decl"?v=w.prop.toLowerCase():w.type==="atrule"&&(v=w.name.toLowerCase()),v&&w.append?[y,y+"-"+v,o,y+"Exit",y+"Exit-"+v]:v?[y,y+"-"+v,y+"Exit",y+"Exit-"+v]:w.append?[y,o,y+"Exit"]:[y,y+"Exit"]}function g(w){let v;return w.type==="document"?v=["Document",o,"DocumentExit"]:w.type==="root"?v=["Root",o,"RootExit"]:v=f(w),{eventIndex:0,events:v,iterator:0,node:w,visitorIndex:0,visitors:[]}}function m(w){return w[p]=!1,w.nodes&&w.nodes.forEach(v=>m(v)),w}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(v,y,S){this.stringified=!1,this.processed=!1;let O;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))O=m(y);else if(y instanceof E||y instanceof t)O=m(y.root),y.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=y.map);else{let T=n;S.syntax&&(T=S.syntax.parse),S.parser&&(T=S.parser),T.parse&&(T=T.parse);try{O=T(y,S)}catch(z){this.processed=!0,this.error=z}O&&!O[b]&&r.rebuild(O)}this.result=new t(v,O,S),this.helpers={..._,postcss:_,result:this.result},this.plugins=this.processor.plugins.map(T=>typeof T=="object"&&T.prepare?{...T,...T.prepare(this.result)}:T)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(v){return this.async().catch(v)}finally(v){return this.async().then(v,v)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(v,y){let S=this.result.lastPlugin;try{y&&y.addToError(v),this.error=v,v.name==="CssSyntaxError"&&!v.plugin?(v.plugin=S.postcssPlugin,v.setMessage()):S.postcssVersion}catch(O){console&&console.error&&console.error(O)}return v}prepareVisitors(){this.listeners={};let v=(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(!u[S])if(typeof y[S]=="object")for(let O in y[S])O==="*"?v(y,S,y[S][O]):v(y,S+"-"+O.toLowerCase(),y[S][O]);else typeof y[S]=="function"&&v(y,S,y[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let v=0;v<this.plugins.length;v++){let y=this.plugins[v],S=this.runOnRoot(y);if(l(S))try{await S}catch(O){throw this.handleError(O)}}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[p];){v[p]=!0;let y=[g(v)];for(;y.length>0;){let S=this.visitTick(y);if(l(S))try{await S}catch(O){let T=y[y.length-1].node;throw this.handleError(O,T)}}}if(this.listeners.OnceExit)for(let[y,S]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(v.type==="document"){let O=v.nodes.map(T=>S(T,this.helpers));await Promise.all(O)}else await S(v,this.helpers)}catch(O){throw this.handleError(O)}}}return this.processed=!0,this.stringify()}runOnRoot(v){this.result.lastPlugin=v;try{if(typeof v=="object"&&v.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(S=>v.Once(S,this.helpers));return l(y[0])?Promise.all(y):y}return v.Once(this.result.root,this.helpers)}else if(typeof v=="function")return v(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 v=this.result.opts,y=a;v.syntax&&(y=v.syntax.stringify),v.stringifier&&(y=v.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 v of this.plugins){let y=this.runOnRoot(v);if(l(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[p];)v[p]=!0,this.walkSync(v);if(this.listeners.OnceExit)if(v.type==="document")for(let y of v.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,v)}return this.result}then(v,y){return this.async().then(v,y)}toString(){return this.css}visitSync(v,y){for(let[S,O]of v){this.result.lastPlugin=S;let T;try{T=O(y,this.helpers)}catch(z){throw this.handleError(z,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(l(T))throw this.getAsyncError()}}visitTick(v){let y=v[v.length-1],{node:S,visitors:O}=y;if(S.type!=="root"&&S.type!=="document"&&!S.parent){v.pop();return}if(O.length>0&&y.visitorIndex<O.length){let[z,N]=O[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===O.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=z;try{return N(S.toProxy(),this.helpers)}catch(K){throw this.handleError(K,S)}}if(y.iterator!==0){let z=y.iterator,N;for(;N=S.nodes[S.indexes[z]];)if(S.indexes[z]+=1,!N[p]){N[p]=!0,v.push(g(N));return}y.iterator=0,delete S.indexes[z]}let T=y.events;for(;y.eventIndex<T.length;){let z=T[y.eventIndex];if(y.eventIndex+=1,z===o){S.nodes&&S.nodes.length&&(S[p]=!0,y.iterator=S.getIterator());return}else if(this.listeners[z]){y.visitors=this.listeners[z];return}}v.pop()}walkSync(v){v[p]=!0;let y=f(v);for(let S of y)if(S===o)v.nodes&&v.each(O=>{O[p]||this.walkSync(O)});else{let O=this.listeners[S];if(O&&this.visitSync(O,v.toProxy()))return}}warnings(){return this.sync().warnings()}}return E.registerPostcss=w=>{_=w},di=E,E.default=E,c.registerLazyResult(E),e.registerLazyResult(E),di}var hi,Mn;function oo(){if(Mn)return hi;Mn=1;let r=Kn(),e=$i();const i=Mi();let n=St();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 a,p=e;try{a=p(this._css,this._opts)}catch(b){this.error=b}if(this.error)throw this.error;return this._root=a,a}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(a,p,b){p=p.toString(),this.stringified=!1,this._processor=a,this._css=p,this._opts=b,this._map=void 0;let d,s=n;this.result=new i(this._processor,d,this._opts),this.result.css=p;let u=this;Object.defineProperty(this.result,"root",{get(){return u.root}});let o=new r(s,d,this._opts,p);if(o.isMap()){let[l,f]=o.generate();l&&(this.result.css=l),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(a){return this.async().catch(a)}finally(a){return this.async().then(a,a)}sync(){if(this.error)throw this.error;return this.result}then(a,p){return this.async().then(a,p)}toString(){return this._css}warnings(){return[]}}return hi=t,t.default=t,hi}var fi,Pn;function ao(){if(Pn)return fi;Pn=1;let r=Oi(),e=Xn(),i=oo(),n=nt();class t{constructor(a=[]){this.version="8.5.6",this.plugins=this.normalize(a)}normalize(a){let p=[];for(let b of a)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(a,p={}){return!this.plugins.length&&!p.parser&&!p.stringifier&&!p.syntax?new i(this,a,p):new e(this,a,p)}use(a){return this.plugins=this.plugins.concat(this.normalize([a])),this}}return fi=t,t.default=t,n.registerProcessor(t),r.registerProcessor(t),fi}var pi,Nn;function lo(){if(Nn)return pi;Nn=1;var r={};let e=Ci(),i=kt(),n=Pe(),t=Ai(),c=Ct(),a=Oi(),p=no(),b=Ot(),d=Xn(),s=Zn(),u=At(),o=$i(),l=ao(),f=Mi(),g=nt(),m=Ri(),_=St(),E=Jn();function w(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new l(v)}return w.plugin=function(y,S){let O=!1;function T(...N){console&&console.warn&&!O&&(O=!0,console.warn(y+`: postcss.plugin was deprecated. Migration guide:
|
|
430
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),
|
|
431
|
-
https://www.w3ctech.com/topic/2226`));let K=S(...N);return K.postcssPlugin=y,K.postcssVersion=new l().version,K}let z;return Object.defineProperty(T,"postcss",{get(){return z||(z=T()),z}}),T.process=function(N,K,H){return w([T(H)]).process(N,K)},T},w.stringify=_,w.parse=o,w.fromJSON=p,w.list=s,w.comment=v=>new i(v),w.atRule=v=>new e(v),w.decl=v=>new c(v),w.rule=v=>new m(v),w.root=v=>new g(v),w.document=v=>new a(v),w.CssSyntaxError=t,w.Declaration=c,w.Container=n,w.Processor=l,w.Document=a,w.Comment=i,w.Warning=E,w.AtRule=e,w.Result=f,w.Input=b,w.Rule=m,w.Root=g,w.Node=u,d.registerPostcss(w),pi=w,w.default=w,pi}var co=lo();const Z=Wn(co);Z.stringify;Z.fromJSON;Z.plugin;Z.parse;Z.list;Z.document;Z.comment;Z.atRule;Z.rule;Z.decl;Z.root;Z.CssSyntaxError;Z.Declaration;Z.Container;Z.Processor;Z.Document;Z.Comment;Z.Warning;Z.AtRule;Z.Result;Z.Input;Z.Rule;Z.Root;Z.Node;var gi,In;function uo(){if(In)return gi;In=1;const r=(n={})=>{const t=n.prefix,c=/\s+$/.test(t)?t:`${t} `,a=n.ignoreFiles?[].concat(n.ignoreFiles):[],p=n.includeFiles?[].concat(n.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(b){const d=b.root,s=d.source.input.file;if(!(a.length&&s&&e(s,a))&&!(p.length&&s&&!e(s,p)))return{Rule(u,{result:o}){const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];u.parent&&l.includes(u.parent.name)||(u.selectors=u.selectors.map(f=>n.exclude&&i(f,n.exclude)?f:n.transform?n.transform(t,f,c+f,d.source.input.file,u):[":root","body","html"].some(g=>f.startsWith(g))?n.skipGlobalSelectors?f:f.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,t):c+f))}}}}};function e(n,t){return t.some(c=>c instanceof RegExp?c.test(n):n.includes(c))}function i(n,t){return t.some(c=>c instanceof RegExp?c.test(n):n===c)}return r.postcss=!0,gi=r,gi}var ho=uo();const fo=Wn(ho),po="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}",go="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 mo(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var mi,Tn;function bo(){if(Tn)return mi;Tn=1;function r(h){return h instanceof Map?h.clear=h.delete=h.set=function(){throw new Error("map is read-only")}:h instanceof Set&&(h.add=h.clear=h.delete=function(){throw new Error("set is read-only")}),Object.freeze(h),Object.getOwnPropertyNames(h).forEach(x=>{const C=h[x],D=typeof C;(D==="object"||D==="function")&&!Object.isFrozen(C)&&r(C)}),h}class e{constructor(x){x.data===void 0&&(x.data={}),this.data=x.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(h){return h.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function n(h,...x){const C=Object.create(null);for(const D in h)C[D]=h[D];return x.forEach(function(D){for(const J in D)C[J]=D[J]}),C}const t="</span>",c=h=>!!h.scope,a=(h,{prefix:x})=>{if(h.startsWith("language:"))return h.replace("language:","language-");if(h.includes(".")){const C=h.split(".");return[`${x}${C.shift()}`,...C.map((D,J)=>`${D}${"_".repeat(J+1)}`)].join(" ")}return`${x}${h}`};class p{constructor(x,C){this.buffer="",this.classPrefix=C.classPrefix,x.walk(this)}addText(x){this.buffer+=i(x)}openNode(x){if(!c(x))return;const C=a(x.scope,{prefix:this.classPrefix});this.span(C)}closeNode(x){c(x)&&(this.buffer+=t)}value(){return this.buffer}span(x){this.buffer+=`<span class="${x}">`}}const b=(h={})=>{const x={children:[]};return Object.assign(x,h),x};class d{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(D=>this._walk(x,D)),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=>{d._collapse(C)}))}}class s extends d{constructor(x){super(),this.options=x}addText(x){x!==""&&this.add(x)}startScope(x){this.openNode(x)}endScope(){this.closeNode()}__addSublanguage(x,C){const D=x.root;C&&(D.scope=`language:${C}`),this.add(D)}toHTML(){return new p(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function u(h){return h?typeof h=="string"?h:h.source:null}function o(h){return g("(?=",h,")")}function l(h){return g("(?:",h,")*")}function f(h){return g("(?:",h,")?")}function g(...h){return h.map(x=>u(x)).join("")}function m(h){const x=h[h.length-1];return typeof x=="object"&&x.constructor===Object?(h.splice(h.length-1,1),x):{}}function _(...h){return"("+(m(h).capture?"":"?:")+h.map(x=>u(x)).join("|")+")"}function E(h){return new RegExp(h.toString()+"|").exec("").length-1}function w(h,x){const C=h&&h.exec(x);return C&&C.index===0}const v=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function y(h,{joinWith:x}){let C=0;return h.map(D=>{C+=1;const J=C;let X=u(D),M="";for(;X.length>0;){const R=v.exec(X);if(!R){M+=X;break}M+=X.substring(0,R.index),X=X.substring(R.index+R[0].length),R[0][0]==="\\"&&R[1]?M+="\\"+String(Number(R[1])+J):(M+=R[0],R[0]==="("&&C++)}return M}).map(D=>`(${D})`).join(x)}const S=/\b\B/,O="[a-zA-Z]\\w*",T="[a-zA-Z_]\\w*",z="\\b\\d+(\\.\\d+)?",N="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",K="\\b(0b[01]+)",H="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Ee=(h={})=>{const x=/^#![ ]*\//;return h.binary&&(h.begin=g(x,/.*\b/,h.binary,/\b.*/)),n({scope:"meta",begin:x,end:/$/,relevance:0,"on:begin":(C,D)=>{C.index!==0&&D.ignoreMatch()}},h)},ce={begin:"\\\\[\\s\\S]",relevance:0},$={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ce]},Ne={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ce]},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/},Q=function(h,x,C={}){const D=n({scope:"comment",begin:h,end:x,contains:[]},C);D.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 J=_("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 D.contains.push({begin:g(/[ ]+/,"(",J,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),D},se=Q("//","$"),oe=Q("/\\*","\\*/"),be=Q("#","$"),Se={scope:"number",begin:z,relevance:0},j={scope:"number",begin:N,relevance:0},qe={scope:"number",begin:K,relevance:0},Ie={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ce,{begin:/\[/,end:/\]/,relevance:0,contains:[ce]}]},$t={scope:"title",begin:O,relevance:0},He={scope:"title",begin:T,relevance:0},Mt={begin:"\\.\\s*"+T,relevance:0};var Te=Object.freeze({__proto__:null,APOS_STRING_MODE:$,BACKSLASH_ESCAPE:ce,BINARY_NUMBER_MODE:qe,BINARY_NUMBER_RE:K,COMMENT:Q,C_BLOCK_COMMENT_MODE:oe,C_LINE_COMMENT_MODE:se,C_NUMBER_MODE:j,C_NUMBER_RE:N,END_SAME_AS_BEGIN:function(h){return Object.assign(h,{"on:begin":(x,C)=>{C.data._beginMatch=x[1]},"on:end":(x,C)=>{C.data._beginMatch!==x[1]&&C.ignoreMatch()}})},HASH_COMMENT_MODE:be,IDENT_RE:O,MATCH_NOTHING_RE:S,METHOD_GUARD:Mt,NUMBER_MODE:Se,NUMBER_RE:z,PHRASAL_WORDS_MODE:W,QUOTE_STRING_MODE:Ne,REGEXP_MODE:Ie,RE_STARTERS_RE:H,SHEBANG:Ee,TITLE_MODE:$t,UNDERSCORE_IDENT_RE:T,UNDERSCORE_TITLE_MODE:He});function Pt(h,x){h.input[h.index-1]==="."&&x.ignoreMatch()}function ye(h,x){h.className!==void 0&&(h.scope=h.className,delete h.className)}function Fe(h,x){x&&h.beginKeywords&&(h.begin="\\b("+h.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",h.__beforeBegin=Pt,h.keywords=h.keywords||h.beginKeywords,delete h.beginKeywords,h.relevance===void 0&&(h.relevance=0))}function rt(h,x){Array.isArray(h.illegal)&&(h.illegal=_(...h.illegal))}function or(h,x){if(h.match){if(h.begin||h.end)throw new Error("begin & end are not supported with match");h.begin=h.match,delete h.match}}function ar(h,x){h.relevance===void 0&&(h.relevance=1)}const lr=(h,x)=>{if(!h.beforeMatch)return;if(h.starts)throw new Error("beforeMatch cannot be used with starts");const C=Object.assign({},h);Object.keys(h).forEach(D=>{delete h[D]}),h.keywords=C.keywords,h.begin=g(C.beforeMatch,o(C.begin)),h.starts={relevance:0,contains:[Object.assign(C,{endsParent:!0})]},h.relevance=0,delete C.beforeMatch},cr=["of","and","for","in","not","or","if","then","parent","list","value"],ur="keyword";function Pi(h,x,C=ur){const D=Object.create(null);return typeof h=="string"?J(C,h.split(" ")):Array.isArray(h)?J(C,h):Object.keys(h).forEach(function(X){Object.assign(D,Pi(h[X],x,X))}),D;function J(X,M){x&&(M=M.map(R=>R.toLowerCase())),M.forEach(function(R){const L=R.split("|");D[L[0]]=[X,dr(L[0],L[1])]})}}function dr(h,x){return x?Number(x):hr(h)?0:1}function hr(h){return cr.includes(h.toLowerCase())}const Ni={},Ae=h=>{console.error(h)},Ii=(h,...x)=>{console.log(`WARN: ${h}`,...x)},Le=(h,x)=>{Ni[`${h}/${x}`]||(console.log(`Deprecated as of ${h}. ${x}`),Ni[`${h}/${x}`]=!0)},st=new Error;function Ti(h,x,{key:C}){let D=0;const J=h[C],X={},M={};for(let R=1;R<=x.length;R++)M[R+D]=J[R],X[R+D]=!0,D+=E(x[R-1]);h[C]=M,h[C]._emit=X,h[C]._multi=!0}function fr(h){if(Array.isArray(h.begin)){if(h.skip||h.excludeBegin||h.returnBegin)throw Ae("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),st;if(typeof h.beginScope!="object"||h.beginScope===null)throw Ae("beginScope must be object"),st;Ti(h,h.begin,{key:"beginScope"}),h.begin=y(h.begin,{joinWith:""})}}function pr(h){if(Array.isArray(h.end)){if(h.skip||h.excludeEnd||h.returnEnd)throw Ae("skip, excludeEnd, returnEnd not compatible with endScope: {}"),st;if(typeof h.endScope!="object"||h.endScope===null)throw Ae("endScope must be object"),st;Ti(h,h.end,{key:"endScope"}),h.end=y(h.end,{joinWith:""})}}function gr(h){h.scope&&typeof h.scope=="object"&&h.scope!==null&&(h.beginScope=h.scope,delete h.scope)}function mr(h){gr(h),typeof h.beginScope=="string"&&(h.beginScope={_wrap:h.beginScope}),typeof h.endScope=="string"&&(h.endScope={_wrap:h.endScope}),fr(h),pr(h)}function br(h){function x(M,R){return new RegExp(u(M),"m"+(h.case_insensitive?"i":"")+(h.unicodeRegex?"u":"")+(R?"g":""))}class C{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(R,L){L.position=this.position++,this.matchIndexes[this.matchAt]=L,this.regexes.push([L,R]),this.matchAt+=E(R)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const R=this.regexes.map(L=>L[1]);this.matcherRe=x(y(R,{joinWith:"|"}),!0),this.lastIndex=0}exec(R){this.matcherRe.lastIndex=this.lastIndex;const L=this.matcherRe.exec(R);if(!L)return null;const ie=L.findIndex((We,It)=>It>0&&We!==void 0),Y=this.matchIndexes[ie];return L.splice(0,ie),Object.assign(L,Y)}}class D{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(R){if(this.multiRegexes[R])return this.multiRegexes[R];const L=new C;return this.rules.slice(R).forEach(([ie,Y])=>L.addRule(ie,Y)),L.compile(),this.multiRegexes[R]=L,L}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(R,L){this.rules.push([R,L]),L.type==="begin"&&this.count++}exec(R){const L=this.getMatcher(this.regexIndex);L.lastIndex=this.lastIndex;let ie=L.exec(R);if(this.resumingScanAtSamePosition()&&!(ie&&ie.index===this.lastIndex)){const Y=this.getMatcher(0);Y.lastIndex=this.lastIndex+1,ie=Y.exec(R)}return ie&&(this.regexIndex+=ie.position+1,this.regexIndex===this.count&&this.considerAll()),ie}}function J(M){const R=new D;return M.contains.forEach(L=>R.addRule(L.begin,{rule:L,type:"begin"})),M.terminatorEnd&&R.addRule(M.terminatorEnd,{type:"end"}),M.illegal&&R.addRule(M.illegal,{type:"illegal"}),R}function X(M,R){const L=M;if(M.isCompiled)return L;[ye,or,mr,lr].forEach(Y=>Y(M,R)),h.compilerExtensions.forEach(Y=>Y(M,R)),M.__beforeBegin=null,[Fe,rt,ar].forEach(Y=>Y(M,R)),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=Pi(M.keywords,h.case_insensitive)),L.keywordPatternRe=x(ie,!0),R&&(M.begin||(M.begin=/\B|\b/),L.beginRe=x(L.begin),!M.end&&!M.endsWithParent&&(M.end=/\B|\b/),M.end&&(L.endRe=x(L.end)),L.terminatorEnd=u(L.end)||"",M.endsWithParent&&R.terminatorEnd&&(L.terminatorEnd+=(M.end?"|":"")+R.terminatorEnd)),M.illegal&&(L.illegalRe=x(M.illegal)),M.contains||(M.contains=[]),M.contains=[].concat(...M.contains.map(function(Y){return yr(Y==="self"?M:Y)})),M.contains.forEach(function(Y){X(Y,L)}),M.starts&&X(M.starts,R),L.matcher=J(L),L}if(h.compilerExtensions||(h.compilerExtensions=[]),h.contains&&h.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return h.classNameAliases=n(h.classNameAliases||{}),X(h)}function Li(h){return h?h.endsWithParent||Li(h.starts):!1}function yr(h){return h.variants&&!h.cachedVariants&&(h.cachedVariants=h.variants.map(function(x){return n(h,{variants:null},x)})),h.cachedVariants?h.cachedVariants:Li(h)?n(h,{starts:h.starts?n(h.starts):null}):Object.isFrozen(h)?n(h):h}var vr="11.11.1";class wr extends Error{constructor(x,C){super(x),this.name="HTMLInjectionError",this.html=C}}const Nt=i,ji=n,Bi=Symbol("nomatch"),xr=7,Di=function(h){const x=Object.create(null),C=Object.create(null),D=[];let J=!0;const X="Could not find the language '{}', did you forget to load/include a language module?",M={disableAutodetect:!0,name:"Plain text",contains:[]};let R={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:s};function L(A){return R.noHighlightRe.test(A)}function ie(A){let I=A.className+" ";I+=A.parentNode?A.parentNode.className:"";const q=R.languageDetectRe.exec(I);if(q){const G=ve(q[1]);return G||(Ii(X.replace("{}",q[1])),Ii("Falling back to no-highlight mode for this block.",A)),G?q[1]:"no-highlight"}return I.split(/\s+/).find(G=>L(G)||ve(G))}function Y(A,I,q){let G="",ee="";typeof I=="object"?(G=A,q=I.ignoreIllegals,ee=I.language):(Le("10.7.0","highlight(lang, code, ...args) has been deprecated."),Le("10.7.0",`Please use highlight(code, options) instead.
|
|
428
|
+
`),this.css+=l+"/*# sourceMappingURL="+o+" */"}applyPrevMaps(){for(let o of this.previous()){let l=this.toUrl(this.path(o.file)),f=o.root||n(o.file),g;this.mapOpts.sourcesContent===!1?(g=new t(o.text),g.sourcesContent&&(g.sourcesContent=null)):g=o.consumer(),this.map.applySourceMap(g,l,this.toUrl(this.path(f)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let o;for(let l=this.root.nodes.length-1;l>=0;l--)o=this.root.nodes[l],o.type==="comment"&&o.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(l)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),d&&b&&this.isMap())return this.generateMap();{let o="";return this.stringify(this.root,l=>{o+=l}),[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=c.fromSourceMap(o,{ignoreInvalidMapping:!0})}else this.map=new c({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 c({file:this.outputFile(),ignoreInvalidMapping:!0});let o=1,l=1,f="<no source>",g={generated:{column:0,line:0},original:{column:0,line:0},source:""},m,_;this.stringify(this.root,(E,w,v)=>{if(this.css+=E,w&&v!=="end"&&(g.generated.line=o,g.generated.column=l-1,w.source&&w.source.start?(g.source=this.sourcePath(w),g.original.line=w.source.start.line,g.original.column=w.source.start.column-1,this.map.addMapping(g)):(g.source=f,g.original.line=1,g.original.column=0,this.map.addMapping(g))),_=E.match(/\n/g),_?(o+=_.length,m=E.lastIndexOf(`
|
|
429
|
+
`),l=E.length-m):l+=E.length,w&&v!=="start"){let y=w.parent||{raws:{}};(!(w.type==="decl"||w.type==="atrule"&&!w.nodes)||w!==y.last||y.raws.semicolon)&&(w.source&&w.source.end?(g.source=this.sourcePath(w),g.original.line=w.source.end.line,g.original.column=w.source.end.column-1,g.generated.line=o,g.generated.column=l-2,this.map.addMapping(g)):(g.source=f,g.original.line=1,g.original.column=0,g.generated.line=o,g.generated.column=l-1,this.map.addMapping(g)))}})}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(l=>l.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(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 l=this.memoizedPaths.get(o);if(l)return l;let f=this.opts.to?n(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(f=n(i(f,this.mapOpts.annotation)));let g=e(f,o);return this.memoizedPaths.set(o,g),g}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(o=>{if(o.source&&o.source.input.map){let l=o.source.input.map;this.previousMaps.includes(l)||this.previousMaps.push(l)}});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(l=>{if(l.source){let f=l.source.input.from;if(f&&!o[f]){o[f]=!0;let g=this.usesFileUrls?this.toFileUrl(f):this.toUrl(this.path(f));this.map.setSourceContent(g,l.source.input.css)}}});else if(this.css){let l=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(l,this.css)}}sourcePath(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 l=this.memoizedFileURLs.get(o);if(l)return l;if(a){let f=a(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 l=this.memoizedURLs.get(o);if(l)return l;r==="\\"&&(o=o.replace(/\\/g,"/"));let f=encodeURI(o).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(o,f),f}}return si=s,si}var oi,An;function ro(){if(An)return oi;An=1;const n=39,e=34,i=92,r=47,t=10,c=32,a=12,p=9,b=13,d=91,s=93,u=40,o=41,l=123,f=125,g=59,m=42,_=58,E=64,w=/[\t\n\f\r "#'()/;[\\\]{}]/g,v=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,S=/[\da-f]/i;return oi=function(T,z={}){let N=T.css.valueOf(),K=z.ignoreErrors,H,Ee,ce,$,Ne,W,Q,se,oe,be,Se=N.length,j=0,qe=[],Ie=[];function $t(){return j}function He(ye){throw T.error("Unclosed "+ye,j)}function Mt(){return Ie.length===0&&j>=Se}function Te(ye){if(Ie.length)return Ie.pop();if(j>=Se)return;let Fe=ye?ye.ignoreUnclosed:!1;switch(H=N.charCodeAt(j),H){case t:case c:case p:case b:case a:{$=j;do $+=1,H=N.charCodeAt($);while(H===c||H===t||H===p||H===b||H===a);W=["space",N.slice(j,$)],j=$-1;break}case d:case s:case l:case f:case _:case g:case o:{let rt=String.fromCharCode(H);W=[rt,rt,j];break}case u:{if(be=qe.length?qe.pop()[1]:"",oe=N.charCodeAt(j+1),be==="url"&&oe!==n&&oe!==e&&oe!==c&&oe!==t&&oe!==p&&oe!==a&&oe!==b){$=j;do{if(Q=!1,$=N.indexOf(")",$+1),$===-1)if(K||Fe){$=j;break}else He("bracket");for(se=$;N.charCodeAt(se-1)===i;)se-=1,Q=!Q}while(Q);W=["brackets",N.slice(j,$+1),j,$],j=$}else $=N.indexOf(")",j+1),Ee=N.slice(j,$+1),$===-1||y.test(Ee)?W=["(","(",j]:(W=["brackets",Ee,j,$],j=$);break}case n:case e:{Ne=H===n?"'":'"',$=j;do{if(Q=!1,$=N.indexOf(Ne,$+1),$===-1)if(K||Fe){$=j+1;break}else He("string");for(se=$;N.charCodeAt(se-1)===i;)se-=1,Q=!Q}while(Q);W=["string",N.slice(j,$+1),j,$],j=$;break}case E:{w.lastIndex=j+1,w.test(N),w.lastIndex===0?$=N.length-1:$=w.lastIndex-2,W=["at-word",N.slice(j,$+1),j,$],j=$;break}case i:{for($=j,ce=!0;N.charCodeAt($+1)===i;)$+=1,ce=!ce;if(H=N.charCodeAt($+1),ce&&H!==r&&H!==c&&H!==t&&H!==p&&H!==b&&H!==a&&($+=1,S.test(N.charAt($)))){for(;S.test(N.charAt($+1));)$+=1;N.charCodeAt($+1)===c&&($+=1)}W=["word",N.slice(j,$+1),j,$],j=$;break}default:{H===r&&N.charCodeAt(j+1)===m?($=N.indexOf("*/",j+2)+1,$===0&&(K||Fe?$=N.length:He("comment")),W=["comment",N.slice(j,$+1),j,$],j=$):(v.lastIndex=j+1,v.test(N),v.lastIndex===0?$=N.length-1:$=v.lastIndex-2,W=["word",N.slice(j,$+1),j,$],qe.push(W),j=$);break}}return j++,W}function Pt(ye){Ie.push(ye)}return{back:Pt,endOfFile:Mt,nextToken:Te,position:$t}},oi}var ai,kn;function so(){if(kn)return ai;kn=1;let n=Ci(),e=kt(),i=Ct(),r=nt(),t=Ri(),c=ro();const a={empty:!0,space:!0};function p(d){for(let s=d.length-1;s>=0;s--){let u=d[s],o=u[3]||u[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 u=new n;u.name=s[1].slice(1),u.name===""&&this.unnamedAtrule(u,s),this.init(u,s[2]);let o,l,f,g=!1,m=!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===";"){u.source.end=this.getPosition(s[2]),u.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){m=!0;break}else if(o==="}"){if(_.length>0){for(f=_.length-1,l=_[f];l&&l[0]==="space";)l=_[--f];l&&(u.source.end=this.getPosition(l[3]||l[2]),u.source.end.offset++)}this.end(s);break}else _.push(s);else _.push(s);if(this.tokenizer.endOfFile()){g=!0;break}}u.raws.between=this.spacesAndCommentsFromEnd(_),_.length?(u.raws.afterName=this.spacesAndCommentsFromStart(_),this.raw(u,"params",_),g&&(s=_[_.length-1],u.source.end=this.getPosition(s[3]||s[2]),u.source.end.offset++,this.spaces=u.raws.between,u.raws.between="")):(u.raws.afterName="",u.params=""),m&&(u.nodes=[],this.current=u)}checkMissedSemicolon(s){let u=this.colon(s);if(u===!1)return;let o=0,l;for(let f=u-1;f>=0&&(l=s[f],!(l[0]!=="space"&&(o+=1,o===2)));f--);throw this.input.error("Missed semicolon",l[0]==="word"?l[3]+1:l[2])}colon(s){let u=0,o,l,f;for(let[g,m]of s.entries()){if(l=m,f=l[0],f==="("&&(u+=1),f===")"&&(u-=1),u===0&&f===":")if(!o)this.doubleColon(l);else{if(o[0]==="word"&&o[1]==="progid")continue;return g}o=l}return!1}comment(s){let u=new e;this.init(u,s[2]),u.source.end=this.getPosition(s[3]||s[2]),u.source.end.offset++;let o=s[1].slice(2,-2);if(/^\s*$/.test(o))u.text="",u.raws.left=o,u.raws.right="";else{let l=o.match(/^(\s*)([^]*\S)(\s*)$/);u.text=l[2],u.raws.left=l[1],u.raws.right=l[3]}}createTokenizer(){this.tokenizer=c(this.input)}decl(s,u){let o=new i;this.init(o,s[0][2]);let l=s[s.length-1];for(l[0]===";"&&(this.semicolon=!0,s.pop()),o.source.end=this.getPosition(l[3]||l[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 g=[],m;for(;s.length&&(m=s[0][0],!(m!=="space"&&m!=="comment"));)g.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 w=this.stringFrom(s,E);w=this.spacesFromEnd(s)+w,w!==" !important"&&(o.raws.important=w);break}else if(f[1].toLowerCase()==="important"){let w=s.slice(0),v="";for(let y=E;y>0;y--){let S=w[y][0];if(v.trim().startsWith("!")&&S!=="space")break;v=w.pop()[1]+v}v.trim().startsWith("!")&&(o.important=!0,o.raws.important=v,s=w)}if(f[0]!=="space"&&f[0]!=="comment")break}s.some(E=>E[0]!=="space"&&E[0]!=="comment")&&(o.raws.between+=g.map(E=>E[1]).join(""),g=[]),this.raw(o,"value",g.concat(s),u),o.value.includes(":")&&!u&&this.checkMissedSemicolon(s)}doubleColon(s){throw this.input.error("Double colon",{offset:s[2]},{offset:s[2]+s[1].length})}emptyRule(s){let u=new t;this.init(u,s[2]),u.selector="",u.raws.between="",this.current=u}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 u=this.current.nodes[this.current.nodes.length-1];u&&u.type==="rule"&&!u.raws.ownSemicolon&&(u.raws.ownSemicolon=this.spaces,this.spaces="",u.source.end=this.getPosition(s[2]),u.source.end.offset+=u.raws.ownSemicolon.length)}}getPosition(s){let u=this.input.fromOffset(s);return{column:u.col,line:u.line,offset:s}}init(s,u){this.current.push(s),s.source={input:this.input,start:this.getPosition(u)},s.raws.before=this.spaces,this.spaces="",s.type!=="comment"&&(this.semicolon=!1)}other(s){let u=!1,o=null,l=!1,f=null,g=[],m=s[1].startsWith("--"),_=[],E=s;for(;E;){if(o=E[0],_.push(E),o==="("||o==="[")f||(f=E),g.push(o==="("?")":"]");else if(m&&l&&o==="{")f||(f=E),g.push("}");else if(g.length===0)if(o===";")if(l){this.decl(_,m);return}else break;else if(o==="{"){this.rule(_);return}else if(o==="}"){this.tokenizer.back(_.pop()),u=!0;break}else o===":"&&(l=!0);else o===g[g.length-1]&&(g.pop(),g.length===0&&(f=null));E=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(u=!0),g.length>0&&this.unclosedBracket(f),u&&l){if(!m)for(;_.length&&(E=_[_.length-1][0],!(E!=="space"&&E!=="comment"));)this.tokenizer.back(_.pop());this.decl(_,m)}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,u,o,l){let f,g,m=o.length,_="",E=!0,w,v;for(let y=0;y<m;y+=1)f=o[y],g=f[0],g==="space"&&y===m-1&&!l?E=!1:g==="comment"?(v=o[y-1]?o[y-1][0]:"empty",w=o[y+1]?o[y+1][0]:"empty",!a[v]&&!a[w]?_.slice(-1)===","?E=!1:_+=f[1]:E=!1):_+=f[1];if(!E){let y=o.reduce((S,O)=>S+O[1],"");s.raws[u]={raw:y,value:_}}s[u]=_}rule(s){s.pop();let u=new t;this.init(u,s[0][2]),u.raws.between=this.spacesAndCommentsFromEnd(s),this.raw(u,"selector",s),this.current=u}spacesAndCommentsFromEnd(s){let u,o="";for(;s.length&&(u=s[s.length-1][0],!(u!=="space"&&u!=="comment"));)o=s.pop()[1]+o;return o}spacesAndCommentsFromStart(s){let u,o="";for(;s.length&&(u=s[0][0],!(u!=="space"&&u!=="comment"));)o+=s.shift()[1];return o}spacesFromEnd(s){let u,o="";for(;s.length&&(u=s[s.length-1][0],u==="space");)o=s.pop()[1]+o;return o}stringFrom(s,u){let o="";for(let l=u;l<s.length;l++)o+=s[l][1];return s.splice(u,s.length-u),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,u){throw this.input.error("At-rule without name",{offset:u[2]},{offset:u[2]+u[1].length})}}return ai=b,ai}var li,Cn;function $i(){if(Cn)return li;Cn=1;let n=Pe(),e=Ot(),i=so();function r(t,c){let a=new e(t,c),p=new i(a);try{p.parse()}catch(b){throw b}return p.root}return li=r,r.default=r,n.registerParse(r),li}var ci,On;function Jn(){if(On)return ci;On=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 ci=n,n.default=n,ci}var ui,Rn;function Mi(){if(Rn)return ui;Rn=1;let n=Jn();class e{get content(){return this.css}constructor(r,t,c){this.processor=r,this.messages=[],this.root=t,this.opts=c,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 c=new n(r,t);return this.messages.push(c),c}warnings(){return this.messages.filter(r=>r.type==="warning")}}return ui=e,e.default=e,ui}var di,$n;function Xn(){if($n)return di;$n=1;let n=Pe(),e=Oi(),i=Kn(),r=$i(),t=Mi(),c=nt(),a=St(),{isClean:p,my:b}=ki();const d={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},u={Once:!0,postcssPlugin:!0,prepare:!0},o=0;function l(w){return typeof w=="object"&&typeof w.then=="function"}function f(w){let v=!1,y=d[w.type];return w.type==="decl"?v=w.prop.toLowerCase():w.type==="atrule"&&(v=w.name.toLowerCase()),v&&w.append?[y,y+"-"+v,o,y+"Exit",y+"Exit-"+v]:v?[y,y+"-"+v,y+"Exit",y+"Exit-"+v]:w.append?[y,o,y+"Exit"]:[y,y+"Exit"]}function g(w){let v;return w.type==="document"?v=["Document",o,"DocumentExit"]:w.type==="root"?v=["Root",o,"RootExit"]:v=f(w),{eventIndex:0,events:v,iterator:0,node:w,visitorIndex:0,visitors:[]}}function m(w){return w[p]=!1,w.nodes&&w.nodes.forEach(v=>m(v)),w}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(v,y,S){this.stringified=!1,this.processed=!1;let O;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))O=m(y);else if(y instanceof E||y instanceof t)O=m(y.root),y.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=y.map);else{let T=r;S.syntax&&(T=S.syntax.parse),S.parser&&(T=S.parser),T.parse&&(T=T.parse);try{O=T(y,S)}catch(z){this.processed=!0,this.error=z}O&&!O[b]&&n.rebuild(O)}this.result=new t(v,O,S),this.helpers={..._,postcss:_,result:this.result},this.plugins=this.processor.plugins.map(T=>typeof T=="object"&&T.prepare?{...T,...T.prepare(this.result)}:T)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(v){return this.async().catch(v)}finally(v){return this.async().then(v,v)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(v,y){let S=this.result.lastPlugin;try{y&&y.addToError(v),this.error=v,v.name==="CssSyntaxError"&&!v.plugin?(v.plugin=S.postcssPlugin,v.setMessage()):S.postcssVersion}catch(O){console&&console.error&&console.error(O)}return v}prepareVisitors(){this.listeners={};let v=(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(!u[S])if(typeof y[S]=="object")for(let O in y[S])O==="*"?v(y,S,y[S][O]):v(y,S+"-"+O.toLowerCase(),y[S][O]);else typeof y[S]=="function"&&v(y,S,y[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let v=0;v<this.plugins.length;v++){let y=this.plugins[v],S=this.runOnRoot(y);if(l(S))try{await S}catch(O){throw this.handleError(O)}}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[p];){v[p]=!0;let y=[g(v)];for(;y.length>0;){let S=this.visitTick(y);if(l(S))try{await S}catch(O){let T=y[y.length-1].node;throw this.handleError(O,T)}}}if(this.listeners.OnceExit)for(let[y,S]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(v.type==="document"){let O=v.nodes.map(T=>S(T,this.helpers));await Promise.all(O)}else await S(v,this.helpers)}catch(O){throw this.handleError(O)}}}return this.processed=!0,this.stringify()}runOnRoot(v){this.result.lastPlugin=v;try{if(typeof v=="object"&&v.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(S=>v.Once(S,this.helpers));return l(y[0])?Promise.all(y):y}return v.Once(this.result.root,this.helpers)}else if(typeof v=="function")return v(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 v=this.result.opts,y=a;v.syntax&&(y=v.syntax.stringify),v.stringifier&&(y=v.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 v of this.plugins){let y=this.runOnRoot(v);if(l(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[p];)v[p]=!0,this.walkSync(v);if(this.listeners.OnceExit)if(v.type==="document")for(let y of v.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,v)}return this.result}then(v,y){return this.async().then(v,y)}toString(){return this.css}visitSync(v,y){for(let[S,O]of v){this.result.lastPlugin=S;let T;try{T=O(y,this.helpers)}catch(z){throw this.handleError(z,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(l(T))throw this.getAsyncError()}}visitTick(v){let y=v[v.length-1],{node:S,visitors:O}=y;if(S.type!=="root"&&S.type!=="document"&&!S.parent){v.pop();return}if(O.length>0&&y.visitorIndex<O.length){let[z,N]=O[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===O.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=z;try{return N(S.toProxy(),this.helpers)}catch(K){throw this.handleError(K,S)}}if(y.iterator!==0){let z=y.iterator,N;for(;N=S.nodes[S.indexes[z]];)if(S.indexes[z]+=1,!N[p]){N[p]=!0,v.push(g(N));return}y.iterator=0,delete S.indexes[z]}let T=y.events;for(;y.eventIndex<T.length;){let z=T[y.eventIndex];if(y.eventIndex+=1,z===o){S.nodes&&S.nodes.length&&(S[p]=!0,y.iterator=S.getIterator());return}else if(this.listeners[z]){y.visitors=this.listeners[z];return}}v.pop()}walkSync(v){v[p]=!0;let y=f(v);for(let S of y)if(S===o)v.nodes&&v.each(O=>{O[p]||this.walkSync(O)});else{let O=this.listeners[S];if(O&&this.visitSync(O,v.toProxy()))return}}warnings(){return this.sync().warnings()}}return E.registerPostcss=w=>{_=w},di=E,E.default=E,c.registerLazyResult(E),e.registerLazyResult(E),di}var hi,Mn;function oo(){if(Mn)return hi;Mn=1;let n=Kn(),e=$i();const i=Mi();let r=St();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 a,p=e;try{a=p(this._css,this._opts)}catch(b){this.error=b}if(this.error)throw this.error;return this._root=a,a}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(a,p,b){p=p.toString(),this.stringified=!1,this._processor=a,this._css=p,this._opts=b,this._map=void 0;let d,s=r;this.result=new i(this._processor,d,this._opts),this.result.css=p;let u=this;Object.defineProperty(this.result,"root",{get(){return u.root}});let o=new n(s,d,this._opts,p);if(o.isMap()){let[l,f]=o.generate();l&&(this.result.css=l),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(a){return this.async().catch(a)}finally(a){return this.async().then(a,a)}sync(){if(this.error)throw this.error;return this.result}then(a,p){return this.async().then(a,p)}toString(){return this._css}warnings(){return[]}}return hi=t,t.default=t,hi}var fi,Pn;function ao(){if(Pn)return fi;Pn=1;let n=Oi(),e=Xn(),i=oo(),r=nt();class t{constructor(a=[]){this.version="8.5.6",this.plugins=this.normalize(a)}normalize(a){let p=[];for(let b of a)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(a,p={}){return!this.plugins.length&&!p.parser&&!p.stringifier&&!p.syntax?new i(this,a,p):new e(this,a,p)}use(a){return this.plugins=this.plugins.concat(this.normalize([a])),this}}return fi=t,t.default=t,r.registerProcessor(t),n.registerProcessor(t),fi}var pi,Nn;function lo(){if(Nn)return pi;Nn=1;var n={};let e=Ci(),i=kt(),r=Pe(),t=Ai(),c=Ct(),a=Oi(),p=no(),b=Ot(),d=Xn(),s=Zn(),u=At(),o=$i(),l=ao(),f=Mi(),g=nt(),m=Ri(),_=St(),E=Jn();function w(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new l(v)}return w.plugin=function(y,S){let O=!1;function T(...N){console&&console.warn&&!O&&(O=!0,console.warn(y+`: postcss.plugin was deprecated. Migration guide:
|
|
430
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),n.LANG&&n.LANG.startsWith("cn")&&console.warn(y+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
431
|
+
https://www.w3ctech.com/topic/2226`));let K=S(...N);return K.postcssPlugin=y,K.postcssVersion=new l().version,K}let z;return Object.defineProperty(T,"postcss",{get(){return z||(z=T()),z}}),T.process=function(N,K,H){return w([T(H)]).process(N,K)},T},w.stringify=_,w.parse=o,w.fromJSON=p,w.list=s,w.comment=v=>new i(v),w.atRule=v=>new e(v),w.decl=v=>new c(v),w.rule=v=>new m(v),w.root=v=>new g(v),w.document=v=>new a(v),w.CssSyntaxError=t,w.Declaration=c,w.Container=r,w.Processor=l,w.Document=a,w.Comment=i,w.Warning=E,w.AtRule=e,w.Result=f,w.Input=b,w.Rule=m,w.Root=g,w.Node=u,d.registerPostcss(w),pi=w,w.default=w,pi}var co=lo();const Z=Wn(co);Z.stringify;Z.fromJSON;Z.plugin;Z.parse;Z.list;Z.document;Z.comment;Z.atRule;Z.rule;Z.decl;Z.root;Z.CssSyntaxError;Z.Declaration;Z.Container;Z.Processor;Z.Document;Z.Comment;Z.Warning;Z.AtRule;Z.Result;Z.Input;Z.Rule;Z.Root;Z.Node;var gi,In;function uo(){if(In)return gi;In=1;const n=(r={})=>{const t=r.prefix,c=/\s+$/.test(t)?t:`${t} `,a=r.ignoreFiles?[].concat(r.ignoreFiles):[],p=r.includeFiles?[].concat(r.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(b){const d=b.root,s=d.source.input.file;if(!(a.length&&s&&e(s,a))&&!(p.length&&s&&!e(s,p)))return{Rule(u,{result:o}){const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];u.parent&&l.includes(u.parent.name)||(u.selectors=u.selectors.map(f=>r.exclude&&i(f,r.exclude)?f:r.transform?r.transform(t,f,c+f,d.source.input.file,u):[":root","body","html"].some(g=>f.startsWith(g))?r.skipGlobalSelectors?f:f.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,t):c+f))}}}}};function e(r,t){return t.some(c=>c instanceof RegExp?c.test(r):r.includes(c))}function i(r,t){return t.some(c=>c instanceof RegExp?c.test(r):r===c)}return n.postcss=!0,gi=n,gi}var ho=uo();const fo=Wn(ho),po="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}",go="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 mo(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var mi,Tn;function bo(){if(Tn)return mi;Tn=1;function n(h){return h instanceof Map?h.clear=h.delete=h.set=function(){throw new Error("map is read-only")}:h instanceof Set&&(h.add=h.clear=h.delete=function(){throw new Error("set is read-only")}),Object.freeze(h),Object.getOwnPropertyNames(h).forEach(x=>{const C=h[x],D=typeof C;(D==="object"||D==="function")&&!Object.isFrozen(C)&&n(C)}),h}class e{constructor(x){x.data===void 0&&(x.data={}),this.data=x.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(h){return h.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function r(h,...x){const C=Object.create(null);for(const D in h)C[D]=h[D];return x.forEach(function(D){for(const J in D)C[J]=D[J]}),C}const t="</span>",c=h=>!!h.scope,a=(h,{prefix:x})=>{if(h.startsWith("language:"))return h.replace("language:","language-");if(h.includes(".")){const C=h.split(".");return[`${x}${C.shift()}`,...C.map((D,J)=>`${D}${"_".repeat(J+1)}`)].join(" ")}return`${x}${h}`};class p{constructor(x,C){this.buffer="",this.classPrefix=C.classPrefix,x.walk(this)}addText(x){this.buffer+=i(x)}openNode(x){if(!c(x))return;const C=a(x.scope,{prefix:this.classPrefix});this.span(C)}closeNode(x){c(x)&&(this.buffer+=t)}value(){return this.buffer}span(x){this.buffer+=`<span class="${x}">`}}const b=(h={})=>{const x={children:[]};return Object.assign(x,h),x};class d{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(D=>this._walk(x,D)),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=>{d._collapse(C)}))}}class s extends d{constructor(x){super(),this.options=x}addText(x){x!==""&&this.add(x)}startScope(x){this.openNode(x)}endScope(){this.closeNode()}__addSublanguage(x,C){const D=x.root;C&&(D.scope=`language:${C}`),this.add(D)}toHTML(){return new p(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function u(h){return h?typeof h=="string"?h:h.source:null}function o(h){return g("(?=",h,")")}function l(h){return g("(?:",h,")*")}function f(h){return g("(?:",h,")?")}function g(...h){return h.map(x=>u(x)).join("")}function m(h){const x=h[h.length-1];return typeof x=="object"&&x.constructor===Object?(h.splice(h.length-1,1),x):{}}function _(...h){return"("+(m(h).capture?"":"?:")+h.map(x=>u(x)).join("|")+")"}function E(h){return new RegExp(h.toString()+"|").exec("").length-1}function w(h,x){const C=h&&h.exec(x);return C&&C.index===0}const v=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function y(h,{joinWith:x}){let C=0;return h.map(D=>{C+=1;const J=C;let X=u(D),M="";for(;X.length>0;){const R=v.exec(X);if(!R){M+=X;break}M+=X.substring(0,R.index),X=X.substring(R.index+R[0].length),R[0][0]==="\\"&&R[1]?M+="\\"+String(Number(R[1])+J):(M+=R[0],R[0]==="("&&C++)}return M}).map(D=>`(${D})`).join(x)}const S=/\b\B/,O="[a-zA-Z]\\w*",T="[a-zA-Z_]\\w*",z="\\b\\d+(\\.\\d+)?",N="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",K="\\b(0b[01]+)",H="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Ee=(h={})=>{const x=/^#![ ]*\//;return h.binary&&(h.begin=g(x,/.*\b/,h.binary,/\b.*/)),r({scope:"meta",begin:x,end:/$/,relevance:0,"on:begin":(C,D)=>{C.index!==0&&D.ignoreMatch()}},h)},ce={begin:"\\\\[\\s\\S]",relevance:0},$={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ce]},Ne={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ce]},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/},Q=function(h,x,C={}){const D=r({scope:"comment",begin:h,end:x,contains:[]},C);D.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 J=_("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 D.contains.push({begin:g(/[ ]+/,"(",J,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),D},se=Q("//","$"),oe=Q("/\\*","\\*/"),be=Q("#","$"),Se={scope:"number",begin:z,relevance:0},j={scope:"number",begin:N,relevance:0},qe={scope:"number",begin:K,relevance:0},Ie={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ce,{begin:/\[/,end:/\]/,relevance:0,contains:[ce]}]},$t={scope:"title",begin:O,relevance:0},He={scope:"title",begin:T,relevance:0},Mt={begin:"\\.\\s*"+T,relevance:0};var Te=Object.freeze({__proto__:null,APOS_STRING_MODE:$,BACKSLASH_ESCAPE:ce,BINARY_NUMBER_MODE:qe,BINARY_NUMBER_RE:K,COMMENT:Q,C_BLOCK_COMMENT_MODE:oe,C_LINE_COMMENT_MODE:se,C_NUMBER_MODE:j,C_NUMBER_RE:N,END_SAME_AS_BEGIN:function(h){return Object.assign(h,{"on:begin":(x,C)=>{C.data._beginMatch=x[1]},"on:end":(x,C)=>{C.data._beginMatch!==x[1]&&C.ignoreMatch()}})},HASH_COMMENT_MODE:be,IDENT_RE:O,MATCH_NOTHING_RE:S,METHOD_GUARD:Mt,NUMBER_MODE:Se,NUMBER_RE:z,PHRASAL_WORDS_MODE:W,QUOTE_STRING_MODE:Ne,REGEXP_MODE:Ie,RE_STARTERS_RE:H,SHEBANG:Ee,TITLE_MODE:$t,UNDERSCORE_IDENT_RE:T,UNDERSCORE_TITLE_MODE:He});function Pt(h,x){h.input[h.index-1]==="."&&x.ignoreMatch()}function ye(h,x){h.className!==void 0&&(h.scope=h.className,delete h.className)}function Fe(h,x){x&&h.beginKeywords&&(h.begin="\\b("+h.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",h.__beforeBegin=Pt,h.keywords=h.keywords||h.beginKeywords,delete h.beginKeywords,h.relevance===void 0&&(h.relevance=0))}function rt(h,x){Array.isArray(h.illegal)&&(h.illegal=_(...h.illegal))}function or(h,x){if(h.match){if(h.begin||h.end)throw new Error("begin & end are not supported with match");h.begin=h.match,delete h.match}}function ar(h,x){h.relevance===void 0&&(h.relevance=1)}const lr=(h,x)=>{if(!h.beforeMatch)return;if(h.starts)throw new Error("beforeMatch cannot be used with starts");const C=Object.assign({},h);Object.keys(h).forEach(D=>{delete h[D]}),h.keywords=C.keywords,h.begin=g(C.beforeMatch,o(C.begin)),h.starts={relevance:0,contains:[Object.assign(C,{endsParent:!0})]},h.relevance=0,delete C.beforeMatch},cr=["of","and","for","in","not","or","if","then","parent","list","value"],ur="keyword";function Pi(h,x,C=ur){const D=Object.create(null);return typeof h=="string"?J(C,h.split(" ")):Array.isArray(h)?J(C,h):Object.keys(h).forEach(function(X){Object.assign(D,Pi(h[X],x,X))}),D;function J(X,M){x&&(M=M.map(R=>R.toLowerCase())),M.forEach(function(R){const L=R.split("|");D[L[0]]=[X,dr(L[0],L[1])]})}}function dr(h,x){return x?Number(x):hr(h)?0:1}function hr(h){return cr.includes(h.toLowerCase())}const Ni={},Ae=h=>{console.error(h)},Ii=(h,...x)=>{console.log(`WARN: ${h}`,...x)},Le=(h,x)=>{Ni[`${h}/${x}`]||(console.log(`Deprecated as of ${h}. ${x}`),Ni[`${h}/${x}`]=!0)},st=new Error;function Ti(h,x,{key:C}){let D=0;const J=h[C],X={},M={};for(let R=1;R<=x.length;R++)M[R+D]=J[R],X[R+D]=!0,D+=E(x[R-1]);h[C]=M,h[C]._emit=X,h[C]._multi=!0}function fr(h){if(Array.isArray(h.begin)){if(h.skip||h.excludeBegin||h.returnBegin)throw Ae("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),st;if(typeof h.beginScope!="object"||h.beginScope===null)throw Ae("beginScope must be object"),st;Ti(h,h.begin,{key:"beginScope"}),h.begin=y(h.begin,{joinWith:""})}}function pr(h){if(Array.isArray(h.end)){if(h.skip||h.excludeEnd||h.returnEnd)throw Ae("skip, excludeEnd, returnEnd not compatible with endScope: {}"),st;if(typeof h.endScope!="object"||h.endScope===null)throw Ae("endScope must be object"),st;Ti(h,h.end,{key:"endScope"}),h.end=y(h.end,{joinWith:""})}}function gr(h){h.scope&&typeof h.scope=="object"&&h.scope!==null&&(h.beginScope=h.scope,delete h.scope)}function mr(h){gr(h),typeof h.beginScope=="string"&&(h.beginScope={_wrap:h.beginScope}),typeof h.endScope=="string"&&(h.endScope={_wrap:h.endScope}),fr(h),pr(h)}function br(h){function x(M,R){return new RegExp(u(M),"m"+(h.case_insensitive?"i":"")+(h.unicodeRegex?"u":"")+(R?"g":""))}class C{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(R,L){L.position=this.position++,this.matchIndexes[this.matchAt]=L,this.regexes.push([L,R]),this.matchAt+=E(R)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const R=this.regexes.map(L=>L[1]);this.matcherRe=x(y(R,{joinWith:"|"}),!0),this.lastIndex=0}exec(R){this.matcherRe.lastIndex=this.lastIndex;const L=this.matcherRe.exec(R);if(!L)return null;const ie=L.findIndex((We,It)=>It>0&&We!==void 0),Y=this.matchIndexes[ie];return L.splice(0,ie),Object.assign(L,Y)}}class D{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(R){if(this.multiRegexes[R])return this.multiRegexes[R];const L=new C;return this.rules.slice(R).forEach(([ie,Y])=>L.addRule(ie,Y)),L.compile(),this.multiRegexes[R]=L,L}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(R,L){this.rules.push([R,L]),L.type==="begin"&&this.count++}exec(R){const L=this.getMatcher(this.regexIndex);L.lastIndex=this.lastIndex;let ie=L.exec(R);if(this.resumingScanAtSamePosition()&&!(ie&&ie.index===this.lastIndex)){const Y=this.getMatcher(0);Y.lastIndex=this.lastIndex+1,ie=Y.exec(R)}return ie&&(this.regexIndex+=ie.position+1,this.regexIndex===this.count&&this.considerAll()),ie}}function J(M){const R=new D;return M.contains.forEach(L=>R.addRule(L.begin,{rule:L,type:"begin"})),M.terminatorEnd&&R.addRule(M.terminatorEnd,{type:"end"}),M.illegal&&R.addRule(M.illegal,{type:"illegal"}),R}function X(M,R){const L=M;if(M.isCompiled)return L;[ye,or,mr,lr].forEach(Y=>Y(M,R)),h.compilerExtensions.forEach(Y=>Y(M,R)),M.__beforeBegin=null,[Fe,rt,ar].forEach(Y=>Y(M,R)),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=Pi(M.keywords,h.case_insensitive)),L.keywordPatternRe=x(ie,!0),R&&(M.begin||(M.begin=/\B|\b/),L.beginRe=x(L.begin),!M.end&&!M.endsWithParent&&(M.end=/\B|\b/),M.end&&(L.endRe=x(L.end)),L.terminatorEnd=u(L.end)||"",M.endsWithParent&&R.terminatorEnd&&(L.terminatorEnd+=(M.end?"|":"")+R.terminatorEnd)),M.illegal&&(L.illegalRe=x(M.illegal)),M.contains||(M.contains=[]),M.contains=[].concat(...M.contains.map(function(Y){return yr(Y==="self"?M:Y)})),M.contains.forEach(function(Y){X(Y,L)}),M.starts&&X(M.starts,R),L.matcher=J(L),L}if(h.compilerExtensions||(h.compilerExtensions=[]),h.contains&&h.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return h.classNameAliases=r(h.classNameAliases||{}),X(h)}function Li(h){return h?h.endsWithParent||Li(h.starts):!1}function yr(h){return h.variants&&!h.cachedVariants&&(h.cachedVariants=h.variants.map(function(x){return r(h,{variants:null},x)})),h.cachedVariants?h.cachedVariants:Li(h)?r(h,{starts:h.starts?r(h.starts):null}):Object.isFrozen(h)?r(h):h}var vr="11.11.1";class wr extends Error{constructor(x,C){super(x),this.name="HTMLInjectionError",this.html=C}}const Nt=i,ji=r,Bi=Symbol("nomatch"),xr=7,Di=function(h){const x=Object.create(null),C=Object.create(null),D=[];let J=!0;const X="Could not find the language '{}', did you forget to load/include a language module?",M={disableAutodetect:!0,name:"Plain text",contains:[]};let R={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:s};function L(A){return R.noHighlightRe.test(A)}function ie(A){let I=A.className+" ";I+=A.parentNode?A.parentNode.className:"";const q=R.languageDetectRe.exec(I);if(q){const G=ve(q[1]);return G||(Ii(X.replace("{}",q[1])),Ii("Falling back to no-highlight mode for this block.",A)),G?q[1]:"no-highlight"}return I.split(/\s+/).find(G=>L(G)||ve(G))}function Y(A,I,q){let G="",ee="";typeof I=="object"?(G=A,q=I.ignoreIllegals,ee=I.language):(Le("10.7.0","highlight(lang, code, ...args) has been deprecated."),Le("10.7.0",`Please use highlight(code, options) instead.
|
|
432
432
|
https://github.com/highlightjs/highlight.js/issues/2277`),ee=A,G=I),q===void 0&&(q=!0);const he={code:G,language:ee};at("before:highlight",he);const we=he.result?he.result:We(he.language,he.code,q);return we.code=he.code,at("after:highlight",we),we}function We(A,I,q,G){const ee=Object.create(null);function he(k,P){return k.keywords[P]}function we(){if(!B.keywords){ne.addText(V);return}let k=0;B.keywordPatternRe.lastIndex=0;let P=B.keywordPatternRe.exec(V),U="";for(;P;){U+=V.substring(k,P.index);const F=pe.case_insensitive?P[0].toLowerCase():P[0],re=he(B,F);if(re){const[me,Br]=re;if(ne.addText(U),U="",ee[F]=(ee[F]||0)+1,ee[F]<=xr&&(ut+=Br),me.startsWith("_"))U+=P[0];else{const Dr=pe.classNameAliases[me]||me;fe(P[0],Dr)}}else U+=P[0];k=B.keywordPatternRe.lastIndex,P=B.keywordPatternRe.exec(V)}U+=V.substring(k),ne.addText(U)}function lt(){if(V==="")return;let k=null;if(typeof B.subLanguage=="string"){if(!x[B.subLanguage]){ne.addText(V);return}k=We(B.subLanguage,V,!0,Vi[B.subLanguage]),Vi[B.subLanguage]=k._top}else k=Tt(V,B.subLanguage.length?B.subLanguage:null);B.relevance>0&&(ut+=k.relevance),ne.__addSublanguage(k._emitter,k.language)}function le(){B.subLanguage!=null?lt():we(),V=""}function fe(k,P){k!==""&&(ne.startScope(P),ne.addText(k),ne.endScope())}function Hi(k,P){let U=1;const F=P.length-1;for(;U<=F;){if(!k._emit[U]){U++;continue}const re=pe.classNameAliases[k[U]]||k[U],me=P[U];re?fe(me,re):(V=me,we(),V=""),U++}}function Fi(k,P){return k.scope&&typeof k.scope=="string"&&ne.openNode(pe.classNameAliases[k.scope]||k.scope),k.beginScope&&(k.beginScope._wrap?(fe(V,pe.classNameAliases[k.beginScope._wrap]||k.beginScope._wrap),V=""):k.beginScope._multi&&(Hi(k.beginScope,P),V="")),B=Object.create(k,{parent:{value:B}}),B}function Wi(k,P,U){let F=w(k.endRe,U);if(F){if(k["on:end"]){const re=new e(k);k["on:end"](P,re),re.isMatchIgnored&&(F=!1)}if(F){for(;k.endsParent&&k.parent;)k=k.parent;return k}}if(k.endsWithParent)return Wi(k.parent,P,U)}function Nr(k){return B.matcher.regexIndex===0?(V+=k[0],1):(Dt=!0,0)}function Ir(k){const P=k[0],U=k.rule,F=new e(U),re=[U.__beforeBegin,U["on:begin"]];for(const me of re)if(me&&(me(k,F),F.isMatchIgnored))return Nr(P);return U.skip?V+=P:(U.excludeBegin&&(V+=P),le(),!U.returnBegin&&!U.excludeBegin&&(V=P)),Fi(U,k),U.returnBegin?0:P.length}function Tr(k){const P=k[0],U=I.substring(k.index),F=Wi(B,k,U);if(!F)return Bi;const re=B;B.endScope&&B.endScope._wrap?(le(),fe(P,B.endScope._wrap)):B.endScope&&B.endScope._multi?(le(),Hi(B.endScope,k)):re.skip?V+=P:(re.returnEnd||re.excludeEnd||(V+=P),le(),re.excludeEnd&&(V=P));do B.scope&&ne.closeNode(),!B.skip&&!B.subLanguage&&(ut+=B.relevance),B=B.parent;while(B!==F.parent);return F.starts&&Fi(F.starts,k),re.returnEnd?0:P.length}function Lr(){const k=[];for(let P=B;P!==pe;P=P.parent)P.scope&&k.unshift(P.scope);k.forEach(P=>ne.openNode(P))}let ct={};function Gi(k,P){const U=P&&P[0];if(V+=k,U==null)return le(),0;if(ct.type==="begin"&&P.type==="end"&&ct.index===P.index&&U===""){if(V+=I.slice(P.index,P.index+1),!J){const F=new Error(`0 width match regex (${A})`);throw F.languageName=A,F.badRule=ct.rule,F}return 1}if(ct=P,P.type==="begin")return Ir(P);if(P.type==="illegal"&&!q){const F=new Error('Illegal lexeme "'+U+'" for mode "'+(B.scope||"<unnamed>")+'"');throw F.mode=B,F}else if(P.type==="end"){const F=Tr(P);if(F!==Bi)return F}if(P.type==="illegal"&&U==="")return V+=`
|
|
433
|
-
`,1;if(Bt>1e5&&Bt>P.index*3)throw new Error("potential infinite loop, way more iterations than matches");return V+=U,U.length}const pe=ve(A);if(!pe)throw Ae(X.replace("{}",A)),new Error('Unknown language: "'+A+'"');const jr=br(pe);let jt="",B=G||jr;const Vi={},ne=new R.__emitter(R);Lr();let V="",ut=0,ke=0,Bt=0,Dt=!1;try{if(pe.__emitTokens)pe.__emitTokens(I,ne);else{for(B.matcher.considerAll();;){Bt++,Dt?Dt=!1:B.matcher.considerAll(),B.matcher.lastIndex=ke;const k=B.matcher.exec(I);if(!k)break;const P=I.substring(ke,k.index),U=Gi(P,k);ke=k.index+U}Gi(I.substring(ke))}return ne.finalize(),jt=ne.toHTML(),{language:A,value:jt,relevance:ut,illegal:!1,_emitter:ne,_top:B}}catch(k){if(k.message&&k.message.includes("Illegal"))return{language:A,value:Nt(I),illegal:!0,relevance:0,_illegalBy:{message:k.message,index:ke,context:I.slice(ke-100,ke+100),mode:k.mode,resultSoFar:jt},_emitter:ne};if(J)return{language:A,value:Nt(I),illegal:!1,relevance:0,errorRaised:k,_emitter:ne,_top:B};throw k}}function It(A){const I={value:Nt(A),illegal:!1,relevance:0,_top:M,_emitter:new R.__emitter(R)};return I._emitter.addText(A),I}function Tt(A,I){I=I||R.languages||Object.keys(x);const q=It(A),G=I.filter(ve).filter(qi).map(le=>We(le,A,!1));G.unshift(q);const ee=G.sort((le,fe)=>{if(le.relevance!==fe.relevance)return fe.relevance-le.relevance;if(le.language&&fe.language){if(ve(le.language).supersetOf===fe.language)return 1;if(ve(fe.language).supersetOf===le.language)return-1}return 0}),[he,we]=ee,lt=he;return lt.secondBest=we,lt}function _r(A,I,q){const G=I&&C[I]||q;A.classList.add("hljs"),A.classList.add(`language-${G}`)}function Lt(A){let I=null;const q=ie(A);if(L(q))return;if(at("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&&(R.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(A)),R.throwUnescapedHTML))throw new wr("One of your code blocks includes unescaped HTML.",A.innerHTML);I=A;const G=I.textContent,ee=q?Y(G,{language:q,ignoreIllegals:!0}):Tt(G);A.innerHTML=ee.value,A.dataset.highlighted="yes",_r(A,q,ee.language),A.result={language:ee.language,re:ee.relevance,relevance:ee.relevance},ee.secondBest&&(A.secondBest={language:ee.secondBest.language,relevance:ee.secondBest.relevance}),at("after:highlightElement",{el:A,result:ee,text:G})}function Er(A){R=ji(R,A)}const Sr=()=>{ot(),Le("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Ar(){ot(),Le("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let zi=!1;function ot(){function A(){ot()}if(document.readyState==="loading"){zi||window.addEventListener("DOMContentLoaded",A,!1),zi=!0;return}document.querySelectorAll(R.cssSelector).forEach(Lt)}function kr(A,I){let q=null;try{q=I(h)}catch(G){if(Ae("Language definition for '{}' could not be registered.".replace("{}",A)),J)Ae(G);else throw G;q=M}q.name||(q.name=A),x[A]=q,q.rawDefinition=I.bind(null,h),q.aliases&&Ui(q.aliases,{languageName:A})}function Cr(A){delete x[A];for(const I of Object.keys(C))C[I]===A&&delete C[I]}function Or(){return Object.keys(x)}function ve(A){return A=(A||"").toLowerCase(),x[A]||x[C[A]]}function Ui(A,{languageName:I}){typeof A=="string"&&(A=[A]),A.forEach(q=>{C[q.toLowerCase()]=I})}function qi(A){const I=ve(A);return I&&!I.disableAutodetect}function Rr(A){A["before:highlightBlock"]&&!A["before:highlightElement"]&&(A["before:highlightElement"]=I=>{A["before:highlightBlock"](Object.assign({block:I.el},I))}),A["after:highlightBlock"]&&!A["after:highlightElement"]&&(A["after:highlightElement"]=I=>{A["after:highlightBlock"](Object.assign({block:I.el},I))})}function $r(A){Rr(A),D.push(A)}function Mr(A){const I=D.indexOf(A);I!==-1&&D.splice(I,1)}function at(A,I){const q=A;D.forEach(function(G){G[q]&&G[q](I)})}function Pr(A){return Le("10.7.0","highlightBlock will be removed entirely in v12.0"),Le("10.7.0","Please use highlightElement now."),Lt(A)}Object.assign(h,{highlight:Y,highlightAuto:Tt,highlightAll:ot,highlightElement:Lt,highlightBlock:Pr,configure:Er,initHighlighting:Sr,initHighlightingOnLoad:Ar,registerLanguage:kr,unregisterLanguage:Cr,listLanguages:Or,getLanguage:ve,registerAliases:Ui,autoDetection:qi,inherit:ji,addPlugin:$r,removePlugin:Mr}),h.debugMode=function(){J=!1},h.safeMode=function(){J=!0},h.versionString=vr,h.regex={concat:g,lookahead:o,either:_,optional:f,anyNumberOfTimes:l};for(const A in Te)typeof Te[A]=="object"&&r(Te[A]);return Object.assign(h,Te),h},je=Di({});return je.newInstance=()=>Di({}),mi=je,je.HighlightJS=je,je.default=je,mi}var yo=bo();const Rt=mo(yo),vt="[A-Za-z$_][0-9A-Za-z$_]*",Qn=["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"],Yn=["true","false","null","undefined","NaN","Infinity"],er=["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"],tr=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],ir=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],nr=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],rr=[].concat(ir,er,tr);function vo(r){const e=r.regex,i=(W,{after:Q})=>{const se="</"+W[0].slice(1);return W.input.indexOf(se,Q)!==-1},n=vt,t={begin:"<>",end:"</>"},c=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(W,Q)=>{const se=W[0].length+W.index,oe=W.input[se];if(oe==="<"||oe===","){Q.ignoreMatch();return}oe===">"&&(i(W,{after:se})||Q.ignoreMatch());let be;const Se=W.input.substring(se);if(be=Se.match(/^\s*=/)){Q.ignoreMatch();return}if((be=Se.match(/^\s+extends\s+/))&&be.index===0){Q.ignoreMatch();return}}},p={$pattern:vt,keyword:Qn,literal:Yn,built_in:rr,"variable.language":nr},b="[0-9](_?[0-9])*",d=`\\.(${b})`,s="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",u={className:"number",variants:[{begin:`(\\b(${s})((${d})|\\.)?|(${d}))[eE][+-]?(${b})\\b`},{begin:`\\b(${s})\\b((${d})\\b|\\.)?|(${d})\\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:[]},l={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,o],subLanguage:"xml"}},f={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,o],subLanguage:"css"}},g={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,o],subLanguage:"graphql"}},m={className:"string",begin:"`",end:"`",contains:[r.BACKSLASH_ESCAPE,o]},_={className:"comment",variants:[r.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:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),r.C_BLOCK_COMMENT_MODE,r.C_LINE_COMMENT_MODE]},E=[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,l,f,g,m,{match:/\$\d+/},u];o.contains=E.concat({begin:/\{/,end:/\}/,keywords:p,contains:["self"].concat(E)});const w=[].concat(_,o.contains),v=w.concat([{begin:/(\s*)\(/,end:/\)/,keywords:p,contains:["self"].concat(w)}]),y={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:v},S={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,e.concat(n,"(",e.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],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:{_:[...er,...tr]}},T={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},z={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[y],illegal:/%/},N={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function K(W){return e.concat("(?!",W.join("|"),")")}const H={match:e.concat(/\b/,K([...ir,"super","import"].map(W=>`${W}\\s*\\(`)),n,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},Ee={begin:e.concat(/\./,e.lookahead(e.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ce={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},y]},$="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+r.UNDERSCORE_IDENT_RE+")\\s*=>",Ne={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead($)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[y]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:p,exports:{PARAMS_CONTAINS:v,CLASS_REFERENCE:O},illegal:/#(?![$_A-z])/,contains:[r.SHEBANG({label:"shebang",binary:"node",relevance:5}),T,r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,l,f,g,m,_,{match:/\$\d+/},u,O,{scope:"attr",match:n+e.lookahead(":"),relevance:0},Ne,{begin:"("+r.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[_,r.REGEXP_MODE,{className:"function",begin:$,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:r.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:v}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:t.begin,end:t.end},{match:c},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},z,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+r.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[y,r.inherit(r.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},Ee,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[y]},H,N,S,ce,{match:/\$[(.]/}]}}function wo(r){const e=r.regex,i=vo(r),n=vt,t=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],c={begin:[/namespace/,/\s+/,r.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},a={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"],d={$pattern:vt,keyword:Qn.concat(b),literal:Yn,built_in:rr.concat(t),"variable.language":nr},s={className:"meta",begin:"@"+n},u=(g,m,_)=>{const E=g.contains.findIndex(w=>w.label===m);if(E===-1)throw new Error("can not find mode to replace");g.contains.splice(E,1,_)};Object.assign(i.keywords,d),i.exports.PARAMS_CONTAINS.push(s);const o=i.contains.find(g=>g.scope==="attr"),l=Object.assign({},o,{match:e.concat(n,e.lookahead(/\s*\?:/))});i.exports.PARAMS_CONTAINS.push([i.exports.CLASS_REFERENCE,o,l]),i.contains=i.contains.concat([s,c,a,l]),u(i,"shebang",r.SHEBANG()),u(i,"use_strict",p);const f=i.contains.find(g=>g.label==="func.def");return f.relevance=0,Object.assign(i,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),i}function xo(r){const e=r.regex,i=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),n=/[\p{L}0-9._:-]+/u,t={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},c={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=r.inherit(c,{begin:/\(/,end:/\)/}),p=r.inherit(r.APOS_STRING_MODE,{className:"string"}),b=r.inherit(r.QUOTE_STRING_MODE,{className:"string"}),d={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:n,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:[c,b,p,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[c,a,b,p]}]}]},r.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:[d],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[d],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:d}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(i,/>/))),contains:[{className:"name",begin:i,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const _o=r=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:r.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:[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:r.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_-]*/}}),Eo=["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"],So=["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"],Ao=[...Eo,...So],ko=["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(),Co=["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(),Ro=["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 $o(r){const e=r.regex,i=_o(r),n={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},t="and or not only",c=/@-?\w[\w]*(-\w+)*/,a="[a-zA-Z-][a-zA-Z0-9_-]*",p=[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[i.BLOCK_COMMENT,n,i.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+a,relevance:0},i.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Co.join("|")+")"},{begin:":(:)?("+Oo.join("|")+")"}]},i.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Ro.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:c},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:t,attribute:ko.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...p,i.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Ao.join("|")+")\\b"}]}}const sr=document.createElement("style");sr.innerText=[po,go].join(`
|
|
434
|
-
`);document.head.appendChild(sr);Rt.registerLanguage("typescript",wo);Rt.registerLanguage("html",xo);Rt.registerLanguage("css",$o);function Mo(...
|
|
435
|
-
`).trim();return
|
|
433
|
+
`,1;if(Bt>1e5&&Bt>P.index*3)throw new Error("potential infinite loop, way more iterations than matches");return V+=U,U.length}const pe=ve(A);if(!pe)throw Ae(X.replace("{}",A)),new Error('Unknown language: "'+A+'"');const jr=br(pe);let jt="",B=G||jr;const Vi={},ne=new R.__emitter(R);Lr();let V="",ut=0,ke=0,Bt=0,Dt=!1;try{if(pe.__emitTokens)pe.__emitTokens(I,ne);else{for(B.matcher.considerAll();;){Bt++,Dt?Dt=!1:B.matcher.considerAll(),B.matcher.lastIndex=ke;const k=B.matcher.exec(I);if(!k)break;const P=I.substring(ke,k.index),U=Gi(P,k);ke=k.index+U}Gi(I.substring(ke))}return ne.finalize(),jt=ne.toHTML(),{language:A,value:jt,relevance:ut,illegal:!1,_emitter:ne,_top:B}}catch(k){if(k.message&&k.message.includes("Illegal"))return{language:A,value:Nt(I),illegal:!0,relevance:0,_illegalBy:{message:k.message,index:ke,context:I.slice(ke-100,ke+100),mode:k.mode,resultSoFar:jt},_emitter:ne};if(J)return{language:A,value:Nt(I),illegal:!1,relevance:0,errorRaised:k,_emitter:ne,_top:B};throw k}}function It(A){const I={value:Nt(A),illegal:!1,relevance:0,_top:M,_emitter:new R.__emitter(R)};return I._emitter.addText(A),I}function Tt(A,I){I=I||R.languages||Object.keys(x);const q=It(A),G=I.filter(ve).filter(qi).map(le=>We(le,A,!1));G.unshift(q);const ee=G.sort((le,fe)=>{if(le.relevance!==fe.relevance)return fe.relevance-le.relevance;if(le.language&&fe.language){if(ve(le.language).supersetOf===fe.language)return 1;if(ve(fe.language).supersetOf===le.language)return-1}return 0}),[he,we]=ee,lt=he;return lt.secondBest=we,lt}function _r(A,I,q){const G=I&&C[I]||q;A.classList.add("hljs"),A.classList.add(`language-${G}`)}function Lt(A){let I=null;const q=ie(A);if(L(q))return;if(at("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&&(R.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(A)),R.throwUnescapedHTML))throw new wr("One of your code blocks includes unescaped HTML.",A.innerHTML);I=A;const G=I.textContent,ee=q?Y(G,{language:q,ignoreIllegals:!0}):Tt(G);A.innerHTML=ee.value,A.dataset.highlighted="yes",_r(A,q,ee.language),A.result={language:ee.language,re:ee.relevance,relevance:ee.relevance},ee.secondBest&&(A.secondBest={language:ee.secondBest.language,relevance:ee.secondBest.relevance}),at("after:highlightElement",{el:A,result:ee,text:G})}function Er(A){R=ji(R,A)}const Sr=()=>{ot(),Le("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Ar(){ot(),Le("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let zi=!1;function ot(){function A(){ot()}if(document.readyState==="loading"){zi||window.addEventListener("DOMContentLoaded",A,!1),zi=!0;return}document.querySelectorAll(R.cssSelector).forEach(Lt)}function kr(A,I){let q=null;try{q=I(h)}catch(G){if(Ae("Language definition for '{}' could not be registered.".replace("{}",A)),J)Ae(G);else throw G;q=M}q.name||(q.name=A),x[A]=q,q.rawDefinition=I.bind(null,h),q.aliases&&Ui(q.aliases,{languageName:A})}function Cr(A){delete x[A];for(const I of Object.keys(C))C[I]===A&&delete C[I]}function Or(){return Object.keys(x)}function ve(A){return A=(A||"").toLowerCase(),x[A]||x[C[A]]}function Ui(A,{languageName:I}){typeof A=="string"&&(A=[A]),A.forEach(q=>{C[q.toLowerCase()]=I})}function qi(A){const I=ve(A);return I&&!I.disableAutodetect}function Rr(A){A["before:highlightBlock"]&&!A["before:highlightElement"]&&(A["before:highlightElement"]=I=>{A["before:highlightBlock"](Object.assign({block:I.el},I))}),A["after:highlightBlock"]&&!A["after:highlightElement"]&&(A["after:highlightElement"]=I=>{A["after:highlightBlock"](Object.assign({block:I.el},I))})}function $r(A){Rr(A),D.push(A)}function Mr(A){const I=D.indexOf(A);I!==-1&&D.splice(I,1)}function at(A,I){const q=A;D.forEach(function(G){G[q]&&G[q](I)})}function Pr(A){return Le("10.7.0","highlightBlock will be removed entirely in v12.0"),Le("10.7.0","Please use highlightElement now."),Lt(A)}Object.assign(h,{highlight:Y,highlightAuto:Tt,highlightAll:ot,highlightElement:Lt,highlightBlock:Pr,configure:Er,initHighlighting:Sr,initHighlightingOnLoad:Ar,registerLanguage:kr,unregisterLanguage:Cr,listLanguages:Or,getLanguage:ve,registerAliases:Ui,autoDetection:qi,inherit:ji,addPlugin:$r,removePlugin:Mr}),h.debugMode=function(){J=!1},h.safeMode=function(){J=!0},h.versionString=vr,h.regex={concat:g,lookahead:o,either:_,optional:f,anyNumberOfTimes:l};for(const A in Te)typeof Te[A]=="object"&&n(Te[A]);return Object.assign(h,Te),h},je=Di({});return je.newInstance=()=>Di({}),mi=je,je.HighlightJS=je,je.default=je,mi}var yo=bo();const Rt=mo(yo),vt="[A-Za-z$_][0-9A-Za-z$_]*",Qn=["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"],Yn=["true","false","null","undefined","NaN","Infinity"],er=["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"],tr=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],ir=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],nr=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],rr=[].concat(ir,er,tr);function vo(n){const e=n.regex,i=(W,{after:Q})=>{const se="</"+W[0].slice(1);return W.input.indexOf(se,Q)!==-1},r=vt,t={begin:"<>",end:"</>"},c=/<[A-Za-z0-9\\._:-]+\s*\/>/,a={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(W,Q)=>{const se=W[0].length+W.index,oe=W.input[se];if(oe==="<"||oe===","){Q.ignoreMatch();return}oe===">"&&(i(W,{after:se})||Q.ignoreMatch());let be;const Se=W.input.substring(se);if(be=Se.match(/^\s*=/)){Q.ignoreMatch();return}if((be=Se.match(/^\s+extends\s+/))&&be.index===0){Q.ignoreMatch();return}}},p={$pattern:vt,keyword:Qn,literal:Yn,built_in:rr,"variable.language":nr},b="[0-9](_?[0-9])*",d=`\\.(${b})`,s="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",u={className:"number",variants:[{begin:`(\\b(${s})((${d})|\\.)?|(${d}))[eE][+-]?(${b})\\b`},{begin:`\\b(${s})\\b((${d})\\b|\\.)?|(${d})\\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:[]},l={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"}},g={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,o],subLanguage:"graphql"}},m={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,l,f,g,m,{match:/\$\d+/},u];o.contains=E.concat({begin:/\{/,end:/\}/,keywords:p,contains:["self"].concat(E)});const w=[].concat(_,o.contains),v=w.concat([{begin:/(\s*)\(/,end:/\)/,keywords:p,contains:["self"].concat(w)}]),y={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:v},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:{_:[...er,...tr]}},T={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},z={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[y],illegal:/%/},N={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function K(W){return e.concat("(?!",W.join("|"),")")}const H={match:e.concat(/\b/,K([...ir,"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},ce={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},y]},$="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+n.UNDERSCORE_IDENT_RE+")\\s*=>",Ne={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead($)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[y]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:p,exports:{PARAMS_CONTAINS:v,CLASS_REFERENCE:O},illegal:/#(?![$_A-z])/,contains:[n.SHEBANG({label:"shebang",binary:"node",relevance:5}),T,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,l,f,g,m,_,{match:/\$\d+/},u,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:$,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:v}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:t.begin,end:t.end},{match:c},{begin:a.begin,"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},z,{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,N,S,ce,{match:/\$[(.]/}]}}function wo(n){const e=n.regex,i=vo(n),r=vt,t=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],c={begin:[/namespace/,/\s+/,n.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},a={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"],d={$pattern:vt,keyword:Qn.concat(b),literal:Yn,built_in:rr.concat(t),"variable.language":nr},s={className:"meta",begin:"@"+r},u=(g,m,_)=>{const E=g.contains.findIndex(w=>w.label===m);if(E===-1)throw new Error("can not find mode to replace");g.contains.splice(E,1,_)};Object.assign(i.keywords,d),i.exports.PARAMS_CONTAINS.push(s);const o=i.contains.find(g=>g.scope==="attr"),l=Object.assign({},o,{match:e.concat(r,e.lookahead(/\s*\?:/))});i.exports.PARAMS_CONTAINS.push([i.exports.CLASS_REFERENCE,o,l]),i.contains=i.contains.concat([s,c,a,l]),u(i,"shebang",n.SHEBANG()),u(i,"use_strict",p);const f=i.contains.find(g=>g.label==="func.def");return f.relevance=0,Object.assign(i,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),i}function xo(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]+;/},c={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=n.inherit(c,{begin:/\(/,end:/\)/}),p=n.inherit(n.APOS_STRING_MODE,{className:"string"}),b=n.inherit(n.QUOTE_STRING_MODE,{className:"string"}),d={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:[c,b,p,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[c,a,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:[d],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[d],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:d}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(i,/>/))),contains:[{className:"name",begin:i,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const _o=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_-]*/}}),Eo=["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"],So=["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"],Ao=[...Eo,...So],ko=["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(),Co=["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(),Ro=["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 $o(n){const e=n.regex,i=_o(n),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},t="and or not only",c=/@-?\w[\w]*(-\w+)*/,a="[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:"\\."+a,relevance:0},i.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Co.join("|")+")"},{begin:":(:)?("+Oo.join("|")+")"}]},i.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Ro.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:c},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:t,attribute:ko.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...p,i.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Ao.join("|")+")\\b"}]}}const sr=document.createElement("style");sr.innerText=[po,go].join(`
|
|
434
|
+
`);document.head.appendChild(sr);Rt.registerLanguage("typescript",wo);Rt.registerLanguage("html",xo);Rt.registerLanguage("css",$o);function Mo(...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(c=>c.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 Ve(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 Ke(n,e){const i=document.createElement(n);return typeof e=="string"?i.innerHTML=e:e.forEach(r=>{i.appendChild(r)}),i}async function Po(n,e,i){const r=e.mainContent,t=Ke("div",r);t.id=`example-preview-${i}`;const c=typeof e.css=="string"?void 0:e.css?.label,a=typeof e.css=="string"?e.css:e.css?.content,p=Mo(Ve("Preview",t),Ve("HTML",ft("html",r)),...a?[Ve(c??"CSS",ft("css",a))]:[],...e.initializer&&e.initializer.content?[Ve(e.initializer.label??"TS",ft("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(d=>Ve(d.label,ft(d.language,d.content))));e.description&&n.appendChild(Ke("div",e.description));const b=Ke("div",[p]);b.classList.add("example"),n.appendChild(b),a&&No(`#${t.id}`,a),e.initializer?.initialize&&await e.initializer.initialize(t)}function ft(n,e){let i=e.split(/\r?\n/).map(r=>{const t=r.indexOf("///");if(t>-1){const c=r.substring(t+3).trimStart();return c?r.replace(/^(\s*)([^\s].*)$/,`$1${c}`):void 0}return r}).filter(r=>typeof r<"u").join(`
|
|
435
|
+
`).trim();return n&&n!="raw"&&(i=Rt.highlight(i,{language:n}).value),Ke("pre",[Ke("code",i)])}function No(n,e){const i=document.createElement("style");i.innerHTML=Z().use(fo({prefix:n})).process(e).css,document.head.appendChild(i)}async function Io(n,e=document.body){const i=Lo(e);let r=0;Object.keys(n).sort().forEach(async t=>{const c=document.createElement("div");c.className="example-container",i.appendChild(c);const a=n[t].default;Po(c,a,r++)})}function To(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 Lo(n){return n.children?To(n):n}const jo=`<h1 id="@cas-smartdesign/radio-button-group">@cas-smartdesign/radio-button-group</h1>
|
|
436
436
|
<p>A radio-button-group and a radio-button element based on <a href="https://github.com/Polymer/lit-element">lit-element</a> with SmartDesign look & feel.</p>
|
|
437
437
|
<h2 id="radio-button-group">radio-button-group</h2>
|
|
438
438
|
<h3 id="attributes">Attributes</h3>
|