@zyzgroup/core-web 0.0.5 → 0.0.6

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,26 +1,26 @@
1
- class I extends Error {
1
+ class B extends Error {
2
2
  cause;
3
3
  constructor(t, n) {
4
4
  super(t, n), this.name = this.constructor.name;
5
5
  }
6
6
  }
7
- class F extends I {
7
+ class G extends B {
8
8
  constructor() {
9
9
  super("This is not a browser environment");
10
10
  }
11
11
  }
12
- class B extends I {
12
+ class F extends B {
13
13
  constructor() {
14
14
  super("Cancel select");
15
15
  }
16
16
  }
17
- class j extends I {
17
+ class W extends B {
18
18
  accepts;
19
19
  constructor(t) {
20
20
  super(`Please select files in ${t} format`), this.accepts = t;
21
21
  }
22
22
  }
23
- function Y(e, t) {
23
+ function te(e, t) {
24
24
  e.addEventListener(
25
25
  "change",
26
26
  function() {
@@ -29,7 +29,7 @@ function Y(e, t) {
29
29
  !1
30
30
  );
31
31
  }
32
- function Q(e, t) {
32
+ function ne(e, t) {
33
33
  e.addEventListener(
34
34
  "dragover",
35
35
  function(n) {
@@ -44,39 +44,39 @@ function Q(e, t) {
44
44
  !1
45
45
  );
46
46
  }
47
- const K = (e = ["*"], t) => {
47
+ const oe = (e = ["*"], t) => {
48
48
  if (!globalThis.document || !(globalThis.document instanceof Document))
49
- throw new F();
49
+ throw new G();
50
50
  const n = globalThis.document.createElement("input");
51
- return n.setAttribute("type", "file"), n.setAttribute("visibility", "hidden"), Array.isArray(e) && e.length > 0 && n.setAttribute("accept", e.join(",")), t && n.setAttribute("multiple", "true"), n.click(), new Promise((r, l) => {
51
+ return n.setAttribute("type", "file"), n.setAttribute("visibility", "hidden"), Array.isArray(e) && e.length > 0 && n.setAttribute("accept", e.join(",")), t && n.setAttribute("multiple", "true"), n.click(), new Promise((r, c) => {
52
52
  globalThis.addEventListener(
53
53
  "focus",
54
54
  () => {
55
55
  setTimeout(() => {
56
- (!n.files || n.files?.length === 0) && l(new B());
56
+ (!n.files || n.files?.length === 0) && c(new F());
57
57
  }, 1e3);
58
58
  },
59
59
  { once: !0 }
60
60
  ), n.addEventListener("change", () => {
61
61
  if (!n.files || n.files?.length === 0)
62
- l(new B());
62
+ c(new F());
63
63
  else {
64
64
  const f = Array.from(n.files);
65
- o(f) && l(new j(e)), r(f);
65
+ o(f) && c(new W(e)), r(f);
66
66
  }
67
67
  });
68
68
  });
69
69
  function o(r) {
70
- return !e.includes("*") && r.some((l) => !e.includes(`.${$(l)}`));
70
+ return !e.includes("*") && r.some((c) => !e.includes(`.${J(c)}`));
71
71
  }
72
- }, Z = (e) => {
72
+ }, re = (e) => {
73
73
  const t = new FileReader();
74
74
  return new Promise((n, o) => {
75
75
  t.addEventListener(
76
76
  "progress",
77
77
  (r) => {
78
- const l = "(" + Math.floor(r.total / 1e3) + " KB)", f = Math.floor(r.loaded / r.total * 100) + "%";
79
- console.log(`Loading size: ${l} progress: ${f}`);
78
+ const c = "(" + Math.floor(r.total / 1e3) + " KB)", f = Math.floor(r.loaded / r.total * 100) + "%";
79
+ console.log(`Loading size: ${c} progress: ${f}`);
80
80
  }
81
81
  ), t.addEventListener("load", (r) => {
82
82
  n(r.target?.result);
@@ -84,20 +84,20 @@ const K = (e = ["*"], t) => {
84
84
  o(r);
85
85
  }), e(t);
86
86
  });
87
- }, $ = (e) => {
87
+ }, J = (e) => {
88
88
  let t;
89
89
  return e instanceof File ? t = e.name : t = e, t.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i)[1] ?? "";
90
- }, N = (e) => /^image\//.test(e.type), ee = (e) => /^video\//.test(e.type), te = (e) => /^audio\//.test(e.type), ne = (e) => /^application\/(?:vnd\.openxmlformats-officedocument\.wordprocessingml\.document|msword|vnd\.ms-word\.document\.macroenabled\.12|vnd\.openxmlformats-officedocument\.wordprocessingml\.template|vnd\.ms-word\.template\.macroenabled\.12)$/.test(
90
+ }, ie = (e) => /^image\//.test(e.type), se = (e) => /^video\//.test(e.type), ae = (e) => /^audio\//.test(e.type), ce = (e) => /^application\/(?:vnd\.openxmlformats-officedocument\.wordprocessingml\.document|msword|vnd\.ms-word\.document\.macroenabled\.12|vnd\.openxmlformats-officedocument\.wordprocessingml\.template|vnd\.ms-word\.template\.macroenabled\.12)$/.test(
91
91
  e.type
92
- ), oe = (e) => /^application\/(?:vnd\.openxmlformats-officedocument\.spreadsheetml\.sheet|vnd\.ms-excel|vnd\.ms-excel\.sheet\.macroenabled\.12|vnd\.openxmlformats-officedocument\.spreadsheetml\.template|vnd\.ms-excel\.template\.macroenabled\.12)$/.test(
92
+ ), le = (e) => /^application\/(?:vnd\.openxmlformats-officedocument\.spreadsheetml\.sheet|vnd\.ms-excel|vnd\.ms-excel\.sheet\.macroenabled\.12|vnd\.openxmlformats-officedocument\.spreadsheetml\.template|vnd\.ms-excel\.template\.macroenabled\.12)$/.test(
93
93
  e.type
94
- ), re = (e) => /^application\/(?:vnd\.ms-powerpoint|vnd\.openxmlformats-officedocument\.presentationml\.presentation|vnd\.ms-powerpoint\.presentation\.macroenabled\.12|vnd\.openxmlformats-officedocument\.presentationml\.template|vnd\.ms-powerpoint\.template\.macroenabled\.12)$/.test(
94
+ ), ue = (e) => /^application\/(?:vnd\.ms-powerpoint|vnd\.openxmlformats-officedocument\.presentationml\.presentation|vnd\.ms-powerpoint\.presentation\.macroenabled\.12|vnd\.openxmlformats-officedocument\.presentationml\.template|vnd\.ms-powerpoint\.template\.macroenabled\.12)$/.test(
95
95
  e.type
96
- ), ie = (e) => /^application\/json$/.test(e.type), ae = (e) => /^(?:application|text)\/(?:xml|xhtml\+xml)$/.test(e.type);
97
- function se(e) {
96
+ ), de = (e) => /^application\/json$/.test(e.type), fe = (e) => /^(?:application|text)\/(?:xml|xhtml\+xml)$/.test(e.type);
97
+ function me(e) {
98
98
  const t = e.slice(0, 4), n = new FileReader();
99
99
  let o;
100
- return new Promise((r, l) => {
100
+ return new Promise((r, c) => {
101
101
  n.onload = function() {
102
102
  const f = n.result;
103
103
  switch (new DataView(f).getUint32(0, !1)) {
@@ -118,33 +118,33 @@ function se(e) {
118
118
  }, n.readAsArrayBuffer(t);
119
119
  });
120
120
  }
121
- function ce(e) {
121
+ function ge(e) {
122
122
  const t = new Blob(["(" + e.toString() + ")()"], {
123
123
  type: "application/javascript"
124
124
  });
125
125
  return URL.createObjectURL(t);
126
126
  }
127
- function le(e, t) {
127
+ function pe(e, t) {
128
128
  if (!e.type.startsWith("image/"))
129
129
  return;
130
130
  const n = document.createElement("img");
131
131
  return n.src = URL.createObjectURL(e), n.width = t?.width ?? 60, n.height = t?.height ?? 60, n.onload = function() {
132
132
  }, n;
133
133
  }
134
- function ue(e) {
134
+ function he(e) {
135
135
  function t() {
136
136
  document.readyState !== "loading" && (e(), document.removeEventListener("DOMContentLoaded", t));
137
137
  }
138
138
  typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", t), t());
139
139
  }
140
- function de(e) {
140
+ function we(e) {
141
141
  typeof queueMicrotask == "function" ? queueMicrotask(e) : Promise.resolve().then(e).catch(
142
142
  (t) => setTimeout(() => {
143
143
  throw t;
144
144
  })
145
145
  );
146
146
  }
147
- function z(e, t, n) {
147
+ function Y(e, t, n) {
148
148
  if (!e) {
149
149
  n && t && n.appendChild(t);
150
150
  return;
@@ -163,11 +163,11 @@ function z(e, t, n) {
163
163
  !t.hasAttribute(r) && r !== "open" && e.removeAttribute(r);
164
164
  }
165
165
  for (let o = 0; o < t.attributes.length; o++) {
166
- const r = t.attributes[o].name, l = t.attributes[o].value;
167
- e.setAttribute(r, l);
166
+ const r = t.attributes[o].name, c = t.attributes[o].value;
167
+ e.setAttribute(r, c);
168
168
  }
169
169
  for (let o = 0; o < t.childNodes.length; o++)
170
- e.childNodes[o] ? z(
170
+ e.childNodes[o] ? Y(
171
171
  e.childNodes[o],
172
172
  t.childNodes[o],
173
173
  e
@@ -176,13 +176,13 @@ function z(e, t, n) {
176
176
  e.lastChild && e.removeChild(e.lastChild);
177
177
  }
178
178
  }
179
- function fe(e, t, n) {
179
+ function ve(e, t, n) {
180
180
  var o = /* @__PURE__ */ new Date();
181
181
  o.setTime(o.getTime() + n * 24 * 60 * 60 * 1e3);
182
182
  var r = "expires=" + o.toGMTString();
183
183
  document.cookie = e + "=" + t + "; " + r;
184
184
  }
185
- function me(e) {
185
+ function be(e) {
186
186
  for (var t = e + "=", n = document.cookie.split(";"), o = 0; o < n.length; o++) {
187
187
  var r = n[o].trim();
188
188
  if (r.indexOf(t) == 0)
@@ -190,10 +190,10 @@ function me(e) {
190
190
  }
191
191
  return "";
192
192
  }
193
- const ge = () => document.cookie.split(";").map((e) => e.split("=")).reduce((e, [t, n]) => (e[t.trim().replace('"', "")] = n) && e, {}), pe = () => document.cookie.split(";").forEach(
193
+ const Ee = () => document.cookie.split(";").map((e) => e.split("=")).reduce((e, [t, n]) => (e[t.trim().replace('"', "")] = n) && e, {}), Le = () => document.cookie.split(";").forEach(
194
194
  (e) => document.cookie = e.replace(/^ +/, "").replace(/=.*/, `=;expires=${(/* @__PURE__ */ new Date()).toUTCString()};path=/`)
195
195
  );
196
- class y {
196
+ class C {
197
197
  constructor(t) {
198
198
  this.waitingResponse = [], this.messageQueue = [], this.url = t, this.createSocket();
199
199
  }
@@ -203,7 +203,7 @@ class y {
203
203
  // time, but rather only when the user initiates an action that must
204
204
  // message (i.e.) interact with the WebSocket
205
205
  createSocket() {
206
- this.socket = new y(this.url), this.socket.onopen = () => {
206
+ this.socket = new C(this.url), this.socket.onopen = () => {
207
207
  this.messageQueue.forEach((t) => this.socket.send(t)), this.messageQueue = [];
208
208
  }, this.socket.onclose = (t) => {
209
209
  const { code: n, reason: o, wasClean: r } = t;
@@ -235,13 +235,13 @@ class y {
235
235
  let n = +/* @__PURE__ */ new Date();
236
236
  const o = this.waitingResponse[n] = { sent: n }, r = { ...o, ...t };
237
237
  try {
238
- this.socket.readyState === y.OPEN ? this.socket.send(JSON.stringify(r)) : this.recreateSocket(JSON.stringify(r));
239
- const l = await new Promise(function(f, d) {
238
+ this.socket.readyState === C.OPEN ? this.socket.send(JSON.stringify(r)) : this.recreateSocket(JSON.stringify(r));
239
+ const c = await new Promise(function(f, d) {
240
240
  o.resolve = f, console.log(o), setTimeout(() => {
241
241
  d("Timeout");
242
242
  }, 5e3);
243
243
  });
244
- return console.info("Time took", (+/* @__PURE__ */ new Date() - o.sent) / 1e3), l;
244
+ return console.info("Time took", (+/* @__PURE__ */ new Date() - o.sent) / 1e3), c;
245
245
  } finally {
246
246
  console.log("Exit code ran successfully"), delete this.waitingResponse[n];
247
247
  }
@@ -309,96 +309,96 @@ class y {
309
309
  return t;
310
310
  }
311
311
  })();
312
- this.socket.readyState === y.OPEN ? this.socket.send(n) : this.recreateSocket(n);
312
+ this.socket.readyState === C.OPEN ? this.socket.send(n) : this.recreateSocket(n);
313
313
  }
314
314
  }
315
- function x() {
315
+ function k() {
316
316
  return document.compatMode == "BackCompat" ? document.body : document.documentElement;
317
317
  }
318
- function D() {
319
- const e = x();
318
+ function q() {
319
+ const e = k();
320
320
  return {
321
321
  width: e.clientWidth || window.innerWidth,
322
322
  height: e.clientHeight || window.innerHeight
323
323
  };
324
324
  }
325
- function he() {
326
- const e = x(), t = D();
325
+ function ye() {
326
+ const e = k(), t = q();
327
327
  return {
328
328
  width: Math.max(e.scrollWidth, t.width),
329
329
  height: Math.max(e.scrollHeight, t.height)
330
330
  };
331
331
  }
332
- function we(e) {
333
- const t = D(), n = e.getBoundingClientRect();
332
+ function Te(e) {
333
+ const t = q(), n = e.getBoundingClientRect();
334
334
  return n.bottom > 0 && n.top < t.height && n.right > 0 && n.left < t.width;
335
335
  }
336
- function U() {
337
- const e = x();
336
+ function $() {
337
+ const e = k();
338
338
  return {
339
339
  scrollLeft: e.scrollLeft,
340
340
  scrollTop: e.scrollTop
341
341
  };
342
342
  }
343
- function X() {
344
- const e = x();
343
+ function V() {
344
+ const e = k();
345
345
  return {
346
346
  clientLeft: e.clientLeft,
347
347
  clientTop: e.clientTop
348
348
  };
349
349
  }
350
- function G(e) {
350
+ function Q(e) {
351
351
  let t = e.offsetLeft, n = e.offsetParent;
352
352
  for (; n !== null; )
353
353
  t += n.offsetLeft, n = n.offsetParent;
354
354
  return t;
355
355
  }
356
- function V(e) {
356
+ function N(e) {
357
357
  let t = e.offsetTop, n = e.offsetParent;
358
358
  for (; n !== null; )
359
359
  t += n.offsetTop, n = n.offsetParent;
360
360
  return t;
361
361
  }
362
- function ve(e) {
362
+ function ke(e) {
363
363
  return {
364
- x: G(e),
365
- y: V(e)
364
+ x: Q(e),
365
+ y: N(e)
366
366
  };
367
367
  }
368
- function be(e) {
369
- const t = e.getBoundingClientRect(), n = U(), o = X();
368
+ function Ce(e) {
369
+ const t = e.getBoundingClientRect(), n = $(), o = V();
370
370
  return {
371
371
  x: t.left + n.scrollLeft - o.clientLeft,
372
372
  y: t.top + n.scrollTop - o.clientTop
373
373
  };
374
374
  }
375
- function Ee(e) {
375
+ function xe(e) {
376
376
  const t = e.getBoundingClientRect();
377
377
  return {
378
378
  x: t.left,
379
379
  y: t.top
380
380
  };
381
381
  }
382
- function Te() {
383
- const e = x(), t = e.scrollHeight - e.clientHeight;
382
+ function Pe() {
383
+ const e = k(), t = e.scrollHeight - e.clientHeight;
384
384
  return t <= 0 ? 0 : e.scrollTop / t * 100;
385
385
  }
386
- function ke(e) {
386
+ function Se(e) {
387
387
  if (e.pageX && e.pageY)
388
388
  return { x: e.pageX, y: e.pageY };
389
- const t = U(), n = X();
389
+ const t = $(), n = V();
390
390
  return {
391
391
  x: e.clientX + t.scrollLeft - n.clientLeft,
392
392
  y: e.clientY + t.scrollTop - n.clientTop
393
393
  };
394
394
  }
395
- function Le(e) {
395
+ function _e(e) {
396
396
  return {
397
397
  x: e.clientX,
398
398
  y: e.clientY
399
399
  };
400
400
  }
401
- function xe(e) {
401
+ function Ae(e) {
402
402
  if (document.implementation.hasFeature("MouseEvents", "2.0"))
403
403
  return e.button;
404
404
  switch (e.button) {
@@ -415,79 +415,110 @@ function xe(e) {
415
415
  return 1;
416
416
  }
417
417
  }
418
- function ye() {
419
- let e = navigator.userAgent;
420
- return {
421
- trident: e.indexOf("Trident") > -1,
422
- //IE内核
423
- presto: e.indexOf("Presto") > -1,
424
- //opera内核
425
- webKit: e.indexOf("AppleWebKit") > -1,
426
- //苹果、谷歌内核
427
- gecko: e.indexOf("Gecko") > -1 && e.indexOf("KHTML") == -1,
428
- //火狐内核
429
- mobile: !!e.match(/AppleWebKit.*Mobile.*/),
430
- //是否为移动终端
431
- ios: !!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),
432
- //ios终端
433
- android: e.indexOf("Android") > -1 || e.indexOf("Linux") > -1,
434
- //android终端或uc浏览器
435
- iPhone: e.indexOf("iPhone") > -1,
436
- //是否为iPhone或者QQHD浏览器
437
- iPad: e.indexOf("iPad") > -1,
438
- //是否iPad
439
- webApp: e.indexOf("Safari") == -1
440
- //是否web应该程序,没有头部与底部
441
- };
442
- }
443
- function Pe() {
418
+ const x = () => {
419
+ const e = navigator.userAgent.toLowerCase();
420
+ let t = "Unknown";
421
+ return e.includes("mac") ? t = "macOS" : e.includes("win") ? t = "Windows" : /android/.test(e) ? t = "Android" : /iphone|ipad|ipod/.test(e) ? t = "iOS" : /linux/.test(e) ? t = "Linux" : /bsd/.test(e) && (t = "BSD"), t.toLowerCase();
422
+ }, Me = () => {
423
+ const e = navigator.userAgent;
424
+ let t = "Unknown";
425
+ if (/Windows NT/.test(e)) {
426
+ const n = e.match(/Windows NT (\d+\.\d+)/);
427
+ n && (t = n[1]);
428
+ } else if (/Mac OS X/.test(e)) {
429
+ const n = e.match(/Mac OS X (\d+_\d+)/);
430
+ n && (t = n[1].replace("_", "."));
431
+ } else if (/Android/.test(e)) {
432
+ const n = e.match(/Android (\d+\.\d+)/);
433
+ n && (t = n[1]);
434
+ } else if (/iPhone|iPad|iPod/.test(e)) {
435
+ const n = e.match(/OS (\d+_\d+)/);
436
+ n && (t = n[1].replace("_", "."));
437
+ }
438
+ return t.toLowerCase();
439
+ }, Re = () => {
440
+ const e = navigator.userAgent.toLowerCase();
441
+ let t = "Unknown";
442
+ return /chrome/.test(e) ? t = "Chrome" : /firefox/.test(e) ? t = "Firefox" : /safari/.test(e) ? t = "Safari" : /edge/.test(e) ? t = "Edge" : /msie|trident/.test(e) && (t = "IE"), t.toLowerCase();
443
+ }, Ie = () => {
444
+ const e = navigator.userAgent;
445
+ let t = "Unknown";
446
+ if (/Chrome/.test(e)) {
447
+ const n = e.match(/Chrome\/(\d+\.\d+)/);
448
+ n && (t = n[1]);
449
+ } else if (/Firefox/.test(e)) {
450
+ const n = e.match(/Firefox\/(\d+\.\d+)/);
451
+ n && (t = n[1]);
452
+ } else if (/Safari/.test(e)) {
453
+ const n = e.match(/Version\/(\d+\.\d+)/);
454
+ n && (t = n[1]);
455
+ } else if (/Edge/.test(e)) {
456
+ const n = e.match(/Edge\/(\d+\.\d+)/);
457
+ n && (t = n[1]);
458
+ } else if (/MSIE|Trident/.test(e)) {
459
+ const n = e.match(/(?:MSIE|rv:)(\d+\.\d+)/);
460
+ n && (t = n[1]);
461
+ }
462
+ return t;
463
+ }, De = () => "geolocation" in navigator ? new Promise((e, t) => {
464
+ navigator.geolocation.getCurrentPosition(
465
+ (n) => {
466
+ const o = n.coords.latitude, r = n.coords.longitude;
467
+ e({ latitude: o, longitude: r });
468
+ },
469
+ (n) => {
470
+ t(n);
471
+ }
472
+ );
473
+ }) : Promise.reject("Geolocation is not available.");
474
+ function Oe() {
444
475
  return (navigator.browserLanguage || navigator.language).toLowerCase();
445
476
  }
446
- function W() {
447
- return (
448
- // Check if it is an iPhone
449
- /iPhone/gi.test(window.navigator.platform) || // Check if it is an iPad. iPad reports itself as "MacIntel", but we can check if it is a touch
450
- // screen. Let's hope that Apple doesn't release a touch screen Mac (or maybe this would then
451
- // work as expected 🤔).
452
- /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0
453
- );
477
+ function Ue() {
478
+ return Intl.DateTimeFormat().resolvedOptions().timeZone.toLowerCase();
454
479
  }
455
- function J() {
456
- return /Android/gi.test(window.navigator.userAgent);
480
+ function Z() {
481
+ return x() === "ios";
457
482
  }
458
- function Ce() {
459
- return W() || J();
483
+ function Be() {
484
+ return x() === "ios" | x() === "macos";
460
485
  }
461
- function _e(e) {
486
+ function K() {
487
+ return x() === "android";
488
+ }
489
+ function qe() {
490
+ return Z() || K();
491
+ }
492
+ function Xe() {
493
+ return typeof window == "object" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches;
494
+ }
495
+ const je = typeof window == "object" && typeof document == "object", Fe = typeof process < "u" && process.versions != null && process.versions.node != null;
496
+ function He(e) {
462
497
  var t = document.documentElement, n = window.devicePixelRatio;
463
498
  t.dataset.dpr = n;
464
499
  var o = 100, r = function() {
465
- var l = Math.min(t.clientWidth, e);
466
- t.dataset.width = l, t.dataset.rem = o = Math.round(100 * (l / e)), t.style.fontSize = o + "px";
500
+ var c = Math.min(t.clientWidth, e);
501
+ t.dataset.width = c, t.dataset.rem = o = Math.round(100 * (c / e)), t.style.fontSize = o + "px";
467
502
  };
468
- r(), window.rem2px = function(l) {
469
- return l = parseFloat(l), l * o;
470
- }, window.px2rem = function(l) {
471
- return l = parseFloat(l), l / o;
503
+ r(), window.rem2px = function(c) {
504
+ return c = parseFloat(c), c * o;
505
+ }, window.px2rem = function(c) {
506
+ return c = parseFloat(c), c / o;
472
507
  }, window.addEventListener && window.addEventListener(
473
508
  "orientationchange" in window ? "orientationchange" : "resize",
474
509
  r,
475
510
  !1
476
511
  );
477
512
  }
478
- require("path");
479
- require("querystring");
480
- require("util");
481
- require("url");
482
- function Ae(e) {
513
+ function $e(e) {
483
514
  return btoa(encodeURIComponent(e)).replaceAll("+", "*").replaceAll("/", "-").replaceAll("=", "");
484
515
  }
485
- function Me(e) {
516
+ function Ve(e) {
486
517
  let t = e.replaceAll("*", "+").replaceAll("-", "/"), n = t.length % 4;
487
518
  return n && (t = t.padEnd(t.length + (4 - n), "=")), decodeURIComponent(atob(t));
488
519
  }
489
- const Se = (e) => !/^([a-z]+:)?[\\/]/i.test(e);
490
- function Re(e) {
520
+ const ze = (e) => !/^([a-z]+:)?[\\/]/i.test(e);
521
+ function Ge(e) {
491
522
  let t;
492
523
  try {
493
524
  t = new URL(e);
@@ -496,23 +527,38 @@ function Re(e) {
496
527
  }
497
528
  return t.protocol === "http:" || t.protocol === "https:";
498
529
  }
499
- function Ie() {
500
- let e = location.search;
501
- if (e) {
502
- let t = {};
503
- return e = e.substring(1, e.length), e.split("&").forEach((o) => {
504
- t[o.split("=")[0]] = decodeURIComponent(o.split("=")[1]);
505
- }), t;
506
- } else
507
- return !1;
508
- }
509
- const De = (e) => Array.from(new URLSearchParams(e)).reduce(
530
+ const We = (e) => Array.from(new URLSearchParams(e)).reduce(
510
531
  (t, [n, o]) => Object.assign({}, t, {
511
532
  [n]: t[n] ? (Array.isArray(t[n]) ? t[n] : [t[n]]).concat(o) : o
512
533
  }),
513
534
  {}
514
535
  );
515
- function Oe(e) {
536
+ function Je() {
537
+ let e = {}, t = location.search;
538
+ return t && (t = t.substring(1, t.length), t.split("&").forEach((o) => {
539
+ const r = o.split("=");
540
+ e[r[0]] = decodeURIComponent(r[1]);
541
+ })), e;
542
+ }
543
+ function Ye(e) {
544
+ let t = "";
545
+ new MutationObserver(function(o) {
546
+ window.location.href !== t && (t = window.location.href, console.log(`URL data changed to ${window.location.href}`), e && e(location.href));
547
+ }).observe(document, {
548
+ attributes: !0,
549
+ childList: !0,
550
+ subtree: !0
551
+ });
552
+ }
553
+ function Qe(e) {
554
+ window.addEventListener("hashchange", () => {
555
+ e(location.hash);
556
+ });
557
+ }
558
+ function Ne(e) {
559
+ window.addEventListener("popstate", e);
560
+ }
561
+ function Ze(e) {
516
562
  e = e || localStorage.theme, e || (e = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light", localStorage.theme = e), document.documentElement.classList.toggle("dark", e === "dark");
517
563
  }
518
564
  class E {
@@ -754,22 +800,34 @@ class E {
754
800
  222: "single_quote"
755
801
  };
756
802
  }
757
- const qe = (e) => navigator.clipboard.writeText(e), Be = () => window.getSelection().toString(), Ue = (e) => e === document.activeElement, Xe = (e) => [].slice.call(e.parentNode.children).filter((t) => t !== e), He = () => window.scrollTo(0, 0), Fe = () => !document.hidden, je = () => history.back(), $e = () => history.go(-1);
758
- function ze(e) {
803
+ const Ke = (e) => navigator.clipboard.writeText(e), et = () => window.getSelection().toString(), tt = (e) => e === document.activeElement, nt = (e) => [].slice.call(e.parentNode.children).filter((t) => t !== e), ot = () => !document.hidden, rt = () => history.back(), it = () => history.go(-1);
804
+ function st(e) {
759
805
  let t = document.createElement("script");
760
806
  t.type = "text/javascript", t.src = e, t.async = !1, document.body.appendChild(t), t.onload = () => {
761
807
  }, t.onerror = () => {
762
808
  };
763
809
  }
764
- function Ge(e) {
810
+ function at(e) {
765
811
  let t = e[0];
766
812
  for (let n = 1; n < arguments.length; n++) {
767
813
  let o = String(arguments[n]);
768
- t += o.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), t += e[n];
814
+ t += o.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;"), t += e[n];
769
815
  }
770
816
  return t;
771
817
  }
772
- function Ve(e) {
818
+ function ct(e) {
819
+ var t = {
820
+ "&amp;": "&",
821
+ "&lt;": "<",
822
+ "&gt;": ">",
823
+ "&quot;": '"',
824
+ "&#39;": "'"
825
+ };
826
+ for (var n in t)
827
+ Object.hasOwnProperty.call(t, n) && (e = e.replace(new RegExp(n, "g"), t[n]));
828
+ return e;
829
+ }
830
+ function lt(e) {
773
831
  const t = /<%=(.+?)%>/g, n = /<%([\s\S]+?)%>/g;
774
832
  return e = e.replace(t, "`); \n echo( $1 ); \n echo(`").replace(n, "`); \n $1 \n echo(`"), e = "echo(`" + e + "`);", `(function parse(data){
775
833
  let output = "";
@@ -783,42 +841,49 @@ function Ve(e) {
783
841
  return output;
784
842
  })`;
785
843
  }
786
- function We(e, t, n) {
844
+ function ut(e, t, n) {
787
845
  e.addEventListener ? e.addEventListener(t, n, !1) : e.attachEvent ? e.attachEvent("on" + t, n) : e["on" + t] = n;
788
846
  }
789
- function Je(e, t, n) {
847
+ function dt(e, t, n) {
790
848
  e.removeEventListener ? e.removeEventListener(t, n, !1) : e.detachEvent ? e.detachEvent("on" + t, n) : e["on" + t] = null;
791
849
  }
792
- function Ye(e) {
850
+ function ft(e) {
793
851
  e.stopPropagation ? e.stopPropagation() : e.cancelBubble = !0;
794
852
  }
795
- function Qe(e) {
853
+ function mt(e) {
796
854
  e.preventDefault ? e.preventDefault : e.returnValue = !1;
797
855
  }
798
- function Ke(e) {
799
- return e || window.event;
800
- }
801
- function Ze(e) {
856
+ function gt(e) {
802
857
  return e.target || e.srcElement;
803
858
  }
804
- function Ne(e) {
859
+ function pt(e) {
805
860
  return e.relatedTarget ? e.relatedTarget : e.toElement ? e.toElement : e.fromElement ? e.fromElement : null;
806
861
  }
807
- function et() {
862
+ function ht() {
808
863
  return !!(window.File && window.FileReader && window.FileList && window.Blob);
809
864
  }
865
+ const wt = (e) => new Promise((t) => {
866
+ const n = Array.from(e.querySelectorAll("link[rel=stylesheet]"));
867
+ let o = e.styleSheets.length ?? 0;
868
+ const r = () => o >= n.length ? (t(), !0) : !1;
869
+ r() || n.forEach((c) => {
870
+ c.onload = () => {
871
+ o += 1, r();
872
+ };
873
+ });
874
+ });
810
875
  window.requestAnimationFrame || (window.requestAnimationFrame = function() {
811
876
  return window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(e) {
812
877
  window.setTimeout(e, 1e3 / 60);
813
878
  };
814
879
  }());
815
- const tt = (e, t) => {
880
+ const vt = (e, t) => {
816
881
  var n = document.getElementById(e), o = n.getContext("2d");
817
882
  (function r() {
818
883
  window.requestAnimationFrame(r), o.clearRect(0, 0, n.width, n.height), t(o);
819
884
  })();
820
885
  };
821
- function nt(e) {
886
+ function bt(e) {
822
887
  return new Promise(function(t, n) {
823
888
  const o = new Image();
824
889
  o.onload = function() {
@@ -828,64 +893,64 @@ function nt(e) {
828
893
  }, o.src = e;
829
894
  });
830
895
  }
831
- function ot() {
832
- const e = document.getElementsByTagName("img"), t = D().height;
896
+ function Et() {
897
+ const e = document.getElementsByTagName("img"), t = q().height;
833
898
  let n = 0;
834
899
  for (let o = n; o < e.length; o++)
835
900
  e[o].getBoundingClientRect().top < t && (e[o].src = e[o].getAttribute("data-src"), n = o + 1);
836
901
  }
837
- function rt(e) {
838
- var t = [], n = [], o = [], r, l, f, d, u = 0, T = document.createElement("canvas"), k = T.getContext("2d"), h = document.createElement("image");
839
- h.src = e, T.width = h.width, T.height = h.height, k.drawImage(h, 0, 0);
840
- for (var w = k.getImageData(0, 0, h.width, h.height).data, g = 0; g < w.length; g += 4)
902
+ function Lt(e) {
903
+ var t = [], n = [], o = [], r, c, f, d, u = 0, L = document.createElement("canvas"), y = L.getContext("2d"), h = document.createElement("image");
904
+ h.src = e, L.width = h.width, L.height = h.height, y.drawImage(h, 0, 0);
905
+ for (var w = y.getImageData(0, 0, h.width, h.height).data, g = 0; g < w.length; g += 4)
841
906
  t[u] = w[g], n[u] = w[g + 1], o[u] = w[g + 2], u += 1;
842
- return r = R(t), l = R(n), f = R(o), d = "rgb(" + r + "," + l + "," + f + ")", d;
907
+ return r = D(t), c = D(n), f = D(o), d = "rgb(" + r + "," + c + "," + f + ")", d;
843
908
  }
844
- function R(e) {
909
+ function D(e) {
845
910
  var t = {}, n = [], o = [], r = 0;
846
911
  for (let u = 0; u < e.length; u++)
847
912
  t[e[u]] ? n.push(e[u]) : t[e[u]] = 1;
848
913
  for (let u = 0; u < n.length; u++) {
849
914
  r = 0;
850
- for (var l = 0; l < n.length; l++)
851
- n[u] === n[l] && (r += 1), o[u] = r;
915
+ for (var c = 0; c < n.length; c++)
916
+ n[u] === n[c] && (r += 1), o[u] = r;
852
917
  }
853
918
  for (var f = Math.max.apply(null, o), d = 0; d < o.length; d++)
854
919
  if (o[d] === f)
855
920
  return;
856
921
  return n[d];
857
922
  }
858
- const it = function(e) {
923
+ const yt = function(e) {
859
924
  e || (e = "2d");
860
925
  const t = function() {
861
- const i = document.createElement("canvas"), a = i.getContext(
926
+ const i = document.createElement("canvas"), s = i.getContext(
862
927
  e
863
- ), s = !!a;
928
+ ), a = !!s;
864
929
  return {
865
- canvas: s,
866
- imageData: s && !!a.getImageData,
930
+ canvas: a,
931
+ imageData: a && !!s.getImageData,
867
932
  dataURL: !!i.toDataURL,
868
933
  btoa: !!window.btoa
869
934
  };
870
935
  }(), n = "image/octet-stream";
871
- function o(i, a, s) {
872
- const c = i.width, m = i.height;
873
- a === void 0 && (a = c), s === void 0 && (s = m);
936
+ function o(i, s, a) {
937
+ const l = i.width, m = i.height;
938
+ s === void 0 && (s = l), a === void 0 && (a = m);
874
939
  const p = document.createElement("canvas"), v = p.getContext(
875
940
  e
876
941
  );
877
- return p.width = a, p.height = s, v.drawImage(i, 0, 0, c, m, 0, 0, a, s), p;
942
+ return p.width = s, p.height = a, v.drawImage(i, 0, 0, l, m, 0, 0, s, a), p;
878
943
  }
879
- function r(i, a, s, c) {
880
- return e == "2d" && (i = o(i, s, c)), i.toDataURL(a);
944
+ function r(i, s, a, l) {
945
+ return e == "2d" && (i = o(i, a, l)), i.toDataURL(s);
881
946
  }
882
- function l(i, a, s = "name") {
883
- const c = document.createElement("a");
884
- c.download = s + "." + a, c.href = i, c.click();
947
+ function c(i, s, a = "name") {
948
+ const l = document.createElement("a");
949
+ l.download = a + "." + s, l.href = i, l.click();
885
950
  }
886
951
  function f(i) {
887
- const a = document.createElement("img");
888
- return a.src = i, a;
952
+ const s = document.createElement("img");
953
+ return s.src = i, s;
889
954
  }
890
955
  function d(i) {
891
956
  return i = i.toLowerCase().replace(/jpg/i, "jpeg"), "image/" + i.match(/png|jpeg|bmp|gif/)?.[0];
@@ -893,27 +958,27 @@ const it = function(e) {
893
958
  function u(i) {
894
959
  if (!window.btoa)
895
960
  throw "btoa undefined";
896
- let a = "";
961
+ let s = "";
897
962
  if (typeof i == "string")
898
- a = i;
963
+ s = i;
899
964
  else
900
- for (let s = 0; s < i.length; s++)
901
- a += String.fromCharCode(i[s]);
902
- return btoa(a);
965
+ for (let a = 0; a < i.length; a++)
966
+ s += String.fromCharCode(i[a]);
967
+ return btoa(s);
903
968
  }
904
- function T(i) {
905
- const a = e == "2d" ? void 0 : { preserveDrawingBuffer: !0 };
906
- return i.getContext(e, a);
969
+ function L(i) {
970
+ const s = e == "2d" ? void 0 : { preserveDrawingBuffer: !0 };
971
+ return i.getContext(e, s);
907
972
  }
908
- function k(i) {
909
- const a = i.width, s = i.height;
910
- return T(i).getImageData(0, 0, a, s);
973
+ function y(i) {
974
+ const s = i.width, a = i.height;
975
+ return L(i).getImageData(0, 0, s, a);
911
976
  }
912
- function h(i, a) {
913
- return "data:" + a + ";base64," + i;
977
+ function h(i, s) {
978
+ return "data:" + s + ";base64," + i;
914
979
  }
915
980
  const w = function(i) {
916
- const a = i.width, s = i.height, c = a * s * 3, m = c + 54, p = [
981
+ const s = i.width, a = i.height, l = s * a * 3, m = l + 54, p = [
917
982
  // WORD bfType -- The file type signature; must be "BM"
918
983
  66,
919
984
  77,
@@ -940,15 +1005,15 @@ const it = function(e) {
940
1005
  0,
941
1006
  0,
942
1007
  // LONG biWidth -- The width of the bitmap, in pixels
943
- a & 255,
944
- a >> 8 & 255,
945
- a >> 16 & 255,
946
- a >> 24 & 255,
947
- // LONG biHeight -- The height of the bitmap, in pixels
948
1008
  s & 255,
949
1009
  s >> 8 & 255,
950
1010
  s >> 16 & 255,
951
1011
  s >> 24 & 255,
1012
+ // LONG biHeight -- The height of the bitmap, in pixels
1013
+ a & 255,
1014
+ a >> 8 & 255,
1015
+ a >> 16 & 255,
1016
+ a >> 24 & 255,
952
1017
  // WORD biPlanes -- The number of planes for the target device. This value must be set to 1
953
1018
  1,
954
1019
  0,
@@ -962,10 +1027,10 @@ const it = function(e) {
962
1027
  0,
963
1028
  0,
964
1029
  // DWORD biSizeImage -- The size, in bytes, of the image. This may be set to zero for BI_RGB bitmaps
965
- c & 255,
966
- c >> 8 & 255,
967
- c >> 16 & 255,
968
- c >> 24 & 255,
1030
+ l & 255,
1031
+ l >> 8 & 255,
1032
+ l >> 16 & 255,
1033
+ l >> 24 & 255,
969
1034
  // LONG biXPelsPerMeter, unused
970
1035
  0,
971
1036
  0,
@@ -986,73 +1051,73 @@ const it = function(e) {
986
1051
  0,
987
1052
  0,
988
1053
  0
989
- ], P = (4 - a * 3 % 4) % 4, C = i.data;
990
- let O = "";
991
- const H = a << 2;
992
- let q = s;
993
- const _ = String.fromCharCode;
1054
+ ], S = (4 - s * 3 % 4) % 4, _ = i.data;
1055
+ let X = "";
1056
+ const z = s << 2;
1057
+ let j = a;
1058
+ const A = String.fromCharCode;
994
1059
  do {
995
- const A = H * (q - 1);
996
- let M = "";
997
- for (let b = 0; b < a; b++) {
998
- const S = b << 2;
999
- M += _(C[A + S + 2]) + _(C[A + S + 1]) + _(C[A + S]);
1060
+ const M = z * (j - 1);
1061
+ let R = "";
1062
+ for (let b = 0; b < s; b++) {
1063
+ const I = b << 2;
1064
+ R += A(_[M + I + 2]) + A(_[M + I + 1]) + A(_[M + I]);
1000
1065
  }
1001
- for (let b = 0; b < P; b++)
1002
- M += String.fromCharCode(0);
1003
- O += M;
1004
- } while (--q);
1005
- return u(p.concat(v)) + u(O);
1006
- }, g = function(i, a, s, c, m) {
1007
- const p = c;
1066
+ for (let b = 0; b < S; b++)
1067
+ R += String.fromCharCode(0);
1068
+ X += R;
1069
+ } while (--j);
1070
+ return u(p.concat(v)) + u(X);
1071
+ }, g = function(i, s, a, l, m) {
1072
+ const p = l;
1008
1073
  if (t.canvas && t.dataURL)
1009
- if (typeof i == "string" && (i = document.getElementById(i)), c === void 0 && (c = "png"), c = d(c), /bmp/.test(c)) {
1010
- const v = k(o(i, a, s)), P = w(v);
1011
- l(h(P, n), p, m);
1074
+ if (typeof i == "string" && (i = document.getElementById(i)), l === void 0 && (l = "png"), l = d(l), /bmp/.test(l)) {
1075
+ const v = y(o(i, s, a)), S = w(v);
1076
+ c(h(S, n), p, m);
1012
1077
  } else {
1013
- const v = r(i, c, a, s);
1014
- l(v.replace(c, n), p, m);
1078
+ const v = r(i, l, s, a);
1079
+ c(v.replace(l, n), p, m);
1015
1080
  }
1016
- }, L = function(i, a, s, c) {
1081
+ }, T = function(i, s, a, l) {
1017
1082
  if (t.canvas && t.dataURL)
1018
- if (typeof i == "string" && (i = document.getElementById(i)), c === void 0 && (c = "png"), c = d(c), /bmp/.test(c)) {
1019
- const m = k(o(i, a, s)), p = w(m);
1083
+ if (typeof i == "string" && (i = document.getElementById(i)), l === void 0 && (l = "png"), l = d(l), /bmp/.test(l)) {
1084
+ const m = y(o(i, s, a)), p = w(m);
1020
1085
  return f(h(p, "image/bmp"));
1021
1086
  } else {
1022
- const m = r(i, c, a, s);
1087
+ const m = r(i, l, s, a);
1023
1088
  return f(m);
1024
1089
  }
1025
1090
  };
1026
1091
  return {
1027
1092
  saveAsImage: g,
1028
- saveAsPNG: function(i, a, s, c) {
1029
- return g(i, a, s, "png", c);
1093
+ saveAsPNG: function(i, s, a, l) {
1094
+ return g(i, s, a, "png", l);
1030
1095
  },
1031
- saveAsJPEG: function(i, a, s, c) {
1032
- return g(i, a, s, "jpeg", c);
1096
+ saveAsJPEG: function(i, s, a, l) {
1097
+ return g(i, s, a, "jpeg", l);
1033
1098
  },
1034
- saveAsGIF: function(i, a, s, c) {
1035
- return g(i, a, s, "gif", c);
1099
+ saveAsGIF: function(i, s, a, l) {
1100
+ return g(i, s, a, "gif", l);
1036
1101
  },
1037
- saveAsBMP: function(i, a, s, c) {
1038
- return g(i, a, s, "bmp", c);
1102
+ saveAsBMP: function(i, s, a, l) {
1103
+ return g(i, s, a, "bmp", l);
1039
1104
  },
1040
- convertToImage: L,
1041
- convertToPNG: function(i, a, s) {
1042
- return L(i, a, s, "png");
1105
+ convertToImage: T,
1106
+ convertToPNG: function(i, s, a) {
1107
+ return T(i, s, a, "png");
1043
1108
  },
1044
- convertToJPEG: function(i, a, s) {
1045
- return L(i, a, s, "jpeg");
1109
+ convertToJPEG: function(i, s, a) {
1110
+ return T(i, s, a, "jpeg");
1046
1111
  },
1047
- convertToGIF: function(i, a, s) {
1048
- return L(i, a, s, "gif");
1112
+ convertToGIF: function(i, s, a) {
1113
+ return T(i, s, a, "gif");
1049
1114
  },
1050
- convertToBMP: function(i, a, s) {
1051
- return L(i, a, s, "bmp");
1115
+ convertToBMP: function(i, s, a) {
1116
+ return T(i, s, a, "bmp");
1052
1117
  }
1053
1118
  };
1054
1119
  };
1055
- function at() {
1120
+ function Tt() {
1056
1121
  var e = null;
1057
1122
  if (window.ActiveXObject)
1058
1123
  for (var t = [
@@ -1074,7 +1139,7 @@ function at() {
1074
1139
  e = new XMLHttpRequest();
1075
1140
  return e;
1076
1141
  }
1077
- function st(e) {
1142
+ function kt(e) {
1078
1143
  if (e.action) {
1079
1144
  if (e.method.toLowerCase() === "post")
1080
1145
  return {
@@ -1086,7 +1151,7 @@ function st(e) {
1086
1151
  if (o.hasAttribute("name")) {
1087
1152
  var r = o.nodeName.toUpperCase() === "INPUT" ? o.getAttribute("type").toUpperCase() : "TEXT";
1088
1153
  if (r === "FILE")
1089
- for (var l = 0; l < o.files.length; t += "&" + escape(o.name) + "=" + escape(o.files[l++].name))
1154
+ for (var c = 0; c < o.files.length; t += "&" + escape(o.name) + "=" + escape(o.files[c++].name))
1090
1155
  ;
1091
1156
  else
1092
1157
  (r !== "RADIO" && r !== "CHECKBOX" || o.checked) && (t += "&" + escape(o.name) + "=" + escape(o.value));
@@ -1101,14 +1166,14 @@ function st(e) {
1101
1166
  };
1102
1167
  }
1103
1168
  }
1104
- function ct(e, t) {
1169
+ function Ct(e, t) {
1105
1170
  return new Promise((n, o) => {
1106
- var r = new XMLHttpRequest(), l = function() {
1171
+ var r = new XMLHttpRequest(), c = function() {
1107
1172
  o("The request for " + e + " is timed out for " + t + ".");
1108
1173
  }, f = function(d) {
1109
1174
  r.readyState === 4 && (r.status === 200 ? n(r.response) : o(r.statusText));
1110
1175
  };
1111
- r.open("GET", e), r.onload = f, r.timeout = t, r.ontimeout = l, r.upload.addEventListener(
1176
+ r.open("GET", e), r.onload = f, r.timeout = t, r.ontimeout = c, r.upload.addEventListener(
1112
1177
  "progress",
1113
1178
  function(d) {
1114
1179
  if (d.lengthComputable) {
@@ -1121,7 +1186,7 @@ function ct(e, t) {
1121
1186
  }, !1), r.send(null);
1122
1187
  });
1123
1188
  }
1124
- function lt(e, t, n) {
1189
+ function xt(e, t, n) {
1125
1190
  return fetch(
1126
1191
  e,
1127
1192
  Object.assign(
@@ -1150,7 +1215,7 @@ function lt(e, t, n) {
1150
1215
  )
1151
1216
  ).then((o) => o.json());
1152
1217
  }
1153
- function ut(e, t) {
1218
+ function Pt(e, t) {
1154
1219
  var n = new XMLHttpRequest();
1155
1220
  n.open("HEAD", e), n.filepath = e, n.callback = t, n.onload = function() {
1156
1221
  var o = parseFloat(
@@ -1159,92 +1224,180 @@ function ut(e, t) {
1159
1224
  (isNaN(o) || r > o) && (window.localStorage.setItem("lm_" + this.filepath, Date.now()), isFinite(o) && this.callback(r, o));
1160
1225
  }, n.send();
1161
1226
  }
1227
+ function St(e, t) {
1228
+ if (t)
1229
+ window.localStorage.setItem(
1230
+ e,
1231
+ typeof t == "string" ? t : JSON.stringify(t)
1232
+ );
1233
+ else
1234
+ return window.localStorage.getItem(e);
1235
+ }
1236
+ const _t = (e = { x: 0, y: 0 }) => window.scrollTo(e.x, e.y);
1237
+ function O(e) {
1238
+ try {
1239
+ window.history.scrollRestoration = e;
1240
+ } catch {
1241
+ }
1242
+ }
1243
+ "scrollRestoration" in window.history && (O("manual"), window.addEventListener("beforeunload", () => {
1244
+ O("auto");
1245
+ }), window.addEventListener("load", () => {
1246
+ O("manual");
1247
+ }));
1248
+ let P;
1249
+ const H = /* @__PURE__ */ new WeakMap();
1250
+ function U(e, t) {
1251
+ let n = H.get(e);
1252
+ n || (n = /* @__PURE__ */ new Map(), H.set(e, n));
1253
+ let o = n.get(t);
1254
+ return o || (o = new ee(), n.set(t, o)), o;
1255
+ }
1256
+ class ee {
1257
+ subscribers;
1258
+ constructor() {
1259
+ this.subscribers = /* @__PURE__ */ new Set();
1260
+ }
1261
+ depend() {
1262
+ P && this.subscribers.add(P);
1263
+ }
1264
+ notify() {
1265
+ this.subscribers.forEach((t) => t());
1266
+ }
1267
+ }
1268
+ function At(e) {
1269
+ P = e, e(), P = null;
1270
+ }
1271
+ function Mt(e) {
1272
+ return Object.keys(e).forEach((t) => {
1273
+ let n = e[t];
1274
+ const o = U(e, t);
1275
+ Object.defineProperty(e, t, {
1276
+ get() {
1277
+ return o.depend(), n;
1278
+ },
1279
+ set(r) {
1280
+ r != n && (n = r, o.notify());
1281
+ }
1282
+ });
1283
+ }), e;
1284
+ }
1285
+ function Rt(e) {
1286
+ return new Proxy(e, {
1287
+ get(t, n, o) {
1288
+ return U(e, n).depend(), Reflect.get(t, n, o);
1289
+ },
1290
+ set(t, n, o, r) {
1291
+ const c = U(e, n);
1292
+ return e[n] != o && (e[n] = o, c.notify()), Reflect.set(t, n, o, r);
1293
+ }
1294
+ });
1295
+ }
1162
1296
  export {
1163
- I as BaseError,
1164
- it as Canvas2Image,
1297
+ B as BaseError,
1298
+ yt as Canvas2Image,
1165
1299
  E as DOMKeyboardKeyCode,
1166
- F as EnvironmentError,
1167
- B as FileSelectCancelError,
1168
- j as IllegalFileError,
1169
- y as WebSocket,
1170
- We as addEventListener,
1171
- Re as checkHttpUrl,
1172
- pe as clearCookies,
1173
- qe as copyToClipboard,
1174
- at as createXMLHttpRequest,
1175
- tt as drawCanvasInWeb,
1176
- lt as fetchUseFetch,
1177
- ct as fetchUseXMLHttpRequest,
1178
- le as file2Image,
1179
- ce as fn2ObjectURL,
1180
- Pe as getBrowserLanguage,
1181
- ye as getBrowserUserAgent,
1182
- me as getCookie,
1183
- ge as getCookieObject,
1184
- x as getDocumentElement,
1185
- G as getElementLeftInPage,
1186
- be as getElementPositionInPage,
1187
- ve as getElementPositionInPage2,
1188
- Ee as getElementPositionInViewport,
1189
- V as getElementTopInPage,
1190
- Ke as getEvent,
1191
- $ as getFileExtension,
1192
- se as getFileType,
1193
- st as getFormElementData,
1194
- rt as getImageColor,
1195
- xe as getMouseButton,
1196
- ke as getMousePositionInPage,
1197
- Le as getMousePositionInViewport,
1198
- X as getPageClient,
1199
- U as getPageScroll,
1200
- he as getPageSize,
1201
- Te as getPageVerticalScrollPercent,
1202
- Ne as getRelatedTarget,
1203
- Ie as getSearchData,
1204
- Be as getSelectedText,
1205
- Ze as getTarget,
1206
- De as getUrlParams,
1207
- D as getViewportSize,
1208
- Q as handleDragAndDropFiles,
1209
- Y as handleInputFiles,
1210
- ut as ifWebFileHasChanged,
1211
- J as isAndroid,
1212
- te as isAudio,
1213
- et as isBrowserSupportFileAPI,
1214
- we as isElementInViewport,
1215
- oe as isExcelDocument,
1216
- Ue as isFocus,
1217
- W as isIOS,
1218
- N as isImage,
1219
- ie as isJsonDocument,
1220
- Ce as isMobile,
1221
- re as isPowerPointDocument,
1222
- Fe as isTabInView,
1223
- Se as isURLRelative,
1224
- ee as isVideo,
1225
- ne as isWordDocument,
1226
- ae as isXmlDocument,
1227
- ot as lazyloadImages,
1228
- nt as loadImageAsync,
1229
- ze as loadScript,
1230
- de as microTask,
1231
- je as navigateBack,
1232
- $e as navigateBack2,
1233
- ue as onDocumentReady,
1234
- z as patchDOM,
1235
- Qe as preventDefault,
1236
- Z as readeFile,
1237
- Je as removeEventListener,
1238
- Ge as saferHTML,
1239
- He as scrollToTop,
1240
- K as selectFile,
1241
- fe as setCookie,
1242
- _e as setRem,
1243
- Oe as setTheme,
1244
- Xe as siblings,
1245
- Ye as stopPropagation,
1246
- Ve as templateCompile,
1247
- Me as urlsafe_b64decode,
1248
- Ae as urlsafe_b64encode
1300
+ ee as Dep,
1301
+ G as EnvironmentError,
1302
+ F as FileSelectCancelError,
1303
+ W as IllegalFileError,
1304
+ C as WebSocket,
1305
+ ut as addEventListener,
1306
+ Le as clearCookies,
1307
+ Ke as copyToClipboard,
1308
+ Tt as createXMLHttpRequest,
1309
+ vt as drawCanvasInWeb,
1310
+ xt as fetchUseFetch,
1311
+ Ct as fetchUseXMLHttpRequest,
1312
+ pe as file2Image,
1313
+ ge as fn2ObjectURL,
1314
+ Re as getBrowserClient,
1315
+ Ie as getBrowserClientVersion,
1316
+ Oe as getBrowserLanguage,
1317
+ be as getCookie,
1318
+ Ee as getCookieObject,
1319
+ k as getDocumentElement,
1320
+ Q as getElementLeftInPage,
1321
+ Ce as getElementPositionInPage,
1322
+ ke as getElementPositionInPage2,
1323
+ xe as getElementPositionInViewport,
1324
+ N as getElementTopInPage,
1325
+ J as getFileExtension,
1326
+ me as getFileType,
1327
+ kt as getFormElementData,
1328
+ Lt as getImageColor,
1329
+ Ae as getMouseButton,
1330
+ Se as getMousePositionInPage,
1331
+ _e as getMousePositionInViewport,
1332
+ x as getOperatingSystem,
1333
+ Me as getOperatingSystemVersion,
1334
+ V as getPageClient,
1335
+ $ as getPageScroll,
1336
+ ye as getPageSize,
1337
+ Pe as getPageVerticalScrollPercent,
1338
+ pt as getRelatedTarget,
1339
+ et as getSelectedText,
1340
+ gt as getTarget,
1341
+ Ue as getTimeZone,
1342
+ We as getUrlParams,
1343
+ Je as getUrlParams2,
1344
+ De as getUserGeolocationPromise,
1345
+ q as getViewportSize,
1346
+ ne as handleDragAndDropFiles,
1347
+ Qe as handleHashChange,
1348
+ Ne as handleHistoryChange,
1349
+ te as handleInputFiles,
1350
+ Ye as handleURLChange,
1351
+ ct as htmlDecode,
1352
+ at as htmlEncode,
1353
+ Pt as ifWebFileHasChanged,
1354
+ K as isAndroid,
1355
+ Be as isAppleDevice,
1356
+ ae as isAudio,
1357
+ je as isBrowser,
1358
+ ht as isBrowserSupportFileAPI,
1359
+ Xe as isDarkMode,
1360
+ Te as isElementInViewport,
1361
+ le as isExcelDocument,
1362
+ tt as isFocus,
1363
+ Z as isIOS,
1364
+ ie as isImage,
1365
+ de as isJsonDocument,
1366
+ qe as isMobile,
1367
+ Fe as isNode,
1368
+ ue as isPowerPointDocument,
1369
+ ot as isTabInView,
1370
+ Ge as isURL,
1371
+ ze as isURLRelative,
1372
+ se as isVideo,
1373
+ ce as isWordDocument,
1374
+ fe as isXmlDocument,
1375
+ Et as lazyloadImages,
1376
+ bt as loadImageAsync,
1377
+ st as loadScript,
1378
+ St as localstorage,
1379
+ we as microTask,
1380
+ rt as navigateBack,
1381
+ it as navigateBack2,
1382
+ he as onDocumentReady,
1383
+ Y as patchDOM,
1384
+ mt as preventDefault,
1385
+ Mt as reactiveVue2,
1386
+ Rt as reactiveVue3,
1387
+ re as readeFile,
1388
+ dt as removeEventListener,
1389
+ _t as scrollTo,
1390
+ oe as selectFile,
1391
+ ve as setCookie,
1392
+ He as setRem,
1393
+ O as setScrollRestoration,
1394
+ Ze as setTheme,
1395
+ nt as siblings,
1396
+ ft as stopPropagation,
1397
+ lt as templateCompile,
1398
+ Ve as urlsafe_b64decode,
1399
+ $e as urlsafe_b64encode,
1400
+ wt as waitForStyleSheetsLoaded,
1401
+ At as watchEffect
1249
1402
  };
1250
1403
  //# sourceMappingURL=zyzgroup_core_web.js.map