@xwadex/fesd 0.0.33 → 0.0.35

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,18 +1,18 @@
1
- var bt = (r, t, e) => {
2
- if (!t.has(r))
3
- throw TypeError("Cannot " + e);
1
+ var be = (r, e, t) => {
2
+ if (!e.has(r))
3
+ throw TypeError("Cannot " + t);
4
4
  };
5
- var m = (r, t, e) => {
6
- if (t.has(r))
5
+ var m = (r, e, t) => {
6
+ if (e.has(r))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
- t instanceof WeakSet ? t.add(r) : t.set(r, e);
8
+ e instanceof WeakSet ? e.add(r) : e.set(r, t);
9
9
  };
10
- var p = (r, t, e) => (bt(r, t, "access private method"), e);
11
- import { i as tt, a as V, g as T, v as ft, c as wt, b as vt, d as yt, e as $t, f as xt, s as At } from "./image-preview-bundle.js";
12
- import { A as Dt, j as Ht, C as jt, h as Pt, D as Ft, m as Ut, I as Vt, k as Yt, M as Gt, l as Jt, R as Kt, T as Qt } from "./image-preview-bundle.js";
13
- import { m as C, S as St, p as Et } from "./vendor-bundle.js";
10
+ var p = (r, e, t) => (be(r, e, "access private method"), t);
11
+ import { i as ee, a as V, g as T, v as fe, c as we, b as ve, d as ye, e as $e, f as xe, s as Ae } from "./image-preview-bundle.js";
12
+ import { A as De, j as He, C as je, h as Pe, D as Fe, m as Ue, I as Ve, k as Ye, M as Ge, l as Je, R as Ke, T as Qe } from "./image-preview-bundle.js";
13
+ import { m as x, S as Se, p as ke } from "./vendor-bundle.js";
14
14
  const E = () => {
15
- const r = navigator.userAgent, t = {
15
+ const r = navigator.userAgent, e = {
16
16
  // Firefox 1.0+
17
17
  isFirefox: typeof InstallTrigger < "u",
18
18
  // Opera 8.0+
@@ -30,7 +30,7 @@ const E = () => {
30
30
  isSafari: !/chrome|crios|crmo/i.test(r) && /safari/i.test(r),
31
31
  // Chrome 1 - 79
32
32
  isChrome: !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime) || /chrome|crios|crmo/i.test(r)
33
- }, e = {
33
+ }, t = {
34
34
  // Android
35
35
  isAndroid: r.indexOf("Android") > -1 || r.indexOf("Adr") > -1,
36
36
  // iOS | ipad
@@ -45,45 +45,45 @@ const E = () => {
45
45
  // Linux
46
46
  isLinux: r.indexOf("Linux") > -1
47
47
  };
48
- return { browser: t, mobile: e, os: s };
49
- }, Lt = () => {
48
+ return { browser: e, mobile: t, os: s };
49
+ }, Ee = () => {
50
50
  const { browser: r } = E();
51
- return Object.keys(r).find((t) => {
52
- if (r[t])
53
- return r[t];
51
+ return Object.keys(r).find((e) => {
52
+ if (r[e])
53
+ return r[e];
54
54
  });
55
- }, Ct = () => {
55
+ }, Le = () => {
56
56
  const { mobile: r } = E();
57
- return Object.keys(r).some((t) => {
58
- if (r[t])
59
- return r[t];
57
+ return Object.keys(r).some((e) => {
58
+ if (r[e])
59
+ return r[e];
60
60
  });
61
- }, kt = () => {
61
+ }, Ce = () => {
62
62
  const { os: r } = E();
63
- return Object.keys(r).find((t) => {
64
- if (r[t])
65
- return r[t];
63
+ return Object.keys(r).find((e) => {
64
+ if (r[e])
65
+ return r[e];
66
66
  });
67
- }, Tt = () => console.dir(E());
68
- function Rt() {
67
+ }, Te = () => console.dir(E());
68
+ function Re() {
69
69
  return {
70
70
  init: E,
71
- isBrowser4: Lt,
72
- isMobile4: Ct,
73
- isOs4: kt,
74
- logs: Tt
71
+ isBrowser4: Ee,
72
+ isMobile4: Le,
73
+ isOs4: Ce,
74
+ logs: Te
75
75
  };
76
76
  }
77
- const f = (r, t, e) => {
78
- r && (vt(r) ? r.forEach((s) => s.style[t] = e) : r.style[t] = e);
77
+ const f = (r, e, t) => {
78
+ r && (ve(r) ? r.forEach((s) => s.style[e] = t) : r.style[e] = t);
79
79
  };
80
- var q, et, W, st, x, Y, _, rt, O, it, M, ot, R, at, B, nt, N, lt, I, ct, X, dt, A, G, z, ut, S, J;
81
- class Bt {
82
- constructor(t, e = {}) {
80
+ var q, te, W, se, A, Y, _, re, O, ie, M, oe, R, ae, B, ne, N, le, z, ce, I, de, S, G, X, ue, k, J;
81
+ class Be {
82
+ constructor(e, t = {}) {
83
83
  m(this, q);
84
84
  m(this, W);
85
85
  // 取得元件上的設定值
86
- m(this, x);
86
+ m(this, A);
87
87
  // 設置設定值的 CSS 樣式
88
88
  m(this, _);
89
89
  // 表格拖曳功能
@@ -94,83 +94,83 @@ class Bt {
94
94
  m(this, B);
95
95
  m(this, N);
96
96
  // Markdown 設置
97
- m(this, I);
98
- // Navigation 設置
99
- m(this, X);
100
- m(this, A);
101
97
  m(this, z);
98
+ // Navigation 設置
99
+ m(this, I);
102
100
  m(this, S);
103
- !tt(t) || !V(t) || (this.__storage__ = {
104
- el: t,
105
- options: e
106
- }, this.active = "data-article-active", p(this, q, et).call(this));
101
+ m(this, X);
102
+ m(this, k);
103
+ !ee(e) || !V(e) || (this.__storage__ = {
104
+ el: e,
105
+ options: t
106
+ }, this.active = "data-article-active", p(this, q, te).call(this));
107
107
  }
108
108
  update() {
109
- const { elements: t } = this;
110
- t.forEach((e) => {
111
- e.querySelectorAll("._article").forEach((s) => {
112
- s.article = {}, s.article.parent = e, s.article.params = p(this, x, Y).call(this, s), p(this, A, G).call(this, s), p(this, S, J).call(this, s);
109
+ const { elements: e } = this;
110
+ e.forEach((t) => {
111
+ t.querySelectorAll("._article").forEach((s) => {
112
+ s.article = {}, s.article.parent = t, s.article.params = p(this, A, Y).call(this, s), p(this, S, G).call(this, s), p(this, k, J).call(this, s);
113
113
  });
114
114
  });
115
115
  }
116
116
  }
117
- q = new WeakSet(), et = function() {
118
- const { el: t, options: e } = this.__storage__, { SETTINGS: s } = yt;
119
- this.elements = e.state == "not active" ? T(t + `:not([${this.active}])`) : T(t), this.elements = T(t), this.options = Object.assign({}, s, e), p(this, W, st).call(this);
120
- }, W = new WeakSet(), st = function() {
121
- const { elements: t } = this;
122
- t.forEach((e) => {
123
- e.setAttribute(this.active, ""), e.querySelectorAll("._article").forEach((s) => {
124
- var o, n;
125
- s.article = {}, s.article.parent = e, s.article.params = p(this, x, Y).call(this, s), s.article.methods = {}, s.article.methods.update = this.update, p(n = p(o = p(this, _, rt).call(this, s), A, G).call(o, s), z, ut).call(n, s), p(this, S, J).call(this, s);
117
+ q = new WeakSet(), te = function() {
118
+ const { el: e, options: t } = this.__storage__, { SETTINGS: s } = ye;
119
+ this.elements = t.state == "not active" ? T(e + `:not([${this.active}])`) : T(e), this.elements = T(e), this.options = Object.assign({}, s, t), p(this, W, se).call(this);
120
+ }, W = new WeakSet(), se = function() {
121
+ const { elements: e } = this;
122
+ e.forEach((t) => {
123
+ t.setAttribute(this.active, ""), t.querySelectorAll("._article").forEach((s) => {
124
+ var o, c;
125
+ s.article = {}, s.article.parent = t, s.article.params = p(this, A, Y).call(this, s), s.article.methods = {}, s.article.methods.update = this.update, p(c = p(o = p(this, _, re).call(this, s), S, G).call(o, s), X, ue).call(c, s), p(this, k, J).call(this, s);
126
126
  });
127
127
  });
128
- }, x = new WeakSet(), Y = function(t) {
128
+ }, A = new WeakSet(), Y = function(e) {
129
129
  return {
130
130
  // 元件本身
131
- $selector: t,
131
+ $selector: e,
132
132
  // 父層元件
133
- $backgroundWrap: t.querySelector("._backgroundWrap"),
134
- $contentWrap: t.querySelector("._contentWrap"),
135
- $wordCover: t.querySelector("._wordCover"),
136
- $buttonCover: t.querySelector("._buttonCover"),
137
- $imgCover: t.querySelector("._imgCover"),
138
- $cover: t.querySelectorAll("._cover"),
139
- $swiper: t.querySelector(".swiper"),
140
- $table: t.querySelector("._table"),
141
- $quote: t.querySelector("._quote"),
142
- $swiperButtonCover: t.querySelector(".swiper-button-cover"),
133
+ $backgroundWrap: e.querySelector("._backgroundWrap"),
134
+ $contentWrap: e.querySelector("._contentWrap"),
135
+ $wordCover: e.querySelector("._wordCover"),
136
+ $buttonCover: e.querySelector("._buttonCover"),
137
+ $imgCover: e.querySelector("._imgCover"),
138
+ $cover: e.querySelectorAll("._cover"),
139
+ $swiper: e.querySelector(".swiper"),
140
+ $table: e.querySelector("._table"),
141
+ $quote: e.querySelector("._quote"),
142
+ $swiperButtonCover: e.querySelector(".swiper-button-cover"),
143
143
  // 子層元件
144
- $h: t.querySelector("._H"),
145
- $subH: t.querySelector("._subH"),
146
- $p: t.querySelector("._P"),
147
- $button: t.querySelector("._button"),
148
- $description: t.querySelectorAll("._description"),
149
- $video: t.querySelectorAll("[video-id]"),
144
+ $h: e.querySelector("._H"),
145
+ $subH: e.querySelector("._subH"),
146
+ $p: e.querySelector("._P"),
147
+ $button: e.querySelector("._button"),
148
+ $description: e.querySelectorAll("._description"),
149
+ $video: e.querySelectorAll("[video-id]"),
150
150
  // 父層設定
151
- typeFullColor: t.getAttribute("typeFull-color"),
152
- typeFullBoxColor: t.getAttribute("typeFull-boxcolor"),
151
+ typeFullColor: e.getAttribute("typeFull-color"),
152
+ typeFullBoxColor: e.getAttribute("typeFull-boxcolor"),
153
153
  // 子層設定
154
- hColor: t.getAttribute("h-color"),
155
- subHColor: t.getAttribute("subh-color"),
156
- pColor: t.getAttribute("p-color"),
157
- buttonColor: t.getAttribute("button-color"),
158
- buttonColorHover: t.getAttribute("button-color-hover"),
159
- buttonTextColor: t.getAttribute("button-textcolor"),
160
- descriptionColor: t.getAttribute("description-color"),
161
- quoteColor: t.getAttribute("quote-color"),
162
- markdown: t.getAttribute("data-table-markdown") ?? !1
154
+ hColor: e.getAttribute("h-color"),
155
+ subHColor: e.getAttribute("subh-color"),
156
+ pColor: e.getAttribute("p-color"),
157
+ buttonColor: e.getAttribute("button-color"),
158
+ buttonColorHover: e.getAttribute("button-color-hover"),
159
+ buttonTextColor: e.getAttribute("button-textcolor"),
160
+ descriptionColor: e.getAttribute("description-color"),
161
+ quoteColor: e.getAttribute("quote-color"),
162
+ markdown: e.getAttribute("data-table-markdown") ?? !1
163
163
  };
164
- }, _ = new WeakSet(), rt = function(t) {
165
- const { params: e } = t.article;
166
- return f(e.$h, "color", e.hColor), f(e.$subH, "color", e.subHColor), f(e.$p, "color", e.pColor), f(e.$description, "color", e.descriptionColor), f(e.$button, "backgroundColor", e.buttonColor), f(e.$button, "color", e.buttonTextColor), e.buttonColorHover && e.$button && (e.$button.appendChild(document.createElement("span")), f(e.$button.querySelector("span"), "backgroundColor", e.buttonColorHover)), f(e.$backgroundWrap, "backgroundColor", e.typeFullColor), f(e.$contentWrap, "backgroundColor", e.typeFullBoxColor), f(e.$quote, "color", e.quoteColor), this;
167
- }, O = new WeakSet(), it = function(t) {
168
- const { params: e } = t.article, s = e.$table;
169
- let o = !1, n, a, d, u;
164
+ }, _ = new WeakSet(), re = function(e) {
165
+ const { params: t } = e.article;
166
+ return f(t.$h, "color", t.hColor), f(t.$subH, "color", t.subHColor), f(t.$p, "color", t.pColor), f(t.$description, "color", t.descriptionColor), f(t.$button, "backgroundColor", t.buttonColor), f(t.$button, "color", t.buttonTextColor), t.buttonColorHover && t.$button && (t.$button.appendChild(document.createElement("span")), f(t.$button.querySelector("span"), "backgroundColor", t.buttonColorHover)), f(t.$backgroundWrap, "backgroundColor", t.typeFullColor), f(t.$contentWrap, "backgroundColor", t.typeFullBoxColor), f(t.$quote, "color", t.quoteColor), this;
167
+ }, O = new WeakSet(), ie = function(e) {
168
+ const { params: t } = e.article, s = t.$table;
169
+ let o = !1, c, l, d, u;
170
170
  s.addEventListener("mousedown", function(i) {
171
171
  i.preventDefault(), o = !0;
172
- const l = s.getBoundingClientRect();
173
- n = i.pageX - l.left, a = i.pageY - l.top, d = s.scrollLeft, u = s.scrollTop;
172
+ const n = s.getBoundingClientRect();
173
+ c = i.pageX - n.left, l = i.pageY - n.top, d = s.scrollLeft, u = s.scrollTop;
174
174
  }), s.addEventListener("mouseleave", function() {
175
175
  o = !1;
176
176
  }), s.addEventListener("mouseup", function() {
@@ -179,116 +179,158 @@ q = new WeakSet(), et = function() {
179
179
  if (!o)
180
180
  return;
181
181
  i.preventDefault();
182
- const l = s.getBoundingClientRect(), c = i.pageX - l.left, h = i.pageY - l.top, g = c - n, b = h - a;
182
+ const n = s.getBoundingClientRect(), a = i.pageX - n.left, h = i.pageY - n.top, g = a - c, b = h - l;
183
183
  s.scrollLeft = d - g, s.scrollTop = u - b;
184
184
  });
185
- }, M = new WeakSet(), ot = function(t, e, s) {
186
- const { basic_rwd: o } = this.options, n = window.innerWidth < o, a = [...t.querySelectorAll("tr")];
187
- if (n || !a.length)
185
+ }, M = new WeakSet(), oe = function(e, t, s) {
186
+ const { basic_rwd: o } = this.options, c = window.innerWidth < o, l = [...e.querySelectorAll("tr")];
187
+ if (c || !l.length)
188
188
  return;
189
- const d = p(this, R, at).call(this, a);
190
- p(this, N, lt).call(this, t, d, e, s);
191
- }, R = new WeakSet(), at = function(t) {
192
- const e = [], s = /* @__PURE__ */ new Set();
193
- return t.forEach((o, n) => {
194
- const a = [...o.children];
195
- e[n] = [];
189
+ const d = p(this, R, ae).call(this, l);
190
+ p(this, N, le).call(this, e, d, t, s);
191
+ }, R = new WeakSet(), ae = function(e) {
192
+ const t = [], s = /* @__PURE__ */ new Set();
193
+ return e.forEach((o, c) => {
194
+ const l = [...o.children];
195
+ t[c] = [];
196
196
  let d = 0;
197
- a.forEach((u) => {
198
- const i = +u.getAttribute("rowspan") || 1, l = +u.getAttribute("colspan") || 1;
199
- for (; e[n][d] || s.has(`${n},${d}`); )
197
+ l.forEach((u) => {
198
+ const i = +u.getAttribute("rowspan") || 1, n = +u.getAttribute("colspan") || 1;
199
+ for (; t[c][d] || s.has(`${c},${d}`); )
200
200
  d++;
201
- for (let c = 0; c < i; c++) {
202
- const h = n + c;
203
- e[h] ?? (e[h] = []);
204
- for (let g = 0; g < l; g++) {
201
+ for (let a = 0; a < i; a++) {
202
+ const h = c + a;
203
+ t[h] ?? (t[h] = []);
204
+ for (let g = 0; g < n; g++) {
205
205
  const b = d + g;
206
- e[h][b] = {
207
- el: c === 0 && g === 0 ? u : null,
208
- topRow: n,
206
+ t[h][b] = {
207
+ el: a === 0 && g === 0 ? u : null,
208
+ topRow: c,
209
209
  leftCol: d,
210
210
  rowspan: i,
211
- colspan: l
212
- }, c > 0 && s.add(`${h},${b}`);
211
+ colspan: n
212
+ }, a > 0 && s.add(`${h},${b}`);
213
213
  }
214
214
  }
215
- d += l;
215
+ d += n;
216
216
  });
217
- }), e;
218
- }, B = new WeakSet(), nt = function(t, e) {
219
- var a;
220
- const s = e.length, o = Array(s).fill(0), n = t.getBoundingClientRect().top;
217
+ }), t;
218
+ }, B = new WeakSet(), ne = function(e, t) {
219
+ var l;
220
+ const s = t.length, o = Array(s).fill(0), c = e.getBoundingClientRect().top;
221
221
  for (let d = 0; d < s; d++)
222
- for (let u = 0; u < (((a = e[d]) == null ? void 0 : a.length) || 0); u++) {
223
- const i = e[d][u];
222
+ for (let u = 0; u < (((l = t[d]) == null ? void 0 : l.length) || 0); u++) {
223
+ const i = t[d][u];
224
224
  if (i != null && i.el) {
225
- const l = i.el.getBoundingClientRect().top;
226
- o[d] = l - n;
225
+ const n = i.el.getBoundingClientRect().top;
226
+ o[d] = n - c;
227
227
  break;
228
228
  }
229
229
  }
230
230
  return o;
231
- }, N = new WeakSet(), lt = function(t, e, s, o) {
231
+ }, N = new WeakSet(), le = function(e, t, s, o) {
232
232
  var u;
233
- const n = p(this, B, nt).call(this, t, e), a = ((u = e[0]) == null ? void 0 : u.length) ?? 0, d = Array(a).fill(0);
234
- for (let i = 0; i < a; i++)
235
- for (let l = 0; l < e.length; l++) {
236
- const c = e[l][i];
237
- if (c != null && c.el) {
238
- d[i] = c.el.offsetLeft;
233
+ const c = p(this, B, ne).call(this, e, t), l = ((u = t[0]) == null ? void 0 : u.length) ?? 0, d = Array(l).fill(0);
234
+ for (let i = 0; i < l; i++)
235
+ for (let n = 0; n < t.length; n++) {
236
+ const a = t[n][i];
237
+ if (a != null && a.el) {
238
+ d[i] = a.el.offsetLeft;
239
239
  break;
240
240
  }
241
241
  }
242
- e.forEach(
243
- (i) => i.forEach((l) => {
244
- if (!(l != null && l.el))
242
+ t.forEach(
243
+ (i) => i.forEach((n) => {
244
+ if (!(n != null && n.el))
245
245
  return;
246
- const { el: c, topRow: h, leftCol: g } = l, b = h < s, v = g < o;
247
- c.style.position = "sticky", c.style.zIndex = b && v ? 3 : b ? 2 : v ? 1 : 0, c.style.backgroundColor = getComputedStyle(c).backgroundColor, b && (c.style.top = `${n[h]}px`), v && (c.style.left = `${d[g]}px`);
246
+ const { el: a, topRow: h, leftCol: g } = n, b = h < s, v = g < o;
247
+ a.style.position = "sticky", a.style.zIndex = b && v ? 3 : b ? 2 : v ? 1 : 0, a.style.backgroundColor = getComputedStyle(a).backgroundColor, b && (a.style.top = `${c[h]}px`), v && (a.style.left = `${d[g]}px`);
248
248
  })
249
249
  );
250
- }, I = new WeakSet(), ct = function(t) {
251
- const { markdownLink: e, markdownImg: s } = this.options;
252
- if (t.hasAttribute("data-markdown-rendered"))
250
+ }, z = new WeakSet(), ce = function(e) {
251
+ const { markdownLink: t, markdownImg: s } = this.options;
252
+ if (e.hasAttribute("data-markdown-rendered"))
253
253
  return;
254
- new C.Renderer(), C.use({
254
+ new x.Renderer(), x.use({
255
255
  extensions: [
256
256
  {
257
257
  name: "center",
258
258
  level: "block",
259
259
  start(i) {
260
- var l;
261
- return (l = i.match(/@center@/)) == null ? void 0 : l.index;
260
+ var n;
261
+ return (n = i.match(/@center@/)) == null ? void 0 : n.index;
262
262
  },
263
263
  tokenizer(i) {
264
- const c = /^@center@(.+?)@center@/s.exec(i);
265
- if (c)
264
+ const a = /^@center@(.+?)@center@/s.exec(i);
265
+ if (a)
266
266
  return {
267
267
  type: "center",
268
- raw: c[0],
269
- text: c[1],
270
- tokens: this.lexer.inlineTokens(c[1])
268
+ raw: a[0],
269
+ text: a[1],
270
+ tokens: this.lexer.inlineTokens(a[1])
271
+ };
272
+ },
273
+ renderer(i) {
274
+ return `<div data-center="true">${x.parser(i.tokens)}</div>`;
275
+ }
276
+ },
277
+ {
278
+ name: "left",
279
+ level: "block",
280
+ start(i) {
281
+ var n;
282
+ return (n = i.match(/@left@/)) == null ? void 0 : n.index;
283
+ },
284
+ tokenizer(i) {
285
+ const a = /^@left@(.+?)@left@/s.exec(i);
286
+ if (a)
287
+ return {
288
+ type: "left",
289
+ raw: a[0],
290
+ text: a[1],
291
+ tokens: this.lexer.inlineTokens(a[1])
271
292
  };
272
293
  },
273
294
  renderer(i) {
274
- return `<div data-center="true">${C.parser(i.tokens)}</div>`;
295
+ return `<div data-left="true">${x.parser(i.tokens)}</div>`;
296
+ }
297
+ },
298
+ {
299
+ name: "right",
300
+ level: "block",
301
+ start(i) {
302
+ var n;
303
+ return (n = i.match(/@right@/)) == null ? void 0 : n.index;
304
+ },
305
+ tokenizer(i) {
306
+ const a = /^@right@(.+?)@right@/s.exec(i);
307
+ if (a)
308
+ return {
309
+ type: "right",
310
+ raw: a[0],
311
+ text: a[1],
312
+ tokens: this.lexer.inlineTokens(a[1])
313
+ };
314
+ },
315
+ renderer(i) {
316
+ return `<div data-right="true">${x.parser(i.tokens)}</div>`;
275
317
  }
276
318
  },
277
319
  {
278
320
  name: "sup",
279
321
  level: "inline",
280
322
  start(i) {
281
- var l;
282
- return (l = i.match(/@sup@/)) == null ? void 0 : l.index;
323
+ var n;
324
+ return (n = i.match(/@sup@/)) == null ? void 0 : n.index;
283
325
  },
284
326
  tokenizer(i) {
285
- const c = /^@sup@(.+?)@sup@/.exec(i);
286
- if (c)
327
+ const a = /^@sup@(.+?)@sup@/.exec(i);
328
+ if (a)
287
329
  return {
288
330
  type: "sup",
289
- raw: c[0],
290
- text: c[1],
291
- tokens: this.lexer.inlineTokens(c[1])
331
+ raw: a[0],
332
+ text: a[1],
333
+ tokens: this.lexer.inlineTokens(a[1])
292
334
  };
293
335
  },
294
336
  renderer(i) {
@@ -299,17 +341,17 @@ q = new WeakSet(), et = function() {
299
341
  name: "sub",
300
342
  level: "inline",
301
343
  start(i) {
302
- var l;
303
- return (l = i.match(/@sub@/)) == null ? void 0 : l.index;
344
+ var n;
345
+ return (n = i.match(/@sub@/)) == null ? void 0 : n.index;
304
346
  },
305
347
  tokenizer(i) {
306
- const c = /^@sub@(.+?)@sub@/.exec(i);
307
- if (c)
348
+ const a = /^@sub@(.+?)@sub@/.exec(i);
349
+ if (a)
308
350
  return {
309
351
  type: "sub",
310
- raw: c[0],
311
- text: c[1],
312
- tokens: this.lexer.inlineTokens(c[1])
352
+ raw: a[0],
353
+ text: a[1],
354
+ tokens: this.lexer.inlineTokens(a[1])
313
355
  };
314
356
  },
315
357
  renderer(i) {
@@ -318,57 +360,57 @@ q = new WeakSet(), et = function() {
318
360
  }
319
361
  ]
320
362
  });
321
- const o = ["h2", "h3", "h4", "h5", "h6", "b", "del", "i", "em", "strong", "p", "ul", "ol", "li", "br", "span", "div", "sup", "sub"], n = ["data-center"], a = (i) => Et.sanitize(i, {
363
+ const o = ["h2", "h3", "h4", "h5", "h6", "b", "del", "i", "em", "strong", "p", "ul", "ol", "li", "br", "span", "div", "sup", "sub"], c = ["data-center", "data-right", "data-left"], l = (i) => ke.sanitize(i, {
322
364
  ALLOWED_TAGS: [
323
365
  ...o,
324
- ...e ? ["a"] : [],
366
+ ...t ? ["a"] : [],
325
367
  ...s ? ["img"] : []
326
368
  ],
327
369
  ALLOWED_ATTR: [
328
- ...n,
329
- ...e ? ["href", "title", "target"] : [],
370
+ ...c,
371
+ ...t ? ["href", "title", "target"] : [],
330
372
  ...s ? ["src", "alt", "title"] : []
331
373
  ],
332
374
  RETURN_TRUSTED_TYPE: !1
333
- }), d = (i) => a(C.parse(i));
334
- t.querySelectorAll("td,th").forEach((i) => {
375
+ }), d = (i) => l(x.parse(i));
376
+ e.querySelectorAll("td,th").forEach((i) => {
335
377
  i.innerHTML = i.textContent;
336
- const l = i.textContent.trim().replace(/<[^>]*>/g, "");
337
- i.innerHTML = d(l);
338
- }), t.setAttribute("data-markdown-rendered", "true");
339
- }, X = new WeakSet(), dt = function(t) {
340
- const { scrollStep: e } = this.options, s = t.querySelector("._contentWrap"), o = t.querySelector("._tableCover"), n = t.querySelector("._table"), a = typeof e == "number" ? e : s.clientWidth * 0.5;
378
+ const n = i.textContent.trim().replace(/<[^>]*>/g, "");
379
+ i.innerHTML = d(n);
380
+ }), e.setAttribute("data-markdown-rendered", "true");
381
+ }, I = new WeakSet(), de = function(e) {
382
+ const { scrollStep: t } = this.options, s = e.querySelector("._contentWrap"), o = e.querySelector("._tableCover"), c = e.querySelector("._table"), l = typeof t == "number" ? t : s.clientWidth * 0.5;
341
383
  if (!s || !o || o.querySelector(".table_navigation"))
342
384
  return;
343
385
  const d = document.createElement("div");
344
386
  d.className = "table_navigation";
345
387
  const u = document.createElement("div"), i = document.createElement("div");
346
388
  u.className = "table-nav-left", i.className = "table-nav-right", d.appendChild(u), d.appendChild(i), o.appendChild(d);
347
- const l = () => {
348
- const c = n.scrollLeft, h = n.scrollWidth - n.clientWidth;
349
- u.classList.toggle("disabled", c <= 0), i.classList.toggle("disabled", c >= h - 1);
389
+ const n = () => {
390
+ const a = c.scrollLeft, h = c.scrollWidth - c.clientWidth;
391
+ u.classList.toggle("disabled", a <= 0), i.classList.toggle("disabled", a >= h - 1);
350
392
  };
351
393
  u.addEventListener("click", () => {
352
- n.scrollBy({ left: -a, behavior: "smooth" });
394
+ c.scrollBy({ left: -l, behavior: "smooth" });
353
395
  }), i.addEventListener("click", () => {
354
- n.scrollBy({ left: a, behavior: "smooth" });
355
- }), n.addEventListener("scroll", l), window.addEventListener("resize", l), l();
356
- }, A = new WeakSet(), G = function(t) {
357
- const { params: e } = t.article;
358
- return e.$video.length && new ft(e.$video), this;
359
- }, z = new WeakSet(), ut = function(t) {
360
- const { basic_rwd: e } = this.options, { params: s } = t.article;
396
+ c.scrollBy({ left: l, behavior: "smooth" });
397
+ }), c.addEventListener("scroll", n), window.addEventListener("resize", n), n();
398
+ }, S = new WeakSet(), G = function(e) {
399
+ const { params: t } = e.article;
400
+ return t.$video.length && new fe(t.$video), this;
401
+ }, X = new WeakSet(), ue = function(e) {
402
+ const { basic_rwd: t } = this.options, { params: s } = e.article;
361
403
  if (!s.$swiper)
362
404
  return;
363
- const o = wt(), n = this;
364
- let a = {
405
+ const o = we(), c = this;
406
+ let l = {
365
407
  on: {
366
408
  init(i) {
367
- const l = i.$el[0];
368
- s.$video.length && ([...l.querySelectorAll("[video4-active]")].forEach((h) => {
409
+ const n = i.$el[0];
410
+ s.$video.length && ([...n.querySelectorAll("[video4-active]")].forEach((h) => {
369
411
  var g, b;
370
- (g = h.querySelector($t.SETTINGS.videoButton)) == null || g.remove(), (b = h.querySelector(".overlay")) == null || b.remove(), h.removeAttribute("video4-active");
371
- }), n.update());
412
+ (g = h.querySelector($e.SETTINGS.videoButton)) == null || g.remove(), (b = h.querySelector(".overlay")) == null || b.remove(), h.removeAttribute("video4-active");
413
+ }), c.update());
372
414
  },
373
415
  observerUpdate(i) {
374
416
  i.params.autoplay.enabled && (i.autoplay.start(), i.update());
@@ -380,48 +422,48 @@ q = new WeakSet(), et = function() {
380
422
  if (s.$selector.setAttribute("img-swiper", "on"), s.$selector.classList.add(`swiper-${o}`), s.$selector.getAttribute("swiper-arrow") !== "off" && s.$selector.getAttribute("swiper-arrow")) {
381
423
  const i = document.createElement("div");
382
424
  i.className = `swiper-button-next swiper-${o}`, s.$swiperButtonCover.appendChild(i);
383
- const l = document.createElement("div");
384
- l.className = `swiper-button-prev swiper-${o}`, s.$swiperButtonCover.appendChild(l), a.navigation = {
425
+ const n = document.createElement("div");
426
+ n.className = `swiper-button-prev swiper-${o}`, s.$swiperButtonCover.appendChild(n), l.navigation = {
385
427
  nextEl: `.swiper-button-next.swiper-${o}`,
386
428
  prevEl: `.swiper-button-prev.swiper-${o}`
387
429
  };
388
430
  }
389
431
  if (s.$selector.getAttribute("swiper-nav") !== "off" || !s.$selector.getAttribute("swiper-nav")) {
390
432
  const i = document.createElement("div");
391
- i.className = `swiper-pagination swiper-${o}`, s.$swiper.appendChild(i), a.pagination = {
433
+ i.className = `swiper-pagination swiper-${o}`, s.$swiper.appendChild(i), l.pagination = {
392
434
  el: `.swiper-pagination.swiper-${o}`,
393
435
  clickable: !0
394
436
  };
395
437
  }
396
- Number.parseInt(s.$selector.getAttribute("swiper-num")) && (a.breakpoints[e] = {
438
+ Number.parseInt(s.$selector.getAttribute("swiper-num")) && (l.breakpoints[t] = {
397
439
  slidesPerView: s.$selector.getAttribute("swiper-num") ? Number.parseInt(s.$selector.getAttribute("swiper-num")) > 5 ? 5 : Number.parseInt(s.$selector.getAttribute("swiper-num")) : 1
398
- }), (s.$selector.getAttribute("swiper-autoplay") !== "off" || !s.$selector.getAttribute("swiper-autoplay")) && (a.autoplay = {
440
+ }), (s.$selector.getAttribute("swiper-autoplay") !== "off" || !s.$selector.getAttribute("swiper-autoplay")) && (l.autoplay = {
399
441
  delay: 3e3,
400
442
  disableOnInteraction: !1
401
- }), (s.$selector.getAttribute("swiper-loop") !== "off" || !s.$selector.getAttribute("swiper-loop")) && (a.loop = !0), s.$selector.getAttribute("swiper-speed") && (a.speed = parseInt(s.$selector.getAttribute("swiper-speed"))), s.$selector.getAttribute("swiper-parallax") !== "off" && !s.$selector.getAttribute("swiper-loop") && (a.parallax = !0), s.$selector.getAttribute("swiper-pagination-dynamic") === "on" && (a.pagination.dynamicBullets = !0, a.pagination ? a.pagination.dynamicBullets = !0 : console.warn("pagination undefined"));
402
- let d = () => window.innerWidth > e && Number(s.$selector.getAttribute("swiper-num")) || 1;
403
- s.$swiper.querySelectorAll(".swiper-slide").length <= d() && (a.navigation = !1, a.pagination = !1, a.autoplay = !1, a.loop = !1, s.$selector.querySelector(".swiper-button-cover").style.display = "none", s.$selector.querySelector(".swiper-pagination").style.display = "none", s.$swiper.classList.add("swiper-no-swiping"));
404
- const u = new St(s.$swiper, a);
405
- return t.article.swiperList = [], t.article.swiperList.push(u), this;
406
- }, S = new WeakSet(), J = function(t) {
407
- const { navigation: e } = this.options, { params: s } = t.article;
443
+ }), (s.$selector.getAttribute("swiper-loop") !== "off" || !s.$selector.getAttribute("swiper-loop")) && (l.loop = !0), s.$selector.getAttribute("swiper-speed") && (l.speed = parseInt(s.$selector.getAttribute("swiper-speed"))), s.$selector.getAttribute("swiper-parallax") !== "off" && !s.$selector.getAttribute("swiper-loop") && (l.parallax = !0), s.$selector.getAttribute("swiper-pagination-dynamic") === "on" && (l.pagination.dynamicBullets = !0, l.pagination ? l.pagination.dynamicBullets = !0 : console.warn("pagination undefined"));
444
+ let d = () => window.innerWidth > t && Number(s.$selector.getAttribute("swiper-num")) || 1;
445
+ s.$swiper.querySelectorAll(".swiper-slide").length <= d() && (l.navigation = !1, l.pagination = !1, l.autoplay = !1, l.loop = !1, s.$selector.querySelector(".swiper-button-cover").style.display = "none", s.$selector.querySelector(".swiper-pagination").style.display = "none", s.$swiper.classList.add("swiper-no-swiping"));
446
+ const u = new Se(s.$swiper, l);
447
+ return e.article.swiperList = [], e.article.swiperList.push(u), this;
448
+ }, k = new WeakSet(), J = function(e) {
449
+ const { navigation: t } = this.options, { params: s } = e.article;
408
450
  if (!s.$table)
409
451
  return;
410
- const o = t.getAttribute("freeze-table") === "on", n = parseInt(t.getAttribute("freeze-table-row") ?? "1", 10), a = parseInt(t.getAttribute("freeze-table-col") ?? "1", 10), d = t.querySelector("table"), u = t.querySelector("._tipText"), i = t.offsetWidth, l = d.offsetWidth, c = i < l, h = s.markdown === "on", g = () => {
411
- o && p(this, M, ot).call(this, d, n, a), (o || c) && p(this, O, it).call(this, t), h && p(this, I, ct).call(this, d), e && c && p(this, X, dt).call(this, t), c ? (t.classList.add("overflow"), u.style.display = "flex") : (t.classList.remove("overflow"), u.style.display = "none");
452
+ const o = e.getAttribute("freeze-table") === "on", c = parseInt(e.getAttribute("freeze-table-row") ?? "1", 10), l = parseInt(e.getAttribute("freeze-table-col") ?? "1", 10), d = e.querySelector("table"), u = e.querySelector("._tipText"), i = e.offsetWidth, n = d.offsetWidth, a = i < n, h = s.markdown === "on", g = () => {
453
+ o && p(this, M, oe).call(this, d, c, l), (o || a) && p(this, O, ie).call(this, e), h && p(this, z, ce).call(this, d), t && a && p(this, I, de).call(this, e), a ? (e.classList.add("overflow"), u.style.display = "flex") : (e.classList.remove("overflow"), u.style.display = "none");
412
454
  };
413
455
  return g(), window.addEventListener("resize", g), this;
414
456
  };
415
457
  let K = "ontouchstart" in document.documentElement ? "touchstart" : "mousedown", Q = "ontouchend" in document.documentElement ? "touchend" : "mouseup", F = "ontouchmove" in document.documentElement ? "touchmove" : "mousemove";
416
458
  function w(r) {
417
- const t = window.getComputedStyle(r), e = t.transform || t.mozTransform;
418
- if (e === "none")
459
+ const e = window.getComputedStyle(r), t = e.transform || e.mozTransform;
460
+ if (t === "none")
419
461
  return {
420
462
  x: 0,
421
463
  y: 0,
422
464
  z: 0
423
465
  };
424
- const s = e.includes("3d") ? "3d" : "2d", o = e.match(/matrix.*\((.+)\)/)[1].split(", ");
466
+ const s = t.includes("3d") ? "3d" : "2d", o = t.match(/matrix.*\((.+)\)/)[1].split(", ");
425
467
  if (s === "2d")
426
468
  return {
427
469
  x: Number(o[4]),
@@ -435,12 +477,12 @@ function w(r) {
435
477
  z: Number(o[14])
436
478
  };
437
479
  }
438
- function k(r) {
439
- const e = r.querySelector(".wrapper").querySelectorAll(".item");
480
+ function C(r) {
481
+ const t = r.querySelector(".wrapper").querySelectorAll(".item");
440
482
  let s = 0;
441
- return e.forEach((o) => {
442
- const n = getComputedStyle(o), a = parseInt(n.marginLeft), d = parseInt(n.marginRight);
443
- s += o.getBoundingClientRect().width + a + d;
483
+ return t.forEach((o) => {
484
+ const c = getComputedStyle(o), l = parseInt(c.marginLeft), d = parseInt(c.marginRight);
485
+ s += o.getBoundingClientRect().width + l + d;
444
486
  }), s;
445
487
  }
446
488
  function U(r) {
@@ -451,10 +493,10 @@ function U(r) {
451
493
  if (w(r.slideWrapEl).x < r.translateMin && w(r.slideWrapEl).x > r.translateMax)
452
494
  return "is-middle";
453
495
  }
454
- function qt(r) {
455
- const t = r.el, e = t.querySelector(".wrapper");
456
- e.addEventListener(K, function(s) {
457
- switch (r.isDown = !0, r.slidable && e.classList.add("dragging"), K) {
496
+ function qe(r) {
497
+ const e = r.el, t = e.querySelector(".wrapper");
498
+ t.addEventListener(K, function(s) {
499
+ switch (r.isDown = !0, r.slidable && t.classList.add("dragging"), K) {
458
500
  case "mousedown":
459
501
  r.startX = s.pageX;
460
502
  break;
@@ -462,9 +504,9 @@ function qt(r) {
462
504
  r.startX = s.changedTouches[0].pageX;
463
505
  break;
464
506
  }
465
- r.nowTranslateX = w(e).x;
466
- }), e.addEventListener(Q, function(s) {
467
- r.isDown = !1, e.classList.remove("dragging"), e.classList.remove("moving");
507
+ r.nowTranslateX = w(t).x;
508
+ }), t.addEventListener(Q, function(s) {
509
+ r.isDown = !1, t.classList.remove("dragging"), t.classList.remove("moving");
468
510
  let o;
469
511
  switch (F) {
470
512
  case "mousemove":
@@ -477,14 +519,14 @@ function qt(r) {
477
519
  if (o === 0 && s.target.closest(".item")) {
478
520
  if (Q === "mouseup" && s.button !== 0)
479
521
  return;
480
- e.querySelectorAll(".item").forEach((a) => {
481
- a.classList.remove("active");
522
+ t.querySelectorAll(".item").forEach((l) => {
523
+ l.classList.remove("active");
482
524
  }), s.target.closest(".item").classList.add("active"), r.moveActive(r.params.speed);
483
525
  } else
484
- r.slidable && r.resetPos(t);
485
- }), e.addEventListener("mouseleave", function() {
486
- r.isDown && r.slidable && (r.isDown = !1, e.classList.remove("dragging"), e.classList.remove("moving"), r.resetPos(t));
487
- }), e.addEventListener(F, function(s) {
526
+ r.slidable && r.resetPos(e);
527
+ }), t.addEventListener("mouseleave", function() {
528
+ r.isDown && r.slidable && (r.isDown = !1, t.classList.remove("dragging"), t.classList.remove("moving"), r.resetPos(e));
529
+ }), t.addEventListener(F, function(s) {
488
530
  if (r.draggable && r.slidable) {
489
531
  if (!r.isDown)
490
532
  return;
@@ -499,120 +541,120 @@ function qt(r) {
499
541
  break;
500
542
  }
501
543
  if (o !== 0) {
502
- e.classList.add("moving");
503
- const n = {
544
+ t.classList.add("moving");
545
+ const c = {
504
546
  transition: "all 0ms ease 0s",
505
547
  transform: `translate3d(${r.nowTranslateX + o}px,0,0)`
506
548
  };
507
- Object.assign(e.style, n);
549
+ Object.assign(t.style, c);
508
550
  }
509
551
  }
510
552
  });
511
553
  }
512
- function Wt(r) {
513
- const t = r.querySelectorAll("a");
514
- for (var e = 0, s = t.length; e < s; e++)
515
- t[e].draggable = !1;
554
+ function We(r) {
555
+ const e = r.querySelectorAll("a");
556
+ for (var t = 0, s = e.length; t < s; t++)
557
+ e[t].draggable = !1;
516
558
  }
517
- class Nt {
518
- constructor(t, e) {
519
- this.el = typeof t == "string" ? document.querySelector(t) : t, this.slideWrapEl = this.el.querySelector(".wrapper"), this.params = {
559
+ class Ne {
560
+ constructor(e, t) {
561
+ this.el = typeof e == "string" ? document.querySelector(e) : e, this.slideWrapEl = this.el.querySelector(".wrapper"), this.params = {
520
562
  speed: 300,
521
563
  clickSwitch: !0,
522
564
  breakpoint: !1
523
- }, Object.assign(this.params, e), this.draggable = !0, this.isDown = !1, this.startX = 0, this.nowTranslateX = w(this.slideWrapEl).x, this.slideTotalWidth = k(this.el), this.translateMin = 0, this.translateMax = -Math.floor(
565
+ }, Object.assign(this.params, t), this.draggable = !0, this.isDown = !1, this.startX = 0, this.nowTranslateX = w(this.slideWrapEl).x, this.slideTotalWidth = C(this.el), this.translateMin = 0, this.translateMax = -Math.floor(
524
566
  Math.abs(
525
- k(this.el) - this.el.querySelector(".wrapper").getBoundingClientRect().width
567
+ C(this.el) - this.el.querySelector(".wrapper").getBoundingClientRect().width
526
568
  )
527
569
  ), this.slidable = this.slideTotalWidth > Math.round(this.el.getBoundingClientRect().width) && (!this.params.breakpoint || window.innerWidth <= this.params.breakpoint), this.init();
528
570
  }
529
571
  init() {
530
- const t = this;
531
- t.slidable && (t.slideWrapEl.style.width = `${t.slideTotalWidth}px`, t.el.classList.add("slidable"), t.slideWrapEl.querySelector(".item.active") && t.moveActive()), window.addEventListener("resize", function() {
532
- t.update();
533
- }), qt(t), Wt(t.el);
572
+ const e = this;
573
+ e.slidable && (e.slideWrapEl.style.width = `${e.slideTotalWidth}px`, e.el.classList.add("slidable"), e.slideWrapEl.querySelector(".item.active") && e.moveActive()), window.addEventListener("resize", function() {
574
+ e.update();
575
+ }), qe(e), We(e.el);
534
576
  }
535
- moveActive(t) {
536
- const e = this, s = e.slideWrapEl.querySelector(".item.active"), n = s.previousElementSibling ? s.offsetLeft - e.el.clientWidth / 2 + s.clientWidth / 2 : 0;
537
- if (e.slidable) {
538
- if (-n < 0 && -n > e.translateMax) {
539
- const a = {
540
- transition: `all ${t || 0}ms ease 0s`,
541
- transform: `translate3d(-${n}px,0,0)`
577
+ moveActive(e) {
578
+ const t = this, s = t.slideWrapEl.querySelector(".item.active"), c = s.previousElementSibling ? s.offsetLeft - t.el.clientWidth / 2 + s.clientWidth / 2 : 0;
579
+ if (t.slidable) {
580
+ if (-c < 0 && -c > t.translateMax) {
581
+ const l = {
582
+ transition: `all ${e || 0}ms ease 0s`,
583
+ transform: `translate3d(-${c}px,0,0)`
542
584
  };
543
- Object.assign(e.slideWrapEl.style, a);
544
- } else if (-n >= 0) {
545
- const a = {
546
- transition: `all ${t || 0}ms ease 0s`,
585
+ Object.assign(t.slideWrapEl.style, l);
586
+ } else if (-c >= 0) {
587
+ const l = {
588
+ transition: `all ${e || 0}ms ease 0s`,
547
589
  transform: "translate3d(0,0,0)"
548
590
  };
549
- Object.assign(e.slideWrapEl.style, a);
591
+ Object.assign(t.slideWrapEl.style, l);
550
592
  } else {
551
- const a = {
552
- transition: `all ${t || 0}ms ease 0s`,
553
- transform: `translate3d(${e.translateMax}px,0,0)`
593
+ const l = {
594
+ transition: `all ${e || 0}ms ease 0s`,
595
+ transform: `translate3d(${t.translateMax}px,0,0)`
554
596
  };
555
- Object.assign(e.slideWrapEl.style, a);
597
+ Object.assign(t.slideWrapEl.style, l);
556
598
  }
557
- if (t)
558
- e.slideWrapEl.addEventListener(
599
+ if (e)
600
+ t.slideWrapEl.addEventListener(
559
601
  "transitionend",
560
602
  function() {
561
- switch (e.nowTranslateX = w(e.slideWrapEl).x, U(e)) {
603
+ switch (t.nowTranslateX = w(t.slideWrapEl).x, U(t)) {
562
604
  case "is-start":
563
- e.el.classList.add("is-start"), e.el.classList.remove("is-end");
605
+ t.el.classList.add("is-start"), t.el.classList.remove("is-end");
564
606
  break;
565
607
  case "is-middle":
566
- e.el.classList.remove("is-start"), e.el.classList.remove("is-end");
608
+ t.el.classList.remove("is-start"), t.el.classList.remove("is-end");
567
609
  break;
568
610
  case "is-end":
569
- e.el.classList.remove("is-start"), e.el.classList.add("is-end");
611
+ t.el.classList.remove("is-start"), t.el.classList.add("is-end");
570
612
  break;
571
613
  }
572
614
  },
573
615
  !1
574
616
  );
575
617
  else
576
- switch (e.nowTranslateX = w(e.slideWrapEl).x, U(e)) {
618
+ switch (t.nowTranslateX = w(t.slideWrapEl).x, U(t)) {
577
619
  case "is-start":
578
- e.el.classList.add("is-start"), e.el.classList.remove("is-end");
620
+ t.el.classList.add("is-start"), t.el.classList.remove("is-end");
579
621
  break;
580
622
  case "is-middle":
581
- e.el.classList.remove("is-start"), e.el.classList.remove("is-end");
623
+ t.el.classList.remove("is-start"), t.el.classList.remove("is-end");
582
624
  break;
583
625
  case "is-end":
584
- e.el.classList.remove("is-start"), e.el.classList.add("is-end");
626
+ t.el.classList.remove("is-start"), t.el.classList.add("is-end");
585
627
  break;
586
628
  }
587
629
  }
588
630
  }
589
631
  resetPos() {
590
- const t = this;
591
- switch (U(t)) {
632
+ const e = this;
633
+ switch (U(e)) {
592
634
  case "is-start":
593
- t.el.classList.add("is-start"), t.el.classList.remove("is-end"), Object.assign(t.slideWrapEl.style, {
594
- transition: `all ${t.params.speed}ms ease 0s`,
635
+ e.el.classList.add("is-start"), e.el.classList.remove("is-end"), Object.assign(e.slideWrapEl.style, {
636
+ transition: `all ${e.params.speed}ms ease 0s`,
595
637
  transform: "translate3d(0,0,0)"
596
638
  });
597
639
  break;
598
640
  case "is-middle":
599
- t.el.classList.remove("is-start"), t.el.classList.remove("is-end");
641
+ e.el.classList.remove("is-start"), e.el.classList.remove("is-end");
600
642
  break;
601
643
  case "is-end":
602
- t.el.classList.remove("is-start"), t.el.classList.add("is-end"), Object.assign(t.slideWrapEl.style, {
603
- transition: `all ${t.params.speed}ms ease 0s`,
604
- transform: `translate3d(${t.translateMax}px,0,0)`
644
+ e.el.classList.remove("is-start"), e.el.classList.add("is-end"), Object.assign(e.slideWrapEl.style, {
645
+ transition: `all ${e.params.speed}ms ease 0s`,
646
+ transform: `translate3d(${e.translateMax}px,0,0)`
605
647
  });
606
648
  break;
607
649
  }
608
650
  }
609
651
  update() {
610
- const t = this;
611
- t.el.querySelector(".wrapper").removeAttribute("style"), t.slideTotalWidth = k(t.el), t.translateMax = -Math.floor(
652
+ const e = this;
653
+ e.el.querySelector(".wrapper").removeAttribute("style"), e.slideTotalWidth = C(e.el), e.translateMax = -Math.floor(
612
654
  Math.abs(
613
- k(t.el) - t.el.querySelector(".wrapper").getBoundingClientRect().width
655
+ C(e.el) - e.el.querySelector(".wrapper").getBoundingClientRect().width
614
656
  )
615
- ), t.slidable = t.slideTotalWidth > Math.round(t.el.getBoundingClientRect().width) && (!t.params.breakpoint || window.innerWidth <= t.params.breakpoint), t.slidable ? (t.slideWrapEl.style.width = `${t.slideTotalWidth}px`, t.el.classList.add("slidable"), t.slideWrapEl.querySelector(".item.active") && t.moveActive()) : (t.el.classList.remove("slidable"), t.el.classList.remove("is-start"), t.el.classList.remove("is-end"), t.slideWrapEl.removeAttribute("style"));
657
+ ), e.slidable = e.slideTotalWidth > Math.round(e.el.getBoundingClientRect().width) && (!e.params.breakpoint || window.innerWidth <= e.params.breakpoint), e.slidable ? (e.slideWrapEl.style.width = `${e.slideTotalWidth}px`, e.el.classList.add("slidable"), e.slideWrapEl.querySelector(".item.active") && e.moveActive()) : (e.el.classList.remove("slidable"), e.el.classList.remove("is-start"), e.el.classList.remove("is-end"), e.slideWrapEl.removeAttribute("style"));
616
658
  }
617
659
  }
618
660
  const Z = (r) => {
@@ -627,95 +669,95 @@ const Z = (r) => {
627
669
  if (r == "telegram")
628
670
  return "https://telegram.me/share/url?url=";
629
671
  };
630
- var D, pt, H, ht, j, mt;
631
- class It {
632
- constructor(t, e = {}) {
672
+ var D, pe, H, he, j, me;
673
+ class ze {
674
+ constructor(e, t = {}) {
633
675
  m(this, D);
634
676
  m(this, H);
635
677
  m(this, j);
636
678
  this.__storage__ = {
637
- el: t,
638
- options: e
639
- }, p(this, D, pt).call(this);
679
+ el: e,
680
+ options: t
681
+ }, p(this, D, pe).call(this);
640
682
  }
641
683
  }
642
- D = new WeakSet(), pt = function() {
643
- const { el: t, options: e } = this.__storage__, { SETTINGS: s } = At;
644
- !tt(t) || !V(t) || (this.elements = T(t), this.options = Object.assign({}, s, e), p(this, H, ht).call(this));
645
- }, H = new WeakSet(), ht = function() {
646
- const { elements: t, options: e } = this;
647
- t.forEach((s) => {
684
+ D = new WeakSet(), pe = function() {
685
+ const { el: e, options: t } = this.__storage__, { SETTINGS: s } = Ae;
686
+ !ee(e) || !V(e) || (this.elements = T(e), this.options = Object.assign({}, s, t), p(this, H, he).call(this));
687
+ }, H = new WeakSet(), he = function() {
688
+ const { elements: e, options: t } = this;
689
+ e.forEach((s) => {
648
690
  s.querySelectorAll("[share-target]").forEach((o) => {
649
- o.share = {}, o.share.instance = this, o.share.params = e, o.share.eventHandler = p(this, j, mt), o.addEventListener("click", o.share.eventHandler);
691
+ o.share = {}, o.share.instance = this, o.share.params = t, o.share.eventHandler = p(this, j, me), o.addEventListener("click", o.share.eventHandler);
650
692
  });
651
693
  });
652
- }, j = new WeakSet(), mt = function() {
653
- const { eventHandler: t, params: e } = this.share, s = this.getAttribute("share-target"), o = {
694
+ }, j = new WeakSet(), me = function() {
695
+ const { eventHandler: e, params: t } = this.share, s = this.getAttribute("share-target"), o = {
654
696
  source: this.getAttribute("utm-source"),
655
697
  medium: this.getAttribute("utm-medium"),
656
698
  campaign: this.getAttribute("utm-campaign")
657
- }, n = {
658
- success: this.getAttribute("copy-success") || e.success,
659
- text: this.getAttribute("copy-text") || e.text,
660
- className: this.getAttribute("copy-class") || e.className,
661
- duration: this.getAttribute("copy-duration") || e.duration
662
- }, a = encodeURIComponent(document.URL);
663
- let d = a;
699
+ }, c = {
700
+ success: this.getAttribute("copy-success") || t.success,
701
+ text: this.getAttribute("copy-text") || t.text,
702
+ className: this.getAttribute("copy-class") || t.className,
703
+ duration: this.getAttribute("copy-duration") || t.duration
704
+ }, l = encodeURIComponent(document.URL);
705
+ let d = l;
664
706
  if (s == "wechat") {
665
- window.open(`https://api.qrserver.com/v1/create-qr-code/?data=${a}&size=250x250`, "share to wechat", "width=300,height=300");
707
+ window.open(`https://api.qrserver.com/v1/create-qr-code/?data=${l}&size=250x250`, "share to wechat", "width=300,height=300");
666
708
  return;
667
709
  }
668
710
  if (s == "url") {
669
711
  if (V(".copied-wrapper"))
670
712
  return;
671
- document.querySelector("body").insertAdjacentHTML(xt.append, `<div class='copied-wrapper'><div class='text'>${n.success ? n.success : ""}</div><input id='clipboard' type='text' readonly></div>`);
713
+ document.querySelector("body").insertAdjacentHTML(xe.append, `<div class='copied-wrapper'><div class='text'>${c.success ? c.success : ""}</div><input id='clipboard' type='text' readonly></div>`);
672
714
  const u = document.querySelector(".copied-wrapper");
673
- n.className && u.classList.add(n.className), u.style.top = this.getBoundingClientRect().top + window.scrollY + "px", u.style.left = this.getBoundingClientRect().left + this.getBoundingClientRect().width / 2 + "px", u.style.display = "block";
715
+ c.className && u.classList.add(c.className), u.style.top = this.getBoundingClientRect().top + window.scrollY + "px", u.style.left = this.getBoundingClientRect().left + this.getBoundingClientRect().width / 2 + "px", u.style.display = "block";
674
716
  const i = document.querySelector("#clipboard");
675
- if (i.value = n.text ?? window.location.href, i.setSelectionRange(0, 9999), i.select(), document.execCommand("copy")) {
717
+ if (i.value = c.text ?? window.location.href, i.setSelectionRange(0, 9999), i.select(), document.execCommand("copy")) {
676
718
  document.execCommand("copy");
677
- const l = document.querySelector(".copied-wrapper"), c = document.querySelector(".copied-wrapper .text");
678
- c.style.display = "block", c.style.opacity = 0;
719
+ const n = document.querySelector(".copied-wrapper"), a = document.querySelector(".copied-wrapper .text");
720
+ a.style.display = "block", a.style.opacity = 0;
679
721
  const h = (b, v) => {
680
722
  let y = 0;
681
723
  const $ = 50, L = $ / v, P = setInterval(function() {
682
724
  y += L, b.style.opacity = y, y >= 1 && (clearInterval(P), setTimeout(function() {
683
725
  g(b, 300, function() {
684
- l.remove();
726
+ n.remove();
685
727
  });
686
- }, n.duration));
728
+ }, c.duration));
687
729
  }, $);
688
730
  }, g = (b, v, y) => {
689
731
  let $ = 1;
690
- const L = 50, P = L / v, gt = setInterval(() => {
691
- $ -= P, b.style.opacity = $, $ <= 0 && (clearInterval(gt), b.style.display = "none", y && y());
732
+ const L = 50, P = L / v, ge = setInterval(() => {
733
+ $ -= P, b.style.opacity = $, $ <= 0 && (clearInterval(ge), b.style.display = "none", y && y());
692
734
  }, L);
693
735
  };
694
- h(c, 300);
736
+ h(a, 300);
695
737
  }
696
738
  return;
697
739
  }
698
- d = `${d}${o.source ? `?utm_source=${o.source}` : ""}${o.medium ? `&utm_medium${o.medium}` : ""}${o.campaign ? `&utm_campaign${o.campaign}` : ""}`, d = d.replace("?", "%3F").replace(new RegExp("&", "g"), "%26"), s == "line" ? window.open(`${Z(s)}${a}`) : window.open(`${Z(s)}${d}&quote=${d}`), this.removeEventListener("click", t), setTimeout(() => {
699
- this.addEventListener("click", t);
740
+ d = `${d}${o.source ? `?utm_source=${o.source}` : ""}${o.medium ? `&utm_medium${o.medium}` : ""}${o.campaign ? `&utm_campaign${o.campaign}` : ""}`, d = d.replace("?", "%3F").replace(new RegExp("&", "g"), "%26"), s == "line" ? window.open(`${Z(s)}${l}`) : window.open(`${Z(s)}${d}&quote=${d}`), this.removeEventListener("click", e), setTimeout(() => {
741
+ this.addEventListener("click", e);
700
742
  }, 100);
701
743
  };
702
744
  export {
703
- Dt as Anchor4,
704
- Ht as Aost4,
705
- Bt as Article4,
706
- Nt as CategorySlider,
707
- jt as Collapse4,
708
- Pt as Configs,
709
- Rt as Detect4,
710
- Ft as Dropdown4,
711
- Ut as ImagePreview,
712
- Vt as ImageValidate,
713
- Yt as Marquee4,
714
- Gt as Modal4,
715
- Jt as Multipurpose4,
716
- Kt as Ripple4,
717
- It as Share4,
718
- Qt as Tab4,
719
- ft as Video4
745
+ De as Anchor4,
746
+ He as Aost4,
747
+ Be as Article4,
748
+ Ne as CategorySlider,
749
+ je as Collapse4,
750
+ Pe as Configs,
751
+ Re as Detect4,
752
+ Fe as Dropdown4,
753
+ Ue as ImagePreview,
754
+ Ve as ImageValidate,
755
+ Ye as Marquee4,
756
+ Ge as Modal4,
757
+ Je as Multipurpose4,
758
+ Ke as Ripple4,
759
+ ze as Share4,
760
+ Qe as Tab4,
761
+ fe as Video4
720
762
  };
721
763
  //# sourceMappingURL=fesd-bundle.js.map