@xwadex/fesd 0.0.41 → 0.0.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var fs = (n, i, t) => {
1
+ var vs = (n, i, t) => {
2
2
  if (!i.has(n))
3
3
  throw TypeError("Cannot " + t);
4
4
  };
@@ -7,14 +7,14 @@ var h = (n, i, t) => {
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  i instanceof WeakSet ? i.add(n) : i.set(n, t);
9
9
  };
10
- var d = (n, i, t) => (fs(n, i, "access private method"), t);
11
- import { OverlayScrollbars as Me } from "overlayscrollbars";
12
- import v from "jquery";
10
+ var d = (n, i, t) => (vs(n, i, "access private method"), t);
11
+ import { OverlayScrollbars as qe } from "overlayscrollbars";
12
+ import f from "jquery";
13
13
  import "./vendor-bundle.js";
14
14
  import "validator";
15
15
  import "flatpickr";
16
- import Fe from "vanilla-lazyload";
17
- import { lock as vs, unlock as bs } from "tua-body-scroll-lock";
16
+ import Ye from "vanilla-lazyload";
17
+ import { lock as bs, unlock as ys } from "tua-body-scroll-lock";
18
18
  const Y = {
19
19
  SETTINGS: {
20
20
  videoId: null,
@@ -51,7 +51,7 @@ const Y = {
51
51
  TEMPLATE() {
52
52
  return '<div class="player-container"><div class="player-wrapper"></div></div>';
53
53
  }
54
- }, ys = {
54
+ }, ws = {
55
55
  SETTINGS: {
56
56
  success: null,
57
57
  text: null,
@@ -108,7 +108,7 @@ const Y = {
108
108
  gap: 30
109
109
  // 跑馬燈內容之間的距離 - Number
110
110
  }
111
- }, qe = {
111
+ }, Ie = {
112
112
  SETTINGS: {
113
113
  scrollbar: {
114
114
  "scrollbar-track-color": "transparent",
@@ -136,7 +136,7 @@ const Y = {
136
136
  </div>`;
137
137
  return t || r;
138
138
  }
139
- }, ws = {
139
+ }, Ts = {
140
140
  SETTINGS: {
141
141
  basic_rwd: 900,
142
142
  markdownLink: !1,
@@ -144,7 +144,7 @@ const Y = {
144
144
  navigation: !1,
145
145
  scrollStep: !1
146
146
  }
147
- }, Ye = {
147
+ }, Ue = {
148
148
  SETTINGS: {
149
149
  scroller: window,
150
150
  class: "aost-show",
@@ -167,7 +167,7 @@ const Y = {
167
167
  enter: null,
168
168
  leave: null
169
169
  }
170
- }, dt = {
170
+ }, ut = {
171
171
  SETTINGS: {
172
172
  target: null,
173
173
  container: null,
@@ -227,7 +227,7 @@ const Y = {
227
227
  return `<dropdown-el${n.placeholder ? ` d4-placeholder="${n.placeholder}"` : ""}${n.value ? ` d4-value="${n.value}"` : ""}></dropdown-el>`;
228
228
  }
229
229
  }
230
- }, Ue = {
230
+ }, Je = {
231
231
  SETTINGS: {
232
232
  // 樣式 normal / process
233
233
  type: "normal",
@@ -247,7 +247,7 @@ const Y = {
247
247
  // 步驟狀態綁定
248
248
  stepOutput: ".step-show"
249
249
  }
250
- }, Je = {
250
+ }, Ze = {
251
251
  SETTINGS: {
252
252
  collapseClass: "collapse",
253
253
  block: "[collapse-block]",
@@ -280,7 +280,7 @@ const Y = {
280
280
  update: null,
281
281
  afterUpdate: null
282
282
  }
283
- }, Ze = {
283
+ }, Qe = {
284
284
  SETTINGS: {
285
285
  // 是否要加 hover 效果?
286
286
  hover: !0,
@@ -295,29 +295,29 @@ const Y = {
295
295
  // hover 毫秒 ?
296
296
  speed: 600
297
297
  }
298
- }, gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
298
+ }, fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
299
299
  __proto__: null,
300
- anchor4: dt,
301
- aost4: Ye,
302
- article4: ws,
303
- collapse4: Je,
304
- dropdown4: qe,
300
+ anchor4: ut,
301
+ aost4: Ue,
302
+ article4: Ts,
303
+ collapse4: Ze,
304
+ dropdown4: Ie,
305
305
  marquee4: x,
306
306
  modal4: I,
307
307
  multipurpose4: H,
308
- ripple4: Ze,
309
- share4: ys,
310
- tab4: Ue,
308
+ ripple4: Qe,
309
+ share4: ws,
310
+ tab4: Je,
311
311
  video4: Y
312
312
  }, Symbol.toStringTag, { value: "Module" })), A = {
313
313
  before: "beforebegin",
314
314
  after: "afterend",
315
315
  append: "beforeend",
316
316
  prepend: "afterbegin"
317
- }, rt = (n) => typeof n == "string" && n !== "", we = (n) => n instanceof HTMLElement, lt = (n) => n instanceof NodeList, w = (n) => L(n) !== null, j = (n) => typeof n == "function", L = (n) => we(n) ? n : document.querySelector(n), S = (n) => lt(n) ? n : document.querySelectorAll(n), Ts = () => Math.random().toString(36).substr(2, 9), Es = (n) => {
317
+ }, rt = (n) => typeof n == "string" && n !== "", Te = (n) => n instanceof HTMLElement, lt = (n) => n instanceof NodeList, w = (n) => L(n) !== null, j = (n) => typeof n == "function", L = (n) => Te(n) ? n : document.querySelector(n), S = (n) => lt(n) ? n : document.querySelectorAll(n), Es = () => Math.random().toString(36).substr(2, 9), As = (n) => {
318
318
  const i = document.createElement("div");
319
319
  return i.innerHTML = n, i.childNodes;
320
- }, As = (n) => {
320
+ }, Ls = (n) => {
321
321
  try {
322
322
  JSON.parse(n);
323
323
  } catch {
@@ -326,7 +326,7 @@ const Y = {
326
326
  return JSON.parse(n);
327
327
  }, E = (n, i) => {
328
328
  console.warn(`[${n} warn]: ${i}`);
329
- }, Pe = (n, i) => {
329
+ }, je = (n, i) => {
330
330
  console.error(`[${n} error]: ${i}`);
331
331
  }, O = {
332
332
  on(n, i) {
@@ -359,7 +359,7 @@ const Y = {
359
359
  j(s) && s.apply(this, e);
360
360
  }), this) : this;
361
361
  }
362
- }, Ls = {
362
+ }, Ss = {
363
363
  easeInOutCirc(n, i, t, e) {
364
364
  return (n /= e / 2) < 1 ? -t / 2 * (Math.sqrt(1 - n * n) - 1) + i : t / 2 * (Math.sqrt(1 - (n -= 2) * n) + 1) + i;
365
365
  },
@@ -369,33 +369,33 @@ const Y = {
369
369
  easeOutQuart(n, i, t, e) {
370
370
  return -t * ((n = n / e - 1) * n * n * n - 1) + i;
371
371
  }
372
- }, Te = (n, i) => {
373
- const { target: t, container: e, spacer: s, speed: o, gap: a, easing: r, direction: l } = n, c = l === "horizontal", u = c ? "scrollLeft" : "scrollTop", p = c ? "left" : "top", g = c ? "width" : "height", m = w(e) ? L(e) : document.scrollingElement, f = m[u], b = w(t) ? L(t).getBoundingClientRect()[p] : 0 - f, y = w(s) ? L(s).getBoundingClientRect()[g] : 0, _ = b - a - y, G = 15;
372
+ }, Ee = (n, i) => {
373
+ const { target: t, container: e, spacer: s, speed: o, gap: a, easing: r, direction: l } = n, c = l === "horizontal", u = c ? "scrollLeft" : "scrollTop", p = c ? "left" : "top", g = c ? "width" : "height", m = w(e) ? L(e) : document.scrollingElement, v = m[u], b = w(t) ? L(t).getBoundingClientRect()[p] : 0 - v, y = w(s) ? L(s).getBoundingClientRect()[g] : 0, k = b - a - y, G = 15;
374
374
  let D = 0;
375
- if (_ === 0)
375
+ if (k === 0)
376
376
  return;
377
377
  const R = (X) => {
378
- const Ne = L(t);
379
- i && i.emit(X, Ne), !i && n.on && j(n.on[X]) && n.on[X](Ne);
378
+ const Pe = L(t);
379
+ i && i.emit(X, Pe), !i && n.on && j(n.on[X]) && n.on[X](Pe);
380
380
  };
381
381
  R("beforeScroll");
382
- const Oe = () => {
382
+ const Ne = () => {
383
383
  D += G;
384
- const X = Ls[r](D, f, _, o);
385
- m[u] = X, D < o && requestAnimationFrame(Oe), D >= o && R("afterScroll");
384
+ const X = Ss[r](D, v, k, o);
385
+ m[u] = X, D < o && requestAnimationFrame(Ne), D >= o && R("afterScroll");
386
386
  };
387
- requestAnimationFrame(Oe);
387
+ requestAnimationFrame(Ne);
388
388
  };
389
- var Z, Ee, mt, Ve, gt, Ke;
390
- class Qe {
389
+ var Z, Ae, gt, Ke, ft, ti;
390
+ class Ve {
391
391
  constructor(i, t = {}) {
392
392
  h(this, Z);
393
- h(this, mt);
394
393
  h(this, gt);
394
+ h(this, ft);
395
395
  this.__storage__ = {
396
396
  el: i,
397
397
  options: t
398
- }, this.active = "data-anchor-active", d(this, Z, Ee).call(this);
398
+ }, this.active = "data-anchor-active", d(this, Z, Ae).call(this);
399
399
  }
400
400
  destroy() {
401
401
  const { elements: i } = this;
@@ -405,39 +405,39 @@ class Qe {
405
405
  }
406
406
  update() {
407
407
  var i;
408
- return d(i = this.destroy(), Z, Ee).call(i), this.emit("afterUpdate"), this;
408
+ return d(i = this.destroy(), Z, Ae).call(i), this.emit("afterUpdate"), this;
409
409
  }
410
410
  static run(i) {
411
- const { SETTINGS: t } = dt, e = Object.assign({}, t, i);
411
+ const { SETTINGS: t } = ut, e = Object.assign({}, t, i);
412
412
  setTimeout(() => {
413
- Te(e);
413
+ Ee(e);
414
414
  }, e.delay);
415
415
  }
416
416
  static url(i) {
417
- const { SETTINGS: t } = dt, { hashName: e } = i, s = window.location.search || window.location.hash, { searchParams: o } = new URL(window.location), a = document.querySelector(`[data-anchor-id="${e ? o.get(e) : s.split("?").pop()}"]`);
417
+ const { SETTINGS: t } = ut, { hashName: e } = i, s = window.location.search || window.location.hash, { searchParams: o } = new URL(window.location), a = document.querySelector(`[data-anchor-id="${e ? o.get(e) : s.split("?").pop()}"]`);
418
418
  if (!a)
419
419
  return;
420
420
  const r = Object.assign({}, t, i, { target: a });
421
421
  setTimeout(() => {
422
- Te(r);
422
+ Ee(r);
423
423
  }, r.delay);
424
424
  }
425
425
  }
426
- Z = new WeakSet(), Ee = function() {
426
+ Z = new WeakSet(), Ae = function() {
427
427
  const { el: i, options: t } = this.__storage__;
428
428
  if (!rt(i) || !w(i))
429
429
  return;
430
- const { SETTINGS: e, EVENTS: s } = dt;
430
+ const { SETTINGS: e, EVENTS: s } = ut;
431
431
  if (this.elements = t.state == "not active" ? S(i + `:not([${this.active}])`) : S(i), this.elements = S(i), this.options = Object.assign({}, e, t), this.__events__ = Object.assign({}, s), this.options.on)
432
432
  for (const [o, a] of Object.entries(this.options.on))
433
433
  this.__events__[o] = [a];
434
- d(this, mt, Ve).call(this);
435
- }, mt = new WeakSet(), Ve = function() {
434
+ d(this, gt, Ke).call(this);
435
+ }, gt = new WeakSet(), Ke = function() {
436
436
  const { elements: i, options: t } = this;
437
437
  i.forEach((e) => {
438
- e.anchor = {}, e.anchor.instance = this, e.anchor.eventHandler = d(this, gt, Ke), e.anchor.defaultOptions = t, e.anchor.methods = {}, e.anchor.methods.destroy = this.destroy, e.anchor.methods.update = this.update, e.addEventListener("click", e.anchor.eventHandler), e.setAttribute(this.active, "");
438
+ e.anchor = {}, e.anchor.instance = this, e.anchor.eventHandler = d(this, ft, ti), e.anchor.defaultOptions = t, e.anchor.methods = {}, e.anchor.methods.destroy = this.destroy, e.anchor.methods.update = this.update, e.addEventListener("click", e.anchor.eventHandler), e.setAttribute(this.active, "");
439
439
  }), this.emit("afterInit");
440
- }, gt = new WeakSet(), Ke = function() {
440
+ }, ft = new WeakSet(), ti = function() {
441
441
  const { defaultOptions: i, eventHandler: t, instance: e } = this.anchor, s = {
442
442
  target: this.getAttribute("data-anchor-target") || i.target,
443
443
  container: this.getAttribute("data-anchor-container") || i.container,
@@ -451,12 +451,12 @@ Z = new WeakSet(), Ee = function() {
451
451
  this.removeEventListener("click", t), setTimeout(() => {
452
452
  this.addEventListener("click", t);
453
453
  }, s.speed), setTimeout(() => {
454
- Te(s, e);
454
+ Ee(s, e);
455
455
  }, s.delay);
456
456
  };
457
- Object.assign(Qe.prototype, O);
457
+ Object.assign(Ve.prototype, O);
458
458
  window.MODALS || (window.MODALS = {});
459
- const { MODALS: M } = window, Ss = (n) => {
459
+ const { MODALS: M } = window, Ds = (n) => {
460
460
  const { TEMPLATE: i } = I, { childDom: t } = n, e = document.createElement("div");
461
461
  e.innerHTML = i(n.getAttribute("data-modal-template-setting"));
462
462
  const s = e.querySelector(".modal-content");
@@ -464,15 +464,15 @@ const { MODALS: M } = window, Ss = (n) => {
464
464
  s.append(o);
465
465
  }), e.children[0];
466
466
  };
467
- var ft, ei, vt, ii, bt, si, yt, ni, wt, oi;
468
- class ti extends HTMLElement {
467
+ var vt, ii, bt, si, yt, ni, wt, oi, Tt, ai;
468
+ class ei extends HTMLElement {
469
469
  constructor() {
470
470
  super();
471
- h(this, ft);
472
471
  h(this, vt);
473
472
  h(this, bt);
474
473
  h(this, yt);
475
474
  h(this, wt);
475
+ h(this, Tt);
476
476
  this.initialize = !1;
477
477
  }
478
478
  static get observedAttributes() {
@@ -481,12 +481,12 @@ class ti extends HTMLElement {
481
481
  attributeChangedCallback(t, e, s) {
482
482
  switch (t) {
483
483
  case ":state":
484
- d(this, wt, oi).call(this, s);
484
+ d(this, Tt, ai).call(this, s);
485
485
  break;
486
486
  }
487
487
  }
488
488
  connectedCallback() {
489
- this.initialize || (this.initialize = !0, d(this, ft, ei).call(this));
489
+ this.initialize || (this.initialize = !0, d(this, vt, ii).call(this));
490
490
  }
491
491
  open() {
492
492
  return this.setAttribute(":state", "open"), this;
@@ -498,22 +498,22 @@ class ti extends HTMLElement {
498
498
  return this.setAttribute(":state", "destroy"), this;
499
499
  }
500
500
  }
501
- ft = new WeakSet(), ei = function() {
501
+ vt = new WeakSet(), ii = function() {
502
502
  const { ATTRS: t } = I;
503
503
  this.__events__ = {}, this.getAttribute(":state") || this.setAttribute(":state", "close");
504
- const e = this.getAttribute(t.id) || Ts();
505
- this.getAttribute(t.id) || (E(`modern-modal needs a ${t.id} attribute with a unique id.`), this.setAttribute(t.id, e)), M[e] && E(`the ${t.id} "${e}" is already be used.`), M[e] = this, d(this, vt, ii).call(this);
506
- }, vt = new WeakSet(), ii = function() {
507
- this.childDom = this.childNodes, this.template = Ss(this), this.innerHTML = "", this.append(this.template), d(this, bt, si).call(this);
504
+ const e = this.getAttribute(t.id) || Es();
505
+ this.getAttribute(t.id) || (E(`modern-modal needs a ${t.id} attribute with a unique id.`), this.setAttribute(t.id, e)), M[e] && E(`the ${t.id} "${e}" is already be used.`), M[e] = this, d(this, bt, si).call(this);
508
506
  }, bt = new WeakSet(), si = function() {
507
+ this.childDom = this.childNodes, this.template = Ds(this), this.innerHTML = "", this.append(this.template), d(this, yt, ni).call(this);
508
+ }, yt = new WeakSet(), ni = function() {
509
509
  const t = this.querySelector(".modal-scroller");
510
- this.__scroller__ = Me(t, {
510
+ this.__scroller__ = qe(t, {
511
511
  overflowBehavior: {
512
512
  x: "hidden"
513
513
  },
514
514
  autoUpdate: !0
515
- }), window.modalScroll = this.__scroller__, d(this, yt, ni).call(this);
516
- }, yt = new WeakSet(), ni = function() {
515
+ }), window.modalScroll = this.__scroller__, d(this, wt, oi).call(this);
516
+ }, wt = new WeakSet(), oi = function() {
517
517
  var a, r, l;
518
518
  const t = this, { ATTRS: e } = I, { close: s, destroy: o } = e;
519
519
  (a = t.querySelectorAll(`[${s}]`)) == null || a.forEach((c) => {
@@ -529,7 +529,7 @@ ft = new WeakSet(), ei = function() {
529
529
  }), (l = t.querySelector("[stop-propagation]")) == null || l.addEventListener("click", function(c) {
530
530
  c.stopPropagation();
531
531
  });
532
- }, wt = new WeakSet(), oi = function(t) {
532
+ }, Tt = new WeakSet(), ai = function(t) {
533
533
  const { __scroller__: e } = this;
534
534
  if (t === "open") {
535
535
  if (this.style.display = "block", e) {
@@ -560,22 +560,22 @@ ft = new WeakSet(), ei = function() {
560
560
  this.addEventListener("transitionend", s);
561
561
  }
562
562
  };
563
- Object.assign(ti.prototype, O);
564
- const { MODALS: Ie } = window, ai = (n, i, ...t) => {
563
+ Object.assign(ei.prototype, O);
564
+ const { MODALS: Oe } = window, ct = {}, ri = (n, i, ...t) => {
565
565
  if (!i)
566
566
  return;
567
567
  const e = n[i];
568
568
  e && j(e) && e.apply(n, t);
569
- }, ri = (n, ...i) => {
569
+ }, li = (n, ...i) => {
570
570
  n && j(n) && n.apply(J, i);
571
- }, je = (n, i) => {
572
- const { target: t } = n, e = Ie[t] || L(n.target);
573
- e && li(n, i), e || Ds(n, i);
574
- }, li = (n, i) => {
575
- const { target: t, action: e, on: s, e: o } = n, a = Ie[t] || L(n.target);
571
+ }, ze = (n, i) => {
572
+ const { target: t } = n, e = Oe[t] || L(n.target);
573
+ e && ci(n, i), e || ks(n, i);
574
+ }, ci = (n, i) => {
575
+ const { target: t, action: e, on: s, e: o } = n, a = Oe[t] || L(n.target);
576
576
  switch (["open", "close", "destroy"].forEach((l) => {
577
577
  a.once(l, () => {
578
- i && (i.emit(l, a, o), ai(i, s[l], a, o)), i || ri(s[l], a);
578
+ i && (i.emit(l, a, o), ri(i, s[l], a, o)), i || li(s[l], a);
579
579
  });
580
580
  }), e) {
581
581
  case "open":
@@ -592,34 +592,34 @@ const { MODALS: Ie } = window, ai = (n, i, ...t) => {
592
592
  l === "close" && a.open(), l === "open" && a.close();
593
593
  break;
594
594
  }
595
- }, Ds = async (n, i) => {
595
+ }, ks = async (n, i) => {
596
596
  const { target: t, route: e, container: s, on: o, e: a } = n;
597
597
  if (!e)
598
598
  return E("modal4", "cannot find target or data-modal-route is not defined");
599
599
  const r = (l, ...c) => {
600
- i && (i.emit(l, ...c), ai(i, o[l], ...c)), i || ri(o[l], ...c);
600
+ i && (i.emit(l, ...c), ri(i, o[l], ...c)), i || li(o[l], ...c);
601
601
  };
602
- fetch(e).then((l) => (r("success", a), l.text())).then((l) => {
603
- const c = Es(l), u = L(s) || L(I.SETTINGS.container);
602
+ ct[t] || (ct[t] = !0, fetch(e).then((l) => (r("success", a), l.text())).then((l) => {
603
+ const c = As(l), u = L(s) || L(I.SETTINGS.container);
604
604
  [...c].forEach((g) => {
605
605
  u.append(g);
606
606
  });
607
- const p = Ie[t] || L(n.target);
608
- r("complete", p), li(n, i);
607
+ const p = Oe[t] || L(n.target);
608
+ r("complete", p), ci(n, i), delete ct[t];
609
609
  }).catch((l) => {
610
- r("error", l);
611
- });
610
+ r("error", l), delete ct[t];
611
+ }));
612
612
  };
613
- var Q, Ae, Tt, ci, Et, di;
613
+ var Q, Le, Et, di, At, ui;
614
614
  const N = class N {
615
615
  constructor(i, t = {}) {
616
616
  h(this, Q);
617
- h(this, Tt);
618
617
  h(this, Et);
618
+ h(this, At);
619
619
  this.__storage__ = {
620
620
  el: i,
621
621
  options: t
622
- }, this.active = "data-modal-active", d(this, Q, Ae).call(this);
622
+ }, this.active = "data-modal-active", d(this, Q, Le).call(this);
623
623
  }
624
624
  destroy() {
625
625
  const { elements: i } = this;
@@ -629,12 +629,12 @@ const N = class N {
629
629
  }
630
630
  update() {
631
631
  var i;
632
- return d(i = this.destroy(), Q, Ae).call(i), this.emit("update"), this;
632
+ return d(i = this.destroy(), Q, Le).call(i), this.emit("update"), this;
633
633
  }
634
634
  /** static method 'open' */
635
635
  static open(i) {
636
636
  const { SETTINGS: t } = I, e = Object.assign({}, t, { on: {} }, i);
637
- je(e);
637
+ ze(e);
638
638
  }
639
639
  /** static method 'defineMethods' */
640
640
  static defineMethods(i) {
@@ -645,7 +645,7 @@ const N = class N {
645
645
  Object.assign(N.prototype, N.prototype.__methods__);
646
646
  }
647
647
  };
648
- Q = new WeakSet(), Ae = function() {
648
+ Q = new WeakSet(), Le = function() {
649
649
  const { el: i, options: t } = this.__storage__;
650
650
  if (!rt(i) || !w(i))
651
651
  return;
@@ -653,14 +653,14 @@ Q = new WeakSet(), Ae = function() {
653
653
  if (this.elements = t.state == "not active" ? S(i + `:not([${this.active}])`) : S(i), this.options = Object.assign({}, e, t), this.__events__ = Object.assign({}, s), this.options.on)
654
654
  for (const [o, a] of Object.entries(this.options.on))
655
655
  this.__events__[o] = [a];
656
- d(this, Tt, ci).call(this);
657
- }, Tt = new WeakSet(), ci = function() {
656
+ d(this, Et, di).call(this);
657
+ }, Et = new WeakSet(), di = function() {
658
658
  const { elements: i, options: t } = this;
659
659
  i.forEach((e) => {
660
- e.modal = {}, e.modal.instance = this, e.modal.eventHandler = d(this, Et, di), e.modal.defaultOptions = t, e.modal.methods = {}, e.modal.methods.destroy = this.destroy, e.modal.methods.update = this.update, e.addEventListener("click", e.modal.eventHandler), e.setAttribute(this.active, "");
660
+ e.modal = {}, e.modal.instance = this, e.modal.eventHandler = d(this, At, ui), e.modal.defaultOptions = t, e.modal.methods = {}, e.modal.methods.destroy = this.destroy, e.modal.methods.update = this.update, e.addEventListener("click", e.modal.eventHandler), e.setAttribute(this.active, "");
661
661
  }), this.emit("init");
662
- }, Et = new WeakSet(), di = function(i) {
663
- const { defaultOptions: t, eventHandler: e, instance: s } = this.modal, o = As(this.getAttribute("data-modal-on"));
662
+ }, At = new WeakSet(), ui = function(i) {
663
+ const { defaultOptions: t, eventHandler: e, instance: s } = this.modal, o = Ls(this.getAttribute("data-modal-on"));
664
664
  o && typeof o != "object" && E("modal4", "data-modal-on must be a json string.");
665
665
  const a = {
666
666
  target: this.getAttribute("data-modal-target") || t.target,
@@ -672,36 +672,36 @@ Q = new WeakSet(), Ae = function() {
672
672
  };
673
673
  this.removeEventListener("click", e), setTimeout(() => {
674
674
  this.addEventListener("click", e);
675
- }, 200), je(a, s);
675
+ }, 200), ze(a, s);
676
676
  };
677
677
  let J = N;
678
678
  Object.assign(J.prototype, O);
679
- customElements.define("modern-modal", ti);
679
+ customElements.define("modern-modal", ei);
680
680
  const _s = (n, i) => {
681
681
  const t = n === window ? n.innerHeight : n.getBoundingClientRect().height, e = n === window ? 0 : n.getBoundingClientRect().top;
682
682
  i.forEach((s) => {
683
- const { class: o, delay: a, start: r, end: l, repeat: c, instance: u } = s.aost, { top: p, bottom: g } = s.getBoundingClientRect(), m = t * (r / 100), f = t * (l / 100);
684
- if (p - e <= m && g - e >= f && s.offsetParent)
683
+ const { class: o, delay: a, start: r, end: l, repeat: c, instance: u } = s.aost, { top: p, bottom: g } = s.getBoundingClientRect(), m = t * (r / 100), v = t * (l / 100);
684
+ if (p - e <= m && g - e >= v && s.offsetParent)
685
685
  setTimeout(() => {
686
686
  s.classList.add(o);
687
687
  }, a);
688
688
  else {
689
- const y = s.classList.contains(o) && c === "down" && p - e >= m || c === "up" && g - e <= f || c === !0;
689
+ const y = s.classList.contains(o) && c === "down" && p - e >= m || c === "up" && g - e <= v || c === !0;
690
690
  setTimeout(() => {
691
691
  y && s.classList.remove(o);
692
692
  }, a);
693
693
  }
694
694
  });
695
- }, ks = (n, i) => n === "up" || n === "down" ? n : n !== null ? n === "true" ? !0 : n === "false" ? !1 : i.repeat : i.repeat;
696
- var V, Le, At, hi;
697
- class ui {
695
+ }, $s = (n, i) => n === "up" || n === "down" ? n : n !== null ? n === "true" ? !0 : n === "false" ? !1 : i.repeat : i.repeat;
696
+ var V, Se, Lt, pi;
697
+ class hi {
698
698
  constructor(i, t = {}) {
699
699
  h(this, V);
700
- h(this, At);
700
+ h(this, Lt);
701
701
  this.__storage__ = {
702
702
  el: i,
703
703
  options: t
704
- }, this.active = "data-aost-active", d(this, V, Le).call(this);
704
+ }, this.active = "data-aost-active", d(this, V, Se).call(this);
705
705
  }
706
706
  destroy(i) {
707
707
  const { elements: t, options: e } = this;
@@ -717,30 +717,30 @@ class ui {
717
717
  }
718
718
  update(i) {
719
719
  var t;
720
- d(t = this.destroy(i), V, Le).call(t);
720
+ d(t = this.destroy(i), V, Se).call(t);
721
721
  }
722
722
  }
723
- V = new WeakSet(), Le = function() {
723
+ V = new WeakSet(), Se = function() {
724
724
  const { el: i, options: t } = this.__storage__;
725
725
  if (!rt(i) || !w(i))
726
726
  return;
727
- const { SETTINGS: e, EVENTS: s } = Ye;
727
+ const { SETTINGS: e, EVENTS: s } = Ue;
728
728
  if (this.elements = t.state == "not active" ? S(i + `:not([${this.active}])`) : S(i), this.options = Object.assign({}, e, t), this.__events__ = Object.assign({}, s), this.options.on)
729
729
  for (const [o, a] of Object.entries(this.options.on))
730
730
  this.__events__[o] = [a];
731
- d(this, At, hi).call(this);
732
- }, At = new WeakSet(), hi = function() {
731
+ d(this, Lt, pi).call(this);
732
+ }, Lt = new WeakSet(), pi = function() {
733
733
  const { elements: i, options: t } = this, { scroller: e } = t, s = e === window || !w(e) ? window : L(e);
734
734
  this.eventHandler = () => {
735
735
  _s(s, i);
736
736
  }, i.forEach((a) => {
737
- a.aost = {}, a.aost.class = a.getAttribute("data-aost-class") || t.class, a.aost.delay = parseInt(a.getAttribute("data-aost-delay")) || t.delay, a.aost.start = parseInt(a.getAttribute("data-aost-start")) || t.start, a.aost.end = parseInt(a.getAttribute("data-aost-end")) || t.end, a.aost.repeat = ks(a.getAttribute("data-aost-repeat"), t), a.aost.methods = {}, a.aost.methods.destroy = this.destroy, a.aost.methods.update = this.update, a.aost.instance = this, a.setAttribute(this.active, "");
737
+ a.aost = {}, a.aost.class = a.getAttribute("data-aost-class") || t.class, a.aost.delay = parseInt(a.getAttribute("data-aost-delay")) || t.delay, a.aost.start = parseInt(a.getAttribute("data-aost-start")) || t.start, a.aost.end = parseInt(a.getAttribute("data-aost-end")) || t.end, a.aost.repeat = $s(a.getAttribute("data-aost-repeat"), t), a.aost.methods = {}, a.aost.methods.destroy = this.destroy, a.aost.methods.update = this.update, a.aost.instance = this, a.setAttribute(this.active, "");
738
738
  });
739
739
  const { eventHandler: o } = this;
740
740
  o(), s.aost = {}, s.aost.eventHandler = o, s.addEventListener("scroll", s.aost.eventHandler, !1);
741
741
  };
742
- Object.assign(ui.prototype, O);
743
- const $s = (n) => {
742
+ Object.assign(hi.prototype, O);
743
+ const xs = (n) => {
744
744
  const { TEMPLATE: i } = Y, { childDom: t } = n, e = document.createElement("div");
745
745
  e.innerHTML = i();
746
746
  const s = e.querySelector(".player-wrapper");
@@ -748,25 +748,25 @@ const $s = (n) => {
748
748
  s.append(o);
749
749
  }), e.children[0];
750
750
  };
751
- var Lt, pi, St, mi, Dt, gi, _t, fi, kt, vi, $t, bi, xt, yi, Ct, wi, Ht, Ti;
752
- class xs extends HTMLElement {
751
+ var St, mi, Dt, gi, kt, fi, _t, vi, $t, bi, xt, yi, Ct, wi, Ht, Ti, Mt, Ei;
752
+ class Cs extends HTMLElement {
753
753
  constructor() {
754
754
  super();
755
- h(this, Lt);
756
755
  h(this, St);
757
756
  h(this, Dt);
757
+ h(this, kt);
758
758
  // youtube iframe
759
759
  h(this, _t);
760
760
  // vimeo iframe
761
- h(this, kt);
762
- // youku iframe
763
761
  h(this, $t);
762
+ // youku iframe
764
763
  h(this, xt);
765
- // 2025.02.11 新增 ig
766
764
  h(this, Ct);
767
- // 2025.02.11 新增 tiktok
765
+ // 2025.02.11 新增 ig
768
766
  h(this, Ht);
769
- d(this, Lt, pi).call(this);
767
+ // 2025.02.11 新增 tiktok
768
+ h(this, Mt);
769
+ d(this, St, mi).call(this);
770
770
  }
771
771
  play() {
772
772
  const { videoType: t } = this;
@@ -803,92 +803,97 @@ class xs extends HTMLElement {
803
803
  }
804
804
  }
805
805
  }
806
- Lt = new WeakSet(), pi = function() {
806
+ St = new WeakSet(), mi = function() {
807
807
  if (!this.getAttribute("video-id")) {
808
808
  E("videoPlayer", "video-render needs a ['video-id'] attribute to creat player.");
809
809
  return;
810
810
  }
811
- this.videoId = this.getAttribute("video-id"), this.videoType = this.getAttribute("video-type"), this.autoplay = this.getAttribute("video-autoplay"), this.startTime = this.getAttribute("video-starttime"), d(this, St, mi).call(this);
812
- }, St = new WeakSet(), mi = function() {
813
- this.childDom = this.childNodes, this.template = $s(this), this.innerHTML = "", this.append(this.template), d(this, Dt, gi).call(this);
811
+ this.videoId = this.getAttribute("video-id"), this.videoType = this.getAttribute("video-type"), this.autoplay = this.getAttribute("video-autoplay"), this.startTime = this.getAttribute("video-starttime"), d(this, Dt, gi).call(this);
814
812
  }, Dt = new WeakSet(), gi = function() {
813
+ this.childDom = this.childNodes, this.template = xs(this), this.innerHTML = "", this.append(this.template), d(this, kt, fi).call(this);
814
+ }, kt = new WeakSet(), fi = function() {
815
815
  const { videoType: t } = this;
816
816
  let e = "";
817
+ function s(o) {
818
+ f(o).addClass("cookie-disagree"), f(".cookie-disagree").append(`
819
+ <div class="disagree-inner">
820
+ <div class="icon"> <svg xmlns="http://www.w3.org/2000/svg" width="7" height="25" viewBox="0 0 7 25"
821
+ fill="none">
822
+ <path
823
+ d="M0 0H6.96277L5.77128 16.1948H1.22872L0 0ZM0 22.0304C0 21.1556 0.322695 20.442 0.968085 19.8895C1.6383 19.337 2.48227 19.0608 3.5 19.0608C4.51773 19.0608 5.34929 19.337 5.99468 19.8895C6.66489 20.442 7 21.1556 7 22.0304C7 22.9052 6.66489 23.6188 5.99468 24.1713C5.34929 24.7238 4.51773 25 3.5 25C2.48227 25 1.6383 24.7238 0.968085 24.1713C0.322695 23.6188 0 22.9052 0 22.0304Z"
824
+ fill="white"></path>
825
+ </svg></div>
826
+ <div class="title ch">由於未授權 Cookie 使用,影片無法播放</div>
827
+ <div class="title en">The video can’t be played due to unauthorized use of cookies.</div>
828
+ <div class="text">
829
+ <div class="box"><span>您可前往 </span><span data-cookie-open>Cookie 偏好設定</span><span> 進行修改</span></div>
830
+ <div class="box"><span>Modify your </span><span data-cookie-open>cookie preferences.</span></div>
831
+ </div>
832
+ </div>`);
833
+ }
817
834
  switch (t) {
818
835
  case "youtubeAPI":
819
836
  break;
820
837
  case "youtube":
821
- if (document.body.wd_youtube == !1)
822
- return;
823
- e = d(this, _t, fi).call(this);
838
+ document.body.wd_youtube == !1 ? s("video-player") : e = d(this, _t, vi).call(this);
824
839
  break;
825
840
  case "youkuAPI":
826
841
  break;
827
842
  case "youku":
828
- if (document.body.wd_youku == !1)
829
- return;
830
- e = d(this, $t, bi).call(this);
843
+ document.body.wd_youku == !1 ? s("video-player") : e = d(this, xt, yi).call(this);
831
844
  break;
832
845
  case "vimeo":
833
- if (document.body.wd_vimeo == !1)
834
- return;
835
- e = d(this, kt, vi).call(this);
846
+ document.body.wd_vimeo == !1 ? s("video-player") : e = d(this, $t, bi).call(this);
836
847
  break;
837
848
  case "bilibili":
838
- if (document.body.wd_bilibili == !1)
839
- return;
840
- e = d(this, xt, yi).call(this);
849
+ document.body.wd_bilibili == !1 ? s("video-player") : e = d(this, Ct, wi).call(this);
841
850
  break;
842
851
  case "instagram":
843
- if (document.body.wd_instagram == !1)
844
- return;
845
- e = d(this, Ct, wi).call(this);
852
+ document.body.wd_instagram == !1 ? s(".instagram-media") : e = d(this, Ht, Ti).call(this);
846
853
  break;
847
854
  case "tiktok":
848
- if (document.body.wd_tiktok == !1)
849
- return;
850
- e = d(this, Ht, Ti).call(this);
855
+ document.body.wd_tiktok == !1 ? s("video-player") : e = d(this, Mt, Ei).call(this);
851
856
  break;
852
857
  }
853
858
  this.querySelector(".player-wrapper").insertAdjacentHTML(A.prepend, e);
854
- }, _t = new WeakSet(), fi = function() {
859
+ }, _t = new WeakSet(), vi = function() {
855
860
  const { videoId: t, autoplay: e, startTime: s } = this;
856
861
  return `<iframe src="https://www.youtube.com/embed/${t}?rel=0&${e === "on" ? "autoplay=1" : ""}&start=${s}&mute=1&loop=1&enablejsapi=1" frameborder="0" allowfullscreen="0" volumn="0" allow="${e === "on" ? "autoplay;" : ""} encrypted-media; gyroscope; picture-in-picture;"></iframe>`;
857
- }, kt = new WeakSet(), vi = function() {
862
+ }, $t = new WeakSet(), bi = function() {
858
863
  const { videoId: t, autoplay: e, hash: s } = this;
859
864
  return `<iframe src="https://player.vimeo.com/video/${t}?h=${s}&${e === "on" ? "autoplay=1" : ""}&loop=1&color=ffffff&title=0&byline=0&portrait=0" frameborder="0" allow="${e === "on" ? "autoplay;" : ""} fullscreen; picture-in-picture" allowfullscreen></iframe><script src="https://player.vimeo.com/api/player.js"><\/script>`;
860
- }, $t = new WeakSet(), bi = function() {
865
+ }, xt = new WeakSet(), yi = function() {
861
866
  const { videoId: t, autoplay: e } = this;
862
867
  return `<iframe src="https://player.youku.com/embed/${t}?rel=0&${e === "on" ? "autoplay=1" : ""}" frameborder=0 "allowfullscreen"></iframe>`;
863
- }, xt = new WeakSet(), yi = function() {
868
+ }, Ct = new WeakSet(), wi = function() {
864
869
  const { videoId: t, autoplay: e } = this;
865
870
  return `<iframe src="//player.bilibili.com/player.html?bvid=${t}&page=1&as_wide=1&high_quality=1&danmaku=0" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"></iframe>`;
866
- }, Ct = new WeakSet(), wi = function() {
871
+ }, Ht = new WeakSet(), Ti = function() {
867
872
  const { videoId: t, autoplay: e } = this;
868
873
  return `<iframe class="instagram-media instagram-media-rendered" id="instagram-embed-0" src="https://www.instagram.com/p/${t}/embed/" width="num-w" height=" num-h" scrolling="auto" frameborder="0" data-instgrm-payload-id="instagram-media-payload-0"></iframe>`;
869
- }, Ht = new WeakSet(), Ti = function() {
874
+ }, Mt = new WeakSet(), Ei = function() {
870
875
  const { videoId: t, autoplay: e } = this;
871
876
  return `<iframe name="__tt_embed__v79271677875424740" sandbox="allow-popups allow-popups-to-escape-sandbox allow-scripts allow-top-navigation allow-same-origin" src="https://www.tiktok.com/player/v1/${t}?&${e === "on" ? "autoplay=1" : ""}"></iframe>`;
872
877
  };
873
- const fn = (n) => new Promise((i) => {
878
+ const vn = (n) => new Promise((i) => {
874
879
  let t = setTimeout(() => (clearTimeout(t), i()), n);
875
880
  });
876
- function Ei(n) {
881
+ function Ai(n) {
877
882
  const i = [];
878
883
  n && n.forEach((t) => {
879
884
  t instanceof HTMLElement ? i.push(t) : typeof t == "string" && i.push(...document.querySelectorAll(`${t}`));
880
- }), v("html").addClass("scrollLock"), vs(i);
885
+ }), f("html").addClass("scrollLock"), bs(i);
881
886
  }
882
- function Ai(n) {
887
+ function Li(n) {
883
888
  const i = [];
884
889
  n && n.forEach((t) => {
885
890
  t instanceof HTMLElement ? i.push(t) : typeof t == "string" && i.push(...document.querySelectorAll(`${t}`));
886
- }), v("html").removeClass("scrollLock"), bs(i);
891
+ }), f("html").removeClass("scrollLock"), ys(i);
887
892
  }
888
- async function vn(n = 0) {
889
- if (v(".loading-wrapper").length)
893
+ async function bn(n = 0) {
894
+ if (f(".loading-wrapper").length)
890
895
  return;
891
- v("body").append(`
896
+ f("body").append(`
892
897
  <div class="loading-wrapper">
893
898
  <div class="icon-box">
894
899
  <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid"><path d="M10 50A40 40 0 0 0 90 50A40 42 0 0 1 10 50" fill="#ffffff" stroke="none">
@@ -898,31 +903,31 @@ async function vn(n = 0) {
898
903
  </svg>
899
904
  </div>
900
905
  </div>
901
- `), v(".loading-wrapper").delay(n).fadeIn(300).promise().done(function() {
902
- Ei();
906
+ `), f(".loading-wrapper").delay(n).fadeIn(300).promise().done(function() {
907
+ Ai();
903
908
  });
904
909
  }
905
- function bn() {
906
- v(".loading-wrapper").fadeOut(300).promise().done(function() {
907
- v(".loading-wrapper").remove(), Ai();
910
+ function yn() {
911
+ f(".loading-wrapper").fadeOut(300).promise().done(function() {
912
+ f(".loading-wrapper").remove(), Li();
908
913
  });
909
914
  }
910
- function yn(n, i) {
911
- new an(n, i);
915
+ function wn(n, i) {
916
+ new rn(n, i);
912
917
  }
913
- function Cs() {
914
- const n = document.querySelector("[data-aost]") && new ui("[data-aost]"), i = document.querySelector("[data-anchor-target]") && new Qe("[data-anchor-target]"), t = new Fe({ callback_loaded: () => {
915
- } }), e = new Vs();
918
+ function Hs() {
919
+ const n = document.querySelector("[data-aost]") && new hi("[data-aost]"), i = document.querySelector("[data-anchor-target]") && new Ve("[data-anchor-target]"), t = new Ye({ callback_loaded: () => {
920
+ } }), e = new Ks();
916
921
  n == null || n.update(), t.update(), e.reValidate(), i == null || i.update();
917
922
  }
918
- function wn(n, i = () => {
923
+ function Tn(n, i = () => {
919
924
  }) {
920
- v(`[data-tab-content=${n}]`).fadeIn(function() {
925
+ f(`[data-tab-content=${n}]`).fadeIn(function() {
921
926
  typeof i == "function" && i();
922
- }).siblings("[data-tab-content]").hide(), Cs();
927
+ }).siblings("[data-tab-content]").hide(), Hs();
923
928
  }
924
- function Tn() {
925
- Me(
929
+ function En() {
930
+ qe(
926
931
  {
927
932
  target: document.body,
928
933
  cancel: {
@@ -946,28 +951,28 @@ function Tn() {
946
951
  }
947
952
  );
948
953
  }
949
- function En() {
954
+ function An() {
950
955
  window.onpageshow = function(n) {
951
956
  n.persisted && window.location.reload();
952
957
  };
953
958
  }
954
- function An() {
959
+ function Ln() {
955
960
  const n = navigator.userAgent;
956
961
  return {
957
962
  BigSurUP: /Mac OS X 10.15/.test(n) || /Mac OS X 10_15_7/.test(n) || /Mac OS X 10_15_8/.test(n) || /Mac OS X 10_15_9/.test(n) || /Mac OS X 11_/.test(n) || /Mac OS X 12_/.test(n)
958
963
  };
959
964
  }
960
- function Ln(n, i) {
961
- v(n).on("click", function() {
962
- v(this).toggleClass(i);
965
+ function Sn(n, i) {
966
+ f(n).on("click", function() {
967
+ f(this).toggleClass(i);
963
968
  });
964
969
  }
965
- function Sn(n, i) {
966
- v(n).on("click", function() {
967
- v(n).not(this).removeClass(i), v(this).addClass(i);
970
+ function Dn(n, i) {
971
+ f(n).on("click", function() {
972
+ f(n).not(this).removeClass(i), f(this).addClass(i);
968
973
  });
969
974
  }
970
- function Hs(n, i = 250) {
975
+ function Ms(n, i = 250) {
971
976
  let t = null;
972
977
  return function(...e) {
973
978
  let s = this;
@@ -976,7 +981,7 @@ function Hs(n, i = 250) {
976
981
  }, i);
977
982
  };
978
983
  }
979
- function Dn(n, i = 250) {
984
+ function kn(n, i = 250) {
980
985
  let t, e;
981
986
  return function() {
982
987
  const s = this, o = arguments, a = +/* @__PURE__ */ new Date();
@@ -986,43 +991,43 @@ function Dn(n, i = 250) {
986
991
  };
987
992
  }
988
993
  function _n() {
989
- window._g.interval = [], v(".countdown").each((i, t) => {
990
- const e = Number(v(t).attr("data-seconds")) + 1;
994
+ window._g.interval = [], f(".countdown").each((i, t) => {
995
+ const e = Number(f(t).attr("data-seconds")) + 1;
991
996
  let s = Math.floor(e / 60) + ":" + e % 60;
992
997
  window._g.interval[i] = setInterval(function() {
993
998
  var o = s.split(":"), a = parseInt(o[0], 10), r = parseInt(o[1], 10);
994
- --r, a = r < 0 ? --a : a, a = a < 10 ? a = "0" + a : a, a == 0 && r == 0 && clearInterval(window._g.interval[i]), r = r < 0 ? 59 : r, r = r < 10 ? "0" + r : r, v(t).html(a + ":" + r), s = a + ":" + r;
999
+ --r, a = r < 0 ? --a : a, a = a < 10 ? a = "0" + a : a, a == 0 && r == 0 && clearInterval(window._g.interval[i]), r = r < 0 ? 59 : r, r = r < 10 ? "0" + r : r, f(t).html(a + ":" + r), s = a + ":" + r;
995
1000
  }, 1e3);
996
1001
  });
997
1002
  }
998
- function kn(n = 500) {
1003
+ function $n(n = 500) {
999
1004
  return new Promise((i, t) => {
1000
1005
  let e = setTimeout(() => {
1001
1006
  clearTimeout(e), i();
1002
1007
  }, n);
1003
1008
  });
1004
1009
  }
1005
- function $n() {
1010
+ function xn() {
1006
1011
  const n = function() {
1007
1012
  let i = window.innerHeight * 0.01;
1008
1013
  document.documentElement.style.setProperty("--vh", i + "px");
1009
1014
  };
1010
- n(), window.addEventListener("resize", Hs(n));
1015
+ n(), window.addEventListener("resize", Ms(n));
1011
1016
  }
1012
- function xn(n, i, t, e, s) {
1013
- const o = this, r = v(n).html().split("<br>");
1017
+ function Cn(n, i, t, e, s) {
1018
+ const o = this, r = f(n).html().split("<br>");
1014
1019
  let l = "", c = 0;
1015
1020
  r.forEach((u, p) => {
1016
- p !== 0 && (l += "<br>"), u.split("").forEach((m, f) => {
1017
- i ? (f === 0 && (l += '<span class="letter-wrap" style="display: inline-block">'), m === " " ? l += '</span> <span class="letter-wrap" style="display: inline-block">' : (l += `<span class="letter"${s || t ? ` style="${s ? `transition: ${o.formatFloat(Math.random(), 2) * s}s;` : ""}${t ? t === "random" ? `transition-delay: ${o.formatFloat(Math.random(), 2)}s;` : `transition-delay: ${t + c * e}s;` : ""}"` : ""}>${m}</span>`, c++), f === u.length - 1 && (l += "</span>")) : m === " " ? l += " " : (l += `<span class="letter"${s || t ? ` style="${s ? `transition: ${o.formatFloat(Math.random(), 2) * s}s;` : ""}${t ? t === "random" ? `transition-delay: ${o.formatFloat(Math.random(), 2)}s;` : `transition-delay: ${t + c * e}s;` : ""}"` : ""}>${m}</span>`, c++);
1021
+ p !== 0 && (l += "<br>"), u.split("").forEach((m, v) => {
1022
+ i ? (v === 0 && (l += '<span class="letter-wrap" style="display: inline-block">'), m === " " ? l += '</span> <span class="letter-wrap" style="display: inline-block">' : (l += `<span class="letter"${s || t ? ` style="${s ? `transition: ${o.formatFloat(Math.random(), 2) * s}s;` : ""}${t ? t === "random" ? `transition-delay: ${o.formatFloat(Math.random(), 2)}s;` : `transition-delay: ${t + c * e}s;` : ""}"` : ""}>${m}</span>`, c++), v === u.length - 1 && (l += "</span>")) : m === " " ? l += " " : (l += `<span class="letter"${s || t ? ` style="${s ? `transition: ${o.formatFloat(Math.random(), 2) * s}s;` : ""}${t ? t === "random" ? `transition-delay: ${o.formatFloat(Math.random(), 2)}s;` : `transition-delay: ${t + c * e}s;` : ""}"` : ""}>${m}</span>`, c++);
1018
1023
  });
1019
- }), v(n).html(l);
1024
+ }), f(n).html(l);
1020
1025
  }
1021
- function Cn(n, i) {
1026
+ function Hn(n, i) {
1022
1027
  const t = Math.pow(10, i);
1023
1028
  return Math.round(n * t) / t;
1024
1029
  }
1025
- function Hn(n) {
1030
+ function Mn(n) {
1026
1031
  let i = n.activeIndex, t = n.slides.length;
1027
1032
  if (n.params.loop)
1028
1033
  switch (n.activeIndex) {
@@ -1037,101 +1042,101 @@ function Hn(n) {
1037
1042
  }
1038
1043
  return i;
1039
1044
  }
1040
- function Mn(n, i) {
1045
+ function qn(n, i) {
1041
1046
  const t = n.$el, e = n.params.grid.rows, s = i || n.params.slidesPerView * e;
1042
- (n.loopedSlides ? n.slides.length - n.loopedSlides * 2 : n.slides.length) <= s ? (t.addClass("swiper-no-swiping"), v(n.params.navigation.nextEl).hide(), v(n.params.navigation.prevEl).hide(), v(n.params.pagination.el).hide(), n.params.autoplay.enabled = !1, n.autoplay.stop()) : (t.removeClass("swiper-no-swiping"), v(n.params.navigation.nextEl).show(), v(n.params.navigation.prevEl).show(), v(n.params.pagination.el).show(), n.params.autoplay.enabled && n.autoplay.start());
1047
+ (n.loopedSlides ? n.slides.length - n.loopedSlides * 2 : n.slides.length) <= s ? (t.addClass("swiper-no-swiping"), f(n.params.navigation.nextEl).hide(), f(n.params.navigation.prevEl).hide(), f(n.params.pagination.el).hide(), n.params.autoplay.enabled = !1, n.autoplay.stop()) : (t.removeClass("swiper-no-swiping"), f(n.params.navigation.nextEl).show(), f(n.params.navigation.prevEl).show(), f(n.params.pagination.el).show(), n.params.autoplay.enabled && n.autoplay.start());
1043
1048
  }
1044
- function qn(n) {
1049
+ function In(n) {
1045
1050
  n.el.querySelectorAll("img.detect-shade").forEach((i) => {
1046
1051
  i.addEventListener("load", function() {
1047
1052
  detectShade(i);
1048
1053
  });
1049
1054
  });
1050
1055
  }
1051
- function In(n) {
1052
- const i = n.el, t = v(i).find(".swiper-slide-active"), e = v(t).find("video").get(0), s = v(i).find(".swiper-slide video");
1053
- n.autoplay.stop(), v(e).off("ended"), e ? (s.each((o, a) => {
1056
+ function On(n) {
1057
+ const i = n.el, t = f(i).find(".swiper-slide-active"), e = f(t).find("video").get(0), s = f(i).find(".swiper-slide video");
1058
+ n.autoplay.stop(), f(e).off("ended"), e ? (s.each((o, a) => {
1054
1059
  a.currentTime = 0;
1055
- }), v(e).on("ended", function() {
1060
+ }), f(e).on("ended", function() {
1056
1061
  n.slideNext();
1057
1062
  }), e.play()) : n.params.autoplay.enabled && n.autoplay.start();
1058
1063
  }
1059
- function On() {
1060
- v(".number-grow").each(function(n, i) {
1061
- const t = v(i), o = t.attr("data-num").replace(/(\d)(?=(?:\d{3})+$)/g, "$1,").split(""), a = () => {
1064
+ function Nn() {
1065
+ f(".number-grow").each(function(n, i) {
1066
+ const t = f(i), o = t.attr("data-num").replace(/(\d)(?=(?:\d{3})+$)/g, "$1,").split(""), a = () => {
1062
1067
  let r = "";
1063
1068
  for (var l = 0; l <= 9; l++)
1064
1069
  r += String(l) + "<br>";
1065
1070
  return r;
1066
1071
  };
1067
- v(o).each(function(r, l) {
1072
+ f(o).each(function(r, l) {
1068
1073
  const c = () => l !== "," ? `<div class="num" data-final-num="${l}"><div><br>${a()}<br>${a()}</div></div>` : `<div class="comma">${l}</div>`;
1069
1074
  t.append(c);
1070
1075
  });
1071
1076
  });
1072
1077
  }
1073
- function Nn() {
1074
- v(".letter-grow").each(function(n, i) {
1075
- const t = v(i), s = t.attr("data-letter").split(""), o = () => {
1078
+ function Pn() {
1079
+ f(".letter-grow").each(function(n, i) {
1080
+ const t = f(i), s = t.attr("data-letter").split(""), o = () => {
1076
1081
  let a = "";
1077
1082
  for (let r = 65; r <= 90; r++)
1078
1083
  a += String.fromCharCode(r) + "<br>";
1079
1084
  return a;
1080
1085
  };
1081
- v(s).each(function(a, r) {
1086
+ f(s).each(function(a, r) {
1082
1087
  const l = `<div class="letter" data-final-letter="${r}"><div><br>${o()}<br>${o()}</div></div>`;
1083
1088
  t.append(l);
1084
1089
  });
1085
1090
  });
1086
1091
  }
1087
- function Pn(n) {
1092
+ function jn(n) {
1088
1093
  const i = getComputedStyle(n).transform;
1089
1094
  let t = i.match(/^matrix3d\((.+)\)$/);
1090
1095
  return t ? parseFloat(t[1].split(", ")[12]) : (t = i.match(/^matrix\((.+)\)$/), t ? parseFloat(t[1].split(", ")[4]) : 0);
1091
1096
  }
1092
- function jn(n) {
1097
+ function zn(n) {
1093
1098
  const i = getComputedStyle(n).transform;
1094
1099
  let t = i.match(/^matrix3d\((.+)\)$/);
1095
1100
  return t ? parseFloat(t[1].split(", ")[13]) : (t = i.match(/^matrix\((.+)\)$/), t ? parseFloat(t[1].split(", ")[5]) : 0);
1096
1101
  }
1097
- function zn(n) {
1102
+ function Wn(n) {
1098
1103
  const i = document.createElement("div");
1099
1104
  return i.innerHTML = n, i.childNodes[0];
1100
1105
  }
1101
- const ze = (n) => n.videoId !== "" || typeof n.videoId < "u", Ms = (n) => n.$selector.getAttribute("video4-active") === "on", ct = (n) => `<video-player video-id="${n.videoId}" video-type="${n.videoType}" video-startTime="${n.videoStartTime}" video-autoplay="${n.videoAutoplay}"></video-player>`;
1102
- var K, Se, Mt, Li, qt, Si, tt, De, It, Di;
1103
- class qs {
1106
+ const We = (n) => n.videoId !== "" || typeof n.videoId < "u", qs = (n) => n.$selector.getAttribute("video4-active") === "on", dt = (n) => `<video-player video-id="${n.videoId}" video-type="${n.videoType}" video-startTime="${n.videoStartTime}" video-autoplay="${n.videoAutoplay}"></video-player>`;
1107
+ var K, De, qt, Si, It, Di, tt, ke, Ot, ki;
1108
+ class Is {
1104
1109
  constructor(i, t = {}) {
1105
1110
  h(this, K);
1106
- h(this, Mt);
1107
1111
  h(this, qt);
1108
- h(this, tt);
1109
1112
  h(this, It);
1110
- if (!rt(i) && !we(i) && !lt(i)) {
1111
- Pe("video4", `找不到該物件 -> ${i}`);
1113
+ h(this, tt);
1114
+ h(this, Ot);
1115
+ if (!rt(i) && !Te(i) && !lt(i)) {
1116
+ je("video4", `找不到該物件 -> ${i}`);
1112
1117
  return;
1113
1118
  }
1114
1119
  this.__storage__ = {
1115
1120
  el: i,
1116
1121
  options: t
1117
- }, this.active = "data-video-active", d(this, K, Se).call(this);
1122
+ }, this.active = "data-video-active", d(this, K, De).call(this);
1118
1123
  }
1119
1124
  update() {
1120
- d(this, K, Se).call(this);
1125
+ d(this, K, De).call(this);
1121
1126
  }
1122
1127
  }
1123
- K = new WeakSet(), Se = function() {
1128
+ K = new WeakSet(), De = function() {
1124
1129
  const { el: i, options: t } = this.__storage__, { SETTINGS: e, EVENTS: s } = Y;
1125
1130
  if (this.elements = t.state == "not active" ? S(i + `:not([${this.active}])`) : S(i), this.options = Object.assign({}, e, t), this.__events__ = Object.assign({}, s), this.options.on)
1126
1131
  for (const [o, a] of Object.entries(this.options.on))
1127
1132
  this.__events__[o] = [a];
1128
- d(this, Mt, Li).call(this);
1129
- }, Mt = new WeakSet(), Li = function() {
1133
+ d(this, qt, Si).call(this);
1134
+ }, qt = new WeakSet(), Si = function() {
1130
1135
  const { elements: i, options: t } = this;
1131
1136
  i.forEach((e) => {
1132
- e.video = {}, e.video.instance = this, e.video.defaultOptions = t, e.video.params = d(this, It, Di).call(this, e), e.video.methods = {}, e.video.methods.update = this.update, e.setAttribute(this.active, ""), ze(e.video.params) && !Ms(e.video.params) && (e.setAttribute("video4-active", "on"), d(this, qt, Si).call(this, e)), ze(e.video.params) || Pe("video4", "無法取得影片 ID");
1137
+ e.video = {}, e.video.instance = this, e.video.defaultOptions = t, e.video.params = d(this, Ot, ki).call(this, e), e.video.methods = {}, e.video.methods.update = this.update, e.setAttribute(this.active, ""), We(e.video.params) && !qs(e.video.params) && (e.setAttribute("video4-active", "on"), d(this, It, Di).call(this, e)), We(e.video.params) || je("video4", "無法取得影片 ID");
1133
1138
  }), this.emit("init");
1134
- }, qt = new WeakSet(), Si = function(i) {
1139
+ }, It = new WeakSet(), Di = function(i) {
1135
1140
  const { LAYOUT: t } = Y, e = i.video.params, { $selector: s, videoLayoutNo: o, videoId: a, videoType: r, videoMode: l, videoButton: c, videoCover: u, videoHighQualityPic: p } = e;
1136
1141
  if (l === "onBox") {
1137
1142
  let g = null;
@@ -1139,36 +1144,36 @@ K = new WeakSet(), Se = function() {
1139
1144
  i.classList.add("video4-cover"), s.querySelector("img") || (s.insertAdjacentHTML(A.prepend, '<picture><source srcset="" type="image/webp"><source srcset="" type="image/jpeg"><img src="" alt></picture>'), E("video4", "若啟用 [videoCover] 且選擇 onBox 模式必須於 video-target 內放置 img 結構,若無結構則自動加入圖片結構"));
1140
1145
  const m = s.querySelector("img");
1141
1146
  m.insertAdjacentHTML(A.after, t[o]);
1142
- const f = (m == null ? void 0 : m.getAttribute("src")) || (m == null ? void 0 : m.getAttribute("data-src"));
1143
- !f && r == "youtube" ? p == "on" ? m.setAttribute("src", `https://img.youtube.com/vi/${a}/maxresdefault.jpg `) : m.setAttribute("src", `https://img.youtube.com/vi/${a}/0.jpg`) : !f && r == "vimeo" ? m.setAttribute("src", `https://vumbnail.com/${a}_large.jpg`) : !f && r == "tiktok" ? fetch(`https://www.tiktok.com/oembed?url=https://www.tiktok.com/@/video/${a}`, { method: "GET", redirect: "follow" }).then((b) => b.json()).then((b) => {
1147
+ const v = (m == null ? void 0 : m.getAttribute("src")) || (m == null ? void 0 : m.getAttribute("data-src"));
1148
+ !v && r == "youtube" ? p == "on" ? m.setAttribute("src", `https://img.youtube.com/vi/${a}/maxresdefault.jpg `) : m.setAttribute("src", `https://img.youtube.com/vi/${a}/0.jpg`) : !v && r == "vimeo" ? m.setAttribute("src", `https://vumbnail.com/${a}_large.jpg`) : !v && r == "tiktok" ? fetch(`https://www.tiktok.com/oembed?url=https://www.tiktok.com/@/video/${a}`, { method: "GET", redirect: "follow" }).then((b) => b.json()).then((b) => {
1144
1149
  const y = b.thumbnail_url;
1145
1150
  m.setAttribute("src", `${y}`);
1146
1151
  }).catch(function(b) {
1147
1152
  console.log("error");
1148
1153
  }) : E("video4", "僅 youtube & vimeo 提供,無圖片時放置預設封面畫面,其他影片平台請自行上傳封面照片");
1149
1154
  }
1150
- c == "off" ? g = s : (g = s.querySelector(c) ?? s, s.querySelector(c) || E("video4", `找不到 videoButton 設定的 element -> '${c}' , 點擊物件轉移至 '${this.__storage__.el}'`)), g.video || (g.video = {}, g.video.params = e), g.video.eventHandler = d(this, tt, De), g.addEventListener("click", g.video.eventHandler);
1155
+ c == "off" ? g = s : (g = s.querySelector(c) ?? s, s.querySelector(c) || E("video4", `找不到 videoButton 設定的 element -> '${c}' , 點擊物件轉移至 '${this.__storage__.el}'`)), g.video || (g.video = {}, g.video.params = e), g.video.eventHandler = d(this, tt, ke), g.addEventListener("click", g.video.eventHandler);
1151
1156
  } else if (l === "onPage") {
1152
1157
  let g = null;
1153
1158
  if (u == "on") {
1154
1159
  i.classList.add("video4-cover"), s.querySelector("img") || (s.insertAdjacentHTML(A.prepend, '<picture><source srcset="" type="image/webp"><source srcset="" type="image/jpeg"><img src="" alt></picture>'), E("video", "若啟用 [videoCover] 且選擇 onBox 模式必須於 video-target 內放置 img 結構"));
1155
1160
  const m = s.querySelector("img");
1156
1161
  m.insertAdjacentHTML(A.after, t[o]);
1157
- const f = (m == null ? void 0 : m.getAttribute("src")) || (m == null ? void 0 : m.getAttribute("data-src"));
1158
- !f && r == "youtube" ? p == "on" ? m.setAttribute("src", `http://img.youtube.com/vi/${a}/maxresdefault.jpg `) : m.setAttribute("src", `https://img.youtube.com/vi/${a}/0.jpg`) : !f && r == "vimeo" ? m.setAttribute("src", `https://vumbnail.com/${a}_large.jpg`) : !f && r == "tiktok" ? fetch(`https://www.tiktok.com/oembed?url=https://www.tiktok.com/@/video/${a}`, { method: "GET", redirect: "follow" }).then((b) => b.json()).then((b) => {
1162
+ const v = (m == null ? void 0 : m.getAttribute("src")) || (m == null ? void 0 : m.getAttribute("data-src"));
1163
+ !v && r == "youtube" ? p == "on" ? m.setAttribute("src", `http://img.youtube.com/vi/${a}/maxresdefault.jpg `) : m.setAttribute("src", `https://img.youtube.com/vi/${a}/0.jpg`) : !v && r == "vimeo" ? m.setAttribute("src", `https://vumbnail.com/${a}_large.jpg`) : !v && r == "tiktok" ? fetch(`https://www.tiktok.com/oembed?url=https://www.tiktok.com/@/video/${a}`, { method: "GET", redirect: "follow" }).then((b) => b.json()).then((b) => {
1159
1164
  const y = b.thumbnail_url;
1160
1165
  m.setAttribute("src", `${y}`);
1161
1166
  }).catch(function(b) {
1162
1167
  console.log("error");
1163
- }) : f || E("video4", "僅 youtube & vimeo 提供,無圖片時放置預設封面畫面,其他影片平台請自行上傳封面照片"), c == "off" ? g = s : (g = s.querySelector(c) ?? s, s.querySelector(c) || E("video4", `找不到 videoButton 設定的 element -> '${c}', 點擊物件轉移至 '${this.__storage__.el}'`));
1168
+ }) : v || E("video4", "僅 youtube & vimeo 提供,無圖片時放置預設封面畫面,其他影片平台請自行上傳封面照片"), c == "off" ? g = s : (g = s.querySelector(c) ?? s, s.querySelector(c) || E("video4", `找不到 videoButton 設定的 element -> '${c}', 點擊物件轉移至 '${this.__storage__.el}'`));
1164
1169
  } else {
1165
- s.innerHTML = ct(e);
1170
+ s.innerHTML = dt(e);
1166
1171
  return;
1167
1172
  }
1168
- g.video || (g.video = {}, g.video.params = e), g.video.eventHandler = d(this, tt, De), g.addEventListener("click", g.video.eventHandler);
1173
+ g.video || (g.video = {}, g.video.params = e), g.video.eventHandler = d(this, tt, ke), g.addEventListener("click", g.video.eventHandler);
1169
1174
  }
1170
- }, tt = new WeakSet(), De = function(i) {
1171
- const { video: t, emit: e } = this, { $selector: s, videoMode: o, videoTarget: a, videoKeep: r, videoTargetRoute: l, videoType: c, videoIgHtml: u } = t.params, p = new Fe({ callback_loaded: (g) => {
1175
+ }, tt = new WeakSet(), ke = function(i) {
1176
+ const { video: t, emit: e } = this, { $selector: s, videoMode: o, videoTarget: a, videoKeep: r, videoTargetRoute: l, videoType: c, videoIgHtml: u } = t.params, p = new Ye({ callback_loaded: (g) => {
1172
1177
  } });
1173
1178
  if (o == "onBox") {
1174
1179
  const g = {
@@ -1176,21 +1181,21 @@ K = new WeakSet(), Se = function() {
1176
1181
  route: l,
1177
1182
  on: {
1178
1183
  complete(m) {
1179
- var f;
1180
- c == "instagram" ? (m.setAttribute("video-typeStyle", `${c}`), (f = window.instgrm) != null && f.Embeds ? window.instgrm.Embeds.process() : console.log("window.instgrm is undefined")) : (m.querySelector(".modal-content").insertAdjacentHTML("beforeend", ct(t.params)), m.setAttribute("video-typeStyle", `${c}`));
1184
+ var v;
1185
+ c == "instagram" ? (m.setAttribute("video-typeStyle", `${c}`), (v = window.instgrm) != null && v.Embeds ? window.instgrm.Embeds.process() : console.log("window.instgrm is undefined")) : (m.querySelector(".modal-content").insertAdjacentHTML("beforeend", dt(t.params)), m.setAttribute("video-typeStyle", `${c}`));
1181
1186
  },
1182
1187
  open(m) {
1183
- const f = m.querySelectorAll("[data-overlayscrollbars-viewport]");
1184
- if (p.update(), Ei([...f]), c == "instagram") {
1188
+ const v = m.querySelectorAll("[data-overlayscrollbars-viewport]");
1189
+ if (p.update(), Ai([...v]), c == "instagram") {
1185
1190
  const b = document.querySelector("[video-template] .modal-content");
1186
- new ResizeObserver((_) => {
1187
- _[0].contentRect.height > 50 && b.classList.add("active");
1191
+ new ResizeObserver((k) => {
1192
+ k[0].contentRect.height > 50 && b.classList.add("active");
1188
1193
  }).observe(b);
1189
1194
  }
1190
1195
  },
1191
1196
  close(m) {
1192
- const f = m.querySelectorAll("[data-overlayscrollbars-viewport]");
1193
- Ai([...f]);
1197
+ const v = m.querySelectorAll("[data-overlayscrollbars-viewport]");
1198
+ Li([...v]);
1194
1199
  },
1195
1200
  destroy(m) {
1196
1201
  }
@@ -1199,13 +1204,13 @@ K = new WeakSet(), Se = function() {
1199
1204
  J.open(g);
1200
1205
  } else if (o == "onPage")
1201
1206
  if (t.params.videoAutoplay = "on", r == "off") {
1202
- s.innerHTML = ct(t.params);
1207
+ s.innerHTML = dt(t.params);
1203
1208
  return;
1204
1209
  } else {
1205
- (s.querySelector(r) ?? s).insertAdjacentHTML("beforeend", ct(t.params));
1210
+ (s.querySelector(r) ?? s).insertAdjacentHTML("beforeend", dt(t.params));
1206
1211
  return;
1207
1212
  }
1208
- }, It = new WeakSet(), Di = function(i) {
1213
+ }, Ot = new WeakSet(), ki = function(i) {
1209
1214
  const { SETTINGS: t } = Y;
1210
1215
  return {
1211
1216
  $selector: i,
@@ -1224,9 +1229,9 @@ K = new WeakSet(), Se = function() {
1224
1229
  videoIgHtml: i.getAttribute("video-ig") || t.videoIgHtml
1225
1230
  };
1226
1231
  };
1227
- Object.assign(qs.prototype, O);
1228
- customElements.define("video-player", xs);
1229
- const Is = {
1232
+ Object.assign(Is.prototype, O);
1233
+ customElements.define("video-player", Cs);
1234
+ const Os = {
1230
1235
  "zh-tw": {
1231
1236
  臺北市: [
1232
1237
  ["中正區", "100"],
@@ -2057,8 +2062,8 @@ const Is = {
2057
2062
  }
2058
2063
  };
2059
2064
  let U;
2060
- const Os = (n) => {
2061
- const { TEMPLATE: i } = qe, { childDom: t } = n.s, e = document.createElement("div"), s = n.classList.contains("filter"), o = n.getAttribute("filter-placeholder"), a = n.getAttribute("d4-icon"), r = n.getAttribute("custom-template");
2065
+ const Ns = (n) => {
2066
+ const { TEMPLATE: i } = Ie, { childDom: t } = n.s, e = document.createElement("div"), s = n.classList.contains("filter"), o = n.getAttribute("filter-placeholder"), a = n.getAttribute("d4-icon"), r = n.getAttribute("custom-template");
2062
2067
  e.innerHTML = i(
2063
2068
  s,
2064
2069
  o,
@@ -2071,7 +2076,7 @@ const Os = (n) => {
2071
2076
  (!p.hasAttribute("data-option") || p.getAttribute("data-option").trim() === "") && p.setAttribute("data-option", p.textContent.trim());
2072
2077
  }) : (!c.hasAttribute("data-option") || c.getAttribute("data-option").trim() === "") && c.setAttribute("data-option", c.textContent.trim())), l.append(c);
2073
2078
  }), e.children[0];
2074
- }, Ns = (n) => {
2079
+ }, Ps = (n) => {
2075
2080
  var t;
2076
2081
  const i = (t = n.getAttribute("control-elements")) == null ? void 0 : t.split(",");
2077
2082
  i && i.forEach((e) => {
@@ -2130,13 +2135,13 @@ const Os = (n) => {
2130
2135
  break;
2131
2136
  }
2132
2137
  }
2133
- }, Ps = (n) => {
2138
+ }, js = (n) => {
2134
2139
  const i = n.s.cityLang;
2135
- v("#newCityData").length > 0 ? v("#newCityData").val() !== "" && (U = JSON.parse(v("#newCityData").val())[0], console.log([0])) : U = Is, n.classList.contains("city") && (n.s.dropdownEl.querySelector(".dropdown-list").innerHTML = "", Object.keys(U[i]).forEach((t) => {
2140
+ f("#newCityData").length > 0 ? f("#newCityData").val() !== "" && (U = JSON.parse(f("#newCityData").val())[0], console.log([0])) : U = Os, n.classList.contains("city") && (n.s.dropdownEl.querySelector(".dropdown-list").innerHTML = "", Object.keys(U[i]).forEach((t) => {
2136
2141
  const e = document.createElement("li");
2137
2142
  e.textContent = t, e.setAttribute("data-option", t), n.s.dropdownEl.querySelector(".dropdown-list").append(e);
2138
2143
  }), n.s.allLi = n.querySelectorAll(".dropdown-list li"));
2139
- }, js = (n, i) => {
2144
+ }, zs = (n, i) => {
2140
2145
  const t = n.s.cityLang;
2141
2146
  U[t][i].forEach((e, s) => {
2142
2147
  const o = document.createElement("li");
@@ -2146,26 +2151,26 @@ const Os = (n) => {
2146
2151
  S('dropdown-el[d4-status="open"]').forEach((i) => {
2147
2152
  i.close();
2148
2153
  });
2149
- }, zs = () => {
2150
- const { SETTINGS: n } = qe;
2154
+ }, Ws = () => {
2155
+ const { SETTINGS: n } = Ie;
2151
2156
  ((t, e) => {
2152
2157
  Object.keys(e).forEach((s) => {
2153
2158
  t.style.setProperty(`--${s}`, e[s]);
2154
2159
  });
2155
2160
  })(document.documentElement, n.scrollbar);
2156
2161
  };
2157
- zs();
2162
+ Ws();
2158
2163
  document.addEventListener("click", function() {
2159
2164
  _i();
2160
2165
  });
2161
- var Ot, $i, Nt, xi, Pt, Ci, jt, Hi;
2162
- class ki extends HTMLElement {
2166
+ var Nt, xi, Pt, Ci, jt, Hi, zt, Mi;
2167
+ class $i extends HTMLElement {
2163
2168
  constructor() {
2164
2169
  super();
2165
- h(this, Ot);
2166
2170
  h(this, Nt);
2167
2171
  h(this, Pt);
2168
2172
  h(this, jt);
2173
+ h(this, zt);
2169
2174
  this.initialize = !1;
2170
2175
  }
2171
2176
  static get observedAttributes() {
@@ -2211,7 +2216,7 @@ class ki extends HTMLElement {
2211
2216
  }
2212
2217
  connectedCallback() {
2213
2218
  const t = this;
2214
- t.initialize || t.classList.contains("d4-initialize") || (t.initialize = !0, d(this, Ot, $i).call(this));
2219
+ t.initialize || t.classList.contains("d4-initialize") || (t.initialize = !0, d(this, Nt, xi).call(this));
2215
2220
  }
2216
2221
  open() {
2217
2222
  const t = this, e = t.querySelector(".dropdown-scroller").clientHeight, s = t.classList.contains("filter"), o = () => s ? t.querySelector(".dropdown-scroller .filter-bar") ? e : t.querySelector(".filter-bar").clientHeight + e : e;
@@ -2237,14 +2242,14 @@ class ki extends HTMLElement {
2237
2242
  this.__events__.selectOption();
2238
2243
  }
2239
2244
  }
2240
- Ot = new WeakSet(), $i = function() {
2241
- this.s = {}, this.__events__ = {}, this.hasAttribute("d4-status") || this.setAttribute("d4-status", "close"), this.hasAttribute("d4-value") || this.setAttribute("d4-value", ""), d(this, Nt, xi).call(this);
2242
- }, Nt = new WeakSet(), xi = function() {
2243
- this.s.childDom = this.childNodes, this.s.template = Os(this), this.innerHTML = "", this.append(this.s.template), d(this, Pt, Ci).call(this);
2245
+ Nt = new WeakSet(), xi = function() {
2246
+ this.s = {}, this.__events__ = {}, this.hasAttribute("d4-status") || this.setAttribute("d4-status", "close"), this.hasAttribute("d4-value") || this.setAttribute("d4-value", ""), d(this, Pt, Ci).call(this);
2244
2247
  }, Pt = new WeakSet(), Ci = function() {
2248
+ this.s.childDom = this.childNodes, this.s.template = Ns(this), this.innerHTML = "", this.append(this.s.template), d(this, jt, Hi).call(this);
2249
+ }, jt = new WeakSet(), Hi = function() {
2245
2250
  var s;
2246
2251
  const t = this;
2247
- t.s.allLi = t.querySelectorAll(".dropdown-list li"), t.s.selectDisplayEl = t.querySelector(".select-display"), t.s.dropdownEl = t.querySelector(".dropdown"), t.s.selectType = t.hasAttribute("multiple") ? "multiple" : "single", t.s.cityLang = t.hasAttribute("city-lang") ? t.getAttribute("city-lang") : "zh-tw", Ps(t), t.s.subDropdownTotalH = 0;
2252
+ t.s.allLi = t.querySelectorAll(".dropdown-list li"), t.s.selectDisplayEl = t.querySelector(".select-display"), t.s.dropdownEl = t.querySelector(".dropdown"), t.s.selectType = t.hasAttribute("multiple") ? "multiple" : "single", t.s.cityLang = t.hasAttribute("city-lang") ? t.getAttribute("city-lang") : "zh-tw", js(t), t.s.subDropdownTotalH = 0;
2248
2253
  const e = t.getAttribute("d4-value");
2249
2254
  switch (t.s.selectType) {
2250
2255
  case "single":
@@ -2253,7 +2258,7 @@ Ot = new WeakSet(), $i = function() {
2253
2258
  const r = document.querySelector(`dropdown-el[dist-select="${t.id}"]`), l = r ? r.getAttribute("d4-value") !== "" : !1;
2254
2259
  if (r && l) {
2255
2260
  const c = r.getAttribute("d4-value");
2256
- if (js(t, c), t.s.allLi = t.querySelectorAll(".dropdown-list li"), t.classList.remove("disabled"), t.getAttribute("d4-value") !== "") {
2261
+ if (zs(t, c), t.s.allLi = t.querySelectorAll(".dropdown-list li"), t.classList.remove("disabled"), t.getAttribute("d4-value") !== "") {
2257
2262
  const u = e.split(",")[1];
2258
2263
  o = t.querySelector(`.dropdown-list li[data-option="${u}"]`), t.setAttribute("d4-value", u);
2259
2264
  }
@@ -2286,8 +2291,8 @@ Ot = new WeakSet(), $i = function() {
2286
2291
  };
2287
2292
  break;
2288
2293
  }
2289
- C(t, t.s.value.index), d(s = t, jt, Hi).call(s), t.classList.add("d4-initialize");
2290
- }, jt = new WeakSet(), Hi = function() {
2294
+ C(t, t.s.value.index), d(s = t, zt, Mi).call(s), t.classList.add("d4-initialize");
2295
+ }, zt = new WeakSet(), Mi = function() {
2291
2296
  const t = this;
2292
2297
  t.__events__.dropdownToggle = () => {
2293
2298
  t.addEventListener("click", function(e) {
@@ -2333,7 +2338,7 @@ Ot = new WeakSet(), $i = function() {
2333
2338
  t.s.dropdownEl.addEventListener("transitionend", e);
2334
2339
  }, t.__events__.bindScrollbar = (e = this) => {
2335
2340
  const s = e.querySelector(".dropdown-scroller");
2336
- e.__scroller__ = Me(s, {
2341
+ e.__scroller__ = qe(s, {
2337
2342
  overflowBehavior: {
2338
2343
  x: "hidden"
2339
2344
  }
@@ -2347,24 +2352,24 @@ Ot = new WeakSet(), $i = function() {
2347
2352
  const u = this, p = [...e.s.allLi].indexOf(u), g = parseInt(e.getAttribute("d4-default-height"));
2348
2353
  if (u.classList.contains("has-sublayer")) {
2349
2354
  c.stopPropagation();
2350
- const f = u.querySelector(".sub-dropdown"), b = f.querySelector(".sub-dropdown-list"), y = parseInt(getComputedStyle(b).marginTop) + parseInt(getComputedStyle(b).marginBottom);
2351
- f.style.cssText = `--height: ${b.offsetHeight + y}px`;
2352
- const _ = parseInt(f.style.cssText.replace("--height:", "").trim()), G = parseInt(getComputedStyle(a).maxHeight), D = () => {
2355
+ const v = u.querySelector(".sub-dropdown"), b = v.querySelector(".sub-dropdown-list"), y = parseInt(getComputedStyle(b).marginTop) + parseInt(getComputedStyle(b).marginBottom);
2356
+ v.style.cssText = `--height: ${b.offsetHeight + y}px`;
2357
+ const k = parseInt(v.style.cssText.replace("--height:", "").trim()), G = parseInt(getComputedStyle(a).maxHeight), D = () => {
2353
2358
  s = g + e.s.subDropdownTotalH, o = s > G ? G : s, e.style.cssText = `--maxHeight: ${o}px;`, e.s.dropdownEl.style.height = `${o}px`;
2354
2359
  };
2355
- u.classList.contains("open") ? (u.classList.remove("open"), e.s.subDropdownTotalH -= _, D()) : (u.classList.add("open"), e.s.subDropdownTotalH += _, D());
2360
+ u.classList.contains("open") ? (u.classList.remove("open"), e.s.subDropdownTotalH -= k, D()) : (u.classList.add("open"), e.s.subDropdownTotalH += k, D());
2356
2361
  const R = () => {
2357
- e.__scroller__.update(!0), f.removeEventListener("transitionend", R);
2362
+ e.__scroller__.update(!0), v.removeEventListener("transitionend", R);
2358
2363
  };
2359
- f.addEventListener("transitionend", R);
2364
+ v.addEventListener("transitionend", R);
2360
2365
  } else
2361
- switch (Ns(e), e.s.selectType) {
2366
+ switch (Ps(e), e.s.selectType) {
2362
2367
  case "single":
2363
2368
  if (e.setAttribute("d4-value", u.getAttribute("data-option")), r) {
2364
- const f = e.s.cityLang, b = l.textContent.trim(), y = document.getElementById(e.getAttribute("dist-select"));
2365
- y && (y.querySelector(".dropdown-list").textContent = "", C(y, -1), U[f][b].forEach((_, G) => {
2369
+ const v = e.s.cityLang, b = l.textContent.trim(), y = document.getElementById(e.getAttribute("dist-select"));
2370
+ y && (y.querySelector(".dropdown-list").textContent = "", C(y, -1), U[v][b].forEach((k, G) => {
2366
2371
  const D = document.createElement("li");
2367
- D.textContent = _[0], D.setAttribute("data-option", _[0]), y.querySelector(".dropdown-list").append(D);
2372
+ D.textContent = k[0], D.setAttribute("data-option", k[0]), y.querySelector(".dropdown-list").append(D);
2368
2373
  }), e.__events__.selectOption(y));
2369
2374
  }
2370
2375
  (m = u.parentNode.closest("li")) != null && m.classList.contains("has-sublayer") && (c.stopPropagation(), e.close());
@@ -2403,9 +2408,9 @@ Ot = new WeakSet(), $i = function() {
2403
2408
  });
2404
2409
  }, t.__events__.dropdownToggle(), t.__events__.bindScrollbar(), t.__events__.selectOption(), t.__events__.filterHandler(), t.__events__.removeTag(), t.__events__.transitionend();
2405
2410
  };
2406
- Object.assign(ki.prototype, O);
2407
- customElements.define("dropdown-el", ki);
2408
- function ut(n) {
2411
+ Object.assign($i.prototype, O);
2412
+ customElements.define("dropdown-el", $i);
2413
+ function ht(n) {
2409
2414
  const i = {};
2410
2415
  return [...n.attributes].forEach((t) => {
2411
2416
  if (t.name.includes("duration-")) {
@@ -2414,10 +2419,10 @@ function ut(n) {
2414
2419
  }
2415
2420
  }), Object.keys(i).length === 0 ? null : i;
2416
2421
  }
2417
- function We(n) {
2418
- if (ut(n)) {
2422
+ function Be(n) {
2423
+ if (ht(n)) {
2419
2424
  let i;
2420
- const t = Object.keys(ut(n)).map((e) => ({
2425
+ const t = Object.keys(ht(n)).map((e) => ({
2421
2426
  value: e,
2422
2427
  point: e
2423
2428
  }));
@@ -2426,11 +2431,11 @@ function We(n) {
2426
2431
  const { point: s, value: o } = t[e];
2427
2432
  window.matchMedia(`(max-width: ${o}px)`).matches && (i = s);
2428
2433
  }
2429
- return i ? Number(ut(n)[i]) : n.s.options.duration;
2434
+ return i ? Number(ht(n)[i]) : n.s.options.duration;
2430
2435
  } else
2431
2436
  return n.s.options.duration;
2432
2437
  }
2433
- function Ws(n) {
2438
+ function Bs(n) {
2434
2439
  const { behavior: i, continual: t, gap: e } = n.s.options, s = n.childNodes, o = document.createElement("div"), a = document.createElement("div");
2435
2440
  o.className = "animate-container", a.className = "animate-item", [...s].forEach((l) => {
2436
2441
  a.append(l);
@@ -2497,20 +2502,20 @@ function $(n) {
2497
2502
  }
2498
2503
  return s;
2499
2504
  }
2500
- function Bs(n) {
2505
+ function Gs(n) {
2501
2506
  let i;
2502
2507
  return function(t) {
2503
2508
  i && clearTimeout(i), i = setTimeout(n, 200, t);
2504
2509
  };
2505
2510
  }
2506
- var zt, Mi, Wt, qi, Bt, Ii, Gt, Oi;
2507
- class Gs extends HTMLElement {
2511
+ var Wt, qi, Bt, Ii, Gt, Oi, Rt, Ni;
2512
+ class Rs extends HTMLElement {
2508
2513
  constructor() {
2509
2514
  super();
2510
- h(this, zt);
2511
2515
  h(this, Wt);
2512
2516
  h(this, Bt);
2513
2517
  h(this, Gt);
2518
+ h(this, Rt);
2514
2519
  this.initialize = !1;
2515
2520
  }
2516
2521
  static get observedAttributes() {
@@ -2519,7 +2524,7 @@ class Gs extends HTMLElement {
2519
2524
  attributeChangedCallback(t, e, s) {
2520
2525
  }
2521
2526
  connectedCallback() {
2522
- this.initialize || (this.initialize = !0, d(this, zt, Mi).call(this));
2527
+ this.initialize || (this.initialize = !0, d(this, Wt, qi).call(this));
2523
2528
  }
2524
2529
  play() {
2525
2530
  this.s.animation.play(), this.s.animateEl.classList.add("start"), this.s.options.continual && (this.s.cloneAnimation.play(), this.s.cloneAnimateEl.classList.add("start"));
@@ -2528,7 +2533,7 @@ class Gs extends HTMLElement {
2528
2533
  this.s.animation.pause(), this.s.options.continual && this.s.cloneAnimation.pause();
2529
2534
  }
2530
2535
  }
2531
- zt = new WeakSet(), Mi = function() {
2536
+ Wt = new WeakSet(), qi = function() {
2532
2537
  const t = {
2533
2538
  direction: this.getAttribute("direction") || x.SETTINGS.direction,
2534
2539
  // up / down / left / right
@@ -2536,7 +2541,7 @@ zt = new WeakSet(), Mi = function() {
2536
2541
  // normal / alternate / endStop
2537
2542
  duration: Number(this.getAttribute("duration")) || x.SETTINGS.duration,
2538
2543
  // ms
2539
- durationBreakpoints: ut(this) || x.SETTINGS.durationBreakpoints,
2544
+ durationBreakpoints: ht(this) || x.SETTINGS.durationBreakpoints,
2540
2545
  autoplay: this.getAttribute("autoplay") || x.SETTINGS.autoplay,
2541
2546
  // normal / alternate / endStop
2542
2547
  pauseOnMouseenter: this.getAttribute("pauseOnMouseEnter") ? this.getAttribute("pauseOnMouseEnter") === "true" : x.SETTINGS.pauseOnMouseenter,
@@ -2545,8 +2550,8 @@ zt = new WeakSet(), Mi = function() {
2545
2550
  // true / false
2546
2551
  gap: Number(this.getAttribute("gap")) || x.SETTINGS.gap
2547
2552
  };
2548
- this.s = {}, this.s.options = t, this.s.nowDuration = We(this), Ws(this), d(this, Wt, qi).call(this);
2549
- }, Wt = new WeakSet(), qi = function() {
2553
+ this.s = {}, this.s.options = t, this.s.nowDuration = Be(this), Bs(this), d(this, Bt, Ii).call(this);
2554
+ }, Bt = new WeakSet(), Ii = function() {
2550
2555
  const { direction: t, continual: e, gap: s } = this.s.options;
2551
2556
  switch (t) {
2552
2557
  case "left":
@@ -2558,8 +2563,8 @@ zt = new WeakSet(), Mi = function() {
2558
2563
  e ? this.style.cssText = `height: ${this.s.animateEl.clientHeight}px;--continual-gap: ${s}px;` : this.style.cssText = `min-height: ${this.s.animateEl.clientHeight}px;--continual-gap: ${s}px;`;
2559
2564
  break;
2560
2565
  }
2561
- d(this, Bt, Ii).call(this), d(this, Gt, Oi).call(this), e && this.classList.add("continual"), this.classList.add("m4-initialize");
2562
- }, Bt = new WeakSet(), Ii = function() {
2566
+ d(this, Gt, Oi).call(this), d(this, Rt, Ni).call(this), e && this.classList.add("continual"), this.classList.add("m4-initialize");
2567
+ }, Gt = new WeakSet(), Oi = function() {
2563
2568
  const t = this, { direction: e, behavior: s, duration: o, autoplay: a, pauseOnMouseenter: r, continual: l } = t.s.options;
2564
2569
  let c;
2565
2570
  function u() {
@@ -2576,22 +2581,22 @@ zt = new WeakSet(), Mi = function() {
2576
2581
  break;
2577
2582
  case "alternate":
2578
2583
  let m = function() {
2579
- let f = [];
2584
+ let v = [];
2580
2585
  switch (e) {
2581
2586
  case "top":
2582
- p = Math.abs(t.s.animateEl.scrollHeight - t.clientHeight), g = parseInt(t.s.nowDuration / (p * 2)) * t.s.animateEl.scrollHeight, f = [{ transform: `translate3d(0,${t.clientHeight}px,0)` }, { transform: `translate3d(0,calc(${t.clientHeight}px - 100%),0)` }];
2587
+ p = Math.abs(t.s.animateEl.scrollHeight - t.clientHeight), g = parseInt(t.s.nowDuration / (p * 2)) * t.s.animateEl.scrollHeight, v = [{ transform: `translate3d(0,${t.clientHeight}px,0)` }, { transform: `translate3d(0,calc(${t.clientHeight}px - 100%),0)` }];
2583
2588
  break;
2584
2589
  case "right":
2585
- p = Math.abs(t.s.animateEl.scrollWidth - t.clientWidth), g = parseInt(t.s.nowDuration / (p * 2)) * t.s.animateEl.scrollWidth, f = [{ transform: "translate3d(-100%,0,0)" }, { transform: "translate3d(0,0,0)" }];
2590
+ p = Math.abs(t.s.animateEl.scrollWidth - t.clientWidth), g = parseInt(t.s.nowDuration / (p * 2)) * t.s.animateEl.scrollWidth, v = [{ transform: "translate3d(-100%,0,0)" }, { transform: "translate3d(0,0,0)" }];
2586
2591
  break;
2587
2592
  case "bottom":
2588
- p = Math.abs(t.s.animateEl.scrollHeight - t.clientHeight), g = parseInt(o / (p * 2)) * t.s.animateEl.scrollHeight, f = [{ transform: "translate3d(0,-100%,0)" }, { transform: "translate3d(0,0,0)" }];
2593
+ p = Math.abs(t.s.animateEl.scrollHeight - t.clientHeight), g = parseInt(o / (p * 2)) * t.s.animateEl.scrollHeight, v = [{ transform: "translate3d(0,-100%,0)" }, { transform: "translate3d(0,0,0)" }];
2589
2594
  break;
2590
2595
  case "left":
2591
- p = Math.abs(t.s.animateEl.scrollWidth - t.clientWidth), g = parseInt(o / (p * 2)) * t.s.animateEl.scrollWidth, f = [{ transform: `translate3d(${t.clientWidth}px,0,0)` }, { transform: `translate3d(calc(-100% + ${t.clientWidth}px),0,0)` }];
2596
+ p = Math.abs(t.s.animateEl.scrollWidth - t.clientWidth), g = parseInt(o / (p * 2)) * t.s.animateEl.scrollWidth, v = [{ transform: `translate3d(${t.clientWidth}px,0,0)` }, { transform: `translate3d(calc(-100% + ${t.clientWidth}px),0,0)` }];
2592
2597
  break;
2593
2598
  }
2594
- return f;
2599
+ return v;
2595
2600
  }, p, g;
2596
2601
  (t.clientHeight > t.s.animateEl.scrollHeight || e === "left" || e === "right") && (t.s.animateEl.style.transform = `${m()[0].transform}`, t.s.animateEl.animate(m(), {
2597
2602
  duration: g,
@@ -2624,11 +2629,11 @@ zt = new WeakSet(), Mi = function() {
2624
2629
  }), t.addEventListener("mouseleave", function() {
2625
2630
  t.s.animation && r && t.s.animation.playState === "paused" && t.play();
2626
2631
  });
2627
- }, Gt = new WeakSet(), Oi = function() {
2632
+ }, Rt = new WeakSet(), Ni = function() {
2628
2633
  const t = this;
2629
2634
  function e() {
2630
2635
  const s = t.s.animation.startTime, o = t.s.cloneAnimation ? t.s.cloneAnimation.startTime : null;
2631
- t.s.nowDuration = We(t), t.s.animation.cancel(), t.s.cloneAnimation && t.s.cloneAnimation.cancel(), t.s.animation = t.s.animateEl.animate($(t).animate1, {
2636
+ t.s.nowDuration = Be(t), t.s.animation.cancel(), t.s.cloneAnimation && t.s.cloneAnimation.cancel(), t.s.animation = t.s.animateEl.animate($(t).animate1, {
2632
2637
  duration: t.s.nowDuration,
2633
2638
  iterations: 1 / 0
2634
2639
  }), t.s.animation.startTime = s, t.s.cloneAnimation && (t.s.cloneAnimation = t.s.cloneAnimateEl.animate($(t).animate2, {
@@ -2637,15 +2642,15 @@ zt = new WeakSet(), Mi = function() {
2637
2642
  iterations: 1 / 0
2638
2643
  }), t.s.cloneAnimation.startTime = o);
2639
2644
  }
2640
- window.addEventListener("resize", Bs(e));
2645
+ window.addEventListener("resize", Gs(e));
2641
2646
  };
2642
- customElements.define("marquee-el", Gs);
2643
- const Be = function(n, i) {
2647
+ customElements.define("marquee-el", Rs);
2648
+ const Ge = function(n, i) {
2644
2649
  let t;
2645
2650
  return function(e) {
2646
2651
  t && clearTimeout(t), t = setTimeout(n, 200, e);
2647
2652
  };
2648
- }, k = (n, i) => {
2653
+ }, _ = (n, i) => {
2649
2654
  if (lt(n)) {
2650
2655
  n.forEach((t) => {
2651
2656
  t.classList.add(i);
@@ -2662,22 +2667,22 @@ const Be = function(n, i) {
2662
2667
  }
2663
2668
  n.classList.remove(i);
2664
2669
  };
2665
- var Rt, Ni, Xt, Pi, Ft, ji, et, _e, W, ht, Yt, zi;
2666
- class Ge {
2670
+ var Xt, Pi, Ft, ji, Yt, zi, et, _e, W, pt, Ut, Wi;
2671
+ class Re {
2667
2672
  constructor(i) {
2668
2673
  // 初始化
2669
- h(this, Rt);
2670
- // 左右箭頭事件綁定
2671
2674
  h(this, Xt);
2672
- // 左右拖拉事件綁定
2675
+ // 左右箭頭事件綁定
2673
2676
  h(this, Ft);
2677
+ // 左右拖拉事件綁定
2678
+ h(this, Yt);
2674
2679
  // 卷軸位置判斷
2675
2680
  h(this, et);
2676
2681
  // 隱藏按鈕判斷
2677
2682
  h(this, W);
2678
2683
  // 選項事件綁定
2679
- h(this, Yt);
2680
- this.$element = i, this.option = i.s.option.drag, d(this, Rt, Ni).call(this);
2684
+ h(this, Ut);
2685
+ this.$element = i, this.option = i.s.option.drag, d(this, Xt, Pi).call(this);
2681
2686
  }
2682
2687
  // 更新 active 位置
2683
2688
  update(i) {
@@ -2691,7 +2696,7 @@ class Ge {
2691
2696
  }
2692
2697
  }
2693
2698
  }
2694
- Rt = new WeakSet(), Ni = function() {
2699
+ Xt = new WeakSet(), Pi = function() {
2695
2700
  var s, o, a, r;
2696
2701
  const i = this;
2697
2702
  if (!i.$element)
@@ -2700,10 +2705,10 @@ Rt = new WeakSet(), Ni = function() {
2700
2705
  let t = !1;
2701
2706
  const e = () => {
2702
2707
  t || (requestAnimationFrame(() => {
2703
- d(this, et, _e).call(this), d(this, W, ht).call(this), t = !1;
2708
+ d(this, et, _e).call(this), d(this, W, pt).call(this), t = !1;
2704
2709
  }), t = !0);
2705
2710
  };
2706
- i.$wrapper.removeEventListener("scroll", e), i.$wrapper.addEventListener("scroll", e), window.removeEventListener("resize", e), window.addEventListener("resize", e), (i.option.draggable || i.$element.s.type == "collapse") && d(s = i, Ft, ji).call(s), i.option.navigation && i.$element.s.type !== "collapse" && (i.$container.insertAdjacentHTML(
2711
+ i.$wrapper.removeEventListener("scroll", e), i.$wrapper.addEventListener("scroll", e), window.removeEventListener("resize", e), window.addEventListener("resize", e), (i.option.draggable || i.$element.s.type == "collapse") && d(s = i, Yt, zi).call(s), i.option.navigation && i.$element.s.type !== "collapse" && (i.$container.insertAdjacentHTML(
2707
2712
  A.prepend,
2708
2713
  `<div class="navigation">
2709
2714
  <div class="button prev">
@@ -2713,10 +2718,10 @@ Rt = new WeakSet(), Ni = function() {
2713
2718
  <div></div>
2714
2719
  </div>
2715
2720
  </div>`
2716
- ), i.$button = (o = i.$container) == null ? void 0 : o.querySelectorAll(".button"), d(a = i, Xt, Pi).call(a)), d(r = i, Yt, zi).call(r), i.update(), requestAnimationFrame(() => {
2717
- d(this, et, _e).call(this), d(this, W, ht).call(this);
2721
+ ), i.$button = (o = i.$container) == null ? void 0 : o.querySelectorAll(".button"), d(a = i, Ft, ji).call(a)), d(r = i, Ut, Wi).call(r), i.update(), requestAnimationFrame(() => {
2722
+ d(this, et, _e).call(this), d(this, W, pt).call(this);
2718
2723
  });
2719
- }, Xt = new WeakSet(), Pi = function() {
2724
+ }, Ft = new WeakSet(), ji = function() {
2720
2725
  const i = this, { $wrapper: t, $button: e } = i, s = function() {
2721
2726
  const o = this.classList.contains("next"), a = parseInt(t.getBoundingClientRect().width * 0.7);
2722
2727
  t.scrollTo({
@@ -2724,13 +2729,13 @@ Rt = new WeakSet(), Ni = function() {
2724
2729
  behavior: "smooth"
2725
2730
  }), setTimeout(() => {
2726
2731
  var r;
2727
- d(r = i, W, ht).call(r);
2732
+ d(r = i, W, pt).call(r);
2728
2733
  }, 100);
2729
2734
  };
2730
2735
  e.forEach((o) => {
2731
2736
  o.removeEventListener("click", s), o.addEventListener("click", s);
2732
2737
  });
2733
- }, Ft = new WeakSet(), ji = function() {
2738
+ }, Yt = new WeakSet(), zi = function() {
2734
2739
  const { $wrapper: i } = this;
2735
2740
  let t = !1, e = !1, s = 0, o = 0;
2736
2741
  const a = function(p) {
@@ -2762,30 +2767,30 @@ Rt = new WeakSet(), Ni = function() {
2762
2767
  });
2763
2768
  }, et = new WeakSet(), _e = function() {
2764
2769
  const { $container: i, $wrapper: t } = this, e = t.scrollWidth - t.clientWidth, s = Math.round(t.scrollLeft);
2765
- e <= 0 || (k(i, "scrollable"), s == 0 ? (T(i, "scrollable"), k(t, "start"), T(t, "end")) : s + 1 >= e ? (T(i, "scrollable"), T(t, "start"), k(t, "end")) : (k(t, "center"), T(t, "start"), T(t, "end")));
2766
- }, W = new WeakSet(), ht = function() {
2770
+ e <= 0 || (_(i, "scrollable"), s == 0 ? (T(i, "scrollable"), _(t, "start"), T(t, "end")) : s + 1 >= e ? (T(i, "scrollable"), T(t, "start"), _(t, "end")) : (_(t, "center"), T(t, "start"), T(t, "end")));
2771
+ }, W = new WeakSet(), pt = function() {
2767
2772
  const { $wrapper: i, $button: t, $element: e } = this;
2768
2773
  if (!t)
2769
2774
  return;
2770
2775
  const s = i.scrollWidth - i.clientWidth, o = i.scrollLeft;
2771
2776
  if (s <= 0) {
2772
- console.log(s, "gate <= 0"), k(t, "hide"), T(t, "active"), k(e, "noScrollable");
2777
+ _(t, "hide"), T(t, "active"), _(e, "noScrollable");
2773
2778
  return;
2774
2779
  }
2775
- s > 0 && (console.log(s, "gate > 0"), k(t, "active"), T(e, "noScrollable")), o == 0 ? t.forEach((a) => {
2780
+ s > 0 && (_(t, "active"), T(e, "noScrollable")), o == 0 ? t.forEach((a) => {
2776
2781
  if (a.classList.contains("next")) {
2777
2782
  T(a, "hide");
2778
2783
  return;
2779
2784
  }
2780
- k(a, "hide");
2785
+ _(a, "hide");
2781
2786
  }) : o + 1 >= s ? t.forEach((a) => {
2782
2787
  if (a.classList.contains("next")) {
2783
- k(a, "hide");
2788
+ _(a, "hide");
2784
2789
  return;
2785
2790
  }
2786
2791
  T(a, "hide");
2787
2792
  }) : T(t, "hide");
2788
- }, Yt = new WeakSet(), zi = function() {
2793
+ }, Ut = new WeakSet(), Wi = function() {
2789
2794
  const { $element: i } = this, t = (s) => {
2790
2795
  if (this.option.selected) {
2791
2796
  const o = s.getAttribute("data-option").trim();
@@ -2799,31 +2804,31 @@ Rt = new WeakSet(), Ni = function() {
2799
2804
  s.removeEventListener("click", e), s.addEventListener("click", e);
2800
2805
  });
2801
2806
  };
2802
- var Ut, Wi, Jt, Bi, Zt, Gi, Qt, Ri;
2803
- class Rs {
2807
+ var Jt, Bi, Zt, Gi, Qt, Ri, Vt, Xi;
2808
+ class Xs {
2804
2809
  constructor(i) {
2805
2810
  // 初始化
2806
- h(this, Ut);
2807
- // 隱藏按鈕判斷
2808
2811
  h(this, Jt);
2809
- // 展開箭頭事件綁定
2812
+ // 隱藏按鈕判斷
2810
2813
  h(this, Zt);
2811
- // 選項事件綁定
2814
+ // 展開箭頭事件綁定
2812
2815
  h(this, Qt);
2813
- this.$element = i, this.option = i.s.option.collapse, d(this, Ut, Wi).call(this);
2816
+ // 選項事件綁定
2817
+ h(this, Vt);
2818
+ this.$element = i, this.option = i.s.option.collapse, d(this, Jt, Bi).call(this);
2814
2819
  }
2815
2820
  }
2816
- Ut = new WeakSet(), Wi = function() {
2817
- this.$element && (this.$container = this.$element.querySelector(".collapse-container"), this.$wrapper = this.$container.querySelector(".wrapper"), d(this, Jt, Bi).call(this) && d(this, Zt, Gi).call(this), d(this, Qt, Ri).call(this));
2818
- }, Jt = new WeakSet(), Bi = function() {
2819
- const i = this.$element.querySelector(".drag-container"), t = i.querySelector(".wrapper");
2820
- return t.scrollWidth - t.clientWidth > 0 ? (i.insertAdjacentHTML(A.append, '<div class="open-collapse"></div>'), this.$button = i.querySelector(".open-collapse"), T(this.$element, "noScrollable"), !0) : (k(this.$element, "noScrollable"), !1);
2821
+ Jt = new WeakSet(), Bi = function() {
2822
+ this.$element && (this.$container = this.$element.querySelector(".collapse-container"), this.$wrapper = this.$container.querySelector(".wrapper"), d(this, Zt, Gi).call(this) && d(this, Qt, Ri).call(this), d(this, Vt, Xi).call(this));
2821
2823
  }, Zt = new WeakSet(), Gi = function() {
2824
+ const i = this.$element.querySelector(".drag-container"), t = i.querySelector(".wrapper");
2825
+ return t.scrollWidth - t.clientWidth > 0 ? (i.insertAdjacentHTML(A.append, '<div class="open-collapse"></div>'), this.$button = i.querySelector(".open-collapse"), T(this.$element, "noScrollable"), !0) : (_(this.$element, "noScrollable"), !1);
2826
+ }, Qt = new WeakSet(), Ri = function() {
2822
2827
  const { $element: i, $button: t } = this, e = function() {
2823
2828
  i.classList.contains("expand") ? i.classList.remove("expand") : i.classList.add("expand");
2824
2829
  };
2825
2830
  t.removeEventListener("click", e), t.addEventListener("click", e);
2826
- }, Qt = new WeakSet(), Ri = function() {
2831
+ }, Vt = new WeakSet(), Xi = function() {
2827
2832
  const { $element: i } = this, t = (s, o) => {
2828
2833
  if (i != null && i.classList.contains("expand") ? i == null || i.classList.remove("expand") : i == null || i.classList.add("expand"), this.option.selected) {
2829
2834
  const a = s.getAttribute("data-option").trim();
@@ -2837,16 +2842,16 @@ Ut = new WeakSet(), Wi = function() {
2837
2842
  s.removeEventListener("click", e), s.addEventListener("click", e);
2838
2843
  });
2839
2844
  };
2840
- const Xs = (n) => {
2845
+ const Fs = (n) => {
2841
2846
  const { type: i, option: t, originalDomString: e } = n.s, s = document.createElement("div");
2842
2847
  return i == "drag" && (s.innerHTML = H.TEMPLATE[i]().trim(), s.querySelector(".drag-container .wrapper").insertAdjacentHTML(A.append, e)), i == "collapse" && (s.innerHTML = H.TEMPLATE[i](t == null ? void 0 : t.collapse).trim(), s.querySelector(".drag-container .wrapper").insertAdjacentHTML(A.append, e), s.querySelector(".collapse-container .wrapper").insertAdjacentHTML(A.append, e)), i == "dropdown" && (s.innerHTML = H.TEMPLATE[i](t == null ? void 0 : t.dropdown).trim(), s.querySelector("dropdown-el").insertAdjacentHTML(A.append, e)), s.children;
2843
2848
  };
2844
- var Vt, Xi, Kt, Fi, it, ke, B, pt;
2845
- class Fs extends HTMLElement {
2849
+ var Kt, Fi, te, Yi, it, $e, B, mt;
2850
+ class Ys extends HTMLElement {
2846
2851
  constructor() {
2847
2852
  super();
2848
- h(this, Vt);
2849
2853
  h(this, Kt);
2854
+ h(this, te);
2850
2855
  // 斷點設定
2851
2856
  h(this, it);
2852
2857
  // check type
@@ -2862,7 +2867,7 @@ class Fs extends HTMLElement {
2862
2867
  case "m4-type":
2863
2868
  if (e === null || e === s)
2864
2869
  return;
2865
- this.s.type = s, d(this, B, pt).call(this);
2870
+ this.s.type = s, d(this, B, mt).call(this);
2866
2871
  break;
2867
2872
  case "m4-status":
2868
2873
  if (e === s)
@@ -2879,13 +2884,13 @@ class Fs extends HTMLElement {
2879
2884
  }
2880
2885
  }
2881
2886
  connectedCallback() {
2882
- this.initialize || this.classList.contains("m4-init") || (this.initialize = !0, d(this, Vt, Xi).call(this));
2887
+ this.initialize || this.classList.contains("m4-init") || (this.initialize = !0, d(this, Kt, Fi).call(this));
2883
2888
  }
2884
2889
  update() {
2885
- d(this, it, ke).call(this);
2890
+ d(this, it, $e).call(this);
2886
2891
  }
2887
2892
  }
2888
- Vt = new WeakSet(), Xi = function() {
2893
+ Kt = new WeakSet(), Fi = function() {
2889
2894
  let t = {};
2890
2895
  this.hasAttribute("m4-value") || this.setAttribute("m4-value", ""), this.s.type = this.getAttribute("m4-type") ?? H.SETTINGS.type, this.hasAttribute("m4-option") && (t = this.getAttribute("m4-option") ? JSON.parse(this.getAttribute("m4-option")) : {}, this.removeAttribute("m4-option"));
2891
2896
  const e = (s) => {
@@ -2896,84 +2901,84 @@ Vt = new WeakSet(), Xi = function() {
2896
2901
  }
2897
2902
  this.update();
2898
2903
  };
2899
- window.removeEventListener("resize", Be(e)), window.addEventListener("resize", Be(e)), this.s.option = {}, this.s.option.drag = Object.assign({}, H.SETTINGS.drag, t == null ? void 0 : t.drag), this.s.option.collapse = Object.assign({}, H.SETTINGS.collapse, t == null ? void 0 : t.collapse), this.s.option.dropdown = Object.assign({}, H.SETTINGS.dropdown, t == null ? void 0 : t.dropdown), this.s.option.breakpoint = Object.assign({}, H.SETTINGS.breakpoint, t == null ? void 0 : t.breakpoint), d(this, Kt, Fi).call(this);
2900
- }, Kt = new WeakSet(), Fi = function() {
2901
- this.classList.add("m4-init"), d(this, it, ke).call(this);
2902
- }, it = new WeakSet(), ke = function() {
2904
+ window.removeEventListener("resize", Ge(e)), window.addEventListener("resize", Ge(e)), this.s.option = {}, this.s.option.drag = Object.assign({}, H.SETTINGS.drag, t == null ? void 0 : t.drag), this.s.option.collapse = Object.assign({}, H.SETTINGS.collapse, t == null ? void 0 : t.collapse), this.s.option.dropdown = Object.assign({}, H.SETTINGS.dropdown, t == null ? void 0 : t.dropdown), this.s.option.breakpoint = Object.assign({}, H.SETTINGS.breakpoint, t == null ? void 0 : t.breakpoint), d(this, te, Yi).call(this);
2905
+ }, te = new WeakSet(), Yi = function() {
2906
+ this.classList.add("m4-init"), d(this, it, $e).call(this);
2907
+ }, it = new WeakSet(), $e = function() {
2903
2908
  const t = Object.keys(this.s.option.breakpoint);
2904
2909
  if (!t.length) {
2905
- d(this, B, pt).call(this);
2910
+ d(this, B, mt).call(this);
2906
2911
  return;
2907
2912
  }
2908
2913
  t.map((e) => Number(e)).sort((e, s) => s - e).some((e) => {
2909
2914
  var s, o, a, r;
2910
- return window.innerWidth >= e && (this.s.type = (s = this.s.option.breakpoint[e]) == null ? void 0 : s.type, this.setAttribute("m4-type", this.s.type), this.s.option.drag = Object.assign({}, this.s.option.drag, (o = this.s.option.breakpoint[e]) == null ? void 0 : o.drag), this.s.option.collapse = Object.assign({}, this.s.option.collapse, (a = this.s.option.breakpoint[e]) == null ? void 0 : a.collapse), this.s.option.dropdown = Object.assign({}, this.s.option.dropdown, (r = this.s.option.breakpoint[e]) == null ? void 0 : r.dropdown)), d(this, B, pt).call(this), window.innerWidth >= e;
2915
+ return window.innerWidth >= e && (this.s.type = (s = this.s.option.breakpoint[e]) == null ? void 0 : s.type, this.setAttribute("m4-type", this.s.type), this.s.option.drag = Object.assign({}, this.s.option.drag, (o = this.s.option.breakpoint[e]) == null ? void 0 : o.drag), this.s.option.collapse = Object.assign({}, this.s.option.collapse, (a = this.s.option.breakpoint[e]) == null ? void 0 : a.collapse), this.s.option.dropdown = Object.assign({}, this.s.option.dropdown, (r = this.s.option.breakpoint[e]) == null ? void 0 : r.dropdown)), d(this, B, mt).call(this), window.innerWidth >= e;
2911
2916
  });
2912
- }, B = new WeakSet(), pt = function() {
2917
+ }, B = new WeakSet(), mt = function() {
2913
2918
  var o;
2914
2919
  const { type: t } = this.s;
2915
- this.innerHTML = "", [...Xs(this)].forEach((a) => {
2920
+ this.innerHTML = "", [...Fs(this)].forEach((a) => {
2916
2921
  this.append(a);
2917
2922
  });
2918
2923
  const e = this.querySelector(`.drag-container .item[data-option="${this.getAttribute("m4-status")}"]`), s = this.querySelector(`.collapse-container .item[data-option="${this.getAttribute("m4-status")}"]`);
2919
2924
  switch (e == null || e.classList.add("active"), s == null || s.classList.add("active"), t) {
2920
2925
  case "drag":
2921
- console.log("drag"), this.drag = new Ge(this);
2926
+ this.drag = new Re(this);
2922
2927
  break;
2923
2928
  case "collapse":
2924
- this.drag = new Ge(this), this.collapse = new Rs(this);
2929
+ this.drag = new Re(this), this.collapse = new Xs(this);
2925
2930
  break;
2926
2931
  }
2927
2932
  (o = this.drag) == null || o.update();
2928
2933
  };
2929
- customElements.define("multipurpose-nav", Fs);
2930
- var te, Ui, ee, Ji, st, $e, P, F, ie, Zi, se, Qi, ne, Vi, oe, Ki, ae, ts, re, es, le, is, ce, ss, de, ns, q, z, ue, os, he, as, pe, rs, me, ls;
2931
- class Yi extends HTMLElement {
2934
+ customElements.define("multipurpose-nav", Ys);
2935
+ var ee, Ji, ie, Zi, st, xe, P, F, se, Qi, ne, Vi, oe, Ki, ae, ts, re, es, le, is, ce, ss, de, ns, ue, os, q, z, he, as, pe, rs, me, ls, ge, cs;
2936
+ class Ui extends HTMLElement {
2932
2937
  // 定義組件的初始狀態
2933
2938
  constructor(t, e) {
2934
2939
  super();
2935
- h(this, te);
2936
2940
  h(this, ee);
2941
+ h(this, ie);
2937
2942
  // 第一關 判斷數量以及id設定
2938
2943
  h(this, st);
2939
2944
  // 第二關 id命名提醒
2940
2945
  h(this, P);
2941
- h(this, ie);
2942
2946
  h(this, se);
2943
2947
  h(this, ne);
2948
+ h(this, oe);
2944
2949
  // 執行函式
2945
2950
  // 移動至指定位置
2946
- h(this, oe);
2947
- // 移動
2948
2951
  h(this, ae);
2949
- // 步驟狀態
2952
+ // 移動
2950
2953
  h(this, re);
2951
- // next 按鈕狀態
2954
+ // 步驟狀態
2952
2955
  h(this, le);
2953
- // prev 按鈕狀態
2956
+ // next 按鈕狀態
2954
2957
  h(this, ce);
2955
- // 頁籤狀態
2958
+ // prev 按鈕狀態
2956
2959
  h(this, de);
2960
+ // 頁籤狀態
2961
+ h(this, ue);
2957
2962
  // 第三關各種元件判斷 及 執行
2958
2963
  h(this, q);
2959
2964
  // 消失動畫
2960
- h(this, ue);
2961
- // 出現動畫
2962
2965
  h(this, he);
2963
- // 狀態
2966
+ // 出現動畫
2964
2967
  h(this, pe);
2965
- // resize
2968
+ // 狀態
2966
2969
  h(this, me);
2970
+ // resize
2971
+ h(this, ge);
2967
2972
  }
2968
2973
  // 當組件的屬性被更改時會被呼叫
2969
2974
  static get observedAttributes() {
2970
2975
  return ["t4-active"];
2971
2976
  }
2972
2977
  attributeChangedCallback(t, e, s) {
2973
- t === "t4-active" && e !== s && d(this, pe, rs).call(this, s);
2978
+ t === "t4-active" && e !== s && d(this, me, ls).call(this, s);
2974
2979
  }
2975
2980
  connectedCallback() {
2976
- this.classList.contains("t4-initialize") || d(this, te, Ui).call(this);
2981
+ this.classList.contains("t4-initialize") || d(this, ee, Ji).call(this);
2977
2982
  }
2978
2983
  // ------------- 我是分隔線呦 -------------
2979
2984
  // 頁籤切換
@@ -2989,7 +2994,7 @@ class Yi extends HTMLElement {
2989
2994
  e.activeTab = s, this.setAttribute("t4-active", s);
2990
2995
  const o = d(this, P, F).call(this, s);
2991
2996
  e.tabPanels.forEach((a, r) => {
2992
- r === o ? d(this, he, as).call(this, r) : d(this, ue, os).call(this, r);
2997
+ r === o ? d(this, pe, rs).call(this, r) : d(this, he, as).call(this, r);
2993
2998
  });
2994
2999
  }
2995
3000
  // 外部呼叫方法 $0.goNext()
@@ -3004,11 +3009,11 @@ class Yi extends HTMLElement {
3004
3009
  }
3005
3010
  // 外部呼叫方法 $0.update()
3006
3011
  update() {
3007
- this.t.tabs = d(this, st, $e).call(this), cs(), console.log("tab update!!!!");
3012
+ this.t.tabs = d(this, st, xe).call(this), ds(), console.log("tab update!!!!");
3008
3013
  }
3009
3014
  }
3010
- te = new WeakSet(), Ui = function() {
3011
- const t = this.getAttribute("t4-name"), { SETTINGS: e } = Ue;
3015
+ ee = new WeakSet(), Ji = function() {
3016
+ const t = this.getAttribute("t4-name"), { SETTINGS: e } = Je;
3012
3017
  document.querySelectorAll(`tab-el[t4-name=${t}]`).length > 1 && console.warn(t, "名字有重複喔!!!"), this.t = {
3013
3018
  tabs: [],
3014
3019
  name: t,
@@ -3027,14 +3032,14 @@ te = new WeakSet(), Ui = function() {
3027
3032
  delay: this.getAttribute("t4-delay") || e.transition.delay
3028
3033
  },
3029
3034
  tabGroup: this.getAttribute("t4-group") || e.tabGroup
3030
- }, this.__events__ = {}, this.t.tabs = d(this, st, $e).call(this), this.t.step = document.querySelector(`[t4-control="${this.t.name}"]${this.t.stepOutput}`), d(this, ee, Ji).call(this);
3031
- }, ee = new WeakSet(), Ji = function() {
3032
- if (this.t.activeTab = this.t.defaultPage, this.t.display === "swiper" && d(this, ie, Zi).call(this), this.t.recordUrl) {
3035
+ }, this.__events__ = {}, this.t.tabs = d(this, st, xe).call(this), this.t.step = document.querySelector(`[t4-control="${this.t.name}"]${this.t.stepOutput}`), d(this, ie, Zi).call(this);
3036
+ }, ie = new WeakSet(), Zi = function() {
3037
+ if (this.t.activeTab = this.t.defaultPage, this.t.display === "swiper" && d(this, se, Qi).call(this), this.t.recordUrl) {
3033
3038
  const e = new URLSearchParams(document.location.search).get(this.t.name), s = document.querySelectorAll(`[t4-name="${this.t.name}"] .tab-panel[t4-id="${e}"]`);
3034
3039
  e && s.length === 1 ? this.t.activeTab = e : console.warn(`沒有${e}這頁喔!!`);
3035
3040
  }
3036
- this.setActiveTab(this.t.activeTab), this.classList.add("t4-initialize"), d(this, me, ls).call(this);
3037
- }, st = new WeakSet(), $e = function() {
3041
+ this.setActiveTab(this.t.activeTab), this.classList.add("t4-initialize"), d(this, ge, cs).call(this);
3042
+ }, st = new WeakSet(), xe = function() {
3038
3043
  const { t } = this, e = Array.from(document.querySelectorAll(`[t4-control="${t.name}"][t4-role="tab"]`));
3039
3044
  return t.type === "normal" && t.tabGroup === "true" && t.tabPanels.length !== e.length && console.warn("按鈕與內容數量不同喔", t.tabPanels.length, e.length), t.tabGroup === "true" ? t.tabPanels.forEach((s, o) => s.setAttribute("t4-id", o)) : t.tabPanels.forEach((s) => {
3040
3045
  s.getAttribute("t4-id") || console.warn(s, "請幫我設定id!!");
@@ -3044,19 +3049,19 @@ te = new WeakSet(), Ui = function() {
3044
3049
  s.length > 1 && console.warn("有兩個相同id設定", s);
3045
3050
  const o = s[0];
3046
3051
  return o ? e.tabPanels.indexOf(o) : (console.warn(`找不到t4-id為${t}的頁籤`), 0);
3047
- }, ie = new WeakSet(), Zi = function() {
3052
+ }, se = new WeakSet(), Qi = function() {
3048
3053
  const t = document.createElement("div");
3049
3054
  t.classList.add("swiper-container");
3050
3055
  const e = document.createElement("div");
3051
3056
  e.classList.add("swiper-wrapper"), this.t.tabPanels.forEach((s) => {
3052
3057
  e.appendChild(s.cloneNode(!0));
3053
- }), this.t.tabPanels = [...e.children], t.appendChild(e), this.innerHTML = "", this.appendChild(t), d(this, se, Qi).call(this);
3054
- }, se = new WeakSet(), Qi = function() {
3058
+ }), this.t.tabPanels = [...e.children], t.appendChild(e), this.innerHTML = "", this.appendChild(t), d(this, ne, Vi).call(this);
3059
+ }, ne = new WeakSet(), Vi = function() {
3055
3060
  const t = this.querySelector(".swiper-container"), e = this.querySelector(".swiper-wrapper"), s = this.t.tabPanels;
3056
3061
  t.style.overflow = "hidden", e.style.display = "flex";
3057
3062
  const o = s.length * 100 + "%";
3058
3063
  e.style.width = o;
3059
- }, ne = new WeakSet(), Vi = function(t) {
3064
+ }, oe = new WeakSet(), Ki = function(t) {
3060
3065
  const { t: e } = this;
3061
3066
  if (e.recordUrl === "true") {
3062
3067
  const s = new URLSearchParams(document.location.search);
@@ -3064,28 +3069,28 @@ te = new WeakSet(), Ui = function() {
3064
3069
  const o = `${window.location.pathname}?${s.toString()}`;
3065
3070
  history.replaceState({ t4Id: t }, "", o);
3066
3071
  }
3067
- }, oe = new WeakSet(), Ki = function() {
3072
+ }, ae = new WeakSet(), ts = function() {
3068
3073
  const t = parseInt(this.t.gap, 10), e = window.pageYOffset, o = this.getBoundingClientRect().top + e - t;
3069
- d(this, ae, ts).call(this, o);
3070
- }, ae = new WeakSet(), ts = function(t) {
3074
+ d(this, re, es).call(this, o);
3075
+ }, re = new WeakSet(), es = function(t) {
3071
3076
  window.scrollTo({
3072
3077
  top: t,
3073
3078
  behavior: "smooth"
3074
3079
  });
3075
- }, re = new WeakSet(), es = function(t) {
3080
+ }, le = new WeakSet(), is = function(t) {
3076
3081
  let e = parseInt(t, 10) + 1;
3077
3082
  this.t.step.textContent = `${e}`, this.t.step.setAttribute("now-page", e);
3078
- }, le = new WeakSet(), is = function(t) {
3083
+ }, ce = new WeakSet(), ss = function(t) {
3079
3084
  const e = document.querySelectorAll(`[t4-role="next"][t4-control="${this.t.name}"]`), s = this.t.tabPanels.length === 1, o = t === this.t.tabPanels.length - 1;
3080
3085
  e.forEach((a) => {
3081
3086
  s || o ? a.setAttribute("disabled", "") : a.removeAttribute("disabled");
3082
3087
  });
3083
- }, ce = new WeakSet(), ss = function(t) {
3088
+ }, de = new WeakSet(), ns = function(t) {
3084
3089
  const e = document.querySelectorAll(`[t4-role="prev"][t4-control="${this.t.name}"]`), s = this.t.tabPanels.length === 1, o = t === 0;
3085
3090
  e.forEach((a) => {
3086
3091
  s || o ? a.setAttribute("disabled", "") : a.removeAttribute("disabled");
3087
3092
  });
3088
- }, de = new WeakSet(), ns = function(t, e) {
3093
+ }, ue = new WeakSet(), os = function(t, e) {
3089
3094
  this.t.tabGroup === "true" ? this.t.tabs.forEach((s, o) => {
3090
3095
  o == t ? s.setAttribute("aria-selected", !0) : s.setAttribute("aria-selected", !1);
3091
3096
  }) : this.t.tabs.forEach((s, o) => {
@@ -3094,25 +3099,25 @@ te = new WeakSet(), Ui = function() {
3094
3099
  }, q = new WeakSet(), z = function(t, e, s) {
3095
3100
  switch (t) {
3096
3101
  case "step":
3097
- we(this.t.step) && d(this, re, es).call(this, e);
3102
+ Te(this.t.step) && d(this, le, is).call(this, e);
3098
3103
  break;
3099
3104
  case "eventAnchor":
3100
- this.t.anchor && d(this, oe, Ki).call(this);
3105
+ this.t.anchor && d(this, ae, ts).call(this);
3101
3106
  break;
3102
3107
  case "tabState":
3103
- this.t.type == "normal" && d(this, de, ns).call(this, e, s);
3108
+ this.t.type == "normal" && d(this, ue, os).call(this, e, s);
3104
3109
  break;
3105
3110
  case "btnState":
3106
- d(this, le, is).call(this, e), d(this, ce, ss).call(this, e);
3111
+ d(this, ce, ss).call(this, e), d(this, de, ns).call(this, e);
3107
3112
  break;
3108
3113
  case "tabUrl":
3109
- this.t.recordUrl === "true" && d(this, ne, Vi).call(this, e);
3114
+ this.t.recordUrl === "true" && d(this, oe, Ki).call(this, e);
3110
3115
  break;
3111
3116
  default:
3112
3117
  console.warn("請增加判斷,謝謝");
3113
3118
  break;
3114
3119
  }
3115
- }, ue = new WeakSet(), os = function(t) {
3120
+ }, he = new WeakSet(), as = function(t) {
3116
3121
  const { t: e } = this;
3117
3122
  this.t.transition;
3118
3123
  const s = e.tabPanels[t];
@@ -3129,7 +3134,7 @@ te = new WeakSet(), Ui = function() {
3129
3134
  s.style.display = "none";
3130
3135
  break;
3131
3136
  }
3132
- }, he = new WeakSet(), as = function(t) {
3137
+ }, pe = new WeakSet(), rs = function(t) {
3133
3138
  const { duration: e, timing: s, delay: o } = this.t.transition, a = this.t.tabPanels[t];
3134
3139
  let r;
3135
3140
  switch (a.classList.add("show"), a.classList.remove("hide"), a.style.transition = `opacity ${e}ms ${s} ${o}ms`, a.style.display = "block", this.t.display) {
@@ -3154,25 +3159,25 @@ te = new WeakSet(), Ui = function() {
3154
3159
  console.warn(this.t.display, "沒有這個效果請自己想辦法!!!!");
3155
3160
  break;
3156
3161
  }
3157
- }, pe = new WeakSet(), rs = function(t) {
3162
+ }, me = new WeakSet(), ls = function(t) {
3158
3163
  const e = d(this, P, F).call(this, t);
3159
3164
  d(this, q, z).call(this, "step", e), d(this, q, z).call(this, "btnState", e), d(this, q, z).call(this, "tabState", e, t), d(this, q, z).call(this, "tabUrl", t), this.emit("change");
3160
- }, me = new WeakSet(), ls = function() {
3165
+ }, ge = new WeakSet(), cs = function() {
3161
3166
  const t = this;
3162
3167
  window.addEventListener(
3163
3168
  "resize",
3164
- Ys(() => {
3169
+ Us(() => {
3165
3170
  t.update();
3166
3171
  }, 1e3)
3167
3172
  );
3168
3173
  };
3169
- function Ys(n, i = 1e3) {
3174
+ function Us(n, i = 1e3) {
3170
3175
  let t;
3171
3176
  return function(e) {
3172
3177
  t && clearTimeout(t), t = setTimeout(n, i, e);
3173
3178
  };
3174
3179
  }
3175
- function cs() {
3180
+ function ds() {
3176
3181
  const n = document.querySelectorAll("[t4-control]");
3177
3182
  document.addEventListener("click", function(i) {
3178
3183
  let t = !1;
@@ -3202,91 +3207,91 @@ function cs() {
3202
3207
  }
3203
3208
  });
3204
3209
  }
3205
- cs();
3206
- Object.assign(Yi.prototype, O);
3207
- customElements.define("tab-el", Yi);
3208
- const Re = (n) => {
3210
+ ds();
3211
+ Object.assign(Ui.prototype, O);
3212
+ customElements.define("tab-el", Ui);
3213
+ const Xe = (n) => {
3209
3214
  const { defaultOptions: i } = n.collapse, { collapseClass: t, target: e, transition: s } = i, o = n.querySelector(e);
3210
3215
  n.classList.add(t), o.style.height = 0, o.style["transition-property"] = s.property, o.style["transition-duration"] = s.duration, o.style["transition-timing-function"] = s.function, o.style["transition-delay"] = s.delay, o.style.overflow = "hidden";
3211
- }, Us = (n) => {
3216
+ }, Js = (n) => {
3212
3217
  const { defaultOptions: i } = n.collapse, { collapseClass: t, target: e, transition: s } = i, o = n.querySelector(e), a = o.children[0].offsetHeight;
3213
3218
  n.collapse.height = a, n.classList.remove(t), o.style.display = "block", o.style.height = `${a}px`, o.style["transition-property"] = s.property, o.style["transition-duration"] = s.duration, o.style["transition-timing-function"] = s.function, o.style["transition-delay"] = s.delay, o.style.overflow = "hidden";
3214
3219
  };
3215
- var nt, xe, ge, ds, fe, us, ot, Ce;
3216
- class Js {
3220
+ var nt, Ce, fe, us, ve, hs, ot, He;
3221
+ class Zs {
3217
3222
  constructor(i, t = {}) {
3218
3223
  h(this, nt);
3219
- h(this, ge);
3220
3224
  h(this, fe);
3225
+ h(this, ve);
3221
3226
  h(this, ot);
3222
- !rt(i) && !we(i) && !lt(i) && !w(i) || (this.__storage__ = {
3227
+ !rt(i) && !Te(i) && !lt(i) && !w(i) || (this.__storage__ = {
3223
3228
  el: i,
3224
3229
  options: t
3225
- }, this.active = "data-collapse-active", d(this, nt, xe).call(this));
3230
+ }, this.active = "data-collapse-active", d(this, nt, Ce).call(this));
3226
3231
  }
3227
3232
  update() {
3228
- d(this, nt, xe).call(this);
3233
+ d(this, nt, Ce).call(this);
3229
3234
  }
3230
3235
  }
3231
- nt = new WeakSet(), xe = function() {
3232
- const { el: i, options: t } = this.__storage__, { SETTINGS: e, EVENTS: s } = Je;
3236
+ nt = new WeakSet(), Ce = function() {
3237
+ const { el: i, options: t } = this.__storage__, { SETTINGS: e, EVENTS: s } = Ze;
3233
3238
  if (this.elements = t.state == "not active" ? S(i + `:not([${this.active}])`) : S(i), this.options = Object.assign({}, e, t), this.__events__ = Object.assign({}, s), this.options.on)
3234
3239
  for (const [o, a] of Object.entries(this.options.on))
3235
3240
  this.__events__[o] = [a];
3236
- d(this, ge, ds).call(this);
3237
- }, ge = new WeakSet(), ds = function() {
3241
+ d(this, fe, us).call(this);
3242
+ }, fe = new WeakSet(), us = function() {
3238
3243
  const { elements: i, options: t } = this;
3239
3244
  i.forEach((e) => {
3240
- e.collapse = {}, e.collapse.instance = this, e.collapse.defaultOptions = t, e.collapse.methods = {}, e.collapse.methods.update = this.update, e.setAttribute(this.active, ""), d(this, fe, us).call(this, e);
3245
+ e.collapse = {}, e.collapse.instance = this, e.collapse.defaultOptions = t, e.collapse.methods = {}, e.collapse.methods.update = this.update, e.setAttribute(this.active, ""), d(this, ve, hs).call(this, e);
3241
3246
  }), this.emit("init");
3242
- }, fe = new WeakSet(), us = function(i) {
3247
+ }, ve = new WeakSet(), hs = function(i) {
3243
3248
  const { options: t } = this, { collapseClass: e, block: s, target: o, defaultOpen: a, targetStopPropagation: r, defaultActiveMark: l } = t, c = i, u = c.querySelector(o);
3244
- if (c.collapse.height = u.children[0].offsetHeight, a ? (u.style.height = `${u.children[0].offsetHeight}px`, c.classList.remove(e)) : !c.classList.contains(l) && !c.hasAttribute(l) ? (c.classList.add(e), u.style.height = "0px", u.style.overflow = "hidden") : (u.style.height = `${u.children[0].offsetHeight}px`, c.classList.remove(e)), c.removeEventListener("click", d(this, ot, Ce)), c.addEventListener("click", d(this, ot, Ce)), r) {
3249
+ if (c.collapse.height = u.children[0].offsetHeight, a ? (u.style.height = `${u.children[0].offsetHeight}px`, c.classList.remove(e)) : !c.classList.contains(l) && !c.hasAttribute(l) ? (c.classList.add(e), u.style.height = "0px", u.style.overflow = "hidden") : (u.style.height = `${u.children[0].offsetHeight}px`, c.classList.remove(e)), c.removeEventListener("click", d(this, ot, He)), c.addEventListener("click", d(this, ot, He)), r) {
3245
3250
  const p = (g) => {
3246
3251
  g.stopPropagation();
3247
3252
  };
3248
3253
  u.removeEventListener("click", p), u.addEventListener("click", p);
3249
3254
  }
3250
- }, ot = new WeakSet(), Ce = function() {
3255
+ }, ot = new WeakSet(), He = function() {
3251
3256
  const { instance: i, defaultOptions: t } = this.collapse, { collapseClass: e, block: s, target: o, single: a } = t, r = this;
3252
3257
  r.classList.contains(e) ? (a && r.parentNode.querySelectorAll(`.${r.classList[0]}`).forEach((l) => {
3253
- Re(l);
3254
- }), Us(r)) : Re(r), i.emit("afterCollapse");
3258
+ Xe(l);
3259
+ }), Js(r)) : Xe(r), i.emit("afterCollapse");
3255
3260
  };
3256
- Object.assign(Js.prototype, O);
3257
- function Zs(n, i) {
3261
+ Object.assign(Zs.prototype, O);
3262
+ function Qs(n, i) {
3258
3263
  const t = i, { color: e, opacity: s, duration: o } = i.s.options;
3259
3264
  let a = document.createElement("span"), r = n.clientX - t.getBoundingClientRect().left, l = n.clientY - t.getBoundingClientRect().top;
3260
3265
  a.style.cssText = `background: ${e};left: ${r}px;top: ${l}px;opacity: ${s};animation-duration: ${o}ms`, a.classList.add("circle"), t.appendChild(a), setTimeout(function() {
3261
3266
  a.remove();
3262
3267
  }, `${o}`);
3263
3268
  }
3264
- function hs() {
3269
+ function ps() {
3265
3270
  document.querySelectorAll("ripple-btn").forEach((n) => {
3266
3271
  n.querySelector(".hover-ball"), n.style.setProperty("--r", ""), n.classList.remove("entered");
3267
3272
  });
3268
3273
  }
3269
- document.addEventListener("click", hs);
3270
- var at, He, ve, ps, be, ms, ye, gs;
3271
- class Qs extends HTMLElement {
3274
+ document.addEventListener("click", ps);
3275
+ var at, Me, be, ms, ye, gs, we, fs;
3276
+ class Vs extends HTMLElement {
3272
3277
  constructor() {
3273
3278
  super();
3274
3279
  h(this, at);
3275
- h(this, ve);
3276
3280
  h(this, be);
3277
3281
  h(this, ye);
3282
+ h(this, we);
3278
3283
  this.initialize = !1;
3279
3284
  }
3280
3285
  connectedCallback() {
3281
3286
  const t = this;
3282
- t.initialize || t.classList.contains("r4-initialize") || (t.initialize = !0, d(this, at, He).call(this));
3287
+ t.initialize || t.classList.contains("r4-initialize") || (t.initialize = !0, d(this, at, Me).call(this));
3283
3288
  }
3284
3289
  update() {
3285
- this.classList.remove("r4-initialize"), this.querySelector("i.hover-ball").remove(), d(this, at, He).call(this);
3290
+ this.classList.remove("r4-initialize"), this.querySelector("i.hover-ball").remove(), d(this, at, Me).call(this);
3286
3291
  }
3287
3292
  }
3288
- at = new WeakSet(), He = function() {
3289
- const { SETTINGS: t } = Ze;
3293
+ at = new WeakSet(), Me = function() {
3294
+ const { SETTINGS: t } = Qe;
3290
3295
  this.s = {};
3291
3296
  function e(o) {
3292
3297
  let a = !!o;
@@ -3300,20 +3305,20 @@ at = new WeakSet(), He = function() {
3300
3305
  hover: this.getAttribute("r4-hover") ? e(this.getAttribute("r4-hover")) : t.hover,
3301
3306
  click: this.getAttribute("r4-hover-click") ? e(this.getAttribute("r4-hover-click")) : t.click
3302
3307
  };
3303
- this.s.options = s, this.s.options.hover && this.classList.add("hover-btn"), d(this, ve, ps).call(this);
3304
- }, ve = new WeakSet(), ps = function() {
3305
- d(this, be, ms).call(this), d(this, ye, gs).call(this), this.classList.add("r4-initialize");
3308
+ this.s.options = s, this.s.options.hover && this.classList.add("hover-btn"), d(this, be, ms).call(this);
3306
3309
  }, be = new WeakSet(), ms = function() {
3310
+ d(this, ye, gs).call(this), d(this, we, fs).call(this), this.classList.add("r4-initialize");
3311
+ }, ye = new WeakSet(), gs = function() {
3307
3312
  const t = this, e = document.createElement("i");
3308
3313
  e.classList.add("hover-ball"), e.style.transitionDuration = `${t.s.options.speed}ms`, t.appendChild(e);
3309
- }, ye = new WeakSet(), gs = function() {
3314
+ }, we = new WeakSet(), fs = function() {
3310
3315
  const t = this.querySelector("i.hover-ball"), e = this;
3311
3316
  e.addEventListener("click", function(a) {
3312
- a.stopPropagation(), e.s.options.click && Zs(a, e);
3317
+ a.stopPropagation(), e.s.options.click && Qs(a, e);
3313
3318
  });
3314
3319
  let s = "ontouchstart" in document.documentElement ? "touchstart" : "mouseenter", o = "ontouchend" in document.documentElement ? "touchend" : "mouseleave";
3315
3320
  e.addEventListener(s, function(a) {
3316
- if (s === "touchstart" && hs(), e.s.options.hover) {
3321
+ if (s === "touchstart" && ps(), e.s.options.hover) {
3317
3322
  const r = Math.round(s === "mouseenter" ? a.clientX - e.getBoundingClientRect().left : a.changedTouches[0].clientX - e.getBoundingClientRect().x), l = Math.round(s === "mouseenter" ? a.clientY - e.getBoundingClientRect().top : a.changedTouches[0].clientY - e.getBoundingClientRect().y), { offsetWidth: c, offsetHeight: u } = e, p = Math.max(c, u);
3318
3323
  t.style.width = p * 2 + "px", t.style.height = p * 2 + "px", t.style.left = r + "px", t.style.top = l + "px", e.classList.add("entered");
3319
3324
  }
@@ -3324,8 +3329,8 @@ at = new WeakSet(), He = function() {
3324
3329
  }
3325
3330
  });
3326
3331
  };
3327
- customElements.define("ripple-btn", Qs);
3328
- class Vs {
3332
+ customElements.define("ripple-btn", Vs);
3333
+ class Ks {
3329
3334
  constructor() {
3330
3335
  this.init();
3331
3336
  }
@@ -3377,12 +3382,12 @@ class Vs {
3377
3382
  this.init();
3378
3383
  }
3379
3384
  }
3380
- function Xe(n, i) {
3385
+ function Fe(n, i) {
3381
3386
  return n ? function(t, e) {
3382
3387
  Function(n)(t, e);
3383
3388
  } : i;
3384
3389
  }
3385
- function Ks(n, i, t, e) {
3390
+ function tn(n, i, t, e) {
3386
3391
  const s = i.params, o = n.closest("[data-upload-item]").querySelector("[data-preview]");
3387
3392
  o.querySelector("img") && o.querySelector("img").remove(), o.appendChild(e.imgElement);
3388
3393
  const a = n.dataset.group, r = document.querySelector(i.el).dataset.index;
@@ -3405,7 +3410,7 @@ function Ks(n, i, t, e) {
3405
3410
  info: e
3406
3411
  }, s.on.changeAfter && typeof s.on.changeAfter == "function" && s.on.changeAfter(n, e);
3407
3412
  }
3408
- function tn(n, i, t, e) {
3413
+ function en(n, i, t, e) {
3409
3414
  const s = document.createElement("canvas"), o = s.getContext("2d"), a = i.width, l = i.height / a * 100, c = e / t * 100;
3410
3415
  let u = 0, p = 0;
3411
3416
  switch (s.width = t, s.height = e, n.previewSize) {
@@ -3419,14 +3424,14 @@ function tn(n, i, t, e) {
3419
3424
  const g = (s.width - u) * 0.5, m = (s.height - p) * 0.5;
3420
3425
  return o.drawImage(i, g, m, u, p), s;
3421
3426
  }
3422
- function en(n, i) {
3427
+ function sn(n, i) {
3423
3428
  return new Promise((t, e) => {
3424
3429
  if (i) {
3425
3430
  const s = new Image();
3426
3431
  s.src = i, s.classList.add(n.previewSize), s.onload = () => {
3427
3432
  let o = {
3428
3433
  imgElement: s,
3429
- originalCanvas: tn(n, s, s.width, s.height),
3434
+ originalCanvas: en(n, s, s.width, s.height),
3430
3435
  info: {
3431
3436
  originalWidth: s.width,
3432
3437
  originalHeight: s.height,
@@ -3439,31 +3444,31 @@ function en(n, i) {
3439
3444
  t();
3440
3445
  });
3441
3446
  }
3442
- function sn(n, i) {
3447
+ function nn(n, i) {
3443
3448
  const t = Math.pow(10, i);
3444
3449
  return Math.round(n * t) / t;
3445
3450
  }
3446
- function nn(n, i) {
3451
+ function on(n, i) {
3447
3452
  let t = n.size / 1024 / 1024;
3448
- return `${sn(t, 2)}` <= i;
3453
+ return `${nn(t, 2)}` <= i;
3449
3454
  }
3450
- function on(n, i, t) {
3455
+ function an(n, i, t) {
3451
3456
  if (n.target.files.length <= 0)
3452
3457
  return;
3453
3458
  const e = n.target.files[0], s = i.closest("[data-upload-item]");
3454
3459
  let o = new FileReader();
3455
3460
  o.onload = (a) => {
3456
3461
  const r = e.type.split("/")[0] === "image" ? a.target.result : null;
3457
- if (t.params.sizeLimit && !nn(e, t.params.sizeLimit)) {
3462
+ if (t.params.sizeLimit && !on(e, t.params.sizeLimit)) {
3458
3463
  i.value = "", s.classList.add("over-limit"), t.params.on.overLimit && typeof t.params.on.overLimit == "function" && t.params.on.overLimit(i, t.params.sizeLimit);
3459
3464
  return;
3460
3465
  } else
3461
- s.classList.remove("over-limit"), s.classList.add("uploaded"), en(t.params, r).then((l) => {
3462
- Ks(i, t, e, l);
3466
+ s.classList.remove("over-limit"), s.classList.add("uploaded"), sn(t.params, r).then((l) => {
3467
+ tn(i, t, e, l);
3463
3468
  });
3464
3469
  }, o.readAsDataURL(e);
3465
3470
  }
3466
- class an {
3471
+ class rn {
3467
3472
  constructor(i, t) {
3468
3473
  const e = this;
3469
3474
  e.el = i, e.params = {
@@ -3491,67 +3496,67 @@ class an {
3491
3496
  previewSize: e.dataset.previewSize || i.params.previewSize,
3492
3497
  compress: e.dataset.compress || i.params.compress,
3493
3498
  on: {
3494
- changeAfter: Xe(e.dataset.changeAfter, i.params.on.changeAfter),
3495
- overLimit: Xe(e.dataset.overLimit, i.params.on.overLimit)
3499
+ changeAfter: Fe(e.dataset.changeAfter, i.params.on.changeAfter),
3500
+ overLimit: Fe(e.dataset.overLimit, i.params.on.overLimit)
3496
3501
  }
3497
3502
  };
3498
3503
  i.params = o, typeof uploadImage[`${o.group}`] > "u" && (uploadImage[`${o.group}`] = []), e.dataset.group || (e.dataset.group = o.group), e.dataset.index = document.querySelectorAll(`[data-group="${o.group}"]`).length - 1, e.addEventListener("change", function(a) {
3499
- on(a, e, i);
3504
+ an(a, e, i);
3500
3505
  });
3501
3506
  }));
3502
3507
  }
3503
3508
  }
3504
3509
  export {
3505
- Qe as A,
3506
- En as B,
3507
- Js as C,
3508
- ki as D,
3509
- An as E,
3510
- Ln as F,
3511
- Sn as G,
3512
- Dn as H,
3513
- Vs as I,
3510
+ Ve as A,
3511
+ An as B,
3512
+ Zs as C,
3513
+ $i as D,
3514
+ Ln as E,
3515
+ Sn as F,
3516
+ Dn as G,
3517
+ kn as H,
3518
+ Ks as I,
3514
3519
  _n as J,
3515
- kn as K,
3516
- $n as L,
3520
+ $n as K,
3521
+ xn as L,
3517
3522
  J as M,
3518
- xn as N,
3519
- Cn as O,
3520
- Hn as P,
3521
- Mn as Q,
3522
- Qs as R,
3523
- qn as S,
3524
- Yi as T,
3525
- In as U,
3526
- On as V,
3527
- Nn as W,
3528
- Pn as X,
3529
- jn as Y,
3523
+ Cn as N,
3524
+ Hn as O,
3525
+ Mn as P,
3526
+ qn as Q,
3527
+ Vs as R,
3528
+ In as S,
3529
+ Ui as T,
3530
+ On as U,
3531
+ Nn as V,
3532
+ Pn as W,
3533
+ jn as X,
3534
+ zn as Y,
3530
3535
  w as a,
3531
3536
  lt as b,
3532
- Ts as c,
3533
- ws as d,
3537
+ Es as c,
3538
+ Ts as d,
3534
3539
  Y as e,
3535
3540
  A as f,
3536
3541
  S as g,
3537
- gn as h,
3542
+ fn as h,
3538
3543
  rt as i,
3539
- ui as j,
3540
- Gs as k,
3541
- Fs as l,
3542
- an as m,
3543
- Hs as n,
3544
- zn as o,
3545
- fn as p,
3546
- Ei as q,
3547
- Ai as r,
3548
- ys as s,
3549
- vn as t,
3550
- bn as u,
3551
- qs as v,
3552
- yn as w,
3553
- Cs as x,
3554
- wn as y,
3555
- Tn as z
3544
+ hi as j,
3545
+ Rs as k,
3546
+ Ys as l,
3547
+ rn as m,
3548
+ Ms as n,
3549
+ Wn as o,
3550
+ vn as p,
3551
+ Ai as q,
3552
+ Li as r,
3553
+ ws as s,
3554
+ bn as t,
3555
+ yn as u,
3556
+ Is as v,
3557
+ wn as w,
3558
+ Hs as x,
3559
+ Tn as y,
3560
+ En as z
3556
3561
  };
3557
3562
  //# sourceMappingURL=image-preview-bundle.js.map