@cas-smartdesign/combo-box 7.5.2 → 7.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/docs/doc.mjs
CHANGED
|
@@ -39,6 +39,10 @@ sd-combo-box.legacy-validation-layout {
|
|
|
39
39
|
grid-template-columns: repeat(2, 1fr);
|
|
40
40
|
column-gap: 16px;
|
|
41
41
|
}
|
|
42
|
+
|
|
43
|
+
sd-combo-box[long-validation-message] {
|
|
44
|
+
max-width: 320px;
|
|
45
|
+
}
|
|
42
46
|
`,on={mainContent:rn,description:nn,css:Ct},ln=Object.freeze(Object.defineProperty({__proto__:null,default:on},Symbol.toStringTag,{value:"Module"})),cn="modulepreload",mn=function(t,e){return new URL(t,e).href},ea={},Wt=function(e,i,a){let s=Promise.resolve();if(i&&i.length>0){let u=function(n){return Promise.all(n.map(m=>Promise.resolve(m).then(c=>({status:"fulfilled",value:c}),c=>({status:"rejected",reason:c}))))};const o=document.getElementsByTagName("link"),d=document.querySelector("meta[property=csp-nonce]"),h=d?.nonce||d?.getAttribute("nonce");s=u(i.map(n=>{if(n=mn(n,a),n in ea)return;ea[n]=!0;const m=n.endsWith(".css"),c=m?'[rel="stylesheet"]':"";if(!!a)for(let p=o.length-1;p>=0;p--){const N=o[p];if(N.href===n&&(!m||N.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${c}`))return;const f=document.createElement("link");if(f.rel=m?"stylesheet":cn,m||(f.as="script"),f.crossOrigin="",f.href=n,h&&f.setAttribute("nonce",h),document.head.appendChild(f),m)return new Promise((p,N)=>{f.addEventListener("load",p),f.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${n}`)))})}))}function r(o){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=o,window.dispatchEvent(d),!d.defaultPrevented)throw o}return s.then(o=>{for(const d of o||[])d.status==="rejected"&&r(d.reason);return e().catch(r)})},dn=`<div class="grid-example-container" id="basic-examples-container">
|
|
43
47
|
<sd-combo-box id="basic-combobox" label="I am a combo box" item-height="40" placeholder="-- select an option --">
|
|
44
48
|
</sd-combo-box>
|
|
@@ -1310,7 +1314,7 @@ export default class DataProvider {
|
|
|
1310
1314
|
{ firstName: "Therese", lastName: "Janota" },
|
|
1311
1315
|
{ firstName: "Aaren", lastName: "Phair" },
|
|
1312
1316
|
];
|
|
1313
|
-
`,En={mainContent:xn,description:wn,initializer:{content:Sn,type:"typescript",initialize:()=>Wt(()=>import("./4_lazy_loading.js"),[],import.meta.url)},css:Ct+_n,additionalSources:[{content:Cn,language:"typescript",label:"DataProvider",type:"source"},{content:An,language:"typescript",label:"Example data",type:"source"}]},kn=Object.freeze(Object.defineProperty({__proto__:null,default:En},Symbol.toStringTag,{value:"Module"})),Mn=`<div class="grid-example-container" id="unusual-data-examples">
|
|
1317
|
+
`,En={mainContent:xn,description:wn,initializer:{content:Sn,type:"typescript",initialize:()=>Wt(()=>import("./4_lazy_loading.js"),[],import.meta.url)},css:Ct+_n,additionalSources:[{content:Cn,language:"typescript",label:"DataProvider",type:"source"},{content:An,language:"typescript",label:"Example data",type:"source"}]},kn=Object.freeze(Object.defineProperty({__proto__:null,default:En},Symbol.toStringTag,{value:"Module"})),Mn=`<div class="grid-example-container" id="unusual-data-examples" style="max-width: 500px">
|
|
1314
1318
|
<sd-combo-box
|
|
1315
1319
|
id="long-prefixes-example"
|
|
1316
1320
|
label="Long prefixes"
|
|
@@ -1413,51 +1417,51 @@ function updateMandatory(combobox: ComboBox) {
|
|
|
1413
1417
|
}
|
|
1414
1418
|
}
|
|
1415
1419
|
}
|
|
1416
|
-
`,
|
|
1420
|
+
`,Dn={mainContent:Ln,description:Pn,css:Ct,initializer:{content:Bn,type:"typescript",initialize:()=>Wt(()=>import("./6_validation_example.js"),[],import.meta.url)}},Tn=Object.freeze(Object.defineProperty({__proto__:null,default:Dn},Symbol.toStringTag,{value:"Module"}));const di=globalThis,vs=di.ShadowRoot&&(di.ShadyCSS===void 0||di.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,xs=Symbol(),ta=new WeakMap;let Ya=class{constructor(e,i,a){if(this._$cssResult$=!0,a!==xs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o;const i=this.t;if(vs&&e===void 0){const a=i!==void 0&&i.length===1;a&&(e=ta.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),a&&ta.set(i,e))}return e}toString(){return this.cssText}};const At=t=>new Ya(typeof t=="string"?t:t+"",void 0,xs),Gt=(t,...e)=>{const i=t.length===1?t[0]:e.reduce(((a,s,r)=>a+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[r+1]),t[0]);return new Ya(i,t,xs)},zn=(t,e)=>{if(vs)t.adoptedStyleSheets=e.map((i=>i instanceof CSSStyleSheet?i:i.styleSheet));else for(const i of e){const a=document.createElement("style"),s=di.litNonce;s!==void 0&&a.setAttribute("nonce",s),a.textContent=i.cssText,t.appendChild(a)}},ia=vs?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let i="";for(const a of e.cssRules)i+=a.cssText;return At(i)})(t):t;const{is:jn,defineProperty:Vn,getOwnPropertyDescriptor:Fn,getOwnPropertyNames:Hn,getOwnPropertySymbols:qn,getPrototypeOf:Un}=Object,vi=globalThis,sa=vi.trustedTypes,Wn=sa?sa.emptyScript:"",Gn=vi.reactiveElementPolyfillSupport,Pt=(t,e)=>t,fi={toAttribute(t,e){switch(e){case Boolean:t=t?Wn:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=t!==null;break;case Number:i=t===null?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch{i=null}}return i}},ws=(t,e)=>!jn(t,e),aa={attribute:!0,type:String,converter:fi,reflect:!1,useDefault:!1,hasChanged:ws};Symbol.metadata??=Symbol("metadata"),vi.litPropertyMetadata??=new WeakMap;let bt=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,i=aa){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(e,i),!i.noAccessor){const a=Symbol(),s=this.getPropertyDescriptor(e,a,i);s!==void 0&&Vn(this.prototype,e,s)}}static getPropertyDescriptor(e,i,a){const{get:s,set:r}=Fn(this.prototype,e)??{get(){return this[i]},set(o){this[i]=o}};return{get:s,set(o){const d=s?.call(this);r?.call(this,o),this.requestUpdate(e,d,a)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??aa}static _$Ei(){if(this.hasOwnProperty(Pt("elementProperties")))return;const e=Un(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Pt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Pt("properties"))){const i=this.properties,a=[...Hn(i),...qn(i)];for(const s of a)this.createProperty(s,i[s])}const e=this[Symbol.metadata];if(e!==null){const i=litPropertyMetadata.get(e);if(i!==void 0)for(const[a,s]of i)this.elementProperties.set(a,s)}this._$Eh=new Map;for(const[i,a]of this.elementProperties){const s=this._$Eu(i,a);s!==void 0&&this._$Eh.set(s,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const a=new Set(e.flat(1/0).reverse());for(const s of a)i.unshift(ia(s))}else e!==void 0&&i.push(ia(e));return i}static _$Eu(e,i){const a=i.attribute;return a===!1?void 0:typeof a=="string"?a:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,i=this.constructor.elementProperties;for(const a of i.keys())this.hasOwnProperty(a)&&(e.set(a,this[a]),delete this[a]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return zn(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,i,a){this._$AK(e,a)}_$ET(e,i){const a=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,a);if(s!==void 0&&a.reflect===!0){const r=(a.converter?.toAttribute!==void 0?a.converter:fi).toAttribute(i,a.type);this._$Em=e,r==null?this.removeAttribute(s):this.setAttribute(s,r),this._$Em=null}}_$AK(e,i){const a=this.constructor,s=a._$Eh.get(e);if(s!==void 0&&this._$Em!==s){const r=a.getPropertyOptions(s),o=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:fi;this._$Em=s;const d=o.fromAttribute(i,r.type);this[s]=d??this._$Ej?.get(s)??d,this._$Em=null}}requestUpdate(e,i,a){if(e!==void 0){const s=this.constructor,r=this[e];if(a??=s.getPropertyOptions(e),!((a.hasChanged??ws)(r,i)||a.useDefault&&a.reflect&&r===this._$Ej?.get(e)&&!this.hasAttribute(s._$Eu(e,a))))return;this.C(e,i,a)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,i,{useDefault:a,reflect:s,wrapped:r},o){a&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,o??i??this[e]),r!==!0||o!==void 0)||(this._$AL.has(e)||(this.hasUpdated||a||(i=void 0),this._$AL.set(e,i)),s===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[s,r]of this._$Ep)this[s]=r;this._$Ep=void 0}const a=this.constructor.elementProperties;if(a.size>0)for(const[s,r]of a){const{wrapped:o}=r,d=this[s];o!==!0||this._$AL.has(s)||d===void 0||this.C(s,void 0,r,d)}}let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),this._$EO?.forEach((a=>a.hostUpdate?.())),this.update(i)):this._$EM()}catch(a){throw e=!1,this._$EM(),a}e&&this._$AE(i)}willUpdate(e){}_$AE(e){this._$EO?.forEach((i=>i.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((i=>this._$ET(i,this[i]))),this._$EM()}updated(e){}firstUpdated(e){}};bt.elementStyles=[],bt.shadowRootOptions={mode:"open"},bt[Pt("elementProperties")]=new Map,bt[Pt("finalized")]=new Map,Gn?.({ReactiveElement:bt}),(vi.reactiveElementVersions??=[]).push("2.1.1");const _s=globalThis,pi=_s.trustedTypes,ra=pi?pi.createPolicy("lit-html",{createHTML:t=>t}):void 0,Qa="$lit$",Qe=`lit$${Math.random().toFixed(9).slice(2)}$`,er="?"+Qe,Kn=`<${er}>`,mt=document,jt=()=>mt.createComment(""),Vt=t=>t===null||typeof t!="object"&&typeof t!="function",Ss=Array.isArray,Jn=t=>Ss(t)||typeof t?.[Symbol.iterator]=="function",zi=`[
|
|
1417
1421
|
\f\r]`,It=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,na=/-->/g,oa=/>/g,nt=RegExp(`>|${zi}(?:([^\\s"'>=/]+)(${zi}*=${zi}*(?:[^
|
|
1418
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),la=/'/g,ca=/"/g,tr=/^(?:script|style|textarea|title)$/i,Zn=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),be=Zn(1),dt=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),ma=new WeakMap,lt=mt.createTreeWalker(mt,129);function ir(t,e){if(!Ss(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ra!==void 0?ra.createHTML(e):e}const Xn=(t,e)=>{const i=t.length-1,a=[];let s,r=e===2?"<svg>":e===3?"<math>":"",o=It;for(let d=0;d<i;d++){const h=t[d];let u,n,m=-1,c=0;for(;c<h.length&&(o.lastIndex=c,n=o.exec(h),n!==null);)c=o.lastIndex,o===It?n[1]==="!--"?o=na:n[1]!==void 0?o=oa:n[2]!==void 0?(tr.test(n[2])&&(s=RegExp("</"+n[2],"g")),o=nt):n[3]!==void 0&&(o=nt):o===nt?n[0]===">"?(o=s??It,m=-1):n[1]===void 0?m=-2:(m=o.lastIndex-n[2].length,u=n[1],o=n[3]===void 0?nt:n[3]==='"'?ca:la):o===ca||o===la?o=nt:o===na||o===oa?o=It:(o=nt,s=void 0);const l=o===nt&&t[d+1].startsWith("/>")?" ":"";r+=o===It?h+Kn:m>=0?(a.push(u),h.slice(0,m)+Qa+h.slice(m)+Qe+l):h+Qe+(m===-2?d:l)}return[ir(t,r+(t[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),a]};class Ft{constructor({strings:e,_$litType$:i},a){let s;this.parts=[];let r=0,o=0;const d=e.length-1,h=this.parts,[u,n]=Xn(e,i);if(this.el=Ft.createElement(u,a),lt.currentNode=this.el.content,i===2||i===3){const m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(s=lt.nextNode())!==null&&h.length<d;){if(s.nodeType===1){if(s.hasAttributes())for(const m of s.getAttributeNames())if(m.endsWith(Qa)){const c=n[o++],l=s.getAttribute(m).split(Qe),f=/([.?@])?(.*)/.exec(c);h.push({type:1,index:r,name:f[2],strings:l,ctor:f[1]==="."?Qn:f[1]==="?"?eo:f[1]==="@"?to:xi}),s.removeAttribute(m)}else m.startsWith(Qe)&&(h.push({type:6,index:r}),s.removeAttribute(m));if(tr.test(s.tagName)){const m=s.textContent.split(Qe),c=m.length-1;if(c>0){s.textContent=pi?pi.emptyScript:"";for(let l=0;l<c;l++)s.append(m[l],jt()),lt.nextNode(),h.push({type:2,index:++r});s.append(m[c],jt())}}}else if(s.nodeType===8)if(s.data===er)h.push({type:2,index:r});else{let m=-1;for(;(m=s.data.indexOf(Qe,m+1))!==-1;)h.push({type:7,index:r}),m+=Qe.length-1}r++}}static createElement(e,i){const a=mt.createElement("template");return a.innerHTML=e,a}}function vt(t,e,i=t,a){if(e===dt)return e;let s=a!==void 0?i._$Co?.[a]:i._$Cl;const r=Vt(e)?void 0:e._$litDirective$;return s?.constructor!==r&&(s?._$AO?.(!1),r===void 0?s=void 0:(s=new r(t),s._$AT(t,i,a)),a!==void 0?(i._$Co??=[])[a]=s:i._$Cl=s),s!==void 0&&(e=vt(t,s._$AS(t,e.values),s,a)),e}class Yn{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:i},parts:a}=this._$AD,s=(e?.creationScope??mt).importNode(i,!0);lt.currentNode=s;let r=lt.nextNode(),o=0,d=0,h=a[0];for(;h!==void 0;){if(o===h.index){let u;h.type===2?u=new Kt(r,r.nextSibling,this,e):h.type===1?u=new h.ctor(r,h.name,h.strings,this,e):h.type===6&&(u=new io(r,this,e)),this._$AV.push(u),h=a[++d]}o!==h?.index&&(r=lt.nextNode(),o++)}return lt.currentNode=mt,s}p(e){let i=0;for(const a of this._$AV)a!==void 0&&(a.strings!==void 0?(a._$AI(e,a,i),i+=a.strings.length-2):a._$AI(e[i])),i++}}class Kt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,a,s){this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=a,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=vt(this,e,i),Vt(e)?e===Y||e==null||e===""?(this._$AH!==Y&&this._$AR(),this._$AH=Y):e!==this._$AH&&e!==dt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Jn(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Y&&Vt(this._$AH)?this._$AA.nextSibling.data=e:this.T(mt.createTextNode(e)),this._$AH=e}$(e){const{values:i,_$litType$:a}=e,s=typeof a=="number"?this._$AC(e):(a.el===void 0&&(a.el=Ft.createElement(ir(a.h,a.h[0]),this.options)),a);if(this._$AH?._$AD===s)this._$AH.p(i);else{const r=new Yn(s,this),o=r.u(this.options);r.p(i),this.T(o),this._$AH=r}}_$AC(e){let i=ma.get(e.strings);return i===void 0&&ma.set(e.strings,i=new Ft(e)),i}k(e){Ss(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let a,s=0;for(const r of e)s===i.length?i.push(a=new Kt(this.O(jt()),this.O(jt()),this,this.options)):a=i[s],a._$AI(r),s++;s<i.length&&(this._$AR(a&&a._$AB.nextSibling,s),i.length=s)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){const a=e.nextSibling;e.remove(),e=a}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}}class xi{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,a,s,r){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=e,this.name=i,this._$AM=s,this.options=r,a.length>2||a[0]!==""||a[1]!==""?(this._$AH=Array(a.length-1).fill(new String),this.strings=a):this._$AH=Y}_$AI(e,i=this,a,s){const r=this.strings;let o=!1;if(r===void 0)e=vt(this,e,i,0),o=!Vt(e)||e!==this._$AH&&e!==dt,o&&(this._$AH=e);else{const d=e;let h,u;for(e=r[0],h=0;h<r.length-1;h++)u=vt(this,d[a+h],i,h),u===dt&&(u=this._$AH[h]),o||=!Vt(u)||u!==this._$AH[h],u===Y?e=Y:e!==Y&&(e+=(u??"")+r[h+1]),this._$AH[h]=u}o&&!s&&this.j(e)}j(e){e===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Qn extends xi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Y?void 0:e}}class eo extends xi{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Y)}}let to=class extends xi{constructor(e,i,a,s,r){super(e,i,a,s,r),this.type=5}_$AI(e,i=this){if((e=vt(this,e,i,0)??Y)===dt)return;const a=this._$AH,s=e===Y&&a!==Y||e.capture!==a.capture||e.once!==a.once||e.passive!==a.passive,r=e!==Y&&(a===Y||s);s&&this.element.removeEventListener(this.name,this,a),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},io=class{constructor(e,i,a){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=a}get _$AU(){return this._$AM._$AU}_$AI(e){vt(this,e)}};const so=_s.litHtmlPolyfillSupport;so?.(Ft,Kt),(_s.litHtmlVersions??=[]).push("3.3.1");const ao=(t,e,i)=>{const a=i?.renderBefore??e;let s=a._$litPart$;if(s===void 0){const r=i?.renderBefore??null;a._$litPart$=s=new Kt(e.insertBefore(jt(),r),r,void 0,i??{})}return s._$AI(t),s};const Cs=globalThis;let We=class extends bt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ao(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return dt}};We._$litElement$=!0,We.finalized=!0,Cs.litElementHydrateSupport?.({LitElement:We});const ro=Cs.litElementPolyfillSupport;ro?.({LitElement:We});(Cs.litElementVersions??=[]).push("4.2.1");const no={attribute:!0,type:String,converter:fi,reflect:!1,hasChanged:ws},oo=(t=no,e,i)=>{const{kind:a,metadata:s}=i;let r=globalThis.litPropertyMetadata.get(s);if(r===void 0&&globalThis.litPropertyMetadata.set(s,r=new Map),a==="setter"&&((t=Object.create(t)).wrapped=!0),r.set(i.name,t),a==="accessor"){const{name:o}=i;return{set(d){const h=e.get.call(this);e.set.call(this,d),this.requestUpdate(o,h,t)},init(d){return d!==void 0&&this.C(o,void 0,t,d),d}}}if(a==="setter"){const{name:o}=i;return function(d){const h=this[o];e.call(this,d),this.requestUpdate(o,h,t)}}throw Error("Unsupported decorator location: "+a)};function B(t){return(e,i)=>typeof i=="object"?oo(t,e,i):((a,s,r)=>{const o=s.hasOwnProperty(r);return s.constructor.createProperty(r,a),o?Object.getOwnPropertyDescriptor(s,r):void 0})(t,e,i)}var ye="top",ke="bottom",Me="right",ve="left",As="auto",Jt=[ye,ke,Me,ve],xt="start",Ht="end",lo="clippingParents",sr="viewport",Rt="popper",co="reference",da=Jt.reduce(function(t,e){return t.concat([e+"-"+xt,e+"-"+Ht])},[]),ar=[].concat(Jt,[As]).reduce(function(t,e){return t.concat([e,e+"-"+xt,e+"-"+Ht])},[]),mo="beforeRead",uo="read",ho="afterRead",fo="beforeMain",po="main",go="afterMain",No="beforeWrite",bo="write",yo="afterWrite",vo=[mo,uo,ho,fo,po,go,No,bo,yo];function je(t){return t?(t.nodeName||"").toLowerCase():null}function _e(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ut(t){var e=_e(t).Element;return t instanceof e||t instanceof Element}function Ee(t){var e=_e(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Es(t){if(typeof ShadowRoot>"u")return!1;var e=_e(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function xo(t){var e=t.state;Object.keys(e.elements).forEach(function(i){var a=e.styles[i]||{},s=e.attributes[i]||{},r=e.elements[i];!Ee(r)||!je(r)||(Object.assign(r.style,a),Object.keys(s).forEach(function(o){var d=s[o];d===!1?r.removeAttribute(o):r.setAttribute(o,d===!0?"":d)}))})}function wo(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(a){var s=e.elements[a],r=e.attributes[a]||{},o=Object.keys(e.styles.hasOwnProperty(a)?e.styles[a]:i[a]),d=o.reduce(function(h,u){return h[u]="",h},{});!Ee(s)||!je(s)||(Object.assign(s.style,d),Object.keys(r).forEach(function(h){s.removeAttribute(h)}))})}}const _o={name:"applyStyles",enabled:!0,phase:"write",fn:xo,effect:wo,requires:["computeStyles"]};function ze(t){return t.split("-")[0]}var ct=Math.max,gi=Math.min,wt=Math.round;function ps(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function rr(){return!/^((?!chrome|android).)*safari/i.test(ps())}function _t(t,e,i){e===void 0&&(e=!1),i===void 0&&(i=!1);var a=t.getBoundingClientRect(),s=1,r=1;e&&Ee(t)&&(s=t.offsetWidth>0&&wt(a.width)/t.offsetWidth||1,r=t.offsetHeight>0&&wt(a.height)/t.offsetHeight||1);var o=ut(t)?_e(t):window,d=o.visualViewport,h=!rr()&&i,u=(a.left+(h&&d?d.offsetLeft:0))/s,n=(a.top+(h&&d?d.offsetTop:0))/r,m=a.width/s,c=a.height/r;return{width:m,height:c,top:n,right:u+m,bottom:n+c,left:u,x:u,y:n}}function ks(t){var e=_t(t),i=t.offsetWidth,a=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-a)<=1&&(a=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:a}}function nr(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&Es(i)){var a=e;do{if(a&&t.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function Ge(t){return _e(t).getComputedStyle(t)}function So(t){return["table","td","th"].indexOf(je(t))>=0}function et(t){return((ut(t)?t.ownerDocument:t.document)||window.document).documentElement}function wi(t){return je(t)==="html"?t:t.assignedSlot||t.parentNode||(Es(t)?t.host:null)||et(t)}function ua(t){return!Ee(t)||Ge(t).position==="fixed"?null:t.offsetParent}function Co(t){var e=/firefox/i.test(ps()),i=/Trident/i.test(ps());if(i&&Ee(t)){var a=Ge(t);if(a.position==="fixed")return null}var s=wi(t);for(Es(s)&&(s=s.host);Ee(s)&&["html","body"].indexOf(je(s))<0;){var r=Ge(s);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return s;s=s.parentNode}return null}function Zt(t){for(var e=_e(t),i=ua(t);i&&So(i)&&Ge(i).position==="static";)i=ua(i);return i&&(je(i)==="html"||je(i)==="body"&&Ge(i).position==="static")?e:i||Co(t)||e}function Ms(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Bt(t,e,i){return ct(t,gi(e,i))}function Ao(t,e,i){var a=Bt(t,e,i);return a>i?i:a}function or(){return{top:0,right:0,bottom:0,left:0}}function lr(t){return Object.assign({},or(),t)}function cr(t,e){return e.reduce(function(i,a){return i[a]=t,i},{})}var Eo=function(e,i){return e=typeof e=="function"?e(Object.assign({},i.rects,{placement:i.placement})):e,lr(typeof e!="number"?e:cr(e,Jt))};function ko(t){var e,i=t.state,a=t.name,s=t.options,r=i.elements.arrow,o=i.modifiersData.popperOffsets,d=ze(i.placement),h=Ms(d),u=[ve,Me].indexOf(d)>=0,n=u?"height":"width";if(!(!r||!o)){var m=Eo(s.padding,i),c=ks(r),l=h==="y"?ye:ve,f=h==="y"?ke:Me,p=i.rects.reference[n]+i.rects.reference[h]-o[h]-i.rects.popper[n],N=o[h]-i.rects.reference[h],x=Zt(r),w=x?h==="y"?x.clientHeight||0:x.clientWidth||0:0,v=p/2-N/2,y=m[l],b=w-c[n]-m[f],_=w/2-c[n]/2+v,C=Bt(y,_,b),I=h;i.modifiersData[a]=(e={},e[I]=C,e.centerOffset=C-_,e)}}function Mo(t){var e=t.state,i=t.options,a=i.element,s=a===void 0?"[data-popper-arrow]":a;s!=null&&(typeof s=="string"&&(s=e.elements.popper.querySelector(s),!s)||nr(e.elements.popper,s)&&(e.elements.arrow=s))}const Oo={name:"arrow",enabled:!0,phase:"main",fn:ko,effect:Mo,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function St(t){return t.split("-")[1]}var Io={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ro(t,e){var i=t.x,a=t.y,s=e.devicePixelRatio||1;return{x:wt(i*s)/s||0,y:wt(a*s)/s||0}}function ha(t){var e,i=t.popper,a=t.popperRect,s=t.placement,r=t.variation,o=t.offsets,d=t.position,h=t.gpuAcceleration,u=t.adaptive,n=t.roundOffsets,m=t.isFixed,c=o.x,l=c===void 0?0:c,f=o.y,p=f===void 0?0:f,N=typeof n=="function"?n({x:l,y:p}):{x:l,y:p};l=N.x,p=N.y;var x=o.hasOwnProperty("x"),w=o.hasOwnProperty("y"),v=ve,y=ye,b=window;if(u){var _=Zt(i),C="clientHeight",I="clientWidth";if(_===_e(i)&&(_=et(i),Ge(_).position!=="static"&&d==="absolute"&&(C="scrollHeight",I="scrollWidth")),_=_,s===ye||(s===ve||s===Me)&&r===Ht){y=ke;var L=m&&_===b&&b.visualViewport?b.visualViewport.height:_[C];p-=L-a.height,p*=h?1:-1}if(s===ve||(s===ye||s===ke)&&r===Ht){v=Me;var E=m&&_===b&&b.visualViewport?b.visualViewport.width:_[I];l-=E-a.width,l*=h?1:-1}}var H=Object.assign({position:d},u&&Io),V=n===!0?Ro({x:l,y:p},_e(i)):{x:l,y:p};if(l=V.x,p=V.y,h){var Q;return Object.assign({},H,(Q={},Q[y]=w?"0":"",Q[v]=x?"0":"",Q.transform=(b.devicePixelRatio||1)<=1?"translate("+l+"px, "+p+"px)":"translate3d("+l+"px, "+p+"px, 0)",Q))}return Object.assign({},H,(e={},e[y]=w?p+"px":"",e[v]=x?l+"px":"",e.transform="",e))}function $o(t){var e=t.state,i=t.options,a=i.gpuAcceleration,s=a===void 0?!0:a,r=i.adaptive,o=r===void 0?!0:r,d=i.roundOffsets,h=d===void 0?!0:d,u={placement:ze(e.placement),variation:St(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,ha(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:h})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,ha(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:h})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Lo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:$o,data:{}};var oi={passive:!0};function Po(t){var e=t.state,i=t.instance,a=t.options,s=a.scroll,r=s===void 0?!0:s,o=a.resize,d=o===void 0?!0:o,h=_e(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&u.forEach(function(n){n.addEventListener("scroll",i.update,oi)}),d&&h.addEventListener("resize",i.update,oi),function(){r&&u.forEach(function(n){n.removeEventListener("scroll",i.update,oi)}),d&&h.removeEventListener("resize",i.update,oi)}}const Bo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Po,data:{}};var To={left:"right",right:"left",bottom:"top",top:"bottom"};function ui(t){return t.replace(/left|right|bottom|top/g,function(e){return To[e]})}var Do={start:"end",end:"start"};function fa(t){return t.replace(/start|end/g,function(e){return Do[e]})}function Os(t){var e=_e(t),i=e.pageXOffset,a=e.pageYOffset;return{scrollLeft:i,scrollTop:a}}function Is(t){return _t(et(t)).left+Os(t).scrollLeft}function zo(t,e){var i=_e(t),a=et(t),s=i.visualViewport,r=a.clientWidth,o=a.clientHeight,d=0,h=0;if(s){r=s.width,o=s.height;var u=rr();(u||!u&&e==="fixed")&&(d=s.offsetLeft,h=s.offsetTop)}return{width:r,height:o,x:d+Is(t),y:h}}function jo(t){var e,i=et(t),a=Os(t),s=(e=t.ownerDocument)==null?void 0:e.body,r=ct(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=ct(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),d=-a.scrollLeft+Is(t),h=-a.scrollTop;return Ge(s||i).direction==="rtl"&&(d+=ct(i.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:d,y:h}}function Rs(t){var e=Ge(t),i=e.overflow,a=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+a)}function mr(t){return["html","body","#document"].indexOf(je(t))>=0?t.ownerDocument.body:Ee(t)&&Rs(t)?t:mr(wi(t))}function Tt(t,e){var i;e===void 0&&(e=[]);var a=mr(t),s=a===((i=t.ownerDocument)==null?void 0:i.body),r=_e(a),o=s?[r].concat(r.visualViewport||[],Rs(a)?a:[]):a,d=e.concat(o);return s?d:d.concat(Tt(wi(o)))}function gs(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Vo(t,e){var i=_t(t,!1,e==="fixed");return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}function pa(t,e,i){return e===sr?gs(zo(t,i)):ut(e)?Vo(e,i):gs(jo(et(t)))}function Fo(t){var e=Tt(wi(t)),i=["absolute","fixed"].indexOf(Ge(t).position)>=0,a=i&&Ee(t)?Zt(t):t;return ut(a)?e.filter(function(s){return ut(s)&&nr(s,a)&&je(s)!=="body"}):[]}function Ho(t,e,i,a){var s=e==="clippingParents"?Fo(t):[].concat(e),r=[].concat(s,[i]),o=r[0],d=r.reduce(function(h,u){var n=pa(t,u,a);return h.top=ct(n.top,h.top),h.right=gi(n.right,h.right),h.bottom=gi(n.bottom,h.bottom),h.left=ct(n.left,h.left),h},pa(t,o,a));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function dr(t){var e=t.reference,i=t.element,a=t.placement,s=a?ze(a):null,r=a?St(a):null,o=e.x+e.width/2-i.width/2,d=e.y+e.height/2-i.height/2,h;switch(s){case ye:h={x:o,y:e.y-i.height};break;case ke:h={x:o,y:e.y+e.height};break;case Me:h={x:e.x+e.width,y:d};break;case ve:h={x:e.x-i.width,y:d};break;default:h={x:e.x,y:e.y}}var u=s?Ms(s):null;if(u!=null){var n=u==="y"?"height":"width";switch(r){case xt:h[u]=h[u]-(e[n]/2-i[n]/2);break;case Ht:h[u]=h[u]+(e[n]/2-i[n]/2);break}}return h}function qt(t,e){e===void 0&&(e={});var i=e,a=i.placement,s=a===void 0?t.placement:a,r=i.strategy,o=r===void 0?t.strategy:r,d=i.boundary,h=d===void 0?lo:d,u=i.rootBoundary,n=u===void 0?sr:u,m=i.elementContext,c=m===void 0?Rt:m,l=i.altBoundary,f=l===void 0?!1:l,p=i.padding,N=p===void 0?0:p,x=lr(typeof N!="number"?N:cr(N,Jt)),w=c===Rt?co:Rt,v=t.rects.popper,y=t.elements[f?w:c],b=Ho(ut(y)?y:y.contextElement||et(t.elements.popper),h,n,o),_=_t(t.elements.reference),C=dr({reference:_,element:v,placement:s}),I=gs(Object.assign({},v,C)),L=c===Rt?I:_,E={top:b.top-L.top+x.top,bottom:L.bottom-b.bottom+x.bottom,left:b.left-L.left+x.left,right:L.right-b.right+x.right},H=t.modifiersData.offset;if(c===Rt&&H){var V=H[s];Object.keys(E).forEach(function(Q){var re=[Me,ke].indexOf(Q)>=0?1:-1,O=[ye,ke].indexOf(Q)>=0?"y":"x";E[Q]+=V[O]*re})}return E}function qo(t,e){e===void 0&&(e={});var i=e,a=i.placement,s=i.boundary,r=i.rootBoundary,o=i.padding,d=i.flipVariations,h=i.allowedAutoPlacements,u=h===void 0?ar:h,n=St(a),m=n?d?da:da.filter(function(f){return St(f)===n}):Jt,c=m.filter(function(f){return u.indexOf(f)>=0});c.length===0&&(c=m);var l=c.reduce(function(f,p){return f[p]=qt(t,{placement:p,boundary:s,rootBoundary:r,padding:o})[ze(p)],f},{});return Object.keys(l).sort(function(f,p){return l[f]-l[p]})}function Uo(t){if(ze(t)===As)return[];var e=ui(t);return[fa(t),e,fa(e)]}function Wo(t){var e=t.state,i=t.options,a=t.name;if(!e.modifiersData[a]._skip){for(var s=i.mainAxis,r=s===void 0?!0:s,o=i.altAxis,d=o===void 0?!0:o,h=i.fallbackPlacements,u=i.padding,n=i.boundary,m=i.rootBoundary,c=i.altBoundary,l=i.flipVariations,f=l===void 0?!0:l,p=i.allowedAutoPlacements,N=e.options.placement,x=ze(N),w=x===N,v=h||(w||!f?[ui(N)]:Uo(N)),y=[N].concat(v).reduce(function(Ce,fe){return Ce.concat(ze(fe)===As?qo(e,{placement:fe,boundary:n,rootBoundary:m,padding:u,flipVariations:f,allowedAutoPlacements:p}):fe)},[]),b=e.rects.reference,_=e.rects.popper,C=new Map,I=!0,L=y[0],E=0;E<y.length;E++){var H=y[E],V=ze(H),Q=St(H)===xt,re=[ye,ke].indexOf(V)>=0,O=re?"width":"height",ne=qt(e,{placement:H,boundary:n,rootBoundary:m,altBoundary:c,padding:u}),q=re?Q?Me:ve:Q?ke:ye;b[O]>_[O]&&(q=ui(q));var Z=ui(q),te=[];if(r&&te.push(ne[V]<=0),d&&te.push(ne[q]<=0,ne[Z]<=0),te.every(function(Ce){return Ce})){L=H,I=!1;break}C.set(H,te)}if(I)for(var le=f?3:1,Se=function(fe){var Fe=y.find(function(Re){var Oe=C.get(Re);if(Oe)return Oe.slice(0,fe).every(function($e){return $e})});if(Fe)return L=Fe,"break"},xe=le;xe>0;xe--){var D=Se(xe);if(D==="break")break}e.placement!==L&&(e.modifiersData[a]._skip=!0,e.placement=L,e.reset=!0)}}const Go={name:"flip",enabled:!0,phase:"main",fn:Wo,requiresIfExists:["offset"],data:{_skip:!1}};function ga(t,e,i){return i===void 0&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function Na(t){return[ye,Me,ke,ve].some(function(e){return t[e]>=0})}function Ko(t){var e=t.state,i=t.name,a=e.rects.reference,s=e.rects.popper,r=e.modifiersData.preventOverflow,o=qt(e,{elementContext:"reference"}),d=qt(e,{altBoundary:!0}),h=ga(o,a),u=ga(d,s,r),n=Na(h),m=Na(u);e.modifiersData[i]={referenceClippingOffsets:h,popperEscapeOffsets:u,isReferenceHidden:n,hasPopperEscaped:m},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":n,"data-popper-escaped":m})}const Jo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ko};function Zo(t,e,i){var a=ze(t),s=[ve,ye].indexOf(a)>=0?-1:1,r=typeof i=="function"?i(Object.assign({},e,{placement:t})):i,o=r[0],d=r[1];return o=o||0,d=(d||0)*s,[ve,Me].indexOf(a)>=0?{x:d,y:o}:{x:o,y:d}}function Xo(t){var e=t.state,i=t.options,a=t.name,s=i.offset,r=s===void 0?[0,0]:s,o=ar.reduce(function(n,m){return n[m]=Zo(m,e.rects,r),n},{}),d=o[e.placement],h=d.x,u=d.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=h,e.modifiersData.popperOffsets.y+=u),e.modifiersData[a]=o}const Yo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Xo};function Qo(t){var e=t.state,i=t.name;e.modifiersData[i]=dr({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const el={name:"popperOffsets",enabled:!0,phase:"read",fn:Qo,data:{}};function tl(t){return t==="x"?"y":"x"}function il(t){var e=t.state,i=t.options,a=t.name,s=i.mainAxis,r=s===void 0?!0:s,o=i.altAxis,d=o===void 0?!1:o,h=i.boundary,u=i.rootBoundary,n=i.altBoundary,m=i.padding,c=i.tether,l=c===void 0?!0:c,f=i.tetherOffset,p=f===void 0?0:f,N=qt(e,{boundary:h,rootBoundary:u,padding:m,altBoundary:n}),x=ze(e.placement),w=St(e.placement),v=!w,y=Ms(x),b=tl(y),_=e.modifiersData.popperOffsets,C=e.rects.reference,I=e.rects.popper,L=typeof p=="function"?p(Object.assign({},e.rects,{placement:e.placement})):p,E=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),H=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,V={x:0,y:0};if(_){if(r){var Q,re=y==="y"?ye:ve,O=y==="y"?ke:Me,ne=y==="y"?"height":"width",q=_[y],Z=q+N[re],te=q-N[O],le=l?-I[ne]/2:0,Se=w===xt?C[ne]:I[ne],xe=w===xt?-I[ne]:-C[ne],D=e.elements.arrow,Ce=l&&D?ks(D):{width:0,height:0},fe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:or(),Fe=fe[re],Re=fe[O],Oe=Bt(0,C[ne],Ce[ne]),$e=v?C[ne]/2-le-Oe-Fe-E.mainAxis:Se-Oe-Fe-E.mainAxis,Et=v?-C[ne]/2+le+Oe+Re+E.mainAxis:xe+Oe+Re+E.mainAxis,Ae=e.elements.arrow&&Zt(e.elements.arrow),it=Ae?y==="y"?Ae.clientTop||0:Ae.clientLeft||0:0,st=(Q=H?.[y])!=null?Q:0,Mi=q+$e-st-it,Oi=q+Et-st,Yt=Bt(l?gi(Z,Mi):Z,q,l?ct(te,Oi):te);_[y]=Yt,V[y]=Yt-q}if(d){var Qt,Ii=y==="x"?ye:ve,ei=y==="x"?ke:Me,He=_[b],ft=b==="y"?"height":"width",kt=He+N[Ii],Le=He-N[ei],pt=[ye,ve].indexOf(x)!==-1,qe=(Qt=H?.[b])!=null?Qt:0,at=pt?kt:He-C[ft]-I[ft]-qe+E.altAxis,Mt=pt?He+C[ft]+I[ft]-qe-E.altAxis:Le,ti=l&&pt?Ao(at,He,Mt):Bt(l?at:kt,He,l?Mt:Le);_[b]=ti,V[b]=ti-He}e.modifiersData[a]=V}}const sl={name:"preventOverflow",enabled:!0,phase:"main",fn:il,requiresIfExists:["offset"]};function al(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function rl(t){return t===_e(t)||!Ee(t)?Os(t):al(t)}function nl(t){var e=t.getBoundingClientRect(),i=wt(e.width)/t.offsetWidth||1,a=wt(e.height)/t.offsetHeight||1;return i!==1||a!==1}function ol(t,e,i){i===void 0&&(i=!1);var a=Ee(e),s=Ee(e)&&nl(e),r=et(e),o=_t(t,s,i),d={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(a||!a&&!i)&&((je(e)!=="body"||Rs(r))&&(d=rl(e)),Ee(e)?(h=_t(e,!0),h.x+=e.clientLeft,h.y+=e.clientTop):r&&(h.x=Is(r))),{x:o.left+d.scrollLeft-h.x,y:o.top+d.scrollTop-h.y,width:o.width,height:o.height}}function ll(t){var e=new Map,i=new Set,a=[];t.forEach(function(r){e.set(r.name,r)});function s(r){i.add(r.name);var o=[].concat(r.requires||[],r.requiresIfExists||[]);o.forEach(function(d){if(!i.has(d)){var h=e.get(d);h&&s(h)}}),a.push(r)}return t.forEach(function(r){i.has(r.name)||s(r)}),a}function cl(t){var e=ll(t);return vo.reduce(function(i,a){return i.concat(e.filter(function(s){return s.phase===a}))},[])}function ml(t){var e;return function(){return e||(e=new Promise(function(i){Promise.resolve().then(function(){e=void 0,i(t())})})),e}}function dl(t){var e=t.reduce(function(i,a){var s=i[a.name];return i[a.name]=s?Object.assign({},s,a,{options:Object.assign({},s.options,a.options),data:Object.assign({},s.data,a.data)}):a,i},{});return Object.keys(e).map(function(i){return e[i]})}var ba={placement:"bottom",modifiers:[],strategy:"absolute"};function ya(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function ul(t){t===void 0&&(t={});var e=t,i=e.defaultModifiers,a=i===void 0?[]:i,s=e.defaultOptions,r=s===void 0?ba:s;return function(d,h,u){u===void 0&&(u=r);var n={placement:"bottom",orderedModifiers:[],options:Object.assign({},ba,r),modifiersData:{},elements:{reference:d,popper:h},attributes:{},styles:{}},m=[],c=!1,l={state:n,setOptions:function(x){var w=typeof x=="function"?x(n.options):x;p(),n.options=Object.assign({},r,n.options,w),n.scrollParents={reference:ut(d)?Tt(d):d.contextElement?Tt(d.contextElement):[],popper:Tt(h)};var v=cl(dl([].concat(a,n.options.modifiers)));return n.orderedModifiers=v.filter(function(y){return y.enabled}),f(),l.update()},forceUpdate:function(){if(!c){var x=n.elements,w=x.reference,v=x.popper;if(ya(w,v)){n.rects={reference:ol(w,Zt(v),n.options.strategy==="fixed"),popper:ks(v)},n.reset=!1,n.placement=n.options.placement,n.orderedModifiers.forEach(function(E){return n.modifiersData[E.name]=Object.assign({},E.data)});for(var y=0;y<n.orderedModifiers.length;y++){if(n.reset===!0){n.reset=!1,y=-1;continue}var b=n.orderedModifiers[y],_=b.fn,C=b.options,I=C===void 0?{}:C,L=b.name;typeof _=="function"&&(n=_({state:n,options:I,name:L,instance:l})||n)}}}},update:ml(function(){return new Promise(function(N){l.forceUpdate(),N(n)})}),destroy:function(){p(),c=!0}};if(!ya(d,h))return l;l.setOptions(u).then(function(N){!c&&u.onFirstUpdate&&u.onFirstUpdate(N)});function f(){n.orderedModifiers.forEach(function(N){var x=N.name,w=N.options,v=w===void 0?{}:w,y=N.effect;if(typeof y=="function"){var b=y({state:n,name:x,instance:l,options:v}),_=function(){};m.push(b||_)}})}function p(){m.forEach(function(N){return N()}),m=[]}return l}}var hl=[Bo,el,Lo,_o,Yo,Go,sl,Oo,Jo],fl=ul({defaultModifiers:hl});const pe=t=>t??Y,pl=":host{display:inline-block;font-size:13px;line-height:20px;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;color:#111;contain:content}:host([hidden]){display:none!important}:host([level=warn i]){color:#555}:host([level=suggest i]){color:#bf8800}:host([level=error i]){color:#cc0017}:host([level=warn]){color:#555}:host([level=suggest]){color:#bf8800}:host([level=error]){color:#cc0017}.icon{height:12px;width:12px;padding-right:4px;margin-bottom:-1px}",gl="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cstyle%20id='style3'%3e%20.st0{fill:%23fff}.st1{fill:%23c00}%20%3c/style%3e%3cg%20id='g5'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20id='path9'/%3e%3c/g%3e%3cg%20id='g11'%3e%3cpath%20class='st0'%20id='rect13'%20d='M5.5%202.5h1v4h-1z'/%3e%3cpath%20class='st1'%20d='M6%203v3-3m1-1H5v5h2V2z'%20id='path15'/%3e%3c/g%3e%3cg%20id='g17'%3e%3cpath%20class='st0'%20id='rect19'%20d='M5.5%208.5h1v1h-1z'/%3e%3cpath%20class='st1'%20id='polygon21'%20d='M7%208H5v2h2V8z'/%3e%3c/g%3e%3c/svg%3e",Nl="data:image/svg+xml,%3csvg%20id='Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cstyle%3e%20.st0{fill:%23bf8800}%20%3c/style%3e%3cpath%20class='st0'%20d='M12%20.8l11%2019.8v1.3H1v-1.3L12%20.8zm.8-.6h-1.6L0%2020v3h24v-3L12.8.2z'/%3e%3cpath%20class='st0'%20d='M11%208h2v8h-2zm0%2010h2v2h-2z'/%3e%3c/svg%3e",bl="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20fill='%23555'/%3e%3cpath%20d='M6%209V6v3m-1%201h2V5H5v5zm2-8H5v2h2z'%20class='st1'%20fill='%23555'/%3e%3c/svg%3e";var yl=Object.defineProperty,$s=(t,e,i,a)=>{for(var s=void 0,r=t.length-1,o;r>=0;r--)(o=t[r])&&(s=o(e,i,s)||s);return s&&yl(e,i,s),s},Nt;const Ut=(Nt=class extends We{static parseLevel(t){if(t){const e=Object.keys(Ni).find(i=>i.toLowerCase()===t.toLowerCase());return e&&Ni[e]}}static get styles(){return[Gt`
|
|
1422
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),la=/'/g,ca=/"/g,tr=/^(?:script|style|textarea|title)$/i,Zn=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),be=Zn(1),dt=Symbol.for("lit-noChange"),X=Symbol.for("lit-nothing"),ma=new WeakMap,lt=mt.createTreeWalker(mt,129);function ir(t,e){if(!Ss(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ra!==void 0?ra.createHTML(e):e}const Xn=(t,e)=>{const i=t.length-1,a=[];let s,r=e===2?"<svg>":e===3?"<math>":"",o=It;for(let d=0;d<i;d++){const h=t[d];let u,n,m=-1,c=0;for(;c<h.length&&(o.lastIndex=c,n=o.exec(h),n!==null);)c=o.lastIndex,o===It?n[1]==="!--"?o=na:n[1]!==void 0?o=oa:n[2]!==void 0?(tr.test(n[2])&&(s=RegExp("</"+n[2],"g")),o=nt):n[3]!==void 0&&(o=nt):o===nt?n[0]===">"?(o=s??It,m=-1):n[1]===void 0?m=-2:(m=o.lastIndex-n[2].length,u=n[1],o=n[3]===void 0?nt:n[3]==='"'?ca:la):o===ca||o===la?o=nt:o===na||o===oa?o=It:(o=nt,s=void 0);const l=o===nt&&t[d+1].startsWith("/>")?" ":"";r+=o===It?h+Kn:m>=0?(a.push(u),h.slice(0,m)+Qa+h.slice(m)+Qe+l):h+Qe+(m===-2?d:l)}return[ir(t,r+(t[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),a]};class Ft{constructor({strings:e,_$litType$:i},a){let s;this.parts=[];let r=0,o=0;const d=e.length-1,h=this.parts,[u,n]=Xn(e,i);if(this.el=Ft.createElement(u,a),lt.currentNode=this.el.content,i===2||i===3){const m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(s=lt.nextNode())!==null&&h.length<d;){if(s.nodeType===1){if(s.hasAttributes())for(const m of s.getAttributeNames())if(m.endsWith(Qa)){const c=n[o++],l=s.getAttribute(m).split(Qe),f=/([.?@])?(.*)/.exec(c);h.push({type:1,index:r,name:f[2],strings:l,ctor:f[1]==="."?Qn:f[1]==="?"?eo:f[1]==="@"?to:xi}),s.removeAttribute(m)}else m.startsWith(Qe)&&(h.push({type:6,index:r}),s.removeAttribute(m));if(tr.test(s.tagName)){const m=s.textContent.split(Qe),c=m.length-1;if(c>0){s.textContent=pi?pi.emptyScript:"";for(let l=0;l<c;l++)s.append(m[l],jt()),lt.nextNode(),h.push({type:2,index:++r});s.append(m[c],jt())}}}else if(s.nodeType===8)if(s.data===er)h.push({type:2,index:r});else{let m=-1;for(;(m=s.data.indexOf(Qe,m+1))!==-1;)h.push({type:7,index:r}),m+=Qe.length-1}r++}}static createElement(e,i){const a=mt.createElement("template");return a.innerHTML=e,a}}function vt(t,e,i=t,a){if(e===dt)return e;let s=a!==void 0?i._$Co?.[a]:i._$Cl;const r=Vt(e)?void 0:e._$litDirective$;return s?.constructor!==r&&(s?._$AO?.(!1),r===void 0?s=void 0:(s=new r(t),s._$AT(t,i,a)),a!==void 0?(i._$Co??=[])[a]=s:i._$Cl=s),s!==void 0&&(e=vt(t,s._$AS(t,e.values),s,a)),e}class Yn{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:i},parts:a}=this._$AD,s=(e?.creationScope??mt).importNode(i,!0);lt.currentNode=s;let r=lt.nextNode(),o=0,d=0,h=a[0];for(;h!==void 0;){if(o===h.index){let u;h.type===2?u=new Kt(r,r.nextSibling,this,e):h.type===1?u=new h.ctor(r,h.name,h.strings,this,e):h.type===6&&(u=new io(r,this,e)),this._$AV.push(u),h=a[++d]}o!==h?.index&&(r=lt.nextNode(),o++)}return lt.currentNode=mt,s}p(e){let i=0;for(const a of this._$AV)a!==void 0&&(a.strings!==void 0?(a._$AI(e,a,i),i+=a.strings.length-2):a._$AI(e[i])),i++}}class Kt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,a,s){this.type=2,this._$AH=X,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=a,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=vt(this,e,i),Vt(e)?e===X||e==null||e===""?(this._$AH!==X&&this._$AR(),this._$AH=X):e!==this._$AH&&e!==dt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Jn(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==X&&Vt(this._$AH)?this._$AA.nextSibling.data=e:this.T(mt.createTextNode(e)),this._$AH=e}$(e){const{values:i,_$litType$:a}=e,s=typeof a=="number"?this._$AC(e):(a.el===void 0&&(a.el=Ft.createElement(ir(a.h,a.h[0]),this.options)),a);if(this._$AH?._$AD===s)this._$AH.p(i);else{const r=new Yn(s,this),o=r.u(this.options);r.p(i),this.T(o),this._$AH=r}}_$AC(e){let i=ma.get(e.strings);return i===void 0&&ma.set(e.strings,i=new Ft(e)),i}k(e){Ss(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let a,s=0;for(const r of e)s===i.length?i.push(a=new Kt(this.O(jt()),this.O(jt()),this,this.options)):a=i[s],a._$AI(r),s++;s<i.length&&(this._$AR(a&&a._$AB.nextSibling,s),i.length=s)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){const a=e.nextSibling;e.remove(),e=a}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}}class xi{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,a,s,r){this.type=1,this._$AH=X,this._$AN=void 0,this.element=e,this.name=i,this._$AM=s,this.options=r,a.length>2||a[0]!==""||a[1]!==""?(this._$AH=Array(a.length-1).fill(new String),this.strings=a):this._$AH=X}_$AI(e,i=this,a,s){const r=this.strings;let o=!1;if(r===void 0)e=vt(this,e,i,0),o=!Vt(e)||e!==this._$AH&&e!==dt,o&&(this._$AH=e);else{const d=e;let h,u;for(e=r[0],h=0;h<r.length-1;h++)u=vt(this,d[a+h],i,h),u===dt&&(u=this._$AH[h]),o||=!Vt(u)||u!==this._$AH[h],u===X?e=X:e!==X&&(e+=(u??"")+r[h+1]),this._$AH[h]=u}o&&!s&&this.j(e)}j(e){e===X?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Qn extends xi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===X?void 0:e}}let eo=class extends xi{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==X)}},to=class extends xi{constructor(e,i,a,s,r){super(e,i,a,s,r),this.type=5}_$AI(e,i=this){if((e=vt(this,e,i,0)??X)===dt)return;const a=this._$AH,s=e===X&&a!==X||e.capture!==a.capture||e.once!==a.once||e.passive!==a.passive,r=e!==X&&(a===X||s);s&&this.element.removeEventListener(this.name,this,a),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},io=class{constructor(e,i,a){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=a}get _$AU(){return this._$AM._$AU}_$AI(e){vt(this,e)}};const so=_s.litHtmlPolyfillSupport;so?.(Ft,Kt),(_s.litHtmlVersions??=[]).push("3.3.1");const ao=(t,e,i)=>{const a=i?.renderBefore??e;let s=a._$litPart$;if(s===void 0){const r=i?.renderBefore??null;a._$litPart$=s=new Kt(e.insertBefore(jt(),r),r,void 0,i??{})}return s._$AI(t),s};const Cs=globalThis;let We=class extends bt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ao(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return dt}};We._$litElement$=!0,We.finalized=!0,Cs.litElementHydrateSupport?.({LitElement:We});const ro=Cs.litElementPolyfillSupport;ro?.({LitElement:We});(Cs.litElementVersions??=[]).push("4.2.1");const no={attribute:!0,type:String,converter:fi,reflect:!1,hasChanged:ws},oo=(t=no,e,i)=>{const{kind:a,metadata:s}=i;let r=globalThis.litPropertyMetadata.get(s);if(r===void 0&&globalThis.litPropertyMetadata.set(s,r=new Map),a==="setter"&&((t=Object.create(t)).wrapped=!0),r.set(i.name,t),a==="accessor"){const{name:o}=i;return{set(d){const h=e.get.call(this);e.set.call(this,d),this.requestUpdate(o,h,t)},init(d){return d!==void 0&&this.C(o,void 0,t,d),d}}}if(a==="setter"){const{name:o}=i;return function(d){const h=this[o];e.call(this,d),this.requestUpdate(o,h,t)}}throw Error("Unsupported decorator location: "+a)};function P(t){return(e,i)=>typeof i=="object"?oo(t,e,i):((a,s,r)=>{const o=s.hasOwnProperty(r);return s.constructor.createProperty(r,a),o?Object.getOwnPropertyDescriptor(s,r):void 0})(t,e,i)}var ye="top",ke="bottom",Me="right",ve="left",As="auto",Jt=[ye,ke,Me,ve],xt="start",Ht="end",lo="clippingParents",sr="viewport",Rt="popper",co="reference",da=Jt.reduce(function(t,e){return t.concat([e+"-"+xt,e+"-"+Ht])},[]),ar=[].concat(Jt,[As]).reduce(function(t,e){return t.concat([e,e+"-"+xt,e+"-"+Ht])},[]),mo="beforeRead",uo="read",ho="afterRead",fo="beforeMain",po="main",go="afterMain",No="beforeWrite",bo="write",yo="afterWrite",vo=[mo,uo,ho,fo,po,go,No,bo,yo];function je(t){return t?(t.nodeName||"").toLowerCase():null}function _e(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ut(t){var e=_e(t).Element;return t instanceof e||t instanceof Element}function Ee(t){var e=_e(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Es(t){if(typeof ShadowRoot>"u")return!1;var e=_e(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function xo(t){var e=t.state;Object.keys(e.elements).forEach(function(i){var a=e.styles[i]||{},s=e.attributes[i]||{},r=e.elements[i];!Ee(r)||!je(r)||(Object.assign(r.style,a),Object.keys(s).forEach(function(o){var d=s[o];d===!1?r.removeAttribute(o):r.setAttribute(o,d===!0?"":d)}))})}function wo(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(a){var s=e.elements[a],r=e.attributes[a]||{},o=Object.keys(e.styles.hasOwnProperty(a)?e.styles[a]:i[a]),d=o.reduce(function(h,u){return h[u]="",h},{});!Ee(s)||!je(s)||(Object.assign(s.style,d),Object.keys(r).forEach(function(h){s.removeAttribute(h)}))})}}const _o={name:"applyStyles",enabled:!0,phase:"write",fn:xo,effect:wo,requires:["computeStyles"]};function ze(t){return t.split("-")[0]}var ct=Math.max,gi=Math.min,wt=Math.round;function ps(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function rr(){return!/^((?!chrome|android).)*safari/i.test(ps())}function _t(t,e,i){e===void 0&&(e=!1),i===void 0&&(i=!1);var a=t.getBoundingClientRect(),s=1,r=1;e&&Ee(t)&&(s=t.offsetWidth>0&&wt(a.width)/t.offsetWidth||1,r=t.offsetHeight>0&&wt(a.height)/t.offsetHeight||1);var o=ut(t)?_e(t):window,d=o.visualViewport,h=!rr()&&i,u=(a.left+(h&&d?d.offsetLeft:0))/s,n=(a.top+(h&&d?d.offsetTop:0))/r,m=a.width/s,c=a.height/r;return{width:m,height:c,top:n,right:u+m,bottom:n+c,left:u,x:u,y:n}}function ks(t){var e=_t(t),i=t.offsetWidth,a=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-a)<=1&&(a=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:a}}function nr(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&Es(i)){var a=e;do{if(a&&t.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function Ge(t){return _e(t).getComputedStyle(t)}function So(t){return["table","td","th"].indexOf(je(t))>=0}function et(t){return((ut(t)?t.ownerDocument:t.document)||window.document).documentElement}function wi(t){return je(t)==="html"?t:t.assignedSlot||t.parentNode||(Es(t)?t.host:null)||et(t)}function ua(t){return!Ee(t)||Ge(t).position==="fixed"?null:t.offsetParent}function Co(t){var e=/firefox/i.test(ps()),i=/Trident/i.test(ps());if(i&&Ee(t)){var a=Ge(t);if(a.position==="fixed")return null}var s=wi(t);for(Es(s)&&(s=s.host);Ee(s)&&["html","body"].indexOf(je(s))<0;){var r=Ge(s);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return s;s=s.parentNode}return null}function Zt(t){for(var e=_e(t),i=ua(t);i&&So(i)&&Ge(i).position==="static";)i=ua(i);return i&&(je(i)==="html"||je(i)==="body"&&Ge(i).position==="static")?e:i||Co(t)||e}function Ms(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Bt(t,e,i){return ct(t,gi(e,i))}function Ao(t,e,i){var a=Bt(t,e,i);return a>i?i:a}function or(){return{top:0,right:0,bottom:0,left:0}}function lr(t){return Object.assign({},or(),t)}function cr(t,e){return e.reduce(function(i,a){return i[a]=t,i},{})}var Eo=function(e,i){return e=typeof e=="function"?e(Object.assign({},i.rects,{placement:i.placement})):e,lr(typeof e!="number"?e:cr(e,Jt))};function ko(t){var e,i=t.state,a=t.name,s=t.options,r=i.elements.arrow,o=i.modifiersData.popperOffsets,d=ze(i.placement),h=Ms(d),u=[ve,Me].indexOf(d)>=0,n=u?"height":"width";if(!(!r||!o)){var m=Eo(s.padding,i),c=ks(r),l=h==="y"?ye:ve,f=h==="y"?ke:Me,p=i.rects.reference[n]+i.rects.reference[h]-o[h]-i.rects.popper[n],N=o[h]-i.rects.reference[h],x=Zt(r),w=x?h==="y"?x.clientHeight||0:x.clientWidth||0:0,v=p/2-N/2,y=m[l],b=w-c[n]-m[f],_=w/2-c[n]/2+v,C=Bt(y,_,b),I=h;i.modifiersData[a]=(e={},e[I]=C,e.centerOffset=C-_,e)}}function Mo(t){var e=t.state,i=t.options,a=i.element,s=a===void 0?"[data-popper-arrow]":a;s!=null&&(typeof s=="string"&&(s=e.elements.popper.querySelector(s),!s)||nr(e.elements.popper,s)&&(e.elements.arrow=s))}const Oo={name:"arrow",enabled:!0,phase:"main",fn:ko,effect:Mo,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function St(t){return t.split("-")[1]}var Io={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ro(t,e){var i=t.x,a=t.y,s=e.devicePixelRatio||1;return{x:wt(i*s)/s||0,y:wt(a*s)/s||0}}function ha(t){var e,i=t.popper,a=t.popperRect,s=t.placement,r=t.variation,o=t.offsets,d=t.position,h=t.gpuAcceleration,u=t.adaptive,n=t.roundOffsets,m=t.isFixed,c=o.x,l=c===void 0?0:c,f=o.y,p=f===void 0?0:f,N=typeof n=="function"?n({x:l,y:p}):{x:l,y:p};l=N.x,p=N.y;var x=o.hasOwnProperty("x"),w=o.hasOwnProperty("y"),v=ve,y=ye,b=window;if(u){var _=Zt(i),C="clientHeight",I="clientWidth";if(_===_e(i)&&(_=et(i),Ge(_).position!=="static"&&d==="absolute"&&(C="scrollHeight",I="scrollWidth")),_=_,s===ye||(s===ve||s===Me)&&r===Ht){y=ke;var L=m&&_===b&&b.visualViewport?b.visualViewport.height:_[C];p-=L-a.height,p*=h?1:-1}if(s===ve||(s===ye||s===ke)&&r===Ht){v=Me;var E=m&&_===b&&b.visualViewport?b.visualViewport.width:_[I];l-=E-a.width,l*=h?1:-1}}var H=Object.assign({position:d},u&&Io),V=n===!0?Ro({x:l,y:p},_e(i)):{x:l,y:p};if(l=V.x,p=V.y,h){var Q;return Object.assign({},H,(Q={},Q[y]=w?"0":"",Q[v]=x?"0":"",Q.transform=(b.devicePixelRatio||1)<=1?"translate("+l+"px, "+p+"px)":"translate3d("+l+"px, "+p+"px, 0)",Q))}return Object.assign({},H,(e={},e[y]=w?p+"px":"",e[v]=x?l+"px":"",e.transform="",e))}function $o(t){var e=t.state,i=t.options,a=i.gpuAcceleration,s=a===void 0?!0:a,r=i.adaptive,o=r===void 0?!0:r,d=i.roundOffsets,h=d===void 0?!0:d,u={placement:ze(e.placement),variation:St(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,ha(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:h})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,ha(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:h})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Lo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:$o,data:{}};var oi={passive:!0};function Po(t){var e=t.state,i=t.instance,a=t.options,s=a.scroll,r=s===void 0?!0:s,o=a.resize,d=o===void 0?!0:o,h=_e(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&u.forEach(function(n){n.addEventListener("scroll",i.update,oi)}),d&&h.addEventListener("resize",i.update,oi),function(){r&&u.forEach(function(n){n.removeEventListener("scroll",i.update,oi)}),d&&h.removeEventListener("resize",i.update,oi)}}const Bo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Po,data:{}};var Do={left:"right",right:"left",bottom:"top",top:"bottom"};function ui(t){return t.replace(/left|right|bottom|top/g,function(e){return Do[e]})}var To={start:"end",end:"start"};function fa(t){return t.replace(/start|end/g,function(e){return To[e]})}function Os(t){var e=_e(t),i=e.pageXOffset,a=e.pageYOffset;return{scrollLeft:i,scrollTop:a}}function Is(t){return _t(et(t)).left+Os(t).scrollLeft}function zo(t,e){var i=_e(t),a=et(t),s=i.visualViewport,r=a.clientWidth,o=a.clientHeight,d=0,h=0;if(s){r=s.width,o=s.height;var u=rr();(u||!u&&e==="fixed")&&(d=s.offsetLeft,h=s.offsetTop)}return{width:r,height:o,x:d+Is(t),y:h}}function jo(t){var e,i=et(t),a=Os(t),s=(e=t.ownerDocument)==null?void 0:e.body,r=ct(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=ct(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),d=-a.scrollLeft+Is(t),h=-a.scrollTop;return Ge(s||i).direction==="rtl"&&(d+=ct(i.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:d,y:h}}function Rs(t){var e=Ge(t),i=e.overflow,a=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+a)}function mr(t){return["html","body","#document"].indexOf(je(t))>=0?t.ownerDocument.body:Ee(t)&&Rs(t)?t:mr(wi(t))}function Dt(t,e){var i;e===void 0&&(e=[]);var a=mr(t),s=a===((i=t.ownerDocument)==null?void 0:i.body),r=_e(a),o=s?[r].concat(r.visualViewport||[],Rs(a)?a:[]):a,d=e.concat(o);return s?d:d.concat(Dt(wi(o)))}function gs(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Vo(t,e){var i=_t(t,!1,e==="fixed");return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}function pa(t,e,i){return e===sr?gs(zo(t,i)):ut(e)?Vo(e,i):gs(jo(et(t)))}function Fo(t){var e=Dt(wi(t)),i=["absolute","fixed"].indexOf(Ge(t).position)>=0,a=i&&Ee(t)?Zt(t):t;return ut(a)?e.filter(function(s){return ut(s)&&nr(s,a)&&je(s)!=="body"}):[]}function Ho(t,e,i,a){var s=e==="clippingParents"?Fo(t):[].concat(e),r=[].concat(s,[i]),o=r[0],d=r.reduce(function(h,u){var n=pa(t,u,a);return h.top=ct(n.top,h.top),h.right=gi(n.right,h.right),h.bottom=gi(n.bottom,h.bottom),h.left=ct(n.left,h.left),h},pa(t,o,a));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function dr(t){var e=t.reference,i=t.element,a=t.placement,s=a?ze(a):null,r=a?St(a):null,o=e.x+e.width/2-i.width/2,d=e.y+e.height/2-i.height/2,h;switch(s){case ye:h={x:o,y:e.y-i.height};break;case ke:h={x:o,y:e.y+e.height};break;case Me:h={x:e.x+e.width,y:d};break;case ve:h={x:e.x-i.width,y:d};break;default:h={x:e.x,y:e.y}}var u=s?Ms(s):null;if(u!=null){var n=u==="y"?"height":"width";switch(r){case xt:h[u]=h[u]-(e[n]/2-i[n]/2);break;case Ht:h[u]=h[u]+(e[n]/2-i[n]/2);break}}return h}function qt(t,e){e===void 0&&(e={});var i=e,a=i.placement,s=a===void 0?t.placement:a,r=i.strategy,o=r===void 0?t.strategy:r,d=i.boundary,h=d===void 0?lo:d,u=i.rootBoundary,n=u===void 0?sr:u,m=i.elementContext,c=m===void 0?Rt:m,l=i.altBoundary,f=l===void 0?!1:l,p=i.padding,N=p===void 0?0:p,x=lr(typeof N!="number"?N:cr(N,Jt)),w=c===Rt?co:Rt,v=t.rects.popper,y=t.elements[f?w:c],b=Ho(ut(y)?y:y.contextElement||et(t.elements.popper),h,n,o),_=_t(t.elements.reference),C=dr({reference:_,element:v,placement:s}),I=gs(Object.assign({},v,C)),L=c===Rt?I:_,E={top:b.top-L.top+x.top,bottom:L.bottom-b.bottom+x.bottom,left:b.left-L.left+x.left,right:L.right-b.right+x.right},H=t.modifiersData.offset;if(c===Rt&&H){var V=H[s];Object.keys(E).forEach(function(Q){var re=[Me,ke].indexOf(Q)>=0?1:-1,O=[ye,ke].indexOf(Q)>=0?"y":"x";E[Q]+=V[O]*re})}return E}function qo(t,e){e===void 0&&(e={});var i=e,a=i.placement,s=i.boundary,r=i.rootBoundary,o=i.padding,d=i.flipVariations,h=i.allowedAutoPlacements,u=h===void 0?ar:h,n=St(a),m=n?d?da:da.filter(function(f){return St(f)===n}):Jt,c=m.filter(function(f){return u.indexOf(f)>=0});c.length===0&&(c=m);var l=c.reduce(function(f,p){return f[p]=qt(t,{placement:p,boundary:s,rootBoundary:r,padding:o})[ze(p)],f},{});return Object.keys(l).sort(function(f,p){return l[f]-l[p]})}function Uo(t){if(ze(t)===As)return[];var e=ui(t);return[fa(t),e,fa(e)]}function Wo(t){var e=t.state,i=t.options,a=t.name;if(!e.modifiersData[a]._skip){for(var s=i.mainAxis,r=s===void 0?!0:s,o=i.altAxis,d=o===void 0?!0:o,h=i.fallbackPlacements,u=i.padding,n=i.boundary,m=i.rootBoundary,c=i.altBoundary,l=i.flipVariations,f=l===void 0?!0:l,p=i.allowedAutoPlacements,N=e.options.placement,x=ze(N),w=x===N,v=h||(w||!f?[ui(N)]:Uo(N)),y=[N].concat(v).reduce(function(Ce,pe){return Ce.concat(ze(pe)===As?qo(e,{placement:pe,boundary:n,rootBoundary:m,padding:u,flipVariations:f,allowedAutoPlacements:p}):pe)},[]),b=e.rects.reference,_=e.rects.popper,C=new Map,I=!0,L=y[0],E=0;E<y.length;E++){var H=y[E],V=ze(H),Q=St(H)===xt,re=[ye,ke].indexOf(V)>=0,O=re?"width":"height",ne=qt(e,{placement:H,boundary:n,rootBoundary:m,altBoundary:c,padding:u}),q=re?Q?Me:ve:Q?ke:ye;b[O]>_[O]&&(q=ui(q));var Z=ui(q),te=[];if(r&&te.push(ne[V]<=0),d&&te.push(ne[q]<=0,ne[Z]<=0),te.every(function(Ce){return Ce})){L=H,I=!1;break}C.set(H,te)}if(I)for(var le=f?3:1,Se=function(pe){var Fe=y.find(function(Re){var Oe=C.get(Re);if(Oe)return Oe.slice(0,pe).every(function($e){return $e})});if(Fe)return L=Fe,"break"},xe=le;xe>0;xe--){var T=Se(xe);if(T==="break")break}e.placement!==L&&(e.modifiersData[a]._skip=!0,e.placement=L,e.reset=!0)}}const Go={name:"flip",enabled:!0,phase:"main",fn:Wo,requiresIfExists:["offset"],data:{_skip:!1}};function ga(t,e,i){return i===void 0&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function Na(t){return[ye,Me,ke,ve].some(function(e){return t[e]>=0})}function Ko(t){var e=t.state,i=t.name,a=e.rects.reference,s=e.rects.popper,r=e.modifiersData.preventOverflow,o=qt(e,{elementContext:"reference"}),d=qt(e,{altBoundary:!0}),h=ga(o,a),u=ga(d,s,r),n=Na(h),m=Na(u);e.modifiersData[i]={referenceClippingOffsets:h,popperEscapeOffsets:u,isReferenceHidden:n,hasPopperEscaped:m},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":n,"data-popper-escaped":m})}const Jo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ko};function Zo(t,e,i){var a=ze(t),s=[ve,ye].indexOf(a)>=0?-1:1,r=typeof i=="function"?i(Object.assign({},e,{placement:t})):i,o=r[0],d=r[1];return o=o||0,d=(d||0)*s,[ve,Me].indexOf(a)>=0?{x:d,y:o}:{x:o,y:d}}function Xo(t){var e=t.state,i=t.options,a=t.name,s=i.offset,r=s===void 0?[0,0]:s,o=ar.reduce(function(n,m){return n[m]=Zo(m,e.rects,r),n},{}),d=o[e.placement],h=d.x,u=d.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=h,e.modifiersData.popperOffsets.y+=u),e.modifiersData[a]=o}const Yo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Xo};function Qo(t){var e=t.state,i=t.name;e.modifiersData[i]=dr({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const el={name:"popperOffsets",enabled:!0,phase:"read",fn:Qo,data:{}};function tl(t){return t==="x"?"y":"x"}function il(t){var e=t.state,i=t.options,a=t.name,s=i.mainAxis,r=s===void 0?!0:s,o=i.altAxis,d=o===void 0?!1:o,h=i.boundary,u=i.rootBoundary,n=i.altBoundary,m=i.padding,c=i.tether,l=c===void 0?!0:c,f=i.tetherOffset,p=f===void 0?0:f,N=qt(e,{boundary:h,rootBoundary:u,padding:m,altBoundary:n}),x=ze(e.placement),w=St(e.placement),v=!w,y=Ms(x),b=tl(y),_=e.modifiersData.popperOffsets,C=e.rects.reference,I=e.rects.popper,L=typeof p=="function"?p(Object.assign({},e.rects,{placement:e.placement})):p,E=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),H=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,V={x:0,y:0};if(_){if(r){var Q,re=y==="y"?ye:ve,O=y==="y"?ke:Me,ne=y==="y"?"height":"width",q=_[y],Z=q+N[re],te=q-N[O],le=l?-I[ne]/2:0,Se=w===xt?C[ne]:I[ne],xe=w===xt?-I[ne]:-C[ne],T=e.elements.arrow,Ce=l&&T?ks(T):{width:0,height:0},pe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:or(),Fe=pe[re],Re=pe[O],Oe=Bt(0,C[ne],Ce[ne]),$e=v?C[ne]/2-le-Oe-Fe-E.mainAxis:Se-Oe-Fe-E.mainAxis,Et=v?-C[ne]/2+le+Oe+Re+E.mainAxis:xe+Oe+Re+E.mainAxis,Ae=e.elements.arrow&&Zt(e.elements.arrow),it=Ae?y==="y"?Ae.clientTop||0:Ae.clientLeft||0:0,st=(Q=H?.[y])!=null?Q:0,Mi=q+$e-st-it,Oi=q+Et-st,Yt=Bt(l?gi(Z,Mi):Z,q,l?ct(te,Oi):te);_[y]=Yt,V[y]=Yt-q}if(d){var Qt,Ii=y==="x"?ye:ve,ei=y==="x"?ke:Me,He=_[b],ft=b==="y"?"height":"width",kt=He+N[Ii],Le=He-N[ei],pt=[ye,ve].indexOf(x)!==-1,qe=(Qt=H?.[b])!=null?Qt:0,at=pt?kt:He-C[ft]-I[ft]-qe+E.altAxis,Mt=pt?He+C[ft]+I[ft]-qe-E.altAxis:Le,ti=l&&pt?Ao(at,He,Mt):Bt(l?at:kt,He,l?Mt:Le);_[b]=ti,V[b]=ti-He}e.modifiersData[a]=V}}const sl={name:"preventOverflow",enabled:!0,phase:"main",fn:il,requiresIfExists:["offset"]};function al(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function rl(t){return t===_e(t)||!Ee(t)?Os(t):al(t)}function nl(t){var e=t.getBoundingClientRect(),i=wt(e.width)/t.offsetWidth||1,a=wt(e.height)/t.offsetHeight||1;return i!==1||a!==1}function ol(t,e,i){i===void 0&&(i=!1);var a=Ee(e),s=Ee(e)&&nl(e),r=et(e),o=_t(t,s,i),d={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(a||!a&&!i)&&((je(e)!=="body"||Rs(r))&&(d=rl(e)),Ee(e)?(h=_t(e,!0),h.x+=e.clientLeft,h.y+=e.clientTop):r&&(h.x=Is(r))),{x:o.left+d.scrollLeft-h.x,y:o.top+d.scrollTop-h.y,width:o.width,height:o.height}}function ll(t){var e=new Map,i=new Set,a=[];t.forEach(function(r){e.set(r.name,r)});function s(r){i.add(r.name);var o=[].concat(r.requires||[],r.requiresIfExists||[]);o.forEach(function(d){if(!i.has(d)){var h=e.get(d);h&&s(h)}}),a.push(r)}return t.forEach(function(r){i.has(r.name)||s(r)}),a}function cl(t){var e=ll(t);return vo.reduce(function(i,a){return i.concat(e.filter(function(s){return s.phase===a}))},[])}function ml(t){var e;return function(){return e||(e=new Promise(function(i){Promise.resolve().then(function(){e=void 0,i(t())})})),e}}function dl(t){var e=t.reduce(function(i,a){var s=i[a.name];return i[a.name]=s?Object.assign({},s,a,{options:Object.assign({},s.options,a.options),data:Object.assign({},s.data,a.data)}):a,i},{});return Object.keys(e).map(function(i){return e[i]})}var ba={placement:"bottom",modifiers:[],strategy:"absolute"};function ya(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function ul(t){t===void 0&&(t={});var e=t,i=e.defaultModifiers,a=i===void 0?[]:i,s=e.defaultOptions,r=s===void 0?ba:s;return function(d,h,u){u===void 0&&(u=r);var n={placement:"bottom",orderedModifiers:[],options:Object.assign({},ba,r),modifiersData:{},elements:{reference:d,popper:h},attributes:{},styles:{}},m=[],c=!1,l={state:n,setOptions:function(x){var w=typeof x=="function"?x(n.options):x;p(),n.options=Object.assign({},r,n.options,w),n.scrollParents={reference:ut(d)?Dt(d):d.contextElement?Dt(d.contextElement):[],popper:Dt(h)};var v=cl(dl([].concat(a,n.options.modifiers)));return n.orderedModifiers=v.filter(function(y){return y.enabled}),f(),l.update()},forceUpdate:function(){if(!c){var x=n.elements,w=x.reference,v=x.popper;if(ya(w,v)){n.rects={reference:ol(w,Zt(v),n.options.strategy==="fixed"),popper:ks(v)},n.reset=!1,n.placement=n.options.placement,n.orderedModifiers.forEach(function(E){return n.modifiersData[E.name]=Object.assign({},E.data)});for(var y=0;y<n.orderedModifiers.length;y++){if(n.reset===!0){n.reset=!1,y=-1;continue}var b=n.orderedModifiers[y],_=b.fn,C=b.options,I=C===void 0?{}:C,L=b.name;typeof _=="function"&&(n=_({state:n,options:I,name:L,instance:l})||n)}}}},update:ml(function(){return new Promise(function(N){l.forceUpdate(),N(n)})}),destroy:function(){p(),c=!0}};if(!ya(d,h))return l;l.setOptions(u).then(function(N){!c&&u.onFirstUpdate&&u.onFirstUpdate(N)});function f(){n.orderedModifiers.forEach(function(N){var x=N.name,w=N.options,v=w===void 0?{}:w,y=N.effect;if(typeof y=="function"){var b=y({state:n,name:x,instance:l,options:v}),_=function(){};m.push(b||_)}})}function p(){m.forEach(function(N){return N()}),m=[]}return l}}var hl=[Bo,el,Lo,_o,Yo,Go,sl,Oo,Jo],fl=ul({defaultModifiers:hl});const ge=t=>t??X,pl=":host{display:inline-block;font-size:13px;line-height:20px;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;color:#111;contain:content}:host([hidden]){display:none!important}:host([level=warn i]){color:#555}:host([level=suggest i]){color:#bf8800}:host([level=error i]){color:#cc0017}:host([level=warn]){color:#555}:host([level=suggest]){color:#bf8800}:host([level=error]){color:#cc0017}.icon{height:12px;width:12px;padding-right:4px;margin-bottom:-1px}",gl="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cstyle%20id='style3'%3e%20.st0{fill:%23fff}.st1{fill:%23c00}%20%3c/style%3e%3cg%20id='g5'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20id='path9'/%3e%3c/g%3e%3cg%20id='g11'%3e%3cpath%20class='st0'%20id='rect13'%20d='M5.5%202.5h1v4h-1z'/%3e%3cpath%20class='st1'%20d='M6%203v3-3m1-1H5v5h2V2z'%20id='path15'/%3e%3c/g%3e%3cg%20id='g17'%3e%3cpath%20class='st0'%20id='rect19'%20d='M5.5%208.5h1v1h-1z'/%3e%3cpath%20class='st1'%20id='polygon21'%20d='M7%208H5v2h2V8z'/%3e%3c/g%3e%3c/svg%3e",Nl="data:image/svg+xml,%3csvg%20id='Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cstyle%3e%20.st0{fill:%23bf8800}%20%3c/style%3e%3cpath%20class='st0'%20d='M12%20.8l11%2019.8v1.3H1v-1.3L12%20.8zm.8-.6h-1.6L0%2020v3h24v-3L12.8.2z'/%3e%3cpath%20class='st0'%20d='M11%208h2v8h-2zm0%2010h2v2h-2z'/%3e%3c/svg%3e",bl="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20fill='%23555'/%3e%3cpath%20d='M6%209V6v3m-1%201h2V5H5v5zm2-8H5v2h2z'%20class='st1'%20fill='%23555'/%3e%3c/svg%3e";var yl=Object.defineProperty,$s=(t,e,i,a)=>{for(var s=void 0,r=t.length-1,o;r>=0;r--)(o=t[r])&&(s=o(e,i,s)||s);return s&&yl(e,i,s),s},Nt;const Ut=(Nt=class extends We{static parseLevel(t){if(t){const e=Object.keys(Ni).find(i=>i.toLowerCase()===t.toLowerCase());return e&&Ni[e]}}static get styles(){return[Gt`
|
|
1419
1423
|
${At(pl)}
|
|
1420
|
-
`]}render(){return be`${this.iconToUse&&be`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(t){return t.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(t)}get iconForLevel(){switch(Nt.parseLevel(this.level)){case"warn":return bl;case"suggest":return Nl;case"error":return gl;default:return null}}},Nt.ID="sd-field-validation-message",Nt.levelConverter={fromAttribute(t){return Nt.parseLevel(t)},toAttribute(t){return t&&t.toLowerCase()}},Nt);$s([
|
|
1424
|
+
`]}render(){return be`${this.iconToUse&&be`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(t){return t.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(t)}get iconForLevel(){switch(Nt.parseLevel(this.level)){case"warn":return bl;case"suggest":return Nl;case"error":return gl;default:return null}}},Nt.ID="sd-field-validation-message",Nt.levelConverter={fromAttribute(t){return Nt.parseLevel(t)},toAttribute(t){return t&&t.toLowerCase()}},Nt);$s([P({type:String,attribute:!0})],Ut.prototype,"message");$s([P({type:String,attribute:!0})],Ut.prototype,"icon");$s([P({converter:Ut.levelConverter,reflect:!0})],Ut.prototype,"level");let ji=Ut;var Ni=(t=>(t.Warn="warn",t.Suggest="suggest",t.Error="error",t))(Ni||{});customElements.get(ji.ID)||customElements.define(ji.ID,ji);const vl=":host{display:inline-flex;position:relative;cursor:text;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;font-size:16px;color:#111;contain:layout style;flex-direction:column}:host([hidden]),:host([type=hidden]){display:none!important}:host([effective-disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([effective-disabled]) .unfocused-line,:host([effective-disabled]) .focused-line{border-bottom-style:dashed}:host(:not([effective-disabled]):focus) .focused-line,:host(:not([effective-disabled])[focused]) .focused-line{transform:none;transition:transform .25s}:host(:not([effective-disabled]):focus) .label.float,:host(:not([effective-disabled])[focused]) .label.float{color:var(--sd-input-focused-color, #1467ba)}:host([inactive]) .input{pointer-events:none}:host([effective-disabled]:focus),:host([effective-disabled][focused]){box-shadow:0 0 0 1px #111}:host(:not([effective-disabled])[validationlevel]) .focused-line,:host(:not([effective-disabled]):invalid) .focused-line{transform:none;transition:transform .25s}:host([validationlevel=warn i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn i]) .label,:host([validationlevel=warn i]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest i]) .label,:host([validationlevel=suggest i]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error i]) .focused-line,:host(:not([validationlevel]):invalid) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error i]) .label,:host([validationlevel=error i]) .validation-message,:host(:not([validationlevel]):invalid) .label,:host(:not([validationlevel]):invalid) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}.validation-message-wrapper{min-height:var(--sd-input-validation-message-minheight, 0px);position:relative;font-size:0}.validation-message{position:relative;position:var(--sd-input-validation-message-minheight, absolute);left:0;right:0}.label.float{transform:translateY(-75%) scale(.75);width:133%}.label:not(.float){max-width:100%}.floated-label-placeholder{height:20px;width:100%}.label{position:absolute;top:0;left:0;line-height:24px;pointer-events:none;color:var(--sd-input-color, #767676);transition:transform .25s,width .25s;transform-origin:left top}.input-wrapper{position:relative;display:flex;flex-direction:row;align-items:center;background-color:var(--input-wrapper-background-color)}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-wrapper{flex-direction:column;align-items:baseline}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-container{width:100%}:host([extended-prefix]:not(:focus-within)) .input-container,:host([extended-prefix][effective-disabled]) .input-container{width:0px}.input-container{line-height:var(--sd-input-line-height, 24px);flex:1 1 auto}.input{width:100%;background:var(--sd-input-background, transparent);font-family:inherit;font-size:inherit;text-align:inherit;color:inherit;border:none;outline:none;resize:none;padding-left:0;padding-right:0}.input:-webkit-autofill{animation-name:onautofillstart}.input:not(:-webkit-autofill){animation-name:onautofillcancel}@keyframes onautofillstart{0%{outline:none}}@keyframes onautofillcancel{0%{outline:none}}.label,input.input{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:normal;white-space:var(--sd-input-validation-message-minheight, nowrap)}.input::placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;inset:0}.unfocused-line{border-bottom:1px solid var(--sd-input-underline-color, #959595)}.focused-line{border-bottom:2px solid var(--sd-input-focused-color, #1467ba);transform-origin:center center;transform:scale3d(0,1,1)}.prefix,.suffix{display:flex;flex-wrap:nowrap;max-width:100%}.prefix ::slotted(*),.suffix ::slotted(*){display:flex}";var xl=Object.defineProperty,ie=(t,e,i,a)=>{for(var s=void 0,r=t.length-1,o;r>=0;r--)(o=t[r])&&(s=o(e,i,s)||s);return s&&xl(e,i,s),s};const wl="sd-lit-input",va="delegatesFocus"in window.ShadowRoot.prototype;let _l=0;var Te;const ee=(Te=class extends We{constructor(){super(),this.rows=1,this.effectiveDisabled=!1,this.type="text",this.autocomplete="off";const t=_l++;this._validationMessageId=Te.ID+"_message_"+t,this._inputId=Te.ID+"_input_"+t,this.attachInternals&&!this.activeShadyDOM&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabIndex")||(this.tabIndex=0)}firstUpdated(t){super.firstUpdated(t),this.initAutocompleted(this.inputElement),this.updateInitialValue(),this.updateFormValidity(),this.hasAttribute("disabled")&&(this.disabled=!0),this.inputElement.oninput=e=>{this.autocompleted=e.inputType==="insertReplacementText"||!("data"in e),this.currentText=this.inputElement.value,this.fireValueChange(!0)},this.inputElement.onchange=()=>this.fireValueChange(),va||(this.inputElement.onfocus=()=>this.setAttribute("focused",""),this.inputElement.onblur=()=>this.removeAttribute("focused"),this.addEventListener("focus",e=>{e.target===this&&this.inputElement.focus()})),this.inputElement.addEventListener("keyup",()=>{this.updateFormValidity()}),this.addEventListener("keydown",e=>{e.key=="Enter"&&this._internals?.form?.requestSubmit()}),this._initialized=!0}initAutocompleted(t){const e=i=>{/^onautofillstart(-sd-lit-input-\d+|\s?)$/.test(i.animationName)?this.autocompleted=!0:/^onautofillcancel(-sd-lit-input-\d+|\s?)$/.test(i.animationName)&&(this.autocompleted=!1)};this.activeShadyDOM?(this._needsAutocompletedCheck=!0,this.activeShadyDOM.nativeMethods.addEventListener.call(t,"animationstart",e)):t.addEventListener("animationstart",e)}get activeShadyDOM(){const t=window.ShadyDOM;return t&&t.inUse?t:null}updateInitialValue(){typeof this.currentText<"u"?this.value=this.currentText:this.value=this.getAttribute("value"),this.value&&(this.currentText=this.inputElement.value),this._initialValue=this.value}get disabled(){return this.hasAttribute("disabled")}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled"),this._internals||(this.effectiveDisabled=t)}get inputElement(){return this.shadowRoot&&!this._inputElement&&(this._inputElement=this.shadowRoot.querySelector(".input")),this._inputElement}get value(){return this.inputElement&&this.inputElement.value}set value(t){this.currentText=t||"",this.inputElement&&(this.inputElement.value=this.currentText),this.setFormValue(this.currentText)}get selectionStart(){return this.inputElement?this.inputElement.selectionStart:0}focus(){this.inputElement?this.inputElement.focus():super.focus()}select(){this.inputElement&&this.inputElement.select()}setSelectionRange(t,e){this.updateComplete.then(()=>{this.inputElement&&this.inputElement.setSelectionRange(t,e)})}static get styles(){return[Gt`
|
|
1421
1425
|
${At(vl)}
|
|
1422
1426
|
`]}render(){let t;const e=this.validationMessage||this.inputElement?.validationMessage,i=e||this.validationLevel!=null;return this.rows===1?t=be`
|
|
1423
1427
|
<input
|
|
1424
1428
|
id=${this._inputId}
|
|
1425
1429
|
class="input"
|
|
1426
1430
|
.type=${this.type}
|
|
1427
|
-
placeholder=${
|
|
1428
|
-
name=${
|
|
1431
|
+
placeholder=${ge(this.placeholder||void 0)}
|
|
1432
|
+
name=${ge(this.name||void 0)}
|
|
1429
1433
|
aria-disabled=${this.effectiveDisabled}
|
|
1430
1434
|
autocomplete=${this.autocomplete}
|
|
1431
1435
|
?disabled=${this.inactive}
|
|
1432
1436
|
?readonly=${this.readonly||this.effectiveDisabled}
|
|
1433
1437
|
?required=${this.required}
|
|
1434
|
-
maxlength=${this.maxlength>0?this.maxlength:
|
|
1438
|
+
maxlength=${this.maxlength>0?this.maxlength:Te.DEFAULT_MAX_LENGTH}
|
|
1435
1439
|
aria-describedby=${this._validationMessageId}
|
|
1436
|
-
aria-invalid=${
|
|
1437
|
-
aria-label=${
|
|
1438
|
-
min=${
|
|
1439
|
-
max=${
|
|
1440
|
-
pattern=${
|
|
1440
|
+
aria-invalid=${ge(i)}
|
|
1441
|
+
aria-label=${ge(this.sdAriaLabel||void 0)}
|
|
1442
|
+
min=${ge(this.min||void 0)}
|
|
1443
|
+
max=${ge(this.max||void 0)}
|
|
1444
|
+
pattern=${ge(this.pattern||void 0)}
|
|
1441
1445
|
/>
|
|
1442
1446
|
`:t=be`
|
|
1443
1447
|
<textarea
|
|
1444
1448
|
id=${this._inputId}
|
|
1445
1449
|
class="input"
|
|
1446
|
-
placeholder=${
|
|
1447
|
-
name=${
|
|
1450
|
+
placeholder=${ge(this.placeholder||void 0)}
|
|
1451
|
+
name=${ge(this.name||void 0)}
|
|
1448
1452
|
aria-disabled=${this.effectiveDisabled}
|
|
1449
1453
|
autocomplete=${this.autocomplete}
|
|
1450
1454
|
?disabled=${this.inactive}
|
|
1451
1455
|
?readonly=${this.readonly||this.effectiveDisabled}
|
|
1452
1456
|
?required=${this.required}
|
|
1453
|
-
maxlength=${this.maxlength>0?this.maxlength:
|
|
1457
|
+
maxlength=${this.maxlength>0?this.maxlength:Te.DEFAULT_MAX_LENGTH}
|
|
1454
1458
|
rows=${this.rows}
|
|
1455
1459
|
aria-describedby=${this._validationMessageId}
|
|
1456
|
-
aria-invalid=${
|
|
1457
|
-
aria-label=${
|
|
1460
|
+
aria-invalid=${ge(i)}
|
|
1461
|
+
aria-label=${ge(this.sdAriaLabel||void 0)}
|
|
1458
1462
|
></textarea>
|
|
1459
1463
|
`,be`
|
|
1460
|
-
${this.label?be` <div class="floated-label-placeholder" aria-hidden="true"> </div> `:
|
|
1464
|
+
${this.label?be` <div class="floated-label-placeholder" aria-hidden="true"> </div> `:X}
|
|
1461
1465
|
<div class="input-wrapper">
|
|
1462
1466
|
<span class="prefix"><slot name="prefix"></slot></span>
|
|
1463
1467
|
<div class="input-container" style="position:${this.shouldFloat()?"static":"relative"};">
|
|
@@ -1486,7 +1490,7 @@ function updateMandatory(combobox: ComboBox) {
|
|
|
1486
1490
|
</sd-field-validation-message>
|
|
1487
1491
|
`}
|
|
1488
1492
|
</div>
|
|
1489
|
-
`}updated(t){super.updated(t),this._needsAutocompletedCheck&&!this.autocompleted&&setTimeout(()=>{try{this.autocompleted=this.autocompleted||!!this.shadowRoot.querySelector(":-webkit-autofill")}catch{}},0),this.rows>1&&((t.has("min")||t.has("max")||t.has("pattern"))&&console.warn("min, max & pattern attributes are not supported with multiple rows configuration."),this.type!="text"&&console.warn(`type: ${this.type} is not supported with multiple rows configuration.`))}update(t){if(super.update(t),t.has("validationMessage")&&(this.validationMessage?this._internals?.setValidity({customError:!0},this.validationMessage):this._internals?.setValidity(this.inputElement.validity,this.inputElement.validationMessage)),this._initialized&&t.has("rows"))throw Error("rows attribute cannot be changed after the input is attached to the DOM")}fireValueChange(t){this.dispatchEvent(new CustomEvent(`${t?"immediate-":""}value-change`,{detail:{value:this.value}})),this.setFormValue(this.value)}updateFormValidity(){if(this.validationMessage==null&&this.inputElement!=null){this._internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage);const t=this.shadowRoot.querySelector("sd-field-validation-message");this.requestUpdate("validationMessage",t==null?null:t.message)}}shouldFloat(){return this.alwaysFloatLabel||this.currentText||this.placeholder||this.autocompleted||this.type==="date"}setFormValue(t){this._internals?.setFormValue(t),this.updateFormValidity()}formResetCallback(){this.value=this._initialValue}formDisabledCallback(t){this.effectiveDisabled=t||this.hasAttribute("disabled")}formAssociatedCallback(t){this._needsAutocompletedCheck=!0}formStateRestoreCallback(t,e){typeof t=="string"&&(this.value=t)}},
|
|
1493
|
+
`}updated(t){super.updated(t),this._needsAutocompletedCheck&&!this.autocompleted&&setTimeout(()=>{try{this.autocompleted=this.autocompleted||!!this.shadowRoot.querySelector(":-webkit-autofill")}catch{}},0),this.rows>1&&((t.has("min")||t.has("max")||t.has("pattern"))&&console.warn("min, max & pattern attributes are not supported with multiple rows configuration."),this.type!="text"&&console.warn(`type: ${this.type} is not supported with multiple rows configuration.`))}update(t){if(super.update(t),t.has("validationMessage")&&(this.validationMessage?this._internals?.setValidity({customError:!0},this.validationMessage):this._internals?.setValidity(this.inputElement.validity,this.inputElement.validationMessage)),this._initialized&&t.has("rows"))throw Error("rows attribute cannot be changed after the input is attached to the DOM")}fireValueChange(t){this.dispatchEvent(new CustomEvent(`${t?"immediate-":""}value-change`,{detail:{value:this.value}})),this.setFormValue(this.value)}updateFormValidity(){if(this.validationMessage==null&&this.inputElement!=null){this._internals.setValidity(this.inputElement.validity,this.inputElement.validationMessage);const t=this.shadowRoot.querySelector("sd-field-validation-message");this.requestUpdate("validationMessage",t==null?null:t.message)}}shouldFloat(){return this.alwaysFloatLabel||this.currentText||this.placeholder||this.autocompleted||this.type==="date"}setFormValue(t){this._internals?.setFormValue(t),this.updateFormValidity()}formResetCallback(){this.value=this._initialValue}formDisabledCallback(t){this.effectiveDisabled=t||this.hasAttribute("disabled")}formAssociatedCallback(t){this._needsAutocompletedCheck=!0}formStateRestoreCallback(t,e){typeof t=="string"&&(this.value=t)}},Te.ID=wl,Te.DEFAULT_MAX_LENGTH=524288,Te.formAssociated=!0,Te.shadowRootOptions={...We.shadowRootOptions,delegatesFocus:va},Te);ie([P({type:String,reflect:!0})],ee.prototype,"label");ie([P({type:String,attribute:!0})],ee.prototype,"validationMessage");ie([P({type:String,attribute:!0})],ee.prototype,"validationIconSrc");ie([P({type:Ni,attribute:!0,reflect:!0})],ee.prototype,"validationLevel");ie([P({type:String,hasChanged(t,e){return e!=null&&e!=t}})],ee.prototype,"currentText");ie([P({type:Boolean,attribute:!0})],ee.prototype,"alwaysFloatLabel");ie([P({type:Boolean,attribute:!0})],ee.prototype,"autocompleted");ie([P({type:Number,attribute:!0})],ee.prototype,"rows");ie([P({type:Boolean,reflect:!0,attribute:"effective-disabled"})],ee.prototype,"effectiveDisabled");ie([P({type:Boolean,reflect:!0,attribute:"extended-prefix"})],ee.prototype,"extendedPrefix");ie([P({type:String,reflect:!0})],ee.prototype,"type");ie([P({type:String,reflect:!0})],ee.prototype,"placeholder");ie([P({type:String,reflect:!0})],ee.prototype,"sdAriaLabel");ie([P({type:Number,reflect:!0})],ee.prototype,"maxlength");ie([P({type:Boolean,reflect:!0})],ee.prototype,"readonly");ie([P({type:Boolean,reflect:!0})],ee.prototype,"required");ie([P({type:String,reflect:!0})],ee.prototype,"name");ie([P({type:Boolean,reflect:!0})],ee.prototype,"inactive");ie([P({type:String,attribute:!0})],ee.prototype,"autocomplete");ie([P({type:String,attribute:!0})],ee.prototype,"min");ie([P({type:String,attribute:!0})],ee.prototype,"max");ie([P({type:String,attribute:!0})],ee.prototype,"pattern");let hi=ee;customElements.get(hi.ID)||customElements.define(hi.ID,hi);const Ls={ATTRIBUTE:1,CHILD:2},ur=t=>(...e)=>({_$litDirective$:t,values:e});let hr=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,i,a){this._$Ct=e,this._$AM=i,this._$Ci=a}_$AS(e,i){return this.update(e,i)}update(e,i){return this.render(...i)}};class Ns extends hr{constructor(e){if(super(e),this.it=X,e.type!==Ls.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===X||e==null)return this._t=void 0,this.it=e;if(e===dt)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const i=[e];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}Ns.directiveName="unsafeHTML",Ns.resultType=1;const Sl=ur(Ns);const Cl=t=>t.strings===void 0;const Tt=(t,e)=>{const i=t._$AN;if(i===void 0)return!1;for(const a of i)a._$AO?.(e,!1),Tt(a,e);return!0},bi=t=>{let e,i;do{if((e=t._$AM)===void 0)break;i=e._$AN,i.delete(t),t=e}while(i?.size===0)},fr=t=>{for(let e;e=t._$AM;t=e){let i=e._$AN;if(i===void 0)e._$AN=i=new Set;else if(i.has(t))break;i.add(t),kl(e)}};function Al(t){this._$AN!==void 0?(bi(this),this._$AM=t,fr(this)):this._$AM=t}function El(t,e=!1,i=0){const a=this._$AH,s=this._$AN;if(s!==void 0&&s.size!==0)if(e)if(Array.isArray(a))for(let r=i;r<a.length;r++)Tt(a[r],!1),bi(a[r]);else a!=null&&(Tt(a,!1),bi(a));else Tt(this,t)}const kl=t=>{t.type==Ls.CHILD&&(t._$AP??=El,t._$AQ??=Al)};let Ml=class extends hr{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,i,a){super._$AT(e,i,a),fr(this),this.isConnected=e._$AU}_$AO(e,i=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),i&&(Tt(this,e),bi(this))}setValue(e){if(Cl(this._$Ct))this._$Ct._$AI(e,this);else{const i=[...this._$Ct._$AH];i[this._$Ci]=e,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}};const bs=t=>t?t.startsWith("url")?t:`url("${t}")`:null,pr=(t,e)=>{if(t){const i=new Image;i.addEventListener("load",e),i.src=t,i.complete&&(i.removeEventListener("load",e),window.queueMicrotask(()=>e()))}};class Ol{static showImage(e,i,a,s){let r;s||!(e instanceof HTMLImageElement)?r=o=>e.style.backgroundImage=bs(o):r=o=>e.src=o,r(a),pr(i,()=>{r(i)})}}class Il extends Ml{constructor(e){if(super(e),e.type!==Ls.ATTRIBUTE||e.name!=="src"&&e.name!=="style")throw new Error("The `placeholder` directive must be used in the `src` or `style` attributes")}update(e,[i,a]){return this.useCssBackground=e.name=="style",this.render(i,a)}render(e,i){this.loadingToken!=null&&(this.loadingToken.cancelled=!0);const a={cancelled:!1};return this.loadingToken=a,typeof e=="string"?this.preload(e,a):e?.then(s=>{this.preload(s,a)}),this.useCssBackground?bs(i):i}preload(e,i){e!=null&&!i.cancelled&&pr(e,()=>{i.cancelled||this.setValue(this.useCssBackground?bs(e):e)})}}const Rl=ur(Il),$l=':host{display:block;contain:strict;height:50px}:host([selected]){background-color:#d3e6fa}:host(:not([selected]):hover),:host(:not([selected])[focused]){background-color:#e7f1fa}@media (forced-colors: active){:host([selected]){outline:4px solid}:host(:not([selected]):hover){outline:4px dotted}:host(:not([selected])[focused]){outline:4px dashed}}:host([enable-line-clamp]) .labels>:only-child{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;white-space:normal;overflow-wrap:break-word}.container{display:flex;height:100%;box-sizing:border-box}.container .level-indicator{width:7px;height:100%}.container .level-indicator.level-0{background-color:#a0c3ef}.container .level-indicator.level-1{background-color:#e7c374}.container .level-indicator.level-2{background-color:#bfd596}.container .level-indicator.level-3{background-color:#fd998d}.container .level-indicator.level-4{background-color:#c6e8f5}.container .level-indicator.level-5{background-color:#fde3a4}.container .level-indicator.level-6{background-color:#dcbfe0}.side-content{display:flex;align-items:center;flex-grow:0}.labels{display:flex;flex-direction:column;justify-content:center;flex:1 1 0px;height:100%;line-height:normal;overflow:hidden;padding:var(--sd-list-item-label-content-padding, 0 8px)}.caption,.description{width:100%;font-family:var(--sd-list-item-font-family, "Segoe UI", "Lucida Sans", Arial, sans-serif);font-style:normal;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;-webkit-user-select:none;user-select:none;text-decoration:var(--sd-list-item-text-decoration, inherit)}.caption em,.description em{font-weight:bolder}.caption{font-size:var(--sd-list-item-caption-font-size, 16px);color:var(--sd-list-item-caption-text-color, #111);font-weight:var(--sd-list-item-caption-font-weight, normal)}.description{font-size:var(--sd-list-item-description-font-size, 13px);color:var(--sd-list-item-description-text-color, #767676);font-weight:var(--sd-list-item-description-font-weight, normal)}.description.with-icon{display:flex;align-items:center;gap:4px}.description.with-icon .description-icon{width:var(--sd-list-item-description-font-size, 13px);height:var(--sd-list-item-description-font-size, 13px);background-repeat:no-repeat;background-position:bottom;background-size:90%}.icon-wrapper{width:var(--sd-list-item-icon-wrapper-width, 45px);height:100%;display:flex;align-items:center;justify-content:center}.icon-wrapper .icon{min-height:var(--sd-list-item-icon-size, 24px);min-width:var(--sd-list-item-icon-size, 24px);background-repeat:no-repeat;background-position:center;background-size:cover}';var Ll=Object.defineProperty,fe=(t,e,i,a)=>{for(var s=void 0,r=t.length-1,o;r>=0;r--)(o=t[r])&&(s=o(e,i,s)||s);return s&&Ll(e,i,s),s},ot;const ue=(ot=class extends We{constructor(){super(...arguments),this.contentMode="text",this.role="option"}static get styles(){return[Gt`
|
|
1490
1494
|
${At($l)}
|
|
1491
1495
|
`]}render(){return be`
|
|
1492
1496
|
<div class="container">
|
|
@@ -1497,7 +1501,7 @@ function updateMandatory(combobox: ComboBox) {
|
|
|
1497
1501
|
</div>
|
|
1498
1502
|
<div class="labels">
|
|
1499
1503
|
${this.renderLabel("caption",this.caption,this.captionAttrTitle)}
|
|
1500
|
-
${this.renderLabel("description",this.description,this.descriptionAttrTitle)}
|
|
1504
|
+
${this.renderLabel("description",this.description,this.descriptionAttrTitle,this.descriptionIcon)}
|
|
1501
1505
|
</div>
|
|
1502
1506
|
<div class="side-content">
|
|
1503
1507
|
<slot name="right-content"></slot>
|
|
@@ -1506,37 +1510,38 @@ function updateMandatory(combobox: ComboBox) {
|
|
|
1506
1510
|
`}renderIcon(){return this.icon||this.iconPlaceholder?be`<div
|
|
1507
1511
|
class="icon-wrapper"
|
|
1508
1512
|
@pointerdown="${this.handleIconClick}"
|
|
1509
|
-
style="background-color:${
|
|
1513
|
+
style="background-color:${ge(this.iconBackgroundColor)};"
|
|
1510
1514
|
role="img"
|
|
1511
|
-
aria-label="${
|
|
1512
|
-
title="${
|
|
1515
|
+
aria-label="${ge(this.iconAttrAriaLabel)}"
|
|
1516
|
+
title="${ge(this.iconAttrTitle)}"
|
|
1513
1517
|
>
|
|
1514
1518
|
<div class="icon" style="background-image:${Rl(this.icon,this.iconPlaceholder)}"></div>
|
|
1515
|
-
</div> `:
|
|
1516
|
-
<div class="${t}" title="${
|
|
1519
|
+
</div> `:X}renderLabel(t,e,i,a){return e?be`
|
|
1520
|
+
<div class="${t} ${a?"with-icon":""}" title="${ge(i)}">
|
|
1521
|
+
${a?be` <div class="${t}-icon" style="background-image:url('${a}')" aria-hidden="true"></div> `:X}
|
|
1517
1522
|
${this.contentMode==="html"?Sl(e):e}
|
|
1518
1523
|
</div>
|
|
1519
|
-
`:
|
|
1520
|
-
${At(
|
|
1524
|
+
`:X}updated(t){super.updated(t),t.has("selected")&&this.setAttribute("aria-selected",String(this.selected))}get missingWidthForTexts(){const t=this.enableLineClamp;this.removeAttribute("enable-line-clamp");let e=0;const i=this.shadowRoot.querySelector(".caption");i&&(e+=i.scrollWidth-i.clientWidth);const a=this.shadowRoot.querySelector(".description");return a&&(e=Math.max(e,a.scrollWidth-a.clientWidth)),e>0&&e++,t&&this.setAttribute("enable-line-clamp",""),e}handleIconClick(t){!this.disabled&&!this.dispatchEvent(new PointerEvent("list-item-icon-click",t))&&t.preventDefault()}getLevelIndicators(){return this.level?Array(Number(this.level)).fill(null):[]}},ot.ID="sd-list-item",ot.ensureDefined=()=>{customElements.get(ot.ID)||customElements.define(ot.ID,ot)},ot);fe([P({type:String})],ue.prototype,"caption");fe([P({type:String})],ue.prototype,"description");fe([P({type:String})],ue.prototype,"descriptionIcon");fe([P({type:Boolean})],ue.prototype,"selected");fe([P({type:String})],ue.prototype,"icon");fe([P({type:String})],ue.prototype,"iconBackgroundColor");fe([P({type:String})],ue.prototype,"iconPlaceholder");fe([P({type:Number})],ue.prototype,"level");fe([P()],ue.prototype,"contentMode");fe([P({type:Boolean,reflect:!0,attribute:"enable-line-clamp"})],ue.prototype,"enableLineClamp");fe([P({converter:{fromAttribute:t=>t=="true",toAttribute:t=>t},reflect:!0,attribute:"aria-disabled"})],ue.prototype,"disabled");fe([P({type:String,attribute:"icon-attr-aria-label"})],ue.prototype,"iconAttrAriaLabel");fe([P({type:String,reflect:!0})],ue.prototype,"role");fe([P({type:String,attribute:"caption-attr-title"})],ue.prototype,"captionAttrTitle");fe([P({type:String,attribute:"description-attr-title"})],ue.prototype,"descriptionAttrTitle");fe([P({type:String,attribute:"icon-attr-title"})],ue.prototype,"iconAttrTitle");let yt=ue;const gr=(t,e)=>{const i=document.createElement(yt.ID);if(t){if(i.caption=t.caption,i.description=t.description,i.descriptionIcon=t.descriptionIcon,i.icon=t.icon,i.iconBackgroundColor=t.iconBackgroundColor,i.iconPlaceholder=t.iconPlaceholder,i.level=t.level,i.disabled=t.disabled,t.contentMode&&(i.contentMode=t.contentMode),t.leftContentGenerator){const a=t.leftContentGenerator(t,i);a&&(a.slot="left-content",i.appendChild(a))}if(t.rightContentGenerator){const a=t.rightContentGenerator(t,i);a&&(a.slot="right-content",i.appendChild(a))}}return i};yt.ensureDefined();class Pl{getOffsetForIndexAndAlignment(e,i,a,s,r,o){const d=Math.max(0,o*s),h=Math.min(d,e*s),u=Math.max(0,e*s-r+s);switch(i){case"start":return h;case"end":return u;case"center":{const n=Math.round(u+(h-u)/2);return n<Math.ceil(r/2)?0:n>d+Math.floor(r/2)?d:n}case"auto":default:return a>=u&&a<=h?a:a<u?u:h}}debounce(e){let i;return(...a)=>{i&&window.cancelAnimationFrame(i),i=window.requestAnimationFrame(()=>{e(...a),i=null})}}}const Bl=new Pl;class Dl{constructor(e=100,i=5){this.pageSize=e,this.preloadedItemsCount=i,this._finalSizeIsKnown=!1,this._itemCache=[],this._lastRequestedFirstIndex=0,this._lastRequestedLastIndex=0,this._lastLoadedIndex=0,this.handleListDataRequest=a=>{const{startIndex:s,stopIndex:r}=a.detail;this._lastRequestedFirstIndex=s,this._lastRequestedLastIndex=r,this._list.items=this._itemCache.slice(s,r+1),!this.finalSizeIsKnown&&this._lastLoadedIndex<r+this.preloadedItemsCount&&this.requestData()},this.itemCount=e}get currentPage(){return this.items.length==0&&this.finalSizeIsKnown?0:Math.floor((this.items.length-1)/this.pageSize)}get finalSizeIsKnown(){return this._finalSizeIsKnown}set finalSizeIsKnown(e){this._finalSizeIsKnown=e,e&&(this.itemCount=this._itemCache.length),this._list&&(this._list.finalSizeIsKnown=e)}get itemCount(){return this._itemCount}set itemCount(e){this._itemCount=e,this._list&&(this._list.itemCount=e)}get items(){return this._itemCache}set items(e){this._itemCache=e,this.onItemsChange()}addItems(e){this._itemCache=this._itemCache.concat(e),this.onItemsChange()}connectList(e){this._list&&this._list.removeEventListener("data-request",this.handleListDataRequest),this._list=e,e.itemCount=this.itemCount,e.addEventListener("data-request",this.handleListDataRequest),e.finalSizeIsKnown=this._finalSizeIsKnown}onItemsChange(){this._pendingDataRequest=!1,this._lastLoadedIndex=this._itemCache.length-1,this.finalSizeIsKnown?this.itemCount=this._itemCache.length:this._lastLoadedIndex>this.itemCount&&(this.itemCount=this._lastLoadedIndex),this._list&&(this._list.items=this._itemCache.slice(this._lastRequestedFirstIndex,this._lastRequestedLastIndex+1))}requestData(){if(!this._pendingDataRequest)if(this.onDataRequest)this._pendingDataRequest=!0,this.onDataRequest(this.currentPage+1),this._lastLoadedIndex+=this.pageSize-1,this._lastLoadedIndex>this.itemCount&&(this.itemCount=this._lastLoadedIndex);else throw Error("The final size is not yet known and the list would require item data from index "+this._lastRequestedFirstIndex+". to "+this._lastRequestedLastIndex+". which is not possible to load without a configured onDataRequest")}}const Tl=":host{display:block;position:relative;contain:layout}:host(:focus){outline:none}:host(:focus-visible) ::slotted([focused]){box-shadow:0 0 0 1px #1467ba inset}.container{width:100%}.container>::slotted(*){width:100%;position:absolute;box-sizing:border-box}.container>::slotted(:not([last])){border-bottom:1px solid #d9d9d9}";var zl=Object.defineProperty,jl=Object.getOwnPropertyDescriptor,tt=(t,e,i,a)=>{for(var s=a>1?void 0:a?jl(e,i):e,r=t.length-1,o;r>=0;r--)(o=t[r])&&(s=(a?o(e,i,s):o(s))||s);return a&&s&&zl(e,i,s),s},Lt=(t=>(t.TriggerOnly="trigger-only",t.Single="single",t.Multi="multi",t))(Lt||{});let Vl=0;var Ye;const Ke=(Ye=class extends We{constructor(){super(),this.items=[],this.selectionType="trigger-only",this.id=Ye.ID+"_"+Vl++,this.role="listbox",this.itemGenerator=gr,this._lastKnownScrollTop=0,this._lastRenderedScrollTop=0,this._itemsRenderData=[],this._elementCache=new Map,this._visibleItemsNum=0,this._selectedIndices=[],this._focusIndex=-1,this._lastKnownHeight=0,this.onScroll=()=>{this._lastKnownScrollTop=this.scrollTop;const t=this._lastRenderedScrollTop-this._lastKnownScrollTop;Math.abs(t)>=this.itemHeight&&(this._lastRenderedScrollTop=this._lastKnownScrollTop,this.requestUpdate())},this.handleKeyDown=t=>{let e=!0;switch(t.key){case"Down":case"ArrowDown":this.focusIndex=this.normalizeIndex(this.focusIndex+1);break;case"Up":case"ArrowUp":this.focusIndex=this.normalizeIndex(this.focusIndex-1);break;case"Enter":this.handleSelection(this.focusIndex,t.metaKey||t.ctrlKey);break;case"End":this.focusIndex=this.itemCount-1;break;case"PageDown":this.focusIndex=this.normalizeIndex(this.focusIndex+this._visibleItemsNum-1);break;case"Home":this.focusIndex=0;break;case"PageUp":this.focusIndex=this.normalizeIndex(this.focusIndex-this._visibleItemsNum+1);break;default:e=!1;break}e&&(t.preventDefault(),t.stopPropagation())},this._resizeObserver=new ResizeObserver(()=>{this._lastKnownHeight!==this.offsetHeight&&(this._lastKnownHeight=this.offsetHeight,this.requestUpdate())})}get focusTarget(){return this.hasAttribute("focus-target")}set focusTarget(t){this.toggleAttribute("focus-target",t)}get focusIndex(){return this._focusIndex}set focusIndex(t){if(t>=-1&&t<this.itemCount){const e=this._focusIndex;this._focusIndex=t,(t<=this._firstVisibleIndex||this._lastVisibleIndex<=t)&&this.scrollToItem(t),e!=t&&(t==-1&&this.removeAttribute("aria-activedescendant"),this.requestUpdate("focusIndex",e))}}get selectedIndices(){return this._selectedIndices}set selectedIndices(t){t?this._selectedIndices=t.map(e=>Number(e)):this._selectedIndices=[],this.requestUpdate("selectedIndices")}scrollToItem(t,e="auto"){this.scrollTop=Bl.getOffsetForIndexAndAlignment(this.normalizeIndex(t),e,this.scrollTop,this.itemHeight,this.height,this.itemCount),this._lastKnownScrollTop=this.scrollTop}getListItem(t){return!this.shadowRoot||t<this._firstVisibleIndex||this._lastVisibleIndex<t?null:this.querySelector(`[item-index="${t}"]`)}connectedCallback(){super.connectedCallback(),this._resizeObserver.observe(this),this.scrollTop!==this._lastKnownScrollTop&&(this.scrollTop=this._lastKnownScrollTop,this.requestUpdate())}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver.disconnect()}firstUpdated(t){super.firstUpdated(t),this.addEventListener("scroll",this.onScroll),this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleClick),this.addEventListener("mousedown",e=>{e.button==1&&e.preventDefault()}),this.addEventListener("auxclick",this.handleClick),this.addEventListener("focus",()=>{this.matches(":focus-visible")&&(this.focusIndex==-1?(this.selectedIndices&&(this.focusIndex=this.selectedIndices[0]),this.focusIndex==-1&&this.itemCount>0&&(this.focusIndex=0)):this.updateFocusedItemAttributes())}),this.addEventListener("blur",()=>{this.focusIndex!=-1&&this.updateFocusedItemAttributes()}),this.selectedIndices.length>0&&this.scrollToItem(this.selectedIndices[0],"center")}updateFocusedItemAttributes(){const t=this.getListItem(this.focusIndex);t&&(this.focusTarget||document.activeElement==this?(t.setAttribute("focused",""),this.setAttribute("aria-activedescendant",t.id)):(t.removeAttribute("focused"),this.removeAttribute("aria-activedescendant")))}static get styles(){return[Gt`
|
|
1525
|
+
${At(Tl)}
|
|
1521
1526
|
`]}render(){return this.updateItemsRenderData(),be`
|
|
1522
1527
|
<div class="container" style="height: ${this.itemCount*this.itemHeight}px">
|
|
1523
1528
|
<slot name="items"></slot>
|
|
1524
1529
|
</div>
|
|
1525
|
-
`}updated(t){if(super.updated(t),this._lastRenderedScrollTop=this._lastKnownScrollTop,this.updateItems(),(this._increaseWidthOnNextRenderIfNeeded||this._reachedMaxWidth)&&this._firstVisibleIndex<this._lastVisibleIndex)if(this.querySelector("[item-index]"))this.adjustWidthIfNeeded();else{const e=new MutationObserver(()=>{this.adjustWidthIfNeeded(),e.disconnect()});e.observe(this)}}adjustWidthIfNeeded(){this._increaseWidthOnNextRenderIfNeeded?(this._increaseWidthOnNextRenderIfNeeded=!1,window.requestAnimationFrame(()=>{const t=Number.parseInt(getComputedStyle(this).maxWidth)-this.offsetWidth;if(t==0)this._reachedMaxWidth=!0,this.enableLineClampOnItemsIfNeeded();else{this._reachedMaxWidth=!1;const e=[...this.querySelectorAll("[item-index]")].map(a=>{if(a instanceof yt){a.enableLineClamp=!1;const s=a.missingWidthForTexts;return s>t&&(a.enableLineClamp=!0),s}}),i=Math.max(...e);i>0&&(this.style.width=`${this.offsetWidth+i}px`)}})):this._reachedMaxWidth&&this.enableLineClampOnItemsIfNeeded()}enableLineClampOnItemsIfNeeded(){this.querySelectorAll("[item-index]").forEach(t=>{t instanceof yt&&(t.enableLineClamp=t.enableLineClamp||t.missingWidthForTexts>0)})}increaseWidthOnNextRenderIfNeeded(){this._increaseWidthOnNextRenderIfNeeded=!0}updateItems(){const t=[...this.querySelectorAll("[item-index]")],e=new Map,i=document.createDocumentFragment();for(const a of this._itemsRenderData){const s=this.renderItem(a);s.parentElement||i.appendChild(s),e.set(a.dataHash,s);const r=t.indexOf(s);r!==-1&&t.splice(r,1)}this.appendChild(i);for(const a of t)a instanceof yt&&(a.enableLineClamp=!1),this.removeChild(a);e.forEach((a,s)=>{this._elementCache.set(s,a)})}renderItem({index:t,top:e,dataHash:i,data:a}){let s;return a?this._elementCache.has(i)?(s=this._elementCache.get(i),this._elementCache.delete(i)):(s=this.itemGenerator(a,t),s.setAttribute("slot","items")):(s=document.createElement("div"),s.setAttribute("placeholder-item",""),s.setAttribute("slot","items")),Object.assign(s.style,{transform:`translateY(${e}px)`,height:`${this.itemHeight}px`}),s.setAttribute("item-index",t.toString()),s.setAttribute("aria-setsize",String(this.finalSizeIsKnown?this.itemCount:-1)),s.setAttribute("aria-posinset",String(t+1)),(!s.id||s.id.startsWith(this.id+"_item_"))&&(s.id=this.id+"_item_"+t),this.itemCount-1==t?s.setAttribute("last",""):s.removeAttribute("last"),this.updateSelectedAttribute(t,s),this.updateFocusedAttribute(t,s),s}updateFocusedAttribute(t,e){this.focusIndex==t&&(this.focusTarget||document.activeElement==this)?(e.setAttribute("focused",""),this.setAttribute("aria-activedescendant",e.id)):e.removeAttribute("focused")}updateSelectedAttribute(t,e){const i=this.selectedIndices.indexOf(t)!==-1;i?e.setAttribute("selected",""):e.removeAttribute("selected"),e.setAttribute("aria-selected",String(i))}updateItemsRenderData(){if(this._itemsRenderData=[],this._visibleItemsNum=Math.min(Math.ceil(this.height/this.itemHeight),this.itemCount),this._visibleItemsNum>0){this._firstVisibleIndex=this.normalizeIndex(Math.floor(this._lastKnownScrollTop/this.itemHeight)),this._lastVisibleIndex=this.normalizeIndex(this._firstVisibleIndex+this._visibleItemsNum);const t=this.normalizeIndex(this._firstVisibleIndex-2),e=this.normalizeIndex(this._lastVisibleIndex+2);this.requestData(t,e);for(let i=t;i<=e;i++){const a=i-t,s=this.items[a];let r;s?r=JSON.stringify(s):r=`placeholder-${a}`,this._itemsRenderData.push({index:i,top:this.itemHeight*i,physicalIndex:a,dataHash:r,data:s})}}else this._firstVisibleIndex=0,this._lastVisibleIndex=0}normalizeIndex(t){return Math.max(0,Math.min(t,this.itemCount-1))}get height(){return this.offsetHeight}requestData(t,e){!Number.isNaN(t)&&!Number.isNaN(e)&&this.dispatchEvent(new CustomEvent("data-request",{detail:{startIndex:t,stopIndex:e}}))}handleSelection(t,e){if(t<0||this.itemCount<=t)return;const i=this.getListItem(t);if(i.getAttribute("aria-disabled")=="true"||i.hasAttribute("disabled"))return;let a=!0;if(this.selectionType!=="trigger-only"){const s=this.selectedIndices.indexOf(t);a=s==-1,a?this.selectionType==="single"?this.selectedIndices=[t]:this.selectedIndices.push(t):this.selectedIndices.splice(s,1),this.requestUpdate("selectedIndices")}this.focusIndex=t,this.dispatchSelectionEvent(t,a,e)}dispatchSelectionEvent(t,e,i){this.dispatchEvent(new CustomEvent("selection",{detail:{index:t,selected:e,hasModifier:i}}))}handleClick(t){const e=t.composedPath().find(i=>i.hasAttribute&&i.hasAttribute("item-index"));if(e){const i=parseInt(e.getAttribute("item-index"));if(Number.isInteger(i)){if(t.button==0||t.button==1){const a=t.type=="auxclick"&&t.button==1||t.metaKey||t.ctrlKey;this.handleSelection(i,a)}this.focusIndex=i}}}},Ye.ID="sd-virtual-list",Ye.ensureDefined=()=>{yt.ensureDefined(),customElements.get(Ye.ID)||customElements.define(Ye.ID,Ye)},Ye);tt([B({type:Number,attribute:"item-height",reflect:!0})],Ke.prototype,"itemHeight",2);tt([B({type:Number})],Ke.prototype,"itemCount",2);tt([B({type:Array,attribute:!1})],Ke.prototype,"items",2);tt([B({type:String,attribute:"selection-type",reflect:!0,noAccessor:!0})],Ke.prototype,"selectionType",2);tt([B({type:String,attribute:!0,reflect:!0})],Ke.prototype,"id",2);tt([B({type:String,reflect:!0})],Ke.prototype,"role",2);tt([B({type:Number,attribute:"focus-index",reflect:!0})],Ke.prototype,"focusIndex",1);tt([B({type:Array,attribute:!1})],Ke.prototype,"selectedIndices",1);let ys=Ke;ys.ensureDefined();const Fl=":host{display:inline-flex;position:relative;cursor:text;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;font-size:16px;color:#111;contain:layout style;flex-direction:column}:host([hidden]),:host([type=hidden]){display:none!important}:host([effective-disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([effective-disabled]) .unfocused-line,:host([effective-disabled]) .focused-line{border-bottom-style:dashed}:host(:not([effective-disabled]):focus) .focused-line,:host(:not([effective-disabled])[focused]) .focused-line{transform:none;transition:transform .25s}:host(:not([effective-disabled]):focus) .label.float,:host(:not([effective-disabled])[focused]) .label.float{color:var(--sd-input-focused-color, #1467ba)}:host([inactive]) .input{pointer-events:none}:host([effective-disabled]:focus),:host([effective-disabled][focused]){box-shadow:0 0 0 1px #111}:host(:not([effective-disabled])[validationlevel]) .focused-line,:host(:not([effective-disabled]):invalid) .focused-line{transform:none;transition:transform .25s}:host([validationlevel=warn i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn i]) .label,:host([validationlevel=warn i]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest i]) .label,:host([validationlevel=suggest i]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error i]) .focused-line,:host(:not([validationlevel]):invalid) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error i]) .label,:host([validationlevel=error i]) .validation-message,:host(:not([validationlevel]):invalid) .label,:host(:not([validationlevel]):invalid) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}.validation-message-wrapper{min-height:var(--sd-input-validation-message-minheight, 0px);position:relative;font-size:0}.validation-message{position:relative;position:var(--sd-input-validation-message-minheight, absolute);left:0;right:0}.label.float{transform:translateY(-75%) scale(.75);width:133%}.label:not(.float){max-width:100%}.floated-label-placeholder{height:20px;width:100%}.label{position:absolute;top:0;left:0;line-height:24px;pointer-events:none;color:var(--sd-input-color, #767676);transition:transform .25s,width .25s;transform-origin:left top}.input-wrapper{position:relative;display:flex;flex-direction:row;align-items:center;background-color:var(--input-wrapper-background-color)}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-wrapper{flex-direction:column;align-items:baseline}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-container{width:100%}:host([extended-prefix]:not(:focus-within)) .input-container,:host([extended-prefix][effective-disabled]) .input-container{width:0px}.input-container{line-height:var(--sd-input-line-height, 24px);flex:1 1 auto}.input{width:100%;background:var(--sd-input-background, transparent);font-family:inherit;font-size:inherit;text-align:inherit;color:inherit;border:none;outline:none;resize:none;padding-left:0;padding-right:0}.input:-webkit-autofill{animation-name:onautofillstart}.input:not(:-webkit-autofill){animation-name:onautofillcancel}@keyframes onautofillstart{0%{outline:none}}@keyframes onautofillcancel{0%{outline:none}}.label,input.input{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:normal;white-space:var(--sd-input-validation-message-minheight, nowrap)}.input::placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;inset:0}.unfocused-line{border-bottom:1px solid var(--sd-input-underline-color, #959595)}.focused-line{border-bottom:2px solid var(--sd-input-focused-color, #1467ba);transform-origin:center center;transform:scale3d(0,1,1)}.prefix,.suffix{display:flex;flex-wrap:nowrap;max-width:100%}.prefix ::slotted(*),.suffix ::slotted(*){display:flex}:host(:focus){outline:none}.suffix ::slotted(.clear-button),.suffix ::slotted(.toggle-button){cursor:pointer;width:16px;height:32px;padding:0 8px;margin-top:-8px;margin-bottom:-8px;fill:#666;outline:none;flex-shrink:0}.suffix ::slotted(.toggle-button){transition:transform .2s}:host([opened]) .suffix ::slotted(.toggle-button){transform:rotate(180deg)}:host([disabled]) .suffix ::slotted(.clear-button),:host([disabled]) .suffix ::slotted(.toggle-button){display:none!important}.prefix ::slotted(.icon-wrapper){width:32px;height:32px;padding-right:4px;margin-top:-8px;margin-bottom:-8px;display:flex;align-items:center;justify-content:center;flex-shrink:0}:host(:not([has-value])) .suffix ::slotted(.clear-button),:host([null-setting-disallowed]) .suffix ::slotted(.clear-button){display:none!important}:host(:not([allow-custom-value]):not([trigger-only])) .input{caret-color:transparent}:host(:not([allow-custom-value]):not([disabled])) .input{cursor:pointer}#default-slot{display:none}",Hl=`<svg xmlns="http://www.w3.org/2000/svg" class="toggle-button" slot="suffix" viewBox="0 0 16 16">\r
|
|
1530
|
+
`}updated(t){if(super.updated(t),this._lastRenderedScrollTop=this._lastKnownScrollTop,this.updateItems(),(this._increaseWidthOnNextRenderIfNeeded||this._reachedMaxWidth)&&this._firstVisibleIndex<this._lastVisibleIndex)if(this.querySelector("[item-index]"))this.adjustWidthIfNeeded();else{const e=new MutationObserver(()=>{this.adjustWidthIfNeeded(),e.disconnect()});e.observe(this)}}adjustWidthIfNeeded(){this._increaseWidthOnNextRenderIfNeeded?(this._increaseWidthOnNextRenderIfNeeded=!1,window.requestAnimationFrame(()=>{const t=Number.parseInt(getComputedStyle(this).maxWidth)-this.offsetWidth;if(t==0)this._reachedMaxWidth=!0,this.enableLineClampOnItemsIfNeeded();else{this._reachedMaxWidth=!1;const e=[...this.querySelectorAll("[item-index]")].map(a=>{if(a instanceof yt){a.enableLineClamp=!1;const s=a.missingWidthForTexts;return s>t&&(a.enableLineClamp=!0),s}}),i=Math.max(...e);i>0&&(this.style.width=`${this.offsetWidth+i}px`)}})):this._reachedMaxWidth&&this.enableLineClampOnItemsIfNeeded()}enableLineClampOnItemsIfNeeded(){this.querySelectorAll("[item-index]").forEach(t=>{t instanceof yt&&(t.enableLineClamp=t.enableLineClamp||t.missingWidthForTexts>0)})}increaseWidthOnNextRenderIfNeeded(){this._increaseWidthOnNextRenderIfNeeded=!0}updateItems(){const t=[...this.querySelectorAll("[item-index]")],e=new Map,i=document.createDocumentFragment();for(const a of this._itemsRenderData){const s=this.renderItem(a);s.parentElement||i.appendChild(s),e.set(a.dataHash,s);const r=t.indexOf(s);r!==-1&&t.splice(r,1)}this.appendChild(i);for(const a of t)a instanceof yt&&(a.enableLineClamp=!1),this.removeChild(a);e.forEach((a,s)=>{this._elementCache.set(s,a)})}renderItem({index:t,top:e,dataHash:i,data:a}){let s;return a?this._elementCache.has(i)?(s=this._elementCache.get(i),this._elementCache.delete(i)):(s=this.itemGenerator(a,t),s.setAttribute("slot","items")):(s=document.createElement("div"),s.setAttribute("placeholder-item",""),s.setAttribute("slot","items")),Object.assign(s.style,{transform:`translateY(${e}px)`,height:`${this.itemHeight}px`}),s.setAttribute("item-index",t.toString()),s.setAttribute("aria-setsize",String(this.finalSizeIsKnown?this.itemCount:-1)),s.setAttribute("aria-posinset",String(t+1)),(!s.id||s.id.startsWith(this.id+"_item_"))&&(s.id=this.id+"_item_"+t),this.itemCount-1==t?s.setAttribute("last",""):s.removeAttribute("last"),this.updateSelectedAttribute(t,s),this.updateFocusedAttribute(t,s),s}updateFocusedAttribute(t,e){this.focusIndex==t&&(this.focusTarget||document.activeElement==this)?(e.setAttribute("focused",""),this.setAttribute("aria-activedescendant",e.id)):e.removeAttribute("focused")}updateSelectedAttribute(t,e){const i=this.selectedIndices.indexOf(t)!==-1;i?e.setAttribute("selected",""):e.removeAttribute("selected"),e.setAttribute("aria-selected",String(i))}updateItemsRenderData(){if(this._itemsRenderData=[],this._visibleItemsNum=Math.min(Math.ceil(this.height/this.itemHeight),this.itemCount),this._visibleItemsNum>0){this._firstVisibleIndex=this.normalizeIndex(Math.floor(this._lastKnownScrollTop/this.itemHeight)),this._lastVisibleIndex=this.normalizeIndex(this._firstVisibleIndex+this._visibleItemsNum);const t=this.normalizeIndex(this._firstVisibleIndex-2),e=this.normalizeIndex(this._lastVisibleIndex+2);this.requestData(t,e);for(let i=t;i<=e;i++){const a=i-t,s=this.items[a];let r;s?r=JSON.stringify(s):r=`placeholder-${a}`,this._itemsRenderData.push({index:i,top:this.itemHeight*i,physicalIndex:a,dataHash:r,data:s})}}else this._firstVisibleIndex=0,this._lastVisibleIndex=0}normalizeIndex(t){return Math.max(0,Math.min(t,this.itemCount-1))}get height(){return this.offsetHeight}requestData(t,e){!Number.isNaN(t)&&!Number.isNaN(e)&&this.dispatchEvent(new CustomEvent("data-request",{detail:{startIndex:t,stopIndex:e}}))}handleSelection(t,e){if(t<0||this.itemCount<=t)return;const i=this.getListItem(t);if(i.getAttribute("aria-disabled")=="true"||i.hasAttribute("disabled"))return;let a=!0;if(this.selectionType!=="trigger-only"){const s=this.selectedIndices.indexOf(t);a=s==-1,a?this.selectionType==="single"?this.selectedIndices=[t]:this.selectedIndices.push(t):this.selectedIndices.splice(s,1),this.requestUpdate("selectedIndices")}this.focusIndex=t,this.dispatchSelectionEvent(t,a,e)}dispatchSelectionEvent(t,e,i){this.dispatchEvent(new CustomEvent("selection",{detail:{index:t,selected:e,hasModifier:i}}))}handleClick(t){const e=t.composedPath().find(i=>i.hasAttribute&&i.hasAttribute("item-index"));if(e){const i=parseInt(e.getAttribute("item-index"));if(Number.isInteger(i)){if(t.button==0||t.button==1){const a=t.type=="auxclick"&&t.button==1||t.metaKey||t.ctrlKey;this.handleSelection(i,a)}this.focusIndex=i}}}},Ye.ID="sd-virtual-list",Ye.ensureDefined=()=>{yt.ensureDefined(),customElements.get(Ye.ID)||customElements.define(Ye.ID,Ye)},Ye);tt([P({type:Number,attribute:"item-height",reflect:!0})],Ke.prototype,"itemHeight",2);tt([P({type:Number})],Ke.prototype,"itemCount",2);tt([P({type:Array,attribute:!1})],Ke.prototype,"items",2);tt([P({type:String,attribute:"selection-type",reflect:!0,noAccessor:!0})],Ke.prototype,"selectionType",2);tt([P({type:String,attribute:!0,reflect:!0})],Ke.prototype,"id",2);tt([P({type:String,reflect:!0})],Ke.prototype,"role",2);tt([P({type:Number,attribute:"focus-index",reflect:!0})],Ke.prototype,"focusIndex",1);tt([P({type:Array,attribute:!1})],Ke.prototype,"selectedIndices",1);let ys=Ke;ys.ensureDefined();const Fl=":host{display:inline-flex;position:relative;cursor:text;font-family:Segoe UI,Lucida Sans,Arial,sans-serif;font-size:16px;color:#111;contain:layout style;flex-direction:column}:host([hidden]),:host([type=hidden]){display:none!important}:host([effective-disabled]){opacity:.6;cursor:default;filter:grayscale(100%)}:host([effective-disabled]) .unfocused-line,:host([effective-disabled]) .focused-line{border-bottom-style:dashed}:host(:not([effective-disabled]):focus) .focused-line,:host(:not([effective-disabled])[focused]) .focused-line{transform:none;transition:transform .25s}:host(:not([effective-disabled]):focus) .label.float,:host(:not([effective-disabled])[focused]) .label.float{color:var(--sd-input-focused-color, #1467ba)}:host([inactive]) .input{pointer-events:none}:host([effective-disabled]:focus),:host([effective-disabled][focused]){box-shadow:0 0 0 1px #111}:host(:not([effective-disabled])[validationlevel]) .focused-line,:host(:not([effective-disabled]):invalid) .focused-line{transform:none;transition:transform .25s}:host([validationlevel=warn i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #555555)}:host([validationlevel=warn i]) .label,:host([validationlevel=warn i]) .validation-message{color:var(--sd-input-validation-color, #555555)!important}:host([validationlevel=suggest i]) .focused-line{border-bottom-color:var(--sd-input-validation-color, #bf8800)}:host([validationlevel=suggest i]) .label,:host([validationlevel=suggest i]) .validation-message{color:var(--sd-input-validation-color, #bf8800)!important}:host([validationlevel=error i]) .focused-line,:host(:not([validationlevel]):invalid) .focused-line{border-bottom-color:var(--sd-input-validation-color, #cc0017)}:host([validationlevel=error i]) .label,:host([validationlevel=error i]) .validation-message,:host(:not([validationlevel]):invalid) .label,:host(:not([validationlevel]):invalid) .validation-message{color:var(--sd-input-validation-color, #cc0017)!important}.validation-message-wrapper{min-height:var(--sd-input-validation-message-minheight, 0px);position:relative;font-size:0}.validation-message{position:relative;position:var(--sd-input-validation-message-minheight, absolute);left:0;right:0}.label.float{transform:translateY(-75%) scale(.75);width:133%}.label:not(.float){max-width:100%}.floated-label-placeholder{height:20px;width:100%}.label{position:absolute;top:0;left:0;line-height:24px;pointer-events:none;color:var(--sd-input-color, #767676);transition:transform .25s,width .25s;transform-origin:left top}.input-wrapper{position:relative;display:flex;flex-direction:row;align-items:center;background-color:var(--input-wrapper-background-color)}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-wrapper{flex-direction:column;align-items:baseline}:host([extended-prefix]:focus-within:not([effective-disabled])) .input-container{width:100%}:host([extended-prefix]:not(:focus-within)) .input-container,:host([extended-prefix][effective-disabled]) .input-container{width:0px}.input-container{line-height:var(--sd-input-line-height, 24px);flex:1 1 auto}.input{width:100%;background:var(--sd-input-background, transparent);font-family:inherit;font-size:inherit;text-align:inherit;color:inherit;border:none;outline:none;resize:none;padding-left:0;padding-right:0}.input:-webkit-autofill{animation-name:onautofillstart}.input:not(:-webkit-autofill){animation-name:onautofillcancel}@keyframes onautofillstart{0%{outline:none}}@keyframes onautofillcancel{0%{outline:none}}.label,input.input{text-overflow:ellipsis;overflow-x:hidden;white-space:nowrap}.validation-message{text-overflow:ellipsis;overflow-x:hidden;white-space:normal;white-space:var(--sd-input-validation-message-minheight, nowrap)}.input::placeholder{color:var(--sd-input-color, #767676)}.underline{height:2px;width:100%;position:relative}.unfocused-line,.focused-line{position:absolute;inset:0}.unfocused-line{border-bottom:1px solid var(--sd-input-underline-color, #959595)}.focused-line{border-bottom:2px solid var(--sd-input-focused-color, #1467ba);transform-origin:center center;transform:scale3d(0,1,1)}.prefix,.suffix{display:flex;flex-wrap:nowrap;max-width:100%}.prefix ::slotted(*),.suffix ::slotted(*){display:flex}:host(:focus){outline:none}.suffix ::slotted(.clear-button),.suffix ::slotted(.toggle-button){cursor:pointer;width:16px;height:32px;padding:0 8px;margin-top:-8px;margin-bottom:-8px;fill:#666;outline:none;flex-shrink:0}.suffix ::slotted(.toggle-button){transition:transform .2s}:host([opened]) .suffix ::slotted(.toggle-button){transform:rotate(180deg)}:host([disabled]) .suffix ::slotted(.clear-button),:host([disabled]) .suffix ::slotted(.toggle-button){display:none!important}.prefix ::slotted(.icon-wrapper){width:32px;height:32px;padding-right:4px;margin-top:-8px;margin-bottom:-8px;display:flex;align-items:center;justify-content:center;flex-shrink:0}:host(:not([has-value])) .suffix ::slotted(.clear-button),:host([null-setting-disallowed]) .suffix ::slotted(.clear-button){display:none!important}:host(:not([allow-custom-value]):not([trigger-only])) .input{caret-color:transparent}:host(:not([allow-custom-value]):not([disabled])) .input{cursor:pointer}#default-slot{display:none}",Hl=`<svg xmlns="http://www.w3.org/2000/svg" class="toggle-button" slot="suffix" viewBox="0 0 16 16">\r
|
|
1526
1531
|
<path d="M13 4v2l-5 5-5-5v-2l5 5z"/>\r
|
|
1527
1532
|
</svg>\r
|
|
1528
1533
|
`,ql=`<svg xmlns="http://www.w3.org/2000/svg" class="clear-button" slot="suffix" viewBox="0 0 16 16">\r
|
|
1529
1534
|
<path d="M12.96 4.46l-1.42-1.42-3.54 3.55-3.54-3.55-1.42 1.42 3.55 3.54-3.55 3.54 1.42 1.42 3.54-3.55 3.54 3.55 1.42-1.42-3.55-3.54 3.55-3.54z"/>\r
|
|
1530
1535
|
</svg>\r
|
|
1531
|
-
`;var Ul=Object.defineProperty,Je=(t,e,i,a)=>{for(var s=void 0,r=t.length-1,o;r>=0;r--)(o=t[r])&&(s=o(e,i,s)||s);return s&&Ul(e,i,s),s};const Wl="sd-combo-box";function xa(t,e){let i;return function(...a){i!=null&&clearTimeout(i),i=window.setTimeout(()=>t(...a),e)}}let Gl=0;var
|
|
1536
|
+
`;var Ul=Object.defineProperty,Je=(t,e,i,a)=>{for(var s=void 0,r=t.length-1,o;r>=0;r--)(o=t[r])&&(s=o(e,i,s)||s);return s&&Ul(e,i,s),s};const Wl="sd-combo-box";function xa(t,e){let i;return function(...a){i!=null&&clearTimeout(i),i=window.setTimeout(()=>t(...a),e)}}let Gl=0;var Ne;const Ve=(Ne=class extends hi{constructor(){super(),this.opened=!1,this.itemHeight=50,this.displayValuePath="caption",this.id=Ne.ID+"_"+Gl++,this.inMemoryFilter=(e,i)=>{if(!e)return!0;const a=e.toLowerCase();return!!(typeof i.caption=="string"&&i.caption.toLowerCase().includes(a)||typeof i.description=="string"&&i.description.toLowerCase().includes(a))},this.minimumOverlayWidth=250,this._itemGenerator=gr,this._itemCache=[],this.debouncedFilterItemsInMemory=xa(this.filterItemsInMemory.bind(this),200),this.handleSelection=e=>{const i=this._dataProvider.items[e.detail.index];e.detail.selected||(this._list.selectedIndices=[e.detail.index]),this.comboBoxValue={index:this._itemCache.indexOf(i),item:i},this.dispatchSelectionChangeEvent(),this.focus(),this.opened=!1},this.handleWindowPointerDown=e=>{!(e.target instanceof Node&&this.contains(e.target))&&this.opened&&e.composedPath().indexOf(this._list)===-1&&(this.triggerOnly&&(this.value=null),this.opened=!1)},this.handleKeyDown=e=>{switch(e.key){case"Down":case"ArrowDown":{e.preventDefault(),this.navigateInList(1);break}case"Up":case"ArrowUp":{e.preventDefault(),this.navigateInList(-1);break}case"Enter":{this.opened&&(e.preventDefault(),e.stopPropagation(),this.opened=!1);break}case"Escape":{this.opened&&(e.preventDefault(),e.stopPropagation(),this._list.selectedIndices.indexOf(this._list.focusIndex)>-1&&this._dataProvider.items.length>this._list.focusIndex?this.opened=!1:(this.clearFilter(),this.updateInputValue(null),this.updateFocusAndSelectedIndexFromValue(),this._list.selectedIndices.includes(this._list.focusIndex)||this._list.selectedIndices.push(this._list.focusIndex)));break}case"Tab":{this.opened&&(this.triggerOnly&&(this.value=null),this.opened=!1);break}}},this.debouncedRequestData=xa(this.requestData.bind(this),250),this._dataProvider=new Dl,this._dataProvider.finalSizeIsKnown=!0}get clearFilterOnLazyLoadedSelection(){return this.triggerOnly}set clearFilterOnLazyLoadedSelection(e){console.warn("Using clearFilterOnLazyLoadedSelection setting on a combo-box is deprecated. Use triggerOnly instead."),this.triggerOnly=e}get itemGenerator(){return this._itemGenerator}set itemGenerator(e){this._itemGenerator=e,this._list&&(this._list.itemGenerator=this._itemGenerator)}get items(){return this._itemCache}set items(e){this._itemCache=e,this.isLazyLoadConfigured&&(this._dataProvider.items=e,this._lastRequestedPage=null),this.value&&!this.comboBoxValue&&this.updateComboBoxValueFromValue(),this.filterItemsInMemory(),this.opened&&this._popper&&this._popper.update()}get finalSizeIsKnown(){return this._dataProvider.finalSizeIsKnown}set finalSizeIsKnown(e){this._dataProvider.finalSizeIsKnown=e}configureLazyLoad(e){if(!e)throw new Error("It is not possible to configure lazy load without a given onDataRequest calback.");this._dataProvider.finalSizeIsKnown=!1,this._onDataRequest=e,this._dataProvider.onDataRequest=i=>{this.requestData(i,!1)}}get comboBoxValue(){return this._comboBoxValue}set comboBoxValue(e){this._comboBoxValue=e,this.updateInputValue(null),this.updateHasValue()}get selectedIndex(){return this.isCustomValue(this.comboBoxValue)||!this.comboBoxValue?-1:this.comboBoxValue.index}get displayValue(){return this.value}open(){this.opened=!0}static get styles(){return[Gt`
|
|
1532
1537
|
${At(Fl)}
|
|
1533
1538
|
`]}disconnectedCallback(){super.disconnectedCallback(),this._popper&&(this._popper.destroy(),this._popper=null)}render(){return be`
|
|
1534
1539
|
${super.render()}
|
|
1535
1540
|
<slot @slotchange=${this.onDefaultSlotChange} id="default-slot"></slot>
|
|
1536
1541
|
`}attributeChangedCallback(e,i,a){if(super.attributeChangedCallback(e,i,a),i!==a)switch(e){case"opened":{this.handleOpenedStateChange();break}case"item-height":{this._list&&(this._list.itemHeight=this.itemHeight);break}case"id":{this.updateListId();break}}}firstUpdated(e){super.firstUpdated(e),this.value&&!this.comboBoxValue&&this.updateComboBoxValueFromValue(),window.requestAnimationFrame(()=>{this.initClearButtton(),this.initToggleButtton(),this.updateHasValue(),this.addEventListener("click",()=>{this.disabled||(this.opened=!this.opened)}),this.addEventListener("keydown",i=>{this.disabled||this.handleKeyDown(i)})}),this.inputElement.setAttribute("role","combobox"),this.inputElement.setAttribute("aria-autocomplete","list")}updateComboBoxValueFromValue(){if(this.value){const e=this._itemCache.findIndex(i=>(i[this.displayValuePath]??"")===this.value);e>-1?this._comboBoxValue={index:e,item:this._itemCache[e]}:this.allowCustomValue?this._comboBoxValue=this.value:this._comboBoxValue=null,this.updateHasValue(),this.updateIconFromCurrentValue()}}updated(e){super.updated(e),e.has("showIcon")&&(this.showIcon?this._icon==null&&this.initIconWrapper():this._icon!=null&&(this._icon.remove(),this._icon=null)),e.has("currentText")&&this.updateHasValue(),e.has("triggerOnly")&&this._list&&(this._list.selectionType=this.triggerOnly?Lt.TriggerOnly:Lt.Single)}initIconWrapper(){this._icon=document.createElement("div"),this._icon.className="icon-wrapper",this._icon.role="img";const e=document.createElement("div");e.style.backgroundRepeat="no-repeat",e.style.backgroundPosition="center",e.style.backgroundSize="cover",e.style.height="24px",e.style.width="24px",this._icon.appendChild(e),this._icon.slot="prefix",this.appendChild(this._icon),this.updateIconFromCurrentValue()}updateIconFromCurrentValue(){this.isCustomValue(this.comboBoxValue)?this.updateIcon(null):this.updateIcon(this.comboBoxValue?.item)}updateIcon(e){if(this._icon)if(e&&(e.icon||e.iconPlaceholder)){const i=e;i.attributes==null?(this._icon.title="",this._icon.ariaLabel=""):(this._icon.title=i.attributes["icon-attr-title"]??"",this._icon.ariaLabel=i.attributes["icon-attr-aria-label"]??""),this._icon.style.backgroundColor=i.iconBackgroundColor,this._icon.style.display="",Ol.showImage(this._icon.querySelector("div"),e.icon,e.iconPlaceholder)}else this._icon&&(this._icon.style.display="none")}updateHasValue(){this.currentText||this.comboBoxValue!=null&&this.comboBoxValue!=""?(this.setAttribute("has-value",""),this._clearButton&&(this._clearButton.style.display="")):this.removeAttribute("has-value")}shouldFloat(){return super.shouldFloat()||this.comboBoxValue!=null&&this.comboBoxValue!=""}initClearButtton(){const e=document.createElement("template");e.innerHTML=ql,this._clearButton=e.content.firstChild,this.appendChild(this._clearButton),this._clearButton.addEventListener("click",i=>{i.preventDefault(),i.stopPropagation(),this.opened=!1,this.clearValue()})}initToggleButtton(){const e=document.createElement("template");e.innerHTML=Hl,this._toggleButton=e.content.firstChild,this.appendChild(this._toggleButton),this._toggleButton.addEventListener("click",i=>{i.preventDefault(),i.stopPropagation(),this.opened=!this.opened,this.select()})}filterItemsInMemory(){if(this.isLazyLoadConfigured)return;let e=!1;if(this.filterText&&(this.filterProperty?(this._dataProvider.items=this._itemCache.filter(i=>i[this.filterProperty]&&String(i[this.filterProperty]).indexOf(this.filterText)>-1),e=!0):this.inMemoryFilter&&(this._dataProvider.items=this._itemCache.filter(i=>this.inMemoryFilter(this.filterText,i)),e=!0)),!e)this._dataProvider.items=this._itemCache,this._list&&this.updateFocusAndSelectedIndexFromValue();else if(this._list)if(this.comboBoxValue&&!this.isCustomValue(this.comboBoxValue)){let i=this._dataProvider.items.indexOf(this.comboBoxValue.item);if(i==-1){const a=this.comboBoxValue.item.id;a!=null&&(i=this._dataProvider.items.findIndex(s=>s.id==a))}this._list.focusIndex=i,this._list.selectedIndices=i==-1?[]:[i]}else this._list.focusIndex=null;this.opened&&this._popper&&this._popper.update()}ensureListAndPopperInitialized(){if(this._list||(this._list=document.createElement(ys.ID),this.updateListId(),this._list.classList.add("combo-box-dropdown"),this._list.itemHeight=this.itemHeight,this._list.itemGenerator=this.itemGenerator,this._list.selectionType=this.triggerOnly?Lt.TriggerOnly:Lt.Single,this._list.setAttribute("focus-target",""),Object.assign(this._list.style,{zIndex:"21000",boxShadow:`rgba(0, 0, 0, 0.14) 0px 2px 2px 0px,
|
|
1537
1542
|
rgba(0, 0, 0, 0.12) 0px 1px 5px 0px,
|
|
1538
|
-
rgba(0, 0, 0, 0.2) 0px 3px 1px -2px`,background:"white",overflowY:"auto"}),this._list.addEventListener("selection",this.handleSelection),this._dataProvider.connectList(this._list)),!this._popper){const e=this;this._popper=fl(this,this._list,{placement:"bottom-start",modifiers:[{name:"computeStyles",options:{gpuAcceleration:!0}},{name:"hide",enabled:!1},{name:"closeIfReferenceHidden",enabled:!0,phase:"afterWrite",fn({state:i}){i.elements.reference.closeIfNotVisible()}},{name:"offset",options:{offset:({placement:i})=>i.indexOf("top")>-1?[0,-parseInt(getComputedStyle(e).paddingTop,10)]:i.indexOf("bottom")>-1?[0,-parseInt(getComputedStyle(e).paddingBottom,10)-(this.shadowRoot.querySelector(".validation-message-wrapper")?.offsetHeight??0)]:[0,0]}},{name:"adjustWidthIfNeeded",enabled:!0,phase:"read",fn({state:i}){i.elements.popper.increaseWidthOnNextRenderIfNeeded()}}]})}}closeIfNotVisible(){const e=this.elementFromMiddleOfComboBox();!this.contains(e)&&!this.shadowRoot.contains(e)&&e!==this._list&&(this.triggerOnly&&(this.value=null),this.opened=!1)}elementFromMiddleOfComboBox(){const e=this.getBoundingClientRect();return document.elementFromPoint(e.left+e.width/2,e.top+e.height/2)}async handleOpenedStateChange(){if(this.inputElement.setAttribute("aria-expanded",String(this.opened)),this.opened){if(!this.disabled){this.ensureListAndPopperInitialized();const e=(this.filterText??"")!==(this._lastRequestedFilterText??"");this.isLazyLoadConfigured&&(this.items.length==0||e)&&this.requestData(0,e),this.updateDropdownSizes(),this.ownerDocument.body.appendChild(this._list),this.updateFocusAndSelectedIndexFromValue(),window.requestAnimationFrame(()=>{this._popper&&this._popper.update()}),window.addEventListener("pointerdown",this.handleWindowPointerDown),!this.allowCustomValue&&!this._openedByFilterTextChange&&this.select()}this._openedByFilterTextChange=!1}else await this._list.updateComplete,this._popper&&await this._popper.update,this.ownerDocument.body.removeChild(this._list),window.removeEventListener("pointerdown",this.handleWindowPointerDown),this.updateValueOnClose(),this.clearFilter(),this.setSelectionRange(0,0),this.inputElement.removeAttribute("aria-activedescendant"),this._popper&&(this._popper.destroy(),this._popper=null)}updateValueOnClose(){const e=this.comboBoxValue??"";if(this.nullSettingDisallowed&&!this.value&&this.comboBoxValue)this.restorePreviousSelection();else if(this.value!==(this.convertToDisplayValue(null)??"")){const i=this._dataProvider.items[this._list.focusIndex];if(i&&(i[this.displayValuePath]??"")===this.value){if(i.disabled){this.restorePreviousSelection();return}this.comboBoxValue={index:this._itemCache.indexOf(i),item:i}}else if(this.allowCustomValue||!this.value)this.comboBoxValue=this.value;else{const a=this._itemCache.findIndex(s=>(s[this.displayValuePath]??"")===this.value&&!s.disabled);a>-1?this.comboBoxValue={index:a,item:this._itemCache[a]}:this.restorePreviousSelection()}}else{const i=this._dataProvider.items[this._list.focusIndex];if(i&&i.id!=null){if(i.disabled){this.restorePreviousSelection();return}(!this.comboBoxValue||this.isCustomValue(this.comboBoxValue)||this.comboBoxValue.item.id!=i.id)&&(this.comboBoxValue={index:this._itemCache.indexOf(i),item:i})}}e!==(this.comboBoxValue??"")&&this.dispatchSelectionChangeEvent(),this.updateIcon(this.isCustomValue(this.comboBoxValue)?null:this.comboBoxValue?.item)}restorePreviousSelection(){this.updateInputValue(null)}updateFocusAndSelectedIndexFromValue(){if(this.comboBoxValue&&!this.isCustomValue(this.comboBoxValue)&&!this._openedByFilterTextChange){let e=this.comboBoxValue.index;if((e==-1||this.isLazyLoadConfigured)&&(e=this.items.indexOf(this.comboBoxValue.item),e==-1)){const i=this.comboBoxValue.item.id;i!=null&&(e=this.items.findIndex(a=>a.id==i))}this._list.focusIndex=e,this._list.selectedIndices=e==-1?[]:[e]}else this._list.focusIndex=-1,this._list.selectedIndices=[];this.updateActiveDescendant()}navigateInList(e){this.opened?(this._list.focusIndex==null?e>0?this._list.focusIndex=0:this._list.focusIndex=Math.max(0,this._dataProvider.items.length-1):this._list.focusIndex=Math.max(0,Math.min(this._dataProvider.items.length-1,this._list.focusIndex+e)),this.updateInputValue(this._dataProvider.items[this._list.focusIndex]),this.updateActiveDescendant(),this.allowCustomValue||this.select()):this.opened=!0}updateActiveDescendant(){const e=this._list&&this._list.getListItem(this._list.focusIndex);e?this.inputElement.setAttribute("aria-activedescendant",e.id):this.inputElement.removeAttribute("aria-activedescendant")}updateInputValue(e){this.updateComplete.then(()=>{this.value=this.convertToDisplayValue(e),e?this.updateIcon(e):this.updateIconFromCurrentValue()})}convertToDisplayValue(e){return e?e[this.displayValuePath]:this.comboBoxValue?this.isCustomValue(this.comboBoxValue)?this.comboBoxValue:this.comboBoxValue.item[this.displayValuePath]:null}fireValueChange(e){if(e&&this.filterText!==this.value){const i=(this.filterText??"")!==this.value;this.filterText=this.value,this.updateIcon(null),this.opened||(this._openedByFilterTextChange=!0,this.opened=!0),i&&(this.dispatchFilterChangeEvent(),this.debouncedFilterItemsInMemory())}}clearValue(){this.nullSettingDisallowed||(this.value=null,this.inputElement.removeAttribute("aria-activedescendant"),this._list&&(this._list.selectedIndices=[]),this.clearFilter(),this.comboBoxValue&&(this.comboBoxValue=null,this.dispatchSelectionChangeEvent()),this.requestUpdate())}clearFilter(){this.filterText!=null&&(this.filterText=void 0,this.filterItemsInMemory(),this.dispatchFilterChangeEvent(),this.updateIconFromCurrentValue())}updateDropdownSizes(){const i=((window.innerHeight||document.documentElement.clientHeight)-this.offsetHeight)*.5;Object.assign(this._list.style,{maxHeight:`${i}px`,minWidth:`${Math.max(this.offsetWidth,this.minimumOverlayWidth)}px`,maxWidth:`max(50vw, ${this.offsetWidth}px)`})}updateListId(){this.inputElement&&this._list&&(this._list.id=this.id+"_list",this.inputElement.setAttribute("aria-controls",this._list.id))}isCustomValue(e){return typeof e=="string"}dispatchSelectionChangeEvent(){this.updateComplete.then(()=>{if(this.dispatchEvent(new CustomEvent("selection-change",{detail:{selection:this.comboBoxValue,isCustomValue:this.isCustomValue(this.comboBoxValue)}})),this.triggerOnly)this.comboBoxValue=null;else{const e=this.comboBoxValue;this.isCustomValue(e)?this.setFormValue(e):this.setFormValue(e?.item?.caption)}}).catch(e=>{console.error("Could not dispatch selection change event due to:",e)})}dispatchFilterChangeEvent(){this.dispatchEvent(new CustomEvent("filter-change",{detail:{value:this.filterText},composed:!0})),this.debouncedRequestData(0)}get isLazyLoadConfigured(){return!!this._onDataRequest}requestData(e,i){if(i==null&&(i=(this.filterText??"")!==(this._lastRequestedFilterText??"")),this.isLazyLoadConfigured){if(!this.opened){i&&(this._dataProvider.items=[],this._itemCache=[]);return}if(this._lastRequestedPage==e&&!i)return;this._pendingDataRequest&&this._pendingDataRequest.cancel(
|
|
1539
|
-
${s}`),this._dataProvider.finalSizeIsKnown=!0,this.items.length==0?this.opened=!1:this._list&&(this._list.itemCount=this.items.length),this.removeAttribute("loading")),this._pendingDataRequest=null})}}get defaultSlot(){return this.shadowRoot.querySelector("#default-slot")}onDefaultSlotChange(){this._declarativeItems=this.defaultSlot.assignedElements(),this._declarativeItems.length>0&&(this.finalSizeIsKnown=!0,this.itemGenerator=(e,i)=>this._declarativeItems[i].cloneNode(!0),this.items=this._declarativeItems.map(e=>{const i={caption:e.getAttribute("caption"),description:e.getAttribute("description")};return this.displayValuePath!="caption"&&this.displayValuePath!="description"&&(i[this.displayValuePath]=e[this.displayValuePath]||e.getAttribute(this.displayValuePath)),i}))}},
|
|
1543
|
+
rgba(0, 0, 0, 0.2) 0px 3px 1px -2px`,background:"white",overflowY:"auto"}),this._list.addEventListener("selection",this.handleSelection),this._dataProvider.connectList(this._list)),!this._popper){const e=this;this._popper=fl(this,this._list,{placement:"bottom-start",modifiers:[{name:"computeStyles",options:{gpuAcceleration:!0}},{name:"hide",enabled:!1},{name:"closeIfReferenceHidden",enabled:!0,phase:"afterWrite",fn({state:i}){i.elements.reference.closeIfNotVisible()}},{name:"offset",options:{offset:({placement:i})=>i.indexOf("top")>-1?[0,-parseInt(getComputedStyle(e).paddingTop,10)]:i.indexOf("bottom")>-1?[0,-parseInt(getComputedStyle(e).paddingBottom,10)-(this.shadowRoot.querySelector(".validation-message-wrapper")?.offsetHeight??0)]:[0,0]}},{name:"adjustWidthIfNeeded",enabled:!0,phase:"read",fn({state:i}){i.elements.popper.increaseWidthOnNextRenderIfNeeded()}}]})}}closeIfNotVisible(){const e=this.elementFromMiddleOfComboBox();!this.contains(e)&&!this.shadowRoot.contains(e)&&e!==this._list&&(this.triggerOnly&&(this.value=null),this.opened=!1)}elementFromMiddleOfComboBox(){const e=this.getBoundingClientRect();return document.elementFromPoint(e.left+e.width/2,e.top+e.height/2)}async handleOpenedStateChange(){if(this.inputElement.setAttribute("aria-expanded",String(this.opened)),this.opened){if(!this.disabled){this.ensureListAndPopperInitialized();const e=(this.filterText??"")!==(this._lastRequestedFilterText??"");this.isLazyLoadConfigured&&(this.items.length==0||e)&&this.requestData(0,e),this.updateDropdownSizes(),this.ownerDocument.body.appendChild(this._list),this.updateFocusAndSelectedIndexFromValue(),window.requestAnimationFrame(()=>{this._popper&&this._popper.update()}),window.addEventListener("pointerdown",this.handleWindowPointerDown),!this.allowCustomValue&&!this._openedByFilterTextChange&&this.select()}this._openedByFilterTextChange=!1}else await this._list.updateComplete,this._popper&&await this._popper.update,this.ownerDocument.body.removeChild(this._list),window.removeEventListener("pointerdown",this.handleWindowPointerDown),this.updateValueOnClose(),this.clearFilter(),this.setSelectionRange(0,0),this.inputElement.removeAttribute("aria-activedescendant"),this._popper&&(this._popper.destroy(),this._popper=null)}updateValueOnClose(){const e=this.comboBoxValue??"";if(this.nullSettingDisallowed&&!this.value&&this.comboBoxValue)this.restorePreviousSelection();else if(this.value!==(this.convertToDisplayValue(null)??"")){const i=this._dataProvider.items[this._list.focusIndex];if(i&&(i[this.displayValuePath]??"")===this.value){if(i.disabled){this.restorePreviousSelection();return}this.comboBoxValue={index:this._itemCache.indexOf(i),item:i}}else if(this.allowCustomValue||!this.value)this.comboBoxValue=this.value;else{const a=this._itemCache.findIndex(s=>(s[this.displayValuePath]??"")===this.value&&!s.disabled);a>-1?this.comboBoxValue={index:a,item:this._itemCache[a]}:this.restorePreviousSelection()}}else{const i=this._dataProvider.items[this._list.focusIndex];if(i&&i.id!=null){if(i.disabled){this.restorePreviousSelection();return}(!this.comboBoxValue||this.isCustomValue(this.comboBoxValue)||this.comboBoxValue.item.id!=i.id)&&(this.comboBoxValue={index:this._itemCache.indexOf(i),item:i})}}e!==(this.comboBoxValue??"")&&this.dispatchSelectionChangeEvent(),this.updateIcon(this.isCustomValue(this.comboBoxValue)?null:this.comboBoxValue?.item)}restorePreviousSelection(){this.updateInputValue(null)}updateFocusAndSelectedIndexFromValue(){if(this.comboBoxValue&&!this.isCustomValue(this.comboBoxValue)&&!this._openedByFilterTextChange){let e=this.comboBoxValue.index;if((e==-1||this.isLazyLoadConfigured)&&(e=this.items.indexOf(this.comboBoxValue.item),e==-1)){const i=this.comboBoxValue.item.id;i!=null&&(e=this.items.findIndex(a=>a.id==i))}this._list.focusIndex=e,this._list.selectedIndices=e==-1?[]:[e]}else this._list.focusIndex=-1,this._list.selectedIndices=[];this.updateActiveDescendant()}navigateInList(e){this.opened?(this._list.focusIndex==null?e>0?this._list.focusIndex=0:this._list.focusIndex=Math.max(0,this._dataProvider.items.length-1):this._list.focusIndex=Math.max(0,Math.min(this._dataProvider.items.length-1,this._list.focusIndex+e)),this.updateInputValue(this._dataProvider.items[this._list.focusIndex]),this.updateActiveDescendant(),this.allowCustomValue||this.select()):this.opened=!0}updateActiveDescendant(){const e=this._list&&this._list.getListItem(this._list.focusIndex);e?this.inputElement.setAttribute("aria-activedescendant",e.id):this.inputElement.removeAttribute("aria-activedescendant")}updateInputValue(e){this.updateComplete.then(()=>{this.value=this.convertToDisplayValue(e),e?this.updateIcon(e):this.updateIconFromCurrentValue()})}convertToDisplayValue(e){return e?e[this.displayValuePath]:this.comboBoxValue?this.isCustomValue(this.comboBoxValue)?this.comboBoxValue:this.comboBoxValue.item[this.displayValuePath]:null}fireValueChange(e){if(e&&this.filterText!==this.value){const i=(this.filterText??"")!==this.value;this.filterText=this.value,this.updateIcon(null),this.opened||(this._openedByFilterTextChange=!0,this.opened=!0),i&&(this.dispatchFilterChangeEvent(),this.debouncedFilterItemsInMemory())}}clearValue(){this.nullSettingDisallowed||(this.value=null,this.inputElement.removeAttribute("aria-activedescendant"),this._list&&(this._list.selectedIndices=[]),this.clearFilter(),this.comboBoxValue&&(this.comboBoxValue=null,this.dispatchSelectionChangeEvent()),this.requestUpdate())}clearFilter(){this.filterText!=null&&(this.filterText=void 0,this.filterItemsInMemory(),this.dispatchFilterChangeEvent(),this.updateIconFromCurrentValue())}updateDropdownSizes(){const i=((window.innerHeight||document.documentElement.clientHeight)-this.offsetHeight)*.5;Object.assign(this._list.style,{maxHeight:`${i}px`,minWidth:`${Math.max(this.offsetWidth,this.minimumOverlayWidth)}px`,maxWidth:`max(50vw, ${this.offsetWidth}px)`})}updateListId(){this.inputElement&&this._list&&(this._list.id=this.id+"_list",this.inputElement.setAttribute("aria-controls",this._list.id))}isCustomValue(e){return typeof e=="string"}dispatchSelectionChangeEvent(){this.updateComplete.then(()=>{if(this.dispatchEvent(new CustomEvent("selection-change",{detail:{selection:this.comboBoxValue,isCustomValue:this.isCustomValue(this.comboBoxValue)}})),this.triggerOnly)this.comboBoxValue=null;else{const e=this.comboBoxValue;this.isCustomValue(e)?this.setFormValue(e):this.setFormValue(e?.item?.caption)}}).catch(e=>{console.error("Could not dispatch selection change event due to:",e)})}dispatchFilterChangeEvent(){this.dispatchEvent(new CustomEvent("filter-change",{detail:{value:this.filterText},composed:!0})),this.debouncedRequestData(0)}get isLazyLoadConfigured(){return!!this._onDataRequest}requestData(e,i){if(i==null&&(i=(this.filterText??"")!==(this._lastRequestedFilterText??"")),this.isLazyLoadConfigured){if(!this.opened){i&&(this._dataProvider.items=[],this._itemCache=[]);return}if(this._lastRequestedPage==e&&!i)return;this._pendingDataRequest&&this._pendingDataRequest.cancel(Ne.DATA_REQUEST_CANCELLED);const a=new Promise((s,r)=>{this._pendingDataRequest={cancel:r}});this._lastRequestedPage=e,this._lastRequestedFilterText=this.filterText,this.setAttribute("loading",""),Promise.race([a,this._onDataRequest(this._lastRequestedFilterText,e)]).then(s=>{if(this.filterText==this._lastRequestedFilterText&&this._lastRequestedPage==e&&(this._dataProvider.finalSizeIsKnown=s.finalSizeIsKnown,i?(this._dataProvider.items=s.items,this._itemCache=s.items):(this._dataProvider.addItems(s.items),this._itemCache=this._dataProvider.items),this._list&&(this._list.itemCount=this._dataProvider.items.length),this._popper&&this.opened)){if(this.comboBoxValue&&!this.isCustomValue(this.comboBoxValue)){const r=this.comboBoxValue.item;if(this._list.selectedIndices.length==0||this.items[this._list.selectedIndices[0]]!=r){let o=this.items.indexOf(r);if(o==-1){const d=r.id;d!=null&&(o=this.items.findIndex(h=>h.id==d))}this.comboBoxValue.index=o,this._list.selectedIndices=o==-1?[]:[o]}}this.updateDropdownSizes(),this._popper.update()}this._pendingDataRequest=null,this.removeAttribute("loading")}).catch(s=>{s!==Ne.DATA_REQUEST_CANCELLED&&(console.error(`Data could not be loaded for filter "${this._lastRequestedFilterText}" and page number "${e}" due to the following error:
|
|
1544
|
+
${s}`),this._dataProvider.finalSizeIsKnown=!0,this.items.length==0?this.opened=!1:this._list&&(this._list.itemCount=this.items.length),this.removeAttribute("loading")),this._pendingDataRequest=null})}}get defaultSlot(){return this.shadowRoot.querySelector("#default-slot")}onDefaultSlotChange(){this._declarativeItems=this.defaultSlot.assignedElements(),this._declarativeItems.length>0&&(this.finalSizeIsKnown=!0,this.itemGenerator=(e,i)=>this._declarativeItems[i].cloneNode(!0),this.items=this._declarativeItems.map(e=>{const i={caption:e.getAttribute("caption"),description:e.getAttribute("description")};return this.displayValuePath!="caption"&&this.displayValuePath!="description"&&(i[this.displayValuePath]=e[this.displayValuePath]||e.getAttribute(this.displayValuePath)),i}))}},Ne.ID=Wl,Ne.ensureDefined=()=>{ys.ensureDefined(),customElements.get(Ne.ID)||customElements.define(Ne.ID,Ne)},Ne.formAssociated=!0,Ne.DATA_REQUEST_CANCELLED="cancel_data_request",Ne);Je([P({type:Boolean,reflect:!0})],Ve.prototype,"opened");Je([P({type:Number,attribute:"item-height"})],Ve.prototype,"itemHeight");Je([P({type:Boolean,attribute:"allow-custom-value",reflect:!0})],Ve.prototype,"allowCustomValue");Je([P({type:Boolean,attribute:"trigger-only",reflect:!0})],Ve.prototype,"triggerOnly");Je([P({type:Boolean,attribute:"null-setting-disallowed",reflect:!0})],Ve.prototype,"nullSettingDisallowed");Je([P({type:Boolean,attribute:"show-icon",reflect:!0})],Ve.prototype,"showIcon");Je([P({type:String,attribute:"display-value-path",noAccessor:!0})],Ve.prototype,"displayValuePath");Je([P({type:String,attribute:"filter-property",noAccessor:!0})],Ve.prototype,"filterProperty");Je([P({type:String,attribute:!0,reflect:!0})],Ve.prototype,"id");let Kl=Ve;Kl.ensureDefined();function Nr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Jl(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var i=function a(){var s=!1;try{s=this instanceof a}catch{}return s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};i.prototype=e.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(a){var s=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(i,a,s.get?s:{enumerable:!0,get:function(){return t[a]}})}),i}var li={exports:{}},wa;function Zl(){if(wa)return li.exports;wa=1;var t=String,e=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};return li.exports=e(),li.exports.createColors=e,li.exports}const Xl={},Yl=Object.freeze(Object.defineProperty({__proto__:null,default:Xl},Symbol.toStringTag,{value:"Module"})),Ie=Jl(Yl);var Vi,_a;function Ps(){if(_a)return Vi;_a=1;let t=Zl(),e=Ie;class i extends Error{constructor(s,r,o,d,h,u){super(s),this.name="CssSyntaxError",this.reason=s,h&&(this.file=h),d&&(this.source=d),u&&(this.plugin=u),typeof r<"u"&&typeof o<"u"&&(typeof r=="number"?(this.line=r,this.column=o):(this.line=r.line,this.column=r.column,this.endLine=o.line,this.endColumn=o.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(s){if(!this.source)return"";let r=this.source;s==null&&(s=t.isColorSupported);let o=l=>l,d=l=>l,h=l=>l;if(s){let{bold:l,gray:f,red:p}=t.createColors(!0);d=N=>l(p(N)),o=N=>f(N),e&&(h=N=>e(N))}let u=r.split(/\r?\n/),n=Math.max(this.line-3,0),m=Math.min(this.line+2,u.length),c=String(m).length;return u.slice(n,m).map((l,f)=>{let p=n+1+f,N=" "+(" "+p).slice(-c)+" | ";if(p===this.line){if(l.length>160){let w=20,v=Math.max(0,this.column-w),y=Math.max(this.column+w,this.endColumn+w),b=l.slice(v,y),_=o(N.replace(/\d/g," "))+l.slice(0,Math.min(this.column-1,w-1)).replace(/[^\t]/g," ");return d(">")+o(N)+h(b)+`
|
|
1540
1545
|
`+_+d("^")}let x=o(N.replace(/\d/g," "))+l.slice(0,this.column-1).replace(/[^\t]/g," ");return d(">")+o(N)+h(l)+`
|
|
1541
1546
|
`+x+d("^")}return" "+o(N)+h(l)}).join(`
|
|
1542
1547
|
`)}toString(){let s=this.showSourceCode();return s&&(s=`
|
|
@@ -1555,19 +1560,19 @@ ${s}`),this._dataProvider.finalSizeIsKnown=!0,this.items.length==0?this.opened=!
|
|
|
1555
1560
|
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawColon(s){let r;return s.walkDecls(o=>{if(typeof o.raws.between<"u")return r=o.raws.between.replace(/[^\s:]/g,""),!1}),r}rawEmptyBody(s){let r;return s.walk(o=>{if(o.nodes&&o.nodes.length===0&&(r=o.raws.after,typeof r<"u"))return!1}),r}rawIndent(s){if(s.raws.indent)return s.raws.indent;let r;return s.walk(o=>{let d=o.parent;if(d&&d!==s&&d.parent&&d.parent===s&&typeof o.raws.before<"u"){let h=o.raws.before.split(`
|
|
1556
1561
|
`);return r=h[h.length-1],r=r.replace(/\S/g,""),!1}}),r}rawSemicolon(s){let r;return s.walk(o=>{if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(r=o.raws.semicolon,typeof r<"u"))return!1}),r}rawValue(s,r){let o=s[r],d=s.raws[r];return d&&d.value===o?d.raw:o}root(s){this.body(s),s.raws.after&&this.builder(s.raws.after)}rule(s){this.block(s,this.rawValue(s,"selector")),s.raws.ownSemicolon&&this.builder(s.raws.ownSemicolon,s,"end")}stringify(s,r){if(!this[s.type])throw new Error("Unknown AST node type "+s.type+". Maybe you need to change PostCSS stringifier.");this[s.type](s,r)}}return Fi=i,i.default=i,Fi}var Hi,Ca;function _i(){if(Ca)return Hi;Ca=1;let t=br();function e(i,a){new t(a).stringify(i)}return Hi=e,e.default=e,Hi}var ci={},Aa;function Bs(){return Aa||(Aa=1,ci.isClean=Symbol("isClean"),ci.my=Symbol("my")),ci}var qi,Ea;function Si(){if(Ea)return qi;Ea=1;let t=Ps(),e=br(),i=_i(),{isClean:a,my:s}=Bs();function r(h,u){let n=new h.constructor;for(let m in h){if(!Object.prototype.hasOwnProperty.call(h,m)||m==="proxyCache")continue;let c=h[m],l=typeof c;m==="parent"&&l==="object"?u&&(n[m]=u):m==="source"?n[m]=c:Array.isArray(c)?n[m]=c.map(f=>r(f,n)):(l==="object"&&c!==null&&(c=r(c)),n[m]=c)}return n}function o(h,u){if(u&&typeof u.offset<"u")return u.offset;let n=1,m=1,c=0;for(let l=0;l<h.length;l++){if(m===u.line&&n===u.column){c=l;break}h[l]===`
|
|
1557
1562
|
`?(n=1,m+=1):n+=1}return c}class d{get proxyOf(){return this}constructor(u={}){this.raws={},this[a]=!1,this[s]=!0;for(let n in u)if(n==="nodes"){this.nodes=[];for(let m of u[n])typeof m.clone=="function"?this.append(m.clone()):this.append(m)}else this[n]=u[n]}addToError(u){if(u.postcssNode=this,u.stack&&this.source&&/\n\s{4}at /.test(u.stack)){let n=this.source;u.stack=u.stack.replace(/\n\s{4}at /,`$&${n.input.from}:${n.start.line}:${n.start.column}$&`)}return u}after(u){return this.parent.insertAfter(this,u),this}assign(u={}){for(let n in u)this[n]=u[n];return this}before(u){return this.parent.insertBefore(this,u),this}cleanRaws(u){delete this.raws.before,delete this.raws.after,u||delete this.raws.between}clone(u={}){let n=r(this);for(let m in u)n[m]=u[m];return n}cloneAfter(u={}){let n=this.clone(u);return this.parent.insertAfter(this,n),n}cloneBefore(u={}){let n=this.clone(u);return this.parent.insertBefore(this,n),n}error(u,n={}){if(this.source){let{end:m,start:c}=this.rangeBy(n);return this.source.input.error(u,{column:c.column,line:c.line},{column:m.column,line:m.line},n)}return new t(u)}getProxyProcessor(){return{get(u,n){return n==="proxyOf"?u:n==="root"?()=>u.root().toProxy():u[n]},set(u,n,m){return u[n]===m||(u[n]=m,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&u.markDirty()),!0}}}markClean(){this[a]=!0}markDirty(){if(this[a]){this[a]=!1;let u=this;for(;u=u.parent;)u[a]=!1}}next(){if(!this.parent)return;let u=this.parent.index(this);return this.parent.nodes[u+1]}positionBy(u={}){let n=this.source.start;if(u.index)n=this.positionInside(u.index);else if(u.word){let m="document"in this.source.input?this.source.input.document:this.source.input.css,l=m.slice(o(m,this.source.start),o(m,this.source.end)).indexOf(u.word);l!==-1&&(n=this.positionInside(l))}return n}positionInside(u){let n=this.source.start.column,m=this.source.start.line,c="document"in this.source.input?this.source.input.document:this.source.input.css,l=o(c,this.source.start),f=l+u;for(let p=l;p<f;p++)c[p]===`
|
|
1558
|
-
`?(n=1,m+=1):n+=1;return{column:n,line:m,offset:f}}prev(){if(!this.parent)return;let u=this.parent.index(this);return this.parent.nodes[u-1]}rangeBy(u={}){let n="document"in this.source.input?this.source.input.document:this.source.input.css,m={column:this.source.start.column,line:this.source.start.line,offset:o(n,this.source.start)},c=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:o(n,this.source.end)+1}:{column:m.column+1,line:m.line,offset:m.offset+1};if(u.word){let f=n.slice(o(n,this.source.start),o(n,this.source.end)).indexOf(u.word);f!==-1&&(m=this.positionInside(f),c=this.positionInside(f+u.word.length))}else u.start?m={column:u.start.column,line:u.start.line,offset:o(n,u.start)}:u.index&&(m=this.positionInside(u.index)),u.end?c={column:u.end.column,line:u.end.line,offset:o(n,u.end)}:typeof u.endIndex=="number"?c=this.positionInside(u.endIndex):u.index&&(c=this.positionInside(u.index+1));return(c.line<m.line||c.line===m.line&&c.column<=m.column)&&(c={column:m.column+1,line:m.line,offset:m.offset+1}),{end:c,start:m}}raw(u,n){return new e().raw(this,u,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...u){if(this.parent){let n=this,m=!1;for(let c of u)c===this?m=!0:m?(this.parent.insertAfter(n,c),n=c):this.parent.insertBefore(n,c);m||this.remove()}return this}root(){let u=this;for(;u.parent&&u.parent.type!=="document";)u=u.parent;return u}toJSON(u,n){let m={},c=n==null;n=n||new Map;let l=0;for(let f in this){if(!Object.prototype.hasOwnProperty.call(this,f)||f==="parent"||f==="proxyCache")continue;let p=this[f];if(Array.isArray(p))m[f]=p.map(N=>typeof N=="object"&&N.toJSON?N.toJSON(null,n):N);else if(typeof p=="object"&&p.toJSON)m[f]=p.toJSON(null,n);else if(f==="source"){if(p==null)continue;let N=n.get(p.input);N==null&&(N=l,n.set(p.input,l),l++),m[f]={end:p.end,inputId:N,start:p.start}}else m[f]=p}return c&&(m.inputs=[...n.keys()].map(f=>f.toJSON())),m}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(u=i){u.stringify&&(u=u.stringify);let n="";return u(this,m=>{n+=m}),n}warn(u,n,m={}){let c={node:this};for(let l in m)c[l]=m[l];return u.warn(n,c)}}return qi=d,d.default=d,qi}var Ui,ka;function Ci(){if(ka)return Ui;ka=1;let t=Si();class e extends t{constructor(a){super(a),this.type="comment"}}return Ui=e,e.default=e,Ui}var Wi,Ma;function Ai(){if(Ma)return Wi;Ma=1;let t=Si();class e extends t{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(a){a&&typeof a.value<"u"&&typeof a.value!="string"&&(a={...a,value:String(a.value)}),super(a),this.type="decl"}}return Wi=e,e.default=e,Wi}var Gi,Oa;function ht(){if(Oa)return Gi;Oa=1;let t=Ci(),e=Ai(),i=Si(),{isClean:a,my:s}=Bs(),r,o,d,h;function u(c){return c.map(l=>(l.nodes&&(l.nodes=u(l.nodes)),delete l.source,l))}function n(c){if(c[a]=!1,c.proxyOf.nodes)for(let l of c.proxyOf.nodes)n(l)}class m extends i{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...l){for(let f of l){let p=this.normalize(f,this.last);for(let N of p)this.proxyOf.nodes.push(N)}return this.markDirty(),this}cleanRaws(l){if(super.cleanRaws(l),this.nodes)for(let f of this.nodes)f.cleanRaws(l)}each(l){if(!this.proxyOf.nodes)return;let f=this.getIterator(),p,N;for(;this.indexes[f]<this.proxyOf.nodes.length&&(p=this.indexes[f],N=l(this.proxyOf.nodes[p],p),N!==!1);)this.indexes[f]+=1;return delete this.indexes[f],N}every(l){return this.nodes.every(l)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let l=this.lastEach;return this.indexes[l]=0,l}getProxyProcessor(){return{get(l,f){return f==="proxyOf"?l:l[f]?f==="each"||typeof f=="string"&&f.startsWith("walk")?(...p)=>l[f](...p.map(N=>typeof N=="function"?(x,w)=>N(x.toProxy(),w):N)):f==="every"||f==="some"?p=>l[f]((N,...x)=>p(N.toProxy(),...x)):f==="root"?()=>l.root().toProxy():f==="nodes"?l.nodes.map(p=>p.toProxy()):f==="first"||f==="last"?l[f].toProxy():l[f]:l[f]},set(l,f,p){return l[f]===p||(l[f]=p,(f==="name"||f==="params"||f==="selector")&&l.markDirty()),!0}}}index(l){return typeof l=="number"?l:(l.proxyOf&&(l=l.proxyOf),this.proxyOf.nodes.indexOf(l))}insertAfter(l,f){let p=this.index(l),N=this.normalize(f,this.proxyOf.nodes[p]).reverse();p=this.index(l);for(let w of N)this.proxyOf.nodes.splice(p+1,0,w);let x;for(let w in this.indexes)x=this.indexes[w],p<x&&(this.indexes[w]=x+N.length);return this.markDirty(),this}insertBefore(l,f){let p=this.index(l),N=p===0?"prepend":!1,x=this.normalize(f,this.proxyOf.nodes[p],N).reverse();p=this.index(l);for(let v of x)this.proxyOf.nodes.splice(p,0,v);let w;for(let v in this.indexes)w=this.indexes[v],p<=w&&(this.indexes[v]=w+x.length);return this.markDirty(),this}normalize(l,f){if(typeof l=="string")l=u(o(l).nodes);else if(typeof l>"u")l=[];else if(Array.isArray(l)){l=l.slice(0);for(let N of l)N.parent&&N.parent.removeChild(N,"ignore")}else if(l.type==="root"&&this.type!=="document"){l=l.nodes.slice(0);for(let N of l)N.parent&&N.parent.removeChild(N,"ignore")}else if(l.type)l=[l];else if(l.prop){if(typeof l.value>"u")throw new Error("Value field is missed in node creation");typeof l.value!="string"&&(l.value=String(l.value)),l=[new e(l)]}else if(l.selector||l.selectors)l=[new h(l)];else if(l.name)l=[new r(l)];else if(l.text)l=[new t(l)];else throw new Error("Unknown node type in node creation");return l.map(N=>(N[s]||m.rebuild(N),N=N.proxyOf,N.parent&&N.parent.removeChild(N),N[a]&&n(N),N.raws||(N.raws={}),typeof N.raws.before>"u"&&f&&typeof f.raws.before<"u"&&(N.raws.before=f.raws.before.replace(/\S/g,"")),N.parent=this.proxyOf,N))}prepend(...l){l=l.reverse();for(let f of l){let p=this.normalize(f,this.first,"prepend").reverse();for(let N of p)this.proxyOf.nodes.unshift(N);for(let N in this.indexes)this.indexes[N]=this.indexes[N]+p.length}return this.markDirty(),this}push(l){return l.parent=this,this.proxyOf.nodes.push(l),this}removeAll(){for(let l of this.proxyOf.nodes)l.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(l){l=this.index(l),this.proxyOf.nodes[l].parent=void 0,this.proxyOf.nodes.splice(l,1);let f;for(let p in this.indexes)f=this.indexes[p],f>=l&&(this.indexes[p]=f-1);return this.markDirty(),this}replaceValues(l,f,p){return p||(p=f,f={}),this.walkDecls(N=>{f.props&&!f.props.includes(N.prop)||f.fast&&!N.value.includes(f.fast)||(N.value=N.value.replace(l,p))}),this.markDirty(),this}some(l){return this.nodes.some(l)}walk(l){return this.each((f,p)=>{let N;try{N=l(f,p)}catch(x){throw f.addToError(x)}return N!==!1&&f.walk&&(N=f.walk(l)),N})}walkAtRules(l,f){return f?l instanceof RegExp?this.walk((p,N)=>{if(p.type==="atrule"&&l.test(p.name))return f(p,N)}):this.walk((p,N)=>{if(p.type==="atrule"&&p.name===l)return f(p,N)}):(f=l,this.walk((p,N)=>{if(p.type==="atrule")return f(p,N)}))}walkComments(l){return this.walk((f,p)=>{if(f.type==="comment")return l(f,p)})}walkDecls(l,f){return f?l instanceof RegExp?this.walk((p,N)=>{if(p.type==="decl"&&l.test(p.prop))return f(p,N)}):this.walk((p,N)=>{if(p.type==="decl"&&p.prop===l)return f(p,N)}):(f=l,this.walk((p,N)=>{if(p.type==="decl")return f(p,N)}))}walkRules(l,f){return f?l instanceof RegExp?this.walk((p,N)=>{if(p.type==="rule"&&l.test(p.selector))return f(p,N)}):this.walk((p,N)=>{if(p.type==="rule"&&p.selector===l)return f(p,N)}):(f=l,this.walk((p,N)=>{if(p.type==="rule")return f(p,N)}))}}return m.registerParse=c=>{o=c},m.registerRule=c=>{h=c},m.registerAtRule=c=>{r=c},m.registerRoot=c=>{d=c},Gi=m,m.default=m,m.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,r.prototype):c.type==="rule"?Object.setPrototypeOf(c,h.prototype):c.type==="decl"?Object.setPrototypeOf(c,e.prototype):c.type==="comment"?Object.setPrototypeOf(c,t.prototype):c.type==="root"&&Object.setPrototypeOf(c,d.prototype),c[s]=!0,c.nodes&&c.nodes.forEach(l=>{m.rebuild(l)})},Gi}var Ki,Ia;function Ts(){if(Ia)return Ki;Ia=1;let t=ht();class e extends t{constructor(a){super(a),this.type="atrule"}append(...a){return this.proxyOf.nodes||(this.nodes=[]),super.append(...a)}prepend(...a){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...a)}}return Ki=e,e.default=e,t.registerAtRule(e),Ki}var Ji,Ra;function Ds(){if(Ra)return Ji;Ra=1;let t=ht(),e,i;class a extends t{constructor(r){super({type:"document",...r}),this.nodes||(this.nodes=[])}toResult(r={}){return new e(new i,this,r).stringify()}}return a.registerLazyResult=s=>{e=s},a.registerProcessor=s=>{i=s},Ji=a,a.default=a,Ji}var Zi,$a;function Ql(){if($a)return Zi;$a=1;let t="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Zi={nanoid:(a=21)=>{let s="",r=a|0;for(;r--;)s+=t[Math.random()*64|0];return s},customAlphabet:(a,s=21)=>(r=s)=>{let o="",d=r|0;for(;d--;)o+=a[Math.random()*a.length|0];return o}},Zi}var Xi,La;function yr(){if(La)return Xi;La=1;let{existsSync:t,readFileSync:e}=Ie,{dirname:i,join:a}=Ie,{SourceMapConsumer:s,SourceMapGenerator:r}=Ie;function o(h){return Buffer?Buffer.from(h,"base64").toString():window.atob(h)}class d{constructor(u,n){if(n.map===!1)return;this.loadAnnotation(u),this.inline=this.startWith(this.annotation,"data:");let m=n.map?n.map.prev:void 0,c=this.loadMap(n.from,m);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=i(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new s(this.text)),this.consumerCache}decodeInline(u){let n=/^data:application\/json;charset=utf-?8;base64,/,m=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,l=/^data:application\/json,/,f=u.match(c)||u.match(l);if(f)return decodeURIComponent(u.substr(f[0].length));let p=u.match(n)||u.match(m);if(p)return o(u.substr(p[0].length));let N=u.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+N)}getAnnotationURL(u){return u.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(u){return typeof u!="object"?!1:typeof u.mappings=="string"||typeof u._mappings=="string"||Array.isArray(u.sections)}loadAnnotation(u){let n=u.match(/\/\*\s*# sourceMappingURL=/g);if(!n)return;let m=u.lastIndexOf(n.pop()),c=u.indexOf("*/",m);m>-1&&c>-1&&(this.annotation=this.getAnnotationURL(u.substring(m,c)))}loadFile(u){if(this.root=i(u),t(u))return this.mapFile=u,e(u,"utf-8").toString().trim()}loadMap(u,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let m=n(u);if(m){let c=this.loadFile(m);if(!c)throw new Error("Unable to load previous source map: "+m.toString());return c}}else{if(n instanceof s)return r.fromSourceMap(n).toString();if(n instanceof r)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let m=this.annotation;return u&&(m=a(i(u),m)),this.loadFile(m)}}}startWith(u,n){return u?u.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Xi=d,d.default=d,Xi}var Yi,Pa;function Ei(){if(Pa)return Yi;Pa=1;let{nanoid:t}=Ql(),{isAbsolute:e,resolve:i}=Ie,{SourceMapConsumer:a,SourceMapGenerator:s}=Ie,{fileURLToPath:r,pathToFileURL:o}=Ie,d=Ps(),h=yr(),u=Ie,n=Symbol("lineToIndexCache"),m=!!(a&&s),c=!!(i&&e);function l(p){if(p[n])return p[n];let N=p.css.split(`
|
|
1559
|
-
`),x=new Array(N.length),w=0;for(let v=0,y=N.length;v<y;v++)x[v]=w,w+=N[v].length+1;return p[n]=x,x}class f{get from(){return this.file||this.id}constructor(N,x={}){if(N===null||typeof N>"u"||typeof N=="object"&&!N.toString)throw new Error(`PostCSS received ${N} instead of CSS string`);if(this.css=N.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,x.document&&(this.document=x.document.toString()),x.from&&(!c||/^\w+:\/\//.test(x.from)||e(x.from)?this.file=x.from:this.file=i(x.from)),c&&m){let w=new h(this.css,x);if(w.text){this.map=w;let v=w.consumer().file;!this.file&&v&&(this.file=this.mapResolve(v))}}this.file||(this.id="<input css "+t(6)+">"),this.map&&(this.map.file=this.from)}error(N,x,w,v={}){let y,b,_,C,I;if(x&&typeof x=="object"){let E=x,H=w;if(typeof E.offset=="number"){C=E.offset;let V=this.fromOffset(C);x=V.line,w=V.col}else x=E.line,w=E.column,C=this.fromLineAndColumn(x,w);if(typeof H.offset=="number"){_=H.offset;let V=this.fromOffset(_);b=V.line,y=V.col}else b=H.line,y=H.column,_=this.fromLineAndColumn(H.line,H.column)}else if(w)C=this.fromLineAndColumn(x,w);else{C=x;let E=this.fromOffset(C);x=E.line,w=E.col}let L=this.origin(x,w,b,y);return L?I=new d(N,L.endLine===void 0?L.line:{column:L.column,line:L.line},L.endLine===void 0?L.column:{column:L.endColumn,line:L.endLine},L.source,L.file,v.plugin):I=new d(N,b===void 0?x:{column:w,line:x},b===void 0?w:{column:y,line:b},this.css,this.file,v.plugin),I.input={column:w,endColumn:y,endLine:b,endOffset:_,line:x,offset:C,source:this.css},this.file&&(o&&(I.input.url=o(this.file).toString()),I.input.file=this.file),I}fromLineAndColumn(N,x){return l(this)[N-1]+x-1}fromOffset(N){let x=l(this),w=x[x.length-1],v=0;if(N>=w)v=x.length-1;else{let y=x.length-2,b;for(;v<y;)if(b=v+(y-v>>1),N<x[b])y=b-1;else if(N>=x[b+1])v=b+1;else{v=b;break}}return{col:N-x[v]+1,line:v+1}}mapResolve(N){return/^\w+:\/\//.test(N)?N:i(this.map.consumer().sourceRoot||this.map.root||".",N)}origin(N,x,w,v){if(!this.map)return!1;let y=this.map.consumer(),b=y.originalPositionFor({column:x,line:N});if(!b.source)return!1;let _;typeof w=="number"&&(_=y.originalPositionFor({column:v,line:w}));let C;e(b.source)?C=o(b.source):C=new URL(b.source,this.map.consumer().sourceRoot||o(this.map.mapFile));let I={column:b.column,endColumn:_&&_.column,endLine:_&&_.line,line:b.line,url:C.toString()};if(C.protocol==="file:")if(r)I.file=r(C);else throw new Error("file: protocol is not available in this PostCSS build");let L=y.sourceContentFor(b.source);return L&&(I.source=L),I}toJSON(){let N={};for(let x of["hasBOM","css","file","id"])this[x]!=null&&(N[x]=this[x]);return this.map&&(N.map={...this.map},N.map.consumerCache&&(N.map.consumerCache=void 0)),N}}return Yi=f,f.default=f,u&&u.registerInput&&u.registerInput(f),Yi}var Qi,Ba;function Xt(){if(Ba)return Qi;Ba=1;let t=ht(),e,i;class a extends t{constructor(r){super(r),this.type="root",this.nodes||(this.nodes=[])}normalize(r,o,d){let h=super.normalize(r);if(o){if(d==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(let u of h)u.raws.before=o.raws.before}return h}removeChild(r,o){let d=this.index(r);return!o&&d===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[d].raws.before),super.removeChild(r)}toResult(r={}){return new e(new i,this,r).stringify()}}return a.registerLazyResult=s=>{e=s},a.registerProcessor=s=>{i=s},Qi=a,a.default=a,t.registerRoot(a),Qi}var es,
|
|
1560
|
-
`," "];return t.split(e,i)},split(e,i,a){let s=[],r="",o=!1,d=0,h=!1,u="",n=!1;for(let m of e)n?n=!1:m==="\\"?n=!0:h?m===u&&(h=!1):m==='"'||m==="'"?(h=!0,u=m):m==="("?d+=1:m===")"?d>0&&(d-=1):d===0&&i.includes(m)&&(o=!0),o?(r!==""&&s.push(r.trim()),r="",o=!1):r+=m;return(a||r!=="")&&s.push(r.trim()),s}};return es=t,t.default=t,es}var ts,
|
|
1563
|
+
`?(n=1,m+=1):n+=1;return{column:n,line:m,offset:f}}prev(){if(!this.parent)return;let u=this.parent.index(this);return this.parent.nodes[u-1]}rangeBy(u={}){let n="document"in this.source.input?this.source.input.document:this.source.input.css,m={column:this.source.start.column,line:this.source.start.line,offset:o(n,this.source.start)},c=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:o(n,this.source.end)+1}:{column:m.column+1,line:m.line,offset:m.offset+1};if(u.word){let f=n.slice(o(n,this.source.start),o(n,this.source.end)).indexOf(u.word);f!==-1&&(m=this.positionInside(f),c=this.positionInside(f+u.word.length))}else u.start?m={column:u.start.column,line:u.start.line,offset:o(n,u.start)}:u.index&&(m=this.positionInside(u.index)),u.end?c={column:u.end.column,line:u.end.line,offset:o(n,u.end)}:typeof u.endIndex=="number"?c=this.positionInside(u.endIndex):u.index&&(c=this.positionInside(u.index+1));return(c.line<m.line||c.line===m.line&&c.column<=m.column)&&(c={column:m.column+1,line:m.line,offset:m.offset+1}),{end:c,start:m}}raw(u,n){return new e().raw(this,u,n)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...u){if(this.parent){let n=this,m=!1;for(let c of u)c===this?m=!0:m?(this.parent.insertAfter(n,c),n=c):this.parent.insertBefore(n,c);m||this.remove()}return this}root(){let u=this;for(;u.parent&&u.parent.type!=="document";)u=u.parent;return u}toJSON(u,n){let m={},c=n==null;n=n||new Map;let l=0;for(let f in this){if(!Object.prototype.hasOwnProperty.call(this,f)||f==="parent"||f==="proxyCache")continue;let p=this[f];if(Array.isArray(p))m[f]=p.map(N=>typeof N=="object"&&N.toJSON?N.toJSON(null,n):N);else if(typeof p=="object"&&p.toJSON)m[f]=p.toJSON(null,n);else if(f==="source"){if(p==null)continue;let N=n.get(p.input);N==null&&(N=l,n.set(p.input,l),l++),m[f]={end:p.end,inputId:N,start:p.start}}else m[f]=p}return c&&(m.inputs=[...n.keys()].map(f=>f.toJSON())),m}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(u=i){u.stringify&&(u=u.stringify);let n="";return u(this,m=>{n+=m}),n}warn(u,n,m={}){let c={node:this};for(let l in m)c[l]=m[l];return u.warn(n,c)}}return qi=d,d.default=d,qi}var Ui,ka;function Ci(){if(ka)return Ui;ka=1;let t=Si();class e extends t{constructor(a){super(a),this.type="comment"}}return Ui=e,e.default=e,Ui}var Wi,Ma;function Ai(){if(Ma)return Wi;Ma=1;let t=Si();class e extends t{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(a){a&&typeof a.value<"u"&&typeof a.value!="string"&&(a={...a,value:String(a.value)}),super(a),this.type="decl"}}return Wi=e,e.default=e,Wi}var Gi,Oa;function ht(){if(Oa)return Gi;Oa=1;let t=Ci(),e=Ai(),i=Si(),{isClean:a,my:s}=Bs(),r,o,d,h;function u(c){return c.map(l=>(l.nodes&&(l.nodes=u(l.nodes)),delete l.source,l))}function n(c){if(c[a]=!1,c.proxyOf.nodes)for(let l of c.proxyOf.nodes)n(l)}class m extends i{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...l){for(let f of l){let p=this.normalize(f,this.last);for(let N of p)this.proxyOf.nodes.push(N)}return this.markDirty(),this}cleanRaws(l){if(super.cleanRaws(l),this.nodes)for(let f of this.nodes)f.cleanRaws(l)}each(l){if(!this.proxyOf.nodes)return;let f=this.getIterator(),p,N;for(;this.indexes[f]<this.proxyOf.nodes.length&&(p=this.indexes[f],N=l(this.proxyOf.nodes[p],p),N!==!1);)this.indexes[f]+=1;return delete this.indexes[f],N}every(l){return this.nodes.every(l)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let l=this.lastEach;return this.indexes[l]=0,l}getProxyProcessor(){return{get(l,f){return f==="proxyOf"?l:l[f]?f==="each"||typeof f=="string"&&f.startsWith("walk")?(...p)=>l[f](...p.map(N=>typeof N=="function"?(x,w)=>N(x.toProxy(),w):N)):f==="every"||f==="some"?p=>l[f]((N,...x)=>p(N.toProxy(),...x)):f==="root"?()=>l.root().toProxy():f==="nodes"?l.nodes.map(p=>p.toProxy()):f==="first"||f==="last"?l[f].toProxy():l[f]:l[f]},set(l,f,p){return l[f]===p||(l[f]=p,(f==="name"||f==="params"||f==="selector")&&l.markDirty()),!0}}}index(l){return typeof l=="number"?l:(l.proxyOf&&(l=l.proxyOf),this.proxyOf.nodes.indexOf(l))}insertAfter(l,f){let p=this.index(l),N=this.normalize(f,this.proxyOf.nodes[p]).reverse();p=this.index(l);for(let w of N)this.proxyOf.nodes.splice(p+1,0,w);let x;for(let w in this.indexes)x=this.indexes[w],p<x&&(this.indexes[w]=x+N.length);return this.markDirty(),this}insertBefore(l,f){let p=this.index(l),N=p===0?"prepend":!1,x=this.normalize(f,this.proxyOf.nodes[p],N).reverse();p=this.index(l);for(let v of x)this.proxyOf.nodes.splice(p,0,v);let w;for(let v in this.indexes)w=this.indexes[v],p<=w&&(this.indexes[v]=w+x.length);return this.markDirty(),this}normalize(l,f){if(typeof l=="string")l=u(o(l).nodes);else if(typeof l>"u")l=[];else if(Array.isArray(l)){l=l.slice(0);for(let N of l)N.parent&&N.parent.removeChild(N,"ignore")}else if(l.type==="root"&&this.type!=="document"){l=l.nodes.slice(0);for(let N of l)N.parent&&N.parent.removeChild(N,"ignore")}else if(l.type)l=[l];else if(l.prop){if(typeof l.value>"u")throw new Error("Value field is missed in node creation");typeof l.value!="string"&&(l.value=String(l.value)),l=[new e(l)]}else if(l.selector||l.selectors)l=[new h(l)];else if(l.name)l=[new r(l)];else if(l.text)l=[new t(l)];else throw new Error("Unknown node type in node creation");return l.map(N=>(N[s]||m.rebuild(N),N=N.proxyOf,N.parent&&N.parent.removeChild(N),N[a]&&n(N),N.raws||(N.raws={}),typeof N.raws.before>"u"&&f&&typeof f.raws.before<"u"&&(N.raws.before=f.raws.before.replace(/\S/g,"")),N.parent=this.proxyOf,N))}prepend(...l){l=l.reverse();for(let f of l){let p=this.normalize(f,this.first,"prepend").reverse();for(let N of p)this.proxyOf.nodes.unshift(N);for(let N in this.indexes)this.indexes[N]=this.indexes[N]+p.length}return this.markDirty(),this}push(l){return l.parent=this,this.proxyOf.nodes.push(l),this}removeAll(){for(let l of this.proxyOf.nodes)l.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(l){l=this.index(l),this.proxyOf.nodes[l].parent=void 0,this.proxyOf.nodes.splice(l,1);let f;for(let p in this.indexes)f=this.indexes[p],f>=l&&(this.indexes[p]=f-1);return this.markDirty(),this}replaceValues(l,f,p){return p||(p=f,f={}),this.walkDecls(N=>{f.props&&!f.props.includes(N.prop)||f.fast&&!N.value.includes(f.fast)||(N.value=N.value.replace(l,p))}),this.markDirty(),this}some(l){return this.nodes.some(l)}walk(l){return this.each((f,p)=>{let N;try{N=l(f,p)}catch(x){throw f.addToError(x)}return N!==!1&&f.walk&&(N=f.walk(l)),N})}walkAtRules(l,f){return f?l instanceof RegExp?this.walk((p,N)=>{if(p.type==="atrule"&&l.test(p.name))return f(p,N)}):this.walk((p,N)=>{if(p.type==="atrule"&&p.name===l)return f(p,N)}):(f=l,this.walk((p,N)=>{if(p.type==="atrule")return f(p,N)}))}walkComments(l){return this.walk((f,p)=>{if(f.type==="comment")return l(f,p)})}walkDecls(l,f){return f?l instanceof RegExp?this.walk((p,N)=>{if(p.type==="decl"&&l.test(p.prop))return f(p,N)}):this.walk((p,N)=>{if(p.type==="decl"&&p.prop===l)return f(p,N)}):(f=l,this.walk((p,N)=>{if(p.type==="decl")return f(p,N)}))}walkRules(l,f){return f?l instanceof RegExp?this.walk((p,N)=>{if(p.type==="rule"&&l.test(p.selector))return f(p,N)}):this.walk((p,N)=>{if(p.type==="rule"&&p.selector===l)return f(p,N)}):(f=l,this.walk((p,N)=>{if(p.type==="rule")return f(p,N)}))}}return m.registerParse=c=>{o=c},m.registerRule=c=>{h=c},m.registerAtRule=c=>{r=c},m.registerRoot=c=>{d=c},Gi=m,m.default=m,m.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,r.prototype):c.type==="rule"?Object.setPrototypeOf(c,h.prototype):c.type==="decl"?Object.setPrototypeOf(c,e.prototype):c.type==="comment"?Object.setPrototypeOf(c,t.prototype):c.type==="root"&&Object.setPrototypeOf(c,d.prototype),c[s]=!0,c.nodes&&c.nodes.forEach(l=>{m.rebuild(l)})},Gi}var Ki,Ia;function Ds(){if(Ia)return Ki;Ia=1;let t=ht();class e extends t{constructor(a){super(a),this.type="atrule"}append(...a){return this.proxyOf.nodes||(this.nodes=[]),super.append(...a)}prepend(...a){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...a)}}return Ki=e,e.default=e,t.registerAtRule(e),Ki}var Ji,Ra;function Ts(){if(Ra)return Ji;Ra=1;let t=ht(),e,i;class a extends t{constructor(r){super({type:"document",...r}),this.nodes||(this.nodes=[])}toResult(r={}){return new e(new i,this,r).stringify()}}return a.registerLazyResult=s=>{e=s},a.registerProcessor=s=>{i=s},Ji=a,a.default=a,Ji}var Zi,$a;function Ql(){if($a)return Zi;$a=1;let t="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Zi={nanoid:(a=21)=>{let s="",r=a|0;for(;r--;)s+=t[Math.random()*64|0];return s},customAlphabet:(a,s=21)=>(r=s)=>{let o="",d=r|0;for(;d--;)o+=a[Math.random()*a.length|0];return o}},Zi}var Xi,La;function yr(){if(La)return Xi;La=1;let{existsSync:t,readFileSync:e}=Ie,{dirname:i,join:a}=Ie,{SourceMapConsumer:s,SourceMapGenerator:r}=Ie;function o(h){return Buffer?Buffer.from(h,"base64").toString():window.atob(h)}class d{constructor(u,n){if(n.map===!1)return;this.loadAnnotation(u),this.inline=this.startWith(this.annotation,"data:");let m=n.map?n.map.prev:void 0,c=this.loadMap(n.from,m);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=i(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new s(this.text)),this.consumerCache}decodeInline(u){let n=/^data:application\/json;charset=utf-?8;base64,/,m=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,l=/^data:application\/json,/,f=u.match(c)||u.match(l);if(f)return decodeURIComponent(u.substr(f[0].length));let p=u.match(n)||u.match(m);if(p)return o(u.substr(p[0].length));let N=u.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+N)}getAnnotationURL(u){return u.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(u){return typeof u!="object"?!1:typeof u.mappings=="string"||typeof u._mappings=="string"||Array.isArray(u.sections)}loadAnnotation(u){let n=u.match(/\/\*\s*# sourceMappingURL=/g);if(!n)return;let m=u.lastIndexOf(n.pop()),c=u.indexOf("*/",m);m>-1&&c>-1&&(this.annotation=this.getAnnotationURL(u.substring(m,c)))}loadFile(u){if(this.root=i(u),t(u))return this.mapFile=u,e(u,"utf-8").toString().trim()}loadMap(u,n){if(n===!1)return!1;if(n){if(typeof n=="string")return n;if(typeof n=="function"){let m=n(u);if(m){let c=this.loadFile(m);if(!c)throw new Error("Unable to load previous source map: "+m.toString());return c}}else{if(n instanceof s)return r.fromSourceMap(n).toString();if(n instanceof r)return n.toString();if(this.isMap(n))return JSON.stringify(n);throw new Error("Unsupported previous source map format: "+n.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let m=this.annotation;return u&&(m=a(i(u),m)),this.loadFile(m)}}}startWith(u,n){return u?u.substr(0,n.length)===n:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Xi=d,d.default=d,Xi}var Yi,Pa;function Ei(){if(Pa)return Yi;Pa=1;let{nanoid:t}=Ql(),{isAbsolute:e,resolve:i}=Ie,{SourceMapConsumer:a,SourceMapGenerator:s}=Ie,{fileURLToPath:r,pathToFileURL:o}=Ie,d=Ps(),h=yr(),u=Ie,n=Symbol("lineToIndexCache"),m=!!(a&&s),c=!!(i&&e);function l(p){if(p[n])return p[n];let N=p.css.split(`
|
|
1564
|
+
`),x=new Array(N.length),w=0;for(let v=0,y=N.length;v<y;v++)x[v]=w,w+=N[v].length+1;return p[n]=x,x}class f{get from(){return this.file||this.id}constructor(N,x={}){if(N===null||typeof N>"u"||typeof N=="object"&&!N.toString)throw new Error(`PostCSS received ${N} instead of CSS string`);if(this.css=N.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,x.document&&(this.document=x.document.toString()),x.from&&(!c||/^\w+:\/\//.test(x.from)||e(x.from)?this.file=x.from:this.file=i(x.from)),c&&m){let w=new h(this.css,x);if(w.text){this.map=w;let v=w.consumer().file;!this.file&&v&&(this.file=this.mapResolve(v))}}this.file||(this.id="<input css "+t(6)+">"),this.map&&(this.map.file=this.from)}error(N,x,w,v={}){let y,b,_,C,I;if(x&&typeof x=="object"){let E=x,H=w;if(typeof E.offset=="number"){C=E.offset;let V=this.fromOffset(C);x=V.line,w=V.col}else x=E.line,w=E.column,C=this.fromLineAndColumn(x,w);if(typeof H.offset=="number"){_=H.offset;let V=this.fromOffset(_);b=V.line,y=V.col}else b=H.line,y=H.column,_=this.fromLineAndColumn(H.line,H.column)}else if(w)C=this.fromLineAndColumn(x,w);else{C=x;let E=this.fromOffset(C);x=E.line,w=E.col}let L=this.origin(x,w,b,y);return L?I=new d(N,L.endLine===void 0?L.line:{column:L.column,line:L.line},L.endLine===void 0?L.column:{column:L.endColumn,line:L.endLine},L.source,L.file,v.plugin):I=new d(N,b===void 0?x:{column:w,line:x},b===void 0?w:{column:y,line:b},this.css,this.file,v.plugin),I.input={column:w,endColumn:y,endLine:b,endOffset:_,line:x,offset:C,source:this.css},this.file&&(o&&(I.input.url=o(this.file).toString()),I.input.file=this.file),I}fromLineAndColumn(N,x){return l(this)[N-1]+x-1}fromOffset(N){let x=l(this),w=x[x.length-1],v=0;if(N>=w)v=x.length-1;else{let y=x.length-2,b;for(;v<y;)if(b=v+(y-v>>1),N<x[b])y=b-1;else if(N>=x[b+1])v=b+1;else{v=b;break}}return{col:N-x[v]+1,line:v+1}}mapResolve(N){return/^\w+:\/\//.test(N)?N:i(this.map.consumer().sourceRoot||this.map.root||".",N)}origin(N,x,w,v){if(!this.map)return!1;let y=this.map.consumer(),b=y.originalPositionFor({column:x,line:N});if(!b.source)return!1;let _;typeof w=="number"&&(_=y.originalPositionFor({column:v,line:w}));let C;e(b.source)?C=o(b.source):C=new URL(b.source,this.map.consumer().sourceRoot||o(this.map.mapFile));let I={column:b.column,endColumn:_&&_.column,endLine:_&&_.line,line:b.line,url:C.toString()};if(C.protocol==="file:")if(r)I.file=r(C);else throw new Error("file: protocol is not available in this PostCSS build");let L=y.sourceContentFor(b.source);return L&&(I.source=L),I}toJSON(){let N={};for(let x of["hasBOM","css","file","id"])this[x]!=null&&(N[x]=this[x]);return this.map&&(N.map={...this.map},N.map.consumerCache&&(N.map.consumerCache=void 0)),N}}return Yi=f,f.default=f,u&&u.registerInput&&u.registerInput(f),Yi}var Qi,Ba;function Xt(){if(Ba)return Qi;Ba=1;let t=ht(),e,i;class a extends t{constructor(r){super(r),this.type="root",this.nodes||(this.nodes=[])}normalize(r,o,d){let h=super.normalize(r);if(o){if(d==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(let u of h)u.raws.before=o.raws.before}return h}removeChild(r,o){let d=this.index(r);return!o&&d===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[d].raws.before),super.removeChild(r)}toResult(r={}){return new e(new i,this,r).stringify()}}return a.registerLazyResult=s=>{e=s},a.registerProcessor=s=>{i=s},Qi=a,a.default=a,t.registerRoot(a),Qi}var es,Da;function vr(){if(Da)return es;Da=1;let t={comma(e){return t.split(e,[","],!0)},space(e){let i=[" ",`
|
|
1565
|
+
`," "];return t.split(e,i)},split(e,i,a){let s=[],r="",o=!1,d=0,h=!1,u="",n=!1;for(let m of e)n?n=!1:m==="\\"?n=!0:h?m===u&&(h=!1):m==='"'||m==="'"?(h=!0,u=m):m==="("?d+=1:m===")"?d>0&&(d-=1):d===0&&i.includes(m)&&(o=!0),o?(r!==""&&s.push(r.trim()),r="",o=!1):r+=m;return(a||r!=="")&&s.push(r.trim()),s}};return es=t,t.default=t,es}var ts,Ta;function zs(){if(Ta)return ts;Ta=1;let t=ht(),e=vr();class i extends t{get selectors(){return e.comma(this.selector)}set selectors(s){let r=this.selector?this.selector.match(/,\s*/):null,o=r?r[0]:","+this.raw("between","beforeOpen");this.selector=s.join(o)}constructor(s){super(s),this.type="rule",this.nodes||(this.nodes=[])}}return ts=i,i.default=i,t.registerRule(i),ts}var is,za;function ec(){if(za)return is;za=1;let t=Ds(),e=Ci(),i=Ai(),a=Ei(),s=yr(),r=Xt(),o=zs();function d(h,u){if(Array.isArray(h))return h.map(c=>d(c));let{inputs:n,...m}=h;if(n){u=[];for(let c of n){let l={...c,__proto__:a.prototype};l.map&&(l.map={...l.map,__proto__:s.prototype}),u.push(l)}}if(m.nodes&&(m.nodes=h.nodes.map(c=>d(c,u))),m.source){let{inputId:c,...l}=m.source;m.source=l,c!=null&&(m.source.input=u[c])}if(m.type==="root")return new r(m);if(m.type==="decl")return new i(m);if(m.type==="rule")return new o(m);if(m.type==="comment")return new e(m);if(m.type==="atrule")return new t(m);throw new Error("Unknown node type: "+h.type)}return is=d,d.default=d,is}var ss,ja;function xr(){if(ja)return ss;ja=1;let{dirname:t,relative:e,resolve:i,sep:a}=Ie,{SourceMapConsumer:s,SourceMapGenerator:r}=Ie,{pathToFileURL:o}=Ie,d=Ei(),h=!!(s&&r),u=!!(t&&i&&e&&a);class n{constructor(c,l,f,p){this.stringify=c,this.mapOpts=f.map||{},this.root=l,this.opts=f,this.css=p,this.originalCSS=p,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let l=`
|
|
1561
1566
|
`;this.css.includes(`\r
|
|
1562
1567
|
`)&&(l=`\r
|
|
1563
1568
|
`),this.css+=l+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let l=this.toUrl(this.path(c.file)),f=c.root||t(c.file),p;this.mapOpts.sourcesContent===!1?(p=new s(c.text),p.sourcesContent&&(p.sourcesContent=null)):p=c.consumer(),this.map.applySourceMap(p,l,this.toUrl(this.path(f)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let l=this.root.nodes.length-1;l>=0;l--)c=this.root.nodes[l],c.type==="comment"&&c.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(l)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),u&&h&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,l=>{c+=l}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=r.fromSourceMap(c,{ignoreInvalidMapping:!0})}else this.map=new r({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new r({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,l=1,f="<no source>",p={generated:{column:0,line:0},original:{column:0,line:0},source:""},N,x;this.stringify(this.root,(w,v,y)=>{if(this.css+=w,v&&y!=="end"&&(p.generated.line=c,p.generated.column=l-1,v.source&&v.source.start?(p.source=this.sourcePath(v),p.original.line=v.source.start.line,p.original.column=v.source.start.column-1,this.map.addMapping(p)):(p.source=f,p.original.line=1,p.original.column=0,this.map.addMapping(p))),x=w.match(/\n/g),x?(c+=x.length,N=w.lastIndexOf(`
|
|
1564
|
-
`),l=w.length-N):l+=w.length,v&&y!=="start"){let b=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==b.last||b.raws.semicolon)&&(v.source&&v.source.end?(p.source=this.sourcePath(v),p.original.line=v.source.end.line,p.original.column=v.source.end.column-1,p.generated.line=c,p.generated.column=l-2,this.map.addMapping(p)):(p.source=f,p.original.line=1,p.original.column=0,p.generated.line=c,p.generated.column=l-1,this.map.addMapping(p)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!0?!1:this.previous().length?this.previous().some(l=>l.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let l=this.memoizedPaths.get(c);if(l)return l;let f=this.opts.to?t(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(f=t(i(f,this.mapOpts.annotation)));let p=e(f,c);return this.memoizedPaths.set(c,p),p}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let l=c.source.input.map;this.previousMaps.includes(l)||this.previousMaps.push(l)}});else{let c=new d(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(l=>{if(l.source){let f=l.source.input.from;if(f&&!c[f]){c[f]=!0;let p=this.usesFileUrls?this.toFileUrl(f):this.toUrl(this.path(f));this.map.setSourceContent(p,l.source.input.css)}}});else if(this.css){let l=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(l,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let l=this.memoizedFileURLs.get(c);if(l)return l;if(o){let f=o(c).toString();return this.memoizedFileURLs.set(c,f),f}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let l=this.memoizedURLs.get(c);if(l)return l;a==="\\"&&(c=c.replace(/\\/g,"/"));let f=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,f),f}}return ss=n,ss}var as,Va;function tc(){if(Va)return as;Va=1;const t=39,e=34,i=92,a=47,s=10,r=32,o=12,d=9,h=13,u=91,n=93,m=40,c=41,l=123,f=125,p=59,N=42,x=58,w=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,y=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,_=/[\da-f]/i;return as=function(I,L={}){let E=I.css.valueOf(),H=L.ignoreErrors,V,Q,re,O,ne,q,Z,te,le,Se,xe=E.length,D=0,Ce=[],fe=[];function Fe(){return D}function Re(Ae){throw I.error("Unclosed "+Ae,D)}function Oe(){return fe.length===0&&D>=xe}function $e(Ae){if(fe.length)return fe.pop();if(D>=xe)return;let it=Ae?Ae.ignoreUnclosed:!1;switch(V=E.charCodeAt(D),V){case s:case r:case d:case h:case o:{O=D;do O+=1,V=E.charCodeAt(O);while(V===r||V===s||V===d||V===h||V===o);q=["space",E.slice(D,O)],D=O-1;break}case u:case n:case l:case f:case x:case p:case c:{let st=String.fromCharCode(V);q=[st,st,D];break}case m:{if(Se=Ce.length?Ce.pop()[1]:"",le=E.charCodeAt(D+1),Se==="url"&&le!==t&&le!==e&&le!==r&&le!==s&&le!==d&&le!==o&&le!==h){O=D;do{if(Z=!1,O=E.indexOf(")",O+1),O===-1)if(H||it){O=D;break}else Re("bracket");for(te=O;E.charCodeAt(te-1)===i;)te-=1,Z=!Z}while(Z);q=["brackets",E.slice(D,O+1),D,O],D=O}else O=E.indexOf(")",D+1),Q=E.slice(D,O+1),O===-1||b.test(Q)?q=["(","(",D]:(q=["brackets",Q,D,O],D=O);break}case t:case e:{ne=V===t?"'":'"',O=D;do{if(Z=!1,O=E.indexOf(ne,O+1),O===-1)if(H||it){O=D+1;break}else Re("string");for(te=O;E.charCodeAt(te-1)===i;)te-=1,Z=!Z}while(Z);q=["string",E.slice(D,O+1),D,O],D=O;break}case w:{v.lastIndex=D+1,v.test(E),v.lastIndex===0?O=E.length-1:O=v.lastIndex-2,q=["at-word",E.slice(D,O+1),D,O],D=O;break}case i:{for(O=D,re=!0;E.charCodeAt(O+1)===i;)O+=1,re=!re;if(V=E.charCodeAt(O+1),re&&V!==a&&V!==r&&V!==s&&V!==d&&V!==h&&V!==o&&(O+=1,_.test(E.charAt(O)))){for(;_.test(E.charAt(O+1));)O+=1;E.charCodeAt(O+1)===r&&(O+=1)}q=["word",E.slice(D,O+1),D,O],D=O;break}default:{V===a&&E.charCodeAt(D+1)===N?(O=E.indexOf("*/",D+2)+1,O===0&&(H||it?O=E.length:Re("comment")),q=["comment",E.slice(D,O+1),D,O],D=O):(y.lastIndex=D+1,y.test(E),y.lastIndex===0?O=E.length-1:O=y.lastIndex-2,q=["word",E.slice(D,O+1),D,O],Ce.push(q),D=O);break}}return D++,q}function Et(Ae){fe.push(Ae)}return{back:Et,endOfFile:Oe,nextToken:$e,position:Fe}},as}var rs,Fa;function ic(){if(Fa)return rs;Fa=1;let t=Ts(),e=Ci(),i=Ai(),a=Xt(),s=zs(),r=tc();const o={empty:!0,space:!0};function d(u){for(let n=u.length-1;n>=0;n--){let m=u[n],c=m[3]||m[2];if(c)return c}}class h{constructor(n){this.input=n,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:n,start:{column:1,line:1,offset:0}}}atrule(n){let m=new t;m.name=n[1].slice(1),m.name===""&&this.unnamedAtrule(m,n),this.init(m,n[2]);let c,l,f,p=!1,N=!1,x=[],w=[];for(;!this.tokenizer.endOfFile();){if(n=this.tokenizer.nextToken(),c=n[0],c==="("||c==="["?w.push(c==="("?")":"]"):c==="{"&&w.length>0?w.push("}"):c===w[w.length-1]&&w.pop(),w.length===0)if(c===";"){m.source.end=this.getPosition(n[2]),m.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){N=!0;break}else if(c==="}"){if(x.length>0){for(f=x.length-1,l=x[f];l&&l[0]==="space";)l=x[--f];l&&(m.source.end=this.getPosition(l[3]||l[2]),m.source.end.offset++)}this.end(n);break}else x.push(n);else x.push(n);if(this.tokenizer.endOfFile()){p=!0;break}}m.raws.between=this.spacesAndCommentsFromEnd(x),x.length?(m.raws.afterName=this.spacesAndCommentsFromStart(x),this.raw(m,"params",x),p&&(n=x[x.length-1],m.source.end=this.getPosition(n[3]||n[2]),m.source.end.offset++,this.spaces=m.raws.between,m.raws.between="")):(m.raws.afterName="",m.params=""),N&&(m.nodes=[],this.current=m)}checkMissedSemicolon(n){let m=this.colon(n);if(m===!1)return;let c=0,l;for(let f=m-1;f>=0&&(l=n[f],!(l[0]!=="space"&&(c+=1,c===2)));f--);throw this.input.error("Missed semicolon",l[0]==="word"?l[3]+1:l[2])}colon(n){let m=0,c,l,f;for(let[p,N]of n.entries()){if(l=N,f=l[0],f==="("&&(m+=1),f===")"&&(m-=1),m===0&&f===":")if(!c)this.doubleColon(l);else{if(c[0]==="word"&&c[1]==="progid")continue;return p}c=l}return!1}comment(n){let m=new e;this.init(m,n[2]),m.source.end=this.getPosition(n[3]||n[2]),m.source.end.offset++;let c=n[1].slice(2,-2);if(/^\s*$/.test(c))m.text="",m.raws.left=c,m.raws.right="";else{let l=c.match(/^(\s*)([^]*\S)(\s*)$/);m.text=l[2],m.raws.left=l[1],m.raws.right=l[3]}}createTokenizer(){this.tokenizer=r(this.input)}decl(n,m){let c=new i;this.init(c,n[0][2]);let l=n[n.length-1];for(l[0]===";"&&(this.semicolon=!0,n.pop()),c.source.end=this.getPosition(l[3]||l[2]||d(n)),c.source.end.offset++;n[0][0]!=="word";)n.length===1&&this.unknownWord(n),c.raws.before+=n.shift()[1];for(c.source.start=this.getPosition(n[0][2]),c.prop="";n.length;){let w=n[0][0];if(w===":"||w==="space"||w==="comment")break;c.prop+=n.shift()[1]}c.raws.between="";let f;for(;n.length;)if(f=n.shift(),f[0]===":"){c.raws.between+=f[1];break}else f[0]==="word"&&/\w/.test(f[1])&&this.unknownWord([f]),c.raws.between+=f[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let p=[],N;for(;n.length&&(N=n[0][0],!(N!=="space"&&N!=="comment"));)p.push(n.shift());this.precheckMissedSemicolon(n);for(let w=n.length-1;w>=0;w--){if(f=n[w],f[1].toLowerCase()==="!important"){c.important=!0;let v=this.stringFrom(n,w);v=this.spacesFromEnd(n)+v,v!==" !important"&&(c.raws.important=v);break}else if(f[1].toLowerCase()==="important"){let v=n.slice(0),y="";for(let b=w;b>0;b--){let _=v[b][0];if(y.trim().startsWith("!")&&_!=="space")break;y=v.pop()[1]+y}y.trim().startsWith("!")&&(c.important=!0,c.raws.important=y,n=v)}if(f[0]!=="space"&&f[0]!=="comment")break}n.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(c.raws.between+=p.map(w=>w[1]).join(""),p=[]),this.raw(c,"value",p.concat(n),m),c.value.includes(":")&&!m&&this.checkMissedSemicolon(n)}doubleColon(n){throw this.input.error("Double colon",{offset:n[2]},{offset:n[2]+n[1].length})}emptyRule(n){let m=new s;this.init(m,n[2]),m.selector="",m.raws.between="",this.current=m}end(n){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(n[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(n)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(n){if(this.spaces+=n[1],this.current.nodes){let m=this.current.nodes[this.current.nodes.length-1];m&&m.type==="rule"&&!m.raws.ownSemicolon&&(m.raws.ownSemicolon=this.spaces,this.spaces="",m.source.end=this.getPosition(n[2]),m.source.end.offset+=m.raws.ownSemicolon.length)}}getPosition(n){let m=this.input.fromOffset(n);return{column:m.col,line:m.line,offset:n}}init(n,m){this.current.push(n),n.source={input:this.input,start:this.getPosition(m)},n.raws.before=this.spaces,this.spaces="",n.type!=="comment"&&(this.semicolon=!1)}other(n){let m=!1,c=null,l=!1,f=null,p=[],N=n[1].startsWith("--"),x=[],w=n;for(;w;){if(c=w[0],x.push(w),c==="("||c==="[")f||(f=w),p.push(c==="("?")":"]");else if(N&&l&&c==="{")f||(f=w),p.push("}");else if(p.length===0)if(c===";")if(l){this.decl(x,N);return}else break;else if(c==="{"){this.rule(x);return}else if(c==="}"){this.tokenizer.back(x.pop()),m=!0;break}else c===":"&&(l=!0);else c===p[p.length-1]&&(p.pop(),p.length===0&&(f=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(m=!0),p.length>0&&this.unclosedBracket(f),m&&l){if(!N)for(;x.length&&(w=x[x.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(x.pop());this.decl(x,N)}else this.unknownWord(x)}parse(){let n;for(;!this.tokenizer.endOfFile();)switch(n=this.tokenizer.nextToken(),n[0]){case"space":this.spaces+=n[1];break;case";":this.freeSemicolon(n);break;case"}":this.end(n);break;case"comment":this.comment(n);break;case"at-word":this.atrule(n);break;case"{":this.emptyRule(n);break;default:this.other(n);break}this.endFile()}precheckMissedSemicolon(){}raw(n,m,c,l){let f,p,N=c.length,x="",w=!0,v,y;for(let b=0;b<N;b+=1)f=c[b],p=f[0],p==="space"&&b===N-1&&!l?w=!1:p==="comment"?(y=c[b-1]?c[b-1][0]:"empty",v=c[b+1]?c[b+1][0]:"empty",!o[y]&&!o[v]?x.slice(-1)===","?w=!1:x+=f[1]:w=!1):x+=f[1];if(!w){let b=c.reduce((_,C)=>_+C[1],"");n.raws[m]={raw:b,value:x}}n[m]=x}rule(n){n.pop();let m=new s;this.init(m,n[0][2]),m.raws.between=this.spacesAndCommentsFromEnd(n),this.raw(m,"selector",n),this.current=m}spacesAndCommentsFromEnd(n){let m,c="";for(;n.length&&(m=n[n.length-1][0],!(m!=="space"&&m!=="comment"));)c=n.pop()[1]+c;return c}spacesAndCommentsFromStart(n){let m,c="";for(;n.length&&(m=n[0][0],!(m!=="space"&&m!=="comment"));)c+=n.shift()[1];return c}spacesFromEnd(n){let m,c="";for(;n.length&&(m=n[n.length-1][0],m==="space");)c=n.pop()[1]+c;return c}stringFrom(n,m){let c="";for(let l=m;l<n.length;l++)c+=n[l][1];return n.splice(m,n.length-m),c}unclosedBlock(){let n=this.current.source.start;throw this.input.error("Unclosed block",n.line,n.column)}unclosedBracket(n){throw this.input.error("Unclosed bracket",{offset:n[2]},{offset:n[2]+1})}unexpectedClose(n){throw this.input.error("Unexpected }",{offset:n[2]},{offset:n[2]+1})}unknownWord(n){throw this.input.error("Unknown word "+n[0][1],{offset:n[0][2]},{offset:n[0][2]+n[0][1].length})}unnamedAtrule(n,m){throw this.input.error("At-rule without name",{offset:m[2]},{offset:m[2]+m[1].length})}}return rs=h,rs}var ns,Ha;function js(){if(Ha)return ns;Ha=1;let t=ht(),e=Ei(),i=ic();function a(s,r){let o=new e(s,r),d=new i(o);try{d.parse()}catch(h){throw h}return d.root}return ns=a,a.default=a,t.registerParse(a),ns}var os,qa;function wr(){if(qa)return os;qa=1;class t{constructor(i,a={}){if(this.type="warning",this.text=i,a.node&&a.node.source){let s=a.node.rangeBy(a);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in a)this[s]=a[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return os=t,t.default=t,os}var ls,Ua;function Vs(){if(Ua)return ls;Ua=1;let t=wr();class e{get content(){return this.css}constructor(a,s,r){this.processor=a,this.messages=[],this.root=s,this.opts=r,this.css="",this.map=void 0}toString(){return this.css}warn(a,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let r=new t(a,s);return this.messages.push(r),r}warnings(){return this.messages.filter(a=>a.type==="warning")}}return ls=e,e.default=e,ls}var cs,Wa;function _r(){if(Wa)return cs;Wa=1;let t=ht(),e=Ds(),i=xr(),a=js(),s=Vs(),r=Xt(),o=_i(),{isClean:d,my:h}=Bs();const u={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},n={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},m={Once:!0,postcssPlugin:!0,prepare:!0},c=0;function l(v){return typeof v=="object"&&typeof v.then=="function"}function f(v){let y=!1,b=u[v.type];return v.type==="decl"?y=v.prop.toLowerCase():v.type==="atrule"&&(y=v.name.toLowerCase()),y&&v.append?[b,b+"-"+y,c,b+"Exit",b+"Exit-"+y]:y?[b,b+"-"+y,b+"Exit",b+"Exit-"+y]:v.append?[b,c,b+"Exit"]:[b,b+"Exit"]}function p(v){let y;return v.type==="document"?y=["Document",c,"DocumentExit"]:v.type==="root"?y=["Root",c,"RootExit"]:y=f(v),{eventIndex:0,events:y,iterator:0,node:v,visitorIndex:0,visitors:[]}}function N(v){return v[d]=!1,v.nodes&&v.nodes.forEach(y=>N(y)),v}let x={};class w{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(y,b,_){this.stringified=!1,this.processed=!1;let C;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))C=N(b);else if(b instanceof w||b instanceof s)C=N(b.root),b.map&&(typeof _.map>"u"&&(_.map={}),_.map.inline||(_.map.inline=!1),_.map.prev=b.map);else{let I=a;_.syntax&&(I=_.syntax.parse),_.parser&&(I=_.parser),I.parse&&(I=I.parse);try{C=I(b,_)}catch(L){this.processed=!0,this.error=L}C&&!C[h]&&t.rebuild(C)}this.result=new s(y,C,_),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(I=>typeof I=="object"&&I.prepare?{...I,...I.prepare(this.result)}:I)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,b){let _=this.result.lastPlugin;try{b&&b.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=_.postcssPlugin,y.setMessage()):_.postcssVersion}catch(C){console&&console.error&&console.error(C)}return y}prepareVisitors(){this.listeners={};let y=(b,_,C)=>{this.listeners[_]||(this.listeners[_]=[]),this.listeners[_].push([b,C])};for(let b of this.plugins)if(typeof b=="object")for(let _ in b){if(!n[_]&&/^[A-Z]/.test(_))throw new Error(`Unknown event ${_} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!m[_])if(typeof b[_]=="object")for(let C in b[_])C==="*"?y(b,_,b[_][C]):y(b,_+"-"+C.toLowerCase(),b[_][C]);else typeof b[_]=="function"&&y(b,_,b[_])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let b=this.plugins[y],_=this.runOnRoot(b);if(l(_))try{await _}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[d];){y[d]=!0;let b=[p(y)];for(;b.length>0;){let _=this.visitTick(b);if(l(_))try{await _}catch(C){let I=b[b.length-1].node;throw this.handleError(C,I)}}}if(this.listeners.OnceExit)for(let[b,_]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(y.type==="document"){let C=y.nodes.map(I=>_(I,this.helpers));await Promise.all(C)}else await _(y,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(_=>y.Once(_,this.helpers));return l(b[0])?Promise.all(b):b}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(b){throw this.handleError(b)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,b=o;y.syntax&&(b=y.syntax.stringify),y.stringifier&&(b=y.stringifier),b.stringify&&(b=b.stringify);let C=new i(b,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let b=this.runOnRoot(y);if(l(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[d];)y[d]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let b of y.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,b){return this.async().then(y,b)}toString(){return this.css}visitSync(y,b){for(let[_,C]of y){this.result.lastPlugin=_;let I;try{I=C(b,this.helpers)}catch(L){throw this.handleError(L,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(l(I))throw this.getAsyncError()}}visitTick(y){let b=y[y.length-1],{node:_,visitors:C}=b;if(_.type!=="root"&&_.type!=="document"&&!_.parent){y.pop();return}if(C.length>0&&b.visitorIndex<C.length){let[L,E]=C[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===C.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=L;try{return E(_.toProxy(),this.helpers)}catch(H){throw this.handleError(H,_)}}if(b.iterator!==0){let L=b.iterator,E;for(;E=_.nodes[_.indexes[L]];)if(_.indexes[L]+=1,!E[d]){E[d]=!0,y.push(p(E));return}b.iterator=0,delete _.indexes[L]}let I=b.events;for(;b.eventIndex<I.length;){let L=I[b.eventIndex];if(b.eventIndex+=1,L===c){_.nodes&&_.nodes.length&&(_[d]=!0,b.iterator=_.getIterator());return}else if(this.listeners[L]){b.visitors=this.listeners[L];return}}y.pop()}walkSync(y){y[d]=!0;let b=f(y);for(let _ of b)if(_===c)y.nodes&&y.each(C=>{C[d]||this.walkSync(C)});else{let C=this.listeners[_];if(C&&this.visitSync(C,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return w.registerPostcss=v=>{x=v},cs=w,w.default=w,r.registerLazyResult(w),e.registerLazyResult(w),cs}var ms,Ga;function sc(){if(Ga)return ms;Ga=1;let t=xr(),e=js();const i=Vs();let a=_i();class s{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let o,d=e;try{o=d(this._css,this._opts)}catch(h){this.error=h}if(this.error)throw this.error;return this._root=o,o}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(o,d,h){d=d.toString(),this.stringified=!1,this._processor=o,this._css=d,this._opts=h,this._map=void 0;let u,n=a;this.result=new i(this._processor,u,this._opts),this.result.css=d;let m=this;Object.defineProperty(this.result,"root",{get(){return m.root}});let c=new t(n,u,this._opts,d);if(c.isMap()){let[l,f]=c.generate();l&&(this.result.css=l),f&&(this.result.map=f)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(o){return this.async().catch(o)}finally(o){return this.async().then(o,o)}sync(){if(this.error)throw this.error;return this.result}then(o,d){return this.async().then(o,d)}toString(){return this._css}warnings(){return[]}}return ms=s,s.default=s,ms}var ds,Ka;function ac(){if(Ka)return ds;Ka=1;let t=Ds(),e=_r(),i=sc(),a=Xt();class s{constructor(o=[]){this.version="8.5.6",this.plugins=this.normalize(o)}normalize(o){let d=[];for(let h of o)if(h.postcss===!0?h=h():h.postcss&&(h=h.postcss),typeof h=="object"&&Array.isArray(h.plugins))d=d.concat(h.plugins);else if(typeof h=="object"&&h.postcssPlugin)d.push(h);else if(typeof h=="function")d.push(h);else if(!(typeof h=="object"&&(h.parse||h.stringify)))throw new Error(h+" is not a PostCSS plugin");return d}process(o,d={}){return!this.plugins.length&&!d.parser&&!d.stringifier&&!d.syntax?new i(this,o,d):new e(this,o,d)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}}return ds=s,s.default=s,a.registerProcessor(s),t.registerProcessor(s),ds}var us,Ja;function rc(){if(Ja)return us;Ja=1;var t={};let e=Ts(),i=Ci(),a=ht(),s=Ps(),r=Ai(),o=Ds(),d=ec(),h=Ei(),u=_r(),n=vr(),m=Si(),c=js(),l=ac(),f=Vs(),p=Xt(),N=zs(),x=_i(),w=wr();function v(...y){return y.length===1&&Array.isArray(y[0])&&(y=y[0]),new l(y)}return v.plugin=function(b,_){let C=!1;function I(...E){console&&console.warn&&!C&&(C=!0,console.warn(b+`: postcss.plugin was deprecated. Migration guide:
|
|
1569
|
+
`),l=w.length-N):l+=w.length,v&&y!=="start"){let b=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==b.last||b.raws.semicolon)&&(v.source&&v.source.end?(p.source=this.sourcePath(v),p.original.line=v.source.end.line,p.original.column=v.source.end.column-1,p.generated.line=c,p.generated.column=l-2,this.map.addMapping(p)):(p.source=f,p.original.line=1,p.original.column=0,p.generated.line=c,p.generated.column=l-1,this.map.addMapping(p)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!0?!1:this.previous().length?this.previous().some(l=>l.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let l=this.memoizedPaths.get(c);if(l)return l;let f=this.opts.to?t(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(f=t(i(f,this.mapOpts.annotation)));let p=e(f,c);return this.memoizedPaths.set(c,p),p}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let l=c.source.input.map;this.previousMaps.includes(l)||this.previousMaps.push(l)}});else{let c=new d(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(l=>{if(l.source){let f=l.source.input.from;if(f&&!c[f]){c[f]=!0;let p=this.usesFileUrls?this.toFileUrl(f):this.toUrl(this.path(f));this.map.setSourceContent(p,l.source.input.css)}}});else if(this.css){let l=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(l,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let l=this.memoizedFileURLs.get(c);if(l)return l;if(o){let f=o(c).toString();return this.memoizedFileURLs.set(c,f),f}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let l=this.memoizedURLs.get(c);if(l)return l;a==="\\"&&(c=c.replace(/\\/g,"/"));let f=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,f),f}}return ss=n,ss}var as,Va;function tc(){if(Va)return as;Va=1;const t=39,e=34,i=92,a=47,s=10,r=32,o=12,d=9,h=13,u=91,n=93,m=40,c=41,l=123,f=125,p=59,N=42,x=58,w=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,y=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,_=/[\da-f]/i;return as=function(I,L={}){let E=I.css.valueOf(),H=L.ignoreErrors,V,Q,re,O,ne,q,Z,te,le,Se,xe=E.length,T=0,Ce=[],pe=[];function Fe(){return T}function Re(Ae){throw I.error("Unclosed "+Ae,T)}function Oe(){return pe.length===0&&T>=xe}function $e(Ae){if(pe.length)return pe.pop();if(T>=xe)return;let it=Ae?Ae.ignoreUnclosed:!1;switch(V=E.charCodeAt(T),V){case s:case r:case d:case h:case o:{O=T;do O+=1,V=E.charCodeAt(O);while(V===r||V===s||V===d||V===h||V===o);q=["space",E.slice(T,O)],T=O-1;break}case u:case n:case l:case f:case x:case p:case c:{let st=String.fromCharCode(V);q=[st,st,T];break}case m:{if(Se=Ce.length?Ce.pop()[1]:"",le=E.charCodeAt(T+1),Se==="url"&&le!==t&&le!==e&&le!==r&&le!==s&&le!==d&&le!==o&&le!==h){O=T;do{if(Z=!1,O=E.indexOf(")",O+1),O===-1)if(H||it){O=T;break}else Re("bracket");for(te=O;E.charCodeAt(te-1)===i;)te-=1,Z=!Z}while(Z);q=["brackets",E.slice(T,O+1),T,O],T=O}else O=E.indexOf(")",T+1),Q=E.slice(T,O+1),O===-1||b.test(Q)?q=["(","(",T]:(q=["brackets",Q,T,O],T=O);break}case t:case e:{ne=V===t?"'":'"',O=T;do{if(Z=!1,O=E.indexOf(ne,O+1),O===-1)if(H||it){O=T+1;break}else Re("string");for(te=O;E.charCodeAt(te-1)===i;)te-=1,Z=!Z}while(Z);q=["string",E.slice(T,O+1),T,O],T=O;break}case w:{v.lastIndex=T+1,v.test(E),v.lastIndex===0?O=E.length-1:O=v.lastIndex-2,q=["at-word",E.slice(T,O+1),T,O],T=O;break}case i:{for(O=T,re=!0;E.charCodeAt(O+1)===i;)O+=1,re=!re;if(V=E.charCodeAt(O+1),re&&V!==a&&V!==r&&V!==s&&V!==d&&V!==h&&V!==o&&(O+=1,_.test(E.charAt(O)))){for(;_.test(E.charAt(O+1));)O+=1;E.charCodeAt(O+1)===r&&(O+=1)}q=["word",E.slice(T,O+1),T,O],T=O;break}default:{V===a&&E.charCodeAt(T+1)===N?(O=E.indexOf("*/",T+2)+1,O===0&&(H||it?O=E.length:Re("comment")),q=["comment",E.slice(T,O+1),T,O],T=O):(y.lastIndex=T+1,y.test(E),y.lastIndex===0?O=E.length-1:O=y.lastIndex-2,q=["word",E.slice(T,O+1),T,O],Ce.push(q),T=O);break}}return T++,q}function Et(Ae){pe.push(Ae)}return{back:Et,endOfFile:Oe,nextToken:$e,position:Fe}},as}var rs,Fa;function ic(){if(Fa)return rs;Fa=1;let t=Ds(),e=Ci(),i=Ai(),a=Xt(),s=zs(),r=tc();const o={empty:!0,space:!0};function d(u){for(let n=u.length-1;n>=0;n--){let m=u[n],c=m[3]||m[2];if(c)return c}}class h{constructor(n){this.input=n,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:n,start:{column:1,line:1,offset:0}}}atrule(n){let m=new t;m.name=n[1].slice(1),m.name===""&&this.unnamedAtrule(m,n),this.init(m,n[2]);let c,l,f,p=!1,N=!1,x=[],w=[];for(;!this.tokenizer.endOfFile();){if(n=this.tokenizer.nextToken(),c=n[0],c==="("||c==="["?w.push(c==="("?")":"]"):c==="{"&&w.length>0?w.push("}"):c===w[w.length-1]&&w.pop(),w.length===0)if(c===";"){m.source.end=this.getPosition(n[2]),m.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){N=!0;break}else if(c==="}"){if(x.length>0){for(f=x.length-1,l=x[f];l&&l[0]==="space";)l=x[--f];l&&(m.source.end=this.getPosition(l[3]||l[2]),m.source.end.offset++)}this.end(n);break}else x.push(n);else x.push(n);if(this.tokenizer.endOfFile()){p=!0;break}}m.raws.between=this.spacesAndCommentsFromEnd(x),x.length?(m.raws.afterName=this.spacesAndCommentsFromStart(x),this.raw(m,"params",x),p&&(n=x[x.length-1],m.source.end=this.getPosition(n[3]||n[2]),m.source.end.offset++,this.spaces=m.raws.between,m.raws.between="")):(m.raws.afterName="",m.params=""),N&&(m.nodes=[],this.current=m)}checkMissedSemicolon(n){let m=this.colon(n);if(m===!1)return;let c=0,l;for(let f=m-1;f>=0&&(l=n[f],!(l[0]!=="space"&&(c+=1,c===2)));f--);throw this.input.error("Missed semicolon",l[0]==="word"?l[3]+1:l[2])}colon(n){let m=0,c,l,f;for(let[p,N]of n.entries()){if(l=N,f=l[0],f==="("&&(m+=1),f===")"&&(m-=1),m===0&&f===":")if(!c)this.doubleColon(l);else{if(c[0]==="word"&&c[1]==="progid")continue;return p}c=l}return!1}comment(n){let m=new e;this.init(m,n[2]),m.source.end=this.getPosition(n[3]||n[2]),m.source.end.offset++;let c=n[1].slice(2,-2);if(/^\s*$/.test(c))m.text="",m.raws.left=c,m.raws.right="";else{let l=c.match(/^(\s*)([^]*\S)(\s*)$/);m.text=l[2],m.raws.left=l[1],m.raws.right=l[3]}}createTokenizer(){this.tokenizer=r(this.input)}decl(n,m){let c=new i;this.init(c,n[0][2]);let l=n[n.length-1];for(l[0]===";"&&(this.semicolon=!0,n.pop()),c.source.end=this.getPosition(l[3]||l[2]||d(n)),c.source.end.offset++;n[0][0]!=="word";)n.length===1&&this.unknownWord(n),c.raws.before+=n.shift()[1];for(c.source.start=this.getPosition(n[0][2]),c.prop="";n.length;){let w=n[0][0];if(w===":"||w==="space"||w==="comment")break;c.prop+=n.shift()[1]}c.raws.between="";let f;for(;n.length;)if(f=n.shift(),f[0]===":"){c.raws.between+=f[1];break}else f[0]==="word"&&/\w/.test(f[1])&&this.unknownWord([f]),c.raws.between+=f[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let p=[],N;for(;n.length&&(N=n[0][0],!(N!=="space"&&N!=="comment"));)p.push(n.shift());this.precheckMissedSemicolon(n);for(let w=n.length-1;w>=0;w--){if(f=n[w],f[1].toLowerCase()==="!important"){c.important=!0;let v=this.stringFrom(n,w);v=this.spacesFromEnd(n)+v,v!==" !important"&&(c.raws.important=v);break}else if(f[1].toLowerCase()==="important"){let v=n.slice(0),y="";for(let b=w;b>0;b--){let _=v[b][0];if(y.trim().startsWith("!")&&_!=="space")break;y=v.pop()[1]+y}y.trim().startsWith("!")&&(c.important=!0,c.raws.important=y,n=v)}if(f[0]!=="space"&&f[0]!=="comment")break}n.some(w=>w[0]!=="space"&&w[0]!=="comment")&&(c.raws.between+=p.map(w=>w[1]).join(""),p=[]),this.raw(c,"value",p.concat(n),m),c.value.includes(":")&&!m&&this.checkMissedSemicolon(n)}doubleColon(n){throw this.input.error("Double colon",{offset:n[2]},{offset:n[2]+n[1].length})}emptyRule(n){let m=new s;this.init(m,n[2]),m.selector="",m.raws.between="",this.current=m}end(n){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(n[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(n)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(n){if(this.spaces+=n[1],this.current.nodes){let m=this.current.nodes[this.current.nodes.length-1];m&&m.type==="rule"&&!m.raws.ownSemicolon&&(m.raws.ownSemicolon=this.spaces,this.spaces="",m.source.end=this.getPosition(n[2]),m.source.end.offset+=m.raws.ownSemicolon.length)}}getPosition(n){let m=this.input.fromOffset(n);return{column:m.col,line:m.line,offset:n}}init(n,m){this.current.push(n),n.source={input:this.input,start:this.getPosition(m)},n.raws.before=this.spaces,this.spaces="",n.type!=="comment"&&(this.semicolon=!1)}other(n){let m=!1,c=null,l=!1,f=null,p=[],N=n[1].startsWith("--"),x=[],w=n;for(;w;){if(c=w[0],x.push(w),c==="("||c==="[")f||(f=w),p.push(c==="("?")":"]");else if(N&&l&&c==="{")f||(f=w),p.push("}");else if(p.length===0)if(c===";")if(l){this.decl(x,N);return}else break;else if(c==="{"){this.rule(x);return}else if(c==="}"){this.tokenizer.back(x.pop()),m=!0;break}else c===":"&&(l=!0);else c===p[p.length-1]&&(p.pop(),p.length===0&&(f=null));w=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(m=!0),p.length>0&&this.unclosedBracket(f),m&&l){if(!N)for(;x.length&&(w=x[x.length-1][0],!(w!=="space"&&w!=="comment"));)this.tokenizer.back(x.pop());this.decl(x,N)}else this.unknownWord(x)}parse(){let n;for(;!this.tokenizer.endOfFile();)switch(n=this.tokenizer.nextToken(),n[0]){case"space":this.spaces+=n[1];break;case";":this.freeSemicolon(n);break;case"}":this.end(n);break;case"comment":this.comment(n);break;case"at-word":this.atrule(n);break;case"{":this.emptyRule(n);break;default:this.other(n);break}this.endFile()}precheckMissedSemicolon(){}raw(n,m,c,l){let f,p,N=c.length,x="",w=!0,v,y;for(let b=0;b<N;b+=1)f=c[b],p=f[0],p==="space"&&b===N-1&&!l?w=!1:p==="comment"?(y=c[b-1]?c[b-1][0]:"empty",v=c[b+1]?c[b+1][0]:"empty",!o[y]&&!o[v]?x.slice(-1)===","?w=!1:x+=f[1]:w=!1):x+=f[1];if(!w){let b=c.reduce((_,C)=>_+C[1],"");n.raws[m]={raw:b,value:x}}n[m]=x}rule(n){n.pop();let m=new s;this.init(m,n[0][2]),m.raws.between=this.spacesAndCommentsFromEnd(n),this.raw(m,"selector",n),this.current=m}spacesAndCommentsFromEnd(n){let m,c="";for(;n.length&&(m=n[n.length-1][0],!(m!=="space"&&m!=="comment"));)c=n.pop()[1]+c;return c}spacesAndCommentsFromStart(n){let m,c="";for(;n.length&&(m=n[0][0],!(m!=="space"&&m!=="comment"));)c+=n.shift()[1];return c}spacesFromEnd(n){let m,c="";for(;n.length&&(m=n[n.length-1][0],m==="space");)c=n.pop()[1]+c;return c}stringFrom(n,m){let c="";for(let l=m;l<n.length;l++)c+=n[l][1];return n.splice(m,n.length-m),c}unclosedBlock(){let n=this.current.source.start;throw this.input.error("Unclosed block",n.line,n.column)}unclosedBracket(n){throw this.input.error("Unclosed bracket",{offset:n[2]},{offset:n[2]+1})}unexpectedClose(n){throw this.input.error("Unexpected }",{offset:n[2]},{offset:n[2]+1})}unknownWord(n){throw this.input.error("Unknown word "+n[0][1],{offset:n[0][2]},{offset:n[0][2]+n[0][1].length})}unnamedAtrule(n,m){throw this.input.error("At-rule without name",{offset:m[2]},{offset:m[2]+m[1].length})}}return rs=h,rs}var ns,Ha;function js(){if(Ha)return ns;Ha=1;let t=ht(),e=Ei(),i=ic();function a(s,r){let o=new e(s,r),d=new i(o);try{d.parse()}catch(h){throw h}return d.root}return ns=a,a.default=a,t.registerParse(a),ns}var os,qa;function wr(){if(qa)return os;qa=1;class t{constructor(i,a={}){if(this.type="warning",this.text=i,a.node&&a.node.source){let s=a.node.rangeBy(a);this.line=s.start.line,this.column=s.start.column,this.endLine=s.end.line,this.endColumn=s.end.column}for(let s in a)this[s]=a[s]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return os=t,t.default=t,os}var ls,Ua;function Vs(){if(Ua)return ls;Ua=1;let t=wr();class e{get content(){return this.css}constructor(a,s,r){this.processor=a,this.messages=[],this.root=s,this.opts=r,this.css="",this.map=void 0}toString(){return this.css}warn(a,s={}){s.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(s.plugin=this.lastPlugin.postcssPlugin);let r=new t(a,s);return this.messages.push(r),r}warnings(){return this.messages.filter(a=>a.type==="warning")}}return ls=e,e.default=e,ls}var cs,Wa;function _r(){if(Wa)return cs;Wa=1;let t=ht(),e=Ts(),i=xr(),a=js(),s=Vs(),r=Xt(),o=_i(),{isClean:d,my:h}=Bs();const u={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},n={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},m={Once:!0,postcssPlugin:!0,prepare:!0},c=0;function l(v){return typeof v=="object"&&typeof v.then=="function"}function f(v){let y=!1,b=u[v.type];return v.type==="decl"?y=v.prop.toLowerCase():v.type==="atrule"&&(y=v.name.toLowerCase()),y&&v.append?[b,b+"-"+y,c,b+"Exit",b+"Exit-"+y]:y?[b,b+"-"+y,b+"Exit",b+"Exit-"+y]:v.append?[b,c,b+"Exit"]:[b,b+"Exit"]}function p(v){let y;return v.type==="document"?y=["Document",c,"DocumentExit"]:v.type==="root"?y=["Root",c,"RootExit"]:y=f(v),{eventIndex:0,events:y,iterator:0,node:v,visitorIndex:0,visitors:[]}}function N(v){return v[d]=!1,v.nodes&&v.nodes.forEach(y=>N(y)),v}let x={};class w{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(y,b,_){this.stringified=!1,this.processed=!1;let C;if(typeof b=="object"&&b!==null&&(b.type==="root"||b.type==="document"))C=N(b);else if(b instanceof w||b instanceof s)C=N(b.root),b.map&&(typeof _.map>"u"&&(_.map={}),_.map.inline||(_.map.inline=!1),_.map.prev=b.map);else{let I=a;_.syntax&&(I=_.syntax.parse),_.parser&&(I=_.parser),I.parse&&(I=I.parse);try{C=I(b,_)}catch(L){this.processed=!0,this.error=L}C&&!C[h]&&t.rebuild(C)}this.result=new s(y,C,_),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(I=>typeof I=="object"&&I.prepare?{...I,...I.prepare(this.result)}:I)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,b){let _=this.result.lastPlugin;try{b&&b.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=_.postcssPlugin,y.setMessage()):_.postcssVersion}catch(C){console&&console.error&&console.error(C)}return y}prepareVisitors(){this.listeners={};let y=(b,_,C)=>{this.listeners[_]||(this.listeners[_]=[]),this.listeners[_].push([b,C])};for(let b of this.plugins)if(typeof b=="object")for(let _ in b){if(!n[_]&&/^[A-Z]/.test(_))throw new Error(`Unknown event ${_} in ${b.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!m[_])if(typeof b[_]=="object")for(let C in b[_])C==="*"?y(b,_,b[_][C]):y(b,_+"-"+C.toLowerCase(),b[_][C]);else typeof b[_]=="function"&&y(b,_,b[_])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let b=this.plugins[y],_=this.runOnRoot(b);if(l(_))try{await _}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[d];){y[d]=!0;let b=[p(y)];for(;b.length>0;){let _=this.visitTick(b);if(l(_))try{await _}catch(C){let I=b[b.length-1].node;throw this.handleError(C,I)}}}if(this.listeners.OnceExit)for(let[b,_]of this.listeners.OnceExit){this.result.lastPlugin=b;try{if(y.type==="document"){let C=y.nodes.map(I=>_(I,this.helpers));await Promise.all(C)}else await _(y,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let b=this.result.root.nodes.map(_=>y.Once(_,this.helpers));return l(b[0])?Promise.all(b):b}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(b){throw this.handleError(b)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,b=o;y.syntax&&(b=y.syntax.stringify),y.stringifier&&(b=y.stringifier),b.stringify&&(b=b.stringify);let C=new i(b,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let b=this.runOnRoot(y);if(l(b))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[d];)y[d]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let b of y.nodes)this.visitSync(this.listeners.OnceExit,b);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,b){return this.async().then(y,b)}toString(){return this.css}visitSync(y,b){for(let[_,C]of y){this.result.lastPlugin=_;let I;try{I=C(b,this.helpers)}catch(L){throw this.handleError(L,b.proxyOf)}if(b.type!=="root"&&b.type!=="document"&&!b.parent)return!0;if(l(I))throw this.getAsyncError()}}visitTick(y){let b=y[y.length-1],{node:_,visitors:C}=b;if(_.type!=="root"&&_.type!=="document"&&!_.parent){y.pop();return}if(C.length>0&&b.visitorIndex<C.length){let[L,E]=C[b.visitorIndex];b.visitorIndex+=1,b.visitorIndex===C.length&&(b.visitors=[],b.visitorIndex=0),this.result.lastPlugin=L;try{return E(_.toProxy(),this.helpers)}catch(H){throw this.handleError(H,_)}}if(b.iterator!==0){let L=b.iterator,E;for(;E=_.nodes[_.indexes[L]];)if(_.indexes[L]+=1,!E[d]){E[d]=!0,y.push(p(E));return}b.iterator=0,delete _.indexes[L]}let I=b.events;for(;b.eventIndex<I.length;){let L=I[b.eventIndex];if(b.eventIndex+=1,L===c){_.nodes&&_.nodes.length&&(_[d]=!0,b.iterator=_.getIterator());return}else if(this.listeners[L]){b.visitors=this.listeners[L];return}}y.pop()}walkSync(y){y[d]=!0;let b=f(y);for(let _ of b)if(_===c)y.nodes&&y.each(C=>{C[d]||this.walkSync(C)});else{let C=this.listeners[_];if(C&&this.visitSync(C,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return w.registerPostcss=v=>{x=v},cs=w,w.default=w,r.registerLazyResult(w),e.registerLazyResult(w),cs}var ms,Ga;function sc(){if(Ga)return ms;Ga=1;let t=xr(),e=js();const i=Vs();let a=_i();class s{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let o,d=e;try{o=d(this._css,this._opts)}catch(h){this.error=h}if(this.error)throw this.error;return this._root=o,o}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(o,d,h){d=d.toString(),this.stringified=!1,this._processor=o,this._css=d,this._opts=h,this._map=void 0;let u,n=a;this.result=new i(this._processor,u,this._opts),this.result.css=d;let m=this;Object.defineProperty(this.result,"root",{get(){return m.root}});let c=new t(n,u,this._opts,d);if(c.isMap()){let[l,f]=c.generate();l&&(this.result.css=l),f&&(this.result.map=f)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(o){return this.async().catch(o)}finally(o){return this.async().then(o,o)}sync(){if(this.error)throw this.error;return this.result}then(o,d){return this.async().then(o,d)}toString(){return this._css}warnings(){return[]}}return ms=s,s.default=s,ms}var ds,Ka;function ac(){if(Ka)return ds;Ka=1;let t=Ts(),e=_r(),i=sc(),a=Xt();class s{constructor(o=[]){this.version="8.5.6",this.plugins=this.normalize(o)}normalize(o){let d=[];for(let h of o)if(h.postcss===!0?h=h():h.postcss&&(h=h.postcss),typeof h=="object"&&Array.isArray(h.plugins))d=d.concat(h.plugins);else if(typeof h=="object"&&h.postcssPlugin)d.push(h);else if(typeof h=="function")d.push(h);else if(!(typeof h=="object"&&(h.parse||h.stringify)))throw new Error(h+" is not a PostCSS plugin");return d}process(o,d={}){return!this.plugins.length&&!d.parser&&!d.stringifier&&!d.syntax?new i(this,o,d):new e(this,o,d)}use(o){return this.plugins=this.plugins.concat(this.normalize([o])),this}}return ds=s,s.default=s,a.registerProcessor(s),t.registerProcessor(s),ds}var us,Ja;function rc(){if(Ja)return us;Ja=1;var t={};let e=Ds(),i=Ci(),a=ht(),s=Ps(),r=Ai(),o=Ts(),d=ec(),h=Ei(),u=_r(),n=vr(),m=Si(),c=js(),l=ac(),f=Vs(),p=Xt(),N=zs(),x=_i(),w=wr();function v(...y){return y.length===1&&Array.isArray(y[0])&&(y=y[0]),new l(y)}return v.plugin=function(b,_){let C=!1;function I(...E){console&&console.warn&&!C&&(C=!0,console.warn(b+`: postcss.plugin was deprecated. Migration guide:
|
|
1565
1570
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),t.LANG&&t.LANG.startsWith("cn")&&console.warn(b+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
1566
|
-
https://www.w3ctech.com/topic/2226`));let H=_(...E);return H.postcssPlugin=b,H.postcssVersion=new l().version,H}let L;return Object.defineProperty(I,"postcss",{get(){return L||(L=I()),L}}),I.process=function(E,H,V){return v([I(V)]).process(E,H)},I},v.stringify=x,v.parse=c,v.fromJSON=d,v.list=n,v.comment=y=>new i(y),v.atRule=y=>new e(y),v.decl=y=>new r(y),v.rule=y=>new N(y),v.root=y=>new p(y),v.document=y=>new o(y),v.CssSyntaxError=s,v.Declaration=r,v.Container=a,v.Processor=l,v.Document=o,v.Comment=i,v.Warning=w,v.AtRule=e,v.Result=f,v.Input=h,v.Rule=N,v.Root=p,v.Node=m,u.registerPostcss(v),us=v,v.default=v,us}var nc=rc();const X=Nr(nc);X.stringify;X.fromJSON;X.plugin;X.parse;X.list;X.document;X.comment;X.atRule;X.rule;X.decl;X.root;X.CssSyntaxError;X.Declaration;X.Container;X.Processor;X.Document;X.Comment;X.Warning;X.AtRule;X.Result;X.Input;X.Rule;X.Root;X.Node;var hs,Za;function oc(){if(Za)return hs;Za=1;const t=(a={})=>{const s=a.prefix,r=/\s+$/.test(s)?s:`${s} `,o=a.ignoreFiles?[].concat(a.ignoreFiles):[],d=a.includeFiles?[].concat(a.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(h){const u=h.root,n=u.source.input.file;if(!(o.length&&n&&e(n,o))&&!(d.length&&n&&!e(n,d)))return{Rule(m,{result:c}){const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];m.parent&&l.includes(m.parent.name)||(m.selectors=m.selectors.map(f=>a.exclude&&i(f,a.exclude)?f:a.transform?a.transform(s,f,r+f,u.source.input.file,m):[":root","body","html"].some(p=>f.startsWith(p))?a.skipGlobalSelectors?f:f.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,s):r+f))}}}}};function e(a,s){return s.some(r=>r instanceof RegExp?r.test(a):a.includes(r))}function i(a,s){return s.some(r=>r instanceof RegExp?r.test(a):a===r)}return t.postcss=!0,hs=t,hs}var lc=oc();const cc=Nr(lc),mc="code{white-space:pre}.example{display:flex;flex-wrap:wrap;flex-direction:row;align-items:center;gap:16px}.example>*{flex:1 1 500px}.example .tab-control{overflow:hidden}.example div[role=tab]{cursor:pointer;padding:8px 16px;display:inline-block;font-size:16px;border-bottom:2px solid transparent;background-clip:padding-box;-webkit-user-select:none;user-select:none}.example div[role=tab]:hover{background-color:#1467ba14}.example div[role=tab][selected]{background-color:#1467ba21;border-bottom:2px solid #1467ba}.tab-content{margin:16px 0}.tab-content>pre{padding-top:0}.tab-content.code{max-height:500px;overflow:auto}.tab-content.code pre{margin:0}",dc="pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}";function uc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var fs,Xa;function hc(){if(Xa)return fs;Xa=1;function t(g){return g instanceof Map?g.clear=g.delete=g.set=function(){throw new Error("map is read-only")}:g instanceof Set&&(g.add=g.clear=g.delete=function(){throw new Error("set is read-only")}),Object.freeze(g),Object.getOwnPropertyNames(g).forEach(S=>{const M=g[S],F=typeof M;(F==="object"||F==="function")&&!Object.isFrozen(M)&&t(M)}),g}class e{constructor(S){S.data===void 0&&(S.data={}),this.data=S.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(g){return g.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function a(g,...S){const M=Object.create(null);for(const F in g)M[F]=g[F];return S.forEach(function(F){for(const se in F)M[se]=F[se]}),M}const s="</span>",r=g=>!!g.scope,o=(g,{prefix:S})=>{if(g.startsWith("language:"))return g.replace("language:","language-");if(g.includes(".")){const M=g.split(".");return[`${S}${M.shift()}`,...M.map((F,se)=>`${F}${"_".repeat(se+1)}`)].join(" ")}return`${S}${g}`};class d{constructor(S,M){this.buffer="",this.classPrefix=M.classPrefix,S.walk(this)}addText(S){this.buffer+=i(S)}openNode(S){if(!r(S))return;const M=o(S.scope,{prefix:this.classPrefix});this.span(M)}closeNode(S){r(S)&&(this.buffer+=s)}value(){return this.buffer}span(S){this.buffer+=`<span class="${S}">`}}const h=(g={})=>{const S={children:[]};return Object.assign(S,g),S};class u{constructor(){this.rootNode=h(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(S){this.top.children.push(S)}openNode(S){const M=h({scope:S});this.add(M),this.stack.push(M)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(S){return this.constructor._walk(S,this.rootNode)}static _walk(S,M){return typeof M=="string"?S.addText(M):M.children&&(S.openNode(M),M.children.forEach(F=>this._walk(S,F)),S.closeNode(M)),S}static _collapse(S){typeof S!="string"&&S.children&&(S.children.every(M=>typeof M=="string")?S.children=[S.children.join("")]:S.children.forEach(M=>{u._collapse(M)}))}}class n extends u{constructor(S){super(),this.options=S}addText(S){S!==""&&this.add(S)}startScope(S){this.openNode(S)}endScope(){this.closeNode()}__addSublanguage(S,M){const F=S.root;M&&(F.scope=`language:${M}`),this.add(F)}toHTML(){return new d(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function m(g){return g?typeof g=="string"?g:g.source:null}function c(g){return p("(?=",g,")")}function l(g){return p("(?:",g,")*")}function f(g){return p("(?:",g,")?")}function p(...g){return g.map(S=>m(S)).join("")}function N(g){const S=g[g.length-1];return typeof S=="object"&&S.constructor===Object?(g.splice(g.length-1,1),S):{}}function x(...g){return"("+(N(g).capture?"":"?:")+g.map(S=>m(S)).join("|")+")"}function w(g){return new RegExp(g.toString()+"|").exec("").length-1}function v(g,S){const M=g&&g.exec(S);return M&&M.index===0}const y=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function b(g,{joinWith:S}){let M=0;return g.map(F=>{M+=1;const se=M;let ae=m(F),$="";for(;ae.length>0;){const R=y.exec(ae);if(!R){$+=ae;break}$+=ae.substring(0,R.index),ae=ae.substring(R.index+R[0].length),R[0][0]==="\\"&&R[1]?$+="\\"+String(Number(R[1])+se):($+=R[0],R[0]==="("&&M++)}return $}).map(F=>`(${F})`).join(S)}const _=/\b\B/,C="[a-zA-Z]\\w*",I="[a-zA-Z_]\\w*",L="\\b\\d+(\\.\\d+)?",E="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",H="\\b(0b[01]+)",V="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Q=(g={})=>{const S=/^#![ ]*\//;return g.binary&&(g.begin=p(S,/.*\b/,g.binary,/\b.*/)),a({scope:"meta",begin:S,end:/$/,relevance:0,"on:begin":(M,F)=>{M.index!==0&&F.ignoreMatch()}},g)},re={begin:"\\\\[\\s\\S]",relevance:0},O={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[re]},ne={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[re]},q={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Z=function(g,S,M={}){const F=a({scope:"comment",begin:g,end:S,contains:[]},M);F.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const se=x("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return F.contains.push({begin:p(/[ ]+/,"(",se,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),F},te=Z("//","$"),le=Z("/\\*","\\*/"),Se=Z("#","$"),xe={scope:"number",begin:L,relevance:0},D={scope:"number",begin:E,relevance:0},Ce={scope:"number",begin:H,relevance:0},fe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[re,{begin:/\[/,end:/\]/,relevance:0,contains:[re]}]},Fe={scope:"title",begin:C,relevance:0},Re={scope:"title",begin:I,relevance:0},Oe={begin:"\\.\\s*"+I,relevance:0};var $e=Object.freeze({__proto__:null,APOS_STRING_MODE:O,BACKSLASH_ESCAPE:re,BINARY_NUMBER_MODE:Ce,BINARY_NUMBER_RE:H,COMMENT:Z,C_BLOCK_COMMENT_MODE:le,C_LINE_COMMENT_MODE:te,C_NUMBER_MODE:D,C_NUMBER_RE:E,END_SAME_AS_BEGIN:function(g){return Object.assign(g,{"on:begin":(S,M)=>{M.data._beginMatch=S[1]},"on:end":(S,M)=>{M.data._beginMatch!==S[1]&&M.ignoreMatch()}})},HASH_COMMENT_MODE:Se,IDENT_RE:C,MATCH_NOTHING_RE:_,METHOD_GUARD:Oe,NUMBER_MODE:xe,NUMBER_RE:L,PHRASAL_WORDS_MODE:q,QUOTE_STRING_MODE:ne,REGEXP_MODE:fe,RE_STARTERS_RE:V,SHEBANG:Q,TITLE_MODE:Fe,UNDERSCORE_IDENT_RE:I,UNDERSCORE_TITLE_MODE:Re});function Et(g,S){g.input[g.index-1]==="."&&S.ignoreMatch()}function Ae(g,S){g.className!==void 0&&(g.scope=g.className,delete g.className)}function it(g,S){S&&g.beginKeywords&&(g.begin="\\b("+g.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",g.__beforeBegin=Et,g.keywords=g.keywords||g.beginKeywords,delete g.beginKeywords,g.relevance===void 0&&(g.relevance=0))}function st(g,S){Array.isArray(g.illegal)&&(g.illegal=x(...g.illegal))}function Mi(g,S){if(g.match){if(g.begin||g.end)throw new Error("begin & end are not supported with match");g.begin=g.match,delete g.match}}function Oi(g,S){g.relevance===void 0&&(g.relevance=1)}const Yt=(g,S)=>{if(!g.beforeMatch)return;if(g.starts)throw new Error("beforeMatch cannot be used with starts");const M=Object.assign({},g);Object.keys(g).forEach(F=>{delete g[F]}),g.keywords=M.keywords,g.begin=p(M.beforeMatch,c(M.begin)),g.starts={relevance:0,contains:[Object.assign(M,{endsParent:!0})]},g.relevance=0,delete M.beforeMatch},Qt=["of","and","for","in","not","or","if","then","parent","list","value"],Ii="keyword";function ei(g,S,M=Ii){const F=Object.create(null);return typeof g=="string"?se(M,g.split(" ")):Array.isArray(g)?se(M,g):Object.keys(g).forEach(function(ae){Object.assign(F,ei(g[ae],S,ae))}),F;function se(ae,$){S&&($=$.map(R=>R.toLowerCase())),$.forEach(function(R){const z=R.split("|");F[z[0]]=[ae,He(z[0],z[1])]})}}function He(g,S){return S?Number(S):ft(g)?0:1}function ft(g){return Qt.includes(g.toLowerCase())}const kt={},Le=g=>{console.error(g)},pt=(g,...S)=>{console.log(`WARN: ${g}`,...S)},qe=(g,S)=>{kt[`${g}/${S}`]||(console.log(`Deprecated as of ${g}. ${S}`),kt[`${g}/${S}`]=!0)},at=new Error;function Mt(g,S,{key:M}){let F=0;const se=g[M],ae={},$={};for(let R=1;R<=S.length;R++)$[R+F]=se[R],ae[R+F]=!0,F+=w(S[R-1]);g[M]=$,g[M]._emit=ae,g[M]._multi=!0}function ti(g){if(Array.isArray(g.begin)){if(g.skip||g.excludeBegin||g.returnBegin)throw Le("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),at;if(typeof g.beginScope!="object"||g.beginScope===null)throw Le("beginScope must be object"),at;Mt(g,g.begin,{key:"beginScope"}),g.begin=b(g.begin,{joinWith:""})}}function Rr(g){if(Array.isArray(g.end)){if(g.skip||g.excludeEnd||g.returnEnd)throw Le("skip, excludeEnd, returnEnd not compatible with endScope: {}"),at;if(typeof g.endScope!="object"||g.endScope===null)throw Le("endScope must be object"),at;Mt(g,g.end,{key:"endScope"}),g.end=b(g.end,{joinWith:""})}}function $r(g){g.scope&&typeof g.scope=="object"&&g.scope!==null&&(g.beginScope=g.scope,delete g.scope)}function Lr(g){$r(g),typeof g.beginScope=="string"&&(g.beginScope={_wrap:g.beginScope}),typeof g.endScope=="string"&&(g.endScope={_wrap:g.endScope}),ti(g),Rr(g)}function Pr(g){function S($,R){return new RegExp(m($),"m"+(g.case_insensitive?"i":"")+(g.unicodeRegex?"u":"")+(R?"g":""))}class M{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(R,z){z.position=this.position++,this.matchIndexes[this.matchAt]=z,this.regexes.push([z,R]),this.matchAt+=w(R)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const R=this.regexes.map(z=>z[1]);this.matcherRe=S(b(R,{joinWith:"|"}),!0),this.lastIndex=0}exec(R){this.matcherRe.lastIndex=this.lastIndex;const z=this.matcherRe.exec(R);if(!z)return null;const me=z.findIndex((Ot,$i)=>$i>0&&Ot!==void 0),oe=this.matchIndexes[me];return z.splice(0,me),Object.assign(z,oe)}}class F{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(R){if(this.multiRegexes[R])return this.multiRegexes[R];const z=new M;return this.rules.slice(R).forEach(([me,oe])=>z.addRule(me,oe)),z.compile(),this.multiRegexes[R]=z,z}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(R,z){this.rules.push([R,z]),z.type==="begin"&&this.count++}exec(R){const z=this.getMatcher(this.regexIndex);z.lastIndex=this.lastIndex;let me=z.exec(R);if(this.resumingScanAtSamePosition()&&!(me&&me.index===this.lastIndex)){const oe=this.getMatcher(0);oe.lastIndex=this.lastIndex+1,me=oe.exec(R)}return me&&(this.regexIndex+=me.position+1,this.regexIndex===this.count&&this.considerAll()),me}}function se($){const R=new F;return $.contains.forEach(z=>R.addRule(z.begin,{rule:z,type:"begin"})),$.terminatorEnd&&R.addRule($.terminatorEnd,{type:"end"}),$.illegal&&R.addRule($.illegal,{type:"illegal"}),R}function ae($,R){const z=$;if($.isCompiled)return z;[Ae,Mi,Lr,Yt].forEach(oe=>oe($,R)),g.compilerExtensions.forEach(oe=>oe($,R)),$.__beforeBegin=null,[it,st,Oi].forEach(oe=>oe($,R)),$.isCompiled=!0;let me=null;return typeof $.keywords=="object"&&$.keywords.$pattern&&($.keywords=Object.assign({},$.keywords),me=$.keywords.$pattern,delete $.keywords.$pattern),me=me||/\w+/,$.keywords&&($.keywords=ei($.keywords,g.case_insensitive)),z.keywordPatternRe=S(me,!0),R&&($.begin||($.begin=/\B|\b/),z.beginRe=S(z.begin),!$.end&&!$.endsWithParent&&($.end=/\B|\b/),$.end&&(z.endRe=S(z.end)),z.terminatorEnd=m(z.end)||"",$.endsWithParent&&R.terminatorEnd&&(z.terminatorEnd+=($.end?"|":"")+R.terminatorEnd)),$.illegal&&(z.illegalRe=S($.illegal)),$.contains||($.contains=[]),$.contains=[].concat(...$.contains.map(function(oe){return Br(oe==="self"?$:oe)})),$.contains.forEach(function(oe){ae(oe,z)}),$.starts&&ae($.starts,R),z.matcher=se(z),z}if(g.compilerExtensions||(g.compilerExtensions=[]),g.contains&&g.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return g.classNameAliases=a(g.classNameAliases||{}),ae(g)}function Fs(g){return g?g.endsWithParent||Fs(g.starts):!1}function Br(g){return g.variants&&!g.cachedVariants&&(g.cachedVariants=g.variants.map(function(S){return a(g,{variants:null},S)})),g.cachedVariants?g.cachedVariants:Fs(g)?a(g,{starts:g.starts?a(g.starts):null}):Object.isFrozen(g)?a(g):g}var Tr="11.11.1";class Dr extends Error{constructor(S,M){super(S),this.name="HTMLInjectionError",this.html=M}}const Ri=i,Hs=a,qs=Symbol("nomatch"),zr=7,Us=function(g){const S=Object.create(null),M=Object.create(null),F=[];let se=!0;const ae="Could not find the language '{}', did you forget to load/include a language module?",$={disableAutodetect:!0,name:"Plain text",contains:[]};let R={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:n};function z(A){return R.noHighlightRe.test(A)}function me(A){let T=A.className+" ";T+=A.parentNode?A.parentNode.className:"";const W=R.languageDetectRe.exec(T);if(W){const K=Ze(W[1]);return K||(pt(ae.replace("{}",W[1])),pt("Falling back to no-highlight mode for this block.",A)),K?W[1]:"no-highlight"}return T.split(/\s+/).find(K=>z(K)||Ze(K))}function oe(A,T,W){let K="",ce="";typeof T=="object"?(K=A,W=T.ignoreIllegals,ce=T.language):(qe("10.7.0","highlight(lang, code, ...args) has been deprecated."),qe("10.7.0",`Please use highlight(code, options) instead.
|
|
1567
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),ce=A,K=
|
|
1568
|
-
`,1;if(Ti>1e5&&Ti>P.index*3)throw new Error("potential infinite loop, way more iterations than matches");return J+=U,U.length}const Te=Ze(A);if(!Te)throw Le(ae.replace("{}",A)),new Error('Unknown language: "'+A+'"');const tn=Pr(Te);let Bi="",j=K||tn;const Qs={},de=new R.__emitter(R);en();let J="",ni=0,rt=0,Ti=0,Di=!1;try{if(Te.__emitTokens)Te.__emitTokens(T,de);else{for(j.matcher.considerAll();;){Ti++,Di?Di=!1:j.matcher.considerAll(),j.matcher.lastIndex=rt;const k=j.matcher.exec(T);if(!k)break;const P=T.substring(rt,k.index),U=Ys(P,k);rt=k.index+U}Ys(T.substring(rt))}return de.finalize(),Bi=de.toHTML(),{language:A,value:Bi,relevance:ni,illegal:!1,_emitter:de,_top:j}}catch(k){if(k.message&&k.message.includes("Illegal"))return{language:A,value:Ri(T),illegal:!0,relevance:0,_illegalBy:{message:k.message,index:rt,context:T.slice(rt-100,rt+100),mode:k.mode,resultSoFar:Bi},_emitter:de};if(se)return{language:A,value:Ri(T),illegal:!1,relevance:0,errorRaised:k,_emitter:de,_top:j};throw k}}function $i(A){const T={value:Ri(A),illegal:!1,relevance:0,_top:$,_emitter:new R.__emitter(R)};return T._emitter.addText(A),T}function Li(A,T){T=T||R.languages||Object.keys(S);const W=$i(A),K=T.filter(Ze).filter(Ks).map(we=>Ot(we,A,!1));K.unshift(W);const ce=K.sort((we,Be)=>{if(we.relevance!==Be.relevance)return Be.relevance-we.relevance;if(we.language&&Be.language){if(Ze(we.language).supersetOf===Be.language)return 1;if(Ze(Be.language).supersetOf===we.language)return-1}return 0}),[Pe,Xe]=ce,ai=Pe;return ai.secondBest=Xe,ai}function jr(A,T,W){const K=T&&M[T]||W;A.classList.add("hljs"),A.classList.add(`language-${K}`)}function Pi(A){let T=null;const W=me(A);if(z(W))return;if(si("before:highlightElement",{el:A,language:W}),A.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",A);return}if(A.children.length>0&&(R.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(A)),R.throwUnescapedHTML))throw new Dr("One of your code blocks includes unescaped HTML.",A.innerHTML);T=A;const K=T.textContent,ce=W?oe(K,{language:W,ignoreIllegals:!0}):Li(K);A.innerHTML=ce.value,A.dataset.highlighted="yes",jr(A,W,ce.language),A.result={language:ce.language,re:ce.relevance,relevance:ce.relevance},ce.secondBest&&(A.secondBest={language:ce.secondBest.language,relevance:ce.secondBest.relevance}),si("after:highlightElement",{el:A,result:ce,text:K})}function Vr(A){R=Hs(R,A)}const Fr=()=>{ii(),qe("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Hr(){ii(),qe("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Ws=!1;function ii(){function A(){ii()}if(document.readyState==="loading"){Ws||window.addEventListener("DOMContentLoaded",A,!1),Ws=!0;return}document.querySelectorAll(R.cssSelector).forEach(Pi)}function qr(A,T){let W=null;try{W=T(g)}catch(K){if(Le("Language definition for '{}' could not be registered.".replace("{}",A)),se)Le(K);else throw K;W=$}W.name||(W.name=A),S[A]=W,W.rawDefinition=T.bind(null,g),W.aliases&&Gs(W.aliases,{languageName:A})}function Ur(A){delete S[A];for(const T of Object.keys(M))M[T]===A&&delete M[T]}function Wr(){return Object.keys(S)}function Ze(A){return A=(A||"").toLowerCase(),S[A]||S[M[A]]}function Gs(A,{languageName:T}){typeof A=="string"&&(A=[A]),A.forEach(W=>{M[W.toLowerCase()]=T})}function Ks(A){const T=Ze(A);return T&&!T.disableAutodetect}function Gr(A){A["before:highlightBlock"]&&!A["before:highlightElement"]&&(A["before:highlightElement"]=T=>{A["before:highlightBlock"](Object.assign({block:T.el},T))}),A["after:highlightBlock"]&&!A["after:highlightElement"]&&(A["after:highlightElement"]=T=>{A["after:highlightBlock"](Object.assign({block:T.el},T))})}function Kr(A){Gr(A),F.push(A)}function Jr(A){const T=F.indexOf(A);T!==-1&&F.splice(T,1)}function si(A,T){const W=A;F.forEach(function(K){K[W]&&K[W](T)})}function Zr(A){return qe("10.7.0","highlightBlock will be removed entirely in v12.0"),qe("10.7.0","Please use highlightElement now."),Pi(A)}Object.assign(g,{highlight:oe,highlightAuto:Li,highlightAll:ii,highlightElement:Pi,highlightBlock:Zr,configure:Vr,initHighlighting:Fr,initHighlightingOnLoad:Hr,registerLanguage:qr,unregisterLanguage:Ur,listLanguages:Wr,getLanguage:Ze,registerAliases:Gs,autoDetection:Ks,inherit:Hs,addPlugin:Kr,removePlugin:Jr}),g.debugMode=function(){se=!1},g.safeMode=function(){se=!0},g.versionString=Tr,g.regex={concat:p,lookahead:c,either:x,optional:f,anyNumberOfTimes:l};for(const A in $e)typeof $e[A]=="object"&&t($e[A]);return Object.assign(g,$e),g},gt=Us({});return gt.newInstance=()=>Us({}),fs=gt,gt.HighlightJS=gt,gt.default=gt,fs}var fc=hc();const ki=uc(fc),yi="[A-Za-z$_][0-9A-Za-z$_]*",Sr=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Cr=["true","false","null","undefined","NaN","Infinity"],Ar=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Er=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],kr=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Mr=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Or=[].concat(kr,Ar,Er);function pc(t){const e=t.regex,i=(q,{after:Z})=>{const te="</"+q[0].slice(1);return q.input.indexOf(te,Z)!==-1},a=yi,s={begin:"<>",end:"</>"},r=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(q,Z)=>{const te=q[0].length+q.index,le=q.input[te];if(le==="<"||le===","){Z.ignoreMatch();return}le===">"&&(i(q,{after:te})||Z.ignoreMatch());let Se;const xe=q.input.substring(te);if(Se=xe.match(/^\s*=/)){Z.ignoreMatch();return}if((Se=xe.match(/^\s+extends\s+/))&&Se.index===0){Z.ignoreMatch();return}}},d={$pattern:yi,keyword:Sr,literal:Cr,built_in:Or,"variable.language":Mr},h="[0-9](_?[0-9])*",u=`\\.(${h})`,n="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",m={className:"number",variants:[{begin:`(\\b(${n})((${u})|\\.)?|(${u}))[eE][+-]?(${h})\\b`},{begin:`\\b(${n})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},c={className:"subst",begin:"\\$\\{",end:"\\}",keywords:d,contains:[]},l={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,c],subLanguage:"xml"}},f={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,c],subLanguage:"css"}},p={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,c],subLanguage:"graphql"}},N={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,c]},x={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:a+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},w=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,l,f,p,N,{match:/\$\d+/},m];c.contains=w.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(w)});const v=[].concat(x,c.contains),y=v.concat([{begin:/(\s*)\(/,end:/\)/,keywords:d,contains:["self"].concat(v)}]),b={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:y},_={variants:[{match:[/class/,/\s+/,a,/\s+/,/extends/,/\s+/,e.concat(a,"(",e.concat(/\./,a),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,a],scope:{1:"keyword",3:"title.class"}}]},C={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Ar,...Er]}},I={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},L={variants:[{match:[/function/,/\s+/,a,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[b],illegal:/%/},E={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function H(q){return e.concat("(?!",q.join("|"),")")}const V={match:e.concat(/\b/,H([...kr,"super","import"].map(q=>`${q}\\s*\\(`)),a,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},Q={begin:e.concat(/\./,e.lookahead(e.concat(a,/(?![0-9A-Za-z$_(])/))),end:a,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},re={match:[/get|set/,/\s+/,a,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},b]},O="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",ne={match:[/const|var|let/,/\s+/,a,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(O)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[b]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:y,CLASS_REFERENCE:C},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),I,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,l,f,p,N,x,{match:/\$\d+/},m,C,{scope:"attr",match:a+e.lookahead(":"),relevance:0},ne,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[x,t.REGEXP_MODE,{className:"function",begin:O,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:r},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},L,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[b,t.inherit(t.TITLE_MODE,{begin:a,className:"title.function"})]},{match:/\.\.\./,relevance:0},Q,{match:"\\$"+a,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[b]},V,E,_,re,{match:/\$[(.]/}]}}function gc(t){const e=t.regex,i=pc(t),a=yi,s=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],r={begin:[/namespace/,/\s+/,t.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:s},contains:[i.exports.CLASS_REFERENCE]},d={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},h=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],u={$pattern:yi,keyword:Sr.concat(h),literal:Cr,built_in:Or.concat(s),"variable.language":Mr},n={className:"meta",begin:"@"+a},m=(p,N,x)=>{const w=p.contains.findIndex(v=>v.label===N);if(w===-1)throw new Error("can not find mode to replace");p.contains.splice(w,1,x)};Object.assign(i.keywords,u),i.exports.PARAMS_CONTAINS.push(n);const c=i.contains.find(p=>p.scope==="attr"),l=Object.assign({},c,{match:e.concat(a,e.lookahead(/\s*\?:/))});i.exports.PARAMS_CONTAINS.push([i.exports.CLASS_REFERENCE,c,l]),i.contains=i.contains.concat([n,r,o,l]),m(i,"shebang",t.SHEBANG()),m(i,"use_strict",d);const f=i.contains.find(p=>p.label==="func.def");return f.relevance=0,Object.assign(i,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),i}function Nc(t){const e=t.regex,i=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),a=/[\p{L}0-9._:-]+/u,s={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},r={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=t.inherit(r,{begin:/\(/,end:/\)/}),d=t.inherit(t.APOS_STRING_MODE,{className:"string"}),h=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),u={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:a,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[s]},{begin:/'/,end:/'/,contains:[s]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[r,h,d,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[r,o,h,d]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[h]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(i,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:i,relevance:0,starts:u}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(i,/>/))),contains:[{className:"name",begin:i,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const bc=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),yc=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],vc=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],xc=[...yc,...vc],wc=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),_c=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Sc=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Cc=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function Ac(t){const e=t.regex,i=bc(t),a={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},s="and or not only",r=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",d=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[i.BLOCK_COMMENT,a,i.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},i.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+_c.join("|")+")"},{begin:":(:)?("+Sc.join("|")+")"}]},i.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Cc.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[i.BLOCK_COMMENT,i.HEXCOLOR,i.IMPORTANT,i.CSS_NUMBER_MODE,...d,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...d,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},i.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:r},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:s,attribute:wc.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...d,i.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+xc.join("|")+")\\b"}]}}const Ir=document.createElement("style");Ir.innerText=[mc,dc].join(`
|
|
1571
|
+
https://www.w3ctech.com/topic/2226`));let H=_(...E);return H.postcssPlugin=b,H.postcssVersion=new l().version,H}let L;return Object.defineProperty(I,"postcss",{get(){return L||(L=I()),L}}),I.process=function(E,H,V){return v([I(V)]).process(E,H)},I},v.stringify=x,v.parse=c,v.fromJSON=d,v.list=n,v.comment=y=>new i(y),v.atRule=y=>new e(y),v.decl=y=>new r(y),v.rule=y=>new N(y),v.root=y=>new p(y),v.document=y=>new o(y),v.CssSyntaxError=s,v.Declaration=r,v.Container=a,v.Processor=l,v.Document=o,v.Comment=i,v.Warning=w,v.AtRule=e,v.Result=f,v.Input=h,v.Rule=N,v.Root=p,v.Node=m,u.registerPostcss(v),us=v,v.default=v,us}var nc=rc();const Y=Nr(nc);Y.stringify;Y.fromJSON;Y.plugin;Y.parse;Y.list;Y.document;Y.comment;Y.atRule;Y.rule;Y.decl;Y.root;Y.CssSyntaxError;Y.Declaration;Y.Container;Y.Processor;Y.Document;Y.Comment;Y.Warning;Y.AtRule;Y.Result;Y.Input;Y.Rule;Y.Root;Y.Node;var hs,Za;function oc(){if(Za)return hs;Za=1;const t=(a={})=>{const s=a.prefix,r=/\s+$/.test(s)?s:`${s} `,o=a.ignoreFiles?[].concat(a.ignoreFiles):[],d=a.includeFiles?[].concat(a.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(h){const u=h.root,n=u.source.input.file;if(!(o.length&&n&&e(n,o))&&!(d.length&&n&&!e(n,d)))return{Rule(m,{result:c}){const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];m.parent&&l.includes(m.parent.name)||(m.selectors=m.selectors.map(f=>a.exclude&&i(f,a.exclude)?f:a.transform?a.transform(s,f,r+f,u.source.input.file,m):[":root","body","html"].some(p=>f.startsWith(p))?a.skipGlobalSelectors?f:f.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,s):r+f))}}}}};function e(a,s){return s.some(r=>r instanceof RegExp?r.test(a):a.includes(r))}function i(a,s){return s.some(r=>r instanceof RegExp?r.test(a):a===r)}return t.postcss=!0,hs=t,hs}var lc=oc();const cc=Nr(lc),mc="code{white-space:pre}.example{display:flex;flex-wrap:wrap;flex-direction:row;align-items:center;gap:16px}.example>*{flex:1 1 500px}.example .tab-control{overflow:hidden}.example div[role=tab]{cursor:pointer;padding:8px 16px;display:inline-block;font-size:16px;border-bottom:2px solid transparent;background-clip:padding-box;-webkit-user-select:none;user-select:none}.example div[role=tab]:hover{background-color:#1467ba14}.example div[role=tab][selected]{background-color:#1467ba21;border-bottom:2px solid #1467ba}.tab-content{margin:16px 0}.tab-content>pre{padding-top:0}.tab-content.code{max-height:500px;overflow:auto}.tab-content.code pre{margin:0}",dc="pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}";function uc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var fs,Xa;function hc(){if(Xa)return fs;Xa=1;function t(g){return g instanceof Map?g.clear=g.delete=g.set=function(){throw new Error("map is read-only")}:g instanceof Set&&(g.add=g.clear=g.delete=function(){throw new Error("set is read-only")}),Object.freeze(g),Object.getOwnPropertyNames(g).forEach(S=>{const M=g[S],F=typeof M;(F==="object"||F==="function")&&!Object.isFrozen(M)&&t(M)}),g}class e{constructor(S){S.data===void 0&&(S.data={}),this.data=S.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(g){return g.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function a(g,...S){const M=Object.create(null);for(const F in g)M[F]=g[F];return S.forEach(function(F){for(const se in F)M[se]=F[se]}),M}const s="</span>",r=g=>!!g.scope,o=(g,{prefix:S})=>{if(g.startsWith("language:"))return g.replace("language:","language-");if(g.includes(".")){const M=g.split(".");return[`${S}${M.shift()}`,...M.map((F,se)=>`${F}${"_".repeat(se+1)}`)].join(" ")}return`${S}${g}`};class d{constructor(S,M){this.buffer="",this.classPrefix=M.classPrefix,S.walk(this)}addText(S){this.buffer+=i(S)}openNode(S){if(!r(S))return;const M=o(S.scope,{prefix:this.classPrefix});this.span(M)}closeNode(S){r(S)&&(this.buffer+=s)}value(){return this.buffer}span(S){this.buffer+=`<span class="${S}">`}}const h=(g={})=>{const S={children:[]};return Object.assign(S,g),S};class u{constructor(){this.rootNode=h(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(S){this.top.children.push(S)}openNode(S){const M=h({scope:S});this.add(M),this.stack.push(M)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(S){return this.constructor._walk(S,this.rootNode)}static _walk(S,M){return typeof M=="string"?S.addText(M):M.children&&(S.openNode(M),M.children.forEach(F=>this._walk(S,F)),S.closeNode(M)),S}static _collapse(S){typeof S!="string"&&S.children&&(S.children.every(M=>typeof M=="string")?S.children=[S.children.join("")]:S.children.forEach(M=>{u._collapse(M)}))}}class n extends u{constructor(S){super(),this.options=S}addText(S){S!==""&&this.add(S)}startScope(S){this.openNode(S)}endScope(){this.closeNode()}__addSublanguage(S,M){const F=S.root;M&&(F.scope=`language:${M}`),this.add(F)}toHTML(){return new d(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function m(g){return g?typeof g=="string"?g:g.source:null}function c(g){return p("(?=",g,")")}function l(g){return p("(?:",g,")*")}function f(g){return p("(?:",g,")?")}function p(...g){return g.map(S=>m(S)).join("")}function N(g){const S=g[g.length-1];return typeof S=="object"&&S.constructor===Object?(g.splice(g.length-1,1),S):{}}function x(...g){return"("+(N(g).capture?"":"?:")+g.map(S=>m(S)).join("|")+")"}function w(g){return new RegExp(g.toString()+"|").exec("").length-1}function v(g,S){const M=g&&g.exec(S);return M&&M.index===0}const y=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function b(g,{joinWith:S}){let M=0;return g.map(F=>{M+=1;const se=M;let ae=m(F),$="";for(;ae.length>0;){const R=y.exec(ae);if(!R){$+=ae;break}$+=ae.substring(0,R.index),ae=ae.substring(R.index+R[0].length),R[0][0]==="\\"&&R[1]?$+="\\"+String(Number(R[1])+se):($+=R[0],R[0]==="("&&M++)}return $}).map(F=>`(${F})`).join(S)}const _=/\b\B/,C="[a-zA-Z]\\w*",I="[a-zA-Z_]\\w*",L="\\b\\d+(\\.\\d+)?",E="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",H="\\b(0b[01]+)",V="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Q=(g={})=>{const S=/^#![ ]*\//;return g.binary&&(g.begin=p(S,/.*\b/,g.binary,/\b.*/)),a({scope:"meta",begin:S,end:/$/,relevance:0,"on:begin":(M,F)=>{M.index!==0&&F.ignoreMatch()}},g)},re={begin:"\\\\[\\s\\S]",relevance:0},O={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[re]},ne={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[re]},q={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Z=function(g,S,M={}){const F=a({scope:"comment",begin:g,end:S,contains:[]},M);F.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const se=x("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return F.contains.push({begin:p(/[ ]+/,"(",se,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),F},te=Z("//","$"),le=Z("/\\*","\\*/"),Se=Z("#","$"),xe={scope:"number",begin:L,relevance:0},T={scope:"number",begin:E,relevance:0},Ce={scope:"number",begin:H,relevance:0},pe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[re,{begin:/\[/,end:/\]/,relevance:0,contains:[re]}]},Fe={scope:"title",begin:C,relevance:0},Re={scope:"title",begin:I,relevance:0},Oe={begin:"\\.\\s*"+I,relevance:0};var $e=Object.freeze({__proto__:null,APOS_STRING_MODE:O,BACKSLASH_ESCAPE:re,BINARY_NUMBER_MODE:Ce,BINARY_NUMBER_RE:H,COMMENT:Z,C_BLOCK_COMMENT_MODE:le,C_LINE_COMMENT_MODE:te,C_NUMBER_MODE:T,C_NUMBER_RE:E,END_SAME_AS_BEGIN:function(g){return Object.assign(g,{"on:begin":(S,M)=>{M.data._beginMatch=S[1]},"on:end":(S,M)=>{M.data._beginMatch!==S[1]&&M.ignoreMatch()}})},HASH_COMMENT_MODE:Se,IDENT_RE:C,MATCH_NOTHING_RE:_,METHOD_GUARD:Oe,NUMBER_MODE:xe,NUMBER_RE:L,PHRASAL_WORDS_MODE:q,QUOTE_STRING_MODE:ne,REGEXP_MODE:pe,RE_STARTERS_RE:V,SHEBANG:Q,TITLE_MODE:Fe,UNDERSCORE_IDENT_RE:I,UNDERSCORE_TITLE_MODE:Re});function Et(g,S){g.input[g.index-1]==="."&&S.ignoreMatch()}function Ae(g,S){g.className!==void 0&&(g.scope=g.className,delete g.className)}function it(g,S){S&&g.beginKeywords&&(g.begin="\\b("+g.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",g.__beforeBegin=Et,g.keywords=g.keywords||g.beginKeywords,delete g.beginKeywords,g.relevance===void 0&&(g.relevance=0))}function st(g,S){Array.isArray(g.illegal)&&(g.illegal=x(...g.illegal))}function Mi(g,S){if(g.match){if(g.begin||g.end)throw new Error("begin & end are not supported with match");g.begin=g.match,delete g.match}}function Oi(g,S){g.relevance===void 0&&(g.relevance=1)}const Yt=(g,S)=>{if(!g.beforeMatch)return;if(g.starts)throw new Error("beforeMatch cannot be used with starts");const M=Object.assign({},g);Object.keys(g).forEach(F=>{delete g[F]}),g.keywords=M.keywords,g.begin=p(M.beforeMatch,c(M.begin)),g.starts={relevance:0,contains:[Object.assign(M,{endsParent:!0})]},g.relevance=0,delete M.beforeMatch},Qt=["of","and","for","in","not","or","if","then","parent","list","value"],Ii="keyword";function ei(g,S,M=Ii){const F=Object.create(null);return typeof g=="string"?se(M,g.split(" ")):Array.isArray(g)?se(M,g):Object.keys(g).forEach(function(ae){Object.assign(F,ei(g[ae],S,ae))}),F;function se(ae,$){S&&($=$.map(R=>R.toLowerCase())),$.forEach(function(R){const z=R.split("|");F[z[0]]=[ae,He(z[0],z[1])]})}}function He(g,S){return S?Number(S):ft(g)?0:1}function ft(g){return Qt.includes(g.toLowerCase())}const kt={},Le=g=>{console.error(g)},pt=(g,...S)=>{console.log(`WARN: ${g}`,...S)},qe=(g,S)=>{kt[`${g}/${S}`]||(console.log(`Deprecated as of ${g}. ${S}`),kt[`${g}/${S}`]=!0)},at=new Error;function Mt(g,S,{key:M}){let F=0;const se=g[M],ae={},$={};for(let R=1;R<=S.length;R++)$[R+F]=se[R],ae[R+F]=!0,F+=w(S[R-1]);g[M]=$,g[M]._emit=ae,g[M]._multi=!0}function ti(g){if(Array.isArray(g.begin)){if(g.skip||g.excludeBegin||g.returnBegin)throw Le("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),at;if(typeof g.beginScope!="object"||g.beginScope===null)throw Le("beginScope must be object"),at;Mt(g,g.begin,{key:"beginScope"}),g.begin=b(g.begin,{joinWith:""})}}function Rr(g){if(Array.isArray(g.end)){if(g.skip||g.excludeEnd||g.returnEnd)throw Le("skip, excludeEnd, returnEnd not compatible with endScope: {}"),at;if(typeof g.endScope!="object"||g.endScope===null)throw Le("endScope must be object"),at;Mt(g,g.end,{key:"endScope"}),g.end=b(g.end,{joinWith:""})}}function $r(g){g.scope&&typeof g.scope=="object"&&g.scope!==null&&(g.beginScope=g.scope,delete g.scope)}function Lr(g){$r(g),typeof g.beginScope=="string"&&(g.beginScope={_wrap:g.beginScope}),typeof g.endScope=="string"&&(g.endScope={_wrap:g.endScope}),ti(g),Rr(g)}function Pr(g){function S($,R){return new RegExp(m($),"m"+(g.case_insensitive?"i":"")+(g.unicodeRegex?"u":"")+(R?"g":""))}class M{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(R,z){z.position=this.position++,this.matchIndexes[this.matchAt]=z,this.regexes.push([z,R]),this.matchAt+=w(R)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const R=this.regexes.map(z=>z[1]);this.matcherRe=S(b(R,{joinWith:"|"}),!0),this.lastIndex=0}exec(R){this.matcherRe.lastIndex=this.lastIndex;const z=this.matcherRe.exec(R);if(!z)return null;const me=z.findIndex((Ot,$i)=>$i>0&&Ot!==void 0),oe=this.matchIndexes[me];return z.splice(0,me),Object.assign(z,oe)}}class F{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(R){if(this.multiRegexes[R])return this.multiRegexes[R];const z=new M;return this.rules.slice(R).forEach(([me,oe])=>z.addRule(me,oe)),z.compile(),this.multiRegexes[R]=z,z}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(R,z){this.rules.push([R,z]),z.type==="begin"&&this.count++}exec(R){const z=this.getMatcher(this.regexIndex);z.lastIndex=this.lastIndex;let me=z.exec(R);if(this.resumingScanAtSamePosition()&&!(me&&me.index===this.lastIndex)){const oe=this.getMatcher(0);oe.lastIndex=this.lastIndex+1,me=oe.exec(R)}return me&&(this.regexIndex+=me.position+1,this.regexIndex===this.count&&this.considerAll()),me}}function se($){const R=new F;return $.contains.forEach(z=>R.addRule(z.begin,{rule:z,type:"begin"})),$.terminatorEnd&&R.addRule($.terminatorEnd,{type:"end"}),$.illegal&&R.addRule($.illegal,{type:"illegal"}),R}function ae($,R){const z=$;if($.isCompiled)return z;[Ae,Mi,Lr,Yt].forEach(oe=>oe($,R)),g.compilerExtensions.forEach(oe=>oe($,R)),$.__beforeBegin=null,[it,st,Oi].forEach(oe=>oe($,R)),$.isCompiled=!0;let me=null;return typeof $.keywords=="object"&&$.keywords.$pattern&&($.keywords=Object.assign({},$.keywords),me=$.keywords.$pattern,delete $.keywords.$pattern),me=me||/\w+/,$.keywords&&($.keywords=ei($.keywords,g.case_insensitive)),z.keywordPatternRe=S(me,!0),R&&($.begin||($.begin=/\B|\b/),z.beginRe=S(z.begin),!$.end&&!$.endsWithParent&&($.end=/\B|\b/),$.end&&(z.endRe=S(z.end)),z.terminatorEnd=m(z.end)||"",$.endsWithParent&&R.terminatorEnd&&(z.terminatorEnd+=($.end?"|":"")+R.terminatorEnd)),$.illegal&&(z.illegalRe=S($.illegal)),$.contains||($.contains=[]),$.contains=[].concat(...$.contains.map(function(oe){return Br(oe==="self"?$:oe)})),$.contains.forEach(function(oe){ae(oe,z)}),$.starts&&ae($.starts,R),z.matcher=se(z),z}if(g.compilerExtensions||(g.compilerExtensions=[]),g.contains&&g.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return g.classNameAliases=a(g.classNameAliases||{}),ae(g)}function Fs(g){return g?g.endsWithParent||Fs(g.starts):!1}function Br(g){return g.variants&&!g.cachedVariants&&(g.cachedVariants=g.variants.map(function(S){return a(g,{variants:null},S)})),g.cachedVariants?g.cachedVariants:Fs(g)?a(g,{starts:g.starts?a(g.starts):null}):Object.isFrozen(g)?a(g):g}var Dr="11.11.1";class Tr extends Error{constructor(S,M){super(S),this.name="HTMLInjectionError",this.html=M}}const Ri=i,Hs=a,qs=Symbol("nomatch"),zr=7,Us=function(g){const S=Object.create(null),M=Object.create(null),F=[];let se=!0;const ae="Could not find the language '{}', did you forget to load/include a language module?",$={disableAutodetect:!0,name:"Plain text",contains:[]};let R={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:n};function z(A){return R.noHighlightRe.test(A)}function me(A){let D=A.className+" ";D+=A.parentNode?A.parentNode.className:"";const W=R.languageDetectRe.exec(D);if(W){const K=Ze(W[1]);return K||(pt(ae.replace("{}",W[1])),pt("Falling back to no-highlight mode for this block.",A)),K?W[1]:"no-highlight"}return D.split(/\s+/).find(K=>z(K)||Ze(K))}function oe(A,D,W){let K="",ce="";typeof D=="object"?(K=A,W=D.ignoreIllegals,ce=D.language):(qe("10.7.0","highlight(lang, code, ...args) has been deprecated."),qe("10.7.0",`Please use highlight(code, options) instead.
|
|
1572
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),ce=A,K=D),W===void 0&&(W=!0);const Pe={code:K,language:ce};si("before:highlight",Pe);const Xe=Pe.result?Pe.result:Ot(Pe.language,Pe.code,W);return Xe.code=Pe.code,si("after:highlight",Xe),Xe}function Ot(A,D,W,K){const ce=Object.create(null);function Pe(k,B){return k.keywords[B]}function Xe(){if(!j.keywords){de.addText(J);return}let k=0;j.keywordPatternRe.lastIndex=0;let B=j.keywordPatternRe.exec(J),U="";for(;B;){U+=J.substring(k,B.index);const G=De.case_insensitive?B[0].toLowerCase():B[0],he=Pe(j,G);if(he){const[Ue,sn]=he;if(de.addText(U),U="",ce[G]=(ce[G]||0)+1,ce[G]<=zr&&(ni+=sn),Ue.startsWith("_"))U+=B[0];else{const an=De.classNameAliases[Ue]||Ue;Be(B[0],an)}}else U+=B[0];k=j.keywordPatternRe.lastIndex,B=j.keywordPatternRe.exec(J)}U+=J.substring(k),de.addText(U)}function ai(){if(J==="")return;let k=null;if(typeof j.subLanguage=="string"){if(!S[j.subLanguage]){de.addText(J);return}k=Ot(j.subLanguage,J,!0,Qs[j.subLanguage]),Qs[j.subLanguage]=k._top}else k=Li(J,j.subLanguage.length?j.subLanguage:null);j.relevance>0&&(ni+=k.relevance),de.__addSublanguage(k._emitter,k.language)}function we(){j.subLanguage!=null?ai():Xe(),J=""}function Be(k,B){k!==""&&(de.startScope(B),de.addText(k),de.endScope())}function Js(k,B){let U=1;const G=B.length-1;for(;U<=G;){if(!k._emit[U]){U++;continue}const he=De.classNameAliases[k[U]]||k[U],Ue=B[U];he?Be(Ue,he):(J=Ue,Xe(),J=""),U++}}function Zs(k,B){return k.scope&&typeof k.scope=="string"&&de.openNode(De.classNameAliases[k.scope]||k.scope),k.beginScope&&(k.beginScope._wrap?(Be(J,De.classNameAliases[k.beginScope._wrap]||k.beginScope._wrap),J=""):k.beginScope._multi&&(Js(k.beginScope,B),J="")),j=Object.create(k,{parent:{value:j}}),j}function Xs(k,B,U){let G=v(k.endRe,U);if(G){if(k["on:end"]){const he=new e(k);k["on:end"](B,he),he.isMatchIgnored&&(G=!1)}if(G){for(;k.endsParent&&k.parent;)k=k.parent;return k}}if(k.endsWithParent)return Xs(k.parent,B,U)}function Xr(k){return j.matcher.regexIndex===0?(J+=k[0],1):(Ti=!0,0)}function Yr(k){const B=k[0],U=k.rule,G=new e(U),he=[U.__beforeBegin,U["on:begin"]];for(const Ue of he)if(Ue&&(Ue(k,G),G.isMatchIgnored))return Xr(B);return U.skip?J+=B:(U.excludeBegin&&(J+=B),we(),!U.returnBegin&&!U.excludeBegin&&(J=B)),Zs(U,k),U.returnBegin?0:B.length}function Qr(k){const B=k[0],U=D.substring(k.index),G=Xs(j,k,U);if(!G)return qs;const he=j;j.endScope&&j.endScope._wrap?(we(),Be(B,j.endScope._wrap)):j.endScope&&j.endScope._multi?(we(),Js(j.endScope,k)):he.skip?J+=B:(he.returnEnd||he.excludeEnd||(J+=B),we(),he.excludeEnd&&(J=B));do j.scope&&de.closeNode(),!j.skip&&!j.subLanguage&&(ni+=j.relevance),j=j.parent;while(j!==G.parent);return G.starts&&Zs(G.starts,k),he.returnEnd?0:B.length}function en(){const k=[];for(let B=j;B!==De;B=B.parent)B.scope&&k.unshift(B.scope);k.forEach(B=>de.openNode(B))}let ri={};function Ys(k,B){const U=B&&B[0];if(J+=k,U==null)return we(),0;if(ri.type==="begin"&&B.type==="end"&&ri.index===B.index&&U===""){if(J+=D.slice(B.index,B.index+1),!se){const G=new Error(`0 width match regex (${A})`);throw G.languageName=A,G.badRule=ri.rule,G}return 1}if(ri=B,B.type==="begin")return Yr(B);if(B.type==="illegal"&&!W){const G=new Error('Illegal lexeme "'+U+'" for mode "'+(j.scope||"<unnamed>")+'"');throw G.mode=j,G}else if(B.type==="end"){const G=Qr(B);if(G!==qs)return G}if(B.type==="illegal"&&U==="")return J+=`
|
|
1573
|
+
`,1;if(Di>1e5&&Di>B.index*3)throw new Error("potential infinite loop, way more iterations than matches");return J+=U,U.length}const De=Ze(A);if(!De)throw Le(ae.replace("{}",A)),new Error('Unknown language: "'+A+'"');const tn=Pr(De);let Bi="",j=K||tn;const Qs={},de=new R.__emitter(R);en();let J="",ni=0,rt=0,Di=0,Ti=!1;try{if(De.__emitTokens)De.__emitTokens(D,de);else{for(j.matcher.considerAll();;){Di++,Ti?Ti=!1:j.matcher.considerAll(),j.matcher.lastIndex=rt;const k=j.matcher.exec(D);if(!k)break;const B=D.substring(rt,k.index),U=Ys(B,k);rt=k.index+U}Ys(D.substring(rt))}return de.finalize(),Bi=de.toHTML(),{language:A,value:Bi,relevance:ni,illegal:!1,_emitter:de,_top:j}}catch(k){if(k.message&&k.message.includes("Illegal"))return{language:A,value:Ri(D),illegal:!0,relevance:0,_illegalBy:{message:k.message,index:rt,context:D.slice(rt-100,rt+100),mode:k.mode,resultSoFar:Bi},_emitter:de};if(se)return{language:A,value:Ri(D),illegal:!1,relevance:0,errorRaised:k,_emitter:de,_top:j};throw k}}function $i(A){const D={value:Ri(A),illegal:!1,relevance:0,_top:$,_emitter:new R.__emitter(R)};return D._emitter.addText(A),D}function Li(A,D){D=D||R.languages||Object.keys(S);const W=$i(A),K=D.filter(Ze).filter(Ks).map(we=>Ot(we,A,!1));K.unshift(W);const ce=K.sort((we,Be)=>{if(we.relevance!==Be.relevance)return Be.relevance-we.relevance;if(we.language&&Be.language){if(Ze(we.language).supersetOf===Be.language)return 1;if(Ze(Be.language).supersetOf===we.language)return-1}return 0}),[Pe,Xe]=ce,ai=Pe;return ai.secondBest=Xe,ai}function jr(A,D,W){const K=D&&M[D]||W;A.classList.add("hljs"),A.classList.add(`language-${K}`)}function Pi(A){let D=null;const W=me(A);if(z(W))return;if(si("before:highlightElement",{el:A,language:W}),A.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",A);return}if(A.children.length>0&&(R.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(A)),R.throwUnescapedHTML))throw new Tr("One of your code blocks includes unescaped HTML.",A.innerHTML);D=A;const K=D.textContent,ce=W?oe(K,{language:W,ignoreIllegals:!0}):Li(K);A.innerHTML=ce.value,A.dataset.highlighted="yes",jr(A,W,ce.language),A.result={language:ce.language,re:ce.relevance,relevance:ce.relevance},ce.secondBest&&(A.secondBest={language:ce.secondBest.language,relevance:ce.secondBest.relevance}),si("after:highlightElement",{el:A,result:ce,text:K})}function Vr(A){R=Hs(R,A)}const Fr=()=>{ii(),qe("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Hr(){ii(),qe("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Ws=!1;function ii(){function A(){ii()}if(document.readyState==="loading"){Ws||window.addEventListener("DOMContentLoaded",A,!1),Ws=!0;return}document.querySelectorAll(R.cssSelector).forEach(Pi)}function qr(A,D){let W=null;try{W=D(g)}catch(K){if(Le("Language definition for '{}' could not be registered.".replace("{}",A)),se)Le(K);else throw K;W=$}W.name||(W.name=A),S[A]=W,W.rawDefinition=D.bind(null,g),W.aliases&&Gs(W.aliases,{languageName:A})}function Ur(A){delete S[A];for(const D of Object.keys(M))M[D]===A&&delete M[D]}function Wr(){return Object.keys(S)}function Ze(A){return A=(A||"").toLowerCase(),S[A]||S[M[A]]}function Gs(A,{languageName:D}){typeof A=="string"&&(A=[A]),A.forEach(W=>{M[W.toLowerCase()]=D})}function Ks(A){const D=Ze(A);return D&&!D.disableAutodetect}function Gr(A){A["before:highlightBlock"]&&!A["before:highlightElement"]&&(A["before:highlightElement"]=D=>{A["before:highlightBlock"](Object.assign({block:D.el},D))}),A["after:highlightBlock"]&&!A["after:highlightElement"]&&(A["after:highlightElement"]=D=>{A["after:highlightBlock"](Object.assign({block:D.el},D))})}function Kr(A){Gr(A),F.push(A)}function Jr(A){const D=F.indexOf(A);D!==-1&&F.splice(D,1)}function si(A,D){const W=A;F.forEach(function(K){K[W]&&K[W](D)})}function Zr(A){return qe("10.7.0","highlightBlock will be removed entirely in v12.0"),qe("10.7.0","Please use highlightElement now."),Pi(A)}Object.assign(g,{highlight:oe,highlightAuto:Li,highlightAll:ii,highlightElement:Pi,highlightBlock:Zr,configure:Vr,initHighlighting:Fr,initHighlightingOnLoad:Hr,registerLanguage:qr,unregisterLanguage:Ur,listLanguages:Wr,getLanguage:Ze,registerAliases:Gs,autoDetection:Ks,inherit:Hs,addPlugin:Kr,removePlugin:Jr}),g.debugMode=function(){se=!1},g.safeMode=function(){se=!0},g.versionString=Dr,g.regex={concat:p,lookahead:c,either:x,optional:f,anyNumberOfTimes:l};for(const A in $e)typeof $e[A]=="object"&&t($e[A]);return Object.assign(g,$e),g},gt=Us({});return gt.newInstance=()=>Us({}),fs=gt,gt.HighlightJS=gt,gt.default=gt,fs}var fc=hc();const ki=uc(fc),yi="[A-Za-z$_][0-9A-Za-z$_]*",Sr=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Cr=["true","false","null","undefined","NaN","Infinity"],Ar=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Er=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],kr=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Mr=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Or=[].concat(kr,Ar,Er);function pc(t){const e=t.regex,i=(q,{after:Z})=>{const te="</"+q[0].slice(1);return q.input.indexOf(te,Z)!==-1},a=yi,s={begin:"<>",end:"</>"},r=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(q,Z)=>{const te=q[0].length+q.index,le=q.input[te];if(le==="<"||le===","){Z.ignoreMatch();return}le===">"&&(i(q,{after:te})||Z.ignoreMatch());let Se;const xe=q.input.substring(te);if(Se=xe.match(/^\s*=/)){Z.ignoreMatch();return}if((Se=xe.match(/^\s+extends\s+/))&&Se.index===0){Z.ignoreMatch();return}}},d={$pattern:yi,keyword:Sr,literal:Cr,built_in:Or,"variable.language":Mr},h="[0-9](_?[0-9])*",u=`\\.(${h})`,n="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",m={className:"number",variants:[{begin:`(\\b(${n})((${u})|\\.)?|(${u}))[eE][+-]?(${h})\\b`},{begin:`\\b(${n})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},c={className:"subst",begin:"\\$\\{",end:"\\}",keywords:d,contains:[]},l={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,c],subLanguage:"xml"}},f={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,c],subLanguage:"css"}},p={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,c],subLanguage:"graphql"}},N={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,c]},x={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:a+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},w=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,l,f,p,N,{match:/\$\d+/},m];c.contains=w.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(w)});const v=[].concat(x,c.contains),y=v.concat([{begin:/(\s*)\(/,end:/\)/,keywords:d,contains:["self"].concat(v)}]),b={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:y},_={variants:[{match:[/class/,/\s+/,a,/\s+/,/extends/,/\s+/,e.concat(a,"(",e.concat(/\./,a),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,a],scope:{1:"keyword",3:"title.class"}}]},C={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Ar,...Er]}},I={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},L={variants:[{match:[/function/,/\s+/,a,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[b],illegal:/%/},E={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function H(q){return e.concat("(?!",q.join("|"),")")}const V={match:e.concat(/\b/,H([...kr,"super","import"].map(q=>`${q}\\s*\\(`)),a,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},Q={begin:e.concat(/\./,e.lookahead(e.concat(a,/(?![0-9A-Za-z$_(])/))),end:a,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},re={match:[/get|set/,/\s+/,a,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},b]},O="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",ne={match:[/const|var|let/,/\s+/,a,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(O)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[b]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:y,CLASS_REFERENCE:C},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),I,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,l,f,p,N,x,{match:/\$\d+/},m,C,{scope:"attr",match:a+e.lookahead(":"),relevance:0},ne,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[x,t.REGEXP_MODE,{className:"function",begin:O,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:r},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},L,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[b,t.inherit(t.TITLE_MODE,{begin:a,className:"title.function"})]},{match:/\.\.\./,relevance:0},Q,{match:"\\$"+a,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[b]},V,E,_,re,{match:/\$[(.]/}]}}function gc(t){const e=t.regex,i=pc(t),a=yi,s=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],r={begin:[/namespace/,/\s+/,t.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:s},contains:[i.exports.CLASS_REFERENCE]},d={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},h=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],u={$pattern:yi,keyword:Sr.concat(h),literal:Cr,built_in:Or.concat(s),"variable.language":Mr},n={className:"meta",begin:"@"+a},m=(p,N,x)=>{const w=p.contains.findIndex(v=>v.label===N);if(w===-1)throw new Error("can not find mode to replace");p.contains.splice(w,1,x)};Object.assign(i.keywords,u),i.exports.PARAMS_CONTAINS.push(n);const c=i.contains.find(p=>p.scope==="attr"),l=Object.assign({},c,{match:e.concat(a,e.lookahead(/\s*\?:/))});i.exports.PARAMS_CONTAINS.push([i.exports.CLASS_REFERENCE,c,l]),i.contains=i.contains.concat([n,r,o,l]),m(i,"shebang",t.SHEBANG()),m(i,"use_strict",d);const f=i.contains.find(p=>p.label==="func.def");return f.relevance=0,Object.assign(i,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),i}function Nc(t){const e=t.regex,i=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),a=/[\p{L}0-9._:-]+/u,s={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},r={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=t.inherit(r,{begin:/\(/,end:/\)/}),d=t.inherit(t.APOS_STRING_MODE,{className:"string"}),h=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),u={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:a,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[s]},{begin:/'/,end:/'/,contains:[s]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[r,h,d,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[r,o,h,d]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[h]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(i,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:i,relevance:0,starts:u}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(i,/>/))),contains:[{className:"name",begin:i,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const bc=t=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:t.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:t.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),yc=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],vc=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],xc=[...yc,...vc],wc=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),_c=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Sc=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Cc=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function Ac(t){const e=t.regex,i=bc(t),a={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},s="and or not only",r=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",d=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[i.BLOCK_COMMENT,a,i.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},i.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+_c.join("|")+")"},{begin:":(:)?("+Sc.join("|")+")"}]},i.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Cc.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[i.BLOCK_COMMENT,i.HEXCOLOR,i.IMPORTANT,i.CSS_NUMBER_MODE,...d,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...d,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},i.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:r},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:s,attribute:wc.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...d,i.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+xc.join("|")+")\\b"}]}}const Ir=document.createElement("style");Ir.innerText=[mc,dc].join(`
|
|
1569
1574
|
`);document.head.appendChild(Ir);ki.registerLanguage("typescript",gc);ki.registerLanguage("html",Nc);ki.registerLanguage("css",Ac);function Ec(...t){const e=document.createElement("div"),i=document.createElement("div");i.classList.add("tab-control");const a=document.createElement("div");return t.forEach(s=>{e.appendChild(s),s.addEventListener("click",()=>{t.forEach(r=>r.removeAttribute("selected")),s.setAttribute("selected",""),a.innerHTML="",a.appendChild(s.content),a.className=s.className,a.classList.add("tab-content")})}),i.appendChild(e),i.appendChild(a),a.classList.add("tab-content"),t[0].setAttribute("selected",""),a.appendChild(t[0].content),i}function $t(t,e){const i=document.createElement("div");return i.role="tab",i.tabIndex=0,i.innerText=t,i.content=e,e.tagName=="PRE"&&i.classList.add("code"),i}function zt(t,e){const i=document.createElement(t);return typeof e=="string"?i.innerHTML=e:e.forEach(a=>{i.appendChild(a)}),i}async function kc(t,e,i){const a=e.mainContent,s=zt("div",a);s.id=`example-preview-${i}`;const r=typeof e.css=="string"?void 0:e.css?.label,o=typeof e.css=="string"?e.css:e.css?.content,d=Ec($t("Preview",s),$t("HTML",mi("html",a)),...o?[$t(r??"CSS",mi("css",o))]:[],...e.initializer&&e.initializer.content?[$t(e.initializer.label??"TS",mi("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(u=>$t(u.label,mi(u.language,u.content))));e.description&&t.appendChild(zt("div",e.description));const h=zt("div",[d]);h.classList.add("example"),t.appendChild(h),o&&Mc(`#${s.id}`,o),e.initializer?.initialize&&await e.initializer.initialize(s)}function mi(t,e){let i=e.split(/\r?\n/).map(a=>{const s=a.indexOf("///");if(s>-1){const r=a.substring(s+3).trimStart();return r?a.replace(/^(\s*)([^\s].*)$/,`$1${r}`):void 0}return a}).filter(a=>typeof a<"u").join(`
|
|
1570
|
-
`).trim();return t&&t!="raw"&&(i=ki.highlight(i,{language:t}).value),zt("pre",[zt("code",i)])}function Mc(t,e){const i=document.createElement("style");i.innerHTML=
|
|
1575
|
+
`).trim();return t&&t!="raw"&&(i=ki.highlight(i,{language:t}).value),zt("pre",[zt("code",i)])}function Mc(t,e){const i=document.createElement("style");i.innerHTML=Y().use(cc({prefix:t})).process(e).css,document.head.appendChild(i)}async function Oc(t,e=document.body){const i=Rc(e);let a=0;Object.keys(t).sort().forEach(async s=>{const r=document.createElement("div");r.className="example-container",i.appendChild(r);const o=t[s].default;kc(r,o,a++)})}function Ic(t){const e=document.createElement("div");e.id="examples-container";const i=t.querySelector("#examples");return i?i.after(e):t.appendChild(e),e}function Rc(t){return t.children?Ic(t):t}const $c=`<h1 id="@cas-smartdesign/combo-box">@cas-smartdesign/combo-box</h1>
|
|
1571
1576
|
<p>A combo-box element with the look and feel of the SmartDesign inputs & list item layouts. It extends the <code>lit-input</code>, therefore the regular API of that element (such as configuring a label) should work here as well, except the <code>value</code>. As it is possible to select an item in the combo-box, the regular string based value may not be enough. Instead <code>comboBoxValue</code> property provides an extended information about the current selection.</p>
|
|
1572
1577
|
<h2 id="attributes">Attributes</h2>
|
|
1573
1578
|
<p><em>(in addition to lit-input)</em></p>
|
|
@@ -1588,8 +1593,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`),ce=A,K=T),W===void 0&&
|
|
|
1588
1593
|
<li>Defines if the element after a selection event may clear its value.</li>
|
|
1589
1594
|
</ul>
|
|
1590
1595
|
</li>
|
|
1591
|
-
<li><code>null-setting-
|
|
1592
|
-
<li>
|
|
1596
|
+
<li><code>null-setting-disallowed</code> <strong><em>boolean (default=false)</em></strong><ul>
|
|
1597
|
+
<li>Defines if using empty value is allowed via a clear button or just simply removing the text.</li>
|
|
1593
1598
|
</ul>
|
|
1594
1599
|
</li>
|
|
1595
1600
|
<li><code>display-value-path</code> <strong><em>string (default=caption)</em></strong><ul>
|
|
@@ -1612,7 +1617,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`),ce=A,K=T),W===void 0&&
|
|
|
1612
1617
|
<h2 id="properties">Properties</h2>
|
|
1613
1618
|
<p><em>(in addition to lit-input)</em></p>
|
|
1614
1619
|
<ul>
|
|
1615
|
-
<li><code>itemHeight</code>, <code>opened</code>, <code>allowCustomValue</code>, <code>
|
|
1620
|
+
<li><code>itemHeight</code>, <code>opened</code>, <code>allowCustomValue</code>, <code>nullSettingDisallowed</code>, <code>displayValuePath</code>, <code>filterProperty</code>, <code>triggerOnly</code><ul>
|
|
1616
1621
|
<li>Reflects the corresponding attribute.</li>
|
|
1617
1622
|
</ul>
|
|
1618
1623
|
</li>
|
|
@@ -1662,4 +1667,4 @@ https://github.com/highlightjs/highlight.js/issues/2277`),ce=A,K=T),W===void 0&&
|
|
|
1662
1667
|
</ul>
|
|
1663
1668
|
<h2 id="lazy-loading">Lazy loading</h2>
|
|
1664
1669
|
<p>It is possible to fetch the suggestions from the server lazily. It means that if the combo-box is configured via the <code>configureLazyLoad</code>, then the included list in the dropdown will use the given <code>onDataRequest</code> callback. If the lazy mode is activated then inMemory filtering is disabled, but the mentioned data request is also called whenever the filter text changes. A <code>loading</code> attribute is added while a pending data request is present to be able to show a loading indicator for example. See the <code>doc.ts</code> for some comprehensive examples.</p>
|
|
1665
|
-
`,Lc=document.querySelector("#markdown-container");Lc.innerHTML=$c;Oc(Object.assign({"./examples/1_declarative/index.ts":ln,"./examples/2_basic-examples/index.ts":pn,"./examples/3_filtering/index.ts":vn,"./examples/4_lazy_loading/index.ts":kn,"./examples/5_unusual_data/index.ts":$n,"./examples/6_validation_example/index.ts":
|
|
1670
|
+
`,Lc=document.querySelector("#markdown-container");Lc.innerHTML=$c;Oc(Object.assign({"./examples/1_declarative/index.ts":ln,"./examples/2_basic-examples/index.ts":pn,"./examples/3_filtering/index.ts":vn,"./examples/4_lazy_loading/index.ts":kn,"./examples/5_unusual_data/index.ts":$n,"./examples/6_validation_example/index.ts":Tn}),document.querySelector(".markdown-body"));export{Ni as a};
|