@record-evolution/widget-mapbox 1.5.3 → 1.5.5

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.
@@ -34,21 +34,21 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
34
34
  * Copyright 2019 Google LLC
35
35
  * SPDX-License-Identifier: BSD-3-Clause
36
36
  */
37
- const t$1 = globalThis,
38
- e$2 = t$1.ShadowRoot && (void 0 === t$1.ShadyCSS || t$1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
39
- s = Symbol(),
40
- o$2 = new WeakMap();
37
+ const t$3 = globalThis,
38
+ e$3 = t$3.ShadowRoot && (void 0 === t$3.ShadyCSS || t$3.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
39
+ s$3 = Symbol(),
40
+ o$4 = new WeakMap();
41
41
  let n$3 = class n {
42
42
  constructor(t, e, o) {
43
- if (this._$cssResult$ = !0, o !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
43
+ if (this._$cssResult$ = true, o !== s$3) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
44
44
  this.cssText = t, this.t = e;
45
45
  }
46
46
  get styleSheet() {
47
47
  let t = this.o;
48
48
  const s = this.t;
49
- if (e$2 && void 0 === t) {
49
+ if (e$3 && void 0 === t) {
50
50
  const e = void 0 !== s && 1 === s.length;
51
- e && (t = o$2.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), e && o$2.set(s, t));
51
+ e && (t = o$4.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), e && o$4.set(s, t));
52
52
  }
53
53
  return t;
54
54
  }
@@ -56,26 +56,26 @@ let n$3 = class n {
56
56
  return this.cssText;
57
57
  }
58
58
  };
59
- const r$3 = t => new n$3("string" == typeof t ? t : t + "", void 0, s),
60
- i$2 = (t, ...e) => {
59
+ const r$5 = t => new n$3("string" == typeof t ? t : t + "", void 0, s$3),
60
+ i$4 = (t, ...e) => {
61
61
  const o = 1 === t.length ? t[0] : e.reduce((e, s, o) => e + (t => {
62
- if (!0 === t._$cssResult$) return t.cssText;
62
+ if (true === t._$cssResult$) return t.cssText;
63
63
  if ("number" == typeof t) return t;
64
64
  throw Error("Value passed to 'css' function must be a 'css' function result: " + t + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
65
65
  })(s) + t[o + 1], t[0]);
66
- return new n$3(o, t, s);
66
+ return new n$3(o, t, s$3);
67
67
  },
68
68
  S$1 = (s, o) => {
69
- if (e$2) s.adoptedStyleSheets = o.map(t => t instanceof CSSStyleSheet ? t : t.styleSheet);else for (const e of o) {
69
+ if (e$3) s.adoptedStyleSheets = o.map(t => t instanceof CSSStyleSheet ? t : t.styleSheet);else for (const e of o) {
70
70
  const o = document.createElement("style"),
71
- n = t$1.litNonce;
71
+ n = t$3.litNonce;
72
72
  void 0 !== n && o.setAttribute("nonce", n), o.textContent = e.cssText, s.appendChild(o);
73
73
  }
74
74
  },
75
- c$2 = e$2 ? t => t : t => t instanceof CSSStyleSheet ? (t => {
75
+ c$3 = e$3 ? t => t : t => t instanceof CSSStyleSheet ? (t => {
76
76
  let e = "";
77
77
  for (const s of t.cssRules) e += s.cssText;
78
- return r$3(e);
78
+ return r$5(e);
79
79
  })(t) : t;
80
80
 
81
81
  /**
@@ -84,23 +84,23 @@ const r$3 = t => new n$3("string" == typeof t ? t : t + "", void 0, s),
84
84
  * SPDX-License-Identifier: BSD-3-Clause
85
85
  */
86
86
  const {
87
- is: i$1,
88
- defineProperty: e$1,
89
- getOwnPropertyDescriptor: r$2,
90
- getOwnPropertyNames: h$2,
91
- getOwnPropertySymbols: o$1,
87
+ is: i$3,
88
+ defineProperty: e$2,
89
+ getOwnPropertyDescriptor: h$1,
90
+ getOwnPropertyNames: r$4,
91
+ getOwnPropertySymbols: o$3,
92
92
  getPrototypeOf: n$2
93
93
  } = Object,
94
- a = globalThis,
95
- c$1 = a.trustedTypes,
96
- l = c$1 ? c$1.emptyScript : "",
97
- p = a.reactiveElementPolyfillSupport,
98
- d = (t, s) => t,
99
- u = {
94
+ a$1 = globalThis,
95
+ c$2 = a$1.trustedTypes,
96
+ l$1 = c$2 ? c$2.emptyScript : "",
97
+ p$2 = a$1.reactiveElementPolyfillSupport,
98
+ d$1 = (t, s) => t,
99
+ u$3 = {
100
100
  toAttribute(t, s) {
101
101
  switch (s) {
102
102
  case Boolean:
103
- t = t ? l : null;
103
+ t = t ? l$1 : null;
104
104
  break;
105
105
  case Object:
106
106
  case Array:
@@ -128,34 +128,35 @@ const {
128
128
  return i;
129
129
  }
130
130
  },
131
- f$2 = (t, s) => !i$1(t, s),
132
- y = {
133
- attribute: !0,
131
+ f$1 = (t, s) => !i$3(t, s),
132
+ b = {
133
+ attribute: true,
134
134
  type: String,
135
- converter: u,
136
- reflect: !1,
137
- hasChanged: f$2
135
+ converter: u$3,
136
+ reflect: false,
137
+ useDefault: false,
138
+ hasChanged: f$1
138
139
  };
139
- Symbol.metadata ??= Symbol("metadata"), a.litPropertyMetadata ??= new WeakMap();
140
- class b extends HTMLElement {
140
+ Symbol.metadata ??= Symbol("metadata"), a$1.litPropertyMetadata ??= new WeakMap();
141
+ let y$1 = class y extends HTMLElement {
141
142
  static addInitializer(t) {
142
143
  this._$Ei(), (this.l ??= []).push(t);
143
144
  }
144
145
  static get observedAttributes() {
145
146
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
146
147
  }
147
- static createProperty(t, s = y) {
148
- if (s.state && (s.attribute = !1), this._$Ei(), this.elementProperties.set(t, s), !s.noAccessor) {
148
+ static createProperty(t, s = b) {
149
+ if (s.state && (s.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t) && ((s = Object.create(s)).wrapped = true), this.elementProperties.set(t, s), !s.noAccessor) {
149
150
  const i = Symbol(),
150
- r = this.getPropertyDescriptor(t, i, s);
151
- void 0 !== r && e$1(this.prototype, t, r);
151
+ h = this.getPropertyDescriptor(t, i, s);
152
+ void 0 !== h && e$2(this.prototype, t, h);
152
153
  }
153
154
  }
154
155
  static getPropertyDescriptor(t, s, i) {
155
156
  const {
156
157
  get: e,
157
- set: h
158
- } = r$2(this.prototype, t) ?? {
158
+ set: r
159
+ } = h$1(this.prototype, t) ?? {
159
160
  get() {
160
161
  return this[s];
161
162
  },
@@ -164,30 +165,28 @@ class b extends HTMLElement {
164
165
  }
165
166
  };
166
167
  return {
167
- get() {
168
- return e?.call(this);
169
- },
168
+ get: e,
170
169
  set(s) {
171
- const r = e?.call(this);
172
- h.call(this, s), this.requestUpdate(t, r, i);
170
+ const h = e?.call(this);
171
+ r?.call(this, s), this.requestUpdate(t, h, i);
173
172
  },
174
- configurable: !0,
175
- enumerable: !0
173
+ configurable: true,
174
+ enumerable: true
176
175
  };
177
176
  }
178
177
  static getPropertyOptions(t) {
179
- return this.elementProperties.get(t) ?? y;
178
+ return this.elementProperties.get(t) ?? b;
180
179
  }
181
180
  static _$Ei() {
182
- if (this.hasOwnProperty(d("elementProperties"))) return;
181
+ if (this.hasOwnProperty(d$1("elementProperties"))) return;
183
182
  const t = n$2(this);
184
183
  t.finalize(), void 0 !== t.l && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
185
184
  }
186
185
  static finalize() {
187
- if (this.hasOwnProperty(d("finalized"))) return;
188
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(d("properties"))) {
186
+ if (this.hasOwnProperty(d$1("finalized"))) return;
187
+ if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d$1("properties"))) {
189
188
  const t = this.properties,
190
- s = [...h$2(t), ...o$1(t)];
189
+ s = [...r$4(t), ...o$3(t)];
191
190
  for (const i of s) this.createProperty(i, t[i]);
192
191
  }
193
192
  const t = this[Symbol.metadata];
@@ -206,16 +205,16 @@ class b extends HTMLElement {
206
205
  const i = [];
207
206
  if (Array.isArray(s)) {
208
207
  const e = new Set(s.flat(1 / 0).reverse());
209
- for (const s of e) i.unshift(c$2(s));
210
- } else void 0 !== s && i.push(c$2(s));
208
+ for (const s of e) i.unshift(c$3(s));
209
+ } else void 0 !== s && i.push(c$3(s));
211
210
  return i;
212
211
  }
213
212
  static _$Eu(t, s) {
214
213
  const i = s.attribute;
215
- return !1 === i ? void 0 : "string" == typeof i ? i : "string" == typeof t ? t.toLowerCase() : void 0;
214
+ return false === i ? void 0 : "string" == typeof i ? i : "string" == typeof t ? t.toLowerCase() : void 0;
216
215
  }
217
216
  constructor() {
218
- super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
217
+ super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
219
218
  }
220
219
  _$Ev() {
221
220
  this._$ES = new Promise(t => this.enableUpdating = t), this._$AL = new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(t => t(this));
@@ -237,7 +236,7 @@ class b extends HTMLElement {
237
236
  return S$1(t, this.constructor.elementStyles), t;
238
237
  }
239
238
  connectedCallback() {
240
- this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach(t => t.hostConnected?.());
239
+ this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach(t => t.hostConnected?.());
241
240
  }
242
241
  enableUpdating(t) {}
243
242
  disconnectedCallback() {
@@ -246,12 +245,12 @@ class b extends HTMLElement {
246
245
  attributeChangedCallback(t, s, i) {
247
246
  this._$AK(t, i);
248
247
  }
249
- _$EC(t, s) {
248
+ _$ET(t, s) {
250
249
  const i = this.constructor.elementProperties.get(t),
251
250
  e = this.constructor._$Eu(t, i);
252
- if (void 0 !== e && !0 === i.reflect) {
253
- const r = (void 0 !== i.converter?.toAttribute ? i.converter : u).toAttribute(s, i.type);
254
- this._$Em = t, null == r ? this.removeAttribute(e) : this.setAttribute(e, r), this._$Em = null;
251
+ if (void 0 !== e && true === i.reflect) {
252
+ const h = (void 0 !== i.converter?.toAttribute ? i.converter : u$3).toAttribute(s, i.type);
253
+ this._$Em = t, null == h ? this.removeAttribute(e) : this.setAttribute(e, h), this._$Em = null;
255
254
  }
256
255
  }
257
256
  _$AK(t, s) {
@@ -259,24 +258,30 @@ class b extends HTMLElement {
259
258
  e = i._$Eh.get(t);
260
259
  if (void 0 !== e && this._$Em !== e) {
261
260
  const t = i.getPropertyOptions(e),
262
- r = "function" == typeof t.converter ? {
261
+ h = "function" == typeof t.converter ? {
263
262
  fromAttribute: t.converter
264
- } : void 0 !== t.converter?.fromAttribute ? t.converter : u;
265
- this._$Em = e, this[e] = r.fromAttribute(s, t.type), this._$Em = null;
263
+ } : void 0 !== t.converter?.fromAttribute ? t.converter : u$3;
264
+ this._$Em = e, this[e] = h.fromAttribute(s, t.type) ?? this._$Ej?.get(e) ?? null, this._$Em = null;
266
265
  }
267
266
  }
268
267
  requestUpdate(t, s, i) {
269
268
  if (void 0 !== t) {
270
- if (i ??= this.constructor.getPropertyOptions(t), !(i.hasChanged ?? f$2)(this[t], s)) return;
271
- this.P(t, s, i);
272
- }
273
- !1 === this.isUpdatePending && (this._$ES = this._$ET());
274
- }
275
- P(t, s, i) {
276
- this._$AL.has(t) || this._$AL.set(t, s), !0 === i.reflect && this._$Em !== t && (this._$Ej ??= new Set()).add(t);
277
- }
278
- async _$ET() {
279
- this.isUpdatePending = !0;
269
+ const e = this.constructor,
270
+ h = this[t];
271
+ if (i ??= e.getPropertyOptions(t), !((i.hasChanged ?? f$1)(h, s) || i.useDefault && i.reflect && h === this._$Ej?.get(t) && !this.hasAttribute(e._$Eu(t, i)))) return;
272
+ this.C(t, s, i);
273
+ }
274
+ false === this.isUpdatePending && (this._$ES = this._$EP());
275
+ }
276
+ C(t, s, {
277
+ useDefault: i,
278
+ reflect: e,
279
+ wrapped: h
280
+ }, r) {
281
+ i && !(this._$Ej ??= new Map()).has(t) && (this._$Ej.set(t, r ?? s ?? this[t]), true !== h || void 0 !== r) || (this._$AL.has(t) || (this.hasUpdated || i || (s = void 0), this._$AL.set(t, s)), true === e && this._$Em !== t && (this._$Eq ??= new Set()).add(t));
282
+ }
283
+ async _$EP() {
284
+ this.isUpdatePending = true;
280
285
  try {
281
286
  await this._$ES;
282
287
  } catch (t) {
@@ -296,23 +301,29 @@ class b extends HTMLElement {
296
301
  this._$Ep = void 0;
297
302
  }
298
303
  const t = this.constructor.elementProperties;
299
- if (t.size > 0) for (const [s, i] of t) !0 !== i.wrapped || this._$AL.has(s) || void 0 === this[s] || this.P(s, this[s], i);
304
+ if (t.size > 0) for (const [s, i] of t) {
305
+ const {
306
+ wrapped: t
307
+ } = i,
308
+ e = this[s];
309
+ true !== t || this._$AL.has(s) || void 0 === e || this.C(s, void 0, i, e);
310
+ }
300
311
  }
301
- let t = !1;
312
+ let t = false;
302
313
  const s = this._$AL;
303
314
  try {
304
- t = this.shouldUpdate(s), t ? (this.willUpdate(s), this._$EO?.forEach(t => t.hostUpdate?.()), this.update(s)) : this._$EU();
315
+ t = this.shouldUpdate(s), t ? (this.willUpdate(s), this._$EO?.forEach(t => t.hostUpdate?.()), this.update(s)) : this._$EM();
305
316
  } catch (s) {
306
- throw t = !1, this._$EU(), s;
317
+ throw t = false, this._$EM(), s;
307
318
  }
308
319
  t && this._$AE(s);
309
320
  }
310
321
  willUpdate(t) {}
311
322
  _$AE(t) {
312
- this._$EO?.forEach(t => t.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
323
+ this._$EO?.forEach(t => t.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t)), this.updated(t);
313
324
  }
314
- _$EU() {
315
- this._$AL = new Map(), this.isUpdatePending = !1;
325
+ _$EM() {
326
+ this._$AL = new Map(), this.isUpdatePending = false;
316
327
  }
317
328
  get updateComplete() {
318
329
  return this.getUpdateComplete();
@@ -321,149 +332,149 @@ class b extends HTMLElement {
321
332
  return this._$ES;
322
333
  }
323
334
  shouldUpdate(t) {
324
- return !0;
335
+ return true;
325
336
  }
326
337
  update(t) {
327
- this._$Ej &&= this._$Ej.forEach(t => this._$EC(t, this[t])), this._$EU();
338
+ this._$Eq &&= this._$Eq.forEach(t => this._$ET(t, this[t])), this._$EM();
328
339
  }
329
340
  updated(t) {}
330
341
  firstUpdated(t) {}
331
- }
332
- b.elementStyles = [], b.shadowRootOptions = {
342
+ };
343
+ y$1.elementStyles = [], y$1.shadowRootOptions = {
333
344
  mode: "open"
334
- }, b[d("elementProperties")] = new Map(), b[d("finalized")] = new Map(), p?.({
335
- ReactiveElement: b
336
- }), (a.reactiveElementVersions ??= []).push("2.0.4");
345
+ }, y$1[d$1("elementProperties")] = new Map(), y$1[d$1("finalized")] = new Map(), p$2?.({
346
+ ReactiveElement: y$1
347
+ }), (a$1.reactiveElementVersions ??= []).push("2.1.0");
337
348
 
338
349
  /**
339
350
  * @license
340
351
  * Copyright 2017 Google LLC
341
352
  * SPDX-License-Identifier: BSD-3-Clause
342
353
  */
343
- const n$1 = globalThis,
344
- c = n$1.trustedTypes,
345
- h$1 = c ? c.createPolicy("lit-html", {
354
+ const t$2 = globalThis,
355
+ i$2 = t$2.trustedTypes,
356
+ s$2 = i$2 ? i$2.createPolicy("lit-html", {
346
357
  createHTML: t => t
347
358
  }) : void 0,
348
- f$1 = "$lit$",
349
- v = `lit$${Math.random().toFixed(9).slice(2)}$`,
350
- m = "?" + v,
351
- _ = `<${m}>`,
352
- w = document,
353
- lt$1 = () => w.createComment(""),
354
- st = t => null === t || "object" != typeof t && "function" != typeof t,
355
- g = Array.isArray,
356
- $ = t => g(t) || "function" == typeof t?.[Symbol.iterator],
357
- x = "[ \t\n\f\r]",
358
- T = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
359
- E = /-->/g,
360
- k = />/g,
361
- O = RegExp(`>|${x}(?:([^\\s"'>=/]+)(${x}*=${x}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"),
362
- S = /'/g,
363
- j = /"/g,
364
- M = /^(?:script|style|textarea|title)$/i,
365
- P = t => (i, ...s) => ({
359
+ e$1 = "$lit$",
360
+ h = `lit$${Math.random().toFixed(9).slice(2)}$`,
361
+ o$2 = "?" + h,
362
+ n$1 = `<${o$2}>`,
363
+ r$3 = document,
364
+ l = () => r$3.createComment(""),
365
+ c$1 = t => null === t || "object" != typeof t && "function" != typeof t,
366
+ a = Array.isArray,
367
+ u$2 = t => a(t) || "function" == typeof t?.[Symbol.iterator],
368
+ d = "[ \t\n\f\r]",
369
+ f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
370
+ v$1 = /-->/g,
371
+ _ = />/g,
372
+ m$1 = RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"),
373
+ p$1 = /'/g,
374
+ g = /"/g,
375
+ $ = /^(?:script|style|textarea|title)$/i,
376
+ y = t => (i, ...s) => ({
366
377
  _$litType$: t,
367
378
  strings: i,
368
379
  values: s
369
380
  }),
370
- ke = P(1),
371
- R = Symbol.for("lit-noChange"),
372
- D = Symbol.for("lit-nothing"),
373
- V = new WeakMap(),
374
- I = w.createTreeWalker(w, 129);
375
- function N(t, i) {
376
- if (!g(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
377
- return void 0 !== h$1 ? h$1.createHTML(i) : i;
381
+ x = y(1),
382
+ T = Symbol.for("lit-noChange"),
383
+ E = Symbol.for("lit-nothing"),
384
+ A = new WeakMap(),
385
+ C = r$3.createTreeWalker(r$3, 129);
386
+ function P(t, i) {
387
+ if (!a(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
388
+ return void 0 !== s$2 ? s$2.createHTML(i) : i;
378
389
  }
379
- const U = (t, i) => {
390
+ const V = (t, i) => {
380
391
  const s = t.length - 1,
381
- e = [];
382
- let h,
383
- o = 2 === i ? "<svg>" : 3 === i ? "<math>" : "",
384
- n = T;
392
+ o = [];
393
+ let r,
394
+ l = 2 === i ? "<svg>" : 3 === i ? "<math>" : "",
395
+ c = f;
385
396
  for (let i = 0; i < s; i++) {
386
397
  const s = t[i];
387
- let r,
388
- l,
389
- c = -1,
390
- a = 0;
391
- for (; a < s.length && (n.lastIndex = a, l = n.exec(s), null !== l);) a = n.lastIndex, n === T ? "!--" === l[1] ? n = E : void 0 !== l[1] ? n = k : void 0 !== l[2] ? (M.test(l[2]) && (h = RegExp("</" + l[2], "g")), n = O) : void 0 !== l[3] && (n = O) : n === O ? ">" === l[0] ? (n = h ?? T, c = -1) : void 0 === l[1] ? c = -2 : (c = n.lastIndex - l[2].length, r = l[1], n = void 0 === l[3] ? O : '"' === l[3] ? j : S) : n === j || n === S ? n = O : n === E || n === k ? n = T : (n = O, h = void 0);
392
- const u = n === O && t[i + 1].startsWith("/>") ? " " : "";
393
- o += n === T ? s + _ : c >= 0 ? (e.push(r), s.slice(0, c) + f$1 + s.slice(c) + v + u) : s + v + (-2 === c ? i : u);
394
- }
395
- return [N(t, o + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")), e];
398
+ let a,
399
+ u,
400
+ d = -1,
401
+ y = 0;
402
+ for (; y < s.length && (c.lastIndex = y, u = c.exec(s), null !== u);) y = c.lastIndex, c === f ? "!--" === u[1] ? c = v$1 : void 0 !== u[1] ? c = _ : void 0 !== u[2] ? ($.test(u[2]) && (r = RegExp("</" + u[2], "g")), c = m$1) : void 0 !== u[3] && (c = m$1) : c === m$1 ? ">" === u[0] ? (c = r ?? f, d = -1) : void 0 === u[1] ? d = -2 : (d = c.lastIndex - u[2].length, a = u[1], c = void 0 === u[3] ? m$1 : '"' === u[3] ? g : p$1) : c === g || c === p$1 ? c = m$1 : c === v$1 || c === _ ? c = f : (c = m$1, r = void 0);
403
+ const x = c === m$1 && t[i + 1].startsWith("/>") ? " " : "";
404
+ l += c === f ? s + n$1 : d >= 0 ? (o.push(a), s.slice(0, d) + e$1 + s.slice(d) + h + x) : s + h + (-2 === d ? i : x);
405
+ }
406
+ return [P(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")), o];
396
407
  };
397
- class B {
408
+ class N {
398
409
  constructor({
399
410
  strings: t,
400
- _$litType$: i
401
- }, s) {
402
- let e;
411
+ _$litType$: s
412
+ }, n) {
413
+ let r;
403
414
  this.parts = [];
404
- let h = 0,
405
- o = 0;
406
- const n = t.length - 1,
407
- r = this.parts,
408
- [l, a] = U(t, i);
409
- if (this.el = B.createElement(l, s), I.currentNode = this.el.content, 2 === i || 3 === i) {
415
+ let c = 0,
416
+ a = 0;
417
+ const u = t.length - 1,
418
+ d = this.parts,
419
+ [f, v] = V(t, s);
420
+ if (this.el = N.createElement(f, n), C.currentNode = this.el.content, 2 === s || 3 === s) {
410
421
  const t = this.el.content.firstChild;
411
422
  t.replaceWith(...t.childNodes);
412
423
  }
413
- for (; null !== (e = I.nextNode()) && r.length < n;) {
414
- if (1 === e.nodeType) {
415
- if (e.hasAttributes()) for (const t of e.getAttributeNames()) if (t.endsWith(f$1)) {
416
- const i = a[o++],
417
- s = e.getAttribute(t).split(v),
418
- n = /([.?@])?(.*)/.exec(i);
419
- r.push({
424
+ for (; null !== (r = C.nextNode()) && d.length < u;) {
425
+ if (1 === r.nodeType) {
426
+ if (r.hasAttributes()) for (const t of r.getAttributeNames()) if (t.endsWith(e$1)) {
427
+ const i = v[a++],
428
+ s = r.getAttribute(t).split(h),
429
+ e = /([.?@])?(.*)/.exec(i);
430
+ d.push({
420
431
  type: 1,
421
- index: h,
422
- name: n[2],
432
+ index: c,
433
+ name: e[2],
423
434
  strings: s,
424
- ctor: "." === n[1] ? Y : "?" === n[1] ? Z : "@" === n[1] ? q : G
425
- }), e.removeAttribute(t);
426
- } else t.startsWith(v) && (r.push({
435
+ ctor: "." === e[1] ? H : "?" === e[1] ? I : "@" === e[1] ? L : k
436
+ }), r.removeAttribute(t);
437
+ } else t.startsWith(h) && (d.push({
427
438
  type: 6,
428
- index: h
429
- }), e.removeAttribute(t));
430
- if (M.test(e.tagName)) {
431
- const t = e.textContent.split(v),
432
- i = t.length - 1;
433
- if (i > 0) {
434
- e.textContent = c ? c.emptyScript : "";
435
- for (let s = 0; s < i; s++) e.append(t[s], lt$1()), I.nextNode(), r.push({
439
+ index: c
440
+ }), r.removeAttribute(t));
441
+ if ($.test(r.tagName)) {
442
+ const t = r.textContent.split(h),
443
+ s = t.length - 1;
444
+ if (s > 0) {
445
+ r.textContent = i$2 ? i$2.emptyScript : "";
446
+ for (let i = 0; i < s; i++) r.append(t[i], l()), C.nextNode(), d.push({
436
447
  type: 2,
437
- index: ++h
448
+ index: ++c
438
449
  });
439
- e.append(t[i], lt$1());
450
+ r.append(t[s], l());
440
451
  }
441
452
  }
442
- } else if (8 === e.nodeType) if (e.data === m) r.push({
453
+ } else if (8 === r.nodeType) if (r.data === o$2) d.push({
443
454
  type: 2,
444
- index: h
455
+ index: c
445
456
  });else {
446
457
  let t = -1;
447
- for (; -1 !== (t = e.data.indexOf(v, t + 1));) r.push({
458
+ for (; -1 !== (t = r.data.indexOf(h, t + 1));) d.push({
448
459
  type: 7,
449
- index: h
450
- }), t += v.length - 1;
460
+ index: c
461
+ }), t += h.length - 1;
451
462
  }
452
- h++;
463
+ c++;
453
464
  }
454
465
  }
455
466
  static createElement(t, i) {
456
- const s = w.createElement("template");
467
+ const s = r$3.createElement("template");
457
468
  return s.innerHTML = t, s;
458
469
  }
459
470
  }
460
- function z(t, i, s = t, e) {
461
- if (i === R) return i;
462
- let h = void 0 !== e ? s.o?.[e] : s.l;
463
- const o = st(i) ? void 0 : i._$litDirective$;
464
- return h?.constructor !== o && (h?._$AO?.(!1), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? (s.o ??= [])[e] = h : s.l = h), void 0 !== h && (i = z(t, h._$AS(t, i.values), h, e)), i;
471
+ function S(t, i, s = t, e) {
472
+ if (i === T) return i;
473
+ let h = void 0 !== e ? s._$Co?.[e] : s._$Cl;
474
+ const o = c$1(i) ? void 0 : i._$litDirective$;
475
+ return h?.constructor !== o && (h?._$AO?.(false), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? (s._$Co ??= [])[e] = h : s._$Cl = h), void 0 !== h && (i = S(t, h._$AS(t, i.values), h, e)), i;
465
476
  }
466
- class F {
477
+ let M$1 = class M {
467
478
  constructor(t, i) {
468
479
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
469
480
  }
@@ -480,32 +491,32 @@ class F {
480
491
  },
481
492
  parts: s
482
493
  } = this._$AD,
483
- e = (t?.creationScope ?? w).importNode(i, !0);
484
- I.currentNode = e;
485
- let h = I.nextNode(),
494
+ e = (t?.creationScope ?? r$3).importNode(i, true);
495
+ C.currentNode = e;
496
+ let h = C.nextNode(),
486
497
  o = 0,
487
498
  n = 0,
488
- r = s[0];
489
- for (; void 0 !== r;) {
490
- if (o === r.index) {
499
+ l = s[0];
500
+ for (; void 0 !== l;) {
501
+ if (o === l.index) {
491
502
  let i;
492
- 2 === r.type ? i = new et$1(h, h.nextSibling, this, t) : 1 === r.type ? i = new r.ctor(h, r.name, r.strings, this, t) : 6 === r.type && (i = new K(h, this, t)), this._$AV.push(i), r = s[++n];
503
+ 2 === l.type ? i = new R(h, h.nextSibling, this, t) : 1 === l.type ? i = new l.ctor(h, l.name, l.strings, this, t) : 6 === l.type && (i = new z(h, this, t)), this._$AV.push(i), l = s[++n];
493
504
  }
494
- o !== r?.index && (h = I.nextNode(), o++);
505
+ o !== l?.index && (h = C.nextNode(), o++);
495
506
  }
496
- return I.currentNode = w, e;
507
+ return C.currentNode = r$3, e;
497
508
  }
498
509
  p(t) {
499
510
  let i = 0;
500
511
  for (const s of this._$AV) void 0 !== s && (void 0 !== s.strings ? (s._$AI(t, s, i), i += s.strings.length - 2) : s._$AI(t[i])), i++;
501
512
  }
502
- }
503
- let et$1 = class et {
513
+ };
514
+ class R {
504
515
  get _$AU() {
505
- return this._$AM?._$AU ?? this.v;
516
+ return this._$AM?._$AU ?? this._$Cv;
506
517
  }
507
518
  constructor(t, i, s, e) {
508
- this.type = 2, this._$AH = D, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this.v = e?.isConnected ?? !0;
519
+ this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = e?.isConnected ?? true;
509
520
  }
510
521
  get parentNode() {
511
522
  let t = this._$AA.parentNode;
@@ -519,7 +530,7 @@ let et$1 = class et {
519
530
  return this._$AB;
520
531
  }
521
532
  _$AI(t, i = this) {
522
- t = z(this, t, i), st(t) ? t === D || null == t || "" === t ? (this._$AH !== D && this._$AR(), this._$AH = D) : t !== this._$AH && t !== R && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : $(t) ? this.k(t) : this._(t);
533
+ t = S(this, t, i), c$1(t) ? t === E || null == t || "" === t ? (this._$AH !== E && this._$AR(), this._$AH = E) : t !== this._$AH && t !== T && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : u$2(t) ? this.k(t) : this._(t);
523
534
  }
524
535
  O(t) {
525
536
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -528,43 +539,43 @@ let et$1 = class et {
528
539
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
529
540
  }
530
541
  _(t) {
531
- this._$AH !== D && st(this._$AH) ? this._$AA.nextSibling.data = t : this.T(w.createTextNode(t)), this._$AH = t;
542
+ this._$AH !== E && c$1(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$3.createTextNode(t)), this._$AH = t;
532
543
  }
533
544
  $(t) {
534
545
  const {
535
546
  values: i,
536
547
  _$litType$: s
537
548
  } = t,
538
- e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = B.createElement(N(s.h, s.h[0]), this.options)), s);
549
+ e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = N.createElement(P(s.h, s.h[0]), this.options)), s);
539
550
  if (this._$AH?._$AD === e) this._$AH.p(i);else {
540
- const t = new F(e, this),
551
+ const t = new M$1(e, this),
541
552
  s = t.u(this.options);
542
553
  t.p(i), this.T(s), this._$AH = t;
543
554
  }
544
555
  }
545
556
  _$AC(t) {
546
- let i = V.get(t.strings);
547
- return void 0 === i && V.set(t.strings, i = new B(t)), i;
557
+ let i = A.get(t.strings);
558
+ return void 0 === i && A.set(t.strings, i = new N(t)), i;
548
559
  }
549
560
  k(t) {
550
- g(this._$AH) || (this._$AH = [], this._$AR());
561
+ a(this._$AH) || (this._$AH = [], this._$AR());
551
562
  const i = this._$AH;
552
563
  let s,
553
564
  e = 0;
554
- for (const h of t) e === i.length ? i.push(s = new et(this.O(lt$1()), this.O(lt$1()), this, this.options)) : s = i[e], s._$AI(h), e++;
565
+ for (const h of t) e === i.length ? i.push(s = new R(this.O(l()), this.O(l()), this, this.options)) : s = i[e], s._$AI(h), e++;
555
566
  e < i.length && (this._$AR(s && s._$AB.nextSibling, e), i.length = e);
556
567
  }
557
568
  _$AR(t = this._$AA.nextSibling, i) {
558
- for (this._$AP?.(!1, !0, i); t && t !== this._$AB;) {
569
+ for (this._$AP?.(false, true, i); t && t !== this._$AB;) {
559
570
  const i = t.nextSibling;
560
571
  t.remove(), t = i;
561
572
  }
562
573
  }
563
574
  setConnected(t) {
564
- void 0 === this._$AM && (this.v = t, this._$AP?.(t));
575
+ void 0 === this._$AM && (this._$Cv = t, this._$AP?.(t));
565
576
  }
566
- };
567
- class G {
577
+ }
578
+ class k {
568
579
  get tagName() {
569
580
  return this.element.tagName;
570
581
  }
@@ -572,54 +583,54 @@ class G {
572
583
  return this._$AM._$AU;
573
584
  }
574
585
  constructor(t, i, s, e, h) {
575
- this.type = 1, this._$AH = D, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = h, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = D;
586
+ this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = h, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = E;
576
587
  }
577
588
  _$AI(t, i = this, s, e) {
578
589
  const h = this.strings;
579
- let o = !1;
580
- if (void 0 === h) t = z(this, t, i, 0), o = !st(t) || t !== this._$AH && t !== R, o && (this._$AH = t);else {
590
+ let o = false;
591
+ if (void 0 === h) t = S(this, t, i, 0), o = !c$1(t) || t !== this._$AH && t !== T, o && (this._$AH = t);else {
581
592
  const e = t;
582
593
  let n, r;
583
- for (t = h[0], n = 0; n < h.length - 1; n++) r = z(this, e[s + n], i, n), r === R && (r = this._$AH[n]), o ||= !st(r) || r !== this._$AH[n], r === D ? t = D : t !== D && (t += (r ?? "") + h[n + 1]), this._$AH[n] = r;
594
+ for (t = h[0], n = 0; n < h.length - 1; n++) r = S(this, e[s + n], i, n), r === T && (r = this._$AH[n]), o ||= !c$1(r) || r !== this._$AH[n], r === E ? t = E : t !== E && (t += (r ?? "") + h[n + 1]), this._$AH[n] = r;
584
595
  }
585
596
  o && !e && this.j(t);
586
597
  }
587
598
  j(t) {
588
- t === D ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
599
+ t === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
589
600
  }
590
601
  }
591
- class Y extends G {
602
+ class H extends k {
592
603
  constructor() {
593
604
  super(...arguments), this.type = 3;
594
605
  }
595
606
  j(t) {
596
- this.element[this.name] = t === D ? void 0 : t;
607
+ this.element[this.name] = t === E ? void 0 : t;
597
608
  }
598
609
  }
599
- class Z extends G {
610
+ class I extends k {
600
611
  constructor() {
601
612
  super(...arguments), this.type = 4;
602
613
  }
603
614
  j(t) {
604
- this.element.toggleAttribute(this.name, !!t && t !== D);
615
+ this.element.toggleAttribute(this.name, !!t && t !== E);
605
616
  }
606
617
  }
607
- class q extends G {
618
+ class L extends k {
608
619
  constructor(t, i, s, e, h) {
609
620
  super(t, i, s, e, h), this.type = 5;
610
621
  }
611
622
  _$AI(t, i = this) {
612
- if ((t = z(this, t, i, 0) ?? D) === R) return;
623
+ if ((t = S(this, t, i, 0) ?? E) === T) return;
613
624
  const s = this._$AH,
614
- e = t === D && s !== D || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive,
615
- h = t !== D && (s === D || e);
625
+ e = t === E && s !== E || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive,
626
+ h = t !== E && (s === E || e);
616
627
  e && this.element.removeEventListener(this.name, this, s), h && this.element.addEventListener(this.name, this, t), this._$AH = t;
617
628
  }
618
629
  handleEvent(t) {
619
630
  "function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
620
631
  }
621
632
  }
622
- class K {
633
+ class z {
623
634
  constructor(t, i, s) {
624
635
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
625
636
  }
@@ -627,33 +638,19 @@ class K {
627
638
  return this._$AM._$AU;
628
639
  }
629
640
  _$AI(t) {
630
- z(this, t);
641
+ S(this, t);
631
642
  }
632
643
  }
633
- const si = {
634
- M: f$1,
635
- P: v,
636
- A: m,
637
- C: 1,
638
- L: U,
639
- R: F,
640
- D: $,
641
- V: z,
642
- I: et$1,
643
- H: G,
644
- N: Z,
645
- U: q,
646
- B: Y,
647
- F: K
648
- },
649
- Re = n$1.litHtmlPolyfillSupport;
650
- Re?.(B, et$1), (n$1.litHtmlVersions ??= []).push("3.2.0");
651
- const Q = (t, i, s) => {
644
+ const Z = {
645
+ I: R},
646
+ j = t$2.litHtmlPolyfillSupport;
647
+ j?.(N, R), (t$2.litHtmlVersions ??= []).push("3.3.0");
648
+ const B = (t, i, s) => {
652
649
  const e = s?.renderBefore ?? i;
653
650
  let h = e._$litPart$;
654
651
  if (void 0 === h) {
655
652
  const t = s?.renderBefore ?? null;
656
- e._$litPart$ = h = new et$1(i.insertBefore(lt$1(), t), t, void 0, s ?? {});
653
+ e._$litPart$ = h = new R(i.insertBefore(l(), t), t, void 0, s ?? {});
657
654
  }
658
655
  return h._$AI(t), h;
659
656
  };
@@ -663,38 +660,39 @@ const Q = (t, i, s) => {
663
660
  * Copyright 2017 Google LLC
664
661
  * SPDX-License-Identifier: BSD-3-Clause
665
662
  */
666
- class h extends b {
663
+ const s$1 = globalThis;
664
+ let i$1 = class i extends y$1 {
667
665
  constructor() {
668
666
  super(...arguments), this.renderOptions = {
669
667
  host: this
670
- }, this.o = void 0;
668
+ }, this._$Do = void 0;
671
669
  }
672
670
  createRenderRoot() {
673
671
  const t = super.createRenderRoot();
674
672
  return this.renderOptions.renderBefore ??= t.firstChild, t;
675
673
  }
676
674
  update(t) {
677
- const e = this.render();
678
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this.o = Q(e, this.renderRoot, this.renderOptions);
675
+ const r = this.render();
676
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = B(r, this.renderRoot, this.renderOptions);
679
677
  }
680
678
  connectedCallback() {
681
- super.connectedCallback(), this.o?.setConnected(!0);
679
+ super.connectedCallback(), this._$Do?.setConnected(true);
682
680
  }
683
681
  disconnectedCallback() {
684
- super.disconnectedCallback(), this.o?.setConnected(!1);
682
+ super.disconnectedCallback(), this._$Do?.setConnected(false);
685
683
  }
686
684
  render() {
687
- return R;
685
+ return T;
688
686
  }
689
- }
690
- h._$litElement$ = !0, h["finalized"] = !0, globalThis.litElementHydrateSupport?.({
691
- LitElement: h
687
+ };
688
+ i$1._$litElement$ = true, i$1["finalized"] = true, s$1.litElementHydrateSupport?.({
689
+ LitElement: i$1
692
690
  });
693
- const f = globalThis.litElementPolyfillSupport;
694
- f?.({
695
- LitElement: h
691
+ const o$1 = s$1.litElementPolyfillSupport;
692
+ o$1?.({
693
+ LitElement: i$1
696
694
  });
697
- (globalThis.litElementVersions ??= []).push("4.1.0");
695
+ (s$1.litElementVersions ??= []).push("4.2.0");
698
696
 
699
697
  /**
700
698
  * @license
@@ -702,19 +700,19 @@ f?.({
702
700
  * SPDX-License-Identifier: BSD-3-Clause
703
701
  */
704
702
  const o = {
705
- attribute: !0,
703
+ attribute: true,
706
704
  type: String,
707
- converter: u,
708
- reflect: !1,
709
- hasChanged: f$2
705
+ converter: u$3,
706
+ reflect: false,
707
+ hasChanged: f$1
710
708
  },
711
- r$1 = (t = o, e, r) => {
709
+ r$2 = (t = o, e, r) => {
712
710
  const {
713
711
  kind: n,
714
712
  metadata: i
715
713
  } = r;
716
714
  let s = globalThis.litPropertyMetadata.get(i);
717
- if (void 0 === s && globalThis.litPropertyMetadata.set(i, s = new Map()), s.set(r.name, t), "accessor" === n) {
715
+ if (void 0 === s && globalThis.litPropertyMetadata.set(i, s = new Map()), "setter" === n && ((t = Object.create(t)).wrapped = true), s.set(r.name, t), "accessor" === n) {
718
716
  const {
719
717
  name: o
720
718
  } = r;
@@ -724,7 +722,7 @@ const o = {
724
722
  e.set.call(this, r), this.requestUpdate(o, n, t);
725
723
  },
726
724
  init(e) {
727
- return void 0 !== e && this.P(o, void 0, t), e;
725
+ return void 0 !== e && this.C(o, void 0, t, e), e;
728
726
  }
729
727
  };
730
728
  }
@@ -740,12 +738,9 @@ const o = {
740
738
  throw Error("Unsupported decorator location: " + n);
741
739
  };
742
740
  function n(t) {
743
- return (e, o) => "object" == typeof o ? r$1(t, e, o) : ((t, e, o) => {
741
+ return (e, o) => "object" == typeof o ? r$2(t, e, o) : ((t, e, o) => {
744
742
  const r = e.hasOwnProperty(o);
745
- return e.constructor.createProperty(o, r ? {
746
- ...t,
747
- wrapped: !0
748
- } : t), r ? Object.getOwnPropertyDescriptor(e, o) : void 0;
743
+ return e.constructor.createProperty(o, t), r ? Object.getOwnPropertyDescriptor(e, o) : void 0;
749
744
  })(t, e, o);
750
745
  }
751
746
 
@@ -754,11 +749,11 @@ function n(t) {
754
749
  * Copyright 2017 Google LLC
755
750
  * SPDX-License-Identifier: BSD-3-Clause
756
751
  */
757
- function r(r) {
752
+ function r$1(r) {
758
753
  return n({
759
754
  ...r,
760
- state: !0,
761
- attribute: !1
755
+ state: true,
756
+ attribute: false
762
757
  });
763
758
  }
764
759
 
@@ -767,14 +762,8 @@ function r(r) {
767
762
  * Copyright 2017 Google LLC
768
763
  * SPDX-License-Identifier: BSD-3-Clause
769
764
  */
770
- const t = {
771
- ATTRIBUTE: 1,
772
- CHILD: 2,
773
- PROPERTY: 3,
774
- BOOLEAN_ATTRIBUTE: 4,
775
- EVENT: 5,
776
- ELEMENT: 6
777
- },
765
+ const t$1 = {
766
+ CHILD: 2},
778
767
  e = t => (...e) => ({
779
768
  _$litDirective$: t,
780
769
  values: e
@@ -785,7 +774,7 @@ class i {
785
774
  return this._$AM._$AU;
786
775
  }
787
776
  _$AT(t, e, i) {
788
- this.t = t, this._$AM = e, this.i = i;
777
+ this._$Ct = t, this._$AM = e, this._$Ci = i;
789
778
  }
790
779
  _$AS(t, e) {
791
780
  return this.update(t, e);
@@ -801,40 +790,40 @@ class i {
801
790
  * SPDX-License-Identifier: BSD-3-Clause
802
791
  */
803
792
  const {
804
- I: et
805
- } = si,
806
- lt = () => document.createComment(""),
807
- at = (o, t, i) => {
808
- const n = o._$AA.parentNode,
809
- e = void 0 === t ? o._$AB : t._$AA;
810
- if (void 0 === i) {
811
- const t = n.insertBefore(lt(), e),
812
- l = n.insertBefore(lt(), e);
813
- i = new et(t, l, o, o.options);
793
+ I: t
794
+ } = Z,
795
+ s = () => document.createComment(""),
796
+ r = (o, i, n) => {
797
+ const e = o._$AA.parentNode,
798
+ l = void 0 === i ? o._$AB : i._$AA;
799
+ if (void 0 === n) {
800
+ const i = e.insertBefore(s(), l),
801
+ c = e.insertBefore(s(), l);
802
+ n = new t(i, c, o, o.options);
814
803
  } else {
815
- const t = i._$AB.nextSibling,
816
- l = i._$AM,
817
- c = l !== o;
804
+ const t = n._$AB.nextSibling,
805
+ i = n._$AM,
806
+ c = i !== o;
818
807
  if (c) {
819
808
  let t;
820
- i._$AQ?.(o), i._$AM = o, void 0 !== i._$AP && (t = o._$AU) !== l._$AU && i._$AP(t);
809
+ n._$AQ?.(o), n._$AM = o, void 0 !== n._$AP && (t = o._$AU) !== i._$AU && n._$AP(t);
821
810
  }
822
- if (t !== e || c) {
823
- let o = i._$AA;
811
+ if (t !== l || c) {
812
+ let o = n._$AA;
824
813
  for (; o !== t;) {
825
814
  const t = o.nextSibling;
826
- n.insertBefore(o, e), o = t;
815
+ e.insertBefore(o, l), o = t;
827
816
  }
828
817
  }
829
818
  }
830
- return i;
819
+ return n;
831
820
  },
832
- ct = (o, t, i = o) => (o._$AI(t, i), o),
833
- ht = {},
834
- dt = (o, t = ht) => o._$AH = t,
835
- ut = o => o._$AH,
836
- pt = o => {
837
- o._$AP?.(!1, !0);
821
+ v = (o, t, i = o) => (o._$AI(t, i), o),
822
+ u$1 = {},
823
+ m = (o, t = u$1) => o._$AH = t,
824
+ p = o => o._$AH,
825
+ M = o => {
826
+ o._$AP?.(false, true);
838
827
  let t = o._$AA;
839
828
  const i = o._$AB.nextSibling;
840
829
  for (; t !== i;) {
@@ -848,14 +837,14 @@ const {
848
837
  * Copyright 2017 Google LLC
849
838
  * SPDX-License-Identifier: BSD-3-Clause
850
839
  */
851
- const Jt = (e, s, t) => {
840
+ const u = (e, s, t) => {
852
841
  const r = new Map();
853
842
  for (let l = s; l <= t; l++) r.set(e[l], l);
854
843
  return r;
855
844
  },
856
- Qt = e(class extends i {
845
+ c = e(class extends i {
857
846
  constructor(e) {
858
- if (super(e), e.type !== t.CHILD) throw Error("repeat() can only be used in text expressions");
847
+ if (super(e), e.type !== t$1.CHILD) throw Error("repeat() can only be used in text expressions");
859
848
  }
860
849
  dt(e, s, t) {
861
850
  let r;
@@ -872,41 +861,41 @@ const Jt = (e, s, t) => {
872
861
  render(e, s, t) {
873
862
  return this.dt(e, s, t).values;
874
863
  }
875
- update(e, [s, t, r]) {
876
- const l = ut(e),
864
+ update(s, [t, r$1, c]) {
865
+ const d = p(s),
877
866
  {
878
- values: o,
879
- keys: i
880
- } = this.dt(s, t, r);
881
- if (!Array.isArray(l)) return this.ut = i, o;
882
- const n = this.ut ??= [],
883
- f = [];
884
- let u,
885
- c,
886
- d = 0,
887
- p = l.length - 1,
888
- a = 0,
889
- h = o.length - 1;
890
- for (; d <= p && a <= h;) if (null === l[d]) d++;else if (null === l[p]) p--;else if (n[d] === i[a]) f[a] = ct(l[d], o[a]), d++, a++;else if (n[p] === i[h]) f[h] = ct(l[p], o[h]), p--, h--;else if (n[d] === i[h]) f[h] = ct(l[d], o[h]), at(e, f[h + 1], l[d]), d++, h--;else if (n[p] === i[a]) f[a] = ct(l[p], o[a]), at(e, l[d], l[p]), p--, a++;else if (void 0 === u && (u = Jt(i, a, h), c = Jt(n, d, p)), u.has(n[d])) {
891
- if (u.has(n[p])) {
892
- const s = c.get(i[a]),
893
- t = void 0 !== s ? l[s] : null;
867
+ values: p$1,
868
+ keys: a
869
+ } = this.dt(t, r$1, c);
870
+ if (!Array.isArray(d)) return this.ut = a, p$1;
871
+ const h = this.ut ??= [],
872
+ v$1 = [];
873
+ let m$1,
874
+ y,
875
+ x = 0,
876
+ j = d.length - 1,
877
+ k = 0,
878
+ w = p$1.length - 1;
879
+ for (; x <= j && k <= w;) if (null === d[x]) x++;else if (null === d[j]) j--;else if (h[x] === a[k]) v$1[k] = v(d[x], p$1[k]), x++, k++;else if (h[j] === a[w]) v$1[w] = v(d[j], p$1[w]), j--, w--;else if (h[x] === a[w]) v$1[w] = v(d[x], p$1[w]), r(s, v$1[w + 1], d[x]), x++, w--;else if (h[j] === a[k]) v$1[k] = v(d[j], p$1[k]), r(s, d[x], d[j]), j--, k++;else if (void 0 === m$1 && (m$1 = u(a, k, w), y = u(h, x, j)), m$1.has(h[x])) {
880
+ if (m$1.has(h[j])) {
881
+ const e = y.get(a[k]),
882
+ t = void 0 !== e ? d[e] : null;
894
883
  if (null === t) {
895
- const s = at(e, l[d]);
896
- ct(s, o[a]), f[a] = s;
897
- } else f[a] = ct(t, o[a]), at(e, l[d], t), l[s] = null;
898
- a++;
899
- } else pt(l[p]), p--;
900
- } else pt(l[d]), d++;
901
- for (; a <= h;) {
902
- const s = at(e, f[h + 1]);
903
- ct(s, o[a]), f[a++] = s;
884
+ const e = r(s, d[x]);
885
+ v(e, p$1[k]), v$1[k] = e;
886
+ } else v$1[k] = v(t, p$1[k]), r(s, d[x], t), d[e] = null;
887
+ k++;
888
+ } else M(d[j]), j--;
889
+ } else M(d[x]), x++;
890
+ for (; k <= w;) {
891
+ const e = r(s, v$1[w + 1]);
892
+ v(e, p$1[k]), v$1[k++] = e;
904
893
  }
905
- for (; d <= p;) {
906
- const e = l[d++];
907
- null !== e && pt(e);
894
+ for (; x <= j;) {
895
+ const e = d[x++];
896
+ null !== e && M(e);
908
897
  }
909
- return this.ut = i, dt(e, f), R;
898
+ return this.ut = a, m(s, v$1), T;
910
899
  }
911
900
  });
912
901
 
@@ -2089,14 +2078,14 @@ function validateWCAG2Parms(parms) {
2089
2078
  };
2090
2079
  }
2091
2080
 
2092
- class WidgetMapbox extends h {
2081
+ class WidgetMapbox extends i$1 {
2093
2082
  constructor() {
2094
2083
  super();
2095
2084
  this.map = undefined;
2096
2085
  this.dataSets = [];
2097
2086
  this.dataSources = new Map();
2098
2087
  this.colors = new Map();
2099
- this.version = '1.5.3';
2088
+ this.version = '1.5.5';
2100
2089
  this.mapLoaded = false;
2101
2090
  this.imageList = [];
2102
2091
  this.resizeObserver = new ResizeObserver(() => {
@@ -2115,14 +2104,27 @@ class WidgetMapbox extends h {
2115
2104
  if (changedProperties.has('inputData')) {
2116
2105
  this.transformInputData();
2117
2106
  }
2107
+ if (changedProperties.has('theme')) {
2108
+ this.registerTheme(this.theme);
2109
+ }
2118
2110
  super.update(changedProperties);
2119
2111
  }
2120
2112
  firstUpdated() {
2113
+ this.registerTheme(this.theme);
2121
2114
  this.transformInputData();
2122
2115
  this.createMap();
2123
2116
  this.resizeObserver.observe(this.map._container);
2124
2117
  this.fitBounds();
2125
2118
  }
2119
+ registerTheme(theme) {
2120
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
2121
+ const cssTextColor = getComputedStyle(this).getPropertyValue('--re-text-color').trim();
2122
+ const cssBgColor = getComputedStyle(this).getPropertyValue('--re-background-color').trim();
2123
+ this.themeBgColor = cssBgColor || ((_b = (_a = this.theme) === null || _a === void 0 ? void 0 : _a.theme_object) === null || _b === void 0 ? void 0 : _b.backgroundColor);
2124
+ this.themeTitleColor = cssTextColor || ((_f = (_e = (_d = (_c = this.theme) === null || _c === void 0 ? void 0 : _c.theme_object) === null || _d === void 0 ? void 0 : _d.title) === null || _e === void 0 ? void 0 : _e.textStyle) === null || _f === void 0 ? void 0 : _f.color);
2125
+ this.themeSubtitleColor =
2126
+ cssTextColor || ((_k = (_j = (_h = (_g = this.theme) === null || _g === void 0 ? void 0 : _g.theme_object) === null || _h === void 0 ? void 0 : _h.title) === null || _j === void 0 ? void 0 : _j.subtextStyle) === null || _k === void 0 ? void 0 : _k.color) || this.themeTitleColor;
2127
+ }
2126
2128
  updateMap() {
2127
2129
  if (this.customDebounce)
2128
2130
  clearTimeout(this.customDebounce);
@@ -2575,20 +2577,29 @@ class WidgetMapbox extends h {
2575
2577
  }
2576
2578
  render() {
2577
2579
  var _a, _b, _c, _d, _e, _f, _g;
2578
- return ke `
2580
+ return x `
2579
2581
  <link
2580
2582
  href="https://api.mapbox.com/mapbox-gl-js/v${mapboxgl.version}/mapbox-gl.css"
2581
2583
  rel="stylesheet"
2582
2584
  />
2583
- <div class="wrapper">
2585
+ <div
2586
+ class="wrapper"
2587
+ style="background-color: ${this.themeBgColor}; color: ${this.themeTitleColor}"
2588
+ >
2584
2589
  <header class="paging" ?active=${((_a = this.inputData) === null || _a === void 0 ? void 0 : _a.title) || ((_b = this.inputData) === null || _b === void 0 ? void 0 : _b.subTitle)}>
2585
2590
  <div class="title">
2586
2591
  <h3 class="paging" ?active=${(_c = this.inputData) === null || _c === void 0 ? void 0 : _c.title}>${(_d = this.inputData) === null || _d === void 0 ? void 0 : _d.title}</h3>
2587
- <p class="paging" ?active=${(_e = this.inputData) === null || _e === void 0 ? void 0 : _e.subTitle}>${(_f = this.inputData) === null || _f === void 0 ? void 0 : _f.subTitle}</p>
2592
+ <p
2593
+ class="paging"
2594
+ ?active=${(_e = this.inputData) === null || _e === void 0 ? void 0 : _e.subTitle}
2595
+ style="color: ${this.themeSubtitleColor}"
2596
+ >
2597
+ ${(_f = this.inputData) === null || _f === void 0 ? void 0 : _f.subTitle}
2598
+ </p>
2588
2599
  </div>
2589
2600
  <div class="legend paging" ?active=${(_g = this === null || this === void 0 ? void 0 : this.inputData) === null || _g === void 0 ? void 0 : _g.showLegend}>
2590
- ${Qt(this.dataSets, (ds) => ds.label, (ds) => {
2591
- return ke `
2601
+ ${c(this.dataSets, (ds) => ds.label, (ds) => {
2602
+ return x `
2592
2603
  <div class="label">
2593
2604
  <div
2594
2605
  style="background: ${ds.color}; width: 24px; height: 12px;"
@@ -2605,12 +2616,10 @@ class WidgetMapbox extends h {
2605
2616
  `;
2606
2617
  }
2607
2618
  }
2608
- WidgetMapbox.styles = i$2 `
2619
+ WidgetMapbox.styles = i$4 `
2609
2620
  :host {
2610
2621
  display: block;
2611
- color: var(--re-bar-text-color, #000);
2612
2622
  font-family: sans-serif;
2613
- padding: 16px;
2614
2623
  box-sizing: border-box;
2615
2624
  margin: auto;
2616
2625
  }
@@ -2645,6 +2654,8 @@ WidgetMapbox.styles = i$2 `
2645
2654
  .wrapper {
2646
2655
  display: flex;
2647
2656
  flex-direction: column;
2657
+ box-sizing: border-box;
2658
+ padding: 16px;
2648
2659
  height: 100%;
2649
2660
  width: 100%;
2650
2661
  }
@@ -2675,7 +2686,6 @@ WidgetMapbox.styles = i$2 `
2675
2686
 
2676
2687
  .no-data {
2677
2688
  font-size: 20px;
2678
- color: var(--re-text-color, #000);
2679
2689
  display: flex;
2680
2690
  height: 100%;
2681
2691
  width: 100%;
@@ -2688,18 +2698,30 @@ __decorate([
2688
2698
  n({ type: Object })
2689
2699
  ], WidgetMapbox.prototype, "inputData", void 0);
2690
2700
  __decorate([
2691
- r()
2701
+ n({ type: Object })
2702
+ ], WidgetMapbox.prototype, "theme", void 0);
2703
+ __decorate([
2704
+ r$1()
2692
2705
  ], WidgetMapbox.prototype, "map", void 0);
2693
2706
  __decorate([
2694
- r()
2707
+ r$1()
2695
2708
  ], WidgetMapbox.prototype, "dataSets", void 0);
2696
2709
  __decorate([
2697
- r()
2710
+ r$1()
2698
2711
  ], WidgetMapbox.prototype, "dataSources", void 0);
2699
2712
  __decorate([
2700
- r()
2713
+ r$1()
2701
2714
  ], WidgetMapbox.prototype, "colors", void 0);
2702
- window.customElements.define('widget-mapbox-1.5.3', WidgetMapbox);
2715
+ __decorate([
2716
+ r$1()
2717
+ ], WidgetMapbox.prototype, "themeBgColor", void 0);
2718
+ __decorate([
2719
+ r$1()
2720
+ ], WidgetMapbox.prototype, "themeTitleColor", void 0);
2721
+ __decorate([
2722
+ r$1()
2723
+ ], WidgetMapbox.prototype, "themeSubtitleColor", void 0);
2724
+ window.customElements.define('widget-mapbox-1.5.5', WidgetMapbox);
2703
2725
 
2704
2726
  export { WidgetMapbox };
2705
2727
  //# sourceMappingURL=widget-mapbox.js.map