@cas-smartdesign/radio-button-group 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,522 @@
1
+ (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function t(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(s){if(s.ep)return;s.ep=!0;const o=t(s);fetch(s.href,o)}})();const Us=`<!-- Load element with all dependencies directly -->
2
+ <script src="./radio-button-group-with-externals.js"><\/script>
3
+
4
+ <div class="example-root">
5
+ <div>
6
+ <b>Horizontal</b>
7
+ <sd-radio-button-group tabindex="0" validationlevel="warn" validationMessage="Don't forget to fill this">
8
+ <sd-radio-button value="britta" label="Britta"></sd-radio-button>
9
+ <sd-radio-button value="max" label="Max"></sd-radio-button>
10
+ <sd-radio-button value="peter" label="Peter"></sd-radio-button>
11
+ <sd-radio-button value="robert" label="Robert"></sd-radio-button>
12
+ </sd-radio-button-group>
13
+ </div>
14
+ <div>
15
+ <b>Vertical</b> with custom style
16
+ <sd-radio-button-group class="colorful" tabindex="0" layout="vertical">
17
+ <sd-radio-button value="britta" label="Britta" checked></sd-radio-button>
18
+ <sd-radio-button value="max" label="Max"></sd-radio-button>
19
+ <sd-radio-button value="peter" label="Peter"></sd-radio-button>
20
+ <sd-radio-button value="robert" label="Robert"></sd-radio-button>
21
+ </sd-radio-button-group>
22
+ </div>
23
+ </div>
24
+ `,Hs=`<h3 id="declarative-example">Declarative example</h3>
25
+ `,Fs=`div {
26
+ margin-top: 8px;
27
+ }
28
+
29
+ sd-radio-button {
30
+ margin-right: 16px;
31
+ }
32
+
33
+ sd-radio-button-group.colorful sd-radio-button {
34
+ --sd-radio-button-checked-color: #ff6b11;
35
+ --sd-radio-button-highlight-color: #cc0017;
36
+ --sd-radio-button-unchecked-color: #8abd0c;
37
+ }
38
+ `,Vs={mainContent:Us,description:Hs,css:Fs},qs=Object.freeze(Object.defineProperty({__proto__:null,default:Vs},Symbol.toStringTag,{value:"Module"})),Ws=`<!-- Load element with all dependencies directly -->
39
+ <script src="./radio-button-group-with-externals.js"><\/script>
40
+
41
+ <div class="example-root">
42
+ <b>All disabled</b>
43
+ <sd-radio-button-group disabled tabindex="0">
44
+ <sd-radio-button value="britta" label="Britta"></sd-radio-button>
45
+ <sd-radio-button value="max" label="Max"></sd-radio-button>
46
+ <sd-radio-button value="peter" label="Peter"></sd-radio-button>
47
+ <sd-radio-button value="robert" label="Robert"></sd-radio-button>
48
+ </sd-radio-button-group>
49
+
50
+ <b>All disabled, but has a checked state</b>
51
+ <sd-radio-button-group disabled tabindex="0">
52
+ <sd-radio-button value="britta" label="Britta"></sd-radio-button>
53
+ <sd-radio-button value="max" label="Max" checked></sd-radio-button>
54
+ <sd-radio-button value="peter" label="Peter"></sd-radio-button>
55
+ <sd-radio-button value="robert" label="Robert"></sd-radio-button>
56
+ </sd-radio-button-group>
57
+
58
+ <b>One option disabled</b>
59
+ <sd-radio-button-group tabindex="0">
60
+ <sd-radio-button value="britta" label="Britta" checked></sd-radio-button>
61
+ <sd-radio-button value="max" label="Max" disabled></sd-radio-button>
62
+ <sd-radio-button value="peter" label="Peter"></sd-radio-button>
63
+ <sd-radio-button value="robert" label="Robert"></sd-radio-button>
64
+ </sd-radio-button-group>
65
+ </div>
66
+ `,Gs=`<h3 id="disabled-example">Disabled example</h3>
67
+ `,Zs=`b {
68
+ display: block;
69
+ margin-top: 8px;
70
+ }
71
+
72
+ sd-radio-button {
73
+ margin-right: 16px;
74
+ }
75
+ `,Ks={mainContent:Ws,description:Gs,css:Zs},Js=Object.freeze(Object.defineProperty({__proto__:null,default:Ks},Symbol.toStringTag,{value:"Module"})),Xs=`<!-- Load element with all dependencies directly -->
76
+ <script src="./radio-button-group-with-externals.js"><\/script>
77
+
78
+ <div class="example-root">
79
+ <sd-radio-button-group tabindex="0" layout="vertical">
80
+ <sd-radio-button
81
+ checked
82
+ value="value-1"
83
+ label="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Velit euismod in pellentesque massa placerat duis ultricies lacus sed. Dictumst quisque sagittis purus sit amet volutpat. Consectetur adipiscing elit pellentesque habitant morbi tristique senectus et. Facilisi morbi tempus iaculis urna id volutpat lacus laoreet non. Nulla facilisi morbi tempus iaculis urna id. Quam nulla porttitor massa id neque. Tortor pretium viverra suspendisse potenti nullam ac tortor. Sagittis aliquam malesuada bibendum arcu. Volutpat ac tincidunt vitae semper quis. Augue interdum velit euismod in. Sit amet mattis vulputate enim nulla aliquet. Proin nibh nisl condimentum id venenatis a condimentum vitae. Nulla at volutpat diam ut venenatis tellus in metus vulputate. Euismod nisi porta lorem mollis aliquam ut."></sd-radio-button>
84
+ <sd-radio-button
85
+ value="value-2"
86
+ label="Mattis aliquam faucibus purus in massa tempor nec feugiat nisl. Mauris vitae ultricies leo integer malesuada. Vel quam elementum pulvinar etiam non quam lacus. Odio eu feugiat pretium nibh ipsum consequat nisl. Feugiat nisl pretium fusce id velit ut tortor pretium. Velit ut tortor pretium viverra suspendisse potenti. Interdum posuere lorem ipsum dolor sit amet consectetur adipiscing elit. Ac placerat vestibulum lectus mauris ultrices eros in cursus turpis. Diam vulputate ut pharetra sit amet aliquam id. Ipsum suspendisse ultrices gravida dictum fusce ut. Amet risus nullam eget felis eget. In fermentum et sollicitudin ac. Cursus sit amet dictum sit. Imperdiet proin fermentum leo vel orci porta non pulvinar neque."></sd-radio-button>
87
+ <sd-radio-button
88
+ value="value-3"
89
+ label="Aliquam vestibulum morbi blandit cursus risus at ultrices mi. Viverra mauris in aliquam sem fringilla ut morbi tincidunt. Aliquet bibendum enim facilisis gravida neque. Duis convallis convallis tellus id. Nunc congue nisi vitae suscipit tellus mauris. Sit amet purus gravida quis blandit turpis cursus. Mauris cursus mattis molestie a iaculis at erat. Justo nec ultrices dui sapien eget mi. Pellentesque habitant morbi tristique senectus et. Interdum posuere lorem ipsum dolor sit amet consectetur adipiscing elit. Suspendisse sed nisi lacus sed viverra. Aenean vel elit scelerisque mauris pellentesque pulvinar pellentesque habitant morbi. Risus sed vulputate odio ut enim. Pulvinar elementum integer enim neque volutpat ac tincidunt vitae."></sd-radio-button>
90
+ </sd-radio-button-group>
91
+ </div>
92
+ `,Qs=`<h3 id="vertical-group-with-long-text">Vertical group with long text</h3>
93
+ `,Ys={mainContent:Xs,description:Qs},er=Object.freeze(Object.defineProperty({__proto__:null,default:Ys},Symbol.toStringTag,{value:"Module"})),tr="modulepreload",nr=function(i,e){return new URL(i,e).href},jn={},xi=function(e,t,n){let s=Promise.resolve();if(t&&t.length>0){const o=document.getElementsByTagName("link");s=Promise.all(t.map(r=>{if(r=nr(r,n),r in jn)return;jn[r]=!0;const a=r.endsWith(".css"),l=a?'[rel="stylesheet"]':"";if(!!n)for(let p=o.length-1;p>=0;p--){const f=o[p];if(f.href===r&&(!a||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${l}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":tr,a||(u.as="script",u.crossOrigin=""),u.href=r,document.head.appendChild(u),a)return new Promise((p,f)=>{u.addEventListener("load",p),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${r}`)))})}))}return s.then(()=>e()).catch(o=>{const r=new Event("vite:preloadError",{cancelable:!0});if(r.payload=o,window.dispatchEvent(r),!r.defaultPrevented)throw o})},ir=`<div id="validation-example-root">
94
+ <b>Error</b>
95
+ <sd-radio-button-group tabindex="0" validationlevel="error">
96
+ <sd-radio-button value="britta" label="Britta"></sd-radio-button>
97
+ <sd-radio-button value="max" label="Max"></sd-radio-button>
98
+ <sd-radio-button value="peter" label="Peter"></sd-radio-button>
99
+ <sd-radio-button value="robert" label="Robert"></sd-radio-button>
100
+ </sd-radio-button-group>
101
+ <b>Warning</b> with uncheck-allowed
102
+ <sd-radio-button-group tabindex="0" validationlevel="warn" uncheck-allowed>
103
+ <sd-radio-button value="britta" label="Britta"></sd-radio-button>
104
+ <sd-radio-button value="max" label="Max"></sd-radio-button>
105
+ <sd-radio-button value="peter" label="Peter"></sd-radio-button>
106
+ <sd-radio-button value="robert" label="Robert"></sd-radio-button>
107
+ </sd-radio-button-group>
108
+ <b>Suggestion</b> with uncheck-allowed
109
+ <sd-radio-button-group tabindex="0" validationlevel="suggest" uncheck-allowed>
110
+ <sd-radio-button value="britta" label="Britta"></sd-radio-button>
111
+ <sd-radio-button value="max" label="Max"></sd-radio-button>
112
+ <sd-radio-button value="peter" label="Peter"></sd-radio-button>
113
+ <sd-radio-button value="robert" label="Robert"></sd-radio-button>
114
+ </sd-radio-button-group>
115
+ </div>
116
+ `,sr=`<h3 id="validation-example">Validation example</h3>
117
+ `,rr=`sd-radio-button-group {
118
+ display: block;
119
+ min-height: 64px; /* Have space for the validation message */
120
+ }
121
+
122
+ sd-radio-button {
123
+ margin-right: 16px;
124
+ }
125
+ `,or=`import "@cas-smartdesign/radio-button-group";
126
+ import { IValueChangeEvent, RadioButtonGroup } from "@cas-smartdesign/radio-button-group";
127
+
128
+ document
129
+ .querySelectorAll("#validation-example-root sd-radio-button-group")
130
+ .forEach((radioButtonGroup: RadioButtonGroup) => {
131
+ radioButtonGroup.layout = "horizontal";
132
+ radioButtonGroup.addEventListener("value-change", (event: CustomEvent<IValueChangeEvent>) =>
133
+ onValueChange(event.detail.value, event.detail.selectedIndex),
134
+ );
135
+
136
+ onValueChange(radioButtonGroup.value, -1);
137
+
138
+ function onValueChange(value: string, selectedIndex: number) {
139
+ let validationMessage: string;
140
+ if (selectedIndex == -1) {
141
+ validationMessage = "An option must be selected";
142
+ }
143
+ radioButtonGroup.validationMessage = validationMessage;
144
+ }
145
+ });
146
+ `,ar={mainContent:ir,description:sr,css:rr,initializer:{content:or,type:"typescript",initialize:()=>xi(()=>import("./4_validation.js"),__vite__mapDeps([]),import.meta.url)}},lr=Object.freeze(Object.defineProperty({__proto__:null,default:ar},Symbol.toStringTag,{value:"Module"})),cr=`<div id="segmented-button-example-root">
147
+ <sd-radio-button-group tabindex="0" uncheck-allowed validationlevel="error"> </sd-radio-button-group>
148
+ <div><span>Selected value: </span><span id="selected-value"></span></div>
149
+ <div><span>Selected index: </span><span id="selected-index"></span></div>
150
+ </div>
151
+ `,ur=`<h3 id="segmented-button">Segmented button</h3>
152
+ `,dr=`sd-radio-button-group {
153
+ display: block;
154
+ min-height: 64px; /* Have space for the validation message */
155
+ }
156
+ sd-button {
157
+ padding: 8px 16px;
158
+ align-items: normal;
159
+ border: 1px solid #1467ba;
160
+ }
161
+ sd-button + sd-button {
162
+ border-left: none;
163
+ }
164
+ sd-button[checked] .indicator {
165
+ border-color: #ccc;
166
+ }
167
+ .indicator {
168
+ height: 12px;
169
+ width: 12px;
170
+ border-radius: 8px;
171
+ border: 1px solid transparent;
172
+ }
173
+ `,hr=`import "@cas-smartdesign/button";
174
+ import "@cas-smartdesign/radio-button-group";
175
+ import { Button } from "@cas-smartdesign/button";
176
+ import { IValueChangeEvent, RadioButtonGroup } from "@cas-smartdesign/radio-button-group";
177
+
178
+ type Option = {
179
+ value: string;
180
+ label: string;
181
+ color: string;
182
+ button?: Button;
183
+ };
184
+
185
+ const options: Option[] = [
186
+ {
187
+ value: "new",
188
+ label: "New",
189
+ color: "silver",
190
+ },
191
+ {
192
+ value: "in-progress",
193
+ label: "In progress",
194
+ color: "#1467ba",
195
+ },
196
+ {
197
+ value: "accepted",
198
+ label: "Accepted",
199
+ color: "#009621",
200
+ },
201
+ {
202
+ value: "declined",
203
+ label: "Declined",
204
+ color: "#cc0017",
205
+ },
206
+ ];
207
+
208
+ const container = document.querySelector("#segmented-button-example-root");
209
+ const valueElement = container.querySelector("#selected-value") as HTMLSpanElement;
210
+ const indexElement = container.querySelector("#selected-index") as HTMLSpanElement;
211
+ const radioButtonGroup = container.querySelector("sd-radio-button-group") as RadioButtonGroup;
212
+
213
+ options.forEach((option) => {
214
+ const indicator = document.createElement("div");
215
+ indicator.className = "indicator";
216
+ indicator.style.background = option.color;
217
+
218
+ const buttonContent = document.createElement("span");
219
+ buttonContent.innerText = option.label;
220
+
221
+ const button = new Button();
222
+ button.append(indicator);
223
+ button.append(buttonContent);
224
+ button.setAttribute("value", option.value);
225
+
226
+ radioButtonGroup.append(button);
227
+ option.button = button;
228
+ });
229
+
230
+ radioButtonGroup.layout = "horizontal";
231
+ radioButtonGroup.addEventListener("value-change", (event: CustomEvent<IValueChangeEvent>) =>
232
+ onValueChange(event.detail.value, event.detail.selectedIndex),
233
+ );
234
+ onValueChange(radioButtonGroup.value, -1);
235
+
236
+ function onValueChange(value: string, selectedIndex: number) {
237
+ options.forEach((option, index) => (option.button.primary = index == selectedIndex));
238
+ let validationMessage: string;
239
+ if (selectedIndex == -1) {
240
+ validationMessage = "An option must be selected";
241
+ }
242
+ radioButtonGroup.validationMessage = validationMessage;
243
+ valueElement.innerText = value || "<unselected>";
244
+ indexElement.innerText = selectedIndex?.toString();
245
+ }
246
+ `,pr={mainContent:cr,description:ur,css:dr,initializer:{content:hr,type:"typescript",initialize:()=>xi(()=>import("./5_segmented_button.js"),__vite__mapDeps([]),import.meta.url)}},fr=Object.freeze(Object.defineProperty({__proto__:null,default:pr},Symbol.toStringTag,{value:"Module"}));const ot=window,fn=ot.ShadowRoot&&(ot.ShadyCSS===void 0||ot.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gn=Symbol(),Bn=new WeakMap;let _i=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==gn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(fn&&e===void 0){const n=t!==void 0&&t.length===1;n&&(e=Bn.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Bn.set(t,e))}return e}toString(){return this.cssText}};const vt=i=>new _i(typeof i=="string"?i:i+"",void 0,gn),mn=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((n,s,o)=>n+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+i[o+1],i[0]);return new _i(t,i,gn)},gr=(i,e)=>{fn?i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{const n=document.createElement("style"),s=ot.litNonce;s!==void 0&&n.setAttribute("nonce",s),n.textContent=t.cssText,i.appendChild(n)})},Dn=fn?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const n of e.cssRules)t+=n.cssText;return vt(t)})(i):i;var Lt;const ut=window,zn=ut.trustedTypes,mr=zn?zn.emptyScript:"",Un=ut.reactiveElementPolyfillSupport,Kt={toAttribute(i,e){switch(e){case Boolean:i=i?mr:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},Ei=(i,e)=>e!==i&&(e==e||i==i),jt={attribute:!0,type:String,converter:Kt,reflect:!1,hasChanged:Ei},Jt="finalized";let me=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((t,n)=>{const s=this._$Ep(n,t);s!==void 0&&(this._$Ev.set(s,n),e.push(s))}),e}static createProperty(e,t=jt){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const n=typeof e=="symbol"?Symbol():"__"+e,s=this.getPropertyDescriptor(e,n,t);s!==void 0&&Object.defineProperty(this.prototype,e,s)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(s){const o=this[e];this[t]=s,this.requestUpdate(e,o,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||jt}static finalize(){if(this.hasOwnProperty(Jt))return!1;this[Jt]=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,n=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of n)this.createProperty(s,t[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const s of n)t.unshift(Dn(s))}else e!==void 0&&t.push(Dn(e));return t}static _$Ep(e,t){const n=t.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}_$Eu(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,n;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)===null||n===void 0||n.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;const t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return gr(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostConnected)===null||n===void 0?void 0:n.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostDisconnected)===null||n===void 0?void 0:n.call(t)})}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t,n=jt){var s;const o=this.constructor._$Ep(e,n);if(o!==void 0&&n.reflect===!0){const r=(((s=n.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?n.converter:Kt).toAttribute(t,n.type);this._$El=e,r==null?this.removeAttribute(o):this.setAttribute(o,r),this._$El=null}}_$AK(e,t){var n;const s=this.constructor,o=s._$Ev.get(e);if(o!==void 0&&this._$El!==o){const r=s.getPropertyOptions(o),a=typeof r.converter=="function"?{fromAttribute:r.converter}:((n=r.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?r.converter:Kt;this._$El=o,this[o]=a.fromAttribute(t,r.type),this._$El=null}}requestUpdate(e,t,n){let s=!0;e!==void 0&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||Ei)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),n.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,n))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((s,o)=>this[o]=s),this._$Ei=void 0);let t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),(e=this._$ES)===null||e===void 0||e.forEach(s=>{var o;return(o=s.hostUpdate)===null||o===void 0?void 0:o.call(s)}),this.update(n)):this._$Ek()}catch(s){throw t=!1,this._$Ek(),s}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(n=>{var s;return(s=n.hostUpdated)===null||s===void 0?void 0:s.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,n)=>this._$EO(n,this[n],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};me[Jt]=!0,me.elementProperties=new Map,me.elementStyles=[],me.shadowRootOptions={mode:"open"},Un==null||Un({ReactiveElement:me}),((Lt=ut.reactiveElementVersions)!==null&&Lt!==void 0?Lt:ut.reactiveElementVersions=[]).push("1.6.3");var Bt;const dt=window,be=dt.trustedTypes,Hn=be?be.createPolicy("lit-html",{createHTML:i=>i}):void 0,Xt="$lit$",Q=`lit$${(Math.random()+"").slice(9)}$`,Si="?"+Q,br=`<${Si}>`,ce=document,Re=()=>ce.createComment(""),Me=i=>i===null||typeof i!="object"&&typeof i!="function",Ai=Array.isArray,yr=i=>Ai(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Dt=`[
247
+ \f\r]`,Ae=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Fn=/-->/g,Vn=/>/g,re=RegExp(`>|${Dt}(?:([^\\s"'>=/]+)(${Dt}*=${Dt}*(?:[^
248
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),qn=/'/g,Wn=/"/g,$i=/^(?:script|style|textarea|title)$/i,vr=i=>(e,...t)=>({_$litType$:i,strings:e,values:t}),Ne=vr(1),ye=Symbol.for("lit-noChange"),R=Symbol.for("lit-nothing"),Gn=new WeakMap,oe=ce.createTreeWalker(ce,129,null,!1);function ki(i,e){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Hn!==void 0?Hn.createHTML(e):e}const wr=(i,e)=>{const t=i.length-1,n=[];let s,o=e===2?"<svg>":"",r=Ae;for(let a=0;a<t;a++){const l=i[a];let c,u,p=-1,f=0;for(;f<l.length&&(r.lastIndex=f,u=r.exec(l),u!==null);)f=r.lastIndex,r===Ae?u[1]==="!--"?r=Fn:u[1]!==void 0?r=Vn:u[2]!==void 0?($i.test(u[2])&&(s=RegExp("</"+u[2],"g")),r=re):u[3]!==void 0&&(r=re):r===re?u[0]===">"?(r=s??Ae,p=-1):u[1]===void 0?p=-2:(p=r.lastIndex-u[2].length,c=u[1],r=u[3]===void 0?re:u[3]==='"'?Wn:qn):r===Wn||r===qn?r=re:r===Fn||r===Vn?r=Ae:(r=re,s=void 0);const x=r===re&&i[a+1].startsWith("/>")?" ":"";o+=r===Ae?l+br:p>=0?(n.push(c),l.slice(0,p)+Xt+l.slice(p)+Q+x):l+Q+(p===-2?(n.push(void 0),a):x)}return[ki(i,o+(i[t]||"<?>")+(e===2?"</svg>":"")),n]};class Pe{constructor({strings:e,_$litType$:t},n){let s;this.parts=[];let o=0,r=0;const a=e.length-1,l=this.parts,[c,u]=wr(e,t);if(this.el=Pe.createElement(c,n),oe.currentNode=this.el.content,t===2){const p=this.el.content,f=p.firstChild;f.remove(),p.append(...f.childNodes)}for(;(s=oe.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes()){const p=[];for(const f of s.getAttributeNames())if(f.endsWith(Xt)||f.startsWith(Q)){const x=u[r++];if(p.push(f),x!==void 0){const C=s.getAttribute(x.toLowerCase()+Xt).split(Q),M=/([.?@])?(.*)/.exec(x);l.push({type:1,index:o,name:M[2],strings:C,ctor:M[1]==="."?_r:M[1]==="?"?Sr:M[1]==="@"?Ar:wt})}else l.push({type:6,index:o})}for(const f of p)s.removeAttribute(f)}if($i.test(s.tagName)){const p=s.textContent.split(Q),f=p.length-1;if(f>0){s.textContent=be?be.emptyScript:"";for(let x=0;x<f;x++)s.append(p[x],Re()),oe.nextNode(),l.push({type:2,index:++o});s.append(p[f],Re())}}}else if(s.nodeType===8)if(s.data===Si)l.push({type:2,index:o});else{let p=-1;for(;(p=s.data.indexOf(Q,p+1))!==-1;)l.push({type:7,index:o}),p+=Q.length-1}o++}}static createElement(e,t){const n=ce.createElement("template");return n.innerHTML=e,n}}function ve(i,e,t=i,n){var s,o,r,a;if(e===ye)return e;let l=n!==void 0?(s=t._$Co)===null||s===void 0?void 0:s[n]:t._$Cl;const c=Me(e)?void 0:e._$litDirective$;return(l==null?void 0:l.constructor)!==c&&((o=l==null?void 0:l._$AO)===null||o===void 0||o.call(l,!1),c===void 0?l=void 0:(l=new c(i),l._$AT(i,t,n)),n!==void 0?((r=(a=t)._$Co)!==null&&r!==void 0?r:a._$Co=[])[n]=l:t._$Cl=l),l!==void 0&&(e=ve(i,l._$AS(i,e.values),l,n)),e}class xr{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:n},parts:s}=this._$AD,o=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:ce).importNode(n,!0);oe.currentNode=o;let r=oe.nextNode(),a=0,l=0,c=s[0];for(;c!==void 0;){if(a===c.index){let u;c.type===2?u=new Ue(r,r.nextSibling,this,e):c.type===1?u=new c.ctor(r,c.name,c.strings,this,e):c.type===6&&(u=new $r(r,this,e)),this._$AV.push(u),c=s[++l]}a!==(c==null?void 0:c.index)&&(r=oe.nextNode(),a++)}return oe.currentNode=ce,o}v(e){let t=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,t),t+=n.strings.length-2):n._$AI(e[t])),t++}}class Ue{constructor(e,t,n,s){var o;this.type=2,this._$AH=R,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=s,this._$Cp=(o=s==null?void 0:s.isConnected)===null||o===void 0||o}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ve(this,e,t),Me(e)?e===R||e==null||e===""?(this._$AH!==R&&this._$AR(),this._$AH=R):e!==this._$AH&&e!==ye&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):yr(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==R&&Me(this._$AH)?this._$AA.nextSibling.data=e:this.$(ce.createTextNode(e)),this._$AH=e}g(e){var t;const{values:n,_$litType$:s}=e,o=typeof s=="number"?this._$AC(e):(s.el===void 0&&(s.el=Pe.createElement(ki(s.h,s.h[0]),this.options)),s);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===o)this._$AH.v(n);else{const r=new xr(o,this),a=r.u(this.options);r.v(n),this.$(a),this._$AH=r}}_$AC(e){let t=Gn.get(e.strings);return t===void 0&&Gn.set(e.strings,t=new Pe(e)),t}T(e){Ai(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let n,s=0;for(const o of e)s===t.length?t.push(n=new Ue(this.k(Re()),this.k(Re()),this,this.options)):n=t[s],n._$AI(o),s++;s<t.length&&(this._$AR(n&&n._$AB.nextSibling,s),t.length=s)}_$AR(e=this._$AA.nextSibling,t){var n;for((n=this._$AP)===null||n===void 0||n.call(this,!1,!0,t);e&&e!==this._$AB;){const s=e.nextSibling;e.remove(),e=s}}setConnected(e){var t;this._$AM===void 0&&(this._$Cp=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}class wt{constructor(e,t,n,s,o){this.type=1,this._$AH=R,this._$AN=void 0,this.element=e,this.name=t,this._$AM=s,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=R}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,n,s){const o=this.strings;let r=!1;if(o===void 0)e=ve(this,e,t,0),r=!Me(e)||e!==this._$AH&&e!==ye,r&&(this._$AH=e);else{const a=e;let l,c;for(e=o[0],l=0;l<o.length-1;l++)c=ve(this,a[n+l],t,l),c===ye&&(c=this._$AH[l]),r||(r=!Me(c)||c!==this._$AH[l]),c===R?e=R:e!==R&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}r&&!s&&this.j(e)}j(e){e===R?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class _r extends wt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===R?void 0:e}}const Er=be?be.emptyScript:"";class Sr extends wt{constructor(){super(...arguments),this.type=4}j(e){e&&e!==R?this.element.setAttribute(this.name,Er):this.element.removeAttribute(this.name)}}let Ar=class extends wt{constructor(e,t,n,s,o){super(e,t,n,s,o),this.type=5}_$AI(e,t=this){var n;if((e=(n=ve(this,e,t,0))!==null&&n!==void 0?n:R)===ye)return;const s=this._$AH,o=e===R&&s!==R||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,r=e!==R&&(s===R||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,n;typeof this._$AH=="function"?this._$AH.call((n=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&n!==void 0?n:this.element,e):this._$AH.handleEvent(e)}};class $r{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){ve(this,e)}}const Zn=dt.litHtmlPolyfillSupport;Zn==null||Zn(Pe,Ue),((Bt=dt.litHtmlVersions)!==null&&Bt!==void 0?Bt:dt.litHtmlVersions=[]).push("2.8.0");const kr=(i,e,t)=>{var n,s;const o=(n=t==null?void 0:t.renderBefore)!==null&&n!==void 0?n:e;let r=o._$litPart$;if(r===void 0){const a=(s=t==null?void 0:t.renderBefore)!==null&&s!==void 0?s:null;o._$litPart$=r=new Ue(e.insertBefore(Re(),a),a,void 0,t??{})}return r._$AI(i),r};var zt,Ut;let ae=class extends me{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const n=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=n.firstChild),n}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=kr(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return ye}};ae.finalized=!0,ae._$litElement$=!0,(zt=globalThis.litElementHydrateSupport)===null||zt===void 0||zt.call(globalThis,{LitElement:ae});const Kn=globalThis.litElementPolyfillSupport;Kn==null||Kn({LitElement:ae});((Ut=globalThis.litElementVersions)!==null&&Ut!==void 0?Ut:globalThis.litElementVersions=[]).push("3.3.3");const Cr=(i,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,i)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,i)}},Or=(i,e,t)=>{e.constructor.createProperty(t,i)};function T(i){return(e,t)=>t!==void 0?Or(i,e,t):Cr(i,e)}const Rr=i=>i??R,Mr=":host{display:block}:host,.label,.checkbox{outline:none}:host([disabled]){pointer-events:none}:host([disabled]) .root{opacity:.6;cursor:default;filter:grayscale(100%)}:host(:not([disabled])[focused]) .highlight{display:block!important}:host([checked]) circle.inner{display:block!important}:host([checked]) circle.outer{stroke:var(--sd-radio-button-checked-color, #1467ba)!important}.root{display:inline-flex;align-items:center;vertical-align:middle;width:100%;padding-top:6px;padding-bottom:6px}.root .radio-button-container{position:relative;display:inline-block;width:28px;height:28px;box-sizing:border-box;cursor:pointer;margin-right:5px;flex-shrink:0}.root .radio-button-container input{position:absolute;top:0;left:0;opacity:0}.root .radio-button-container circle.highlight{stroke:var(--sd-radio-button-highlight-color, rgba(20, 103, 186, .3))}.root .radio-button-container circle.inner{fill:var(--sd-radio-button-checked-color, #1467ba)}.root .radio-button-container circle.outer{stroke:var(--sd-radio-button-unchecked-color, #767676)}.root .label{font-family:Segoe UI,Lucida Sans,Arial,sans-serif;text-overflow:ellipsis;overflow-x:hidden;-webkit-user-select:none;user-select:none;cursor:pointer;padding-top:2px;padding-bottom:2px}";var Nr=Object.defineProperty,Pr=Object.getOwnPropertyDescriptor,xt=(i,e,t,n)=>{for(var s=n>1?void 0:n?Pr(e,t):e,o=i.length-1,r;o>=0;o--)(r=i[o])&&(s=(n?r(e,t,s):r(s))||s);return n&&s&&Nr(e,t,s),s};let Ir=0;var V;const He=(V=class extends ae{constructor(){super(),this.checked=!1,this.value="",this.disabled=!1,this.label="",this.handleClick=e=>{e.preventDefault()},this.a11yID=V.ID+"_"+Ir++}static get styles(){return[mn`
249
+ ${vt(Mr)}
250
+ `]}render(){return Ne`
251
+ <div class="root">
252
+ <div class="radio-button-container">
253
+ <input
254
+ type="radio"
255
+ id="${this.a11yID}"
256
+ .checked="${this.checked}"
257
+ ?disabled="${this.disabled}"
258
+ @click="${this.handleClick}"
259
+ class="radio-button"
260
+ />
261
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="-14 -14 28 28">
262
+ <circle
263
+ class="highlight"
264
+ style="display:none"
265
+ r="11px"
266
+ fill="transparent"
267
+ stroke-width="6px"
268
+ ></circle>
269
+ <circle class="inner" r="6px" style="display:none" stroke="none"></circle>
270
+ <circle class="outer" r="9px" fill="transparent" stroke-width="2px"></circle>
271
+ </svg>
272
+ </div>
273
+ <label class="label" for="${this.a11yID}" @click="${this.handleClick}">${this.label}</label>
274
+ </div>
275
+ `}},V.ID="sd-radio-button",V.ensureDefined=()=>{customElements.get(V.ID)||customElements.define(V.ID,V)},V);xt([T({type:Boolean,reflect:!0,attribute:!0})],He.prototype,"checked",2);xt([T({type:String,reflect:!0,attribute:!0})],He.prototype,"value",2);xt([T({type:Boolean,reflect:!0,attribute:!0})],He.prototype,"disabled",2);xt([T({type:String,reflect:!0,attribute:!0})],He.prototype,"label",2);let Tr=He;const Lr=":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}",jr="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",Br="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",Dr="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 zr=Object.defineProperty,Ur=Object.getOwnPropertyDescriptor,bn=(i,e,t,n)=>{for(var s=n>1?void 0:n?Ur(e,t):e,o=i.length-1,r;o>=0;o--)(r=i[o])&&(s=(n?r(e,t,s):r(s))||s);return n&&s&&zr(e,t,s),s},fe;const Ie=(fe=class extends ae{static parseLevel(i){if(i){const e=Object.keys(ht).find(t=>t.toLowerCase()===i.toLowerCase());return e&&ht[e]}}static get styles(){return[mn`
276
+ ${vt(Lr)}
277
+ `]}render(){return Ne`${this.iconToUse&&Ne`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(i){return i.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(i)}get iconForLevel(){switch(fe.parseLevel(this.level)){case"warn":return Dr;case"suggest":return Br;case"error":return jr;default:return null}}},fe.ID="sd-field-validation-message",fe.levelConverter={fromAttribute(i){return fe.parseLevel(i)},toAttribute(i){return i&&i.toLowerCase()}},fe);bn([T({type:String,attribute:!0})],Ie.prototype,"message",2);bn([T({type:String,attribute:!0})],Ie.prototype,"icon",2);bn([T({converter:Ie.levelConverter,reflect:!0})],Ie.prototype,"level",2);let Ht=Ie;var ht=(i=>(i.Warn="warn",i.Suggest="suggest",i.Error="error",i))(ht||{});customElements.get(Ht.ID)||customElements.define(Ht.ID,Ht);const Hr=":host(:focus){outline:none}.buttons-container{display:flex}.buttons-container.vertical{flex-direction:column}.validation-message{margin-left:5px}";var Fr=Object.defineProperty,Vr=Object.getOwnPropertyDescriptor,ue=(i,e,t,n)=>{for(var s=n>1?void 0:n?Vr(e,t):e,o=i.length-1,r;o>=0;o--)(r=i[o])&&(s=(n?r(e,t,s):r(s))||s);return n&&s&&Fr(e,t,s),s},K;const ee=(K=class extends ae{constructor(){super(...arguments),this.layout="horizontal",this.value="",this.uncheckAllowed=!1,this.disabled=!1,this._focusIndex=-1,this._checkedButton=null,this.handleSlotChange=()=>{this._buttons=this.buttonsSlot.assignedElements(),this._buttons.forEach(e=>{!e.hasAttribute("disabled")&&this.disabled&&e.setAttribute("disabled",""),e.setAttribute("tabIndex","-1"),this.updateCheckedButton(e)})},this.handleFocusIn=e=>{const t=e.target,n=this._buttons.findIndex(s=>s==t);this.focusIndex=this.focusIndex>=0?this.focusIndex:this.getNextFocusIndex(n!==-1?n:0),this.updateFocused(null,this._buttons[this.focusIndex])},this.handleFocusOut=()=>{this.updateFocused(this._buttons[this.focusIndex])},this.handleButtonClick=e=>{this.focus();const t=this._buttons.find(s=>s.contains(e.target)),n=this._buttons.findIndex(s=>s==t);n>=0&&(this.focusIndex=n,this.updateChecked())},this.handleKeyDown=e=>{let t=!0;switch(e.key){case"Down":case"ArrowDown":{const n=this.getNextFocusIndex(this.focusIndex+1);this.focusIndex=n!==-1?n:this.getNextFocusIndex(0),this.uncheckAllowed||this.updateChecked();break}case"Up":case"ArrowUp":{const n=this.getPreviousFocusIndex(this.focusIndex-1);this.focusIndex=n!==-1?n:this.getPreviousFocusIndex(this.childElementCount-1),this.uncheckAllowed||this.updateChecked();break}case"Enter":{this.updateChecked();break}default:t=!1}t&&(e.preventDefault(),e.stopPropagation())}}get focusIndex(){return this._focusIndex}set focusIndex(e){if(e>=-1&&e<this.childElementCount){const t=this._focusIndex;if(this._focusIndex=e,t!==e){const n=this._buttons[t],s=this._buttons[this.focusIndex];this.updateFocused(n,s)}}}firstUpdated(e){super.firstUpdated(e),this.buttonsSlot.addEventListener("slotchange",this.handleSlotChange),this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut),this.addEventListener("keydown",this.handleKeyDown)}updated(e){super.updated(e),e.has("disabled")&&(this.disabled?this.disableButtons():this.enableButtons())}static get styles(){return[mn`
278
+ ${vt(Hr)}
279
+ `]}render(){return Ne`
280
+ <div
281
+ class="buttons-container ${this.layout==="vertical"?"vertical":"horizontal"}"
282
+ @click="${Rr(this.disabled?void 0:this.handleButtonClick)}"
283
+ >
284
+ <slot></slot>
285
+ </div>
286
+ ${this.validationMessage&&Ne`
287
+ <sd-field-validation-message
288
+ class="validation-message"
289
+ .message=${this.validationMessage}
290
+ .icon=${this.validationIconSrc}
291
+ .level=${this.validationLevel}
292
+ >
293
+ </sd-field-validation-message>
294
+ `}
295
+ `}updateCheckedButton(e){if(this._checkedButton&&this._checkedButton!==e)this.uncheckButton(e);else if(e.hasAttribute("checked")){this._checkedButton=e;const t=e.getAttribute("value");this.updateValue(t)}}disableButtons(){var e;(e=this._buttons)==null||e.forEach(t=>{t.setAttribute("disabled","")})}enableButtons(){var e;(e=this._buttons)==null||e.forEach(t=>{t.removeAttribute("disabled")})}fireValueChangeEvent(){this.dispatchEvent(new CustomEvent("value-change",{detail:{value:this.value,selectedIndex:this.selectedIndex}}))}getNextFocusIndex(e){for(let t=e;t<this.childElementCount;t++){const n=this._buttons[t];if(this.isFocusable(n))return t}return-1}getPreviousFocusIndex(e){for(let t=e;t>=0;t--){const n=this._buttons[t];if(this.isFocusable(n))return t}return-1}isFocusable(e){return!e.hasAttribute("disabled")}updateChecked(){const e=this._checkedButton,t=this._buttons[this.focusIndex];this._checkedButton=t,e&&e!==t&&this.uncheckButton(e),t&&this.toggleButton(t)}toggleButton(e){e.hasAttribute("checked")?this.uncheckAllowed&&(this.uncheckButton(e),this._checkedButton=null,this.updateValue("")):(this.checkButton(e),this.updateValue(e.getAttribute("value")))}updateValue(e){this.value=e,this.fireValueChangeEvent()}updateFocused(e,t){var n,s;(n=e==null?void 0:e.removeAttribute)==null||n.call(e,"focused"),(s=t==null?void 0:t.setAttribute)==null||s.call(t,"focused","")}checkButton(e){e.setAttribute("checked","")}uncheckButton(e){e.removeAttribute("checked")}get buttonsSlot(){return this.shadowRoot&&!this._buttonsSlot&&(this._buttonsSlot=this.shadowRoot.querySelector("slot")),this._buttonsSlot}get selectedIndex(){return this._buttons.indexOf(this._checkedButton)}},K.ID="sd-radio-button-group",K.ensureDefined=()=>{Tr.ensureDefined(),customElements.get(K.ID)||customElements.define(K.ID,K)},K);ue([T({type:String,reflect:!0,attribute:!0})],ee.prototype,"layout",2);ue([T({type:String})],ee.prototype,"value",2);ue([T({type:Boolean,reflect:!0,attribute:"uncheck-allowed"})],ee.prototype,"uncheckAllowed",2);ue([T({type:Boolean,reflect:!0,attribute:!0})],ee.prototype,"disabled",2);ue([T({type:String})],ee.prototype,"validationMessage",2);ue([T({type:String})],ee.prototype,"validationIconSrc",2);ue([T({type:{fromAttribute(i){return i&&ht[i.toLowerCase()]},toAttribute(i){return i&&i.toLowerCase()}},reflect:!0})],ee.prototype,"validationLevel",2);let qr=ee;qr.ensureDefined();const Ci=class at extends HTMLElement{memoizedTemplate(){const e=this.is();if(at.TEMPLATE_CACHE[e])return at.TEMPLATE_CACHE[e];const t=this.template();return window.ShadyCSS&&window.ShadyCSS.prepareTemplate(t,this.is()),at.TEMPLATE_CACHE[e]=t,t}connectedCallback(){const e=this.memoizedTemplate();window.ShadyCSS&&window.ShadyCSS.styleElement(this),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(document.importNode(e.content,!0)),requestAnimationFrame(()=>this.dispatchEvent(new CustomEvent("ready"))))}whenReady(e){this.shadowRoot?e():this.addEventListener("ready",()=>e())}};Ci.TEMPLATE_CACHE={};let Wr=Ci;const Gr=`<style>
296
+ :host {
297
+ contain: content;
298
+ background: rgba(20, 103, 186, 0);
299
+ color: #1467ba;
300
+ border: none;
301
+ outline: none;
302
+ padding: 0 8px;
303
+ height: 32px;
304
+ cursor: pointer;
305
+ user-select: none;
306
+ display: inline-flex;
307
+ align-items: center;
308
+ justify-content: center;
309
+ box-sizing: border-box;
310
+ vertical-align: middle;
311
+ }
312
+
313
+ :host(:focus),
314
+ :host(:not([disabled], [aria-disabled="true"]):hover) {
315
+ background: rgba(20, 103, 186, 0.1);
316
+ }
317
+
318
+ @media (forced-colors: active) {
319
+ :host(:not([disabled], [aria-disabled="true"]):focus-visible) {
320
+ outline: 1px solid;
321
+ }
322
+ :host {
323
+ margin: 1px;
324
+ }
325
+ }
326
+
327
+ :host(:not([disabled], [aria-disabled="true"]):focus-visible) {
328
+ box-shadow: 0 0 0 1px #1467ba inset;
329
+ }
330
+
331
+ :host(:not([disabled], [aria-disabled="true"]):active) {
332
+ background: rgba(20, 103, 186, 0.2);
333
+ }
334
+
335
+ :host([primary]) {
336
+ background: #1467ba;
337
+ color: #fff;
338
+ }
339
+
340
+ :host([primary]:focus),
341
+ :host(:not([disabled], [aria-disabled="true"])[primary]:hover) {
342
+ background: #125da8;
343
+ }
344
+
345
+ :host([primary]:focus-visible) {
346
+ box-shadow: 0 0 0 1px white inset;
347
+ }
348
+
349
+ :host(:not([disabled], [aria-disabled="true"])[primary]:focus-visible) {
350
+ outline: 1px solid #1467ba;
351
+ }
352
+
353
+ :host(:not([disabled], [aria-disabled="true"])[primary]:active) {
354
+ background: #0e4883;
355
+ }
356
+
357
+ :host([disabled]),
358
+ :host([aria-disabled="true"]) {
359
+ filter: grayscale(100%);
360
+ opacity: 0.5;
361
+ cursor: default;
362
+ }
363
+
364
+ :host([disabled]:focus-visible),
365
+ :host([aria-disabled="true"]:focus-visible) {
366
+ outline: 1px dashed #111;
367
+ }
368
+
369
+ :host(:not([icon])) .icon,
370
+ :host([icon=""]) .icon {
371
+ display: none;
372
+ }
373
+
374
+ .content {
375
+ display: flex;
376
+ align-items: center;
377
+ min-width: 0px;
378
+ }
379
+
380
+ .content ::slotted(*) {
381
+ margin-left: var(--sd-button-content-padding, 8px);
382
+ }
383
+
384
+ .content ::slotted(*:last-child) {
385
+ margin-right: var(--sd-button-content-padding, 8px);
386
+ }
387
+
388
+ .icon {
389
+ max-height: var(--sd-button-max-icon-size, 32px);
390
+ max-width: var(--sd-button-max-icon-size, 32px);
391
+ }
392
+ </style>
393
+ <img class="icon" />
394
+ <div class="content">
395
+ <slot></slot>
396
+ </div>
397
+ `,Oi=class Ri extends Wr{constructor(){super(),this._isSpaceOrEnterKeyDown=!1,this.addEventListener("keydown",e=>{this.isSpaceOrEnter(e)&&(this._isSpaceOrEnterKeyDown=!0,e.preventDefault())}),this.addEventListener("keyup",e=>{this.isSpaceOrEnter(e)&&this._isSpaceOrEnterKeyDown==!0&&(this._isSpaceOrEnterKeyDown=!1,this.click())}),this.addEventListener("click",e=>{var t,n;if(this.disabled||this.hasAttribute("disabled")){e.stopImmediatePropagation();return}const s=(n=(t=this.getAttribute("type"))==null?void 0:t.toLowerCase())==null?void 0:n.trim();if(s!=="submit"&&s!=="reset")return;const o=this.closest("form");o&&s==="submit"&&o.requestSubmit(),o&&s==="reset"&&o.reset()},{capture:!0})}get imageElement(){return this._image}get icon(){return this.getAttribute("icon")}set icon(e){this.icon!==e&&(e?this.setAttribute("icon",e):this.removeAttribute("icon"),this.updateIcon())}get primary(){return this.hasAttribute("primary")}set primary(e){e?this.setAttribute("primary",""):this.removeAttribute("primary")}get disabled(){return this.getAttribute("aria-disabled")=="true"}set disabled(e){this.setAttribute("aria-disabled",e.toString())}static get observedAttributes(){return["icon"]}is(){return Ri.ID}template(){const e=document.createElement("template");return e.innerHTML=Gr,e}isSpaceOrEnter(e){switch(e.key){case" ":case"Space":case"Enter":return!0;default:return!1}}click(){!this.disabled&&!this.hasAttribute("disabled")&&super.click()}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabIndex")||(this.tabIndex=0),this._image=this.shadowRoot.querySelector(".icon"),this.updateIcon(),this.hasAttribute("role")||this.setAttribute("role","button")}attributeChangedCallback(){this.updateIcon()}updateIcon(){if(this._image){const e=this.getAttribute("icon");e&&(this._image.src=e)}}};Oi.ID="sd-button";let Ft=Oi;customElements.get(Ft.ID)||customElements.define(Ft.ID,Ft);function Mi(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function Zr(i){if(i.__esModule)return i;var e=i.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(i).forEach(function(n){var s=Object.getOwnPropertyDescriptor(i,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return i[n]}})}),t}var yn={exports:{}},$=String,Ni=function(){return{isColorSupported:!1,reset:$,bold:$,dim:$,italic:$,underline:$,inverse:$,hidden:$,strikethrough:$,black:$,red:$,green:$,yellow:$,blue:$,magenta:$,cyan:$,white:$,gray:$,bgBlack:$,bgRed:$,bgGreen:$,bgYellow:$,bgBlue:$,bgMagenta:$,bgCyan:$,bgWhite:$}};yn.exports=Ni();yn.exports.createColors=Ni;var Kr=yn.exports;const Jr={},Xr=Object.freeze(Object.defineProperty({__proto__:null,default:Jr},Symbol.toStringTag,{value:"Module"})),D=Zr(Xr);let Jn=Kr,Xn=D,Qt=class Pi extends Error{constructor(e,t,n,s,o,r){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),s&&(this.source=s),r&&(this.plugin=r),typeof t<"u"&&typeof n<"u"&&(typeof t=="number"?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Pi)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Jn.isColorSupported),Xn&&e&&(t=Xn(t));let n=t.split(/\r?\n/),s=Math.max(this.line-3,0),o=Math.min(this.line+2,n.length),r=String(o).length,a,l;if(e){let{bold:c,gray:u,red:p}=Jn.createColors(!0);a=f=>c(p(f)),l=f=>u(f)}else a=l=c=>c;return n.slice(s,o).map((c,u)=>{let p=s+1+u,f=" "+(" "+p).slice(-r)+" | ";if(p===this.line){let x=l(f.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+l(f)+c+`
398
+ `+x+a("^")}return" "+l(f)+c}).join(`
399
+ `)}toString(){let e=this.showSourceCode();return e&&(e=`
400
+
401
+ `+e+`
402
+ `),this.name+": "+this.message+e}};var vn=Qt;Qt.default=Qt;var Fe={};Fe.isClean=Symbol("isClean");Fe.my=Symbol("my");const Qn={after:`
403
+ `,beforeClose:`
404
+ `,beforeComment:`
405
+ `,beforeDecl:`
406
+ `,beforeOpen:" ",beforeRule:`
407
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Qr(i){return i[0].toUpperCase()+i.slice(1)}let Yt=class{constructor(e){this.builder=e}atrule(e,t){let n="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?n+=e.raws.afterName:s&&(n+=" "),e.nodes)this.block(e,n+s);else{let o=(e.raws.between||"")+(t?";":"");this.builder(n+s+o,e)}}beforeAfter(e,t){let n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):t==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");let s=e.parent,o=0;for(;s&&s.type!=="root";)o+=1,s=s.parent;if(n.includes(`
408
+ `)){let r=this.raw(e,null,"indent");if(r.length)for(let a=0;a<o;a++)n+=r}return n}block(e,t){let n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start");let s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let n=this.raw(e,"semicolon");for(let s=0;s<e.nodes.length;s++){let o=e.nodes[s],r=this.raw(o,"before");r&&this.builder(r),this.stringify(o,t!==s||n)}}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}decl(e,t){let n=this.raw(e,"between","colon"),s=e.prop+n+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)}document(e){this.body(e)}raw(e,t,n){let s;if(n||(n=t),t&&(s=e.raws[t],typeof s<"u"))return s;let o=e.parent;if(n==="before"&&(!o||o.type==="root"&&o.first===e||o&&o.type==="document"))return"";if(!o)return Qn[n];let r=e.root();if(r.rawCache||(r.rawCache={}),typeof r.rawCache[n]<"u")return r.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);{let a="raw"+Qr(n);this[a]?s=this[a](r,e):r.walk(l=>{if(s=l.raws[t],typeof s<"u")return!1})}return typeof s>"u"&&(s=Qn[n]),r.rawCache[n]=s,s}rawBeforeClose(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after<"u")return t=n.raws.after,t.includes(`
409
+ `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let n;return e.walkComments(s=>{if(typeof s.raws.before<"u")return n=s.raws.before,n.includes(`
410
+ `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls(s=>{if(typeof s.raws.before<"u")return n=s.raws.before,n.includes(`
411
+ `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let t;return e.walk(n=>{if(n.type!=="decl"&&(t=n.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before<"u")return t=n.raws.before,t.includes(`
412
+ `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(n=>{if(typeof n.raws.between<"u")return t=n.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length===0&&(t=n.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let s=n.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof n.raws.before<"u"){let o=n.raws.before.split(`
413
+ `);return t=o[o.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(t=n.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let n=e[t],s=e.raws[t];return s&&s.value===n?s.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var Ii=Yt;Yt.default=Yt;let Yr=Ii;function en(i,e){new Yr(e).stringify(i)}var _t=en;en.default=en;let{isClean:Ke,my:eo}=Fe,to=vn,no=Ii,io=_t;function tn(i,e){let t=new i.constructor;for(let n in i){if(!Object.prototype.hasOwnProperty.call(i,n)||n==="proxyCache")continue;let s=i[n],o=typeof s;n==="parent"&&o==="object"?e&&(t[n]=e):n==="source"?t[n]=s:Array.isArray(s)?t[n]=s.map(r=>tn(r,t)):(o==="object"&&s!==null&&(s=tn(s)),t[n]=s)}return t}let nn=class{constructor(e={}){this.raws={},this[Ke]=!1,this[eo]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let n of e[t])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=tn(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:n.column,line:n.line},t)}return new to(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markDirty(){if(this[Ke]){this[Ke]=!1;let e=this;for(;e=e.parent;)e[Ke]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();let s=t.indexOf(e.word);s!==-1&&(n=this.positionInside(s,t))}return n}positionInside(e,t){let n=t||this.toString(),s=this.source.start.column,o=this.source.start.line;for(let r=0;r<e;r++)n[r]===`
414
+ `?(s=1,o+=1):s+=1;return{column:s,line:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let s=this.toString(),o=s.indexOf(e.word);o!==-1&&(t=this.positionInside(o,s),n=this.positionInside(o+e.word.length,s))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return new no().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let s of e)s===this?n=!0:n?(this.parent.insertAfter(t,s),t=s):this.parent.insertBefore(t,s);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let n={},s=t==null;t=t||new Map;let o=0;for(let r in this){if(!Object.prototype.hasOwnProperty.call(this,r)||r==="parent"||r==="proxyCache")continue;let a=this[r];if(Array.isArray(a))n[r]=a.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,t):l);else if(typeof a=="object"&&a.toJSON)n[r]=a.toJSON(null,t);else if(r==="source"){let l=t.get(a.input);l==null&&(l=o,t.set(a.input,o),o++),n[r]={end:a.end,inputId:l,start:a.start}}else n[r]=a}return s&&(n.inputs=[...t.keys()].map(r=>r.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=io){e.stringify&&(e=e.stringify);let t="";return e(this,n=>{t+=n}),t}warn(e,t,n){let s={node:this};for(let o in n)s[o]=n[o];return e.warn(t,s)}get proxyOf(){return this}};var Et=nn;nn.default=nn;let so=Et,sn=class extends so{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var St=sn;sn.default=sn;let ro="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",oo=(i,e=21)=>(t=e)=>{let n="",s=t;for(;s--;)n+=i[Math.random()*i.length|0];return n},ao=(i=21)=>{let e="",t=i;for(;t--;)e+=ro[Math.random()*64|0];return e};var lo={nanoid:ao,customAlphabet:oo};let{SourceMapConsumer:Yn,SourceMapGenerator:ei}=D,{existsSync:co,readFileSync:uo}=D,{dirname:Vt,join:ho}=D;function po(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}let rn=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,s=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Vt(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new Yn(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/;if(s.test(e)||o.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||n.test(e))return po(e.substr(RegExp.lastMatch.length));let r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),s=e.indexOf("*/",n);n>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,s)))}loadFile(e){if(this.root=Vt(e),co(e))return this.mapFile=e,uo(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let n=t(e);if(n){let s=this.loadFile(n);if(!s)throw new Error("Unable to load previous source map: "+n.toString());return s}}else{if(t instanceof Yn)return ei.fromSourceMap(t).toString();if(t instanceof ei)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let n=this.annotation;return e&&(n=ho(Vt(e),n)),this.loadFile(n)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Ti=rn;rn.default=rn;let{SourceMapConsumer:fo,SourceMapGenerator:go}=D,{fileURLToPath:ti,pathToFileURL:Je}=D,{isAbsolute:on,resolve:an}=D,{nanoid:mo}=lo,qt=D,ni=vn,bo=Ti,Wt=Symbol("fromOffsetCache"),yo=!!(fo&&go),ii=!!(an&&on),pt=class{constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!ii||/^\w+:\/\//.test(t.from)||on(t.from)?this.file=t.from:this.file=an(t.from)),ii&&yo){let n=new bo(this.css,t);if(n.text){this.map=n;let s=n.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+mo(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n,s={}){let o,r,a;if(t&&typeof t=="object"){let c=t,u=n;if(typeof c.offset=="number"){let p=this.fromOffset(c.offset);t=p.line,n=p.col}else t=c.line,n=c.column;if(typeof u.offset=="number"){let p=this.fromOffset(u.offset);r=p.line,a=p.col}else r=u.line,a=u.column}else if(!n){let c=this.fromOffset(t);t=c.line,n=c.col}let l=this.origin(t,n,r,a);return l?o=new ni(e,l.endLine===void 0?l.line:{column:l.column,line:l.line},l.endLine===void 0?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,s.plugin):o=new ni(e,r===void 0?t:{column:n,line:t},r===void 0?n:{column:a,line:r},this.css,this.file,s.plugin),o.input={column:n,endColumn:a,endLine:r,line:t,source:this.css},this.file&&(Je&&(o.input.url=Je(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let t,n;if(this[Wt])n=this[Wt];else{let o=this.css.split(`
415
+ `);n=new Array(o.length);let r=0;for(let a=0,l=o.length;a<l;a++)n[a]=r,r+=o[a].length+1;this[Wt]=n}t=n[n.length-1];let s=0;if(e>=t)s=n.length-1;else{let o=n.length-2,r;for(;s<o;)if(r=s+(o-s>>1),e<n[r])o=r-1;else if(e>=n[r+1])s=r+1;else{s=r;break}}return{col:e-n[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:an(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,s){if(!this.map)return!1;let o=this.map.consumer(),r=o.originalPositionFor({column:t,line:e});if(!r.source)return!1;let a;typeof n=="number"&&(a=o.originalPositionFor({column:s,line:n}));let l;on(r.source)?l=Je(r.source):l=new URL(r.source,this.map.consumer().sourceRoot||Je(this.map.mapFile));let c={column:r.column,endColumn:a&&a.column,endLine:a&&a.line,line:r.line,url:l.toString()};if(l.protocol==="file:")if(ti)c.file=ti(l);else throw new Error("file: protocol is not available in this PostCSS build");let u=o.sourceContentFor(r.source);return u&&(c.source=u),c}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var At=pt;pt.default=pt;qt&&qt.registerInput&&qt.registerInput(pt);let{SourceMapConsumer:Li,SourceMapGenerator:lt}=D,{dirname:ct,relative:ji,resolve:Bi,sep:Di}=D,{pathToFileURL:si}=D,vo=At,wo=!!(Li&&lt),xo=!!(ct&&Bi&&ji&&Di),_o=class{constructor(e,t,n,s){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
416
+ `;this.css.includes(`\r
417
+ `)&&(t=`\r
418
+ `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),n=e.root||ct(e.file),s;this.mapOpts.sourcesContent===!1?(s=new Li(e.text),s.sourcesContent&&(s.sourcesContent=s.sourcesContent.map(()=>null))):s=e.consumer(),this.map.applySourceMap(s,t,this.toUrl(this.path(n)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),xo&&wo&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=lt.fromSourceMap(e)}else this.map=new lt({file:this.outputFile()}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new lt({file:this.outputFile()});let e=1,t=1,n="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,r;this.stringify(this.root,(a,l,c)=>{if(this.css+=a,l&&c!=="end"&&(s.generated.line=e,s.generated.column=t-1,l.source&&l.source.start?(s.source=this.sourcePath(l),s.original.line=l.source.start.line,s.original.column=l.source.start.column-1,this.map.addMapping(s)):(s.source=n,s.original.line=1,s.original.column=0,this.map.addMapping(s))),o=a.match(/\n/g),o?(e+=o.length,r=a.lastIndexOf(`
419
+ `),t=a.length-r):t+=a.length,l&&c!=="start"){let u=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==u.last||u.raws.semicolon)&&(l.source&&l.source.end?(s.source=this.sourcePath(l),s.original.line=l.source.end.line,s.original.column=l.source.end.column-1,s.generated.line=e,s.generated.column=t-2,this.map.addMapping(s)):(s.source=n,s.original.line=1,s.original.column=0,s.generated.line=e,s.generated.column=t-1,this.map.addMapping(s)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?ct(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=ct(Bi(n,this.mapOpts.annotation)));let s=ji(n,e);return this.memoizedPaths.set(e,s),s}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new vo(this.css,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let s=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(s,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(si){let n=si(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Di==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var zi=_o;let Eo=Et,ln=class extends Eo{constructor(e){super(e),this.type="comment"}};var $t=ln;ln.default=ln;let{isClean:Ui,my:Hi}=Fe,Fi=St,Vi=$t,So=Et,qi,wn,xn,Wi;function Gi(i){return i.map(e=>(e.nodes&&(e.nodes=Gi(e.nodes)),delete e.source,e))}function Zi(i){if(i[Ui]=!1,i.proxyOf.nodes)for(let e of i.proxyOf.nodes)Zi(e)}let J=class Ki extends So{append(...e){for(let t of e){let n=this.normalize(t,this.last);for(let s of n)this.proxyOf.nodes.push(s)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),n,s;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],s=e(this.proxyOf.nodes[n],n),s!==!1);)this.indexes[t]+=1;return delete this.indexes[t],s}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...n)=>e[t](...n.map(s=>typeof s=="function"?(o,r)=>s(o.toProxy(),r):s)):t==="every"||t==="some"?n=>e[t]((s,...o)=>n(s.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(n=>n.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),s=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let r of s)this.proxyOf.nodes.splice(n+1,0,r);let o;for(let r in this.indexes)o=this.indexes[r],n<o&&(this.indexes[r]=o+s.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),s=n===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[n],s).reverse();n=this.index(e);for(let a of o)this.proxyOf.nodes.splice(n,0,a);let r;for(let a in this.indexes)r=this.indexes[a],n<=r&&(this.indexes[a]=r+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Gi(qi(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let s of e)s.parent&&s.parent.removeChild(s,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Fi(e)]}else if(e.selector)e=[new wn(e)];else if(e.name)e=[new xn(e)];else if(e.text)e=[new Vi(e)];else throw new Error("Unknown node type in node creation");return e.map(s=>(s[Hi]||Ki.rebuild(s),s=s.proxyOf,s.parent&&s.parent.removeChild(s),s[Ui]&&Zi(s),typeof s.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(s.raws.before=t.raws.before.replace(/\S/g,"")),s.parent=this.proxyOf,s))}prepend(...e){e=e.reverse();for(let t of e){let n=this.normalize(t,this.first,"prepend").reverse();for(let s of n)this.proxyOf.nodes.unshift(s);for(let s in this.indexes)this.indexes[s]=this.indexes[s]+n.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(s=>{t.props&&!t.props.includes(s.prop)||t.fast&&!s.value.includes(t.fast)||(s.value=s.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let s;try{s=e(t,n)}catch(o){throw t.addToError(o)}return s!==!1&&t.walk&&(s=t.walk(e)),s})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,s)=>{if(n.type==="atrule"&&e.test(n.name))return t(n,s)}):this.walk((n,s)=>{if(n.type==="atrule"&&n.name===e)return t(n,s)}):(t=e,this.walk((n,s)=>{if(n.type==="atrule")return t(n,s)}))}walkComments(e){return this.walk((t,n)=>{if(t.type==="comment")return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,s)=>{if(n.type==="decl"&&e.test(n.prop))return t(n,s)}):this.walk((n,s)=>{if(n.type==="decl"&&n.prop===e)return t(n,s)}):(t=e,this.walk((n,s)=>{if(n.type==="decl")return t(n,s)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,s)=>{if(n.type==="rule"&&e.test(n.selector))return t(n,s)}):this.walk((n,s)=>{if(n.type==="rule"&&n.selector===e)return t(n,s)}):(t=e,this.walk((n,s)=>{if(n.type==="rule")return t(n,s)}))}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]}};J.registerParse=i=>{qi=i};J.registerRule=i=>{wn=i};J.registerAtRule=i=>{xn=i};J.registerRoot=i=>{Wi=i};var de=J;J.default=J;J.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,xn.prototype):i.type==="rule"?Object.setPrototypeOf(i,wn.prototype):i.type==="decl"?Object.setPrototypeOf(i,Fi.prototype):i.type==="comment"?Object.setPrototypeOf(i,Vi.prototype):i.type==="root"&&Object.setPrototypeOf(i,Wi.prototype),i[Hi]=!0,i.nodes&&i.nodes.forEach(e=>{J.rebuild(e)})};let Ao=de,Ji,Xi,Te=class extends Ao{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Ji(new Xi,this,e).stringify()}};Te.registerLazyResult=i=>{Ji=i};Te.registerProcessor=i=>{Xi=i};var _n=Te;Te.default=Te;let cn=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in t)this[n]=t[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Qi=cn;cn.default=cn;let $o=Qi,un=class{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new $o(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var En=un;un.default=un;const Gt=39,ri=34,Xe=92,oi=47,Qe=10,$e=32,Ye=12,et=9,tt=13,ko=91,Co=93,Oo=40,Ro=41,Mo=123,No=125,Po=59,Io=42,To=58,Lo=64,nt=/[\t\n\f\r "#'()/;[\\\]{}]/g,it=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,jo=/.[\r\n"'(/\\]/,ai=/[\da-f]/i;var Bo=function(e,t={}){let n=e.css.valueOf(),s=t.ignoreErrors,o,r,a,l,c,u,p,f,x,C,M=n.length,b=0,q=[],W=[];function te(){return b}function B(z){throw e.error("Unclosed "+z,b)}function G(){return W.length===0&&b>=M}function Se(z){if(W.length)return W.pop();if(b>=M)return;let I=z?z.ignoreUnclosed:!1;switch(o=n.charCodeAt(b),o){case Qe:case $e:case et:case tt:case Ye:{r=b;do r+=1,o=n.charCodeAt(r);while(o===$e||o===Qe||o===et||o===tt||o===Ye);C=["space",n.slice(b,r)],b=r-1;break}case ko:case Co:case Mo:case No:case To:case Po:case Ro:{let ne=String.fromCharCode(o);C=[ne,ne,b];break}case Oo:{if(f=q.length?q.pop()[1]:"",x=n.charCodeAt(b+1),f==="url"&&x!==Gt&&x!==ri&&x!==$e&&x!==Qe&&x!==et&&x!==Ye&&x!==tt){r=b;do{if(u=!1,r=n.indexOf(")",r+1),r===-1)if(s||I){r=b;break}else B("bracket");for(p=r;n.charCodeAt(p-1)===Xe;)p-=1,u=!u}while(u);C=["brackets",n.slice(b,r+1),b,r],b=r}else r=n.indexOf(")",b+1),l=n.slice(b,r+1),r===-1||jo.test(l)?C=["(","(",b]:(C=["brackets",l,b,r],b=r);break}case Gt:case ri:{a=o===Gt?"'":'"',r=b;do{if(u=!1,r=n.indexOf(a,r+1),r===-1)if(s||I){r=b+1;break}else B("string");for(p=r;n.charCodeAt(p-1)===Xe;)p-=1,u=!u}while(u);C=["string",n.slice(b,r+1),b,r],b=r;break}case Lo:{nt.lastIndex=b+1,nt.test(n),nt.lastIndex===0?r=n.length-1:r=nt.lastIndex-2,C=["at-word",n.slice(b,r+1),b,r],b=r;break}case Xe:{for(r=b,c=!0;n.charCodeAt(r+1)===Xe;)r+=1,c=!c;if(o=n.charCodeAt(r+1),c&&o!==oi&&o!==$e&&o!==Qe&&o!==et&&o!==tt&&o!==Ye&&(r+=1,ai.test(n.charAt(r)))){for(;ai.test(n.charAt(r+1));)r+=1;n.charCodeAt(r+1)===$e&&(r+=1)}C=["word",n.slice(b,r+1),b,r],b=r;break}default:{o===oi&&n.charCodeAt(b+1)===Io?(r=n.indexOf("*/",b+2)+1,r===0&&(s||I?r=n.length:B("comment")),C=["comment",n.slice(b,r+1),b,r],b=r):(it.lastIndex=b+1,it.test(n),it.lastIndex===0?r=n.length-1:r=it.lastIndex-2,C=["word",n.slice(b,r+1),b,r],q.push(C),b=r);break}}return b++,C}function pe(z){W.push(z)}return{back:pe,endOfFile:G,nextToken:Se,position:te}};let Yi=de,ft=class extends Yi{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var Sn=ft;ft.default=ft;Yi.registerAtRule(ft);let es=de,ts,ns,we=class extends es{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let s=super.normalize(e);if(t){if(n==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let o of s)o.raws.before=t.raws.before}return s}removeChild(e,t){let n=this.index(e);return!t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new ts(new ns,this,e).stringify()}};we.registerLazyResult=i=>{ts=i};we.registerProcessor=i=>{ns=i};var Ve=we;we.default=we;es.registerRoot(we);let Le={comma(i){return Le.split(i,[","],!0)},space(i){let e=[" ",`
420
+ `," "];return Le.split(i,e)},split(i,e,t){let n=[],s="",o=!1,r=0,a=!1,l="",c=!1;for(let u of i)c?c=!1:u==="\\"?c=!0:a?u===l&&(a=!1):u==='"'||u==="'"?(a=!0,l=u):u==="("?r+=1:u===")"?r>0&&(r-=1):r===0&&e.includes(u)&&(o=!0),o?(s!==""&&n.push(s.trim()),s="",o=!1):s+=u;return(t||s!=="")&&n.push(s.trim()),n}};var is=Le;Le.default=Le;let ss=de,Do=is,gt=class extends ss{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Do.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}};var An=gt;gt.default=gt;ss.registerRule(gt);let zo=St,Uo=Bo,Ho=$t,Fo=Sn,Vo=Ve,li=An;const ci={empty:!0,space:!0};function qo(i){for(let e=i.length-1;e>=0;e--){let t=i[e],n=t[3]||t[2];if(n)return n}}let Wo=class{constructor(e){this.input=e,this.root=new Vo,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new Fo;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let n,s,o,r=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){a=!0;break}else if(n==="}"){if(l.length>0){for(o=l.length-1,s=l[o];s&&s[0]==="space";)s=l[--o];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){r=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),r&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let n=0,s;for(let o=t-1;o>=0&&(s=e[o],!(s[0]!=="space"&&(n+=1,n===2)));o--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}colon(e){let t=0,n,s,o;for(let[r,a]of e.entries()){if(n=a,s=n[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!o)this.doubleColon(n);else{if(o[0]==="word"&&o[1]==="progid")continue;return r}o=n}return!1}comment(e){let t=new Ho;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let s=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}}createTokenizer(){this.tokenizer=Uo(this.input)}decl(e,t){let n=new zo;this.init(n,e[0][2]);let s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(s[3]||s[2]||qo(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){n.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),n.raws.between+=o[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let r=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)r.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(o=e[c],o[1].toLowerCase()==="!important"){n.important=!0;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(n.raws.important=u);break}else if(o[1].toLowerCase()==="important"){let u=e.slice(0),p="";for(let f=c;f>0;f--){let x=u[f][0];if(p.trim().indexOf("!")===0&&x!=="space")break;p=u.pop()[1]+p}p.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=p,e=u)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(n.raws.between+=r.map(c=>c[1]).join(""),r=[]),this.raw(n,"value",r.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new li;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,n=null,s=!1,o=null,r=[],a=e[1].startsWith("--"),l=[],c=e;for(;c;){if(n=c[0],l.push(c),n==="("||n==="[")o||(o=c),r.push(n==="("?")":"]");else if(a&&s&&n==="{")o||(o=c),r.push("}");else if(r.length===0)if(n===";")if(s){this.decl(l,a);return}else break;else if(n==="{"){this.rule(l);return}else if(n==="}"){this.tokenizer.back(l.pop()),t=!0;break}else n===":"&&(s=!0);else n===r[r.length-1]&&(r.pop(),r.length===0&&(o=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),r.length>0&&this.unclosedBracket(o),t&&s){if(!a)for(;l.length&&(c=l[l.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,s){let o,r,a=n.length,l="",c=!0,u,p;for(let f=0;f<a;f+=1)o=n[f],r=o[0],r==="space"&&f===a-1&&!s?c=!1:r==="comment"?(p=n[f-1]?n[f-1][0]:"empty",u=n[f+1]?n[f+1][0]:"empty",!ci[p]&&!ci[u]?l.slice(-1)===","?c=!1:l+=o[1]:c=!1):l+=o[1];if(!c){let f=n.reduce((x,C)=>x+C[1],"");e.raws[t]={raw:f,value:l}}e[t]=l}rule(e){e.pop();let t=new li;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let s=t;s<e.length;s++)n+=e[s][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var Go=Wo;let Zo=de,Ko=Go,Jo=At;function mt(i,e){let t=new Jo(i,e),n=new Ko(t);try{n.parse()}catch(s){throw s}return n.root}var $n=mt;mt.default=mt;Zo.registerParse(mt);let{isClean:F,my:Xo}=Fe,Qo=zi,Yo=_t,ea=de,ta=_n,ui=En,na=$n,ia=Ve;const sa={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ra={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},oa={Once:!0,postcssPlugin:!0,prepare:!0},xe=0;function ke(i){return typeof i=="object"&&typeof i.then=="function"}function rs(i){let e=!1,t=sa[i.type];return i.type==="decl"?e=i.prop.toLowerCase():i.type==="atrule"&&(e=i.name.toLowerCase()),e&&i.append?[t,t+"-"+e,xe,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:i.append?[t,xe,t+"Exit"]:[t,t+"Exit"]}function di(i){let e;return i.type==="document"?e=["Document",xe,"DocumentExit"]:i.type==="root"?e=["Root",xe,"RootExit"]:e=rs(i),{eventIndex:0,events:e,iterator:0,node:i,visitorIndex:0,visitors:[]}}function dn(i){return i[F]=!1,i.nodes&&i.nodes.forEach(e=>dn(e)),i}let hn={},_e=class os{constructor(e,t,n){this.stringified=!1,this.processed=!1;let s;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=dn(t);else if(t instanceof os||t instanceof ui)s=dn(t.root),t.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let o=na;n.syntax&&(o=n.syntax.parse),n.parser&&(o=n.parser),o.parse&&(o=o.parse);try{s=o(t,n)}catch(r){this.processed=!0,this.error=r}s&&!s[Xo]&&ea.rebuild(s)}this.result=new ui(e,s,n),this.helpers={...hn,postcss:hn,result:this.result},this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?{...o,...o.prepare(this.result)}:o)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(s){console&&console.error&&console.error(s)}return e}prepareVisitors(){this.listeners={};let e=(t,n,s)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([t,s])};for(let t of this.plugins)if(typeof t=="object")for(let n in t){if(!ra[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!oa[n])if(typeof t[n]=="object")for(let s in t[n])s==="*"?e(t,n,t[n][s]):e(t,n+"-"+s.toLowerCase(),t[n][s]);else typeof t[n]=="function"&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(ke(n))try{await n}catch(s){throw this.handleError(s)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[F];){e[F]=!0;let t=[di(e)];for(;t.length>0;){let n=this.visitTick(t);if(ke(n))try{await n}catch(s){let o=t[t.length-1].node;throw this.handleError(s,o)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let s=e.nodes.map(o=>n(o,this.helpers));await Promise.all(s)}else await n(e,this.helpers)}catch(s){throw this.handleError(s)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return ke(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Yo;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let s=new Qo(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(ke(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[F];)e[F]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,s]of e){this.result.lastPlugin=n;let o;try{o=s(t,this.helpers)}catch(r){throw this.handleError(r,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(ke(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:s}=t;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){let[r,a]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=r;try{return a(n.toProxy(),this.helpers)}catch(l){throw this.handleError(l,n)}}if(t.iterator!==0){let r=t.iterator,a;for(;a=n.nodes[n.indexes[r]];)if(n.indexes[r]+=1,!a[F]){a[F]=!0,e.push(di(a));return}t.iterator=0,delete n.indexes[r]}let o=t.events;for(;t.eventIndex<o.length;){let r=o[t.eventIndex];if(t.eventIndex+=1,r===xe){n.nodes&&n.nodes.length&&(n[F]=!0,t.iterator=n.getIterator());return}else if(this.listeners[r]){t.visitors=this.listeners[r];return}}e.pop()}walkSync(e){e[F]=!0;let t=rs(e);for(let n of t)if(n===xe)e.nodes&&e.each(s=>{s[F]||this.walkSync(s)});else{let s=this.listeners[n];if(s&&this.visitSync(s,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};_e.registerPostcss=i=>{hn=i};var as=_e;_e.default=_e;ia.registerLazyResult(_e);ta.registerLazyResult(_e);let aa=zi,la=_t,ca=$n;const ua=En;let pn=class{constructor(e,t,n){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let s,o=la;this.result=new ua(this._processor,s,this._opts),this.result.css=t;let r=this;Object.defineProperty(this.result,"root",{get(){return r.root}});let a=new aa(o,s,this._opts,t);if(a.isMap()){let[l,c]=a.generate();l&&(this.result.css=l),c&&(this.result.map=c)}}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=ca;try{e=t(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var da=pn;pn.default=pn;let ha=da,pa=as,fa=_n,ga=Ve,je=class{constructor(e=[]){this.version="8.4.32",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)t.push(n);else if(typeof n=="function")t.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length===0&&typeof t.parser>"u"&&typeof t.stringifier>"u"&&typeof t.syntax>"u"?new ha(this,e,t):new pa(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var ma=je;je.default=je;ga.registerProcessor(je);fa.registerProcessor(je);let ba=St,ya=Ti,va=$t,wa=Sn,xa=At,_a=Ve,Ea=An;function Be(i,e){if(Array.isArray(i))return i.map(s=>Be(s));let{inputs:t,...n}=i;if(t){e=[];for(let s of t){let o={...s,__proto__:xa.prototype};o.map&&(o.map={...o.map,__proto__:ya.prototype}),e.push(o)}}if(n.nodes&&(n.nodes=i.nodes.map(s=>Be(s,e))),n.source){let{inputId:s,...o}=n.source;n.source=o,s!=null&&(n.source.input=e[s])}if(n.type==="root")return new _a(n);if(n.type==="decl")return new ba(n);if(n.type==="rule")return new Ea(n);if(n.type==="comment")return new va(n);if(n.type==="atrule")return new wa(n);throw new Error("Unknown node type: "+i.type)}var Sa=Be;Be.default=Be;var hi={};let Aa=vn,ls=St,$a=as,ka=de,kn=ma,Ca=_t,Oa=Sa,cs=_n,Ra=Qi,us=$t,ds=Sn,Ma=En,Na=At,Pa=$n,Ia=is,hs=An,ps=Ve,Ta=Et;function E(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new kn(i)}E.plugin=function(e,t){let n=!1;function s(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
421
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),hi.LANG&&hi.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
422
+ https://www.w3ctech.com/topic/2226`));let a=t(...r);return a.postcssPlugin=e,a.postcssVersion=new kn().version,a}let o;return Object.defineProperty(s,"postcss",{get(){return o||(o=s()),o}}),s.process=function(r,a,l){return E([s(l)]).process(r,a)},s};E.stringify=Ca;E.parse=Pa;E.fromJSON=Oa;E.list=Ia;E.comment=i=>new us(i);E.atRule=i=>new ds(i);E.decl=i=>new ls(i);E.rule=i=>new hs(i);E.root=i=>new ps(i);E.document=i=>new cs(i);E.CssSyntaxError=Aa;E.Declaration=ls;E.Container=ka;E.Processor=kn;E.Document=cs;E.Comment=us;E.Warning=Ra;E.AtRule=ds;E.Result=Ma;E.Input=Na;E.Rule=hs;E.Root=ps;E.Node=Ta;$a.registerPostcss(E);var La=E;E.default=E;const k=Mi(La);k.stringify;k.fromJSON;k.plugin;k.parse;k.list;k.document;k.comment;k.atRule;k.rule;k.decl;k.root;k.CssSyntaxError;k.Declaration;k.Container;k.Processor;k.Document;k.Comment;k.Warning;k.AtRule;k.Result;k.Input;k.Rule;k.Root;k.Node;var ja=function(e){const t=e.prefix,n=/\s+$/.test(t)?t:`${t} `,s=e.ignoreFiles?[].concat(e.ignoreFiles):[],o=e.includeFiles?[].concat(e.includeFiles):[];return function(r){s.length&&r.source.input.file&&pi(r.source.input.file,s)||o.length&&r.source.input.file&&!pi(r.source.input.file,o)||r.walkRules(a=>{const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes"];a.parent&&l.includes(a.parent.name)||(a.selectors=a.selectors.map(c=>e.exclude&&Ba(c,e.exclude)?c:e.transform?e.transform(t,c,n+c,r.source.input.file,a):n+c))})}};function pi(i,e){return e.some(t=>t instanceof RegExp?t.test(i):i.includes(t))}function Ba(i,e){return e.some(t=>t instanceof RegExp?t.test(i):i===t)}const Da=Mi(ja),za="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}",Ua="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 Ha(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function fs(i){return i instanceof Map?i.clear=i.delete=i.set=function(){throw new Error("map is read-only")}:i instanceof Set&&(i.add=i.clear=i.delete=function(){throw new Error("set is read-only")}),Object.freeze(i),Object.getOwnPropertyNames(i).forEach(e=>{const t=i[e],n=typeof t;(n==="object"||n==="function")&&!Object.isFrozen(t)&&fs(t)}),i}class fi{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function gs(i){return i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function Y(i,...e){const t=Object.create(null);for(const n in i)t[n]=i[n];return e.forEach(function(n){for(const s in n)t[s]=n[s]}),t}const Fa="</span>",gi=i=>!!i.scope,Va=(i,{prefix:e})=>{if(i.startsWith("language:"))return i.replace("language:","language-");if(i.includes(".")){const t=i.split(".");return[`${e}${t.shift()}`,...t.map((n,s)=>`${n}${"_".repeat(s+1)}`)].join(" ")}return`${e}${i}`};class qa{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=gs(e)}openNode(e){if(!gi(e))return;const t=Va(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){gi(e)&&(this.buffer+=Fa)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const mi=(i={})=>{const e={children:[]};return Object.assign(e,i),e};class Cn{constructor(){this.rootNode=mi(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=mi({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t=="string"?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(n=>this._walk(e,n)),e.closeNode(t)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(t=>typeof t=="string")?e.children=[e.children.join("")]:e.children.forEach(t=>{Cn._collapse(t)}))}}class Wa extends Cn{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new qa(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function De(i){return i?typeof i=="string"?i:i.source:null}function ms(i){return he("(?=",i,")")}function Ga(i){return he("(?:",i,")*")}function Za(i){return he("(?:",i,")?")}function he(...i){return i.map(e=>De(e)).join("")}function Ka(i){const e=i[i.length-1];return typeof e=="object"&&e.constructor===Object?(i.splice(i.length-1,1),e):{}}function On(...i){return"("+(Ka(i).capture?"":"?:")+i.map(e=>De(e)).join("|")+")"}function bs(i){return new RegExp(i.toString()+"|").exec("").length-1}function Ja(i,e){const t=i&&i.exec(e);return t&&t.index===0}const Xa=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Rn(i,{joinWith:e}){let t=0;return i.map(n=>{t+=1;const s=t;let o=De(n),r="";for(;o.length>0;){const a=Xa.exec(o);if(!a){r+=o;break}r+=o.substring(0,a.index),o=o.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?r+="\\"+String(Number(a[1])+s):(r+=a[0],a[0]==="("&&t++)}return r}).map(n=>`(${n})`).join(e)}const Qa=/\b\B/,ys="[a-zA-Z]\\w*",Mn="[a-zA-Z_]\\w*",vs="\\b\\d+(\\.\\d+)?",ws="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",xs="\\b(0b[01]+)",Ya="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",el=(i={})=>{const e=/^#![ ]*\//;return i.binary&&(i.begin=he(e,/.*\b/,i.binary,/\b.*/)),Y({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,n)=>{t.index!==0&&n.ignoreMatch()}},i)},ze={begin:"\\\\[\\s\\S]",relevance:0},tl={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ze]},nl={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ze]},il={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/},kt=function(i,e,t={}){const n=Y({scope:"comment",begin:i,end:e,contains:[]},t);n.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 s=On("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 n.contains.push({begin:he(/[ ]+/,"(",s,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),n},sl=kt("//","$"),rl=kt("/\\*","\\*/"),ol=kt("#","$"),al={scope:"number",begin:vs,relevance:0},ll={scope:"number",begin:ws,relevance:0},cl={scope:"number",begin:xs,relevance:0},ul={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ze,{begin:/\[/,end:/\]/,relevance:0,contains:[ze]}]},dl={scope:"title",begin:ys,relevance:0},hl={scope:"title",begin:Mn,relevance:0},pl={begin:"\\.\\s*"+Mn,relevance:0},fl=function(i){return Object.assign(i,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var st=Object.freeze({__proto__:null,APOS_STRING_MODE:tl,BACKSLASH_ESCAPE:ze,BINARY_NUMBER_MODE:cl,BINARY_NUMBER_RE:xs,COMMENT:kt,C_BLOCK_COMMENT_MODE:rl,C_LINE_COMMENT_MODE:sl,C_NUMBER_MODE:ll,C_NUMBER_RE:ws,END_SAME_AS_BEGIN:fl,HASH_COMMENT_MODE:ol,IDENT_RE:ys,MATCH_NOTHING_RE:Qa,METHOD_GUARD:pl,NUMBER_MODE:al,NUMBER_RE:vs,PHRASAL_WORDS_MODE:il,QUOTE_STRING_MODE:nl,REGEXP_MODE:ul,RE_STARTERS_RE:Ya,SHEBANG:el,TITLE_MODE:dl,UNDERSCORE_IDENT_RE:Mn,UNDERSCORE_TITLE_MODE:hl});function gl(i,e){i.input[i.index-1]==="."&&e.ignoreMatch()}function ml(i,e){i.className!==void 0&&(i.scope=i.className,delete i.className)}function bl(i,e){e&&i.beginKeywords&&(i.begin="\\b("+i.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",i.__beforeBegin=gl,i.keywords=i.keywords||i.beginKeywords,delete i.beginKeywords,i.relevance===void 0&&(i.relevance=0))}function yl(i,e){Array.isArray(i.illegal)&&(i.illegal=On(...i.illegal))}function vl(i,e){if(i.match){if(i.begin||i.end)throw new Error("begin & end are not supported with match");i.begin=i.match,delete i.match}}function wl(i,e){i.relevance===void 0&&(i.relevance=1)}const xl=(i,e)=>{if(!i.beforeMatch)return;if(i.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},i);Object.keys(i).forEach(n=>{delete i[n]}),i.keywords=t.keywords,i.begin=he(t.beforeMatch,ms(t.begin)),i.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},i.relevance=0,delete t.beforeMatch},_l=["of","and","for","in","not","or","if","then","parent","list","value"],El="keyword";function _s(i,e,t=El){const n=Object.create(null);return typeof i=="string"?s(t,i.split(" ")):Array.isArray(i)?s(t,i):Object.keys(i).forEach(function(o){Object.assign(n,_s(i[o],e,o))}),n;function s(o,r){e&&(r=r.map(a=>a.toLowerCase())),r.forEach(function(a){const l=a.split("|");n[l[0]]=[o,Sl(l[0],l[1])]})}}function Sl(i,e){return e?Number(e):Al(i)?0:1}function Al(i){return _l.includes(i.toLowerCase())}const bi={},le=i=>{console.error(i)},yi=(i,...e)=>{console.log(`WARN: ${i}`,...e)},ge=(i,e)=>{bi[`${i}/${e}`]||(console.log(`Deprecated as of ${i}. ${e}`),bi[`${i}/${e}`]=!0)},bt=new Error;function Es(i,e,{key:t}){let n=0;const s=i[t],o={},r={};for(let a=1;a<=e.length;a++)r[a+n]=s[a],o[a+n]=!0,n+=bs(e[a-1]);i[t]=r,i[t]._emit=o,i[t]._multi=!0}function $l(i){if(Array.isArray(i.begin)){if(i.skip||i.excludeBegin||i.returnBegin)throw le("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),bt;if(typeof i.beginScope!="object"||i.beginScope===null)throw le("beginScope must be object"),bt;Es(i,i.begin,{key:"beginScope"}),i.begin=Rn(i.begin,{joinWith:""})}}function kl(i){if(Array.isArray(i.end)){if(i.skip||i.excludeEnd||i.returnEnd)throw le("skip, excludeEnd, returnEnd not compatible with endScope: {}"),bt;if(typeof i.endScope!="object"||i.endScope===null)throw le("endScope must be object"),bt;Es(i,i.end,{key:"endScope"}),i.end=Rn(i.end,{joinWith:""})}}function Cl(i){i.scope&&typeof i.scope=="object"&&i.scope!==null&&(i.beginScope=i.scope,delete i.scope)}function Ol(i){Cl(i),typeof i.beginScope=="string"&&(i.beginScope={_wrap:i.beginScope}),typeof i.endScope=="string"&&(i.endScope={_wrap:i.endScope}),$l(i),kl(i)}function Rl(i){function e(r,a){return new RegExp(De(r),"m"+(i.case_insensitive?"i":"")+(i.unicodeRegex?"u":"")+(a?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,a]),this.matchAt+=bs(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(l=>l[1]);this.matcherRe=e(Rn(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(a);if(!l)return null;const c=l.findIndex((p,f)=>f>0&&p!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class n{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const l=new t;return this.rules.slice(a).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[a]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,l){this.rules.push([a,l]),l.type==="begin"&&this.count++}exec(a){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(a);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(a)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function s(r){const a=new n;return r.contains.forEach(l=>a.addRule(l.begin,{rule:l,type:"begin"})),r.terminatorEnd&&a.addRule(r.terminatorEnd,{type:"end"}),r.illegal&&a.addRule(r.illegal,{type:"illegal"}),a}function o(r,a){const l=r;if(r.isCompiled)return l;[ml,vl,Ol,xl].forEach(u=>u(r,a)),i.compilerExtensions.forEach(u=>u(r,a)),r.__beforeBegin=null,[bl,yl,wl].forEach(u=>u(r,a)),r.isCompiled=!0;let c=null;return typeof r.keywords=="object"&&r.keywords.$pattern&&(r.keywords=Object.assign({},r.keywords),c=r.keywords.$pattern,delete r.keywords.$pattern),c=c||/\w+/,r.keywords&&(r.keywords=_s(r.keywords,i.case_insensitive)),l.keywordPatternRe=e(c,!0),a&&(r.begin||(r.begin=/\B|\b/),l.beginRe=e(l.begin),!r.end&&!r.endsWithParent&&(r.end=/\B|\b/),r.end&&(l.endRe=e(l.end)),l.terminatorEnd=De(l.end)||"",r.endsWithParent&&a.terminatorEnd&&(l.terminatorEnd+=(r.end?"|":"")+a.terminatorEnd)),r.illegal&&(l.illegalRe=e(r.illegal)),r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map(function(u){return Ml(u==="self"?r:u)})),r.contains.forEach(function(u){o(u,l)}),r.starts&&o(r.starts,a),l.matcher=s(l),l}if(i.compilerExtensions||(i.compilerExtensions=[]),i.contains&&i.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return i.classNameAliases=Y(i.classNameAliases||{}),o(i)}function Ss(i){return i?i.endsWithParent||Ss(i.starts):!1}function Ml(i){return i.variants&&!i.cachedVariants&&(i.cachedVariants=i.variants.map(function(e){return Y(i,{variants:null},e)})),i.cachedVariants?i.cachedVariants:Ss(i)?Y(i,{starts:i.starts?Y(i.starts):null}):Object.isFrozen(i)?Y(i):i}var Nl="11.9.0";class Pl extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Zt=gs,vi=Y,wi=Symbol("nomatch"),Il=7,As=function(i){const e=Object.create(null),t=Object.create(null),n=[];let s=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",r={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Wa};function l(d){return a.noHighlightRe.test(d)}function c(d){let g=d.className+" ";g+=d.parentNode?d.parentNode.className:"";const v=a.languageDetectRe.exec(g);if(v){const _=I(v[1]);return _||(yi(o.replace("{}",v[1])),yi("Falling back to no-highlight mode for this block.",d)),_?v[1]:"no-highlight"}return g.split(/\s+/).find(_=>l(_)||I(_))}function u(d,g,v){let _="",O="";typeof g=="object"?(_=d,v=g.ignoreIllegals,O=g.language):(ge("10.7.0","highlight(lang, code, ...args) has been deprecated."),ge("10.7.0",`Please use highlight(code, options) instead.
423
+ https://github.com/highlightjs/highlight.js/issues/2277`),O=d,_=g),v===void 0&&(v=!0);const L={code:_,language:O};ie("before:highlight",L);const X=L.result?L.result:p(L.language,L.code,v);return X.code=L.code,ie("after:highlight",X),X}function p(d,g,v,_){const O=Object.create(null);function L(h,m){return h.keywords[m]}function X(){if(!y.keywords){N.addText(A);return}let h=0;y.keywordPatternRe.lastIndex=0;let m=y.keywordPatternRe.exec(A),w="";for(;m;){w+=A.substring(h,m.index);const S=H.case_insensitive?m[0].toLowerCase():m[0],P=L(y,S);if(P){const[Z,Ds]=P;if(N.addText(w),w="",O[S]=(O[S]||0)+1,O[S]<=Il&&(Ze+=Ds),Z.startsWith("_"))w+=m[0];else{const zs=H.classNameAliases[Z]||Z;U(m[0],zs)}}else w+=m[0];h=y.keywordPatternRe.lastIndex,m=y.keywordPatternRe.exec(A)}w+=A.substring(h),N.addText(w)}function We(){if(A==="")return;let h=null;if(typeof y.subLanguage=="string"){if(!e[y.subLanguage]){N.addText(A);return}h=p(y.subLanguage,A,!0,Ln[y.subLanguage]),Ln[y.subLanguage]=h._top}else h=x(A,y.subLanguage.length?y.subLanguage:null);y.relevance>0&&(Ze+=h.relevance),N.__addSublanguage(h._emitter,h.language)}function j(){y.subLanguage!=null?We():X(),A=""}function U(h,m){h!==""&&(N.startScope(m),N.addText(h),N.endScope())}function Nn(h,m){let w=1;const S=m.length-1;for(;w<=S;){if(!h._emit[w]){w++;continue}const P=H.classNameAliases[h[w]]||h[w],Z=m[w];P?U(Z,P):(A=Z,X(),A=""),w++}}function Pn(h,m){return h.scope&&typeof h.scope=="string"&&N.openNode(H.classNameAliases[h.scope]||h.scope),h.beginScope&&(h.beginScope._wrap?(U(A,H.classNameAliases[h.beginScope._wrap]||h.beginScope._wrap),A=""):h.beginScope._multi&&(Nn(h.beginScope,m),A="")),y=Object.create(h,{parent:{value:y}}),y}function In(h,m,w){let S=Ja(h.endRe,w);if(S){if(h["on:end"]){const P=new fi(h);h["on:end"](m,P),P.isMatchIgnored&&(S=!1)}if(S){for(;h.endsParent&&h.parent;)h=h.parent;return h}}if(h.endsWithParent)return In(h.parent,m,w)}function Is(h){return y.matcher.regexIndex===0?(A+=h[0],1):(Tt=!0,0)}function Ts(h){const m=h[0],w=h.rule,S=new fi(w),P=[w.__beforeBegin,w["on:begin"]];for(const Z of P)if(Z&&(Z(h,S),S.isMatchIgnored))return Is(m);return w.skip?A+=m:(w.excludeBegin&&(A+=m),j(),!w.returnBegin&&!w.excludeBegin&&(A=m)),Pn(w,h),w.returnBegin?0:m.length}function Ls(h){const m=h[0],w=g.substring(h.index),S=In(y,h,w);if(!S)return wi;const P=y;y.endScope&&y.endScope._wrap?(j(),U(m,y.endScope._wrap)):y.endScope&&y.endScope._multi?(j(),Nn(y.endScope,h)):P.skip?A+=m:(P.returnEnd||P.excludeEnd||(A+=m),j(),P.excludeEnd&&(A=m));do y.scope&&N.closeNode(),!y.skip&&!y.subLanguage&&(Ze+=y.relevance),y=y.parent;while(y!==S.parent);return S.starts&&Pn(S.starts,h),P.returnEnd?0:m.length}function js(){const h=[];for(let m=y;m!==H;m=m.parent)m.scope&&h.unshift(m.scope);h.forEach(m=>N.openNode(m))}let Ge={};function Tn(h,m){const w=m&&m[0];if(A+=h,w==null)return j(),0;if(Ge.type==="begin"&&m.type==="end"&&Ge.index===m.index&&w===""){if(A+=g.slice(m.index,m.index+1),!s){const S=new Error(`0 width match regex (${d})`);throw S.languageName=d,S.badRule=Ge.rule,S}return 1}if(Ge=m,m.type==="begin")return Ts(m);if(m.type==="illegal"&&!v){const S=new Error('Illegal lexeme "'+w+'" for mode "'+(y.scope||"<unnamed>")+'"');throw S.mode=y,S}else if(m.type==="end"){const S=Ls(m);if(S!==wi)return S}if(m.type==="illegal"&&w==="")return 1;if(It>1e5&&It>m.index*3)throw new Error("potential infinite loop, way more iterations than matches");return A+=w,w.length}const H=I(d);if(!H)throw le(o.replace("{}",d)),new Error('Unknown language: "'+d+'"');const Bs=Rl(H);let Pt="",y=_||Bs;const Ln={},N=new a.__emitter(a);js();let A="",Ze=0,se=0,It=0,Tt=!1;try{if(H.__emitTokens)H.__emitTokens(g,N);else{for(y.matcher.considerAll();;){It++,Tt?Tt=!1:y.matcher.considerAll(),y.matcher.lastIndex=se;const h=y.matcher.exec(g);if(!h)break;const m=g.substring(se,h.index),w=Tn(m,h);se=h.index+w}Tn(g.substring(se))}return N.finalize(),Pt=N.toHTML(),{language:d,value:Pt,relevance:Ze,illegal:!1,_emitter:N,_top:y}}catch(h){if(h.message&&h.message.includes("Illegal"))return{language:d,value:Zt(g),illegal:!0,relevance:0,_illegalBy:{message:h.message,index:se,context:g.slice(se-100,se+100),mode:h.mode,resultSoFar:Pt},_emitter:N};if(s)return{language:d,value:Zt(g),illegal:!1,relevance:0,errorRaised:h,_emitter:N,_top:y};throw h}}function f(d){const g={value:Zt(d),illegal:!1,relevance:0,_top:r,_emitter:new a.__emitter(a)};return g._emitter.addText(d),g}function x(d,g){g=g||a.languages||Object.keys(e);const v=f(d),_=g.filter(I).filter(qe).map(j=>p(j,d,!1));_.unshift(v);const O=_.sort((j,U)=>{if(j.relevance!==U.relevance)return U.relevance-j.relevance;if(j.language&&U.language){if(I(j.language).supersetOf===U.language)return 1;if(I(U.language).supersetOf===j.language)return-1}return 0}),[L,X]=O,We=L;return We.secondBest=X,We}function C(d,g,v){const _=g&&t[g]||v;d.classList.add("hljs"),d.classList.add(`language-${_}`)}function M(d){let g=null;const v=c(d);if(l(v))return;if(ie("before:highlightElement",{el:d,language:v}),d.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",d);return}if(d.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(d)),a.throwUnescapedHTML))throw new Pl("One of your code blocks includes unescaped HTML.",d.innerHTML);g=d;const _=g.textContent,O=v?u(_,{language:v,ignoreIllegals:!0}):x(_);d.innerHTML=O.value,d.dataset.highlighted="yes",C(d,v,O.language),d.result={language:O.language,re:O.relevance,relevance:O.relevance},O.secondBest&&(d.secondBest={language:O.secondBest.language,relevance:O.secondBest.relevance}),ie("after:highlightElement",{el:d,result:O,text:_})}function b(d){a=vi(a,d)}const q=()=>{B(),ge("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function W(){B(),ge("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let te=!1;function B(){if(document.readyState==="loading"){te=!0;return}document.querySelectorAll(a.cssSelector).forEach(M)}function G(){te&&B()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",G,!1);function Se(d,g){let v=null;try{v=g(i)}catch(_){if(le("Language definition for '{}' could not be registered.".replace("{}",d)),s)le(_);else throw _;v=r}v.name||(v.name=d),e[d]=v,v.rawDefinition=g.bind(null,i),v.aliases&&ne(v.aliases,{languageName:d})}function pe(d){delete e[d];for(const g of Object.keys(t))t[g]===d&&delete t[g]}function z(){return Object.keys(e)}function I(d){return d=(d||"").toLowerCase(),e[d]||e[t[d]]}function ne(d,{languageName:g}){typeof d=="string"&&(d=[d]),d.forEach(v=>{t[v.toLowerCase()]=g})}function qe(d){const g=I(d);return g&&!g.disableAutodetect}function Ot(d){d["before:highlightBlock"]&&!d["before:highlightElement"]&&(d["before:highlightElement"]=g=>{d["before:highlightBlock"](Object.assign({block:g.el},g))}),d["after:highlightBlock"]&&!d["after:highlightElement"]&&(d["after:highlightElement"]=g=>{d["after:highlightBlock"](Object.assign({block:g.el},g))})}function Rt(d){Ot(d),n.push(d)}function Mt(d){const g=n.indexOf(d);g!==-1&&n.splice(g,1)}function ie(d,g){const v=d;n.forEach(function(_){_[v]&&_[v](g)})}function Nt(d){return ge("10.7.0","highlightBlock will be removed entirely in v12.0"),ge("10.7.0","Please use highlightElement now."),M(d)}Object.assign(i,{highlight:u,highlightAuto:x,highlightAll:B,highlightElement:M,highlightBlock:Nt,configure:b,initHighlighting:q,initHighlightingOnLoad:W,registerLanguage:Se,unregisterLanguage:pe,listLanguages:z,getLanguage:I,registerAliases:ne,autoDetection:qe,inherit:vi,addPlugin:Rt,removePlugin:Mt}),i.debugMode=function(){s=!1},i.safeMode=function(){s=!0},i.versionString=Nl,i.regex={concat:he,lookahead:ms,either:On,optional:Za,anyNumberOfTimes:Ga};for(const d in st)typeof st[d]=="object"&&fs(st[d]);return Object.assign(i,st),i},Ee=As({});Ee.newInstance=()=>As({});var Tl=Ee;Ee.HighlightJS=Ee;Ee.default=Ee;const Ct=Ha(Tl),yt="[A-Za-z$_][0-9A-Za-z$_]*",$s=["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"],ks=["true","false","null","undefined","NaN","Infinity"],Cs=["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"],Os=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Rs=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Ms=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Ns=[].concat(Rs,Cs,Os);function Ll(i){const e=i.regex,t=(d,{after:g})=>{const v="</"+d[0].slice(1);return d.input.indexOf(v,g)!==-1},n=yt,s={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,r={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(d,g)=>{const v=d[0].length+d.index,_=d.input[v];if(_==="<"||_===","){g.ignoreMatch();return}_===">"&&(t(d,{after:v})||g.ignoreMatch());let O;const L=d.input.substring(v);if(O=L.match(/^\s*=/)){g.ignoreMatch();return}if((O=L.match(/^\s+extends\s+/))&&O.index===0){g.ignoreMatch();return}}},a={$pattern:yt,keyword:$s,literal:ks,built_in:Ns,"variable.language":Ms},l="[0-9](_?[0-9])*",c=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},x={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},C={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,f],subLanguage:"css"}},M={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[i.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[i.BACKSLASH_ESCAPE,f]},q={className:"comment",variants:[i.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),i.C_BLOCK_COMMENT_MODE,i.C_LINE_COMMENT_MODE]},W=[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,x,C,M,b,{match:/\$\d+/},p];f.contains=W.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(W)});const te=[].concat(q,f.contains),B=te.concat([{begin:/\(/,end:/\)/,keywords:a,contains:["self"].concat(te)}]),G={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:B},Se={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,e.concat(n,"(",e.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},pe={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:{_:[...Cs,...Os]}},z={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},I={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[G],illegal:/%/},ne={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function qe(d){return e.concat("(?!",d.join("|"),")")}const Ot={match:e.concat(/\b/,qe([...Rs,"super","import"]),n,e.lookahead(/\(/)),className:"title.function",relevance:0},Rt={begin:e.concat(/\./,e.lookahead(e.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Mt={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},G]},ie="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+i.UNDERSCORE_IDENT_RE+")\\s*=>",Nt={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(ie)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[G]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:B,CLASS_REFERENCE:pe},illegal:/#(?![$_A-z])/,contains:[i.SHEBANG({label:"shebang",binary:"node",relevance:5}),z,i.APOS_STRING_MODE,i.QUOTE_STRING_MODE,x,C,M,b,q,{match:/\$\d+/},p,pe,{className:"attr",begin:n+e.lookahead(":"),relevance:0},Nt,{begin:"("+i.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[q,i.REGEXP_MODE,{className:"function",begin:ie,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:i.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:B}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:o},{begin:r.begin,"on:begin":r.isTrulyOpeningTag,end:r.end}],subLanguage:"xml",contains:[{begin:r.begin,end:r.end,skip:!0,contains:["self"]}]}]},I,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+i.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[G,i.inherit(i.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},Rt,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[G]},Ot,ne,Se,Mt,{match:/\$[(.]/}]}}function jl(i){const e=Ll(i),t=yt,n=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],s={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[e.exports.CLASS_REFERENCE]},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:n},contains:[e.exports.CLASS_REFERENCE]},r={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},a=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],l={$pattern:yt,keyword:$s.concat(a),literal:ks,built_in:Ns.concat(n),"variable.language":Ms},c={className:"meta",begin:"@"+t},u=(f,x,C)=>{const M=f.contains.findIndex(b=>b.label===x);if(M===-1)throw new Error("can not find mode to replace");f.contains.splice(M,1,C)};Object.assign(e.keywords,l),e.exports.PARAMS_CONTAINS.push(c),e.contains=e.contains.concat([c,s,o]),u(e,"shebang",i.SHEBANG()),u(e,"use_strict",r);const p=e.contains.find(f=>f.label==="func.def");return p.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function Bl(i){const e=i.regex,t=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),n=/[\p{L}0-9._:-]+/u,s={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},r=i.inherit(o,{begin:/\(/,end:/\)/}),a=i.inherit(i.APOS_STRING_MODE,{className:"string"}),l=i.inherit(i.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:n,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:[o,l,a,r,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,r,l,a]}]}]},i.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(t,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:t,relevance:0,starts:c}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(t,/>/))),contains:[{className:"name",begin:t,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const Dl=i=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:i.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:i.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),zl=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Ul=["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"],Hl=["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"],Fl=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],Vl=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function ql(i){const e=i.regex,t=Dl(i),n={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},s="and or not only",o=/@-?\w[\w]*(-\w+)*/,r="[a-zA-Z-][a-zA-Z0-9_-]*",a=[i.APOS_STRING_MODE,i.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[t.BLOCK_COMMENT,n,t.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+r,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Hl.join("|")+")"},{begin:":(:)?("+Fl.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Vl.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[t.BLOCK_COMMENT,t.HEXCOLOR,t.IMPORTANT,t.CSS_NUMBER_MODE,...a,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...a,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},t.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:s,attribute:Ul.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...a,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+zl.join("|")+")\\b"}]}}const Ps=document.createElement("style");Ps.innerText=[za,Ua].join(`
424
+ `);document.head.appendChild(Ps);Ct.registerLanguage("typescript",jl);Ct.registerLanguage("html",Bl);Ct.registerLanguage("css",ql);function Wl(...i){const e=document.createElement("div"),t=document.createElement("div");t.classList.add("tab-control");const n=document.createElement("div");return i.forEach(s=>{e.appendChild(s),s.addEventListener("click",()=>{i.forEach(o=>o.removeAttribute("selected")),s.setAttribute("selected",""),n.innerHTML="",n.appendChild(s.content),n.className=s.className,n.classList.add("tab-content")})}),t.appendChild(e),t.appendChild(n),n.classList.add("tab-content"),i[0].setAttribute("selected",""),n.appendChild(i[0].content),t}function Ce(i,e){const t=document.createElement("div");return t.role="tab",t.tabIndex=0,t.innerText=i,t.content=e,e.tagName=="PRE"&&t.classList.add("code"),t}function Oe(i,e){const t=document.createElement(i);return typeof e=="string"?t.innerHTML=e:e.forEach(n=>{t.appendChild(n)}),t}async function Gl(i,e,t){var n,s,o;const r=e.mainContent,a=Oe("div",r);a.id=`example-preview-${t}`;const l=typeof e.css=="string"||(n=e.css)==null?void 0:n.label,c=typeof e.css=="string"?e.css:(s=e.css)==null?void 0:s.content,u=Wl(Ce("Preview",a),Ce("HTML",rt("html",r)),...c?[Ce(l??"CSS",rt("css",c))]:[],...e.initializer&&e.initializer.content?[Ce(e.initializer.label??"TS",rt("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(f=>Ce(f.label,rt(f.language,f.content))));e.description&&i.appendChild(Oe("div",e.description));const p=Oe("div",[u]);p.classList.add("example"),i.appendChild(p),c&&Zl(`#${a.id}`,c),(o=e.initializer)!=null&&o.initialize&&await e.initializer.initialize(a)}function rt(i,e){let t=e.split(/\r?\n/).map(n=>{const s=n.indexOf("///");if(s>-1){const o=n.substring(s+3).trimStart();return o?n.replace(/^(\s*)([^\s].*)$/,`$1${o}`):void 0}return n}).filter(n=>typeof n<"u").join(`
425
+ `).trim();return i&&i!="raw"&&(t=Ct.highlight(t,{language:i}).value),Oe("pre",[Oe("code",t)])}function Zl(i,e){const t=document.createElement("style");t.innerHTML=k().use(Da({prefix:i})).process(e).css,document.head.appendChild(t)}async function Kl(i,e=document.body){const t=Xl(e);let n=0;Object.keys(i).forEach(async s=>{const o=document.createElement("div");o.className="example-container",t.appendChild(o);const r=i[s].default;Gl(o,r,n++)})}function Jl(i){const e=document.createElement("div");e.id="examples-container";const t=i.querySelector("#examples");return t?t.after(e):i.appendChild(e),e}function Xl(i){return i.children?Jl(i):i}const Ql=`<h1 id="@cas-smartdesign/radio-button-group">@cas-smartdesign/radio-button-group</h1>
426
+ <p>A radio-button-group and a radio-button element based on <a href="https://github.com/Polymer/lit-element">lit-element</a> with SmartDesign look &amp; feel.</p>
427
+ <h2 id="radio-button-group">radio-button-group</h2>
428
+ <h3 id="attributes">Attributes</h3>
429
+ <ul>
430
+ <li><code>layout</code><ul>
431
+ <li>Defines the layout in which the buttons are placed</li>
432
+ <li>Possible values: <code>&quot;horizontal&quot;</code>, <code>&quot;vertical&quot;</code></li>
433
+ </ul>
434
+ </li>
435
+ <li><code>uncheck-allowed</code><ul>
436
+ <li>Defines whether if buttons can be deselected explicitly</li>
437
+ </ul>
438
+ </li>
439
+ <li><code>disabled</code><ul>
440
+ <li>Defines whether if the group is disabled</li>
441
+ </ul>
442
+ </li>
443
+ </ul>
444
+ <h3 id="properties">Properties</h3>
445
+ <ul>
446
+ <li><code>layout</code>, <code>uncheckAllowed</code>, <code>disabled</code><ul>
447
+ <li>Reflects the corresponding attribute</li>
448
+ </ul>
449
+ </li>
450
+ <li><code>value</code><ul>
451
+ <li>Reflects the value of the checked button in the group</li>
452
+ </ul>
453
+ </li>
454
+ </ul>
455
+ <h3 id="custom-events">Custom events</h3>
456
+ <ul>
457
+ <li><code>value-change</code>: <strong><em>CustomEvent&lt;IValueChangeEvent&gt;</em></strong><ul>
458
+ <li>This event is dispatched when the value is changed because of a user interaction</li>
459
+ </ul>
460
+ </li>
461
+ </ul>
462
+ <h3 id="validation">Validation</h3>
463
+ <p>The element could show validation messages via an <code>sd-field-validation-message</code> element which can be configured with the following attributes &amp; properties which are all delegated to that:</p>
464
+ <ul>
465
+ <li><code>validationMessage</code></li>
466
+ <li><code>validationIconSrc</code></li>
467
+ <li><code>validationLevel</code></li>
468
+ </ul>
469
+ <h2 id="radio-button">radio-button</h2>
470
+ <h3 id="attributes">Attributes</h3>
471
+ <ul>
472
+ <li><code>checked</code><ul>
473
+ <li>Defines whether if the button is checked</li>
474
+ </ul>
475
+ </li>
476
+ <li><code>value</code><ul>
477
+ <li>Defines the value of the button</li>
478
+ </ul>
479
+ </li>
480
+ <li><code>focused</code><ul>
481
+ <li>Defines whether if the button has focus</li>
482
+ </ul>
483
+ </li>
484
+ <li><code>disabled</code><ul>
485
+ <li>Defines whether if the interaction with the button is disabled</li>
486
+ </ul>
487
+ </li>
488
+ <li><code>label</code><ul>
489
+ <li>Defines the text of the label</li>
490
+ </ul>
491
+ </li>
492
+ </ul>
493
+ <h3 id="properties">Properties</h3>
494
+ <ul>
495
+ <li><code>checked</code>, <code>value</code>, <code>focused</code>, <code>disabled</code>, <code>label</code><ul>
496
+ <li>Reflects the corresponding attribute</li>
497
+ </ul>
498
+ </li>
499
+ </ul>
500
+ <h3 id="css-custom-properties">CSS Custom Properties</h3>
501
+ <ul>
502
+ <li><code>--sd-radio-button-checked-color</code><ul>
503
+ <li>Defines the color of the inner &amp; outer circle when the button is checked</li>
504
+ </ul>
505
+ </li>
506
+ <li><code>--sd-radio-button-highlight-color</code><ul>
507
+ <li>Defines the color of the circle which is only visible when the button is focused</li>
508
+ </ul>
509
+ </li>
510
+ <li><code>--sd-radio-button-unchecked-color</code><ul>
511
+ <li>Defines the color of the outer circle and the inner circle when the button is unchecked</li>
512
+ </ul>
513
+ </li>
514
+ </ul>
515
+ <h2 id="examples">Examples</h2>
516
+ `;document.querySelector("#markdown-container").innerHTML=Ql;Kl(Object.assign({"./examples/1_declarative/index.ts":qs,"./examples/2_disabled/index.ts":Js,"./examples/3_long_text/index.ts":er,"./examples/4_validation/index.ts":lr,"./examples/5_segmented_button/index.ts":fr}));export{Ft as e};
517
+ function __vite__mapDeps(indexes) {
518
+ if (!__vite__mapDeps.viteFileDeps) {
519
+ __vite__mapDeps.viteFileDeps = []
520
+ }
521
+ return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
522
+ }