lunchboxjs 2.0.0-beta.1 → 2.0.0-beta.3
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/camera.cy.d.ts +1 -0
- package/dist/cypress/e2e/core-events.cy.d.ts +1 -0
- package/dist/cypress/e2e/core.cy.d.ts +1 -0
- package/dist/cypress/e2e/disposal.cy.d.ts +1 -0
- package/dist/cypress/e2e/docs-examples.cy.d.ts +0 -0
- package/dist/cypress/e2e/extend.cy.d.ts +1 -0
- package/dist/cypress/e2e/vue.cy.d.ts +1 -0
- package/dist/cypress/support/commands.d.ts +0 -0
- package/dist/cypress/support/e2e.d.ts +1 -0
- package/dist/cypress.config.d.ts +3 -0
- package/dist/demo.d.ts +1 -0
- package/dist/lunchboxjs.cjs +16 -16
- package/dist/lunchboxjs.js +362 -324
- package/dist/lunchboxjs.umd.cjs +16 -16
- package/dist/src/auto-components.d.ts +3 -0
- package/dist/src/index.d.ts +66 -0
- package/dist/src/parseAttributeValue.d.ts +1 -0
- package/dist/src/setThreeProperty.d.ts +1 -0
- package/dist/src/three-lunchbox.d.ts +42 -0
- package/dist/src/utils.d.ts +12 -0
- package/dist/types.d.ts +14 -0
- package/dist/vite.config.d.ts +2 -0
- package/package.json +10 -9
- package/dist/lunchboxjs.d.ts +0 -1
package/dist/lunchboxjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
const
|
|
1
|
+
import * as $ from "three";
|
|
2
|
+
const ku = [
|
|
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
|
|
@@ -89,19 +89,19 @@ const Ou = [
|
|
|
89
89
|
* Copyright 2019 Google LLC
|
|
90
90
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
91
91
|
*/
|
|
92
|
-
const Q = globalThis,
|
|
93
|
-
let
|
|
92
|
+
const Q = globalThis, du = Q.ShadowRoot && (Q.ShadyCSS === void 0 || Q.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, pu = Symbol(), gu = /* @__PURE__ */ new WeakMap();
|
|
93
|
+
let Hu = class {
|
|
94
94
|
constructor(u, e, r) {
|
|
95
|
-
if (this._$cssResult$ = !0, r !==
|
|
95
|
+
if (this._$cssResult$ = !0, r !== pu)
|
|
96
96
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
97
97
|
this.cssText = u, this.t = e;
|
|
98
98
|
}
|
|
99
99
|
get styleSheet() {
|
|
100
100
|
let u = this.o;
|
|
101
101
|
const e = this.t;
|
|
102
|
-
if (
|
|
102
|
+
if (du && u === void 0) {
|
|
103
103
|
const r = e !== void 0 && e.length === 1;
|
|
104
|
-
r && (u =
|
|
104
|
+
r && (u = gu.get(e)), u === void 0 && ((this.o = u = new CSSStyleSheet()).replaceSync(this.cssText), r && gu.set(e, u));
|
|
105
105
|
}
|
|
106
106
|
return u;
|
|
107
107
|
}
|
|
@@ -109,7 +109,7 @@ let Lu = class {
|
|
|
109
109
|
return this.cssText;
|
|
110
110
|
}
|
|
111
111
|
};
|
|
112
|
-
const
|
|
112
|
+
const Qu = (t) => new Hu(typeof t == "string" ? t : t + "", void 0, pu), ue = (t, ...u) => {
|
|
113
113
|
const e = t.length === 1 ? t[0] : u.reduce((r, D, s) => r + ((i) => {
|
|
114
114
|
if (i._$cssResult$ === !0)
|
|
115
115
|
return i.cssText;
|
|
@@ -117,30 +117,30 @@ const Ku = (t) => new Lu(typeof t == "string" ? t : t + "", void 0, du), Xu = (t
|
|
|
117
117
|
return i;
|
|
118
118
|
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.");
|
|
119
119
|
})(D) + t[s + 1], t[0]);
|
|
120
|
-
return new
|
|
121
|
-
},
|
|
122
|
-
if (
|
|
120
|
+
return new Hu(e, t, pu);
|
|
121
|
+
}, ee = (t, u) => {
|
|
122
|
+
if (du)
|
|
123
123
|
t.adoptedStyleSheets = u.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
124
124
|
else
|
|
125
125
|
for (const e of u) {
|
|
126
126
|
const r = document.createElement("style"), D = Q.litNonce;
|
|
127
127
|
D !== void 0 && r.setAttribute("nonce", D), r.textContent = e.cssText, t.appendChild(r);
|
|
128
128
|
}
|
|
129
|
-
},
|
|
129
|
+
}, $u = du ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((u) => {
|
|
130
130
|
let e = "";
|
|
131
131
|
for (const r of u.cssRules)
|
|
132
132
|
e += r.cssText;
|
|
133
|
-
return
|
|
133
|
+
return Qu(e);
|
|
134
134
|
})(t) : t;
|
|
135
135
|
/**
|
|
136
136
|
* @license
|
|
137
137
|
* Copyright 2017 Google LLC
|
|
138
138
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
139
139
|
*/
|
|
140
|
-
const { is:
|
|
140
|
+
const { is: te, defineProperty: re, getOwnPropertyDescriptor: De, getOwnPropertyNames: se, getOwnPropertySymbols: ie, getPrototypeOf: ne } = Object, P = globalThis, _u = P.trustedTypes, oe = _u ? _u.emptyScript : "", iu = P.reactiveElementPolyfillSupport, G = (t, u) => t, uu = { toAttribute(t, u) {
|
|
141
141
|
switch (u) {
|
|
142
142
|
case Boolean:
|
|
143
|
-
t = t ?
|
|
143
|
+
t = t ? oe : null;
|
|
144
144
|
break;
|
|
145
145
|
case Object:
|
|
146
146
|
case Array:
|
|
@@ -165,7 +165,7 @@ const { is: Qu, defineProperty: ue, getOwnPropertyDescriptor: ee, getOwnProperty
|
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
return e;
|
|
168
|
-
} },
|
|
168
|
+
} }, fu = (t, u) => !te(t, u), bu = { attribute: !0, type: String, converter: uu, reflect: !1, hasChanged: fu };
|
|
169
169
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), P.litPropertyMetadata ?? (P.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
170
170
|
class k extends HTMLElement {
|
|
171
171
|
static addInitializer(u) {
|
|
@@ -177,11 +177,11 @@ class k extends HTMLElement {
|
|
|
177
177
|
static createProperty(u, e = bu) {
|
|
178
178
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(u, e), !e.noAccessor) {
|
|
179
179
|
const r = Symbol(), D = this.getPropertyDescriptor(u, r, e);
|
|
180
|
-
D !== void 0 &&
|
|
180
|
+
D !== void 0 && re(this.prototype, u, D);
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
static getPropertyDescriptor(u, e, r) {
|
|
184
|
-
const { get: D, set: s } =
|
|
184
|
+
const { get: D, set: s } = De(this.prototype, u) ?? { get() {
|
|
185
185
|
return this[e];
|
|
186
186
|
}, set(i) {
|
|
187
187
|
this[e] = i;
|
|
@@ -189,24 +189,24 @@ class k extends HTMLElement {
|
|
|
189
189
|
return { get() {
|
|
190
190
|
return D == null ? void 0 : D.call(this);
|
|
191
191
|
}, set(i) {
|
|
192
|
-
const
|
|
193
|
-
s.call(this, i), this.requestUpdate(u,
|
|
192
|
+
const o = D == null ? void 0 : D.call(this);
|
|
193
|
+
s.call(this, i), this.requestUpdate(u, o, r);
|
|
194
194
|
}, configurable: !0, enumerable: !0 };
|
|
195
195
|
}
|
|
196
196
|
static getPropertyOptions(u) {
|
|
197
197
|
return this.elementProperties.get(u) ?? bu;
|
|
198
198
|
}
|
|
199
199
|
static _$Ei() {
|
|
200
|
-
if (this.hasOwnProperty(
|
|
200
|
+
if (this.hasOwnProperty(G("elementProperties")))
|
|
201
201
|
return;
|
|
202
|
-
const u =
|
|
202
|
+
const u = ne(this);
|
|
203
203
|
u.finalize(), u.l !== void 0 && (this.l = [...u.l]), this.elementProperties = new Map(u.elementProperties);
|
|
204
204
|
}
|
|
205
205
|
static finalize() {
|
|
206
|
-
if (this.hasOwnProperty(
|
|
206
|
+
if (this.hasOwnProperty(G("finalized")))
|
|
207
207
|
return;
|
|
208
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
209
|
-
const e = this.properties, r = [...
|
|
208
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(G("properties"))) {
|
|
209
|
+
const e = this.properties, r = [...se(e), ...ie(e)];
|
|
210
210
|
for (const D of r)
|
|
211
211
|
this.createProperty(D, e[D]);
|
|
212
212
|
}
|
|
@@ -229,9 +229,9 @@ class k extends HTMLElement {
|
|
|
229
229
|
if (Array.isArray(u)) {
|
|
230
230
|
const r = new Set(u.flat(1 / 0).reverse());
|
|
231
231
|
for (const D of r)
|
|
232
|
-
e.unshift(
|
|
232
|
+
e.unshift($u(D));
|
|
233
233
|
} else
|
|
234
|
-
u !== void 0 && e.push(
|
|
234
|
+
u !== void 0 && e.push($u(u));
|
|
235
235
|
return e;
|
|
236
236
|
}
|
|
237
237
|
static _$Eu(u, e) {
|
|
@@ -261,7 +261,7 @@ class k extends HTMLElement {
|
|
|
261
261
|
}
|
|
262
262
|
createRenderRoot() {
|
|
263
263
|
const u = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
264
|
-
return
|
|
264
|
+
return ee(u, this.constructor.elementStyles), u;
|
|
265
265
|
}
|
|
266
266
|
connectedCallback() {
|
|
267
267
|
var u;
|
|
@@ -294,13 +294,13 @@ class k extends HTMLElement {
|
|
|
294
294
|
var s;
|
|
295
295
|
const r = this.constructor, D = r._$Eh.get(u);
|
|
296
296
|
if (D !== void 0 && this._$Em !== D) {
|
|
297
|
-
const i = r.getPropertyOptions(D),
|
|
298
|
-
this._$Em = D, this[D] =
|
|
297
|
+
const i = r.getPropertyOptions(D), o = typeof i.converter == "function" ? { fromAttribute: i.converter } : ((s = i.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? i.converter : uu;
|
|
298
|
+
this._$Em = D, this[D] = o.fromAttribute(e, i.type), this._$Em = null;
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
requestUpdate(u, e, r) {
|
|
302
302
|
if (u !== void 0) {
|
|
303
|
-
if (r ?? (r = this.constructor.getPropertyOptions(u)), !(r.hasChanged ??
|
|
303
|
+
if (r ?? (r = this.constructor.getPropertyOptions(u)), !(r.hasChanged ?? fu)(this[u], e))
|
|
304
304
|
return;
|
|
305
305
|
this.P(u, e, r);
|
|
306
306
|
}
|
|
@@ -378,68 +378,68 @@ class k extends HTMLElement {
|
|
|
378
378
|
firstUpdated(u) {
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
|
-
k.elementStyles = [], k.shadowRootOptions = { mode: "open" }, k[
|
|
381
|
+
k.elementStyles = [], k.shadowRootOptions = { mode: "open" }, k[G("elementProperties")] = /* @__PURE__ */ new Map(), k[G("finalized")] = /* @__PURE__ */ new Map(), iu == null || iu({ ReactiveElement: k }), (P.reactiveElementVersions ?? (P.reactiveElementVersions = [])).push("2.0.4");
|
|
382
382
|
/**
|
|
383
383
|
* @license
|
|
384
384
|
* Copyright 2017 Google LLC
|
|
385
385
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
386
386
|
*/
|
|
387
|
-
const
|
|
388
|
-
\f\r]`,
|
|
389
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
390
|
-
function
|
|
387
|
+
const z = globalThis, eu = z.trustedTypes, vu = eu ? eu.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, Iu = "$lit$", S = `lit$${Math.random().toFixed(9).slice(2)}$`, Ru = "?" + S, ae = `<${Ru}>`, L = document, W = () => L.createComment(""), q = (t) => t === null || typeof t != "object" && typeof t != "function", Uu = Array.isArray, ce = (t) => Uu(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", nu = `[
|
|
388
|
+
\f\r]`, U = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, wu = /-->/g, Su = />/g, N = RegExp(`>|${nu}(?:([^\\s"'>=/]+)(${nu}*=${nu}*(?:[^
|
|
389
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Pu = /'/g, xu = /"/g, ju = /^(?:script|style|textarea|title)$/i, Ae = (t) => (u, ...e) => ({ _$litType$: t, strings: u, values: e }), Gu = Ae(1), I = Symbol.for("lit-noChange"), B = Symbol.for("lit-nothing"), Nu = /* @__PURE__ */ new WeakMap(), O = L.createTreeWalker(L, 129);
|
|
390
|
+
function zu(t, u) {
|
|
391
391
|
if (!Array.isArray(t) || !t.hasOwnProperty("raw"))
|
|
392
392
|
throw Error("invalid template strings array");
|
|
393
|
-
return
|
|
393
|
+
return vu !== void 0 ? vu.createHTML(u) : u;
|
|
394
394
|
}
|
|
395
|
-
const
|
|
395
|
+
const Ce = (t, u) => {
|
|
396
396
|
const e = t.length - 1, r = [];
|
|
397
|
-
let D, s = u === 2 ? "<svg>" : "", i =
|
|
398
|
-
for (let
|
|
399
|
-
const
|
|
400
|
-
let
|
|
401
|
-
for (;
|
|
402
|
-
|
|
403
|
-
const w = i === N && t[
|
|
404
|
-
s += i ===
|
|
405
|
-
}
|
|
406
|
-
return [
|
|
397
|
+
let D, s = u === 2 ? "<svg>" : "", i = U;
|
|
398
|
+
for (let o = 0; o < e; o++) {
|
|
399
|
+
const a = t[o];
|
|
400
|
+
let h, d, l = -1, g = 0;
|
|
401
|
+
for (; g < a.length && (i.lastIndex = g, d = i.exec(a), d !== null); )
|
|
402
|
+
g = i.lastIndex, i === U ? d[1] === "!--" ? i = wu : d[1] !== void 0 ? i = Su : d[2] !== void 0 ? (ju.test(d[2]) && (D = RegExp("</" + d[2], "g")), i = N) : d[3] !== void 0 && (i = N) : i === N ? d[0] === ">" ? (i = D ?? U, l = -1) : d[1] === void 0 ? l = -2 : (l = i.lastIndex - d[2].length, h = d[1], i = d[3] === void 0 ? N : d[3] === '"' ? xu : Pu) : i === xu || i === Pu ? i = N : i === wu || i === Su ? i = U : (i = N, D = void 0);
|
|
403
|
+
const w = i === N && t[o + 1].startsWith("/>") ? " " : "";
|
|
404
|
+
s += i === U ? a + ae : l >= 0 ? (r.push(h), a.slice(0, l) + Iu + a.slice(l) + S + w) : a + S + (l === -2 ? o : w);
|
|
405
|
+
}
|
|
406
|
+
return [zu(t, s + (t[e] || "<?>") + (u === 2 ? "</svg>" : "")), r];
|
|
407
407
|
};
|
|
408
|
-
class
|
|
408
|
+
class J {
|
|
409
409
|
constructor({ strings: u, _$litType$: e }, r) {
|
|
410
410
|
let D;
|
|
411
411
|
this.parts = [];
|
|
412
412
|
let s = 0, i = 0;
|
|
413
|
-
const
|
|
414
|
-
if (this.el =
|
|
413
|
+
const o = u.length - 1, a = this.parts, [h, d] = Ce(u, e);
|
|
414
|
+
if (this.el = J.createElement(h, r), O.currentNode = this.el.content, e === 2) {
|
|
415
415
|
const l = this.el.content.firstChild;
|
|
416
416
|
l.replaceWith(...l.childNodes);
|
|
417
417
|
}
|
|
418
|
-
for (; (D = O.nextNode()) !== null &&
|
|
418
|
+
for (; (D = O.nextNode()) !== null && a.length < o; ) {
|
|
419
419
|
if (D.nodeType === 1) {
|
|
420
420
|
if (D.hasAttributes())
|
|
421
421
|
for (const l of D.getAttributeNames())
|
|
422
|
-
if (l.endsWith(
|
|
423
|
-
const
|
|
424
|
-
|
|
422
|
+
if (l.endsWith(Iu)) {
|
|
423
|
+
const g = d[i++], w = D.getAttribute(l).split(S), X = /([.?@])?(.*)/.exec(g);
|
|
424
|
+
a.push({ type: 1, index: s, name: X[2], strings: w, ctor: X[1] === "." ? Ee : X[1] === "?" ? Fe : X[1] === "@" ? le : Du }), D.removeAttribute(l);
|
|
425
425
|
} else
|
|
426
|
-
l.startsWith(S) && (
|
|
427
|
-
if (
|
|
428
|
-
const l = D.textContent.split(S),
|
|
429
|
-
if (
|
|
426
|
+
l.startsWith(S) && (a.push({ type: 6, index: s }), D.removeAttribute(l));
|
|
427
|
+
if (ju.test(D.tagName)) {
|
|
428
|
+
const l = D.textContent.split(S), g = l.length - 1;
|
|
429
|
+
if (g > 0) {
|
|
430
430
|
D.textContent = eu ? eu.emptyScript : "";
|
|
431
|
-
for (let w = 0; w <
|
|
432
|
-
D.append(l[w],
|
|
433
|
-
D.append(l[
|
|
431
|
+
for (let w = 0; w < g; w++)
|
|
432
|
+
D.append(l[w], W()), O.nextNode(), a.push({ type: 2, index: ++s });
|
|
433
|
+
D.append(l[g], W());
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
} else if (D.nodeType === 8)
|
|
437
|
-
if (D.data ===
|
|
438
|
-
|
|
437
|
+
if (D.data === Ru)
|
|
438
|
+
a.push({ type: 2, index: s });
|
|
439
439
|
else {
|
|
440
440
|
let l = -1;
|
|
441
441
|
for (; (l = D.data.indexOf(S, l + 1)) !== -1; )
|
|
442
|
-
|
|
442
|
+
a.push({ type: 7, index: s }), l += S.length - 1;
|
|
443
443
|
}
|
|
444
444
|
s++;
|
|
445
445
|
}
|
|
@@ -449,15 +449,15 @@ class Z {
|
|
|
449
449
|
return r.innerHTML = u, r;
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
|
-
function
|
|
453
|
-
var i,
|
|
454
|
-
if (u ===
|
|
452
|
+
function R(t, u, e = t, r) {
|
|
453
|
+
var i, o;
|
|
454
|
+
if (u === I)
|
|
455
455
|
return u;
|
|
456
456
|
let D = r !== void 0 ? (i = e._$Co) == null ? void 0 : i[r] : e._$Cl;
|
|
457
|
-
const s =
|
|
458
|
-
return (D == null ? void 0 : D.constructor) !== s && ((
|
|
457
|
+
const s = q(u) ? void 0 : u._$litDirective$;
|
|
458
|
+
return (D == null ? void 0 : D.constructor) !== s && ((o = D == null ? void 0 : D._$AO) == null || o.call(D, !1), s === void 0 ? D = void 0 : (D = new s(t), D._$AT(t, e, r)), r !== void 0 ? (e._$Co ?? (e._$Co = []))[r] = D : e._$Cl = D), D !== void 0 && (u = R(t, D._$AS(t, u.values), D, r)), u;
|
|
459
459
|
}
|
|
460
|
-
class
|
|
460
|
+
class he {
|
|
461
461
|
constructor(u, e) {
|
|
462
462
|
this._$AV = [], this._$AN = void 0, this._$AD = u, this._$AM = e;
|
|
463
463
|
}
|
|
@@ -470,13 +470,13 @@ class ce {
|
|
|
470
470
|
u(u) {
|
|
471
471
|
const { el: { content: e }, parts: r } = this._$AD, D = ((u == null ? void 0 : u.creationScope) ?? L).importNode(e, !0);
|
|
472
472
|
O.currentNode = D;
|
|
473
|
-
let s = O.nextNode(), i = 0,
|
|
474
|
-
for (;
|
|
475
|
-
if (i ===
|
|
476
|
-
let
|
|
477
|
-
|
|
473
|
+
let s = O.nextNode(), i = 0, o = 0, a = r[0];
|
|
474
|
+
for (; a !== void 0; ) {
|
|
475
|
+
if (i === a.index) {
|
|
476
|
+
let h;
|
|
477
|
+
a.type === 2 ? h = new K(s, s.nextSibling, this, u) : a.type === 1 ? h = new a.ctor(s, a.name, a.strings, this, u) : a.type === 6 && (h = new de(s, this, u)), this._$AV.push(h), a = r[++o];
|
|
478
478
|
}
|
|
479
|
-
i !== (
|
|
479
|
+
i !== (a == null ? void 0 : a.index) && (s = O.nextNode(), i++);
|
|
480
480
|
}
|
|
481
481
|
return O.currentNode = L, D;
|
|
482
482
|
}
|
|
@@ -506,7 +506,7 @@ class K {
|
|
|
506
506
|
return this._$AB;
|
|
507
507
|
}
|
|
508
508
|
_$AI(u, e = this) {
|
|
509
|
-
u =
|
|
509
|
+
u = R(this, u, e), q(u) ? u === B || u == null || u === "" ? (this._$AH !== B && this._$AR(), this._$AH = B) : 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);
|
|
510
510
|
}
|
|
511
511
|
S(u) {
|
|
512
512
|
return this._$AA.parentNode.insertBefore(u, this._$AB);
|
|
@@ -515,28 +515,28 @@ class K {
|
|
|
515
515
|
this._$AH !== u && (this._$AR(), this._$AH = this.S(u));
|
|
516
516
|
}
|
|
517
517
|
_(u) {
|
|
518
|
-
this._$AH !== B &&
|
|
518
|
+
this._$AH !== B && q(this._$AH) ? this._$AA.nextSibling.data = u : this.T(L.createTextNode(u)), this._$AH = u;
|
|
519
519
|
}
|
|
520
520
|
$(u) {
|
|
521
521
|
var s;
|
|
522
|
-
const { values: e, _$litType$: r } = u, D = typeof r == "number" ? this._$AC(u) : (r.el === void 0 && (r.el =
|
|
522
|
+
const { values: e, _$litType$: r } = u, D = typeof r == "number" ? this._$AC(u) : (r.el === void 0 && (r.el = J.createElement(zu(r.h, r.h[0]), this.options)), r);
|
|
523
523
|
if (((s = this._$AH) == null ? void 0 : s._$AD) === D)
|
|
524
524
|
this._$AH.p(e);
|
|
525
525
|
else {
|
|
526
|
-
const i = new
|
|
527
|
-
i.p(e), this.T(
|
|
526
|
+
const i = new he(D, this), o = i.u(this.options);
|
|
527
|
+
i.p(e), this.T(o), this._$AH = i;
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
530
|
_$AC(u) {
|
|
531
|
-
let e =
|
|
532
|
-
return e === void 0 &&
|
|
531
|
+
let e = Nu.get(u.strings);
|
|
532
|
+
return e === void 0 && Nu.set(u.strings, e = new J(u)), e;
|
|
533
533
|
}
|
|
534
534
|
k(u) {
|
|
535
|
-
|
|
535
|
+
Uu(this._$AH) || (this._$AH = [], this._$AR());
|
|
536
536
|
const e = this._$AH;
|
|
537
537
|
let r, D = 0;
|
|
538
538
|
for (const s of u)
|
|
539
|
-
D === e.length ? e.push(r = new K(this.S(
|
|
539
|
+
D === e.length ? e.push(r = new K(this.S(W()), this.S(W()), this, this.options)) : r = e[D], r._$AI(s), D++;
|
|
540
540
|
D < e.length && (this._$AR(r && r._$AB.nextSibling, D), e.length = D);
|
|
541
541
|
}
|
|
542
542
|
_$AR(u = this._$AA.nextSibling, e) {
|
|
@@ -565,12 +565,12 @@ class Du {
|
|
|
565
565
|
const s = this.strings;
|
|
566
566
|
let i = !1;
|
|
567
567
|
if (s === void 0)
|
|
568
|
-
u =
|
|
568
|
+
u = R(this, u, e, 0), i = !q(u) || u !== this._$AH && u !== I, i && (this._$AH = u);
|
|
569
569
|
else {
|
|
570
|
-
const
|
|
571
|
-
let
|
|
572
|
-
for (u = s[0],
|
|
573
|
-
|
|
570
|
+
const o = u;
|
|
571
|
+
let a, h;
|
|
572
|
+
for (u = s[0], a = 0; a < s.length - 1; a++)
|
|
573
|
+
h = R(this, o[r + a], e, a), h === I && (h = this._$AH[a]), i || (i = !q(h) || h !== this._$AH[a]), h === B ? u = B : u !== B && (u += (h ?? "") + s[a + 1]), this._$AH[a] = h;
|
|
574
574
|
}
|
|
575
575
|
i && !D && this.j(u);
|
|
576
576
|
}
|
|
@@ -578,7 +578,7 @@ class Du {
|
|
|
578
578
|
u === B ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, u ?? "");
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
|
-
class
|
|
581
|
+
class Ee extends Du {
|
|
582
582
|
constructor() {
|
|
583
583
|
super(...arguments), this.type = 3;
|
|
584
584
|
}
|
|
@@ -586,7 +586,7 @@ class Ae extends Du {
|
|
|
586
586
|
this.element[this.name] = u === B ? void 0 : u;
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
|
-
class
|
|
589
|
+
class Fe extends Du {
|
|
590
590
|
constructor() {
|
|
591
591
|
super(...arguments), this.type = 4;
|
|
592
592
|
}
|
|
@@ -594,12 +594,12 @@ class Ce extends Du {
|
|
|
594
594
|
this.element.toggleAttribute(this.name, !!u && u !== B);
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
|
-
class
|
|
597
|
+
class le extends Du {
|
|
598
598
|
constructor(u, e, r, D, s) {
|
|
599
599
|
super(u, e, r, D, s), this.type = 5;
|
|
600
600
|
}
|
|
601
601
|
_$AI(u, e = this) {
|
|
602
|
-
if ((u =
|
|
602
|
+
if ((u = R(this, u, e, 0) ?? B) === I)
|
|
603
603
|
return;
|
|
604
604
|
const r = this._$AH, D = u === B && r !== B || u.capture !== r.capture || u.once !== r.once || u.passive !== r.passive, s = u !== B && (r === B || D);
|
|
605
605
|
D && this.element.removeEventListener(this.name, this, r), s && this.element.addEventListener(this.name, this, u), this._$AH = u;
|
|
@@ -609,7 +609,7 @@ class he extends Du {
|
|
|
609
609
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, u) : this._$AH.handleEvent(u);
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
|
-
class
|
|
612
|
+
class de {
|
|
613
613
|
constructor(u, e, r) {
|
|
614
614
|
this.element = u, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = r;
|
|
615
615
|
}
|
|
@@ -617,17 +617,17 @@ class Ee {
|
|
|
617
617
|
return this._$AM._$AU;
|
|
618
618
|
}
|
|
619
619
|
_$AI(u) {
|
|
620
|
-
|
|
620
|
+
R(this, u);
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
|
-
const
|
|
624
|
-
|
|
625
|
-
const
|
|
623
|
+
const ou = z.litHtmlPolyfillSupport;
|
|
624
|
+
ou == null || ou(J, K), (z.litHtmlVersions ?? (z.litHtmlVersions = [])).push("3.1.3");
|
|
625
|
+
const pe = (t, u, e) => {
|
|
626
626
|
const r = (e == null ? void 0 : e.renderBefore) ?? u;
|
|
627
627
|
let D = r._$litPart$;
|
|
628
628
|
if (D === void 0) {
|
|
629
629
|
const s = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
630
|
-
r._$litPart$ = D = new K(u.insertBefore(
|
|
630
|
+
r._$litPart$ = D = new K(u.insertBefore(W(), s), s, void 0, e ?? {});
|
|
631
631
|
}
|
|
632
632
|
return D._$AI(t), D;
|
|
633
633
|
};
|
|
@@ -647,7 +647,7 @@ class H extends k {
|
|
|
647
647
|
}
|
|
648
648
|
update(u) {
|
|
649
649
|
const e = this.render();
|
|
650
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(u), this._$Do =
|
|
650
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(u), this._$Do = pe(e, this.renderRoot, this.renderOptions);
|
|
651
651
|
}
|
|
652
652
|
connectedCallback() {
|
|
653
653
|
var u;
|
|
@@ -658,47 +658,47 @@ class H extends k {
|
|
|
658
658
|
super.disconnectedCallback(), (u = this._$Do) == null || u.setConnected(!1);
|
|
659
659
|
}
|
|
660
660
|
render() {
|
|
661
|
-
return
|
|
661
|
+
return I;
|
|
662
662
|
}
|
|
663
663
|
}
|
|
664
|
-
var
|
|
665
|
-
H._$litElement$ = !0, H.finalized = !0, (
|
|
666
|
-
const
|
|
667
|
-
|
|
664
|
+
var Lu;
|
|
665
|
+
H._$litElement$ = !0, H.finalized = !0, (Lu = globalThis.litElementHydrateSupport) == null || Lu.call(globalThis, { LitElement: H });
|
|
666
|
+
const au = globalThis.litElementPolyfillSupport;
|
|
667
|
+
au == null || au({ LitElement: H });
|
|
668
668
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.5");
|
|
669
669
|
/**
|
|
670
670
|
* @license
|
|
671
671
|
* Copyright 2017 Google LLC
|
|
672
672
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
673
673
|
*/
|
|
674
|
-
const
|
|
674
|
+
const fe = { attribute: !0, type: String, converter: uu, reflect: !1, hasChanged: fu }, Be = (t = fe, u, e) => {
|
|
675
675
|
const { kind: r, metadata: D } = e;
|
|
676
676
|
let s = globalThis.litPropertyMetadata.get(D);
|
|
677
677
|
if (s === void 0 && globalThis.litPropertyMetadata.set(D, s = /* @__PURE__ */ new Map()), s.set(e.name, t), r === "accessor") {
|
|
678
678
|
const { name: i } = e;
|
|
679
|
-
return { set(
|
|
680
|
-
const
|
|
681
|
-
u.set.call(this,
|
|
682
|
-
}, init(
|
|
683
|
-
return
|
|
679
|
+
return { set(o) {
|
|
680
|
+
const a = u.get.call(this);
|
|
681
|
+
u.set.call(this, o), this.requestUpdate(i, a, t);
|
|
682
|
+
}, init(o) {
|
|
683
|
+
return o !== void 0 && this.P(i, void 0, t), o;
|
|
684
684
|
} };
|
|
685
685
|
}
|
|
686
686
|
if (r === "setter") {
|
|
687
687
|
const { name: i } = e;
|
|
688
|
-
return function(
|
|
689
|
-
const
|
|
690
|
-
u.call(this,
|
|
688
|
+
return function(o) {
|
|
689
|
+
const a = this[i];
|
|
690
|
+
u.call(this, o), this.requestUpdate(i, a, t);
|
|
691
691
|
};
|
|
692
692
|
}
|
|
693
693
|
throw Error("Unsupported decorator location: " + r);
|
|
694
694
|
};
|
|
695
|
-
function
|
|
696
|
-
return (u, e) => typeof e == "object" ?
|
|
695
|
+
function Bu(t) {
|
|
696
|
+
return (u, e) => typeof e == "object" ? Be(t, u, e) : ((r, D, s) => {
|
|
697
697
|
const i = D.hasOwnProperty(s);
|
|
698
698
|
return D.constructor.createProperty(s, i ? { ...r, wrapped: !0 } : r), i ? Object.getOwnPropertyDescriptor(D, s) : void 0;
|
|
699
699
|
})(t, u, e);
|
|
700
700
|
}
|
|
701
|
-
const
|
|
701
|
+
const me = (t, u, e) => {
|
|
702
702
|
if (!u)
|
|
703
703
|
return;
|
|
704
704
|
const r = Array.isArray(u) ? u : u.match(/([^[.\]])+/g), D = r == null ? void 0 : r.reduce(
|
|
@@ -707,7 +707,7 @@ const pe = (t, u, e) => {
|
|
|
707
707
|
);
|
|
708
708
|
return D === void 0 ? e : D;
|
|
709
709
|
};
|
|
710
|
-
function
|
|
710
|
+
function ye(t) {
|
|
711
711
|
if (!t)
|
|
712
712
|
return !1;
|
|
713
713
|
const u = t.constructor && t.constructor.toString().substring(0, 5) === "class";
|
|
@@ -716,7 +716,7 @@ function fe(t) {
|
|
|
716
716
|
const e = t.prototype.constructor && t.prototype.constructor.toString && t.prototype.constructor.toString().substring(0, 5) === "class";
|
|
717
717
|
return u || e;
|
|
718
718
|
}
|
|
719
|
-
const
|
|
719
|
+
const ge = () => {
|
|
720
720
|
const t = "[object Number]", e = Object.prototype.toString;
|
|
721
721
|
function r(s) {
|
|
722
722
|
return !!s && typeof s == "object";
|
|
@@ -724,107 +724,145 @@ const Be = () => {
|
|
|
724
724
|
return function(i) {
|
|
725
725
|
return typeof i == "number" || r(i) && e.call(i) == t;
|
|
726
726
|
};
|
|
727
|
-
},
|
|
727
|
+
}, $e = ge(), _e = (t, u, e) => {
|
|
728
728
|
const r = Array.isArray(u) ? u : u.match(/([^[.\]])+/g);
|
|
729
729
|
r == null || r.reduce((D, s, i) => (D[s] === void 0 && (D[s] = {}), i === r.length - 1 && (D[s] = e), D[s]), t);
|
|
730
|
-
},
|
|
730
|
+
}, Vu = "data-three-uuid", Wu = (t, u, e) => {
|
|
731
731
|
var D;
|
|
732
|
-
const r =
|
|
733
|
-
if (
|
|
732
|
+
const r = me(t, u);
|
|
733
|
+
if ($e(e) && (r != null && r.setScalar))
|
|
734
734
|
r.setScalar(+e);
|
|
735
735
|
else if (r != null && r.set)
|
|
736
736
|
if (typeof e == "string") {
|
|
737
|
-
const s = e.split(","), i = s.every((
|
|
737
|
+
const s = e.split(","), i = s.every((o) => !o.match(/^[^\d,]+$/));
|
|
738
738
|
if ((D = e.toLowerCase().trim().match(/^#[\dabcdef]{3,6}$/)) != null && D.length)
|
|
739
739
|
if (e.length === 4) {
|
|
740
|
-
const
|
|
741
|
-
r.set(+`0x${
|
|
740
|
+
const o = [e[1], e[1], e[2], e[2], e[3], e[3]].join("");
|
|
741
|
+
r.set(+`0x${o}`);
|
|
742
742
|
} else
|
|
743
743
|
r.set(+`0x${e.slice(1)}`);
|
|
744
744
|
else
|
|
745
|
-
s != null && s.length && i ? r.set(...s.map((
|
|
745
|
+
s != null && s.length && i ? r.set(...s.map((o) => +o)) : r.set(e);
|
|
746
746
|
} else {
|
|
747
747
|
const s = Array.isArray(e) ? e : [e];
|
|
748
748
|
r.set(...s);
|
|
749
749
|
}
|
|
750
750
|
else
|
|
751
|
-
|
|
751
|
+
_e(t, u, e);
|
|
752
|
+
}, cu = {
|
|
753
|
+
$scene: (t) => {
|
|
754
|
+
const u = t.closest("three-lunchbox");
|
|
755
|
+
return u == null ? void 0 : u.three.scene;
|
|
756
|
+
},
|
|
757
|
+
$camera: (t) => {
|
|
758
|
+
const u = t.closest("three-lunchbox");
|
|
759
|
+
return u == null ? void 0 : u.three.camera;
|
|
760
|
+
},
|
|
761
|
+
$renderer: (t) => {
|
|
762
|
+
const u = t.closest("three-lunchbox");
|
|
763
|
+
return u == null ? void 0 : u.three.renderer;
|
|
764
|
+
},
|
|
765
|
+
$domElement: (t) => {
|
|
766
|
+
const u = t.closest("three-lunchbox");
|
|
767
|
+
return u == null ? void 0 : u.three.renderer.domElement;
|
|
768
|
+
}
|
|
769
|
+
}, hu = (t, u) => {
|
|
770
|
+
var r;
|
|
771
|
+
return typeof t != "string" ? t : t === "" ? !0 : ((r = cu[t]) == null ? void 0 : r.call(cu, u)) ?? t;
|
|
752
772
|
};
|
|
753
|
-
var
|
|
773
|
+
var be = Object.defineProperty, ve = (t, u, e, r) => {
|
|
754
774
|
for (var D = void 0, s = t.length - 1, i; s >= 0; s--)
|
|
755
775
|
(i = t[s]) && (D = i(u, e, D) || D);
|
|
756
|
-
return D &&
|
|
776
|
+
return D && be(u, e, D), D;
|
|
757
777
|
};
|
|
758
|
-
const
|
|
759
|
-
|
|
778
|
+
const qu = "raycast", Tu = [
|
|
779
|
+
qu,
|
|
760
780
|
"args",
|
|
761
781
|
"data"
|
|
762
|
-
],
|
|
763
|
-
const u = typeof t == "string" ?
|
|
764
|
-
if (!
|
|
782
|
+
], Ju = (t) => {
|
|
783
|
+
const u = typeof t == "string" ? $[t] : t;
|
|
784
|
+
if (!ye(u))
|
|
765
785
|
return null;
|
|
766
786
|
class e extends H {
|
|
767
787
|
constructor() {
|
|
768
788
|
super(...arguments), this.args = [], this.instance = null, this.dispose = [], this.mutationObserver = null;
|
|
769
789
|
}
|
|
770
790
|
connectedCallback() {
|
|
771
|
-
super.connectedCallback(), this.mutationObserver = new MutationObserver((
|
|
772
|
-
|
|
773
|
-
if (!
|
|
791
|
+
super.connectedCallback(), this.mutationObserver = new MutationObserver((i) => {
|
|
792
|
+
i.forEach((o) => {
|
|
793
|
+
if (!o.attributeName)
|
|
774
794
|
return;
|
|
775
|
-
const a = this.attributes.getNamedItem(
|
|
795
|
+
const a = this.attributes.getNamedItem(o.attributeName);
|
|
776
796
|
a && this.updateProperty(a);
|
|
777
797
|
});
|
|
778
798
|
}), this.mutationObserver.observe(this, {
|
|
779
799
|
attributes: !0
|
|
780
|
-
}), this.instance = new u(...this.args), this.getAttributeNames().forEach((
|
|
781
|
-
const
|
|
782
|
-
|
|
783
|
-
}), Array.from(this.attributes).forEach(this.updateProperty.bind(this))
|
|
784
|
-
const D = this.
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
800
|
+
}), this.instance = new u(...this.args.map((i) => hu(i, this))), this.getAttributeNames().forEach((i) => {
|
|
801
|
+
const o = this.attributes.getNamedItem(i);
|
|
802
|
+
o && this.updateProperty(o);
|
|
803
|
+
}), Array.from(this.attributes).forEach(this.updateProperty.bind(this));
|
|
804
|
+
const D = this.instance;
|
|
805
|
+
D.uuid && this.setAttribute(Vu, D.uuid), this.dispatchEvent(new CustomEvent("instancecreated", {
|
|
806
|
+
detail: {
|
|
807
|
+
instance: this.instance
|
|
808
|
+
}
|
|
809
|
+
}));
|
|
810
|
+
const s = this.parentElement;
|
|
811
|
+
if (s.instance) {
|
|
812
|
+
const i = this.instance, o = this.instance, a = s.instance, h = s.instance;
|
|
813
|
+
if (i.type.toLowerCase().includes("geometry") && a.geometry)
|
|
814
|
+
a.geometry = i;
|
|
815
|
+
else if (o.type.toLowerCase().includes("material") && a.material)
|
|
816
|
+
a.material = o;
|
|
817
|
+
else if (h.add)
|
|
818
|
+
try {
|
|
819
|
+
h.add(D);
|
|
820
|
+
} catch {
|
|
821
|
+
throw new Error(`Error adding ${this.tagName} to ${h}`);
|
|
822
|
+
}
|
|
788
823
|
}
|
|
789
824
|
}
|
|
790
825
|
/** Update an instance's property. When creating a `<mesh position-y="0.5">`, for example, this sets `mesh.position.y = 0.5`. */
|
|
791
826
|
updateProperty(D) {
|
|
792
827
|
const { name: s, value: i } = D;
|
|
793
|
-
let
|
|
828
|
+
let o = s;
|
|
794
829
|
Object.keys(this.instance ?? {}).forEach((d) => {
|
|
795
|
-
d.toLowerCase() ===
|
|
830
|
+
d.toLowerCase() === o && (o = d);
|
|
796
831
|
});
|
|
797
|
-
const
|
|
798
|
-
if (
|
|
832
|
+
const a = o.split("-");
|
|
833
|
+
if (Tu.includes(o) || Tu.includes(a[0]))
|
|
799
834
|
return;
|
|
800
|
-
let
|
|
835
|
+
let h = hu(i, this);
|
|
801
836
|
try {
|
|
802
|
-
|
|
837
|
+
h = JSON.parse(i === "" ? "true" : i);
|
|
803
838
|
} catch {
|
|
804
839
|
}
|
|
805
|
-
this.instance &&
|
|
840
|
+
this.instance && Wu(this.instance, a, h);
|
|
806
841
|
}
|
|
807
842
|
disconnectedCallback() {
|
|
808
|
-
|
|
843
|
+
var i, o;
|
|
844
|
+
super.disconnectedCallback();
|
|
845
|
+
const D = this.instance, s = this.instance;
|
|
846
|
+
(i = D.dispose) == null || i.call(D), (o = s.removeFromParent) == null || o.call(s);
|
|
809
847
|
}
|
|
810
848
|
/** Render */
|
|
811
849
|
render() {
|
|
812
|
-
return
|
|
850
|
+
return Gu`<slot></slot>`;
|
|
813
851
|
}
|
|
814
852
|
}
|
|
815
|
-
return
|
|
816
|
-
|
|
853
|
+
return ve([
|
|
854
|
+
Bu({ type: Array })
|
|
817
855
|
], e.prototype, "args"), e;
|
|
818
856
|
};
|
|
819
|
-
function
|
|
857
|
+
function we(t) {
|
|
820
858
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
821
859
|
}
|
|
822
|
-
var
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
const Au =
|
|
827
|
-
var
|
|
860
|
+
var su = {};
|
|
861
|
+
su.Space_Separator = /[\u1680\u2000-\u200A\u202F\u205F\u3000]/;
|
|
862
|
+
su.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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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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]|\uD87E[\uDC00-\uDE1D]/;
|
|
863
|
+
su.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\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-\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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DC00-\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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34-\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]/;
|
|
864
|
+
const Au = su;
|
|
865
|
+
var Se = {
|
|
828
866
|
isSpaceSeparator(t) {
|
|
829
867
|
return typeof t == "string" && Au.Space_Separator.test(t);
|
|
830
868
|
},
|
|
@@ -841,21 +879,21 @@ var _e = {
|
|
|
841
879
|
return typeof t == "string" && /[0-9A-Fa-f]/.test(t);
|
|
842
880
|
}
|
|
843
881
|
};
|
|
844
|
-
const p =
|
|
845
|
-
let
|
|
846
|
-
var
|
|
847
|
-
|
|
882
|
+
const p = Se;
|
|
883
|
+
let Eu, m, b, tu, x, y, f, mu, V;
|
|
884
|
+
var Pe = function(u, e) {
|
|
885
|
+
Eu = String(u), m = "start", b = [], tu = 0, x = 1, y = 0, f = void 0, mu = void 0, V = void 0;
|
|
848
886
|
do
|
|
849
|
-
f =
|
|
887
|
+
f = xe(), Me[m]();
|
|
850
888
|
while (f.type !== "eof");
|
|
851
|
-
return typeof e == "function" ?
|
|
889
|
+
return typeof e == "function" ? Fu({ "": V }, "", e) : V;
|
|
852
890
|
};
|
|
853
|
-
function
|
|
891
|
+
function Fu(t, u, e) {
|
|
854
892
|
const r = t[u];
|
|
855
893
|
if (r != null && typeof r == "object")
|
|
856
894
|
if (Array.isArray(r))
|
|
857
895
|
for (let D = 0; D < r.length; D++) {
|
|
858
|
-
const s = String(D), i =
|
|
896
|
+
const s = String(D), i = Fu(r, s, e);
|
|
859
897
|
i === void 0 ? delete r[s] : Object.defineProperty(r, s, {
|
|
860
898
|
value: i,
|
|
861
899
|
writable: !0,
|
|
@@ -865,7 +903,7 @@ function Eu(t, u, e) {
|
|
|
865
903
|
}
|
|
866
904
|
else
|
|
867
905
|
for (const D in r) {
|
|
868
|
-
const s =
|
|
906
|
+
const s = Fu(r, D, e);
|
|
869
907
|
s === void 0 ? delete r[D] : Object.defineProperty(r, D, {
|
|
870
908
|
value: s,
|
|
871
909
|
writable: !0,
|
|
@@ -875,25 +913,25 @@ function Eu(t, u, e) {
|
|
|
875
913
|
}
|
|
876
914
|
return e.call(t, u, r);
|
|
877
915
|
}
|
|
878
|
-
let A, c,
|
|
879
|
-
function
|
|
880
|
-
for (A = "default", c = "",
|
|
916
|
+
let A, c, j, _, C;
|
|
917
|
+
function xe() {
|
|
918
|
+
for (A = "default", c = "", j = !1, _ = 1; ; ) {
|
|
881
919
|
C = v();
|
|
882
|
-
const t =
|
|
920
|
+
const t = Zu[A]();
|
|
883
921
|
if (t)
|
|
884
922
|
return t;
|
|
885
923
|
}
|
|
886
924
|
}
|
|
887
925
|
function v() {
|
|
888
|
-
if (
|
|
889
|
-
return String.fromCodePoint(
|
|
926
|
+
if (Eu[tu])
|
|
927
|
+
return String.fromCodePoint(Eu.codePointAt(tu));
|
|
890
928
|
}
|
|
891
929
|
function n() {
|
|
892
930
|
const t = v();
|
|
893
931
|
return t === `
|
|
894
|
-
` ? (x++,
|
|
932
|
+
` ? (x++, y = 0) : t ? y += t.length : y++, t && (tu += t.length), t;
|
|
895
933
|
}
|
|
896
|
-
const
|
|
934
|
+
const Zu = {
|
|
897
935
|
default() {
|
|
898
936
|
switch (C) {
|
|
899
937
|
case " ":
|
|
@@ -913,13 +951,13 @@ const qu = {
|
|
|
913
951
|
n(), A = "comment";
|
|
914
952
|
return;
|
|
915
953
|
case void 0:
|
|
916
|
-
return n(),
|
|
954
|
+
return n(), E("eof");
|
|
917
955
|
}
|
|
918
956
|
if (p.isSpaceSeparator(C)) {
|
|
919
957
|
n();
|
|
920
958
|
return;
|
|
921
959
|
}
|
|
922
|
-
return
|
|
960
|
+
return Zu[m]();
|
|
923
961
|
},
|
|
924
962
|
comment() {
|
|
925
963
|
switch (C) {
|
|
@@ -930,7 +968,7 @@ const qu = {
|
|
|
930
968
|
n(), A = "singleLineComment";
|
|
931
969
|
return;
|
|
932
970
|
}
|
|
933
|
-
throw
|
|
971
|
+
throw F(n());
|
|
934
972
|
},
|
|
935
973
|
multiLineComment() {
|
|
936
974
|
switch (C) {
|
|
@@ -938,7 +976,7 @@ const qu = {
|
|
|
938
976
|
n(), A = "multiLineCommentAsterisk";
|
|
939
977
|
return;
|
|
940
978
|
case void 0:
|
|
941
|
-
throw
|
|
979
|
+
throw F(n());
|
|
942
980
|
}
|
|
943
981
|
n();
|
|
944
982
|
},
|
|
@@ -951,7 +989,7 @@ const qu = {
|
|
|
951
989
|
n(), A = "default";
|
|
952
990
|
return;
|
|
953
991
|
case void 0:
|
|
954
|
-
throw
|
|
992
|
+
throw F(n());
|
|
955
993
|
}
|
|
956
994
|
n(), A = "multiLineComment";
|
|
957
995
|
},
|
|
@@ -965,7 +1003,7 @@ const qu = {
|
|
|
965
1003
|
n(), A = "default";
|
|
966
1004
|
return;
|
|
967
1005
|
case void 0:
|
|
968
|
-
return n(),
|
|
1006
|
+
return n(), E("eof");
|
|
969
1007
|
}
|
|
970
1008
|
n();
|
|
971
1009
|
},
|
|
@@ -973,16 +1011,16 @@ const qu = {
|
|
|
973
1011
|
switch (C) {
|
|
974
1012
|
case "{":
|
|
975
1013
|
case "[":
|
|
976
|
-
return
|
|
1014
|
+
return E("punctuator", n());
|
|
977
1015
|
case "n":
|
|
978
|
-
return n(), T("ull"),
|
|
1016
|
+
return n(), T("ull"), E("null", null);
|
|
979
1017
|
case "t":
|
|
980
|
-
return n(), T("rue"),
|
|
1018
|
+
return n(), T("rue"), E("boolean", !0);
|
|
981
1019
|
case "f":
|
|
982
|
-
return n(), T("alse"),
|
|
1020
|
+
return n(), T("alse"), E("boolean", !1);
|
|
983
1021
|
case "-":
|
|
984
1022
|
case "+":
|
|
985
|
-
n() === "-" && (
|
|
1023
|
+
n() === "-" && (_ = -1), A = "sign";
|
|
986
1024
|
return;
|
|
987
1025
|
case ".":
|
|
988
1026
|
c = n(), A = "decimalPointLeading";
|
|
@@ -1002,28 +1040,28 @@ const qu = {
|
|
|
1002
1040
|
c = n(), A = "decimalInteger";
|
|
1003
1041
|
return;
|
|
1004
1042
|
case "I":
|
|
1005
|
-
return n(), T("nfinity"),
|
|
1043
|
+
return n(), T("nfinity"), E("numeric", 1 / 0);
|
|
1006
1044
|
case "N":
|
|
1007
|
-
return n(), T("aN"),
|
|
1045
|
+
return n(), T("aN"), E("numeric", NaN);
|
|
1008
1046
|
case '"':
|
|
1009
1047
|
case "'":
|
|
1010
|
-
|
|
1048
|
+
j = n() === '"', c = "", A = "string";
|
|
1011
1049
|
return;
|
|
1012
1050
|
}
|
|
1013
|
-
throw
|
|
1051
|
+
throw F(n());
|
|
1014
1052
|
},
|
|
1015
1053
|
identifierNameStartEscape() {
|
|
1016
1054
|
if (C !== "u")
|
|
1017
|
-
throw
|
|
1055
|
+
throw F(n());
|
|
1018
1056
|
n();
|
|
1019
|
-
const t =
|
|
1057
|
+
const t = lu();
|
|
1020
1058
|
switch (t) {
|
|
1021
1059
|
case "$":
|
|
1022
1060
|
case "_":
|
|
1023
1061
|
break;
|
|
1024
1062
|
default:
|
|
1025
1063
|
if (!p.isIdStartChar(t))
|
|
1026
|
-
throw
|
|
1064
|
+
throw Mu();
|
|
1027
1065
|
break;
|
|
1028
1066
|
}
|
|
1029
1067
|
c += t, A = "identifierName";
|
|
@@ -1044,13 +1082,13 @@ const qu = {
|
|
|
1044
1082
|
c += n();
|
|
1045
1083
|
return;
|
|
1046
1084
|
}
|
|
1047
|
-
return
|
|
1085
|
+
return E("identifier", c);
|
|
1048
1086
|
},
|
|
1049
1087
|
identifierNameEscape() {
|
|
1050
1088
|
if (C !== "u")
|
|
1051
|
-
throw
|
|
1089
|
+
throw F(n());
|
|
1052
1090
|
n();
|
|
1053
|
-
const t =
|
|
1091
|
+
const t = lu();
|
|
1054
1092
|
switch (t) {
|
|
1055
1093
|
case "$":
|
|
1056
1094
|
case "_":
|
|
@@ -1059,7 +1097,7 @@ const qu = {
|
|
|
1059
1097
|
break;
|
|
1060
1098
|
default:
|
|
1061
1099
|
if (!p.isIdContinueChar(t))
|
|
1062
|
-
throw
|
|
1100
|
+
throw Mu();
|
|
1063
1101
|
break;
|
|
1064
1102
|
}
|
|
1065
1103
|
c += t, A = "identifierName";
|
|
@@ -1084,11 +1122,11 @@ const qu = {
|
|
|
1084
1122
|
c = n(), A = "decimalInteger";
|
|
1085
1123
|
return;
|
|
1086
1124
|
case "I":
|
|
1087
|
-
return n(), T("nfinity"),
|
|
1125
|
+
return n(), T("nfinity"), E("numeric", _ * (1 / 0));
|
|
1088
1126
|
case "N":
|
|
1089
|
-
return n(), T("aN"),
|
|
1127
|
+
return n(), T("aN"), E("numeric", NaN);
|
|
1090
1128
|
}
|
|
1091
|
-
throw
|
|
1129
|
+
throw F(n());
|
|
1092
1130
|
},
|
|
1093
1131
|
zero() {
|
|
1094
1132
|
switch (C) {
|
|
@@ -1104,7 +1142,7 @@ const qu = {
|
|
|
1104
1142
|
c += n(), A = "hexadecimal";
|
|
1105
1143
|
return;
|
|
1106
1144
|
}
|
|
1107
|
-
return
|
|
1145
|
+
return E("numeric", _ * 0);
|
|
1108
1146
|
},
|
|
1109
1147
|
decimalInteger() {
|
|
1110
1148
|
switch (C) {
|
|
@@ -1120,14 +1158,14 @@ const qu = {
|
|
|
1120
1158
|
c += n();
|
|
1121
1159
|
return;
|
|
1122
1160
|
}
|
|
1123
|
-
return
|
|
1161
|
+
return E("numeric", _ * Number(c));
|
|
1124
1162
|
},
|
|
1125
1163
|
decimalPointLeading() {
|
|
1126
1164
|
if (p.isDigit(C)) {
|
|
1127
1165
|
c += n(), A = "decimalFraction";
|
|
1128
1166
|
return;
|
|
1129
1167
|
}
|
|
1130
|
-
throw
|
|
1168
|
+
throw F(n());
|
|
1131
1169
|
},
|
|
1132
1170
|
decimalPoint() {
|
|
1133
1171
|
switch (C) {
|
|
@@ -1140,7 +1178,7 @@ const qu = {
|
|
|
1140
1178
|
c += n(), A = "decimalFraction";
|
|
1141
1179
|
return;
|
|
1142
1180
|
}
|
|
1143
|
-
return
|
|
1181
|
+
return E("numeric", _ * Number(c));
|
|
1144
1182
|
},
|
|
1145
1183
|
decimalFraction() {
|
|
1146
1184
|
switch (C) {
|
|
@@ -1153,7 +1191,7 @@ const qu = {
|
|
|
1153
1191
|
c += n();
|
|
1154
1192
|
return;
|
|
1155
1193
|
}
|
|
1156
|
-
return
|
|
1194
|
+
return E("numeric", _ * Number(c));
|
|
1157
1195
|
},
|
|
1158
1196
|
decimalExponent() {
|
|
1159
1197
|
switch (C) {
|
|
@@ -1166,61 +1204,61 @@ const qu = {
|
|
|
1166
1204
|
c += n(), A = "decimalExponentInteger";
|
|
1167
1205
|
return;
|
|
1168
1206
|
}
|
|
1169
|
-
throw
|
|
1207
|
+
throw F(n());
|
|
1170
1208
|
},
|
|
1171
1209
|
decimalExponentSign() {
|
|
1172
1210
|
if (p.isDigit(C)) {
|
|
1173
1211
|
c += n(), A = "decimalExponentInteger";
|
|
1174
1212
|
return;
|
|
1175
1213
|
}
|
|
1176
|
-
throw
|
|
1214
|
+
throw F(n());
|
|
1177
1215
|
},
|
|
1178
1216
|
decimalExponentInteger() {
|
|
1179
1217
|
if (p.isDigit(C)) {
|
|
1180
1218
|
c += n();
|
|
1181
1219
|
return;
|
|
1182
1220
|
}
|
|
1183
|
-
return
|
|
1221
|
+
return E("numeric", _ * Number(c));
|
|
1184
1222
|
},
|
|
1185
1223
|
hexadecimal() {
|
|
1186
1224
|
if (p.isHexDigit(C)) {
|
|
1187
1225
|
c += n(), A = "hexadecimalInteger";
|
|
1188
1226
|
return;
|
|
1189
1227
|
}
|
|
1190
|
-
throw
|
|
1228
|
+
throw F(n());
|
|
1191
1229
|
},
|
|
1192
1230
|
hexadecimalInteger() {
|
|
1193
1231
|
if (p.isHexDigit(C)) {
|
|
1194
1232
|
c += n();
|
|
1195
1233
|
return;
|
|
1196
1234
|
}
|
|
1197
|
-
return
|
|
1235
|
+
return E("numeric", _ * Number(c));
|
|
1198
1236
|
},
|
|
1199
1237
|
string() {
|
|
1200
1238
|
switch (C) {
|
|
1201
1239
|
case "\\":
|
|
1202
|
-
n(), c +=
|
|
1240
|
+
n(), c += Ne();
|
|
1203
1241
|
return;
|
|
1204
1242
|
case '"':
|
|
1205
|
-
if (
|
|
1206
|
-
return n(),
|
|
1243
|
+
if (j)
|
|
1244
|
+
return n(), E("string", c);
|
|
1207
1245
|
c += n();
|
|
1208
1246
|
return;
|
|
1209
1247
|
case "'":
|
|
1210
|
-
if (!
|
|
1211
|
-
return n(),
|
|
1248
|
+
if (!j)
|
|
1249
|
+
return n(), E("string", c);
|
|
1212
1250
|
c += n();
|
|
1213
1251
|
return;
|
|
1214
1252
|
case `
|
|
1215
1253
|
`:
|
|
1216
1254
|
case "\r":
|
|
1217
|
-
throw
|
|
1255
|
+
throw F(n());
|
|
1218
1256
|
case "\u2028":
|
|
1219
1257
|
case "\u2029":
|
|
1220
|
-
|
|
1258
|
+
Oe(C);
|
|
1221
1259
|
break;
|
|
1222
1260
|
case void 0:
|
|
1223
|
-
throw
|
|
1261
|
+
throw F(n());
|
|
1224
1262
|
}
|
|
1225
1263
|
c += n();
|
|
1226
1264
|
},
|
|
@@ -1228,7 +1266,7 @@ const qu = {
|
|
|
1228
1266
|
switch (C) {
|
|
1229
1267
|
case "{":
|
|
1230
1268
|
case "[":
|
|
1231
|
-
return
|
|
1269
|
+
return E("punctuator", n());
|
|
1232
1270
|
}
|
|
1233
1271
|
A = "value";
|
|
1234
1272
|
},
|
|
@@ -1242,22 +1280,22 @@ const qu = {
|
|
|
1242
1280
|
n(), A = "identifierNameStartEscape";
|
|
1243
1281
|
return;
|
|
1244
1282
|
case "}":
|
|
1245
|
-
return
|
|
1283
|
+
return E("punctuator", n());
|
|
1246
1284
|
case '"':
|
|
1247
1285
|
case "'":
|
|
1248
|
-
|
|
1286
|
+
j = n() === '"', A = "string";
|
|
1249
1287
|
return;
|
|
1250
1288
|
}
|
|
1251
1289
|
if (p.isIdStartChar(C)) {
|
|
1252
1290
|
c += n(), A = "identifierName";
|
|
1253
1291
|
return;
|
|
1254
1292
|
}
|
|
1255
|
-
throw
|
|
1293
|
+
throw F(n());
|
|
1256
1294
|
},
|
|
1257
1295
|
afterPropertyName() {
|
|
1258
1296
|
if (C === ":")
|
|
1259
|
-
return
|
|
1260
|
-
throw
|
|
1297
|
+
return E("punctuator", n());
|
|
1298
|
+
throw F(n());
|
|
1261
1299
|
},
|
|
1262
1300
|
beforePropertyValue() {
|
|
1263
1301
|
A = "value";
|
|
@@ -1266,43 +1304,43 @@ const qu = {
|
|
|
1266
1304
|
switch (C) {
|
|
1267
1305
|
case ",":
|
|
1268
1306
|
case "}":
|
|
1269
|
-
return
|
|
1307
|
+
return E("punctuator", n());
|
|
1270
1308
|
}
|
|
1271
|
-
throw
|
|
1309
|
+
throw F(n());
|
|
1272
1310
|
},
|
|
1273
1311
|
beforeArrayValue() {
|
|
1274
1312
|
if (C === "]")
|
|
1275
|
-
return
|
|
1313
|
+
return E("punctuator", n());
|
|
1276
1314
|
A = "value";
|
|
1277
1315
|
},
|
|
1278
1316
|
afterArrayValue() {
|
|
1279
1317
|
switch (C) {
|
|
1280
1318
|
case ",":
|
|
1281
1319
|
case "]":
|
|
1282
|
-
return
|
|
1320
|
+
return E("punctuator", n());
|
|
1283
1321
|
}
|
|
1284
|
-
throw
|
|
1322
|
+
throw F(n());
|
|
1285
1323
|
},
|
|
1286
1324
|
end() {
|
|
1287
|
-
throw
|
|
1325
|
+
throw F(n());
|
|
1288
1326
|
}
|
|
1289
1327
|
};
|
|
1290
|
-
function
|
|
1328
|
+
function E(t, u) {
|
|
1291
1329
|
return {
|
|
1292
1330
|
type: t,
|
|
1293
1331
|
value: u,
|
|
1294
1332
|
line: x,
|
|
1295
|
-
column:
|
|
1333
|
+
column: y
|
|
1296
1334
|
};
|
|
1297
1335
|
}
|
|
1298
1336
|
function T(t) {
|
|
1299
1337
|
for (const u of t) {
|
|
1300
1338
|
if (v() !== u)
|
|
1301
|
-
throw
|
|
1339
|
+
throw F(n());
|
|
1302
1340
|
n();
|
|
1303
1341
|
}
|
|
1304
1342
|
}
|
|
1305
|
-
function
|
|
1343
|
+
function Ne() {
|
|
1306
1344
|
switch (v()) {
|
|
1307
1345
|
case "b":
|
|
1308
1346
|
return n(), "\b";
|
|
@@ -1319,12 +1357,12 @@ function Se() {
|
|
|
1319
1357
|
return n(), "\v";
|
|
1320
1358
|
case "0":
|
|
1321
1359
|
if (n(), p.isDigit(v()))
|
|
1322
|
-
throw
|
|
1360
|
+
throw F(n());
|
|
1323
1361
|
return "\0";
|
|
1324
1362
|
case "x":
|
|
1325
|
-
return n(),
|
|
1363
|
+
return n(), Te();
|
|
1326
1364
|
case "u":
|
|
1327
|
-
return n(),
|
|
1365
|
+
return n(), lu();
|
|
1328
1366
|
case `
|
|
1329
1367
|
`:
|
|
1330
1368
|
case "\u2028":
|
|
@@ -1342,29 +1380,29 @@ function Se() {
|
|
|
1342
1380
|
case "7":
|
|
1343
1381
|
case "8":
|
|
1344
1382
|
case "9":
|
|
1345
|
-
throw
|
|
1383
|
+
throw F(n());
|
|
1346
1384
|
case void 0:
|
|
1347
|
-
throw
|
|
1385
|
+
throw F(n());
|
|
1348
1386
|
}
|
|
1349
1387
|
return n();
|
|
1350
1388
|
}
|
|
1351
|
-
function
|
|
1389
|
+
function Te() {
|
|
1352
1390
|
let t = "", u = v();
|
|
1353
1391
|
if (!p.isHexDigit(u) || (t += n(), u = v(), !p.isHexDigit(u)))
|
|
1354
|
-
throw
|
|
1392
|
+
throw F(n());
|
|
1355
1393
|
return t += n(), String.fromCodePoint(parseInt(t, 16));
|
|
1356
1394
|
}
|
|
1357
|
-
function
|
|
1395
|
+
function lu() {
|
|
1358
1396
|
let t = "", u = 4;
|
|
1359
1397
|
for (; u-- > 0; ) {
|
|
1360
1398
|
const e = v();
|
|
1361
1399
|
if (!p.isHexDigit(e))
|
|
1362
|
-
throw
|
|
1400
|
+
throw F(n());
|
|
1363
1401
|
t += n();
|
|
1364
1402
|
}
|
|
1365
1403
|
return String.fromCodePoint(parseInt(t, 16));
|
|
1366
1404
|
}
|
|
1367
|
-
const
|
|
1405
|
+
const Me = {
|
|
1368
1406
|
start() {
|
|
1369
1407
|
if (f.type === "eof")
|
|
1370
1408
|
throw M();
|
|
@@ -1374,7 +1412,7 @@ const xe = {
|
|
|
1374
1412
|
switch (f.type) {
|
|
1375
1413
|
case "identifier":
|
|
1376
1414
|
case "string":
|
|
1377
|
-
|
|
1415
|
+
mu = f.value, m = "afterPropertyName";
|
|
1378
1416
|
return;
|
|
1379
1417
|
case "punctuator":
|
|
1380
1418
|
Y();
|
|
@@ -1386,7 +1424,7 @@ const xe = {
|
|
|
1386
1424
|
afterPropertyName() {
|
|
1387
1425
|
if (f.type === "eof")
|
|
1388
1426
|
throw M();
|
|
1389
|
-
|
|
1427
|
+
m = "beforePropertyValue";
|
|
1390
1428
|
},
|
|
1391
1429
|
beforePropertyValue() {
|
|
1392
1430
|
if (f.type === "eof")
|
|
@@ -1407,7 +1445,7 @@ const xe = {
|
|
|
1407
1445
|
throw M();
|
|
1408
1446
|
switch (f.value) {
|
|
1409
1447
|
case ",":
|
|
1410
|
-
|
|
1448
|
+
m = "beforePropertyName";
|
|
1411
1449
|
return;
|
|
1412
1450
|
case "}":
|
|
1413
1451
|
Y();
|
|
@@ -1418,7 +1456,7 @@ const xe = {
|
|
|
1418
1456
|
throw M();
|
|
1419
1457
|
switch (f.value) {
|
|
1420
1458
|
case ",":
|
|
1421
|
-
|
|
1459
|
+
m = "beforeArrayValue";
|
|
1422
1460
|
return;
|
|
1423
1461
|
case "]":
|
|
1424
1462
|
Y();
|
|
@@ -1447,11 +1485,11 @@ function Cu() {
|
|
|
1447
1485
|
t = f.value;
|
|
1448
1486
|
break;
|
|
1449
1487
|
}
|
|
1450
|
-
if (
|
|
1451
|
-
|
|
1488
|
+
if (V === void 0)
|
|
1489
|
+
V = t;
|
|
1452
1490
|
else {
|
|
1453
|
-
const u =
|
|
1454
|
-
Array.isArray(u) ? u.push(t) : Object.defineProperty(u,
|
|
1491
|
+
const u = b[b.length - 1];
|
|
1492
|
+
Array.isArray(u) ? u.push(t) : Object.defineProperty(u, mu, {
|
|
1455
1493
|
value: t,
|
|
1456
1494
|
writable: !0,
|
|
1457
1495
|
enumerable: !0,
|
|
@@ -1459,30 +1497,30 @@ function Cu() {
|
|
|
1459
1497
|
});
|
|
1460
1498
|
}
|
|
1461
1499
|
if (t !== null && typeof t == "object")
|
|
1462
|
-
|
|
1500
|
+
b.push(t), Array.isArray(t) ? m = "beforeArrayValue" : m = "beforePropertyName";
|
|
1463
1501
|
else {
|
|
1464
|
-
const u =
|
|
1465
|
-
u == null ?
|
|
1502
|
+
const u = b[b.length - 1];
|
|
1503
|
+
u == null ? m = "end" : Array.isArray(u) ? m = "afterArrayValue" : m = "afterPropertyValue";
|
|
1466
1504
|
}
|
|
1467
1505
|
}
|
|
1468
1506
|
function Y() {
|
|
1469
|
-
|
|
1470
|
-
const t =
|
|
1471
|
-
t == null ?
|
|
1507
|
+
b.pop();
|
|
1508
|
+
const t = b[b.length - 1];
|
|
1509
|
+
t == null ? m = "end" : Array.isArray(t) ? m = "afterArrayValue" : m = "afterPropertyValue";
|
|
1472
1510
|
}
|
|
1473
|
-
function
|
|
1474
|
-
return ru(t === void 0 ? `JSON5: invalid end of input at ${x}:${
|
|
1511
|
+
function F(t) {
|
|
1512
|
+
return ru(t === void 0 ? `JSON5: invalid end of input at ${x}:${y}` : `JSON5: invalid character '${Ku(t)}' at ${x}:${y}`);
|
|
1475
1513
|
}
|
|
1476
1514
|
function M() {
|
|
1477
|
-
return ru(`JSON5: invalid end of input at ${x}:${
|
|
1515
|
+
return ru(`JSON5: invalid end of input at ${x}:${y}`);
|
|
1478
1516
|
}
|
|
1479
|
-
function
|
|
1480
|
-
return
|
|
1517
|
+
function Mu() {
|
|
1518
|
+
return y -= 5, ru(`JSON5: invalid identifier character at ${x}:${y}`);
|
|
1481
1519
|
}
|
|
1482
|
-
function
|
|
1483
|
-
console.warn(`JSON5: '${
|
|
1520
|
+
function Oe(t) {
|
|
1521
|
+
console.warn(`JSON5: '${Ku(t)}' in strings is not valid ECMAScript; consider escaping`);
|
|
1484
1522
|
}
|
|
1485
|
-
function
|
|
1523
|
+
function Ku(t) {
|
|
1486
1524
|
const u = {
|
|
1487
1525
|
"'": "\\'",
|
|
1488
1526
|
'"': '\\"',
|
|
@@ -1507,24 +1545,24 @@ function Ju(t) {
|
|
|
1507
1545
|
}
|
|
1508
1546
|
function ru(t) {
|
|
1509
1547
|
const u = new SyntaxError(t);
|
|
1510
|
-
return u.lineNumber = x, u.columnNumber =
|
|
1548
|
+
return u.lineNumber = x, u.columnNumber = y, u;
|
|
1511
1549
|
}
|
|
1512
|
-
const
|
|
1513
|
-
var
|
|
1550
|
+
const Le = /* @__PURE__ */ we(Pe);
|
|
1551
|
+
var ke = Object.defineProperty, Xu = (t, u, e, r) => {
|
|
1514
1552
|
for (var D = void 0, s = t.length - 1, i; s >= 0; s--)
|
|
1515
1553
|
(i = t[s]) && (D = i(u, e, D) || D);
|
|
1516
|
-
return D &&
|
|
1554
|
+
return D && ke(u, e, D), D;
|
|
1517
1555
|
};
|
|
1518
|
-
const
|
|
1556
|
+
const He = "orthographic", Ou = 1 / 0, yu = class yu extends H {
|
|
1519
1557
|
constructor() {
|
|
1520
|
-
super(), this.scratchV2 = new
|
|
1521
|
-
scene: new
|
|
1558
|
+
super(), this.scratchV2 = new $.Vector2(), this.three = {
|
|
1559
|
+
scene: new $.Scene(),
|
|
1522
1560
|
camera: null,
|
|
1523
|
-
renderer: new
|
|
1561
|
+
renderer: new $.WebGLRenderer({
|
|
1524
1562
|
antialias: !0,
|
|
1525
1563
|
alpha: !0
|
|
1526
1564
|
})
|
|
1527
|
-
}, this.background = null, this.dpr =
|
|
1565
|
+
}, this.background = null, this.dpr = Ou, this.raycaster = new $.Raycaster(), this.raycastPool = [], this.frame = 1 / 0, this.resizeObserver = new ResizeObserver((u) => {
|
|
1528
1566
|
u.forEach(({ target: e, contentRect: r }) => {
|
|
1529
1567
|
if (e === this && (this.three.renderer.setSize(r.width * this.dpr, r.height * this.dpr), this.three.camera)) {
|
|
1530
1568
|
const D = r.width / r.height;
|
|
@@ -1541,12 +1579,12 @@ const Oe = "orthographic", mu = class mu extends H {
|
|
|
1541
1579
|
}
|
|
1542
1580
|
/** To run on start. */
|
|
1543
1581
|
connectedCallback() {
|
|
1544
|
-
super.connectedCallback(), this.
|
|
1545
|
-
const e =
|
|
1582
|
+
super.connectedCallback(), this.dpr === Ou && (this.dpr = window.devicePixelRatio), this.getAttribute(He) !== null ? this.three.camera = new $.OrthographicCamera() : this.three.camera = new $.PerspectiveCamera(75), ["scene", "camera", "renderer"].forEach((u) => {
|
|
1583
|
+
const e = Le(this.getAttribute(u) ?? "{}");
|
|
1546
1584
|
Object.entries(e).forEach(([r, D]) => {
|
|
1547
|
-
this.three[u] &&
|
|
1585
|
+
this.three[u] && Wu(this.three[u], r.split("-"), hu(D, this));
|
|
1548
1586
|
});
|
|
1549
|
-
}), this.resizeObserver.observe(this), this.background !== null && (this.three.scene.background = new
|
|
1587
|
+
}), this.resizeObserver.observe(this), this.background !== null && (this.three.scene.background = new $.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.updateLoop();
|
|
1550
1588
|
}
|
|
1551
1589
|
disconnectedCallback() {
|
|
1552
1590
|
this.three.renderer.domElement.removeEventListener("pointermove", this.onPointerMove.bind(this)), this.three.renderer.domElement.removeEventListener("click", this.onClick.bind(this)), this.three.renderer.dispose(), this.resizeObserver.unobserve(this), cancelAnimationFrame(this.frame);
|
|
@@ -1554,13 +1592,13 @@ const Oe = "orthographic", mu = class mu extends H {
|
|
|
1554
1592
|
handleDefaultSlotChange(u) {
|
|
1555
1593
|
u.target.assignedElements().forEach((e) => {
|
|
1556
1594
|
const r = e;
|
|
1557
|
-
if (r.instance instanceof
|
|
1595
|
+
if (r.instance instanceof $.Object3D) {
|
|
1558
1596
|
let D = !1;
|
|
1559
1597
|
if (this.three.scene.traverse((s) => {
|
|
1560
1598
|
D || s.uuid === r.instance.uuid && (D = !0);
|
|
1561
1599
|
}), D)
|
|
1562
1600
|
return;
|
|
1563
|
-
this.three.scene.add(r.instance), e.getAttributeNames().includes(
|
|
1601
|
+
this.three.scene.add(r.instance), e.getAttributeNames().includes(qu) && this.raycastPool.push(r.instance);
|
|
1564
1602
|
}
|
|
1565
1603
|
}), this.renderThree();
|
|
1566
1604
|
}
|
|
@@ -1574,15 +1612,15 @@ const Oe = "orthographic", mu = class mu extends H {
|
|
|
1574
1612
|
return this.raycaster.setFromCamera(e, this.three.camera), this.raycaster.intersectObjects(this.raycastPool).map((s) => ({
|
|
1575
1613
|
intersect: s,
|
|
1576
1614
|
// TODO: cache result of this query selector somewhere?
|
|
1577
|
-
element: this.querySelector(`[${
|
|
1615
|
+
element: this.querySelector(`[${Vu}="${s.object.uuid}"]`)
|
|
1578
1616
|
}));
|
|
1579
1617
|
}
|
|
1580
1618
|
// Pointer movement
|
|
1581
1619
|
// ==================
|
|
1582
1620
|
onPointerMove(u) {
|
|
1583
1621
|
this.runRaycast.bind(this)(u).forEach((r) => {
|
|
1584
|
-
var D, s, i,
|
|
1585
|
-
u.type === "pointermove" ? ((D = r.element) == null || D.dispatchEvent(new PointerEvent("pointermove")), (s = r.element) == null || s.dispatchEvent(new CustomEvent(
|
|
1622
|
+
var D, s, i, o;
|
|
1623
|
+
u.type === "pointermove" ? ((D = r.element) == null || D.dispatchEvent(new PointerEvent("pointermove")), (s = r.element) == null || s.dispatchEvent(new CustomEvent(Ie, { detail: r }))) : u.type === "mousemove" && ((i = r.element) == null || i.dispatchEvent(new MouseEvent("mousemove")), (o = r.element) == null || o.dispatchEvent(new CustomEvent(Re, { detail: r })));
|
|
1586
1624
|
});
|
|
1587
1625
|
}
|
|
1588
1626
|
// Click handling
|
|
@@ -1602,7 +1640,7 @@ const Oe = "orthographic", mu = class mu extends H {
|
|
|
1602
1640
|
});
|
|
1603
1641
|
e.forEach((r) => {
|
|
1604
1642
|
var D;
|
|
1605
|
-
(D = r.element) == null || D.dispatchEvent(new CustomEvent(
|
|
1643
|
+
(D = r.element) == null || D.dispatchEvent(new CustomEvent(Ue, { detail: r }));
|
|
1606
1644
|
});
|
|
1607
1645
|
}
|
|
1608
1646
|
// TODO: Only kick if required
|
|
@@ -1614,13 +1652,13 @@ const Oe = "orthographic", mu = class mu extends H {
|
|
|
1614
1652
|
this.three.camera && this.three.renderer.render(this.three.scene, this.three.camera);
|
|
1615
1653
|
}
|
|
1616
1654
|
render() {
|
|
1617
|
-
return
|
|
1655
|
+
return Gu`
|
|
1618
1656
|
<slot @slotchange=${this.handleDefaultSlotChange}></slot>
|
|
1619
1657
|
${this.three.renderer.domElement}
|
|
1620
1658
|
`;
|
|
1621
1659
|
}
|
|
1622
1660
|
};
|
|
1623
|
-
|
|
1661
|
+
yu.styles = ue`
|
|
1624
1662
|
:host {
|
|
1625
1663
|
width: 100%;
|
|
1626
1664
|
height: 100%;
|
|
@@ -1634,44 +1672,44 @@ mu.styles = Xu`
|
|
|
1634
1672
|
max-height: 100%;
|
|
1635
1673
|
}
|
|
1636
1674
|
`;
|
|
1637
|
-
let
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
],
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
],
|
|
1644
|
-
|
|
1645
|
-
su()
|
|
1646
|
-
], U.prototype, "sizePolicy");
|
|
1647
|
-
const Ie = ({
|
|
1675
|
+
let Z = yu;
|
|
1676
|
+
Xu([
|
|
1677
|
+
Bu()
|
|
1678
|
+
], Z.prototype, "background");
|
|
1679
|
+
Xu([
|
|
1680
|
+
Bu()
|
|
1681
|
+
], Z.prototype, "dpr");
|
|
1682
|
+
const Ge = ({
|
|
1648
1683
|
prependList: t = []
|
|
1649
1684
|
} = {}) => {
|
|
1650
|
-
customElements.get("three-lunchbox") || customElements.define("three-lunchbox",
|
|
1651
|
-
const e =
|
|
1685
|
+
customElements.get("three-lunchbox") || customElements.define("three-lunchbox", Z), [...t, ...ku].forEach((u) => {
|
|
1686
|
+
const e = Yu(u);
|
|
1652
1687
|
if (customElements.get(e))
|
|
1653
1688
|
return;
|
|
1654
|
-
const r =
|
|
1689
|
+
const r = Ju(u);
|
|
1655
1690
|
r && customElements.define(e, r);
|
|
1656
1691
|
});
|
|
1657
|
-
},
|
|
1658
|
-
if (customElements.get(t)) {
|
|
1692
|
+
}, ze = (t, u, e = window) => {
|
|
1693
|
+
if (e.customElements.get(t)) {
|
|
1659
1694
|
console.log(`${t} already registered as a custom element. Try a different name if registering is still required.`);
|
|
1660
1695
|
return;
|
|
1661
1696
|
}
|
|
1662
|
-
const
|
|
1663
|
-
|
|
1664
|
-
|
|
1697
|
+
const r = Ju(u);
|
|
1698
|
+
if (r)
|
|
1699
|
+
e.customElements.define(t, r);
|
|
1700
|
+
else
|
|
1701
|
+
throw new Error(`Could not extend ${t}. The second paramater must be a class.`);
|
|
1702
|
+
}, Ie = "threepointermove", Re = "threemousemove", Ue = "threeclick", Yu = (t) => {
|
|
1665
1703
|
let u = t.split(/\.?(?=[A-Z])/).join("-").toLowerCase().replace(/-g-l-/, "-gl-");
|
|
1666
1704
|
return u.includes("-") || (u = `three-${u}`), u;
|
|
1667
|
-
},
|
|
1705
|
+
}, Ve = ku.map(Yu);
|
|
1668
1706
|
export {
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1707
|
+
Ue as THREE_CLICK_EVENT_NAME,
|
|
1708
|
+
Re as THREE_MOUSE_MOVE_EVENT_NAME,
|
|
1709
|
+
Ie as THREE_POINTER_MOVE_EVENT_NAME,
|
|
1710
|
+
Z as ThreeLunchbox,
|
|
1711
|
+
ku as autoComponents,
|
|
1712
|
+
ze as extend,
|
|
1713
|
+
Ge as initLunchbox,
|
|
1714
|
+
Ve as webComponentNames
|
|
1677
1715
|
};
|