@startinblox/boilerplate 4.3.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,20 +1,15 @@
1
- /**
2
- * @license
3
- * Copyright 2019 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */
6
- const N = globalThis, et = N.ShadowRoot && (N.ShadyCSS === void 0 || N.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, st = Symbol(), ut = /* @__PURE__ */ new WeakMap();
1
+ const N = globalThis, Y = N.ShadowRoot && (N.ShadyCSS === void 0 || N.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, tt = /* @__PURE__ */ Symbol(), lt = /* @__PURE__ */ new WeakMap();
7
2
  let Ct = class {
8
3
  constructor(t, e, r) {
9
- if (this._$cssResult$ = !0, r !== st) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
4
+ if (this._$cssResult$ = !0, r !== tt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
10
5
  this.cssText = t, this.t = e;
11
6
  }
12
7
  get styleSheet() {
13
8
  let t = this.o;
14
9
  const e = this.t;
15
- if (et && t === void 0) {
10
+ if (Y && t === void 0) {
16
11
  const r = e !== void 0 && e.length === 1;
17
- r && (t = ut.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && ut.set(e, t));
12
+ r && (t = lt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && lt.set(e, t));
18
13
  }
19
14
  return t;
20
15
  }
@@ -22,33 +17,28 @@ let Ct = class {
22
17
  return this.cssText;
23
18
  }
24
19
  };
25
- const it = (s) => new Ct(typeof s == "string" ? s : s + "", void 0, st), rt = (s, ...t) => {
26
- const e = s.length === 1 ? s[0] : t.reduce(((r, i, o) => r + ((n) => {
20
+ const et = (s) => new Ct(typeof s == "string" ? s : s + "", void 0, tt), st = (s, ...t) => {
21
+ const e = s.length === 1 ? s[0] : t.reduce((r, i, o) => r + ((n) => {
27
22
  if (n._$cssResult$ === !0) return n.cssText;
28
23
  if (typeof n == "number") return n;
29
24
  throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
30
- })(i) + s[o + 1]), s[0]);
31
- return new Ct(e, s, st);
32
- }, Vt = (s, t) => {
33
- if (et) s.adoptedStyleSheets = t.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
25
+ })(i) + s[o + 1], s[0]);
26
+ return new Ct(e, s, tt);
27
+ }, Bt = (s, t) => {
28
+ if (Y) s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
34
29
  else for (const e of t) {
35
30
  const r = document.createElement("style"), i = N.litNonce;
36
31
  i !== void 0 && r.setAttribute("nonce", i), r.textContent = e.cssText, s.appendChild(r);
37
32
  }
38
- }, dt = et ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
33
+ }, ct = Y ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
39
34
  let e = "";
40
35
  for (const r of t.cssRules) e += r.cssText;
41
- return it(e);
36
+ return et(e);
42
37
  })(s) : s;
43
- /**
44
- * @license
45
- * Copyright 2017 Google LLC
46
- * SPDX-License-Identifier: BSD-3-Clause
47
- */
48
- const { is: Bt, defineProperty: Wt, getOwnPropertyDescriptor: Ft, getOwnPropertyNames: Kt, getOwnPropertySymbols: Xt, getPrototypeOf: Jt } = Object, B = globalThis, pt = B.trustedTypes, Zt = pt ? pt.emptyScript : "", Gt = B.reactiveElementPolyfillSupport, O = (s, t) => s, D = { toAttribute(s, t) {
38
+ const { is: Wt, defineProperty: Ft, getOwnPropertyDescriptor: Kt, getOwnPropertyNames: Zt, getOwnPropertySymbols: Jt, getPrototypeOf: Xt } = Object, B = globalThis, ut = B.trustedTypes, Gt = ut ? ut.emptyScript : "", Qt = B.reactiveElementPolyfillSupport, O = (s, t) => s, D = { toAttribute(s, t) {
49
39
  switch (t) {
50
40
  case Boolean:
51
- s = s ? Zt : null;
41
+ s = s ? Gt : null;
52
42
  break;
53
43
  case Object:
54
44
  case Array:
@@ -73,8 +63,8 @@ const { is: Bt, defineProperty: Wt, getOwnPropertyDescriptor: Ft, getOwnProperty
73
63
  }
74
64
  }
75
65
  return e;
76
- } }, W = (s, t) => !Bt(s, t), ft = { attribute: !0, type: String, converter: D, reflect: !1, useDefault: !1, hasChanged: W };
77
- Symbol.metadata ??= Symbol("metadata"), B.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
66
+ } }, W = (s, t) => !Wt(s, t), dt = { attribute: !0, type: String, converter: D, reflect: !1, useDefault: !1, hasChanged: W };
67
+ Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), B.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
78
68
  let E = class extends HTMLElement {
79
69
  static addInitializer(t) {
80
70
  this._$Ei(), (this.l ??= []).push(t);
@@ -82,14 +72,14 @@ let E = class extends HTMLElement {
82
72
  static get observedAttributes() {
83
73
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
84
74
  }
85
- static createProperty(t, e = ft) {
75
+ static createProperty(t, e = dt) {
86
76
  if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
87
- const r = Symbol(), i = this.getPropertyDescriptor(t, r, e);
88
- i !== void 0 && Wt(this.prototype, t, i);
77
+ const r = /* @__PURE__ */ Symbol(), i = this.getPropertyDescriptor(t, r, e);
78
+ i !== void 0 && Ft(this.prototype, t, i);
89
79
  }
90
80
  }
91
81
  static getPropertyDescriptor(t, e, r) {
92
- const { get: i, set: o } = Ft(this.prototype, t) ?? { get() {
82
+ const { get: i, set: o } = Kt(this.prototype, t) ?? { get() {
93
83
  return this[e];
94
84
  }, set(n) {
95
85
  this[e] = n;
@@ -100,17 +90,17 @@ let E = class extends HTMLElement {
100
90
  }, configurable: !0, enumerable: !0 };
101
91
  }
102
92
  static getPropertyOptions(t) {
103
- return this.elementProperties.get(t) ?? ft;
93
+ return this.elementProperties.get(t) ?? dt;
104
94
  }
105
95
  static _$Ei() {
106
96
  if (this.hasOwnProperty(O("elementProperties"))) return;
107
- const t = Jt(this);
97
+ const t = Xt(this);
108
98
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
109
99
  }
110
100
  static finalize() {
111
101
  if (this.hasOwnProperty(O("finalized"))) return;
112
102
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(O("properties"))) {
113
- const e = this.properties, r = [...Kt(e), ...Xt(e)];
103
+ const e = this.properties, r = [...Zt(e), ...Jt(e)];
114
104
  for (const i of r) this.createProperty(i, e[i]);
115
105
  }
116
106
  const t = this[Symbol.metadata];
@@ -129,8 +119,8 @@ let E = class extends HTMLElement {
129
119
  const e = [];
130
120
  if (Array.isArray(t)) {
131
121
  const r = new Set(t.flat(1 / 0).reverse());
132
- for (const i of r) e.unshift(dt(i));
133
- } else t !== void 0 && e.push(dt(t));
122
+ for (const i of r) e.unshift(ct(i));
123
+ } else t !== void 0 && e.push(ct(t));
134
124
  return e;
135
125
  }
136
126
  static _$Eu(t, e) {
@@ -141,7 +131,7 @@ let E = class extends HTMLElement {
141
131
  super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
142
132
  }
143
133
  _$Ev() {
144
- this._$ES = new Promise(((t) => this.enableUpdating = t)), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach(((t) => t(this)));
134
+ this._$ES = new Promise((t) => this.enableUpdating = t), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t) => t(this));
145
135
  }
146
136
  addController(t) {
147
137
  (this._$EO ??= /* @__PURE__ */ new Set()).add(t), this.renderRoot !== void 0 && this.isConnected && t.hostConnected?.();
@@ -156,15 +146,15 @@ let E = class extends HTMLElement {
156
146
  }
157
147
  createRenderRoot() {
158
148
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
159
- return Vt(t, this.constructor.elementStyles), t;
149
+ return Bt(t, this.constructor.elementStyles), t;
160
150
  }
161
151
  connectedCallback() {
162
- this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach(((t) => t.hostConnected?.()));
152
+ this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach((t) => t.hostConnected?.());
163
153
  }
164
154
  enableUpdating(t) {
165
155
  }
166
156
  disconnectedCallback() {
167
- this._$EO?.forEach(((t) => t.hostDisconnected?.()));
157
+ this._$EO?.forEach((t) => t.hostDisconnected?.());
168
158
  }
169
159
  attributeChangedCallback(t, e, r) {
170
160
  this._$AK(t, r);
@@ -185,10 +175,10 @@ let E = class extends HTMLElement {
185
175
  this[i] = h ?? this._$Ej?.get(i) ?? h, this._$Em = null;
186
176
  }
187
177
  }
188
- requestUpdate(t, e, r) {
178
+ requestUpdate(t, e, r, i = !1, o) {
189
179
  if (t !== void 0) {
190
- const i = this.constructor, o = this[t];
191
- if (r ??= i.getPropertyOptions(t), !((r.hasChanged ?? W)(o, e) || r.useDefault && r.reflect && o === this._$Ej?.get(t) && !this.hasAttribute(i._$Eu(t, r)))) return;
180
+ const n = this.constructor;
181
+ if (i === !1 && (o = this[t]), r ??= n.getPropertyOptions(t), !((r.hasChanged ?? W)(o, e) || r.useDefault && r.reflect && o === this._$Ej?.get(t) && !this.hasAttribute(n._$Eu(t, r)))) return;
192
182
  this.C(t, e, r);
193
183
  }
194
184
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
@@ -225,7 +215,7 @@ let E = class extends HTMLElement {
225
215
  let t = !1;
226
216
  const e = this._$AL;
227
217
  try {
228
- t = this.shouldUpdate(e), t ? (this.willUpdate(e), this._$EO?.forEach(((r) => r.hostUpdate?.())), this.update(e)) : this._$EM();
218
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), this._$EO?.forEach((r) => r.hostUpdate?.()), this.update(e)) : this._$EM();
229
219
  } catch (r) {
230
220
  throw t = !1, this._$EM(), r;
231
221
  }
@@ -234,7 +224,7 @@ let E = class extends HTMLElement {
234
224
  willUpdate(t) {
235
225
  }
236
226
  _$AE(t) {
237
- this._$EO?.forEach(((e) => e.hostUpdated?.())), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
227
+ this._$EO?.forEach((e) => e.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
238
228
  }
239
229
  _$EM() {
240
230
  this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
@@ -249,55 +239,50 @@ let E = class extends HTMLElement {
249
239
  return !0;
250
240
  }
251
241
  update(t) {
252
- this._$Eq &&= this._$Eq.forEach(((e) => this._$ET(e, this[e]))), this._$EM();
242
+ this._$Eq &&= this._$Eq.forEach((e) => this._$ET(e, this[e])), this._$EM();
253
243
  }
254
244
  updated(t) {
255
245
  }
256
246
  firstUpdated(t) {
257
247
  }
258
248
  };
259
- E.elementStyles = [], E.shadowRootOptions = { mode: "open" }, E[O("elementProperties")] = /* @__PURE__ */ new Map(), E[O("finalized")] = /* @__PURE__ */ new Map(), Gt?.({ ReactiveElement: E }), (B.reactiveElementVersions ??= []).push("2.1.1");
260
- /**
261
- * @license
262
- * Copyright 2017 Google LLC
263
- * SPDX-License-Identifier: BSD-3-Clause
264
- */
265
- const ot = globalThis, q = ot.trustedTypes, _t = q ? q.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Pt = "$lit$", y = `lit$${Math.random().toFixed(9).slice(2)}$`, Rt = "?" + y, Qt = `<${Rt}>`, A = document, j = () => A.createComment(""), x = (s) => s === null || typeof s != "object" && typeof s != "function", nt = Array.isArray, Yt = (s) => nt(s) || typeof s?.[Symbol.iterator] == "function", K = `[
266
- \f\r]`, R = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, $t = /-->/g, gt = />/g, b = RegExp(`>|${K}(?:([^\\s"'>=/]+)(${K}*=${K}*(?:[^
267
- \f\r"'\`<>=]|("|')|))|$)`, "g"), yt = /'/g, vt = /"/g, Ot = /^(?:script|style|textarea|title)$/i, te = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), T = te(1), C = Symbol.for("lit-noChange"), c = Symbol.for("lit-nothing"), bt = /* @__PURE__ */ new WeakMap(), w = A.createTreeWalker(A, 129);
268
- function jt(s, t) {
269
- if (!nt(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
270
- return _t !== void 0 ? _t.createHTML(t) : t;
249
+ E.elementStyles = [], E.shadowRootOptions = { mode: "open" }, E[O("elementProperties")] = /* @__PURE__ */ new Map(), E[O("finalized")] = /* @__PURE__ */ new Map(), Qt?.({ ReactiveElement: E }), (B.reactiveElementVersions ??= []).push("2.1.2");
250
+ const it = globalThis, pt = (s) => s, q = it.trustedTypes, ft = q ? q.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Rt = "$lit$", y = `lit$${Math.random().toFixed(9).slice(2)}$`, Ot = "?" + y, Yt = `<${Ot}>`, A = document, j = () => A.createComment(""), x = (s) => s === null || typeof s != "object" && typeof s != "function", rt = Array.isArray, te = (s) => rt(s) || typeof s?.[Symbol.iterator] == "function", K = `[
251
+ \f\r]`, R = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, _t = /-->/g, $t = />/g, b = RegExp(`>|${K}(?:([^\\s"'>=/]+)(${K}*=${K}*(?:[^
252
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), gt = /'/g, yt = /"/g, jt = /^(?:script|style|textarea|title)$/i, ee = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), T = ee(1), P = /* @__PURE__ */ Symbol.for("lit-noChange"), c = /* @__PURE__ */ Symbol.for("lit-nothing"), vt = /* @__PURE__ */ new WeakMap(), w = A.createTreeWalker(A, 129);
253
+ function xt(s, t) {
254
+ if (!rt(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
255
+ return ft !== void 0 ? ft.createHTML(t) : t;
271
256
  }
272
- const ee = (s, t) => {
257
+ const se = (s, t) => {
273
258
  const e = s.length - 1, r = [];
274
259
  let i, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = R;
275
260
  for (let h = 0; h < e; h++) {
276
261
  const a = s[h];
277
262
  let u, d, l = -1, f = 0;
278
- for (; f < a.length && (n.lastIndex = f, d = n.exec(a), d !== null); ) f = n.lastIndex, n === R ? d[1] === "!--" ? n = $t : d[1] !== void 0 ? n = gt : d[2] !== void 0 ? (Ot.test(d[2]) && (i = RegExp("</" + d[2], "g")), n = b) : d[3] !== void 0 && (n = b) : n === b ? d[0] === ">" ? (n = i ?? R, l = -1) : d[1] === void 0 ? l = -2 : (l = n.lastIndex - d[2].length, u = d[1], n = d[3] === void 0 ? b : d[3] === '"' ? vt : yt) : n === vt || n === yt ? n = b : n === $t || n === gt ? n = R : (n = b, i = void 0);
263
+ for (; f < a.length && (n.lastIndex = f, d = n.exec(a), d !== null); ) f = n.lastIndex, n === R ? d[1] === "!--" ? n = _t : d[1] !== void 0 ? n = $t : d[2] !== void 0 ? (jt.test(d[2]) && (i = RegExp("</" + d[2], "g")), n = b) : d[3] !== void 0 && (n = b) : n === b ? d[0] === ">" ? (n = i ?? R, l = -1) : d[1] === void 0 ? l = -2 : (l = n.lastIndex - d[2].length, u = d[1], n = d[3] === void 0 ? b : d[3] === '"' ? yt : gt) : n === yt || n === gt ? n = b : n === _t || n === $t ? n = R : (n = b, i = void 0);
279
264
  const g = n === b && s[h + 1].startsWith("/>") ? " " : "";
280
- o += n === R ? a + Qt : l >= 0 ? (r.push(u), a.slice(0, l) + Pt + a.slice(l) + y + g) : a + y + (l === -2 ? h : g);
265
+ o += n === R ? a + Yt : l >= 0 ? (r.push(u), a.slice(0, l) + Rt + a.slice(l) + y + g) : a + y + (l === -2 ? h : g);
281
266
  }
282
- return [jt(s, o + (s[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
267
+ return [xt(s, o + (s[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
283
268
  };
284
269
  class L {
285
270
  constructor({ strings: t, _$litType$: e }, r) {
286
271
  let i;
287
272
  this.parts = [];
288
273
  let o = 0, n = 0;
289
- const h = t.length - 1, a = this.parts, [u, d] = ee(t, e);
274
+ const h = t.length - 1, a = this.parts, [u, d] = se(t, e);
290
275
  if (this.el = L.createElement(u, r), w.currentNode = this.el.content, e === 2 || e === 3) {
291
276
  const l = this.el.content.firstChild;
292
277
  l.replaceWith(...l.childNodes);
293
278
  }
294
279
  for (; (i = w.nextNode()) !== null && a.length < h; ) {
295
280
  if (i.nodeType === 1) {
296
- if (i.hasAttributes()) for (const l of i.getAttributeNames()) if (l.endsWith(Pt)) {
281
+ if (i.hasAttributes()) for (const l of i.getAttributeNames()) if (l.endsWith(Rt)) {
297
282
  const f = d[n++], g = i.getAttribute(l).split(y), M = /([.?@])?(.*)/.exec(f);
298
- a.push({ type: 1, index: o, name: M[2], strings: g, ctor: M[1] === "." ? ie : M[1] === "?" ? re : M[1] === "@" ? oe : F }), i.removeAttribute(l);
283
+ a.push({ type: 1, index: o, name: M[2], strings: g, ctor: M[1] === "." ? re : M[1] === "?" ? oe : M[1] === "@" ? ne : F }), i.removeAttribute(l);
299
284
  } else l.startsWith(y) && (a.push({ type: 6, index: o }), i.removeAttribute(l));
300
- if (Ot.test(i.tagName)) {
285
+ if (jt.test(i.tagName)) {
301
286
  const l = i.textContent.split(y), f = l.length - 1;
302
287
  if (f > 0) {
303
288
  i.textContent = q ? q.emptyScript : "";
@@ -305,7 +290,7 @@ class L {
305
290
  i.append(l[f], j());
306
291
  }
307
292
  }
308
- } else if (i.nodeType === 8) if (i.data === Rt) a.push({ type: 2, index: o });
293
+ } else if (i.nodeType === 8) if (i.data === Ot) a.push({ type: 2, index: o });
309
294
  else {
310
295
  let l = -1;
311
296
  for (; (l = i.data.indexOf(y, l + 1)) !== -1; ) a.push({ type: 7, index: o }), l += y.length - 1;
@@ -318,13 +303,13 @@ class L {
318
303
  return r.innerHTML = t, r;
319
304
  }
320
305
  }
321
- function P(s, t, e = s, r) {
322
- if (t === C) return t;
306
+ function C(s, t, e = s, r) {
307
+ if (t === P) return t;
323
308
  let i = r !== void 0 ? e._$Co?.[r] : e._$Cl;
324
309
  const o = x(t) ? void 0 : t._$litDirective$;
325
- return i?.constructor !== o && (i?._$AO?.(!1), o === void 0 ? i = void 0 : (i = new o(s), i._$AT(s, e, r)), r !== void 0 ? (e._$Co ??= [])[r] = i : e._$Cl = i), i !== void 0 && (t = P(s, i._$AS(s, t.values), i, r)), t;
310
+ return i?.constructor !== o && (i?._$AO?.(!1), o === void 0 ? i = void 0 : (i = new o(s), i._$AT(s, e, r)), r !== void 0 ? (e._$Co ??= [])[r] = i : e._$Cl = i), i !== void 0 && (t = C(s, i._$AS(s, t.values), i, r)), t;
326
311
  }
327
- class se {
312
+ class ie {
328
313
  constructor(t, e) {
329
314
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
330
315
  }
@@ -341,7 +326,7 @@ class se {
341
326
  for (; a !== void 0; ) {
342
327
  if (n === a.index) {
343
328
  let u;
344
- a.type === 2 ? u = new U(o, o.nextSibling, this, t) : a.type === 1 ? u = new a.ctor(o, a.name, a.strings, this, t) : a.type === 6 && (u = new ne(o, this, t)), this._$AV.push(u), a = r[++h];
329
+ a.type === 2 ? u = new U(o, o.nextSibling, this, t) : a.type === 1 ? u = new a.ctor(o, a.name, a.strings, this, t) : a.type === 6 && (u = new ae(o, this, t)), this._$AV.push(u), a = r[++h];
345
330
  }
346
331
  n !== a?.index && (o = w.nextNode(), n++);
347
332
  }
@@ -371,7 +356,7 @@ class U {
371
356
  return this._$AB;
372
357
  }
373
358
  _$AI(t, e = this) {
374
- t = P(this, t, e), x(t) ? t === c || t == null || t === "" ? (this._$AH !== c && this._$AR(), this._$AH = c) : t !== this._$AH && t !== C && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Yt(t) ? this.k(t) : this._(t);
359
+ t = C(this, t, e), x(t) ? t === c || t == null || t === "" ? (this._$AH !== c && this._$AR(), this._$AH = c) : t !== this._$AH && t !== P && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : te(t) ? this.k(t) : this._(t);
375
360
  }
376
361
  O(t) {
377
362
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -383,19 +368,19 @@ class U {
383
368
  this._$AH !== c && x(this._$AH) ? this._$AA.nextSibling.data = t : this.T(A.createTextNode(t)), this._$AH = t;
384
369
  }
385
370
  $(t) {
386
- const { values: e, _$litType$: r } = t, i = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = L.createElement(jt(r.h, r.h[0]), this.options)), r);
371
+ const { values: e, _$litType$: r } = t, i = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = L.createElement(xt(r.h, r.h[0]), this.options)), r);
387
372
  if (this._$AH?._$AD === i) this._$AH.p(e);
388
373
  else {
389
- const o = new se(i, this), n = o.u(this.options);
374
+ const o = new ie(i, this), n = o.u(this.options);
390
375
  o.p(e), this.T(n), this._$AH = o;
391
376
  }
392
377
  }
393
378
  _$AC(t) {
394
- let e = bt.get(t.strings);
395
- return e === void 0 && bt.set(t.strings, e = new L(t)), e;
379
+ let e = vt.get(t.strings);
380
+ return e === void 0 && vt.set(t.strings, e = new L(t)), e;
396
381
  }
397
382
  k(t) {
398
- nt(this._$AH) || (this._$AH = [], this._$AR());
383
+ rt(this._$AH) || (this._$AH = [], this._$AR());
399
384
  const e = this._$AH;
400
385
  let r, i = 0;
401
386
  for (const o of t) i === e.length ? e.push(r = new U(this.O(j()), this.O(j()), this, this.options)) : r = e[i], r._$AI(o), i++;
@@ -403,8 +388,8 @@ class U {
403
388
  }
404
389
  _$AR(t = this._$AA.nextSibling, e) {
405
390
  for (this._$AP?.(!1, !0, e); t !== this._$AB; ) {
406
- const r = t.nextSibling;
407
- t.remove(), t = r;
391
+ const r = pt(t).nextSibling;
392
+ pt(t).remove(), t = r;
408
393
  }
409
394
  }
410
395
  setConnected(t) {
@@ -424,11 +409,11 @@ class F {
424
409
  _$AI(t, e = this, r, i) {
425
410
  const o = this.strings;
426
411
  let n = !1;
427
- if (o === void 0) t = P(this, t, e, 0), n = !x(t) || t !== this._$AH && t !== C, n && (this._$AH = t);
412
+ if (o === void 0) t = C(this, t, e, 0), n = !x(t) || t !== this._$AH && t !== P, n && (this._$AH = t);
428
413
  else {
429
414
  const h = t;
430
415
  let a, u;
431
- for (t = o[0], a = 0; a < o.length - 1; a++) u = P(this, h[r + a], e, a), u === C && (u = this._$AH[a]), n ||= !x(u) || u !== this._$AH[a], u === c ? t = c : t !== c && (t += (u ?? "") + o[a + 1]), this._$AH[a] = u;
416
+ for (t = o[0], a = 0; a < o.length - 1; a++) u = C(this, h[r + a], e, a), u === P && (u = this._$AH[a]), n ||= !x(u) || u !== this._$AH[a], u === c ? t = c : t !== c && (t += (u ?? "") + o[a + 1]), this._$AH[a] = u;
432
417
  }
433
418
  n && !i && this.j(t);
434
419
  }
@@ -436,7 +421,7 @@ class F {
436
421
  t === c ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
437
422
  }
438
423
  }
439
- class ie extends F {
424
+ class re extends F {
440
425
  constructor() {
441
426
  super(...arguments), this.type = 3;
442
427
  }
@@ -444,7 +429,7 @@ class ie extends F {
444
429
  this.element[this.name] = t === c ? void 0 : t;
445
430
  }
446
431
  }
447
- class re extends F {
432
+ class oe extends F {
448
433
  constructor() {
449
434
  super(...arguments), this.type = 4;
450
435
  }
@@ -452,12 +437,12 @@ class re extends F {
452
437
  this.element.toggleAttribute(this.name, !!t && t !== c);
453
438
  }
454
439
  }
455
- class oe extends F {
440
+ class ne extends F {
456
441
  constructor(t, e, r, i, o) {
457
442
  super(t, e, r, i, o), this.type = 5;
458
443
  }
459
444
  _$AI(t, e = this) {
460
- if ((t = P(this, t, e, 0) ?? c) === C) return;
445
+ if ((t = C(this, t, e, 0) ?? c) === P) return;
461
446
  const r = this._$AH, i = t === c && r !== c || t.capture !== r.capture || t.once !== r.once || t.passive !== r.passive, o = t !== c && (r === c || i);
462
447
  i && this.element.removeEventListener(this.name, this, r), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
463
448
  }
@@ -465,7 +450,7 @@ class oe extends F {
465
450
  typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
466
451
  }
467
452
  }
468
- class ne {
453
+ class ae {
469
454
  constructor(t, e, r) {
470
455
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = r;
471
456
  }
@@ -473,12 +458,12 @@ class ne {
473
458
  return this._$AM._$AU;
474
459
  }
475
460
  _$AI(t) {
476
- P(this, t);
461
+ C(this, t);
477
462
  }
478
463
  }
479
- const ae = ot.litHtmlPolyfillSupport;
480
- ae?.(L, U), (ot.litHtmlVersions ??= []).push("3.3.1");
481
- const he = (s, t, e) => {
464
+ const he = it.litHtmlPolyfillSupport;
465
+ he?.(L, U), (it.litHtmlVersions ??= []).push("3.3.2");
466
+ const le = (s, t, e) => {
482
467
  const r = e?.renderBefore ?? t;
483
468
  let i = r._$litPart$;
484
469
  if (i === void 0) {
@@ -487,12 +472,7 @@ const he = (s, t, e) => {
487
472
  }
488
473
  return i._$AI(s), i;
489
474
  };
490
- /**
491
- * @license
492
- * Copyright 2017 Google LLC
493
- * SPDX-License-Identifier: BSD-3-Clause
494
- */
495
- const at = globalThis;
475
+ const ot = globalThis;
496
476
  let S = class extends E {
497
477
  constructor() {
498
478
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
@@ -503,7 +483,7 @@ let S = class extends E {
503
483
  }
504
484
  update(t) {
505
485
  const e = this.render();
506
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = he(e, this.renderRoot, this.renderOptions);
486
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = le(e, this.renderRoot, this.renderOptions);
507
487
  }
508
488
  connectedCallback() {
509
489
  super.connectedCallback(), this._$Do?.setConnected(!0);
@@ -512,36 +492,26 @@ let S = class extends E {
512
492
  super.disconnectedCallback(), this._$Do?.setConnected(!1);
513
493
  }
514
494
  render() {
515
- return C;
495
+ return P;
516
496
  }
517
497
  };
518
- S._$litElement$ = !0, S.finalized = !0, at.litElementHydrateSupport?.({ LitElement: S });
519
- const le = at.litElementPolyfillSupport;
520
- le?.({ LitElement: S });
521
- (at.litElementVersions ??= []).push("4.2.1");
522
- /**
523
- * @license
524
- * Copyright 2017 Google LLC
525
- * SPDX-License-Identifier: BSD-3-Clause
526
- */
527
- const ht = (s) => (t, e) => {
528
- e !== void 0 ? e.addInitializer((() => {
498
+ S._$litElement$ = !0, S.finalized = !0, ot.litElementHydrateSupport?.({ LitElement: S });
499
+ const ce = ot.litElementPolyfillSupport;
500
+ ce?.({ LitElement: S });
501
+ (ot.litElementVersions ??= []).push("4.2.2");
502
+ const nt = (s) => (t, e) => {
503
+ e !== void 0 ? e.addInitializer(() => {
529
504
  customElements.define(s, t);
530
- })) : customElements.define(s, t);
505
+ }) : customElements.define(s, t);
531
506
  };
532
- /**
533
- * @license
534
- * Copyright 2017 Google LLC
535
- * SPDX-License-Identifier: BSD-3-Clause
536
- */
537
- const ce = { attribute: !0, type: String, converter: D, reflect: !1, hasChanged: W }, ue = (s = ce, t, e) => {
507
+ const ue = { attribute: !0, type: String, converter: D, reflect: !1, hasChanged: W }, de = (s = ue, t, e) => {
538
508
  const { kind: r, metadata: i } = e;
539
509
  let o = globalThis.litPropertyMetadata.get(i);
540
510
  if (o === void 0 && globalThis.litPropertyMetadata.set(i, o = /* @__PURE__ */ new Map()), r === "setter" && ((s = Object.create(s)).wrapped = !0), o.set(e.name, s), r === "accessor") {
541
511
  const { name: n } = e;
542
512
  return { set(h) {
543
513
  const a = t.get.call(this);
544
- t.set.call(this, h), this.requestUpdate(n, a, s);
514
+ t.set.call(this, h), this.requestUpdate(n, a, s, !0, h);
545
515
  }, init(h) {
546
516
  return h !== void 0 && this.C(n, void 0, s, h), h;
547
517
  } };
@@ -550,32 +520,22 @@ const ce = { attribute: !0, type: String, converter: D, reflect: !1, hasChanged:
550
520
  const { name: n } = e;
551
521
  return function(h) {
552
522
  const a = this[n];
553
- t.call(this, h), this.requestUpdate(n, a, s);
523
+ t.call(this, h), this.requestUpdate(n, a, s, !0, h);
554
524
  };
555
525
  }
556
526
  throw Error("Unsupported decorator location: " + r);
557
527
  };
558
528
  function p(s) {
559
- return (t, e) => typeof e == "object" ? ue(s, t, e) : ((r, i, o) => {
529
+ return (t, e) => typeof e == "object" ? de(s, t, e) : ((r, i, o) => {
560
530
  const n = i.hasOwnProperty(o);
561
531
  return i.constructor.createProperty(o, r), n ? Object.getOwnPropertyDescriptor(i, o) : void 0;
562
532
  })(s, t, e);
563
533
  }
564
- /**
565
- * @license
566
- * Copyright 2017 Google LLC
567
- * SPDX-License-Identifier: BSD-3-Clause
568
- */
569
- function xt(s) {
534
+ function Tt(s) {
570
535
  return p({ ...s, state: !0, attribute: !1 });
571
536
  }
572
- /**
573
- * @license
574
- * Copyright 2017 Google LLC
575
- * SPDX-License-Identifier: BSD-3-Clause
576
- */
577
- const de = Symbol();
578
- class pe {
537
+ const pe = /* @__PURE__ */ Symbol();
538
+ class fe {
579
539
  get taskComplete() {
580
540
  return this.t || (this.i === 1 ? this.t = new Promise(((t, e) => {
581
541
  this.o = t, this.h = e;
@@ -584,7 +544,7 @@ class pe {
584
544
  constructor(t, e, r) {
585
545
  this.p = 0, this.i = 0, (this._ = t).addController(this);
586
546
  const i = typeof e == "object" ? e : { task: e, args: r };
587
- this.v = i.task, this.j = i.args, this.m = i.argsEqual ?? fe, this.k = i.onComplete, this.A = i.onError, this.autoRun = i.autoRun ?? !0, "initialValue" in i && (this.u = i.initialValue, this.i = 2, this.O = this.T?.());
547
+ this.v = i.task, this.j = i.args, this.m = i.argsEqual ?? _e, this.k = i.onComplete, this.A = i.onError, this.autoRun = i.autoRun ?? !0, "initialValue" in i && (this.u = i.initialValue, this.i = 2, this.O = this.T?.());
588
548
  }
589
549
  hostUpdate() {
590
550
  this.autoRun === !0 && this.S();
@@ -614,7 +574,7 @@ class pe {
614
574
  o = !0, r = n;
615
575
  }
616
576
  if (this.p === i) {
617
- if (e === de) this.i = 0;
577
+ if (e === pe) this.i = 0;
618
578
  else {
619
579
  if (o === !1) {
620
580
  try {
@@ -661,31 +621,31 @@ class pe {
661
621
  }
662
622
  }
663
623
  }
664
- const fe = (s, t) => s === t || s.length === t.length && s.every(((e, r) => !W(e, t[r])));
624
+ const _e = (s, t) => s === t || s.length === t.length && s.every(((e, r) => !W(e, t[r])));
665
625
  !window.orbit && !"/".includes("cypress") && await new Promise((s) => {
666
626
  document.addEventListener("orbit-ready", () => {
667
627
  s(!0);
668
628
  });
669
629
  });
670
- var _e = Object.defineProperty, $e = (s, t, e, r) => {
630
+ var $e = Object.defineProperty, ge = (s, t, e, r) => {
671
631
  for (var i = void 0, o = s.length - 1, n; o >= 0; o--)
672
632
  (n = s[o]) && (i = n(t, e, i) || i);
673
- return i && _e(t, e, i), i;
633
+ return i && $e(t, e, i), i;
674
634
  };
675
- class lt extends S {
635
+ class at extends S {
676
636
  constructor() {
677
637
  super(...arguments), this.objects = [], this.hasType = (t, e = this.objects) => new Set(e.flatMap((i) => i["@type"])).has(t);
678
638
  }
679
639
  }
680
- $e([
640
+ ge([
681
641
  p({ attribute: !1 })
682
- ], lt.prototype, "objects");
683
- var ge = Object.defineProperty, v = (s, t, e, r) => {
642
+ ], at.prototype, "objects");
643
+ var ye = Object.defineProperty, v = (s, t, e, r) => {
684
644
  for (var i = void 0, o = s.length - 1, n; o >= 0; o--)
685
645
  (n = s[o]) && (i = n(t, e, i) || i);
686
- return i && ge(t, e, i), i;
646
+ return i && ye(t, e, i), i;
687
647
  };
688
- class $ extends lt {
648
+ class $ extends at {
689
649
  constructor({
690
650
  defaultRoute: t = !1,
691
651
  setupSubscriptions: e = !0,
@@ -702,7 +662,7 @@ class $ extends lt {
702
662
  document.readyState === "complete" ? i() : document.addEventListener("readystatechange", i);
703
663
  }
704
664
  async _attach(t, e, r) {
705
- return !this.orbit && window.orbit && (this.orbit = window.orbit, e) ? (be({
665
+ return !this.orbit && window.orbit && (this.orbit = window.orbit, e) ? (me({
706
666
  component: this,
707
667
  defaultRoute: t,
708
668
  ignoreRouter: r
@@ -722,7 +682,7 @@ class $ extends lt {
722
682
  );
723
683
  h && (r = h[0]?.uniq);
724
684
  }
725
- r && Ae(
685
+ r && Ee(
726
686
  (window.orbit ? window.orbit.getRoute(r, !0) : r) + (i ? `-${i}` : ""),
727
687
  o
728
688
  ), t.preventDefault();
@@ -730,13 +690,17 @@ class $ extends lt {
730
690
  _normalizeLdpContains(t) {
731
691
  return !Array.isArray(t) && t !== null ? [t] : t;
732
692
  }
733
- async _expandContainer(t, e = !0) {
734
- const r = [];
735
- for (const i of t) {
736
- const o = await this._getProxyValue(i, e);
737
- o && r.push(o);
693
+ async _expandContainer(t, e = !0, r = this.cherryPickedProperties) {
694
+ const i = [];
695
+ for (const o of t) {
696
+ const n = await this._getProxyValue(
697
+ await o,
698
+ e,
699
+ r
700
+ );
701
+ n && i.push(n);
738
702
  }
739
- return r;
703
+ return i;
740
704
  }
741
705
  async _getProperties(t, e = !0, r = this.cherryPickedProperties) {
742
706
  const i = await t.properties, o = {
@@ -753,18 +717,37 @@ class $ extends lt {
753
717
  )), n.cast && (o[n.value] = await n.cast(o[n.value])));
754
718
  return await this._responseAdaptator(o);
755
719
  }
720
+ async _hasCherryPickedProperties(t) {
721
+ const e = await t.properties;
722
+ for (const r of this.cherryPickedProperties)
723
+ if (e?.includes(r.key))
724
+ return !0;
725
+ return !1;
726
+ }
756
727
  async _getProxyValue(t, e = !0, r = this.cherryPickedProperties) {
757
728
  try {
758
729
  if (t) {
759
730
  let i = t;
760
- if (typeof t == "string" && (i = await window.sibStore.getData(t, wt)), typeof t != "string" && t.isFullResource && (t.isFullResource?.() || (i = await window.sibStore.getData(
731
+ if (typeof t == "string" && (i = await window.sibStore.getData(t, mt)), typeof t != "string" && t.isFullResource && (t.isFullResource?.() || (i = await window.sibStore.getData(
761
732
  t["@id"],
762
- wt
733
+ mt
763
734
  ))), typeof t != "string" && !t.isFullResource && (i.properties = Object.keys(i), i.get = (o) => i[o]), !i) return { _originalResource: i };
764
735
  if (typeof i == "object" && i !== null) {
765
- if (i["ldp:contains"]) {
766
- const o = this._normalizeLdpContains(i["ldp:contains"]);
767
- return await this._expandContainer(o, e);
736
+ if (i.isContainer?.() && i["ldp:contains"]) {
737
+ if (await this._hasCherryPickedProperties(i))
738
+ return await this._getProperties(
739
+ i,
740
+ e,
741
+ r
742
+ );
743
+ const o = this._normalizeLdpContains(
744
+ await i["ldp:contains"]
745
+ );
746
+ return await this._expandContainer(
747
+ o,
748
+ e,
749
+ r
750
+ );
768
751
  }
769
752
  return await this._getProperties(i, e, r);
770
753
  }
@@ -800,12 +783,12 @@ v([
800
783
  p({ attribute: !1 })
801
784
  ], $.prototype, "cherryPickedProperties");
802
785
  v([
803
- xt()
786
+ Tt()
804
787
  ], $.prototype, "orbit");
805
788
  v([
806
- xt()
789
+ Tt()
807
790
  ], $.prototype, "currentRoute");
808
- const ye = (s, { keywords: t = [], attributes: e = ["dataSrc"] } = {}) => {
791
+ const ve = (s, { keywords: t = [], attributes: e = ["dataSrc"] } = {}) => {
809
792
  const r = () => {
810
793
  t && e && (s.caching === void 0 && (s.caching = 0), s.hasCachedDatas === void 0 && (s.hasCachedDatas = !1), s.cacheListener = (i) => {
811
794
  const o = i.detail.id || i.detail.resource["@id"];
@@ -818,15 +801,15 @@ const ye = (s, { keywords: t = [], attributes: e = ["dataSrc"] } = {}) => {
818
801
  };
819
802
  document.readyState !== "complete" ? document.addEventListener("DOMContentLoaded", r) : r();
820
803
  };
821
- function ve() {
804
+ function be() {
822
805
  return Math.random().toString(16).slice(2);
823
806
  }
824
- const be = ({
807
+ const me = ({
825
808
  component: s,
826
809
  defaultRoute: t = !1,
827
810
  ignoreRouter: e = !1
828
811
  }) => {
829
- if (s.uniq || (s.uniq = ve(), t && !s.route && !e && (s.route = t)), s._subscriptions = /* @__PURE__ */ new Set(), !e) {
812
+ if (s.uniq || (s.uniq = be(), t && !s.route && !e && (s.route = t)), s._subscriptions = /* @__PURE__ */ new Set(), !e) {
830
813
  s.route || (s.route = s.uniq, window.orbit && (s.route = window.orbit.getRoute(s.uniq))), s.noRouter = !0;
831
814
  let r = document.querySelector("solid-router");
832
815
  for (; r; )
@@ -851,7 +834,7 @@ const be = ({
851
834
  document.removeEventListener(r[0], r[1]);
852
835
  }, s._subscribe();
853
836
  };
854
- class me extends S {
837
+ class we extends S {
855
838
  constructor() {
856
839
  super(...arguments), this.object = {
857
840
  "@id": ""
@@ -861,14 +844,14 @@ class me extends S {
861
844
  };
862
845
  }
863
846
  }
864
- const mt = (s, t) => {
847
+ const bt = (s, t) => {
865
848
  let e = s;
866
849
  for (let r = 0; r < t.length && (e && t[r] in e); r++)
867
850
  e = e[t[r]];
868
851
  return e;
869
- }, we = (s, t, e = "asc") => s.sort((r, i) => {
852
+ }, Ae = (s, t, e = "asc") => s.sort((r, i) => {
870
853
  let o = r, n = i;
871
- Array.isArray(t) ? (o = mt(r, t), n = mt(i, t)) : (o = r[t], n = i[t]);
854
+ Array.isArray(t) ? (o = bt(r, t), n = bt(i, t)) : (o = r[t], n = i[t]);
872
855
  let h = 0;
873
856
  if (typeof o == "number" && typeof n == "number")
874
857
  h = o - n;
@@ -879,7 +862,7 @@ const mt = (s, t) => {
879
862
  else
880
863
  throw new TypeError(`Unsupported data type for key "${t}"`);
881
864
  return e === "asc" ? h : -h;
882
- }), Ae = (s, t = !1) => {
865
+ }), Ee = (s, t = !1) => {
883
866
  window.dispatchEvent(
884
867
  new CustomEvent("requestNavigation", {
885
868
  detail: {
@@ -888,31 +871,31 @@ const mt = (s, t) => {
888
871
  }
889
872
  })
890
873
  );
891
- }, wt = {};
892
- var Ee = Object.getOwnPropertyDescriptor, Se = (s, t, e, r) => {
893
- for (var i = r > 1 ? void 0 : r ? Ee(t, e) : t, o = s.length - 1, n; o >= 0; o--)
874
+ }, mt = {};
875
+ var Se = Object.getOwnPropertyDescriptor, Pe = (s, t, e, r) => {
876
+ for (var i = r > 1 ? void 0 : r ? Se(t, e) : t, o = s.length - 1, n; o >= 0; o--)
894
877
  (n = s[o]) && (i = n(i) || i);
895
878
  return i;
896
879
  };
897
- let Q = class extends $ {
880
+ let X = class extends $ {
898
881
  constructor() {
899
882
  super(...arguments), this.cherryPickedProperties = [
900
883
  { key: "name", value: "name" }
901
- ], this._getResource = new pe(this, {
884
+ ], this._getResource = new fe(this, {
902
885
  task: async ([s]) => {
903
886
  if (!(!s || !this.orbit || !this.noRouter && this.route && this.currentRoute && !this.route.startsWith(this.currentRoute))) {
904
887
  if (!this.hasCachedDatas || this.oldDataSrc !== s) {
905
888
  if (!s) return;
906
889
  this.datas = await this._getProxyValue(s), this.hasCachedDatas = !0;
907
890
  }
908
- return this.oldDataSrc !== s && (this.oldDataSrc = s), we(this.datas, "name", "asc");
891
+ return this.oldDataSrc !== s && (this.oldDataSrc = s), Ae(this.datas, "name", "asc");
909
892
  }
910
893
  },
911
894
  args: () => [this.dataSrc, this.caching, this.currentRoute]
912
895
  });
913
896
  }
914
897
  async _afterAttach() {
915
- return ye(this, {
898
+ return ve(this, {
916
899
  keywords: ["some-keyword", "for-invalidating", "cache"]
917
900
  }), Promise.resolve();
918
901
  }
@@ -925,7 +908,7 @@ let Q = class extends $ {
925
908
  });
926
909
  }
927
910
  };
928
- Q.styles = rt`
911
+ X.styles = st`
929
912
  div {
930
913
  background-color: red;
931
914
  position: absolute;
@@ -935,73 +918,43 @@ Q.styles = rt`
935
918
  bottom: 0;
936
919
  }
937
920
  `;
938
- Q = Se([
939
- ht("solid-boilerplate")
940
- ], Q);
941
- /**
942
- * @license
943
- * Copyright 2021 Google LLC
944
- * SPDX-License-Identifier: BSD-3-Clause
945
- */
946
- const Y = "lit-localize-status";
947
- /**
948
- * @license
949
- * Copyright 2021 Google LLC
950
- * SPDX-License-Identifier: BSD-3-Clause
951
- */
921
+ X = Pe([
922
+ nt("solid-boilerplate")
923
+ ], X);
924
+ const G = "lit-localize-status";
952
925
  const Ce = (s, ...t) => ({
953
926
  strTag: !0,
954
927
  strings: s,
955
928
  values: t
956
- }), Tt = Ce, Pe = (s) => typeof s != "string" && "strTag" in s, Lt = (s, t, e) => {
929
+ }), Lt = Ce, Re = (s) => typeof s != "string" && "strTag" in s, Ut = (s, t, e) => {
957
930
  let r = s[0];
958
931
  for (let i = 1; i < s.length; i++)
959
932
  r += t[e ? e[i - 1] : i - 1], r += s[i];
960
933
  return r;
961
934
  };
962
- /**
963
- * @license
964
- * Copyright 2021 Google LLC
965
- * SPDX-License-Identifier: BSD-3-Clause
966
- */
967
- const Ut = ((s) => Pe(s) ? Lt(s.strings, s.values) : s);
968
- let ct = Ut, At = !1;
969
- function Re(s) {
970
- if (At)
935
+ const Mt = ((s) => Re(s) ? Ut(s.strings, s.values) : s);
936
+ let ht = Mt, wt = !1;
937
+ function Oe(s) {
938
+ if (wt)
971
939
  throw new Error("lit-localize can only be configured once");
972
- ct = s, At = !0;
940
+ ht = s, wt = !0;
973
941
  }
974
- /**
975
- * @license
976
- * Copyright 2021 Google LLC
977
- * SPDX-License-Identifier: BSD-3-Clause
978
- */
979
- class Oe {
942
+ class je {
980
943
  constructor(t) {
981
944
  this.__litLocalizeEventHandler = (e) => {
982
945
  e.detail.status === "ready" && this.host.requestUpdate();
983
946
  }, this.host = t;
984
947
  }
985
948
  hostConnected() {
986
- window.addEventListener(Y, this.__litLocalizeEventHandler);
949
+ window.addEventListener(G, this.__litLocalizeEventHandler);
987
950
  }
988
951
  hostDisconnected() {
989
- window.removeEventListener(Y, this.__litLocalizeEventHandler);
952
+ window.removeEventListener(G, this.__litLocalizeEventHandler);
990
953
  }
991
954
  }
992
- const je = (s) => s.addController(new Oe(s)), xe = je;
993
- /**
994
- * @license
995
- * Copyright 2021 Google LLC
996
- * SPDX-License-Identifier: BSD-3-Clause
997
- */
998
- const Mt = () => (s, t) => (s.addInitializer(xe), s);
999
- /**
1000
- * @license
1001
- * Copyright 2020 Google LLC
1002
- * SPDX-License-Identifier: BSD-3-Clause
1003
- */
1004
- class Ht {
955
+ const xe = (s) => s.addController(new je(s)), Te = xe;
956
+ const Ht = () => (s, t) => (s.addInitializer(Te), s);
957
+ class Nt {
1005
958
  constructor() {
1006
959
  this.settled = !1, this.promise = new Promise((t, e) => {
1007
960
  this._resolve = t, this._reject = e;
@@ -1014,43 +967,28 @@ class Ht {
1014
967
  this.settled = !0, this._reject(t);
1015
968
  }
1016
969
  }
1017
- /**
1018
- * @license
1019
- * Copyright 2014 Travis Webb
1020
- * SPDX-License-Identifier: MIT
1021
- */
1022
970
  const _ = [];
1023
971
  for (let s = 0; s < 256; s++)
1024
972
  _[s] = (s >> 4 & 15).toString(16) + (s & 15).toString(16);
1025
- function Te(s) {
973
+ function Le(s) {
1026
974
  let t = 0, e = 8997, r = 0, i = 33826, o = 0, n = 40164, h = 0, a = 52210;
1027
975
  for (let u = 0; u < s.length; u++)
1028
976
  e ^= s.charCodeAt(u), t = e * 435, r = i * 435, o = n * 435, h = a * 435, o += e << 8, h += i << 8, r += t >>> 16, e = t & 65535, o += r >>> 16, i = r & 65535, a = h + (o >>> 16) & 65535, n = o & 65535;
1029
977
  return _[a >> 8] + _[a & 255] + _[n >> 8] + _[n & 255] + _[i >> 8] + _[i & 255] + _[e >> 8] + _[e & 255];
1030
978
  }
1031
- /**
1032
- * @license
1033
- * Copyright 2020 Google LLC
1034
- * SPDX-License-Identifier: BSD-3-Clause
1035
- */
1036
- const Le = "", Ue = "h", Me = "s";
1037
- function He(s, t) {
1038
- return (t ? Ue : Me) + Te(typeof s == "string" ? s : s.join(Le));
979
+ const Ue = "", Me = "h", He = "s";
980
+ function Ne(s, t) {
981
+ return (t ? Me : He) + Le(typeof s == "string" ? s : s.join(Ue));
1039
982
  }
1040
- /**
1041
- * @license
1042
- * Copyright 2021 Google LLC
1043
- * SPDX-License-Identifier: BSD-3-Clause
1044
- */
1045
- const Et = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new Map();
1046
- function Ne(s, t, e) {
983
+ const At = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new Map();
984
+ function De(s, t, e) {
1047
985
  if (s) {
1048
- const r = e?.id ?? De(t), i = s[r];
986
+ const r = e?.id ?? qe(t), i = s[r];
1049
987
  if (i) {
1050
988
  if (typeof i == "string")
1051
989
  return i;
1052
990
  if ("strTag" in i)
1053
- return Lt(
991
+ return Ut(
1054
992
  i.strings,
1055
993
  // Cast `template` because its type wasn't automatically narrowed (but
1056
994
  // we know it must be the same type as `localized`).
@@ -1058,92 +996,87 @@ function Ne(s, t, e) {
1058
996
  i.values
1059
997
  );
1060
998
  {
1061
- let o = Et.get(i);
1062
- return o === void 0 && (o = i.values, Et.set(i, o)), {
999
+ let o = At.get(i);
1000
+ return o === void 0 && (o = i.values, At.set(i, o)), {
1063
1001
  ...i,
1064
1002
  values: o.map((n) => t.values[n])
1065
1003
  };
1066
1004
  }
1067
1005
  }
1068
1006
  }
1069
- return Ut(t);
1007
+ return Mt(t);
1070
1008
  }
1071
- function De(s) {
1009
+ function qe(s) {
1072
1010
  const t = typeof s == "string" ? s : s.strings;
1073
- let e = St.get(t);
1074
- return e === void 0 && (e = He(t, typeof s != "string" && !("strTag" in s)), St.set(t, e)), e;
1011
+ let e = Et.get(t);
1012
+ return e === void 0 && (e = Ne(t, typeof s != "string" && !("strTag" in s)), Et.set(t, e)), e;
1075
1013
  }
1076
- /**
1077
- * @license
1078
- * Copyright 2021 Google LLC
1079
- * SPDX-License-Identifier: BSD-3-Clause
1080
- */
1081
- function X(s) {
1082
- window.dispatchEvent(new CustomEvent(Y, { detail: s }));
1014
+ function Z(s) {
1015
+ window.dispatchEvent(new CustomEvent(G, { detail: s }));
1083
1016
  }
1084
- let I = "", J, Nt, k, tt, Dt, m = new Ht();
1017
+ let k = "", J, Dt, z, Q, qt, m = new Nt();
1085
1018
  m.resolve();
1086
1019
  let H = 0;
1087
- const qe = (s) => (Re(((t, e) => Ne(Dt, t, e))), I = Nt = s.sourceLocale, k = new Set(s.targetLocales), k.add(s.sourceLocale), tt = s.loadLocale, { getLocale: Ie, setLocale: ke }), Ie = () => I, ke = (s) => {
1088
- if (s === (J ?? I))
1020
+ const ke = (s) => (Oe(((t, e) => De(qt, t, e))), k = Dt = s.sourceLocale, z = new Set(s.targetLocales), z.add(s.sourceLocale), Q = s.loadLocale, { getLocale: ze, setLocale: Ie }), ze = () => k, Ie = (s) => {
1021
+ if (s === (J ?? k))
1089
1022
  return m.promise;
1090
- if (!k || !tt)
1023
+ if (!z || !Q)
1091
1024
  throw new Error("Internal error");
1092
- if (!k.has(s))
1025
+ if (!z.has(s))
1093
1026
  throw new Error("Invalid locale code");
1094
1027
  H++;
1095
1028
  const t = H;
1096
- return J = s, m.settled && (m = new Ht()), X({ status: "loading", loadingLocale: s }), (s === Nt ? (
1029
+ return J = s, m.settled && (m = new Nt()), Z({ status: "loading", loadingLocale: s }), (s === Dt ? (
1097
1030
  // We could switch to the source locale synchronously, but we prefer to
1098
1031
  // queue it on a microtask so that switching locales is consistently
1099
1032
  // asynchronous.
1100
1033
  Promise.resolve({ templates: void 0 })
1101
- ) : tt(s)).then((r) => {
1102
- H === t && (I = s, J = void 0, Dt = r.templates, X({ status: "ready", readyLocale: s }), m.resolve());
1034
+ ) : Q(s)).then((r) => {
1035
+ H === t && (k = s, J = void 0, qt = r.templates, Z({ status: "ready", readyLocale: s }), m.resolve());
1103
1036
  }, (r) => {
1104
- H === t && (X({
1037
+ H === t && (Z({
1105
1038
  status: "error",
1106
1039
  errorLocale: s,
1107
1040
  errorMessage: r.toString()
1108
1041
  }), m.reject(r));
1109
1042
  }), m.promise;
1110
- }, qt = ":host{background-color:pink;user-select:none}";
1111
- var ze = Object.defineProperty, Ve = Object.getOwnPropertyDescriptor, It = (s, t, e, r) => {
1112
- for (var i = r > 1 ? void 0 : r ? Ve(t, e) : t, o = s.length - 1, n; o >= 0; o--)
1043
+ }, kt = ":host{background-color:pink;user-select:none}";
1044
+ var Ve = Object.defineProperty, Be = Object.getOwnPropertyDescriptor, zt = (s, t, e, r) => {
1045
+ for (var i = r > 1 ? void 0 : r ? Be(t, e) : t, o = s.length - 1, n; o >= 0; o--)
1113
1046
  (n = s[o]) && (i = (r ? n(t, e, i) : n(i)) || i);
1114
- return r && i && ze(t, e, i), i;
1047
+ return r && i && Ve(t, e, i), i;
1115
1048
  };
1116
- let z = class extends me {
1049
+ let I = class extends we {
1117
1050
  constructor() {
1118
1051
  super(...arguments), this.object = { "@id": "" };
1119
1052
  }
1120
1053
  render() {
1121
1054
  return this.isType("some:Type") ? c : T`<li>
1122
- ${ct(Tt`Sample object named: ${this.object.name}`)}
1055
+ ${ht(Lt`Sample object named: ${this.object.name}`)}
1123
1056
  </li>`;
1124
1057
  }
1125
1058
  };
1126
- z.styles = rt`
1127
- ${it(qt)}
1059
+ I.styles = st`
1060
+ ${et(kt)}
1128
1061
  `;
1129
- It([
1062
+ zt([
1130
1063
  p({ attribute: !1, type: Object })
1131
- ], z.prototype, "object", 2);
1132
- z = It([
1133
- ht("sample-object"),
1134
- Mt()
1135
- ], z);
1136
- var Be = Object.defineProperty, We = Object.getOwnPropertyDescriptor, kt = (s, t, e, r) => {
1137
- for (var i = r > 1 ? void 0 : r ? We(t, e) : t, o = s.length - 1, n; o >= 0; o--)
1064
+ ], I.prototype, "object", 2);
1065
+ I = zt([
1066
+ nt("sample-object"),
1067
+ Ht()
1068
+ ], I);
1069
+ var We = Object.defineProperty, Fe = Object.getOwnPropertyDescriptor, It = (s, t, e, r) => {
1070
+ for (var i = r > 1 ? void 0 : r ? Fe(t, e) : t, o = s.length - 1, n; o >= 0; o--)
1138
1071
  (n = s[o]) && (i = (r ? n(t, e, i) : n(i)) || i);
1139
- return r && i && Be(t, e, i), i;
1072
+ return r && i && We(t, e, i), i;
1140
1073
  };
1141
- let V = class extends lt {
1074
+ let V = class extends at {
1142
1075
  constructor() {
1143
1076
  super(...arguments), this.objects = [];
1144
1077
  }
1145
1078
  render() {
1146
- return this.hasType("some:Type") ? c : T`${ct("Here are all of our objects:")}<br />
1079
+ return this.hasType("some:Type") ? c : T`${ht("Here are all of our objects:")}<br />
1147
1080
  <ul>
1148
1081
  ${this.objects.map(
1149
1082
  (s) => T`<sample-object .object=${s}></sample-object>`
@@ -1151,33 +1084,33 @@ let V = class extends lt {
1151
1084
  </ul>`;
1152
1085
  }
1153
1086
  };
1154
- V.styles = rt`
1155
- ${it(qt)}
1087
+ V.styles = st`
1088
+ ${et(kt)}
1156
1089
  `;
1157
- kt([
1090
+ It([
1158
1091
  p({ attribute: !1, type: Object })
1159
1092
  ], V.prototype, "objects", 2);
1160
- V = kt([
1161
- ht("sample-objects"),
1162
- Mt()
1093
+ V = It([
1094
+ nt("sample-objects"),
1095
+ Ht()
1163
1096
  ], V);
1164
- const Fe = {
1165
- s9cb0b52fd65ea225: Tt`Sample object named: ${0}`,
1097
+ const Ke = {
1098
+ s9cb0b52fd65ea225: Lt`Sample object named: ${0}`,
1166
1099
  se975788b1544119d: "Here are all of our objects:"
1167
- }, Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1100
+ }, Ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1168
1101
  __proto__: null,
1169
- templates: Fe
1170
- }, Symbol.toStringTag, { value: "Module" })), Xe = "en", zt = [
1102
+ templates: Ke
1103
+ }, Symbol.toStringTag, { value: "Module" })), Je = "en", Vt = [
1171
1104
  "en"
1172
- ], Je = /* @__PURE__ */ Object.assign({ "../../generated/locales/en.ts": Ke }), Ze = new Map(
1173
- zt.map((s) => [
1105
+ ], Xe = /* @__PURE__ */ Object.assign({ "../../generated/locales/en.ts": Ze }), Ge = new Map(
1106
+ Vt.map((s) => [
1174
1107
  s,
1175
- Je[`../../generated/locales/${s}.ts`]
1108
+ Xe[`../../generated/locales/${s}.ts`]
1176
1109
  ])
1177
- ), { getLocale: Z, setLocale: G } = qe({
1178
- sourceLocale: Xe,
1179
- targetLocales: zt,
1180
- loadLocale: async (s) => Ze.get(s)
1110
+ ), { getLocale: St, setLocale: Pt } = ke({
1111
+ sourceLocale: Je,
1112
+ targetLocales: Vt,
1113
+ loadLocale: async (s) => Ge.get(s)
1181
1114
  });
1182
- window.getLocale = window.orbit ? window.getLocale ? window.getLocale.push(Z) : [Z] : Z;
1183
- window.setLocale = window.orbit ? window.setLocale ? window.setLocale.push(G) : [G] : G;
1115
+ window.getLocale = window.getLocale ? window.getLocale.push(St) : [St];
1116
+ window.setLocale = window.setLocale ? window.setLocale.push(Pt) : [Pt];