@nextrap/nte-nav 1.0.4 → 1.0.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/index.js +165 -174
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.0.5 (2025-07-23)
2
+
3
+ This was a version bump only for nte-nav to align it with other projects, there were no code changes.
4
+
1
5
  ## 1.0.4 (2025-07-22)
2
6
 
3
7
  This was a version bump only for nte-nav to align it with other projects, there were no code changes.
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- var zt = function(s, t, e, i) {
1
+ var It = function(s, t, e, i) {
2
2
  function r(n) {
3
3
  return n instanceof e ? n : new e(function(o) {
4
4
  o(n);
@@ -25,8 +25,8 @@ var zt = function(s, t, e, i) {
25
25
  d((i = i.apply(s, t || [])).next());
26
26
  });
27
27
  };
28
- function It() {
29
- return zt(this, void 0, void 0, function* () {
28
+ function Wt() {
29
+ return It(this, void 0, void 0, function* () {
30
30
  return new Promise((s) => {
31
31
  if (document.readyState === "complete" || document.readyState === "interactive")
32
32
  return s("loaded");
@@ -34,7 +34,7 @@ function It() {
34
34
  });
35
35
  });
36
36
  }
37
- var Wt = function(s, t, e, i) {
37
+ var Bt = function(s, t, e, i) {
38
38
  function r(n) {
39
39
  return n instanceof e ? n : new e(function(o) {
40
40
  o(n);
@@ -62,13 +62,13 @@ var Wt = function(s, t, e, i) {
62
62
  });
63
63
  };
64
64
  function dt(s) {
65
- return Wt(this, void 0, void 0, function* () {
65
+ return Bt(this, void 0, void 0, function* () {
66
66
  return new Promise((t) => {
67
67
  window.setTimeout(() => t(), s);
68
68
  });
69
69
  });
70
70
  }
71
- class Ct {
71
+ class Tt {
72
72
  /**
73
73
  *
74
74
  * @param delay Debounce delay in milliseconds
@@ -119,7 +119,7 @@ function pt(s) {
119
119
  }
120
120
  if (!window.__nextrap_current_breakpoint) {
121
121
  window.__nextrap_current_breakpoint = Z();
122
- const s = new Ct(200, 500);
122
+ const s = new Tt(200, 500);
123
123
  window.addEventListener("resize", async () => {
124
124
  if (await s.wait(), O !== Z()) {
125
125
  O = Z(), window.__nextrap_current_breakpoint = O;
@@ -175,28 +175,20 @@ class nt {
175
175
  });
176
176
  }
177
177
  }
178
- function Bt() {
178
+ function ut() {
179
179
  return document.readyState === "loading" ? new Promise((s) => {
180
180
  document.addEventListener("DOMContentLoaded", () => s());
181
181
  }) : Promise.resolve();
182
182
  }
183
- function Gt() {
184
- return document.readyState === "complete" ? Promise.resolve() : new Promise((s) => {
185
- window.addEventListener("load", () => s());
186
- });
187
- }
188
- function qt(s) {
189
- return new Promise((t) => setTimeout(t, s));
190
- }
191
183
  /**
192
184
  * @license
193
185
  * Copyright 2019 Google LLC
194
186
  * SPDX-License-Identifier: BSD-3-Clause
195
187
  */
196
- const B = globalThis, ot = B.ShadowRoot && (B.ShadyCSS === void 0 || B.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Tt = Symbol(), ut = /* @__PURE__ */ new WeakMap();
197
- let Pt = class {
188
+ const B = globalThis, ot = B.ShadowRoot && (B.ShadyCSS === void 0 || B.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Pt = Symbol(), ft = /* @__PURE__ */ new WeakMap();
189
+ let Ot = class {
198
190
  constructor(t, e, i) {
199
- if (this._$cssResult$ = !0, i !== Tt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
191
+ if (this._$cssResult$ = !0, i !== Pt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
200
192
  this.cssText = t, this.t = e;
201
193
  }
202
194
  get styleSheet() {
@@ -204,7 +196,7 @@ let Pt = class {
204
196
  const e = this.t;
205
197
  if (ot && t === void 0) {
206
198
  const i = e !== void 0 && e.length === 1;
207
- i && (t = ut.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && ut.set(e, t));
199
+ i && (t = ft.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && ft.set(e, t));
208
200
  }
209
201
  return t;
210
202
  }
@@ -212,13 +204,13 @@ let Pt = class {
212
204
  return this.cssText;
213
205
  }
214
206
  };
215
- const C = (s) => new Pt(typeof s == "string" ? s : s + "", void 0, Tt), Vt = (s, t) => {
207
+ const C = (s) => new Ot(typeof s == "string" ? s : s + "", void 0, Pt), Gt = (s, t) => {
216
208
  if (ot) s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
217
209
  else for (const e of t) {
218
210
  const i = document.createElement("style"), r = B.litNonce;
219
211
  r !== void 0 && i.setAttribute("nonce", r), i.textContent = e.cssText, s.appendChild(i);
220
212
  }
221
- }, ft = ot ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
213
+ }, vt = ot ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
222
214
  let e = "";
223
215
  for (const i of t.cssRules) e += i.cssText;
224
216
  return C(e);
@@ -228,10 +220,10 @@ const C = (s) => new Pt(typeof s == "string" ? s : s + "", void 0, Tt), Vt = (s,
228
220
  * Copyright 2017 Google LLC
229
221
  * SPDX-License-Identifier: BSD-3-Clause
230
222
  */
231
- const { is: Yt, defineProperty: Ft, getOwnPropertyDescriptor: Jt, getOwnPropertyNames: Kt, getOwnPropertySymbols: Zt, getPrototypeOf: Qt } = Object, g = globalThis, vt = g.trustedTypes, Xt = vt ? vt.emptyScript : "", Q = g.reactiveElementPolyfillSupport, M = (s, t) => s, G = { toAttribute(s, t) {
223
+ const { is: qt, defineProperty: Vt, getOwnPropertyDescriptor: Yt, getOwnPropertyNames: Ft, getOwnPropertySymbols: Jt, getPrototypeOf: Kt } = Object, m = globalThis, gt = m.trustedTypes, Zt = gt ? gt.emptyScript : "", Q = m.reactiveElementPolyfillSupport, M = (s, t) => s, G = { toAttribute(s, t) {
232
224
  switch (t) {
233
225
  case Boolean:
234
- s = s ? Xt : null;
226
+ s = s ? Zt : null;
235
227
  break;
236
228
  case Object:
237
229
  case Array:
@@ -256,8 +248,8 @@ const { is: Yt, defineProperty: Ft, getOwnPropertyDescriptor: Jt, getOwnProperty
256
248
  }
257
249
  }
258
250
  return e;
259
- } }, at = (s, t) => !Yt(s, t), mt = { attribute: !0, type: String, converter: G, reflect: !1, useDefault: !1, hasChanged: at };
260
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), g.litPropertyMetadata ?? (g.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
251
+ } }, at = (s, t) => !qt(s, t), mt = { attribute: !0, type: String, converter: G, reflect: !1, useDefault: !1, hasChanged: at };
252
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), m.litPropertyMetadata ?? (m.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
261
253
  let y = class extends HTMLElement {
262
254
  static addInitializer(t) {
263
255
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
@@ -268,11 +260,11 @@ let y = class extends HTMLElement {
268
260
  static createProperty(t, e = mt) {
269
261
  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) {
270
262
  const i = Symbol(), r = this.getPropertyDescriptor(t, i, e);
271
- r !== void 0 && Ft(this.prototype, t, r);
263
+ r !== void 0 && Vt(this.prototype, t, r);
272
264
  }
273
265
  }
274
266
  static getPropertyDescriptor(t, e, i) {
275
- const { get: r, set: n } = Jt(this.prototype, t) ?? { get() {
267
+ const { get: r, set: n } = Yt(this.prototype, t) ?? { get() {
276
268
  return this[e];
277
269
  }, set(o) {
278
270
  this[e] = o;
@@ -287,13 +279,13 @@ let y = class extends HTMLElement {
287
279
  }
288
280
  static _$Ei() {
289
281
  if (this.hasOwnProperty(M("elementProperties"))) return;
290
- const t = Qt(this);
282
+ const t = Kt(this);
291
283
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
292
284
  }
293
285
  static finalize() {
294
286
  if (this.hasOwnProperty(M("finalized"))) return;
295
287
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(M("properties"))) {
296
- const e = this.properties, i = [...Kt(e), ...Zt(e)];
288
+ const e = this.properties, i = [...Ft(e), ...Jt(e)];
297
289
  for (const r of i) this.createProperty(r, e[r]);
298
290
  }
299
291
  const t = this[Symbol.metadata];
@@ -312,8 +304,8 @@ let y = class extends HTMLElement {
312
304
  const e = [];
313
305
  if (Array.isArray(t)) {
314
306
  const i = new Set(t.flat(1 / 0).reverse());
315
- for (const r of i) e.unshift(ft(r));
316
- } else t !== void 0 && e.push(ft(t));
307
+ for (const r of i) e.unshift(vt(r));
308
+ } else t !== void 0 && e.push(vt(t));
317
309
  return e;
318
310
  }
319
311
  static _$Eu(t, e) {
@@ -342,7 +334,7 @@ let y = class extends HTMLElement {
342
334
  }
343
335
  createRenderRoot() {
344
336
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
345
- return Vt(t, this.constructor.elementStyles), t;
337
+ return Gt(t, this.constructor.elementStyles), t;
346
338
  }
347
339
  connectedCallback() {
348
340
  var t;
@@ -461,76 +453,76 @@ let y = class extends HTMLElement {
461
453
  firstUpdated(t) {
462
454
  }
463
455
  };
464
- y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[M("elementProperties")] = /* @__PURE__ */ new Map(), y[M("finalized")] = /* @__PURE__ */ new Map(), Q == null || Q({ ReactiveElement: y }), (g.reactiveElementVersions ?? (g.reactiveElementVersions = [])).push("2.1.1");
456
+ y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[M("elementProperties")] = /* @__PURE__ */ new Map(), y[M("finalized")] = /* @__PURE__ */ new Map(), Q == null || Q({ ReactiveElement: y }), (m.reactiveElementVersions ?? (m.reactiveElementVersions = [])).push("2.1.1");
465
457
  /**
466
458
  * @license
467
459
  * Copyright 2017 Google LLC
468
460
  * SPDX-License-Identifier: BSD-3-Clause
469
461
  */
470
- const U = globalThis, q = U.trustedTypes, gt = q ? q.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Ot = "$lit$", m = `lit$${Math.random().toFixed(9).slice(2)}$`, kt = "?" + m, te = `<${kt}>`, E = document, L = () => E.createComment(""), H = (s) => s === null || typeof s != "object" && typeof s != "function", lt = Array.isArray, ee = (s) => lt(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", X = `[
471
- \f\r]`, k = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, bt = /-->/g, _t = />/g, $ = RegExp(`>|${X}(?:([^\\s"'>=/]+)(${X}*=${X}*(?:[^
472
- \f\r"'\`<>=]|("|')|))|$)`, "g"), $t = /'/g, yt = /"/g, Mt = /^(?:script|style|textarea|title)$/i, se = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), R = se(1), S = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), wt = /* @__PURE__ */ new WeakMap(), w = E.createTreeWalker(E, 129);
473
- function Ut(s, t) {
462
+ const U = globalThis, q = U.trustedTypes, _t = q ? q.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, kt = "$lit$", g = `lit$${Math.random().toFixed(9).slice(2)}$`, Mt = "?" + g, Qt = `<${Mt}>`, S = document, H = () => S.createComment(""), L = (s) => s === null || typeof s != "object" && typeof s != "function", lt = Array.isArray, Xt = (s) => lt(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", X = `[
463
+ \f\r]`, k = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, bt = /-->/g, $t = />/g, $ = RegExp(`>|${X}(?:([^\\s"'>=/]+)(${X}*=${X}*(?:[^
464
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), yt = /'/g, wt = /"/g, Ut = /^(?:script|style|textarea|title)$/i, te = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), D = te(1), E = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), At = /* @__PURE__ */ new WeakMap(), w = S.createTreeWalker(S, 129);
465
+ function Nt(s, t) {
474
466
  if (!lt(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
475
- return gt !== void 0 ? gt.createHTML(t) : t;
467
+ return _t !== void 0 ? _t.createHTML(t) : t;
476
468
  }
477
- const ie = (s, t) => {
469
+ const ee = (s, t) => {
478
470
  const e = s.length - 1, i = [];
479
471
  let r, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = k;
480
472
  for (let l = 0; l < e; l++) {
481
473
  const a = s[l];
482
474
  let d, h, c = -1, u = 0;
483
- for (; u < a.length && (o.lastIndex = u, h = o.exec(a), h !== null); ) u = o.lastIndex, o === k ? h[1] === "!--" ? o = bt : h[1] !== void 0 ? o = _t : h[2] !== void 0 ? (Mt.test(h[2]) && (r = RegExp("</" + h[2], "g")), o = $) : h[3] !== void 0 && (o = $) : o === $ ? h[0] === ">" ? (o = r ?? k, c = -1) : h[1] === void 0 ? c = -2 : (c = o.lastIndex - h[2].length, d = h[1], o = h[3] === void 0 ? $ : h[3] === '"' ? yt : $t) : o === yt || o === $t ? o = $ : o === bt || o === _t ? o = k : (o = $, r = void 0);
475
+ for (; u < a.length && (o.lastIndex = u, h = o.exec(a), h !== null); ) u = o.lastIndex, o === k ? h[1] === "!--" ? o = bt : h[1] !== void 0 ? o = $t : h[2] !== void 0 ? (Ut.test(h[2]) && (r = RegExp("</" + h[2], "g")), o = $) : h[3] !== void 0 && (o = $) : o === $ ? h[0] === ">" ? (o = r ?? k, c = -1) : h[1] === void 0 ? c = -2 : (c = o.lastIndex - h[2].length, d = h[1], o = h[3] === void 0 ? $ : h[3] === '"' ? wt : yt) : o === wt || o === yt ? o = $ : o === bt || o === $t ? o = k : (o = $, r = void 0);
484
476
  const v = o === $ && s[l + 1].startsWith("/>") ? " " : "";
485
- n += o === k ? a + te : c >= 0 ? (i.push(d), a.slice(0, c) + Ot + a.slice(c) + m + v) : a + m + (c === -2 ? l : v);
477
+ n += o === k ? a + Qt : c >= 0 ? (i.push(d), a.slice(0, c) + kt + a.slice(c) + g + v) : a + g + (c === -2 ? l : v);
486
478
  }
487
- return [Ut(s, n + (s[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
479
+ return [Nt(s, n + (s[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
488
480
  };
489
- class D {
481
+ class R {
490
482
  constructor({ strings: t, _$litType$: e }, i) {
491
483
  let r;
492
484
  this.parts = [];
493
485
  let n = 0, o = 0;
494
- const l = t.length - 1, a = this.parts, [d, h] = ie(t, e);
495
- if (this.el = D.createElement(d, i), w.currentNode = this.el.content, e === 2 || e === 3) {
486
+ const l = t.length - 1, a = this.parts, [d, h] = ee(t, e);
487
+ if (this.el = R.createElement(d, i), w.currentNode = this.el.content, e === 2 || e === 3) {
496
488
  const c = this.el.content.firstChild;
497
489
  c.replaceWith(...c.childNodes);
498
490
  }
499
491
  for (; (r = w.nextNode()) !== null && a.length < l; ) {
500
492
  if (r.nodeType === 1) {
501
- if (r.hasAttributes()) for (const c of r.getAttributeNames()) if (c.endsWith(Ot)) {
502
- const u = h[o++], v = r.getAttribute(c).split(m), W = /([.?@])?(.*)/.exec(u);
503
- a.push({ type: 1, index: n, name: W[2], strings: v, ctor: W[1] === "." ? ne : W[1] === "?" ? oe : W[1] === "@" ? ae : J }), r.removeAttribute(c);
504
- } else c.startsWith(m) && (a.push({ type: 6, index: n }), r.removeAttribute(c));
505
- if (Mt.test(r.tagName)) {
506
- const c = r.textContent.split(m), u = c.length - 1;
493
+ if (r.hasAttributes()) for (const c of r.getAttributeNames()) if (c.endsWith(kt)) {
494
+ const u = h[o++], v = r.getAttribute(c).split(g), W = /([.?@])?(.*)/.exec(u);
495
+ a.push({ type: 1, index: n, name: W[2], strings: v, ctor: W[1] === "." ? ie : W[1] === "?" ? re : W[1] === "@" ? ne : J }), r.removeAttribute(c);
496
+ } else c.startsWith(g) && (a.push({ type: 6, index: n }), r.removeAttribute(c));
497
+ if (Ut.test(r.tagName)) {
498
+ const c = r.textContent.split(g), u = c.length - 1;
507
499
  if (u > 0) {
508
500
  r.textContent = q ? q.emptyScript : "";
509
- for (let v = 0; v < u; v++) r.append(c[v], L()), w.nextNode(), a.push({ type: 2, index: ++n });
510
- r.append(c[u], L());
501
+ for (let v = 0; v < u; v++) r.append(c[v], H()), w.nextNode(), a.push({ type: 2, index: ++n });
502
+ r.append(c[u], H());
511
503
  }
512
504
  }
513
- } else if (r.nodeType === 8) if (r.data === kt) a.push({ type: 2, index: n });
505
+ } else if (r.nodeType === 8) if (r.data === Mt) a.push({ type: 2, index: n });
514
506
  else {
515
507
  let c = -1;
516
- for (; (c = r.data.indexOf(m, c + 1)) !== -1; ) a.push({ type: 7, index: n }), c += m.length - 1;
508
+ for (; (c = r.data.indexOf(g, c + 1)) !== -1; ) a.push({ type: 7, index: n }), c += g.length - 1;
517
509
  }
518
510
  n++;
519
511
  }
520
512
  }
521
513
  static createElement(t, e) {
522
- const i = E.createElement("template");
514
+ const i = S.createElement("template");
523
515
  return i.innerHTML = t, i;
524
516
  }
525
517
  }
526
518
  function P(s, t, e = s, i) {
527
519
  var o, l;
528
- if (t === S) return t;
520
+ if (t === E) return t;
529
521
  let r = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
530
- const n = H(t) ? void 0 : t._$litDirective$;
522
+ const n = L(t) ? void 0 : t._$litDirective$;
531
523
  return (r == null ? void 0 : r.constructor) !== n && ((l = r == null ? void 0 : r._$AO) == null || l.call(r, !1), n === void 0 ? r = void 0 : (r = new n(s), r._$AT(s, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = r : e._$Cl = r), r !== void 0 && (t = P(s, r._$AS(s, t.values), r, i)), t;
532
524
  }
533
- class re {
525
+ class se {
534
526
  constructor(t, e) {
535
527
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
536
528
  }
@@ -541,17 +533,17 @@ class re {
541
533
  return this._$AM._$AU;
542
534
  }
543
535
  u(t) {
544
- const { el: { content: e }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? E).importNode(e, !0);
536
+ const { el: { content: e }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? S).importNode(e, !0);
545
537
  w.currentNode = r;
546
538
  let n = w.nextNode(), o = 0, l = 0, a = i[0];
547
539
  for (; a !== void 0; ) {
548
540
  if (o === a.index) {
549
541
  let d;
550
- a.type === 2 ? d = new j(n, n.nextSibling, this, t) : a.type === 1 ? d = new a.ctor(n, a.name, a.strings, this, t) : a.type === 6 && (d = new le(n, this, t)), this._$AV.push(d), a = i[++l];
542
+ a.type === 2 ? d = new j(n, n.nextSibling, this, t) : a.type === 1 ? d = new a.ctor(n, a.name, a.strings, this, t) : a.type === 6 && (d = new oe(n, this, t)), this._$AV.push(d), a = i[++l];
551
543
  }
552
544
  o !== (a == null ? void 0 : a.index) && (n = w.nextNode(), o++);
553
545
  }
554
- return w.currentNode = E, r;
546
+ return w.currentNode = S, r;
555
547
  }
556
548
  p(t) {
557
549
  let e = 0;
@@ -578,7 +570,7 @@ class j {
578
570
  return this._$AB;
579
571
  }
580
572
  _$AI(t, e = this) {
581
- t = P(this, t, e), H(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== S && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : ee(t) ? this.k(t) : this._(t);
573
+ t = P(this, t, e), L(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== E && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Xt(t) ? this.k(t) : this._(t);
582
574
  }
583
575
  O(t) {
584
576
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -587,26 +579,26 @@ class j {
587
579
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
588
580
  }
589
581
  _(t) {
590
- this._$AH !== p && H(this._$AH) ? this._$AA.nextSibling.data = t : this.T(E.createTextNode(t)), this._$AH = t;
582
+ this._$AH !== p && L(this._$AH) ? this._$AA.nextSibling.data = t : this.T(S.createTextNode(t)), this._$AH = t;
591
583
  }
592
584
  $(t) {
593
585
  var n;
594
- const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = D.createElement(Ut(i.h, i.h[0]), this.options)), i);
586
+ const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = R.createElement(Nt(i.h, i.h[0]), this.options)), i);
595
587
  if (((n = this._$AH) == null ? void 0 : n._$AD) === r) this._$AH.p(e);
596
588
  else {
597
- const o = new re(r, this), l = o.u(this.options);
589
+ const o = new se(r, this), l = o.u(this.options);
598
590
  o.p(e), this.T(l), this._$AH = o;
599
591
  }
600
592
  }
601
593
  _$AC(t) {
602
- let e = wt.get(t.strings);
603
- return e === void 0 && wt.set(t.strings, e = new D(t)), e;
594
+ let e = At.get(t.strings);
595
+ return e === void 0 && At.set(t.strings, e = new R(t)), e;
604
596
  }
605
597
  k(t) {
606
598
  lt(this._$AH) || (this._$AH = [], this._$AR());
607
599
  const e = this._$AH;
608
600
  let i, r = 0;
609
- for (const n of t) r === e.length ? e.push(i = new j(this.O(L()), this.O(L()), this, this.options)) : i = e[r], i._$AI(n), r++;
601
+ for (const n of t) r === e.length ? e.push(i = new j(this.O(H()), this.O(H()), this, this.options)) : i = e[r], i._$AI(n), r++;
610
602
  r < e.length && (this._$AR(i && i._$AB.nextSibling, r), e.length = r);
611
603
  }
612
604
  _$AR(t = this._$AA.nextSibling, e) {
@@ -634,11 +626,11 @@ class J {
634
626
  _$AI(t, e = this, i, r) {
635
627
  const n = this.strings;
636
628
  let o = !1;
637
- if (n === void 0) t = P(this, t, e, 0), o = !H(t) || t !== this._$AH && t !== S, o && (this._$AH = t);
629
+ if (n === void 0) t = P(this, t, e, 0), o = !L(t) || t !== this._$AH && t !== E, o && (this._$AH = t);
638
630
  else {
639
631
  const l = t;
640
632
  let a, d;
641
- for (t = n[0], a = 0; a < n.length - 1; a++) d = P(this, l[i + a], e, a), d === S && (d = this._$AH[a]), o || (o = !H(d) || d !== this._$AH[a]), d === p ? t = p : t !== p && (t += (d ?? "") + n[a + 1]), this._$AH[a] = d;
633
+ for (t = n[0], a = 0; a < n.length - 1; a++) d = P(this, l[i + a], e, a), d === E && (d = this._$AH[a]), o || (o = !L(d) || d !== this._$AH[a]), d === p ? t = p : t !== p && (t += (d ?? "") + n[a + 1]), this._$AH[a] = d;
642
634
  }
643
635
  o && !r && this.j(t);
644
636
  }
@@ -646,7 +638,7 @@ class J {
646
638
  t === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
647
639
  }
648
640
  }
649
- class ne extends J {
641
+ class ie extends J {
650
642
  constructor() {
651
643
  super(...arguments), this.type = 3;
652
644
  }
@@ -654,7 +646,7 @@ class ne extends J {
654
646
  this.element[this.name] = t === p ? void 0 : t;
655
647
  }
656
648
  }
657
- class oe extends J {
649
+ class re extends J {
658
650
  constructor() {
659
651
  super(...arguments), this.type = 4;
660
652
  }
@@ -662,12 +654,12 @@ class oe extends J {
662
654
  this.element.toggleAttribute(this.name, !!t && t !== p);
663
655
  }
664
656
  }
665
- class ae extends J {
657
+ class ne extends J {
666
658
  constructor(t, e, i, r, n) {
667
659
  super(t, e, i, r, n), this.type = 5;
668
660
  }
669
661
  _$AI(t, e = this) {
670
- if ((t = P(this, t, e, 0) ?? p) === S) return;
662
+ if ((t = P(this, t, e, 0) ?? p) === E) return;
671
663
  const i = this._$AH, r = t === p && i !== p || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== p && (i === p || r);
672
664
  r && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
673
665
  }
@@ -676,7 +668,7 @@ class ae extends J {
676
668
  typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
677
669
  }
678
670
  }
679
- class le {
671
+ class oe {
680
672
  constructor(t, e, i) {
681
673
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
682
674
  }
@@ -688,13 +680,13 @@ class le {
688
680
  }
689
681
  }
690
682
  const tt = U.litHtmlPolyfillSupport;
691
- tt == null || tt(D, j), (U.litHtmlVersions ?? (U.litHtmlVersions = [])).push("3.3.1");
692
- const he = (s, t, e) => {
683
+ tt == null || tt(R, j), (U.litHtmlVersions ?? (U.litHtmlVersions = [])).push("3.3.1");
684
+ const ae = (s, t, e) => {
693
685
  const i = (e == null ? void 0 : e.renderBefore) ?? t;
694
686
  let r = i._$litPart$;
695
687
  if (r === void 0) {
696
688
  const n = (e == null ? void 0 : e.renderBefore) ?? null;
697
- i._$litPart$ = r = new j(t.insertBefore(L(), n), n, void 0, e ?? {});
689
+ i._$litPart$ = r = new j(t.insertBefore(H(), n), n, void 0, e ?? {});
698
690
  }
699
691
  return r._$AI(s), r;
700
692
  };
@@ -704,7 +696,7 @@ const he = (s, t, e) => {
704
696
  * SPDX-License-Identifier: BSD-3-Clause
705
697
  */
706
698
  const A = globalThis;
707
- let b = class extends y {
699
+ let _ = class extends y {
708
700
  constructor() {
709
701
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
710
702
  }
@@ -715,7 +707,7 @@ let b = class extends y {
715
707
  }
716
708
  update(t) {
717
709
  const e = this.render();
718
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = he(e, this.renderRoot, this.renderOptions);
710
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = ae(e, this.renderRoot, this.renderOptions);
719
711
  }
720
712
  connectedCallback() {
721
713
  var t;
@@ -726,13 +718,13 @@ let b = class extends y {
726
718
  super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
727
719
  }
728
720
  render() {
729
- return S;
721
+ return E;
730
722
  }
731
723
  };
732
- var St;
733
- b._$litElement$ = !0, b.finalized = !0, (St = A.litElementHydrateSupport) == null || St.call(A, { LitElement: b });
724
+ var Ct;
725
+ _._$litElement$ = !0, _.finalized = !0, (Ct = A.litElementHydrateSupport) == null || Ct.call(A, { LitElement: _ });
734
726
  const et = A.litElementPolyfillSupport;
735
- et == null || et({ LitElement: b });
727
+ et == null || et({ LitElement: _ });
736
728
  (A.litElementVersions ?? (A.litElementVersions = [])).push("4.2.1");
737
729
  /**
738
730
  * @license
@@ -749,7 +741,7 @@ const z = (s) => (t, e) => {
749
741
  * Copyright 2017 Google LLC
750
742
  * SPDX-License-Identifier: BSD-3-Clause
751
743
  */
752
- const ce = { attribute: !0, type: String, converter: G, reflect: !1, hasChanged: at }, de = (s = ce, t, e) => {
744
+ const le = { attribute: !0, type: String, converter: G, reflect: !1, hasChanged: at }, he = (s = le, t, e) => {
753
745
  const { kind: i, metadata: r } = e;
754
746
  let n = globalThis.litPropertyMetadata.get(r);
755
747
  if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), i === "setter" && ((s = Object.create(s)).wrapped = !0), n.set(e.name, s), i === "accessor") {
@@ -771,7 +763,7 @@ const ce = { attribute: !0, type: String, converter: G, reflect: !1, hasChanged:
771
763
  throw Error("Unsupported decorator location: " + i);
772
764
  };
773
765
  function f(s) {
774
- return (t, e) => typeof e == "object" ? de(s, t, e) : ((i, r, n) => {
766
+ return (t, e) => typeof e == "object" ? he(s, t, e) : ((i, r, n) => {
775
767
  const o = r.hasOwnProperty(n);
776
768
  return r.constructor.createProperty(n, i), o ? Object.getOwnPropertyDescriptor(r, n) : void 0;
777
769
  })(s, t, e);
@@ -781,10 +773,10 @@ function f(s) {
781
773
  * Copyright 2017 Google LLC
782
774
  * SPDX-License-Identifier: BSD-3-Clause
783
775
  */
784
- function Nt(s) {
776
+ function Ht(s) {
785
777
  return f({ ...s, state: !0, attribute: !1 });
786
778
  }
787
- function pe(s, t) {
779
+ function ce(s, t) {
788
780
  const e = document.createElement("template");
789
781
  return e.innerHTML = s.trim(), t.append(e.content.cloneNode(!0)), new Proxy({}, {
790
782
  get(i, r) {
@@ -803,13 +795,13 @@ const ct = class ct extends y {
803
795
  constructor(t) {
804
796
  super();
805
797
  const e = this.createRenderRoot();
806
- this.$ = pe(t, e);
798
+ this.$ = ce(t, e);
807
799
  }
808
800
  connectedCallback() {
809
801
  super.connectedCallback();
810
802
  let t = this.css;
811
803
  Array.isArray(t) || (t = [t]);
812
- const e = t.map((i) => i instanceof Pt ? i.styleSheet : C(i).styleSheet);
804
+ const e = t.map((i) => i instanceof Ot ? i.styleSheet : C(i).styleSheet);
813
805
  this.shadowRoot.adoptedStyleSheets = e;
814
806
  }
815
807
  };
@@ -823,7 +815,7 @@ let it = ct;
823
815
  * Copyright 2017 Google LLC
824
816
  * SPDX-License-Identifier: BSD-3-Clause
825
817
  */
826
- const Lt = { ATTRIBUTE: 1, CHILD: 2 }, Ht = (s) => (...t) => ({ _$litDirective$: s, values: t });
818
+ const Lt = { ATTRIBUTE: 1, CHILD: 2 }, Dt = (s) => (...t) => ({ _$litDirective$: s, values: t });
827
819
  class Rt {
828
820
  constructor(t) {
829
821
  }
@@ -845,7 +837,7 @@ class Rt {
845
837
  * Copyright 2018 Google LLC
846
838
  * SPDX-License-Identifier: BSD-3-Clause
847
839
  */
848
- const At = Ht(class extends Rt {
840
+ const xt = Dt(class extends Rt {
849
841
  constructor(s) {
850
842
  var t;
851
843
  if (super(s), s.type !== Lt.ATTRIBUTE || s.name !== "class" || ((t = s.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
@@ -866,15 +858,15 @@ const At = Ht(class extends Rt {
866
858
  const o = !!t[n];
867
859
  o === this.st.has(n) || (r = this.nt) != null && r.has(n) || (o ? (e.add(n), this.st.add(n)) : (e.remove(n), this.st.delete(n)));
868
860
  }
869
- return S;
861
+ return E;
870
862
  }
871
- }), ue = "*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body{height:100%;width:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit;color:inherit;background:none;border:none;outline:none}a,i{color:inherit;text-decoration:none}ul,ol{list-style:none}table{border-collapse:collapse;border-spacing:0}slot{display:contents}:host{--backdrop: rgb(from var(--nt-dark) r g b / .5);--header-background: transparent;--background-color: var(--nt-soft-primary);--shadow-color: rgb(from var(--nt-dark) r g b / .5);--main-padding: 0;--header-padding: var(--nt-space);position:fixed;top:0;right:0;height:100vh;width:33%;min-width:250px;max-width:400px;z-index:2000;padding:0;isolation:isolate;display:block}:host[opened]{display:block}#offcanvas{display:flex;flex-direction:column;width:100%;height:100%;background-color:var(--background-color);box-shadow:0 0 10px var(--shadow-color);transition:transform .2s ease-in-out;transform:translate(0)}#offcanvas.closed{transform:translate(100%)}#header{display:flex;width:100%;flex-direction:row;justify-content:space-between;align-items:center;background-color:var(--header-background);flex-grow:0;padding:var(--header-padding)}#header:has(>slot[empty]){display:none}#main{display:flex;width:100%;flex-grow:1;padding:var(--main-padding);min-height:200px;overflow:auto;scroll-behavior:auto;scrollbar-gutter:auto;height:100%}#footer{display:flex;width:100%;flex-direction:row;justify-content:space-between;align-items:center;margin-top:auto;flex-grow:0;padding:var(--padding)}#footer:has(>slot[empty]){display:none}#backdrop{opacity:1;transition:opacity .2s ease-in-out;position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--backdrop);z-index:-1;display:block}#backdrop.closed{opacity:0}";
872
- var fe = Object.defineProperty, ve = Object.getOwnPropertyDescriptor, K = (s, t, e, i) => {
873
- for (var r = i > 1 ? void 0 : i ? ve(t, e) : t, n = s.length - 1, o; n >= 0; n--)
863
+ }), de = "*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body{height:100%;width:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit;color:inherit;background:none;border:none;outline:none}a,i{color:inherit;text-decoration:none}ul,ol{list-style:none}table{border-collapse:collapse;border-spacing:0}slot{display:contents}:host{--backdrop: rgb(from var(--nt-dark) r g b / .5);--header-background: transparent;--background-color: var(--nt-soft-primary);--shadow-color: rgb(from var(--nt-dark) r g b / .5);--main-padding: 0;--header-padding: var(--nt-space);position:fixed;top:0;right:0;height:100vh;width:33%;min-width:250px;max-width:400px;z-index:2000;padding:0;isolation:isolate;display:block}:host[opened]{display:block}#offcanvas{display:flex;flex-direction:column;width:100%;height:100%;background-color:var(--background-color);box-shadow:0 0 10px var(--shadow-color);transition:transform .2s ease-in-out;transform:translate(0)}#offcanvas.closed{transform:translate(100%)}#header{display:flex;width:100%;flex-direction:row;justify-content:space-between;align-items:center;background-color:var(--header-background);flex-grow:0;padding:var(--header-padding)}#header:has(>slot[empty]){display:none}#main{display:flex;width:100%;flex-grow:1;padding:var(--main-padding);min-height:200px;overflow:auto;scroll-behavior:auto;scrollbar-gutter:auto;height:100%}#footer{display:flex;width:100%;flex-direction:row;justify-content:space-between;align-items:center;margin-top:auto;flex-grow:0;padding:var(--padding)}#footer:has(>slot[empty]){display:none}#backdrop{opacity:1;transition:opacity .2s ease-in-out;position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--backdrop);z-index:-1;display:block}#backdrop.closed{opacity:0}";
864
+ var pe = Object.defineProperty, ue = Object.getOwnPropertyDescriptor, K = (s, t, e, i) => {
865
+ for (var r = i > 1 ? void 0 : i ? ue(t, e) : t, n = s.length - 1, o; n >= 0; n--)
874
866
  (o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
875
- return i && r && fe(t, e, r), r;
867
+ return i && r && pe(t, e, r), r;
876
868
  };
877
- let x = class extends b {
869
+ let x = class extends _ {
878
870
  constructor() {
879
871
  super(), this.backdrop = !0, this.opened = !1, this.closedClass = !0, this.addEventListener("click", (s) => {
880
872
  s === void 0 || !s.target || !(s.target instanceof HTMLElement) || s.target.closest("[data-nt-dismiss='offcanvas']") !== null && this.close();
@@ -899,19 +891,19 @@ let x = class extends b {
899
891
  s.has("opened") && (this.opened ? (this.style.display = "block", await dt(1), nt.observeEmptySlots(this), this.closedClass = !1) : (this.closedClass = !0, await dt(400), this.style.display = "none"));
900
892
  }
901
893
  render() {
902
- return R`
894
+ return D`
903
895
  <div
904
896
  id="backdrop"
905
897
  part="backdrop"
906
898
  @click=${() => this.opened = !1}
907
- class=${At({ closed: this.closedClass })}
899
+ class=${xt({ closed: this.closedClass })}
908
900
  ></div>
909
901
  <div
910
902
  id="offcanvas"
911
903
  part="offcanvas"
912
904
  role="dialog"
913
905
  aria-modal="true"
914
- class=${At({ closed: this.closedClass })}
906
+ class=${xt({ closed: this.closedClass })}
915
907
  ?backdrop="${this.backdrop}"
916
908
  >
917
909
  <div id="header">
@@ -929,7 +921,7 @@ let x = class extends b {
929
921
  `;
930
922
  }
931
923
  };
932
- x.styles = [C(ue)];
924
+ x.styles = [C(de)];
933
925
  K([
934
926
  f({ type: Boolean, reflect: !0 })
935
927
  ], x.prototype, "backdrop", 2);
@@ -937,18 +929,18 @@ K([
937
929
  f({ type: Boolean, reflect: !0 })
938
930
  ], x.prototype, "opened", 2);
939
931
  K([
940
- Nt()
932
+ Ht()
941
933
  ], x.prototype, "closedClass", 2);
942
934
  x = K([
943
935
  z(x.is)
944
936
  ], x);
945
- const me = ":host{--container-width: var(--nt-container-width);--text-color: var(--nt-text);--hover-color: var(--nt-primary);--hover-text-color: var(--nt-text-on-primary);--transition: .2s ease-in-out;--submenu-bg: var(--nt-light);--submenu-text-color: var(--nt-text);--justify-content: center;--sidemenu-bg: var(--nt-soft-primary);--justify-sidebar-burger: flex-end;--height: auto;--default-alpha: .7;height:var(--height);display:block}nav{height:100%}#main{height:100%}#burger-wrapper{padding:15px}#burger-default{cursor:pointer}#burger-default slot::slotted(span){color:rgb(from var(--text-color) r g b/var(--default-alpha));transition:color var(--transition)}#burger-default nte-burger{--color: rgb(from var(--text-color) r g b / var(--default-alpha))}#burger-default:hover slot::slotted(span){color:rgb(from var(--text-color) r g b/1)}#burger-default:hover nte-burger{--color: rgb(from var(--text-color) r g b / 1)}";
946
- var ge = Object.defineProperty, be = Object.getOwnPropertyDescriptor, I = (s, t, e, i) => {
947
- for (var r = i > 1 ? void 0 : i ? be(t, e) : t, n = s.length - 1, o; n >= 0; n--)
937
+ const fe = ":host{--container-width: var(--nt-container-width);--text-color: var(--nt-text);--hover-color: var(--nt-primary);--hover-text-color: var(--nt-text-on-primary);--transition: .2s ease-in-out;--submenu-bg: var(--nt-light);--submenu-text-color: var(--nt-text);--justify-content: center;--sidemenu-bg: var(--nt-soft-primary);--justify-sidebar-burger: flex-end;--height: auto;--default-alpha: .7;height:var(--height);display:block}nav{height:100%}#main{height:100%}#burger-wrapper{padding:15px}#burger-default{cursor:pointer}#burger-default slot::slotted(span){color:rgb(from var(--text-color) r g b/var(--default-alpha));transition:color var(--transition)}#burger-default nte-burger{--color: rgb(from var(--text-color) r g b / var(--default-alpha))}#burger-default:hover slot::slotted(span){color:rgb(from var(--text-color) r g b/1)}#burger-default:hover nte-burger{--color: rgb(from var(--text-color) r g b / 1)}";
938
+ var ve = Object.defineProperty, ge = Object.getOwnPropertyDescriptor, I = (s, t, e, i) => {
939
+ for (var r = i > 1 ? void 0 : i ? ge(t, e) : t, n = s.length - 1, o; n >= 0; n--)
948
940
  (o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
949
- return i && r && ge(t, e, r), r;
941
+ return i && r && ve(t, e, r), r;
950
942
  };
951
- let _ = class extends b {
943
+ let b = class extends _ {
952
944
  constructor() {
953
945
  super(), this.mode = "slave", this.breakpoint = "99999px", this.transferTo = "", this._isTransferred = !1;
954
946
  }
@@ -960,7 +952,7 @@ let _ = class extends b {
960
952
  return s ? s.querySelector("nte-nav") : null;
961
953
  }
962
954
  render() {
963
- return R` <nav>
955
+ return D` <nav>
964
956
  <div id="burger-wrapper" ?hidden=${!this._isTransferred}>
965
957
  <slot
966
958
  name="burger"
@@ -974,7 +966,7 @@ let _ = class extends b {
974
966
  }}
975
967
  >
976
968
  <!-- fallback icon -->
977
- ${this._isTransferred ? R`<div id="burger-default" style="display:flex; align-items: center; justify-content: center;">
969
+ ${this._isTransferred ? D`<div id="burger-default" style="display:flex; align-items: center; justify-content: center;">
978
970
  <div id="text"><slot name="menu-text"></slot></div>
979
971
  <nte-burger id="open-burger"></nte-burger>
980
972
  </div>` : ""}
@@ -1009,37 +1001,37 @@ let _ = class extends b {
1009
1001
  !t.contains("nav-vertical") && !t.contains("nav-horizontal") && t.add(this.closest("nte-offcanvas") === null ? "nav-horizontal" : "nav-vertical");
1010
1002
  }
1011
1003
  async connectedCallback() {
1012
- await It(), super.connectedCallback(), this.mode !== "slave" && this.transferTo !== "" && (this._isTransferred = !1, this.breakpoint !== "" && (pt(this.breakpoint) || (this._isTransferred = !0), window.addEventListener("breakpoint-changed", (s) => {
1004
+ await Wt(), super.connectedCallback(), this.mode !== "slave" && this.transferTo !== "" && (this._isTransferred = !1, this.breakpoint !== "" && (pt(this.breakpoint) || (this._isTransferred = !0), window.addEventListener("breakpoint-changed", (s) => {
1013
1005
  pt(this.breakpoint) ? this._isTransferred = !1 : this._isTransferred = !0;
1014
1006
  })));
1015
1007
  }
1016
1008
  };
1017
- _.DEFINITION = {
1009
+ b.DEFINITION = {
1018
1010
  classes: ["align-left", "align-right", "align-center"],
1019
1011
  attributes: {}
1020
1012
  };
1021
- _.styles = [C(me)];
1013
+ b.styles = [C(fe)];
1022
1014
  I([
1023
1015
  f({ type: String, reflect: !0 })
1024
- ], _.prototype, "mode", 2);
1016
+ ], b.prototype, "mode", 2);
1025
1017
  I([
1026
1018
  f({ type: String, reflect: !0 })
1027
- ], _.prototype, "breakpoint", 2);
1019
+ ], b.prototype, "breakpoint", 2);
1028
1020
  I([
1029
1021
  f({ type: String, reflect: !0, attribute: "transfer-to" })
1030
- ], _.prototype, "transferTo", 2);
1022
+ ], b.prototype, "transferTo", 2);
1031
1023
  I([
1032
- Nt()
1033
- ], _.prototype, "_isTransferred", 2);
1034
- _ = I([
1024
+ Ht()
1025
+ ], b.prototype, "_isTransferred", 2);
1026
+ b = I([
1035
1027
  z("nte-nav")
1036
- ], _);
1028
+ ], b);
1037
1029
  /**
1038
1030
  * @license
1039
1031
  * Copyright 2020 Google LLC
1040
1032
  * SPDX-License-Identifier: BSD-3-Clause
1041
1033
  */
1042
- const _e = (s) => s.strings === void 0;
1034
+ const me = (s) => s.strings === void 0;
1043
1035
  /**
1044
1036
  * @license
1045
1037
  * Copyright 2017 Google LLC
@@ -1057,39 +1049,39 @@ const N = (s, t) => {
1057
1049
  if ((t = s._$AM) === void 0) break;
1058
1050
  e = t._$AN, e.delete(s), s = t;
1059
1051
  } while ((e == null ? void 0 : e.size) === 0);
1060
- }, Dt = (s) => {
1052
+ }, jt = (s) => {
1061
1053
  for (let t; t = s._$AM; s = t) {
1062
1054
  let e = t._$AN;
1063
1055
  if (e === void 0) t._$AN = e = /* @__PURE__ */ new Set();
1064
1056
  else if (e.has(s)) break;
1065
- e.add(s), we(t);
1057
+ e.add(s), $e(t);
1066
1058
  }
1067
1059
  };
1068
- function $e(s) {
1069
- this._$AN !== void 0 ? (V(this), this._$AM = s, Dt(this)) : this._$AM = s;
1060
+ function _e(s) {
1061
+ this._$AN !== void 0 ? (V(this), this._$AM = s, jt(this)) : this._$AM = s;
1070
1062
  }
1071
- function ye(s, t = !1, e = 0) {
1063
+ function be(s, t = !1, e = 0) {
1072
1064
  const i = this._$AH, r = this._$AN;
1073
1065
  if (r !== void 0 && r.size !== 0) if (t) if (Array.isArray(i)) for (let n = e; n < i.length; n++) N(i[n], !1), V(i[n]);
1074
1066
  else i != null && (N(i, !1), V(i));
1075
1067
  else N(this, s);
1076
1068
  }
1077
- const we = (s) => {
1078
- s.type == Lt.CHILD && (s._$AP ?? (s._$AP = ye), s._$AQ ?? (s._$AQ = $e));
1069
+ const $e = (s) => {
1070
+ s.type == Lt.CHILD && (s._$AP ?? (s._$AP = be), s._$AQ ?? (s._$AQ = _e));
1079
1071
  };
1080
- class Ae extends Rt {
1072
+ class ye extends Rt {
1081
1073
  constructor() {
1082
1074
  super(...arguments), this._$AN = void 0;
1083
1075
  }
1084
1076
  _$AT(t, e, i) {
1085
- super._$AT(t, e, i), Dt(this), this.isConnected = t._$AU;
1077
+ super._$AT(t, e, i), jt(this), this.isConnected = t._$AU;
1086
1078
  }
1087
1079
  _$AO(t, e = !0) {
1088
1080
  var i, r;
1089
1081
  t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), e && (N(this, t), V(this));
1090
1082
  }
1091
1083
  setValue(t) {
1092
- if (_e(this._$Ct)) this._$Ct._$AI(t, this);
1084
+ if (me(this._$Ct)) this._$Ct._$AI(t, this);
1093
1085
  else {
1094
1086
  const e = [...this._$Ct._$AH];
1095
1087
  e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
@@ -1105,10 +1097,10 @@ class Ae extends Rt {
1105
1097
  * Copyright 2020 Google LLC
1106
1098
  * SPDX-License-Identifier: BSD-3-Clause
1107
1099
  */
1108
- const xt = () => new xe();
1109
- class xe {
1100
+ const St = () => new we();
1101
+ class we {
1110
1102
  }
1111
- const st = /* @__PURE__ */ new WeakMap(), Et = Ht(class extends Ae {
1103
+ const st = /* @__PURE__ */ new WeakMap(), Et = Dt(class extends ye {
1112
1104
  render(s) {
1113
1105
  return p;
1114
1106
  }
@@ -1134,15 +1126,15 @@ const st = /* @__PURE__ */ new WeakMap(), Et = Ht(class extends Ae {
1134
1126
  reconnected() {
1135
1127
  this.rt(this.ct);
1136
1128
  }
1137
- }), Ee = "*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body{height:100%;width:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit;color:inherit;background:none;border:none;outline:none}a,i{color:inherit;text-decoration:none}ul,ol{list-style:none}table{border-collapse:collapse;border-spacing:0}slot{display:contents}:host{--bg: transparent;--spacer-bg: transparent;--container-width: var(--nt-container-width, 100%);--brand-height: 80px;width:100vw;margin:0}:host(a){height:85px;width:auto}#wrapper{position:relative;left:0;top:0;right:0;width:100%}#spacer{position:relative;top:0;left:0;width:100%;height:var(--brand-height);background-color:var(--spacer-bg)}#navbar{position:absolute;top:0;width:100vw;height:auto;background-color:var(--bg);z-index:1000}#main{width:100vw;display:block}";
1138
- var Se = Object.defineProperty, Ce = Object.getOwnPropertyDescriptor, jt = (s, t, e, i) => {
1139
- for (var r = i > 1 ? void 0 : i ? Ce(t, e) : t, n = s.length - 1, o; n >= 0; n--)
1129
+ }), Ae = "*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body{height:100%;width:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit;color:inherit;background:none;border:none;outline:none}a,i{color:inherit;text-decoration:none}ul,ol{list-style:none}table{border-collapse:collapse;border-spacing:0}slot{display:contents}:host{--bg: transparent;--spacer-bg: transparent;--container-width: var(--nt-container-width, 100%);--brand-height: 80px;--spacer-height: 80px;width:100vw;margin:0}:host(a){height:85px;width:auto}#wrapper{position:relative;left:0;top:0;right:0;width:100%}#spacer{position:relative;top:0;left:0;width:100%;transition:height .3s ease-in-out;height:var(--spacer-height);background-color:var(--spacer-bg)}#navbar{position:absolute;top:0;width:100vw;height:auto;background-color:var(--bg);z-index:1000}#main{width:100vw;display:block}";
1130
+ var xe = Object.defineProperty, Se = Object.getOwnPropertyDescriptor, zt = (s, t, e, i) => {
1131
+ for (var r = i > 1 ? void 0 : i ? Se(t, e) : t, n = s.length - 1, o; n >= 0; n--)
1140
1132
  (o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
1141
- return i && r && Se(t, e, r), r;
1133
+ return i && r && xe(t, e, r), r;
1142
1134
  };
1143
- let Y = class extends b {
1135
+ let Y = class extends _ {
1144
1136
  constructor() {
1145
- super(), this.navbarRef = xt(), this.spacerRef = xt(), this.scrollThreshold = 0, this._lastScrollY = window.scrollY, this._scrollUpPixels = 0, this._debouncer = new Ct(100, 300), document.addEventListener(
1137
+ super(), this.navbarRef = St(), this.spacerRef = St(), this.scrollThreshold = 0, this._lastScrollY = window.scrollY, this._scrollUpPixels = 0, this._debouncer = new Tt(100, 300), document.addEventListener(
1146
1138
  "scroll",
1147
1139
  async () => {
1148
1140
  this.updateScrollState();
@@ -1158,19 +1150,17 @@ let Y = class extends b {
1158
1150
  s > 1 ? this.classList.add("is-scrolled") : this.classList.remove("is-scrolled"), s < this._lastScrollY ? (this._scrollUpPixels += this._lastScrollY - s, this._scrollUpPixels > 10 && s < this.scrollThreshold && this.classList.add("is-scrolling-up")) : (this._scrollUpPixels = 0, this.classList.remove("is-scrolling-up")), s > this.scrollThreshold ? this.classList.add("is-below-threshold") : this.classList.remove("is-below-threshold"), this._lastScrollY = s;
1159
1151
  }
1160
1152
  async connectedCallback() {
1161
- this.updateScrollState(), await Bt(), super.connectedCallback();
1153
+ this.updateScrollState(), await ut(), super.connectedCallback();
1162
1154
  }
1163
1155
  // Adjust the spacer height on every render
1164
1156
  async updated(s) {
1165
- await Gt(), super.updated(s);
1166
- const t = this.navbarRef.value, e = this.spacerRef.value;
1167
- await qt(100), t && e && (e.style.height = `${t.offsetHeight}px`);
1157
+ await ut(), super.updated(s);
1168
1158
  }
1169
1159
  firstUpdated(s) {
1170
1160
  nt.observeEmptySlots(this);
1171
1161
  }
1172
1162
  render() {
1173
- return R`
1163
+ return D`
1174
1164
  <div id="wrapper" part="wrapper">
1175
1165
  <div id="spacer" part="spacer" ${Et(this.spacerRef)}></div>
1176
1166
  <div id="navbar" part="navbar" ${Et(this.navbarRef)}>
@@ -1185,37 +1175,38 @@ let Y = class extends b {
1185
1175
  `;
1186
1176
  }
1187
1177
  };
1188
- Y.styles = [C(Ee)];
1189
- jt([
1178
+ Y.styles = [C(Ae)];
1179
+ zt([
1190
1180
  f({ type: Number, attribute: "scroll-threshold", reflect: !0 })
1191
1181
  ], Y.prototype, "scrollThreshold", 2);
1192
- Y = jt([
1182
+ Y = zt([
1193
1183
  z("nte-navbar")
1194
1184
  ], Y);
1195
- const Te = "*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body{height:100%;width:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit;color:inherit;background:none;border:none;outline:none}a,i{color:inherit;text-decoration:none}ul,ol{list-style:none}table{border-collapse:collapse;border-spacing:0}slot{display:contents}:host{--container-width: var(--nt-container-width, 100%);--background: transparent;--text-color: var(--nt-text);--height: auto;--brand-height: 80px;display:block;height:100%;width:100vw}:host(.hide-on-scroll){transition:max-height .3s ease-in-out;max-height:100px}:host(.hide-on-scroll.is-scrolled){max-height:0;overflow:hidden}#main{height:var(--height);transition:height .2s ease-in-out;overflow:visible;width:100%;display:flex;background:var(--background)}#container{width:var(--container-width);margin:0 auto;display:flex}#container #brand{min-width:0;flex-shrink:1;width:auto;align-items:start;display:flex;height:100%;justify-items:center}#container #brand:has(slot[empty]){display:none}#container #nav{display:flex;flex-grow:1;justify-content:end;align-items:center;gap:1rem}";
1196
- var Pe = Object.getOwnPropertyDescriptor, Oe = (s, t, e, i) => {
1197
- for (var r = i > 1 ? void 0 : i ? Pe(t, e) : t, n = s.length - 1, o; n >= 0; n--)
1185
+ const Ee = "*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body{height:100%;width:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit;color:inherit;background:none;border:none;outline:none}a,i{color:inherit;text-decoration:none}ul,ol{list-style:none}table{border-collapse:collapse;border-spacing:0}slot{display:contents}:host{--container-width: var(--nt-container-width, 100%);--background: transparent;--text-color: var(--nt-text);--height: auto;--brand-height: 80px;display:block;height:100%;width:100vw}:host(.hide-on-scroll){transition:max-height .3s ease-in-out;max-height:100px}:host(.hide-on-scroll.is-scrolled){max-height:0;overflow:hidden}#main{height:var(--height);transition:height .2s ease-in-out;overflow:visible;width:100%;display:flex;background:var(--background)}#container{width:var(--container-width);margin:0 auto;display:flex}#container #brand{min-width:0;flex-shrink:1;width:auto;align-items:start;display:flex;height:100%;justify-items:center}#container #brand:has(slot[empty]){display:none}#container #nav{display:flex;flex-grow:1;justify-content:end;align-items:center;gap:1rem}";
1186
+ var Ce = Object.getOwnPropertyDescriptor, Te = (s, t, e, i) => {
1187
+ for (var r = i > 1 ? void 0 : i ? Ce(t, e) : t, n = s.length - 1, o; n >= 0; n--)
1198
1188
  (o = s[n]) && (r = o(r) || r);
1199
1189
  return r;
1200
1190
  };
1201
- let rt = class extends b {
1191
+ let rt = class extends _ {
1192
+ constructor() {
1193
+ super(...arguments), this._isScrolled = !1;
1194
+ }
1202
1195
  static get is() {
1203
1196
  return "nte-navbar-line";
1204
1197
  }
1198
+ updateScrollState() {
1199
+ const s = window.scrollY;
1200
+ s > 1 && !this._isScrolled ? (this.classList.add("is-scrolled"), this._isScrolled = !0) : s <= 1 && this._isScrolled && (this.classList.remove("is-scrolled"), this._isScrolled = !1);
1201
+ }
1205
1202
  connectedCallback() {
1206
- super.connectedCallback(), window.addEventListener(
1207
- "scroll",
1208
- () => {
1209
- window.scrollY > 0 ? this.classList.add("is-scrolled") : this.classList.remove("is-scrolled");
1210
- },
1211
- { passive: !0 }
1212
- );
1203
+ super.connectedCallback(), window.addEventListener("scroll", () => this.updateScrollState(), { passive: !0 });
1213
1204
  }
1214
- firstUpdated(s) {
1215
- nt.observeEmptySlots(this);
1205
+ async firstUpdated(s) {
1206
+ nt.observeEmptySlots(this), this.updateScrollState();
1216
1207
  }
1217
1208
  render() {
1218
- return R`
1209
+ return D`
1219
1210
  <div id="main" part="main">
1220
1211
  <div id="container" part="container">
1221
1212
  <div id="brand" part="brand">
@@ -1229,17 +1220,17 @@ let rt = class extends b {
1229
1220
  `;
1230
1221
  }
1231
1222
  };
1232
- rt.styles = [C(Te)];
1233
- rt = Oe([
1223
+ rt.styles = [C(Ee)];
1224
+ rt = Te([
1234
1225
  z("nte-navbar-line")
1235
1226
  ], rt);
1236
- const ke = ":host{--size: 40px;--color: var(--nt-text);--color-hover: var(--color);height:var(--size);width:var(--size)}.hamburger{display:block;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0 none;background:none;transition:transform .4s}.hamburger:hover{--color: var(--color-hover)}:host([open]) .hamburger .bar:nth-of-type(1){--translate: calc(var(--size) / 4);transform:translateY(var(--translate)) rotate(45deg)}:host([open]) .hamburger .bar:nth-of-type(2){opacity:0}:host([open]) .hamburger .bar:nth-of-type(3){--translate: calc(var(--size) / -4);transform:translateY(var(--translate)) rotate(-45deg)}.bar{height:3px;width:var(--size);display:block;margin:calc(var(--size) / 5.2) auto;position:relative;background-color:var(--color);transition:.4s}";
1237
- var Me = Object.defineProperty, Ue = Object.getOwnPropertyDescriptor, ht = (s, t, e, i) => {
1238
- for (var r = i > 1 ? void 0 : i ? Ue(t, e) : t, n = s.length - 1, o; n >= 0; n--)
1227
+ const Pe = ":host{--size: 40px;--color: var(--nt-text);--color-hover: var(--color);height:var(--size);width:var(--size)}.hamburger{display:block;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0 none;background:none;transition:transform .4s}.hamburger:hover{--color: var(--color-hover)}:host([open]) .hamburger .bar:nth-of-type(1){--translate: calc(var(--size) / 4);transform:translateY(var(--translate)) rotate(45deg)}:host([open]) .hamburger .bar:nth-of-type(2){opacity:0}:host([open]) .hamburger .bar:nth-of-type(3){--translate: calc(var(--size) / -4);transform:translateY(var(--translate)) rotate(-45deg)}.bar{height:3px;width:var(--size);display:block;margin:calc(var(--size) / 5.2) auto;position:relative;background-color:var(--color);transition:.4s}";
1228
+ var Oe = Object.defineProperty, ke = Object.getOwnPropertyDescriptor, ht = (s, t, e, i) => {
1229
+ for (var r = i > 1 ? void 0 : i ? ke(t, e) : t, n = s.length - 1, o; n >= 0; n--)
1239
1230
  (o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
1240
- return i && r && Me(t, e, r), r;
1231
+ return i && r && Oe(t, e, r), r;
1241
1232
  };
1242
- const Ne = `
1233
+ const Me = `
1243
1234
  <div id="wrapper">
1244
1235
  <button id="button" class="hamburger">
1245
1236
  <div class="bar"></div>
@@ -1250,10 +1241,10 @@ const Ne = `
1250
1241
  `;
1251
1242
  let F = class extends it {
1252
1243
  constructor() {
1253
- super(Ne), this.open = !1, this.text = "Menu";
1244
+ super(Me), this.open = !1, this.text = "Menu";
1254
1245
  }
1255
1246
  get css() {
1256
- return C(ke);
1247
+ return C(Pe);
1257
1248
  }
1258
1249
  };
1259
1250
  ht([
@@ -1267,6 +1258,6 @@ F = ht([
1267
1258
  ], F);
1268
1259
  console.log("Loading nte-nav...");
1269
1260
  export {
1270
- _ as NteNav,
1261
+ b as NteNav,
1271
1262
  Y as NteNavbar
1272
1263
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextrap/nte-nav",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "main": "./index.js",
5
5
  "dependencies": {
6
6
  "@nextrap/nt-framework": ">=0.0.3",