@xwadex/fesd 0.0.14-re.51 → 0.0.14-re.53

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,22 +1,22 @@
1
- var Z = (r, e, t) => {
2
- if (!e.has(r))
1
+ var Z = (s, e, t) => {
2
+ if (!e.has(s))
3
3
  throw TypeError("Cannot " + t);
4
4
  };
5
- var d = (r, e, t) => {
6
- if (e.has(r))
5
+ var d = (s, e, t) => {
6
+ if (e.has(s))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
- e instanceof WeakSet ? e.add(r) : e.set(r, t);
8
+ e instanceof WeakSet ? e.add(s) : e.set(s, t);
9
9
  };
10
- var l = (r, e, t) => (Z(r, e, "access private method"), t);
10
+ var l = (s, e, t) => (Z(s, e, "access private method"), t);
11
11
  import { i as F, a as B, g as C, v as ee, c as te, b as se, d as re, e as ie, f as oe, s as ae } from "./image-preview-bundle.js";
12
- import { A as xe, j as Se, C as Ee, h as Ce, D as Le, m as qe, I as We, k as ke, M as Te, l as _e, R as Me, T as Oe } from "./image-preview-bundle.js";
12
+ import { A as Ae, j as Se, C as Ee, h as Ce, D as Le, m as qe, I as We, k as ke, M as Te, l as _e, R as Me, T as Oe } from "./image-preview-bundle.js";
13
13
  import { S as ne } from "./vendor-bundle.js";
14
14
  const $ = () => {
15
- const r = navigator.userAgent, e = {
15
+ const s = navigator.userAgent, e = {
16
16
  // Firefox 1.0+
17
17
  isFirefox: typeof InstallTrigger < "u",
18
18
  // Opera 8.0+
19
- isOpera: !!window.opr && !!opr.addons || !!window.opera || r.indexOf(" OPR/") >= 0,
19
+ isOpera: !!window.opr && !!opr.addons || !!window.opera || s.indexOf(" OPR/") >= 0,
20
20
  // Internet Explorer 6-11
21
21
  isIE: (
22
22
  /*@cc_on!@*/
@@ -25,44 +25,44 @@ const $ = () => {
25
25
  // Edge 20+
26
26
  isEdge: !document.documentMode && !!window.StyleMedia,
27
27
  // Edge (based on chromium) detection
28
- isEdgeChromium: /\sedg\//i.test(r) || /edg([ea]|ios)/i.test(r),
28
+ isEdgeChromium: /\sedg\//i.test(s) || /edg([ea]|ios)/i.test(s),
29
29
  // Safari 3.0+ "[object HTMLElementConstructor]"
30
- isSafari: !/chrome|crios|crmo/i.test(r) && /safari/i.test(r),
30
+ isSafari: !/chrome|crios|crmo/i.test(s) && /safari/i.test(s),
31
31
  // Chrome 1 - 79
32
- isChrome: !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime) || /chrome|crios|crmo/i.test(r)
32
+ isChrome: !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime) || /chrome|crios|crmo/i.test(s)
33
33
  }, t = {
34
34
  // Android
35
- isAndroid: r.indexOf("Android") > -1 || r.indexOf("Adr") > -1,
35
+ isAndroid: s.indexOf("Android") > -1 || s.indexOf("Adr") > -1,
36
36
  // iOS | ipad
37
- isiOS: r.indexOf("Mac") > -1 && "ontouchend" in document
38
- }, s = {
37
+ isiOS: s.indexOf("Mac") > -1 && "ontouchend" in document
38
+ }, r = {
39
39
  // window
40
- isWindows: r.indexOf("Win") > -1,
40
+ isWindows: s.indexOf("Win") > -1,
41
41
  // macos
42
- isMacOS: r.indexOf("Mac") > -1,
42
+ isMacOS: s.indexOf("Mac") > -1,
43
43
  // UNIX
44
- isUNIX: r.indexOf("X11") > -1,
44
+ isUNIX: s.indexOf("X11") > -1,
45
45
  // Linux
46
- isLinux: r.indexOf("Linux") > -1
46
+ isLinux: s.indexOf("Linux") > -1
47
47
  };
48
- return { browser: e, mobile: t, os: s };
48
+ return { browser: e, mobile: t, os: r };
49
49
  }, le = () => {
50
- const { browser: r } = $();
51
- return Object.keys(r).find((e) => {
52
- if (r[e])
53
- return r[e];
50
+ const { browser: s } = $();
51
+ return Object.keys(s).find((e) => {
52
+ if (s[e])
53
+ return s[e];
54
54
  });
55
55
  }, ce = () => {
56
- const { mobile: r } = $();
57
- return Object.keys(r).some((e) => {
58
- if (r[e])
59
- return r[e];
56
+ const { mobile: s } = $();
57
+ return Object.keys(s).some((e) => {
58
+ if (s[e])
59
+ return s[e];
60
60
  });
61
61
  }, de = () => {
62
- const { os: r } = $();
63
- return Object.keys(r).find((e) => {
64
- if (r[e])
65
- return r[e];
62
+ const { os: s } = $();
63
+ return Object.keys(s).find((e) => {
64
+ if (s[e])
65
+ return s[e];
66
66
  });
67
67
  }, ue = () => console.dir($());
68
68
  function we() {
@@ -74,8 +74,8 @@ function we() {
74
74
  logs: ue
75
75
  };
76
76
  }
77
- const u = (r, e, t) => {
78
- r && (se(r) ? r.forEach((s) => s.style[e] = t) : r.style[e] = t);
77
+ const u = (s, e, t) => {
78
+ s && (se(s) ? s.forEach((r) => r.style[e] = t) : s.style[e] = t);
79
79
  };
80
80
  var L, U, q, V, f, R, W, z, y, j, k, G;
81
81
  class ve {
@@ -96,21 +96,21 @@ class ve {
96
96
  update() {
97
97
  const { elements: e } = this;
98
98
  e.forEach((t) => {
99
- t.querySelectorAll("._article").forEach((s) => {
100
- s.article = {}, s.article.parent = t, s.article.params = l(this, f, R).call(this, s), l(this, y, j).call(this, s);
99
+ t.querySelectorAll("._article").forEach((r) => {
100
+ r.article = {}, r.article.parent = t, r.article.params = l(this, f, R).call(this, r), l(this, y, j).call(this, r);
101
101
  });
102
102
  });
103
103
  }
104
104
  }
105
105
  L = new WeakSet(), U = function() {
106
- const { el: e, options: t } = this.__storage__, { SETTINGS: s } = re;
107
- this.elements = t.state == "not active" ? C(e + `:not([${this.active}])`) : C(e), this.elements = C(e), this.options = Object.assign({}, s, t), l(this, q, V).call(this);
106
+ const { el: e, options: t } = this.__storage__, { SETTINGS: r } = re;
107
+ this.elements = t.state == "not active" ? C(e + `:not([${this.active}])`) : C(e), this.elements = C(e), this.options = Object.assign({}, r, t), l(this, q, V).call(this);
108
108
  }, q = new WeakSet(), V = function() {
109
109
  const { elements: e } = this;
110
110
  e.forEach((t) => {
111
- t.setAttribute(this.active, ""), t.querySelectorAll("._article").forEach((s) => {
111
+ t.setAttribute(this.active, ""), t.querySelectorAll("._article").forEach((r) => {
112
112
  var i, a;
113
- s.article = {}, s.article.parent = t, s.article.params = l(this, f, R).call(this, s), s.article.methods = {}, s.article.methods.update = this.update, l(a = l(i = l(this, W, z).call(this, s), y, j).call(i, s), k, G).call(a, s);
113
+ r.article = {}, r.article.parent = t, r.article.params = l(this, f, R).call(this, r), r.article.methods = {}, r.article.methods.update = this.update, l(a = l(i = l(this, W, z).call(this, r), y, j).call(i, r), k, G).call(a, r);
114
114
  });
115
115
  });
116
116
  }, f = new WeakSet(), R = function(e) {
@@ -152,17 +152,17 @@ L = new WeakSet(), U = function() {
152
152
  const { params: t } = e.article;
153
153
  return t.$video.length && new ee(t.$video), this;
154
154
  }, k = new WeakSet(), G = function(e) {
155
- const { basic_rwd: t } = this.options, { params: s } = e.article;
156
- if (!s.$swiper)
155
+ const { basic_rwd: t } = this.options, { params: r } = e.article;
156
+ if (!r.$swiper)
157
157
  return;
158
158
  const i = te(), a = this;
159
159
  let o = {
160
160
  on: {
161
161
  init(n) {
162
162
  const g = n.$el[0];
163
- s.$video.length && ([...g.querySelectorAll("[video4-active]")].forEach((v) => {
164
- var x, p;
165
- (x = v.querySelector(ie.SETTINGS.videoButton)) == null || x.remove(), (p = v.querySelector(".overlay")) == null || p.remove(), v.removeAttribute("video4-active");
163
+ r.$video.length && ([...g.querySelectorAll("[video4-active]")].forEach((v) => {
164
+ var A, p;
165
+ (A = v.querySelector(ie.SETTINGS.videoButton)) == null || A.remove(), (p = v.querySelector(".overlay")) == null || p.remove(), v.removeAttribute("video4-active");
166
166
  }), a.update());
167
167
  },
168
168
  observerUpdate(n) {
@@ -172,133 +172,133 @@ L = new WeakSet(), U = function() {
172
172
  observer: !0,
173
173
  breakpoints: {}
174
174
  };
175
- if (s.$selector.setAttribute("img-swiper", "on"), s.$selector.classList.add(`swiper-${i}`), s.$selector.getAttribute("swiper-arrow") !== "off" && s.$selector.getAttribute("swiper-arrow")) {
175
+ if (r.$selector.setAttribute("img-swiper", "on"), r.$selector.classList.add(`swiper-${i}`), r.$selector.getAttribute("swiper-arrow") !== "off" && r.$selector.getAttribute("swiper-arrow")) {
176
176
  const n = document.createElement("div");
177
- n.className = `swiper-button-next swiper-${i}`, s.$swiperButtonCover.appendChild(n);
177
+ n.className = `swiper-button-next swiper-${i}`, r.$swiperButtonCover.appendChild(n);
178
178
  const g = document.createElement("div");
179
- g.className = `swiper-button-prev swiper-${i}`, s.$swiperButtonCover.appendChild(g), o.navigation = {
179
+ g.className = `swiper-button-prev swiper-${i}`, r.$swiperButtonCover.appendChild(g), o.navigation = {
180
180
  nextEl: `.swiper-button-next.swiper-${i}`,
181
181
  prevEl: `.swiper-button-prev.swiper-${i}`
182
182
  };
183
183
  }
184
- if (s.$selector.getAttribute("swiper-nav") !== "off" || !s.$selector.getAttribute("swiper-nav")) {
184
+ if (r.$selector.getAttribute("swiper-nav") !== "off" || !r.$selector.getAttribute("swiper-nav")) {
185
185
  const n = document.createElement("div");
186
- n.className = `swiper-pagination swiper-${i}`, s.$swiper.appendChild(n), o.pagination = {
186
+ n.className = `swiper-pagination swiper-${i}`, r.$swiper.appendChild(n), o.pagination = {
187
187
  el: `.swiper-pagination.swiper-${i}`,
188
188
  clickable: !0
189
189
  };
190
190
  }
191
- Number.parseInt(s.$selector.getAttribute("swiper-num")) && (o.breakpoints[t] = {
192
- slidesPerView: s.$selector.getAttribute("swiper-num") ? Number.parseInt(s.$selector.getAttribute("swiper-num")) > 5 ? 5 : Number.parseInt(s.$selector.getAttribute("swiper-num")) : 1
193
- }), (s.$selector.getAttribute("swiper-autoplay") !== "off" || !s.$selector.getAttribute("swiper-autoplay")) && (o.autoplay = {
191
+ Number.parseInt(r.$selector.getAttribute("swiper-num")) && (o.breakpoints[t] = {
192
+ slidesPerView: r.$selector.getAttribute("swiper-num") ? Number.parseInt(r.$selector.getAttribute("swiper-num")) > 5 ? 5 : Number.parseInt(r.$selector.getAttribute("swiper-num")) : 1
193
+ }), (r.$selector.getAttribute("swiper-autoplay") !== "off" || !r.$selector.getAttribute("swiper-autoplay")) && (o.autoplay = {
194
194
  delay: 3e3,
195
195
  disableOnInteraction: !1
196
- }), (s.$selector.getAttribute("swiper-loop") !== "off" || !s.$selector.getAttribute("swiper-loop")) && (o.loop = !0), s.$selector.getAttribute("swiper-speed") && (o.speed = parseInt(s.$selector.getAttribute("swiper-speed"))), s.$selector.getAttribute("swiper-parallax") !== "off" && !s.$selector.getAttribute("swiper-loop") && (o.parallax = !0), s.$selector.getAttribute("swiper-pagination-dynamic") === "on" && (o.pagination.dynamicBullets = !0);
197
- let c = () => window.innerWidth > this.basic_rwd && Number(s.$selector.getAttribute("swiper-num")) || 1;
198
- s.$swiper.querySelectorAll(".swiper-slide").length <= c() && (o.navigation = !1, o.pagination = !1, o.autoplay = !1, o.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"));
199
- const h = new ne(s.$swiper, o);
196
+ }), (r.$selector.getAttribute("swiper-loop") !== "off" || !r.$selector.getAttribute("swiper-loop")) && (o.loop = !0), r.$selector.getAttribute("swiper-speed") && (o.speed = parseInt(r.$selector.getAttribute("swiper-speed"))), r.$selector.getAttribute("swiper-parallax") !== "off" && !r.$selector.getAttribute("swiper-loop") && (o.parallax = !0), o.pagination ? o.pagination.dynamicBullets = !0 : console.warn("pagination undefined");
197
+ let c = () => window.innerWidth > this.basic_rwd && Number(r.$selector.getAttribute("swiper-num")) || 1;
198
+ r.$swiper.querySelectorAll(".swiper-slide").length <= c() && (o.navigation = !1, o.pagination = !1, o.autoplay = !1, o.loop = !1, r.$selector.querySelector(".swiper-button-cover").style.display = "none", r.$selector.querySelector(".swiper-pagination").style.display = "none", r.$swiper.classList.add("swiper-no-swiping"));
199
+ const h = new ne(r.$swiper, o);
200
200
  return e.article.swiperList = [], e.article.swiperList.push(h), this;
201
201
  };
202
202
  let D = "ontouchstart" in document.documentElement ? "touchstart" : "mousedown", H = "ontouchend" in document.documentElement ? "touchend" : "mouseup", N = "ontouchmove" in document.documentElement ? "touchmove" : "mousemove";
203
- function m(r) {
204
- const e = window.getComputedStyle(r), t = e.transform || e.mozTransform;
203
+ function m(s) {
204
+ const e = window.getComputedStyle(s), t = e.transform || e.mozTransform;
205
205
  if (t === "none")
206
206
  return {
207
207
  x: 0,
208
208
  y: 0,
209
209
  z: 0
210
210
  };
211
- const s = t.includes("3d") ? "3d" : "2d", i = t.match(/matrix.*\((.+)\)/)[1].split(", ");
212
- if (s === "2d")
211
+ const r = t.includes("3d") ? "3d" : "2d", i = t.match(/matrix.*\((.+)\)/)[1].split(", ");
212
+ if (r === "2d")
213
213
  return {
214
214
  x: Number(i[4]),
215
215
  y: Number(i[5]),
216
216
  z: 0
217
217
  };
218
- if (s === "3d")
218
+ if (r === "3d")
219
219
  return {
220
220
  x: Number(i[12]),
221
221
  y: Number(i[13]),
222
222
  z: Number(i[14])
223
223
  };
224
224
  }
225
- function E(r) {
226
- const t = r.querySelector(".wrapper").querySelectorAll(".item");
227
- let s = 0;
225
+ function E(s) {
226
+ const t = s.querySelector(".wrapper").querySelectorAll(".item");
227
+ let r = 0;
228
228
  return t.forEach((i) => {
229
229
  const a = getComputedStyle(i), o = parseInt(a.marginLeft), c = parseInt(a.marginRight);
230
- s += i.getBoundingClientRect().width + o + c;
231
- }), s;
230
+ r += i.getBoundingClientRect().width + o + c;
231
+ }), r;
232
232
  }
233
- function X(r) {
234
- if (m(r.slideWrapEl).x >= r.translateMin)
233
+ function X(s) {
234
+ if (m(s.slideWrapEl).x >= s.translateMin)
235
235
  return "is-start";
236
- if (m(r.slideWrapEl).x <= r.translateMax)
236
+ if (m(s.slideWrapEl).x <= s.translateMax)
237
237
  return "is-end";
238
- if (m(r.slideWrapEl).x < r.translateMin && m(r.slideWrapEl).x > r.translateMax)
238
+ if (m(s.slideWrapEl).x < s.translateMin && m(s.slideWrapEl).x > s.translateMax)
239
239
  return "is-middle";
240
240
  }
241
- function pe(r) {
242
- const e = r.el, t = e.querySelector(".wrapper");
243
- t.addEventListener(D, function(s) {
244
- switch (r.isDown = !0, r.slidable && t.classList.add("dragging"), D) {
241
+ function pe(s) {
242
+ const e = s.el, t = e.querySelector(".wrapper");
243
+ t.addEventListener(D, function(r) {
244
+ switch (s.isDown = !0, s.slidable && t.classList.add("dragging"), D) {
245
245
  case "mousedown":
246
- r.startX = s.pageX;
246
+ s.startX = r.pageX;
247
247
  break;
248
248
  case "touchstart":
249
- r.startX = s.changedTouches[0].pageX;
249
+ s.startX = r.changedTouches[0].pageX;
250
250
  break;
251
251
  }
252
- r.nowTranslateX = m(t).x;
253
- }), t.addEventListener(H, function(s) {
254
- r.isDown = !1, t.classList.remove("dragging"), t.classList.remove("moving");
252
+ s.nowTranslateX = m(t).x;
253
+ }), t.addEventListener(H, function(r) {
254
+ s.isDown = !1, t.classList.remove("dragging"), t.classList.remove("moving");
255
255
  let i;
256
256
  switch (N) {
257
257
  case "mousemove":
258
- i = s.pageX - r.startX;
258
+ i = r.pageX - s.startX;
259
259
  break;
260
260
  case "touchmove":
261
- i = s.changedTouches[0].pageX - r.startX;
261
+ i = r.changedTouches[0].pageX - s.startX;
262
262
  break;
263
263
  }
264
- if (i === 0 && s.target.closest(".item")) {
265
- if (H === "mouseup" && s.button !== 0)
264
+ if (i === 0 && r.target.closest(".item")) {
265
+ if (H === "mouseup" && r.button !== 0)
266
266
  return;
267
267
  t.querySelectorAll(".item").forEach((o) => {
268
268
  o.classList.remove("active");
269
- }), s.target.closest(".item").classList.add("active"), r.moveActive(r.params.speed);
269
+ }), r.target.closest(".item").classList.add("active"), s.moveActive(s.params.speed);
270
270
  } else
271
- r.slidable && r.resetPos(e);
271
+ s.slidable && s.resetPos(e);
272
272
  }), t.addEventListener("mouseleave", function() {
273
- r.isDown && r.slidable && (r.isDown = !1, t.classList.remove("dragging"), t.classList.remove("moving"), r.resetPos(e));
274
- }), t.addEventListener(N, function(s) {
275
- if (r.draggable && r.slidable) {
276
- if (!r.isDown)
273
+ s.isDown && s.slidable && (s.isDown = !1, t.classList.remove("dragging"), t.classList.remove("moving"), s.resetPos(e));
274
+ }), t.addEventListener(N, function(r) {
275
+ if (s.draggable && s.slidable) {
276
+ if (!s.isDown)
277
277
  return;
278
- s.preventDefault();
278
+ r.preventDefault();
279
279
  let i;
280
280
  switch (N) {
281
281
  case "mousemove":
282
- i = s.pageX - r.startX;
282
+ i = r.pageX - s.startX;
283
283
  break;
284
284
  case "touchmove":
285
- i = s.changedTouches[0].pageX - r.startX;
285
+ i = r.changedTouches[0].pageX - s.startX;
286
286
  break;
287
287
  }
288
288
  if (i !== 0) {
289
289
  t.classList.add("moving");
290
290
  const a = {
291
291
  transition: "all 0ms ease 0s",
292
- transform: `translate3d(${r.nowTranslateX + i}px,0,0)`
292
+ transform: `translate3d(${s.nowTranslateX + i}px,0,0)`
293
293
  };
294
294
  Object.assign(t.style, a);
295
295
  }
296
296
  }
297
297
  });
298
298
  }
299
- function me(r) {
300
- const e = r.querySelectorAll("a");
301
- for (var t = 0, s = e.length; t < s; t++)
299
+ function me(s) {
300
+ const e = s.querySelectorAll("a");
301
+ for (var t = 0, r = e.length; t < r; t++)
302
302
  e[t].draggable = !1;
303
303
  }
304
304
  class fe {
@@ -320,7 +320,7 @@ class fe {
320
320
  }), pe(e), me(e.el);
321
321
  }
322
322
  moveActive(e) {
323
- const t = this, s = t.slideWrapEl.querySelector(".item.active"), a = s.previousElementSibling ? s.offsetLeft - t.el.clientWidth / 2 + s.clientWidth / 2 : 0;
323
+ const t = this, r = t.slideWrapEl.querySelector(".item.active"), a = r.previousElementSibling ? r.offsetLeft - t.el.clientWidth / 2 + r.clientWidth / 2 : 0;
324
324
  if (t.slidable) {
325
325
  if (-a < 0 && -a > t.translateMax) {
326
326
  const o = {
@@ -402,16 +402,16 @@ class fe {
402
402
  ), 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"));
403
403
  }
404
404
  }
405
- const P = (r) => {
406
- if (r == "facebook")
405
+ const P = (s) => {
406
+ if (s == "facebook")
407
407
  return "https://www.facebook.com/sharer/sharer.php?u=";
408
- if (r == "line")
408
+ if (s == "line")
409
409
  return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? "http://line.naver.jp/R/msg/text/?" : "https://lineit.line.me/share/ui?url=";
410
- if (r == "twitter")
410
+ if (s == "twitter")
411
411
  return "https://twitter.com/intent/tweet?url=";
412
- if (r == "linkedin")
412
+ if (s == "linkedin")
413
413
  return `http://www.linkedin.com/shareArticle?mini=true&title=${document.title}&source=${document.title}&url=`;
414
- if (r == "telegram")
414
+ if (s == "telegram")
415
415
  return "https://telegram.me/share/url?url=";
416
416
  };
417
417
  var T, Y, _, J, M, K;
@@ -427,17 +427,17 @@ class ye {
427
427
  }
428
428
  }
429
429
  T = new WeakSet(), Y = function() {
430
- const { el: e, options: t } = this.__storage__, { SETTINGS: s } = ae;
431
- !F(e) || !B(e) || (this.elements = C(e), this.options = Object.assign({}, s, t), l(this, _, J).call(this));
430
+ const { el: e, options: t } = this.__storage__, { SETTINGS: r } = ae;
431
+ !F(e) || !B(e) || (this.elements = C(e), this.options = Object.assign({}, r, t), l(this, _, J).call(this));
432
432
  }, _ = new WeakSet(), J = function() {
433
433
  const { elements: e, options: t } = this;
434
- e.forEach((s) => {
435
- s.querySelectorAll("[share-target]").forEach((i) => {
434
+ e.forEach((r) => {
435
+ r.querySelectorAll("[share-target]").forEach((i) => {
436
436
  i.share = {}, i.share.instance = this, i.share.params = t, i.share.eventHandler = l(this, M, K), i.addEventListener("click", i.share.eventHandler);
437
437
  });
438
438
  });
439
439
  }, M = new WeakSet(), K = function() {
440
- const { eventHandler: e, params: t } = this.share, s = this.getAttribute("share-target"), i = {
440
+ const { eventHandler: e, params: t } = this.share, r = this.getAttribute("share-target"), i = {
441
441
  source: this.getAttribute("utm-source"),
442
442
  medium: this.getAttribute("utm-medium"),
443
443
  campaign: this.getAttribute("utm-campaign")
@@ -448,11 +448,11 @@ T = new WeakSet(), Y = function() {
448
448
  duration: this.getAttribute("copy-duration") || t.duration
449
449
  }, o = encodeURIComponent(document.URL);
450
450
  let c = o;
451
- if (s == "wechat") {
451
+ if (r == "wechat") {
452
452
  window.open(`https://api.qrserver.com/v1/create-qr-code/?data=${o}&size=250x250`, "share to wechat", "width=300,height=300");
453
453
  return;
454
454
  }
455
- if (s == "url") {
455
+ if (r == "url") {
456
456
  if (B(".copied-wrapper"))
457
457
  return;
458
458
  document.querySelector("body").insertAdjacentHTML(oe.append, `<div class='copied-wrapper'><div class='text'>${a.success ? a.success : ""}</div><input id='clipboard' type='text' readonly></div>`);
@@ -461,33 +461,33 @@ T = new WeakSet(), Y = function() {
461
461
  const n = document.querySelector("#clipboard");
462
462
  if (n.value = a.text ?? window.location.href, n.setSelectionRange(0, 9999), n.select(), document.execCommand("copy")) {
463
463
  document.execCommand("copy");
464
- const g = document.querySelector(".copied-wrapper"), A = document.querySelector(".copied-wrapper .text");
465
- A.style.display = "block", A.style.opacity = 0;
464
+ const g = document.querySelector(".copied-wrapper"), x = document.querySelector(".copied-wrapper .text");
465
+ x.style.display = "block", x.style.opacity = 0;
466
466
  const v = (p, O) => {
467
467
  let b = 0;
468
468
  const w = 50, S = w / O, I = setInterval(function() {
469
469
  b += S, p.style.opacity = b, b >= 1 && (clearInterval(I), setTimeout(function() {
470
- x(p, 300, function() {
470
+ A(p, 300, function() {
471
471
  g.remove();
472
472
  });
473
473
  }, a.duration));
474
474
  }, w);
475
- }, x = (p, O, b) => {
475
+ }, A = (p, O, b) => {
476
476
  let w = 1;
477
477
  const S = 50, I = S / O, Q = setInterval(() => {
478
478
  w -= I, p.style.opacity = w, w <= 0 && (clearInterval(Q), p.style.display = "none", b && b());
479
479
  }, S);
480
480
  };
481
- v(A, 300);
481
+ v(x, 300);
482
482
  }
483
483
  return;
484
484
  }
485
- c = `${c}${i.source ? `?utm_source=${i.source}` : ""}${i.medium ? `&utm_medium${i.medium}` : ""}${i.campaign ? `&utm_campaign${i.campaign}` : ""}`, c = c.replace("?", "%3F").replace(new RegExp("&", "g"), "%26"), s == "line" ? window.open(`${P(s)}${o}`) : window.open(`${P(s)}${c}&quote=${c}`), this.removeEventListener("click", e), setTimeout(() => {
485
+ c = `${c}${i.source ? `?utm_source=${i.source}` : ""}${i.medium ? `&utm_medium${i.medium}` : ""}${i.campaign ? `&utm_campaign${i.campaign}` : ""}`, c = c.replace("?", "%3F").replace(new RegExp("&", "g"), "%26"), r == "line" ? window.open(`${P(r)}${o}`) : window.open(`${P(r)}${c}&quote=${c}`), this.removeEventListener("click", e), setTimeout(() => {
486
486
  this.addEventListener("click", e);
487
487
  }, 100);
488
488
  };
489
489
  export {
490
- xe as Anchor4,
490
+ Ae as Anchor4,
491
491
  Se as Aost4,
492
492
  ve as Article4,
493
493
  fe as CategorySlider,