lunchboxjs 2.1.1 → 2.1.2

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.
@@ -1,5 +1,5 @@
1
1
  import * as b from "three";
2
- const Iu = [
2
+ const Gu = [
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 Iu = [
91
91
  * Copyright 2019 Google LLC
92
92
  * SPDX-License-Identifier: BSD-3-Clause
93
93
  */
94
- const eu = globalThis, Bu = eu.ShadowRoot && (eu.ShadyCSS === void 0 || eu.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, mu = Symbol(), _u = /* @__PURE__ */ new WeakMap();
95
- let ju = class {
94
+ const eu = globalThis, yu = eu.ShadowRoot && (eu.ShadyCSS === void 0 || eu.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, gu = Symbol(), wu = /* @__PURE__ */ new WeakMap();
95
+ let zu = class {
96
96
  constructor(u, e, r) {
97
- if (this._$cssResult$ = !0, r !== mu)
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 (Bu && u === void 0) {
104
+ if (yu && u === void 0) {
105
105
  const r = e !== void 0 && e.length === 1;
106
- r && (u = _u.get(e)), u === void 0 && ((this.o = u = new CSSStyleSheet()).replaceSync(this.cssText), r && _u.set(e, u));
106
+ r && (u = wu.get(e)), u === void 0 && ((this.o = u = new CSSStyleSheet()).replaceSync(this.cssText), r && wu.set(e, u));
107
107
  }
108
108
  return u;
109
109
  }
@@ -111,38 +111,38 @@ let ju = class {
111
111
  return this.cssText;
112
112
  }
113
113
  };
114
- const te = (t) => new ju(typeof t == "string" ? t : t + "", void 0, mu), re = (t, ...u) => {
115
- const e = t.length === 1 ? t[0] : u.reduce((r, s, D) => r + ((i) => {
114
+ const se = (t) => new zu(typeof t == "string" ? t : t + "", void 0, gu), ie = (t, ...u) => {
115
+ const e = t.length === 1 ? t[0] : u.reduce((r, s, n) => 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[D + 1], t[0]);
122
- return new ju(e, t, mu);
123
- }, se = (t, u) => {
124
- if (Bu)
121
+ })(s) + t[n + 1], t[0]);
122
+ return new zu(e, t, gu);
123
+ }, De = (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
- }, vu = Bu ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((u) => {
131
+ }, Su = 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;
135
- return te(e);
135
+ return se(e);
136
136
  })(t) : t;
137
137
  /**
138
138
  * @license
139
139
  * Copyright 2017 Google LLC
140
140
  * SPDX-License-Identifier: BSD-3-Clause
141
141
  */
142
- const { is: ie, defineProperty: De, getOwnPropertyDescriptor: ne, getOwnPropertyNames: oe, getOwnPropertySymbols: ae, getPrototypeOf: ce } = Object, P = globalThis, wu = P.trustedTypes, he = wu ? wu.emptyScript : "", au = P.reactiveElementPolyfillSupport, W = (t, u) => t, ru = { toAttribute(t, u) {
142
+ const { is: ne, 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
- t = t ? he : null;
145
+ t = t ? Ce : null;
146
146
  break;
147
147
  case Object:
148
148
  case Array:
@@ -167,8 +167,8 @@ const { is: ie, defineProperty: De, getOwnPropertyDescriptor: ne, getOwnProperty
167
167
  }
168
168
  }
169
169
  return e;
170
- } }, yu = (t, u) => !ie(t, u), Su = { attribute: !0, type: String, converter: ru, reflect: !1, hasChanged: yu };
171
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), P.litPropertyMetadata ?? (P.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
170
+ } }, $u = (t, u) => !ne(t, u), xu = { attribute: !0, type: String, converter: ru, reflect: !1, hasChanged: $u };
171
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), N.litPropertyMetadata ?? (N.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
172
172
  class k extends HTMLElement {
173
173
  static addInitializer(u) {
174
174
  this._$Ei(), (this.l ?? (this.l = [])).push(u);
@@ -176,14 +176,14 @@ class k extends HTMLElement {
176
176
  static get observedAttributes() {
177
177
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
178
178
  }
179
- static createProperty(u, e = Su) {
179
+ static createProperty(u, e = xu) {
180
180
  if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(u, e), !e.noAccessor) {
181
181
  const r = Symbol(), s = this.getPropertyDescriptor(u, r, e);
182
- s !== void 0 && De(this.prototype, u, s);
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: D } = ne(this.prototype, u) ?? { get() {
186
+ const { get: s, set: n } = ae(this.prototype, u) ?? { get() {
187
187
  return this[e];
188
188
  }, set(i) {
189
189
  this[e] = i;
@@ -192,23 +192,23 @@ class k 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
- D.call(this, i), this.requestUpdate(u, o, r);
195
+ n.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) ?? Su;
199
+ return this.elementProperties.get(u) ?? xu;
200
200
  }
201
201
  static _$Ei() {
202
- if (this.hasOwnProperty(W("elementProperties")))
202
+ if (this.hasOwnProperty(q("elementProperties")))
203
203
  return;
204
- const u = ce(this);
204
+ const u = Ae(this);
205
205
  u.finalize(), u.l !== void 0 && (this.l = [...u.l]), this.elementProperties = new Map(u.elementProperties);
206
206
  }
207
207
  static finalize() {
208
- if (this.hasOwnProperty(W("finalized")))
208
+ if (this.hasOwnProperty(q("finalized")))
209
209
  return;
210
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(W("properties"))) {
211
- const e = this.properties, r = [...oe(e), ...ae(e)];
210
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(q("properties"))) {
211
+ const e = this.properties, r = [...ce(e), ...he(e)];
212
212
  for (const s of r)
213
213
  this.createProperty(s, e[s]);
214
214
  }
@@ -231,9 +231,9 @@ class k 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(vu(s));
234
+ e.unshift(Su(s));
235
235
  } else
236
- u !== void 0 && e.push(vu(u));
236
+ u !== void 0 && e.push(Su(u));
237
237
  return e;
238
238
  }
239
239
  static _$Eu(u, e) {
@@ -263,7 +263,7 @@ class k extends HTMLElement {
263
263
  }
264
264
  createRenderRoot() {
265
265
  const u = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
266
- return se(u, this.constructor.elementStyles), u;
266
+ return De(u, this.constructor.elementStyles), u;
267
267
  }
268
268
  connectedCallback() {
269
269
  var u;
@@ -285,24 +285,24 @@ class k extends HTMLElement {
285
285
  this._$AK(u, r);
286
286
  }
287
287
  _$EC(u, e) {
288
- var D;
288
+ var n;
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 = (((D = r.converter) == null ? void 0 : D.toAttribute) !== void 0 ? r.converter : ru).toAttribute(e, r.type);
291
+ const i = (((n = r.converter) == null ? void 0 : n.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 D;
296
+ var n;
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 } : ((D = i.converter) == null ? void 0 : D.fromAttribute) !== void 0 ? i.converter : ru;
299
+ const i = r.getPropertyOptions(s), o = typeof i.converter == "function" ? { fromAttribute: i.converter } : ((n = i.converter) == null ? void 0 : n.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 ?? yu)(this[u], e))
305
+ if (r ?? (r = this.constructor.getPropertyOptions(u)), !(r.hasChanged ?? $u)(this[u], e))
306
306
  return;
307
307
  this.P(u, e, r);
308
308
  }
@@ -330,21 +330,21 @@ class k extends HTMLElement {
330
330
  return;
331
331
  if (!this.hasUpdated) {
332
332
  if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
333
- for (const [D, i] of this._$Ep)
334
- this[D] = i;
333
+ for (const [n, i] of this._$Ep)
334
+ this[n] = 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 [D, i] of s)
340
- i.wrapped !== !0 || this._$AL.has(D) || this[D] === void 0 || this.P(D, this[D], i);
339
+ for (const [n, i] of s)
340
+ i.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(n, this[n], 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 D;
347
- return (D = s.hostUpdate) == null ? void 0 : D.call(s);
346
+ var n;
347
+ return (n = s.hostUpdate) == null ? void 0 : n.call(s);
348
348
  }), this.update(e)) : this._$EU();
349
349
  } catch (s) {
350
350
  throw u = !1, this._$EU(), s;
@@ -380,74 +380,74 @@ class k extends HTMLElement {
380
380
  firstUpdated(u) {
381
381
  }
382
382
  }
383
- k.elementStyles = [], k.shadowRootOptions = { mode: "open" }, k[W("elementProperties")] = /* @__PURE__ */ new Map(), k[W("finalized")] = /* @__PURE__ */ new Map(), au == null || au({ ReactiveElement: k }), (P.reactiveElementVersions ?? (P.reactiveElementVersions = [])).push("2.0.4");
383
+ k.elementStyles = [], k.shadowRootOptions = { mode: "open" }, k[q("elementProperties")] = /* @__PURE__ */ new Map(), k[q("finalized")] = /* @__PURE__ */ new Map(), cu == null || cu({ ReactiveElement: k }), (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 V = globalThis, su = V.trustedTypes, Pu = su ? su.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, Gu = "$lit$", S = `lit$${Math.random().toFixed(9).slice(2)}$`, zu = "?" + S, Ae = `<${zu}>`, L = document, J = () => L.createComment(""), Z = (t) => t === null || typeof t != "object" && typeof t != "function", Wu = Array.isArray, Ce = (t) => Wu(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", cu = `[
390
- \f\r]`, G = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, xu = /-->/g, Tu = />/g, N = RegExp(`>|${cu}(?:([^\\s"'>=/]+)(${cu}*=${cu}*(?:[^
391
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Nu = /'/g, Mu = /"/g, Vu = /^(?:script|style|textarea|title)$/i, Ee = (t) => (u, ...e) => ({ _$litType$: t, strings: u, values: e }), qu = Ee(1), I = Symbol.for("lit-noChange"), m = Symbol.for("lit-nothing"), Ou = /* @__PURE__ */ new WeakMap(), R = L.createTreeWalker(L, 129);
392
- function Ju(t, u) {
389
+ const J = globalThis, su = J.trustedTypes, Nu = su ? su.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, Wu = "$lit$", x = `lit$${Math.random().toFixed(9).slice(2)}$`, Vu = "?" + x, Ee = `<${Vu}>`, U = document, K = () => U.createComment(""), X = (t) => t === null || typeof t != "object" && typeof t != "function", qu = Array.isArray, Fe = (t) => qu(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", hu = `[
390
+ \f\r]`, W = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Tu = /-->/g, Mu = />/g, M = RegExp(`>|${hu}(?:([^\\s"'>=/]+)(${hu}*=${hu}*(?:[^
391
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Ou = /'/g, Ru = /"/g, Ju = /^(?:script|style|textarea|title)$/i, le = (t) => (u, ...e) => ({ _$litType$: t, strings: u, values: e }), Zu = le(1), I = Symbol.for("lit-noChange"), B = Symbol.for("lit-nothing"), Lu = /* @__PURE__ */ new WeakMap(), L = U.createTreeWalker(U, 129);
392
+ function Ku(t, u) {
393
393
  if (!Array.isArray(t) || !t.hasOwnProperty("raw"))
394
394
  throw Error("invalid template strings array");
395
- return Pu !== void 0 ? Pu.createHTML(u) : u;
395
+ return Nu !== void 0 ? Nu.createHTML(u) : u;
396
396
  }
397
- const Fe = (t, u) => {
397
+ const de = (t, u) => {
398
398
  const e = t.length - 1, r = [];
399
- let s, D = u === 2 ? "<svg>" : "", i = G;
399
+ let s, n = u === 2 ? "<svg>" : "", i = W;
400
400
  for (let o = 0; o < e; o++) {
401
401
  const a = t[o];
402
- let A, F, E = -1, p = 0;
403
- for (; p < a.length && (i.lastIndex = p, F = i.exec(a), F !== null); )
404
- p = i.lastIndex, i === G ? F[1] === "!--" ? i = xu : F[1] !== void 0 ? i = Tu : F[2] !== void 0 ? (Vu.test(F[2]) && (s = RegExp("</" + F[2], "g")), i = N) : F[3] !== void 0 && (i = N) : i === N ? F[0] === ">" ? (i = s ?? G, E = -1) : F[1] === void 0 ? E = -2 : (E = i.lastIndex - F[2].length, A = F[1], i = F[3] === void 0 ? N : F[3] === '"' ? Mu : Nu) : i === Mu || i === Nu ? i = N : i === xu || i === Tu ? i = G : (i = N, s = void 0);
405
- const g = i === N && t[o + 1].startsWith("/>") ? " " : "";
406
- D += i === G ? a + Ae : E >= 0 ? (r.push(A), a.slice(0, E) + Gu + a.slice(E) + S + g) : a + S + (E === -2 ? o : g);
402
+ let A, F, E = -1, m = 0;
403
+ for (; m < a.length && (i.lastIndex = m, F = i.exec(a), F !== null); )
404
+ m = i.lastIndex, i === W ? F[1] === "!--" ? i = Tu : F[1] !== void 0 ? i = Mu : F[2] !== void 0 ? (Ju.test(F[2]) && (s = RegExp("</" + F[2], "g")), i = M) : F[3] !== void 0 && (i = M) : i === M ? F[0] === ">" ? (i = s ?? W, E = -1) : F[1] === void 0 ? E = -2 : (E = i.lastIndex - F[2].length, A = F[1], i = F[3] === void 0 ? M : F[3] === '"' ? Ru : Ou) : i === Ru || i === Ou ? i = M : i === Tu || i === Mu ? i = W : (i = M, s = void 0);
405
+ const g = i === M && t[o + 1].startsWith("/>") ? " " : "";
406
+ n += i === W ? a + Ee : E >= 0 ? (r.push(A), a.slice(0, E) + Wu + a.slice(E) + x + g) : a + x + (E === -2 ? o : g);
407
407
  }
408
- return [Ju(t, D + (t[e] || "<?>") + (u === 2 ? "</svg>" : "")), r];
408
+ return [Ku(t, n + (t[e] || "<?>") + (u === 2 ? "</svg>" : "")), r];
409
409
  };
410
- class K {
410
+ class Y {
411
411
  constructor({ strings: u, _$litType$: e }, r) {
412
412
  let s;
413
413
  this.parts = [];
414
- let D = 0, i = 0;
415
- const o = u.length - 1, a = this.parts, [A, F] = Fe(u, e);
416
- if (this.el = K.createElement(A, r), R.currentNode = this.el.content, e === 2) {
414
+ let n = 0, i = 0;
415
+ const o = u.length - 1, a = this.parts, [A, F] = de(u, e);
416
+ if (this.el = Y.createElement(A, r), L.currentNode = this.el.content, e === 2) {
417
417
  const E = this.el.content.firstChild;
418
418
  E.replaceWith(...E.childNodes);
419
419
  }
420
- for (; (s = R.nextNode()) !== null && a.length < o; ) {
420
+ for (; (s = L.nextNode()) !== null && a.length < o; ) {
421
421
  if (s.nodeType === 1) {
422
422
  if (s.hasAttributes())
423
423
  for (const E of s.getAttributeNames())
424
- if (E.endsWith(Gu)) {
425
- const p = F[i++], g = s.getAttribute(E).split(S), U = /([.?@])?(.*)/.exec(p);
426
- a.push({ type: 1, index: D, name: U[2], strings: g, ctor: U[1] === "." ? de : U[1] === "?" ? pe : U[1] === "@" ? fe : nu }), s.removeAttribute(E);
424
+ if (E.endsWith(Wu)) {
425
+ const m = F[i++], g = s.getAttribute(E).split(x), _ = /([.?@])?(.*)/.exec(m);
426
+ a.push({ type: 1, index: n, name: _[2], strings: g, ctor: _[1] === "." ? fe : _[1] === "?" ? Be : _[1] === "@" ? me : nu }), s.removeAttribute(E);
427
427
  } else
428
- E.startsWith(S) && (a.push({ type: 6, index: D }), s.removeAttribute(E));
429
- if (Vu.test(s.tagName)) {
430
- const E = s.textContent.split(S), p = E.length - 1;
431
- if (p > 0) {
428
+ E.startsWith(x) && (a.push({ type: 6, index: n }), s.removeAttribute(E));
429
+ if (Ju.test(s.tagName)) {
430
+ const E = s.textContent.split(x), m = E.length - 1;
431
+ if (m > 0) {
432
432
  s.textContent = su ? su.emptyScript : "";
433
- for (let g = 0; g < p; g++)
434
- s.append(E[g], J()), R.nextNode(), a.push({ type: 2, index: ++D });
435
- s.append(E[p], J());
433
+ for (let g = 0; g < m; g++)
434
+ s.append(E[g], K()), L.nextNode(), a.push({ type: 2, index: ++n });
435
+ s.append(E[m], K());
436
436
  }
437
437
  }
438
438
  } else if (s.nodeType === 8)
439
- if (s.data === zu)
440
- a.push({ type: 2, index: D });
439
+ if (s.data === Vu)
440
+ a.push({ type: 2, index: n });
441
441
  else {
442
442
  let E = -1;
443
- for (; (E = s.data.indexOf(S, E + 1)) !== -1; )
444
- a.push({ type: 7, index: D }), E += S.length - 1;
443
+ for (; (E = s.data.indexOf(x, E + 1)) !== -1; )
444
+ a.push({ type: 7, index: n }), E += x.length - 1;
445
445
  }
446
- D++;
446
+ n++;
447
447
  }
448
448
  }
449
449
  static createElement(u, e) {
450
- const r = L.createElement("template");
450
+ const r = U.createElement("template");
451
451
  return r.innerHTML = u, r;
452
452
  }
453
453
  }
@@ -456,10 +456,10 @@ function j(t, u, e = t, r) {
456
456
  if (u === I)
457
457
  return u;
458
458
  let s = r !== void 0 ? (i = e._$Co) == null ? void 0 : i[r] : e._$Cl;
459
- const D = Z(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 = j(t, s._$AS(t, u.values), s, r)), u;
459
+ const n = X(u) ? void 0 : u._$litDirective$;
460
+ return (s == null ? void 0 : s.constructor) !== n && ((o = s == null ? void 0 : s._$AO) == null || o.call(s, !1), n === void 0 ? s = void 0 : (s = new n(t), s._$AT(t, e, r)), r !== void 0 ? (e._$Co ?? (e._$Co = []))[r] = s : e._$Cl = s), s !== void 0 && (u = j(t, s._$AS(t, u.values), s, r)), u;
461
461
  }
462
- class le {
462
+ class pe {
463
463
  constructor(u, e) {
464
464
  this._$AV = [], this._$AN = void 0, this._$AD = u, this._$AM = e;
465
465
  }
@@ -470,17 +470,17 @@ class le {
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) ?? L).importNode(e, !0);
474
- R.currentNode = s;
475
- let D = R.nextNode(), i = 0, o = 0, a = r[0];
473
+ const { el: { content: e }, parts: r } = this._$AD, s = ((u == null ? void 0 : u.creationScope) ?? U).importNode(e, !0);
474
+ L.currentNode = s;
475
+ let n = L.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 X(D, D.nextSibling, this, u) : a.type === 1 ? A = new a.ctor(D, a.name, a.strings, this, u) : a.type === 6 && (A = new Be(D, this, u)), this._$AV.push(A), a = r[++o];
479
+ a.type === 2 ? A = new Q(n, n.nextSibling, this, u) : a.type === 1 ? A = new a.ctor(n, a.name, a.strings, this, u) : a.type === 6 && (A = new ye(n, this, u)), this._$AV.push(A), a = r[++o];
480
480
  }
481
- i !== (a == null ? void 0 : a.index) && (D = R.nextNode(), i++);
481
+ i !== (a == null ? void 0 : a.index) && (n = L.nextNode(), i++);
482
482
  }
483
- return R.currentNode = L, s;
483
+ return L.currentNode = U, s;
484
484
  }
485
485
  p(u) {
486
486
  let e = 0;
@@ -488,13 +488,13 @@ class le {
488
488
  r !== void 0 && (r.strings !== void 0 ? (r._$AI(u, r, e), e += r.strings.length - 2) : r._$AI(u[e])), e++;
489
489
  }
490
490
  }
491
- class X {
491
+ class Q {
492
492
  get _$AU() {
493
493
  var u;
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 = 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;
497
+ this.type = 2, this._$AH = B, 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 X {
508
508
  return this._$AB;
509
509
  }
510
510
  _$AI(u, e = this) {
511
- u = j(this, u, e), Z(u) ? u === m || u == null || u === "" ? (this._$AH !== m && this._$AR(), this._$AH = m) : u !== this._$AH && u !== I && this._(u) : u._$litType$ !== void 0 ? this.$(u) : u.nodeType !== void 0 ? this.T(u) : Ce(u) ? this.k(u) : this._(u);
511
+ u = j(this, u, e), X(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) : Fe(u) ? this.k(u) : this._(u);
512
512
  }
513
513
  S(u) {
514
514
  return this._$AA.parentNode.insertBefore(u, this._$AB);
@@ -517,28 +517,28 @@ class X {
517
517
  this._$AH !== u && (this._$AR(), this._$AH = this.S(u));
518
518
  }
519
519
  _(u) {
520
- this._$AH !== m && Z(this._$AH) ? this._$AA.nextSibling.data = u : this.T(L.createTextNode(u)), this._$AH = u;
520
+ this._$AH !== B && X(this._$AH) ? this._$AA.nextSibling.data = u : this.T(U.createTextNode(u)), this._$AH = u;
521
521
  }
522
522
  $(u) {
523
- var D;
524
- const { values: e, _$litType$: r } = u, s = typeof r == "number" ? this._$AC(u) : (r.el === void 0 && (r.el = K.createElement(Ju(r.h, r.h[0]), this.options)), r);
525
- if (((D = this._$AH) == null ? void 0 : D._$AD) === s)
523
+ var n;
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 (((n = this._$AH) == null ? void 0 : n._$AD) === s)
526
526
  this._$AH.p(e);
527
527
  else {
528
- const i = new le(s, this), o = i.u(this.options);
528
+ const i = new pe(s, this), o = i.u(this.options);
529
529
  i.p(e), this.T(o), this._$AH = i;
530
530
  }
531
531
  }
532
532
  _$AC(u) {
533
- let e = Ou.get(u.strings);
534
- return e === void 0 && Ou.set(u.strings, e = new K(u)), e;
533
+ let e = Lu.get(u.strings);
534
+ return e === void 0 && Lu.set(u.strings, e = new Y(u)), e;
535
535
  }
536
536
  k(u) {
537
- Wu(this._$AH) || (this._$AH = [], this._$AR());
537
+ qu(this._$AH) || (this._$AH = [], this._$AR());
538
538
  const e = this._$AH;
539
539
  let r, s = 0;
540
- for (const D of u)
541
- s === e.length ? e.push(r = new X(this.S(J()), this.S(J()), this, this.options)) : r = e[s], r._$AI(D), s++;
540
+ for (const n 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(n), 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) {
@@ -560,58 +560,58 @@ class nu {
560
560
  get _$AU() {
561
561
  return this._$AM._$AU;
562
562
  }
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;
563
+ constructor(u, e, r, s, n) {
564
+ this.type = 1, this._$AH = B, this._$AN = void 0, this.element = u, this.name = e, this._$AM = s, this.options = n, r.length > 2 || r[0] !== "" || r[1] !== "" ? (this._$AH = Array(r.length - 1).fill(new String()), this.strings = r) : this._$AH = B;
565
565
  }
566
566
  _$AI(u, e = this, r, s) {
567
- const D = this.strings;
567
+ const n = this.strings;
568
568
  let i = !1;
569
- if (D === void 0)
570
- u = j(this, u, e, 0), i = !Z(u) || u !== this._$AH && u !== I, i && (this._$AH = u);
569
+ if (n === void 0)
570
+ u = j(this, u, e, 0), i = !X(u) || u !== this._$AH && u !== I, i && (this._$AH = u);
571
571
  else {
572
572
  const o = u;
573
573
  let a, A;
574
- for (u = D[0], a = 0; a < D.length - 1; a++)
575
- A = j(this, o[r + a], e, a), A === I && (A = this._$AH[a]), i || (i = !Z(A) || A !== this._$AH[a]), A === m ? u = m : u !== m && (u += (A ?? "") + D[a + 1]), this._$AH[a] = A;
574
+ for (u = n[0], a = 0; a < n.length - 1; a++)
575
+ A = j(this, o[r + a], e, a), A === I && (A = this._$AH[a]), i || (i = !X(A) || A !== this._$AH[a]), A === B ? u = B : u !== B && (u += (A ?? "") + n[a + 1]), this._$AH[a] = A;
576
576
  }
577
577
  i && !s && this.j(u);
578
578
  }
579
579
  j(u) {
580
- u === m ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, u ?? "");
580
+ u === B ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, u ?? "");
581
581
  }
582
582
  }
583
- class de extends nu {
583
+ class fe extends nu {
584
584
  constructor() {
585
585
  super(...arguments), this.type = 3;
586
586
  }
587
587
  j(u) {
588
- this.element[this.name] = u === m ? void 0 : u;
588
+ this.element[this.name] = u === B ? void 0 : u;
589
589
  }
590
590
  }
591
- class pe extends nu {
591
+ class Be extends nu {
592
592
  constructor() {
593
593
  super(...arguments), this.type = 4;
594
594
  }
595
595
  j(u) {
596
- this.element.toggleAttribute(this.name, !!u && u !== m);
596
+ this.element.toggleAttribute(this.name, !!u && u !== B);
597
597
  }
598
598
  }
599
- class fe extends nu {
600
- constructor(u, e, r, s, D) {
601
- super(u, e, r, s, D), this.type = 5;
599
+ class me extends nu {
600
+ constructor(u, e, r, s, n) {
601
+ super(u, e, r, s, n), this.type = 5;
602
602
  }
603
603
  _$AI(u, e = this) {
604
- if ((u = j(this, u, e, 0) ?? m) === I)
604
+ if ((u = j(this, u, e, 0) ?? B) === I)
605
605
  return;
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;
606
+ const r = this._$AH, s = u === B && r !== B || u.capture !== r.capture || u.once !== r.once || u.passive !== r.passive, n = u !== B && (r === B || s);
607
+ s && this.element.removeEventListener(this.name, this, r), n && 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 Be {
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
  }
@@ -622,14 +622,14 @@ class Be {
622
622
  j(this, u);
623
623
  }
624
624
  }
625
- const hu = V.litHtmlPolyfillSupport;
626
- hu == null || hu(K, X), (V.litHtmlVersions ?? (V.litHtmlVersions = [])).push("3.1.3");
627
- const me = (t, u, e) => {
625
+ const Au = J.litHtmlPolyfillSupport;
626
+ Au == null || Au(Y, Q), (J.litHtmlVersions ?? (J.litHtmlVersions = [])).push("3.1.3");
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 D = (e == null ? void 0 : e.renderBefore) ?? null;
632
- r._$litPart$ = s = new X(u.insertBefore(J(), D), D, void 0, e ?? {});
631
+ const n = (e == null ? void 0 : e.renderBefore) ?? null;
632
+ r._$litPart$ = s = new Q(u.insertBefore(K(), n), n, void 0, e ?? {});
633
633
  }
634
634
  return s._$AI(t), s;
635
635
  };
@@ -649,7 +649,7 @@ class H extends k {
649
649
  }
650
650
  update(u) {
651
651
  const e = this.render();
652
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(u), this._$Do = me(e, this.renderRoot, this.renderOptions);
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 H extends k {
663
663
  return I;
664
664
  }
665
665
  }
666
- var Hu;
667
- H._$litElement$ = !0, H.finalized = !0, (Hu = globalThis.litElementHydrateSupport) == null || Hu.call(globalThis, { LitElement: H });
668
- const Au = globalThis.litElementPolyfillSupport;
669
- Au == null || Au({ LitElement: H });
666
+ var ju;
667
+ H._$litElement$ = !0, H.finalized = !0, (ju = globalThis.litElementHydrateSupport) == null || ju.call(globalThis, { LitElement: H });
668
+ const Cu = globalThis.litElementPolyfillSupport;
669
+ Cu == null || Cu({ LitElement: H });
670
670
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.5");
671
- const ye = (t, u, e) => {
671
+ const $e = (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
- (D, i) => D && D[i],
675
+ (n, i) => n && n[i],
676
676
  t
677
677
  );
678
678
  return s === void 0 ? e : s;
679
679
  };
680
- function ge(t) {
680
+ function be(t) {
681
681
  if (!t)
682
682
  return !1;
683
683
  const u = t.constructor && t.constructor.toString().substring(0, 5) === "class";
@@ -686,26 +686,26 @@ function ge(t) {
686
686
  const e = t.prototype.constructor && t.prototype.constructor.toString && t.prototype.constructor.toString().substring(0, 5) === "class";
687
687
  return u || e;
688
688
  }
689
- const $e = () => {
689
+ const _e = () => {
690
690
  const t = "[object Number]", e = Object.prototype.toString;
691
- function r(D) {
692
- return !!D && typeof D == "object";
691
+ function r(n) {
692
+ return !!n && typeof n == "object";
693
693
  }
694
694
  return function(i) {
695
695
  return typeof i == "number" || r(i) && e.call(i) == t;
696
696
  };
697
- }, be = $e(), _e = (t, u, e) => {
697
+ }, ve = _e(), we = (t, u, e) => {
698
698
  const r = Array.isArray(u) ? u : u.match(/([^[.\]])+/g);
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
- }, Zu = "data-three-uuid", lu = (t, u, e) => {
701
- var D, i;
702
- const r = ye(t, u);
703
- if (be(e) && (r != null && r.setScalar))
699
+ r == null || r.reduce((s, n, i) => (s[n] === void 0 && (s[n] = {}), i === r.length - 1 && (s[n] = e), s[n]), t);
700
+ }, Xu = "data-three-uuid", du = (t, u, e) => {
701
+ var n, i;
702
+ const r = $e(t, u);
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 ((D = e.toLowerCase().trim().match(/^#[\dabcdef]{3,6}$/)) != null && D.length)
708
+ if ((n = e.toLowerCase().trim().match(/^#[\dabcdef]{3,6}$/)) != null && n.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}`);
@@ -718,10 +718,10 @@ const $e = () => {
718
718
  r.set(...o);
719
719
  }
720
720
  else
721
- _e(t, u, e);
721
+ we(t, u, e);
722
722
  const s = t;
723
723
  typeof s.type == "string" && ((i = s.type) != null && i.toLowerCase().endsWith("material")) && (s.needsUpdate = !0);
724
- }, Cu = {
724
+ }, Eu = {
725
725
  $scene: (t) => {
726
726
  const u = t.closest("three-lunchbox");
727
727
  return u == null ? void 0 : u.three.scene;
@@ -735,8 +735,9 @@ const $e = () => {
735
735
  return u == null ? void 0 : u.three.renderer;
736
736
  },
737
737
  $domElement: (t) => {
738
+ var e;
738
739
  const u = t.closest("three-lunchbox");
739
- return u == null ? void 0 : u.three.renderer.domElement;
740
+ return (e = u == null ? void 0 : u.three.renderer) == null ? void 0 : e.domElement;
740
741
  }
741
742
  }, tu = (t, u) => {
742
743
  var r;
@@ -744,26 +745,26 @@ const $e = () => {
744
745
  return t;
745
746
  if (t === "")
746
747
  return !0;
747
- const e = (r = Cu[t]) == null ? void 0 : r.call(Cu, u);
748
+ const e = (r = Eu[t]) == null ? void 0 : r.call(Eu, u);
748
749
  return CSS.supports("color", t) ? new b.Color(t) : e ?? t;
749
750
  };
750
- function ve(t) {
751
+ function Se(t) {
751
752
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
752
753
  }
753
754
  var ou = {};
754
755
  ou.Space_Separator = /[\u1680\u2000-\u200A\u202F\u205F\u3000]/;
755
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]/;
756
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]/;
757
- const Eu = ou;
758
- var we = {
758
+ const Fu = ou;
759
+ var Pe = {
759
760
  isSpaceSeparator(t) {
760
- return typeof t == "string" && Eu.Space_Separator.test(t);
761
+ return typeof t == "string" && Fu.Space_Separator.test(t);
761
762
  },
762
763
  isIdStartChar(t) {
763
- return typeof t == "string" && (t >= "a" && t <= "z" || t >= "A" && t <= "Z" || t === "$" || t === "_" || Eu.ID_Start.test(t));
764
+ return typeof t == "string" && (t >= "a" && t <= "z" || t >= "A" && t <= "Z" || t === "$" || t === "_" || Fu.ID_Start.test(t));
764
765
  },
765
766
  isIdContinueChar(t) {
766
- return typeof t == "string" && (t >= "a" && t <= "z" || t >= "A" && t <= "Z" || t >= "0" && t <= "9" || t === "$" || t === "_" || t === "‌" || t === "‍" || Eu.ID_Continue.test(t));
767
+ return typeof t == "string" && (t >= "a" && t <= "z" || t >= "A" && t <= "Z" || t >= "0" && t <= "9" || t === "$" || t === "_" || t === "‌" || t === "‍" || Fu.ID_Continue.test(t));
767
768
  },
768
769
  isDigit(t) {
769
770
  return typeof t == "string" && /[0-9]/.test(t);
@@ -772,22 +773,22 @@ var we = {
772
773
  return typeof t == "string" && /[0-9A-Fa-f]/.test(t);
773
774
  }
774
775
  };
775
- const f = we;
776
- let du, y, v, iu, x, $, B, gu, q;
777
- var Se = function(u, e) {
778
- du = String(u), y = "start", v = [], iu = 0, x = 1, $ = 0, B = void 0, gu = void 0, q = void 0;
776
+ const p = Pe;
777
+ let pu, y, w, iu, T, $, f, bu, Z;
778
+ var xe = function(u, e) {
779
+ pu = String(u), y = "start", w = [], iu = 0, T = 1, $ = 0, f = void 0, bu = void 0, Z = void 0;
779
780
  do
780
- B = Pe(), Ne[y]();
781
- while (B.type !== "eof");
782
- return typeof e == "function" ? pu({ "": q }, "", e) : q;
781
+ f = Ne(), Oe[y]();
782
+ while (f.type !== "eof");
783
+ return typeof e == "function" ? fu({ "": Z }, "", e) : Z;
783
784
  };
784
- function pu(t, u, e) {
785
+ function fu(t, u, e) {
785
786
  const r = t[u];
786
787
  if (r != null && typeof r == "object")
787
788
  if (Array.isArray(r))
788
789
  for (let s = 0; s < r.length; s++) {
789
- const D = String(s), i = pu(r, D, e);
790
- i === void 0 ? delete r[D] : Object.defineProperty(r, D, {
790
+ const n = String(s), i = fu(r, n, e);
791
+ i === void 0 ? delete r[n] : Object.defineProperty(r, n, {
791
792
  value: i,
792
793
  writable: !0,
793
794
  enumerable: !0,
@@ -796,9 +797,9 @@ function pu(t, u, e) {
796
797
  }
797
798
  else
798
799
  for (const s in r) {
799
- const D = pu(r, s, e);
800
- D === void 0 ? delete r[s] : Object.defineProperty(r, s, {
801
- value: D,
800
+ const n = fu(r, s, e);
801
+ n === void 0 ? delete r[s] : Object.defineProperty(r, s, {
802
+ value: n,
802
803
  writable: !0,
803
804
  enumerable: !0,
804
805
  configurable: !0
@@ -806,25 +807,25 @@ function pu(t, u, e) {
806
807
  }
807
808
  return e.call(t, u, r);
808
809
  }
809
- let h, c, z, _, C;
810
- function Pe() {
811
- for (h = "default", c = "", z = !1, _ = 1; ; ) {
812
- C = w();
813
- const t = Ku[h]();
810
+ let h, c, V, v, C;
811
+ function Ne() {
812
+ for (h = "default", c = "", V = !1, v = 1; ; ) {
813
+ C = S();
814
+ const t = Yu[h]();
814
815
  if (t)
815
816
  return t;
816
817
  }
817
818
  }
818
- function w() {
819
- if (du[iu])
820
- return String.fromCodePoint(du.codePointAt(iu));
819
+ function S() {
820
+ if (pu[iu])
821
+ return String.fromCodePoint(pu.codePointAt(iu));
821
822
  }
822
- function n() {
823
- const t = w();
823
+ function D() {
824
+ const t = S();
824
825
  return t === `
825
- ` ? (x++, $ = 0) : t ? $ += t.length : $++, t && (iu += t.length), t;
826
+ ` ? (T++, $ = 0) : t ? $ += t.length : $++, t && (iu += t.length), t;
826
827
  }
827
- const Ku = {
828
+ const Yu = {
828
829
  default() {
829
830
  switch (C) {
830
831
  case " ":
@@ -838,53 +839,53 @@ const Ku = {
838
839
  case "\r":
839
840
  case "\u2028":
840
841
  case "\u2029":
841
- n();
842
+ D();
842
843
  return;
843
844
  case "/":
844
- n(), h = "comment";
845
+ D(), h = "comment";
845
846
  return;
846
847
  case void 0:
847
- return n(), l("eof");
848
+ return D(), l("eof");
848
849
  }
849
- if (f.isSpaceSeparator(C)) {
850
- n();
850
+ if (p.isSpaceSeparator(C)) {
851
+ D();
851
852
  return;
852
853
  }
853
- return Ku[y]();
854
+ return Yu[y]();
854
855
  },
855
856
  comment() {
856
857
  switch (C) {
857
858
  case "*":
858
- n(), h = "multiLineComment";
859
+ D(), h = "multiLineComment";
859
860
  return;
860
861
  case "/":
861
- n(), h = "singleLineComment";
862
+ D(), h = "singleLineComment";
862
863
  return;
863
864
  }
864
- throw d(n());
865
+ throw d(D());
865
866
  },
866
867
  multiLineComment() {
867
868
  switch (C) {
868
869
  case "*":
869
- n(), h = "multiLineCommentAsterisk";
870
+ D(), h = "multiLineCommentAsterisk";
870
871
  return;
871
872
  case void 0:
872
- throw d(n());
873
+ throw d(D());
873
874
  }
874
- n();
875
+ D();
875
876
  },
876
877
  multiLineCommentAsterisk() {
877
878
  switch (C) {
878
879
  case "*":
879
- n();
880
+ D();
880
881
  return;
881
882
  case "/":
882
- n(), h = "default";
883
+ D(), h = "default";
883
884
  return;
884
885
  case void 0:
885
- throw d(n());
886
+ throw d(D());
886
887
  }
887
- n(), h = "multiLineComment";
888
+ D(), h = "multiLineComment";
888
889
  },
889
890
  singleLineComment() {
890
891
  switch (C) {
@@ -893,33 +894,33 @@ const Ku = {
893
894
  case "\r":
894
895
  case "\u2028":
895
896
  case "\u2029":
896
- n(), h = "default";
897
+ D(), h = "default";
897
898
  return;
898
899
  case void 0:
899
- return n(), l("eof");
900
+ return D(), l("eof");
900
901
  }
901
- n();
902
+ D();
902
903
  },
903
904
  value() {
904
905
  switch (C) {
905
906
  case "{":
906
907
  case "[":
907
- return l("punctuator", n());
908
+ return l("punctuator", D());
908
909
  case "n":
909
- return n(), M("ull"), l("null", null);
910
+ return D(), O("ull"), l("null", null);
910
911
  case "t":
911
- return n(), M("rue"), l("boolean", !0);
912
+ return D(), O("rue"), l("boolean", !0);
912
913
  case "f":
913
- return n(), M("alse"), l("boolean", !1);
914
+ return D(), O("alse"), l("boolean", !1);
914
915
  case "-":
915
916
  case "+":
916
- n() === "-" && (_ = -1), h = "sign";
917
+ D() === "-" && (v = -1), h = "sign";
917
918
  return;
918
919
  case ".":
919
- c = n(), h = "decimalPointLeading";
920
+ c = D(), h = "decimalPointLeading";
920
921
  return;
921
922
  case "0":
922
- c = n(), h = "zero";
923
+ c = D(), h = "zero";
923
924
  return;
924
925
  case "1":
925
926
  case "2":
@@ -930,31 +931,31 @@ const Ku = {
930
931
  case "7":
931
932
  case "8":
932
933
  case "9":
933
- c = n(), h = "decimalInteger";
934
+ c = D(), h = "decimalInteger";
934
935
  return;
935
936
  case "I":
936
- return n(), M("nfinity"), l("numeric", 1 / 0);
937
+ return D(), O("nfinity"), l("numeric", 1 / 0);
937
938
  case "N":
938
- return n(), M("aN"), l("numeric", NaN);
939
+ return D(), O("aN"), l("numeric", NaN);
939
940
  case '"':
940
941
  case "'":
941
- z = n() === '"', c = "", h = "string";
942
+ V = D() === '"', c = "", h = "string";
942
943
  return;
943
944
  }
944
- throw d(n());
945
+ throw d(D());
945
946
  },
946
947
  identifierNameStartEscape() {
947
948
  if (C !== "u")
948
- throw d(n());
949
- n();
950
- const t = fu();
949
+ throw d(D());
950
+ D();
951
+ const t = Bu();
951
952
  switch (t) {
952
953
  case "$":
953
954
  case "_":
954
955
  break;
955
956
  default:
956
- if (!f.isIdStartChar(t))
957
- throw Ru();
957
+ if (!p.isIdStartChar(t))
958
+ throw Uu();
958
959
  break;
959
960
  }
960
961
  c += t, h = "identifierName";
@@ -965,23 +966,23 @@ const Ku = {
965
966
  case "_":
966
967
  case "‌":
967
968
  case "‍":
968
- c += n();
969
+ c += D();
969
970
  return;
970
971
  case "\\":
971
- n(), h = "identifierNameEscape";
972
+ D(), h = "identifierNameEscape";
972
973
  return;
973
974
  }
974
- if (f.isIdContinueChar(C)) {
975
- c += n();
975
+ if (p.isIdContinueChar(C)) {
976
+ c += D();
976
977
  return;
977
978
  }
978
979
  return l("identifier", c);
979
980
  },
980
981
  identifierNameEscape() {
981
982
  if (C !== "u")
982
- throw d(n());
983
- n();
984
- const t = fu();
983
+ throw d(D());
984
+ D();
985
+ const t = Bu();
985
986
  switch (t) {
986
987
  case "$":
987
988
  case "_":
@@ -989,8 +990,8 @@ const Ku = {
989
990
  case "‍":
990
991
  break;
991
992
  default:
992
- if (!f.isIdContinueChar(t))
993
- throw Ru();
993
+ if (!p.isIdContinueChar(t))
994
+ throw Uu();
994
995
  break;
995
996
  }
996
997
  c += t, h = "identifierName";
@@ -998,10 +999,10 @@ const Ku = {
998
999
  sign() {
999
1000
  switch (C) {
1000
1001
  case ".":
1001
- c = n(), h = "decimalPointLeading";
1002
+ c = D(), h = "decimalPointLeading";
1002
1003
  return;
1003
1004
  case "0":
1004
- c = n(), h = "zero";
1005
+ c = D(), h = "zero";
1005
1006
  return;
1006
1007
  case "1":
1007
1008
  case "2":
@@ -1012,154 +1013,154 @@ const Ku = {
1012
1013
  case "7":
1013
1014
  case "8":
1014
1015
  case "9":
1015
- c = n(), h = "decimalInteger";
1016
+ c = D(), h = "decimalInteger";
1016
1017
  return;
1017
1018
  case "I":
1018
- return n(), M("nfinity"), l("numeric", _ * (1 / 0));
1019
+ return D(), O("nfinity"), l("numeric", v * (1 / 0));
1019
1020
  case "N":
1020
- return n(), M("aN"), l("numeric", NaN);
1021
+ return D(), O("aN"), l("numeric", NaN);
1021
1022
  }
1022
- throw d(n());
1023
+ throw d(D());
1023
1024
  },
1024
1025
  zero() {
1025
1026
  switch (C) {
1026
1027
  case ".":
1027
- c += n(), h = "decimalPoint";
1028
+ c += D(), h = "decimalPoint";
1028
1029
  return;
1029
1030
  case "e":
1030
1031
  case "E":
1031
- c += n(), h = "decimalExponent";
1032
+ c += D(), h = "decimalExponent";
1032
1033
  return;
1033
1034
  case "x":
1034
1035
  case "X":
1035
- c += n(), h = "hexadecimal";
1036
+ c += D(), h = "hexadecimal";
1036
1037
  return;
1037
1038
  }
1038
- return l("numeric", _ * 0);
1039
+ return l("numeric", v * 0);
1039
1040
  },
1040
1041
  decimalInteger() {
1041
1042
  switch (C) {
1042
1043
  case ".":
1043
- c += n(), h = "decimalPoint";
1044
+ c += D(), h = "decimalPoint";
1044
1045
  return;
1045
1046
  case "e":
1046
1047
  case "E":
1047
- c += n(), h = "decimalExponent";
1048
+ c += D(), h = "decimalExponent";
1048
1049
  return;
1049
1050
  }
1050
- if (f.isDigit(C)) {
1051
- c += n();
1051
+ if (p.isDigit(C)) {
1052
+ c += D();
1052
1053
  return;
1053
1054
  }
1054
- return l("numeric", _ * Number(c));
1055
+ return l("numeric", v * Number(c));
1055
1056
  },
1056
1057
  decimalPointLeading() {
1057
- if (f.isDigit(C)) {
1058
- c += n(), h = "decimalFraction";
1058
+ if (p.isDigit(C)) {
1059
+ c += D(), h = "decimalFraction";
1059
1060
  return;
1060
1061
  }
1061
- throw d(n());
1062
+ throw d(D());
1062
1063
  },
1063
1064
  decimalPoint() {
1064
1065
  switch (C) {
1065
1066
  case "e":
1066
1067
  case "E":
1067
- c += n(), h = "decimalExponent";
1068
+ c += D(), h = "decimalExponent";
1068
1069
  return;
1069
1070
  }
1070
- if (f.isDigit(C)) {
1071
- c += n(), h = "decimalFraction";
1071
+ if (p.isDigit(C)) {
1072
+ c += D(), h = "decimalFraction";
1072
1073
  return;
1073
1074
  }
1074
- return l("numeric", _ * Number(c));
1075
+ return l("numeric", v * Number(c));
1075
1076
  },
1076
1077
  decimalFraction() {
1077
1078
  switch (C) {
1078
1079
  case "e":
1079
1080
  case "E":
1080
- c += n(), h = "decimalExponent";
1081
+ c += D(), h = "decimalExponent";
1081
1082
  return;
1082
1083
  }
1083
- if (f.isDigit(C)) {
1084
- c += n();
1084
+ if (p.isDigit(C)) {
1085
+ c += D();
1085
1086
  return;
1086
1087
  }
1087
- return l("numeric", _ * Number(c));
1088
+ return l("numeric", v * Number(c));
1088
1089
  },
1089
1090
  decimalExponent() {
1090
1091
  switch (C) {
1091
1092
  case "+":
1092
1093
  case "-":
1093
- c += n(), h = "decimalExponentSign";
1094
+ c += D(), h = "decimalExponentSign";
1094
1095
  return;
1095
1096
  }
1096
- if (f.isDigit(C)) {
1097
- c += n(), h = "decimalExponentInteger";
1097
+ if (p.isDigit(C)) {
1098
+ c += D(), h = "decimalExponentInteger";
1098
1099
  return;
1099
1100
  }
1100
- throw d(n());
1101
+ throw d(D());
1101
1102
  },
1102
1103
  decimalExponentSign() {
1103
- if (f.isDigit(C)) {
1104
- c += n(), h = "decimalExponentInteger";
1104
+ if (p.isDigit(C)) {
1105
+ c += D(), h = "decimalExponentInteger";
1105
1106
  return;
1106
1107
  }
1107
- throw d(n());
1108
+ throw d(D());
1108
1109
  },
1109
1110
  decimalExponentInteger() {
1110
- if (f.isDigit(C)) {
1111
- c += n();
1111
+ if (p.isDigit(C)) {
1112
+ c += D();
1112
1113
  return;
1113
1114
  }
1114
- return l("numeric", _ * Number(c));
1115
+ return l("numeric", v * Number(c));
1115
1116
  },
1116
1117
  hexadecimal() {
1117
- if (f.isHexDigit(C)) {
1118
- c += n(), h = "hexadecimalInteger";
1118
+ if (p.isHexDigit(C)) {
1119
+ c += D(), h = "hexadecimalInteger";
1119
1120
  return;
1120
1121
  }
1121
- throw d(n());
1122
+ throw d(D());
1122
1123
  },
1123
1124
  hexadecimalInteger() {
1124
- if (f.isHexDigit(C)) {
1125
- c += n();
1125
+ if (p.isHexDigit(C)) {
1126
+ c += D();
1126
1127
  return;
1127
1128
  }
1128
- return l("numeric", _ * Number(c));
1129
+ return l("numeric", v * Number(c));
1129
1130
  },
1130
1131
  string() {
1131
1132
  switch (C) {
1132
1133
  case "\\":
1133
- n(), c += xe();
1134
+ D(), c += Te();
1134
1135
  return;
1135
1136
  case '"':
1136
- if (z)
1137
- return n(), l("string", c);
1138
- c += n();
1137
+ if (V)
1138
+ return D(), l("string", c);
1139
+ c += D();
1139
1140
  return;
1140
1141
  case "'":
1141
- if (!z)
1142
- return n(), l("string", c);
1143
- c += n();
1142
+ if (!V)
1143
+ return D(), l("string", c);
1144
+ c += D();
1144
1145
  return;
1145
1146
  case `
1146
1147
  `:
1147
1148
  case "\r":
1148
- throw d(n());
1149
+ throw d(D());
1149
1150
  case "\u2028":
1150
1151
  case "\u2029":
1151
- Me(C);
1152
+ Re(C);
1152
1153
  break;
1153
1154
  case void 0:
1154
- throw d(n());
1155
+ throw d(D());
1155
1156
  }
1156
- c += n();
1157
+ c += D();
1157
1158
  },
1158
1159
  start() {
1159
1160
  switch (C) {
1160
1161
  case "{":
1161
1162
  case "[":
1162
- return l("punctuator", n());
1163
+ return l("punctuator", D());
1163
1164
  }
1164
1165
  h = "value";
1165
1166
  },
@@ -1167,28 +1168,28 @@ const Ku = {
1167
1168
  switch (C) {
1168
1169
  case "$":
1169
1170
  case "_":
1170
- c = n(), h = "identifierName";
1171
+ c = D(), h = "identifierName";
1171
1172
  return;
1172
1173
  case "\\":
1173
- n(), h = "identifierNameStartEscape";
1174
+ D(), h = "identifierNameStartEscape";
1174
1175
  return;
1175
1176
  case "}":
1176
- return l("punctuator", n());
1177
+ return l("punctuator", D());
1177
1178
  case '"':
1178
1179
  case "'":
1179
- z = n() === '"', h = "string";
1180
+ V = D() === '"', h = "string";
1180
1181
  return;
1181
1182
  }
1182
- if (f.isIdStartChar(C)) {
1183
- c += n(), h = "identifierName";
1183
+ if (p.isIdStartChar(C)) {
1184
+ c += D(), h = "identifierName";
1184
1185
  return;
1185
1186
  }
1186
- throw d(n());
1187
+ throw d(D());
1187
1188
  },
1188
1189
  afterPropertyName() {
1189
1190
  if (C === ":")
1190
- return l("punctuator", n());
1191
- throw d(n());
1191
+ return l("punctuator", D());
1192
+ throw d(D());
1192
1193
  },
1193
1194
  beforePropertyValue() {
1194
1195
  h = "value";
@@ -1197,73 +1198,73 @@ const Ku = {
1197
1198
  switch (C) {
1198
1199
  case ",":
1199
1200
  case "}":
1200
- return l("punctuator", n());
1201
+ return l("punctuator", D());
1201
1202
  }
1202
- throw d(n());
1203
+ throw d(D());
1203
1204
  },
1204
1205
  beforeArrayValue() {
1205
1206
  if (C === "]")
1206
- return l("punctuator", n());
1207
+ return l("punctuator", D());
1207
1208
  h = "value";
1208
1209
  },
1209
1210
  afterArrayValue() {
1210
1211
  switch (C) {
1211
1212
  case ",":
1212
1213
  case "]":
1213
- return l("punctuator", n());
1214
+ return l("punctuator", D());
1214
1215
  }
1215
- throw d(n());
1216
+ throw d(D());
1216
1217
  },
1217
1218
  end() {
1218
- throw d(n());
1219
+ throw d(D());
1219
1220
  }
1220
1221
  };
1221
1222
  function l(t, u) {
1222
1223
  return {
1223
1224
  type: t,
1224
1225
  value: u,
1225
- line: x,
1226
+ line: T,
1226
1227
  column: $
1227
1228
  };
1228
1229
  }
1229
- function M(t) {
1230
+ function O(t) {
1230
1231
  for (const u of t) {
1231
- if (w() !== u)
1232
- throw d(n());
1233
- n();
1232
+ if (S() !== u)
1233
+ throw d(D());
1234
+ D();
1234
1235
  }
1235
1236
  }
1236
- function xe() {
1237
- switch (w()) {
1237
+ function Te() {
1238
+ switch (S()) {
1238
1239
  case "b":
1239
- return n(), "\b";
1240
+ return D(), "\b";
1240
1241
  case "f":
1241
- return n(), "\f";
1242
+ return D(), "\f";
1242
1243
  case "n":
1243
- return n(), `
1244
+ return D(), `
1244
1245
  `;
1245
1246
  case "r":
1246
- return n(), "\r";
1247
+ return D(), "\r";
1247
1248
  case "t":
1248
- return n(), " ";
1249
+ return D(), " ";
1249
1250
  case "v":
1250
- return n(), "\v";
1251
+ return D(), "\v";
1251
1252
  case "0":
1252
- if (n(), f.isDigit(w()))
1253
- throw d(n());
1253
+ if (D(), p.isDigit(S()))
1254
+ throw d(D());
1254
1255
  return "\0";
1255
1256
  case "x":
1256
- return n(), Te();
1257
+ return D(), Me();
1257
1258
  case "u":
1258
- return n(), fu();
1259
+ return D(), Bu();
1259
1260
  case `
1260
1261
  `:
1261
1262
  case "\u2028":
1262
1263
  case "\u2029":
1263
- return n(), "";
1264
+ return D(), "";
1264
1265
  case "\r":
1265
- return n(), w() === `
1266
- ` && n(), "";
1266
+ return D(), S() === `
1267
+ ` && D(), "";
1267
1268
  case "1":
1268
1269
  case "2":
1269
1270
  case "3":
@@ -1273,70 +1274,70 @@ function xe() {
1273
1274
  case "7":
1274
1275
  case "8":
1275
1276
  case "9":
1276
- throw d(n());
1277
+ throw d(D());
1277
1278
  case void 0:
1278
- throw d(n());
1279
+ throw d(D());
1279
1280
  }
1280
- return n();
1281
+ return D();
1281
1282
  }
1282
- function Te() {
1283
- let t = "", u = w();
1284
- if (!f.isHexDigit(u) || (t += n(), u = w(), !f.isHexDigit(u)))
1285
- throw d(n());
1286
- return t += n(), String.fromCodePoint(parseInt(t, 16));
1283
+ function Me() {
1284
+ let t = "", u = S();
1285
+ if (!p.isHexDigit(u) || (t += D(), u = S(), !p.isHexDigit(u)))
1286
+ throw d(D());
1287
+ return t += D(), String.fromCodePoint(parseInt(t, 16));
1287
1288
  }
1288
- function fu() {
1289
+ function Bu() {
1289
1290
  let t = "", u = 4;
1290
1291
  for (; u-- > 0; ) {
1291
- const e = w();
1292
- if (!f.isHexDigit(e))
1293
- throw d(n());
1294
- t += n();
1292
+ const e = S();
1293
+ if (!p.isHexDigit(e))
1294
+ throw d(D());
1295
+ t += D();
1295
1296
  }
1296
1297
  return String.fromCodePoint(parseInt(t, 16));
1297
1298
  }
1298
- const Ne = {
1299
+ const Oe = {
1299
1300
  start() {
1300
- if (B.type === "eof")
1301
- throw O();
1302
- Fu();
1301
+ if (f.type === "eof")
1302
+ throw R();
1303
+ lu();
1303
1304
  },
1304
1305
  beforePropertyName() {
1305
- switch (B.type) {
1306
+ switch (f.type) {
1306
1307
  case "identifier":
1307
1308
  case "string":
1308
- gu = B.value, y = "afterPropertyName";
1309
+ bu = f.value, y = "afterPropertyName";
1309
1310
  return;
1310
1311
  case "punctuator":
1311
1312
  uu();
1312
1313
  return;
1313
1314
  case "eof":
1314
- throw O();
1315
+ throw R();
1315
1316
  }
1316
1317
  },
1317
1318
  afterPropertyName() {
1318
- if (B.type === "eof")
1319
- throw O();
1319
+ if (f.type === "eof")
1320
+ throw R();
1320
1321
  y = "beforePropertyValue";
1321
1322
  },
1322
1323
  beforePropertyValue() {
1323
- if (B.type === "eof")
1324
- throw O();
1325
- Fu();
1324
+ if (f.type === "eof")
1325
+ throw R();
1326
+ lu();
1326
1327
  },
1327
1328
  beforeArrayValue() {
1328
- if (B.type === "eof")
1329
- throw O();
1330
- if (B.type === "punctuator" && B.value === "]") {
1329
+ if (f.type === "eof")
1330
+ throw R();
1331
+ if (f.type === "punctuator" && f.value === "]") {
1331
1332
  uu();
1332
1333
  return;
1333
1334
  }
1334
- Fu();
1335
+ lu();
1335
1336
  },
1336
1337
  afterPropertyValue() {
1337
- if (B.type === "eof")
1338
- throw O();
1339
- switch (B.value) {
1338
+ if (f.type === "eof")
1339
+ throw R();
1340
+ switch (f.value) {
1340
1341
  case ",":
1341
1342
  y = "beforePropertyName";
1342
1343
  return;
@@ -1345,9 +1346,9 @@ const Ne = {
1345
1346
  }
1346
1347
  },
1347
1348
  afterArrayValue() {
1348
- if (B.type === "eof")
1349
- throw O();
1350
- switch (B.value) {
1349
+ if (f.type === "eof")
1350
+ throw R();
1351
+ switch (f.value) {
1351
1352
  case ",":
1352
1353
  y = "beforeArrayValue";
1353
1354
  return;
@@ -1358,11 +1359,11 @@ const Ne = {
1358
1359
  end() {
1359
1360
  }
1360
1361
  };
1361
- function Fu() {
1362
+ function lu() {
1362
1363
  let t;
1363
- switch (B.type) {
1364
+ switch (f.type) {
1364
1365
  case "punctuator":
1365
- switch (B.value) {
1366
+ switch (f.value) {
1366
1367
  case "{":
1367
1368
  t = {};
1368
1369
  break;
@@ -1375,14 +1376,14 @@ function Fu() {
1375
1376
  case "boolean":
1376
1377
  case "numeric":
1377
1378
  case "string":
1378
- t = B.value;
1379
+ t = f.value;
1379
1380
  break;
1380
1381
  }
1381
- if (q === void 0)
1382
- q = t;
1382
+ if (Z === void 0)
1383
+ Z = t;
1383
1384
  else {
1384
- const u = v[v.length - 1];
1385
- Array.isArray(u) ? u.push(t) : Object.defineProperty(u, gu, {
1385
+ const u = w[w.length - 1];
1386
+ Array.isArray(u) ? u.push(t) : Object.defineProperty(u, bu, {
1386
1387
  value: t,
1387
1388
  writable: !0,
1388
1389
  enumerable: !0,
@@ -1390,30 +1391,30 @@ function Fu() {
1390
1391
  });
1391
1392
  }
1392
1393
  if (t !== null && typeof t == "object")
1393
- v.push(t), Array.isArray(t) ? y = "beforeArrayValue" : y = "beforePropertyName";
1394
+ w.push(t), Array.isArray(t) ? y = "beforeArrayValue" : y = "beforePropertyName";
1394
1395
  else {
1395
- const u = v[v.length - 1];
1396
+ const u = w[w.length - 1];
1396
1397
  u == null ? y = "end" : Array.isArray(u) ? y = "afterArrayValue" : y = "afterPropertyValue";
1397
1398
  }
1398
1399
  }
1399
1400
  function uu() {
1400
- v.pop();
1401
- const t = v[v.length - 1];
1401
+ w.pop();
1402
+ const t = w[w.length - 1];
1402
1403
  t == null ? y = "end" : Array.isArray(t) ? y = "afterArrayValue" : y = "afterPropertyValue";
1403
1404
  }
1404
1405
  function d(t) {
1405
- return Du(t === void 0 ? `JSON5: invalid end of input at ${x}:${$}` : `JSON5: invalid character '${Xu(t)}' at ${x}:${$}`);
1406
+ return Du(t === void 0 ? `JSON5: invalid end of input at ${T}:${$}` : `JSON5: invalid character '${Qu(t)}' at ${T}:${$}`);
1406
1407
  }
1407
- function O() {
1408
- return Du(`JSON5: invalid end of input at ${x}:${$}`);
1408
+ function R() {
1409
+ return Du(`JSON5: invalid end of input at ${T}:${$}`);
1409
1410
  }
1410
- function Ru() {
1411
- return $ -= 5, Du(`JSON5: invalid identifier character at ${x}:${$}`);
1411
+ function Uu() {
1412
+ return $ -= 5, Du(`JSON5: invalid identifier character at ${T}:${$}`);
1412
1413
  }
1413
- function Me(t) {
1414
- console.warn(`JSON5: '${Xu(t)}' in strings is not valid ECMAScript; consider escaping`);
1414
+ function Re(t) {
1415
+ console.warn(`JSON5: '${Qu(t)}' in strings is not valid ECMAScript; consider escaping`);
1415
1416
  }
1416
- function Xu(t) {
1417
+ function Qu(t) {
1417
1418
  const u = {
1418
1419
  "'": "\\'",
1419
1420
  '"': '\\"',
@@ -1438,15 +1439,15 @@ function Xu(t) {
1438
1439
  }
1439
1440
  function Du(t) {
1440
1441
  const u = new SyntaxError(t);
1441
- return u.lineNumber = x, u.columnNumber = $, u;
1442
+ return u.lineNumber = T, u.columnNumber = $, u;
1442
1443
  }
1443
- const Yu = /* @__PURE__ */ ve(Se), Qu = "raycast", Lu = [
1444
- Qu,
1444
+ const ue = /* @__PURE__ */ Se(xe), mu = "raycast", ku = [
1445
+ mu,
1445
1446
  "args",
1446
1447
  "data"
1447
- ], Uu = (t) => t.split("-"), ue = (t) => {
1448
+ ], Hu = (t) => t.split("-"), ee = (t) => {
1448
1449
  const u = typeof t == "string" ? b[t] : t;
1449
- if (!ge(u))
1450
+ if (!be(u))
1450
1451
  return null;
1451
1452
  const e = t.toString().toLowerCase().endsWith("loader");
1452
1453
  class r extends H {
@@ -1467,7 +1468,7 @@ const Yu = /* @__PURE__ */ ve(Se), Qu = "raycast", Lu = [
1467
1468
  }
1468
1469
  parsedArgs() {
1469
1470
  const i = this.args ?? this.getAttribute("args") ?? [];
1470
- return typeof i == "string" ? Yu(i) : i;
1471
+ return typeof i == "string" ? ue(i) : i;
1471
1472
  }
1472
1473
  createUnderlyingThreeObject() {
1473
1474
  this.instance = new u(...this.parsedArgs().map((i) => tu(i, this)));
@@ -1479,24 +1480,24 @@ const Yu = /* @__PURE__ */ ve(Se), Qu = "raycast", Lu = [
1479
1480
  }), Array.from(this.attributes).forEach(this.updateProperty.bind(this));
1480
1481
  }
1481
1482
  onUnderlyingThreeObjectReady() {
1482
- var a, A;
1483
+ var a, A, F, E;
1483
1484
  const i = this.instance;
1484
- i.uuid && this.setAttribute(Zu, i.uuid);
1485
- const o = this.parentElement;
1486
- if (o.instance) {
1487
- const F = this.instance, E = this.instance, p = o.instance, g = o.instance, U = this.instance;
1488
- if ((a = F.type) != null && a.toLowerCase().includes("geometry") && p.geometry)
1489
- p.geometry = F;
1490
- else if ((A = E.type) != null && A.toLowerCase().includes("material") && p.material)
1491
- p.material = E;
1492
- else if (g.add)
1485
+ i.uuid && this.setAttribute(Xu, i.uuid);
1486
+ const o = this.parentNode;
1487
+ if (o.instance || (a = o.three) != null && a.scene) {
1488
+ const m = this.instance, g = this.instance, _ = o.instance, au = o.instance ?? ((A = o.three) == null ? void 0 : A.scene), re = this.instance;
1489
+ if ((F = m.type) != null && F.toLowerCase().includes("geometry") && _.geometry)
1490
+ _.geometry = m;
1491
+ else if ((E = g.type) != null && E.toLowerCase().includes("material") && _.material)
1492
+ _.material = g;
1493
+ else if (au.add)
1493
1494
  try {
1494
- g.add(U);
1495
+ au.add(re);
1495
1496
  } catch {
1496
- throw new Error(`Error adding ${this.tagName} to ${g}`);
1497
+ throw new Error(`Error adding ${this.tagName} to ${au}`);
1497
1498
  }
1498
- const bu = this.getAttribute("attach");
1499
- bu && this.executeAttach(bu, this.instance);
1499
+ const vu = this.getAttribute("attach");
1500
+ vu && this.executeAttach(vu, this.instance);
1500
1501
  }
1501
1502
  }
1502
1503
  connectedCallback() {
@@ -1510,22 +1511,22 @@ const Yu = /* @__PURE__ */ ve(Se), Qu = "raycast", Lu = [
1510
1511
  updateProperty(i) {
1511
1512
  const { name: o, value: a } = i;
1512
1513
  let A = o;
1513
- Object.keys(this.instance ?? {}).forEach((p) => {
1514
- p.toLowerCase() === A && (A = p);
1514
+ Object.keys(this.instance ?? {}).forEach((m) => {
1515
+ m.toLowerCase() === A && (A = m);
1515
1516
  });
1516
- const F = Uu(A);
1517
- if (Lu.includes(A) || Lu.includes(F[0]))
1517
+ const F = Hu(A);
1518
+ if (ku.includes(A) || ku.includes(F[0]))
1518
1519
  return;
1519
1520
  let E = tu(a, this);
1520
1521
  try {
1521
1522
  E = JSON.parse(a === "" ? "true" : a);
1522
1523
  } catch {
1523
1524
  }
1524
- this.instance && lu(this.instance, F, E);
1525
+ this.instance && du(this.instance, F, E);
1525
1526
  }
1526
1527
  executeAttach(i, o) {
1527
1528
  const a = this.parentElement;
1528
- a.instance && lu(a.instance, Uu(i), o);
1529
+ a.instance && du(a.instance, Hu(i), o);
1529
1530
  }
1530
1531
  disconnectedCallback() {
1531
1532
  super.disconnectedCallback();
@@ -1543,7 +1544,7 @@ const Yu = /* @__PURE__ */ ve(Se), Qu = "raycast", Lu = [
1543
1544
  }
1544
1545
  /** Render */
1545
1546
  render() {
1546
- return qu`<slot></slot>`;
1547
+ return Zu`<slot></slot>`;
1547
1548
  }
1548
1549
  }
1549
1550
  class s extends r {
@@ -1582,10 +1583,10 @@ const Yu = /* @__PURE__ */ ve(Se), Qu = "raycast", Lu = [
1582
1583
  * Copyright 2017 Google LLC
1583
1584
  * SPDX-License-Identifier: BSD-3-Clause
1584
1585
  */
1585
- const Oe = { attribute: !0, type: String, converter: ru, reflect: !1, hasChanged: yu }, Re = (t = Oe, u, e) => {
1586
+ const Le = { attribute: !0, type: String, converter: ru, reflect: !1, hasChanged: $u }, Ue = (t = Le, u, e) => {
1586
1587
  const { kind: r, metadata: s } = e;
1587
- let D = globalThis.litPropertyMetadata.get(s);
1588
- if (D === void 0 && globalThis.litPropertyMetadata.set(s, D = /* @__PURE__ */ new Map()), D.set(e.name, t), r === "accessor") {
1588
+ let n = globalThis.litPropertyMetadata.get(s);
1589
+ if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), n.set(e.name, t), r === "accessor") {
1589
1590
  const { name: i } = e;
1590
1591
  return { set(o) {
1591
1592
  const a = u.get.call(this);
@@ -1603,35 +1604,33 @@ const Oe = { attribute: !0, type: String, converter: ru, reflect: !1, hasChanged
1603
1604
  }
1604
1605
  throw Error("Unsupported decorator location: " + r);
1605
1606
  };
1606
- function Y(t) {
1607
- return (u, e) => typeof e == "object" ? Re(t, u, e) : ((r, s, D) => {
1608
- const i = s.hasOwnProperty(D);
1609
- return s.constructor.createProperty(D, i ? { ...r, wrapped: !0 } : r), i ? Object.getOwnPropertyDescriptor(s, D) : void 0;
1607
+ function G(t) {
1608
+ return (u, e) => typeof e == "object" ? Ue(t, u, e) : ((r, s, n) => {
1609
+ const i = s.hasOwnProperty(n);
1610
+ return s.constructor.createProperty(n, i ? { ...r, wrapped: !0 } : r), i ? Object.getOwnPropertyDescriptor(s, n) : void 0;
1610
1611
  })(t, u, e);
1611
1612
  }
1612
- var Le = Object.defineProperty, Q = (t, u, e, r) => {
1613
- for (var s = void 0, D = t.length - 1, i; D >= 0; D--)
1614
- (i = t[D]) && (s = i(u, e, s) || s);
1615
- return s && Le(u, e, s), s;
1613
+ var ke = Object.defineProperty, z = (t, u, e, r) => {
1614
+ for (var s = void 0, n = t.length - 1, i; n >= 0; n--)
1615
+ (i = t[n]) && (s = i(u, e, s) || s);
1616
+ return s && ke(u, e, s), s;
1616
1617
  };
1617
- const Ue = "orthographic", ku = 1 / 0, $u = class $u extends H {
1618
+ const He = "orthographic", Iu = 1 / 0, _u = class _u extends H {
1618
1619
  constructor() {
1619
1620
  super(), this.scratchV2 = new b.Vector2(), this.three = {
1620
1621
  scene: new b.Scene(),
1621
1622
  camera: null,
1622
- renderer: new b.WebGLRenderer({
1623
- antialias: !0,
1624
- alpha: !0
1625
- })
1626
- }, this.background = null, this.dpr = ku, this.manualRender = !1, this.dispatchBeforeRender = !1, this.dispatchAfterRender = !1, this.raycaster = new b.Raycaster(), this.raycastPool = [], this.frame = 1 / 0, this.resizeObserver = new ResizeObserver((u) => {
1623
+ renderer: null
1624
+ }, this.background = null, this.dpr = Iu, this.headless = !1, this.manualRender = !1, this.dispatchBeforeRender = !1, this.dispatchAfterRender = !1, this.raycaster = new b.Raycaster(), this.raycastPool = [], this.frame = 1 / 0, this.resizeObserver = new ResizeObserver((u) => {
1627
1625
  u.forEach(({ target: e, contentRect: r }) => {
1628
- if (e === this && (this.three.renderer.setSize(r.width * this.dpr, r.height * this.dpr), this.three.camera)) {
1629
- const s = r.width / r.height;
1626
+ var s;
1627
+ if (e === this && ((s = this.three.renderer) == null || s.setSize(r.width * this.dpr, r.height * this.dpr), this.three.camera)) {
1628
+ const n = r.width / r.height;
1630
1629
  if (this.three.camera.type.toLowerCase() === "perspectivecamera")
1631
- this.three.camera.aspect = s, this.three.camera.updateProjectionMatrix();
1630
+ this.three.camera.aspect = n, this.three.camera.updateProjectionMatrix();
1632
1631
  else if (this.three.camera.type.toLowerCase() === "orthographiccamera") {
1633
- const D = r.height / r.width, i = 10;
1634
- this.three.camera.top = D * i, this.three.camera.bottom = -D * i, this.three.camera.right = i, this.three.camera.left = -i, this.three.camera.updateProjectionMatrix();
1632
+ const i = r.height / r.width, o = 10;
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();
1635
1634
  }
1636
1635
  this.manualRender || this.renderThree();
1637
1636
  }
@@ -1640,48 +1639,47 @@ const Ue = "orthographic", ku = 1 / 0, $u = class $u extends H {
1640
1639
  }
1641
1640
  /** To run on start. */
1642
1641
  connectedCallback() {
1643
- super.connectedCallback(), this.dpr === ku && (this.dpr = window.devicePixelRatio), this.getAttribute(Ue) !== null ? this.three.camera = new b.OrthographicCamera() : this.three.camera = new b.PerspectiveCamera(75), ["scene", "camera", "renderer"].forEach((u) => {
1644
- const e = this[u] ?? this.getAttribute(u) ?? {}, r = typeof e == "string" ? Yu(e) : e;
1645
- Object.entries(r).forEach(([s, D]) => {
1646
- this.three[u] && lu(this.three[u], s.split("-"), tu(D, this));
1642
+ if (super.connectedCallback(), this.dpr === Iu && (this.dpr = window.devicePixelRatio), this.getAttribute(He) !== null ? this.three.camera = new b.OrthographicCamera() : this.three.camera = new b.PerspectiveCamera(75), ["scene", "camera", "renderer"].forEach((u) => {
1643
+ const e = this[u] ?? this.getAttribute(u) ?? {}, r = typeof e == "string" ? ue(e) : e;
1644
+ Object.entries(r).forEach(([s, n]) => {
1645
+ this.three[u] && du(this.three[u], s.split("-"), tu(n, this));
1647
1646
  });
1648
- }), this.resizeObserver.observe(this), this.background !== null && (this.three.scene.background = new b.Color(this.background)), this.three.renderer.domElement.addEventListener("pointermove", this.onPointerMove.bind(this)), this.three.renderer.domElement.addEventListener("mousemove", this.onPointerMove.bind(this)), this.three.renderer.domElement.addEventListener("click", this.onClick.bind(this)), this.manualRender || this.updateLoop();
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();
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
+ }
1651
+ this.manualRender || this.updateLoop();
1649
1652
  }
1650
1653
  disconnectedCallback() {
1651
- this.three.renderer.domElement.removeEventListener("pointermove", this.onPointerMove.bind(this)), this.three.renderer.domElement.removeEventListener("mousemove", 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);
1654
+ var u, e, r, s;
1655
+ (u = this.three.renderer) == null || u.domElement.removeEventListener("pointermove", this.onPointerMove.bind(this)), (e = this.three.renderer) == null || e.domElement.removeEventListener("mousemove", this.onPointerMove.bind(this)), (r = this.three.renderer) == null || r.domElement.removeEventListener("click", this.onClick.bind(this)), (s = this.three.renderer) == null || s.dispose(), this.resizeObserver.unobserve(this), cancelAnimationFrame(this.frame);
1652
1656
  }
1653
1657
  handleDefaultSlotChange(u) {
1654
1658
  u.target.assignedElements().forEach((e) => {
1655
1659
  const r = e;
1656
- if (r.instance instanceof b.Object3D) {
1657
- let s = !1;
1658
- if (this.three.scene.traverse((D) => {
1659
- s || D.uuid === r.instance.uuid && (s = !0);
1660
- }), s)
1661
- return;
1662
- this.three.scene.add(r.instance), e.getAttributeNames().includes(Qu) && this.raycastPool.push(r.instance);
1663
- }
1660
+ r.instance instanceof b.Object3D && e.getAttributeNames().includes(mu) && e.getAttributeNames().includes(mu) && this.raycastPool.push(r.instance);
1664
1661
  }), this.renderThree();
1665
1662
  }
1666
1663
  runRaycast(u) {
1664
+ var o, a;
1667
1665
  if (!this.raycastPool.length || !this.three.camera)
1668
1666
  return [];
1669
- const e = this.scratchV2.clone().set(
1670
- u.clientX / (this.three.renderer.domElement.width / this.dpr) * 2 - 1,
1671
- -(u.clientY / (this.three.renderer.domElement.height / this.dpr)) * 2 + 1
1667
+ const e = ((o = this.three.renderer) == null ? void 0 : o.domElement.width) ?? 0, r = ((a = this.three.renderer) == null ? void 0 : a.domElement.height) ?? 0, s = this.scratchV2.clone().set(
1668
+ u.clientX / (e / this.dpr) * 2 - 1,
1669
+ -(u.clientY / (r / this.dpr)) * 2 + 1
1672
1670
  );
1673
- return this.raycaster.setFromCamera(e, this.three.camera), this.raycaster.intersectObjects(this.raycastPool).map((D) => ({
1674
- intersect: D,
1671
+ return this.raycaster.setFromCamera(s, this.three.camera), this.raycaster.intersectObjects(this.raycastPool).map((A) => ({
1672
+ intersect: A,
1675
1673
  // TODO: cache result of this query selector somewhere?
1676
- element: this.querySelector(`[${Zu}="${D.object.uuid}"]`)
1674
+ element: this.querySelector(`[${Xu}="${A.object.uuid}"]`)
1677
1675
  }));
1678
1676
  }
1679
1677
  // Pointer movement
1680
1678
  // ==================
1681
1679
  onPointerMove(u) {
1682
1680
  this.runRaycast.bind(this)(u).forEach((r) => {
1683
- var s, D, i, o;
1684
- u.type === "pointermove" ? ((s = r.element) == null || s.dispatchEvent(new PointerEvent("pointermove")), (D = r.element) == null || D.dispatchEvent(new CustomEvent(ke, { detail: r }))) : u.type === "mousemove" && ((i = r.element) == null || i.dispatchEvent(new MouseEvent("mousemove")), (o = r.element) == null || o.dispatchEvent(new CustomEvent(He, { detail: r })));
1681
+ var s, n, i, o;
1682
+ u.type === "pointermove" ? ((s = r.element) == null || s.dispatchEvent(new PointerEvent("pointermove")), (n = r.element) == null || n.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(je, { detail: r })));
1685
1683
  });
1686
1684
  }
1687
1685
  // Click handling
@@ -1691,8 +1689,8 @@ const Ue = "orthographic", ku = 1 / 0, $u = class $u extends H {
1691
1689
  if (u instanceof TouchEvent) {
1692
1690
  const r = u.touches[0];
1693
1691
  e = this.runRaycast.bind(this)(r), e.forEach((s) => {
1694
- var D;
1695
- (D = s.element) == null || D.dispatchEvent(new TouchEvent("touchstart"));
1692
+ var n;
1693
+ (n = s.element) == null || n.dispatchEvent(new TouchEvent("touchstart"));
1696
1694
  });
1697
1695
  } else
1698
1696
  e = this.runRaycast.bind(this)(u), e.forEach((r) => {
@@ -1701,7 +1699,7 @@ const Ue = "orthographic", ku = 1 / 0, $u = class $u extends H {
1701
1699
  });
1702
1700
  e.forEach((r) => {
1703
1701
  var s;
1704
- (s = r.element) == null || s.dispatchEvent(new CustomEvent(Ie, { detail: r }));
1702
+ (s = r.element) == null || s.dispatchEvent(new CustomEvent(Ge, { detail: r }));
1705
1703
  });
1706
1704
  }
1707
1705
  updateLoop() {
@@ -1709,19 +1707,21 @@ const Ue = "orthographic", ku = 1 / 0, $u = class $u extends H {
1709
1707
  }
1710
1708
  /** Render the 3D scene. Optional scene/camera overrides; defaults to the internal scene and camera. */
1711
1709
  renderThree(u, e) {
1712
- this.dispatchBeforeRender && this.dispatchEvent(new CustomEvent(je, {})), this.three.camera && (this.three.renderer.render(
1710
+ var r;
1711
+ this.dispatchBeforeRender && this.dispatchEvent(new CustomEvent(ze, {})), this.three.camera && ((r = this.three.renderer) == null || r.render(
1713
1712
  u ?? this.three.scene,
1714
1713
  e ?? this.three.camera
1715
- ), this.dispatchAfterRender && this.dispatchEvent(new CustomEvent(Ge, {})));
1714
+ ), this.dispatchAfterRender && this.dispatchEvent(new CustomEvent(We, {})));
1716
1715
  }
1717
1716
  render() {
1718
- return qu`
1717
+ var u;
1718
+ return Zu`
1719
1719
  <slot @slotchange=${this.handleDefaultSlotChange}></slot>
1720
- ${this.three.renderer.domElement}
1720
+ ${(u = this.three.renderer) == null ? void 0 : u.domElement}
1721
1721
  `;
1722
1722
  }
1723
1723
  };
1724
- $u.styles = re`
1724
+ _u.styles = ie`
1725
1725
  :host {
1726
1726
  width: 100%;
1727
1727
  height: 100%;
@@ -1735,64 +1735,67 @@ $u.styles = re`
1735
1735
  max-height: 100%;
1736
1736
  }
1737
1737
  `;
1738
- let T = $u;
1739
- Q([
1740
- Y()
1741
- ], T.prototype, "background");
1742
- Q([
1743
- Y()
1744
- ], T.prototype, "dpr");
1745
- Q([
1746
- Y({
1738
+ let P = _u;
1739
+ z([
1740
+ G()
1741
+ ], P.prototype, "background");
1742
+ z([
1743
+ G()
1744
+ ], P.prototype, "dpr");
1745
+ z([
1746
+ G()
1747
+ ], P.prototype, "headless");
1748
+ z([
1749
+ G({
1747
1750
  attribute: "manual-render",
1748
1751
  type: Boolean
1749
1752
  })
1750
- ], T.prototype, "manualRender");
1751
- Q([
1752
- Y({
1753
+ ], P.prototype, "manualRender");
1754
+ z([
1755
+ G({
1753
1756
  attribute: "dispatch-before-render",
1754
1757
  type: Boolean
1755
1758
  })
1756
- ], T.prototype, "dispatchBeforeRender");
1757
- Q([
1758
- Y({
1759
+ ], P.prototype, "dispatchBeforeRender");
1760
+ z([
1761
+ G({
1759
1762
  attribute: "dispatch-after-render",
1760
1763
  type: Boolean
1761
1764
  })
1762
- ], T.prototype, "dispatchAfterRender");
1763
- const Ve = ({
1765
+ ], P.prototype, "dispatchAfterRender");
1766
+ const Je = ({
1764
1767
  prependList: t = []
1765
1768
  } = {}) => {
1766
- customElements.get("three-lunchbox") || customElements.define("three-lunchbox", T), [...t, ...Iu].forEach((u) => {
1767
- const e = ee(u);
1769
+ customElements.get("three-lunchbox") || customElements.define("three-lunchbox", P), [...t, ...Gu].forEach((u) => {
1770
+ const e = te(u);
1768
1771
  if (customElements.get(e))
1769
1772
  return;
1770
- const r = ue(u);
1773
+ const r = ee(u);
1771
1774
  r && customElements.define(e, r);
1772
1775
  });
1773
- }, qe = (t, u, e = window) => {
1776
+ }, Ze = (t, u, e = window) => {
1774
1777
  if (e.customElements.get(t)) {
1775
1778
  console.log(`${t} already registered as a custom element. Try a different name if registering is still required.`);
1776
1779
  return;
1777
1780
  }
1778
- const r = ue(u);
1781
+ const r = ee(u);
1779
1782
  if (r)
1780
1783
  e.customElements.define(t, r);
1781
1784
  else
1782
1785
  throw new Error(`Could not extend ${t}. The second paramater must be a class.`);
1783
- }, ke = "threepointermove", He = "threemousemove", Ie = "threeclick", je = "beforerender", Ge = "afterrender", ee = (t) => {
1786
+ }, Ie = "threepointermove", je = "threemousemove", Ge = "threeclick", ze = "beforerender", We = "afterrender", te = (t) => {
1784
1787
  let u = t.split(/\.?(?=[A-Z])/).join("-").toLowerCase().replace(/-g-l-/, "-gl-");
1785
1788
  return u.includes("-") || (u = `three-${u}`), u;
1786
- }, Je = Iu.map(ee);
1789
+ }, Ke = Gu.map(te);
1787
1790
  export {
1788
- Ge as AFTER_RENDER_EVENT_NAME,
1789
- je as BEFORE_RENDER_EVENT_NAME,
1790
- Ie as THREE_CLICK_EVENT_NAME,
1791
- He as THREE_MOUSE_MOVE_EVENT_NAME,
1792
- ke as THREE_POINTER_MOVE_EVENT_NAME,
1793
- T as ThreeLunchbox,
1794
- Iu as autoComponents,
1795
- qe as extend,
1796
- Ve as initLunchbox,
1797
- Je as webComponentNames
1791
+ We as AFTER_RENDER_EVENT_NAME,
1792
+ ze as BEFORE_RENDER_EVENT_NAME,
1793
+ Ge as THREE_CLICK_EVENT_NAME,
1794
+ je as THREE_MOUSE_MOVE_EVENT_NAME,
1795
+ Ie as THREE_POINTER_MOVE_EVENT_NAME,
1796
+ P as ThreeLunchbox,
1797
+ Gu as autoComponents,
1798
+ Ze as extend,
1799
+ Je as initLunchbox,
1800
+ Ke as webComponentNames
1798
1801
  };