@inpageedit/core 0.5.3 → 0.5.4

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.
@@ -7,17 +7,17 @@ const ar = () => {
7
7
  };
8
8
  Promise.withResolvers || (Promise.withResolvers = ar);
9
9
  var Dn = Object.defineProperty, B = (r, e) => Dn(r, "name", { value: e, configurable: !0 });
10
- function Ln() {
10
+ function Cn() {
11
11
  }
12
- B(Ln, "noop");
12
+ B(Cn, "noop");
13
13
  function K(r) {
14
14
  return r == null;
15
15
  }
16
16
  B(K, "isNullable");
17
- function Cn(r) {
17
+ function Ln(r) {
18
18
  return !K(r);
19
19
  }
20
- B(Cn, "isNonNullable");
20
+ B(Ln, "isNonNullable");
21
21
  function We(r) {
22
22
  return r && typeof r == "object" && !Array.isArray(r);
23
23
  }
@@ -263,10 +263,10 @@ var Gt;
263
263
  return O.toString().padStart(D, "0");
264
264
  }
265
265
  r.toDigits = w, B(w, "toDigits");
266
- function L(O, D = /* @__PURE__ */ new Date()) {
266
+ function C(O, D = /* @__PURE__ */ new Date()) {
267
267
  return O.replace("yyyy", D.getFullYear().toString()).replace("yy", D.getFullYear().toString().slice(2)).replace("MM", w(D.getMonth() + 1)).replace("dd", w(D.getDate())).replace("hh", w(D.getHours())).replace("mm", w(D.getMinutes())).replace("ss", w(D.getSeconds())).replace("SSS", w(D.getMilliseconds(), 3));
268
268
  }
269
- r.template = L, B(L, "template");
269
+ r.template = C, B(C, "template");
270
270
  })(Gt || (Gt = {}));
271
271
  var Gn = Object.defineProperty, P = (r, e) => Gn(r, "name", { value: e, configurable: !0 }), T = {
272
272
  // internal symbols
@@ -351,8 +351,8 @@ function dr(r, e, t, n) {
351
351
  get: /* @__PURE__ */ P((b, v, S) => {
352
352
  if (v === T.original) return b;
353
353
  const w = Reflect.get(b, v, S);
354
- return v === "toString" && w === Function.prototype.toString ? function(...L) {
355
- return Reflect.apply(w, this === S ? b : this, L);
354
+ return v === "toString" && w === Function.prototype.toString ? function(...C) {
355
+ return Reflect.apply(w, this === S ? b : this, C);
356
356
  } : w;
357
357
  }, "get"),
358
358
  apply: /* @__PURE__ */ P((b, v, S) => Reflect.apply(b, ce(r, v), S.map((w) => ce(r, w))), "apply"),
@@ -744,12 +744,12 @@ var mr = class {
744
744
  if (!b)
745
745
  l ||= !S;
746
746
  else if (S)
747
- b?.forEach((L) => i.add(L));
747
+ b?.forEach((C) => i.add(C));
748
748
  else {
749
- let L = !1;
749
+ let C = !1;
750
750
  for (const O of b)
751
- L ||= n(O);
752
- if (!L) continue;
751
+ C ||= n(O);
752
+ if (!C) continue;
753
753
  }
754
754
  v?.(r) && (c = !0);
755
755
  }
@@ -956,7 +956,7 @@ var ti = class {
956
956
  let n = this.get(r);
957
957
  return n ? (n.isForkable || this.context.emit(this.ctx, "internal/warning", new Error(`duplicate plugin detected: ${r.name}`)), n.fork(this.ctx, e, t)) : (n = new Jt(this.ctx, r, e, t), this.set(r, n), n.fork(this.ctx, e, t));
958
958
  }
959
- }, ri = ti, re = class Re {
959
+ }, ri = ti, re = class Ae {
960
960
  static {
961
961
  P(this, "Context");
962
962
  }
@@ -971,10 +971,10 @@ var ti = class {
971
971
  static origin = "ctx";
972
972
  static current = "ctx";
973
973
  static is(e) {
974
- return !!e?.[Re.is];
974
+ return !!e?.[Ae.is];
975
975
  }
976
976
  static {
977
- Re.is[Symbol.toPrimitive] = () => Symbol.for("cordis.is"), Re.prototype[Re.is] = !0;
977
+ Ae.is[Symbol.toPrimitive] = () => Symbol.for("cordis.is"), Ae.prototype[Ae.is] = !0;
978
978
  }
979
979
  /** @deprecated use `Service.traceable` instead */
980
980
  static associate(e, t) {
@@ -1314,7 +1314,7 @@ var Je = class gr {
1314
1314
  }
1315
1315
  return w(u.length, d, "string length", y), [u];
1316
1316
  });
1317
- function L(u, d) {
1317
+ function C(u, d) {
1318
1318
  const y = u.toString();
1319
1319
  if (y.includes("e")) return u * Math.pow(10, d);
1320
1320
  const h = y.indexOf(".");
@@ -1322,12 +1322,12 @@ var Je = class gr {
1322
1322
  const _ = y.slice(h + 1), x = y.slice(0, h);
1323
1323
  return _.length <= d ? +(x + _.padEnd(d, "0")) : +(x + _.slice(0, d) + "." + _.slice(d));
1324
1324
  }
1325
- U(L, "decimalShift");
1325
+ U(C, "decimalShift");
1326
1326
  function O(u, d, y) {
1327
1327
  if (y = Math.abs(y), !/^\d+\.\d+$/.test(y.toString()))
1328
1328
  return (u - d) % y === 0;
1329
1329
  const h = y.toString().indexOf("."), _ = y.toString().slice(h + 1).length;
1330
- return Math.abs(L(u, _) - L(d, _)) % L(y, _) === 0;
1330
+ return Math.abs(C(u, _) - C(d, _)) % C(y, _) === 0;
1331
1331
  }
1332
1332
  U(O, "isMultipleOf"), s.extend("number", (u, { meta: d }, y) => {
1333
1333
  if (typeof u != "number") throw new i(`expected number but got ${u}`, y);
@@ -1528,14 +1528,14 @@ const Qt = [
1528
1528
  ];
1529
1529
  function ci(r, e) {
1530
1530
  const t = Qt.length, n = Ue(r) % t, [i, s] = Qt[n], c = s - i, l = Ue(r + ":" + e), b = i + l % (c || 1), v = Ue(r + ":s"), S = Ue(r + ":l");
1531
- let w, L;
1531
+ let w, C;
1532
1532
  if (e === "name")
1533
- w = 62 + v % 18, L = 30 + S % 12;
1533
+ w = 62 + v % 18, C = 30 + S % 12;
1534
1534
  else {
1535
1535
  const O = b >= 0 && b < 50 || b > 330 && b < 360, D = b >= 200 && b <= 300;
1536
- w = 55 + v % 20, D ? L = 55 + S % 8 : O ? L = 48 + S % 6 : L = 50 + S % 8, w < 60 && (w += 5);
1536
+ w = 55 + v % 20, D ? C = 55 + S % 8 : O ? C = 48 + S % 6 : C = 50 + S % 8, w < 60 && (w += 5);
1537
1537
  }
1538
- return `hsl(${b}, ${w}%, ${L}%)`;
1538
+ return `hsl(${b}, ${w}%, ${C}%)`;
1539
1539
  }
1540
1540
  function Fe(r, e) {
1541
1541
  if (e)
@@ -1862,9 +1862,9 @@ async function _i(r, e, t) {
1862
1862
  );
1863
1863
  let v = new Uint8Array();
1864
1864
  for (; ; ) {
1865
- const { done: w, value: L } = await b.read();
1865
+ const { done: w, value: C } = await b.read();
1866
1866
  if (w) break;
1867
- if (L && (v = new Uint8Array([...v, ...L]), t && s > 0)) {
1867
+ if (C && (v = new Uint8Array([...v, ...C]), t && s > 0)) {
1868
1868
  const O = Math.min(v.length / s, 1);
1869
1869
  t(O, v);
1870
1870
  }
@@ -1881,8 +1881,8 @@ async function _i(r, e, t) {
1881
1881
  if (typeof S.data != "string" && l(i, v, e) ? S.data = new Blob([v], {
1882
1882
  type: r.headers.get("content-type") || void 0
1883
1883
  }) : S.data = new TextDecoder().decode(v), typeof S.data == "string" && e !== "text") {
1884
- const w = S.data.trim(), L = w[0], O = w[w.length - 1];
1885
- if (L === "{" && O === "}" || L === "[" && O === "]")
1884
+ const w = S.data.trim(), C = w[0], O = w[w.length - 1];
1885
+ if (C === "{" && O === "}" || C === "[" && O === "]")
1886
1886
  try {
1887
1887
  S.data = JSON.parse(S.data);
1888
1888
  } catch {
@@ -1952,13 +1952,13 @@ const Oi = /* @__PURE__ */ Ei(ki), Ye = class me extends Oi {
1952
1952
  this.baseConfigs.headers,
1953
1953
  t.headers
1954
1954
  );
1955
- const w = v?.searchParams, L = new URLSearchParams(S.searchParams);
1955
+ const w = v?.searchParams, C = new URLSearchParams(S.searchParams);
1956
1956
  if (S.search = "", l.url = S.href, l.query = this.mergeQuery(
1957
1957
  w,
1958
1958
  // baseURL query (lowest priority)
1959
1959
  this.baseConfigs.query,
1960
1960
  // defaultOptions (baseOptions)
1961
- L,
1961
+ C,
1962
1962
  // requestURL query (urlParams)
1963
1963
  t.query
1964
1964
  // requestOptions (highest priority)
@@ -2187,7 +2187,7 @@ let wr = Ye;
2187
2187
  * @license MIT
2188
2188
  * @author dragon-fish <dragon-fish@qq.com>
2189
2189
  */
2190
- const Ai = wr.create, nr = Ai();
2190
+ const Ri = wr.create, nr = Ri();
2191
2191
  typeof globalThis < "u" ? globalThis.fexios = nr : typeof window < "u" && (window.fexios = nr);
2192
2192
  /**
2193
2193
  * MediaWiki Api
@@ -2426,7 +2426,7 @@ _r.INIT_DEFAULT_PARAMS = {
2426
2426
  format: "json",
2427
2427
  formatversion: 2
2428
2428
  };
2429
- let Ri = _r;
2429
+ let Ai = _r;
2430
2430
  class Se extends Error {
2431
2431
  constructor(e, t = "", n) {
2432
2432
  super(), this.code = e, this.message = t, this.cause = n, this.name = "WikiSaikouError";
@@ -2439,7 +2439,7 @@ class Se extends Error {
2439
2439
  * @author Dragon-Fish <dragon-fish@qq.com>
2440
2440
  * @license MIT
2441
2441
  */
2442
- class Sr extends Ri {
2442
+ class Sr extends Ai {
2443
2443
  }
2444
2444
  class Ii {
2445
2445
  constructor(e, t) {
@@ -2516,8 +2516,8 @@ function Di() {
2516
2516
  var w = typeof He == "function" && He;
2517
2517
  if (!S && w) return w(v, !0);
2518
2518
  if (l) return l(v, !0);
2519
- var L = new Error("Cannot find module '" + v + "'");
2520
- throw L.code = "MODULE_NOT_FOUND", L;
2519
+ var C = new Error("Cannot find module '" + v + "'");
2520
+ throw C.code = "MODULE_NOT_FOUND", C;
2521
2521
  }
2522
2522
  var O = i[v] = { exports: {} };
2523
2523
  n[v][0].call(O.exports, function(D) {
@@ -2552,19 +2552,19 @@ function Di() {
2552
2552
  } : l = function() {
2553
2553
  setTimeout(D, 0);
2554
2554
  };
2555
- var L, O = [];
2555
+ var C, O = [];
2556
2556
  function D() {
2557
- L = !0;
2557
+ C = !0;
2558
2558
  for (var H, M, u = O.length; u; ) {
2559
2559
  for (M = O, O = [], H = -1; ++H < u; )
2560
2560
  M[H]();
2561
2561
  u = O.length;
2562
2562
  }
2563
- L = !1;
2563
+ C = !1;
2564
2564
  }
2565
2565
  n.exports = q;
2566
2566
  function q(H) {
2567
- O.push(H) === 1 && !L && l();
2567
+ O.push(H) === 1 && !C && l();
2568
2568
  }
2569
2569
  }).call(this, typeof ze < "u" ? ze : typeof self < "u" ? self : typeof window < "u" ? window : {});
2570
2570
  }, {}], 2: [function(t, n, i) {
@@ -2588,19 +2588,19 @@ function Di() {
2588
2588
  var I = this.state === v ? h : _;
2589
2589
  O(x, I, this.outcome);
2590
2590
  } else
2591
- this.queue.push(new L(x, h, _));
2591
+ this.queue.push(new C(x, h, _));
2592
2592
  return x;
2593
2593
  };
2594
- function L(h, _, x) {
2594
+ function C(h, _, x) {
2595
2595
  this.promise = h, typeof _ == "function" && (this.onFulfilled = _, this.callFulfilled = this.otherCallFulfilled), typeof x == "function" && (this.onRejected = x, this.callRejected = this.otherCallRejected);
2596
2596
  }
2597
- L.prototype.callFulfilled = function(h) {
2597
+ C.prototype.callFulfilled = function(h) {
2598
2598
  l.resolve(this.promise, h);
2599
- }, L.prototype.otherCallFulfilled = function(h) {
2599
+ }, C.prototype.otherCallFulfilled = function(h) {
2600
2600
  O(this.promise, this.onFulfilled, h);
2601
- }, L.prototype.callRejected = function(h) {
2601
+ }, C.prototype.callRejected = function(h) {
2602
2602
  l.reject(this.promise, h);
2603
- }, L.prototype.otherCallRejected = function(h) {
2603
+ }, C.prototype.otherCallRejected = function(h) {
2604
2604
  O(this.promise, this.onRejected, h);
2605
2605
  };
2606
2606
  function O(h, _, x) {
@@ -2770,7 +2770,7 @@ function Di() {
2770
2770
  }
2771
2771
  typeof Promise > "u" && t(3);
2772
2772
  var w = Promise;
2773
- function L(o, f) {
2773
+ function C(o, f) {
2774
2774
  f && o.then(function(a) {
2775
2775
  f(null, a);
2776
2776
  }, function(a) {
@@ -2843,9 +2843,9 @@ function Di() {
2843
2843
  var k = p.result;
2844
2844
  try {
2845
2845
  k.createObjectStore(o.storeName), E.oldVersion <= 1 && k.createObjectStore(H);
2846
- } catch (A) {
2847
- if (A.name !== "ConstraintError")
2848
- throw A;
2846
+ } catch (R) {
2847
+ if (R.name !== "ConstraintError")
2848
+ throw R;
2849
2849
  }
2850
2850
  }), p.onerror = function(E) {
2851
2851
  E.preventDefault(), m(p.error);
@@ -2893,7 +2893,7 @@ function Di() {
2893
2893
  var f = _(atob(o.data));
2894
2894
  return S([f], { type: o.type });
2895
2895
  }
2896
- function Rt(o) {
2896
+ function At(o) {
2897
2897
  return o && o.__local_forage_encoded_blob;
2898
2898
  }
2899
2899
  function $r(o) {
@@ -2964,23 +2964,23 @@ function Di() {
2964
2964
  return w.resolve();
2965
2965
  }
2966
2966
  for (var k = 0; k < g.forages.length; k++) {
2967
- var A = g.forages[k];
2968
- A !== f && p.push(A._initReady().catch(E));
2967
+ var R = g.forages[k];
2968
+ R !== f && p.push(R._initReady().catch(E));
2969
2969
  }
2970
- var R = g.forages.slice(0);
2970
+ var A = g.forages.slice(0);
2971
2971
  return w.all(p).then(function() {
2972
2972
  return a.db = g.db, le(a);
2973
2973
  }).then(function($) {
2974
2974
  return a.db = $, Be(a, f._defaultConfig.version) ? xe(a) : $;
2975
2975
  }).then(function($) {
2976
2976
  a.db = g.db = $, f._dbInfo = a;
2977
- for (var C = 0; C < R.length; C++) {
2978
- var j = R[C];
2977
+ for (var L = 0; L < A.length; L++) {
2978
+ var j = A[L];
2979
2979
  j !== f && (j._dbInfo.db = a.db, j._dbInfo.version = a.version);
2980
2980
  }
2981
2981
  });
2982
2982
  }
2983
- function Lr(o, f) {
2983
+ function Cr(o, f) {
2984
2984
  var a = this;
2985
2985
  o = D(o);
2986
2986
  var m = new w(function(g, p) {
@@ -2989,12 +2989,12 @@ function Di() {
2989
2989
  if (E)
2990
2990
  return p(E);
2991
2991
  try {
2992
- var A = k.objectStore(a._dbInfo.storeName), R = A.get(o);
2993
- R.onsuccess = function() {
2994
- var $ = R.result;
2995
- $ === void 0 && ($ = null), Rt($) && ($ = we($)), g($);
2996
- }, R.onerror = function() {
2997
- p(R.error);
2992
+ var R = k.objectStore(a._dbInfo.storeName), A = R.get(o);
2993
+ A.onsuccess = function() {
2994
+ var $ = A.result;
2995
+ $ === void 0 && ($ = null), At($) && ($ = we($)), g($);
2996
+ }, A.onerror = function() {
2997
+ p(A.error);
2998
2998
  };
2999
2999
  } catch ($) {
3000
3000
  p($);
@@ -3002,35 +3002,35 @@ function Di() {
3002
3002
  });
3003
3003
  }).catch(p);
3004
3004
  });
3005
- return L(m, f), m;
3005
+ return C(m, f), m;
3006
3006
  }
3007
- function Cr(o, f) {
3007
+ function Lr(o, f) {
3008
3008
  var a = this, m = new w(function(g, p) {
3009
3009
  a.ready().then(function() {
3010
3010
  ue(a._dbInfo, y, function(E, k) {
3011
3011
  if (E)
3012
3012
  return p(E);
3013
3013
  try {
3014
- var A = k.objectStore(a._dbInfo.storeName), R = A.openCursor(), $ = 1;
3015
- R.onsuccess = function() {
3016
- var C = R.result;
3017
- if (C) {
3018
- var j = C.value;
3019
- Rt(j) && (j = we(j));
3020
- var F = o(j, C.key, $++);
3021
- F !== void 0 ? g(F) : C.continue();
3014
+ var R = k.objectStore(a._dbInfo.storeName), A = R.openCursor(), $ = 1;
3015
+ A.onsuccess = function() {
3016
+ var L = A.result;
3017
+ if (L) {
3018
+ var j = L.value;
3019
+ At(j) && (j = we(j));
3020
+ var F = o(j, L.key, $++);
3021
+ F !== void 0 ? g(F) : L.continue();
3022
3022
  } else
3023
3023
  g();
3024
- }, R.onerror = function() {
3025
- p(R.error);
3024
+ }, A.onerror = function() {
3025
+ p(A.error);
3026
3026
  };
3027
- } catch (C) {
3028
- p(C);
3027
+ } catch (L) {
3028
+ p(L);
3029
3029
  }
3030
3030
  });
3031
3031
  }).catch(p);
3032
3032
  });
3033
- return L(m, f), m;
3033
+ return C(m, f), m;
3034
3034
  }
3035
3035
  function Pr(o, f, a) {
3036
3036
  var m = this;
@@ -3038,19 +3038,19 @@ function Di() {
3038
3038
  var g = new w(function(p, E) {
3039
3039
  var k;
3040
3040
  m.ready().then(function() {
3041
- return k = m._dbInfo, d.call(f) === "[object Blob]" ? I(k.db).then(function(A) {
3042
- return A ? f : Qe(f);
3041
+ return k = m._dbInfo, d.call(f) === "[object Blob]" ? I(k.db).then(function(R) {
3042
+ return R ? f : Qe(f);
3043
3043
  }) : f;
3044
- }).then(function(A) {
3045
- ue(m._dbInfo, h, function(R, $) {
3046
- if (R)
3047
- return E(R);
3044
+ }).then(function(R) {
3045
+ ue(m._dbInfo, h, function(A, $) {
3046
+ if (A)
3047
+ return E(A);
3048
3048
  try {
3049
- var C = $.objectStore(m._dbInfo.storeName);
3050
- A === null && (A = void 0);
3051
- var j = C.put(A, o);
3049
+ var L = $.objectStore(m._dbInfo.storeName);
3050
+ R === null && (R = void 0);
3051
+ var j = L.put(R, o);
3052
3052
  $.oncomplete = function() {
3053
- A === void 0 && (A = null), p(A);
3053
+ R === void 0 && (R = null), p(R);
3054
3054
  }, $.onabort = $.onerror = function() {
3055
3055
  var F = j.error ? j.error : j.transaction.error;
3056
3056
  E(F);
@@ -3061,7 +3061,7 @@ function Di() {
3061
3061
  });
3062
3062
  }).catch(E);
3063
3063
  });
3064
- return L(g, a), g;
3064
+ return C(g, a), g;
3065
3065
  }
3066
3066
  function Nr(o, f) {
3067
3067
  var a = this;
@@ -3072,13 +3072,13 @@ function Di() {
3072
3072
  if (E)
3073
3073
  return p(E);
3074
3074
  try {
3075
- var A = k.objectStore(a._dbInfo.storeName), R = A.delete(o);
3075
+ var R = k.objectStore(a._dbInfo.storeName), A = R.delete(o);
3076
3076
  k.oncomplete = function() {
3077
3077
  g();
3078
3078
  }, k.onerror = function() {
3079
- p(R.error);
3079
+ p(A.error);
3080
3080
  }, k.onabort = function() {
3081
- var $ = R.error ? R.error : R.transaction.error;
3081
+ var $ = A.error ? A.error : A.transaction.error;
3082
3082
  p($);
3083
3083
  };
3084
3084
  } catch ($) {
@@ -3087,7 +3087,7 @@ function Di() {
3087
3087
  });
3088
3088
  }).catch(p);
3089
3089
  });
3090
- return L(m, f), m;
3090
+ return C(m, f), m;
3091
3091
  }
3092
3092
  function Br(o) {
3093
3093
  var f = this, a = new w(function(m, g) {
@@ -3096,20 +3096,20 @@ function Di() {
3096
3096
  if (p)
3097
3097
  return g(p);
3098
3098
  try {
3099
- var k = E.objectStore(f._dbInfo.storeName), A = k.clear();
3099
+ var k = E.objectStore(f._dbInfo.storeName), R = k.clear();
3100
3100
  E.oncomplete = function() {
3101
3101
  m();
3102
3102
  }, E.onabort = E.onerror = function() {
3103
- var R = A.error ? A.error : A.transaction.error;
3104
- g(R);
3103
+ var A = R.error ? R.error : R.transaction.error;
3104
+ g(A);
3105
3105
  };
3106
- } catch (R) {
3107
- g(R);
3106
+ } catch (A) {
3107
+ g(A);
3108
3108
  }
3109
3109
  });
3110
3110
  }).catch(g);
3111
3111
  });
3112
- return L(a, o), a;
3112
+ return C(a, o), a;
3113
3113
  }
3114
3114
  function jr(o) {
3115
3115
  var f = this, a = new w(function(m, g) {
@@ -3118,19 +3118,19 @@ function Di() {
3118
3118
  if (p)
3119
3119
  return g(p);
3120
3120
  try {
3121
- var k = E.objectStore(f._dbInfo.storeName), A = k.count();
3122
- A.onsuccess = function() {
3123
- m(A.result);
3124
- }, A.onerror = function() {
3125
- g(A.error);
3121
+ var k = E.objectStore(f._dbInfo.storeName), R = k.count();
3122
+ R.onsuccess = function() {
3123
+ m(R.result);
3124
+ }, R.onerror = function() {
3125
+ g(R.error);
3126
3126
  };
3127
- } catch (R) {
3128
- g(R);
3127
+ } catch (A) {
3128
+ g(A);
3129
3129
  }
3130
3130
  });
3131
3131
  }).catch(g);
3132
3132
  });
3133
- return L(a, o), a;
3133
+ return C(a, o), a;
3134
3134
  }
3135
3135
  function Mr(o, f) {
3136
3136
  var a = this, m = new w(function(g, p) {
@@ -3143,24 +3143,24 @@ function Di() {
3143
3143
  if (E)
3144
3144
  return p(E);
3145
3145
  try {
3146
- var A = k.objectStore(a._dbInfo.storeName), R = !1, $ = A.openKeyCursor();
3146
+ var R = k.objectStore(a._dbInfo.storeName), A = !1, $ = R.openKeyCursor();
3147
3147
  $.onsuccess = function() {
3148
- var C = $.result;
3149
- if (!C) {
3148
+ var L = $.result;
3149
+ if (!L) {
3150
3150
  g(null);
3151
3151
  return;
3152
3152
  }
3153
- o === 0 || R ? g(C.key) : (R = !0, C.advance(o));
3153
+ o === 0 || A ? g(L.key) : (A = !0, L.advance(o));
3154
3154
  }, $.onerror = function() {
3155
3155
  p($.error);
3156
3156
  };
3157
- } catch (C) {
3158
- p(C);
3157
+ } catch (L) {
3158
+ p(L);
3159
3159
  }
3160
3160
  });
3161
3161
  }).catch(p);
3162
3162
  });
3163
- return L(m, f), m;
3163
+ return C(m, f), m;
3164
3164
  }
3165
3165
  function Ur(o) {
3166
3166
  var f = this, a = new w(function(m, g) {
@@ -3169,16 +3169,16 @@ function Di() {
3169
3169
  if (p)
3170
3170
  return g(p);
3171
3171
  try {
3172
- var k = E.objectStore(f._dbInfo.storeName), A = k.openKeyCursor(), R = [];
3173
- A.onsuccess = function() {
3174
- var $ = A.result;
3172
+ var k = E.objectStore(f._dbInfo.storeName), R = k.openKeyCursor(), A = [];
3173
+ R.onsuccess = function() {
3174
+ var $ = R.result;
3175
3175
  if (!$) {
3176
- m(R);
3176
+ m(A);
3177
3177
  return;
3178
3178
  }
3179
- R.push($.key), $.continue();
3180
- }, A.onerror = function() {
3181
- g(A.error);
3179
+ A.push($.key), $.continue();
3180
+ }, R.onerror = function() {
3181
+ g(R.error);
3182
3182
  };
3183
3183
  } catch ($) {
3184
3184
  g($);
@@ -3186,7 +3186,7 @@ function Di() {
3186
3186
  });
3187
3187
  }).catch(g);
3188
3188
  });
3189
- return L(a, o), a;
3189
+ return C(a, o), a;
3190
3190
  }
3191
3191
  function Fr(o, f) {
3192
3192
  f = q.apply(this, arguments);
@@ -3197,24 +3197,24 @@ function Di() {
3197
3197
  g = w.reject("Invalid arguments");
3198
3198
  else {
3199
3199
  var p = o.name === a.name && m._dbInfo.db, E = p ? w.resolve(m._dbInfo.db) : le(o).then(function(k) {
3200
- var A = u[o.name], R = A.forages;
3201
- A.db = k;
3202
- for (var $ = 0; $ < R.length; $++)
3203
- R[$]._dbInfo.db = k;
3200
+ var R = u[o.name], A = R.forages;
3201
+ R.db = k;
3202
+ for (var $ = 0; $ < A.length; $++)
3203
+ A[$]._dbInfo.db = k;
3204
3204
  return k;
3205
3205
  });
3206
3206
  o.storeName ? g = E.then(function(k) {
3207
3207
  if (k.objectStoreNames.contains(o.storeName)) {
3208
- var A = k.version + 1;
3208
+ var R = k.version + 1;
3209
3209
  N(o);
3210
- var R = u[o.name], $ = R.forages;
3210
+ var A = u[o.name], $ = A.forages;
3211
3211
  k.close();
3212
- for (var C = 0; C < $.length; C++) {
3213
- var j = $[C];
3214
- j._dbInfo.db = null, j._dbInfo.version = A;
3212
+ for (var L = 0; L < $.length; L++) {
3213
+ var j = $[L];
3214
+ j._dbInfo.db = null, j._dbInfo.version = R;
3215
3215
  }
3216
3216
  var F = new w(function(z, V) {
3217
- var Y = b.open(o.name, A);
3217
+ var Y = b.open(o.name, R);
3218
3218
  Y.onerror = function(oe) {
3219
3219
  var Oe = Y.result;
3220
3220
  Oe.close(), V(oe);
@@ -3227,7 +3227,7 @@ function Di() {
3227
3227
  };
3228
3228
  });
3229
3229
  return F.then(function(z) {
3230
- R.db = z;
3230
+ A.db = z;
3231
3231
  for (var V = 0; V < $.length; V++) {
3232
3232
  var Y = $[V];
3233
3233
  Y._dbInfo.db = z, Q(Y._dbInfo);
@@ -3239,11 +3239,11 @@ function Di() {
3239
3239
  }
3240
3240
  }) : g = E.then(function(k) {
3241
3241
  N(o);
3242
- var A = u[o.name], R = A.forages;
3242
+ var R = u[o.name], A = R.forages;
3243
3243
  k.close();
3244
- for (var $ = 0; $ < R.length; $++) {
3245
- var C = R[$];
3246
- C._dbInfo.db = null;
3244
+ for (var $ = 0; $ < A.length; $++) {
3245
+ var L = A[$];
3246
+ L._dbInfo.db = null;
3247
3247
  }
3248
3248
  var j = new w(function(F, z) {
3249
3249
  var V = b.deleteDatabase(o.name);
@@ -3257,9 +3257,9 @@ function Di() {
3257
3257
  };
3258
3258
  });
3259
3259
  return j.then(function(F) {
3260
- A.db = F;
3261
- for (var z = 0; z < R.length; z++) {
3262
- var V = R[z];
3260
+ R.db = F;
3261
+ for (var z = 0; z < A.length; z++) {
3262
+ var V = A[z];
3263
3263
  Q(V._dbInfo);
3264
3264
  }
3265
3265
  }).catch(function(F) {
@@ -3268,14 +3268,14 @@ function Di() {
3268
3268
  });
3269
3269
  });
3270
3270
  }
3271
- return L(g, f), g;
3271
+ return C(g, f), g;
3272
3272
  }
3273
3273
  var zr = {
3274
3274
  _driver: "asyncStorage",
3275
3275
  _initStorage: Dr,
3276
3276
  _support: v(),
3277
- iterate: Cr,
3278
- getItem: Lr,
3277
+ iterate: Lr,
3278
+ getItem: Cr,
3279
3279
  setItem: Pr,
3280
3280
  removeItem: Nr,
3281
3281
  clear: Br,
@@ -3287,14 +3287,14 @@ function Di() {
3287
3287
  function Hr() {
3288
3288
  return typeof openDatabase == "function";
3289
3289
  }
3290
- var de = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Wr = "~~local_forage_type~", $t = /^~~local_forage_type~([^~]+)~/, je = "__lfsc__:", Ze = je.length, et = "arbf", tt = "blob", Tt = "si08", Dt = "ui08", Lt = "uic8", Ct = "si16", Pt = "si32", Nt = "ur16", Bt = "ui32", jt = "fl32", Mt = "fl64", Ut = Ze + et.length, Ft = Object.prototype.toString;
3290
+ var de = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Wr = "~~local_forage_type~", $t = /^~~local_forage_type~([^~]+)~/, je = "__lfsc__:", Ze = je.length, et = "arbf", tt = "blob", Tt = "si08", Dt = "ui08", Ct = "uic8", Lt = "si16", Pt = "si32", Nt = "ur16", Bt = "ui32", jt = "fl32", Mt = "fl64", Ut = Ze + et.length, Ft = Object.prototype.toString;
3291
3291
  function zt(o) {
3292
- var f = o.length * 0.75, a = o.length, m, g = 0, p, E, k, A;
3292
+ var f = o.length * 0.75, a = o.length, m, g = 0, p, E, k, R;
3293
3293
  o[o.length - 1] === "=" && (f--, o[o.length - 2] === "=" && f--);
3294
- var R = new ArrayBuffer(f), $ = new Uint8Array(R);
3294
+ var A = new ArrayBuffer(f), $ = new Uint8Array(A);
3295
3295
  for (m = 0; m < a; m += 4)
3296
- p = de.indexOf(o[m]), E = de.indexOf(o[m + 1]), k = de.indexOf(o[m + 2]), A = de.indexOf(o[m + 3]), $[g++] = p << 2 | E >> 4, $[g++] = (E & 15) << 4 | k >> 2, $[g++] = (k & 3) << 6 | A & 63;
3297
- return R;
3296
+ p = de.indexOf(o[m]), E = de.indexOf(o[m + 1]), k = de.indexOf(o[m + 2]), R = de.indexOf(o[m + 3]), $[g++] = p << 2 | E >> 4, $[g++] = (E & 15) << 4 | k >> 2, $[g++] = (k & 3) << 6 | R & 63;
3297
+ return A;
3298
3298
  }
3299
3299
  function rt(o) {
3300
3300
  var f = new Uint8Array(o), a = "", m;
@@ -3306,7 +3306,7 @@ function Di() {
3306
3306
  var a = "";
3307
3307
  if (o && (a = Ft.call(o)), o && (a === "[object ArrayBuffer]" || o.buffer && Ft.call(o.buffer) === "[object ArrayBuffer]")) {
3308
3308
  var m, g = je;
3309
- o instanceof ArrayBuffer ? (m = o, g += et) : (m = o.buffer, a === "[object Int8Array]" ? g += Tt : a === "[object Uint8Array]" ? g += Dt : a === "[object Uint8ClampedArray]" ? g += Lt : a === "[object Int16Array]" ? g += Ct : a === "[object Uint16Array]" ? g += Nt : a === "[object Int32Array]" ? g += Pt : a === "[object Uint32Array]" ? g += Bt : a === "[object Float32Array]" ? g += jt : a === "[object Float64Array]" ? g += Mt : f(new Error("Failed to get type for BinaryArray"))), f(g + rt(m));
3309
+ o instanceof ArrayBuffer ? (m = o, g += et) : (m = o.buffer, a === "[object Int8Array]" ? g += Tt : a === "[object Uint8Array]" ? g += Dt : a === "[object Uint8ClampedArray]" ? g += Ct : a === "[object Int16Array]" ? g += Lt : a === "[object Uint16Array]" ? g += Nt : a === "[object Int32Array]" ? g += Pt : a === "[object Uint32Array]" ? g += Bt : a === "[object Float32Array]" ? g += jt : a === "[object Float64Array]" ? g += Mt : f(new Error("Failed to get type for BinaryArray"))), f(g + rt(m));
3310
3310
  } else if (a === "[object Blob]") {
3311
3311
  var p = new FileReader();
3312
3312
  p.onload = function() {
@@ -3338,9 +3338,9 @@ function Di() {
3338
3338
  return new Int8Array(p);
3339
3339
  case Dt:
3340
3340
  return new Uint8Array(p);
3341
- case Lt:
3342
- return new Uint8ClampedArray(p);
3343
3341
  case Ct:
3342
+ return new Uint8ClampedArray(p);
3343
+ case Lt:
3344
3344
  return new Int16Array(p);
3345
3345
  case Nt:
3346
3346
  return new Uint16Array(p);
@@ -3381,8 +3381,8 @@ function Di() {
3381
3381
  a.db.transaction(function(k) {
3382
3382
  Ht(k, a, function() {
3383
3383
  f._dbInfo = a, p();
3384
- }, function(A, R) {
3385
- E(R);
3384
+ }, function(R, A) {
3385
+ E(A);
3386
3386
  });
3387
3387
  }, E);
3388
3388
  });
@@ -3390,9 +3390,9 @@ function Di() {
3390
3390
  }
3391
3391
  function pe(o, f, a, m, g, p) {
3392
3392
  o.executeSql(a, m, g, function(E, k) {
3393
- k.code === k.SYNTAX_ERR ? E.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [f.storeName], function(A, R) {
3394
- R.rows.length ? p(A, k) : Ht(A, f, function() {
3395
- A.executeSql(a, m, g, p);
3393
+ k.code === k.SYNTAX_ERR ? E.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [f.storeName], function(R, A) {
3394
+ A.rows.length ? p(R, k) : Ht(R, f, function() {
3395
+ R.executeSql(a, m, g, p);
3396
3396
  }, p);
3397
3397
  }, p) : p(E, k);
3398
3398
  }, p);
@@ -3404,24 +3404,24 @@ function Di() {
3404
3404
  a.ready().then(function() {
3405
3405
  var E = a._dbInfo;
3406
3406
  E.db.transaction(function(k) {
3407
- pe(k, E, "SELECT * FROM " + E.storeName + " WHERE key = ? LIMIT 1", [o], function(A, R) {
3408
- var $ = R.rows.length ? R.rows.item(0).value : null;
3407
+ pe(k, E, "SELECT * FROM " + E.storeName + " WHERE key = ? LIMIT 1", [o], function(R, A) {
3408
+ var $ = A.rows.length ? A.rows.item(0).value : null;
3409
3409
  $ && ($ = E.serializer.deserialize($)), g($);
3410
- }, function(A, R) {
3411
- p(R);
3410
+ }, function(R, A) {
3411
+ p(A);
3412
3412
  });
3413
3413
  });
3414
3414
  }).catch(p);
3415
3415
  });
3416
- return L(m, f), m;
3416
+ return C(m, f), m;
3417
3417
  }
3418
3418
  function Gr(o, f) {
3419
3419
  var a = this, m = new w(function(g, p) {
3420
3420
  a.ready().then(function() {
3421
3421
  var E = a._dbInfo;
3422
3422
  E.db.transaction(function(k) {
3423
- pe(k, E, "SELECT * FROM " + E.storeName, [], function(A, R) {
3424
- for (var $ = R.rows, C = $.length, j = 0; j < C; j++) {
3423
+ pe(k, E, "SELECT * FROM " + E.storeName, [], function(R, A) {
3424
+ for (var $ = A.rows, L = $.length, j = 0; j < L; j++) {
3425
3425
  var F = $.item(j), z = F.value;
3426
3426
  if (z && (z = E.serializer.deserialize(z)), z = o(z, F.key, j + 1), z !== void 0) {
3427
3427
  g(z);
@@ -3429,13 +3429,13 @@ function Di() {
3429
3429
  }
3430
3430
  }
3431
3431
  g();
3432
- }, function(A, R) {
3433
- p(R);
3432
+ }, function(R, A) {
3433
+ p(A);
3434
3434
  });
3435
3435
  });
3436
3436
  }).catch(p);
3437
3437
  });
3438
- return L(m, f), m;
3438
+ return C(m, f), m;
3439
3439
  }
3440
3440
  function Wt(o, f, a, m) {
3441
3441
  var g = this;
@@ -3443,18 +3443,18 @@ function Di() {
3443
3443
  var p = new w(function(E, k) {
3444
3444
  g.ready().then(function() {
3445
3445
  f === void 0 && (f = null);
3446
- var A = f, R = g._dbInfo;
3447
- R.serializer.serialize(f, function($, C) {
3448
- C ? k(C) : R.db.transaction(function(j) {
3449
- pe(j, R, "INSERT OR REPLACE INTO " + R.storeName + " (key, value) VALUES (?, ?)", [o, $], function() {
3450
- E(A);
3446
+ var R = f, A = g._dbInfo;
3447
+ A.serializer.serialize(f, function($, L) {
3448
+ L ? k(L) : A.db.transaction(function(j) {
3449
+ pe(j, A, "INSERT OR REPLACE INTO " + A.storeName + " (key, value) VALUES (?, ?)", [o, $], function() {
3450
+ E(R);
3451
3451
  }, function(F, z) {
3452
3452
  k(z);
3453
3453
  });
3454
3454
  }, function(j) {
3455
3455
  if (j.code === j.QUOTA_ERR) {
3456
3456
  if (m > 0) {
3457
- E(Wt.apply(g, [o, A, a, m - 1]));
3457
+ E(Wt.apply(g, [o, R, a, m - 1]));
3458
3458
  return;
3459
3459
  }
3460
3460
  k(j);
@@ -3463,7 +3463,7 @@ function Di() {
3463
3463
  });
3464
3464
  }).catch(k);
3465
3465
  });
3466
- return L(p, a), p;
3466
+ return C(p, a), p;
3467
3467
  }
3468
3468
  function Xr(o, f, a) {
3469
3469
  return Wt.apply(this, [o, f, a, 1]);
@@ -3477,13 +3477,13 @@ function Di() {
3477
3477
  E.db.transaction(function(k) {
3478
3478
  pe(k, E, "DELETE FROM " + E.storeName + " WHERE key = ?", [o], function() {
3479
3479
  g();
3480
- }, function(A, R) {
3481
- p(R);
3480
+ }, function(R, A) {
3481
+ p(A);
3482
3482
  });
3483
3483
  });
3484
3484
  }).catch(p);
3485
3485
  });
3486
- return L(m, f), m;
3486
+ return C(m, f), m;
3487
3487
  }
3488
3488
  function Qr(o) {
3489
3489
  var f = this, a = new w(function(m, g) {
@@ -3492,62 +3492,62 @@ function Di() {
3492
3492
  p.db.transaction(function(E) {
3493
3493
  pe(E, p, "DELETE FROM " + p.storeName, [], function() {
3494
3494
  m();
3495
- }, function(k, A) {
3496
- g(A);
3495
+ }, function(k, R) {
3496
+ g(R);
3497
3497
  });
3498
3498
  });
3499
3499
  }).catch(g);
3500
3500
  });
3501
- return L(a, o), a;
3501
+ return C(a, o), a;
3502
3502
  }
3503
3503
  function Zr(o) {
3504
3504
  var f = this, a = new w(function(m, g) {
3505
3505
  f.ready().then(function() {
3506
3506
  var p = f._dbInfo;
3507
3507
  p.db.transaction(function(E) {
3508
- pe(E, p, "SELECT COUNT(key) as c FROM " + p.storeName, [], function(k, A) {
3509
- var R = A.rows.item(0).c;
3510
- m(R);
3511
- }, function(k, A) {
3512
- g(A);
3508
+ pe(E, p, "SELECT COUNT(key) as c FROM " + p.storeName, [], function(k, R) {
3509
+ var A = R.rows.item(0).c;
3510
+ m(A);
3511
+ }, function(k, R) {
3512
+ g(R);
3513
3513
  });
3514
3514
  });
3515
3515
  }).catch(g);
3516
3516
  });
3517
- return L(a, o), a;
3517
+ return C(a, o), a;
3518
3518
  }
3519
3519
  function en(o, f) {
3520
3520
  var a = this, m = new w(function(g, p) {
3521
3521
  a.ready().then(function() {
3522
3522
  var E = a._dbInfo;
3523
3523
  E.db.transaction(function(k) {
3524
- pe(k, E, "SELECT key FROM " + E.storeName + " WHERE id = ? LIMIT 1", [o + 1], function(A, R) {
3525
- var $ = R.rows.length ? R.rows.item(0).key : null;
3524
+ pe(k, E, "SELECT key FROM " + E.storeName + " WHERE id = ? LIMIT 1", [o + 1], function(R, A) {
3525
+ var $ = A.rows.length ? A.rows.item(0).key : null;
3526
3526
  g($);
3527
- }, function(A, R) {
3528
- p(R);
3527
+ }, function(R, A) {
3528
+ p(A);
3529
3529
  });
3530
3530
  });
3531
3531
  }).catch(p);
3532
3532
  });
3533
- return L(m, f), m;
3533
+ return C(m, f), m;
3534
3534
  }
3535
3535
  function tn(o) {
3536
3536
  var f = this, a = new w(function(m, g) {
3537
3537
  f.ready().then(function() {
3538
3538
  var p = f._dbInfo;
3539
3539
  p.db.transaction(function(E) {
3540
- pe(E, p, "SELECT key FROM " + p.storeName, [], function(k, A) {
3541
- for (var R = [], $ = 0; $ < A.rows.length; $++)
3542
- R.push(A.rows.item($).key);
3543
- m(R);
3544
- }, function(k, A) {
3545
- g(A);
3540
+ pe(E, p, "SELECT key FROM " + p.storeName, [], function(k, R) {
3541
+ for (var A = [], $ = 0; $ < R.rows.length; $++)
3542
+ A.push(R.rows.item($).key);
3543
+ m(A);
3544
+ }, function(k, R) {
3545
+ g(R);
3546
3546
  });
3547
3547
  });
3548
3548
  }).catch(g);
3549
3549
  });
3550
- return L(a, o), a;
3550
+ return C(a, o), a;
3551
3551
  }
3552
3552
  function rn(o) {
3553
3553
  return new w(function(f, a) {
@@ -3580,28 +3580,28 @@ function Di() {
3580
3580
  }) : p(rn(E));
3581
3581
  }).then(function(p) {
3582
3582
  return new w(function(E, k) {
3583
- p.db.transaction(function(A) {
3584
- function R(F) {
3583
+ p.db.transaction(function(R) {
3584
+ function A(F) {
3585
3585
  return new w(function(z, V) {
3586
- A.executeSql("DROP TABLE IF EXISTS " + F, [], function() {
3586
+ R.executeSql("DROP TABLE IF EXISTS " + F, [], function() {
3587
3587
  z();
3588
3588
  }, function(Y, oe) {
3589
3589
  V(oe);
3590
3590
  });
3591
3591
  });
3592
3592
  }
3593
- for (var $ = [], C = 0, j = p.storeNames.length; C < j; C++)
3594
- $.push(R(p.storeNames[C]));
3593
+ for (var $ = [], L = 0, j = p.storeNames.length; L < j; L++)
3594
+ $.push(A(p.storeNames[L]));
3595
3595
  w.all($).then(function() {
3596
3596
  E();
3597
3597
  }).catch(function(F) {
3598
3598
  k(F);
3599
3599
  });
3600
- }, function(A) {
3601
- k(A);
3600
+ }, function(R) {
3601
+ k(R);
3602
3602
  });
3603
3603
  });
3604
- }) : g = w.reject("Invalid arguments"), L(g, f), g;
3604
+ }) : g = w.reject("Invalid arguments"), C(g, f), g;
3605
3605
  }
3606
3606
  var sn = {
3607
3607
  _driver: "webSQLStorage",
@@ -3654,7 +3654,7 @@ function Di() {
3654
3654
  p.indexOf(m) === 0 && localStorage.removeItem(p);
3655
3655
  }
3656
3656
  });
3657
- return L(a, o), a;
3657
+ return C(a, o), a;
3658
3658
  }
3659
3659
  function fn(o, f) {
3660
3660
  var a = this;
@@ -3663,20 +3663,20 @@ function Di() {
3663
3663
  var g = a._dbInfo, p = localStorage.getItem(g.keyPrefix + o);
3664
3664
  return p && (p = g.serializer.deserialize(p)), p;
3665
3665
  });
3666
- return L(m, f), m;
3666
+ return C(m, f), m;
3667
3667
  }
3668
3668
  function hn(o, f) {
3669
3669
  var a = this, m = a.ready().then(function() {
3670
- for (var g = a._dbInfo, p = g.keyPrefix, E = p.length, k = localStorage.length, A = 1, R = 0; R < k; R++) {
3671
- var $ = localStorage.key(R);
3670
+ for (var g = a._dbInfo, p = g.keyPrefix, E = p.length, k = localStorage.length, R = 1, A = 0; A < k; A++) {
3671
+ var $ = localStorage.key(A);
3672
3672
  if ($.indexOf(p) === 0) {
3673
- var C = localStorage.getItem($);
3674
- if (C && (C = g.serializer.deserialize(C)), C = o(C, $.substring(E), A++), C !== void 0)
3675
- return C;
3673
+ var L = localStorage.getItem($);
3674
+ if (L && (L = g.serializer.deserialize(L)), L = o(L, $.substring(E), R++), L !== void 0)
3675
+ return L;
3676
3676
  }
3677
3677
  }
3678
3678
  });
3679
- return L(m, f), m;
3679
+ return C(m, f), m;
3680
3680
  }
3681
3681
  function dn(o, f) {
3682
3682
  var a = this, m = a.ready().then(function() {
@@ -3688,7 +3688,7 @@ function Di() {
3688
3688
  }
3689
3689
  return p && (p = p.substring(g.keyPrefix.length)), p;
3690
3690
  });
3691
- return L(m, f), m;
3691
+ return C(m, f), m;
3692
3692
  }
3693
3693
  function pn(o) {
3694
3694
  var f = this, a = f.ready().then(function() {
@@ -3698,13 +3698,13 @@ function Di() {
3698
3698
  }
3699
3699
  return p;
3700
3700
  });
3701
- return L(a, o), a;
3701
+ return C(a, o), a;
3702
3702
  }
3703
3703
  function mn(o) {
3704
3704
  var f = this, a = f.keys().then(function(m) {
3705
3705
  return m.length;
3706
3706
  });
3707
- return L(a, o), a;
3707
+ return C(a, o), a;
3708
3708
  }
3709
3709
  function yn(o, f) {
3710
3710
  var a = this;
@@ -3713,7 +3713,7 @@ function Di() {
3713
3713
  var g = a._dbInfo;
3714
3714
  localStorage.removeItem(g.keyPrefix + o);
3715
3715
  });
3716
- return L(m, f), m;
3716
+ return C(m, f), m;
3717
3717
  }
3718
3718
  function gn(o, f, a) {
3719
3719
  var m = this;
@@ -3722,20 +3722,20 @@ function Di() {
3722
3722
  f === void 0 && (f = null);
3723
3723
  var p = f;
3724
3724
  return new w(function(E, k) {
3725
- var A = m._dbInfo;
3726
- A.serializer.serialize(f, function(R, $) {
3725
+ var R = m._dbInfo;
3726
+ R.serializer.serialize(f, function(A, $) {
3727
3727
  if ($)
3728
3728
  k($);
3729
3729
  else
3730
3730
  try {
3731
- localStorage.setItem(A.keyPrefix + o, R), E(p);
3732
- } catch (C) {
3733
- (C.name === "QuotaExceededError" || C.name === "NS_ERROR_DOM_QUOTA_REACHED") && k(C), k(C);
3731
+ localStorage.setItem(R.keyPrefix + o, A), E(p);
3732
+ } catch (L) {
3733
+ (L.name === "QuotaExceededError" || L.name === "NS_ERROR_DOM_QUOTA_REACHED") && k(L), k(L);
3734
3734
  }
3735
3735
  });
3736
3736
  });
3737
3737
  });
3738
- return L(g, a), g;
3738
+ return C(g, a), g;
3739
3739
  }
3740
3740
  function bn(o, f) {
3741
3741
  if (f = q.apply(this, arguments), o = typeof o != "function" && o || {}, !o.name) {
@@ -3750,7 +3750,7 @@ function Di() {
3750
3750
  var k = localStorage.key(E);
3751
3751
  k.indexOf(p) === 0 && localStorage.removeItem(k);
3752
3752
  }
3753
- }) : g = w.reject("Invalid arguments"), L(g, f), g;
3753
+ }) : g = w.reject("Invalid arguments"), C(g, f), g;
3754
3754
  }
3755
3755
  var vn = {
3756
3756
  _driver: "localStorageWrapper",
@@ -3832,32 +3832,32 @@ function Di() {
3832
3832
  }, o.prototype.defineDriver = function(a, m, g) {
3833
3833
  var p = new w(function(E, k) {
3834
3834
  try {
3835
- var A = a._driver, R = new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");
3835
+ var R = a._driver, A = new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");
3836
3836
  if (!a._driver) {
3837
- k(R);
3837
+ k(A);
3838
3838
  return;
3839
3839
  }
3840
- for (var $ = it.concat("_initStorage"), C = 0, j = $.length; C < j; C++) {
3841
- var F = $[C], z = !_n(Me, F);
3840
+ for (var $ = it.concat("_initStorage"), L = 0, j = $.length; L < j; L++) {
3841
+ var F = $[L], z = !_n(Me, F);
3842
3842
  if ((z || a[F]) && typeof a[F] != "function") {
3843
- k(R);
3843
+ k(A);
3844
3844
  return;
3845
3845
  }
3846
3846
  }
3847
3847
  var V = function() {
3848
- for (var Oe = function(Rn) {
3848
+ for (var Oe = function(An) {
3849
3849
  return function() {
3850
- var In = new Error("Method " + Rn + " is not implemented by the current driver"), Vt = w.reject(In);
3851
- return L(Vt, arguments[arguments.length - 1]), Vt;
3850
+ var In = new Error("Method " + An + " is not implemented by the current driver"), Vt = w.reject(In);
3851
+ return C(Vt, arguments[arguments.length - 1]), Vt;
3852
3852
  };
3853
- }, ot = 0, An = Me.length; ot < An; ot++) {
3853
+ }, ot = 0, Rn = Me.length; ot < Rn; ot++) {
3854
3854
  var at = Me[ot];
3855
3855
  a[at] || (a[at] = Oe(at));
3856
3856
  }
3857
3857
  };
3858
3858
  V();
3859
3859
  var Y = function(Oe) {
3860
- ke[A], ke[A] = a, Kt[A] = Oe, E();
3860
+ ke[R], ke[R] = a, Kt[R] = Oe, E();
3861
3861
  };
3862
3862
  "_support" in a ? a._support && typeof a._support == "function" ? a._support().then(Y, k) : Y(!!a._support) : Y(!0);
3863
3863
  } catch (oe) {
@@ -3885,16 +3885,16 @@ function Di() {
3885
3885
  function k() {
3886
3886
  p._config.driver = p.driver();
3887
3887
  }
3888
- function A(C) {
3889
- return p._extend(C), k(), p._ready = p._initStorage(p._config), p._ready;
3888
+ function R(L) {
3889
+ return p._extend(L), k(), p._ready = p._initStorage(p._config), p._ready;
3890
3890
  }
3891
- function R(C) {
3891
+ function A(L) {
3892
3892
  return function() {
3893
3893
  var j = 0;
3894
3894
  function F() {
3895
- for (; j < C.length; ) {
3896
- var z = C[j];
3897
- return j++, p._dbInfo = null, p._ready = null, p.getDriver(z).then(A).catch(F);
3895
+ for (; j < L.length; ) {
3896
+ var z = L[j];
3897
+ return j++, p._dbInfo = null, p._ready = null, p.getDriver(z).then(R).catch(F);
3898
3898
  }
3899
3899
  k();
3900
3900
  var V = new Error("No available storage method found.");
@@ -3907,14 +3907,14 @@ function Di() {
3907
3907
  return w.resolve();
3908
3908
  }) : w.resolve();
3909
3909
  return this._driverSet = $.then(function() {
3910
- var C = E[0];
3911
- return p._dbInfo = null, p._ready = null, p.getDriver(C).then(function(j) {
3912
- p._driver = j._driver, k(), p._wrapLibraryMethodsWithReady(), p._initDriver = R(E);
3910
+ var L = E[0];
3911
+ return p._dbInfo = null, p._ready = null, p.getDriver(L).then(function(j) {
3912
+ p._driver = j._driver, k(), p._wrapLibraryMethodsWithReady(), p._initDriver = A(E);
3913
3913
  });
3914
3914
  }).catch(function() {
3915
3915
  k();
3916
- var C = new Error("No available storage method found.");
3917
- return p._driverSet = w.reject(C), p._driverSet;
3916
+ var L = new Error("No available storage method found.");
3917
+ return p._driverSet = w.reject(L), p._driverSet;
3918
3918
  }), O(this._driverSet, m, g), this._driverSet;
3919
3919
  }, o.prototype.supports = function(a) {
3920
3920
  return !!Kt[a];
@@ -3938,28 +3938,28 @@ function Di() {
3938
3938
  });
3939
3939
  }(ut)), ut.exports;
3940
3940
  }
3941
- var Li = Di();
3942
- const Er = /* @__PURE__ */ Ti(Li);
3943
- class Ci extends Je {
3941
+ var Ci = Di();
3942
+ const Er = /* @__PURE__ */ Ti(Ci);
3943
+ class Li extends Je {
3944
3944
  constructor(e) {
3945
3945
  super(e, "storage", !1), e.set("localforage", Er);
3946
3946
  }
3947
3947
  get StorageManager() {
3948
- return Le;
3948
+ return Ce;
3949
3949
  }
3950
3950
  createDatabse(e, t, n) {
3951
- return new Le("InPageEdit", e, t, n);
3951
+ return new Ce("InPageEdit", e, t, n);
3952
3952
  }
3953
3953
  }
3954
- class Le {
3954
+ class Ce {
3955
3955
  /**
3956
3956
  *
3957
3957
  * @param dbName
3958
3958
  * @param storeName
3959
3959
  * @param ttl
3960
3960
  */
3961
- constructor(e, t, n = Le.DEFAULT_TTL, i) {
3962
- this.dbName = e, this.storeName = t, this.ttl = n, this.version = i, this.db = Le.createDatabase(e, t), this.keys = this.db.keys.bind(this.db);
3961
+ constructor(e, t, n = Ce.DEFAULT_TTL, i) {
3962
+ this.dbName = e, this.storeName = t, this.ttl = n, this.version = i, this.db = Ce.createDatabase(e, t), this.keys = this.db.keys.bind(this.db);
3963
3963
  }
3964
3964
  static {
3965
3965
  this.DEFAULT_TTL = 1 / 0;
@@ -4044,14 +4044,14 @@ var Pi = Object.create, Et = Object.defineProperty, Ni = Object.getOwnPropertyDe
4044
4044
  for (var i = 0, s = r[e >> 1], c = s && s.length; i < c; i++) s[i].call(t);
4045
4045
  return n;
4046
4046
  }, Wi = (r, e, t, n, i, s) => {
4047
- var c, l, b, v = e & 7, S = !1, w = 0, L = r[w] || (r[w] = []), O = v && (i = i.prototype, v < 5 && (v > 3 || !S) && Ni(i, t));
4047
+ var c, l, b, v = e & 7, S = !1, w = 0, C = r[w] || (r[w] = []), O = v && (i = i.prototype, v < 5 && (v > 3 || !S) && Ni(i, t));
4048
4048
  ji(i, t);
4049
4049
  for (var D = n.length - 1; D >= 0; D--)
4050
- b = Fi(v, t, l = {}, r[3], L), c = (0, n[D])(i, b), l._ = 1, Or(c) && (i = c);
4050
+ b = Fi(v, t, l = {}, r[3], C), c = (0, n[D])(i, b), l._ = 1, Or(c) && (i = c);
4051
4051
  return zi(r, i), O && Et(i, t, O), S ? v ^ 4 ? s : O : i;
4052
- }, Ar, xt, Rr;
4053
- Ar = [De(["api", "storage"])];
4054
- class Ge extends (Rr = Je) {
4052
+ }, Rr, xt, Ar;
4053
+ Rr = [De(["api", "storage"])];
4054
+ class Ge extends (Ar = Je) {
4055
4055
  constructor(e) {
4056
4056
  super(e, "sitemeta", !1), this.ctx = e, this._data = void 0, this.CACHE_TTL = 1e3 * 60 * 60 * 24, this.VERSION = 2, this.db = void 0, this.queryData = {
4057
4057
  meta: "siteinfo|userinfo",
@@ -4185,8 +4185,8 @@ class Ge extends (Rr = Je) {
4185
4185
  } : null;
4186
4186
  }
4187
4187
  }
4188
- xt = Mi(Rr);
4189
- Ge = Wi(xt, 0, "SiteMetadataService", Ar, Ge);
4188
+ xt = Mi(Ar);
4189
+ Ge = Wi(xt, 0, "SiteMetadataService", Rr, Ge);
4190
4190
  Hi(xt, 1, Ge);
4191
4191
  var Ir = /* @__PURE__ */ ((r) => (r.preferences = "preferences", r.watch = "watch", r.unwatch = "unwatch", r.nochange = "nochange", r))(Ir || {});
4192
4192
  class $e {
@@ -4418,7 +4418,7 @@ class qi extends Je {
4418
4418
  var kt = /* @__PURE__ */ ((r) => (r.Init = "modal.init", r.BeforeShow = "modal.beforeShow", r.Show = "modal.show", r.BeforeClose = "modal.beforeClose", r.Close = "modal.close", r.Destroy = "modal.destroy", r.ToastShow = "toast.show", r.ToastClose = "toast.close", r))(kt || {});
4419
4419
  let Yi = 0;
4420
4420
  const sr = (r) => `${r}-${++Yi}`;
4421
- function Ae(r) {
4421
+ function Re(r) {
4422
4422
  return r instanceof Node ? r : document.createTextNode(String(r));
4423
4423
  }
4424
4424
  function fe(r, e) {
@@ -4558,10 +4558,10 @@ class Ot {
4558
4558
  s.append(l, b), !e && this.options.draggable && (s.style.cursor = "move", s.style.userSelect = "none", s.addEventListener("pointerdown", this.onDragStart.bind(this)));
4559
4559
  const v = Z("div", { className: "ipe-modal-modal__content" }), S = Z("div", { className: "ipe-modal-modal__footer" }), w = Z("div", {
4560
4560
  className: "ipe-modal-modal__buttons ipe-modal-modal__buttons--left"
4561
- }), L = Z("div", {
4561
+ }), C = Z("div", {
4562
4562
  className: "ipe-modal-modal__buttons ipe-modal-modal__buttons--right"
4563
4563
  });
4564
- return S.append(w, L), i.append(s, v, S), n.appendChild(i), this.$backdrop = t, this.$modal = n, this.$window = i, this.$header = s, this.$title = l, this.$icons = b, this.$content = v, this.$footer = S, this.$buttonsLeft = w, this.$buttonsRight = L, this.options.title && this.setTitle(this.options.title), this.options.content && this.setContent(this.options.content), this.options.buttons?.length ? this.setButtons(this.options.buttons) : S.style.display = "none", this.options.center && this.$modal.classList.add("is-centered"), this.options.fitScreen && this.$modal.classList.add("is-fullscreen"), this.options.iconButtons && this.$header.classList.add("has-icon-buttons"), this.options.className && this.$window.classList.add(...this.options.className.split(/[\s\.#+]+/g).filter(Boolean)), typeof this.options.fixedHeight == "number" ? this.$window.style.height = `${Math.max(0, this.options.fixedHeight)}px` : this.options.fixedHeight === !0 && this.$window.classList.add("is-fixed-height"), t && t.addEventListener("pointerdown", (O) => {
4564
+ return S.append(w, C), i.append(s, v, S), n.appendChild(i), this.$backdrop = t, this.$modal = n, this.$window = i, this.$header = s, this.$title = l, this.$icons = b, this.$content = v, this.$footer = S, this.$buttonsLeft = w, this.$buttonsRight = C, this.options.title && this.setTitle(this.options.title), this.options.content && this.setContent(this.options.content), this.options.buttons?.length ? this.setButtons(this.options.buttons) : S.style.display = "none", this.options.center && this.$modal.classList.add("is-centered"), this.options.fitScreen && this.$modal.classList.add("is-fullscreen"), this.options.iconButtons && this.$header.classList.add("has-icon-buttons"), this.options.className && this.$window.classList.add(...this.options.className.split(/[\s\.#+]+/g).filter(Boolean)), typeof this.options.fixedHeight == "number" ? this.$window.style.height = `${Math.max(0, this.options.fixedHeight)}px` : this.options.fixedHeight === !0 && this.$window.classList.add("is-fixed-height"), t && t.addEventListener("pointerdown", (O) => {
4565
4565
  this.options.outSideClose && O.target === t && this.close();
4566
4566
  }), this.onKeyDown = this.onKeyDown.bind(this), this.emit(
4567
4567
  "modal.init"
@@ -4668,11 +4668,11 @@ class Ot {
4668
4668
  // ------------------------------ content ------------------------------- //
4669
4669
  setTitle(e) {
4670
4670
  const t = this.get$title();
4671
- return t.innerHTML = "", t.append(Ae(e)), this;
4671
+ return t.innerHTML = "", t.append(Re(e)), this;
4672
4672
  }
4673
4673
  setContent(e, t = "replace") {
4674
4674
  const n = this.get$content();
4675
- return t === "replace" ? (n.innerHTML = "", n.append(Ae(e))) : t === "append" ? n.append(Ae(e)) : n.prepend(Ae(e)), this;
4675
+ return t === "replace" ? (n.innerHTML = "", n.append(Re(e))) : t === "append" ? n.append(Re(e)) : n.prepend(Re(e)), this;
4676
4676
  }
4677
4677
  setIcons(e) {
4678
4678
  const t = this.get$icons();
@@ -4704,7 +4704,7 @@ class Ot {
4704
4704
  generateButton(e) {
4705
4705
  const t = e.type ?? "button", n = t === "link" ? Z("a") : Z("button", { attrs: { type: "button" } });
4706
4706
  e.id && (n.id = e.id), n.className = `ipe-modal-btn ${e.className ?? ""}`.trim();
4707
- const i = Ae(e.label ?? "OK");
4707
+ const i = Re(e.label ?? "OK");
4708
4708
  if (n.append(i), t === "link" && e.href && (n.href = e.href), e.method && n.addEventListener("click", (s) => {
4709
4709
  if (n._ipe_tmpDisabled) {
4710
4710
  s.preventDefault(), s.stopPropagation();
@@ -5116,7 +5116,7 @@ class Gi {
5116
5116
  this.ctx = e, this.IPEModal = G, this.IPEModalEvent = kt, this.show = G.show.bind(G), this.createObject = G.createObject.bind(G), this.close = G.close.bind(G), this.closeAll = G.closeAll.bind(G), this.removeAll = G.removeAll.bind(G), this.dialog = G.dialog.bind(G), this.confirm = G.confirm.bind(G), this.notify = G.notify.bind(G), e.set("modal", this);
5117
5117
  }
5118
5118
  }
5119
- var At = /* @__PURE__ */ ((r) => (r.ANALYTICS_API_BASE = "https://analytics.ipe.wiki/api", r.ANALYTICS_DASH_URL = "https://analytics.ipe.wiki", r.GITHUB_URL = "https://github.com/inpageedit/inpageedit-v2", r.HOME_URL = "https://www.ipe.wiki/", r.PLUGIN_CDN_BASE = "https://ipe-plugins.js.org", r.PLUGIN_HOME_URL = "https://github.com/inpageedit/Plugins", r.SPECIAL_NOTICE_JSON = "https://ipe-plugins.js.org/specialNotice.json", r.UPDATE_LOGS_URL = "https://www.ipe.wiki/update/", r))(At || {});
5119
+ var Rt = /* @__PURE__ */ ((r) => (r.ANALYTICS_API_BASE = "https://analytics.ipe.wiki/api", r.ANALYTICS_DASH_URL = "https://analytics.ipe.wiki", r.GITHUB_URL = "https://github.com/inpageedit/inpageedit-next", r.HOME_URL = "https://www.ipe.wiki/", r.UPDATE_LOGS_URL = "https://www.ipe.wiki/changelogs/", r))(Rt || {});
5120
5120
  /**
5121
5121
  * ✏️ InPageEdit NEXT
5122
5122
  *
@@ -5127,10 +5127,10 @@ var At = /* @__PURE__ */ ((r) => (r.ANALYTICS_API_BASE = "https://analytics.ipe.
5127
5127
  * @see https://github.com/inpageedit/inpageedit-next
5128
5128
  * @see https://www.ipe.wiki/
5129
5129
  */
5130
- class Ce extends re {
5130
+ class Le extends re {
5131
5131
  constructor(e) {
5132
- super(), this.version = "0.5.3", this.Endpoints = At, this.schema = ai, this.config = {
5133
- ...Ce.DEFAULT_CONFIG,
5132
+ super(), this.version = "0.5.4", this.Endpoints = Rt, this.schema = ai, this.config = {
5133
+ ...Le.DEFAULT_CONFIG,
5134
5134
  ...e
5135
5135
  }, this.logger = hi({
5136
5136
  name: "IPE",
@@ -5146,7 +5146,7 @@ class Ce extends re {
5146
5146
  };
5147
5147
  }
5148
5148
  async #e() {
5149
- this.plugin(Ii, { baseURL: this.config.baseURL }), this.plugin($i), this.plugin(Gi), this.plugin(Ci), this.plugin(Ge), this.plugin(qi), this.#t([
5149
+ this.plugin(Ii, { baseURL: this.config.baseURL }), this.plugin($i), this.plugin(Gi), this.plugin(Li), this.plugin(Ge), this.plugin(qi), this.#t([
5150
5150
  "api",
5151
5151
  "resourceLoader",
5152
5152
  "modal",
@@ -5158,7 +5158,7 @@ class Ce extends re {
5158
5158
  #t(e) {
5159
5159
  if (typeof e == "string" && (e = [e]), !Array.isArray(e) || e.length === 0) return this;
5160
5160
  for (const t of e) {
5161
- const n = this[Ce.internal][t];
5161
+ const n = this[Le.internal][t];
5162
5162
  n?.type === "service" && (n.builtin = !0);
5163
5163
  }
5164
5164
  return this;
@@ -5166,17 +5166,17 @@ class Ce extends re {
5166
5166
  // TODO: 这里不应该硬编码,暂时先这样
5167
5167
  async #r() {
5168
5168
  [
5169
- import("./index-7DsKuWsw.js").then(({ PluginPreferences: t }) => t),
5170
- import("./index-Cm67r8TX.js").then(({ PluginQuickEdit: t }) => t),
5171
- import("./index-DiCrCoWT.js").then(({ PluginQuickMove: t }) => t),
5172
- import("./index-6pczvrx6.js").then(
5169
+ import("./index-UyiZ7umI.js").then(({ PluginPreferences: t }) => t),
5170
+ import("./index-rMDuLpcz.js").then(({ PluginQuickEdit: t }) => t),
5171
+ import("./index-BedbUMp8.js").then(({ PluginQuickMove: t }) => t),
5172
+ import("./index-e7eyr1FL.js").then(
5173
5173
  ({ PluginQuickPreview: t }) => t
5174
5174
  ),
5175
- import("./index-Dz0VGQwY.js").then(({ PluginQuickDiff: t }) => t),
5176
- import("./index-Bo7FhmY-.js").then(
5175
+ import("./index-i-Uf0vuA.js").then(({ PluginQuickDiff: t }) => t),
5176
+ import("./index-BSjnoNn2.js").then(
5177
5177
  ({ PluginQuickRedirect: t }) => t
5178
5178
  ),
5179
- import("./index-Dnu9H-Aq.js").then(({ PluginToolbox: t }) => t)
5179
+ import("./index-xJ2bdsOD.js").then(({ PluginToolbox: t }) => t)
5180
5180
  ].forEach(async (t) => {
5181
5181
  this.plugin(await t);
5182
5182
  });
@@ -5256,11 +5256,11 @@ Zi("InPageEdit#autoload", () => {
5256
5256
  });
5257
5257
  async function Qi() {
5258
5258
  typeof window?.ipe?.stop == "function" && await window.ipe.stop();
5259
- const r = window.InPageEdit || {}, e = new Ce({
5259
+ const r = window.InPageEdit || {}, e = new Le({
5260
5260
  baseURL: window.mw?.util.wikiScript("api"),
5261
5261
  legacyPreferences: r?.myPreferences || {}
5262
5262
  });
5263
- if (window.InPageEdit = Ce, window.ipe = e, window.mw.hook("InPageEdit.ready").fire(e), await e.start(), Array.isArray(window.__IPE_MODULES__)) {
5263
+ if (window.InPageEdit = Le, window.ipe = e, window.mw.hook("InPageEdit.ready").fire(e), await e.start(), Array.isArray(window.__IPE_MODULES__)) {
5264
5264
  const t = [];
5265
5265
  for (; window.__IPE_MODULES__.length; )
5266
5266
  try {
@@ -5277,7 +5277,7 @@ async function Qi() {
5277
5277
  });
5278
5278
  }
5279
5279
  e.logger("AUTOLOAD").info(
5280
- `${At.HOME_URL}
5280
+ `${Rt.HOME_URL}
5281
5281
  ____ ____ ______ ___ __
5282
5282
  / _/___ / __ \\____ _____ ____ / ____/___/ (_) /_
5283
5283
  / // __ \\/ /_/ / __ \`/ __ \`/ _ \\/ __/ / __ / / __/
@@ -5293,7 +5293,7 @@ function Zi(r, e) {
5293
5293
  export {
5294
5294
  br as $,
5295
5295
  rs as B,
5296
- Ce as I,
5296
+ Le as I,
5297
5297
  ai as S,
5298
5298
  Ir as W,
5299
5299
  De as a,
@@ -5301,4 +5301,4 @@ export {
5301
5301
  hi as c,
5302
5302
  li as m
5303
5303
  };
5304
- //# sourceMappingURL=index-CHb2WvLm.js.map
5304
+ //# sourceMappingURL=index-DNQjqBV-.js.map