lunchboxjs 2.1.3 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cypress/e2e/html-anchor.cy.d.ts +0 -0
- package/dist/lunchboxjs.cjs +17 -17
- package/dist/lunchboxjs.js +438 -383
- package/dist/lunchboxjs.umd.cjs +17 -17
- package/dist/src/html-anchor.d.ts +12 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/lunchboxjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
const
|
|
1
|
+
import * as b from "three";
|
|
2
|
+
const zu = [
|
|
3
3
|
// ORDER MATTERS HERE!
|
|
4
4
|
// Place the objects most likely to wrap other objects at the beginning of the list.
|
|
5
5
|
// Main wrappers
|
|
@@ -91,19 +91,19 @@ const Gu = [
|
|
|
91
91
|
* Copyright 2019 Google LLC
|
|
92
92
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
93
93
|
*/
|
|
94
|
-
const eu = globalThis,
|
|
95
|
-
let
|
|
94
|
+
const eu = globalThis, yu = eu.ShadowRoot && (eu.ShadyCSS === void 0 || eu.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, gu = Symbol(), Su = /* @__PURE__ */ new WeakMap();
|
|
95
|
+
let Vu = class {
|
|
96
96
|
constructor(u, e, r) {
|
|
97
|
-
if (this._$cssResult$ = !0, r !==
|
|
97
|
+
if (this._$cssResult$ = !0, r !== gu)
|
|
98
98
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
99
99
|
this.cssText = u, this.t = e;
|
|
100
100
|
}
|
|
101
101
|
get styleSheet() {
|
|
102
102
|
let u = this.o;
|
|
103
103
|
const e = this.t;
|
|
104
|
-
if (
|
|
104
|
+
if (yu && u === void 0) {
|
|
105
105
|
const r = e !== void 0 && e.length === 1;
|
|
106
|
-
r && (u =
|
|
106
|
+
r && (u = Su.get(e)), u === void 0 && ((this.o = u = new CSSStyleSheet()).replaceSync(this.cssText), r && Su.set(e, u));
|
|
107
107
|
}
|
|
108
108
|
return u;
|
|
109
109
|
}
|
|
@@ -111,24 +111,24 @@ let zu = class {
|
|
|
111
111
|
return this.cssText;
|
|
112
112
|
}
|
|
113
113
|
};
|
|
114
|
-
const se = (t) => new
|
|
115
|
-
const e = t.length === 1 ? t[0] : u.reduce((r, s,
|
|
114
|
+
const se = (t) => new Vu(typeof t == "string" ? t : t + "", void 0, gu), ie = (t, ...u) => {
|
|
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;
|
|
118
118
|
if (typeof i == "number")
|
|
119
119
|
return i;
|
|
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
|
-
})(s) + t[
|
|
122
|
-
return new
|
|
123
|
-
},
|
|
124
|
-
if (
|
|
121
|
+
})(s) + t[D + 1], t[0]);
|
|
122
|
+
return new Vu(e, t, gu);
|
|
123
|
+
}, ne = (t, u) => {
|
|
124
|
+
if (yu)
|
|
125
125
|
t.adoptedStyleSheets = u.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
126
126
|
else
|
|
127
127
|
for (const e of u) {
|
|
128
128
|
const r = document.createElement("style"), s = eu.litNonce;
|
|
129
129
|
s !== void 0 && r.setAttribute("nonce", s), r.textContent = e.cssText, t.appendChild(r);
|
|
130
130
|
}
|
|
131
|
-
},
|
|
131
|
+
}, xu = yu ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((u) => {
|
|
132
132
|
let e = "";
|
|
133
133
|
for (const r of u.cssRules)
|
|
134
134
|
e += r.cssText;
|
|
@@ -139,7 +139,7 @@ const se = (t) => new zu(typeof t == "string" ? t : t + "", void 0, yu), ie = (t
|
|
|
139
139
|
* Copyright 2017 Google LLC
|
|
140
140
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
141
141
|
*/
|
|
142
|
-
const { is:
|
|
142
|
+
const { is: De, defineProperty: oe, getOwnPropertyDescriptor: ae, getOwnPropertyNames: ce, getOwnPropertySymbols: he, getPrototypeOf: Ae } = Object, N = globalThis, Pu = N.trustedTypes, Ce = Pu ? Pu.emptyScript : "", cu = N.reactiveElementPolyfillSupport, q = (t, u) => t, ru = { toAttribute(t, u) {
|
|
143
143
|
switch (u) {
|
|
144
144
|
case Boolean:
|
|
145
145
|
t = t ? Ce : null;
|
|
@@ -167,23 +167,23 @@ const { is: ne, defineProperty: oe, getOwnPropertyDescriptor: ae, getOwnProperty
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
return e;
|
|
170
|
-
} },
|
|
170
|
+
} }, bu = (t, u) => !De(t, u), Nu = { attribute: !0, type: String, converter: ru, reflect: !1, hasChanged: bu };
|
|
171
171
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), N.litPropertyMetadata ?? (N.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
172
|
-
class
|
|
172
|
+
class j extends HTMLElement {
|
|
173
173
|
static addInitializer(u) {
|
|
174
174
|
this._$Ei(), (this.l ?? (this.l = [])).push(u);
|
|
175
175
|
}
|
|
176
176
|
static get observedAttributes() {
|
|
177
177
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
178
178
|
}
|
|
179
|
-
static createProperty(u, e =
|
|
179
|
+
static createProperty(u, e = Nu) {
|
|
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
182
|
s !== void 0 && oe(this.prototype, u, s);
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
static getPropertyDescriptor(u, e, r) {
|
|
186
|
-
const { get: s, set:
|
|
186
|
+
const { get: s, set: D } = ae(this.prototype, u) ?? { get() {
|
|
187
187
|
return this[e];
|
|
188
188
|
}, set(i) {
|
|
189
189
|
this[e] = i;
|
|
@@ -192,11 +192,11 @@ class I extends HTMLElement {
|
|
|
192
192
|
return s == null ? void 0 : s.call(this);
|
|
193
193
|
}, set(i) {
|
|
194
194
|
const o = s == null ? void 0 : s.call(this);
|
|
195
|
-
|
|
195
|
+
D.call(this, i), this.requestUpdate(u, o, r);
|
|
196
196
|
}, configurable: !0, enumerable: !0 };
|
|
197
197
|
}
|
|
198
198
|
static getPropertyOptions(u) {
|
|
199
|
-
return this.elementProperties.get(u) ??
|
|
199
|
+
return this.elementProperties.get(u) ?? Nu;
|
|
200
200
|
}
|
|
201
201
|
static _$Ei() {
|
|
202
202
|
if (this.hasOwnProperty(q("elementProperties")))
|
|
@@ -231,9 +231,9 @@ class I extends HTMLElement {
|
|
|
231
231
|
if (Array.isArray(u)) {
|
|
232
232
|
const r = new Set(u.flat(1 / 0).reverse());
|
|
233
233
|
for (const s of r)
|
|
234
|
-
e.unshift(
|
|
234
|
+
e.unshift(xu(s));
|
|
235
235
|
} else
|
|
236
|
-
u !== void 0 && e.push(
|
|
236
|
+
u !== void 0 && e.push(xu(u));
|
|
237
237
|
return e;
|
|
238
238
|
}
|
|
239
239
|
static _$Eu(u, e) {
|
|
@@ -263,7 +263,7 @@ class I extends HTMLElement {
|
|
|
263
263
|
}
|
|
264
264
|
createRenderRoot() {
|
|
265
265
|
const u = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
266
|
-
return
|
|
266
|
+
return ne(u, this.constructor.elementStyles), u;
|
|
267
267
|
}
|
|
268
268
|
connectedCallback() {
|
|
269
269
|
var u;
|
|
@@ -285,24 +285,24 @@ class I extends HTMLElement {
|
|
|
285
285
|
this._$AK(u, r);
|
|
286
286
|
}
|
|
287
287
|
_$EC(u, e) {
|
|
288
|
-
var
|
|
288
|
+
var D;
|
|
289
289
|
const r = this.constructor.elementProperties.get(u), s = this.constructor._$Eu(u, r);
|
|
290
290
|
if (s !== void 0 && r.reflect === !0) {
|
|
291
|
-
const i = (((
|
|
291
|
+
const i = (((D = r.converter) == null ? void 0 : D.toAttribute) !== void 0 ? r.converter : ru).toAttribute(e, r.type);
|
|
292
292
|
this._$Em = u, i == null ? this.removeAttribute(s) : this.setAttribute(s, i), this._$Em = null;
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
295
|
_$AK(u, e) {
|
|
296
|
-
var
|
|
296
|
+
var D;
|
|
297
297
|
const r = this.constructor, s = r._$Eh.get(u);
|
|
298
298
|
if (s !== void 0 && this._$Em !== s) {
|
|
299
|
-
const i = r.getPropertyOptions(s), o = typeof i.converter == "function" ? { fromAttribute: i.converter } : ((
|
|
299
|
+
const i = r.getPropertyOptions(s), o = typeof i.converter == "function" ? { fromAttribute: i.converter } : ((D = i.converter) == null ? void 0 : D.fromAttribute) !== void 0 ? i.converter : ru;
|
|
300
300
|
this._$Em = s, this[s] = o.fromAttribute(e, i.type), this._$Em = null;
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
303
|
requestUpdate(u, e, r) {
|
|
304
304
|
if (u !== void 0) {
|
|
305
|
-
if (r ?? (r = this.constructor.getPropertyOptions(u)), !(r.hasChanged ??
|
|
305
|
+
if (r ?? (r = this.constructor.getPropertyOptions(u)), !(r.hasChanged ?? bu)(this[u], e))
|
|
306
306
|
return;
|
|
307
307
|
this.P(u, e, r);
|
|
308
308
|
}
|
|
@@ -330,21 +330,21 @@ class I extends HTMLElement {
|
|
|
330
330
|
return;
|
|
331
331
|
if (!this.hasUpdated) {
|
|
332
332
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
333
|
-
for (const [
|
|
334
|
-
this[
|
|
333
|
+
for (const [D, i] of this._$Ep)
|
|
334
|
+
this[D] = i;
|
|
335
335
|
this._$Ep = void 0;
|
|
336
336
|
}
|
|
337
337
|
const s = this.constructor.elementProperties;
|
|
338
338
|
if (s.size > 0)
|
|
339
|
-
for (const [
|
|
340
|
-
i.wrapped !== !0 || this._$AL.has(
|
|
339
|
+
for (const [D, i] of s)
|
|
340
|
+
i.wrapped !== !0 || this._$AL.has(D) || this[D] === void 0 || this.P(D, this[D], i);
|
|
341
341
|
}
|
|
342
342
|
let u = !1;
|
|
343
343
|
const e = this._$AL;
|
|
344
344
|
try {
|
|
345
345
|
u = this.shouldUpdate(e), u ? (this.willUpdate(e), (r = this._$EO) == null || r.forEach((s) => {
|
|
346
|
-
var
|
|
347
|
-
return (
|
|
346
|
+
var D;
|
|
347
|
+
return (D = s.hostUpdate) == null ? void 0 : D.call(s);
|
|
348
348
|
}), this.update(e)) : this._$EU();
|
|
349
349
|
} catch (s) {
|
|
350
350
|
throw u = !1, this._$EU(), s;
|
|
@@ -380,39 +380,39 @@ class I extends HTMLElement {
|
|
|
380
380
|
firstUpdated(u) {
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
|
-
|
|
383
|
+
j.elementStyles = [], j.shadowRootOptions = { mode: "open" }, j[q("elementProperties")] = /* @__PURE__ */ new Map(), j[q("finalized")] = /* @__PURE__ */ new Map(), cu == null || cu({ ReactiveElement: j }), (N.reactiveElementVersions ?? (N.reactiveElementVersions = [])).push("2.0.4");
|
|
384
384
|
/**
|
|
385
385
|
* @license
|
|
386
386
|
* Copyright 2017 Google LLC
|
|
387
387
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
388
388
|
*/
|
|
389
|
-
const J = globalThis, su = J.trustedTypes,
|
|
390
|
-
\f\r]`,
|
|
391
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
389
|
+
const J = globalThis, su = J.trustedTypes, Tu = su ? su.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, Wu = "$lit$", P = `lit$${Math.random().toFixed(9).slice(2)}$`, qu = "?" + P, Ee = `<${qu}>`, I = document, K = () => I.createComment(""), X = (t) => t === null || typeof t != "object" && typeof t != "function", Ju = Array.isArray, le = (t) => Ju(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", hu = `[
|
|
390
|
+
\f\r]`, V = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ou = /-->/g, Mu = />/g, R = RegExp(`>|${hu}(?:([^\\s"'>=/]+)(${hu}*=${hu}*(?:[^
|
|
391
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ru = /'/g, Lu = /"/g, Zu = /^(?:script|style|textarea|title)$/i, Fe = (t) => (u, ...e) => ({ _$litType$: t, strings: u, values: e }), $u = Fe(1), G = Symbol.for("lit-noChange"), m = Symbol.for("lit-nothing"), Uu = /* @__PURE__ */ new WeakMap(), k = I.createTreeWalker(I, 129);
|
|
392
392
|
function Ku(t, u) {
|
|
393
393
|
if (!Array.isArray(t) || !t.hasOwnProperty("raw"))
|
|
394
394
|
throw Error("invalid template strings array");
|
|
395
|
-
return
|
|
395
|
+
return Tu !== void 0 ? Tu.createHTML(u) : u;
|
|
396
396
|
}
|
|
397
397
|
const de = (t, u) => {
|
|
398
398
|
const e = t.length - 1, r = [];
|
|
399
|
-
let s,
|
|
399
|
+
let s, D = u === 2 ? "<svg>" : "", i = V;
|
|
400
400
|
for (let o = 0; o < e; o++) {
|
|
401
401
|
const a = t[o];
|
|
402
|
-
let A,
|
|
403
|
-
for (;
|
|
404
|
-
|
|
405
|
-
const
|
|
406
|
-
|
|
402
|
+
let A, l, E = -1, B = 0;
|
|
403
|
+
for (; B < a.length && (i.lastIndex = B, l = i.exec(a), l !== null); )
|
|
404
|
+
B = i.lastIndex, i === V ? l[1] === "!--" ? i = Ou : l[1] !== void 0 ? i = Mu : l[2] !== void 0 ? (Zu.test(l[2]) && (s = RegExp("</" + l[2], "g")), i = R) : l[3] !== void 0 && (i = R) : i === R ? l[0] === ">" ? (i = s ?? V, E = -1) : l[1] === void 0 ? E = -2 : (E = i.lastIndex - l[2].length, A = l[1], i = l[3] === void 0 ? R : l[3] === '"' ? Lu : Ru) : i === Lu || i === Ru ? i = R : i === Ou || i === Mu ? i = V : (i = R, s = void 0);
|
|
405
|
+
const g = i === R && t[o + 1].startsWith("/>") ? " " : "";
|
|
406
|
+
D += i === V ? a + Ee : E >= 0 ? (r.push(A), a.slice(0, E) + Wu + a.slice(E) + P + g) : a + P + (E === -2 ? o : g);
|
|
407
407
|
}
|
|
408
|
-
return [Ku(t,
|
|
408
|
+
return [Ku(t, D + (t[e] || "<?>") + (u === 2 ? "</svg>" : "")), r];
|
|
409
409
|
};
|
|
410
410
|
class Y {
|
|
411
411
|
constructor({ strings: u, _$litType$: e }, r) {
|
|
412
412
|
let s;
|
|
413
413
|
this.parts = [];
|
|
414
|
-
let
|
|
415
|
-
const o = u.length - 1, a = this.parts, [A,
|
|
414
|
+
let D = 0, i = 0;
|
|
415
|
+
const o = u.length - 1, a = this.parts, [A, l] = de(u, e);
|
|
416
416
|
if (this.el = Y.createElement(A, r), k.currentNode = this.el.content, e === 2) {
|
|
417
417
|
const E = this.el.content.firstChild;
|
|
418
418
|
E.replaceWith(...E.childNodes);
|
|
@@ -422,32 +422,32 @@ class Y {
|
|
|
422
422
|
if (s.hasAttributes())
|
|
423
423
|
for (const E of s.getAttributeNames())
|
|
424
424
|
if (E.endsWith(Wu)) {
|
|
425
|
-
const
|
|
426
|
-
a.push({ type: 1, index:
|
|
425
|
+
const B = l[i++], g = s.getAttribute(E).split(P), v = /([.?@])?(.*)/.exec(B);
|
|
426
|
+
a.push({ type: 1, index: D, name: v[2], strings: g, ctor: v[1] === "." ? fe : v[1] === "?" ? me : v[1] === "@" ? Be : Du }), s.removeAttribute(E);
|
|
427
427
|
} else
|
|
428
|
-
E.startsWith(
|
|
429
|
-
if (
|
|
430
|
-
const E = s.textContent.split(
|
|
431
|
-
if (
|
|
428
|
+
E.startsWith(P) && (a.push({ type: 6, index: D }), s.removeAttribute(E));
|
|
429
|
+
if (Zu.test(s.tagName)) {
|
|
430
|
+
const E = s.textContent.split(P), B = E.length - 1;
|
|
431
|
+
if (B > 0) {
|
|
432
432
|
s.textContent = su ? su.emptyScript : "";
|
|
433
|
-
for (let
|
|
434
|
-
s.append(E[
|
|
435
|
-
s.append(E[
|
|
433
|
+
for (let g = 0; g < B; g++)
|
|
434
|
+
s.append(E[g], K()), k.nextNode(), a.push({ type: 2, index: ++D });
|
|
435
|
+
s.append(E[B], K());
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
438
|
} else if (s.nodeType === 8)
|
|
439
|
-
if (s.data ===
|
|
440
|
-
a.push({ type: 2, index:
|
|
439
|
+
if (s.data === qu)
|
|
440
|
+
a.push({ type: 2, index: D });
|
|
441
441
|
else {
|
|
442
442
|
let E = -1;
|
|
443
|
-
for (; (E = s.data.indexOf(
|
|
444
|
-
a.push({ type: 7, index:
|
|
443
|
+
for (; (E = s.data.indexOf(P, E + 1)) !== -1; )
|
|
444
|
+
a.push({ type: 7, index: D }), E += P.length - 1;
|
|
445
445
|
}
|
|
446
|
-
|
|
446
|
+
D++;
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
static createElement(u, e) {
|
|
450
|
-
const r =
|
|
450
|
+
const r = I.createElement("template");
|
|
451
451
|
return r.innerHTML = u, r;
|
|
452
452
|
}
|
|
453
453
|
}
|
|
@@ -456,8 +456,8 @@ function z(t, u, e = t, r) {
|
|
|
456
456
|
if (u === G)
|
|
457
457
|
return u;
|
|
458
458
|
let s = r !== void 0 ? (i = e._$Co) == null ? void 0 : i[r] : e._$Cl;
|
|
459
|
-
const
|
|
460
|
-
return (s == null ? void 0 : s.constructor) !==
|
|
459
|
+
const D = X(u) ? void 0 : u._$litDirective$;
|
|
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 = z(t, s._$AS(t, u.values), s, r)), u;
|
|
461
461
|
}
|
|
462
462
|
class pe {
|
|
463
463
|
constructor(u, e) {
|
|
@@ -470,17 +470,17 @@ class pe {
|
|
|
470
470
|
return this._$AM._$AU;
|
|
471
471
|
}
|
|
472
472
|
u(u) {
|
|
473
|
-
const { el: { content: e }, parts: r } = this._$AD, s = ((u == null ? void 0 : u.creationScope) ??
|
|
473
|
+
const { el: { content: e }, parts: r } = this._$AD, s = ((u == null ? void 0 : u.creationScope) ?? I).importNode(e, !0);
|
|
474
474
|
k.currentNode = s;
|
|
475
|
-
let
|
|
475
|
+
let D = k.nextNode(), i = 0, o = 0, a = r[0];
|
|
476
476
|
for (; a !== void 0; ) {
|
|
477
477
|
if (i === a.index) {
|
|
478
478
|
let A;
|
|
479
|
-
a.type === 2 ? A = new Q(
|
|
479
|
+
a.type === 2 ? A = new Q(D, D.nextSibling, this, u) : a.type === 1 ? A = new a.ctor(D, a.name, a.strings, this, u) : a.type === 6 && (A = new ye(D, this, u)), this._$AV.push(A), a = r[++o];
|
|
480
480
|
}
|
|
481
|
-
i !== (a == null ? void 0 : a.index) && (
|
|
481
|
+
i !== (a == null ? void 0 : a.index) && (D = k.nextNode(), i++);
|
|
482
482
|
}
|
|
483
|
-
return k.currentNode =
|
|
483
|
+
return k.currentNode = I, s;
|
|
484
484
|
}
|
|
485
485
|
p(u) {
|
|
486
486
|
let e = 0;
|
|
@@ -494,7 +494,7 @@ class Q {
|
|
|
494
494
|
return ((u = this._$AM) == null ? void 0 : u._$AU) ?? this._$Cv;
|
|
495
495
|
}
|
|
496
496
|
constructor(u, e, r, s) {
|
|
497
|
-
this.type = 2, this._$AH =
|
|
497
|
+
this.type = 2, this._$AH = m, this._$AN = void 0, this._$AA = u, this._$AB = e, this._$AM = r, this.options = s, this._$Cv = (s == null ? void 0 : s.isConnected) ?? !0;
|
|
498
498
|
}
|
|
499
499
|
get parentNode() {
|
|
500
500
|
let u = this._$AA.parentNode;
|
|
@@ -508,7 +508,7 @@ class Q {
|
|
|
508
508
|
return this._$AB;
|
|
509
509
|
}
|
|
510
510
|
_$AI(u, e = this) {
|
|
511
|
-
u = z(this, u, e), X(u) ? u ===
|
|
511
|
+
u = z(this, u, e), X(u) ? u === m || u == null || u === "" ? (this._$AH !== m && this._$AR(), this._$AH = m) : u !== this._$AH && u !== G && this._(u) : u._$litType$ !== void 0 ? this.$(u) : u.nodeType !== void 0 ? this.T(u) : le(u) ? this.k(u) : this._(u);
|
|
512
512
|
}
|
|
513
513
|
S(u) {
|
|
514
514
|
return this._$AA.parentNode.insertBefore(u, this._$AB);
|
|
@@ -517,12 +517,12 @@ class Q {
|
|
|
517
517
|
this._$AH !== u && (this._$AR(), this._$AH = this.S(u));
|
|
518
518
|
}
|
|
519
519
|
_(u) {
|
|
520
|
-
this._$AH !==
|
|
520
|
+
this._$AH !== m && X(this._$AH) ? this._$AA.nextSibling.data = u : this.T(I.createTextNode(u)), this._$AH = u;
|
|
521
521
|
}
|
|
522
522
|
$(u) {
|
|
523
|
-
var
|
|
523
|
+
var D;
|
|
524
524
|
const { values: e, _$litType$: r } = u, s = typeof r == "number" ? this._$AC(u) : (r.el === void 0 && (r.el = Y.createElement(Ku(r.h, r.h[0]), this.options)), r);
|
|
525
|
-
if (((
|
|
525
|
+
if (((D = this._$AH) == null ? void 0 : D._$AD) === s)
|
|
526
526
|
this._$AH.p(e);
|
|
527
527
|
else {
|
|
528
528
|
const i = new pe(s, this), o = i.u(this.options);
|
|
@@ -530,15 +530,15 @@ class Q {
|
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
532
|
_$AC(u) {
|
|
533
|
-
let e =
|
|
534
|
-
return e === void 0 &&
|
|
533
|
+
let e = Uu.get(u.strings);
|
|
534
|
+
return e === void 0 && Uu.set(u.strings, e = new Y(u)), e;
|
|
535
535
|
}
|
|
536
536
|
k(u) {
|
|
537
|
-
|
|
537
|
+
Ju(this._$AH) || (this._$AH = [], this._$AR());
|
|
538
538
|
const e = this._$AH;
|
|
539
539
|
let r, s = 0;
|
|
540
|
-
for (const
|
|
541
|
-
s === e.length ? e.push(r = new Q(this.S(K()), this.S(K()), this, this.options)) : r = e[s], r._$AI(
|
|
540
|
+
for (const D of u)
|
|
541
|
+
s === e.length ? e.push(r = new Q(this.S(K()), this.S(K()), 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) {
|
|
@@ -553,65 +553,65 @@ class Q {
|
|
|
553
553
|
this._$AM === void 0 && (this._$Cv = u, (e = this._$AP) == null || e.call(this, u));
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
class
|
|
556
|
+
class Du {
|
|
557
557
|
get tagName() {
|
|
558
558
|
return this.element.tagName;
|
|
559
559
|
}
|
|
560
560
|
get _$AU() {
|
|
561
561
|
return this._$AM._$AU;
|
|
562
562
|
}
|
|
563
|
-
constructor(u, e, r, s,
|
|
564
|
-
this.type = 1, this._$AH =
|
|
563
|
+
constructor(u, e, r, s, D) {
|
|
564
|
+
this.type = 1, this._$AH = m, this._$AN = void 0, this.element = u, this.name = e, this._$AM = s, this.options = D, r.length > 2 || r[0] !== "" || r[1] !== "" ? (this._$AH = Array(r.length - 1).fill(new String()), this.strings = r) : this._$AH = m;
|
|
565
565
|
}
|
|
566
566
|
_$AI(u, e = this, r, s) {
|
|
567
|
-
const
|
|
567
|
+
const D = this.strings;
|
|
568
568
|
let i = !1;
|
|
569
|
-
if (
|
|
569
|
+
if (D === void 0)
|
|
570
570
|
u = z(this, u, e, 0), i = !X(u) || u !== this._$AH && u !== G, i && (this._$AH = u);
|
|
571
571
|
else {
|
|
572
572
|
const o = u;
|
|
573
573
|
let a, A;
|
|
574
|
-
for (u =
|
|
575
|
-
A = z(this, o[r + a], e, a), A === G && (A = this._$AH[a]), i || (i = !X(A) || A !== this._$AH[a]), A ===
|
|
574
|
+
for (u = D[0], a = 0; a < D.length - 1; a++)
|
|
575
|
+
A = z(this, o[r + a], e, a), A === G && (A = this._$AH[a]), i || (i = !X(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
|
}
|
|
579
579
|
j(u) {
|
|
580
|
-
u ===
|
|
580
|
+
u === m ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, u ?? "");
|
|
581
581
|
}
|
|
582
582
|
}
|
|
583
|
-
class fe extends
|
|
583
|
+
class fe extends Du {
|
|
584
584
|
constructor() {
|
|
585
585
|
super(...arguments), this.type = 3;
|
|
586
586
|
}
|
|
587
587
|
j(u) {
|
|
588
|
-
this.element[this.name] = u ===
|
|
588
|
+
this.element[this.name] = u === m ? void 0 : u;
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
|
-
class
|
|
591
|
+
class me extends Du {
|
|
592
592
|
constructor() {
|
|
593
593
|
super(...arguments), this.type = 4;
|
|
594
594
|
}
|
|
595
595
|
j(u) {
|
|
596
|
-
this.element.toggleAttribute(this.name, !!u && u !==
|
|
596
|
+
this.element.toggleAttribute(this.name, !!u && u !== m);
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
class
|
|
600
|
-
constructor(u, e, r, s,
|
|
601
|
-
super(u, e, r, s,
|
|
599
|
+
class Be extends Du {
|
|
600
|
+
constructor(u, e, r, s, D) {
|
|
601
|
+
super(u, e, r, s, D), this.type = 5;
|
|
602
602
|
}
|
|
603
603
|
_$AI(u, e = this) {
|
|
604
|
-
if ((u = z(this, u, e, 0) ??
|
|
604
|
+
if ((u = z(this, u, e, 0) ?? m) === G)
|
|
605
605
|
return;
|
|
606
|
-
const r = this._$AH, s = u ===
|
|
607
|
-
s && this.element.removeEventListener(this.name, this, r),
|
|
606
|
+
const r = this._$AH, s = u === m && r !== m || u.capture !== r.capture || u.once !== r.once || u.passive !== r.passive, D = u !== m && (r === m || s);
|
|
607
|
+
s && this.element.removeEventListener(this.name, this, r), D && this.element.addEventListener(this.name, this, u), this._$AH = u;
|
|
608
608
|
}
|
|
609
609
|
handleEvent(u) {
|
|
610
610
|
var e;
|
|
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 ye {
|
|
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
|
}
|
|
@@ -624,12 +624,12 @@ class ge {
|
|
|
624
624
|
}
|
|
625
625
|
const Au = J.litHtmlPolyfillSupport;
|
|
626
626
|
Au == null || Au(Y, Q), (J.litHtmlVersions ?? (J.litHtmlVersions = [])).push("3.1.3");
|
|
627
|
-
const
|
|
627
|
+
const ge = (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
|
-
const
|
|
632
|
-
r._$litPart$ = s = new Q(u.insertBefore(K(),
|
|
631
|
+
const D = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
632
|
+
r._$litPart$ = s = new Q(u.insertBefore(K(), D), D, void 0, e ?? {});
|
|
633
633
|
}
|
|
634
634
|
return s._$AI(t), s;
|
|
635
635
|
};
|
|
@@ -638,7 +638,7 @@ const ye = (t, u, e) => {
|
|
|
638
638
|
* Copyright 2017 Google LLC
|
|
639
639
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
640
640
|
*/
|
|
641
|
-
class
|
|
641
|
+
class H extends j {
|
|
642
642
|
constructor() {
|
|
643
643
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
644
644
|
}
|
|
@@ -649,7 +649,7 @@ class j extends I {
|
|
|
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 = ge(e, this.renderRoot, this.renderOptions);
|
|
653
653
|
}
|
|
654
654
|
connectedCallback() {
|
|
655
655
|
var u;
|
|
@@ -663,21 +663,21 @@ class j extends I {
|
|
|
663
663
|
return G;
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
|
-
var
|
|
667
|
-
|
|
666
|
+
var Gu;
|
|
667
|
+
H._$litElement$ = !0, H.finalized = !0, (Gu = globalThis.litElementHydrateSupport) == null || Gu.call(globalThis, { LitElement: H });
|
|
668
668
|
const Cu = globalThis.litElementPolyfillSupport;
|
|
669
|
-
Cu == null || Cu({ LitElement:
|
|
669
|
+
Cu == null || Cu({ LitElement: H });
|
|
670
670
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.5");
|
|
671
|
-
const
|
|
671
|
+
const be = (t, u, e) => {
|
|
672
672
|
if (!u)
|
|
673
673
|
return;
|
|
674
674
|
const r = Array.isArray(u) ? u : u.match(/([^[.\]])+/g), s = r == null ? void 0 : r.reduce(
|
|
675
|
-
(
|
|
675
|
+
(D, i) => D && D[i],
|
|
676
676
|
t
|
|
677
677
|
);
|
|
678
678
|
return s === void 0 ? e : s;
|
|
679
679
|
};
|
|
680
|
-
function
|
|
680
|
+
function $e(t) {
|
|
681
681
|
if (!t)
|
|
682
682
|
return !1;
|
|
683
683
|
const u = t.constructor && t.constructor.toString().substring(0, 5) === "class";
|
|
@@ -688,24 +688,24 @@ function be(t) {
|
|
|
688
688
|
}
|
|
689
689
|
const _e = () => {
|
|
690
690
|
const t = "[object Number]", e = Object.prototype.toString;
|
|
691
|
-
function r(
|
|
692
|
-
return !!
|
|
691
|
+
function r(D) {
|
|
692
|
+
return !!D && typeof D == "object";
|
|
693
693
|
}
|
|
694
694
|
return function(i) {
|
|
695
695
|
return typeof i == "number" || r(i) && e.call(i) == t;
|
|
696
696
|
};
|
|
697
697
|
}, ve = _e(), we = (t, u, e) => {
|
|
698
698
|
const r = Array.isArray(u) ? u : u.match(/([^[.\]])+/g);
|
|
699
|
-
r == null || r.reduce((s,
|
|
699
|
+
r == null || r.reduce((s, D, i) => (s[D] === void 0 && (s[D] = {}), i === r.length - 1 && (s[D] = e), s[D]), t);
|
|
700
700
|
}, Xu = "data-three-uuid", du = (t, u, e) => {
|
|
701
|
-
var
|
|
702
|
-
const r =
|
|
701
|
+
var D, i;
|
|
702
|
+
const r = be(t, u);
|
|
703
703
|
if (ve(e) && (r != null && r.setScalar))
|
|
704
704
|
r.setScalar(+e);
|
|
705
705
|
else if (r != null && r.set)
|
|
706
706
|
if (typeof e == "string") {
|
|
707
707
|
const o = e.split(","), a = o.every((A) => !A.match(/^[^\d,]+$/));
|
|
708
|
-
if ((
|
|
708
|
+
if ((D = e.toLowerCase().trim().match(/^#[\dabcdef]{3,6}$/)) != null && D.length)
|
|
709
709
|
if (e.length === 4) {
|
|
710
710
|
const A = [e[1], e[1], e[2], e[2], e[3], e[3]].join("");
|
|
711
711
|
r.set(+`0x${A}`);
|
|
@@ -746,7 +746,7 @@ const _e = () => {
|
|
|
746
746
|
if (t === "")
|
|
747
747
|
return !0;
|
|
748
748
|
const e = (r = Eu[t]) == null ? void 0 : r.call(Eu, u);
|
|
749
|
-
return CSS.supports("color", t) ? new
|
|
749
|
+
return CSS.supports("color", t) ? new b.Color(t) : e ?? t;
|
|
750
750
|
};
|
|
751
751
|
function Se(t) {
|
|
752
752
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
@@ -755,16 +755,16 @@ var ou = {};
|
|
|
755
755
|
ou.Space_Separator = /[\u1680\u2000-\u200A\u202F\u205F\u3000]/;
|
|
756
756
|
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]/;
|
|
757
757
|
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]/;
|
|
758
|
-
const
|
|
759
|
-
var
|
|
758
|
+
const lu = ou;
|
|
759
|
+
var xe = {
|
|
760
760
|
isSpaceSeparator(t) {
|
|
761
|
-
return typeof t == "string" &&
|
|
761
|
+
return typeof t == "string" && lu.Space_Separator.test(t);
|
|
762
762
|
},
|
|
763
763
|
isIdStartChar(t) {
|
|
764
|
-
return typeof t == "string" && (t >= "a" && t <= "z" || t >= "A" && t <= "Z" || t === "$" || t === "_" ||
|
|
764
|
+
return typeof t == "string" && (t >= "a" && t <= "z" || t >= "A" && t <= "Z" || t === "$" || t === "_" || lu.ID_Start.test(t));
|
|
765
765
|
},
|
|
766
766
|
isIdContinueChar(t) {
|
|
767
|
-
return typeof t == "string" && (t >= "a" && t <= "z" || t >= "A" && t <= "Z" || t >= "0" && t <= "9" || t === "$" || t === "_" || t === "" || t === "" ||
|
|
767
|
+
return typeof t == "string" && (t >= "a" && t <= "z" || t >= "A" && t <= "Z" || t >= "0" && t <= "9" || t === "$" || t === "_" || t === "" || t === "" || lu.ID_Continue.test(t));
|
|
768
768
|
},
|
|
769
769
|
isDigit(t) {
|
|
770
770
|
return typeof t == "string" && /[0-9]/.test(t);
|
|
@@ -773,12 +773,12 @@ var Pe = {
|
|
|
773
773
|
return typeof t == "string" && /[0-9A-Fa-f]/.test(t);
|
|
774
774
|
}
|
|
775
775
|
};
|
|
776
|
-
const p =
|
|
777
|
-
let pu,
|
|
778
|
-
var
|
|
779
|
-
pu = String(u),
|
|
776
|
+
const p = xe;
|
|
777
|
+
let pu, y, S, iu, T, $, f, _u, Z;
|
|
778
|
+
var Pe = function(u, e) {
|
|
779
|
+
pu = String(u), y = "start", S = [], iu = 0, T = 1, $ = 0, f = void 0, _u = void 0, Z = void 0;
|
|
780
780
|
do
|
|
781
|
-
f = Ne(),
|
|
781
|
+
f = Ne(), Me[y]();
|
|
782
782
|
while (f.type !== "eof");
|
|
783
783
|
return typeof e == "function" ? fu({ "": Z }, "", e) : Z;
|
|
784
784
|
};
|
|
@@ -787,8 +787,8 @@ function fu(t, u, e) {
|
|
|
787
787
|
if (r != null && typeof r == "object")
|
|
788
788
|
if (Array.isArray(r))
|
|
789
789
|
for (let s = 0; s < r.length; s++) {
|
|
790
|
-
const
|
|
791
|
-
i === void 0 ? delete r[
|
|
790
|
+
const D = String(s), i = fu(r, D, e);
|
|
791
|
+
i === void 0 ? delete r[D] : Object.defineProperty(r, D, {
|
|
792
792
|
value: i,
|
|
793
793
|
writable: !0,
|
|
794
794
|
enumerable: !0,
|
|
@@ -797,9 +797,9 @@ function fu(t, u, e) {
|
|
|
797
797
|
}
|
|
798
798
|
else
|
|
799
799
|
for (const s in r) {
|
|
800
|
-
const
|
|
801
|
-
|
|
802
|
-
value:
|
|
800
|
+
const D = fu(r, s, e);
|
|
801
|
+
D === void 0 ? delete r[s] : Object.defineProperty(r, s, {
|
|
802
|
+
value: D,
|
|
803
803
|
writable: !0,
|
|
804
804
|
enumerable: !0,
|
|
805
805
|
configurable: !0
|
|
@@ -807,21 +807,21 @@ function fu(t, u, e) {
|
|
|
807
807
|
}
|
|
808
808
|
return e.call(t, u, r);
|
|
809
809
|
}
|
|
810
|
-
let h, c,
|
|
810
|
+
let h, c, W, w, C;
|
|
811
811
|
function Ne() {
|
|
812
|
-
for (h = "default", c = "",
|
|
813
|
-
C =
|
|
812
|
+
for (h = "default", c = "", W = !1, w = 1; ; ) {
|
|
813
|
+
C = x();
|
|
814
814
|
const t = Yu[h]();
|
|
815
815
|
if (t)
|
|
816
816
|
return t;
|
|
817
817
|
}
|
|
818
818
|
}
|
|
819
|
-
function
|
|
819
|
+
function x() {
|
|
820
820
|
if (pu[iu])
|
|
821
821
|
return String.fromCodePoint(pu.codePointAt(iu));
|
|
822
822
|
}
|
|
823
|
-
function
|
|
824
|
-
const t =
|
|
823
|
+
function n() {
|
|
824
|
+
const t = x();
|
|
825
825
|
return t === `
|
|
826
826
|
` ? (T++, $ = 0) : t ? $ += t.length : $++, t && (iu += t.length), t;
|
|
827
827
|
}
|
|
@@ -839,53 +839,53 @@ const Yu = {
|
|
|
839
839
|
case "\r":
|
|
840
840
|
case "\u2028":
|
|
841
841
|
case "\u2029":
|
|
842
|
-
|
|
842
|
+
n();
|
|
843
843
|
return;
|
|
844
844
|
case "/":
|
|
845
|
-
|
|
845
|
+
n(), h = "comment";
|
|
846
846
|
return;
|
|
847
847
|
case void 0:
|
|
848
|
-
return
|
|
848
|
+
return n(), F("eof");
|
|
849
849
|
}
|
|
850
850
|
if (p.isSpaceSeparator(C)) {
|
|
851
|
-
|
|
851
|
+
n();
|
|
852
852
|
return;
|
|
853
853
|
}
|
|
854
|
-
return Yu[
|
|
854
|
+
return Yu[y]();
|
|
855
855
|
},
|
|
856
856
|
comment() {
|
|
857
857
|
switch (C) {
|
|
858
858
|
case "*":
|
|
859
|
-
|
|
859
|
+
n(), h = "multiLineComment";
|
|
860
860
|
return;
|
|
861
861
|
case "/":
|
|
862
|
-
|
|
862
|
+
n(), h = "singleLineComment";
|
|
863
863
|
return;
|
|
864
864
|
}
|
|
865
|
-
throw d(
|
|
865
|
+
throw d(n());
|
|
866
866
|
},
|
|
867
867
|
multiLineComment() {
|
|
868
868
|
switch (C) {
|
|
869
869
|
case "*":
|
|
870
|
-
|
|
870
|
+
n(), h = "multiLineCommentAsterisk";
|
|
871
871
|
return;
|
|
872
872
|
case void 0:
|
|
873
|
-
throw d(
|
|
873
|
+
throw d(n());
|
|
874
874
|
}
|
|
875
|
-
|
|
875
|
+
n();
|
|
876
876
|
},
|
|
877
877
|
multiLineCommentAsterisk() {
|
|
878
878
|
switch (C) {
|
|
879
879
|
case "*":
|
|
880
|
-
|
|
880
|
+
n();
|
|
881
881
|
return;
|
|
882
882
|
case "/":
|
|
883
|
-
|
|
883
|
+
n(), h = "default";
|
|
884
884
|
return;
|
|
885
885
|
case void 0:
|
|
886
|
-
throw d(
|
|
886
|
+
throw d(n());
|
|
887
887
|
}
|
|
888
|
-
|
|
888
|
+
n(), h = "multiLineComment";
|
|
889
889
|
},
|
|
890
890
|
singleLineComment() {
|
|
891
891
|
switch (C) {
|
|
@@ -894,33 +894,33 @@ const Yu = {
|
|
|
894
894
|
case "\r":
|
|
895
895
|
case "\u2028":
|
|
896
896
|
case "\u2029":
|
|
897
|
-
|
|
897
|
+
n(), h = "default";
|
|
898
898
|
return;
|
|
899
899
|
case void 0:
|
|
900
|
-
return
|
|
900
|
+
return n(), F("eof");
|
|
901
901
|
}
|
|
902
|
-
|
|
902
|
+
n();
|
|
903
903
|
},
|
|
904
904
|
value() {
|
|
905
905
|
switch (C) {
|
|
906
906
|
case "{":
|
|
907
907
|
case "[":
|
|
908
|
-
return
|
|
908
|
+
return F("punctuator", n());
|
|
909
909
|
case "n":
|
|
910
|
-
return
|
|
910
|
+
return n(), L("ull"), F("null", null);
|
|
911
911
|
case "t":
|
|
912
|
-
return
|
|
912
|
+
return n(), L("rue"), F("boolean", !0);
|
|
913
913
|
case "f":
|
|
914
|
-
return
|
|
914
|
+
return n(), L("alse"), F("boolean", !1);
|
|
915
915
|
case "-":
|
|
916
916
|
case "+":
|
|
917
|
-
|
|
917
|
+
n() === "-" && (w = -1), h = "sign";
|
|
918
918
|
return;
|
|
919
919
|
case ".":
|
|
920
|
-
c =
|
|
920
|
+
c = n(), h = "decimalPointLeading";
|
|
921
921
|
return;
|
|
922
922
|
case "0":
|
|
923
|
-
c =
|
|
923
|
+
c = n(), h = "zero";
|
|
924
924
|
return;
|
|
925
925
|
case "1":
|
|
926
926
|
case "2":
|
|
@@ -931,31 +931,31 @@ const Yu = {
|
|
|
931
931
|
case "7":
|
|
932
932
|
case "8":
|
|
933
933
|
case "9":
|
|
934
|
-
c =
|
|
934
|
+
c = n(), h = "decimalInteger";
|
|
935
935
|
return;
|
|
936
936
|
case "I":
|
|
937
|
-
return
|
|
937
|
+
return n(), L("nfinity"), F("numeric", 1 / 0);
|
|
938
938
|
case "N":
|
|
939
|
-
return
|
|
939
|
+
return n(), L("aN"), F("numeric", NaN);
|
|
940
940
|
case '"':
|
|
941
941
|
case "'":
|
|
942
|
-
|
|
942
|
+
W = n() === '"', c = "", h = "string";
|
|
943
943
|
return;
|
|
944
944
|
}
|
|
945
|
-
throw d(
|
|
945
|
+
throw d(n());
|
|
946
946
|
},
|
|
947
947
|
identifierNameStartEscape() {
|
|
948
948
|
if (C !== "u")
|
|
949
|
-
throw d(
|
|
950
|
-
|
|
951
|
-
const t =
|
|
949
|
+
throw d(n());
|
|
950
|
+
n();
|
|
951
|
+
const t = mu();
|
|
952
952
|
switch (t) {
|
|
953
953
|
case "$":
|
|
954
954
|
case "_":
|
|
955
955
|
break;
|
|
956
956
|
default:
|
|
957
957
|
if (!p.isIdStartChar(t))
|
|
958
|
-
throw
|
|
958
|
+
throw ku();
|
|
959
959
|
break;
|
|
960
960
|
}
|
|
961
961
|
c += t, h = "identifierName";
|
|
@@ -966,23 +966,23 @@ const Yu = {
|
|
|
966
966
|
case "_":
|
|
967
967
|
case "":
|
|
968
968
|
case "":
|
|
969
|
-
c +=
|
|
969
|
+
c += n();
|
|
970
970
|
return;
|
|
971
971
|
case "\\":
|
|
972
|
-
|
|
972
|
+
n(), h = "identifierNameEscape";
|
|
973
973
|
return;
|
|
974
974
|
}
|
|
975
975
|
if (p.isIdContinueChar(C)) {
|
|
976
|
-
c +=
|
|
976
|
+
c += n();
|
|
977
977
|
return;
|
|
978
978
|
}
|
|
979
|
-
return
|
|
979
|
+
return F("identifier", c);
|
|
980
980
|
},
|
|
981
981
|
identifierNameEscape() {
|
|
982
982
|
if (C !== "u")
|
|
983
|
-
throw d(
|
|
984
|
-
|
|
985
|
-
const t =
|
|
983
|
+
throw d(n());
|
|
984
|
+
n();
|
|
985
|
+
const t = mu();
|
|
986
986
|
switch (t) {
|
|
987
987
|
case "$":
|
|
988
988
|
case "_":
|
|
@@ -991,7 +991,7 @@ const Yu = {
|
|
|
991
991
|
break;
|
|
992
992
|
default:
|
|
993
993
|
if (!p.isIdContinueChar(t))
|
|
994
|
-
throw
|
|
994
|
+
throw ku();
|
|
995
995
|
break;
|
|
996
996
|
}
|
|
997
997
|
c += t, h = "identifierName";
|
|
@@ -999,10 +999,10 @@ const Yu = {
|
|
|
999
999
|
sign() {
|
|
1000
1000
|
switch (C) {
|
|
1001
1001
|
case ".":
|
|
1002
|
-
c =
|
|
1002
|
+
c = n(), h = "decimalPointLeading";
|
|
1003
1003
|
return;
|
|
1004
1004
|
case "0":
|
|
1005
|
-
c =
|
|
1005
|
+
c = n(), h = "zero";
|
|
1006
1006
|
return;
|
|
1007
1007
|
case "1":
|
|
1008
1008
|
case "2":
|
|
@@ -1013,154 +1013,154 @@ const Yu = {
|
|
|
1013
1013
|
case "7":
|
|
1014
1014
|
case "8":
|
|
1015
1015
|
case "9":
|
|
1016
|
-
c =
|
|
1016
|
+
c = n(), h = "decimalInteger";
|
|
1017
1017
|
return;
|
|
1018
1018
|
case "I":
|
|
1019
|
-
return
|
|
1019
|
+
return n(), L("nfinity"), F("numeric", w * (1 / 0));
|
|
1020
1020
|
case "N":
|
|
1021
|
-
return
|
|
1021
|
+
return n(), L("aN"), F("numeric", NaN);
|
|
1022
1022
|
}
|
|
1023
|
-
throw d(
|
|
1023
|
+
throw d(n());
|
|
1024
1024
|
},
|
|
1025
1025
|
zero() {
|
|
1026
1026
|
switch (C) {
|
|
1027
1027
|
case ".":
|
|
1028
|
-
c +=
|
|
1028
|
+
c += n(), h = "decimalPoint";
|
|
1029
1029
|
return;
|
|
1030
1030
|
case "e":
|
|
1031
1031
|
case "E":
|
|
1032
|
-
c +=
|
|
1032
|
+
c += n(), h = "decimalExponent";
|
|
1033
1033
|
return;
|
|
1034
1034
|
case "x":
|
|
1035
1035
|
case "X":
|
|
1036
|
-
c +=
|
|
1036
|
+
c += n(), h = "hexadecimal";
|
|
1037
1037
|
return;
|
|
1038
1038
|
}
|
|
1039
|
-
return
|
|
1039
|
+
return F("numeric", w * 0);
|
|
1040
1040
|
},
|
|
1041
1041
|
decimalInteger() {
|
|
1042
1042
|
switch (C) {
|
|
1043
1043
|
case ".":
|
|
1044
|
-
c +=
|
|
1044
|
+
c += n(), h = "decimalPoint";
|
|
1045
1045
|
return;
|
|
1046
1046
|
case "e":
|
|
1047
1047
|
case "E":
|
|
1048
|
-
c +=
|
|
1048
|
+
c += n(), h = "decimalExponent";
|
|
1049
1049
|
return;
|
|
1050
1050
|
}
|
|
1051
1051
|
if (p.isDigit(C)) {
|
|
1052
|
-
c +=
|
|
1052
|
+
c += n();
|
|
1053
1053
|
return;
|
|
1054
1054
|
}
|
|
1055
|
-
return
|
|
1055
|
+
return F("numeric", w * Number(c));
|
|
1056
1056
|
},
|
|
1057
1057
|
decimalPointLeading() {
|
|
1058
1058
|
if (p.isDigit(C)) {
|
|
1059
|
-
c +=
|
|
1059
|
+
c += n(), h = "decimalFraction";
|
|
1060
1060
|
return;
|
|
1061
1061
|
}
|
|
1062
|
-
throw d(
|
|
1062
|
+
throw d(n());
|
|
1063
1063
|
},
|
|
1064
1064
|
decimalPoint() {
|
|
1065
1065
|
switch (C) {
|
|
1066
1066
|
case "e":
|
|
1067
1067
|
case "E":
|
|
1068
|
-
c +=
|
|
1068
|
+
c += n(), h = "decimalExponent";
|
|
1069
1069
|
return;
|
|
1070
1070
|
}
|
|
1071
1071
|
if (p.isDigit(C)) {
|
|
1072
|
-
c +=
|
|
1072
|
+
c += n(), h = "decimalFraction";
|
|
1073
1073
|
return;
|
|
1074
1074
|
}
|
|
1075
|
-
return
|
|
1075
|
+
return F("numeric", w * Number(c));
|
|
1076
1076
|
},
|
|
1077
1077
|
decimalFraction() {
|
|
1078
1078
|
switch (C) {
|
|
1079
1079
|
case "e":
|
|
1080
1080
|
case "E":
|
|
1081
|
-
c +=
|
|
1081
|
+
c += n(), h = "decimalExponent";
|
|
1082
1082
|
return;
|
|
1083
1083
|
}
|
|
1084
1084
|
if (p.isDigit(C)) {
|
|
1085
|
-
c +=
|
|
1085
|
+
c += n();
|
|
1086
1086
|
return;
|
|
1087
1087
|
}
|
|
1088
|
-
return
|
|
1088
|
+
return F("numeric", w * Number(c));
|
|
1089
1089
|
},
|
|
1090
1090
|
decimalExponent() {
|
|
1091
1091
|
switch (C) {
|
|
1092
1092
|
case "+":
|
|
1093
1093
|
case "-":
|
|
1094
|
-
c +=
|
|
1094
|
+
c += n(), h = "decimalExponentSign";
|
|
1095
1095
|
return;
|
|
1096
1096
|
}
|
|
1097
1097
|
if (p.isDigit(C)) {
|
|
1098
|
-
c +=
|
|
1098
|
+
c += n(), h = "decimalExponentInteger";
|
|
1099
1099
|
return;
|
|
1100
1100
|
}
|
|
1101
|
-
throw d(
|
|
1101
|
+
throw d(n());
|
|
1102
1102
|
},
|
|
1103
1103
|
decimalExponentSign() {
|
|
1104
1104
|
if (p.isDigit(C)) {
|
|
1105
|
-
c +=
|
|
1105
|
+
c += n(), h = "decimalExponentInteger";
|
|
1106
1106
|
return;
|
|
1107
1107
|
}
|
|
1108
|
-
throw d(
|
|
1108
|
+
throw d(n());
|
|
1109
1109
|
},
|
|
1110
1110
|
decimalExponentInteger() {
|
|
1111
1111
|
if (p.isDigit(C)) {
|
|
1112
|
-
c +=
|
|
1112
|
+
c += n();
|
|
1113
1113
|
return;
|
|
1114
1114
|
}
|
|
1115
|
-
return
|
|
1115
|
+
return F("numeric", w * Number(c));
|
|
1116
1116
|
},
|
|
1117
1117
|
hexadecimal() {
|
|
1118
1118
|
if (p.isHexDigit(C)) {
|
|
1119
|
-
c +=
|
|
1119
|
+
c += n(), h = "hexadecimalInteger";
|
|
1120
1120
|
return;
|
|
1121
1121
|
}
|
|
1122
|
-
throw d(
|
|
1122
|
+
throw d(n());
|
|
1123
1123
|
},
|
|
1124
1124
|
hexadecimalInteger() {
|
|
1125
1125
|
if (p.isHexDigit(C)) {
|
|
1126
|
-
c +=
|
|
1126
|
+
c += n();
|
|
1127
1127
|
return;
|
|
1128
1128
|
}
|
|
1129
|
-
return
|
|
1129
|
+
return F("numeric", w * Number(c));
|
|
1130
1130
|
},
|
|
1131
1131
|
string() {
|
|
1132
1132
|
switch (C) {
|
|
1133
1133
|
case "\\":
|
|
1134
|
-
|
|
1134
|
+
n(), c += Te();
|
|
1135
1135
|
return;
|
|
1136
1136
|
case '"':
|
|
1137
|
-
if (
|
|
1138
|
-
return
|
|
1139
|
-
c +=
|
|
1137
|
+
if (W)
|
|
1138
|
+
return n(), F("string", c);
|
|
1139
|
+
c += n();
|
|
1140
1140
|
return;
|
|
1141
1141
|
case "'":
|
|
1142
|
-
if (!
|
|
1143
|
-
return
|
|
1144
|
-
c +=
|
|
1142
|
+
if (!W)
|
|
1143
|
+
return n(), F("string", c);
|
|
1144
|
+
c += n();
|
|
1145
1145
|
return;
|
|
1146
1146
|
case `
|
|
1147
1147
|
`:
|
|
1148
1148
|
case "\r":
|
|
1149
|
-
throw d(
|
|
1149
|
+
throw d(n());
|
|
1150
1150
|
case "\u2028":
|
|
1151
1151
|
case "\u2029":
|
|
1152
1152
|
Re(C);
|
|
1153
1153
|
break;
|
|
1154
1154
|
case void 0:
|
|
1155
|
-
throw d(
|
|
1155
|
+
throw d(n());
|
|
1156
1156
|
}
|
|
1157
|
-
c +=
|
|
1157
|
+
c += n();
|
|
1158
1158
|
},
|
|
1159
1159
|
start() {
|
|
1160
1160
|
switch (C) {
|
|
1161
1161
|
case "{":
|
|
1162
1162
|
case "[":
|
|
1163
|
-
return
|
|
1163
|
+
return F("punctuator", n());
|
|
1164
1164
|
}
|
|
1165
1165
|
h = "value";
|
|
1166
1166
|
},
|
|
@@ -1168,28 +1168,28 @@ const Yu = {
|
|
|
1168
1168
|
switch (C) {
|
|
1169
1169
|
case "$":
|
|
1170
1170
|
case "_":
|
|
1171
|
-
c =
|
|
1171
|
+
c = n(), h = "identifierName";
|
|
1172
1172
|
return;
|
|
1173
1173
|
case "\\":
|
|
1174
|
-
|
|
1174
|
+
n(), h = "identifierNameStartEscape";
|
|
1175
1175
|
return;
|
|
1176
1176
|
case "}":
|
|
1177
|
-
return
|
|
1177
|
+
return F("punctuator", n());
|
|
1178
1178
|
case '"':
|
|
1179
1179
|
case "'":
|
|
1180
|
-
|
|
1180
|
+
W = n() === '"', h = "string";
|
|
1181
1181
|
return;
|
|
1182
1182
|
}
|
|
1183
1183
|
if (p.isIdStartChar(C)) {
|
|
1184
|
-
c +=
|
|
1184
|
+
c += n(), h = "identifierName";
|
|
1185
1185
|
return;
|
|
1186
1186
|
}
|
|
1187
|
-
throw d(
|
|
1187
|
+
throw d(n());
|
|
1188
1188
|
},
|
|
1189
1189
|
afterPropertyName() {
|
|
1190
1190
|
if (C === ":")
|
|
1191
|
-
return
|
|
1192
|
-
throw d(
|
|
1191
|
+
return F("punctuator", n());
|
|
1192
|
+
throw d(n());
|
|
1193
1193
|
},
|
|
1194
1194
|
beforePropertyValue() {
|
|
1195
1195
|
h = "value";
|
|
@@ -1198,28 +1198,28 @@ const Yu = {
|
|
|
1198
1198
|
switch (C) {
|
|
1199
1199
|
case ",":
|
|
1200
1200
|
case "}":
|
|
1201
|
-
return
|
|
1201
|
+
return F("punctuator", n());
|
|
1202
1202
|
}
|
|
1203
|
-
throw d(
|
|
1203
|
+
throw d(n());
|
|
1204
1204
|
},
|
|
1205
1205
|
beforeArrayValue() {
|
|
1206
1206
|
if (C === "]")
|
|
1207
|
-
return
|
|
1207
|
+
return F("punctuator", n());
|
|
1208
1208
|
h = "value";
|
|
1209
1209
|
},
|
|
1210
1210
|
afterArrayValue() {
|
|
1211
1211
|
switch (C) {
|
|
1212
1212
|
case ",":
|
|
1213
1213
|
case "]":
|
|
1214
|
-
return
|
|
1214
|
+
return F("punctuator", n());
|
|
1215
1215
|
}
|
|
1216
|
-
throw d(
|
|
1216
|
+
throw d(n());
|
|
1217
1217
|
},
|
|
1218
1218
|
end() {
|
|
1219
|
-
throw d(
|
|
1219
|
+
throw d(n());
|
|
1220
1220
|
}
|
|
1221
1221
|
};
|
|
1222
|
-
function
|
|
1222
|
+
function F(t, u) {
|
|
1223
1223
|
return {
|
|
1224
1224
|
type: t,
|
|
1225
1225
|
value: u,
|
|
@@ -1229,42 +1229,42 @@ function l(t, u) {
|
|
|
1229
1229
|
}
|
|
1230
1230
|
function L(t) {
|
|
1231
1231
|
for (const u of t) {
|
|
1232
|
-
if (
|
|
1233
|
-
throw d(
|
|
1234
|
-
|
|
1232
|
+
if (x() !== u)
|
|
1233
|
+
throw d(n());
|
|
1234
|
+
n();
|
|
1235
1235
|
}
|
|
1236
1236
|
}
|
|
1237
1237
|
function Te() {
|
|
1238
|
-
switch (
|
|
1238
|
+
switch (x()) {
|
|
1239
1239
|
case "b":
|
|
1240
|
-
return
|
|
1240
|
+
return n(), "\b";
|
|
1241
1241
|
case "f":
|
|
1242
|
-
return
|
|
1242
|
+
return n(), "\f";
|
|
1243
1243
|
case "n":
|
|
1244
|
-
return
|
|
1244
|
+
return n(), `
|
|
1245
1245
|
`;
|
|
1246
1246
|
case "r":
|
|
1247
|
-
return
|
|
1247
|
+
return n(), "\r";
|
|
1248
1248
|
case "t":
|
|
1249
|
-
return
|
|
1249
|
+
return n(), " ";
|
|
1250
1250
|
case "v":
|
|
1251
|
-
return
|
|
1251
|
+
return n(), "\v";
|
|
1252
1252
|
case "0":
|
|
1253
|
-
if (
|
|
1254
|
-
throw d(
|
|
1253
|
+
if (n(), p.isDigit(x()))
|
|
1254
|
+
throw d(n());
|
|
1255
1255
|
return "\0";
|
|
1256
1256
|
case "x":
|
|
1257
|
-
return
|
|
1257
|
+
return n(), Oe();
|
|
1258
1258
|
case "u":
|
|
1259
|
-
return
|
|
1259
|
+
return n(), mu();
|
|
1260
1260
|
case `
|
|
1261
1261
|
`:
|
|
1262
1262
|
case "\u2028":
|
|
1263
1263
|
case "\u2029":
|
|
1264
|
-
return
|
|
1264
|
+
return n(), "";
|
|
1265
1265
|
case "\r":
|
|
1266
|
-
return
|
|
1267
|
-
` &&
|
|
1266
|
+
return n(), x() === `
|
|
1267
|
+
` && n(), "";
|
|
1268
1268
|
case "1":
|
|
1269
1269
|
case "2":
|
|
1270
1270
|
case "3":
|
|
@@ -1274,39 +1274,39 @@ function Te() {
|
|
|
1274
1274
|
case "7":
|
|
1275
1275
|
case "8":
|
|
1276
1276
|
case "9":
|
|
1277
|
-
throw d(
|
|
1277
|
+
throw d(n());
|
|
1278
1278
|
case void 0:
|
|
1279
|
-
throw d(
|
|
1279
|
+
throw d(n());
|
|
1280
1280
|
}
|
|
1281
|
-
return
|
|
1281
|
+
return n();
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1284
|
-
let t = "", u =
|
|
1285
|
-
if (!p.isHexDigit(u) || (t +=
|
|
1286
|
-
throw d(
|
|
1287
|
-
return t +=
|
|
1283
|
+
function Oe() {
|
|
1284
|
+
let t = "", u = x();
|
|
1285
|
+
if (!p.isHexDigit(u) || (t += n(), u = x(), !p.isHexDigit(u)))
|
|
1286
|
+
throw d(n());
|
|
1287
|
+
return t += n(), String.fromCodePoint(parseInt(t, 16));
|
|
1288
1288
|
}
|
|
1289
|
-
function
|
|
1289
|
+
function mu() {
|
|
1290
1290
|
let t = "", u = 4;
|
|
1291
1291
|
for (; u-- > 0; ) {
|
|
1292
|
-
const e =
|
|
1292
|
+
const e = x();
|
|
1293
1293
|
if (!p.isHexDigit(e))
|
|
1294
|
-
throw d(
|
|
1295
|
-
t +=
|
|
1294
|
+
throw d(n());
|
|
1295
|
+
t += n();
|
|
1296
1296
|
}
|
|
1297
1297
|
return String.fromCodePoint(parseInt(t, 16));
|
|
1298
1298
|
}
|
|
1299
|
-
const
|
|
1299
|
+
const Me = {
|
|
1300
1300
|
start() {
|
|
1301
1301
|
if (f.type === "eof")
|
|
1302
1302
|
throw U();
|
|
1303
|
-
|
|
1303
|
+
Fu();
|
|
1304
1304
|
},
|
|
1305
1305
|
beforePropertyName() {
|
|
1306
1306
|
switch (f.type) {
|
|
1307
1307
|
case "identifier":
|
|
1308
1308
|
case "string":
|
|
1309
|
-
|
|
1309
|
+
_u = f.value, y = "afterPropertyName";
|
|
1310
1310
|
return;
|
|
1311
1311
|
case "punctuator":
|
|
1312
1312
|
uu();
|
|
@@ -1318,12 +1318,12 @@ const Oe = {
|
|
|
1318
1318
|
afterPropertyName() {
|
|
1319
1319
|
if (f.type === "eof")
|
|
1320
1320
|
throw U();
|
|
1321
|
-
|
|
1321
|
+
y = "beforePropertyValue";
|
|
1322
1322
|
},
|
|
1323
1323
|
beforePropertyValue() {
|
|
1324
1324
|
if (f.type === "eof")
|
|
1325
1325
|
throw U();
|
|
1326
|
-
|
|
1326
|
+
Fu();
|
|
1327
1327
|
},
|
|
1328
1328
|
beforeArrayValue() {
|
|
1329
1329
|
if (f.type === "eof")
|
|
@@ -1332,14 +1332,14 @@ const Oe = {
|
|
|
1332
1332
|
uu();
|
|
1333
1333
|
return;
|
|
1334
1334
|
}
|
|
1335
|
-
|
|
1335
|
+
Fu();
|
|
1336
1336
|
},
|
|
1337
1337
|
afterPropertyValue() {
|
|
1338
1338
|
if (f.type === "eof")
|
|
1339
1339
|
throw U();
|
|
1340
1340
|
switch (f.value) {
|
|
1341
1341
|
case ",":
|
|
1342
|
-
|
|
1342
|
+
y = "beforePropertyName";
|
|
1343
1343
|
return;
|
|
1344
1344
|
case "}":
|
|
1345
1345
|
uu();
|
|
@@ -1350,7 +1350,7 @@ const Oe = {
|
|
|
1350
1350
|
throw U();
|
|
1351
1351
|
switch (f.value) {
|
|
1352
1352
|
case ",":
|
|
1353
|
-
|
|
1353
|
+
y = "beforeArrayValue";
|
|
1354
1354
|
return;
|
|
1355
1355
|
case "]":
|
|
1356
1356
|
uu();
|
|
@@ -1359,7 +1359,7 @@ const Oe = {
|
|
|
1359
1359
|
end() {
|
|
1360
1360
|
}
|
|
1361
1361
|
};
|
|
1362
|
-
function
|
|
1362
|
+
function Fu() {
|
|
1363
1363
|
let t;
|
|
1364
1364
|
switch (f.type) {
|
|
1365
1365
|
case "punctuator":
|
|
@@ -1383,7 +1383,7 @@ function lu() {
|
|
|
1383
1383
|
Z = t;
|
|
1384
1384
|
else {
|
|
1385
1385
|
const u = S[S.length - 1];
|
|
1386
|
-
Array.isArray(u) ? u.push(t) : Object.defineProperty(u,
|
|
1386
|
+
Array.isArray(u) ? u.push(t) : Object.defineProperty(u, _u, {
|
|
1387
1387
|
value: t,
|
|
1388
1388
|
writable: !0,
|
|
1389
1389
|
enumerable: !0,
|
|
@@ -1391,25 +1391,25 @@ function lu() {
|
|
|
1391
1391
|
});
|
|
1392
1392
|
}
|
|
1393
1393
|
if (t !== null && typeof t == "object")
|
|
1394
|
-
S.push(t), Array.isArray(t) ?
|
|
1394
|
+
S.push(t), Array.isArray(t) ? y = "beforeArrayValue" : y = "beforePropertyName";
|
|
1395
1395
|
else {
|
|
1396
1396
|
const u = S[S.length - 1];
|
|
1397
|
-
u == null ?
|
|
1397
|
+
u == null ? y = "end" : Array.isArray(u) ? y = "afterArrayValue" : y = "afterPropertyValue";
|
|
1398
1398
|
}
|
|
1399
1399
|
}
|
|
1400
1400
|
function uu() {
|
|
1401
1401
|
S.pop();
|
|
1402
1402
|
const t = S[S.length - 1];
|
|
1403
|
-
t == null ?
|
|
1403
|
+
t == null ? y = "end" : Array.isArray(t) ? y = "afterArrayValue" : y = "afterPropertyValue";
|
|
1404
1404
|
}
|
|
1405
1405
|
function d(t) {
|
|
1406
|
-
return
|
|
1406
|
+
return nu(t === void 0 ? `JSON5: invalid end of input at ${T}:${$}` : `JSON5: invalid character '${Qu(t)}' at ${T}:${$}`);
|
|
1407
1407
|
}
|
|
1408
1408
|
function U() {
|
|
1409
|
-
return
|
|
1409
|
+
return nu(`JSON5: invalid end of input at ${T}:${$}`);
|
|
1410
1410
|
}
|
|
1411
|
-
function
|
|
1412
|
-
return $ -= 5,
|
|
1411
|
+
function ku() {
|
|
1412
|
+
return $ -= 5, nu(`JSON5: invalid identifier character at ${T}:${$}`);
|
|
1413
1413
|
}
|
|
1414
1414
|
function Re(t) {
|
|
1415
1415
|
console.warn(`JSON5: '${Qu(t)}' in strings is not valid ECMAScript; consider escaping`);
|
|
@@ -1437,20 +1437,20 @@ function Qu(t) {
|
|
|
1437
1437
|
}
|
|
1438
1438
|
return t;
|
|
1439
1439
|
}
|
|
1440
|
-
function
|
|
1440
|
+
function nu(t) {
|
|
1441
1441
|
const u = new SyntaxError(t);
|
|
1442
1442
|
return u.lineNumber = T, u.columnNumber = $, u;
|
|
1443
1443
|
}
|
|
1444
|
-
const ue = /* @__PURE__ */ Se(
|
|
1445
|
-
|
|
1444
|
+
const ue = /* @__PURE__ */ Se(Pe), Bu = "raycast", Hu = [
|
|
1445
|
+
Bu,
|
|
1446
1446
|
"args",
|
|
1447
1447
|
"data"
|
|
1448
|
-
],
|
|
1449
|
-
const u = typeof t == "string" ?
|
|
1450
|
-
if (
|
|
1448
|
+
], Iu = (t) => t.split("-"), ee = (t) => {
|
|
1449
|
+
const u = typeof t == "string" ? b[t] : t;
|
|
1450
|
+
if (!$e(u))
|
|
1451
1451
|
return null;
|
|
1452
1452
|
const e = t.toString().toLowerCase().endsWith("loader");
|
|
1453
|
-
class r extends
|
|
1453
|
+
class r extends H {
|
|
1454
1454
|
constructor() {
|
|
1455
1455
|
super(...arguments), this.instance = null, this.dispose = [], this.mutationObserver = null;
|
|
1456
1456
|
}
|
|
@@ -1480,24 +1480,24 @@ const ue = /* @__PURE__ */ Se(xe), mu = "raycast", ku = [
|
|
|
1480
1480
|
}), Array.from(this.attributes).forEach(this.updateProperty.bind(this));
|
|
1481
1481
|
}
|
|
1482
1482
|
onUnderlyingThreeObjectReady() {
|
|
1483
|
-
var a, A,
|
|
1483
|
+
var a, A, l, E;
|
|
1484
1484
|
const i = this.instance;
|
|
1485
1485
|
i.uuid && this.setAttribute(Xu, i.uuid);
|
|
1486
1486
|
const o = this.parentNode;
|
|
1487
1487
|
if (o.instance || (a = o.three) != null && a.scene) {
|
|
1488
|
-
const
|
|
1489
|
-
if ((
|
|
1490
|
-
v.geometry =
|
|
1491
|
-
else if ((E =
|
|
1492
|
-
v.material =
|
|
1488
|
+
const B = this.instance, g = this.instance, v = o.instance, au = o.instance ?? ((A = o.three) == null ? void 0 : A.scene), re = this.instance;
|
|
1489
|
+
if ((l = B.type) != null && l.toLowerCase().includes("geometry") && v.geometry)
|
|
1490
|
+
v.geometry = B;
|
|
1491
|
+
else if ((E = g.type) != null && E.toLowerCase().includes("material") && v.material)
|
|
1492
|
+
v.material = g;
|
|
1493
1493
|
else if (au.add)
|
|
1494
1494
|
try {
|
|
1495
1495
|
au.add(re);
|
|
1496
1496
|
} catch {
|
|
1497
1497
|
throw new Error(`Error adding ${this.tagName} to ${au}`);
|
|
1498
1498
|
}
|
|
1499
|
-
const
|
|
1500
|
-
|
|
1499
|
+
const wu = this.getAttribute("attach");
|
|
1500
|
+
wu && this.executeAttach(wu, this.instance);
|
|
1501
1501
|
}
|
|
1502
1502
|
}
|
|
1503
1503
|
connectedCallback() {
|
|
@@ -1511,22 +1511,22 @@ const ue = /* @__PURE__ */ Se(xe), mu = "raycast", ku = [
|
|
|
1511
1511
|
updateProperty(i) {
|
|
1512
1512
|
const { name: o, value: a } = i;
|
|
1513
1513
|
let A = o;
|
|
1514
|
-
Object.keys(this.instance ?? {}).forEach((
|
|
1515
|
-
|
|
1514
|
+
Object.keys(this.instance ?? {}).forEach((B) => {
|
|
1515
|
+
B.toLowerCase() === A && (A = B);
|
|
1516
1516
|
});
|
|
1517
|
-
const
|
|
1518
|
-
if (
|
|
1517
|
+
const l = Iu(A);
|
|
1518
|
+
if (Hu.includes(A) || Hu.includes(l[0]))
|
|
1519
1519
|
return;
|
|
1520
1520
|
let E = tu(a, this);
|
|
1521
1521
|
try {
|
|
1522
1522
|
E = JSON.parse(a === "" ? "true" : a);
|
|
1523
1523
|
} catch {
|
|
1524
1524
|
}
|
|
1525
|
-
this.instance && du(this.instance,
|
|
1525
|
+
this.instance && du(this.instance, l, E);
|
|
1526
1526
|
}
|
|
1527
1527
|
executeAttach(i, o) {
|
|
1528
1528
|
const a = this.parentElement;
|
|
1529
|
-
a.instance && du(a.instance,
|
|
1529
|
+
a.instance && du(a.instance, Iu(i), o);
|
|
1530
1530
|
}
|
|
1531
1531
|
disconnectedCallback() {
|
|
1532
1532
|
super.disconnectedCallback();
|
|
@@ -1535,16 +1535,16 @@ const ue = /* @__PURE__ */ Se(xe), mu = "raycast", ku = [
|
|
|
1535
1535
|
}
|
|
1536
1536
|
disposeThreeObjects(i) {
|
|
1537
1537
|
i.forEach((o) => {
|
|
1538
|
-
var
|
|
1538
|
+
var l, E;
|
|
1539
1539
|
if (!o)
|
|
1540
1540
|
return;
|
|
1541
1541
|
const a = o, A = o;
|
|
1542
|
-
(
|
|
1542
|
+
(l = a.dispose) == null || l.call(a), (E = A.removeFromParent) == null || E.call(A);
|
|
1543
1543
|
});
|
|
1544
1544
|
}
|
|
1545
1545
|
/** Render */
|
|
1546
1546
|
render() {
|
|
1547
|
-
return
|
|
1547
|
+
return $u`<slot></slot>`;
|
|
1548
1548
|
}
|
|
1549
1549
|
}
|
|
1550
1550
|
class s extends r {
|
|
@@ -1583,10 +1583,10 @@ const ue = /* @__PURE__ */ Se(xe), mu = "raycast", ku = [
|
|
|
1583
1583
|
* Copyright 2017 Google LLC
|
|
1584
1584
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1585
1585
|
*/
|
|
1586
|
-
const Le = { attribute: !0, type: String, converter: ru, reflect: !1, hasChanged:
|
|
1586
|
+
const Le = { attribute: !0, type: String, converter: ru, reflect: !1, hasChanged: bu }, Ue = (t = Le, u, e) => {
|
|
1587
1587
|
const { kind: r, metadata: s } = e;
|
|
1588
|
-
let
|
|
1589
|
-
if (
|
|
1588
|
+
let D = globalThis.litPropertyMetadata.get(s);
|
|
1589
|
+
if (D === void 0 && globalThis.litPropertyMetadata.set(s, D = /* @__PURE__ */ new Map()), D.set(e.name, t), r === "accessor") {
|
|
1590
1590
|
const { name: i } = e;
|
|
1591
1591
|
return { set(o) {
|
|
1592
1592
|
const a = u.get.call(this);
|
|
@@ -1604,30 +1604,30 @@ const Le = { attribute: !0, type: String, converter: ru, reflect: !1, hasChanged
|
|
|
1604
1604
|
}
|
|
1605
1605
|
throw Error("Unsupported decorator location: " + r);
|
|
1606
1606
|
};
|
|
1607
|
-
function
|
|
1608
|
-
return (u, e) => typeof e == "object" ? Ue(t, u, e) : ((r, s,
|
|
1609
|
-
const i = s.hasOwnProperty(
|
|
1610
|
-
return s.constructor.createProperty(
|
|
1607
|
+
function O(t) {
|
|
1608
|
+
return (u, e) => typeof e == "object" ? Ue(t, u, e) : ((r, s, D) => {
|
|
1609
|
+
const i = s.hasOwnProperty(D);
|
|
1610
|
+
return s.constructor.createProperty(D, i ? { ...r, wrapped: !0 } : r), i ? Object.getOwnPropertyDescriptor(s, D) : void 0;
|
|
1611
1611
|
})(t, u, e);
|
|
1612
1612
|
}
|
|
1613
|
-
var ke = Object.defineProperty,
|
|
1614
|
-
for (var s = void 0,
|
|
1615
|
-
(i = t[
|
|
1613
|
+
var ke = Object.defineProperty, M = (t, u, e, r) => {
|
|
1614
|
+
for (var s = void 0, D = t.length - 1, i; D >= 0; D--)
|
|
1615
|
+
(i = t[D]) && (s = i(u, e, s) || s);
|
|
1616
1616
|
return s && ke(u, e, s), s;
|
|
1617
1617
|
};
|
|
1618
|
-
const He = "orthographic",
|
|
1618
|
+
const He = "orthographic", ju = 1 / 0, vu = class vu extends H {
|
|
1619
1619
|
constructor() {
|
|
1620
|
-
super(), this.scratchV2 = new
|
|
1621
|
-
scene: new
|
|
1620
|
+
super(), this.scratchV2 = new b.Vector2(), this.three = {
|
|
1621
|
+
scene: new b.Scene(),
|
|
1622
1622
|
camera: null,
|
|
1623
1623
|
renderer: null
|
|
1624
|
-
}, this.background = null, this.dpr =
|
|
1624
|
+
}, this.background = null, this.dpr = ju, this.headless = !1, this.manualRender = !1, this.dispatchBeforeRender = !1, this.dispatchAfterRender = !1, this.rendererArgs = [], this.cameraArgs = [], this.raycaster = new b.Raycaster(), this.raycastPool = [], this.frame = 1 / 0, this.resizeObserver = new ResizeObserver((u) => {
|
|
1625
1625
|
u.forEach(({ target: e, contentRect: r }) => {
|
|
1626
1626
|
var s;
|
|
1627
1627
|
if (e === this && ((s = this.three.renderer) == null || s.setSize(r.width * this.dpr, r.height * this.dpr), this.three.camera)) {
|
|
1628
|
-
const
|
|
1628
|
+
const D = r.width / r.height;
|
|
1629
1629
|
if (this.three.camera.type.toLowerCase() === "perspectivecamera")
|
|
1630
|
-
this.three.camera.aspect =
|
|
1630
|
+
this.three.camera.aspect = D, this.three.camera.updateProjectionMatrix();
|
|
1631
1631
|
else if (this.three.camera.type.toLowerCase() === "orthographiccamera") {
|
|
1632
1632
|
const i = r.height / r.width, o = 10;
|
|
1633
1633
|
this.three.camera.top = i * o, this.three.camera.bottom = -i * o, this.three.camera.right = o, this.three.camera.left = -o, this.three.camera.updateProjectionMatrix();
|
|
@@ -1639,13 +1639,13 @@ const He = "orthographic", Iu = 1 / 0, _u = class _u extends j {
|
|
|
1639
1639
|
}
|
|
1640
1640
|
/** To run on start. */
|
|
1641
1641
|
connectedCallback() {
|
|
1642
|
-
if (super.connectedCallback(), this.dpr ===
|
|
1642
|
+
if (super.connectedCallback(), this.dpr === ju && (this.dpr = window.devicePixelRatio), this.getAttribute(He) !== null ? this.three.camera = new b.OrthographicCamera(...this.cameraArgs) : this.three.camera = new b.PerspectiveCamera(...this.cameraArgs.length ? this.cameraArgs : [75]), ["scene", "camera", "renderer"].forEach((u) => {
|
|
1643
1643
|
const e = this[u] ?? this.getAttribute(u) ?? {}, r = typeof e == "string" ? ue(e) : e;
|
|
1644
|
-
Object.entries(r).forEach(([s,
|
|
1645
|
-
this.three[u] && du(this.three[u], s.split("-"), tu(
|
|
1644
|
+
Object.entries(r).forEach(([s, D]) => {
|
|
1645
|
+
this.three[u] && du(this.three[u], s.split("-"), tu(D, this));
|
|
1646
1646
|
});
|
|
1647
|
-
}), this.resizeObserver.observe(this), this.background !== null && (this.three.scene.background = new
|
|
1648
|
-
const u = new
|
|
1647
|
+
}), this.resizeObserver.observe(this), this.background !== null && (this.three.scene.background = new b.Color(this.background)), !this.headless) {
|
|
1648
|
+
const u = new b.WebGLRenderer(...this.rendererArgs);
|
|
1649
1649
|
u.domElement.addEventListener("pointermove", this.onPointerMove.bind(this)), u.domElement.addEventListener("mousemove", this.onPointerMove.bind(this)), u.domElement.addEventListener("click", this.onClick.bind(this)), this.three.renderer = u;
|
|
1650
1650
|
}
|
|
1651
1651
|
this.manualRender || this.updateLoop();
|
|
@@ -1657,7 +1657,7 @@ const He = "orthographic", Iu = 1 / 0, _u = class _u extends j {
|
|
|
1657
1657
|
handleDefaultSlotChange(u) {
|
|
1658
1658
|
u.target.assignedElements().forEach((e) => {
|
|
1659
1659
|
const r = e;
|
|
1660
|
-
r.instance instanceof
|
|
1660
|
+
r.instance instanceof b.Object3D && e.getAttributeNames().includes(Bu) && e.getAttributeNames().includes(Bu) && this.raycastPool.push(r.instance);
|
|
1661
1661
|
}), this.renderThree();
|
|
1662
1662
|
}
|
|
1663
1663
|
runRaycast(u) {
|
|
@@ -1678,8 +1678,8 @@ const He = "orthographic", Iu = 1 / 0, _u = class _u extends j {
|
|
|
1678
1678
|
// ==================
|
|
1679
1679
|
onPointerMove(u) {
|
|
1680
1680
|
this.runRaycast.bind(this)(u).forEach((r) => {
|
|
1681
|
-
var s,
|
|
1682
|
-
u.type === "pointermove" ? ((s = r.element) == null || s.dispatchEvent(new PointerEvent("pointermove")), (
|
|
1681
|
+
var s, D, i, o;
|
|
1682
|
+
u.type === "pointermove" ? ((s = r.element) == null || s.dispatchEvent(new PointerEvent("pointermove")), (D = r.element) == null || D.dispatchEvent(new CustomEvent(je, { detail: r }))) : u.type === "mousemove" && ((i = r.element) == null || i.dispatchEvent(new MouseEvent("mousemove")), (o = r.element) == null || o.dispatchEvent(new CustomEvent(Ge, { detail: r })));
|
|
1683
1683
|
});
|
|
1684
1684
|
}
|
|
1685
1685
|
// Click handling
|
|
@@ -1689,8 +1689,8 @@ const He = "orthographic", Iu = 1 / 0, _u = class _u extends j {
|
|
|
1689
1689
|
if (u instanceof TouchEvent) {
|
|
1690
1690
|
const r = u.touches[0];
|
|
1691
1691
|
e = this.runRaycast.bind(this)(r), e.forEach((s) => {
|
|
1692
|
-
var
|
|
1693
|
-
(
|
|
1692
|
+
var D;
|
|
1693
|
+
(D = s.element) == null || D.dispatchEvent(new TouchEvent("touchstart"));
|
|
1694
1694
|
});
|
|
1695
1695
|
} else
|
|
1696
1696
|
e = this.runRaycast.bind(this)(u), e.forEach((r) => {
|
|
@@ -1699,7 +1699,7 @@ const He = "orthographic", Iu = 1 / 0, _u = class _u extends j {
|
|
|
1699
1699
|
});
|
|
1700
1700
|
e.forEach((r) => {
|
|
1701
1701
|
var s;
|
|
1702
|
-
(s = r.element) == null || s.dispatchEvent(new CustomEvent(
|
|
1702
|
+
(s = r.element) == null || s.dispatchEvent(new CustomEvent(ze, { detail: r }));
|
|
1703
1703
|
});
|
|
1704
1704
|
}
|
|
1705
1705
|
updateLoop() {
|
|
@@ -1708,20 +1708,20 @@ const He = "orthographic", Iu = 1 / 0, _u = class _u extends j {
|
|
|
1708
1708
|
/** Render the 3D scene. Optional scene/camera overrides; defaults to the internal scene and camera. */
|
|
1709
1709
|
renderThree(u, e) {
|
|
1710
1710
|
var r;
|
|
1711
|
-
this.dispatchBeforeRender && this.dispatchEvent(new CustomEvent(
|
|
1711
|
+
this.dispatchBeforeRender && this.dispatchEvent(new CustomEvent(Ve, {})), this.three.camera && ((r = this.three.renderer) == null || r.render(
|
|
1712
1712
|
u ?? this.three.scene,
|
|
1713
1713
|
e ?? this.three.camera
|
|
1714
1714
|
), this.dispatchAfterRender && this.dispatchEvent(new CustomEvent(We, {})));
|
|
1715
1715
|
}
|
|
1716
1716
|
render() {
|
|
1717
1717
|
var u;
|
|
1718
|
-
return
|
|
1718
|
+
return $u`
|
|
1719
1719
|
<slot @slotchange=${this.handleDefaultSlotChange}></slot>
|
|
1720
1720
|
${(u = this.three.renderer) == null ? void 0 : u.domElement}
|
|
1721
1721
|
`;
|
|
1722
1722
|
}
|
|
1723
1723
|
};
|
|
1724
|
-
|
|
1724
|
+
vu.styles = ie`
|
|
1725
1725
|
:host {
|
|
1726
1726
|
width: 100%;
|
|
1727
1727
|
height: 100%;
|
|
@@ -1735,57 +1735,111 @@ _u.styles = ie`
|
|
|
1735
1735
|
max-height: 100%;
|
|
1736
1736
|
}
|
|
1737
1737
|
`;
|
|
1738
|
-
let
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
],
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
],
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
],
|
|
1748
|
-
|
|
1749
|
-
|
|
1738
|
+
let _ = vu;
|
|
1739
|
+
M([
|
|
1740
|
+
O()
|
|
1741
|
+
], _.prototype, "background");
|
|
1742
|
+
M([
|
|
1743
|
+
O()
|
|
1744
|
+
], _.prototype, "dpr");
|
|
1745
|
+
M([
|
|
1746
|
+
O()
|
|
1747
|
+
], _.prototype, "headless");
|
|
1748
|
+
M([
|
|
1749
|
+
O({
|
|
1750
1750
|
attribute: "manual-render",
|
|
1751
1751
|
type: Boolean
|
|
1752
1752
|
})
|
|
1753
|
-
],
|
|
1754
|
-
|
|
1755
|
-
|
|
1753
|
+
], _.prototype, "manualRender");
|
|
1754
|
+
M([
|
|
1755
|
+
O({
|
|
1756
1756
|
attribute: "dispatch-before-render",
|
|
1757
1757
|
type: Boolean
|
|
1758
1758
|
})
|
|
1759
|
-
],
|
|
1760
|
-
|
|
1761
|
-
|
|
1759
|
+
], _.prototype, "dispatchBeforeRender");
|
|
1760
|
+
M([
|
|
1761
|
+
O({
|
|
1762
1762
|
attribute: "dispatch-after-render",
|
|
1763
1763
|
type: Boolean
|
|
1764
1764
|
})
|
|
1765
|
-
],
|
|
1766
|
-
|
|
1767
|
-
|
|
1765
|
+
], _.prototype, "dispatchAfterRender");
|
|
1766
|
+
M([
|
|
1767
|
+
O({
|
|
1768
1768
|
attribute: "renderer-args",
|
|
1769
1769
|
type: Object
|
|
1770
1770
|
})
|
|
1771
|
-
],
|
|
1772
|
-
|
|
1773
|
-
|
|
1771
|
+
], _.prototype, "rendererArgs");
|
|
1772
|
+
M([
|
|
1773
|
+
O({
|
|
1774
1774
|
attribute: "camera-args",
|
|
1775
1775
|
type: Object
|
|
1776
1776
|
})
|
|
1777
|
-
],
|
|
1778
|
-
|
|
1777
|
+
], _.prototype, "cameraArgs");
|
|
1778
|
+
class Ie extends H {
|
|
1779
|
+
constructor() {
|
|
1780
|
+
super(...arguments), this.parentLunchbox = null, this.frame = -1, this.scratchV3 = new b.Vector3();
|
|
1781
|
+
}
|
|
1782
|
+
/** Try attaching the update function to pass the parent's position to children. */
|
|
1783
|
+
tryAttachUpdate() {
|
|
1784
|
+
var i;
|
|
1785
|
+
const u = (i = this.parentLunchbox) == null ? void 0 : i.instance;
|
|
1786
|
+
if (!u)
|
|
1787
|
+
return !1;
|
|
1788
|
+
if (!u.isObject3D)
|
|
1789
|
+
throw new Error("html-anchor must be the child of an Object3D");
|
|
1790
|
+
const e = this.closest("three-lunchbox");
|
|
1791
|
+
if (!e)
|
|
1792
|
+
throw new Error("three-lunchbox parent required for html-anchor");
|
|
1793
|
+
const r = e.three.camera;
|
|
1794
|
+
if (!r)
|
|
1795
|
+
throw new Error("camera required for html-anchor");
|
|
1796
|
+
const s = e.three.renderer;
|
|
1797
|
+
if (!(s != null && s.domElement))
|
|
1798
|
+
throw new Error("renderer and DOM element required for html-anchor");
|
|
1799
|
+
const D = () => {
|
|
1800
|
+
this.frame = requestAnimationFrame(D), u.getWorldPosition(this.scratchV3), this.scratchV3.project(r), this.scratchV3.multiplyScalar(0.5).addScalar(0.5), this.scratchV3.y = 1 - this.scratchV3.y;
|
|
1801
|
+
const o = this.scratchV3.clone().set(s.domElement.width, s.domElement.height, 1);
|
|
1802
|
+
o.divideScalar(devicePixelRatio), this.scratchV3.multiply(o), Array.from(this.children).forEach((a) => {
|
|
1803
|
+
a.style.setProperty("--left", `${this.scratchV3.x}px`), a.style.setProperty("--top", `${this.scratchV3.y}px`);
|
|
1804
|
+
});
|
|
1805
|
+
};
|
|
1806
|
+
return D(), !0;
|
|
1807
|
+
}
|
|
1808
|
+
// Setup - save local parent and try adding update
|
|
1809
|
+
connectedCallback() {
|
|
1810
|
+
super.connectedCallback();
|
|
1811
|
+
const u = this.parentNode;
|
|
1812
|
+
if (!u)
|
|
1813
|
+
throw new Error("html-anchor requires a 3D parent");
|
|
1814
|
+
this.parentLunchbox = u, this.tryAttachUpdate() || this.parentLunchbox.addEventListener("instancecreated", () => {
|
|
1815
|
+
if (!this.tryAttachUpdate())
|
|
1816
|
+
throw new Error("error attaching html-anchor to Object3D");
|
|
1817
|
+
}, { once: !0 });
|
|
1818
|
+
}
|
|
1819
|
+
// Teardown
|
|
1820
|
+
disconnectedCallback() {
|
|
1821
|
+
this.frame !== -1 && cancelAnimationFrame(this.frame);
|
|
1822
|
+
}
|
|
1823
|
+
render() {
|
|
1824
|
+
return $u`<slot></slot>`;
|
|
1825
|
+
}
|
|
1826
|
+
}
|
|
1827
|
+
const Ze = ({
|
|
1779
1828
|
prependList: t = []
|
|
1780
1829
|
} = {}) => {
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1830
|
+
Object.entries({
|
|
1831
|
+
"three-lunchbox": _,
|
|
1832
|
+
"html-anchor": Ie
|
|
1833
|
+
}).forEach(([e, r]) => {
|
|
1834
|
+
customElements.get(e) || customElements.define(e, r);
|
|
1835
|
+
}), [...t, ...zu].forEach((e) => {
|
|
1836
|
+
const r = te(e);
|
|
1837
|
+
if (customElements.get(r))
|
|
1784
1838
|
return;
|
|
1785
|
-
const
|
|
1786
|
-
|
|
1839
|
+
const s = ee(e);
|
|
1840
|
+
s && customElements.define(r, s);
|
|
1787
1841
|
});
|
|
1788
|
-
},
|
|
1842
|
+
}, Ke = (t, u, e = window) => {
|
|
1789
1843
|
if (e.customElements.get(t)) {
|
|
1790
1844
|
console.log(`${t} already registered as a custom element. Try a different name if registering is still required.`);
|
|
1791
1845
|
return;
|
|
@@ -1795,19 +1849,20 @@ const Je = ({
|
|
|
1795
1849
|
e.customElements.define(t, r);
|
|
1796
1850
|
else
|
|
1797
1851
|
throw new Error(`Could not extend ${t}. The second paramater must be a class.`);
|
|
1798
|
-
},
|
|
1852
|
+
}, je = "threepointermove", Ge = "threemousemove", ze = "threeclick", Ve = "beforerender", We = "afterrender", te = (t) => {
|
|
1799
1853
|
let u = t.split(/\.?(?=[A-Z])/).join("-").toLowerCase().replace(/-g-l-/, "-gl-");
|
|
1800
1854
|
return u.includes("-") || (u = `three-${u}`), u;
|
|
1801
|
-
},
|
|
1855
|
+
}, Xe = zu.map(te);
|
|
1802
1856
|
export {
|
|
1803
1857
|
We as AFTER_RENDER_EVENT_NAME,
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1858
|
+
Ve as BEFORE_RENDER_EVENT_NAME,
|
|
1859
|
+
Ie as HtmlAnchor,
|
|
1860
|
+
ze as THREE_CLICK_EVENT_NAME,
|
|
1861
|
+
Ge as THREE_MOUSE_MOVE_EVENT_NAME,
|
|
1862
|
+
je as THREE_POINTER_MOVE_EVENT_NAME,
|
|
1863
|
+
_ as ThreeLunchbox,
|
|
1864
|
+
zu as autoComponents,
|
|
1865
|
+
Ke as extend,
|
|
1866
|
+
Ze as initLunchbox,
|
|
1867
|
+
Xe as webComponentNames
|
|
1813
1868
|
};
|