lunchboxjs 2.0.2 → 2.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.
- package/dist/lunchboxjs.cjs +17 -17
- package/dist/lunchboxjs.js +295 -295
- package/dist/lunchboxjs.umd.cjs +17 -17
- package/dist/src/parseAttributeValue.d.ts +1 -1
- package/package.json +1 -1
package/dist/lunchboxjs.js
CHANGED
|
@@ -111,7 +111,7 @@ let ju = class {
|
|
|
111
111
|
return this.cssText;
|
|
112
112
|
}
|
|
113
113
|
};
|
|
114
|
-
const
|
|
114
|
+
const te = (t) => new ju(typeof t == "string" ? t : t + "", void 0, mu), re = (t, ...u) => {
|
|
115
115
|
const e = t.length === 1 ? t[0] : u.reduce((r, s, D) => r + ((i) => {
|
|
116
116
|
if (i._$cssResult$ === !0)
|
|
117
117
|
return i.cssText;
|
|
@@ -120,7 +120,7 @@ const ee = (t) => new ju(typeof t == "string" ? t : t + "", void 0, mu), te = (t
|
|
|
120
120
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + i + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
121
121
|
})(s) + t[D + 1], t[0]);
|
|
122
122
|
return new ju(e, t, mu);
|
|
123
|
-
},
|
|
123
|
+
}, se = (t, u) => {
|
|
124
124
|
if (Bu)
|
|
125
125
|
t.adoptedStyleSheets = u.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
126
126
|
else
|
|
@@ -132,17 +132,17 @@ const ee = (t) => new ju(typeof t == "string" ? t : t + "", void 0, mu), te = (t
|
|
|
132
132
|
let e = "";
|
|
133
133
|
for (const r of u.cssRules)
|
|
134
134
|
e += r.cssText;
|
|
135
|
-
return
|
|
135
|
+
return te(e);
|
|
136
136
|
})(t) : t;
|
|
137
137
|
/**
|
|
138
138
|
* @license
|
|
139
139
|
* Copyright 2017 Google LLC
|
|
140
140
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
141
141
|
*/
|
|
142
|
-
const { is:
|
|
142
|
+
const { is: ie, defineProperty: De, getOwnPropertyDescriptor: ne, getOwnPropertyNames: oe, getOwnPropertySymbols: ae, getPrototypeOf: ce } = Object, P = globalThis, wu = P.trustedTypes, he = wu ? wu.emptyScript : "", au = P.reactiveElementPolyfillSupport, W = (t, u) => t, ru = { toAttribute(t, u) {
|
|
143
143
|
switch (u) {
|
|
144
144
|
case Boolean:
|
|
145
|
-
t = t ?
|
|
145
|
+
t = t ? he : null;
|
|
146
146
|
break;
|
|
147
147
|
case Object:
|
|
148
148
|
case Array:
|
|
@@ -167,7 +167,7 @@ const { is: se, defineProperty: ie, getOwnPropertyDescriptor: De, getOwnProperty
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
return e;
|
|
170
|
-
} }, yu = (t, u) => !
|
|
170
|
+
} }, yu = (t, u) => !ie(t, u), Su = { attribute: !0, type: String, converter: ru, reflect: !1, hasChanged: yu };
|
|
171
171
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), P.litPropertyMetadata ?? (P.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
172
172
|
class k extends HTMLElement {
|
|
173
173
|
static addInitializer(u) {
|
|
@@ -179,11 +179,11 @@ class k extends HTMLElement {
|
|
|
179
179
|
static createProperty(u, e = Su) {
|
|
180
180
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(u, e), !e.noAccessor) {
|
|
181
181
|
const r = Symbol(), s = this.getPropertyDescriptor(u, r, e);
|
|
182
|
-
s !== void 0 &&
|
|
182
|
+
s !== void 0 && De(this.prototype, u, s);
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
static getPropertyDescriptor(u, e, r) {
|
|
186
|
-
const { get: s, set: D } =
|
|
186
|
+
const { get: s, set: D } = ne(this.prototype, u) ?? { get() {
|
|
187
187
|
return this[e];
|
|
188
188
|
}, set(i) {
|
|
189
189
|
this[e] = i;
|
|
@@ -201,14 +201,14 @@ class k extends HTMLElement {
|
|
|
201
201
|
static _$Ei() {
|
|
202
202
|
if (this.hasOwnProperty(W("elementProperties")))
|
|
203
203
|
return;
|
|
204
|
-
const u =
|
|
204
|
+
const u = ce(this);
|
|
205
205
|
u.finalize(), u.l !== void 0 && (this.l = [...u.l]), this.elementProperties = new Map(u.elementProperties);
|
|
206
206
|
}
|
|
207
207
|
static finalize() {
|
|
208
208
|
if (this.hasOwnProperty(W("finalized")))
|
|
209
209
|
return;
|
|
210
210
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(W("properties"))) {
|
|
211
|
-
const e = this.properties, r = [...
|
|
211
|
+
const e = this.properties, r = [...oe(e), ...ae(e)];
|
|
212
212
|
for (const s of r)
|
|
213
213
|
this.createProperty(s, e[s]);
|
|
214
214
|
}
|
|
@@ -263,7 +263,7 @@ class k extends HTMLElement {
|
|
|
263
263
|
}
|
|
264
264
|
createRenderRoot() {
|
|
265
265
|
const u = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
266
|
-
return
|
|
266
|
+
return se(u, this.constructor.elementStyles), u;
|
|
267
267
|
}
|
|
268
268
|
connectedCallback() {
|
|
269
269
|
var u;
|
|
@@ -386,34 +386,34 @@ k.elementStyles = [], k.shadowRootOptions = { mode: "open" }, k[W("elementProper
|
|
|
386
386
|
* Copyright 2017 Google LLC
|
|
387
387
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
388
388
|
*/
|
|
389
|
-
const
|
|
390
|
-
\f\r]`,
|
|
391
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Nu = /'/g, Mu = /"/g,
|
|
389
|
+
const V = globalThis, su = V.trustedTypes, Pu = su ? su.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, Gu = "$lit$", S = `lit$${Math.random().toFixed(9).slice(2)}$`, zu = "?" + S, Ae = `<${zu}>`, L = document, J = () => L.createComment(""), Z = (t) => t === null || typeof t != "object" && typeof t != "function", Wu = Array.isArray, Ce = (t) => Wu(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", cu = `[
|
|
390
|
+
\f\r]`, G = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, xu = /-->/g, Tu = />/g, N = RegExp(`>|${cu}(?:([^\\s"'>=/]+)(${cu}*=${cu}*(?:[^
|
|
391
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Nu = /'/g, Mu = /"/g, Vu = /^(?:script|style|textarea|title)$/i, Ee = (t) => (u, ...e) => ({ _$litType$: t, strings: u, values: e }), qu = Ee(1), I = Symbol.for("lit-noChange"), m = Symbol.for("lit-nothing"), Ou = /* @__PURE__ */ new WeakMap(), R = L.createTreeWalker(L, 129);
|
|
392
392
|
function Ju(t, u) {
|
|
393
393
|
if (!Array.isArray(t) || !t.hasOwnProperty("raw"))
|
|
394
394
|
throw Error("invalid template strings array");
|
|
395
395
|
return Pu !== void 0 ? Pu.createHTML(u) : u;
|
|
396
396
|
}
|
|
397
|
-
const
|
|
397
|
+
const Fe = (t, u) => {
|
|
398
398
|
const e = t.length - 1, r = [];
|
|
399
|
-
let s, D = u === 2 ? "<svg>" : "", i =
|
|
399
|
+
let s, D = u === 2 ? "<svg>" : "", i = G;
|
|
400
400
|
for (let o = 0; o < e; o++) {
|
|
401
401
|
const a = t[o];
|
|
402
402
|
let A, F, E = -1, p = 0;
|
|
403
403
|
for (; p < a.length && (i.lastIndex = p, F = i.exec(a), F !== null); )
|
|
404
|
-
p = i.lastIndex, i ===
|
|
404
|
+
p = i.lastIndex, i === G ? F[1] === "!--" ? i = xu : F[1] !== void 0 ? i = Tu : F[2] !== void 0 ? (Vu.test(F[2]) && (s = RegExp("</" + F[2], "g")), i = N) : F[3] !== void 0 && (i = N) : i === N ? F[0] === ">" ? (i = s ?? G, E = -1) : F[1] === void 0 ? E = -2 : (E = i.lastIndex - F[2].length, A = F[1], i = F[3] === void 0 ? N : F[3] === '"' ? Mu : Nu) : i === Mu || i === Nu ? i = N : i === xu || i === Tu ? i = G : (i = N, s = void 0);
|
|
405
405
|
const g = i === N && t[o + 1].startsWith("/>") ? " " : "";
|
|
406
|
-
D += i ===
|
|
406
|
+
D += i === G ? a + Ae : E >= 0 ? (r.push(A), a.slice(0, E) + Gu + a.slice(E) + S + g) : a + S + (E === -2 ? o : g);
|
|
407
407
|
}
|
|
408
408
|
return [Ju(t, D + (t[e] || "<?>") + (u === 2 ? "</svg>" : "")), r];
|
|
409
409
|
};
|
|
410
|
-
class
|
|
410
|
+
class K {
|
|
411
411
|
constructor({ strings: u, _$litType$: e }, r) {
|
|
412
412
|
let s;
|
|
413
413
|
this.parts = [];
|
|
414
414
|
let D = 0, i = 0;
|
|
415
|
-
const o = u.length - 1, a = this.parts, [A, F] =
|
|
416
|
-
if (this.el =
|
|
415
|
+
const o = u.length - 1, a = this.parts, [A, F] = Fe(u, e);
|
|
416
|
+
if (this.el = K.createElement(A, r), R.currentNode = this.el.content, e === 2) {
|
|
417
417
|
const E = this.el.content.firstChild;
|
|
418
418
|
E.replaceWith(...E.childNodes);
|
|
419
419
|
}
|
|
@@ -423,16 +423,16 @@ class X {
|
|
|
423
423
|
for (const E of s.getAttributeNames())
|
|
424
424
|
if (E.endsWith(Gu)) {
|
|
425
425
|
const p = F[i++], g = s.getAttribute(E).split(S), U = /([.?@])?(.*)/.exec(p);
|
|
426
|
-
a.push({ type: 1, index: D, name: U[2], strings: g, ctor: U[1] === "." ?
|
|
426
|
+
a.push({ type: 1, index: D, name: U[2], strings: g, ctor: U[1] === "." ? de : U[1] === "?" ? pe : U[1] === "@" ? fe : nu }), s.removeAttribute(E);
|
|
427
427
|
} else
|
|
428
428
|
E.startsWith(S) && (a.push({ type: 6, index: D }), s.removeAttribute(E));
|
|
429
|
-
if (
|
|
429
|
+
if (Vu.test(s.tagName)) {
|
|
430
430
|
const E = s.textContent.split(S), p = E.length - 1;
|
|
431
431
|
if (p > 0) {
|
|
432
432
|
s.textContent = su ? su.emptyScript : "";
|
|
433
433
|
for (let g = 0; g < p; g++)
|
|
434
|
-
s.append(E[g],
|
|
435
|
-
s.append(E[p],
|
|
434
|
+
s.append(E[g], J()), R.nextNode(), a.push({ type: 2, index: ++D });
|
|
435
|
+
s.append(E[p], J());
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
438
|
} else if (s.nodeType === 8)
|
|
@@ -456,10 +456,10 @@ function j(t, u, e = t, r) {
|
|
|
456
456
|
if (u === I)
|
|
457
457
|
return u;
|
|
458
458
|
let s = r !== void 0 ? (i = e._$Co) == null ? void 0 : i[r] : e._$Cl;
|
|
459
|
-
const D =
|
|
459
|
+
const D = Z(u) ? void 0 : u._$litDirective$;
|
|
460
460
|
return (s == null ? void 0 : s.constructor) !== D && ((o = s == null ? void 0 : s._$AO) == null || o.call(s, !1), D === void 0 ? s = void 0 : (s = new D(t), s._$AT(t, e, r)), r !== void 0 ? (e._$Co ?? (e._$Co = []))[r] = s : e._$Cl = s), s !== void 0 && (u = j(t, s._$AS(t, u.values), s, r)), u;
|
|
461
461
|
}
|
|
462
|
-
class
|
|
462
|
+
class le {
|
|
463
463
|
constructor(u, e) {
|
|
464
464
|
this._$AV = [], this._$AN = void 0, this._$AD = u, this._$AM = e;
|
|
465
465
|
}
|
|
@@ -476,7 +476,7 @@ class Fe {
|
|
|
476
476
|
for (; a !== void 0; ) {
|
|
477
477
|
if (i === a.index) {
|
|
478
478
|
let A;
|
|
479
|
-
a.type === 2 ? A = new
|
|
479
|
+
a.type === 2 ? A = new X(D, D.nextSibling, this, u) : a.type === 1 ? A = new a.ctor(D, a.name, a.strings, this, u) : a.type === 6 && (A = new Be(D, this, u)), this._$AV.push(A), a = r[++o];
|
|
480
480
|
}
|
|
481
481
|
i !== (a == null ? void 0 : a.index) && (D = R.nextNode(), i++);
|
|
482
482
|
}
|
|
@@ -488,7 +488,7 @@ class Fe {
|
|
|
488
488
|
r !== void 0 && (r.strings !== void 0 ? (r._$AI(u, r, e), e += r.strings.length - 2) : r._$AI(u[e])), e++;
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
class
|
|
491
|
+
class X {
|
|
492
492
|
get _$AU() {
|
|
493
493
|
var u;
|
|
494
494
|
return ((u = this._$AM) == null ? void 0 : u._$AU) ?? this._$Cv;
|
|
@@ -508,7 +508,7 @@ class Y {
|
|
|
508
508
|
return this._$AB;
|
|
509
509
|
}
|
|
510
510
|
_$AI(u, e = this) {
|
|
511
|
-
u = j(this, u, e),
|
|
511
|
+
u = j(this, u, e), Z(u) ? u === m || u == null || u === "" ? (this._$AH !== m && this._$AR(), this._$AH = m) : u !== this._$AH && u !== I && this._(u) : u._$litType$ !== void 0 ? this.$(u) : u.nodeType !== void 0 ? this.T(u) : Ce(u) ? this.k(u) : this._(u);
|
|
512
512
|
}
|
|
513
513
|
S(u) {
|
|
514
514
|
return this._$AA.parentNode.insertBefore(u, this._$AB);
|
|
@@ -517,28 +517,28 @@ class Y {
|
|
|
517
517
|
this._$AH !== u && (this._$AR(), this._$AH = this.S(u));
|
|
518
518
|
}
|
|
519
519
|
_(u) {
|
|
520
|
-
this._$AH !== m &&
|
|
520
|
+
this._$AH !== m && Z(this._$AH) ? this._$AA.nextSibling.data = u : this.T(L.createTextNode(u)), this._$AH = u;
|
|
521
521
|
}
|
|
522
522
|
$(u) {
|
|
523
523
|
var D;
|
|
524
|
-
const { values: e, _$litType$: r } = u, s = typeof r == "number" ? this._$AC(u) : (r.el === void 0 && (r.el =
|
|
524
|
+
const { values: e, _$litType$: r } = u, s = typeof r == "number" ? this._$AC(u) : (r.el === void 0 && (r.el = K.createElement(Ju(r.h, r.h[0]), this.options)), r);
|
|
525
525
|
if (((D = this._$AH) == null ? void 0 : D._$AD) === s)
|
|
526
526
|
this._$AH.p(e);
|
|
527
527
|
else {
|
|
528
|
-
const i = new
|
|
528
|
+
const i = new le(s, this), o = i.u(this.options);
|
|
529
529
|
i.p(e), this.T(o), this._$AH = i;
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
532
|
_$AC(u) {
|
|
533
533
|
let e = Ou.get(u.strings);
|
|
534
|
-
return e === void 0 && Ou.set(u.strings, e = new
|
|
534
|
+
return e === void 0 && Ou.set(u.strings, e = new K(u)), e;
|
|
535
535
|
}
|
|
536
536
|
k(u) {
|
|
537
|
-
|
|
537
|
+
Wu(this._$AH) || (this._$AH = [], this._$AR());
|
|
538
538
|
const e = this._$AH;
|
|
539
539
|
let r, s = 0;
|
|
540
540
|
for (const D of u)
|
|
541
|
-
s === e.length ? e.push(r = new
|
|
541
|
+
s === e.length ? e.push(r = new X(this.S(J()), this.S(J()), this, this.options)) : r = e[s], r._$AI(D), s++;
|
|
542
542
|
s < e.length && (this._$AR(r && r._$AB.nextSibling, s), e.length = s);
|
|
543
543
|
}
|
|
544
544
|
_$AR(u = this._$AA.nextSibling, e) {
|
|
@@ -567,12 +567,12 @@ class nu {
|
|
|
567
567
|
const D = this.strings;
|
|
568
568
|
let i = !1;
|
|
569
569
|
if (D === void 0)
|
|
570
|
-
u = j(this, u, e, 0), i = !
|
|
570
|
+
u = j(this, u, e, 0), i = !Z(u) || u !== this._$AH && u !== I, i && (this._$AH = u);
|
|
571
571
|
else {
|
|
572
572
|
const o = u;
|
|
573
573
|
let a, A;
|
|
574
574
|
for (u = D[0], a = 0; a < D.length - 1; a++)
|
|
575
|
-
A = j(this, o[r + a], e, a), A === I && (A = this._$AH[a]), i || (i = !
|
|
575
|
+
A = j(this, o[r + a], e, a), A === I && (A = this._$AH[a]), i || (i = !Z(A) || A !== this._$AH[a]), A === m ? u = m : u !== m && (u += (A ?? "") + D[a + 1]), this._$AH[a] = A;
|
|
576
576
|
}
|
|
577
577
|
i && !s && this.j(u);
|
|
578
578
|
}
|
|
@@ -580,7 +580,7 @@ class nu {
|
|
|
580
580
|
u === m ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, u ?? "");
|
|
581
581
|
}
|
|
582
582
|
}
|
|
583
|
-
class
|
|
583
|
+
class de extends nu {
|
|
584
584
|
constructor() {
|
|
585
585
|
super(...arguments), this.type = 3;
|
|
586
586
|
}
|
|
@@ -588,7 +588,7 @@ class le extends nu {
|
|
|
588
588
|
this.element[this.name] = u === m ? void 0 : u;
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
|
-
class
|
|
591
|
+
class pe extends nu {
|
|
592
592
|
constructor() {
|
|
593
593
|
super(...arguments), this.type = 4;
|
|
594
594
|
}
|
|
@@ -596,7 +596,7 @@ class de extends nu {
|
|
|
596
596
|
this.element.toggleAttribute(this.name, !!u && u !== m);
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
class
|
|
599
|
+
class fe extends nu {
|
|
600
600
|
constructor(u, e, r, s, D) {
|
|
601
601
|
super(u, e, r, s, D), this.type = 5;
|
|
602
602
|
}
|
|
@@ -611,7 +611,7 @@ class pe extends nu {
|
|
|
611
611
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, u) : this._$AH.handleEvent(u);
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
-
class
|
|
614
|
+
class Be {
|
|
615
615
|
constructor(u, e, r) {
|
|
616
616
|
this.element = u, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = r;
|
|
617
617
|
}
|
|
@@ -622,14 +622,14 @@ class fe {
|
|
|
622
622
|
j(this, u);
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
|
-
const hu =
|
|
626
|
-
hu == null || hu(
|
|
627
|
-
const
|
|
625
|
+
const hu = V.litHtmlPolyfillSupport;
|
|
626
|
+
hu == null || hu(K, X), (V.litHtmlVersions ?? (V.litHtmlVersions = [])).push("3.1.3");
|
|
627
|
+
const me = (t, u, e) => {
|
|
628
628
|
const r = (e == null ? void 0 : e.renderBefore) ?? u;
|
|
629
629
|
let s = r._$litPart$;
|
|
630
630
|
if (s === void 0) {
|
|
631
631
|
const D = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
632
|
-
r._$litPart$ = s = new
|
|
632
|
+
r._$litPart$ = s = new X(u.insertBefore(J(), D), D, void 0, e ?? {});
|
|
633
633
|
}
|
|
634
634
|
return s._$AI(t), s;
|
|
635
635
|
};
|
|
@@ -649,7 +649,7 @@ class H extends k {
|
|
|
649
649
|
}
|
|
650
650
|
update(u) {
|
|
651
651
|
const e = this.render();
|
|
652
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(u), this._$Do =
|
|
652
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(u), this._$Do = me(e, this.renderRoot, this.renderOptions);
|
|
653
653
|
}
|
|
654
654
|
connectedCallback() {
|
|
655
655
|
var u;
|
|
@@ -668,39 +668,7 @@ H._$litElement$ = !0, H.finalized = !0, (Hu = globalThis.litElementHydrateSuppor
|
|
|
668
668
|
const Au = globalThis.litElementPolyfillSupport;
|
|
669
669
|
Au == null || Au({ LitElement: H });
|
|
670
670
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.5");
|
|
671
|
-
|
|
672
|
-
* @license
|
|
673
|
-
* Copyright 2017 Google LLC
|
|
674
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
675
|
-
*/
|
|
676
|
-
const me = { attribute: !0, type: String, converter: ru, reflect: !1, hasChanged: yu }, ye = (t = me, u, e) => {
|
|
677
|
-
const { kind: r, metadata: s } = e;
|
|
678
|
-
let D = globalThis.litPropertyMetadata.get(s);
|
|
679
|
-
if (D === void 0 && globalThis.litPropertyMetadata.set(s, D = /* @__PURE__ */ new Map()), D.set(e.name, t), r === "accessor") {
|
|
680
|
-
const { name: i } = e;
|
|
681
|
-
return { set(o) {
|
|
682
|
-
const a = u.get.call(this);
|
|
683
|
-
u.set.call(this, o), this.requestUpdate(i, a, t);
|
|
684
|
-
}, init(o) {
|
|
685
|
-
return o !== void 0 && this.P(i, void 0, t), o;
|
|
686
|
-
} };
|
|
687
|
-
}
|
|
688
|
-
if (r === "setter") {
|
|
689
|
-
const { name: i } = e;
|
|
690
|
-
return function(o) {
|
|
691
|
-
const a = this[i];
|
|
692
|
-
u.call(this, o), this.requestUpdate(i, a, t);
|
|
693
|
-
};
|
|
694
|
-
}
|
|
695
|
-
throw Error("Unsupported decorator location: " + r);
|
|
696
|
-
};
|
|
697
|
-
function G(t) {
|
|
698
|
-
return (u, e) => typeof e == "object" ? ye(t, u, e) : ((r, s, D) => {
|
|
699
|
-
const i = s.hasOwnProperty(D);
|
|
700
|
-
return s.constructor.createProperty(D, i ? { ...r, wrapped: !0 } : r), i ? Object.getOwnPropertyDescriptor(s, D) : void 0;
|
|
701
|
-
})(t, u, e);
|
|
702
|
-
}
|
|
703
|
-
const ge = (t, u, e) => {
|
|
671
|
+
const ye = (t, u, e) => {
|
|
704
672
|
if (!u)
|
|
705
673
|
return;
|
|
706
674
|
const r = Array.isArray(u) ? u : u.match(/([^[.\]])+/g), s = r == null ? void 0 : r.reduce(
|
|
@@ -709,7 +677,7 @@ const ge = (t, u, e) => {
|
|
|
709
677
|
);
|
|
710
678
|
return s === void 0 ? e : s;
|
|
711
679
|
};
|
|
712
|
-
function
|
|
680
|
+
function ge(t) {
|
|
713
681
|
if (!t)
|
|
714
682
|
return !1;
|
|
715
683
|
const u = t.constructor && t.constructor.toString().substring(0, 5) === "class";
|
|
@@ -718,7 +686,7 @@ function $e(t) {
|
|
|
718
686
|
const e = t.prototype.constructor && t.prototype.constructor.toString && t.prototype.constructor.toString().substring(0, 5) === "class";
|
|
719
687
|
return u || e;
|
|
720
688
|
}
|
|
721
|
-
const
|
|
689
|
+
const $e = () => {
|
|
722
690
|
const t = "[object Number]", e = Object.prototype.toString;
|
|
723
691
|
function r(D) {
|
|
724
692
|
return !!D && typeof D == "object";
|
|
@@ -726,13 +694,13 @@ const be = () => {
|
|
|
726
694
|
return function(i) {
|
|
727
695
|
return typeof i == "number" || r(i) && e.call(i) == t;
|
|
728
696
|
};
|
|
729
|
-
},
|
|
697
|
+
}, be = $e(), _e = (t, u, e) => {
|
|
730
698
|
const r = Array.isArray(u) ? u : u.match(/([^[.\]])+/g);
|
|
731
699
|
r == null || r.reduce((s, D, i) => (s[D] === void 0 && (s[D] = {}), i === r.length - 1 && (s[D] = e), s[D]), t);
|
|
732
700
|
}, Zu = "data-three-uuid", lu = (t, u, e) => {
|
|
733
701
|
var D, i;
|
|
734
|
-
const r =
|
|
735
|
-
if (
|
|
702
|
+
const r = ye(t, u);
|
|
703
|
+
if (be(e) && (r != null && r.setScalar))
|
|
736
704
|
r.setScalar(+e);
|
|
737
705
|
else if (r != null && r.set)
|
|
738
706
|
if (typeof e == "string") {
|
|
@@ -750,7 +718,7 @@ const be = () => {
|
|
|
750
718
|
r.set(...o);
|
|
751
719
|
}
|
|
752
720
|
else
|
|
753
|
-
|
|
721
|
+
_e(t, u, e);
|
|
754
722
|
const s = t;
|
|
755
723
|
typeof s.type == "string" && ((i = s.type) != null && i.toLowerCase().endsWith("material")) && (s.needsUpdate = !0);
|
|
756
724
|
}, Cu = {
|
|
@@ -772,150 +740,14 @@ const be = () => {
|
|
|
772
740
|
}
|
|
773
741
|
}, tu = (t, u) => {
|
|
774
742
|
var r;
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
return
|
|
781
|
-
};
|
|
782
|
-
const Ku = "raycast", Ru = [
|
|
783
|
-
Ku,
|
|
784
|
-
"args",
|
|
785
|
-
"data"
|
|
786
|
-
], Lu = (t) => t.split("-"), Xu = (t) => {
|
|
787
|
-
const u = typeof t == "string" ? b[t] : t;
|
|
788
|
-
if (!$e(u))
|
|
789
|
-
return null;
|
|
790
|
-
const e = t.toString().toLowerCase().endsWith("loader");
|
|
791
|
-
class r extends H {
|
|
792
|
-
constructor() {
|
|
793
|
-
super(...arguments), this.args = [], this.instance = null, this.dispose = [], this.mutationObserver = null;
|
|
794
|
-
}
|
|
795
|
-
observeAttributes() {
|
|
796
|
-
this.mutationObserver = new MutationObserver((i) => {
|
|
797
|
-
i.forEach((o) => {
|
|
798
|
-
if (!o.attributeName)
|
|
799
|
-
return;
|
|
800
|
-
const a = this.attributes.getNamedItem(o.attributeName);
|
|
801
|
-
a && this.updateProperty(a);
|
|
802
|
-
});
|
|
803
|
-
}), this.mutationObserver.observe(this, {
|
|
804
|
-
attributes: !0
|
|
805
|
-
});
|
|
806
|
-
}
|
|
807
|
-
createUnderlyingThreeObject() {
|
|
808
|
-
this.instance = new u(...this.args.map((i) => tu(i, this)));
|
|
809
|
-
}
|
|
810
|
-
refreshAttributes() {
|
|
811
|
-
this.getAttributeNames().forEach((i) => {
|
|
812
|
-
const o = this.attributes.getNamedItem(i);
|
|
813
|
-
o && this.updateProperty(o);
|
|
814
|
-
}), Array.from(this.attributes).forEach(this.updateProperty.bind(this));
|
|
815
|
-
}
|
|
816
|
-
onUnderlyingThreeObjectReady() {
|
|
817
|
-
var a, A;
|
|
818
|
-
const i = this.instance;
|
|
819
|
-
i.uuid && this.setAttribute(Zu, i.uuid);
|
|
820
|
-
const o = this.parentElement;
|
|
821
|
-
if (o.instance) {
|
|
822
|
-
const F = this.instance, E = this.instance, p = o.instance, g = o.instance, U = this.instance;
|
|
823
|
-
if ((a = F.type) != null && a.toLowerCase().includes("geometry") && p.geometry)
|
|
824
|
-
p.geometry = F;
|
|
825
|
-
else if ((A = E.type) != null && A.toLowerCase().includes("material") && p.material)
|
|
826
|
-
p.material = E;
|
|
827
|
-
else if (g.add)
|
|
828
|
-
try {
|
|
829
|
-
g.add(U);
|
|
830
|
-
} catch {
|
|
831
|
-
throw new Error(`Error adding ${this.tagName} to ${g}`);
|
|
832
|
-
}
|
|
833
|
-
const bu = this.getAttribute("attach");
|
|
834
|
-
bu && this.executeAttach(bu, this.instance);
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
connectedCallback() {
|
|
838
|
-
super.connectedCallback(), this.observeAttributes.call(this), this.createUnderlyingThreeObject.call(this), this.refreshAttributes.call(this), this.dispatchEvent(new CustomEvent("instancecreated", {
|
|
839
|
-
detail: {
|
|
840
|
-
instance: this.instance
|
|
841
|
-
}
|
|
842
|
-
})), this.onUnderlyingThreeObjectReady.call(this);
|
|
843
|
-
}
|
|
844
|
-
/** Update an instance's property. When creating a `<mesh position-y="0.5">`, for example, this sets `mesh.position.y = 0.5`. */
|
|
845
|
-
updateProperty(i) {
|
|
846
|
-
const { name: o, value: a } = i;
|
|
847
|
-
let A = o;
|
|
848
|
-
Object.keys(this.instance ?? {}).forEach((p) => {
|
|
849
|
-
p.toLowerCase() === A && (A = p);
|
|
850
|
-
});
|
|
851
|
-
const F = Lu(A);
|
|
852
|
-
if (Ru.includes(A) || Ru.includes(F[0]))
|
|
853
|
-
return;
|
|
854
|
-
let E = tu(a, this);
|
|
855
|
-
try {
|
|
856
|
-
E = JSON.parse(a === "" ? "true" : a);
|
|
857
|
-
} catch {
|
|
858
|
-
}
|
|
859
|
-
this.instance && lu(this.instance, F, E);
|
|
860
|
-
}
|
|
861
|
-
executeAttach(i, o) {
|
|
862
|
-
const a = this.parentElement;
|
|
863
|
-
a.instance && lu(a.instance, Lu(i), o);
|
|
864
|
-
}
|
|
865
|
-
disconnectedCallback() {
|
|
866
|
-
super.disconnectedCallback();
|
|
867
|
-
const i = [this.instance];
|
|
868
|
-
this.disposeThreeObjects.call(this, i);
|
|
869
|
-
}
|
|
870
|
-
disposeThreeObjects(i) {
|
|
871
|
-
i.forEach((o) => {
|
|
872
|
-
var F, E;
|
|
873
|
-
if (!o)
|
|
874
|
-
return;
|
|
875
|
-
const a = o, A = o;
|
|
876
|
-
(F = a.dispose) == null || F.call(a), (E = A.removeFromParent) == null || E.call(A);
|
|
877
|
-
});
|
|
878
|
-
}
|
|
879
|
-
/** Render */
|
|
880
|
-
render() {
|
|
881
|
-
return qu`<slot></slot>`;
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
Se([
|
|
885
|
-
G({ type: Array })
|
|
886
|
-
], r.prototype, "args");
|
|
887
|
-
class s extends r {
|
|
888
|
-
constructor() {
|
|
889
|
-
super(...arguments), this.loader = null;
|
|
890
|
-
}
|
|
891
|
-
createUnderlyingThreeObject() {
|
|
892
|
-
this.loader = new u(...this.args.map((i) => tu(i, this)));
|
|
893
|
-
}
|
|
894
|
-
onUnderlyingThreeObjectReady() {
|
|
895
|
-
const i = this.getAttribute("src");
|
|
896
|
-
if (!i)
|
|
897
|
-
throw new Error("Loader requires a source.");
|
|
898
|
-
if (!this.loader)
|
|
899
|
-
throw new Error(`Missing loader ${this.tagName}`);
|
|
900
|
-
this.loader.load(i, (o) => {
|
|
901
|
-
this.instance = o;
|
|
902
|
-
const a = this.getAttribute("attach");
|
|
903
|
-
a && this.executeAttach(a, o), this.refreshAttributes.call(this), this.dispatchEvent(new CustomEvent("loaded", {
|
|
904
|
-
detail: {
|
|
905
|
-
instance: o
|
|
906
|
-
}
|
|
907
|
-
}));
|
|
908
|
-
}, void 0, (o) => {
|
|
909
|
-
throw new Error(`error loading: ${i}` + o);
|
|
910
|
-
});
|
|
911
|
-
}
|
|
912
|
-
disconnectedCallback() {
|
|
913
|
-
super.disconnectedCallback(), this.disposeThreeObjects.call(this, [this.loader]);
|
|
914
|
-
}
|
|
915
|
-
}
|
|
916
|
-
return e ? s : r;
|
|
743
|
+
if (typeof t != "string")
|
|
744
|
+
return t;
|
|
745
|
+
if (t === "")
|
|
746
|
+
return !0;
|
|
747
|
+
const e = (r = Cu[t]) == null ? void 0 : r.call(Cu, u);
|
|
748
|
+
return CSS.supports("color", t) ? new b.Color(t) : e ?? t;
|
|
917
749
|
};
|
|
918
|
-
function
|
|
750
|
+
function ve(t) {
|
|
919
751
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
920
752
|
}
|
|
921
753
|
var ou = {};
|
|
@@ -923,7 +755,7 @@ ou.Space_Separator = /[\u1680\u2000-\u200A\u202F\u205F\u3000]/;
|
|
|
923
755
|
ou.ID_Start = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;
|
|
924
756
|
ou.ID_Continue = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/;
|
|
925
757
|
const Eu = ou;
|
|
926
|
-
var
|
|
758
|
+
var we = {
|
|
927
759
|
isSpaceSeparator(t) {
|
|
928
760
|
return typeof t == "string" && Eu.Space_Separator.test(t);
|
|
929
761
|
},
|
|
@@ -940,14 +772,14 @@ var xe = {
|
|
|
940
772
|
return typeof t == "string" && /[0-9A-Fa-f]/.test(t);
|
|
941
773
|
}
|
|
942
774
|
};
|
|
943
|
-
const f =
|
|
944
|
-
let du, y, v, iu, x, $, B, gu,
|
|
945
|
-
var
|
|
946
|
-
du = String(u), y = "start", v = [], iu = 0, x = 1, $ = 0, B = void 0, gu = void 0,
|
|
775
|
+
const f = we;
|
|
776
|
+
let du, y, v, iu, x, $, B, gu, q;
|
|
777
|
+
var Se = function(u, e) {
|
|
778
|
+
du = String(u), y = "start", v = [], iu = 0, x = 1, $ = 0, B = void 0, gu = void 0, q = void 0;
|
|
947
779
|
do
|
|
948
|
-
B =
|
|
780
|
+
B = Pe(), Ne[y]();
|
|
949
781
|
while (B.type !== "eof");
|
|
950
|
-
return typeof e == "function" ? pu({ "":
|
|
782
|
+
return typeof e == "function" ? pu({ "": q }, "", e) : q;
|
|
951
783
|
};
|
|
952
784
|
function pu(t, u, e) {
|
|
953
785
|
const r = t[u];
|
|
@@ -974,11 +806,11 @@ function pu(t, u, e) {
|
|
|
974
806
|
}
|
|
975
807
|
return e.call(t, u, r);
|
|
976
808
|
}
|
|
977
|
-
let h, c,
|
|
978
|
-
function
|
|
979
|
-
for (h = "default", c = "",
|
|
809
|
+
let h, c, z, _, C;
|
|
810
|
+
function Pe() {
|
|
811
|
+
for (h = "default", c = "", z = !1, _ = 1; ; ) {
|
|
980
812
|
C = w();
|
|
981
|
-
const t =
|
|
813
|
+
const t = Ku[h]();
|
|
982
814
|
if (t)
|
|
983
815
|
return t;
|
|
984
816
|
}
|
|
@@ -992,7 +824,7 @@ function n() {
|
|
|
992
824
|
return t === `
|
|
993
825
|
` ? (x++, $ = 0) : t ? $ += t.length : $++, t && (iu += t.length), t;
|
|
994
826
|
}
|
|
995
|
-
const
|
|
827
|
+
const Ku = {
|
|
996
828
|
default() {
|
|
997
829
|
switch (C) {
|
|
998
830
|
case " ":
|
|
@@ -1018,7 +850,7 @@ const Yu = {
|
|
|
1018
850
|
n();
|
|
1019
851
|
return;
|
|
1020
852
|
}
|
|
1021
|
-
return
|
|
853
|
+
return Ku[y]();
|
|
1022
854
|
},
|
|
1023
855
|
comment() {
|
|
1024
856
|
switch (C) {
|
|
@@ -1106,7 +938,7 @@ const Yu = {
|
|
|
1106
938
|
return n(), M("aN"), l("numeric", NaN);
|
|
1107
939
|
case '"':
|
|
1108
940
|
case "'":
|
|
1109
|
-
|
|
941
|
+
z = n() === '"', c = "", h = "string";
|
|
1110
942
|
return;
|
|
1111
943
|
}
|
|
1112
944
|
throw d(n());
|
|
@@ -1122,7 +954,7 @@ const Yu = {
|
|
|
1122
954
|
break;
|
|
1123
955
|
default:
|
|
1124
956
|
if (!f.isIdStartChar(t))
|
|
1125
|
-
throw
|
|
957
|
+
throw Ru();
|
|
1126
958
|
break;
|
|
1127
959
|
}
|
|
1128
960
|
c += t, h = "identifierName";
|
|
@@ -1158,7 +990,7 @@ const Yu = {
|
|
|
1158
990
|
break;
|
|
1159
991
|
default:
|
|
1160
992
|
if (!f.isIdContinueChar(t))
|
|
1161
|
-
throw
|
|
993
|
+
throw Ru();
|
|
1162
994
|
break;
|
|
1163
995
|
}
|
|
1164
996
|
c += t, h = "identifierName";
|
|
@@ -1298,15 +1130,15 @@ const Yu = {
|
|
|
1298
1130
|
string() {
|
|
1299
1131
|
switch (C) {
|
|
1300
1132
|
case "\\":
|
|
1301
|
-
n(), c +=
|
|
1133
|
+
n(), c += xe();
|
|
1302
1134
|
return;
|
|
1303
1135
|
case '"':
|
|
1304
|
-
if (
|
|
1136
|
+
if (z)
|
|
1305
1137
|
return n(), l("string", c);
|
|
1306
1138
|
c += n();
|
|
1307
1139
|
return;
|
|
1308
1140
|
case "'":
|
|
1309
|
-
if (!
|
|
1141
|
+
if (!z)
|
|
1310
1142
|
return n(), l("string", c);
|
|
1311
1143
|
c += n();
|
|
1312
1144
|
return;
|
|
@@ -1316,7 +1148,7 @@ const Yu = {
|
|
|
1316
1148
|
throw d(n());
|
|
1317
1149
|
case "\u2028":
|
|
1318
1150
|
case "\u2029":
|
|
1319
|
-
|
|
1151
|
+
Me(C);
|
|
1320
1152
|
break;
|
|
1321
1153
|
case void 0:
|
|
1322
1154
|
throw d(n());
|
|
@@ -1344,7 +1176,7 @@ const Yu = {
|
|
|
1344
1176
|
return l("punctuator", n());
|
|
1345
1177
|
case '"':
|
|
1346
1178
|
case "'":
|
|
1347
|
-
|
|
1179
|
+
z = n() === '"', h = "string";
|
|
1348
1180
|
return;
|
|
1349
1181
|
}
|
|
1350
1182
|
if (f.isIdStartChar(C)) {
|
|
@@ -1401,7 +1233,7 @@ function M(t) {
|
|
|
1401
1233
|
n();
|
|
1402
1234
|
}
|
|
1403
1235
|
}
|
|
1404
|
-
function
|
|
1236
|
+
function xe() {
|
|
1405
1237
|
switch (w()) {
|
|
1406
1238
|
case "b":
|
|
1407
1239
|
return n(), "\b";
|
|
@@ -1421,7 +1253,7 @@ function Me() {
|
|
|
1421
1253
|
throw d(n());
|
|
1422
1254
|
return "\0";
|
|
1423
1255
|
case "x":
|
|
1424
|
-
return n(),
|
|
1256
|
+
return n(), Te();
|
|
1425
1257
|
case "u":
|
|
1426
1258
|
return n(), fu();
|
|
1427
1259
|
case `
|
|
@@ -1447,7 +1279,7 @@ function Me() {
|
|
|
1447
1279
|
}
|
|
1448
1280
|
return n();
|
|
1449
1281
|
}
|
|
1450
|
-
function
|
|
1282
|
+
function Te() {
|
|
1451
1283
|
let t = "", u = w();
|
|
1452
1284
|
if (!f.isHexDigit(u) || (t += n(), u = w(), !f.isHexDigit(u)))
|
|
1453
1285
|
throw d(n());
|
|
@@ -1463,7 +1295,7 @@ function fu() {
|
|
|
1463
1295
|
}
|
|
1464
1296
|
return String.fromCodePoint(parseInt(t, 16));
|
|
1465
1297
|
}
|
|
1466
|
-
const
|
|
1298
|
+
const Ne = {
|
|
1467
1299
|
start() {
|
|
1468
1300
|
if (B.type === "eof")
|
|
1469
1301
|
throw O();
|
|
@@ -1546,8 +1378,8 @@ function Fu() {
|
|
|
1546
1378
|
t = B.value;
|
|
1547
1379
|
break;
|
|
1548
1380
|
}
|
|
1549
|
-
if (
|
|
1550
|
-
|
|
1381
|
+
if (q === void 0)
|
|
1382
|
+
q = t;
|
|
1551
1383
|
else {
|
|
1552
1384
|
const u = v[v.length - 1];
|
|
1553
1385
|
Array.isArray(u) ? u.push(t) : Object.defineProperty(u, gu, {
|
|
@@ -1570,18 +1402,18 @@ function uu() {
|
|
|
1570
1402
|
t == null ? y = "end" : Array.isArray(t) ? y = "afterArrayValue" : y = "afterPropertyValue";
|
|
1571
1403
|
}
|
|
1572
1404
|
function d(t) {
|
|
1573
|
-
return Du(t === void 0 ? `JSON5: invalid end of input at ${x}:${$}` : `JSON5: invalid character '${
|
|
1405
|
+
return Du(t === void 0 ? `JSON5: invalid end of input at ${x}:${$}` : `JSON5: invalid character '${Xu(t)}' at ${x}:${$}`);
|
|
1574
1406
|
}
|
|
1575
1407
|
function O() {
|
|
1576
1408
|
return Du(`JSON5: invalid end of input at ${x}:${$}`);
|
|
1577
1409
|
}
|
|
1578
|
-
function
|
|
1410
|
+
function Ru() {
|
|
1579
1411
|
return $ -= 5, Du(`JSON5: invalid identifier character at ${x}:${$}`);
|
|
1580
1412
|
}
|
|
1581
|
-
function
|
|
1582
|
-
console.warn(`JSON5: '${
|
|
1413
|
+
function Me(t) {
|
|
1414
|
+
console.warn(`JSON5: '${Xu(t)}' in strings is not valid ECMAScript; consider escaping`);
|
|
1583
1415
|
}
|
|
1584
|
-
function
|
|
1416
|
+
function Xu(t) {
|
|
1585
1417
|
const u = {
|
|
1586
1418
|
"'": "\\'",
|
|
1587
1419
|
'"': '\\"',
|
|
@@ -1608,13 +1440,181 @@ function Du(t) {
|
|
|
1608
1440
|
const u = new SyntaxError(t);
|
|
1609
1441
|
return u.lineNumber = x, u.columnNumber = $, u;
|
|
1610
1442
|
}
|
|
1611
|
-
const
|
|
1612
|
-
|
|
1443
|
+
const Yu = /* @__PURE__ */ ve(Se), Qu = "raycast", Lu = [
|
|
1444
|
+
Qu,
|
|
1445
|
+
"args",
|
|
1446
|
+
"data"
|
|
1447
|
+
], Uu = (t) => t.split("-"), ue = (t) => {
|
|
1448
|
+
const u = typeof t == "string" ? b[t] : t;
|
|
1449
|
+
if (!ge(u))
|
|
1450
|
+
return null;
|
|
1451
|
+
const e = t.toString().toLowerCase().endsWith("loader");
|
|
1452
|
+
class r extends H {
|
|
1453
|
+
constructor() {
|
|
1454
|
+
super(...arguments), this.instance = null, this.dispose = [], this.mutationObserver = null;
|
|
1455
|
+
}
|
|
1456
|
+
observeAttributes() {
|
|
1457
|
+
this.mutationObserver = new MutationObserver((i) => {
|
|
1458
|
+
i.forEach((o) => {
|
|
1459
|
+
if (!o.attributeName)
|
|
1460
|
+
return;
|
|
1461
|
+
const a = this.attributes.getNamedItem(o.attributeName);
|
|
1462
|
+
a && this.updateProperty(a);
|
|
1463
|
+
});
|
|
1464
|
+
}), this.mutationObserver.observe(this, {
|
|
1465
|
+
attributes: !0
|
|
1466
|
+
});
|
|
1467
|
+
}
|
|
1468
|
+
parsedArgs() {
|
|
1469
|
+
const i = this.args ?? this.getAttribute("args") ?? [];
|
|
1470
|
+
return typeof i == "string" ? Yu(i) : i;
|
|
1471
|
+
}
|
|
1472
|
+
createUnderlyingThreeObject() {
|
|
1473
|
+
this.instance = new u(...this.parsedArgs().map((i) => tu(i, this)));
|
|
1474
|
+
}
|
|
1475
|
+
refreshAttributes() {
|
|
1476
|
+
this.getAttributeNames().forEach((i) => {
|
|
1477
|
+
const o = this.attributes.getNamedItem(i);
|
|
1478
|
+
o && this.updateProperty(o);
|
|
1479
|
+
}), Array.from(this.attributes).forEach(this.updateProperty.bind(this));
|
|
1480
|
+
}
|
|
1481
|
+
onUnderlyingThreeObjectReady() {
|
|
1482
|
+
var a, A;
|
|
1483
|
+
const i = this.instance;
|
|
1484
|
+
i.uuid && this.setAttribute(Zu, i.uuid);
|
|
1485
|
+
const o = this.parentElement;
|
|
1486
|
+
if (o.instance) {
|
|
1487
|
+
const F = this.instance, E = this.instance, p = o.instance, g = o.instance, U = this.instance;
|
|
1488
|
+
if ((a = F.type) != null && a.toLowerCase().includes("geometry") && p.geometry)
|
|
1489
|
+
p.geometry = F;
|
|
1490
|
+
else if ((A = E.type) != null && A.toLowerCase().includes("material") && p.material)
|
|
1491
|
+
p.material = E;
|
|
1492
|
+
else if (g.add)
|
|
1493
|
+
try {
|
|
1494
|
+
g.add(U);
|
|
1495
|
+
} catch {
|
|
1496
|
+
throw new Error(`Error adding ${this.tagName} to ${g}`);
|
|
1497
|
+
}
|
|
1498
|
+
const bu = this.getAttribute("attach");
|
|
1499
|
+
bu && this.executeAttach(bu, this.instance);
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1502
|
+
connectedCallback() {
|
|
1503
|
+
super.connectedCallback(), this.observeAttributes.call(this), this.createUnderlyingThreeObject.call(this), this.refreshAttributes.call(this), this.dispatchEvent(new CustomEvent("instancecreated", {
|
|
1504
|
+
detail: {
|
|
1505
|
+
instance: this.instance
|
|
1506
|
+
}
|
|
1507
|
+
})), this.onUnderlyingThreeObjectReady.call(this);
|
|
1508
|
+
}
|
|
1509
|
+
/** Update an instance's property. When creating a `<mesh position-y="0.5">`, for example, this sets `mesh.position.y = 0.5`. */
|
|
1510
|
+
updateProperty(i) {
|
|
1511
|
+
const { name: o, value: a } = i;
|
|
1512
|
+
let A = o;
|
|
1513
|
+
Object.keys(this.instance ?? {}).forEach((p) => {
|
|
1514
|
+
p.toLowerCase() === A && (A = p);
|
|
1515
|
+
});
|
|
1516
|
+
const F = Uu(A);
|
|
1517
|
+
if (Lu.includes(A) || Lu.includes(F[0]))
|
|
1518
|
+
return;
|
|
1519
|
+
let E = tu(a, this);
|
|
1520
|
+
try {
|
|
1521
|
+
E = JSON.parse(a === "" ? "true" : a);
|
|
1522
|
+
} catch {
|
|
1523
|
+
}
|
|
1524
|
+
this.instance && lu(this.instance, F, E);
|
|
1525
|
+
}
|
|
1526
|
+
executeAttach(i, o) {
|
|
1527
|
+
const a = this.parentElement;
|
|
1528
|
+
a.instance && lu(a.instance, Uu(i), o);
|
|
1529
|
+
}
|
|
1530
|
+
disconnectedCallback() {
|
|
1531
|
+
super.disconnectedCallback();
|
|
1532
|
+
const i = [this.instance];
|
|
1533
|
+
this.disposeThreeObjects.call(this, i);
|
|
1534
|
+
}
|
|
1535
|
+
disposeThreeObjects(i) {
|
|
1536
|
+
i.forEach((o) => {
|
|
1537
|
+
var F, E;
|
|
1538
|
+
if (!o)
|
|
1539
|
+
return;
|
|
1540
|
+
const a = o, A = o;
|
|
1541
|
+
(F = a.dispose) == null || F.call(a), (E = A.removeFromParent) == null || E.call(A);
|
|
1542
|
+
});
|
|
1543
|
+
}
|
|
1544
|
+
/** Render */
|
|
1545
|
+
render() {
|
|
1546
|
+
return qu`<slot></slot>`;
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
class s extends r {
|
|
1550
|
+
constructor() {
|
|
1551
|
+
super(...arguments), this.loader = null;
|
|
1552
|
+
}
|
|
1553
|
+
createUnderlyingThreeObject() {
|
|
1554
|
+
this.loader = new u(...this.parsedArgs().map((i) => tu(i, this)));
|
|
1555
|
+
}
|
|
1556
|
+
onUnderlyingThreeObjectReady() {
|
|
1557
|
+
const i = this.getAttribute("src");
|
|
1558
|
+
if (!i)
|
|
1559
|
+
throw new Error("Loader requires a source.");
|
|
1560
|
+
if (!this.loader)
|
|
1561
|
+
throw new Error(`Missing loader ${this.tagName}`);
|
|
1562
|
+
this.loader.load(i, (o) => {
|
|
1563
|
+
this.instance = o;
|
|
1564
|
+
const a = this.getAttribute("attach");
|
|
1565
|
+
a && this.executeAttach(a, o), this.refreshAttributes.call(this), this.dispatchEvent(new CustomEvent("loaded", {
|
|
1566
|
+
detail: {
|
|
1567
|
+
instance: o
|
|
1568
|
+
}
|
|
1569
|
+
}));
|
|
1570
|
+
}, void 0, (o) => {
|
|
1571
|
+
throw new Error(`error loading: ${i}` + o);
|
|
1572
|
+
});
|
|
1573
|
+
}
|
|
1574
|
+
disconnectedCallback() {
|
|
1575
|
+
super.disconnectedCallback(), this.disposeThreeObjects.call(this, [this.loader]);
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
return e ? s : r;
|
|
1579
|
+
};
|
|
1580
|
+
/**
|
|
1581
|
+
* @license
|
|
1582
|
+
* Copyright 2017 Google LLC
|
|
1583
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1584
|
+
*/
|
|
1585
|
+
const Oe = { attribute: !0, type: String, converter: ru, reflect: !1, hasChanged: yu }, Re = (t = Oe, u, e) => {
|
|
1586
|
+
const { kind: r, metadata: s } = e;
|
|
1587
|
+
let D = globalThis.litPropertyMetadata.get(s);
|
|
1588
|
+
if (D === void 0 && globalThis.litPropertyMetadata.set(s, D = /* @__PURE__ */ new Map()), D.set(e.name, t), r === "accessor") {
|
|
1589
|
+
const { name: i } = e;
|
|
1590
|
+
return { set(o) {
|
|
1591
|
+
const a = u.get.call(this);
|
|
1592
|
+
u.set.call(this, o), this.requestUpdate(i, a, t);
|
|
1593
|
+
}, init(o) {
|
|
1594
|
+
return o !== void 0 && this.P(i, void 0, t), o;
|
|
1595
|
+
} };
|
|
1596
|
+
}
|
|
1597
|
+
if (r === "setter") {
|
|
1598
|
+
const { name: i } = e;
|
|
1599
|
+
return function(o) {
|
|
1600
|
+
const a = this[i];
|
|
1601
|
+
u.call(this, o), this.requestUpdate(i, a, t);
|
|
1602
|
+
};
|
|
1603
|
+
}
|
|
1604
|
+
throw Error("Unsupported decorator location: " + r);
|
|
1605
|
+
};
|
|
1606
|
+
function Y(t) {
|
|
1607
|
+
return (u, e) => typeof e == "object" ? Re(t, u, e) : ((r, s, D) => {
|
|
1608
|
+
const i = s.hasOwnProperty(D);
|
|
1609
|
+
return s.constructor.createProperty(D, i ? { ...r, wrapped: !0 } : r), i ? Object.getOwnPropertyDescriptor(s, D) : void 0;
|
|
1610
|
+
})(t, u, e);
|
|
1611
|
+
}
|
|
1612
|
+
var Le = Object.defineProperty, Q = (t, u, e, r) => {
|
|
1613
1613
|
for (var s = void 0, D = t.length - 1, i; D >= 0; D--)
|
|
1614
1614
|
(i = t[D]) && (s = i(u, e, s) || s);
|
|
1615
|
-
return s &&
|
|
1615
|
+
return s && Le(u, e, s), s;
|
|
1616
1616
|
};
|
|
1617
|
-
const
|
|
1617
|
+
const Ue = "orthographic", ku = 1 / 0, $u = class $u extends H {
|
|
1618
1618
|
constructor() {
|
|
1619
1619
|
super(), this.scratchV2 = new b.Vector2(), this.three = {
|
|
1620
1620
|
scene: new b.Scene(),
|
|
@@ -1640,10 +1640,10 @@ const He = "orthographic", ku = 1 / 0, $u = class $u extends H {
|
|
|
1640
1640
|
}
|
|
1641
1641
|
/** To run on start. */
|
|
1642
1642
|
connectedCallback() {
|
|
1643
|
-
super.connectedCallback(), this.dpr === ku && (this.dpr = window.devicePixelRatio), this.getAttribute(
|
|
1644
|
-
const e =
|
|
1645
|
-
Object.entries(
|
|
1646
|
-
this.three[u] && lu(this.three[u],
|
|
1643
|
+
super.connectedCallback(), this.dpr === ku && (this.dpr = window.devicePixelRatio), this.getAttribute(Ue) !== null ? this.three.camera = new b.OrthographicCamera() : this.three.camera = new b.PerspectiveCamera(75), ["scene", "camera", "renderer"].forEach((u) => {
|
|
1644
|
+
const e = this[u] ?? this.getAttribute(u) ?? {}, r = typeof e == "string" ? Yu(e) : e;
|
|
1645
|
+
Object.entries(r).forEach(([s, D]) => {
|
|
1646
|
+
this.three[u] && lu(this.three[u], s.split("-"), tu(D, this));
|
|
1647
1647
|
});
|
|
1648
1648
|
}), this.resizeObserver.observe(this), this.background !== null && (this.three.scene.background = new b.Color(this.background)), this.three.renderer.domElement.addEventListener("pointermove", this.onPointerMove.bind(this)), this.three.renderer.domElement.addEventListener("mousemove", this.onPointerMove.bind(this)), this.three.renderer.domElement.addEventListener("click", this.onClick.bind(this)), this.manualRender || this.updateLoop();
|
|
1649
1649
|
}
|
|
@@ -1659,7 +1659,7 @@ const He = "orthographic", ku = 1 / 0, $u = class $u extends H {
|
|
|
1659
1659
|
s || D.uuid === r.instance.uuid && (s = !0);
|
|
1660
1660
|
}), s)
|
|
1661
1661
|
return;
|
|
1662
|
-
this.three.scene.add(r.instance), e.getAttributeNames().includes(
|
|
1662
|
+
this.three.scene.add(r.instance), e.getAttributeNames().includes(Qu) && this.raycastPool.push(r.instance);
|
|
1663
1663
|
}
|
|
1664
1664
|
}), this.renderThree();
|
|
1665
1665
|
}
|
|
@@ -1681,7 +1681,7 @@ const He = "orthographic", ku = 1 / 0, $u = class $u extends H {
|
|
|
1681
1681
|
onPointerMove(u) {
|
|
1682
1682
|
this.runRaycast.bind(this)(u).forEach((r) => {
|
|
1683
1683
|
var s, D, i, o;
|
|
1684
|
-
u.type === "pointermove" ? ((s = r.element) == null || s.dispatchEvent(new PointerEvent("pointermove")), (D = r.element) == null || D.dispatchEvent(new CustomEvent(
|
|
1684
|
+
u.type === "pointermove" ? ((s = r.element) == null || s.dispatchEvent(new PointerEvent("pointermove")), (D = r.element) == null || D.dispatchEvent(new CustomEvent(ke, { detail: r }))) : u.type === "mousemove" && ((i = r.element) == null || i.dispatchEvent(new MouseEvent("mousemove")), (o = r.element) == null || o.dispatchEvent(new CustomEvent(He, { detail: r })));
|
|
1685
1685
|
});
|
|
1686
1686
|
}
|
|
1687
1687
|
// Click handling
|
|
@@ -1701,7 +1701,7 @@ const He = "orthographic", ku = 1 / 0, $u = class $u extends H {
|
|
|
1701
1701
|
});
|
|
1702
1702
|
e.forEach((r) => {
|
|
1703
1703
|
var s;
|
|
1704
|
-
(s = r.element) == null || s.dispatchEvent(new CustomEvent(
|
|
1704
|
+
(s = r.element) == null || s.dispatchEvent(new CustomEvent(Ie, { detail: r }));
|
|
1705
1705
|
});
|
|
1706
1706
|
}
|
|
1707
1707
|
updateLoop() {
|
|
@@ -1709,10 +1709,10 @@ const He = "orthographic", ku = 1 / 0, $u = class $u extends H {
|
|
|
1709
1709
|
}
|
|
1710
1710
|
/** Render the 3D scene. Optional scene/camera overrides; defaults to the internal scene and camera. */
|
|
1711
1711
|
renderThree(u, e) {
|
|
1712
|
-
this.dispatchBeforeRender && this.dispatchEvent(new CustomEvent(
|
|
1712
|
+
this.dispatchBeforeRender && this.dispatchEvent(new CustomEvent(je, {})), this.three.camera && (this.three.renderer.render(
|
|
1713
1713
|
u ?? this.three.scene,
|
|
1714
1714
|
e ?? this.three.camera
|
|
1715
|
-
), this.dispatchAfterRender && this.dispatchEvent(new CustomEvent(
|
|
1715
|
+
), this.dispatchAfterRender && this.dispatchEvent(new CustomEvent(Ge, {})));
|
|
1716
1716
|
}
|
|
1717
1717
|
render() {
|
|
1718
1718
|
return qu`
|
|
@@ -1721,7 +1721,7 @@ const He = "orthographic", ku = 1 / 0, $u = class $u extends H {
|
|
|
1721
1721
|
`;
|
|
1722
1722
|
}
|
|
1723
1723
|
};
|
|
1724
|
-
$u.styles =
|
|
1724
|
+
$u.styles = re`
|
|
1725
1725
|
:host {
|
|
1726
1726
|
width: 100%;
|
|
1727
1727
|
height: 100%;
|
|
@@ -1737,62 +1737,62 @@ $u.styles = te`
|
|
|
1737
1737
|
`;
|
|
1738
1738
|
let T = $u;
|
|
1739
1739
|
Q([
|
|
1740
|
-
|
|
1740
|
+
Y()
|
|
1741
1741
|
], T.prototype, "background");
|
|
1742
1742
|
Q([
|
|
1743
|
-
|
|
1743
|
+
Y()
|
|
1744
1744
|
], T.prototype, "dpr");
|
|
1745
1745
|
Q([
|
|
1746
|
-
|
|
1746
|
+
Y({
|
|
1747
1747
|
attribute: "manual-render",
|
|
1748
1748
|
type: Boolean
|
|
1749
1749
|
})
|
|
1750
1750
|
], T.prototype, "manualRender");
|
|
1751
1751
|
Q([
|
|
1752
|
-
|
|
1752
|
+
Y({
|
|
1753
1753
|
attribute: "dispatch-before-render",
|
|
1754
1754
|
type: Boolean
|
|
1755
1755
|
})
|
|
1756
1756
|
], T.prototype, "dispatchBeforeRender");
|
|
1757
1757
|
Q([
|
|
1758
|
-
|
|
1758
|
+
Y({
|
|
1759
1759
|
attribute: "dispatch-after-render",
|
|
1760
1760
|
type: Boolean
|
|
1761
1761
|
})
|
|
1762
1762
|
], T.prototype, "dispatchAfterRender");
|
|
1763
|
-
const
|
|
1763
|
+
const Ve = ({
|
|
1764
1764
|
prependList: t = []
|
|
1765
1765
|
} = {}) => {
|
|
1766
1766
|
customElements.get("three-lunchbox") || customElements.define("three-lunchbox", T), [...t, ...Iu].forEach((u) => {
|
|
1767
|
-
const e =
|
|
1767
|
+
const e = ee(u);
|
|
1768
1768
|
if (customElements.get(e))
|
|
1769
1769
|
return;
|
|
1770
|
-
const r =
|
|
1770
|
+
const r = ue(u);
|
|
1771
1771
|
r && customElements.define(e, r);
|
|
1772
1772
|
});
|
|
1773
|
-
},
|
|
1773
|
+
}, qe = (t, u, e = window) => {
|
|
1774
1774
|
if (e.customElements.get(t)) {
|
|
1775
1775
|
console.log(`${t} already registered as a custom element. Try a different name if registering is still required.`);
|
|
1776
1776
|
return;
|
|
1777
1777
|
}
|
|
1778
|
-
const r =
|
|
1778
|
+
const r = ue(u);
|
|
1779
1779
|
if (r)
|
|
1780
1780
|
e.customElements.define(t, r);
|
|
1781
1781
|
else
|
|
1782
1782
|
throw new Error(`Could not extend ${t}. The second paramater must be a class.`);
|
|
1783
|
-
},
|
|
1783
|
+
}, ke = "threepointermove", He = "threemousemove", Ie = "threeclick", je = "beforerender", Ge = "afterrender", ee = (t) => {
|
|
1784
1784
|
let u = t.split(/\.?(?=[A-Z])/).join("-").toLowerCase().replace(/-g-l-/, "-gl-");
|
|
1785
1785
|
return u.includes("-") || (u = `three-${u}`), u;
|
|
1786
|
-
},
|
|
1786
|
+
}, Je = Iu.map(ee);
|
|
1787
1787
|
export {
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1788
|
+
Ge as AFTER_RENDER_EVENT_NAME,
|
|
1789
|
+
je as BEFORE_RENDER_EVENT_NAME,
|
|
1790
|
+
Ie as THREE_CLICK_EVENT_NAME,
|
|
1791
|
+
He as THREE_MOUSE_MOVE_EVENT_NAME,
|
|
1792
|
+
ke as THREE_POINTER_MOVE_EVENT_NAME,
|
|
1793
1793
|
T as ThreeLunchbox,
|
|
1794
1794
|
Iu as autoComponents,
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1795
|
+
qe as extend,
|
|
1796
|
+
Ve as initLunchbox,
|
|
1797
|
+
Je as webComponentNames
|
|
1798
1798
|
};
|