@xwadex/fesd 0.0.64 → 0.0.65

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,6 +1,6 @@
1
- var Is = Object.defineProperty;
2
- var qs = (n, i, t) => i in n ? Is(n, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[i] = t;
3
- var Ke = (n, i, t) => (qs(n, typeof i != "symbol" ? i + "" : i, t), t), Ms = (n, i, t) => {
1
+ var js = Object.defineProperty;
2
+ var zs = (n, i, t) => i in n ? js(n, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[i] = t;
3
+ var si = (n, i, t) => (zs(n, typeof i != "symbol" ? i + "" : i, t), t), Bs = (n, i, t) => {
4
4
  if (!i.has(n))
5
5
  throw TypeError("Cannot " + t);
6
6
  };
@@ -9,15 +9,15 @@ var p = (n, i, t) => {
9
9
  throw TypeError("Cannot add the same private member more than once");
10
10
  i instanceof WeakSet ? i.add(n) : i.set(n, t);
11
11
  };
12
- var d = (n, i, t) => (Ms(n, i, "access private method"), t);
12
+ var d = (n, i, t) => (Bs(n, i, "access private method"), t);
13
13
  import f from "jquery";
14
- import { OverlayScrollbars as Fe } from "overlayscrollbars";
14
+ import { OverlayScrollbars as Ve } from "overlayscrollbars";
15
15
  import "./vendor-bundle.js";
16
16
  import "validator";
17
17
  import "flatpickr";
18
- import li from "vanilla-lazyload";
19
- import { lock as Os, unlock as Ps } from "tua-body-scroll-lock";
20
- const xe = {
18
+ import hi from "vanilla-lazyload";
19
+ import { lock as Ws, unlock as Gs } from "tua-body-scroll-lock";
20
+ const He = {
21
21
  SETTINGS: {
22
22
  videoId: null,
23
23
  videoType: null,
@@ -78,7 +78,7 @@ const xe = {
78
78
  TEMPLATE() {
79
79
  return '<div class="player-container"><div class="player-wrapper"></div></div>';
80
80
  }
81
- }, Ns = {
81
+ }, Rs = {
82
82
  SETTINGS: {
83
83
  success: null,
84
84
  text: null,
@@ -135,7 +135,7 @@ const xe = {
135
135
  gap: 30
136
136
  // 跑馬燈內容之間的距離 - Number
137
137
  }
138
- }, Je = {
138
+ }, ti = {
139
139
  SETTINGS: {
140
140
  scrollbar: {
141
141
  "scrollbar-track-color": "transparent",
@@ -163,7 +163,7 @@ const xe = {
163
163
  </div>`;
164
164
  return t || r;
165
165
  }
166
- }, js = {
166
+ }, Xs = {
167
167
  SETTINGS: {
168
168
  basic_rwd: 900,
169
169
  markdownLink: !1,
@@ -172,7 +172,7 @@ const xe = {
172
172
  navigation: !1,
173
173
  scrollStep: !1
174
174
  }
175
- }, ci = {
175
+ }, mi = {
176
176
  SETTINGS: {
177
177
  scroller: window,
178
178
  class: "aost-show",
@@ -195,7 +195,7 @@ const xe = {
195
195
  enter: null,
196
196
  leave: null
197
197
  }
198
- }, bt = {
198
+ }, wt = {
199
199
  SETTINGS: {
200
200
  target: null,
201
201
  container: null,
@@ -213,7 +213,7 @@ const xe = {
213
213
  beforeScroll: null,
214
214
  afterScroll: null
215
215
  }
216
- }, M = {
216
+ }, q = {
217
217
  SETTINGS: {
218
218
  type: "drag",
219
219
  drag: {
@@ -255,7 +255,7 @@ const xe = {
255
255
  return `<dropdown-el${n.placeholder ? ` d4-placeholder="${n.placeholder}"` : ""}${n.value ? ` d4-value="${n.value}"` : ""}></dropdown-el>`;
256
256
  }
257
257
  }
258
- }, di = {
258
+ }, gi = {
259
259
  SETTINGS: {
260
260
  // 樣式 normal / process
261
261
  type: "normal",
@@ -275,7 +275,7 @@ const xe = {
275
275
  // 步驟狀態綁定
276
276
  stepOutput: ".step-show"
277
277
  }
278
- }, ui = {
278
+ }, fi = {
279
279
  SETTINGS: {
280
280
  collapseClass: "collapse",
281
281
  block: "[collapse-block]",
@@ -308,7 +308,7 @@ const xe = {
308
308
  update: null,
309
309
  afterUpdate: null
310
310
  }
311
- }, pi = {
311
+ }, vi = {
312
312
  SETTINGS: {
313
313
  // 是否要加 hover 效果?
314
314
  hover: !0,
@@ -323,29 +323,29 @@ const xe = {
323
323
  // hover 毫秒 ?
324
324
  speed: 600
325
325
  }
326
- }, In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
326
+ }, jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
327
327
  __proto__: null,
328
- anchor4: bt,
329
- aost4: ci,
330
- article4: js,
331
- collapse4: ui,
332
- dropdown4: Je,
328
+ anchor4: wt,
329
+ aost4: mi,
330
+ article4: Xs,
331
+ collapse4: fi,
332
+ dropdown4: ti,
333
333
  marquee4: I,
334
334
  modal4: j,
335
- multipurpose4: M,
336
- ripple4: pi,
337
- share4: Ns,
338
- tab4: di,
339
- video4: xe
335
+ multipurpose4: q,
336
+ ripple4: vi,
337
+ share4: Rs,
338
+ tab4: gi,
339
+ video4: He
340
340
  }, Symbol.toStringTag, { value: "Module" })), S = {
341
341
  before: "beforebegin",
342
342
  after: "afterend",
343
343
  append: "beforeend",
344
344
  prepend: "afterbegin"
345
- }, mt = (n) => typeof n == "string" && n !== "", $e = (n) => n instanceof HTMLElement, gt = (n) => n instanceof NodeList, A = (n) => _(n) !== null, G = (n) => typeof n == "function", _ = (n) => $e(n) ? n : document.querySelector(n), D = (n) => gt(n) ? n : document.querySelectorAll(n), zs = () => Math.random().toString(36).substr(2, 9), Bs = (n) => {
345
+ }, ft = (n) => typeof n == "string" && n !== "", Ie = (n) => n instanceof HTMLElement, vt = (n) => n instanceof NodeList, A = (n) => _(n) !== null, G = (n) => typeof n == "function", _ = (n) => Ie(n) ? n : document.querySelector(n), D = (n) => vt(n) ? n : document.querySelectorAll(n), Us = () => Math.random().toString(36).substr(2, 9), Ys = (n) => {
346
346
  const i = document.createElement("div");
347
347
  return i.innerHTML = n, i.childNodes;
348
- }, Ws = (n) => {
348
+ }, Fs = (n) => {
349
349
  try {
350
350
  JSON.parse(n);
351
351
  } catch {
@@ -354,7 +354,7 @@ const xe = {
354
354
  return JSON.parse(n);
355
355
  }, E = (n, i) => {
356
356
  console.warn(`[${n} warn]: ${i}`);
357
- }, Ve = (n, i) => {
357
+ }, ni = (n, i) => {
358
358
  console.error(`[${n} error]: ${i}`);
359
359
  }, z = {
360
360
  on(n, i) {
@@ -387,7 +387,7 @@ const xe = {
387
387
  G(s) && s.apply(this, e);
388
388
  }), this) : this;
389
389
  }
390
- }, Gs = {
390
+ }, Js = {
391
391
  easeInOutCirc(n, i, t, e) {
392
392
  return (n /= e / 2) < 1 ? -t / 2 * (Math.sqrt(1 - n * n) - 1) + i : t / 2 * (Math.sqrt(1 - (n -= 2) * n) + 1) + i;
393
393
  },
@@ -397,7 +397,7 @@ const xe = {
397
397
  easeOutQuart(n, i, t, e) {
398
398
  return -t * ((n = n / e - 1) * n * n * n - 1) + i;
399
399
  }
400
- }, Ce = (n, i) => {
400
+ }, Me = (n, i) => {
401
401
  const { target: t, container: e, spacer: s, speed: o, gap: a, easing: r, direction: l } = n, c = l === "horizontal", u = c ? "scrollLeft" : "scrollTop", h = c ? "left" : "top", g = c ? "width" : "height", m = A(e) ? _(e) : document.scrollingElement, v = m[u], w = A(t) ? _(t).getBoundingClientRect()[h] : 0 - v, b = A(s) ? _(s).getBoundingClientRect()[g] : 0, T = w - a - b, C = 15;
402
402
  let y = 0;
403
403
  if (T === 0)
@@ -409,21 +409,21 @@ const xe = {
409
409
  L("beforeScroll");
410
410
  const O = () => {
411
411
  y += C;
412
- const k = Gs[r](y, v, T, o);
412
+ const k = Js[r](y, v, T, o);
413
413
  m[u] = k, y < o && requestAnimationFrame(O), y >= o && L("afterScroll");
414
414
  };
415
415
  requestAnimationFrame(O);
416
416
  };
417
- var tt, He, Et, mi, At, gi;
418
- class hi {
417
+ var tt, qe, St, yi, Lt, wi;
418
+ class bi {
419
419
  constructor(i, t = {}) {
420
420
  p(this, tt);
421
- p(this, Et);
422
- p(this, At);
421
+ p(this, St);
422
+ p(this, Lt);
423
423
  this.__storage__ = {
424
424
  el: i,
425
425
  options: t
426
- }, this.active = "data-anchor-active", d(this, tt, He).call(this);
426
+ }, this.active = "data-anchor-active", d(this, tt, qe).call(this);
427
427
  }
428
428
  destroy() {
429
429
  const { elements: i } = this;
@@ -433,39 +433,39 @@ class hi {
433
433
  }
434
434
  update() {
435
435
  var i;
436
- return d(i = this.destroy(), tt, He).call(i), this.emit("afterUpdate"), this;
436
+ return d(i = this.destroy(), tt, qe).call(i), this.emit("afterUpdate"), this;
437
437
  }
438
438
  static run(i) {
439
- const { SETTINGS: t } = bt, e = Object.assign({}, t, i);
439
+ const { SETTINGS: t } = wt, e = Object.assign({}, t, i);
440
440
  setTimeout(() => {
441
- Ce(e);
441
+ Me(e);
442
442
  }, e.delay);
443
443
  }
444
444
  static url(i) {
445
- const { SETTINGS: t } = bt, { 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()}"]`);
445
+ const { SETTINGS: t } = wt, { 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()}"]`);
446
446
  if (!a)
447
447
  return;
448
448
  const r = Object.assign({}, t, i, { target: a });
449
449
  setTimeout(() => {
450
- Ce(r);
450
+ Me(r);
451
451
  }, r.delay);
452
452
  }
453
453
  }
454
- tt = new WeakSet(), He = function() {
454
+ tt = new WeakSet(), qe = function() {
455
455
  const { el: i, options: t } = this.__storage__;
456
- if (!mt(i) || !A(i))
456
+ if (!ft(i) || !A(i))
457
457
  return;
458
- const { SETTINGS: e, EVENTS: s } = bt;
458
+ const { SETTINGS: e, EVENTS: s } = wt;
459
459
  if (this.elements = t.state == "not active" ? D(i + `:not([${this.active}])`) : D(i), this.elements = D(i), this.options = Object.assign({}, e, t), this.__events__ = Object.assign({}, s), this.options.on)
460
460
  for (const [o, a] of Object.entries(this.options.on))
461
461
  this.__events__[o] = [a];
462
- d(this, Et, mi).call(this);
463
- }, Et = new WeakSet(), mi = function() {
462
+ d(this, St, yi).call(this);
463
+ }, St = new WeakSet(), yi = function() {
464
464
  const { elements: i, options: t } = this;
465
465
  i.forEach((e) => {
466
- e.anchor = {}, e.anchor.instance = this, e.anchor.eventHandler = d(this, At, gi), 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, "");
466
+ e.anchor = {}, e.anchor.instance = this, e.anchor.eventHandler = d(this, Lt, wi), 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, "");
467
467
  }), this.emit("afterInit");
468
- }, At = new WeakSet(), gi = function() {
468
+ }, Lt = new WeakSet(), wi = function() {
469
469
  const { defaultOptions: i, eventHandler: t, instance: e } = this.anchor, s = {
470
470
  target: this.getAttribute("data-anchor-target") || i.target,
471
471
  container: this.getAttribute("data-anchor-container") || i.container,
@@ -479,12 +479,12 @@ tt = new WeakSet(), He = function() {
479
479
  this.removeEventListener("click", t), setTimeout(() => {
480
480
  this.addEventListener("click", t);
481
481
  }, s.speed), setTimeout(() => {
482
- Ce(s, e);
482
+ Me(s, e);
483
483
  }, s.delay);
484
484
  };
485
- Object.assign(hi.prototype, z);
485
+ Object.assign(bi.prototype, z);
486
486
  window.MODALS || (window.MODALS = {});
487
- const { MODALS: P } = window, Rs = (n) => {
487
+ const { MODALS: P } = window, Zs = (n) => {
488
488
  const { TEMPLATE: i } = j, { childDom: t } = n, e = document.createElement("div");
489
489
  e.innerHTML = i(n.getAttribute("data-modal-template-setting"));
490
490
  const s = e.querySelector(".modal-content");
@@ -492,15 +492,15 @@ const { MODALS: P } = window, Rs = (n) => {
492
492
  s.append(o);
493
493
  }), e.children[0];
494
494
  };
495
- var St, vi, Lt, bi, _t, yi, Dt, wi, kt, Ti;
496
- class fi extends HTMLElement {
495
+ var _t, Ei, Dt, Ai, kt, Si, xt, Li, $t, _i;
496
+ class Ti extends HTMLElement {
497
497
  constructor() {
498
498
  super();
499
- p(this, St);
500
- p(this, Lt);
501
499
  p(this, _t);
502
500
  p(this, Dt);
503
501
  p(this, kt);
502
+ p(this, xt);
503
+ p(this, $t);
504
504
  this.initialize = !1;
505
505
  }
506
506
  static get observedAttributes() {
@@ -509,12 +509,12 @@ class fi extends HTMLElement {
509
509
  attributeChangedCallback(t, e, s) {
510
510
  switch (t) {
511
511
  case ":state":
512
- d(this, kt, Ti).call(this, s);
512
+ d(this, $t, _i).call(this, s);
513
513
  break;
514
514
  }
515
515
  }
516
516
  connectedCallback() {
517
- this.initialize || (this.initialize = !0, d(this, St, vi).call(this));
517
+ this.initialize || (this.initialize = !0, d(this, _t, Ei).call(this));
518
518
  }
519
519
  open() {
520
520
  return this.setAttribute(":state", "open"), this;
@@ -526,22 +526,22 @@ class fi extends HTMLElement {
526
526
  return this.setAttribute(":state", "destroy"), this;
527
527
  }
528
528
  }
529
- St = new WeakSet(), vi = function() {
529
+ _t = new WeakSet(), Ei = function() {
530
530
  const { ATTRS: t } = j;
531
531
  this.__events__ = {}, this.getAttribute(":state") || this.setAttribute(":state", "close");
532
- const e = this.getAttribute(t.id) || zs();
533
- this.getAttribute(t.id) || (E(`modern-modal needs a ${t.id} attribute with a unique id.`), this.setAttribute(t.id, e)), P[e] && E(`the ${t.id} "${e}" is already be used.`), P[e] = this, d(this, Lt, bi).call(this);
534
- }, Lt = new WeakSet(), bi = function() {
535
- this.childDom = this.childNodes, this.template = Rs(this), this.innerHTML = "", this.append(this.template), d(this, _t, yi).call(this);
536
- }, _t = new WeakSet(), yi = function() {
532
+ const e = this.getAttribute(t.id) || Us();
533
+ this.getAttribute(t.id) || (E(`modern-modal needs a ${t.id} attribute with a unique id.`), this.setAttribute(t.id, e)), P[e] && E(`the ${t.id} "${e}" is already be used.`), P[e] = this, d(this, Dt, Ai).call(this);
534
+ }, Dt = new WeakSet(), Ai = function() {
535
+ this.childDom = this.childNodes, this.template = Zs(this), this.innerHTML = "", this.append(this.template), d(this, kt, Si).call(this);
536
+ }, kt = new WeakSet(), Si = function() {
537
537
  const t = this.querySelector(".modal-scroller");
538
- this.__scroller__ = Fe(t, {
538
+ this.__scroller__ = Ve(t, {
539
539
  overflowBehavior: {
540
540
  x: "hidden"
541
541
  },
542
542
  autoUpdate: !0
543
- }), window.modalScroll = this.__scroller__, d(this, Dt, wi).call(this);
544
- }, Dt = new WeakSet(), wi = function() {
543
+ }), window.modalScroll = this.__scroller__, d(this, xt, Li).call(this);
544
+ }, xt = new WeakSet(), Li = function() {
545
545
  var a, r, l;
546
546
  const t = this, { ATTRS: e } = j, { close: s, destroy: o } = e;
547
547
  (a = t.querySelectorAll(`[${s}]`)) == null || a.forEach((c) => {
@@ -557,7 +557,7 @@ St = new WeakSet(), vi = function() {
557
557
  }), (l = t.querySelector("[stop-propagation]")) == null || l.addEventListener("click", function(c) {
558
558
  c.stopPropagation();
559
559
  });
560
- }, kt = new WeakSet(), Ti = function(t) {
560
+ }, $t = new WeakSet(), _i = function(t) {
561
561
  const { __scroller__: e } = this;
562
562
  if (t === "open") {
563
563
  if (this.style.display = "block", e) {
@@ -588,22 +588,22 @@ St = new WeakSet(), vi = function() {
588
588
  this.addEventListener("transitionend", s);
589
589
  }
590
590
  };
591
- Object.assign(fi.prototype, z);
592
- const { MODALS: Ze } = window, ft = {}, Ei = (n, i, ...t) => {
591
+ Object.assign(Ti.prototype, z);
592
+ const { MODALS: ei } = window, bt = {}, Di = (n, i, ...t) => {
593
593
  if (!i)
594
594
  return;
595
595
  const e = n[i];
596
596
  e && G(e) && e.apply(n, t);
597
- }, Ai = (n, ...i) => {
597
+ }, ki = (n, ...i) => {
598
598
  n && G(n) && n.apply(V, i);
599
- }, ti = (n, i) => {
600
- const { target: t } = n, e = Ze[t] || _(n.target);
601
- e && Si(n, i), e || Xs(n, i);
602
- }, Si = (n, i) => {
603
- const { target: t, action: e, on: s, e: o } = n, a = Ze[t] || _(n.target);
599
+ }, oi = (n, i) => {
600
+ const { target: t } = n, e = ei[t] || _(n.target);
601
+ e && xi(n, i), e || Qs(n, i);
602
+ }, xi = (n, i) => {
603
+ const { target: t, action: e, on: s, e: o } = n, a = ei[t] || _(n.target);
604
604
  switch (["open", "close", "destroy"].forEach((l) => {
605
605
  a.once(l, () => {
606
- i && (i.emit(l, a, o), Ei(i, s[l], a, o)), i || Ai(s[l], a);
606
+ i && (i.emit(l, a, o), Di(i, s[l], a, o)), i || ki(s[l], a);
607
607
  });
608
608
  }), e) {
609
609
  case "open":
@@ -620,34 +620,34 @@ const { MODALS: Ze } = window, ft = {}, Ei = (n, i, ...t) => {
620
620
  l === "close" && a.open(), l === "open" && a.close();
621
621
  break;
622
622
  }
623
- }, Xs = async (n, i) => {
623
+ }, Qs = async (n, i) => {
624
624
  const { target: t, route: e, container: s, on: o, e: a } = n;
625
625
  if (!e)
626
626
  return E("modal4", "cannot find target or data-modal-route is not defined");
627
627
  const r = (l, ...c) => {
628
- i && (i.emit(l, ...c), Ei(i, o[l], ...c)), i || Ai(o[l], ...c);
628
+ i && (i.emit(l, ...c), Di(i, o[l], ...c)), i || ki(o[l], ...c);
629
629
  };
630
- ft[t] || (ft[t] = !0, fetch(e).then((l) => (r("success", a), l.text())).then((l) => {
631
- const c = Bs(l), u = _(s) || _(j.SETTINGS.container);
630
+ bt[t] || (bt[t] = !0, fetch(e).then((l) => (r("success", a), l.text())).then((l) => {
631
+ const c = Ys(l), u = _(s) || _(j.SETTINGS.container);
632
632
  [...c].forEach((g) => {
633
633
  u.append(g);
634
634
  });
635
- const h = Ze[t] || _(n.target);
636
- r("complete", h), Si(n, i), delete ft[t];
635
+ const h = ei[t] || _(n.target);
636
+ r("complete", h), xi(n, i), delete bt[t];
637
637
  }).catch((l) => {
638
- r("error", l), delete ft[t];
638
+ r("error", l), delete bt[t];
639
639
  }));
640
640
  };
641
- var et, Ie, xt, Li, $t, _i;
641
+ var et, Oe, Ct, $i, Ht, Ci;
642
642
  const B = class B {
643
643
  constructor(i, t = {}) {
644
644
  p(this, et);
645
- p(this, xt);
646
- p(this, $t);
645
+ p(this, Ct);
646
+ p(this, Ht);
647
647
  this.__storage__ = {
648
648
  el: i,
649
649
  options: t
650
- }, this.active = "data-modal-active", d(this, et, Ie).call(this);
650
+ }, this.active = "data-modal-active", d(this, et, Oe).call(this);
651
651
  }
652
652
  destroy() {
653
653
  const { elements: i } = this;
@@ -657,12 +657,12 @@ const B = class B {
657
657
  }
658
658
  update() {
659
659
  var i;
660
- return d(i = this.destroy(), et, Ie).call(i), this.emit("update"), this;
660
+ return d(i = this.destroy(), et, Oe).call(i), this.emit("update"), this;
661
661
  }
662
662
  /** static method 'open' */
663
663
  static open(i) {
664
664
  const { SETTINGS: t } = j, e = Object.assign({}, t, { on: {} }, i);
665
- ti(e);
665
+ oi(e);
666
666
  }
667
667
  /** static method 'defineMethods' */
668
668
  static defineMethods(i) {
@@ -673,22 +673,22 @@ const B = class B {
673
673
  Object.assign(B.prototype, B.prototype.__methods__);
674
674
  }
675
675
  };
676
- et = new WeakSet(), Ie = function() {
676
+ et = new WeakSet(), Oe = function() {
677
677
  const { el: i, options: t } = this.__storage__;
678
- if (!mt(i) || !A(i))
678
+ if (!ft(i) || !A(i))
679
679
  return;
680
680
  const { SETTINGS: e, EVENTS: s } = j;
681
681
  if (this.elements = t.state == "not active" ? D(i + `:not([${this.active}])`) : D(i), this.options = Object.assign({}, e, t), this.__events__ = Object.assign({}, s), this.options.on)
682
682
  for (const [o, a] of Object.entries(this.options.on))
683
683
  this.__events__[o] = [a];
684
- d(this, xt, Li).call(this);
685
- }, xt = new WeakSet(), Li = function() {
684
+ d(this, Ct, $i).call(this);
685
+ }, Ct = new WeakSet(), $i = function() {
686
686
  const { elements: i, options: t } = this;
687
687
  i.forEach((e) => {
688
- e.modal = {}, e.modal.instance = this, e.modal.eventHandler = d(this, $t, _i), 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, "");
688
+ e.modal = {}, e.modal.instance = this, e.modal.eventHandler = d(this, Ht, Ci), 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, "");
689
689
  }), this.emit("init");
690
- }, $t = new WeakSet(), _i = function(i) {
691
- const { defaultOptions: t, eventHandler: e, instance: s } = this.modal, o = Ws(this.getAttribute("data-modal-on"));
690
+ }, Ht = new WeakSet(), Ci = function(i) {
691
+ const { defaultOptions: t, eventHandler: e, instance: s } = this.modal, o = Fs(this.getAttribute("data-modal-on"));
692
692
  o && typeof o != "object" && E("modal4", "data-modal-on must be a json string.");
693
693
  const a = {
694
694
  target: this.getAttribute("data-modal-target") || t.target,
@@ -700,12 +700,12 @@ et = new WeakSet(), Ie = function() {
700
700
  };
701
701
  this.removeEventListener("click", e), setTimeout(() => {
702
702
  this.addEventListener("click", e);
703
- }, 200), ti(a, s);
703
+ }, 200), oi(a, s);
704
704
  };
705
705
  let V = B;
706
706
  Object.assign(V.prototype, z);
707
- customElements.define("modern-modal", fi);
708
- const Us = (n, i) => {
707
+ customElements.define("modern-modal", Ti);
708
+ const Ks = (n, i) => {
709
709
  const t = n === window ? n.innerHeight : n.getBoundingClientRect().height, e = n === window ? 0 : n.getBoundingClientRect().top;
710
710
  i.forEach((s) => {
711
711
  const { class: o, delay: a, start: r, end: l, repeat: c, instance: u } = s.aost, { top: h, bottom: g } = s.getBoundingClientRect(), m = t * (r / 100), v = t * (l / 100);
@@ -720,16 +720,16 @@ const Us = (n, i) => {
720
720
  }, a);
721
721
  }
722
722
  });
723
- }, Ys = (n, i) => n === "up" || n === "down" ? n : n !== null ? n === "true" ? !0 : n === "false" ? !1 : i.repeat : i.repeat;
724
- var it, qe, Ct, ki;
725
- class Di {
723
+ }, Vs = (n, i) => n === "up" || n === "down" ? n : n !== null ? n === "true" ? !0 : n === "false" ? !1 : i.repeat : i.repeat;
724
+ var it, Pe, It, Ii;
725
+ class Hi {
726
726
  constructor(i, t = {}) {
727
727
  p(this, it);
728
- p(this, Ct);
728
+ p(this, It);
729
729
  this.__storage__ = {
730
730
  el: i,
731
731
  options: t
732
- }, this.active = "data-aost-active", d(this, it, qe).call(this);
732
+ }, this.active = "data-aost-active", d(this, it, Pe).call(this);
733
733
  }
734
734
  destroy(i) {
735
735
  const { elements: t, options: e } = this;
@@ -745,58 +745,58 @@ class Di {
745
745
  }
746
746
  update(i) {
747
747
  var t;
748
- d(t = this.destroy(i), it, qe).call(t);
748
+ d(t = this.destroy(i), it, Pe).call(t);
749
749
  }
750
750
  }
751
- it = new WeakSet(), qe = function() {
751
+ it = new WeakSet(), Pe = function() {
752
752
  const { el: i, options: t } = this.__storage__;
753
- if (!mt(i) || !A(i))
753
+ if (!ft(i) || !A(i))
754
754
  return;
755
- const { SETTINGS: e, EVENTS: s } = ci;
755
+ const { SETTINGS: e, EVENTS: s } = mi;
756
756
  if (this.elements = t.state == "not active" ? D(i + `:not([${this.active}])`) : D(i), this.options = Object.assign({}, e, t), this.__events__ = Object.assign({}, s), this.options.on)
757
757
  for (const [o, a] of Object.entries(this.options.on))
758
758
  this.__events__[o] = [a];
759
- d(this, Ct, ki).call(this);
760
- }, Ct = new WeakSet(), ki = function() {
759
+ d(this, It, Ii).call(this);
760
+ }, It = new WeakSet(), Ii = function() {
761
761
  const { elements: i, options: t } = this, { scroller: e } = t, s = e === window || !A(e) ? window : _(e);
762
762
  this.eventHandler = () => {
763
- Us(s, i);
763
+ Ks(s, i);
764
764
  }, i.forEach((a) => {
765
- 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 = Ys(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, "");
765
+ 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 = Vs(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, "");
766
766
  });
767
767
  const { eventHandler: o } = this;
768
768
  o(), s.aost = {}, s.aost.eventHandler = o, s.addEventListener("scroll", s.aost.eventHandler, !1);
769
769
  };
770
- Object.assign(Di.prototype, z);
771
- const Fs = (n) => {
772
- const { TEMPLATE: i } = xe, { childDom: t } = n, e = document.createElement("div");
770
+ Object.assign(Hi.prototype, z);
771
+ const tn = (n) => {
772
+ const { TEMPLATE: i } = He, { childDom: t } = n, e = document.createElement("div");
773
773
  e.innerHTML = i();
774
774
  const s = e.querySelector(".player-wrapper");
775
775
  return [...t].forEach((o) => {
776
776
  s.append(o);
777
777
  }), e.children[0];
778
778
  };
779
- var Ht, xi, It, $i, qt, Ci, Mt, Hi, Ot, Ii, Pt, qi, Nt, Mi, jt, Oi, zt, Pi, Bt, Ni;
780
- class Js extends HTMLElement {
779
+ var Mt, Mi, qt, qi, Ot, Oi, Pt, Pi, Nt, Ni, jt, ji, zt, zi, Bt, Bi, Wt, Wi, Gt, Gi;
780
+ class en extends HTMLElement {
781
781
  constructor() {
782
782
  super();
783
- p(this, Ht);
784
- p(this, It);
785
- p(this, qt);
786
- // youtube iframe
787
783
  p(this, Mt);
788
- // vimeo iframe
784
+ p(this, qt);
789
785
  p(this, Ot);
790
- // youku iframe
786
+ // youtube iframe
791
787
  p(this, Pt);
788
+ // vimeo iframe
792
789
  p(this, Nt);
793
- // 2025.02.11 新增 ig
790
+ // youku iframe
794
791
  p(this, jt);
795
- // 2025.02.11 新增 tiktok
796
792
  p(this, zt);
797
- // 2026.01.15 新增 video
793
+ // 2025.02.11 新增 ig
798
794
  p(this, Bt);
799
- d(this, Ht, xi).call(this);
795
+ // 2025.02.11 新增 tiktok
796
+ p(this, Wt);
797
+ // 2026.01.15 新增 video
798
+ p(this, Gt);
799
+ d(this, Mt, Mi).call(this);
800
800
  }
801
801
  play() {
802
802
  const { videoType: t } = this;
@@ -833,16 +833,16 @@ class Js extends HTMLElement {
833
833
  }
834
834
  }
835
835
  }
836
- Ht = new WeakSet(), xi = function() {
836
+ Mt = new WeakSet(), Mi = function() {
837
837
  if (!this.getAttribute("video-id")) {
838
838
  E("videoPlayer", "video-render needs a ['video-id'] attribute to creat player.");
839
839
  return;
840
840
  }
841
- this.videoId = this.getAttribute("video-id"), this.videoType = this.getAttribute("video-type"), this.videoMode = this.getAttribute("video-mode"), this.autoplay = this.getAttribute("video-autoplay"), this.startTime = this.getAttribute("video-starttime"), this.videoInboxImg = this.getAttribute("video-inbox-img"), d(this, It, $i).call(this);
842
- }, It = new WeakSet(), $i = function() {
843
- this.childDom = this.childNodes, this.template = Fs(this), this.innerHTML = "", this.append(this.template), d(this, qt, Ci).call(this);
844
- }, qt = new WeakSet(), Ci = function() {
845
- const { videoType: t, videoMode: e } = this, { COOKIEDISAGREELAYOUT: s } = xe;
841
+ this.videoId = this.getAttribute("video-id"), this.videoType = this.getAttribute("video-type"), this.videoMode = this.getAttribute("video-mode"), this.autoplay = this.getAttribute("video-autoplay"), this.startTime = this.getAttribute("video-starttime"), this.videoInboxImg = this.getAttribute("video-inbox-img"), d(this, qt, qi).call(this);
842
+ }, qt = new WeakSet(), qi = function() {
843
+ this.childDom = this.childNodes, this.template = tn(this), this.innerHTML = "", this.append(this.template), d(this, Ot, Oi).call(this);
844
+ }, Ot = new WeakSet(), Oi = function() {
845
+ const { videoType: t, videoMode: e } = this, { COOKIEDISAGREELAYOUT: s } = He;
846
846
  let o = "";
847
847
  function a(r) {
848
848
  f(r).addClass("cookie-disagree"), f(".cookie-disagree").append(s);
@@ -851,71 +851,71 @@ Ht = new WeakSet(), xi = function() {
851
851
  case "youtubeAPI":
852
852
  break;
853
853
  case "youtube":
854
- document.body.wd_youtube == !1 ? a("video-player") : o = d(this, Mt, Hi).call(this);
854
+ document.body.wd_youtube == !1 ? a("video-player") : o = d(this, Pt, Pi).call(this);
855
855
  break;
856
856
  case "youkuAPI":
857
857
  break;
858
858
  case "youku":
859
- document.body.wd_youku == !1 ? a("video-player") : o = d(this, Pt, qi).call(this);
859
+ document.body.wd_youku == !1 ? a("video-player") : o = d(this, jt, ji).call(this);
860
860
  break;
861
861
  case "vimeo":
862
- document.body.wd_vimeo == !1 ? a("video-player") : o = d(this, Ot, Ii).call(this);
862
+ document.body.wd_vimeo == !1 ? a("video-player") : o = d(this, Nt, Ni).call(this);
863
863
  break;
864
864
  case "bilibili":
865
- document.body.wd_bilibili == !1 ? a("video-player") : o = d(this, Nt, Mi).call(this);
865
+ document.body.wd_bilibili == !1 ? a("video-player") : o = d(this, zt, zi).call(this);
866
866
  break;
867
867
  case "instagram":
868
- document.body.wd_instagram == !1 ? a(".instagram-media") : o = d(this, jt, Oi).call(this);
868
+ document.body.wd_instagram == !1 ? a(".instagram-media") : o = d(this, Bt, Bi).call(this);
869
869
  break;
870
870
  case "tiktok":
871
- document.body.wd_tiktok == !1 ? a("video-player") : o = d(this, zt, Pi).call(this);
871
+ document.body.wd_tiktok == !1 ? a("video-player") : o = d(this, Wt, Wi).call(this);
872
872
  break;
873
873
  case "videojs":
874
874
  break;
875
875
  case "video":
876
- o = d(this, Bt, Ni).call(this);
876
+ o = d(this, Gt, Gi).call(this);
877
877
  break;
878
878
  }
879
879
  this.querySelector(".player-wrapper").insertAdjacentHTML(S.prepend, o);
880
- }, Mt = new WeakSet(), Hi = function() {
880
+ }, Pt = new WeakSet(), Pi = function() {
881
881
  const { videoId: t, autoplay: e, startTime: s } = this;
882
882
  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>`;
883
- }, Ot = new WeakSet(), Ii = function() {
883
+ }, Nt = new WeakSet(), Ni = function() {
884
884
  const { videoId: t, autoplay: e, hash: s } = this;
885
885
  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>`;
886
- }, Pt = new WeakSet(), qi = function() {
886
+ }, jt = new WeakSet(), ji = function() {
887
887
  const { videoId: t, autoplay: e } = this;
888
888
  return `<iframe src="https://player.youku.com/embed/${t}?rel=0&${e === "on" ? "autoplay=1" : ""}" frameborder=0 "allowfullscreen"></iframe>`;
889
- }, Nt = new WeakSet(), Mi = function() {
889
+ }, zt = new WeakSet(), zi = function() {
890
890
  const { videoId: t, autoplay: e } = this;
891
891
  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>`;
892
- }, jt = new WeakSet(), Oi = function() {
892
+ }, Bt = new WeakSet(), Bi = function() {
893
893
  const { videoId: t, autoplay: e } = this;
894
894
  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>`;
895
- }, zt = new WeakSet(), Pi = function() {
895
+ }, Wt = new WeakSet(), Wi = function() {
896
896
  const { videoId: t, autoplay: e } = this;
897
897
  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>`;
898
- }, Bt = new WeakSet(), Ni = function() {
898
+ }, Gt = new WeakSet(), Gi = function() {
899
899
  const { videoId: t, autoplay: e } = this;
900
900
  return `<video src="${t}" ${e == "on" ? "autoplay" : ""} muted playsinline controls></video>`;
901
901
  };
902
902
  let Q = 0;
903
- function ji(n) {
903
+ function Ri(n) {
904
904
  const i = [];
905
905
  return (n || []).forEach((t) => {
906
906
  t instanceof HTMLElement ? i.push(t) : typeof t == "string" && i.push(...document.querySelectorAll(t));
907
907
  }), i;
908
908
  }
909
- function zi(n) {
910
- const i = ji(n);
911
- Q += 1, Q === 1 && document.documentElement.classList.add("scrollLock"), Os(i);
909
+ function Xi(n) {
910
+ const i = Ri(n);
911
+ Q += 1, Q === 1 && document.documentElement.classList.add("scrollLock"), Ws(i);
912
912
  }
913
- function Bi(n) {
913
+ function Ui(n) {
914
914
  Q = Math.max(0, Q - 1);
915
- const i = ji(n);
916
- Ps(i), Q === 0 && document.documentElement.classList.remove("scrollLock");
915
+ const i = Ri(n);
916
+ Gs(i), Q === 0 && document.documentElement.classList.remove("scrollLock");
917
917
  }
918
- async function qn(n = 0) {
918
+ async function zn(n = 0) {
919
919
  if (f(".loading-wrapper").length)
920
920
  return;
921
921
  f("body").append(`
@@ -929,30 +929,30 @@ async function qn(n = 0) {
929
929
  </div>
930
930
  </div>
931
931
  `), f(".loading-wrapper").delay(n).fadeIn(300).promise().done(function() {
932
- zi();
932
+ Xi();
933
933
  });
934
934
  }
935
- function Mn() {
935
+ function Bn() {
936
936
  f(".loading-wrapper").fadeOut(300).promise().done(function() {
937
- f(".loading-wrapper").remove(), Bi();
937
+ f(".loading-wrapper").remove(), Ui();
938
938
  });
939
939
  }
940
- function On(n, i) {
941
- new Sn(n, i);
940
+ function Wn(n, i) {
941
+ new $n(n, i);
942
942
  }
943
- function Zs() {
944
- const n = document.querySelector("[data-aost]") && new Di("[data-aost]"), i = document.querySelector("[data-anchor-target]") && new hi("[data-anchor-target]"), t = new li({ callback_loaded: () => {
945
- } }), e = new vn();
943
+ function sn() {
944
+ const n = document.querySelector("[data-aost]") && new Hi("[data-aost]"), i = document.querySelector("[data-anchor-target]") && new bi("[data-anchor-target]"), t = new hi({ callback_loaded: () => {
945
+ } }), e = new An();
946
946
  n == null || n.update(), t.update(), e.reValidate(), i == null || i.update();
947
947
  }
948
- function Pn(n, i = () => {
948
+ function Gn(n, i = () => {
949
949
  }) {
950
950
  f(`[data-tab-content=${n}]`).fadeIn(function() {
951
951
  typeof i == "function" && i();
952
- }).siblings("[data-tab-content]").hide(), Zs();
952
+ }).siblings("[data-tab-content]").hide(), sn();
953
953
  }
954
- function Nn() {
955
- Fe(
954
+ function Rn() {
955
+ Ve(
956
956
  {
957
957
  target: document.body,
958
958
  cancel: {
@@ -976,31 +976,31 @@ function Nn() {
976
976
  }
977
977
  );
978
978
  }
979
- function jn() {
979
+ function Xn() {
980
980
  window.onpageshow = function(n) {
981
981
  n.persisted && window.location.reload();
982
982
  };
983
983
  }
984
- function zn() {
984
+ function Un() {
985
985
  const n = navigator.userAgent;
986
986
  return {
987
987
  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)
988
988
  };
989
989
  }
990
- function Bn(n, i) {
990
+ function Yn(n, i) {
991
991
  f(n).on("click", function() {
992
992
  f(this).toggleClass(i);
993
993
  });
994
994
  }
995
- function Wn(n, i) {
995
+ function Fn(n, i) {
996
996
  f(n).on("click", function() {
997
997
  f(n).not(this).removeClass(i), f(this).addClass(i);
998
998
  });
999
999
  }
1000
- const Gn = (n) => new Promise((i) => {
1000
+ const Jn = (n) => new Promise((i) => {
1001
1001
  let t = setTimeout(() => (clearTimeout(t), i()), n);
1002
1002
  });
1003
- function Qs(n, i = 250) {
1003
+ function nn(n, i = 250) {
1004
1004
  let t = null;
1005
1005
  return function(...e) {
1006
1006
  let s = this;
@@ -1009,7 +1009,7 @@ function Qs(n, i = 250) {
1009
1009
  }, i);
1010
1010
  };
1011
1011
  }
1012
- function Rn(n, i = 250) {
1012
+ function Zn(n, i = 250) {
1013
1013
  let t, e;
1014
1014
  return function() {
1015
1015
  const s = this, o = arguments, a = +/* @__PURE__ */ new Date();
@@ -1018,7 +1018,7 @@ function Rn(n, i = 250) {
1018
1018
  }, i)) : (t = a, n.apply(s, o));
1019
1019
  };
1020
1020
  }
1021
- function Xn() {
1021
+ function Qn() {
1022
1022
  window._g.interval = [], f(".countdown").each((i, t) => {
1023
1023
  const e = Number(f(t).attr("data-seconds")) + 1;
1024
1024
  let s = Math.floor(e / 60) + ":" + e % 60;
@@ -1028,21 +1028,21 @@ function Xn() {
1028
1028
  }, 1e3);
1029
1029
  });
1030
1030
  }
1031
- function Un(n = 500) {
1031
+ function Kn(n = 500) {
1032
1032
  return new Promise((i, t) => {
1033
1033
  let e = setTimeout(() => {
1034
1034
  clearTimeout(e), i();
1035
1035
  }, n);
1036
1036
  });
1037
1037
  }
1038
- function Yn() {
1038
+ function Vn() {
1039
1039
  const n = function() {
1040
1040
  let i = window.innerHeight * 0.01;
1041
1041
  document.documentElement.style.setProperty("--vh", i + "px");
1042
1042
  };
1043
- n(), window.addEventListener("resize", Qs(n));
1043
+ n(), window.addEventListener("resize", nn(n));
1044
1044
  }
1045
- function Fn(n, i, t, e, s) {
1045
+ function to(n, i, t, e, s) {
1046
1046
  const o = this, r = f(n).html().split("<br>");
1047
1047
  let l = "", c = 0;
1048
1048
  r.forEach((u, h) => {
@@ -1051,11 +1051,11 @@ function Fn(n, i, t, e, s) {
1051
1051
  });
1052
1052
  }), f(n).html(l);
1053
1053
  }
1054
- function Jn(n, i) {
1054
+ function eo(n, i) {
1055
1055
  const t = Math.pow(10, i);
1056
1056
  return Math.round(n * t) / t;
1057
1057
  }
1058
- function Zn(n) {
1058
+ function io(n) {
1059
1059
  let i = n.activeIndex, t = n.slides.length;
1060
1060
  if (n.params.loop)
1061
1061
  switch (n.activeIndex) {
@@ -1070,18 +1070,18 @@ function Zn(n) {
1070
1070
  }
1071
1071
  return i;
1072
1072
  }
1073
- function Qn(n, i) {
1073
+ function so(n, i) {
1074
1074
  const t = n.$el, e = n.params.grid.rows, s = i || n.params.slidesPerView * e;
1075
1075
  (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());
1076
1076
  }
1077
- function Kn(n) {
1077
+ function no(n) {
1078
1078
  n.el.querySelectorAll("img.detect-shade").forEach((i) => {
1079
1079
  i.addEventListener("load", function() {
1080
1080
  detectShade(i);
1081
1081
  });
1082
1082
  });
1083
1083
  }
1084
- function Vn(n) {
1084
+ function oo(n) {
1085
1085
  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");
1086
1086
  n.autoplay.stop(), f(e).off("ended"), e ? (s.each((o, a) => {
1087
1087
  a.currentTime = 0;
@@ -1089,7 +1089,7 @@ function Vn(n) {
1089
1089
  n.slideNext();
1090
1090
  }), e.play()) : n.params.autoplay.enabled && n.autoplay.start();
1091
1091
  }
1092
- function to() {
1092
+ function ao() {
1093
1093
  f(".number-grow").each(function(n, i) {
1094
1094
  const t = f(i), o = t.attr("data-num").replace(/(\d)(?=(?:\d{3})+$)/g, "$1,").split(""), a = () => {
1095
1095
  let r = "";
@@ -1103,7 +1103,7 @@ function to() {
1103
1103
  });
1104
1104
  });
1105
1105
  }
1106
- function eo() {
1106
+ function ro() {
1107
1107
  f(".letter-grow").each(function(n, i) {
1108
1108
  const t = f(i), s = t.attr("data-letter").split(""), o = () => {
1109
1109
  let a = "";
@@ -1117,47 +1117,47 @@ function eo() {
1117
1117
  });
1118
1118
  });
1119
1119
  }
1120
- function io(n) {
1120
+ function lo(n) {
1121
1121
  const i = getComputedStyle(n).transform;
1122
1122
  let t = i.match(/^matrix3d\((.+)\)$/);
1123
1123
  return t ? parseFloat(t[1].split(", ")[12]) : (t = i.match(/^matrix\((.+)\)$/), t ? parseFloat(t[1].split(", ")[4]) : 0);
1124
1124
  }
1125
- function so(n) {
1125
+ function co(n) {
1126
1126
  const i = getComputedStyle(n).transform;
1127
1127
  let t = i.match(/^matrix3d\((.+)\)$/);
1128
1128
  return t ? parseFloat(t[1].split(", ")[13]) : (t = i.match(/^matrix\((.+)\)$/), t ? parseFloat(t[1].split(", ")[5]) : 0);
1129
1129
  }
1130
- function no(n) {
1130
+ function uo(n) {
1131
1131
  const i = document.createElement("div");
1132
1132
  return i.innerHTML = n, i.childNodes[0];
1133
1133
  }
1134
- const ei = (n) => n.videoId !== "" || typeof n.videoId < "u", Ks = (n) => n.$selector.getAttribute("video4-active") === "on", vt = (n) => `<video-player video-id="${n.videoId}" video-type="${n.videoType}" video-startTime="${n.videoStartTime}" video-autoplay="${n.videoAutoplay}"></video-player>`, ii = (n) => (console.log(n.videoId, "params.videoId"), `<blockquote class="instagram-media" data-instgrm-captioned data-instgrm-permalink="${n.videoId}"></blockquote>`);
1135
- var st, Oe, Wt, Wi, nt, Pe, ot, Ne, Gt, Gi, at, je, Rt, Ri;
1134
+ const ai = (n) => n.videoId !== "" || typeof n.videoId < "u", on = (n) => n.$selector.getAttribute("video4-active") === "on", yt = (n) => `<video-player video-id="${n.videoId}" video-type="${n.videoType}" video-startTime="${n.videoStartTime}" video-autoplay="${n.videoAutoplay}"></video-player>`, ri = (n) => (console.log(n.videoId, "params.videoId"), `<blockquote class="instagram-media" data-instgrm-captioned data-instgrm-permalink="${n.videoId}"></blockquote>`);
1135
+ var st, je, Rt, Yi, nt, ze, ot, Be, Xt, Fi, at, We, Ut, Ji;
1136
1136
  const X = class X {
1137
1137
  //*-* 給Article4用的 **//
1138
1138
  constructor(i, t = {}) {
1139
1139
  p(this, st);
1140
- p(this, Wt);
1140
+ p(this, Rt);
1141
1141
  p(this, nt);
1142
1142
  p(this, ot);
1143
- p(this, Gt);
1143
+ p(this, Xt);
1144
1144
  p(this, at);
1145
- p(this, Rt);
1146
- if (!mt(i) && !$e(i) && !gt(i)) {
1147
- Ve("video4", `找不到該物件 -> ${i}`);
1145
+ p(this, Ut);
1146
+ if (!ft(i) && !Ie(i) && !vt(i)) {
1147
+ ni("video4", `找不到該物件 -> ${i}`);
1148
1148
  return;
1149
1149
  }
1150
1150
  this.__storage__ = {
1151
1151
  el: i,
1152
1152
  options: t
1153
- }, this.active = "data-video-active", d(this, st, Oe).call(this);
1153
+ }, this.active = "data-video-active", d(this, st, je).call(this);
1154
1154
  }
1155
1155
  update() {
1156
- d(this, st, Oe).call(this);
1156
+ d(this, st, je).call(this);
1157
1157
  }
1158
1158
  };
1159
- st = new WeakSet(), Oe = function() {
1160
- const { el: i, options: t } = this.__storage__, { SETTINGS: e, EVENTS: s, LAYOUT: o } = xe;
1159
+ st = new WeakSet(), je = function() {
1160
+ const { el: i, options: t } = this.__storage__, { SETTINGS: e, EVENTS: s, LAYOUT: o } = He;
1161
1161
  if (t.isGlobal && (X.globalOptions = t), this.elements = t.state == "not active" ? D(i + `:not([${this.active}])`) : D(i), this.options = Object.assign(
1162
1162
  {},
1163
1163
  { LAYOUT: o },
@@ -1171,18 +1171,18 @@ st = new WeakSet(), Oe = function() {
1171
1171
  ), this.__events__ = Object.assign({}, s), this.options.on)
1172
1172
  for (const [a, r] of Object.entries(this.options.on))
1173
1173
  this.__events__[a] = [r];
1174
- d(this, Wt, Wi).call(this);
1175
- }, Wt = new WeakSet(), Wi = function() {
1174
+ d(this, Rt, Yi).call(this);
1175
+ }, Rt = new WeakSet(), Yi = function() {
1176
1176
  const { elements: i, options: t } = this;
1177
1177
  i.forEach((e) => {
1178
- e.video = {}, e.video.instance = this, e.video.defaultOptions = t, e.video.params = d(this, Rt, Ri).call(this, e), e.video.methods = {}, e.video.methods.update = this.update, e.setAttribute(this.active, ""), ei(e.video.params) && !Ks(e.video.params) && (e.setAttribute("video4-active", "on"), d(this, Gt, Gi).call(this, e)), ei(e.video.params) || Ve("video4", "無法取得影片 ID");
1178
+ e.video = {}, e.video.instance = this, e.video.defaultOptions = t, e.video.params = d(this, Ut, Ji).call(this, e), e.video.methods = {}, e.video.methods.update = this.update, e.setAttribute(this.active, ""), ai(e.video.params) && !on(e.video.params) && (e.setAttribute("video4-active", "on"), d(this, Xt, Fi).call(this, e)), ai(e.video.params) || ni("video4", "無法取得影片 ID");
1179
1179
  }), this.emit("init");
1180
- }, nt = new WeakSet(), Pe = function(i) {
1180
+ }, nt = new WeakSet(), ze = function(i) {
1181
1181
  const { $selector: t, videoId: e, videoType: s, videoInboxImg: o, videoHighQualityPic: a } = i, r = t == null ? void 0 : t.querySelector("img"), l = (r == null ? void 0 : r.getAttribute("src")) || (r == null ? void 0 : r.getAttribute("data-src"));
1182
1182
  return o ? Promise.resolve(o) : l ? Promise.resolve(l) : s == "youtube" ? a == "on" ? Promise.resolve(`https://img.youtube.com/vi/${e}/maxresdefault.jpg`) : Promise.resolve(`https://img.youtube.com/vi/${e}/0.jpg`) : s == "vimeo" ? Promise.resolve(`https://vumbnail.com/${e}_large.jpg`) : s == "tiktok" ? fetch(`https://www.tiktok.com/oembed?url=https://www.tiktok.com/@/video/${e}`, { method: "GET", redirect: "follow" }).then((c) => c.json()).then((c) => c.thumbnail_url).catch(function() {
1183
1183
  return "";
1184
1184
  }) : Promise.resolve("");
1185
- }, ot = new WeakSet(), Ne = function(i, t) {
1185
+ }, ot = new WeakSet(), Be = function(i, t) {
1186
1186
  const { videoType: e, videoId: s } = t;
1187
1187
  if (!(i != null && i.getAttribute("src") || i != null && i.getAttribute("data-src"))) {
1188
1188
  if (e === "video") {
@@ -1195,11 +1195,11 @@ st = new WeakSet(), Oe = function() {
1195
1195
  };
1196
1196
  return;
1197
1197
  }
1198
- d(this, nt, Pe).call(this, t).then((a) => {
1198
+ d(this, nt, ze).call(this, t).then((a) => {
1199
1199
  a ? i.setAttribute("src", `${a}`) : E("video4", "僅 youtube & vimeo 提供,無圖片時放置預設封面畫面,其他影片平台請自行上傳封面照片");
1200
1200
  });
1201
1201
  }
1202
- }, Gt = new WeakSet(), Gi = function(i) {
1202
+ }, Xt = new WeakSet(), Fi = function(i) {
1203
1203
  const { LAYOUT: t } = this.options, e = i.video.params, { $selector: s, videoLayoutNo: o, videoId: a, videoType: r, videoMode: l, videoButton: c, videoCover: u, videoHighQualityPic: h } = e;
1204
1204
  if (l === "onBox" || l === "inBox") {
1205
1205
  let g = null;
@@ -1207,7 +1207,7 @@ st = new WeakSet(), Oe = function() {
1207
1207
  i.classList.add("video4-cover"), s.querySelector("img") || (s.insertAdjacentHTML(S.prepend, '<picture><source srcset="" type="image/webp"><source srcset="" type="image/jpeg"><img src="" alt></picture>'), E("video4", "若啟用 [videoCover] 且選擇 onBox 模式必須於 video-target 內放置 img 結構,若無結構則自動加入圖片結構"));
1208
1208
  const m = s.querySelector("img"), v = (m == null ? void 0 : m.getAttribute("src")) || (m == null ? void 0 : m.getAttribute("data-src")), w = t[o] ? t[o] : t[0] || "";
1209
1209
  if (w ? m.insertAdjacentHTML(S.after, w) : E("video4", `找不到對應的 LAYOUT 設定 (No: ${o}),且無預設樣式。`), !v)
1210
- d(this, ot, Ne).call(this, m, e);
1210
+ d(this, ot, Be).call(this, m, e);
1211
1211
  else if (!v && r == "youtube")
1212
1212
  h == "on" ? m.setAttribute("src", `https://img.youtube.com/vi/${a}/maxresdefault.jpg `) : m.setAttribute("src", `https://img.youtube.com/vi/${a}/0.jpg`);
1213
1213
  else if (!v && r == "vimeo")
@@ -1228,7 +1228,7 @@ st = new WeakSet(), Oe = function() {
1228
1228
  console.log("error");
1229
1229
  }) : E("video4", "僅 youtube & vimeo 提供,無圖片時放置預設封面畫面,其他影片平台請自行上傳封面照片");
1230
1230
  }
1231
- 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.instance = this), g.video.eventHandler = d(this, at, je), g.addEventListener("click", g.video.eventHandler);
1231
+ 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.instance = this), g.video.eventHandler = d(this, at, We), g.addEventListener("click", g.video.eventHandler);
1232
1232
  } else if (l === "onPage") {
1233
1233
  let g = null;
1234
1234
  if (u == "on") {
@@ -1241,14 +1241,14 @@ st = new WeakSet(), Oe = function() {
1241
1241
  m.setAttribute("src", `${b}`);
1242
1242
  }).catch(function(w) {
1243
1243
  console.log("error");
1244
- }) : v || E("video4", "僅 youtube & vimeo 提供,無圖片時放置預設封面畫面,其他影片平台請自行上傳封面照片") : d(this, ot, Ne).call(this, m, e), c == "off" ? g = s : (g = s.querySelector(c) ?? s, s.querySelector(c) || E("video4", `找不到 videoButton 設定的 element -> '${c}', 點擊物件轉移至 '${this.__storage__.el}'`));
1244
+ }) : v || E("video4", "僅 youtube & vimeo 提供,無圖片時放置預設封面畫面,其他影片平台請自行上傳封面照片") : d(this, ot, Be).call(this, m, e), c == "off" ? g = s : (g = s.querySelector(c) ?? s, s.querySelector(c) || E("video4", `找不到 videoButton 設定的 element -> '${c}', 點擊物件轉移至 '${this.__storage__.el}'`));
1245
1245
  } else {
1246
- s.innerHTML = vt(e);
1246
+ s.innerHTML = yt(e);
1247
1247
  return;
1248
1248
  }
1249
- g.video || (g.video = {}, g.video.params = e), g.video.eventHandler = d(this, at, je), g.addEventListener("click", g.video.eventHandler);
1249
+ g.video || (g.video = {}, g.video.params = e), g.video.eventHandler = d(this, at, We), g.addEventListener("click", g.video.eventHandler);
1250
1250
  }
1251
- }, at = new WeakSet(), je = function(i) {
1251
+ }, at = new WeakSet(), We = function(i) {
1252
1252
  const { video: t } = this, e = t.instance, {
1253
1253
  $selector: s,
1254
1254
  videoMode: o,
@@ -1262,7 +1262,7 @@ st = new WeakSet(), Oe = function() {
1262
1262
  videoButton: m,
1263
1263
  videoLayoutNo: v,
1264
1264
  videoStartTime: w
1265
- } = t.params, b = new li({ callback_loaded: (C) => {
1265
+ } = t.params, b = new hi({ callback_loaded: (C) => {
1266
1266
  } }), T = new URLSearchParams({
1267
1267
  video_mode: o,
1268
1268
  video_type: u,
@@ -1275,12 +1275,12 @@ st = new WeakSet(), Oe = function() {
1275
1275
  on: {
1276
1276
  complete(y) {
1277
1277
  var L, O;
1278
- o == "onBox" && (u == "instagram" ? (y.setAttribute("video-typeStyle", `${u}`), (L = window.instgrm) != null && L.Embeds ? (y.querySelector(".modal-content").insertAdjacentHTML("beforeend", ii(t.params)), window.instgrm.Embeds.process()) : console.log("window.instgrm is undefined")) : (y.querySelector(".modal-content").insertAdjacentHTML("beforeend", vt(t.params)), y.setAttribute("video-typeStyle", `${u}`))), o == "inBox" && (y.setAttribute("video-typeStyle", `${u}`), u == "instagram" && ((O = window.instgrm) != null && O.Embeds ? (y.querySelector(".modal-content").insertAdjacentHTML("beforeend", ii(t.params)), window.instgrm.Embeds.process()) : console.log("window.instgrm is undefined")));
1278
+ o == "onBox" && (u == "instagram" ? (y.setAttribute("video-typeStyle", `${u}`), (L = window.instgrm) != null && L.Embeds ? (y.querySelector(".modal-content").insertAdjacentHTML("beforeend", ri(t.params)), window.instgrm.Embeds.process()) : console.log("window.instgrm is undefined")) : (y.querySelector(".modal-content").insertAdjacentHTML("beforeend", yt(t.params)), y.setAttribute("video-typeStyle", `${u}`))), o == "inBox" && (y.setAttribute("video-typeStyle", `${u}`), u == "instagram" && ((O = window.instgrm) != null && O.Embeds ? (y.querySelector(".modal-content").insertAdjacentHTML("beforeend", ri(t.params)), window.instgrm.Embeds.process()) : console.log("window.instgrm is undefined")));
1279
1279
  },
1280
1280
  open(y) {
1281
1281
  var O;
1282
1282
  const L = y.querySelectorAll("[data-overlayscrollbars-viewport]");
1283
- if (b.update(), zi([...L]), u == "instagram") {
1283
+ if (b.update(), Xi([...L]), u == "instagram") {
1284
1284
  const k = document.querySelector("[video-template] .modal-content");
1285
1285
  new ResizeObserver((J) => {
1286
1286
  J[0].contentRect.height > 50 && k.classList.add("active");
@@ -1292,7 +1292,7 @@ st = new WeakSet(), Oe = function() {
1292
1292
  else {
1293
1293
  let k;
1294
1294
  const F = y.querySelector(".video-content");
1295
- d(O = e, nt, Pe).call(O, t.params).then((J) => {
1295
+ d(O = e, nt, ze).call(O, t.params).then((J) => {
1296
1296
  k = `
1297
1297
  <div
1298
1298
  class="photo-box"
@@ -1316,8 +1316,8 @@ st = new WeakSet(), Oe = function() {
1316
1316
  <img src="${J || ""}" alt="" />
1317
1317
  </picture>
1318
1318
  </div>`, F.insertAdjacentHTML(S.prepend, k);
1319
- const Qe = y.querySelectorAll("[video-target]");
1320
- Qe.length > 0 && new X(Qe, {
1319
+ const ii = y.querySelectorAll("[video-target]");
1320
+ ii.length > 0 && new X(ii, {
1321
1321
  LAYOUT: t.params.LAYOUT,
1322
1322
  videoLayoutNo: t.params.videoLayoutNo
1323
1323
  });
@@ -1327,7 +1327,7 @@ st = new WeakSet(), Oe = function() {
1327
1327
  },
1328
1328
  close(y) {
1329
1329
  const L = y.querySelectorAll("[data-overlayscrollbars-viewport]");
1330
- Bi([...L]), e == null || e.emit("closeModal");
1330
+ Ui([...L]), e == null || e.emit("closeModal");
1331
1331
  },
1332
1332
  destroy(y) {
1333
1333
  }
@@ -1338,13 +1338,13 @@ st = new WeakSet(), Oe = function() {
1338
1338
  if (t.params.videoAutoplay = "on", r == "off") {
1339
1339
  if (s.querySelector("video-player"))
1340
1340
  return;
1341
- s.innerHTML = vt(t.params);
1341
+ s.innerHTML = yt(t.params);
1342
1342
  return;
1343
1343
  } else {
1344
- (s.querySelector(r) ?? s).insertAdjacentHTML("beforeend", vt(t.params));
1344
+ (s.querySelector(r) ?? s).insertAdjacentHTML("beforeend", yt(t.params));
1345
1345
  return;
1346
1346
  }
1347
- }, Rt = new WeakSet(), Ri = function(i) {
1347
+ }, Ut = new WeakSet(), Ji = function(i) {
1348
1348
  const t = this.options;
1349
1349
  return {
1350
1350
  $selector: i,
@@ -1364,11 +1364,11 @@ st = new WeakSet(), Oe = function() {
1364
1364
  videoInboxImg: i.getAttribute("video-inbox-img") || t.videoInboxImgHtml,
1365
1365
  LAYOUT: t.LAYOUT || []
1366
1366
  };
1367
- }, Ke(X, "globalOptions", {});
1368
- let Me = X;
1369
- Object.assign(Me.prototype, z);
1370
- customElements.define("video-player", Js);
1371
- const Vs = {
1367
+ }, si(X, "globalOptions", {});
1368
+ let Ne = X;
1369
+ Object.assign(Ne.prototype, z);
1370
+ customElements.define("video-player", en);
1371
+ const an = {
1372
1372
  "zh-tw": {
1373
1373
  臺北市: [
1374
1374
  ["中正區", "100"],
@@ -2199,8 +2199,8 @@ const Vs = {
2199
2199
  }
2200
2200
  };
2201
2201
  let K;
2202
- const tn = (n) => {
2203
- const { TEMPLATE: i } = Je, { 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");
2202
+ const rn = (n) => {
2203
+ const { TEMPLATE: i } = ti, { 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");
2204
2204
  e.innerHTML = i(
2205
2205
  s,
2206
2206
  o,
@@ -2213,14 +2213,14 @@ const tn = (n) => {
2213
2213
  (!h.hasAttribute("data-option") || h.getAttribute("data-option").trim() === "") && h.setAttribute("data-option", h.textContent.trim());
2214
2214
  }) : (!c.hasAttribute("data-option") || c.getAttribute("data-option").trim() === "") && c.setAttribute("data-option", c.textContent.trim())), l.append(c);
2215
2215
  }), e.children[0];
2216
- }, en = (n) => {
2216
+ }, ln = (n) => {
2217
2217
  var t;
2218
2218
  const i = (t = n.getAttribute("control-elements")) == null ? void 0 : t.split(",");
2219
2219
  i && i.forEach((e) => {
2220
2220
  const s = document.querySelector(e);
2221
- s || E("dropdown", `Can't not find control element(${e})`), s && s.classList.contains("disabled") && (s.classList.remove("disabled"), s.tagName === "DROPDOWN-EL" && s.s.activeLi && q(s, [...s.s.allLi].indexOf(s.s.activeLi)));
2221
+ s || E("dropdown", `Can't not find control element(${e})`), s && s.classList.contains("disabled") && (s.classList.remove("disabled"), s.tagName === "DROPDOWN-EL" && s.s.activeLi && M(s, [...s.s.allLi].indexOf(s.s.activeLi)));
2222
2222
  });
2223
- }, q = (n, i) => {
2223
+ }, M = (n, i) => {
2224
2224
  const t = n.getAttribute("d4-placeholder"), e = n.s.dropdownEl.querySelectorAll(".dropdown-list li");
2225
2225
  if (i < 0 || i.length === 0) {
2226
2226
  switch (e.forEach((s) => {
@@ -2272,44 +2272,44 @@ const tn = (n) => {
2272
2272
  break;
2273
2273
  }
2274
2274
  }
2275
- }, sn = (n) => {
2275
+ }, cn = (n) => {
2276
2276
  const i = n.s.cityLang;
2277
- f("#newCityData").length > 0 ? f("#newCityData").val() !== "" && (K = JSON.parse(f("#newCityData").val())[0], console.log([0])) : K = Vs, n.classList.contains("city") && (n.s.dropdownEl.querySelector(".dropdown-list").innerHTML = "", Object.keys(K[i]).forEach((t) => {
2277
+ f("#newCityData").length > 0 ? f("#newCityData").val() !== "" && (K = JSON.parse(f("#newCityData").val())[0], console.log([0])) : K = an, n.classList.contains("city") && (n.s.dropdownEl.querySelector(".dropdown-list").innerHTML = "", Object.keys(K[i]).forEach((t) => {
2278
2278
  const e = document.createElement("li");
2279
2279
  e.textContent = t, e.setAttribute("data-option", t), n.s.dropdownEl.querySelector(".dropdown-list").append(e);
2280
2280
  }), n.s.allLi = n.s.dropdownEl.querySelectorAll(".dropdown-list li"));
2281
- }, nn = (n, i) => {
2281
+ }, dn = (n, i) => {
2282
2282
  const t = n.s.cityLang;
2283
2283
  K[t][i].forEach((e, s) => {
2284
2284
  const o = document.createElement("li");
2285
2285
  o.textContent = e[0], o.setAttribute("data-option", e[0]), n.s.dropdownEl.querySelector(".dropdown-list").append(o);
2286
2286
  });
2287
- }, ze = () => {
2287
+ }, Ge = () => {
2288
2288
  D('dropdown-el[d4-status="open"]').forEach((i) => {
2289
2289
  i.close();
2290
2290
  });
2291
- }, on = () => {
2292
- const { SETTINGS: n } = Je;
2291
+ }, un = () => {
2292
+ const { SETTINGS: n } = ti;
2293
2293
  ((t, e) => {
2294
2294
  Object.keys(e).forEach((s) => {
2295
2295
  t.style.setProperty(`--${s}`, e[s]);
2296
2296
  });
2297
2297
  })(document.documentElement, n.scrollbar);
2298
2298
  };
2299
- on();
2299
+ un();
2300
2300
  document.addEventListener("click", function() {
2301
- ze();
2301
+ Ge();
2302
2302
  });
2303
- var Xt, Ui, Ut, Yi, rt, Be, Yt, Fi, Ft, Ji;
2304
- class Xi extends HTMLElement {
2303
+ var Yt, Qi, Ft, Ki, rt, Re, Jt, Vi, Zt, ts;
2304
+ class Zi extends HTMLElement {
2305
2305
  constructor() {
2306
2306
  super();
2307
- p(this, Xt);
2308
- p(this, Ut);
2309
- // -** 獨立 dropdown 出 body 更新
2310
- p(this, rt);
2311
2307
  p(this, Yt);
2312
2308
  p(this, Ft);
2309
+ // -** 獨立 dropdown 出 body 更新
2310
+ p(this, rt);
2311
+ p(this, Jt);
2312
+ p(this, Zt);
2313
2313
  this.initialize = !1;
2314
2314
  }
2315
2315
  static get observedAttributes() {
@@ -2330,7 +2330,7 @@ class Xi extends HTMLElement {
2330
2330
  switch (o.hasAttribute("multiple") ? "multiple" : "single") {
2331
2331
  case "single":
2332
2332
  const r = o.s.dropdownEl.querySelector(`.dropdown-list li[data-option="${s}"]`);
2333
- A(r) ? q(o, [...o.s.allLi].indexOf(r)) : q(o, -1);
2333
+ A(r) ? M(o, [...o.s.allLi].indexOf(r)) : M(o, -1);
2334
2334
  break;
2335
2335
  case "multiple":
2336
2336
  const l = [];
@@ -2339,23 +2339,23 @@ class Xi extends HTMLElement {
2339
2339
  A(h) && (h.classList.add("active"), l.push(h));
2340
2340
  });
2341
2341
  const c = l.map((u) => [...o.s.allLi].indexOf(u));
2342
- q(o, c);
2342
+ M(o, c);
2343
2343
  break;
2344
2344
  }
2345
2345
  else
2346
- q(o, -1);
2346
+ M(o, -1);
2347
2347
  o.emit("change");
2348
2348
  break;
2349
2349
  case "d4-placeholder":
2350
2350
  if (e === null)
2351
2351
  return;
2352
- e !== s && o.s.value.index < 0 && q(o, o.s.value.index);
2352
+ e !== s && o.s.value.index < 0 && M(o, o.s.value.index);
2353
2353
  break;
2354
2354
  }
2355
2355
  }
2356
2356
  connectedCallback() {
2357
2357
  const t = this;
2358
- t.initialize || t.classList.contains("d4-initialize") || (t.initialize = !0, d(this, Xt, Ui).call(this));
2358
+ t.initialize || t.classList.contains("d4-initialize") || (t.initialize = !0, d(this, Yt, Qi).call(this));
2359
2359
  }
2360
2360
  disconnectedCallback() {
2361
2361
  this.s && this.s.dropdownEl && this.s.dropdownEl.parentNode === document.body && document.body.removeChild(this.s.dropdownEl);
@@ -2363,7 +2363,7 @@ class Xi extends HTMLElement {
2363
2363
  open() {
2364
2364
  const t = this;
2365
2365
  let e;
2366
- t.getAttribute("d4-portal") == "true" ? (ze(), t.s.dropdownEl.parentNode !== document.body && document.body.appendChild(t.s.dropdownEl), t.__scroller__ || t.__events__.bindScrollbar(), e = t.s.dropdownEl.querySelector(".dropdown-scroller").clientHeight) : e = t.querySelector(".dropdown-scroller").clientHeight;
2366
+ t.getAttribute("d4-portal") == "true" ? (Ge(), t.s.dropdownEl.parentNode !== document.body && document.body.appendChild(t.s.dropdownEl), t.__scroller__ || t.__events__.bindScrollbar(), e = t.s.dropdownEl.querySelector(".dropdown-scroller").clientHeight) : e = t.querySelector(".dropdown-scroller").clientHeight;
2367
2367
  const s = t.classList.contains("filter"), o = () => {
2368
2368
  if (t.getAttribute("d4-portal") == "true") {
2369
2369
  if (s)
@@ -2382,10 +2382,10 @@ class Xi extends HTMLElement {
2382
2382
  const c = o() + t.s.subDropdownTotalH;
2383
2383
  return c > r ? r : c;
2384
2384
  };
2385
- return t.getAttribute("d4-portal") !== "true" && ze(), t.setAttribute("d4-status", "open"), t.setAttribute("d4-default-height", o()), t.getAttribute("d4-portal") == "true" ? (t.s.dropdownEl.style.setProperty("--maxHeight", `${l()}px`), t.s.dropdownEl.style.zIndex = "9999", d(this, rt, Be).call(this), t.s.dropdownEl.offsetHeight, t.s.dropdownEl.style.height = `${l()}px`, t.__events__._scrollUpdate = () => {
2385
+ return t.getAttribute("d4-portal") !== "true" && Ge(), t.setAttribute("d4-status", "open"), t.setAttribute("d4-default-height", o()), t.getAttribute("d4-portal") == "true" ? (t.s.dropdownEl.style.setProperty("--maxHeight", `${l()}px`), t.s.dropdownEl.style.zIndex = "9999", d(this, rt, Re).call(this), t.s.dropdownEl.offsetHeight, t.s.dropdownEl.style.height = `${l()}px`, t.__events__._scrollUpdate = () => {
2386
2386
  var u;
2387
2387
  const c = t.getBoundingClientRect();
2388
- c.bottom < 0 || c.top > window.innerHeight ? t.close() : d(u = t, rt, Be).call(u);
2388
+ c.bottom < 0 || c.top > window.innerHeight ? t.close() : d(u = t, rt, Re).call(u);
2389
2389
  }, window.addEventListener("scroll", t.__events__._scrollUpdate, { passive: !0, capture: !0 }), window.addEventListener("resize", t.__events__._scrollUpdate, { passive: !0 })) : (t.style.cssText = `--maxHeight: ${l()}px;`, t.s.dropdownEl.style.cssText = `
2390
2390
  height: ${l()}px;
2391
2391
  z-index: 2;
@@ -2408,19 +2408,19 @@ class Xi extends HTMLElement {
2408
2408
  this.__events__.selectOption();
2409
2409
  }
2410
2410
  }
2411
- Xt = new WeakSet(), Ui = function() {
2412
- this.s = {}, this.__events__ = {}, this.hasAttribute("d4-status") || this.setAttribute("d4-status", "close"), this.hasAttribute("d4-value") || this.setAttribute("d4-value", ""), d(this, Ut, Yi).call(this);
2413
- }, Ut = new WeakSet(), Yi = function() {
2414
- this.s.childDom = this.childNodes, this.s.template = tn(this), this.innerHTML = "", this.append(this.s.template), this.s.dropdownEl = this.querySelector(".dropdown"), this.getAttribute("d4-portal") === "true" && (this.s.dropdownEl.setAttribute("data-d4-portal", ""), document.body.appendChild(this.s.dropdownEl)), d(this, Yt, Fi).call(this);
2415
- }, rt = new WeakSet(), Be = function() {
2411
+ Yt = new WeakSet(), Qi = function() {
2412
+ this.s = {}, this.__events__ = {}, this.hasAttribute("d4-status") || this.setAttribute("d4-status", "close"), this.hasAttribute("d4-value") || this.setAttribute("d4-value", ""), d(this, Ft, Ki).call(this);
2413
+ }, Ft = new WeakSet(), Ki = function() {
2414
+ this.s.childDom = this.childNodes, this.s.template = rn(this), this.innerHTML = "", this.append(this.s.template), this.s.dropdownEl = this.querySelector(".dropdown"), this.getAttribute("d4-portal") === "true" && (this.s.dropdownEl.setAttribute("data-d4-portal", ""), document.body.appendChild(this.s.dropdownEl)), d(this, Jt, Vi).call(this);
2415
+ }, rt = new WeakSet(), Re = function() {
2416
2416
  const t = this, e = t.getBoundingClientRect(), s = t.s.dropdownEl;
2417
2417
  s.style.position = "fixed", s.style.overflow = "hidden", s.style.left = `${e.left}px`, s.style.width = `${e.width}px`;
2418
2418
  const o = parseInt(s.style.height) || s.scrollHeight;
2419
2419
  window.innerHeight - e.bottom < o && e.top > o ? (s.style.top = "auto", s.style.bottom = `${window.innerHeight - e.top + 5}px`) : (s.style.top = `${e.bottom + 5}px`, s.style.bottom = "auto");
2420
- }, Yt = new WeakSet(), Fi = function() {
2420
+ }, Jt = new WeakSet(), Vi = function() {
2421
2421
  var s;
2422
2422
  const t = this;
2423
- t.s.allLi = t.s.dropdownEl.querySelectorAll(".dropdown-list li"), t.s.selectDisplayEl = t.querySelector(".select-display"), t.s.selectType = t.hasAttribute("multiple") ? "multiple" : "single", t.s.cityLang = t.hasAttribute("city-lang") ? t.getAttribute("city-lang") : "zh-tw", sn(t), t.s.subDropdownTotalH = 0;
2423
+ t.s.allLi = t.s.dropdownEl.querySelectorAll(".dropdown-list li"), t.s.selectDisplayEl = t.querySelector(".select-display"), t.s.selectType = t.hasAttribute("multiple") ? "multiple" : "single", t.s.cityLang = t.hasAttribute("city-lang") ? t.getAttribute("city-lang") : "zh-tw", cn(t), t.s.subDropdownTotalH = 0;
2424
2424
  const e = t.getAttribute("d4-value");
2425
2425
  switch (t.s.selectType) {
2426
2426
  case "single":
@@ -2429,7 +2429,7 @@ Xt = new WeakSet(), Ui = function() {
2429
2429
  const r = document.querySelector(`dropdown-el[dist-select="${t.id}"]`), l = r ? r.getAttribute("d4-value") !== "" : !1;
2430
2430
  if (r && l) {
2431
2431
  const c = r.getAttribute("d4-value");
2432
- if (nn(t, c), t.s.allLi = t.s.dropdownEl.querySelectorAll(".dropdown-list li"), t.classList.remove("disabled"), t.getAttribute("d4-value") !== "") {
2432
+ if (dn(t, c), t.s.allLi = t.s.dropdownEl.querySelectorAll(".dropdown-list li"), t.classList.remove("disabled"), t.getAttribute("d4-value") !== "") {
2433
2433
  const u = e.split(",")[1];
2434
2434
  o = t.s.dropdownEl.querySelector(`.dropdown-list li[data-option="${u}"]`), t.setAttribute("d4-value", u);
2435
2435
  }
@@ -2462,8 +2462,8 @@ Xt = new WeakSet(), Ui = function() {
2462
2462
  };
2463
2463
  break;
2464
2464
  }
2465
- q(t, t.s.value.index), d(s = t, Ft, Ji).call(s), t.classList.add("d4-initialize");
2466
- }, Ft = new WeakSet(), Ji = function() {
2465
+ M(t, t.s.value.index), d(s = t, Zt, ts).call(s), t.classList.add("d4-initialize");
2466
+ }, Zt = new WeakSet(), ts = function() {
2467
2467
  const t = this;
2468
2468
  t.__events__.dropdownToggle = () => {
2469
2469
  t.addEventListener("click", function(e) {
@@ -2509,7 +2509,7 @@ Xt = new WeakSet(), Ui = function() {
2509
2509
  t.s.dropdownEl.addEventListener("transitionend", e);
2510
2510
  }, t.__events__.bindScrollbar = (e = this) => {
2511
2511
  const s = e.s.dropdownEl.querySelector(".dropdown-scroller");
2512
- e.__scroller__ = Fe(s, {
2512
+ e.__scroller__ = Ve(s, {
2513
2513
  overflowBehavior: {
2514
2514
  x: "hidden"
2515
2515
  }
@@ -2534,11 +2534,11 @@ Xt = new WeakSet(), Ui = function() {
2534
2534
  };
2535
2535
  v.addEventListener("transitionend", L);
2536
2536
  } else
2537
- switch (en(e), e.s.selectType) {
2537
+ switch (ln(e), e.s.selectType) {
2538
2538
  case "single":
2539
2539
  if (e.setAttribute("d4-value", u.getAttribute("data-option")), r) {
2540
2540
  const v = e.s.cityLang, w = l.textContent.trim(), b = document.getElementById(e.getAttribute("dist-select"));
2541
- b && (b.s.dropdownEl.querySelector(".dropdown-list").textContent = "", q(b, -1), K[v][w].forEach((T, C) => {
2541
+ b && (b.s.dropdownEl.querySelector(".dropdown-list").textContent = "", M(b, -1), K[v][w].forEach((T, C) => {
2542
2542
  const y = document.createElement("li");
2543
2543
  y.textContent = T[0], y.setAttribute("data-option", T[0]), e.getAttribute("d4-portal") == "true" ? b.s.dropdownEl.querySelector(".dropdown-list").append(y) : b.querySelector(".dropdown-list").append(y);
2544
2544
  }), e.__events__.selectOption(b));
@@ -2546,7 +2546,7 @@ Xt = new WeakSet(), Ui = function() {
2546
2546
  (e.getAttribute("d4-portal") == "true" || (m = u.parentNode.closest("li")) != null && m.classList.contains("has-sublayer")) && (c.stopPropagation(), e.close());
2547
2547
  break;
2548
2548
  case "multiple":
2549
- c.stopPropagation(), u.classList.toggle("active"), q(e, h);
2549
+ c.stopPropagation(), u.classList.toggle("active"), M(e, h);
2550
2550
  break;
2551
2551
  }
2552
2552
  });
@@ -2579,9 +2579,9 @@ Xt = new WeakSet(), Ui = function() {
2579
2579
  });
2580
2580
  }, t.__events__.dropdownToggle(), t.getAttribute("d4-portal") != "true" && t.__events__.bindScrollbar(), t.__events__.selectOption(), t.__events__.filterHandler(), t.__events__.removeTag(), t.__events__.transitionend();
2581
2581
  };
2582
- Object.assign(Xi.prototype, z);
2583
- customElements.define("dropdown-el", Xi);
2584
- function yt(n) {
2582
+ Object.assign(Zi.prototype, z);
2583
+ customElements.define("dropdown-el", Zi);
2584
+ function Tt(n) {
2585
2585
  const i = {};
2586
2586
  return [...n.attributes].forEach((t) => {
2587
2587
  if (t.name.includes("duration-")) {
@@ -2590,10 +2590,10 @@ function yt(n) {
2590
2590
  }
2591
2591
  }), Object.keys(i).length === 0 ? null : i;
2592
2592
  }
2593
- function si(n) {
2594
- if (yt(n)) {
2593
+ function li(n) {
2594
+ if (Tt(n)) {
2595
2595
  let i;
2596
- const t = Object.keys(yt(n)).map((e) => ({
2596
+ const t = Object.keys(Tt(n)).map((e) => ({
2597
2597
  value: e,
2598
2598
  point: e
2599
2599
  }));
@@ -2602,11 +2602,11 @@ function si(n) {
2602
2602
  const { point: s, value: o } = t[e];
2603
2603
  window.matchMedia(`(max-width: ${o}px)`).matches && (i = s);
2604
2604
  }
2605
- return i ? Number(yt(n)[i]) : n.s.options.duration;
2605
+ return i ? Number(Tt(n)[i]) : n.s.options.duration;
2606
2606
  } else
2607
2607
  return n.s.options.duration;
2608
2608
  }
2609
- function an(n) {
2609
+ function pn(n) {
2610
2610
  const { behavior: i, continual: t, gap: e } = n.s.options, s = n.childNodes, o = document.createElement("div"), a = document.createElement("div");
2611
2611
  o.className = "animate-container", a.className = "animate-item", [...s].forEach((l) => {
2612
2612
  a.append(l);
@@ -2673,20 +2673,20 @@ function H(n) {
2673
2673
  }
2674
2674
  return s;
2675
2675
  }
2676
- function rn(n) {
2676
+ function hn(n) {
2677
2677
  let i;
2678
2678
  return function(t) {
2679
2679
  i && clearTimeout(i), i = setTimeout(n, 200, t);
2680
2680
  };
2681
2681
  }
2682
- var Jt, Zi, Zt, Qi, Qt, Ki, Kt, Vi;
2683
- class ln extends HTMLElement {
2682
+ var Qt, es, Kt, is, Vt, ss, te, ns;
2683
+ class mn extends HTMLElement {
2684
2684
  constructor() {
2685
2685
  super();
2686
- p(this, Jt);
2687
- p(this, Zt);
2688
2686
  p(this, Qt);
2689
2687
  p(this, Kt);
2688
+ p(this, Vt);
2689
+ p(this, te);
2690
2690
  this.initialize = !1;
2691
2691
  }
2692
2692
  static get observedAttributes() {
@@ -2695,7 +2695,7 @@ class ln extends HTMLElement {
2695
2695
  attributeChangedCallback(t, e, s) {
2696
2696
  }
2697
2697
  connectedCallback() {
2698
- this.initialize || (this.initialize = !0, d(this, Jt, Zi).call(this));
2698
+ this.initialize || (this.initialize = !0, d(this, Qt, es).call(this));
2699
2699
  }
2700
2700
  play() {
2701
2701
  this.s.animation.play(), this.s.animateEl.classList.add("start"), this.s.options.continual && (this.s.cloneAnimation.play(), this.s.cloneAnimateEl.classList.add("start"));
@@ -2704,7 +2704,7 @@ class ln extends HTMLElement {
2704
2704
  this.s.animation.pause(), this.s.options.continual && this.s.cloneAnimation.pause();
2705
2705
  }
2706
2706
  }
2707
- Jt = new WeakSet(), Zi = function() {
2707
+ Qt = new WeakSet(), es = function() {
2708
2708
  const t = {
2709
2709
  direction: this.getAttribute("direction") || I.SETTINGS.direction,
2710
2710
  // up / down / left / right
@@ -2712,7 +2712,7 @@ Jt = new WeakSet(), Zi = function() {
2712
2712
  // normal / alternate / endStop
2713
2713
  duration: Number(this.getAttribute("duration")) || I.SETTINGS.duration,
2714
2714
  // ms
2715
- durationBreakpoints: yt(this) || I.SETTINGS.durationBreakpoints,
2715
+ durationBreakpoints: Tt(this) || I.SETTINGS.durationBreakpoints,
2716
2716
  autoplay: this.getAttribute("autoplay") || I.SETTINGS.autoplay,
2717
2717
  // normal / alternate / endStop
2718
2718
  pauseOnMouseenter: this.getAttribute("pauseOnMouseEnter") ? this.getAttribute("pauseOnMouseEnter") === "true" : I.SETTINGS.pauseOnMouseenter,
@@ -2721,8 +2721,8 @@ Jt = new WeakSet(), Zi = function() {
2721
2721
  // true / false
2722
2722
  gap: Number(this.getAttribute("gap")) || I.SETTINGS.gap
2723
2723
  };
2724
- this.s = {}, this.s.options = t, this.s.nowDuration = si(this), an(this), d(this, Zt, Qi).call(this);
2725
- }, Zt = new WeakSet(), Qi = function() {
2724
+ this.s = {}, this.s.options = t, this.s.nowDuration = li(this), pn(this), d(this, Kt, is).call(this);
2725
+ }, Kt = new WeakSet(), is = function() {
2726
2726
  const { direction: t, continual: e, gap: s } = this.s.options;
2727
2727
  switch (t) {
2728
2728
  case "left":
@@ -2734,8 +2734,8 @@ Jt = new WeakSet(), Zi = function() {
2734
2734
  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;`;
2735
2735
  break;
2736
2736
  }
2737
- d(this, Qt, Ki).call(this), d(this, Kt, Vi).call(this), e && this.classList.add("continual"), this.classList.add("m4-initialize");
2738
- }, Qt = new WeakSet(), Ki = function() {
2737
+ d(this, Vt, ss).call(this), d(this, te, ns).call(this), e && this.classList.add("continual"), this.classList.add("m4-initialize");
2738
+ }, Vt = new WeakSet(), ss = function() {
2739
2739
  const t = this, { direction: e, behavior: s, duration: o, autoplay: a, pauseOnMouseenter: r, continual: l } = t.s.options;
2740
2740
  let c;
2741
2741
  function u() {
@@ -2800,11 +2800,11 @@ Jt = new WeakSet(), Zi = function() {
2800
2800
  }), t.addEventListener("mouseleave", function() {
2801
2801
  t.s.animation && r && t.s.animation.playState === "paused" && t.play();
2802
2802
  });
2803
- }, Kt = new WeakSet(), Vi = function() {
2803
+ }, te = new WeakSet(), ns = function() {
2804
2804
  const t = this;
2805
2805
  function e() {
2806
2806
  const s = t.s.animation.startTime, o = t.s.cloneAnimation ? t.s.cloneAnimation.startTime : null;
2807
- t.s.nowDuration = si(t), t.s.animation.cancel(), t.s.cloneAnimation && t.s.cloneAnimation.cancel(), t.s.animation = t.s.animateEl.animate(H(t).animate1, {
2807
+ t.s.nowDuration = li(t), t.s.animation.cancel(), t.s.cloneAnimation && t.s.cloneAnimation.cancel(), t.s.animation = t.s.animateEl.animate(H(t).animate1, {
2808
2808
  duration: t.s.nowDuration,
2809
2809
  iterations: 1 / 0
2810
2810
  }), t.s.animation.startTime = s, t.s.cloneAnimation && (t.s.cloneAnimation = t.s.cloneAnimateEl.animate(H(t).animate2, {
@@ -2813,16 +2813,16 @@ Jt = new WeakSet(), Zi = function() {
2813
2813
  iterations: 1 / 0
2814
2814
  }), t.s.cloneAnimation.startTime = o);
2815
2815
  }
2816
- window.addEventListener("resize", rn(e));
2816
+ window.addEventListener("resize", hn(e));
2817
2817
  };
2818
- customElements.define("marquee-el", ln);
2819
- const ni = function(n, i) {
2818
+ customElements.define("marquee-el", mn);
2819
+ const ci = function(n, i) {
2820
2820
  let t;
2821
2821
  return function(e) {
2822
2822
  t && clearTimeout(t), t = setTimeout(n, 200, e);
2823
2823
  };
2824
2824
  }, x = (n, i) => {
2825
- if (gt(n)) {
2825
+ if (vt(n)) {
2826
2826
  n.forEach((t) => {
2827
2827
  t.classList.add(i);
2828
2828
  });
@@ -2830,7 +2830,7 @@ const ni = function(n, i) {
2830
2830
  }
2831
2831
  n.classList.add(i);
2832
2832
  }, $ = (n, i) => {
2833
- if (gt(n)) {
2833
+ if (vt(n)) {
2834
2834
  n.forEach((t) => {
2835
2835
  t.classList.remove(i);
2836
2836
  });
@@ -2838,22 +2838,22 @@ const ni = function(n, i) {
2838
2838
  }
2839
2839
  n.classList.remove(i);
2840
2840
  };
2841
- var Vt, ts, te, es, ee, is, lt, We, U, wt, ie, ss;
2842
- class oi {
2841
+ var ee, os, ie, as, se, rs, lt, Xe, U, Et, ne, ls;
2842
+ class di {
2843
2843
  constructor(i) {
2844
2844
  // 初始化
2845
- p(this, Vt);
2845
+ p(this, ee);
2846
2846
  // 左右箭頭事件綁定
2847
- p(this, te);
2847
+ p(this, ie);
2848
2848
  // 左右拖拉事件綁定
2849
- p(this, ee);
2849
+ p(this, se);
2850
2850
  // 卷軸位置判斷
2851
2851
  p(this, lt);
2852
2852
  // 隱藏按鈕判斷
2853
2853
  p(this, U);
2854
2854
  // 選項事件綁定
2855
- p(this, ie);
2856
- this.$element = i, this.option = i.s.option.drag, this._didInitialScroll = !1, d(this, Vt, ts).call(this);
2855
+ p(this, ne);
2856
+ this.$element = i, this.option = i.s.option.drag, this._didInitialScroll = !1, d(this, ee, os).call(this);
2857
2857
  }
2858
2858
  // 更新 active 位置
2859
2859
  update(i = !1) {
@@ -2874,7 +2874,7 @@ class oi {
2874
2874
  s();
2875
2875
  }
2876
2876
  }
2877
- Vt = new WeakSet(), ts = function() {
2877
+ ee = new WeakSet(), os = function() {
2878
2878
  var s, o, a, r;
2879
2879
  const i = this;
2880
2880
  if (!i.$element)
@@ -2883,10 +2883,10 @@ Vt = new WeakSet(), ts = function() {
2883
2883
  let t = !1;
2884
2884
  const e = () => {
2885
2885
  t || (requestAnimationFrame(() => {
2886
- d(this, lt, We).call(this), d(this, U, wt).call(this), t = !1;
2886
+ d(this, lt, Xe).call(this), d(this, U, Et).call(this), t = !1;
2887
2887
  }), t = !0);
2888
2888
  };
2889
- 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, ee, is).call(s), i.option.navigation && i.$element.s.type !== "collapse" && (i.$container.insertAdjacentHTML(
2889
+ 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, se, rs).call(s), i.option.navigation && i.$element.s.type !== "collapse" && (i.$container.insertAdjacentHTML(
2890
2890
  S.prepend,
2891
2891
  `<div class="navigation">
2892
2892
  <div class="button prev">
@@ -2896,10 +2896,10 @@ Vt = new WeakSet(), ts = function() {
2896
2896
  <div></div>
2897
2897
  </div>
2898
2898
  </div>`
2899
- ), i.$button = (o = i.$container) == null ? void 0 : o.querySelectorAll(".button"), d(a = i, te, es).call(a)), d(r = i, ie, ss).call(r), i.update(!0), requestAnimationFrame(() => {
2900
- d(this, lt, We).call(this), d(this, U, wt).call(this);
2899
+ ), i.$button = (o = i.$container) == null ? void 0 : o.querySelectorAll(".button"), d(a = i, ie, as).call(a)), d(r = i, ne, ls).call(r), i.update(!0), requestAnimationFrame(() => {
2900
+ d(this, lt, Xe).call(this), d(this, U, Et).call(this);
2901
2901
  });
2902
- }, te = new WeakSet(), es = function() {
2902
+ }, ie = new WeakSet(), as = function() {
2903
2903
  const i = this, { $wrapper: t, $button: e } = i, s = function() {
2904
2904
  const o = this.classList.contains("next"), a = parseInt(t.getBoundingClientRect().width * 0.7);
2905
2905
  t.scrollTo({
@@ -2907,13 +2907,13 @@ Vt = new WeakSet(), ts = function() {
2907
2907
  behavior: "smooth"
2908
2908
  }), setTimeout(() => {
2909
2909
  var r;
2910
- d(r = i, U, wt).call(r);
2910
+ d(r = i, U, Et).call(r);
2911
2911
  }, 100);
2912
2912
  };
2913
2913
  e.forEach((o) => {
2914
2914
  o.removeEventListener("click", s), o.addEventListener("click", s);
2915
2915
  });
2916
- }, ee = new WeakSet(), is = function() {
2916
+ }, se = new WeakSet(), rs = function() {
2917
2917
  const { $wrapper: i } = this;
2918
2918
  let t = !1, e = !1, s = 0, o = 0;
2919
2919
  const a = function(h) {
@@ -2943,10 +2943,10 @@ Vt = new WeakSet(), ts = function() {
2943
2943
  i.querySelectorAll("a").forEach((h) => {
2944
2944
  h.removeEventListener("click", u), h.addEventListener("click", u);
2945
2945
  });
2946
- }, lt = new WeakSet(), We = function() {
2946
+ }, lt = new WeakSet(), Xe = function() {
2947
2947
  const { $container: i, $wrapper: t } = this, e = t.scrollWidth - t.clientWidth, s = Math.round(t.scrollLeft);
2948
2948
  e <= 0 || (x(i, "scrollable"), s == 0 ? (x(t, "start"), $(t, "end")) : s + 1 >= e ? ($(t, "start"), x(t, "end")) : (x(t, "center"), $(t, "start"), $(t, "end")));
2949
- }, U = new WeakSet(), wt = function() {
2949
+ }, U = new WeakSet(), Et = function() {
2950
2950
  const { $wrapper: i, $button: t, $element: e } = this;
2951
2951
  if (!t)
2952
2952
  return;
@@ -2968,7 +2968,7 @@ Vt = new WeakSet(), ts = function() {
2968
2968
  }
2969
2969
  $(a, "hide");
2970
2970
  }) : $(t, "hide");
2971
- }, ie = new WeakSet(), ss = function() {
2971
+ }, ne = new WeakSet(), ls = function() {
2972
2972
  const { $element: i } = this, t = (s) => {
2973
2973
  if (this.option.selected) {
2974
2974
  const o = s.getAttribute("data-option").trim();
@@ -2982,31 +2982,31 @@ Vt = new WeakSet(), ts = function() {
2982
2982
  s.removeEventListener("click", e), s.addEventListener("click", e);
2983
2983
  });
2984
2984
  };
2985
- var se, ns, ne, os, oe, as, ae, rs;
2986
- class cn {
2985
+ var oe, cs, ae, ds, re, us, le, ps;
2986
+ class gn {
2987
2987
  constructor(i) {
2988
2988
  // 初始化
2989
- p(this, se);
2989
+ p(this, oe);
2990
2990
  // 隱藏按鈕判斷
2991
- p(this, ne);
2991
+ p(this, ae);
2992
2992
  // 展開箭頭事件綁定
2993
- p(this, oe);
2993
+ p(this, re);
2994
2994
  // 選項事件綁定
2995
- p(this, ae);
2996
- this.$element = i, this.option = i.s.option.collapse, d(this, se, ns).call(this);
2995
+ p(this, le);
2996
+ this.$element = i, this.option = i.s.option.collapse, d(this, oe, cs).call(this);
2997
2997
  }
2998
2998
  }
2999
- se = new WeakSet(), ns = function() {
3000
- this.$element && (this.$container = this.$element.querySelector(".collapse-container"), this.$wrapper = this.$container.querySelector(".wrapper"), d(this, ne, os).call(this) && d(this, oe, as).call(this), d(this, ae, rs).call(this));
3001
- }, ne = new WeakSet(), os = function() {
2999
+ oe = new WeakSet(), cs = function() {
3000
+ this.$element && (this.$container = this.$element.querySelector(".collapse-container"), this.$wrapper = this.$container.querySelector(".wrapper"), d(this, ae, ds).call(this) && d(this, re, us).call(this), d(this, le, ps).call(this));
3001
+ }, ae = new WeakSet(), ds = function() {
3002
3002
  const i = this.$element.querySelector(".drag-container"), t = i.querySelector(".wrapper");
3003
3003
  return t.scrollWidth - t.clientWidth > 0 ? (i.insertAdjacentHTML(S.append, '<div class="open-collapse"></div>'), this.$button = i.querySelector(".open-collapse"), $(this.$element, "noScrollable"), !0) : (x(this.$element, "noScrollable"), !1);
3004
- }, oe = new WeakSet(), as = function() {
3004
+ }, re = new WeakSet(), us = function() {
3005
3005
  const { $element: i, $button: t } = this, e = function() {
3006
3006
  i.classList.contains("expand") ? i.classList.remove("expand") : i.classList.add("expand");
3007
3007
  };
3008
3008
  t.removeEventListener("click", e), t.addEventListener("click", e);
3009
- }, ae = new WeakSet(), rs = function() {
3009
+ }, le = new WeakSet(), ps = function() {
3010
3010
  const { $element: i } = this, t = (s, o) => {
3011
3011
  if (i != null && i.classList.contains("expand") ? i == null || i.classList.remove("expand") : i == null || i.classList.add("expand"), this.option.selected) {
3012
3012
  const a = s.getAttribute("data-option").trim();
@@ -3020,18 +3020,24 @@ se = new WeakSet(), ns = function() {
3020
3020
  s.removeEventListener("click", e), s.addEventListener("click", e);
3021
3021
  });
3022
3022
  };
3023
- const dn = (n) => {
3023
+ const fn = (n) => {
3024
3024
  const { type: i, option: t, originalDomString: e } = n.s, s = document.createElement("div");
3025
- return i == "drag" && (s.innerHTML = M.TEMPLATE[i]().trim(), s.querySelector(".drag-container .wrapper").insertAdjacentHTML(S.append, e)), i == "collapse" && (s.innerHTML = M.TEMPLATE[i](t == null ? void 0 : t.collapse).trim(), s.querySelector(".drag-container .wrapper").insertAdjacentHTML(S.append, e), s.querySelector(".collapse-container .wrapper").insertAdjacentHTML(S.append, e)), i == "dropdown" && (s.innerHTML = M.TEMPLATE[i](t == null ? void 0 : t.dropdown).trim(), s.querySelector("dropdown-el").insertAdjacentHTML(S.append, e)), s.children;
3025
+ return i == "drag" && (s.innerHTML = q.TEMPLATE[i]().trim(), s.querySelector(".drag-container .wrapper").insertAdjacentHTML(S.append, e)), i == "collapse" && (s.innerHTML = q.TEMPLATE[i](t == null ? void 0 : t.collapse).trim(), s.querySelector(".drag-container .wrapper").insertAdjacentHTML(S.append, e), s.querySelector(".collapse-container .wrapper").insertAdjacentHTML(S.append, e)), i == "dropdown" && (s.innerHTML = q.TEMPLATE[i](t == null ? void 0 : t.dropdown).trim(), s.querySelector("dropdown-el").insertAdjacentHTML(S.append, e)), s.children;
3026
3026
  };
3027
- var re, ls, le, cs, ct, Ge, Y, Tt;
3028
- class un extends HTMLElement {
3027
+ var ce, hs, de, ms, ct, Ue, dt, Ye, ue, gs, ut, Fe, Y, At;
3028
+ class vn extends HTMLElement {
3029
3029
  constructor() {
3030
3030
  super();
3031
- p(this, re);
3032
- p(this, le);
3031
+ p(this, ce);
3032
+ p(this, de);
3033
3033
  // 斷點設定
3034
3034
  p(this, ct);
3035
+ // 同步目前選中的項目
3036
+ p(this, dt);
3037
+ // 下拉選項事件綁定
3038
+ p(this, ue);
3039
+ // 關閉展開中的 collapse
3040
+ p(this, ut);
3035
3041
  // check type
3036
3042
  p(this, Y);
3037
3043
  this.initialize = !1, this.__events__ = {}, this.s = {}, this.s.originalDomString = this.innerHTML.trim().replace(/\n/g, ""), this.previousWidth = window.innerWidth;
@@ -3040,37 +3046,29 @@ class un extends HTMLElement {
3040
3046
  return ["m4-type", "m4-status"];
3041
3047
  }
3042
3048
  attributeChangedCallback(t, e, s) {
3043
- var o, a, r;
3044
3049
  switch (t) {
3045
3050
  case "m4-type":
3046
3051
  if (e === null || e === s)
3047
3052
  return;
3048
- this.s.type = s, d(this, Y, Tt).call(this);
3053
+ this.s.type = s, d(this, Y, At).call(this);
3049
3054
  break;
3050
3055
  case "m4-status":
3051
3056
  if (e === s)
3052
3057
  return;
3053
- const l = this.getAttribute("m4-type");
3054
- if (l !== "drag" && l !== "collapse")
3055
- return;
3056
- this.querySelectorAll(".drag-container .item").forEach((c) => {
3057
- c.classList.remove("active");
3058
- }), (o = this.querySelector(`.drag-container .item[data-option="${s}"]`)) == null || o.classList.add("active"), l === "collapse" && (this.querySelectorAll(".collapse-container .item").forEach((c) => {
3059
- c.classList.remove("active");
3060
- }), (a = this.querySelector(`.collapse-container .item[data-option="${s}"]`)) == null || a.classList.add("active")), (r = this.drag) == null || r.update();
3058
+ d(this, dt, Ye).call(this, s);
3061
3059
  break;
3062
3060
  }
3063
3061
  }
3064
3062
  connectedCallback() {
3065
- this.initialize || this.classList.contains("m4-init") || (this.initialize = !0, d(this, re, ls).call(this));
3063
+ this.initialize || this.classList.contains("m4-init") || (this.initialize = !0, d(this, ce, hs).call(this));
3066
3064
  }
3067
3065
  update() {
3068
- d(this, ct, Ge).call(this);
3066
+ d(this, ut, Fe).call(this), d(this, ct, Ue).call(this);
3069
3067
  }
3070
3068
  }
3071
- re = new WeakSet(), ls = function() {
3069
+ ce = new WeakSet(), hs = function() {
3072
3070
  let t = {};
3073
- this.hasAttribute("m4-value") || this.setAttribute("m4-value", ""), this.s.type = this.getAttribute("m4-type") ?? M.SETTINGS.type, this.hasAttribute("m4-option") && (t = this.getAttribute("m4-option") ? JSON.parse(this.getAttribute("m4-option")) : {}, this.removeAttribute("m4-option"));
3071
+ this.hasAttribute("m4-value") || this.setAttribute("m4-value", ""), this.s.type = this.getAttribute("m4-type") ?? q.SETTINGS.type, this.hasAttribute("m4-option") && (t = this.getAttribute("m4-option") ? JSON.parse(this.getAttribute("m4-option")) : {}, this.removeAttribute("m4-option"));
3074
3072
  const e = (s) => {
3075
3073
  if (s.type === "resize") {
3076
3074
  if (window.innerWidth === this.previousWidth)
@@ -3079,84 +3077,106 @@ re = new WeakSet(), ls = function() {
3079
3077
  }
3080
3078
  this.update();
3081
3079
  };
3082
- window.removeEventListener("resize", ni(e)), window.addEventListener("resize", ni(e)), this.s.option = {}, this.s.option.drag = Object.assign({}, M.SETTINGS.drag, t == null ? void 0 : t.drag), this.s.option.collapse = Object.assign({}, M.SETTINGS.collapse, t == null ? void 0 : t.collapse), this.s.option.dropdown = Object.assign({}, M.SETTINGS.dropdown, t == null ? void 0 : t.dropdown), this.s.option.breakpoint = Object.assign({}, M.SETTINGS.breakpoint, t == null ? void 0 : t.breakpoint), d(this, le, cs).call(this);
3083
- }, le = new WeakSet(), cs = function() {
3084
- this.classList.add("m4-init"), d(this, ct, Ge).call(this);
3085
- }, ct = new WeakSet(), Ge = function() {
3080
+ window.removeEventListener("resize", ci(e)), window.addEventListener("resize", ci(e)), this.s.option = {}, this.s.option.drag = Object.assign({}, q.SETTINGS.drag, t == null ? void 0 : t.drag), this.s.option.collapse = Object.assign({}, q.SETTINGS.collapse, t == null ? void 0 : t.collapse), this.s.option.dropdown = Object.assign({}, q.SETTINGS.dropdown, t == null ? void 0 : t.dropdown), this.s.option.breakpoint = Object.assign({}, q.SETTINGS.breakpoint, t == null ? void 0 : t.breakpoint), d(this, de, ms).call(this);
3081
+ }, de = new WeakSet(), ms = function() {
3082
+ this.classList.add("m4-init"), d(this, ct, Ue).call(this);
3083
+ }, ct = new WeakSet(), Ue = function() {
3086
3084
  const t = Object.keys(this.s.option.breakpoint);
3087
3085
  if (!t.length) {
3088
- d(this, Y, Tt).call(this);
3086
+ d(this, Y, At).call(this);
3089
3087
  return;
3090
3088
  }
3091
3089
  t.map((e) => Number(e)).sort((e, s) => s - e).some((e) => {
3092
3090
  var s, o, a, r;
3093
- 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, Y, Tt).call(this), window.innerWidth >= e;
3091
+ 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, Y, At).call(this), window.innerWidth >= e;
3094
3092
  });
3095
- }, Y = new WeakSet(), Tt = function() {
3096
- var o;
3093
+ }, dt = new WeakSet(), Ye = function(t = this.getAttribute("m4-status")) {
3094
+ var a;
3095
+ const e = t ?? "", s = (r) => {
3096
+ this.querySelectorAll(r).forEach((l) => {
3097
+ var u;
3098
+ const c = (u = l.getAttribute("data-option")) == null ? void 0 : u.trim();
3099
+ l.classList.toggle("active", c === e);
3100
+ });
3101
+ };
3102
+ s(".drag-container .item"), s(".collapse-container .item");
3103
+ const o = this.querySelector("dropdown-el");
3104
+ o && o.getAttribute("d4-value") !== e && o.setAttribute("d4-value", e), (a = this.drag) == null || a.update();
3105
+ }, ue = new WeakSet(), gs = function() {
3106
+ var e;
3107
+ const t = this.querySelector("dropdown-el");
3108
+ !t || typeof t.on != "function" || (this.__events__.dropdownChange = () => {
3109
+ var o;
3110
+ const s = ((o = t.getAttribute("d4-value")) == null ? void 0 : o.trim()) ?? "";
3111
+ this.getAttribute("m4-status") !== s && this.setAttribute("m4-status", s);
3112
+ }, (e = t.off) == null || e.call(t, "change", this.__events__.dropdownChange), t.on("change", this.__events__.dropdownChange));
3113
+ }, ut = new WeakSet(), Fe = function() {
3114
+ this.classList.remove("expand");
3115
+ }, Y = new WeakSet(), At = function() {
3097
3116
  const { type: t } = this.s;
3098
- this.innerHTML = "", [...dn(this)].forEach((a) => {
3099
- this.append(a);
3100
- });
3101
- 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")}"]`);
3102
- switch (e == null || e.classList.add("active"), s == null || s.classList.add("active"), t) {
3117
+ switch (d(this, ut, Fe).call(this), this.innerHTML = "", [...fn(this)].forEach((e) => {
3118
+ this.append(e);
3119
+ }), t) {
3103
3120
  case "drag":
3104
- this.drag = new oi(this);
3121
+ this.drag = new di(this);
3105
3122
  break;
3106
3123
  case "collapse":
3107
- this.drag = new oi(this), this.collapse = new cn(this);
3124
+ this.drag = new di(this), this.collapse = new gn(this);
3125
+ break;
3126
+ case "dropdown":
3127
+ d(this, ue, gs).call(this);
3108
3128
  break;
3109
3129
  }
3110
- (o = this.drag) == null || o.update();
3130
+ d(this, dt, Ye).call(this);
3111
3131
  };
3112
- customElements.define("multipurpose-nav", un);
3113
- var ce, us, de, ps, dt, Re, W, Z, ue, hs, pe, ms, he, gs, me, fs, ge, vs, fe, bs, ve, ys, be, ws, ye, Ts, N, R, we, Es, Te, As, Ee, Ss, Ae, Ls;
3114
- class ds extends HTMLElement {
3132
+ customElements.define("multipurpose-nav", vn);
3133
+ var pe, vs, he, bs, pt, Je, W, Z, me, ys, ge, ws, fe, Ts, ve, Es, be, As, ye, Ss, we, Ls, Te, _s, Ee, Ds, N, R, Ae, ks, Se, xs, Le, $s, _e, Cs;
3134
+ class fs extends HTMLElement {
3115
3135
  // 定義組件的初始狀態
3116
3136
  constructor(t, e) {
3117
3137
  super();
3118
- p(this, ce);
3119
- p(this, de);
3138
+ p(this, pe);
3139
+ p(this, he);
3120
3140
  // 第一關 判斷數量以及id設定
3121
- p(this, dt);
3141
+ p(this, pt);
3122
3142
  // 第二關 id命名提醒
3123
3143
  p(this, W);
3124
- p(this, ue);
3125
- p(this, pe);
3126
- p(this, he);
3144
+ p(this, me);
3145
+ p(this, ge);
3146
+ p(this, fe);
3127
3147
  // 執行函式
3128
3148
  // 移動至指定位置
3129
- p(this, me);
3149
+ p(this, ve);
3130
3150
  // 移動
3131
- p(this, ge);
3151
+ p(this, be);
3132
3152
  // 步驟狀態
3133
- p(this, fe);
3153
+ p(this, ye);
3134
3154
  // next 按鈕狀態
3135
- p(this, ve);
3155
+ p(this, we);
3136
3156
  // prev 按鈕狀態
3137
- p(this, be);
3157
+ p(this, Te);
3138
3158
  // 頁籤狀態
3139
- p(this, ye);
3159
+ p(this, Ee);
3140
3160
  // 第三關各種元件判斷 及 執行
3141
3161
  p(this, N);
3142
3162
  // 消失動畫
3143
- p(this, we);
3163
+ p(this, Ae);
3144
3164
  // 出現動畫
3145
- p(this, Te);
3165
+ p(this, Se);
3146
3166
  // 狀態
3147
- p(this, Ee);
3167
+ p(this, Le);
3148
3168
  // resize
3149
- p(this, Ae);
3169
+ p(this, _e);
3150
3170
  }
3151
3171
  // 當組件的屬性被更改時會被呼叫
3152
3172
  static get observedAttributes() {
3153
3173
  return ["t4-active"];
3154
3174
  }
3155
3175
  attributeChangedCallback(t, e, s) {
3156
- t === "t4-active" && e !== s && d(this, Ee, Ss).call(this, s);
3176
+ t === "t4-active" && e !== s && d(this, Le, $s).call(this, s);
3157
3177
  }
3158
3178
  connectedCallback() {
3159
- this.classList.contains("t4-initialize") || d(this, ce, us).call(this);
3179
+ this.classList.contains("t4-initialize") || d(this, pe, vs).call(this);
3160
3180
  }
3161
3181
  // ------------- 我是分隔線呦 -------------
3162
3182
  // 頁籤切換
@@ -3172,7 +3192,7 @@ class ds extends HTMLElement {
3172
3192
  e.activeTab = s, this.setAttribute("t4-active", s);
3173
3193
  const o = d(this, W, Z).call(this, s);
3174
3194
  e.tabPanels.forEach((a, r) => {
3175
- r === o ? d(this, Te, As).call(this, r) : d(this, we, Es).call(this, r);
3195
+ r === o ? d(this, Se, xs).call(this, r) : d(this, Ae, ks).call(this, r);
3176
3196
  });
3177
3197
  }
3178
3198
  // 外部呼叫方法 $0.goNext()
@@ -3187,11 +3207,11 @@ class ds extends HTMLElement {
3187
3207
  }
3188
3208
  // 外部呼叫方法 $0.update()
3189
3209
  update() {
3190
- this.t.tabs = d(this, dt, Re).call(this), _s(), console.log("tab update!!!!");
3210
+ this.t.tabs = d(this, pt, Je).call(this), Hs(), console.log("tab update!!!!");
3191
3211
  }
3192
3212
  }
3193
- ce = new WeakSet(), us = function() {
3194
- const t = this.getAttribute("t4-name"), { SETTINGS: e } = di;
3213
+ pe = new WeakSet(), vs = function() {
3214
+ const t = this.getAttribute("t4-name"), { SETTINGS: e } = gi;
3195
3215
  document.querySelectorAll(`tab-el[t4-name=${t}]`).length > 1 && console.warn(t, "名字有重複喔!!!"), this.t = {
3196
3216
  tabs: [],
3197
3217
  name: t,
@@ -3210,14 +3230,14 @@ ce = new WeakSet(), us = function() {
3210
3230
  delay: this.getAttribute("t4-delay") || e.transition.delay
3211
3231
  },
3212
3232
  tabGroup: this.getAttribute("t4-group") || e.tabGroup
3213
- }, this.__events__ = {}, this.t.tabs = d(this, dt, Re).call(this), this.t.step = document.querySelector(`[t4-control="${this.t.name}"]${this.t.stepOutput}`), d(this, de, ps).call(this);
3214
- }, de = new WeakSet(), ps = function() {
3215
- if (this.t.activeTab = this.t.defaultPage, this.t.display === "swiper" && d(this, ue, hs).call(this), this.t.recordUrl) {
3233
+ }, this.__events__ = {}, this.t.tabs = d(this, pt, Je).call(this), this.t.step = document.querySelector(`[t4-control="${this.t.name}"]${this.t.stepOutput}`), d(this, he, bs).call(this);
3234
+ }, he = new WeakSet(), bs = function() {
3235
+ if (this.t.activeTab = this.t.defaultPage, this.t.display === "swiper" && d(this, me, ys).call(this), this.t.recordUrl) {
3216
3236
  const e = new URLSearchParams(document.location.search).get(this.t.name), s = document.querySelectorAll(`[t4-name="${this.t.name}"] .tab-panel[t4-id="${e}"]`);
3217
3237
  e && s.length === 1 ? this.t.activeTab = e : console.warn(`沒有${e}這頁喔!!`);
3218
3238
  }
3219
- this.setActiveTab(this.t.activeTab), this.classList.add("t4-initialize"), d(this, Ae, Ls).call(this);
3220
- }, dt = new WeakSet(), Re = function() {
3239
+ this.setActiveTab(this.t.activeTab), this.classList.add("t4-initialize"), d(this, _e, Cs).call(this);
3240
+ }, pt = new WeakSet(), Je = function() {
3221
3241
  const { t } = this, e = Array.from(document.querySelectorAll(`[t4-control="${t.name}"][t4-role="tab"]`));
3222
3242
  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) => {
3223
3243
  s.getAttribute("t4-id") || console.warn(s, "請幫我設定id!!");
@@ -3227,19 +3247,19 @@ ce = new WeakSet(), us = function() {
3227
3247
  s.length > 1 && console.warn("有兩個相同id設定", s);
3228
3248
  const o = s[0];
3229
3249
  return o ? e.tabPanels.indexOf(o) : (console.warn(`找不到t4-id為${t}的頁籤`), 0);
3230
- }, ue = new WeakSet(), hs = function() {
3250
+ }, me = new WeakSet(), ys = function() {
3231
3251
  const t = document.createElement("div");
3232
3252
  t.classList.add("swiper-container");
3233
3253
  const e = document.createElement("div");
3234
3254
  e.classList.add("swiper-wrapper"), this.t.tabPanels.forEach((s) => {
3235
3255
  e.appendChild(s.cloneNode(!0));
3236
- }), this.t.tabPanels = [...e.children], t.appendChild(e), this.innerHTML = "", this.appendChild(t), d(this, pe, ms).call(this);
3237
- }, pe = new WeakSet(), ms = function() {
3256
+ }), this.t.tabPanels = [...e.children], t.appendChild(e), this.innerHTML = "", this.appendChild(t), d(this, ge, ws).call(this);
3257
+ }, ge = new WeakSet(), ws = function() {
3238
3258
  const t = this.querySelector(".swiper-container"), e = this.querySelector(".swiper-wrapper"), s = this.t.tabPanels;
3239
3259
  t.style.overflow = "hidden", e.style.display = "flex";
3240
3260
  const o = s.length * 100 + "%";
3241
3261
  e.style.width = o;
3242
- }, he = new WeakSet(), gs = function(t) {
3262
+ }, fe = new WeakSet(), Ts = function(t) {
3243
3263
  const { t: e } = this;
3244
3264
  if (e.recordUrl === "true") {
3245
3265
  const s = new URLSearchParams(document.location.search);
@@ -3247,28 +3267,28 @@ ce = new WeakSet(), us = function() {
3247
3267
  const o = `${window.location.pathname}?${s.toString()}`;
3248
3268
  history.replaceState({ t4Id: t }, "", o);
3249
3269
  }
3250
- }, me = new WeakSet(), fs = function() {
3270
+ }, ve = new WeakSet(), Es = function() {
3251
3271
  const t = parseInt(this.t.gap, 10), e = window.pageYOffset, o = this.getBoundingClientRect().top + e - t;
3252
- d(this, ge, vs).call(this, o);
3253
- }, ge = new WeakSet(), vs = function(t) {
3272
+ d(this, be, As).call(this, o);
3273
+ }, be = new WeakSet(), As = function(t) {
3254
3274
  window.scrollTo({
3255
3275
  top: t,
3256
3276
  behavior: "smooth"
3257
3277
  });
3258
- }, fe = new WeakSet(), bs = function(t) {
3278
+ }, ye = new WeakSet(), Ss = function(t) {
3259
3279
  let e = parseInt(t, 10) + 1;
3260
3280
  this.t.step.textContent = `${e}`, this.t.step.setAttribute("now-page", e);
3261
- }, ve = new WeakSet(), ys = function(t) {
3281
+ }, we = new WeakSet(), Ls = function(t) {
3262
3282
  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;
3263
3283
  e.forEach((a) => {
3264
3284
  s || o ? a.setAttribute("disabled", "") : a.removeAttribute("disabled");
3265
3285
  });
3266
- }, be = new WeakSet(), ws = function(t) {
3286
+ }, Te = new WeakSet(), _s = function(t) {
3267
3287
  const e = document.querySelectorAll(`[t4-role="prev"][t4-control="${this.t.name}"]`), s = this.t.tabPanels.length === 1, o = t === 0;
3268
3288
  e.forEach((a) => {
3269
3289
  s || o ? a.setAttribute("disabled", "") : a.removeAttribute("disabled");
3270
3290
  });
3271
- }, ye = new WeakSet(), Ts = function(t, e) {
3291
+ }, Ee = new WeakSet(), Ds = function(t, e) {
3272
3292
  this.t.tabGroup === "true" ? this.t.tabs.forEach((s, o) => {
3273
3293
  o == t ? s.setAttribute("aria-selected", !0) : s.setAttribute("aria-selected", !1);
3274
3294
  }) : this.t.tabs.forEach((s, o) => {
@@ -3277,25 +3297,25 @@ ce = new WeakSet(), us = function() {
3277
3297
  }, N = new WeakSet(), R = function(t, e, s) {
3278
3298
  switch (t) {
3279
3299
  case "step":
3280
- $e(this.t.step) && d(this, fe, bs).call(this, e);
3300
+ Ie(this.t.step) && d(this, ye, Ss).call(this, e);
3281
3301
  break;
3282
3302
  case "eventAnchor":
3283
- this.t.anchor && d(this, me, fs).call(this);
3303
+ this.t.anchor && d(this, ve, Es).call(this);
3284
3304
  break;
3285
3305
  case "tabState":
3286
- this.t.type == "normal" && d(this, ye, Ts).call(this, e, s);
3306
+ this.t.type == "normal" && d(this, Ee, Ds).call(this, e, s);
3287
3307
  break;
3288
3308
  case "btnState":
3289
- d(this, ve, ys).call(this, e), d(this, be, ws).call(this, e);
3309
+ d(this, we, Ls).call(this, e), d(this, Te, _s).call(this, e);
3290
3310
  break;
3291
3311
  case "tabUrl":
3292
- this.t.recordUrl === "true" && d(this, he, gs).call(this, e);
3312
+ this.t.recordUrl === "true" && d(this, fe, Ts).call(this, e);
3293
3313
  break;
3294
3314
  default:
3295
3315
  console.warn("請增加判斷,謝謝");
3296
3316
  break;
3297
3317
  }
3298
- }, we = new WeakSet(), Es = function(t) {
3318
+ }, Ae = new WeakSet(), ks = function(t) {
3299
3319
  const { t: e } = this;
3300
3320
  this.t.transition;
3301
3321
  const s = e.tabPanels[t];
@@ -3312,7 +3332,7 @@ ce = new WeakSet(), us = function() {
3312
3332
  s.style.display = "none";
3313
3333
  break;
3314
3334
  }
3315
- }, Te = new WeakSet(), As = function(t) {
3335
+ }, Se = new WeakSet(), xs = function(t) {
3316
3336
  const { duration: e, timing: s, delay: o } = this.t.transition, a = this.t.tabPanels[t];
3317
3337
  let r;
3318
3338
  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) {
@@ -3337,25 +3357,25 @@ ce = new WeakSet(), us = function() {
3337
3357
  console.warn(this.t.display, "沒有這個效果請自己想辦法!!!!");
3338
3358
  break;
3339
3359
  }
3340
- }, Ee = new WeakSet(), Ss = function(t) {
3360
+ }, Le = new WeakSet(), $s = function(t) {
3341
3361
  const e = d(this, W, Z).call(this, t);
3342
3362
  d(this, N, R).call(this, "step", e), d(this, N, R).call(this, "btnState", e), d(this, N, R).call(this, "tabState", e, t), d(this, N, R).call(this, "tabUrl", t), this.emit("change");
3343
- }, Ae = new WeakSet(), Ls = function() {
3363
+ }, _e = new WeakSet(), Cs = function() {
3344
3364
  const t = this;
3345
3365
  window.addEventListener(
3346
3366
  "resize",
3347
- pn(() => {
3367
+ bn(() => {
3348
3368
  t.update();
3349
3369
  }, 1e3)
3350
3370
  );
3351
3371
  };
3352
- function pn(n, i = 1e3) {
3372
+ function bn(n, i = 1e3) {
3353
3373
  let t;
3354
3374
  return function(e) {
3355
3375
  t && clearTimeout(t), t = setTimeout(n, i, e);
3356
3376
  };
3357
3377
  }
3358
- function _s() {
3378
+ function Hs() {
3359
3379
  const n = document.querySelectorAll("[t4-control]");
3360
3380
  document.addEventListener("click", function(i) {
3361
3381
  let t = !1;
@@ -3385,91 +3405,91 @@ function _s() {
3385
3405
  }
3386
3406
  });
3387
3407
  }
3388
- _s();
3389
- Object.assign(ds.prototype, z);
3390
- customElements.define("tab-el", ds);
3391
- const ai = (n) => {
3408
+ Hs();
3409
+ Object.assign(fs.prototype, z);
3410
+ customElements.define("tab-el", fs);
3411
+ const ui = (n) => {
3392
3412
  const { defaultOptions: i } = n.collapse, { collapseClass: t, target: e, transition: s } = i, o = n.querySelector(e);
3393
3413
  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";
3394
- }, hn = (n) => {
3414
+ }, yn = (n) => {
3395
3415
  const { defaultOptions: i } = n.collapse, { collapseClass: t, target: e, transition: s } = i, o = n.querySelector(e), a = o.children[0].offsetHeight;
3396
3416
  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";
3397
3417
  };
3398
- var ut, Xe, Se, Ds, Le, ks, pt, Ue;
3399
- class mn {
3418
+ var ht, Ze, De, Is, ke, Ms, mt, Qe;
3419
+ class wn {
3400
3420
  constructor(i, t = {}) {
3401
- p(this, ut);
3402
- p(this, Se);
3403
- p(this, Le);
3404
- p(this, pt);
3405
- !mt(i) && !$e(i) && !gt(i) && !A(i) || (this.__storage__ = {
3421
+ p(this, ht);
3422
+ p(this, De);
3423
+ p(this, ke);
3424
+ p(this, mt);
3425
+ !ft(i) && !Ie(i) && !vt(i) && !A(i) || (this.__storage__ = {
3406
3426
  el: i,
3407
3427
  options: t
3408
- }, this.active = "data-collapse-active", d(this, ut, Xe).call(this));
3428
+ }, this.active = "data-collapse-active", d(this, ht, Ze).call(this));
3409
3429
  }
3410
3430
  update() {
3411
- d(this, ut, Xe).call(this);
3431
+ d(this, ht, Ze).call(this);
3412
3432
  }
3413
3433
  }
3414
- ut = new WeakSet(), Xe = function() {
3415
- const { el: i, options: t } = this.__storage__, { SETTINGS: e, EVENTS: s } = ui;
3434
+ ht = new WeakSet(), Ze = function() {
3435
+ const { el: i, options: t } = this.__storage__, { SETTINGS: e, EVENTS: s } = fi;
3416
3436
  if (this.elements = t.state == "not active" ? D(i + `:not([${this.active}])`) : D(i), this.options = Object.assign({}, e, t), this.__events__ = Object.assign({}, s), this.options.on)
3417
3437
  for (const [o, a] of Object.entries(this.options.on))
3418
3438
  this.__events__[o] = [a];
3419
- d(this, Se, Ds).call(this);
3420
- }, Se = new WeakSet(), Ds = function() {
3439
+ d(this, De, Is).call(this);
3440
+ }, De = new WeakSet(), Is = function() {
3421
3441
  const { elements: i, options: t } = this;
3422
3442
  i.forEach((e) => {
3423
- 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, Le, ks).call(this, e);
3443
+ 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, ke, Ms).call(this, e);
3424
3444
  }), this.emit("init");
3425
- }, Le = new WeakSet(), ks = function(i) {
3445
+ }, ke = new WeakSet(), Ms = function(i) {
3426
3446
  const { options: t } = this, { collapseClass: e, block: s, target: o, defaultOpen: a, targetStopPropagation: r, defaultActiveMark: l } = t, c = i, u = c.querySelector(o);
3427
- 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, pt, Ue)), c.addEventListener("click", d(this, pt, Ue)), r) {
3447
+ 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, mt, Qe)), c.addEventListener("click", d(this, mt, Qe)), r) {
3428
3448
  const h = (g) => {
3429
3449
  g.stopPropagation();
3430
3450
  };
3431
3451
  u.removeEventListener("click", h), u.addEventListener("click", h);
3432
3452
  }
3433
- }, pt = new WeakSet(), Ue = function() {
3453
+ }, mt = new WeakSet(), Qe = function() {
3434
3454
  const { instance: i, defaultOptions: t } = this.collapse, { collapseClass: e, block: s, target: o, single: a } = t, r = this;
3435
3455
  r.classList.contains(e) ? (a && r.parentNode.querySelectorAll(`.${r.classList[0]}`).forEach((l) => {
3436
- ai(l);
3437
- }), hn(r)) : ai(r), i.emit("afterCollapse");
3456
+ ui(l);
3457
+ }), yn(r)) : ui(r), i.emit("afterCollapse");
3438
3458
  };
3439
- Object.assign(mn.prototype, z);
3440
- function gn(n, i) {
3459
+ Object.assign(wn.prototype, z);
3460
+ function Tn(n, i) {
3441
3461
  const t = i, { color: e, opacity: s, duration: o } = i.s.options;
3442
3462
  let a = document.createElement("span"), r = n.clientX - t.getBoundingClientRect().left, l = n.clientY - t.getBoundingClientRect().top;
3443
3463
  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() {
3444
3464
  a.remove();
3445
3465
  }, `${o}`);
3446
3466
  }
3447
- function xs() {
3467
+ function qs() {
3448
3468
  document.querySelectorAll("ripple-btn").forEach((n) => {
3449
3469
  n.querySelector(".hover-ball"), n.style.setProperty("--r", ""), n.classList.remove("entered");
3450
3470
  });
3451
3471
  }
3452
- document.addEventListener("click", xs);
3453
- var ht, Ye, _e, $s, De, Cs, ke, Hs;
3454
- class fn extends HTMLElement {
3472
+ document.addEventListener("click", qs);
3473
+ var gt, Ke, xe, Os, $e, Ps, Ce, Ns;
3474
+ class En extends HTMLElement {
3455
3475
  constructor() {
3456
3476
  super();
3457
- p(this, ht);
3458
- p(this, _e);
3459
- p(this, De);
3460
- p(this, ke);
3477
+ p(this, gt);
3478
+ p(this, xe);
3479
+ p(this, $e);
3480
+ p(this, Ce);
3461
3481
  this.initialize = !1;
3462
3482
  }
3463
3483
  connectedCallback() {
3464
3484
  const t = this;
3465
- t.initialize || t.classList.contains("r4-initialize") || (t.initialize = !0, d(this, ht, Ye).call(this));
3485
+ t.initialize || t.classList.contains("r4-initialize") || (t.initialize = !0, d(this, gt, Ke).call(this));
3466
3486
  }
3467
3487
  update() {
3468
- this.classList.remove("r4-initialize"), this.querySelector("i.hover-ball").remove(), d(this, ht, Ye).call(this);
3488
+ this.classList.remove("r4-initialize"), this.querySelector("i.hover-ball").remove(), d(this, gt, Ke).call(this);
3469
3489
  }
3470
3490
  }
3471
- ht = new WeakSet(), Ye = function() {
3472
- const { SETTINGS: t } = pi;
3491
+ gt = new WeakSet(), Ke = function() {
3492
+ const { SETTINGS: t } = vi;
3473
3493
  this.s = {};
3474
3494
  function e(o) {
3475
3495
  let a = !!o;
@@ -3483,20 +3503,20 @@ ht = new WeakSet(), Ye = function() {
3483
3503
  hover: this.getAttribute("r4-hover") ? e(this.getAttribute("r4-hover")) : t.hover,
3484
3504
  click: this.getAttribute("r4-hover-click") ? e(this.getAttribute("r4-hover-click")) : t.click
3485
3505
  };
3486
- this.s.options = s, this.s.options.hover && this.classList.add("hover-btn"), d(this, _e, $s).call(this);
3487
- }, _e = new WeakSet(), $s = function() {
3488
- d(this, De, Cs).call(this), d(this, ke, Hs).call(this), this.classList.add("r4-initialize");
3489
- }, De = new WeakSet(), Cs = function() {
3506
+ this.s.options = s, this.s.options.hover && this.classList.add("hover-btn"), d(this, xe, Os).call(this);
3507
+ }, xe = new WeakSet(), Os = function() {
3508
+ d(this, $e, Ps).call(this), d(this, Ce, Ns).call(this), this.classList.add("r4-initialize");
3509
+ }, $e = new WeakSet(), Ps = function() {
3490
3510
  const t = this, e = document.createElement("i");
3491
3511
  e.classList.add("hover-ball"), e.style.transitionDuration = `${t.s.options.speed}ms`, t.appendChild(e);
3492
- }, ke = new WeakSet(), Hs = function() {
3512
+ }, Ce = new WeakSet(), Ns = function() {
3493
3513
  const t = this.querySelector("i.hover-ball"), e = this;
3494
3514
  e.addEventListener("click", function(a) {
3495
- a.stopPropagation(), e.s.options.click && gn(a, e);
3515
+ a.stopPropagation(), e.s.options.click && Tn(a, e);
3496
3516
  });
3497
3517
  let s = "ontouchstart" in document.documentElement ? "touchstart" : "mouseenter", o = "ontouchend" in document.documentElement ? "touchend" : "mouseleave";
3498
3518
  e.addEventListener(s, function(a) {
3499
- if (s === "touchstart" && xs(), e.s.options.hover) {
3519
+ if (s === "touchstart" && qs(), e.s.options.hover) {
3500
3520
  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, h = Math.max(c, u);
3501
3521
  t.style.width = h * 2 + "px", t.style.height = h * 2 + "px", t.style.left = r + "px", t.style.top = l + "px", e.classList.add("entered");
3502
3522
  }
@@ -3507,8 +3527,8 @@ ht = new WeakSet(), Ye = function() {
3507
3527
  }
3508
3528
  });
3509
3529
  };
3510
- customElements.define("ripple-btn", fn);
3511
- class vn {
3530
+ customElements.define("ripple-btn", En);
3531
+ class An {
3512
3532
  constructor() {
3513
3533
  this.init();
3514
3534
  }
@@ -3560,12 +3580,12 @@ class vn {
3560
3580
  this.init();
3561
3581
  }
3562
3582
  }
3563
- function ri(n, i) {
3583
+ function pi(n, i) {
3564
3584
  return n ? function(t, e) {
3565
3585
  Function(n)(t, e);
3566
3586
  } : i;
3567
3587
  }
3568
- function bn(n, i, t, e) {
3588
+ function Sn(n, i, t, e) {
3569
3589
  const s = i.params, o = n.closest("[data-upload-item]").querySelector("[data-preview]");
3570
3590
  o.querySelector("img") && o.querySelector("img").remove(), o.appendChild(e.imgElement);
3571
3591
  const a = n.dataset.group, r = document.querySelector(i.el).dataset.index;
@@ -3588,7 +3608,7 @@ function bn(n, i, t, e) {
3588
3608
  info: e
3589
3609
  }, s.on.changeAfter && typeof s.on.changeAfter == "function" && s.on.changeAfter(n, e);
3590
3610
  }
3591
- function yn(n, i, t, e) {
3611
+ function Ln(n, i, t, e) {
3592
3612
  const s = document.createElement("canvas"), o = s.getContext("2d"), a = i.width, l = i.height / a * 100, c = e / t * 100;
3593
3613
  let u = 0, h = 0;
3594
3614
  switch (s.width = t, s.height = e, n.previewSize) {
@@ -3602,14 +3622,14 @@ function yn(n, i, t, e) {
3602
3622
  const g = (s.width - u) * 0.5, m = (s.height - h) * 0.5;
3603
3623
  return o.drawImage(i, g, m, u, h), s;
3604
3624
  }
3605
- function wn(n, i) {
3625
+ function _n(n, i) {
3606
3626
  return new Promise((t, e) => {
3607
3627
  if (i) {
3608
3628
  const s = new Image();
3609
3629
  s.src = i, s.classList.add(n.previewSize), s.onload = () => {
3610
3630
  let o = {
3611
3631
  imgElement: s,
3612
- originalCanvas: yn(n, s, s.width, s.height),
3632
+ originalCanvas: Ln(n, s, s.width, s.height),
3613
3633
  info: {
3614
3634
  originalWidth: s.width,
3615
3635
  originalHeight: s.height,
@@ -3622,31 +3642,31 @@ function wn(n, i) {
3622
3642
  t();
3623
3643
  });
3624
3644
  }
3625
- function Tn(n, i) {
3645
+ function Dn(n, i) {
3626
3646
  const t = Math.pow(10, i);
3627
3647
  return Math.round(n * t) / t;
3628
3648
  }
3629
- function En(n, i) {
3649
+ function kn(n, i) {
3630
3650
  let t = n.size / 1024 / 1024;
3631
- return `${Tn(t, 2)}` <= i;
3651
+ return `${Dn(t, 2)}` <= i;
3632
3652
  }
3633
- function An(n, i, t) {
3653
+ function xn(n, i, t) {
3634
3654
  if (n.target.files.length <= 0)
3635
3655
  return;
3636
3656
  const e = n.target.files[0], s = i.closest("[data-upload-item]");
3637
3657
  let o = new FileReader();
3638
3658
  o.onload = (a) => {
3639
3659
  const r = e.type.split("/")[0] === "image" ? a.target.result : null;
3640
- if (t.params.sizeLimit && !En(e, t.params.sizeLimit)) {
3660
+ if (t.params.sizeLimit && !kn(e, t.params.sizeLimit)) {
3641
3661
  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);
3642
3662
  return;
3643
3663
  } else
3644
- s.classList.remove("over-limit"), s.classList.add("uploaded"), wn(t.params, r).then((l) => {
3645
- bn(i, t, e, l);
3664
+ s.classList.remove("over-limit"), s.classList.add("uploaded"), _n(t.params, r).then((l) => {
3665
+ Sn(i, t, e, l);
3646
3666
  });
3647
3667
  }, o.readAsDataURL(e);
3648
3668
  }
3649
- class Sn {
3669
+ class $n {
3650
3670
  constructor(i, t) {
3651
3671
  const e = this;
3652
3672
  e.el = i, e.params = {
@@ -3674,67 +3694,67 @@ class Sn {
3674
3694
  previewSize: e.dataset.previewSize || i.params.previewSize,
3675
3695
  compress: e.dataset.compress || i.params.compress,
3676
3696
  on: {
3677
- changeAfter: ri(e.dataset.changeAfter, i.params.on.changeAfter),
3678
- overLimit: ri(e.dataset.overLimit, i.params.on.overLimit)
3697
+ changeAfter: pi(e.dataset.changeAfter, i.params.on.changeAfter),
3698
+ overLimit: pi(e.dataset.overLimit, i.params.on.overLimit)
3679
3699
  }
3680
3700
  };
3681
3701
  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) {
3682
- An(a, e, i);
3702
+ xn(a, e, i);
3683
3703
  });
3684
3704
  }));
3685
3705
  }
3686
3706
  }
3687
3707
  export {
3688
- hi as A,
3689
- zn as B,
3690
- mn as C,
3691
- Xi as D,
3692
- Bn as E,
3693
- Wn as F,
3694
- Gn as G,
3695
- Rn as H,
3696
- vn as I,
3697
- Xn as J,
3698
- Un as K,
3699
- Yn as L,
3708
+ bi as A,
3709
+ Un as B,
3710
+ wn as C,
3711
+ Zi as D,
3712
+ Yn as E,
3713
+ Fn as F,
3714
+ Jn as G,
3715
+ Zn as H,
3716
+ An as I,
3717
+ Qn as J,
3718
+ Kn as K,
3719
+ Vn as L,
3700
3720
  V as M,
3701
- Fn as N,
3702
- Jn as O,
3703
- Zn as P,
3704
- Qn as Q,
3705
- fn as R,
3706
- Kn as S,
3707
- ds as T,
3708
- Vn as U,
3709
- to as V,
3710
- eo as W,
3711
- io as X,
3712
- so as Y,
3721
+ to as N,
3722
+ eo as O,
3723
+ io as P,
3724
+ so as Q,
3725
+ En as R,
3726
+ no as S,
3727
+ fs as T,
3728
+ oo as U,
3729
+ ao as V,
3730
+ ro as W,
3731
+ lo as X,
3732
+ co as Y,
3713
3733
  A as a,
3714
- gt as b,
3715
- zs as c,
3716
- js as d,
3717
- xe as e,
3734
+ vt as b,
3735
+ Us as c,
3736
+ Xs as d,
3737
+ He as e,
3718
3738
  S as f,
3719
3739
  D as g,
3720
- In as h,
3721
- mt as i,
3722
- Di as j,
3723
- ln as k,
3724
- un as l,
3725
- Sn as m,
3726
- Qs as n,
3727
- no as o,
3728
- zi as p,
3729
- Bi as q,
3730
- qn as r,
3731
- Ns as s,
3732
- Mn as t,
3733
- On as u,
3734
- Me as v,
3735
- Zs as w,
3736
- Pn as x,
3737
- Nn as y,
3738
- jn as z
3740
+ jn as h,
3741
+ ft as i,
3742
+ Hi as j,
3743
+ mn as k,
3744
+ vn as l,
3745
+ $n as m,
3746
+ nn as n,
3747
+ uo as o,
3748
+ Xi as p,
3749
+ Ui as q,
3750
+ zn as r,
3751
+ Rs as s,
3752
+ Bn as t,
3753
+ Wn as u,
3754
+ Ne as v,
3755
+ sn as w,
3756
+ Gn as x,
3757
+ Rn as y,
3758
+ Xn as z
3739
3759
  };
3740
3760
  //# sourceMappingURL=image-preview-bundle.js.map