@illinois-toolkit/ilw-quote 1.0.0-beta → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,622 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2019 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ const M = globalThis, B = M.ShadowRoot && (M.ShadyCSS === void 0 || M.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, it = Symbol(), K = /* @__PURE__ */ new WeakMap();
7
+ let lt = class {
8
+ constructor(t, e, s) {
9
+ if (this._$cssResult$ = !0, s !== it) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
10
+ this.cssText = t, this.t = e;
11
+ }
12
+ get styleSheet() {
13
+ let t = this.o;
14
+ const e = this.t;
15
+ if (B && t === void 0) {
16
+ const s = e !== void 0 && e.length === 1;
17
+ s && (t = K.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && K.set(e, t));
18
+ }
19
+ return t;
20
+ }
21
+ toString() {
22
+ return this.cssText;
23
+ }
24
+ };
25
+ const ot = (o) => new lt(typeof o == "string" ? o : o + "", void 0, it), ct = (o, t) => {
26
+ if (B) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
27
+ else for (const e of t) {
28
+ const s = document.createElement("style"), i = M.litNonce;
29
+ i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, o.appendChild(s);
30
+ }
31
+ }, Z = B ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
32
+ let e = "";
33
+ for (const s of t.cssRules) e += s.cssText;
34
+ return ot(e);
35
+ })(o) : o;
36
+ /**
37
+ * @license
38
+ * Copyright 2017 Google LLC
39
+ * SPDX-License-Identifier: BSD-3-Clause
40
+ */
41
+ const { is: dt, defineProperty: pt, getOwnPropertyDescriptor: ut, getOwnPropertyNames: $t, getOwnPropertySymbols: _t, getPrototypeOf: ft } = Object, f = globalThis, F = f.trustedTypes, mt = F ? F.emptyScript : "", j = f.reactiveElementPolyfillSupport, w = (o, t) => o, R = { toAttribute(o, t) {
42
+ switch (t) {
43
+ case Boolean:
44
+ o = o ? mt : null;
45
+ break;
46
+ case Object:
47
+ case Array:
48
+ o = o == null ? o : JSON.stringify(o);
49
+ }
50
+ return o;
51
+ }, fromAttribute(o, t) {
52
+ let e = o;
53
+ switch (t) {
54
+ case Boolean:
55
+ e = o !== null;
56
+ break;
57
+ case Number:
58
+ e = o === null ? null : Number(o);
59
+ break;
60
+ case Object:
61
+ case Array:
62
+ try {
63
+ e = JSON.parse(o);
64
+ } catch {
65
+ e = null;
66
+ }
67
+ }
68
+ return e;
69
+ } }, W = (o, t) => !dt(o, t), J = { attribute: !0, type: String, converter: R, reflect: !1, hasChanged: W };
70
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), f.litPropertyMetadata ?? (f.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
71
+ class y extends HTMLElement {
72
+ static addInitializer(t) {
73
+ this._$Ei(), (this.l ?? (this.l = [])).push(t);
74
+ }
75
+ static get observedAttributes() {
76
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
77
+ }
78
+ static createProperty(t, e = J) {
79
+ if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
80
+ const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
81
+ i !== void 0 && pt(this.prototype, t, i);
82
+ }
83
+ }
84
+ static getPropertyDescriptor(t, e, s) {
85
+ const { get: i, set: n } = ut(this.prototype, t) ?? { get() {
86
+ return this[e];
87
+ }, set(r) {
88
+ this[e] = r;
89
+ } };
90
+ return { get() {
91
+ return i == null ? void 0 : i.call(this);
92
+ }, set(r) {
93
+ const a = i == null ? void 0 : i.call(this);
94
+ n.call(this, r), this.requestUpdate(t, a, s);
95
+ }, configurable: !0, enumerable: !0 };
96
+ }
97
+ static getPropertyOptions(t) {
98
+ return this.elementProperties.get(t) ?? J;
99
+ }
100
+ static _$Ei() {
101
+ if (this.hasOwnProperty(w("elementProperties"))) return;
102
+ const t = ft(this);
103
+ t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
104
+ }
105
+ static finalize() {
106
+ if (this.hasOwnProperty(w("finalized"))) return;
107
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(w("properties"))) {
108
+ const e = this.properties, s = [...$t(e), ..._t(e)];
109
+ for (const i of s) this.createProperty(i, e[i]);
110
+ }
111
+ const t = this[Symbol.metadata];
112
+ if (t !== null) {
113
+ const e = litPropertyMetadata.get(t);
114
+ if (e !== void 0) for (const [s, i] of e) this.elementProperties.set(s, i);
115
+ }
116
+ this._$Eh = /* @__PURE__ */ new Map();
117
+ for (const [e, s] of this.elementProperties) {
118
+ const i = this._$Eu(e, s);
119
+ i !== void 0 && this._$Eh.set(i, e);
120
+ }
121
+ this.elementStyles = this.finalizeStyles(this.styles);
122
+ }
123
+ static finalizeStyles(t) {
124
+ const e = [];
125
+ if (Array.isArray(t)) {
126
+ const s = new Set(t.flat(1 / 0).reverse());
127
+ for (const i of s) e.unshift(Z(i));
128
+ } else t !== void 0 && e.push(Z(t));
129
+ return e;
130
+ }
131
+ static _$Eu(t, e) {
132
+ const s = e.attribute;
133
+ return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
134
+ }
135
+ constructor() {
136
+ super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
137
+ }
138
+ _$Ev() {
139
+ var t;
140
+ this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
141
+ }
142
+ addController(t) {
143
+ var e;
144
+ (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
145
+ }
146
+ removeController(t) {
147
+ var e;
148
+ (e = this._$EO) == null || e.delete(t);
149
+ }
150
+ _$E_() {
151
+ const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
152
+ for (const s of e.keys()) this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
153
+ t.size > 0 && (this._$Ep = t);
154
+ }
155
+ createRenderRoot() {
156
+ const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
157
+ return ct(t, this.constructor.elementStyles), t;
158
+ }
159
+ connectedCallback() {
160
+ var t;
161
+ this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
162
+ var s;
163
+ return (s = e.hostConnected) == null ? void 0 : s.call(e);
164
+ });
165
+ }
166
+ enableUpdating(t) {
167
+ }
168
+ disconnectedCallback() {
169
+ var t;
170
+ (t = this._$EO) == null || t.forEach((e) => {
171
+ var s;
172
+ return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
173
+ });
174
+ }
175
+ attributeChangedCallback(t, e, s) {
176
+ this._$AK(t, s);
177
+ }
178
+ _$EC(t, e) {
179
+ var n;
180
+ const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
181
+ if (i !== void 0 && s.reflect === !0) {
182
+ const r = (((n = s.converter) == null ? void 0 : n.toAttribute) !== void 0 ? s.converter : R).toAttribute(e, s.type);
183
+ this._$Em = t, r == null ? this.removeAttribute(i) : this.setAttribute(i, r), this._$Em = null;
184
+ }
185
+ }
186
+ _$AK(t, e) {
187
+ var n;
188
+ const s = this.constructor, i = s._$Eh.get(t);
189
+ if (i !== void 0 && this._$Em !== i) {
190
+ const r = s.getPropertyOptions(i), a = typeof r.converter == "function" ? { fromAttribute: r.converter } : ((n = r.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? r.converter : R;
191
+ this._$Em = i, this[i] = a.fromAttribute(e, r.type), this._$Em = null;
192
+ }
193
+ }
194
+ requestUpdate(t, e, s) {
195
+ if (t !== void 0) {
196
+ if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? W)(this[t], e)) return;
197
+ this.P(t, e, s);
198
+ }
199
+ this.isUpdatePending === !1 && (this._$ES = this._$ET());
200
+ }
201
+ P(t, e, s) {
202
+ this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
203
+ }
204
+ async _$ET() {
205
+ this.isUpdatePending = !0;
206
+ try {
207
+ await this._$ES;
208
+ } catch (e) {
209
+ Promise.reject(e);
210
+ }
211
+ const t = this.scheduleUpdate();
212
+ return t != null && await t, !this.isUpdatePending;
213
+ }
214
+ scheduleUpdate() {
215
+ return this.performUpdate();
216
+ }
217
+ performUpdate() {
218
+ var s;
219
+ if (!this.isUpdatePending) return;
220
+ if (!this.hasUpdated) {
221
+ if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
222
+ for (const [n, r] of this._$Ep) this[n] = r;
223
+ this._$Ep = void 0;
224
+ }
225
+ const i = this.constructor.elementProperties;
226
+ if (i.size > 0) for (const [n, r] of i) r.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(n, this[n], r);
227
+ }
228
+ let t = !1;
229
+ const e = this._$AL;
230
+ try {
231
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((i) => {
232
+ var n;
233
+ return (n = i.hostUpdate) == null ? void 0 : n.call(i);
234
+ }), this.update(e)) : this._$EU();
235
+ } catch (i) {
236
+ throw t = !1, this._$EU(), i;
237
+ }
238
+ t && this._$AE(e);
239
+ }
240
+ willUpdate(t) {
241
+ }
242
+ _$AE(t) {
243
+ var e;
244
+ (e = this._$EO) == null || e.forEach((s) => {
245
+ var i;
246
+ return (i = s.hostUpdated) == null ? void 0 : i.call(s);
247
+ }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
248
+ }
249
+ _$EU() {
250
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
251
+ }
252
+ get updateComplete() {
253
+ return this.getUpdateComplete();
254
+ }
255
+ getUpdateComplete() {
256
+ return this._$ES;
257
+ }
258
+ shouldUpdate(t) {
259
+ return !0;
260
+ }
261
+ update(t) {
262
+ this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU();
263
+ }
264
+ updated(t) {
265
+ }
266
+ firstUpdated(t) {
267
+ }
268
+ }
269
+ y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[w("elementProperties")] = /* @__PURE__ */ new Map(), y[w("finalized")] = /* @__PURE__ */ new Map(), j == null || j({ ReactiveElement: y }), (f.reactiveElementVersions ?? (f.reactiveElementVersions = [])).push("2.0.4");
270
+ /**
271
+ * @license
272
+ * Copyright 2017 Google LLC
273
+ * SPDX-License-Identifier: BSD-3-Clause
274
+ */
275
+ const P = globalThis, k = P.trustedTypes, Q = k ? k.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, rt = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, nt = "?" + _, At = `<${nt}>`, g = document, C = () => g.createComment(""), x = (o) => o === null || typeof o != "object" && typeof o != "function", V = Array.isArray, gt = (o) => V(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", L = `[
276
+ \f\r]`, S = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, G = /-->/g, Y = />/g, m = RegExp(`>|${L}(?:([^\\s"'>=/]+)(${L}*=${L}*(?:[^
277
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), X = /'/g, tt = /"/g, ht = /^(?:script|style|textarea|title)$/i, yt = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), vt = yt(1), v = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), et = /* @__PURE__ */ new WeakMap(), A = g.createTreeWalker(g, 129);
278
+ function at(o, t) {
279
+ if (!V(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
280
+ return Q !== void 0 ? Q.createHTML(t) : t;
281
+ }
282
+ const Et = (o, t) => {
283
+ const e = o.length - 1, s = [];
284
+ let i, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", r = S;
285
+ for (let a = 0; a < e; a++) {
286
+ const h = o[a];
287
+ let c, p, l = -1, u = 0;
288
+ for (; u < h.length && (r.lastIndex = u, p = r.exec(h), p !== null); ) u = r.lastIndex, r === S ? p[1] === "!--" ? r = G : p[1] !== void 0 ? r = Y : p[2] !== void 0 ? (ht.test(p[2]) && (i = RegExp("</" + p[2], "g")), r = m) : p[3] !== void 0 && (r = m) : r === m ? p[0] === ">" ? (r = i ?? S, l = -1) : p[1] === void 0 ? l = -2 : (l = r.lastIndex - p[2].length, c = p[1], r = p[3] === void 0 ? m : p[3] === '"' ? tt : X) : r === tt || r === X ? r = m : r === G || r === Y ? r = S : (r = m, i = void 0);
289
+ const $ = r === m && o[a + 1].startsWith("/>") ? " " : "";
290
+ n += r === S ? h + At : l >= 0 ? (s.push(c), h.slice(0, l) + rt + h.slice(l) + _ + $) : h + _ + (l === -2 ? a : $);
291
+ }
292
+ return [at(o, n + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
293
+ };
294
+ class O {
295
+ constructor({ strings: t, _$litType$: e }, s) {
296
+ let i;
297
+ this.parts = [];
298
+ let n = 0, r = 0;
299
+ const a = t.length - 1, h = this.parts, [c, p] = Et(t, e);
300
+ if (this.el = O.createElement(c, s), A.currentNode = this.el.content, e === 2 || e === 3) {
301
+ const l = this.el.content.firstChild;
302
+ l.replaceWith(...l.childNodes);
303
+ }
304
+ for (; (i = A.nextNode()) !== null && h.length < a; ) {
305
+ if (i.nodeType === 1) {
306
+ if (i.hasAttributes()) for (const l of i.getAttributeNames()) if (l.endsWith(rt)) {
307
+ const u = p[r++], $ = i.getAttribute(l).split(_), N = /([.?@])?(.*)/.exec(u);
308
+ h.push({ type: 1, index: n, name: N[2], strings: $, ctor: N[1] === "." ? St : N[1] === "?" ? wt : N[1] === "@" ? Pt : q }), i.removeAttribute(l);
309
+ } else l.startsWith(_) && (h.push({ type: 6, index: n }), i.removeAttribute(l));
310
+ if (ht.test(i.tagName)) {
311
+ const l = i.textContent.split(_), u = l.length - 1;
312
+ if (u > 0) {
313
+ i.textContent = k ? k.emptyScript : "";
314
+ for (let $ = 0; $ < u; $++) i.append(l[$], C()), A.nextNode(), h.push({ type: 2, index: ++n });
315
+ i.append(l[u], C());
316
+ }
317
+ }
318
+ } else if (i.nodeType === 8) if (i.data === nt) h.push({ type: 2, index: n });
319
+ else {
320
+ let l = -1;
321
+ for (; (l = i.data.indexOf(_, l + 1)) !== -1; ) h.push({ type: 7, index: n }), l += _.length - 1;
322
+ }
323
+ n++;
324
+ }
325
+ }
326
+ static createElement(t, e) {
327
+ const s = g.createElement("template");
328
+ return s.innerHTML = t, s;
329
+ }
330
+ }
331
+ function E(o, t, e = o, s) {
332
+ var r, a;
333
+ if (t === v) return t;
334
+ let i = s !== void 0 ? (r = e.o) == null ? void 0 : r[s] : e.l;
335
+ const n = x(t) ? void 0 : t._$litDirective$;
336
+ return (i == null ? void 0 : i.constructor) !== n && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), n === void 0 ? i = void 0 : (i = new n(o), i._$AT(o, e, s)), s !== void 0 ? (e.o ?? (e.o = []))[s] = i : e.l = i), i !== void 0 && (t = E(o, i._$AS(o, t.values), i, s)), t;
337
+ }
338
+ class bt {
339
+ constructor(t, e) {
340
+ this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
341
+ }
342
+ get parentNode() {
343
+ return this._$AM.parentNode;
344
+ }
345
+ get _$AU() {
346
+ return this._$AM._$AU;
347
+ }
348
+ u(t) {
349
+ const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? g).importNode(e, !0);
350
+ A.currentNode = i;
351
+ let n = A.nextNode(), r = 0, a = 0, h = s[0];
352
+ for (; h !== void 0; ) {
353
+ if (r === h.index) {
354
+ let c;
355
+ h.type === 2 ? c = new T(n, n.nextSibling, this, t) : h.type === 1 ? c = new h.ctor(n, h.name, h.strings, this, t) : h.type === 6 && (c = new Ut(n, this, t)), this._$AV.push(c), h = s[++a];
356
+ }
357
+ r !== (h == null ? void 0 : h.index) && (n = A.nextNode(), r++);
358
+ }
359
+ return A.currentNode = g, i;
360
+ }
361
+ p(t) {
362
+ let e = 0;
363
+ for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
364
+ }
365
+ }
366
+ class T {
367
+ get _$AU() {
368
+ var t;
369
+ return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this.v;
370
+ }
371
+ constructor(t, e, s, i) {
372
+ this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this.v = (i == null ? void 0 : i.isConnected) ?? !0;
373
+ }
374
+ get parentNode() {
375
+ let t = this._$AA.parentNode;
376
+ const e = this._$AM;
377
+ return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
378
+ }
379
+ get startNode() {
380
+ return this._$AA;
381
+ }
382
+ get endNode() {
383
+ return this._$AB;
384
+ }
385
+ _$AI(t, e = this) {
386
+ t = E(this, t, e), x(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== v && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : gt(t) ? this.k(t) : this._(t);
387
+ }
388
+ O(t) {
389
+ return this._$AA.parentNode.insertBefore(t, this._$AB);
390
+ }
391
+ T(t) {
392
+ this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
393
+ }
394
+ _(t) {
395
+ this._$AH !== d && x(this._$AH) ? this._$AA.nextSibling.data = t : this.T(g.createTextNode(t)), this._$AH = t;
396
+ }
397
+ $(t) {
398
+ var n;
399
+ const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = O.createElement(at(s.h, s.h[0]), this.options)), s);
400
+ if (((n = this._$AH) == null ? void 0 : n._$AD) === i) this._$AH.p(e);
401
+ else {
402
+ const r = new bt(i, this), a = r.u(this.options);
403
+ r.p(e), this.T(a), this._$AH = r;
404
+ }
405
+ }
406
+ _$AC(t) {
407
+ let e = et.get(t.strings);
408
+ return e === void 0 && et.set(t.strings, e = new O(t)), e;
409
+ }
410
+ k(t) {
411
+ V(this._$AH) || (this._$AH = [], this._$AR());
412
+ const e = this._$AH;
413
+ let s, i = 0;
414
+ for (const n of t) i === e.length ? e.push(s = new T(this.O(C()), this.O(C()), this, this.options)) : s = e[i], s._$AI(n), i++;
415
+ i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
416
+ }
417
+ _$AR(t = this._$AA.nextSibling, e) {
418
+ var s;
419
+ for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t && t !== this._$AB; ) {
420
+ const i = t.nextSibling;
421
+ t.remove(), t = i;
422
+ }
423
+ }
424
+ setConnected(t) {
425
+ var e;
426
+ this._$AM === void 0 && (this.v = t, (e = this._$AP) == null || e.call(this, t));
427
+ }
428
+ }
429
+ class q {
430
+ get tagName() {
431
+ return this.element.tagName;
432
+ }
433
+ get _$AU() {
434
+ return this._$AM._$AU;
435
+ }
436
+ constructor(t, e, s, i, n) {
437
+ this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = d;
438
+ }
439
+ _$AI(t, e = this, s, i) {
440
+ const n = this.strings;
441
+ let r = !1;
442
+ if (n === void 0) t = E(this, t, e, 0), r = !x(t) || t !== this._$AH && t !== v, r && (this._$AH = t);
443
+ else {
444
+ const a = t;
445
+ let h, c;
446
+ for (t = n[0], h = 0; h < n.length - 1; h++) c = E(this, a[s + h], e, h), c === v && (c = this._$AH[h]), r || (r = !x(c) || c !== this._$AH[h]), c === d ? t = d : t !== d && (t += (c ?? "") + n[h + 1]), this._$AH[h] = c;
447
+ }
448
+ r && !i && this.j(t);
449
+ }
450
+ j(t) {
451
+ t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
452
+ }
453
+ }
454
+ class St extends q {
455
+ constructor() {
456
+ super(...arguments), this.type = 3;
457
+ }
458
+ j(t) {
459
+ this.element[this.name] = t === d ? void 0 : t;
460
+ }
461
+ }
462
+ class wt extends q {
463
+ constructor() {
464
+ super(...arguments), this.type = 4;
465
+ }
466
+ j(t) {
467
+ this.element.toggleAttribute(this.name, !!t && t !== d);
468
+ }
469
+ }
470
+ class Pt extends q {
471
+ constructor(t, e, s, i, n) {
472
+ super(t, e, s, i, n), this.type = 5;
473
+ }
474
+ _$AI(t, e = this) {
475
+ if ((t = E(this, t, e, 0) ?? d) === v) return;
476
+ const s = this._$AH, i = t === d && s !== d || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== d && (s === d || i);
477
+ i && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
478
+ }
479
+ handleEvent(t) {
480
+ var e;
481
+ typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
482
+ }
483
+ }
484
+ class Ut {
485
+ constructor(t, e, s) {
486
+ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
487
+ }
488
+ get _$AU() {
489
+ return this._$AM._$AU;
490
+ }
491
+ _$AI(t) {
492
+ E(this, t);
493
+ }
494
+ }
495
+ const I = P.litHtmlPolyfillSupport;
496
+ I == null || I(O, T), (P.litHtmlVersions ?? (P.litHtmlVersions = [])).push("3.2.0");
497
+ const Ct = (o, t, e) => {
498
+ const s = (e == null ? void 0 : e.renderBefore) ?? t;
499
+ let i = s._$litPart$;
500
+ if (i === void 0) {
501
+ const n = (e == null ? void 0 : e.renderBefore) ?? null;
502
+ s._$litPart$ = i = new T(t.insertBefore(C(), n), n, void 0, e ?? {});
503
+ }
504
+ return i._$AI(o), i;
505
+ };
506
+ /**
507
+ * @license
508
+ * Copyright 2017 Google LLC
509
+ * SPDX-License-Identifier: BSD-3-Clause
510
+ */
511
+ class U extends y {
512
+ constructor() {
513
+ super(...arguments), this.renderOptions = { host: this }, this.o = void 0;
514
+ }
515
+ createRenderRoot() {
516
+ var e;
517
+ const t = super.createRenderRoot();
518
+ return (e = this.renderOptions).renderBefore ?? (e.renderBefore = t.firstChild), t;
519
+ }
520
+ update(t) {
521
+ const e = this.render();
522
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this.o = Ct(e, this.renderRoot, this.renderOptions);
523
+ }
524
+ connectedCallback() {
525
+ var t;
526
+ super.connectedCallback(), (t = this.o) == null || t.setConnected(!0);
527
+ }
528
+ disconnectedCallback() {
529
+ var t;
530
+ super.disconnectedCallback(), (t = this.o) == null || t.setConnected(!1);
531
+ }
532
+ render() {
533
+ return v;
534
+ }
535
+ }
536
+ var st;
537
+ U._$litElement$ = !0, U.finalized = !0, (st = globalThis.litElementHydrateSupport) == null || st.call(globalThis, { LitElement: U });
538
+ const D = globalThis.litElementPolyfillSupport;
539
+ D == null || D({ LitElement: U });
540
+ (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.0");
541
+ /**
542
+ * @license
543
+ * Copyright 2017 Google LLC
544
+ * SPDX-License-Identifier: BSD-3-Clause
545
+ */
546
+ const xt = (o) => (t, e) => {
547
+ e !== void 0 ? e.addInitializer(() => {
548
+ customElements.define(o, t);
549
+ }) : customElements.define(o, t);
550
+ };
551
+ /**
552
+ * @license
553
+ * Copyright 2017 Google LLC
554
+ * SPDX-License-Identifier: BSD-3-Clause
555
+ */
556
+ const Ot = { attribute: !0, type: String, converter: R, reflect: !1, hasChanged: W }, Tt = (o = Ot, t, e) => {
557
+ const { kind: s, metadata: i } = e;
558
+ let n = globalThis.litPropertyMetadata.get(i);
559
+ if (n === void 0 && globalThis.litPropertyMetadata.set(i, n = /* @__PURE__ */ new Map()), n.set(e.name, o), s === "accessor") {
560
+ const { name: r } = e;
561
+ return { set(a) {
562
+ const h = t.get.call(this);
563
+ t.set.call(this, a), this.requestUpdate(r, h, o);
564
+ }, init(a) {
565
+ return a !== void 0 && this.P(r, void 0, o), a;
566
+ } };
567
+ }
568
+ if (s === "setter") {
569
+ const { name: r } = e;
570
+ return function(a) {
571
+ const h = this[r];
572
+ t.call(this, a), this.requestUpdate(r, h, o);
573
+ };
574
+ }
575
+ throw Error("Unsupported decorator location: " + s);
576
+ };
577
+ function z(o) {
578
+ return (t, e) => typeof e == "object" ? Tt(o, t, e) : ((s, i, n) => {
579
+ const r = i.hasOwnProperty(n);
580
+ return i.constructor.createProperty(n, r ? { ...s, wrapped: !0 } : s), r ? Object.getOwnPropertyDescriptor(i, n) : void 0;
581
+ })(o, t, e);
582
+ }
583
+ const Ht = ":host{display:block;background:var(--ilw-quote--background)}#quote{margin:0 auto;max-width:var(--ilw-quote--max-width)}#content{color:var(--ilw-quote--color);position:relative}#content:before{content:var(--ilw-quote--mark-content-before);position:relative;font-style:normal;color:var(--ilw-quote--mark-color);font:var(--ilw-quote--mark-font);line-height:1;height:var(--ilw-quote--mark-height);top:var(--ilw-quote--mark-top);display:block}";
584
+ var Nt = Object.defineProperty, Mt = Object.getOwnPropertyDescriptor, H = (o, t, e, s) => {
585
+ for (var i = s > 1 ? void 0 : s ? Mt(t, e) : t, n = o.length - 1, r; n >= 0; n--)
586
+ (r = o[n]) && (i = (s ? r(t, e, i) : r(i)) || i);
587
+ return s && i && Nt(t, e, i), i;
588
+ };
589
+ let b = class extends U {
590
+ constructor() {
591
+ super(), this.theme = "", this.align = "center", this.size = "small", this.font = "serif";
592
+ }
593
+ static get styles() {
594
+ return ot(Ht);
595
+ }
596
+ render() {
597
+ return vt`
598
+ <blockquote id="quote">
599
+ <div id="content"><slot name="content"></slot></div>
600
+ <div id="source"><slot name="author"></slot><slot name="source"></slot></div>
601
+ </blockquote>
602
+ `;
603
+ }
604
+ };
605
+ H([
606
+ z()
607
+ ], b.prototype, "theme", 2);
608
+ H([
609
+ z()
610
+ ], b.prototype, "align", 2);
611
+ H([
612
+ z()
613
+ ], b.prototype, "size", 2);
614
+ H([
615
+ z()
616
+ ], b.prototype, "font", 2);
617
+ b = H([
618
+ xt("ilw-quote")
619
+ ], b);
620
+ export {
621
+ b as default
622
+ };
@@ -1 +1 @@
1
- :root{--ilw-quote--background: white;--ilw-quote--color: var(--il-blue);--ilw-quote--author-color: var(--il-orange);--ilw-quote--source-color: var(--il-blue);--ilw-quote--mark-color: var(--il-orange);--ilw-quote--font: italic 400 2.25rem/3.1875rem var(--il-font-serif);--ilw-quote--author-font: 700 1.813em/1.207em var(--il-font-sans);--ilw-quote--source-font: 300 1.438em/1.25em var(--il-font-sans);--ilw-quote--mark-font: 700 3.472em/0 var(--il-font-serif);--ilw-quote--mark-top: 55px;--ilw-quote--mark-left: -90px;--ilw-quote--mark-content-before: "“";--ilw-quote--mark-content-after: "”";--ilw-quote--max-width: 620px}@media only screen and (max-width: 792px){:root{--ilw-quote--font: italic 400 1.813rem/2.375rem var(--il-font-serif);--ilw-quote--author-font: 700 1.5em/1.207em var(--il-font-sans);--ilw-quote--source-font: 300 1.25rem/1.625rem var(--il-font-sans);--ilw-quote--mark-font: 700 3.472em/0 var(--il-font-serif);--ilw-quote--mark-top: 45px;--ilw-quote--mark-left: -50px}}.ilw-quote--exclude-marks{--ilw-quote--mark-content-before: none;--ilw-quote--mark-content-after: none}ilw-quote *[slot=content]{font:var(--ilw-quote--font)}ilw-quote *[slot=author]{margin-top:1.625rem;text-align:center;color:var(--ilw-quote--author-color);font:var(--ilw-quote--author-font)}ilw-quote *[slot=source]{margin-top:1.275rem;text-align:center;color:var(--ilw-quote--source-color);font:var(--ilw-quote--source-font);display:block}ilw-quote[theme=blue]{--ilw-quote--background: var(--il-blue);--ilw-quote--color: white;--ilw-quote--author-color: var(--il-orange);--ilw-quote--source-color: white;--ilw-quote--mark-color: var(--il-orange)}ilw-quote[theme=gray]{--ilw-quote--background: var(--il-storm-lighter-4);--ilw-quote--author-color: var(--il-altgeld);--ilw-quote--mark-color: var(--il-altgeld)}
1
+ @layer base{:root{--ilw-quote--background: white;--ilw-quote--color: var(--il-blue);--ilw-quote--author-color: var(--il-orange);--ilw-quote--source-color: var(--il-blue);--ilw-quote--mark-color: var(--il-orange);--ilw-quote--margin: 1rem 0;--ilw-quote--padding: 0 0 1em 0;--ilw-quote--base-font-size: .875rem;--ilw-quote--font: var(--il-font-sans);--ilw-quote--font-serif: var(--il-font-serif);--ilw-quote--font-weight: 600;--ilw-quote--font-size: 1.625em;--ilw-quote--line-height: 1.35;--ilw-quote--author-font-weight: 700;--ilw-quote--author-font-size: 1.625em;--ilw-quote--author-line-height: 1.1;--ilw-quote--source-font-weight: 400;--ilw-quote--source-font-size: 1.428em;--ilw-quote--source-line-height: 1.35;--ilw-quote--mark-font: 9.5em/0 var(--il-font-serif);--ilw-quote--mark-height: .4em;--ilw-quote--mark-top: -10px;--ilw-quote--mark-content-before: "“";--ilw-quote--mark-content-after: "”";--ilw-quote--max-width: 620px;--ilw-quote--border: 6px solid var(--il-orange)}ilw-quote{font-family:var(--ilw-quote--font);font-size:var(--ilw-quote--base-font-size);text-align:center;margin:var(--ilw-quote--margin);padding:var(--ilw-quote--padding)}ilw-quote[theme=blue]{--ilw-quote--background: var(--il-blue);--ilw-quote--color: white;--ilw-quote--author-color: var(--il-orange);--ilw-quote--source-color: white;--ilw-quote--mark-color: var(--il-orange)}ilw-quote[theme=gray]{--ilw-quote--background: var(--il-storm-lighter-4);--ilw-quote--author-color: var(--il-altgeld);--ilw-quote--mark-color: var(--il-altgeld)}ilw-quote[align=left]{text-align:left;border-left:var(--ilw-quote--border);--ilw-quote--max-width: none;padding-left:3.125em}ilw-quote[align=right]{text-align:right;border-right:var(--ilw-quote--border);--ilw-quote--max-width: none;padding-right:3.125em}ilw-quote[size=medium]{--ilw-quote--base-font-size: 1rem}ilw-quote[size=large]{--ilw-quote--base-font-size: 1.154rem}}.ilw-quote--exclude-marks{--ilw-quote--mark-content-before: none;--ilw-quote--mark-content-after: none}ilw-quote *[slot=content]{font-weight:var(--ilw-quote--font-weight);font-size:var(--ilw-quote--font-size);line-height:var(--ilw-quote--line-height)}ilw-quote[font=serif] *[slot=content]{font-family:var(--ilw-quote--font-serif);--ilw-quote--font-weight: 400}ilw-quote *[slot=author]{margin-top:1.8em;margin-bottom:.5em;color:var(--ilw-quote--author-color);font-weight:var(--ilw-quote--author-font-weight);font-size:var(--ilw-quote--author-font-size);line-height:var(--ilw-quote--author-line-height)}ilw-quote *[slot=source]{margin:0;color:var(--ilw-quote--source-color);font-style:inherit;font-weight:var(--ilw-quote--source-font-weight);font-size:var(--ilw-quote--source-font-size);line-height:var(--ilw-quote--source-line-height);display:block}
@@ -0,0 +1,16 @@
1
+ import { LitElement } from 'lit';
2
+ export default class Quote extends LitElement {
3
+ theme: string;
4
+ align: "left" | "right" | "center";
5
+ size: "small" | "medium" | "large";
6
+ font: "sans" | "serif";
7
+ static get styles(): import('lit').CSSResult;
8
+ constructor();
9
+ render(): import('lit-html').TemplateResult<1>;
10
+ }
11
+ declare global {
12
+ interface HTMLElementTagNameMap {
13
+ "ilw-quote": Quote;
14
+ }
15
+ }
16
+ //# sourceMappingURL=ilw-quote.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ilw-quote.d.ts","sourceRoot":"","sources":["../src/ilw-quote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAkB,MAAM,KAAK,CAAC;AAIhD,OAAO,iBAAiB,CAAC;AAGzB,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,UAAU;IAEzC,KAAK,EAAE,MAAM,CAAM;IAGnB,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAY;IAG9C,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAW;IAG7C,IAAI,EAAE,MAAM,GAAG,OAAO,CAAW;IAEjC,MAAM,KAAK,MAAM,4BAEhB;;IAMD,MAAM;CAQT;AAED,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,WAAW,EAAE,KAAK,CAAC;KACtB;CACJ"}