@halo-dev/shiki-code-element 1.0.0 → 1.0.5

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.
Files changed (3) hide show
  1. package/LICENSE +21 -674
  2. package/dist/index.js +781 -879
  3. package/package.json +2 -1
package/dist/index.js CHANGED
@@ -1,674 +1,670 @@
1
- const J = '*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--un-default-border-color, #e5e7eb)}:before,:after{--un-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}';
2
- /**
3
- * @license
4
- * Copyright 2019 Google LLC
5
- * SPDX-License-Identifier: BSD-3-Clause
6
- */
7
- const O = globalThis, K = O.ShadowRoot && (O.ShadyCSS === void 0 || O.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Z = Symbol(), st = /* @__PURE__ */ new WeakMap();
8
- let gt = class {
9
- constructor(t, e, i) {
10
- if (this._$cssResult$ = !0, i !== Z) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
11
- this.cssText = t, this.t = e;
12
- }
13
- get styleSheet() {
14
- let t = this.o;
15
- const e = this.t;
16
- if (K && t === void 0) {
17
- const i = e !== void 0 && e.length === 1;
18
- i && (t = st.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && st.set(e, t));
19
- }
20
- return t;
21
- }
22
- toString() {
23
- return this.cssText;
24
- }
1
+ var tailwind_default = "*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:before,:after{--un-content:\"\"}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}", t$2 = globalThis, e$3 = t$2.ShadowRoot && (t$2.ShadyCSS === void 0 || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$2 = Symbol(), o$5 = /* @__PURE__ */ new WeakMap(), n$3 = class {
2
+ constructor(b, F, U) {
3
+ if (this._$cssResult$ = !0, U !== s$2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
4
+ this.cssText = b, this.t = F;
5
+ }
6
+ get styleSheet() {
7
+ let b = this.o, F = this.t;
8
+ if (e$3 && b === void 0) {
9
+ let U = F !== void 0 && F.length === 1;
10
+ U && (b = o$5.get(F)), b === void 0 && ((this.o = b = new CSSStyleSheet()).replaceSync(this.cssText), U && o$5.set(F, b));
11
+ }
12
+ return b;
13
+ }
14
+ toString() {
15
+ return this.cssText;
16
+ }
17
+ }, r = (b) => new n$3(typeof b == "string" ? b : b + "", void 0, s$2), i = (b, ...F) => new n$3(b.length === 1 ? b[0] : F.reduce(((F, U, W) => F + ((b) => {
18
+ if (!0 === b._$cssResult$) return b.cssText;
19
+ if (typeof b == "number") return b;
20
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + b + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
21
+ })(U) + b[W + 1]), b[0]), b, s$2), S$1 = (b, W) => {
22
+ if (e$3) b.adoptedStyleSheets = W.map(((b) => b instanceof CSSStyleSheet ? b : b.styleSheet));
23
+ else for (let U of W) {
24
+ let W = document.createElement("style"), G = t$2.litNonce;
25
+ G !== void 0 && W.setAttribute("nonce", G), W.textContent = U.cssText, b.appendChild(W);
26
+ }
27
+ }, c$1 = e$3 ? (b) => b : (b) => b instanceof CSSStyleSheet ? ((b) => {
28
+ let F = "";
29
+ for (let U of b.cssRules) F += U.cssText;
30
+ return r(F);
31
+ })(b) : b, { is: i$4, defineProperty: e$4, getOwnPropertyDescriptor: h$1, getOwnPropertyNames: r$4, getOwnPropertySymbols: o$4, getPrototypeOf: n$4 } = Object, a$1 = globalThis, c$2 = a$1.trustedTypes, l$1 = c$2 ? c$2.emptyScript : "", p$1 = a$1.reactiveElementPolyfillSupport, d$1 = (b, F) => b, u = {
32
+ toAttribute(b, F) {
33
+ switch (F) {
34
+ case Boolean:
35
+ b = b ? l$1 : null;
36
+ break;
37
+ case Object:
38
+ case Array: b = b == null ? b : JSON.stringify(b);
39
+ }
40
+ return b;
41
+ },
42
+ fromAttribute(b, F) {
43
+ let U = b;
44
+ switch (F) {
45
+ case Boolean:
46
+ U = b !== null;
47
+ break;
48
+ case Number:
49
+ U = b === null ? null : Number(b);
50
+ break;
51
+ case Object:
52
+ case Array: try {
53
+ U = JSON.parse(b);
54
+ } catch {
55
+ U = null;
56
+ }
57
+ }
58
+ return U;
59
+ }
60
+ }, f = (b, F) => !i$4(b, F), b$1 = {
61
+ attribute: !0,
62
+ type: String,
63
+ converter: u,
64
+ reflect: !1,
65
+ useDefault: !1,
66
+ hasChanged: f
25
67
  };
26
- const C = (s) => new gt(typeof s == "string" ? s : s + "", void 0, Z), G = (s, ...t) => {
27
- const e = s.length === 1 ? s[0] : t.reduce(((i, n, r) => i + ((o) => {
28
- if (o._$cssResult$ === !0) return o.cssText;
29
- if (typeof o == "number") return o;
30
- throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
31
- })(n) + s[r + 1]), s[0]);
32
- return new gt(e, s, Z);
33
- }, kt = (s, t) => {
34
- if (K) s.adoptedStyleSheets = t.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
35
- else for (const e of t) {
36
- const i = document.createElement("style"), n = O.litNonce;
37
- n !== void 0 && i.setAttribute("nonce", n), i.textContent = e.cssText, s.appendChild(i);
38
- }
39
- }, rt = K ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
40
- let e = "";
41
- for (const i of t.cssRules) e += i.cssText;
42
- return C(e);
43
- })(s) : s;
44
- /**
45
- * @license
46
- * Copyright 2017 Google LLC
47
- * SPDX-License-Identifier: BSD-3-Clause
48
- */
49
- const { is: _t, defineProperty: xt, getOwnPropertyDescriptor: At, getOwnPropertyNames: Ct, getOwnPropertySymbols: Et, getPrototypeOf: zt } = Object, D = globalThis, ot = D.trustedTypes, St = ot ? ot.emptyScript : "", Tt = D.reactiveElementPolyfillSupport, T = (s, t) => s, j = { toAttribute(s, t) {
50
- switch (t) {
51
- case Boolean:
52
- s = s ? St : null;
53
- break;
54
- case Object:
55
- case Array:
56
- s = s == null ? s : JSON.stringify(s);
57
- }
58
- return s;
59
- }, fromAttribute(s, t) {
60
- let e = s;
61
- switch (t) {
62
- case Boolean:
63
- e = s !== null;
64
- break;
65
- case Number:
66
- e = s === null ? null : Number(s);
67
- break;
68
- case Object:
69
- case Array:
70
- try {
71
- e = JSON.parse(s);
72
- } catch {
73
- e = null;
74
- }
75
- }
76
- return e;
77
- } }, Q = (s, t) => !_t(s, t), at = { attribute: !0, type: String, converter: j, reflect: !1, useDefault: !1, hasChanged: Q };
78
- Symbol.metadata ??= Symbol("metadata"), D.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
79
- let x = class extends HTMLElement {
80
- static addInitializer(t) {
81
- this._$Ei(), (this.l ??= []).push(t);
82
- }
83
- static get observedAttributes() {
84
- return this.finalize(), this._$Eh && [...this._$Eh.keys()];
85
- }
86
- static createProperty(t, e = at) {
87
- if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
88
- const i = Symbol(), n = this.getPropertyDescriptor(t, i, e);
89
- n !== void 0 && xt(this.prototype, t, n);
90
- }
91
- }
92
- static getPropertyDescriptor(t, e, i) {
93
- const { get: n, set: r } = At(this.prototype, t) ?? { get() {
94
- return this[e];
95
- }, set(o) {
96
- this[e] = o;
97
- } };
98
- return { get: n, set(o) {
99
- const l = n?.call(this);
100
- r?.call(this, o), this.requestUpdate(t, l, i);
101
- }, configurable: !0, enumerable: !0 };
102
- }
103
- static getPropertyOptions(t) {
104
- return this.elementProperties.get(t) ?? at;
105
- }
106
- static _$Ei() {
107
- if (this.hasOwnProperty(T("elementProperties"))) return;
108
- const t = zt(this);
109
- t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
110
- }
111
- static finalize() {
112
- if (this.hasOwnProperty(T("finalized"))) return;
113
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(T("properties"))) {
114
- const e = this.properties, i = [...Ct(e), ...Et(e)];
115
- for (const n of i) this.createProperty(n, e[n]);
116
- }
117
- const t = this[Symbol.metadata];
118
- if (t !== null) {
119
- const e = litPropertyMetadata.get(t);
120
- if (e !== void 0) for (const [i, n] of e) this.elementProperties.set(i, n);
121
- }
122
- this._$Eh = /* @__PURE__ */ new Map();
123
- for (const [e, i] of this.elementProperties) {
124
- const n = this._$Eu(e, i);
125
- n !== void 0 && this._$Eh.set(n, e);
126
- }
127
- this.elementStyles = this.finalizeStyles(this.styles);
128
- }
129
- static finalizeStyles(t) {
130
- const e = [];
131
- if (Array.isArray(t)) {
132
- const i = new Set(t.flat(1 / 0).reverse());
133
- for (const n of i) e.unshift(rt(n));
134
- } else t !== void 0 && e.push(rt(t));
135
- return e;
136
- }
137
- static _$Eu(t, e) {
138
- const i = e.attribute;
139
- return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0;
140
- }
141
- constructor() {
142
- super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
143
- }
144
- _$Ev() {
145
- this._$ES = new Promise(((t) => this.enableUpdating = t)), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(((t) => t(this)));
146
- }
147
- addController(t) {
148
- (this._$EO ??= /* @__PURE__ */ new Set()).add(t), this.renderRoot !== void 0 && this.isConnected && t.hostConnected?.();
149
- }
150
- removeController(t) {
151
- this._$EO?.delete(t);
152
- }
153
- _$E_() {
154
- const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
155
- for (const i of e.keys()) this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
156
- t.size > 0 && (this._$Ep = t);
157
- }
158
- createRenderRoot() {
159
- const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
160
- return kt(t, this.constructor.elementStyles), t;
161
- }
162
- connectedCallback() {
163
- this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach(((t) => t.hostConnected?.()));
164
- }
165
- enableUpdating(t) {
166
- }
167
- disconnectedCallback() {
168
- this._$EO?.forEach(((t) => t.hostDisconnected?.()));
169
- }
170
- attributeChangedCallback(t, e, i) {
171
- this._$AK(t, i);
172
- }
173
- _$ET(t, e) {
174
- const i = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, i);
175
- if (n !== void 0 && i.reflect === !0) {
176
- const r = (i.converter?.toAttribute !== void 0 ? i.converter : j).toAttribute(e, i.type);
177
- this._$Em = t, r == null ? this.removeAttribute(n) : this.setAttribute(n, r), this._$Em = null;
178
- }
179
- }
180
- _$AK(t, e) {
181
- const i = this.constructor, n = i._$Eh.get(t);
182
- if (n !== void 0 && this._$Em !== n) {
183
- const r = i.getPropertyOptions(n), o = typeof r.converter == "function" ? { fromAttribute: r.converter } : r.converter?.fromAttribute !== void 0 ? r.converter : j;
184
- this._$Em = n;
185
- const l = o.fromAttribute(e, r.type);
186
- this[n] = l ?? this._$Ej?.get(n) ?? l, this._$Em = null;
187
- }
188
- }
189
- requestUpdate(t, e, i) {
190
- if (t !== void 0) {
191
- const n = this.constructor, r = this[t];
192
- if (i ??= n.getPropertyOptions(t), !((i.hasChanged ?? Q)(r, e) || i.useDefault && i.reflect && r === this._$Ej?.get(t) && !this.hasAttribute(n._$Eu(t, i)))) return;
193
- this.C(t, e, i);
194
- }
195
- this.isUpdatePending === !1 && (this._$ES = this._$EP());
196
- }
197
- C(t, e, { useDefault: i, reflect: n, wrapped: r }, o) {
198
- i && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t) && (this._$Ej.set(t, o ?? e ?? this[t]), r !== !0 || o !== void 0) || (this._$AL.has(t) || (this.hasUpdated || i || (e = void 0), this._$AL.set(t, e)), n === !0 && this._$Em !== t && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t));
199
- }
200
- async _$EP() {
201
- this.isUpdatePending = !0;
202
- try {
203
- await this._$ES;
204
- } catch (e) {
205
- Promise.reject(e);
206
- }
207
- const t = this.scheduleUpdate();
208
- return t != null && await t, !this.isUpdatePending;
209
- }
210
- scheduleUpdate() {
211
- return this.performUpdate();
212
- }
213
- performUpdate() {
214
- if (!this.isUpdatePending) return;
215
- if (!this.hasUpdated) {
216
- if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
217
- for (const [n, r] of this._$Ep) this[n] = r;
218
- this._$Ep = void 0;
219
- }
220
- const i = this.constructor.elementProperties;
221
- if (i.size > 0) for (const [n, r] of i) {
222
- const { wrapped: o } = r, l = this[n];
223
- o !== !0 || this._$AL.has(n) || l === void 0 || this.C(n, void 0, r, l);
224
- }
225
- }
226
- let t = !1;
227
- const e = this._$AL;
228
- try {
229
- t = this.shouldUpdate(e), t ? (this.willUpdate(e), this._$EO?.forEach(((i) => i.hostUpdate?.())), this.update(e)) : this._$EM();
230
- } catch (i) {
231
- throw t = !1, this._$EM(), i;
232
- }
233
- t && this._$AE(e);
234
- }
235
- willUpdate(t) {
236
- }
237
- _$AE(t) {
238
- this._$EO?.forEach(((e) => e.hostUpdated?.())), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
239
- }
240
- _$EM() {
241
- this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
242
- }
243
- get updateComplete() {
244
- return this.getUpdateComplete();
245
- }
246
- getUpdateComplete() {
247
- return this._$ES;
248
- }
249
- shouldUpdate(t) {
250
- return !0;
251
- }
252
- update(t) {
253
- this._$Eq &&= this._$Eq.forEach(((e) => this._$ET(e, this[e]))), this._$EM();
254
- }
255
- updated(t) {
256
- }
257
- firstUpdated(t) {
258
- }
68
+ Symbol.metadata ??= Symbol("metadata"), a$1.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
69
+ var y = class extends HTMLElement {
70
+ static addInitializer(b) {
71
+ this._$Ei(), (this.l ??= []).push(b);
72
+ }
73
+ static get observedAttributes() {
74
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
75
+ }
76
+ static createProperty(b, F = b$1) {
77
+ if (F.state && (F.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(b) && ((F = Object.create(F)).wrapped = !0), this.elementProperties.set(b, F), !F.noAccessor) {
78
+ let U = Symbol(), W = this.getPropertyDescriptor(b, U, F);
79
+ W !== void 0 && e$4(this.prototype, b, W);
80
+ }
81
+ }
82
+ static getPropertyDescriptor(b, F, U) {
83
+ let { get: W, set: G } = h$1(this.prototype, b) ?? {
84
+ get() {
85
+ return this[F];
86
+ },
87
+ set(b) {
88
+ this[F] = b;
89
+ }
90
+ };
91
+ return {
92
+ get: W,
93
+ set(F) {
94
+ let K = W?.call(this);
95
+ G?.call(this, F), this.requestUpdate(b, K, U);
96
+ },
97
+ configurable: !0,
98
+ enumerable: !0
99
+ };
100
+ }
101
+ static getPropertyOptions(b) {
102
+ return this.elementProperties.get(b) ?? b$1;
103
+ }
104
+ static _$Ei() {
105
+ if (this.hasOwnProperty(d$1("elementProperties"))) return;
106
+ let b = n$4(this);
107
+ b.finalize(), b.l !== void 0 && (this.l = [...b.l]), this.elementProperties = new Map(b.elementProperties);
108
+ }
109
+ static finalize() {
110
+ if (this.hasOwnProperty(d$1("finalized"))) return;
111
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(d$1("properties"))) {
112
+ let b = this.properties, F = [...r$4(b), ...o$4(b)];
113
+ for (let U of F) this.createProperty(U, b[U]);
114
+ }
115
+ let b = this[Symbol.metadata];
116
+ if (b !== null) {
117
+ let F = litPropertyMetadata.get(b);
118
+ if (F !== void 0) for (let [b, U] of F) this.elementProperties.set(b, U);
119
+ }
120
+ this._$Eh = /* @__PURE__ */ new Map();
121
+ for (let [b, F] of this.elementProperties) {
122
+ let U = this._$Eu(b, F);
123
+ U !== void 0 && this._$Eh.set(U, b);
124
+ }
125
+ this.elementStyles = this.finalizeStyles(this.styles);
126
+ }
127
+ static finalizeStyles(b) {
128
+ let F = [];
129
+ if (Array.isArray(b)) {
130
+ let U = new Set(b.flat(Infinity).reverse());
131
+ for (let b of U) F.unshift(c$1(b));
132
+ } else b !== void 0 && F.push(c$1(b));
133
+ return F;
134
+ }
135
+ static _$Eu(b, F) {
136
+ let U = F.attribute;
137
+ return !1 === U ? void 0 : typeof U == "string" ? U : typeof b == "string" ? b.toLowerCase() : void 0;
138
+ }
139
+ constructor() {
140
+ super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
141
+ }
142
+ _$Ev() {
143
+ this._$ES = new Promise(((b) => this.enableUpdating = b)), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(((b) => b(this)));
144
+ }
145
+ addController(b) {
146
+ (this._$EO ??= /* @__PURE__ */ new Set()).add(b), this.renderRoot !== void 0 && this.isConnected && b.hostConnected?.();
147
+ }
148
+ removeController(b) {
149
+ this._$EO?.delete(b);
150
+ }
151
+ _$E_() {
152
+ let b = /* @__PURE__ */ new Map(), F = this.constructor.elementProperties;
153
+ for (let U of F.keys()) this.hasOwnProperty(U) && (b.set(U, this[U]), delete this[U]);
154
+ b.size > 0 && (this._$Ep = b);
155
+ }
156
+ createRenderRoot() {
157
+ let b = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
158
+ return S$1(b, this.constructor.elementStyles), b;
159
+ }
160
+ connectedCallback() {
161
+ this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach(((b) => b.hostConnected?.()));
162
+ }
163
+ enableUpdating(b) {}
164
+ disconnectedCallback() {
165
+ this._$EO?.forEach(((b) => b.hostDisconnected?.()));
166
+ }
167
+ attributeChangedCallback(b, F, U) {
168
+ this._$AK(b, U);
169
+ }
170
+ _$ET(b, F) {
171
+ let U = this.constructor.elementProperties.get(b), W = this.constructor._$Eu(b, U);
172
+ if (W !== void 0 && !0 === U.reflect) {
173
+ let G = (U.converter?.toAttribute === void 0 ? u : U.converter).toAttribute(F, U.type);
174
+ this._$Em = b, G == null ? this.removeAttribute(W) : this.setAttribute(W, G), this._$Em = null;
175
+ }
176
+ }
177
+ _$AK(b, F) {
178
+ let U = this.constructor, W = U._$Eh.get(b);
179
+ if (W !== void 0 && this._$Em !== W) {
180
+ let b = U.getPropertyOptions(W), G = typeof b.converter == "function" ? { fromAttribute: b.converter } : b.converter?.fromAttribute === void 0 ? u : b.converter;
181
+ this._$Em = W;
182
+ let K = G.fromAttribute(F, b.type);
183
+ this[W] = K ?? this._$Ej?.get(W) ?? K, this._$Em = null;
184
+ }
185
+ }
186
+ requestUpdate(b, F, U) {
187
+ if (b !== void 0) {
188
+ let W = this.constructor, G = this[b];
189
+ if (U ??= W.getPropertyOptions(b), !((U.hasChanged ?? f)(G, F) || U.useDefault && U.reflect && G === this._$Ej?.get(b) && !this.hasAttribute(W._$Eu(b, U)))) return;
190
+ this.C(b, F, U);
191
+ }
192
+ !1 === this.isUpdatePending && (this._$ES = this._$EP());
193
+ }
194
+ C(b, F, { useDefault: U, reflect: W, wrapped: G }, K) {
195
+ U && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(b) && (this._$Ej.set(b, K ?? F ?? this[b]), !0 !== G || K !== void 0) || (this._$AL.has(b) || (this.hasUpdated || U || (F = void 0), this._$AL.set(b, F)), !0 === W && this._$Em !== b && (this._$Eq ??= /* @__PURE__ */ new Set()).add(b));
196
+ }
197
+ async _$EP() {
198
+ this.isUpdatePending = !0;
199
+ try {
200
+ await this._$ES;
201
+ } catch (b) {
202
+ Promise.reject(b);
203
+ }
204
+ let b = this.scheduleUpdate();
205
+ return b != null && await b, !this.isUpdatePending;
206
+ }
207
+ scheduleUpdate() {
208
+ return this.performUpdate();
209
+ }
210
+ performUpdate() {
211
+ if (!this.isUpdatePending) return;
212
+ if (!this.hasUpdated) {
213
+ if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
214
+ for (let [b, F] of this._$Ep) this[b] = F;
215
+ this._$Ep = void 0;
216
+ }
217
+ let b = this.constructor.elementProperties;
218
+ if (b.size > 0) for (let [F, U] of b) {
219
+ let { wrapped: b } = U, W = this[F];
220
+ !0 !== b || this._$AL.has(F) || W === void 0 || this.C(F, void 0, U, W);
221
+ }
222
+ }
223
+ let b = !1, F = this._$AL;
224
+ try {
225
+ b = this.shouldUpdate(F), b ? (this.willUpdate(F), this._$EO?.forEach(((b) => b.hostUpdate?.())), this.update(F)) : this._$EM();
226
+ } catch (F) {
227
+ throw b = !1, this._$EM(), F;
228
+ }
229
+ b && this._$AE(F);
230
+ }
231
+ willUpdate(b) {}
232
+ _$AE(b) {
233
+ this._$EO?.forEach(((b) => b.hostUpdated?.())), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(b)), this.updated(b);
234
+ }
235
+ _$EM() {
236
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
237
+ }
238
+ get updateComplete() {
239
+ return this.getUpdateComplete();
240
+ }
241
+ getUpdateComplete() {
242
+ return this._$ES;
243
+ }
244
+ shouldUpdate(b) {
245
+ return !0;
246
+ }
247
+ update(b) {
248
+ this._$Eq &&= this._$Eq.forEach(((b) => this._$ET(b, this[b]))), this._$EM();
249
+ }
250
+ updated(b) {}
251
+ firstUpdated(b) {}
259
252
  };
260
- x.elementStyles = [], x.shadowRootOptions = { mode: "open" }, x[T("elementProperties")] = /* @__PURE__ */ new Map(), x[T("finalized")] = /* @__PURE__ */ new Map(), Tt?.({ ReactiveElement: x }), (D.reactiveElementVersions ??= []).push("2.1.1");
253
+ y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[d$1("elementProperties")] = /* @__PURE__ */ new Map(), y[d$1("finalized")] = /* @__PURE__ */ new Map(), p$1?.({ ReactiveElement: y }), (a$1.reactiveElementVersions ??= []).push("2.1.1");
261
254
  /**
262
- * @license
263
- * Copyright 2017 Google LLC
264
- * SPDX-License-Identifier: BSD-3-Clause
265
- */
266
- const X = globalThis, L = X.trustedTypes, lt = L ? L.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, mt = "$lit$", v = `lit$${Math.random().toFixed(9).slice(2)}$`, ft = "?" + v, Pt = `<${ft}>`, k = document, P = () => k.createComment(""), M = (s) => s === null || typeof s != "object" && typeof s != "function", Y = Array.isArray, Mt = (s) => Y(s) || typeof s?.[Symbol.iterator] == "function", F = `[
267
- \f\r]`, S = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ht = /-->/g, ct = />/g, $ = RegExp(`>|${F}(?:([^\\s"'>=/]+)(${F}*=${F}*(?:[^
268
- \f\r"'\`<>=]|("|')|))|$)`, "g"), ut = /'/g, dt = /"/g, bt = /^(?:script|style|textarea|title)$/i, Nt = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), g = Nt(1), _ = Symbol.for("lit-noChange"), c = Symbol.for("lit-nothing"), pt = /* @__PURE__ */ new WeakMap(), w = k.createTreeWalker(k, 129);
269
- function yt(s, t) {
270
- if (!Y(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
271
- return lt !== void 0 ? lt.createHTML(t) : t;
255
+ * @license
256
+ * Copyright 2017 Google LLC
257
+ * SPDX-License-Identifier: BSD-3-Clause
258
+ */
259
+ var t$1 = globalThis, i$3 = t$1.trustedTypes, s$1 = i$3 ? i$3.createPolicy("lit-html", { createHTML: (b) => b }) : void 0, e$2 = "$lit$", h = `lit$${Math.random().toFixed(9).slice(2)}$`, o$3 = "?" + h, n$2 = `<${o$3}>`, r$3 = document, l = () => r$3.createComment(""), c = (b) => b === null || typeof b != "object" && typeof b != "function", a = Array.isArray, u$1 = (b) => a(b) || typeof b?.[Symbol.iterator] == "function", d = "[ \n\f\r]", f$1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v = /-->/g, _ = />/g, m = RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"), p = /'/g, g = /"/g, $ = /^(?:script|style|textarea|title)$/i, x = ((b) => (F, ...U) => ({
260
+ _$litType$: b,
261
+ strings: F,
262
+ values: U
263
+ }))(1), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = /* @__PURE__ */ new WeakMap(), C = r$3.createTreeWalker(r$3, 129);
264
+ function P(b, F) {
265
+ if (!a(b) || !b.hasOwnProperty("raw")) throw Error("invalid template strings array");
266
+ return s$1 === void 0 ? F : s$1.createHTML(F);
272
267
  }
273
- const Ut = (s, t) => {
274
- const e = s.length - 1, i = [];
275
- let n, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = S;
276
- for (let l = 0; l < e; l++) {
277
- const a = s[l];
278
- let u, p, h = -1, b = 0;
279
- for (; b < a.length && (o.lastIndex = b, p = o.exec(a), p !== null); ) b = o.lastIndex, o === S ? p[1] === "!--" ? o = ht : p[1] !== void 0 ? o = ct : p[2] !== void 0 ? (bt.test(p[2]) && (n = RegExp("</" + p[2], "g")), o = $) : p[3] !== void 0 && (o = $) : o === $ ? p[0] === ">" ? (o = n ?? S, h = -1) : p[1] === void 0 ? h = -2 : (h = o.lastIndex - p[2].length, u = p[1], o = p[3] === void 0 ? $ : p[3] === '"' ? dt : ut) : o === dt || o === ut ? o = $ : o === ht || o === ct ? o = S : (o = $, n = void 0);
280
- const y = o === $ && s[l + 1].startsWith("/>") ? " " : "";
281
- r += o === S ? a + Pt : h >= 0 ? (i.push(u), a.slice(0, h) + mt + a.slice(h) + v + y) : a + v + (h === -2 ? l : y);
282
- }
283
- return [yt(s, r + (s[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
268
+ var V = (b, F) => {
269
+ let U = b.length - 1, W = [], G, K = F === 2 ? "<svg>" : F === 3 ? "<math>" : "", q = f$1;
270
+ for (let F = 0; F < U; F++) {
271
+ let U = b[F], J, Y, X = -1, Z = 0;
272
+ for (; Z < U.length && (q.lastIndex = Z, Y = q.exec(U), Y !== null);) Z = q.lastIndex, q === f$1 ? Y[1] === "!--" ? q = v : Y[1] === void 0 ? Y[2] === void 0 ? Y[3] !== void 0 && (q = m) : ($.test(Y[2]) && (G = RegExp("</" + Y[2], "g")), q = m) : q = _ : q === m ? Y[0] === ">" ? (q = G ?? f$1, X = -1) : Y[1] === void 0 ? X = -2 : (X = q.lastIndex - Y[2].length, J = Y[1], q = Y[3] === void 0 ? m : Y[3] === "\"" ? g : p) : q === g || q === p ? q = m : q === v || q === _ ? q = f$1 : (q = m, G = void 0);
273
+ let Q = q === m && b[F + 1].startsWith("/>") ? " " : "";
274
+ K += q === f$1 ? U + n$2 : X >= 0 ? (W.push(J), U.slice(0, X) + e$2 + U.slice(X) + h + Q) : U + h + (X === -2 ? F : Q);
275
+ }
276
+ return [P(b, K + (b[U] || "<?>") + (F === 2 ? "</svg>" : F === 3 ? "</math>" : "")), W];
277
+ }, N = class b {
278
+ constructor({ strings: F, _$litType$: U }, W) {
279
+ let G;
280
+ this.parts = [];
281
+ let K = 0, q = 0, J = F.length - 1, Y = this.parts, [X, Z] = V(F, U);
282
+ if (this.el = b.createElement(X, W), C.currentNode = this.el.content, U === 2 || U === 3) {
283
+ let b = this.el.content.firstChild;
284
+ b.replaceWith(...b.childNodes);
285
+ }
286
+ for (; (G = C.nextNode()) !== null && Y.length < J;) {
287
+ if (G.nodeType === 1) {
288
+ if (G.hasAttributes()) for (let b of G.getAttributeNames()) if (b.endsWith(e$2)) {
289
+ let F = Z[q++], U = G.getAttribute(b).split(h), W = /([.?@])?(.*)/.exec(F);
290
+ Y.push({
291
+ type: 1,
292
+ index: K,
293
+ name: W[2],
294
+ strings: U,
295
+ ctor: W[1] === "." ? H : W[1] === "?" ? I : W[1] === "@" ? L : k
296
+ }), G.removeAttribute(b);
297
+ } else b.startsWith(h) && (Y.push({
298
+ type: 6,
299
+ index: K
300
+ }), G.removeAttribute(b));
301
+ if ($.test(G.tagName)) {
302
+ let b = G.textContent.split(h), F = b.length - 1;
303
+ if (F > 0) {
304
+ G.textContent = i$3 ? i$3.emptyScript : "";
305
+ for (let U = 0; U < F; U++) G.append(b[U], l()), C.nextNode(), Y.push({
306
+ type: 2,
307
+ index: ++K
308
+ });
309
+ G.append(b[F], l());
310
+ }
311
+ }
312
+ } else if (G.nodeType === 8) if (G.data === o$3) Y.push({
313
+ type: 2,
314
+ index: K
315
+ });
316
+ else {
317
+ let b = -1;
318
+ for (; (b = G.data.indexOf(h, b + 1)) !== -1;) Y.push({
319
+ type: 7,
320
+ index: K
321
+ }), b += h.length - 1;
322
+ }
323
+ K++;
324
+ }
325
+ }
326
+ static createElement(b, F) {
327
+ let U = r$3.createElement("template");
328
+ return U.innerHTML = b, U;
329
+ }
284
330
  };
285
- class N {
286
- constructor({ strings: t, _$litType$: e }, i) {
287
- let n;
288
- this.parts = [];
289
- let r = 0, o = 0;
290
- const l = t.length - 1, a = this.parts, [u, p] = Ut(t, e);
291
- if (this.el = N.createElement(u, i), w.currentNode = this.el.content, e === 2 || e === 3) {
292
- const h = this.el.content.firstChild;
293
- h.replaceWith(...h.childNodes);
294
- }
295
- for (; (n = w.nextNode()) !== null && a.length < l; ) {
296
- if (n.nodeType === 1) {
297
- if (n.hasAttributes()) for (const h of n.getAttributeNames()) if (h.endsWith(mt)) {
298
- const b = p[o++], y = n.getAttribute(h).split(v), H = /([.?@])?(.*)/.exec(b);
299
- a.push({ type: 1, index: r, name: H[2], strings: y, ctor: H[1] === "." ? Ot : H[1] === "?" ? Rt : H[1] === "@" ? jt : q }), n.removeAttribute(h);
300
- } else h.startsWith(v) && (a.push({ type: 6, index: r }), n.removeAttribute(h));
301
- if (bt.test(n.tagName)) {
302
- const h = n.textContent.split(v), b = h.length - 1;
303
- if (b > 0) {
304
- n.textContent = L ? L.emptyScript : "";
305
- for (let y = 0; y < b; y++) n.append(h[y], P()), w.nextNode(), a.push({ type: 2, index: ++r });
306
- n.append(h[b], P());
307
- }
308
- }
309
- } else if (n.nodeType === 8) if (n.data === ft) a.push({ type: 2, index: r });
310
- else {
311
- let h = -1;
312
- for (; (h = n.data.indexOf(v, h + 1)) !== -1; ) a.push({ type: 7, index: r }), h += v.length - 1;
313
- }
314
- r++;
315
- }
316
- }
317
- static createElement(t, e) {
318
- const i = k.createElement("template");
319
- return i.innerHTML = t, i;
320
- }
321
- }
322
- function E(s, t, e = s, i) {
323
- if (t === _) return t;
324
- let n = i !== void 0 ? e._$Co?.[i] : e._$Cl;
325
- const r = M(t) ? void 0 : t._$litDirective$;
326
- return n?.constructor !== r && (n?._$AO?.(!1), r === void 0 ? n = void 0 : (n = new r(s), n._$AT(s, e, i)), i !== void 0 ? (e._$Co ??= [])[i] = n : e._$Cl = n), n !== void 0 && (t = E(s, n._$AS(s, t.values), n, i)), t;
327
- }
328
- class Ht {
329
- constructor(t, e) {
330
- this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
331
- }
332
- get parentNode() {
333
- return this._$AM.parentNode;
334
- }
335
- get _$AU() {
336
- return this._$AM._$AU;
337
- }
338
- u(t) {
339
- const { el: { content: e }, parts: i } = this._$AD, n = (t?.creationScope ?? k).importNode(e, !0);
340
- w.currentNode = n;
341
- let r = w.nextNode(), o = 0, l = 0, a = i[0];
342
- for (; a !== void 0; ) {
343
- if (o === a.index) {
344
- let u;
345
- a.type === 2 ? u = new U(r, r.nextSibling, this, t) : a.type === 1 ? u = new a.ctor(r, a.name, a.strings, this, t) : a.type === 6 && (u = new Lt(r, this, t)), this._$AV.push(u), a = i[++l];
346
- }
347
- o !== a?.index && (r = w.nextNode(), o++);
348
- }
349
- return w.currentNode = k, n;
350
- }
351
- p(t) {
352
- let e = 0;
353
- for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
354
- }
355
- }
356
- class U {
357
- get _$AU() {
358
- return this._$AM?._$AU ?? this._$Cv;
359
- }
360
- constructor(t, e, i, n) {
361
- this.type = 2, this._$AH = c, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = n, this._$Cv = n?.isConnected ?? !0;
362
- }
363
- get parentNode() {
364
- let t = this._$AA.parentNode;
365
- const e = this._$AM;
366
- return e !== void 0 && t?.nodeType === 11 && (t = e.parentNode), t;
367
- }
368
- get startNode() {
369
- return this._$AA;
370
- }
371
- get endNode() {
372
- return this._$AB;
373
- }
374
- _$AI(t, e = this) {
375
- t = E(this, t, e), M(t) ? t === c || t == null || t === "" ? (this._$AH !== c && this._$AR(), this._$AH = c) : t !== this._$AH && t !== _ && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Mt(t) ? this.k(t) : this._(t);
376
- }
377
- O(t) {
378
- return this._$AA.parentNode.insertBefore(t, this._$AB);
379
- }
380
- T(t) {
381
- this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
382
- }
383
- _(t) {
384
- this._$AH !== c && M(this._$AH) ? this._$AA.nextSibling.data = t : this.T(k.createTextNode(t)), this._$AH = t;
385
- }
386
- $(t) {
387
- const { values: e, _$litType$: i } = t, n = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = N.createElement(yt(i.h, i.h[0]), this.options)), i);
388
- if (this._$AH?._$AD === n) this._$AH.p(e);
389
- else {
390
- const r = new Ht(n, this), o = r.u(this.options);
391
- r.p(e), this.T(o), this._$AH = r;
392
- }
393
- }
394
- _$AC(t) {
395
- let e = pt.get(t.strings);
396
- return e === void 0 && pt.set(t.strings, e = new N(t)), e;
397
- }
398
- k(t) {
399
- Y(this._$AH) || (this._$AH = [], this._$AR());
400
- const e = this._$AH;
401
- let i, n = 0;
402
- for (const r of t) n === e.length ? e.push(i = new U(this.O(P()), this.O(P()), this, this.options)) : i = e[n], i._$AI(r), n++;
403
- n < e.length && (this._$AR(i && i._$AB.nextSibling, n), e.length = n);
404
- }
405
- _$AR(t = this._$AA.nextSibling, e) {
406
- for (this._$AP?.(!1, !0, e); t !== this._$AB; ) {
407
- const i = t.nextSibling;
408
- t.remove(), t = i;
409
- }
410
- }
411
- setConnected(t) {
412
- this._$AM === void 0 && (this._$Cv = t, this._$AP?.(t));
413
- }
414
- }
415
- class q {
416
- get tagName() {
417
- return this.element.tagName;
418
- }
419
- get _$AU() {
420
- return this._$AM._$AU;
421
- }
422
- constructor(t, e, i, n, r) {
423
- this.type = 1, this._$AH = c, this._$AN = void 0, this.element = t, this.name = e, this._$AM = n, this.options = r, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = c;
424
- }
425
- _$AI(t, e = this, i, n) {
426
- const r = this.strings;
427
- let o = !1;
428
- if (r === void 0) t = E(this, t, e, 0), o = !M(t) || t !== this._$AH && t !== _, o && (this._$AH = t);
429
- else {
430
- const l = t;
431
- let a, u;
432
- for (t = r[0], a = 0; a < r.length - 1; a++) u = E(this, l[i + a], e, a), u === _ && (u = this._$AH[a]), o ||= !M(u) || u !== this._$AH[a], u === c ? t = c : t !== c && (t += (u ?? "") + r[a + 1]), this._$AH[a] = u;
433
- }
434
- o && !n && this.j(t);
435
- }
436
- j(t) {
437
- t === c ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
438
- }
439
- }
440
- class Ot extends q {
441
- constructor() {
442
- super(...arguments), this.type = 3;
443
- }
444
- j(t) {
445
- this.element[this.name] = t === c ? void 0 : t;
446
- }
447
- }
448
- class Rt extends q {
449
- constructor() {
450
- super(...arguments), this.type = 4;
451
- }
452
- j(t) {
453
- this.element.toggleAttribute(this.name, !!t && t !== c);
454
- }
331
+ function S(b, F, U = b, W) {
332
+ if (F === T) return F;
333
+ let G = W === void 0 ? U._$Cl : U._$Co?.[W], K = c(F) ? void 0 : F._$litDirective$;
334
+ return G?.constructor !== K && (G?._$AO?.(!1), K === void 0 ? G = void 0 : (G = new K(b), G._$AT(b, U, W)), W === void 0 ? U._$Cl = G : (U._$Co ??= [])[W] = G), G !== void 0 && (F = S(b, G._$AS(b, F.values), G, W)), F;
455
335
  }
456
- class jt extends q {
457
- constructor(t, e, i, n, r) {
458
- super(t, e, i, n, r), this.type = 5;
459
- }
460
- _$AI(t, e = this) {
461
- if ((t = E(this, t, e, 0) ?? c) === _) return;
462
- const i = this._$AH, n = t === c && i !== c || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, r = t !== c && (i === c || n);
463
- n && this.element.removeEventListener(this.name, this, i), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
464
- }
465
- handleEvent(t) {
466
- typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
467
- }
468
- }
469
- class Lt {
470
- constructor(t, e, i) {
471
- this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
472
- }
473
- get _$AU() {
474
- return this._$AM._$AU;
475
- }
476
- _$AI(t) {
477
- E(this, t);
478
- }
479
- }
480
- const Bt = X.litHtmlPolyfillSupport;
481
- Bt?.(N, U), (X.litHtmlVersions ??= []).push("3.3.1");
482
- const Dt = (s, t, e) => {
483
- const i = e?.renderBefore ?? t;
484
- let n = i._$litPart$;
485
- if (n === void 0) {
486
- const r = e?.renderBefore ?? null;
487
- i._$litPart$ = n = new U(t.insertBefore(P(), r), r, void 0, e ?? {});
488
- }
489
- return n._$AI(s), n;
490
- };
491
- /**
492
- * @license
493
- * Copyright 2017 Google LLC
494
- * SPDX-License-Identifier: BSD-3-Clause
495
- */
496
- const tt = globalThis;
497
- let A = class extends x {
498
- constructor() {
499
- super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
500
- }
501
- createRenderRoot() {
502
- const t = super.createRenderRoot();
503
- return this.renderOptions.renderBefore ??= t.firstChild, t;
504
- }
505
- update(t) {
506
- const e = this.render();
507
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Dt(e, this.renderRoot, this.renderOptions);
508
- }
509
- connectedCallback() {
510
- super.connectedCallback(), this._$Do?.setConnected(!0);
511
- }
512
- disconnectedCallback() {
513
- super.disconnectedCallback(), this._$Do?.setConnected(!1);
514
- }
515
- render() {
516
- return _;
517
- }
336
+ var M = class {
337
+ constructor(b, F) {
338
+ this._$AV = [], this._$AN = void 0, this._$AD = b, this._$AM = F;
339
+ }
340
+ get parentNode() {
341
+ return this._$AM.parentNode;
342
+ }
343
+ get _$AU() {
344
+ return this._$AM._$AU;
345
+ }
346
+ u(b) {
347
+ let { el: { content: F }, parts: U } = this._$AD, W = (b?.creationScope ?? r$3).importNode(F, !0);
348
+ C.currentNode = W;
349
+ let G = C.nextNode(), K = 0, q = 0, J = U[0];
350
+ for (; J !== void 0;) {
351
+ if (K === J.index) {
352
+ let F;
353
+ J.type === 2 ? F = new R(G, G.nextSibling, this, b) : J.type === 1 ? F = new J.ctor(G, J.name, J.strings, this, b) : J.type === 6 && (F = new z(G, this, b)), this._$AV.push(F), J = U[++q];
354
+ }
355
+ K !== J?.index && (G = C.nextNode(), K++);
356
+ }
357
+ return C.currentNode = r$3, W;
358
+ }
359
+ p(b) {
360
+ let F = 0;
361
+ for (let U of this._$AV) U !== void 0 && (U.strings === void 0 ? U._$AI(b[F]) : (U._$AI(b, U, F), F += U.strings.length - 2)), F++;
362
+ }
363
+ }, R = class b {
364
+ get _$AU() {
365
+ return this._$AM?._$AU ?? this._$Cv;
366
+ }
367
+ constructor(b, F, U, W) {
368
+ this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = b, this._$AB = F, this._$AM = U, this.options = W, this._$Cv = W?.isConnected ?? !0;
369
+ }
370
+ get parentNode() {
371
+ let b = this._$AA.parentNode, F = this._$AM;
372
+ return F !== void 0 && b?.nodeType === 11 && (b = F.parentNode), b;
373
+ }
374
+ get startNode() {
375
+ return this._$AA;
376
+ }
377
+ get endNode() {
378
+ return this._$AB;
379
+ }
380
+ _$AI(b, F = this) {
381
+ b = S(this, b, F), c(b) ? b === E || b == null || b === "" ? (this._$AH !== E && this._$AR(), this._$AH = E) : b !== this._$AH && b !== T && this._(b) : b._$litType$ === void 0 ? b.nodeType === void 0 ? u$1(b) ? this.k(b) : this._(b) : this.T(b) : this.$(b);
382
+ }
383
+ O(b) {
384
+ return this._$AA.parentNode.insertBefore(b, this._$AB);
385
+ }
386
+ T(b) {
387
+ this._$AH !== b && (this._$AR(), this._$AH = this.O(b));
388
+ }
389
+ _(b) {
390
+ this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = b : this.T(r$3.createTextNode(b)), this._$AH = b;
391
+ }
392
+ $(b) {
393
+ let { values: F, _$litType$: U } = b, W = typeof U == "number" ? this._$AC(b) : (U.el === void 0 && (U.el = N.createElement(P(U.h, U.h[0]), this.options)), U);
394
+ if (this._$AH?._$AD === W) this._$AH.p(F);
395
+ else {
396
+ let b = new M(W, this), U = b.u(this.options);
397
+ b.p(F), this.T(U), this._$AH = b;
398
+ }
399
+ }
400
+ _$AC(b) {
401
+ let F = A.get(b.strings);
402
+ return F === void 0 && A.set(b.strings, F = new N(b)), F;
403
+ }
404
+ k(F) {
405
+ a(this._$AH) || (this._$AH = [], this._$AR());
406
+ let U = this._$AH, W, G = 0;
407
+ for (let K of F) G === U.length ? U.push(W = new b(this.O(l()), this.O(l()), this, this.options)) : W = U[G], W._$AI(K), G++;
408
+ G < U.length && (this._$AR(W && W._$AB.nextSibling, G), U.length = G);
409
+ }
410
+ _$AR(b = this._$AA.nextSibling, F) {
411
+ for (this._$AP?.(!1, !0, F); b !== this._$AB;) {
412
+ let F = b.nextSibling;
413
+ b.remove(), b = F;
414
+ }
415
+ }
416
+ setConnected(b) {
417
+ this._$AM === void 0 && (this._$Cv = b, this._$AP?.(b));
418
+ }
419
+ }, k = class {
420
+ get tagName() {
421
+ return this.element.tagName;
422
+ }
423
+ get _$AU() {
424
+ return this._$AM._$AU;
425
+ }
426
+ constructor(b, F, U, W, G) {
427
+ this.type = 1, this._$AH = E, this._$AN = void 0, this.element = b, this.name = F, this._$AM = W, this.options = G, U.length > 2 || U[0] !== "" || U[1] !== "" ? (this._$AH = Array(U.length - 1).fill(/* @__PURE__ */ new String()), this.strings = U) : this._$AH = E;
428
+ }
429
+ _$AI(b, F = this, U, W) {
430
+ let G = this.strings, K = !1;
431
+ if (G === void 0) b = S(this, b, F, 0), K = !c(b) || b !== this._$AH && b !== T, K && (this._$AH = b);
432
+ else {
433
+ let W = b, q, J;
434
+ for (b = G[0], q = 0; q < G.length - 1; q++) J = S(this, W[U + q], F, q), J === T && (J = this._$AH[q]), K ||= !c(J) || J !== this._$AH[q], J === E ? b = E : b !== E && (b += (J ?? "") + G[q + 1]), this._$AH[q] = J;
435
+ }
436
+ K && !W && this.j(b);
437
+ }
438
+ j(b) {
439
+ b === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, b ?? "");
440
+ }
441
+ }, H = class extends k {
442
+ constructor() {
443
+ super(...arguments), this.type = 3;
444
+ }
445
+ j(b) {
446
+ this.element[this.name] = b === E ? void 0 : b;
447
+ }
448
+ }, I = class extends k {
449
+ constructor() {
450
+ super(...arguments), this.type = 4;
451
+ }
452
+ j(b) {
453
+ this.element.toggleAttribute(this.name, !!b && b !== E);
454
+ }
455
+ }, L = class extends k {
456
+ constructor(b, F, U, W, G) {
457
+ super(b, F, U, W, G), this.type = 5;
458
+ }
459
+ _$AI(b, F = this) {
460
+ if ((b = S(this, b, F, 0) ?? E) === T) return;
461
+ let U = this._$AH, W = b === E && U !== E || b.capture !== U.capture || b.once !== U.once || b.passive !== U.passive, G = b !== E && (U === E || W);
462
+ W && this.element.removeEventListener(this.name, this, U), G && this.element.addEventListener(this.name, this, b), this._$AH = b;
463
+ }
464
+ handleEvent(b) {
465
+ typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, b) : this._$AH.handleEvent(b);
466
+ }
467
+ }, z = class {
468
+ constructor(b, F, U) {
469
+ this.element = b, this.type = 6, this._$AN = void 0, this._$AM = F, this.options = U;
470
+ }
471
+ get _$AU() {
472
+ return this._$AM._$AU;
473
+ }
474
+ _$AI(b) {
475
+ S(this, b);
476
+ }
477
+ }, j = t$1.litHtmlPolyfillSupport;
478
+ j?.(N, R), (t$1.litHtmlVersions ??= []).push("3.3.1");
479
+ var B = (b, F, U) => {
480
+ let W = U?.renderBefore ?? F, G = W._$litPart$;
481
+ if (G === void 0) {
482
+ let b = U?.renderBefore ?? null;
483
+ W._$litPart$ = G = new R(F.insertBefore(l(), b), b, void 0, U ?? {});
484
+ }
485
+ return G._$AI(b), G;
486
+ }, s = globalThis, i$1 = class extends y {
487
+ constructor() {
488
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
489
+ }
490
+ createRenderRoot() {
491
+ let b = super.createRenderRoot();
492
+ return this.renderOptions.renderBefore ??= b.firstChild, b;
493
+ }
494
+ update(b) {
495
+ let F = this.render();
496
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(b), this._$Do = B(F, this.renderRoot, this.renderOptions);
497
+ }
498
+ connectedCallback() {
499
+ super.connectedCallback(), this._$Do?.setConnected(!0);
500
+ }
501
+ disconnectedCallback() {
502
+ super.disconnectedCallback(), this._$Do?.setConnected(!1);
503
+ }
504
+ render() {
505
+ return T;
506
+ }
518
507
  };
519
- A._$litElement$ = !0, A.finalized = !0, tt.litElementHydrateSupport?.({ LitElement: A });
520
- const qt = tt.litElementPolyfillSupport;
521
- qt?.({ LitElement: A });
522
- (tt.litElementVersions ??= []).push("4.2.1");
508
+ i$1._$litElement$ = !0, i$1.finalized = !0, s.litElementHydrateSupport?.({ LitElement: i$1 });
509
+ var o$2 = s.litElementPolyfillSupport;
510
+ o$2?.({ LitElement: i$1 }), (s.litElementVersions ??= []).push("4.2.1");
523
511
  /**
524
- * @license
525
- * Copyright 2017 Google LLC
526
- * SPDX-License-Identifier: BSD-3-Clause
527
- */
528
- const It = { attribute: !0, type: String, converter: j, reflect: !1, hasChanged: Q }, Ft = (s = It, t, e) => {
529
- const { kind: i, metadata: n } = e;
530
- let r = globalThis.litPropertyMetadata.get(n);
531
- if (r === void 0 && globalThis.litPropertyMetadata.set(n, r = /* @__PURE__ */ new Map()), i === "setter" && ((s = Object.create(s)).wrapped = !0), r.set(e.name, s), i === "accessor") {
532
- const { name: o } = e;
533
- return { set(l) {
534
- const a = t.get.call(this);
535
- t.set.call(this, l), this.requestUpdate(o, a, s);
536
- }, init(l) {
537
- return l !== void 0 && this.C(o, void 0, s, l), l;
538
- } };
539
- }
540
- if (i === "setter") {
541
- const { name: o } = e;
542
- return function(l) {
543
- const a = this[o];
544
- t.call(this, l), this.requestUpdate(o, a, s);
545
- };
546
- }
547
- throw Error("Unsupported decorator location: " + i);
512
+ * @license
513
+ * Copyright 2017 Google LLC
514
+ * SPDX-License-Identifier: BSD-3-Clause
515
+ */ var o$1 = {
516
+ attribute: !0,
517
+ type: String,
518
+ converter: u,
519
+ reflect: !1,
520
+ hasChanged: f
521
+ }, r$2 = (b = o$1, F, U) => {
522
+ let { kind: W, metadata: G } = U, K = globalThis.litPropertyMetadata.get(G);
523
+ if (K === void 0 && globalThis.litPropertyMetadata.set(G, K = /* @__PURE__ */ new Map()), W === "setter" && ((b = Object.create(b)).wrapped = !0), K.set(U.name, b), W === "accessor") {
524
+ let { name: W } = U;
525
+ return {
526
+ set(U) {
527
+ let G = F.get.call(this);
528
+ F.set.call(this, U), this.requestUpdate(W, G, b);
529
+ },
530
+ init(F) {
531
+ return F !== void 0 && this.C(W, void 0, b, F), F;
532
+ }
533
+ };
534
+ }
535
+ if (W === "setter") {
536
+ let { name: W } = U;
537
+ return function(U) {
538
+ let G = this[W];
539
+ F.call(this, U), this.requestUpdate(W, G, b);
540
+ };
541
+ }
542
+ throw Error("Unsupported decorator location: " + W);
548
543
  };
549
- function z(s) {
550
- return (t, e) => typeof e == "object" ? Ft(s, t, e) : ((i, n, r) => {
551
- const o = n.hasOwnProperty(r);
552
- return n.constructor.createProperty(r, i), o ? Object.getOwnPropertyDescriptor(n, r) : void 0;
553
- })(s, t, e);
544
+ function n(b) {
545
+ return (F, U) => typeof U == "object" ? r$2(b, F, U) : ((b, F, U) => {
546
+ let W = F.hasOwnProperty(U);
547
+ return F.constructor.createProperty(U, b), W ? Object.getOwnPropertyDescriptor(F, U) : void 0;
548
+ })(b, F, U);
554
549
  }
555
550
  /**
556
- * @license
557
- * Copyright 2017 Google LLC
558
- * SPDX-License-Identifier: BSD-3-Clause
559
- */
560
- function f(s) {
561
- return z({ ...s, state: !0, attribute: !1 });
551
+ * @license
552
+ * Copyright 2017 Google LLC
553
+ * SPDX-License-Identifier: BSD-3-Clause
554
+ */ function r$1(b) {
555
+ return n({
556
+ ...b,
557
+ state: !0,
558
+ attribute: !1
559
+ });
562
560
  }
563
561
  /**
564
- * @license
565
- * Copyright 2017 Google LLC
566
- * SPDX-License-Identifier: BSD-3-Clause
567
- */
568
- const Vt = { CHILD: 2 }, Wt = (s) => (...t) => ({ _$litDirective$: s, values: t });
569
- class Jt {
570
- constructor(t) {
571
- }
572
- get _$AU() {
573
- return this._$AM._$AU;
574
- }
575
- _$AT(t, e, i) {
576
- this._$Ct = t, this._$AM = e, this._$Ci = i;
577
- }
578
- _$AS(t, e) {
579
- return this.update(t, e);
580
- }
581
- update(t, e) {
582
- return this.render(...e);
583
- }
584
- }
562
+ * @license
563
+ * Copyright 2017 Google LLC
564
+ * SPDX-License-Identifier: BSD-3-Clause
565
+ */
566
+ var t = {
567
+ ATTRIBUTE: 1,
568
+ CHILD: 2,
569
+ PROPERTY: 3,
570
+ BOOLEAN_ATTRIBUTE: 4,
571
+ EVENT: 5,
572
+ ELEMENT: 6
573
+ }, e = (b) => (...F) => ({
574
+ _$litDirective$: b,
575
+ values: F
576
+ }), i$2 = class {
577
+ constructor(b) {}
578
+ get _$AU() {
579
+ return this._$AM._$AU;
580
+ }
581
+ _$AT(b, F, U) {
582
+ this._$Ct = b, this._$AM = F, this._$Ci = U;
583
+ }
584
+ _$AS(b, F) {
585
+ return this.update(b, F);
586
+ }
587
+ update(b, F) {
588
+ return this.render(...F);
589
+ }
590
+ }, e$1 = class extends i$2 {
591
+ constructor(b) {
592
+ if (super(b), this.it = E, b.type !== t.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
593
+ }
594
+ render(b) {
595
+ if (b === E || b == null) return this._t = void 0, this.it = b;
596
+ if (b === T) return b;
597
+ if (typeof b != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
598
+ if (b === this.it) return this._t;
599
+ this.it = b;
600
+ let F = [b];
601
+ return F.raw = F, this._t = {
602
+ _$litType$: this.constructor.resultType,
603
+ strings: F,
604
+ values: []
605
+ };
606
+ }
607
+ };
608
+ e$1.directiveName = "unsafeHTML", e$1.resultType = 1;
609
+ var o = e(e$1);
585
610
  /**
586
- * @license
587
- * Copyright 2017 Google LLC
588
- * SPDX-License-Identifier: BSD-3-Clause
589
- */
590
- class V extends Jt {
591
- constructor(t) {
592
- if (super(t), this.it = c, t.type !== Vt.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
593
- }
594
- render(t) {
595
- if (t === c || t == null) return this._t = void 0, this.it = t;
596
- if (t === _) return t;
597
- if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
598
- if (t === this.it) return this._t;
599
- this.it = t;
600
- const e = [t];
601
- return e.raw = e, this._t = { _$litType$: this.constructor.resultType, strings: e, values: [] };
602
- }
611
+ * @license
612
+ * Copyright 2021 Google LLC
613
+ * SPDX-License-Identifier: BSD-3-Clause
614
+ */
615
+ function n$1(b, F, U) {
616
+ return b ? F(b) : U?.(b);
603
617
  }
604
- V.directiveName = "unsafeHTML", V.resultType = 1;
605
- const vt = Wt(V);
606
- /**
607
- * @license
608
- * Copyright 2021 Google LLC
609
- * SPDX-License-Identifier: BSD-3-Clause
610
- */
611
- function R(s, t, e) {
612
- return s ? t(s) : e?.(s);
618
+ var shiki_default = ".shiki{color-scheme:var(--shiki-theme-type,light);padding:.875em;overflow-x:auto}code{z-index:0;width:max-content;min-width:100%;font-size:var(--font-size,.875em);counter-reset:step;counter-increment:step 0;display:block;position:relative}code .line:before{content:counter(step);counter-increment:step;text-align:right;color:#738a9480;width:1rem;margin-right:1.5rem;display:inline-block}code .line:last-child:empty:before{content:none;counter-increment:none}.has-diff .diff,.has-highlighted .highlighted{width:100%;display:inline-block;position:relative}.has-diff .diff.remove:before{content:\"-\"}.has-diff .diff.add:before{content:\"+\"}.has-diff .diff.remove:after{content:\"\";z-index:-1;background:#ef444426;border-left:1px solid #ef4444cc;position:absolute;inset:0 -1rem}.has-diff .diff.add:after{content:\"\";z-index:-1;background:#22c55e26;border-left:1px solid #22c55ecc;position:absolute;inset:0 -1rem}.has-focused .line:not(.focused){opacity:.7;filter:blur(.095rem);transition:filter .35s,opacity .35s}.has-focused:hover .line:not(.focused){opacity:1;filter:blur()}.has-highlighted .highlighted:after{content:\"\";z-index:-1;background:#65758529;border-left:1px solid #22c55ecc;position:absolute;inset:0 -1rem}.has-highlighted .highlighted.error:after{background:#f43f5e29!important}.has-highlighted .highlighted.warning:after{background:#eab30829!important}:host([color-scheme=dark]) .shiki,:host([color-scheme=dark]) .shiki span{color:var(--shiki-dark)!important}:host([color-scheme=dark]) .shiki{background-color:var(--shiki-dark-bg)!important}";
619
+ function copyText(b, F) {
620
+ if (navigator.clipboard) navigator.clipboard.writeText(b).then(() => {
621
+ F();
622
+ });
623
+ else {
624
+ let U = document.createElement("textarea");
625
+ U.value = b, U.style.position = "fixed", U.style.opacity = "0", document.body.appendChild(U), U.focus(), U.select();
626
+ try {
627
+ document.execCommand("copy") && F();
628
+ } catch (b) {
629
+ console.error("Fallback: Oops, unable to copy", b);
630
+ }
631
+ document.body.removeChild(U);
632
+ }
613
633
  }
614
- const $t = '.shiki{padding:.875em;overflow-x:auto;color-scheme:var(--shiki-theme-type, light)}code{z-index:0;display:block;width:max-content;position:relative;min-width:100%;font-size:var(--font-size, .875em)}code{counter-reset:step;counter-increment:step 0}code .line:before{content:counter(step);counter-increment:step;width:1rem;margin-right:1.5rem;display:inline-block;text-align:right;color:#738a9480}code .line:last-child:empty:before{content:none;counter-increment:none}.has-diff .diff,.has-highlighted .highlighted{width:100%;display:inline-block;position:relative}.has-diff .diff.remove:before{content:"-"}.has-diff .diff.add:before{content:"+"}.has-diff .diff.remove:after{content:"";position:absolute;top:0;bottom:0;left:-1rem;right:-1rem;background:#ef444426;border-left:1px solid rgb(239 68 68 / .8);z-index:-1}.has-diff .diff.add:after{content:"";position:absolute;top:0;bottom:0;left:-1rem;right:-1rem;background:#22c55e26;border-left:1px solid rgb(34 197 94 / .8);z-index:-1}.has-focused .line:not(.focused){opacity:.7;filter:blur(.095rem);transition:filter .35s,opacity .35s}.has-focused:hover .line:not(.focused){opacity:1;filter:blur(0)}.has-highlighted .highlighted:after{content:"";position:absolute;top:0;bottom:0;left:-1rem;right:-1rem;background:#65758529;border-left:1px solid rgba(34,197,94,.8);z-index:-1}.has-highlighted .highlighted.error:after{background:#f43f5e29!important}.has-highlighted .highlighted.warning:after{background:#eab30829!important}:host([color-scheme="dark"]) .shiki,:host([color-scheme="dark"]) .shiki span{color:var(--shiki-dark)!important}:host([color-scheme="dark"]) .shiki{background-color:var(--shiki-dark-bg)!important}';
615
- function Kt(s, t) {
616
- if (navigator.clipboard)
617
- navigator.clipboard.writeText(s).then(() => {
618
- t();
619
- });
620
- else {
621
- const e = document.createElement("textarea");
622
- e.value = s, e.style.position = "fixed", e.style.opacity = "0", document.body.appendChild(e), e.focus(), e.select();
623
- try {
624
- document.execCommand("copy") && t();
625
- } catch (i) {
626
- console.error("Fallback: Oops, unable to copy", i);
627
- }
628
- document.body.removeChild(e);
629
- }
634
+ function __decorate(b, F, U, W) {
635
+ var G = arguments.length, K = G < 3 ? F : W === null ? W = Object.getOwnPropertyDescriptor(F, U) : W, q;
636
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") K = Reflect.decorate(b, F, U, W);
637
+ else for (var J = b.length - 1; J >= 0; J--) (q = b[J]) && (K = (G < 3 ? q(K) : G > 3 ? q(F, U, K) : q(F, U)) || K);
638
+ return G > 3 && K && Object.defineProperty(F, U, K), K;
630
639
  }
631
- var Zt = Object.defineProperty, wt = (s, t, e, i) => {
632
- for (var n = void 0, r = s.length - 1, o; r >= 0; r--)
633
- (o = s[r]) && (n = o(t, e, n) || n);
634
- return n && Zt(t, e, n), n;
640
+ var ShikiCodeBaseVariant = class extends i$1 {
641
+ constructor(...b) {
642
+ super(...b), this.options = {
643
+ html: "",
644
+ code: "",
645
+ languageName: "Unknown",
646
+ colorScheme: "light",
647
+ theme: null,
648
+ fontSize: "0.875em"
649
+ }, this.copied = !1;
650
+ }
651
+ updated(b) {
652
+ b.has("options") && (this.setAttribute("color-scheme", this.options.colorScheme), this.style.setProperty("--shiki-theme-type", this.options.theme?.type || "light"), this.style.setProperty("--font-size", this.options.fontSize || "0.875em"));
653
+ }
654
+ handleCopyCode() {
655
+ copyText(this.options.code, () => {
656
+ this.copied = !0, setTimeout(() => {
657
+ this.copied = !1;
658
+ }, 2e3);
659
+ });
660
+ }
635
661
  };
636
- class I extends A {
637
- constructor() {
638
- super(...arguments), this.options = {
639
- html: "",
640
- code: "",
641
- languageName: "Unknown",
642
- colorScheme: "light",
643
- theme: null,
644
- fontSize: "0.875em"
645
- }, this.copied = !1;
646
- }
647
- updated(t) {
648
- t.has("options") && (this.setAttribute("color-scheme", this.options.colorScheme), this.style.setProperty(
649
- "--shiki-theme-type",
650
- this.options.theme?.type || "light"
651
- ), this.style.setProperty("--font-size", this.options.fontSize || "0.875em"));
652
- }
653
- handleCopyCode() {
654
- Kt(this.options.code, () => {
655
- this.copied = !0, setTimeout(() => {
656
- this.copied = !1;
657
- }, 2e3);
658
- });
659
- }
660
- }
661
- wt([
662
- z({ type: Object })
663
- ], I.prototype, "options");
664
- wt([
665
- f()
666
- ], I.prototype, "copied");
667
- const et = class et extends I {
668
- render() {
669
- return g`
662
+ __decorate([n({ type: Object })], ShikiCodeBaseVariant.prototype, "options", void 0), __decorate([r$1()], ShikiCodeBaseVariant.prototype, "copied", void 0);
663
+ var ShikiCodeSimpleVariant = class extends ShikiCodeBaseVariant {
664
+ render() {
665
+ return x`
670
666
  <div class="shadow rounded-lg relative group">
671
- ${vt(this.options.html)}
667
+ ${o(this.options.html)}
672
668
  <div
673
669
  class="absolute select-none top-1 text-xs right-2 group-hover:opacity-0 transition-opacity"
674
670
  style="color: ${this.options.theme?.fg}"
@@ -681,20 +677,15 @@ const et = class et extends I {
681
677
  @click=${this.handleCopyCode}
682
678
  tabindex="-1"
683
679
  >
684
- ${R(
685
- this.copied,
686
- () => g`<i class="i-tabler-check block" style="color: ${this.options.theme?.fg}"></i>`,
687
- () => g`<i class="i-tabler-copy block" style="color: ${this.options.theme?.fg}"></i>`
688
- )}
680
+ ${n$1(this.copied, () => x`<i class="i-tabler-check block" style="color: ${this.options.theme?.fg}"></i>`, () => x`<i class="i-tabler-copy block" style="color: ${this.options.theme?.fg}"></i>`)}
689
681
  </button>
690
682
  </div>
691
683
  `;
692
- }
693
- };
694
- et.styles = [
695
- C(J),
696
- C($t),
697
- G`
684
+ }
685
+ static #_ = this.styles = [
686
+ r(tailwind_default),
687
+ r(shiki_default),
688
+ i`
698
689
  .shiki {
699
690
  border-radius: inherit;
700
691
  }
@@ -726,20 +717,15 @@ et.styles = [
726
717
  .shadow{--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color, rgb(0 0 0 / 0.1)),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color, rgb(0 0 0 / 0.1));box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);}
727
718
  .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;};
728
719
  `
729
- ];
730
- let W = et;
731
- customElements.get("shiki-code-simple-variant") || customElements.define("shiki-code-simple-variant", W);
732
- var Gt = Object.defineProperty, Qt = (s, t, e, i) => {
733
- for (var n = void 0, r = s.length - 1, o; r >= 0; r--)
734
- (o = s[r]) && (n = o(t, e, n) || n);
735
- return n && Gt(t, e, n), n;
720
+ ];
736
721
  };
737
- const it = class it extends I {
738
- constructor() {
739
- super(...arguments), this.fold = !1;
740
- }
741
- render() {
742
- return g`
722
+ customElements.get("shiki-code-simple-variant") || customElements.define("shiki-code-simple-variant", ShikiCodeSimpleVariant);
723
+ var ShikiCodeMacVariant = class extends ShikiCodeBaseVariant {
724
+ constructor(...b) {
725
+ super(...b), this.fold = !1;
726
+ }
727
+ render() {
728
+ return x`
743
729
  <div class="shadow rounded-lg overflow-hidden relative group">
744
730
  <header
745
731
  class="flex items-center h-10 justify-between px-4.5 opacity-95"
@@ -758,43 +744,30 @@ const it = class it extends I {
758
744
  class="select-none"
759
745
  tabindex="-1"
760
746
  @click=${() => {
761
- this.fold = !this.fold;
762
- }}
747
+ this.fold = !this.fold;
748
+ }}
763
749
  >
764
- ${R(
765
- this.fold,
766
- () => g`<i
750
+ ${n$1(this.fold, () => x`<i
767
751
  class="i-mingcute-left-line block"
768
752
  style="color: ${this.options.theme?.fg}"
769
- ></i>`,
770
- () => g`<i
753
+ ></i>`, () => x`<i
771
754
  class="i-mingcute-down-line block"
772
755
  style="color: ${this.options.theme?.fg}"
773
- ></i>`
774
- )}
756
+ ></i>`)}
775
757
  </button>
776
758
  <button class="select-none" tabindex="-1" @click=${this.handleCopyCode}>
777
- ${R(
778
- this.copied,
779
- () => g`<i class="i-tabler-check block" style="color: ${this.options.theme?.fg}"></i>`,
780
- () => g`<i class="i-tabler-copy block" style="color: ${this.options.theme?.fg}"></i>`
781
- )}
759
+ ${n$1(this.copied, () => x`<i class="i-tabler-check block" style="color: ${this.options.theme?.fg}"></i>`, () => x`<i class="i-tabler-copy block" style="color: ${this.options.theme?.fg}"></i>`)}
782
760
  </button>
783
761
  </div>
784
762
  </header>
785
- ${R(
786
- this.fold,
787
- () => g``,
788
- () => g`${vt(this.options.html)}`
789
- )}
763
+ ${n$1(this.fold, () => x``, () => x`${o(this.options.html)}`)}
790
764
  </div>
791
765
  `;
792
- }
793
- };
794
- it.styles = [
795
- C(J),
796
- C($t),
797
- G`
766
+ }
767
+ static #_ = this.styles = [
768
+ r(tailwind_default),
769
+ r(shiki_default),
770
+ i`
798
771
  /* layer: preflights */
799
772
  *,::before,::after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / 0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / 0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}
800
773
  /* layer: icons */
@@ -825,137 +798,102 @@ it.styles = [
825
798
  .opacity-95{opacity:0.95;}
826
799
  .shadow{--un-shadow:var(--un-shadow-inset) 0 1px 3px 0 var(--un-shadow-color, rgb(0 0 0 / 0.1)),var(--un-shadow-inset) 0 1px 2px -1px var(--un-shadow-color, rgb(0 0 0 / 0.1));box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);};
827
800
  `
828
- ];
829
- let B = it;
830
- Qt([
831
- f()
832
- ], B.prototype, "fold");
833
- customElements.get("shiki-code-mac-variant") || customElements.define("shiki-code-mac-variant", B);
834
- var Xt = Object.defineProperty, m = (s, t, e, i) => {
835
- for (var n = void 0, r = s.length - 1, o; r >= 0; r--)
836
- (o = s[r]) && (n = o(t, e, n) || n);
837
- return n && Xt(t, e, n), n;
801
+ ];
838
802
  };
839
- const nt = class nt extends A {
840
- constructor() {
841
- super(...arguments), this.lightTheme = "github-light", this.darkTheme = "github-dark", this.variant = "simple", this.fontSize = "0.875em", this.loading = !0, this.html = "", this.languageCode = "", this.languageName = "", this.lightThemeRegistration = null, this.darkThemeRegistration = null, this.code = "", this.copied = !1, this.error = "", this._observer = null, this._media = null, this._colorScheme = "light";
842
- }
843
- get _themeRegistration() {
844
- return this._colorScheme === "dark" ? this.darkThemeRegistration : this.lightThemeRegistration;
845
- }
846
- connectedCallback() {
847
- this._media = window.matchMedia("(prefers-color-scheme: dark)"), this.updateTheme(), this._observer = new MutationObserver(() => this.updateTheme()), this._observer.observe(document.documentElement, {
848
- attributes: !0,
849
- attributeFilter: ["class", "data-color-scheme"]
850
- }), this._observer.observe(document.body, {
851
- attributes: !0,
852
- attributeFilter: ["class", "data-color-scheme"]
853
- }), this._media.addEventListener("change", () => this.updateTheme()), super.connectedCallback();
854
- }
855
- disconnectedCallback() {
856
- this._observer?.disconnect(), this._media?.removeEventListener("change", () => this.updateTheme()), super.disconnectedCallback();
857
- }
858
- isDarkMode() {
859
- const t = document.documentElement, e = document.body, i = (r, o) => r?.classList.contains(o), n = (r, o, l) => r?.getAttribute(o) === l;
860
- return i(t, "color-scheme-auto") || i(e, "color-scheme-auto") || n(t, "data-color-scheme", "auto") || n(e, "data-color-scheme", "auto") ? this._media?.matches : !!(i(t, "color-scheme-dark") || i(t, "dark") || n(t, "data-color-scheme", "dark") || i(e, "color-scheme-dark") || i(e, "dark") || n(e, "data-color-scheme", "dark"));
861
- }
862
- updateTheme() {
863
- this._colorScheme = this.isDarkMode() ? "dark" : "light";
864
- }
865
- render() {
866
- return g`<slot @slotchange=${this.handleSlotchange}></slot> ${this.renderCodeBlockBody()}`;
867
- }
868
- renderCodeBlockBody() {
869
- if (this.loading)
870
- return g``;
871
- if (this.error)
872
- return g`<div class="text-sm text-red-500">错误: ${this.error}</div>`;
873
- const t = {
874
- code: this.code,
875
- html: this.html,
876
- languageName: this.languageName,
877
- colorScheme: this._colorScheme,
878
- theme: this._themeRegistration,
879
- fontSize: this.fontSize
880
- };
881
- if (this.variant === "mac")
882
- return g`<shiki-code-mac-variant .options=${t}></shiki-code-mac-variant>`;
883
- if (this.variant === "simple")
884
- return g`<shiki-code-simple-variant .options=${t}></shiki-code-simple-variant>`;
885
- }
886
- handleSlotchange(t) {
887
- const e = t.target.assignedElements({
888
- flatten: !0
889
- });
890
- if (!e.length) return;
891
- const i = e[0];
892
- if (i.tagName === "PRE") {
893
- const n = i.querySelector("code");
894
- n && this.process(n);
895
- }
896
- }
897
- async process(t) {
898
- try {
899
- this.languageCode = this.extractLanguageCode(t.classList) || "plaintext", this.languageCode === "auto" && (this.languageCode = "plaintext"), this.code = t.textContent || "";
900
- const e = await this.renderCodeAsHtml(
901
- this.code || "",
902
- this.languageCode
903
- );
904
- this.html = e;
905
- const { getSingletonHighlighter: i } = await import("shiki"), n = await i();
906
- if (this.languageCode !== "plaintext") {
907
- const r = n.getLanguage(this.languageCode);
908
- this.languageName = r.name;
909
- } else
910
- this.languageName = "plaintext";
911
- this.lightThemeRegistration = n.getTheme(this.lightTheme), this.darkThemeRegistration = n.getTheme(
912
- this.darkTheme || this.lightTheme
913
- );
914
- } catch (e) {
915
- e instanceof Error && (this.error = e.message);
916
- } finally {
917
- this.shadowRoot?.querySelector("slot")?.assignedElements().forEach((e) => {
918
- e instanceof HTMLElement && e.setAttribute("style", "display: none !important;");
919
- }), this.loading = !1;
920
- }
921
- }
922
- extractLanguageCode(t) {
923
- const e = ["language-", "lang-"];
924
- for (let i = 0; i < t.length; i++) {
925
- const n = t[i];
926
- for (let r = 0; r < e.length; r++) {
927
- const o = e[r];
928
- if (n.startsWith(o))
929
- return n.substring(o.length).toLowerCase();
930
- }
931
- }
932
- return null;
933
- }
934
- async renderCodeAsHtml(t, e) {
935
- const { codeToHtml: i } = await import("shiki"), {
936
- transformerNotationDiff: n,
937
- transformerNotationHighlight: r,
938
- transformerNotationFocus: o,
939
- transformerNotationErrorLevel: l
940
- } = await import("@shikijs/transformers");
941
- return await i(t, {
942
- lang: e,
943
- themes: {
944
- light: this.lightTheme,
945
- dark: this.darkTheme || this.lightTheme
946
- },
947
- transformers: [
948
- n(),
949
- r(),
950
- o(),
951
- l()
952
- ]
953
- });
954
- }
955
- };
956
- nt.styles = [
957
- C(J),
958
- G`
803
+ __decorate([r$1()], ShikiCodeMacVariant.prototype, "fold", void 0), customElements.get("shiki-code-mac-variant") || customElements.define("shiki-code-mac-variant", ShikiCodeMacVariant);
804
+ var ShikiCode = class extends i$1 {
805
+ constructor(...b) {
806
+ super(...b), this.lightTheme = "github-light", this.darkTheme = "github-dark", this.variant = "simple", this.fontSize = "0.875em", this.loading = !0, this.html = "", this.languageCode = "", this.languageName = "", this.lightThemeRegistration = null, this.darkThemeRegistration = null, this.code = "", this.copied = !1, this.error = "", this._observer = null, this._media = null, this._colorScheme = "light";
807
+ }
808
+ get _themeRegistration() {
809
+ return this._colorScheme === "dark" ? this.darkThemeRegistration : this.lightThemeRegistration;
810
+ }
811
+ connectedCallback() {
812
+ this._media = window.matchMedia("(prefers-color-scheme: dark)"), this.updateTheme(), this._observer = new MutationObserver(() => this.updateTheme()), this._observer.observe(document.documentElement, {
813
+ attributes: !0,
814
+ attributeFilter: ["class", "data-color-scheme"]
815
+ }), this._observer.observe(document.body, {
816
+ attributes: !0,
817
+ attributeFilter: ["class", "data-color-scheme"]
818
+ }), this._media.addEventListener("change", () => this.updateTheme()), super.connectedCallback();
819
+ }
820
+ disconnectedCallback() {
821
+ this._observer?.disconnect(), this._media?.removeEventListener("change", () => this.updateTheme()), super.disconnectedCallback();
822
+ }
823
+ isDarkMode() {
824
+ let b = document.documentElement, F = document.body, U = (b, F) => b?.classList.contains(F), W = (b, F, U) => b?.getAttribute(F) === U;
825
+ return U(b, "color-scheme-auto") || U(F, "color-scheme-auto") || W(b, "data-color-scheme", "auto") || W(F, "data-color-scheme", "auto") ? this._media?.matches : !!(U(b, "color-scheme-dark") || U(b, "dark") || W(b, "data-color-scheme", "dark") || U(F, "color-scheme-dark") || U(F, "dark") || W(F, "data-color-scheme", "dark"));
826
+ }
827
+ updateTheme() {
828
+ this._colorScheme = this.isDarkMode() ? "dark" : "light";
829
+ }
830
+ render() {
831
+ return x`<slot @slotchange=${this.handleSlotchange}></slot> ${this.renderCodeBlockBody()}`;
832
+ }
833
+ renderCodeBlockBody() {
834
+ if (this.loading) return x``;
835
+ if (this.error) return x`<div class="text-sm text-red-500">错误: ${this.error}</div>`;
836
+ let b = {
837
+ code: this.code,
838
+ html: this.html,
839
+ languageName: this.languageName,
840
+ colorScheme: this._colorScheme,
841
+ theme: this._themeRegistration,
842
+ fontSize: this.fontSize
843
+ };
844
+ if (this.variant === "mac") return x`<shiki-code-mac-variant .options=${b}></shiki-code-mac-variant>`;
845
+ if (this.variant === "simple") return x`<shiki-code-simple-variant .options=${b}></shiki-code-simple-variant>`;
846
+ }
847
+ handleSlotchange(b) {
848
+ let F = b.target.assignedElements({ flatten: !0 });
849
+ if (!F.length) return;
850
+ let U = F[0];
851
+ if (U.tagName === "PRE") {
852
+ let b = U.querySelector("code");
853
+ b && this.process(b);
854
+ }
855
+ }
856
+ async process(b) {
857
+ try {
858
+ this.languageCode = this.extractLanguageCode(b.classList) || "plaintext", this.languageCode === "auto" && (this.languageCode = "plaintext"), this.languageCode === "text" && (this.languageCode = "plaintext"), this.code = b.textContent || "", this.html = await this.renderCodeAsHtml(this.code || "", this.languageCode);
859
+ let { getSingletonHighlighter: F } = await import("shiki"), U = await F();
860
+ this.languageCode === "plaintext" ? this.languageName = "plaintext" : this.languageName = U.getLanguage(this.languageCode).name, this.lightThemeRegistration = U.getTheme(this.lightTheme), this.darkThemeRegistration = U.getTheme(this.darkTheme || this.lightTheme);
861
+ } catch (b) {
862
+ b instanceof Error && (this.error = b.message);
863
+ } finally {
864
+ this.shadowRoot?.querySelector("slot")?.assignedElements().forEach((b) => {
865
+ b instanceof HTMLElement && b.setAttribute("style", "display: none !important;");
866
+ }), this.loading = !1;
867
+ }
868
+ }
869
+ extractLanguageCode(b) {
870
+ let F = ["language-", "lang-"];
871
+ for (let U = 0; U < b.length; U++) {
872
+ let W = b[U];
873
+ for (let b = 0; b < F.length; b++) {
874
+ let U = F[b];
875
+ if (W.startsWith(U)) return W.substring(U.length).toLowerCase();
876
+ }
877
+ }
878
+ return null;
879
+ }
880
+ async renderCodeAsHtml(b, F) {
881
+ let { codeToHtml: U } = await import("shiki"), { transformerNotationDiff: W, transformerNotationHighlight: G, transformerNotationFocus: K, transformerNotationErrorLevel: q } = await import("@shikijs/transformers");
882
+ return await U(b, {
883
+ lang: F,
884
+ themes: {
885
+ light: this.lightTheme,
886
+ dark: this.darkTheme || this.lightTheme
887
+ },
888
+ transformers: [
889
+ W(),
890
+ G(),
891
+ K(),
892
+ q()
893
+ ]
894
+ });
895
+ }
896
+ static #_ = this.styles = [r(tailwind_default), i`
959
897
  :host {
960
898
  display: block;
961
899
  margin: 1rem 0 !important;
@@ -970,52 +908,16 @@ nt.styles = [
970
908
  .color-scheme-dark{color-scheme:dark;}
971
909
  .text-sm{font-size:0.875rem;line-height:1.25rem;}
972
910
  .text-red-500{--un-text-opacity:1;color:rgb(239 68 68 / var(--un-text-opacity)) /* #ef4444 */;};
973
- `
974
- ];
975
- let d = nt;
976
- m([
977
- z({ type: String, attribute: "light-theme" })
978
- ], d.prototype, "lightTheme");
979
- m([
980
- z({ type: String, attribute: "dark-theme" })
981
- ], d.prototype, "darkTheme");
982
- m([
983
- z({ type: String })
984
- ], d.prototype, "variant");
985
- m([
986
- z({ type: String, attribute: "font-size" })
987
- ], d.prototype, "fontSize");
988
- m([
989
- f()
990
- ], d.prototype, "loading");
991
- m([
992
- f()
993
- ], d.prototype, "html");
994
- m([
995
- f()
996
- ], d.prototype, "languageCode");
997
- m([
998
- f()
999
- ], d.prototype, "languageName");
1000
- m([
1001
- f()
1002
- ], d.prototype, "lightThemeRegistration");
1003
- m([
1004
- f()
1005
- ], d.prototype, "darkThemeRegistration");
1006
- m([
1007
- f()
1008
- ], d.prototype, "code");
1009
- m([
1010
- f()
1011
- ], d.prototype, "copied");
1012
- m([
1013
- f()
1014
- ], d.prototype, "error");
1015
- m([
1016
- f()
1017
- ], d.prototype, "_colorScheme");
1018
- customElements.get("shiki-code") || customElements.define("shiki-code", d);
1019
- export {
1020
- d as ShikiCode
911
+ `];
1021
912
  };
913
+ __decorate([n({
914
+ type: String,
915
+ attribute: "light-theme"
916
+ })], ShikiCode.prototype, "lightTheme", void 0), __decorate([n({
917
+ type: String,
918
+ attribute: "dark-theme"
919
+ })], ShikiCode.prototype, "darkTheme", void 0), __decorate([n({ type: String })], ShikiCode.prototype, "variant", void 0), __decorate([n({
920
+ type: String,
921
+ attribute: "font-size"
922
+ })], ShikiCode.prototype, "fontSize", void 0), __decorate([r$1()], ShikiCode.prototype, "loading", void 0), __decorate([r$1()], ShikiCode.prototype, "html", void 0), __decorate([r$1()], ShikiCode.prototype, "languageCode", void 0), __decorate([r$1()], ShikiCode.prototype, "languageName", void 0), __decorate([r$1()], ShikiCode.prototype, "lightThemeRegistration", void 0), __decorate([r$1()], ShikiCode.prototype, "darkThemeRegistration", void 0), __decorate([r$1()], ShikiCode.prototype, "code", void 0), __decorate([r$1()], ShikiCode.prototype, "copied", void 0), __decorate([r$1()], ShikiCode.prototype, "error", void 0), __decorate([r$1()], ShikiCode.prototype, "_colorScheme", void 0), customElements.get("shiki-code") || customElements.define("shiki-code", ShikiCode);
923
+ export { ShikiCode };