@wral/profile-image-editor 0.0.8 → 0.0.9

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.
@@ -14,10 +14,10 @@ function Wi(d, l) {
14
14
  }
15
15
  return Object.freeze(Object.defineProperty(d, Symbol.toStringTag, { value: "Module" }));
16
16
  }
17
- const en = globalThis, Mn = en.ShadowRoot && (en.ShadyCSS === void 0 || en.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Nn = /* @__PURE__ */ Symbol(), Vn = /* @__PURE__ */ new WeakMap();
17
+ const en = globalThis, Mn = en.ShadowRoot && (en.ShadyCSS === void 0 || en.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Fn = /* @__PURE__ */ Symbol(), Vn = /* @__PURE__ */ new WeakMap();
18
18
  let Ti = class {
19
19
  constructor(l, f, c) {
20
- if (this._$cssResult$ = !0, c !== Nn) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
20
+ if (this._$cssResult$ = !0, c !== Fn) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
21
21
  this.cssText = l, this.t = f;
22
22
  }
23
23
  get styleSheet() {
@@ -33,13 +33,13 @@ let Ti = class {
33
33
  return this.cssText;
34
34
  }
35
35
  };
36
- const qi = (d) => new Ti(typeof d == "string" ? d : d + "", void 0, Nn), Ki = (d, ...l) => {
37
- const f = d.length === 1 ? d[0] : l.reduce((c, p, g) => c + ((N) => {
38
- if (N._$cssResult$ === !0) return N.cssText;
39
- if (typeof N == "number") return N;
40
- throw Error("Value passed to 'css' function must be a 'css' function result: " + N + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
36
+ const qi = (d) => new Ti(typeof d == "string" ? d : d + "", void 0, Fn), Ki = (d, ...l) => {
37
+ const f = d.length === 1 ? d[0] : l.reduce((c, p, g) => c + ((F) => {
38
+ if (F._$cssResult$ === !0) return F.cssText;
39
+ if (typeof F == "number") return F;
40
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + F + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
41
41
  })(p) + d[g + 1], d[0]);
42
- return new Ti(f, d, Nn);
42
+ return new Ti(f, d, Fn);
43
43
  }, Xi = (d, l) => {
44
44
  if (Mn) d.adoptedStyleSheets = l.map((f) => f instanceof CSSStyleSheet ? f : f.styleSheet);
45
45
  else for (const f of l) {
@@ -97,12 +97,12 @@ let St = class extends HTMLElement {
97
97
  static getPropertyDescriptor(l, f, c) {
98
98
  const { get: p, set: g } = Zi(this.prototype, l) ?? { get() {
99
99
  return this[f];
100
- }, set(N) {
101
- this[f] = N;
100
+ }, set(F) {
101
+ this[f] = F;
102
102
  } };
103
- return { get: p, set(N) {
103
+ return { get: p, set(F) {
104
104
  const j = p?.call(this);
105
- g?.call(this, N), this.requestUpdate(l, j, c);
105
+ g?.call(this, F), this.requestUpdate(l, j, c);
106
106
  }, configurable: !0, enumerable: !0 };
107
107
  }
108
108
  static getPropertyOptions(l) {
@@ -185,22 +185,22 @@ let St = class extends HTMLElement {
185
185
  _$AK(l, f) {
186
186
  const c = this.constructor, p = c._$Eh.get(l);
187
187
  if (p !== void 0 && this._$Em !== p) {
188
- const g = c.getPropertyOptions(p), N = typeof g.converter == "function" ? { fromAttribute: g.converter } : g.converter?.fromAttribute !== void 0 ? g.converter : yn;
188
+ const g = c.getPropertyOptions(p), F = typeof g.converter == "function" ? { fromAttribute: g.converter } : g.converter?.fromAttribute !== void 0 ? g.converter : yn;
189
189
  this._$Em = p;
190
- const j = N.fromAttribute(f, g.type);
190
+ const j = F.fromAttribute(f, g.type);
191
191
  this[p] = j ?? this._$Ej?.get(p) ?? j, this._$Em = null;
192
192
  }
193
193
  }
194
194
  requestUpdate(l, f, c, p = !1, g) {
195
195
  if (l !== void 0) {
196
- const N = this.constructor;
197
- if (p === !1 && (g = this[l]), c ??= N.getPropertyOptions(l), !((c.hasChanged ?? Si)(g, f) || c.useDefault && c.reflect && g === this._$Ej?.get(l) && !this.hasAttribute(N._$Eu(l, c)))) return;
196
+ const F = this.constructor;
197
+ if (p === !1 && (g = this[l]), c ??= F.getPropertyOptions(l), !((c.hasChanged ?? Si)(g, f) || c.useDefault && c.reflect && g === this._$Ej?.get(l) && !this.hasAttribute(F._$Eu(l, c)))) return;
198
198
  this.C(l, f, c);
199
199
  }
200
200
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
201
201
  }
202
- C(l, f, { useDefault: c, reflect: p, wrapped: g }, N) {
203
- c && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(l) && (this._$Ej.set(l, N ?? f ?? this[l]), g !== !0 || N !== void 0) || (this._$AL.has(l) || (this.hasUpdated || c || (f = void 0), this._$AL.set(l, f)), p === !0 && this._$Em !== l && (this._$Eq ??= /* @__PURE__ */ new Set()).add(l));
202
+ C(l, f, { useDefault: c, reflect: p, wrapped: g }, F) {
203
+ c && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(l) && (this._$Ej.set(l, F ?? f ?? this[l]), g !== !0 || F !== void 0) || (this._$AL.has(l) || (this.hasUpdated || c || (f = void 0), this._$AL.set(l, f)), p === !0 && this._$Em !== l && (this._$Eq ??= /* @__PURE__ */ new Set()).add(l));
204
204
  }
205
205
  async _$EP() {
206
206
  this.isUpdatePending = !0;
@@ -224,8 +224,8 @@ let St = class extends HTMLElement {
224
224
  }
225
225
  const c = this.constructor.elementProperties;
226
226
  if (c.size > 0) for (const [p, g] of c) {
227
- const { wrapped: N } = g, j = this[p];
228
- N !== !0 || this._$AL.has(p) || j === void 0 || this.C(p, void 0, g, j);
227
+ const { wrapped: F } = g, j = this[p];
228
+ F !== !0 || this._$AL.has(p) || j === void 0 || this.C(p, void 0, g, j);
229
229
  }
230
230
  }
231
231
  let l = !1;
@@ -263,7 +263,7 @@ let St = class extends HTMLElement {
263
263
  }
264
264
  };
265
265
  St.elementStyles = [], St.shadowRootOptions = { mode: "open" }, St[$t("elementProperties")] = /* @__PURE__ */ new Map(), St[$t("finalized")] = /* @__PURE__ */ new Map(), ir?.({ ReactiveElement: St }), (on.reactiveElementVersions ??= []).push("2.1.2");
266
- const Fn = globalThis, qn = (d) => d, sn = Fn.trustedTypes, Kn = sn ? sn.createPolicy("lit-html", { createHTML: (d) => d }) : void 0, Di = "$lit$", bt = `lit$${Math.random().toFixed(9).slice(2)}$`, ji = "?" + bt, rr = `<${ji}>`, Tt = document, Yt = () => Tt.createComment(""), Wt = (d) => d === null || typeof d != "object" && typeof d != "function", _n = Array.isArray, sr = (d) => _n(d) || typeof d?.[Symbol.iterator] == "function", cn = `[
266
+ const Nn = globalThis, qn = (d) => d, sn = Nn.trustedTypes, Kn = sn ? sn.createPolicy("lit-html", { createHTML: (d) => d }) : void 0, Di = "$lit$", bt = `lit$${Math.random().toFixed(9).slice(2)}$`, ji = "?" + bt, rr = `<${ji}>`, Tt = document, Yt = () => Tt.createComment(""), Wt = (d) => d === null || typeof d != "object" && typeof d != "function", _n = Array.isArray, sr = (d) => _n(d) || typeof d?.[Symbol.iterator] == "function", cn = `[
267
267
  \f\r]`, Mt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Xn = /-->/g, Gn = />/g, Ct = RegExp(`>|${cn}(?:([^\\s"'>=/]+)(${cn}*=${cn}*(?:[^
268
268
  \f\r"'\`<>=]|("|')|))|$)`, "g"), Jn = /'/g, Zn = /"/g, Ii = /^(?:script|style|textarea|title)$/i, or = (d) => (l, ...f) => ({ _$litType$: d, strings: l, values: f }), yt = or(1), Dt = /* @__PURE__ */ Symbol.for("lit-noChange"), dt = /* @__PURE__ */ Symbol.for("lit-nothing"), Qn = /* @__PURE__ */ new WeakMap(), At = Tt.createTreeWalker(Tt, 129);
269
269
  function ki(d, l) {
@@ -272,13 +272,13 @@ function ki(d, l) {
272
272
  }
273
273
  const ar = (d, l) => {
274
274
  const f = d.length - 1, c = [];
275
- let p, g = l === 2 ? "<svg>" : l === 3 ? "<math>" : "", N = Mt;
275
+ let p, g = l === 2 ? "<svg>" : l === 3 ? "<math>" : "", F = Mt;
276
276
  for (let j = 0; j < f; j++) {
277
277
  const $ = d[j];
278
278
  let v, X, z = -1, ge = 0;
279
- for (; ge < $.length && (N.lastIndex = ge, X = N.exec($), X !== null); ) ge = N.lastIndex, N === Mt ? X[1] === "!--" ? N = Xn : X[1] !== void 0 ? N = Gn : X[2] !== void 0 ? (Ii.test(X[2]) && (p = RegExp("</" + X[2], "g")), N = Ct) : X[3] !== void 0 && (N = Ct) : N === Ct ? X[0] === ">" ? (N = p ?? Mt, z = -1) : X[1] === void 0 ? z = -2 : (z = N.lastIndex - X[2].length, v = X[1], N = X[3] === void 0 ? Ct : X[3] === '"' ? Zn : Jn) : N === Zn || N === Jn ? N = Ct : N === Xn || N === Gn ? N = Mt : (N = Ct, p = void 0);
280
- const V = N === Ct && d[j + 1].startsWith("/>") ? " " : "";
281
- g += N === Mt ? $ + rr : z >= 0 ? (c.push(v), $.slice(0, z) + Di + $.slice(z) + bt + V) : $ + bt + (z === -2 ? j : V);
279
+ for (; ge < $.length && (F.lastIndex = ge, X = F.exec($), X !== null); ) ge = F.lastIndex, F === Mt ? X[1] === "!--" ? F = Xn : X[1] !== void 0 ? F = Gn : X[2] !== void 0 ? (Ii.test(X[2]) && (p = RegExp("</" + X[2], "g")), F = Ct) : X[3] !== void 0 && (F = Ct) : F === Ct ? X[0] === ">" ? (F = p ?? Mt, z = -1) : X[1] === void 0 ? z = -2 : (z = F.lastIndex - X[2].length, v = X[1], F = X[3] === void 0 ? Ct : X[3] === '"' ? Zn : Jn) : F === Zn || F === Jn ? F = Ct : F === Xn || F === Gn ? F = Mt : (F = Ct, p = void 0);
280
+ const V = F === Ct && d[j + 1].startsWith("/>") ? " " : "";
281
+ g += F === Mt ? $ + rr : z >= 0 ? (c.push(v), $.slice(0, z) + Di + $.slice(z) + bt + V) : $ + bt + (z === -2 ? j : V);
282
282
  }
283
283
  return [ki(d, g + (d[f] || "<?>") + (l === 2 ? "</svg>" : l === 3 ? "</math>" : "")), c];
284
284
  };
@@ -286,7 +286,7 @@ class qt {
286
286
  constructor({ strings: l, _$litType$: f }, c) {
287
287
  let p;
288
288
  this.parts = [];
289
- let g = 0, N = 0;
289
+ let g = 0, F = 0;
290
290
  const j = l.length - 1, $ = this.parts, [v, X] = ar(l, f);
291
291
  if (this.el = qt.createElement(v, c), At.currentNode = this.el.content, f === 2 || f === 3) {
292
292
  const z = this.el.content.firstChild;
@@ -295,7 +295,7 @@ class qt {
295
295
  for (; (p = At.nextNode()) !== null && $.length < j; ) {
296
296
  if (p.nodeType === 1) {
297
297
  if (p.hasAttributes()) for (const z of p.getAttributeNames()) if (z.endsWith(Di)) {
298
- const ge = X[N++], V = p.getAttribute(z).split(bt), Ce = /([.?@])?(.*)/.exec(ge);
298
+ const ge = X[F++], V = p.getAttribute(z).split(bt), Ce = /([.?@])?(.*)/.exec(ge);
299
299
  $.push({ type: 1, index: g, name: Ce[2], strings: V, ctor: Ce[1] === "." ? cr : Ce[1] === "?" ? ur : Ce[1] === "@" ? fr : an }), p.removeAttribute(z);
300
300
  } else z.startsWith(bt) && ($.push({ type: 6, index: g }), p.removeAttribute(z));
301
301
  if (Ii.test(p.tagName)) {
@@ -338,13 +338,13 @@ class lr {
338
338
  u(l) {
339
339
  const { el: { content: f }, parts: c } = this._$AD, p = (l?.creationScope ?? Tt).importNode(f, !0);
340
340
  At.currentNode = p;
341
- let g = At.nextNode(), N = 0, j = 0, $ = c[0];
341
+ let g = At.nextNode(), F = 0, j = 0, $ = c[0];
342
342
  for (; $ !== void 0; ) {
343
- if (N === $.index) {
343
+ if (F === $.index) {
344
344
  let v;
345
345
  $.type === 2 ? v = new Gt(g, g.nextSibling, this, l) : $.type === 1 ? v = new $.ctor(g, $.name, $.strings, this, l) : $.type === 6 && (v = new dr(g, this, l)), this._$AV.push(v), $ = c[++j];
346
346
  }
347
- N !== $?.index && (g = At.nextNode(), N++);
347
+ F !== $?.index && (g = At.nextNode(), F++);
348
348
  }
349
349
  return At.currentNode = Tt, p;
350
350
  }
@@ -387,8 +387,8 @@ class Gt {
387
387
  const { values: f, _$litType$: c } = l, p = typeof c == "number" ? this._$AC(l) : (c.el === void 0 && (c.el = qt.createElement(ki(c.h, c.h[0]), this.options)), c);
388
388
  if (this._$AH?._$AD === p) this._$AH.p(f);
389
389
  else {
390
- const g = new lr(p, this), N = g.u(this.options);
391
- g.p(f), this.T(N), this._$AH = g;
390
+ const g = new lr(p, this), F = g.u(this.options);
391
+ g.p(f), this.T(F), this._$AH = g;
392
392
  }
393
393
  }
394
394
  _$AC(l) {
@@ -424,14 +424,14 @@ class an {
424
424
  }
425
425
  _$AI(l, f = this, c, p) {
426
426
  const g = this.strings;
427
- let N = !1;
428
- if (g === void 0) l = jt(this, l, f, 0), N = !Wt(l) || l !== this._$AH && l !== Dt, N && (this._$AH = l);
427
+ let F = !1;
428
+ if (g === void 0) l = jt(this, l, f, 0), F = !Wt(l) || l !== this._$AH && l !== Dt, F && (this._$AH = l);
429
429
  else {
430
430
  const j = l;
431
431
  let $, v;
432
- for (l = g[0], $ = 0; $ < g.length - 1; $++) v = jt(this, j[c + $], f, $), v === Dt && (v = this._$AH[$]), N ||= !Wt(v) || v !== this._$AH[$], v === dt ? l = dt : l !== dt && (l += (v ?? "") + g[$ + 1]), this._$AH[$] = v;
432
+ for (l = g[0], $ = 0; $ < g.length - 1; $++) v = jt(this, j[c + $], f, $), v === Dt && (v = this._$AH[$]), F ||= !Wt(v) || v !== this._$AH[$], v === dt ? l = dt : l !== dt && (l += (v ?? "") + g[$ + 1]), this._$AH[$] = v;
433
433
  }
434
- N && !p && this.j(l);
434
+ F && !p && this.j(l);
435
435
  }
436
436
  j(l) {
437
437
  l === dt ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, l ?? "");
@@ -477,8 +477,8 @@ class dr {
477
477
  jt(this, l);
478
478
  }
479
479
  }
480
- const hr = Fn.litHtmlPolyfillSupport;
481
- hr?.(qt, Gt), (Fn.litHtmlVersions ??= []).push("3.3.2");
480
+ const hr = Nn.litHtmlPolyfillSupport;
481
+ hr?.(qt, Gt), (Nn.litHtmlVersions ??= []).push("3.3.2");
482
482
  const pr = (d, l, f) => {
483
483
  const c = f?.renderBefore ?? l;
484
484
  let p = c._$litPart$;
@@ -520,6 +520,17 @@ const mr = Ki`
520
520
  display: flex;
521
521
  flex-direction: column;
522
522
  gap: 1rem;
523
+
524
+ --color-primary: #001D68;
525
+ --color-secondary: #2594E3;
526
+ --wral-border: #E7E5E4;
527
+ --wral-card-background: #FFFFFF;
528
+ --wral-background: #F5F5F5;
529
+ --wral-gray-medium: #6C6C6C;
530
+ --wral-font-roboto: 'Roboto', sans-serif;
531
+ --wral-font-condensed: 'IBM Plex Sans Condensed', sans-serif;
532
+
533
+ font-family: var(--wral-font-roboto);
523
534
  }
524
535
 
525
536
  .layout {
@@ -533,11 +544,14 @@ const mr = Ki`
533
544
  position: relative;
534
545
  width: var(--cropper-size, 128px);
535
546
  height: var(--cropper-size, 128px);
536
- border: 1px solid #ccc;
537
- background: #f7f7f7;
538
547
  overflow: hidden;
539
548
  user-select: none;
540
549
  touch-action: none;
550
+
551
+ border: 1px solid var(--wral-border, #E7E5E4);
552
+ border-radius: 8px;
553
+ background: var(--wral-card-background, #FFFFFF);
554
+ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
541
555
  }
542
556
 
543
557
  #image-cropper,
@@ -570,29 +584,30 @@ const mr = Ki`
570
584
  }
571
585
 
572
586
  #image-cropper > .jcrop-area {
573
- position: absolute;
574
- border: 2px dashed #2b7cff;
575
- cursor: move;
576
- pointer-events: auto;
577
- aspect-ratio: 1;
578
- }
587
+ position: absolute;
588
+ z-index: 10;
579
589
 
580
- #image-cropper > .jcrop-area {
581
- z-index: 10;
590
+ border: 2px dashed var(--color-secondary, #2594E3);
591
+ border-radius: 8px;
592
+
593
+ cursor: move;
594
+ pointer-events: auto;
595
+
596
+ aspect-ratio: 1;
582
597
  }
583
598
 
584
599
  #image-cropper > .jcrop-area::before,
585
600
  #image-cropper > .jcrop-area::after {
586
- content: "";
587
- position: absolute;
588
- width: 10px;
589
- height: 10px;
590
- background: #2b7cff;
601
+ content: "";
602
+ position: absolute;
603
+ width: 10px;
604
+ height: 10px;
605
+ background: var(--color-secondary, #2594E3);
591
606
  }
592
607
 
593
608
  #image-cropper > .jcrop-area::before {
594
- top: -5px;
595
- left: -5px;
609
+ top: -5px;
610
+ left: -5px;
596
611
  }
597
612
 
598
613
  #image-cropper > .jcrop-area::after {
@@ -604,26 +619,52 @@ const mr = Ki`
604
619
  #image-cropper [class*='mask' i],
605
620
  #image-cropper [class*='overlay' i] {
606
621
  pointer-events: none;
607
- background: rgba(0, 0, 0, 0.15);
622
+ background: rgba(0, 0, 0, 0.35);
608
623
  }
609
624
 
610
625
  #image-cropper .handle,
611
626
  #image-cropper [class*='handle' i] {
612
627
  pointer-events: auto;
613
- }
614
-
615
- #image-cropper .handle,
616
- #image-cropper [class*='handle' i] {
617
628
  width: 10px;
618
629
  height: 10px;
619
- background: #2b7cff;
630
+ background: var(--color-secondary, #2594E3);
620
631
  border-radius: 2px;
621
632
  }
622
633
 
623
- #image-cropper .nw, #image-cropper [class*='nw' i] { cursor: nwse-resize; }
624
- #image-cropper .ne, #image-cropper [class*='ne' i] { cursor: nesw-resize; }
625
- #image-cropper .sw, #image-cropper [class*='sw' i] { cursor: nesw-resize; }
626
- #image-cropper .se, #image-cropper [class*='se' i] { cursor: nwse-resize; }
634
+ #image-cropper .nw,
635
+ #image-cropper [class*='nw' i] {
636
+ cursor: nwse-resize;
637
+ }
638
+ #image-cropper .ne,
639
+ #image-cropper [class*='ne' i] {
640
+ cursor: nesw-resize;
641
+ }
642
+ #image-cropper .sw,
643
+ #image-cropper [class*='sw' i] {
644
+ cursor: nesw-resize;
645
+ }
646
+ #image-cropper .se,
647
+ #image-cropper [class*='se' i] {
648
+ cursor: nwse-resize;
649
+ }
650
+
651
+ .jcrop {
652
+ border-radius: 8px;
653
+ }
654
+
655
+ .jcrop-area {
656
+ position: relative;
657
+ }
658
+
659
+ .jcrop-area .circle-guide {
660
+ position: absolute;
661
+ inset: 0;
662
+ border-radius: 50%;
663
+ pointer-events: none;
664
+
665
+ outline: 2px solid rgba(255, 255, 255, 0.9);
666
+ box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.35);
667
+ }
627
668
 
628
669
  .preview {
629
670
  display: flex;
@@ -644,7 +685,6 @@ const mr = Ki`
644
685
  .controls {
645
686
  display: flex;
646
687
  flex-wrap: wrap;
647
- justify-content: center;
648
688
  gap: 12px;
649
689
  align-items: center;
650
690
  justify-content: space-between;
@@ -663,33 +703,25 @@ const mr = Ki`
663
703
  input[type="range"] {
664
704
  -webkit-appearance: none;
665
705
  appearance: none;
666
-
667
- background: transparent;
706
+ background: transparent;
668
707
  margin: 0;
669
708
  }
670
709
 
671
710
  .zoom[type="range"]::-moz-range-track,
672
711
  .zoom[type="range"]::-webkit-slider-runnable-track {
673
- height: 15px;
674
- background: #ccc;
675
- border-radius: 16px;
676
- }
677
-
678
- .zoom[type="range"]::-webkit-slider-runnable-track {
679
- background-color: #ccc;
712
+ height: 15px;
713
+ background: var(--wral-border, #D9D9D9);
680
714
  border-radius: 16px;
681
715
  }
682
716
 
683
717
  input[type="range"]::-webkit-slider-thumb {
684
718
  -webkit-appearance: none;
685
-
686
719
  width: 32px;
687
720
  height: 32px;
688
721
  background: #ffffff;
689
722
  border-radius: 50%;
690
723
  border: none;
691
-
692
- box-shadow: 0 6px 12px rgba(0,0,0,0.25);
724
+ box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
693
725
  margin-top: -12px;
694
726
  cursor: pointer;
695
727
  }
@@ -700,11 +732,14 @@ const mr = Ki`
700
732
  background: #ffffff;
701
733
  border-radius: 50%;
702
734
  border: none;
703
-
704
- box-shadow: 0 6px 12px rgba(0,0,0,0.25);
735
+ box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
705
736
  cursor: pointer;
706
737
  }
707
738
 
739
+ .zoom:focus-visible {
740
+ outline: 3px solid rgba(37, 148, 227, 0.45);
741
+ outline-offset: 2px;
742
+ }
708
743
 
709
744
  button {
710
745
  display: inline-flex;
@@ -716,56 +751,65 @@ const mr = Ki`
716
751
  padding: 10px 14px;
717
752
 
718
753
  border-radius: var(--radius-sm, 5px);
719
- border: 1.5px solid var(--color-primary, #001D68);
720
- background: var(--color-primary, #FFF);
754
+ border: 1px solid var(--color-primary, #001D68);
755
+ background: transparent;
756
+ color: var(--color-primary, #001D68);
757
+
721
758
  cursor: pointer;
722
- color: var(--color-white, #001D68);
723
759
  text-align: center;
724
760
 
725
- font-size: 14px;
761
+ font-size: 0.85rem;
726
762
  font-weight: 600;
727
763
  line-height: 16px;
728
- }
729
764
 
730
- button:hover {
731
- background: var(--color-secondary, #001D68);
732
- color: var(--color-white, #FFF);
765
+ transition:
766
+ transform 0.2s ease,
767
+ box-shadow 0.2s ease,
768
+ background 0.2s ease,
769
+ color 0.2s ease,
770
+ opacity 0.2s ease;
733
771
  }
734
772
 
735
- button[disabled] {
736
- background: #ccc;
737
- cursor: not-allowed;
738
- }
739
-
740
- .primary {
741
- display: flex;
742
- height: 40px;
743
- padding: 12px;
744
- justify-content: center;
745
- align-items: center;
746
- background: #2b7cff;
773
+ button.primary:hover:not([disabled]) {
774
+ background: var(--color-primary, #001D68);
747
775
  color: #fff;
748
- border-color: #2b7cff;
776
+ box-shadow: 0 6px 14px rgba(0, 29, 104, 0.2);
777
+ transform: translateY(-1px);
749
778
  }
750
779
 
751
- .jcrop {
752
- border-radius: 8px;
780
+ button:hover:not([disabled]) {
781
+ color: var(--color-secondary, #2594E3);
782
+ border-color: var(--color-secondary, #2594E3);
783
+ box-shadow: 0 6px 14px rgba(0, 29, 104, 0.2);
784
+ transform: translateY(-1px);
753
785
  }
754
786
 
755
- .jcrop-area {
756
- position: relative;
787
+ button:focus-visible {
788
+ outline: 3px solid rgba(37, 148, 227, 0.45);
789
+ outline-offset: 2px;
757
790
  }
758
791
 
759
- .jcrop-area .circle-guide {
760
- position: absolute;
761
- inset: 0;
762
- border-radius: 50%;
792
+ /* Disabled: 50% fade, no hover/click reaction */
793
+ button[disabled],
794
+ button:disabled {
795
+ opacity: 0.5;
796
+ cursor: not-allowed;
763
797
  pointer-events: none;
798
+ box-shadow: none;
799
+ transform: none;
800
+ }
764
801
 
765
- outline: 2px solid rgba(255, 255, 255, 0.9);
802
+ button.primary,
803
+ .primary {
804
+ background: var(--color-primary, #001D68);
805
+ border-color: var(--color-primary, #001D68);
806
+ color: #fff;
807
+ }
766
808
 
767
- box-shadow:
768
- 0 0 0 9999px rgba(0, 0, 0, 0.35);
809
+ button.primary:hover:not([disabled]),
810
+ .primary:hover:not([disabled]) {
811
+ background: var(--color-secondary, #2594E3);
812
+ box-shadow: 0 6px 14px rgba(0, 29, 104, 0.2);
769
813
  }
770
814
 
771
815
  .placeholder {
@@ -790,8 +834,6 @@ const mr = Ki`
790
834
  aspect-ratio: 1/1;
791
835
  }
792
836
 
793
-
794
-
795
837
  .nav {
796
838
  display: flex;
797
839
  flex-wrap: wrap;
@@ -824,6 +866,12 @@ const mr = Ki`
824
866
  gap: 12px;
825
867
  }
826
868
 
869
+ .confirmation {
870
+ display: flex;
871
+ gap: 0.5rem;
872
+ padding: 1rem;
873
+ }
874
+
827
875
  @media (max-width: 640px) {
828
876
  .layout {
829
877
  flex-direction: column;
@@ -846,7 +894,6 @@ const mr = Ki`
846
894
  width: 100%;
847
895
  }
848
896
 
849
- /* Make action buttons full-width for easy tapping */
850
897
  .nav button,
851
898
  .confirmation button {
852
899
  width: 100%;
@@ -863,23 +910,22 @@ const mr = Ki`
863
910
  .nav-spacer {
864
911
  display: none;
865
912
  }
866
-
913
+
867
914
  .zoom[type="range"]::-moz-range-track,
868
915
  .zoom[type="range"]::-webkit-slider-runnable-track {
869
- height: 30px;
870
- border-radius: 32px;
916
+ height: 30px;
917
+ border-radius: 32px;
871
918
  }
872
919
 
873
920
  input[type="range"]::-webkit-slider-thumb {
874
921
  width: 48px;
875
922
  height: 48px;
876
- margin-top: -4px; /* centers thumb over 8px track */
923
+ margin-top: -4px;
877
924
  }
878
925
 
879
926
  input[type="range"]::-moz-range-thumb {
880
927
  width: 48px;
881
928
  height: 48px;
882
- cursor: pointer;
883
929
  }
884
930
  }
885
931
  `, vr = yt`
@@ -1072,21 +1118,21 @@ function Lr() {
1072
1118
  return _;
1073
1119
  }
1074
1120
  function W(Ie) {
1075
- for (var _ = "0123456789abcdef", O = "", se = Ie.length * 4, de, Ne = 0; Ne < se; Ne += 1)
1076
- de = Ie[Ne >> 2] >> (3 - Ne % 4) * 8, O += _.charAt(de >> 4 & 15) + _.charAt(de & 15);
1121
+ for (var _ = "0123456789abcdef", O = "", se = Ie.length * 4, de, Fe = 0; Fe < se; Fe += 1)
1122
+ de = Ie[Fe >> 2] >> (3 - Fe % 4) * 8, O += _.charAt(de >> 4 & 15) + _.charAt(de & 15);
1077
1123
  return O;
1078
1124
  }
1079
1125
  function Ee(Ie, _) {
1080
- var O, se, de, Ne;
1081
- return O = (Ie.lowOrder & 65535) + (_.lowOrder & 65535), se = (Ie.lowOrder >>> 16) + (_.lowOrder >>> 16) + (O >>> 16), de = (se & 65535) << 16 | O & 65535, O = (Ie.highOrder & 65535) + (_.highOrder & 65535) + (se >>> 16), se = (Ie.highOrder >>> 16) + (_.highOrder >>> 16) + (O >>> 16), Ne = (se & 65535) << 16 | O & 65535, new v(Ne, de);
1126
+ var O, se, de, Fe;
1127
+ return O = (Ie.lowOrder & 65535) + (_.lowOrder & 65535), se = (Ie.lowOrder >>> 16) + (_.lowOrder >>> 16) + (O >>> 16), de = (se & 65535) << 16 | O & 65535, O = (Ie.highOrder & 65535) + (_.highOrder & 65535) + (se >>> 16), se = (Ie.highOrder >>> 16) + (_.highOrder >>> 16) + (O >>> 16), Fe = (se & 65535) << 16 | O & 65535, new v(Fe, de);
1082
1128
  }
1083
1129
  function Ae(Ie, _, O, se) {
1084
- var de, Ne, He, Ke;
1085
- return de = (Ie.lowOrder & 65535) + (_.lowOrder & 65535) + (O.lowOrder & 65535) + (se.lowOrder & 65535), Ne = (Ie.lowOrder >>> 16) + (_.lowOrder >>> 16) + (O.lowOrder >>> 16) + (se.lowOrder >>> 16) + (de >>> 16), He = (Ne & 65535) << 16 | de & 65535, de = (Ie.highOrder & 65535) + (_.highOrder & 65535) + (O.highOrder & 65535) + (se.highOrder & 65535) + (Ne >>> 16), Ne = (Ie.highOrder >>> 16) + (_.highOrder >>> 16) + (O.highOrder >>> 16) + (se.highOrder >>> 16) + (de >>> 16), Ke = (Ne & 65535) << 16 | de & 65535, new v(Ke, He);
1130
+ var de, Fe, He, Ke;
1131
+ return de = (Ie.lowOrder & 65535) + (_.lowOrder & 65535) + (O.lowOrder & 65535) + (se.lowOrder & 65535), Fe = (Ie.lowOrder >>> 16) + (_.lowOrder >>> 16) + (O.lowOrder >>> 16) + (se.lowOrder >>> 16) + (de >>> 16), He = (Fe & 65535) << 16 | de & 65535, de = (Ie.highOrder & 65535) + (_.highOrder & 65535) + (O.highOrder & 65535) + (se.highOrder & 65535) + (Fe >>> 16), Fe = (Ie.highOrder >>> 16) + (_.highOrder >>> 16) + (O.highOrder >>> 16) + (se.highOrder >>> 16) + (de >>> 16), Ke = (Fe & 65535) << 16 | de & 65535, new v(Ke, He);
1086
1132
  }
1087
1133
  function $e(Ie, _, O, se, de) {
1088
- var Ne, He, Ke, ze;
1089
- return Ne = (Ie.lowOrder & 65535) + (_.lowOrder & 65535) + (O.lowOrder & 65535) + (se.lowOrder & 65535) + (de.lowOrder & 65535), He = (Ie.lowOrder >>> 16) + (_.lowOrder >>> 16) + (O.lowOrder >>> 16) + (se.lowOrder >>> 16) + (de.lowOrder >>> 16) + (Ne >>> 16), Ke = (He & 65535) << 16 | Ne & 65535, Ne = (Ie.highOrder & 65535) + (_.highOrder & 65535) + (O.highOrder & 65535) + (se.highOrder & 65535) + (de.highOrder & 65535) + (He >>> 16), He = (Ie.highOrder >>> 16) + (_.highOrder >>> 16) + (O.highOrder >>> 16) + (se.highOrder >>> 16) + (de.highOrder >>> 16) + (Ne >>> 16), ze = (He & 65535) << 16 | Ne & 65535, new v(ze, Ke);
1134
+ var Fe, He, Ke, ze;
1135
+ return Fe = (Ie.lowOrder & 65535) + (_.lowOrder & 65535) + (O.lowOrder & 65535) + (se.lowOrder & 65535) + (de.lowOrder & 65535), He = (Ie.lowOrder >>> 16) + (_.lowOrder >>> 16) + (O.lowOrder >>> 16) + (se.lowOrder >>> 16) + (de.lowOrder >>> 16) + (Fe >>> 16), Ke = (He & 65535) << 16 | Fe & 65535, Fe = (Ie.highOrder & 65535) + (_.highOrder & 65535) + (O.highOrder & 65535) + (se.highOrder & 65535) + (de.highOrder & 65535) + (He >>> 16), He = (Ie.highOrder >>> 16) + (_.highOrder >>> 16) + (O.highOrder >>> 16) + (se.highOrder >>> 16) + (de.highOrder >>> 16) + (Fe >>> 16), ze = (He & 65535) << 16 | Fe & 65535, new v(ze, Ke);
1090
1136
  }
1091
1137
  function Me(Ie, _, O) {
1092
1138
  return new v(
@@ -1123,7 +1169,7 @@ function Lr() {
1123
1169
  _.lowOrder ^ O.lowOrder ^ se.lowOrder
1124
1170
  );
1125
1171
  }
1126
- function Fe(Ie) {
1172
+ function Ne(Ie) {
1127
1173
  var _ = je(Ie, 1), O = je(Ie, 8), se = Ge(Ie, 7);
1128
1174
  return new v(
1129
1175
  _.highOrder ^ O.highOrder ^ se.highOrder,
@@ -1151,7 +1197,7 @@ function Lr() {
1151
1197
  for (var ae = 0; ae < we.length; ae += 32) {
1152
1198
  V = X[0], Ce = X[1], ce = X[2], he = X[3], re = X[4], De = X[5], Le = X[6], Ue = X[7];
1153
1199
  for (var Te = 0; Te < 80; Te++)
1154
- Te < 16 ? ge[Te] = new v(we[Te * 2 + ae], we[Te * 2 + ae + 1]) : ge[Te] = Ae(Xe(ge[Te - 2]), ge[Te - 7], Fe(ge[Te - 15]), ge[Te - 16]), Be = $e(Ue, et(re), Ze(re, De, Le), z[Te], ge[Te]), ue = Ee(rt(V), Me(V, Ce, ce)), Ue = Le, Le = De, De = re, re = Ee(he, Be), he = ce, ce = Ce, Ce = V, V = Ee(Be, ue);
1200
+ Te < 16 ? ge[Te] = new v(we[Te * 2 + ae], we[Te * 2 + ae + 1]) : ge[Te] = Ae(Xe(ge[Te - 2]), ge[Te - 7], Ne(ge[Te - 15]), ge[Te - 16]), Be = $e(Ue, et(re), Ze(re, De, Le), z[Te], ge[Te]), ue = Ee(rt(V), Me(V, Ce, ce)), Ue = Le, Le = De, De = re, re = Ee(he, Be), he = ce, ce = Ce, Ce = V, V = Ee(Be, ue);
1155
1201
  X[0] = Ee(V, X[0]), X[1] = Ee(Ce, X[1]), X[2] = Ee(ce, X[2]), X[3] = Ee(he, X[3]), X[4] = Ee(re, X[4]), X[5] = Ee(De, X[5]), X[6] = Ee(Le, X[6]), X[7] = Ee(Ue, X[7]);
1156
1202
  }
1157
1203
  for (var tt = [], ae = 0; ae < X.length; ae++)
@@ -1203,9 +1249,9 @@ function Lr() {
1203
1249
  return Object.prototype.hasOwnProperty.call(j, $);
1204
1250
  };
1205
1251
  })();
1206
- var N = {};
1252
+ var F = {};
1207
1253
  (function() {
1208
- g.d(N, {
1254
+ g.d(F, {
1209
1255
  default: function() {
1210
1256
  return (
1211
1257
  /* binding */
@@ -1688,10 +1734,10 @@ function Lr() {
1688
1734
  var J = Q.call(this), U = this.options;
1689
1735
  if (u = E.call(this, u), u === "")
1690
1736
  return "";
1691
- var F = null;
1692
- if (u[0] && (U.style === "percent" ? F = parseFloat(u[0]) / 100 : F = parseFloat(u[0] + ".1")), (u[0] === "-" || u[0] === "-00") && !u[1] && L && L.inputType == "deleteContentBackward")
1737
+ var N = null;
1738
+ if (u[0] && (U.style === "percent" ? N = parseFloat(u[0]) / 100 : N = parseFloat(u[0] + ".1")), (u[0] === "-" || u[0] === "-00") && !u[1] && L && L.inputType == "deleteContentBackward")
1693
1739
  return "";
1694
- var le = new Intl.NumberFormat(this.locale, U).format(F);
1740
+ var le = new Intl.NumberFormat(this.locale, U).format(N);
1695
1741
  if (le = le.split(J), U.style === "percent" && le[0].indexOf("%") !== -1 && (le[0] = le[0].replace("%", ""), le[2] = "%"), typeof le[1] < "u") {
1696
1742
  var I = le[1].replace(/[0-9]*/g, "");
1697
1743
  I && (le[2] = I);
@@ -1700,7 +1746,7 @@ function Lr() {
1700
1746
  }, o = function(u, L) {
1701
1747
  var J = b.call(u);
1702
1748
  if (J) {
1703
- var U = n.call(this, J, L), F = U.length - J.length, le = t.call(u) + F;
1749
+ var U = n.call(this, J, L), N = U.length - J.length, le = t.call(u) + N;
1704
1750
  b.call(u, U, le, !0);
1705
1751
  }
1706
1752
  }, i = function(u) {
@@ -1711,8 +1757,8 @@ function Lr() {
1711
1757
  if (this.tagName == "DIV") {
1712
1758
  var J = 0, U = window.getSelection();
1713
1759
  if (U && U.rangeCount !== 0) {
1714
- var F = U.getRangeAt(0), le = F.cloneRange();
1715
- le.selectNodeContents(this), le.setEnd(F.endContainer, F.endOffset), J = le.toString().length;
1760
+ var N = U.getRangeAt(0), le = N.cloneRange();
1761
+ le.selectNodeContents(this), le.setEnd(N.endContainer, N.endOffset), J = le.toString().length;
1716
1762
  }
1717
1763
  return J;
1718
1764
  } else
@@ -1726,8 +1772,8 @@ function Lr() {
1726
1772
  }
1727
1773
  if (u > I.length && (u = I.length), u)
1728
1774
  if (this.tagName == "DIV") {
1729
- var U = window.getSelection(), F = document.createRange();
1730
- this.childNodes[0] && (F.setStart(this.childNodes[0], u), U.removeAllRanges(), U.addRange(F));
1775
+ var U = window.getSelection(), N = document.createRange();
1776
+ this.childNodes[0] && (N.setStart(this.childNodes[0], u), U.removeAllRanges(), U.addRange(N));
1731
1777
  } else
1732
1778
  this.selectionStart = u, this.selectionEnd = u;
1733
1779
  }
@@ -1770,8 +1816,8 @@ function Lr() {
1770
1816
  this.values[this.index] += u;
1771
1817
  return;
1772
1818
  }
1773
- for (var J = 0, U = 0, F = (this.values[this.index] + u).toLowerCase(), le = 0; le < L.length; le++)
1774
- L[le].toLowerCase().indexOf(F) == 0 && (J = le, U++);
1819
+ for (var J = 0, U = 0, N = (this.values[this.index] + u).toLowerCase(), le = 0; le < L.length; le++)
1820
+ L[le].toLowerCase().indexOf(N) == 0 && (J = le, U++);
1775
1821
  if (U > 1)
1776
1822
  this.values[this.index] += u;
1777
1823
  else if (U == 1) {
@@ -1931,17 +1977,17 @@ function Lr() {
1931
1977
  },
1932
1978
  "#(.{1})##0?(.{1}0+)?( ?;(.*)?)?": function(u) {
1933
1979
  k["0{1}(.{1}0+)?"].call(this, u);
1934
- var L = Q.call(this), J = this.tokens[this.index].substr(1, 1), U = this.values[this.index][0] === "-", F = E.call(this, this.values[this.index], L);
1935
- if (F !== "") {
1936
- var le = F[0].match(/[0-9]/g);
1980
+ var L = Q.call(this), J = this.tokens[this.index].substr(1, 1), U = this.values[this.index][0] === "-", N = E.call(this, this.values[this.index], L);
1981
+ if (N !== "") {
1982
+ var le = N[0].match(/[0-9]/g);
1937
1983
  if (le) {
1938
1984
  le = le.join("");
1939
1985
  for (var I = [], D = 0, S = le.length - 1; S >= 0; S--)
1940
1986
  I.push(le[S]), D++, D % 3 || I.push(J);
1941
- I = I.reverse(), F[0] = I.join(""), F[0].substr(0, 1) == J && (F[0] = F[0].substr(1));
1987
+ I = I.reverse(), N[0] = I.join(""), N[0].substr(0, 1) == J && (N[0] = N[0].substr(1));
1942
1988
  } else
1943
- F[0] = "";
1944
- this.values[this.index] = F.join(L), U && (this.values[this.index] = "-" + this.values[this.index]);
1989
+ N[0] = "";
1990
+ this.values[this.index] = N.join(L), U && (this.values[this.index] = "-" + this.values[this.index]);
1945
1991
  }
1946
1992
  },
1947
1993
  0: function(u) {
@@ -1980,10 +2026,10 @@ function Lr() {
1980
2026
  var L = ["currency", "percentage", "scientific", "numeric", "general"];
1981
2027
  else var L = Object.keys(s);
1982
2028
  for (var J = 0; J < L.length; J++)
1983
- for (var U = L[J], F = 0; F < s[U].length; F++) {
1984
- var le = new RegExp(s[U][F], "gi"), I = u.match(le);
2029
+ for (var U = L[J], N = 0; N < s[U].length; N++) {
2030
+ var le = new RegExp(s[U][N], "gi"), I = u.match(le);
1985
2031
  if (I)
1986
- return { type: U, method: s[U][F] };
2032
+ return { type: U, method: s[U][N] };
1987
2033
  }
1988
2034
  }, H = function(u) {
1989
2035
  for (var L = [], J = 0; J < u.length; J++) {
@@ -1998,8 +2044,8 @@ function Lr() {
1998
2044
  if (L)
1999
2045
  var J = L.type;
2000
2046
  if (J) {
2001
- for (var U = 0, F = K.call(this, u), le = 0; le < F.length; le++)
2002
- L = oe.call(this, F[le]), L && P(L.type) && U++;
2047
+ for (var U = 0, N = K.call(this, u), le = 0; le < N.length; le++)
2048
+ L = oe.call(this, N[le]), L && P(L.type) && U++;
2003
2049
  U > 1 && (J = "general");
2004
2050
  }
2005
2051
  return J;
@@ -2008,12 +2054,12 @@ function Lr() {
2008
2054
  }, M = function(u) {
2009
2055
  return ("" + +u).replace(
2010
2056
  /(-?)(\d*)\.?(\d*)e([+-]\d+)/,
2011
- function(L, J, U, F, le) {
2012
- return le < 0 ? J + "0." + Array(1 - le - U.length).join(0) + U + F : J + U + F + Array(le - F.length + 1).join(0);
2057
+ function(L, J, U, N, le) {
2058
+ return le < 0 ? J + "0." + Array(1 - le - U.length).join(0) + U + N : J + U + N + Array(le - N.length + 1).join(0);
2013
2059
  }
2014
2060
  );
2015
2061
  }, Y = function(u, L, J) {
2016
- var U = null, F = {
2062
+ var U = null, N = {
2017
2063
  // Element
2018
2064
  input: null,
2019
2065
  // Current value
@@ -2032,71 +2078,71 @@ function Lr() {
2032
2078
  number: 0
2033
2079
  };
2034
2080
  if (typeof u == "object") {
2035
- if (F.input = u.target, F.value = b.call(u.target), F.caret = t.call(u.target), (U = u.target.getAttribute("data-mask")) && (F.mask = U), (U = u.target.getAttribute("data-type")) && (F.type = U), u.target.mask ? (u.target.mask.options && (F.options = u.target.mask.options), u.target.mask.locale && (F.locale = u.target.mask.locale)) : (U = u.target.getAttribute("data-locale")) && (F.locale = U, F.mask && (F.options.style = F.mask)), u.target.attributes && u.target.attributes.length)
2081
+ if (N.input = u.target, N.value = b.call(u.target), N.caret = t.call(u.target), (U = u.target.getAttribute("data-mask")) && (N.mask = U), (U = u.target.getAttribute("data-type")) && (N.type = U), u.target.mask ? (u.target.mask.options && (N.options = u.target.mask.options), u.target.mask.locale && (N.locale = u.target.mask.locale)) : (U = u.target.getAttribute("data-locale")) && (N.locale = U, N.mask && (N.options.style = N.mask)), u.target.attributes && u.target.attributes.length)
2036
2082
  for (var le = 0; le < u.target.attributes.length; le++) {
2037
2083
  var I = u.target.attributes[le].name, D = u.target.attributes[le].value;
2038
- I.substr(0, 4) == "data" && (F.options[I.substr(5)] = D);
2084
+ I.substr(0, 4) == "data" && (N.options[I.substr(5)] = D);
2039
2085
  }
2040
2086
  } else {
2041
2087
  if (typeof L == "string")
2042
- F.mask = L;
2088
+ N.mask = L;
2043
2089
  else
2044
2090
  for (var I = Object.keys(L), le = 0; le < I.length; le++)
2045
- F[I[le]] = L[I[le]];
2046
- typeof u == "number" && (Q.call(F, F.mask), u = ("" + u).replace(".", F.options.decimal)), F.value = u, F.input && (b.call(F.input, u), V.focus(F.input), F.caret = t.call(F.input));
2091
+ N[I[le]] = L[I[le]];
2092
+ typeof u == "number" && (Q.call(N, N.mask), u = ("" + u).replace(".", N.options.decimal)), N.value = u, N.input && (b.call(N.input, u), V.focus(N.input), N.caret = t.call(N.input));
2047
2093
  }
2048
- if (!m(F.value) && (F.mask || F.locale)) {
2049
- if (F.mask) {
2050
- if (F.mask = F.mask.replace(new RegExp(/\[h]/), "|h|"), F.mask = F.mask.replace(new RegExp(/\[.*?\]/), ""), F.mask = F.mask.replace(new RegExp(/\|h\|/), "[h]"), F.mask.indexOf(";") !== -1) {
2051
- var U = F.mask.split(";");
2052
- F.mask = U[0];
2094
+ if (!m(N.value) && (N.mask || N.locale)) {
2095
+ if (N.mask) {
2096
+ if (N.mask = N.mask.replace(new RegExp(/\[h]/), "|h|"), N.mask = N.mask.replace(new RegExp(/\[.*?\]/), ""), N.mask = N.mask.replace(new RegExp(/\|h\|/), "[h]"), N.mask.indexOf(";") !== -1) {
2097
+ var U = N.mask.split(";");
2098
+ N.mask = U[0];
2053
2099
  }
2054
- if (F.mask.indexOf("##") !== -1) {
2055
- var S = F.mask.split(";");
2056
- S[0] && (typeof u == "object" && (S[0] = S[0].replace(new RegExp(/_\)/g), ""), S[0] = S[0].replace(new RegExp(/_\(/g), "")), S[0] = S[0].replace("*", " "), S[0] = S[0].replace(new RegExp(/_-/g), ""), S[0] = S[0].replace(new RegExp(/_/g), ""), S[0] = S[0].replace(new RegExp(/"/g), ""), S[0] = S[0].replace("##0.###", "##0.000"), S[0] = S[0].replace("##0.##", "##0.00"), S[0] = S[0].replace("##0.#", "##0.0"), S[0] = S[0].replace("##0,###", "##0,000"), S[0] = S[0].replace("##0,##", "##0,00"), S[0] = S[0].replace("##0,#", "##0,0")), F.mask = S[0];
2100
+ if (N.mask.indexOf("##") !== -1) {
2101
+ var S = N.mask.split(";");
2102
+ S[0] && (typeof u == "object" && (S[0] = S[0].replace(new RegExp(/_\)/g), ""), S[0] = S[0].replace(new RegExp(/_\(/g), "")), S[0] = S[0].replace("*", " "), S[0] = S[0].replace(new RegExp(/_-/g), ""), S[0] = S[0].replace(new RegExp(/_/g), ""), S[0] = S[0].replace(new RegExp(/"/g), ""), S[0] = S[0].replace("##0.###", "##0.000"), S[0] = S[0].replace("##0.##", "##0.00"), S[0] = S[0].replace("##0.#", "##0.0"), S[0] = S[0].replace("##0,###", "##0,000"), S[0] = S[0].replace("##0,##", "##0,00"), S[0] = S[0].replace("##0,#", "##0,0")), N.mask = S[0];
2057
2103
  }
2058
- if (F.mask.indexOf("\\") !== -1) {
2059
- var S = F.mask.split(";");
2060
- S[0] = S[0].replace(new RegExp(/\\/g), ""), F.mask = S[0];
2104
+ if (N.mask.indexOf("\\") !== -1) {
2105
+ var S = N.mask.split(";");
2106
+ S[0] = S[0].replace(new RegExp(/\\/g), ""), N.mask = S[0];
2061
2107
  }
2062
- F.type || (F.type = ne.call(F, F.mask)), F.tokens = K.call(F, F.mask);
2108
+ N.type || (N.type = ne.call(N, N.mask)), N.tokens = K.call(N, N.mask);
2063
2109
  }
2064
2110
  if (typeof u != "object" || !u.inputType || !u.inputType.indexOf("insert") || !u.inputType.indexOf("delete"))
2065
- if (F.locale)
2066
- if (F.input)
2067
- o.call(F, F.input, u);
2111
+ if (N.locale)
2112
+ if (N.input)
2113
+ o.call(N, N.input, u);
2068
2114
  else
2069
- var q = n.call(F, F.value);
2115
+ var q = n.call(N, N.value);
2070
2116
  else {
2071
- for (F.methods = H.call(F, F.tokens), F.event = u; F.position < F.value.length && typeof F.tokens[F.index] < "u"; )
2072
- pe.call(F);
2073
- var q = F.values.join("");
2074
- if (P(F.type) && q !== "") {
2075
- for (; typeof F.tokens[F.index] < "u"; ) {
2076
- var U = oe.call(F, F.tokens[F.index]);
2077
- U && U.type == "general" && (F.values[F.index] = F.tokens[F.index]), F.index++;
2117
+ for (N.methods = H.call(N, N.tokens), N.event = u; N.position < N.value.length && typeof N.tokens[N.index] < "u"; )
2118
+ pe.call(N);
2119
+ var q = N.values.join("");
2120
+ if (P(N.type) && q !== "") {
2121
+ for (; typeof N.tokens[N.index] < "u"; ) {
2122
+ var U = oe.call(N, N.tokens[N.index]);
2123
+ U && U.type == "general" && (N.values[N.index] = N.tokens[N.index]), N.index++;
2078
2124
  }
2079
2125
  var ve = !0;
2080
2126
  } else
2081
2127
  var ve = !1;
2082
- if (q = F.values.join(""), F.input) {
2083
- if (U = q.length - F.value.length, U > 0)
2084
- var Re = F.caret + U;
2128
+ if (q = N.values.join(""), N.input) {
2129
+ if (U = q.length - N.value.length, U > 0)
2130
+ var Re = N.caret + U;
2085
2131
  else
2086
- var Re = F.caret;
2087
- b.call(F.input, q, Re, ve);
2132
+ var Re = N.caret;
2133
+ b.call(N.input, q, Re, ve);
2088
2134
  }
2089
2135
  }
2090
- if (F.input) {
2136
+ if (N.input) {
2091
2137
  var Pe = null;
2092
- if (P(F.type)) {
2093
- let qe = b.call(F.input);
2094
- F.number = i.call(F, qe), F.type == "percentage" && ("" + qe).indexOf("%") !== -1 ? Pe = Y.adjustPrecision(F.number / 100) : Pe = F.number;
2095
- } else F.type == "datetime" && (Pe = a.call(F), F.date[0] && F.date[1] && F.date[2] && F.input.setAttribute("data-completed", !0));
2096
- Pe && F.input.setAttribute("data-value", Pe);
2138
+ if (P(N.type)) {
2139
+ let qe = b.call(N.input);
2140
+ N.number = i.call(N, qe), N.type == "percentage" && ("" + qe).indexOf("%") !== -1 ? Pe = Y.adjustPrecision(N.number / 100) : Pe = N.number;
2141
+ } else N.type == "datetime" && (Pe = a.call(N), N.date[0] && N.date[1] && N.date[2] && N.input.setAttribute("data-completed", !0));
2142
+ Pe && N.input.setAttribute("data-value", Pe);
2097
2143
  }
2098
2144
  if (q !== void 0)
2099
- return J ? F : q;
2145
+ return J ? N : q;
2100
2146
  }
2101
2147
  };
2102
2148
  return Y.adjustPrecision = function(u) {
@@ -2106,8 +2152,8 @@ function Lr() {
2106
2152
  let J = 0;
2107
2153
  const U = L[1][L[1].length - 2];
2108
2154
  if (U == 0 || U == 9) {
2109
- for (let F = L[1].length - 2; F > 0; F--)
2110
- if (J >= 0 && L[1][F] == U) {
2155
+ for (let N = L[1].length - 2; N > 0; N--)
2156
+ if (J >= 0 && L[1][N] == U) {
2111
2157
  if (J++, J > 6)
2112
2158
  break;
2113
2159
  } else {
@@ -2138,32 +2184,32 @@ function Lr() {
2138
2184
  L.mask = L.mask.replace(new RegExp(/\[h]/), "|h|"), L.mask = L.mask.replace(new RegExp(/\[.*?\]/), ""), L.mask = L.mask.replace(new RegExp(/\|h\|/), "[h]");
2139
2185
  }
2140
2186
  Q.call(L, L.mask);
2141
- var F = null, le = null;
2142
- if (L.type == "percent" || L.options.style == "percent" ? F = "percentage" : L.mask && (F = ne.call(L, L.mask)), F === "text") {
2187
+ var N = null, le = null;
2188
+ if (L.type == "percent" || L.options.style == "percent" ? N = "percentage" : L.mask && (N = ne.call(L, L.mask)), N === "text") {
2143
2189
  var I = {};
2144
2190
  le = u;
2145
- } else if (F === "general") {
2191
+ } else if (N === "general") {
2146
2192
  var I = Y(u, L, !0);
2147
2193
  le = u;
2148
- } else if (F === "datetime") {
2194
+ } else if (N === "datetime") {
2149
2195
  u instanceof Date && (u = Y.getDateString(u, L.mask));
2150
2196
  var I = Y(u, L, !0);
2151
2197
  V.isNumeric(u) ? le = u : le = r.call(I);
2152
- } else if (F === "scientific") {
2198
+ } else if (N === "scientific") {
2153
2199
  le = u, typeof u == "string" && (le = Number(le));
2154
2200
  var I = L;
2155
2201
  } else {
2156
- le = i.call(L, u), F === "percentage" && ("" + u).indexOf("%") !== -1 && (le /= 100);
2202
+ le = i.call(L, u), N === "percentage" && ("" + u).indexOf("%") !== -1 && (le /= 100);
2157
2203
  var I = L;
2158
2204
  }
2159
- return I.value = le, !I.type && F && (I.type = F), J ? I : le;
2205
+ return I.value = le, !I.type && N && (I.type = N), J ? I : le;
2160
2206
  }, Y.render = function(u, L, J, U) {
2161
2207
  if (e(u) || typeof L != "object")
2162
2208
  return u;
2163
2209
  if (L = Object.assign({}, L), L.options || (L.options = {}), !L.mask && L.format && (L.mask = L.format), L.mask) {
2164
2210
  if (L.mask.indexOf(";") !== -1) {
2165
- var F = L.mask.split(";");
2166
- J || (F[0] = F[0].replace(new RegExp(/_\)/g), ""), F[0] = F[0].replace(new RegExp(/_\(/g), "")), L.mask = F[0];
2211
+ var N = L.mask.split(";");
2212
+ J || (N[0] = N[0].replace(new RegExp(/_\)/g), ""), N[0] = N[0].replace(new RegExp(/_\(/g), "")), L.mask = N[0];
2167
2213
  }
2168
2214
  L.mask = L.mask.replace(new RegExp(/\[h]/), "|h|"), L.mask = L.mask.replace(new RegExp(/\[.*?\]/), ""), L.mask = L.mask.replace(new RegExp(/\|h\|/), "[h]");
2169
2215
  }
@@ -2171,28 +2217,28 @@ function Lr() {
2171
2217
  L.type == "percent" || L.options.style == "percent" ? le = "percentage" : L.mask ? le = ne.call(L, L.mask) : u instanceof Date && (le = "datetime");
2172
2218
  var I = !1;
2173
2219
  if (le == "datetime" || L.type == "calendar") {
2174
- var F = Y.getDateString(u, L.mask);
2175
- F && (u = F), L.mask && J && (I = !0);
2220
+ var N = Y.getDateString(u, L.mask);
2221
+ N && (u = N), L.mask && J && (I = !0);
2176
2222
  } else if (le === "text")
2177
2223
  typeof u == "number" && (u = u.toString());
2178
2224
  else if (typeof u == "string" && f.isNumeric(u) && (u = Number(u)), le === "percentage" && (u = Y.adjustPrecision(u * 100)), typeof u == "number") {
2179
- var F = null;
2225
+ var N = null;
2180
2226
  if (L.mask && J) {
2181
2227
  var D = Q.call(L, L.mask);
2182
2228
  if (le === "scientific")
2183
2229
  if (L.mask.indexOf(D) !== -1) {
2184
2230
  let Ve = L.mask.split("E");
2185
- Ve = Ve[0].split(D), Ve = "" + Ve[1].match(/[0-9]+/g), Ve = Ve.length, F = u.toExponential(Ve);
2231
+ Ve = Ve[0].split(D), Ve = "" + Ve[1].match(/[0-9]+/g), Ve = Ve.length, N = u.toExponential(Ve);
2186
2232
  } else
2187
- F = u.toExponential(0);
2233
+ N = u.toExponential(0);
2188
2234
  else {
2189
2235
  if (L.mask.indexOf(D) !== -1) {
2190
- D = L.mask.split(D), D = "" + D[1].match(/[0-9]+/g), D = D.length, F = u.toFixed(D);
2236
+ D = L.mask.split(D), D = "" + D[1].match(/[0-9]+/g), D = D.length, N = u.toFixed(D);
2191
2237
  let Ve = u.toString().split("."), me = Ve[1];
2192
- me && me.length > D && me[me.length - 1] === "5" && (F = parseFloat(Ve[0] + "." + me + "1").toFixed(D));
2238
+ me && me.length > D && me[me.length - 1] === "5" && (N = parseFloat(Ve[0] + "." + me + "1").toFixed(D));
2193
2239
  } else
2194
- F = u.toFixed(0);
2195
- ("" + F).indexOf("e") !== -1 && (F = M(F));
2240
+ N = u.toFixed(0);
2241
+ ("" + N).indexOf("e") !== -1 && (N = M(N));
2196
2242
  }
2197
2243
  } else if (L.locale && J) {
2198
2244
  var D = ("" + u).split(".");
@@ -2203,12 +2249,12 @@ function Lr() {
2203
2249
  for (var S = 0; S < L.options.minimumFractionDigits - q; S++)
2204
2250
  D[1] += "0";
2205
2251
  }
2206
- D[1].length ? F = D.join(".") : F = D[0];
2252
+ D[1].length ? N = D.join(".") : N = D[0];
2207
2253
  var q = D[1].length;
2208
- L.options && L.options.maximumFractionDigits < q && (F = parseFloat(F).toFixed(L.options.maximumFractionDigits));
2254
+ L.options && L.options.maximumFractionDigits < q && (N = parseFloat(N).toFixed(L.options.maximumFractionDigits));
2209
2255
  } else
2210
- F = M(u);
2211
- F !== null && (u = F, Q.call(L, L.mask), L.options.decimal && (u = u.replace(".", L.options.decimal)));
2256
+ N = M(u);
2257
+ N !== null && (u = N, Q.call(L, L.mask), L.options.decimal && (u = u.replace(".", L.options.decimal)));
2212
2258
  } else
2213
2259
  L.mask && J && (I = !0);
2214
2260
  if (I) {
@@ -2249,8 +2295,8 @@ function Lr() {
2249
2295
  var U = new Date(Math.round((u - 25569) * 86400 * 1e3));
2250
2296
  return U.getFullYear() + "-" + V.two(U.getMonth()) + "-" + V.two(U.getDate()) + " 00:00:00";
2251
2297
  }
2252
- var F = !1;
2253
- return J.values && J.values.length === J.tokens.length && J.values[J.values.length - 1].length >= J.tokens[J.tokens.length - 1].length && (F = !0), J.date[0] && J.date[1] && (J.date[2] || F) ? (J.date[2] || (J.date[2] = 1), J.date[0] + "-" + V.two(J.date[1]) + "-" + V.two(J.date[2]) + " " + V.two(J.date[3]) + ":" + V.two(J.date[4]) + ":" + V.two(J.date[5])) : "";
2298
+ var N = !1;
2299
+ return J.values && J.values.length === J.tokens.length && J.values[J.values.length - 1].length >= J.tokens[J.tokens.length - 1].length && (N = !0), J.date[0] && J.date[1] && (J.date[2] || N) ? (J.date[2] || (J.date[2] = 1), J.date[0] + "-" + V.two(J.date[1]) + "-" + V.two(J.date[2]) + " " + V.two(J.date[3]) + ":" + V.two(J.date[4]) + ":" + V.two(J.date[5])) : "";
2254
2300
  }, Y.getDateString = function(u, L) {
2255
2301
  if (!L)
2256
2302
  var L = {};
@@ -2264,13 +2310,13 @@ function Lr() {
2264
2310
  if (J || (J = "YYYY-MM-DD"), J.indexOf("[h]") >= 0) {
2265
2311
  var U = 0;
2266
2312
  if (u && V.isNumeric(u) && (U = parseFloat(24 * Number(u)), J.indexOf("mm") >= 0)) {
2267
- var F = ("" + U).split(".");
2268
- if (F[1]) {
2269
- var le = 60 * parseFloat("0." + F[1]);
2313
+ var N = ("" + U).split(".");
2314
+ if (N[1]) {
2315
+ var le = 60 * parseFloat("0." + N[1]);
2270
2316
  le = parseFloat(le.toFixed(2));
2271
2317
  } else
2272
2318
  var le = 0;
2273
- U = parseInt(F[0]) + ":" + V.two(le);
2319
+ U = parseInt(N[0]) + ":" + V.two(le);
2274
2320
  }
2275
2321
  return U;
2276
2322
  }
@@ -2283,11 +2329,11 @@ function Lr() {
2283
2329
  if (u) {
2284
2330
  var le = "" + u, Re = le.indexOf("T") !== -1 ? "T" : " ";
2285
2331
  le = le.split(Re);
2286
- var F = 0, Pe = 0, qe = 0;
2287
- le[1] && (F = le[1].split(":"), Pe = F[1] ? F[1] : 0, qe = F[2] ? F[2] : 0, F = F[0] ? F[0] : 0), le = le[0].split("-");
2332
+ var N = 0, Pe = 0, qe = 0;
2333
+ le[1] && (N = le[1].split(":"), Pe = N[1] ? N[1] : 0, qe = N[2] ? N[2] : 0, N = N[0] ? N[0] : 0), le = le[0].split("-");
2288
2334
  let Je = new Date(le[0], le[1], 0).getDate();
2289
2335
  if (le[0] && le[1] && le[2] && le[0] > 0 && le[1] > 0 && le[1] < 13 && le[2] > 0 && le[2] <= Je) {
2290
- ve.data = [le[0], le[1], le[2], F, Pe, qe], ve.value = [];
2336
+ ve.data = [le[0], le[1], le[2], N, Pe, qe], ve.value = [];
2291
2337
  for (var Ve = new Date(ve.data[0], ve.data[1] - 1, ve.data[2], ve.data[3], ve.data[4], ve.data[5]), me = function(ct) {
2292
2338
  var ot = this.tokens[ct], at = ot.toUpperCase(), st = null;
2293
2339
  at === "YYYY" ? st = this.data[0] : at === "YYY" ? st = this.data[0].substring(1, 4) : at === "YY" ? st = this.data[0].substring(2, 4) : at === "Y" ? st = this.data[0].substring(3, 4) : ot === "MON" ? st = Be.months[Ve.getMonth()].substr(0, 3).toUpperCase() : ot === "mon" ? st = Be.months[Ve.getMonth()].substr(0, 3).toLowerCase() : ot === "MONTH" ? st = Be.months[Ve.getMonth()].toUpperCase() : ot === "month" ? st = Be.months[Ve.getMonth()].toLowerCase() : at === "MMMMM" ? st = Be.months[Ve.getMonth()].substr(0, 1) : at === "MMMM" || ot === "Month" ? st = Be.months[Ve.getMonth()] : at === "MMM" || ot == "Mon" ? st = Be.months[Ve.getMonth()].substr(0, 3) : at === "MM" ? st = V.two(this.data[1]) : at === "M" ? st = Ve.getMonth() + 1 : ot === "DAY" ? st = Be.weekdays[Ve.getDay()].toUpperCase() : ot === "day" ? st = Be.weekdays[Ve.getDay()].toLowerCase() : at === "DDDD" || ot == "Day" ? st = Be.weekdays[Ve.getDay()] : at === "DDD" ? st = Be.weekdays[Ve.getDay()].substr(0, 3) : at === "DD" ? st = V.two(this.data[2]) : at === "D" ? st = parseInt(this.data[2]) : at === "Q" ? st = Math.floor((Ve.getMonth() + 3) / 3) : at === "HH24" || at === "HH" ? (st = this.data[3], st > 12 && this.tokens.indexOf("am/pm") !== -1 && (st -= 12), st = V.two(st)) : at === "HH12" ? this.data[3] > 12 ? st = V.two(this.data[3] - 12) : st = V.two(this.data[3]) : at === "H" ? (st = this.data[3], st > 12 && this.tokens.indexOf("am/pm") !== -1 && (st -= 12, st = V.two(st))) : at === "MI" ? st = V.two(this.data[4]) : at === "SS" ? st = V.two(this.data[5]) : at === "MS" ? st = Ve.getMilliseconds() : at === "AM/PM" ? this.data[3] >= 12 ? st = "PM" : st = "AM" : at === "WD" && (st = Be.weekdays[Ve.getDay()]), st === null ? this.value[ct] = this.tokens[ct] : this.value[ct] = st;
@@ -2418,9 +2464,9 @@ function Lr() {
2418
2464
  e.setLabel(Y, e.options);
2419
2465
  var J = Y.split(" ");
2420
2466
  J[1] || (J[1] = "00:00:00");
2421
- var L = J[1].split(":"), J = J[0].split("-"), U = parseInt(J[0]), F = parseInt(J[1]), le = parseInt(J[2]), I = parseInt(L[0]), D = parseInt(L[1]);
2422
- e.date = [U, F, le, I, D, 0];
2423
- var M = e.setLabel(Y, e.options), S = s.now(new Date(U, F - 1, le), !0);
2467
+ var L = J[1].split(":"), J = J[0].split("-"), U = parseInt(J[0]), N = parseInt(J[1]), le = parseInt(J[2]), I = parseInt(L[0]), D = parseInt(L[1]);
2468
+ e.date = [U, N, le, I, D, 0];
2469
+ var M = e.setLabel(Y, e.options), S = s.now(new Date(U, N - 1, le), !0);
2424
2470
  if (e.options.validRange) {
2425
2471
  if (!e.options.validRange[0] || S >= e.options.validRange[0])
2426
2472
  var q = !0;
@@ -2459,7 +2505,7 @@ function Lr() {
2459
2505
  e.options.mode = "days";
2460
2506
  var I = /* @__PURE__ */ new Date(), M = e.date && V.isNumeric(e.date[0]) ? e.date[0] : parseInt(I.getFullYear()), Y = e.date && V.isNumeric(e.date[1]) ? e.date[1] : parseInt(I.getMonth()) + 1, u = e.date && V.isNumeric(e.date[2]) ? e.date[2] : parseInt(I.getDate()), L = e.date && V.isNumeric(e.date[3]) ? e.date[3] : parseInt(I.getHours()), J = e.date && V.isNumeric(e.date[4]) ? e.date[4] : parseInt(I.getMinutes());
2461
2507
  e.date = [M, Y, u, L, J, 0], b.innerHTML = M, R.innerHTML = e.options.months[Y - 1];
2462
- var U = I.getMonth() == Y - 1 && I.getFullYear() == M, F = I.getDate(), I = new Date(M, Y, 0, 0, 0), le = I.getDate(), I = new Date(M, Y - 1, 0, 0, 0), D = I.getDay() + 1, Re = e.options.startingDay || 0;
2508
+ var U = I.getMonth() == Y - 1 && I.getFullYear() == M, N = I.getDate(), I = new Date(M, Y, 0, 0, 0), le = I.getDate(), I = new Date(M, Y - 1, 0, 0, 0), D = I.getDay() + 1, Re = e.options.startingDay || 0;
2463
2509
  D = D - Re, C.innerHTML = "";
2464
2510
  var S = document.createElement("tr");
2465
2511
  S.setAttribute("align", "center"), C.appendChild(S);
@@ -2473,7 +2519,7 @@ function Lr() {
2473
2519
  for (var q = 0; q < 7; q++) {
2474
2520
  var ve = document.createElement("td");
2475
2521
  if (ve.classList.add("jcalendar-set-day"), Re >= D && Re < D + le) {
2476
- Pe++, ve.innerHTML = Pe, Pe == u && ve.classList.add("jcalendar-selected"), U && F == Pe && (ve.style.fontWeight = "bold");
2522
+ Pe++, ve.innerHTML = Pe, Pe == u && ve.classList.add("jcalendar-selected"), U && N == Pe && (ve.style.fontWeight = "bold");
2477
2523
  var Ve = s.now(new Date(M, Y - 1, Pe), !0);
2478
2524
  if (e.options.validRange) {
2479
2525
  if (!e.options.validRange[0] || Ve >= e.options.validRange[0])
@@ -2498,12 +2544,12 @@ function Lr() {
2498
2544
  e.options.value;
2499
2545
  var Y = /* @__PURE__ */ new Date(), u = parseInt(Y.getFullYear()), L = parseInt(Y.getMonth()) + 1, J = e.date && V.isNumeric(e.date[0]) ? e.date[0] : u, U = e.date && V.isNumeric(e.date[1]) ? e.date[1] : L;
2500
2546
  b.innerHTML = e.date[0], R.innerHTML = M[U - 1];
2501
- var F = document.createElement("table");
2502
- F.setAttribute("width", "100%");
2547
+ var N = document.createElement("table");
2548
+ N.setAttribute("width", "100%");
2503
2549
  for (var le = null, I = 0; I < 12; I++) {
2504
2550
  if (!(I % 4)) {
2505
2551
  var le = document.createElement("tr");
2506
- le.setAttribute("align", "center"), F.appendChild(le);
2552
+ le.setAttribute("align", "center"), N.appendChild(le);
2507
2553
  }
2508
2554
  var D = document.createElement("td");
2509
2555
  if (D.classList.add("jcalendar-set-month"), D.setAttribute("data-value", I + 1), D.innerText = M[I], e.options.validRange) {
@@ -2520,7 +2566,7 @@ function Lr() {
2520
2566
  }
2521
2567
  I + 1 == U && D.classList.add("jcalendar-selected"), u == J && I + 1 == L && (D.style.fontWeight = "bold"), le.appendChild(D);
2522
2568
  }
2523
- C.innerHTML = '<tr><td colspan="7"></td></tr>', C.children[0].children[0].appendChild(F), Q();
2569
+ C.innerHTML = '<tr><td colspan="7"></td></tr>', C.children[0].children[0].appendChild(N), Q();
2524
2570
  }, e.getYears = function() {
2525
2571
  e.options.mode = "years";
2526
2572
  for (var M = /* @__PURE__ */ new Date(), Y = M.getFullYear(), u = e.date && V.isNumeric(e.date[0]) ? e.date[0] : parseInt(M.getFullYear()), L = [], J = 0; J < 25; J++)
@@ -2529,11 +2575,11 @@ function Lr() {
2529
2575
  U.setAttribute("width", "100%");
2530
2576
  for (var J = 0; J < 25; J++) {
2531
2577
  if (!(J % 5)) {
2532
- var F = document.createElement("tr");
2533
- F.setAttribute("align", "center"), U.appendChild(F);
2578
+ var N = document.createElement("tr");
2579
+ N.setAttribute("align", "center"), U.appendChild(N);
2534
2580
  }
2535
2581
  var le = document.createElement("td");
2536
- le.classList.add("jcalendar-set-year"), le.innerText = L[J], u == L[J] && le.classList.add("jcalendar-selected"), Y == L[J] && (le.style.fontWeight = "bold"), F.appendChild(le);
2582
+ le.classList.add("jcalendar-set-year"), le.innerText = L[J], u == L[J] && le.classList.add("jcalendar-selected"), Y == L[J] && (le.style.fontWeight = "bold"), N.appendChild(le);
2537
2583
  }
2538
2584
  C.innerHTML = '<tr><td colspan="7"></td></tr>', C.firstChild.firstChild.appendChild(U), Q();
2539
2585
  }, e.setLabel = function(M, Y) {
@@ -2583,16 +2629,16 @@ function Lr() {
2583
2629
  U.appendChild(Y), U.appendChild(u), U.appendChild(L), J.appendChild(U), B = document.createElement("table"), C = document.createElement("tbody"), B.setAttribute("cellpadding", "0"), B.setAttribute("cellspacing", "0"), B.appendChild(J), B.appendChild(C), M.appendChild(B), H = document.createElement("select"), H.className = "jcalendar-select", H.onchange = function() {
2584
2630
  e.date[3] = this.value, typeof e.options.onupdate == "function" && e.options.onupdate(a, e.getValue());
2585
2631
  };
2586
- for (var F = 0; F < 24; F++) {
2632
+ for (var N = 0; N < 24; N++) {
2587
2633
  var le = document.createElement("option");
2588
- le.value = F, le.innerHTML = V.two(F), H.appendChild(le);
2634
+ le.value = N, le.innerHTML = V.two(N), H.appendChild(le);
2589
2635
  }
2590
2636
  ne = document.createElement("select"), ne.className = "jcalendar-select", ne.onchange = function() {
2591
2637
  e.date[4] = this.value, typeof e.options.onupdate == "function" && e.options.onupdate(a, e.getValue());
2592
2638
  };
2593
- for (var F = 0; F < 60; F++) {
2639
+ for (var N = 0; N < 60; N++) {
2594
2640
  var le = document.createElement("option");
2595
- le.value = F, le.innerHTML = V.two(F), ne.appendChild(le);
2641
+ le.value = N, le.innerHTML = V.two(N), ne.appendChild(le);
2596
2642
  }
2597
2643
  var I = document.createElement("div");
2598
2644
  I.className = "jcalendar-controls", k = document.createElement("div"), k.className = "jcalendar-time", k.style.maxWidth = "140px", k.appendChild(H), k.appendChild(ne), oe = document.createElement("button"), oe.setAttribute("type", "button"), oe.className = "jcalendar-update", K = document.createElement("div"), K.style.flexGrow = "10", K.appendChild(oe), I.appendChild(k), a.tagName == "INPUT" && I.appendChild(K), t.appendChild(I);
@@ -2926,8 +2972,8 @@ function Lr() {
2926
2972
  var u = P.getBoundingClientRect(), L = V.getWindowWidth(), J = V.getWindowHeight();
2927
2973
  if (L < 800 || r.options.fullscreen == !0 ? (P.classList.add("jcolor-fullscreen"), ae.slideBottom(P, 1), m.style.display = "block") : (P.classList.contains("jcolor-fullscreen") && (P.classList.remove("jcolor-fullscreen"), m.style.display = ""), r.options.position ? P.style.position = "fixed" : P.style.position = "", u.left + u.width > L && (P.style.marginLeft = -1 * (u.left + u.width - (L - 20)) + "px"), u.top + u.height > J && (P.style.marginTop = -1 * (u.top + u.height - (J - 20)) + "px")), typeof r.options.onopen == "function" && r.options.onopen(s, r), o.setBorder(o.getActive()), r.options.value) {
2928
2974
  var U = R(r.options.value);
2929
- ne.forEach(function(F, le) {
2930
- F.value = U[le], F.dispatchEvent(new Event("input"));
2975
+ ne.forEach(function(N, le) {
2976
+ N.value = U[le], N.dispatchEvent(new Event("input"));
2931
2977
  });
2932
2978
  }
2933
2979
  }
@@ -2957,8 +3003,8 @@ function Lr() {
2957
3003
  var L = document.createElement("table");
2958
3004
  L.setAttribute("cellpadding", "7"), L.setAttribute("cellspacing", "0");
2959
3005
  for (var J = 0; J < r.options.palette.length; J++) {
2960
- for (var U = document.createElement("tr"), F = 0; F < r.options.palette[J].length; F++) {
2961
- var le = document.createElement("td"), I = r.options.palette[J][F];
3006
+ for (var U = document.createElement("tr"), N = 0; N < r.options.palette[J].length; N++) {
3007
+ var le = document.createElement("td"), I = r.options.palette[J][N];
2962
3008
  I.length < 7 && I.substr(0, 1) !== "#" && (I = "#" + I), le.style.backgroundColor = I, le.setAttribute("data-value", I), le.innerHTML = "", U.appendChild(le), r.options.value == I && le.classList.add("jcolor-selected"), r.values[I] = le;
2963
3009
  }
2964
3010
  L.appendChild(U);
@@ -2979,20 +3025,20 @@ function Lr() {
2979
3025
  L.className = "jcolor-point";
2980
3026
  var J = document.createElement("div");
2981
3027
  J.appendChild(C), J.appendChild(L), u.appendChild(J);
2982
- var U = function(F, le, I) {
2983
- if (F === 1) {
3028
+ var U = function(N, le, I) {
3029
+ if (N === 1) {
2984
3030
  var D = u.getBoundingClientRect(), S = le - D.left, q = I - D.top;
2985
3031
  S < 0 && (S = 0), q < 0 && (q = 0), S > D.width && (S = D.width), q > D.height && (q = D.height), L.style.left = S + "px", L.style.top = q + "px";
2986
3032
  var ve = w.getImageData(S, q, 1, 1).data;
2987
3033
  H = t(ve[0], ve[1], ve[2]);
2988
3034
  }
2989
3035
  };
2990
- return u.addEventListener("mousedown", function(F) {
2991
- U(F.buttons, F.clientX, F.clientY);
2992
- }), u.addEventListener("mousemove", function(F) {
2993
- U(F.buttons, F.clientX, F.clientY);
2994
- }), u.addEventListener("touchmove", function(F) {
2995
- U(1, F.changedTouches[0].clientX, F.changedTouches[0].clientY);
3036
+ return u.addEventListener("mousedown", function(N) {
3037
+ U(N.buttons, N.clientX, N.clientY);
3038
+ }), u.addEventListener("mousemove", function(N) {
3039
+ U(N.buttons, N.clientX, N.clientY);
3040
+ }), u.addEventListener("touchmove", function(N) {
3041
+ U(1, N.changedTouches[0].clientX, N.changedTouches[0].clientY);
2996
3042
  }), u;
2997
3043
  }, H = "", ne = [], pe = function() {
2998
3044
  if (H !== "")
@@ -3026,11 +3072,11 @@ function Lr() {
3026
3072
  ], u.appendChild(L);
3027
3073
  var U = document.createElement("div");
3028
3074
  U.className = "jcolor-sliders-final-color";
3029
- var F = document.createElement("div");
3030
- F.style.visibility = "hidden", F.innerText = "a", U.appendChild(F);
3075
+ var N = document.createElement("div");
3076
+ N.style.visibility = "hidden", N.innerText = "a", U.appendChild(N);
3031
3077
  var le = function() {
3032
3078
  var I = t(parseInt(ne[0].value), parseInt(ne[1].value), parseInt(ne[2].value));
3033
- F.innerText = I, F.style.color = I, F.style.removeProperty("visibility"), H = I;
3079
+ N.innerText = I, N.style.color = I, N.style.removeProperty("visibility"), H = I;
3034
3080
  };
3035
3081
  return ne.forEach(function(I) {
3036
3082
  I.addEventListener("input", function() {
@@ -3060,9 +3106,9 @@ function Lr() {
3060
3106
  if (U === 1)
3061
3107
  k();
3062
3108
  else {
3063
- var F = H !== "" ? H : r.getValue();
3064
- if (U === 2 && F) {
3065
- var le = R(F);
3109
+ var N = H !== "" ? H : r.getValue();
3110
+ if (U === 2 && N) {
3111
+ var le = R(N);
3066
3112
  ne.forEach(function(I, D) {
3067
3113
  I.value = le[D], I.dispatchEvent(new Event("input"));
3068
3114
  });
@@ -3365,8 +3411,8 @@ function Lr() {
3365
3411
  var U = document.createElement("span");
3366
3412
  U.className = "jdropdown-icon material-icons", U.innerText = M.icon, M.title || U.classList.add("jdropdown-icon-small"), M.color && (U.style.color = M.color), L.element.appendChild(U);
3367
3413
  } else if (M.color) {
3368
- var F = document.createElement("div");
3369
- F.className = "jdropdown-color", F.style.backgroundColor = M.color, L.element.appendChild(F);
3414
+ var N = document.createElement("div");
3415
+ N.className = "jdropdown-color", N.style.backgroundColor = M.color, L.element.appendChild(N);
3370
3416
  }
3371
3417
  if (e.options.format)
3372
3418
  var le = M.name;
@@ -3389,8 +3435,8 @@ function Lr() {
3389
3435
  var J = 0, U = Object.keys(u);
3390
3436
  if (U.length > 0)
3391
3437
  for (var L = 0; L < U.length; L++) {
3392
- var F = document.createElement("div");
3393
- F.className = "jdropdown-group";
3438
+ var N = document.createElement("div");
3439
+ N.className = "jdropdown-group";
3394
3440
  var le = document.createElement("div");
3395
3441
  le.className = "jdropdown-group-name", le.textContent = U[L];
3396
3442
  var I = document.createElement("i");
@@ -3398,10 +3444,10 @@ function Lr() {
3398
3444
  var D = document.createElement("div");
3399
3445
  D.className = "jdropdown-group-items";
3400
3446
  for (var S = 0; S < u[U[L]].length; S++) {
3401
- var q = e.createItem(M[u[U[L]][S]], F, U[L]);
3447
+ var q = e.createItem(M[u[U[L]][S]], N, U[L]);
3402
3448
  (e.options.lazyLoading == !1 || J < 200) && (D.appendChild(q.element), J++);
3403
3449
  }
3404
- F.appendChild(le), F.appendChild(D), e.groups.push(F), D.children.length > 0 && B.appendChild(F);
3450
+ N.appendChild(le), N.appendChild(D), e.groups.push(N), D.children.length > 0 && B.appendChild(N);
3405
3451
  }
3406
3452
  if (Y.length)
3407
3453
  for (var L = 0; L < Y.length; L++) {
@@ -3503,8 +3549,8 @@ function Lr() {
3503
3549
  } else {
3504
3550
  M = new RegExp(M, "gi");
3505
3551
  for (var L = [], Y = 0; Y < e.items.length; Y++) {
3506
- var J = o(Y), U = e.items[Y].data.title || "", F = e.items[Y].data.group || "", le = e.items[Y].data.synonym || "";
3507
- le && (le = le.join(" ")), (M == null || e.items[Y].selected == !0 || J.toString().match(M) || U.match(M) || F.match(M) || le.match(M)) && L.push(e.items[Y]);
3552
+ var J = o(Y), U = e.items[Y].data.title || "", N = e.items[Y].data.group || "", le = e.items[Y].data.synonym || "";
3553
+ le && (le = le.join(" ")), (M == null || e.items[Y].selected == !0 || J.toString().match(M) || U.match(M) || N.match(M) || le.match(M)) && L.push(e.items[Y]);
3508
3554
  }
3509
3555
  if (!L.length)
3510
3556
  B.style.display = "none", e.results = null;
@@ -3565,9 +3611,9 @@ function Lr() {
3565
3611
  M = M.toLowerCase();
3566
3612
  var L = null, J = null, U = B.querySelectorAll(".jdropdown-item");
3567
3613
  if (U.length) {
3568
- for (var F = 0; F < U.length; F++)
3569
- if (U[F].indexValue > u && (L = e.items[U[F].indexValue]) && (J = L.element.innerText[0]) && (J = J.toLowerCase(), M == J)) {
3570
- Y = U[F].indexValue;
3614
+ for (var N = 0; N < U.length; N++)
3615
+ if (U[N].indexValue > u && (L = e.items[U[N].indexValue]) && (J = L.element.innerText[0]) && (J = J.toLowerCase(), M == J)) {
3616
+ Y = U[N].indexValue;
3571
3617
  break;
3572
3618
  }
3573
3619
  e.setCursor(Y);
@@ -3806,7 +3852,7 @@ function Lr() {
3806
3852
  };
3807
3853
  return E(), r;
3808
3854
  }
3809
- function Fe(s, a) {
3855
+ function Ne(s, a) {
3810
3856
  var r = { type: "toolbar" };
3811
3857
  r.options = {};
3812
3858
  var e = {
@@ -4169,7 +4215,7 @@ function Lr() {
4169
4215
  var me = qe.innerHTML;
4170
4216
  me = me.replace(/<br>/g, `
4171
4217
  `), me = me.replace(/<\/div>/g, `</div>
4172
- `), me = me.replace(/<(?:.|\n)*?>/gm, ""), S.content = me.trim(), F("getData", S);
4218
+ `), me = me.replace(/<(?:.|\n)*?>/gm, ""), S.content = me.trim(), N("getData", S);
4173
4219
  } else
4174
4220
  var S = e.editor.innerHTML;
4175
4221
  return S;
@@ -4280,13 +4326,13 @@ function Lr() {
4280
4326
  Pe.length ? e.addFile(Pe) : Re && R(ve), a.classList.remove("jeditor-dragging"), D.preventDefault();
4281
4327
  }
4282
4328
  }, pe = function(D) {
4283
- F("onevent", D), b(D), typeof e.options.onblur == "function" && e.options.onblur(a, e, D);
4329
+ N("onevent", D), b(D), typeof e.options.onblur == "function" && e.options.onblur(a, e, D);
4284
4330
  }, M = function(D) {
4285
4331
  typeof e.options.onfocus == "function" && e.options.onfocus(a, e, D);
4286
4332
  }, Y = function(D) {
4287
4333
  e.editor.innerHTML || (e.editor.innerHTML = "<div><br></div>"), typeof e.options.onkeyup == "function" && e.options.onkeyup(a, e, D);
4288
4334
  }, u = function(D) {
4289
- if (F("onevent", D), D.key == "Delete" && D.target.tagName == "IMG") {
4335
+ if (N("onevent", D), D.key == "Delete" && D.target.tagName == "IMG") {
4290
4336
  var S = D.target.parentNode;
4291
4337
  w(D.target), S.classList.contains("jsnippet-image") && B();
4292
4338
  }
@@ -4336,7 +4382,7 @@ function Lr() {
4336
4382
  var q = null;
4337
4383
  q || (E.d == "s-resize" || E.d == "se-resize" || E.d == "sw-resize") && (D.shiftKey || (E.e.style.height = E.h + (D.clientY - E.y))), E.e.changed = !0;
4338
4384
  }
4339
- }, F = function(D, S) {
4385
+ }, N = function(D, S) {
4340
4386
  if (e.options.extensions) {
4341
4387
  var q = Object.keys(e.options.extensions);
4342
4388
  if (q.length)
@@ -4366,7 +4412,7 @@ function Lr() {
4366
4412
  };
4367
4413
  else
4368
4414
  var I = e.options.toolbar;
4369
- I.items && I.items.length || (I.items = s.getDefaultToolbar(e)), e.options.toolbarOnTop ? (a.classList.add("toolbar-on-top"), a.insertBefore(i, a.firstChild)) : (e.editor.style.padding = "15px", a.appendChild(i)), Fe(i, I), i.addEventListener("click", function() {
4415
+ I.items && I.items.length || (I.items = s.getDefaultToolbar(e)), e.options.toolbarOnTop ? (a.classList.add("toolbar-on-top"), a.insertBefore(i, a.firstChild)) : (e.editor.style.padding = "15px", a.appendChild(i)), Ne(i, I), i.addEventListener("click", function() {
4370
4416
  e.editor.focus();
4371
4417
  });
4372
4418
  }
@@ -4642,7 +4688,7 @@ function Lr() {
4642
4688
  return s.elements = [], s;
4643
4689
  }
4644
4690
  var de = se();
4645
- function Ne() {
4691
+ function Fe() {
4646
4692
  const s = function(E) {
4647
4693
  return !isNaN(E) && E !== null && (typeof E != "string" || E.trim() !== "");
4648
4694
  }, a = {
@@ -4822,7 +4868,7 @@ function Lr() {
4822
4868
  return a[n.criteria](parseInt(parseFloat(E) * 10 ** 17) / 10 ** 17, o);
4823
4869
  }, m;
4824
4870
  }
4825
- var He = Ne();
4871
+ var He = Fe();
4826
4872
  function Ke() {
4827
4873
  var s = (function(a, r) {
4828
4874
  var e = {};
@@ -5785,7 +5831,7 @@ function Lr() {
5785
5831
  slider: G,
5786
5832
  tabs: Ae,
5787
5833
  tags: be,
5788
- toolbar: Fe,
5834
+ toolbar: Ne,
5789
5835
  upload: We,
5790
5836
  validations: He
5791
5837
  };
@@ -5844,8 +5890,8 @@ function Lr() {
5844
5890
  e = !1;
5845
5891
  a(M), B(H);
5846
5892
  }, o = function(H, ne, pe, M, Y, u) {
5847
- const L = pe - H, J = M - ne, U = Y - H, F = u - ne;
5848
- let le = Math.atan2(J, L), D = Math.atan2(F, U) - le;
5893
+ const L = pe - H, J = M - ne, U = Y - H, N = u - ne;
5894
+ let le = Math.atan2(J, L), D = Math.atan2(N, U) - le;
5849
5895
  return D = D * (180 / Math.PI), D < 0 && (D += 360), D;
5850
5896
  }, i = function(H) {
5851
5897
  e && e.e && (typeof e.e.refresh == "function" && m.actioned && e.e.refresh(), e.e.style.cursor = ""), m = {
@@ -5859,11 +5905,11 @@ function Lr() {
5859
5905
  var ne = u - m.x, pe = L - m.y, M = e.e.offsetTop + pe, Y = e.e.offsetLeft + ne;
5860
5906
  e.e.style.top = M + "px", e.e.style.left = Y + "px", typeof e.e.refresh == "function" && (m.actioned = !0, e.e.refresh("position", M, Y));
5861
5907
  } else if (e.action === "rotate") {
5862
- let J = e.l + e.w / 2, U = e.t + e.h / 2, F = o(J, U, e.x, e.y, u, L);
5863
- F = F + e.a % 360, F = Math.round(F / 2) * 2, e.e.style.rotate = `${F}deg`, typeof e.e.refresh == "function" && (m.actioned = !0, e.e.refresh("rotate", F));
5908
+ let J = e.l + e.w / 2, U = e.t + e.h / 2, N = o(J, U, e.x, e.y, u, L);
5909
+ N = N + e.a % 360, N = Math.round(N / 2) * 2, e.e.style.rotate = `${N}deg`, typeof e.e.refresh == "function" && (m.actioned = !0, e.e.refresh("rotate", N));
5864
5910
  } else if (e.action === "resize") {
5865
- let J = null, U = null, F = null, le = null;
5866
- e.d == "e-resize" || e.d == "ne-resize" || e.d == "se-resize" ? (F = e.e.offsetWidth + (u - m.x), H.shiftKey && (le = e.e.offsetHeight + (u - m.x) * (e.e.offsetHeight / e.e.offsetWidth))) : (e.d === "w-resize" || e.d == "nw-resize" || e.d == "sw-resize") && (U = e.e.offsetLeft + (u - m.x), F = e.e.offsetLeft + e.e.offsetWidth - U, H.shiftKey && (le = e.e.offsetHeight - (u - m.x) * (e.e.offsetHeight / e.e.offsetWidth))), e.d == "s-resize" || e.d == "se-resize" || e.d == "sw-resize" ? le || (le = e.e.offsetHeight + (L - m.y)) : (e.d === "n-resize" || e.d == "ne-resize" || e.d == "nw-resize") && (J = e.e.offsetTop + (L - m.y), le = e.e.offsetTop + e.e.offsetHeight - J), J && (e.e.style.top = J + "px"), U && (e.e.style.left = U + "px"), F && (e.e.style.width = F + "px"), le && (e.e.style.height = le + "px"), typeof e.e.refresh == "function" && (m.actioned = !0, e.e.refresh("dimensions", F, le));
5911
+ let J = null, U = null, N = null, le = null;
5912
+ e.d == "e-resize" || e.d == "ne-resize" || e.d == "se-resize" ? (N = e.e.offsetWidth + (u - m.x), H.shiftKey && (le = e.e.offsetHeight + (u - m.x) * (e.e.offsetHeight / e.e.offsetWidth))) : (e.d === "w-resize" || e.d == "nw-resize" || e.d == "sw-resize") && (U = e.e.offsetLeft + (u - m.x), N = e.e.offsetLeft + e.e.offsetWidth - U, H.shiftKey && (le = e.e.offsetHeight - (u - m.x) * (e.e.offsetHeight / e.e.offsetWidth))), e.d == "s-resize" || e.d == "se-resize" || e.d == "sw-resize" ? le || (le = e.e.offsetHeight + (L - m.y)) : (e.d === "n-resize" || e.d == "ne-resize" || e.d == "nw-resize") && (J = e.e.offsetTop + (L - m.y), le = e.e.offsetTop + e.e.offsetHeight - J), J && (e.e.style.top = J + "px"), U && (e.e.style.left = U + "px"), N && (e.e.style.width = N + "px"), le && (e.e.style.height = le + "px"), typeof e.e.refresh == "function" && (m.actioned = !0, e.e.refresh("dimensions", N, le));
5867
5913
  }
5868
5914
  m.x = u, m.y = L;
5869
5915
  } else {
@@ -5921,7 +5967,7 @@ function Lr() {
5921
5967
  document.addEventListener("focusin", B), document.addEventListener("mouseup", i), document.addEventListener("mousedown", n), document.addEventListener("mousemove", t), document.addEventListener("mouseover", w), document.addEventListener("keydown", K), document.addEventListener("contextmenu", k), document.addEventListener("input", oe);
5922
5968
  }();
5923
5969
  var Z = h;
5924
- })(), f = N.default;
5970
+ })(), f = F.default;
5925
5971
  })(), f;
5926
5972
  }));
5927
5973
  })(nn)), nn.exports;
@@ -6009,7 +6055,7 @@ function Tr() {
6009
6055
  "svg",
6010
6056
  "line",
6011
6057
  "source"
6012
- ], p = ["width", "height", "align", "border", "src", "tabindex"], g = ["color", "font-weight", "font-size", "background", "background-color", "margin"], N = function(v, X) {
6058
+ ], p = ["width", "height", "align", "border", "src", "tabindex"], g = ["color", "font-weight", "font-size", "background", "background-color", "margin"], F = function(v, X) {
6013
6059
  if (v.tagName && c.indexOf(v.tagName.toLowerCase()) === -1 && v.innerText && (v.innerHTML = v.innerText), v.attributes && v.attributes.length) {
6014
6060
  let z = null, ge = v.getAttribute("style");
6015
6061
  if (ge) {
@@ -6038,11 +6084,11 @@ function Tr() {
6038
6084
  }
6039
6085
  if (v.children.length)
6040
6086
  for (let z = v.children.length; z > 0; z--)
6041
- N(v.children[z - 1], X);
6087
+ F(v.children[z - 1], X);
6042
6088
  }, j = function(v, X) {
6043
6089
  v && (v = v.replace(new RegExp("<!--(.*?)-->", "gsi"), ""));
6044
6090
  let ge = new DOMParser().parseFromString(v, "text/html");
6045
- N(ge, X);
6091
+ F(ge, X);
6046
6092
  let V = document.createElement("div");
6047
6093
  return V.innerHTML = ge.firstChild.innerHTML, V;
6048
6094
  };
@@ -6068,8 +6114,8 @@ function Tr() {
6068
6114
  };
6069
6115
  z.image = new Image(), z.image.onload = function() {
6070
6116
  z.resetCanvas();
6071
- var se = z.options.area[0] / this.naturalWidth, de = z.options.area[1] / this.naturalHeight, Ne = Math.min(de, se);
6072
- this.width = this.naturalWidth * Ne, this.height = this.naturalHeight * Ne, ce(), v.classList.add("jcrop_edition"), f.getWindowWidth() > 800 && z.resetCropSelection(), Ue(), typeof z.options.onchange == "function" && z.options.onchange(v, z.image);
6117
+ var se = z.options.area[0] / this.naturalWidth, de = z.options.area[1] / this.naturalHeight, Fe = Math.min(de, se);
6118
+ this.width = this.naturalWidth * Fe, this.height = this.naturalHeight * Fe, ce(), v.classList.add("jcrop_edition"), f.getWindowWidth() > 800 && z.resetCropSelection(), Ue(), typeof z.options.onchange == "function" && z.options.onchange(v, z.image);
6073
6119
  };
6074
6120
  var he = {
6075
6121
  zoom: {
@@ -6100,8 +6146,8 @@ function Tr() {
6100
6146
  },
6101
6147
  eventListeners: {}
6102
6148
  };
6103
- for (var Ne in de)
6104
- O && O.hasOwnProperty(Ne) ? z.options[Ne] = O[Ne] : (typeof z.options[Ne] > "u" || se === !0) && (z.options[Ne] = de[Ne]);
6149
+ for (var Fe in de)
6150
+ O && O.hasOwnProperty(Fe) ? z.options[Fe] = O[Fe] : (typeof z.options[Fe] > "u" || se === !0) && (z.options[Fe] = de[Fe]);
6105
6151
  return f.getWindowWidth() < 800 && (z.options.area[0] || (z.options.area[0] = window.clientWidth * 2), z.options.area[1] || (z.options.area[1] = window.clientHeight * 2)), v.style.width = z.options.area[0] + "px", v.style.height = z.options.area[1] + "px", V.width = z.options.area[0], V.height = z.options.area[1], z.reset(), typeof z.options.value == "string" && (z.image.src = z.options.value), z;
6106
6152
  }, z.resetCropSelection = function() {
6107
6153
  ge.style.left = z.options.area[0] / 2 - z.options.crop[0] / 2 + "px", ge.style.top = z.options.area[1] / 2 - z.options.crop[1] / 2 + "px", ge.style.width = z.options.crop[0] + "px", ge.style.height = z.options.crop[1] + "px", ge.style.zIndex = 1;
@@ -6145,8 +6191,8 @@ function Tr() {
6145
6191
  }, Te = function() {
6146
6192
  var O = he.contrast, se = De.getImageData(0, 0, re.width, re.height), de = se.data;
6147
6193
  O *= 255;
6148
- for (var Ne = (O + 255) / (255.01 - O), He = 0; He < de.length; He += 4)
6149
- de[He] = Ne * (de[He] - 128) + 128, de[He + 1] = Ne * (de[He + 1] - 128) + 128, de[He + 2] = Ne * (de[He + 2] - 128) + 128;
6194
+ for (var Fe = (O + 255) / (255.01 - O), He = 0; He < de.length; He += 4)
6195
+ de[He] = Fe * (de[He] - 128) + 128, de[He + 1] = Fe * (de[He + 1] - 128) + 128, de[He + 2] = Fe * (de[He + 2] - 128) + 128;
6150
6196
  return De.putImageData(se, 0, 0), se;
6151
6197
  };
6152
6198
  z.contrast = function(O) {
@@ -6155,8 +6201,8 @@ function Tr() {
6155
6201
  var Be = function() {
6156
6202
  var O = he.brightness, se = De.getImageData(0, 0, re.width, re.height), de = se.data;
6157
6203
  O *= 255;
6158
- for (var Ne = 0; Ne < de.length; Ne += 4)
6159
- de[Ne] += O, de[Ne + 1] += O, de[Ne + 2] += O;
6204
+ for (var Fe = 0; Fe < de.length; Fe += 4)
6205
+ de[Fe] += O, de[Fe + 1] += O, de[Fe + 2] += O;
6160
6206
  return De.putImageData(se, 0, 0), se;
6161
6207
  };
6162
6208
  z.brightness = function(O) {
@@ -6181,15 +6227,15 @@ function Tr() {
6181
6227
  }, z.getCroppedContent = function() {
6182
6228
  var O = z.getSelectionCoordinates(), se = document.createElement("canvas"), de = se.getContext("2d", { willReadFrequently: !0 });
6183
6229
  se.width = ge.clientWidth, se.height = ge.clientHeight;
6184
- var Ne = Ce.getImageData(O.left, O.top, ge.clientWidth, ge.clientHeight);
6185
- return de.putImageData(Ne, 0, 0), se.toDataURL(z.getImageType());
6230
+ var Fe = Ce.getImageData(O.left, O.top, ge.clientWidth, ge.clientHeight);
6231
+ return de.putImageData(Fe, 0, 0), se.toDataURL(z.getImageType());
6186
6232
  }, z.getCroppedAsBlob = function(O) {
6187
6233
  if (!1 == "function")
6188
6234
  return console.error("Callback not defined"), !1;
6189
- var se = z.getSelectionCoordinates(), de = document.createElement("canvas"), Ne = de.getContext("2d", { willReadFrequently: !0 });
6235
+ var se = z.getSelectionCoordinates(), de = document.createElement("canvas"), Fe = de.getContext("2d", { willReadFrequently: !0 });
6190
6236
  de.width = ge.clientWidth, de.height = ge.clientHeight;
6191
6237
  var He = Ce.getImageData(se.left, se.top, ge.clientWidth, ge.clientHeight);
6192
- Ne.putImageData(He, 0, 0), de.toBlob(O);
6238
+ Fe.putImageData(He, 0, 0), de.toBlob(O);
6193
6239
  }, z.getImage = function() {
6194
6240
  return z.image;
6195
6241
  }, z.getFileInput = function() {
@@ -6200,8 +6246,8 @@ function Tr() {
6200
6246
  var se = O.type.split("/");
6201
6247
  if (se[0] == "image") {
6202
6248
  var de = new FileReader();
6203
- de.addEventListener("load", function(Ne) {
6204
- z.image.src = Ne.target.result;
6249
+ de.addEventListener("load", function(Fe) {
6250
+ z.image.src = Fe.target.result;
6205
6251
  }), de.readAsDataURL(O);
6206
6252
  } else
6207
6253
  alert(z.options.text.extensionNotAllowed);
@@ -6240,9 +6286,9 @@ function Tr() {
6240
6286
  };
6241
6287
  var je = null, rt = null, et = function(O) {
6242
6288
  je = !1;
6243
- }, Fe = function(O) {
6289
+ }, Ne = function(O) {
6244
6290
  if (O.target.classList.contains("jcrop-area")) {
6245
- var se = O.target.getBoundingClientRect(), de = O.target.style.left !== "" ? O.target.style.left : "0px", Ne = O.target.style.top !== "" ? O.target.style.top : "0px";
6291
+ var se = O.target.getBoundingClientRect(), de = O.target.style.left !== "" ? O.target.style.left : "0px", Fe = O.target.style.top !== "" ? O.target.style.top : "0px";
6246
6292
  if (O.target.style.cursor) {
6247
6293
  je = {
6248
6294
  e: O.target,
@@ -6252,7 +6298,7 @@ function Tr() {
6252
6298
  h: se.height,
6253
6299
  d: O.target.style.cursor,
6254
6300
  xOffset: O.clientX - parseInt(de.slice(0, de.length - 2)),
6255
- yOffset: O.clientY - parseInt(Ne.slice(0, Ne.length - 2))
6301
+ yOffset: O.clientY - parseInt(Fe.slice(0, Fe.length - 2))
6256
6302
  }, O.target.style.width || (O.target.style.width = se.width + "px"), O.target.style.height || (O.target.style.height = se.height + "px");
6257
6303
  var He = window.getSelection();
6258
6304
  if (He.rangeCount)
@@ -6274,8 +6320,8 @@ function Tr() {
6274
6320
  }
6275
6321
  if (se == 1 && je && je.d)
6276
6322
  if (je.d == "move") {
6277
- var Ne = O.clientX - je.xOffset, He = O.clientY - je.yOffset;
6278
- Ne < 0 ? je.e.style.left = "0px" : Ne > v.offsetWidth - ge.offsetWidth - 2 ? je.e.style.left = v.offsetWidth - ge.offsetWidth - 2 + "px" : je.e.style.left = Ne + "px", He < 0 ? je.e.style.top = "0px" : He > v.offsetHeight - ge.offsetHeight - 2 ? je.e.style.top = v.offsetHeight - ge.offsetHeight - 2 + "px" : je.e.style.top = He + "px";
6323
+ var Fe = O.clientX - je.xOffset, He = O.clientY - je.yOffset;
6324
+ Fe < 0 ? je.e.style.left = "0px" : Fe > v.offsetWidth - ge.offsetWidth - 2 ? je.e.style.left = v.offsetWidth - ge.offsetWidth - 2 + "px" : je.e.style.left = Fe + "px", He < 0 ? je.e.style.top = "0px" : He > v.offsetHeight - ge.offsetHeight - 2 ? je.e.style.top = v.offsetHeight - ge.offsetHeight - 2 + "px" : je.e.style.top = He + "px";
6279
6325
  } else {
6280
6326
  if (je.d == "e-resize" || je.d == "ne-resize" || je.d == "se-resize") {
6281
6327
  var Ke = je.w + O.clientX - je.x, ze = je.e.style.left.slice(0, je.e.style.left.length - 2);
@@ -6306,8 +6352,8 @@ function Tr() {
6306
6352
  var se = O.changedTouches[0].clientX, de = O.changedTouches[0].clientY;
6307
6353
  else
6308
6354
  var se = O.clientX, de = O.clientY;
6309
- var Ne = se, He = Ne - Ge.mouseX;
6310
- Ge.mouseX = Ne;
6355
+ var Fe = se, He = Fe - Ge.mouseX;
6356
+ Ge.mouseX = Fe;
6311
6357
  var Ke = de, ze = Ke - Ge.mouseY;
6312
6358
  Ge.mouseY = Ke, Ge.mousedown && (z.image.left += He / he.zoom.scale, z.image.top += ze / he.zoom.scale, Ae()), O.preventDefault();
6313
6359
  }
@@ -6315,7 +6361,7 @@ function Tr() {
6315
6361
  };
6316
6362
  document.addEventListener("mouseup", function(O) {
6317
6363
  Ge.mousedown = !1;
6318
- }), v.addEventListener("mouseup", et), v.addEventListener("mousedown", Fe), v.addEventListener("mousemove", Xe), v.addEventListener("touchstart", we), v.addEventListener("touchend", Qe), v.addEventListener("touchmove", tt), v.addEventListener("mousedown", we), v.addEventListener("mousemove", tt), v.addEventListener("dblclick", function(O) {
6364
+ }), v.addEventListener("mouseup", et), v.addEventListener("mousedown", Ne), v.addEventListener("mousemove", Xe), v.addEventListener("touchstart", we), v.addEventListener("touchend", Qe), v.addEventListener("touchmove", tt), v.addEventListener("mousedown", we), v.addEventListener("mousemove", tt), v.addEventListener("dblclick", function(O) {
6319
6365
  f.click(Ze);
6320
6366
  }), v.addEventListener("dragenter", function(O) {
6321
6367
  v.style.border = "1px dashed #000";
@@ -6329,8 +6375,8 @@ function Tr() {
6329
6375
  O.preventDefault(), O.stopPropagation();
6330
6376
  var se = (O.originalEvent || O).dataTransfer.getData("text/html"), de = (O.originalEvent || O).dataTransfer.files;
6331
6377
  if (de.length)
6332
- for (var Ne = 0; Ne < O.dataTransfer.files.length; Ne++)
6333
- z.addFromFile(O.dataTransfer.files[Ne]);
6378
+ for (var Fe = 0; Fe < O.dataTransfer.files.length; Fe++)
6379
+ z.addFromFile(O.dataTransfer.files[Fe]);
6334
6380
  else if (se) {
6335
6381
  let He = [];
6336
6382
  j(se, He), He.length && z.addFromUrl(He[0].src);
@@ -6339,8 +6385,8 @@ function Tr() {
6339
6385
  }), v.addEventListener("wheel", function(O) {
6340
6386
  if (v.classList.contains("jcrop_edition")) {
6341
6387
  O.deltaY > 0 ? he.zoom.scale > 0.1 && (he.zoom.scale *= 0.9) : he.zoom.scale < 5 && (he.zoom.scale *= 1.1), he.zoom.scale = parseFloat(he.zoom.scale.toFixed(2));
6342
- var se = v.getBoundingClientRect(), de = O.clientX - se.left, Ne = O.clientY - se.top, He = Ce.getImageData(de, Ne, 1, 1).data;
6343
- He[3] != 0 && (he.zoom.origin.x = de, he.zoom.origin.y = Ne), z.zoom(), O.preventDefault();
6388
+ var se = v.getBoundingClientRect(), de = O.clientX - se.left, Fe = O.clientY - se.top, He = Ce.getImageData(de, Fe, 1, 1).data;
6389
+ He[3] != 0 && (he.zoom.origin.x = de, he.zoom.origin.y = Fe), z.zoom(), O.preventDefault();
6344
6390
  }
6345
6391
  }), v.addEventListener("click", function(O) {
6346
6392
  v.classList.contains("jcrop_edition") || f.click(Ze);
@@ -6355,12 +6401,12 @@ function Tr() {
6355
6401
  O.preventDefault();
6356
6402
  var se = Math.hypot(O.touches[0].pageX - O.touches[1].pageX, O.touches[0].pageY - O.touches[1].pageY);
6357
6403
  if (se > he.zoom.fingerDistance) {
6358
- var de = se - he.zoom.fingerDistance, Ne = he.zoom.scale + he.zoom.scale * de * 25e-4;
6359
- Ne <= 5.09 && z.zoom(Ne);
6404
+ var de = se - he.zoom.fingerDistance, Fe = he.zoom.scale + he.zoom.scale * de * 25e-4;
6405
+ Fe <= 5.09 && z.zoom(Fe);
6360
6406
  }
6361
6407
  if (se < he.zoom.fingerDistance) {
6362
- var de = he.zoom.fingerDistance - se, Ne = he.zoom.scale - he.zoom.scale * de * 25e-4;
6363
- Ne >= 0.1 && z.zoom(Ne);
6408
+ var de = he.zoom.fingerDistance - se, Fe = he.zoom.scale - he.zoom.scale * de * 25e-4;
6409
+ Fe >= 0.1 && z.zoom(Fe);
6364
6410
  }
6365
6411
  he.zoom.fingerDistance = se;
6366
6412
  };
@@ -7606,7 +7652,7 @@ function Ir() {
7606
7652
  a && (h[Z] = s === "M" ? "I" : "MI");
7607
7653
  }
7608
7654
  }
7609
- }, Fe = function(h) {
7655
+ }, Ne = function(h) {
7610
7656
  h = h.map((s) => s.toString().toUpperCase()), et(h);
7611
7657
  let ie = [];
7612
7658
  for (let s = 0; s < h.length; s++) {
@@ -7695,7 +7741,7 @@ function Ir() {
7695
7741
  }
7696
7742
  a.indexOf("[$") !== -1 && (a = V(a)), a = ke(a, Z), Z.mask = a;
7697
7743
  let r = Z.tokens = je(a);
7698
- Z.methods = Fe(r), Z.type = Ie(Z);
7744
+ Z.methods = Ne(r), Z.type = Ie(Z);
7699
7745
  }
7700
7746
  return (xe(Z.type) || Z.locale) && (Z.decimal = W.call(Z)), Z;
7701
7747
  }, se = function(h) {
@@ -7734,7 +7780,7 @@ function Ir() {
7734
7780
  r && (Z = r), a[0] = Z, s = h.mask.toUpperCase().split("E+")[1], r = Ge(s, a[1], h.decimal), r && (a[1] = r), Z = a.join("e+");
7735
7781
  }
7736
7782
  return Z;
7737
- }, Ne = function(h, ie) {
7783
+ }, Fe = function(h, ie) {
7738
7784
  let Z, s = null, a = !0;
7739
7785
  const r = ie.match(/\/(\d+)/);
7740
7786
  if (r)
@@ -8193,7 +8239,7 @@ function Ir() {
8193
8239
  else if (s.type === "percentage" ? typeof h == "string" && h.indexOf("%") !== -1 ? h = h.replace("%", "") : h = ee(Number(h) * 100) : s.mask.includes(",,M") ? typeof h == "string" && h.indexOf("M") !== -1 ? h = h.replace("M", "") : h = Number(h) / 1e6 : s.mask.includes(",,,B") && (typeof h == "string" && h.indexOf("B") !== -1 ? h = h.replace("B", "") : h = Number(h) / 1e9), typeof h == "string" && _(h) && (h = Number(h)), typeof h == "number") {
8194
8240
  let e = h;
8195
8241
  if (s.type === "fraction")
8196
- e = Ne(h, s.mask);
8242
+ e = Fe(h, s.mask);
8197
8243
  else if (Z && (e = de(s, h), s.type === "scientific"))
8198
8244
  return e;
8199
8245
  h = se(e), s.decimal === "," && (h = h.replace(".", s.decimal));
@@ -8373,20 +8419,20 @@ function Ir() {
8373
8419
  je++;
8374
8420
  let et = ke.days[rt];
8375
8421
  Ae = new Date(Date.UTC(ee, W, je, 0, 0, 0));
8376
- let Fe = Ae.getUTCDate();
8377
- if (et.title = Fe, et.value = je, et.number = V.dateToNum(Ae.toISOString().substring(0, 10)), et.start = !1, et.end = !1, et.range = !1, et.last = !1, et.disabled = !1, et.data = null, Ae.getUTCMonth() !== W)
8422
+ let Ne = Ae.getUTCDate();
8423
+ if (et.title = Ne, et.value = je, et.number = V.dateToNum(Ae.toISOString().substring(0, 10)), et.start = !1, et.end = !1, et.range = !1, et.last = !1, et.disabled = !1, et.data = null, Ae.getUTCMonth() !== W)
8378
8424
  et.grey = !0;
8379
8425
  else {
8380
- let Ge = [ee, V.two(W + 1), V.two(Fe)].join("-");
8426
+ let Ge = [ee, V.two(W + 1), V.two(Ne)].join("-");
8381
8427
  Ee && Ee[Ge] && (et.data = Ee[Ge]), et.grey = !1;
8382
8428
  }
8383
8429
  let Xe = Ae.getUTCMonth();
8384
- if (ue.cursor.y === ee && ue.cursor.m === Xe && ue.cursor.d === Fe ? (et.selected = !0, ue.cursor.current = et) : et.selected = !1, ue.validRange)
8430
+ if (ue.cursor.y === ee && ue.cursor.m === Xe && ue.cursor.d === Ne ? (et.selected = !0, ue.cursor.current = et) : et.selected = !1, ue.validRange)
8385
8431
  if (typeof ue.validRange == "function") {
8386
- let Ge = ue.validRange(Fe, Xe, ee, et);
8432
+ let Ge = ue.validRange(Ne, Xe, ee, et);
8387
8433
  typeof Ge < "u" && (et.disabled = Ge);
8388
8434
  } else {
8389
- let Ge = ee + "-" + V.two(Xe + 1) + "-" + V.two(Fe), we = !ue.validRange[0] || Ge >= ue.validRange[0].substr(0, 10), Qe = !ue.validRange[1] || Ge <= ue.validRange[1].substr(0, 10);
8435
+ let Ge = ee + "-" + V.two(Xe + 1) + "-" + V.two(Ne), we = !ue.validRange[0] || Ge >= ue.validRange[0].substr(0, 10), Qe = !ue.validRange[1] || Ge <= ue.validRange[1].substr(0, 10);
8390
8436
  we && Qe || (et.disabled = !0);
8391
8437
  }
8392
8438
  ue.range && ue.rangeValues && (et.start = ue.rangeValues[0] === et.number, et.end = ue.rangeValues[1] === et.number, et.range = ue.rangeValues[0] && ue.rangeValues[1] && ue.rangeValues[0] <= et.number && ue.rangeValues[1] >= et.number);
@@ -8409,7 +8455,7 @@ function Ir() {
8409
8455
  typeof ye == "object" && (ye = this.getAttribute("data-view")), ["days", "months", "years"].includes(ye) && W.view !== ye && (W.view = ye);
8410
8456
  }, et = function(ye) {
8411
8457
  ye && (W.options = $e[W.view]), $e[W.view]?.update.call(W, Ae);
8412
- }, Fe = function() {
8458
+ }, Ne = function() {
8413
8459
  let ye = null;
8414
8460
  return ae(W.range) ? Array.isArray(W.rangeValues) && (ae(W.numeric) ? ye = W.rangeValues : ye = [
8415
8461
  V.numToDate(W.rangeValues[0]).substring(0, 10),
@@ -8441,13 +8487,13 @@ function Ir() {
8441
8487
  let h = de(_e.value, je());
8442
8488
  we(new Date(Date.UTC(...h))), W.view !== "days" ? W.view = "days" : _e.disabled || (Ie(_e), ae(W.range) ? (W.rangeValues && (W.rangeValues[0] >= _e.number || W.rangeValues[1]) && te(), _e.range = !0, W.rangeValues ? (_e.end = !0, W.rangeValues[1] = _e.number) : (_e.start = !0, W.rangeValues = [_e.number, null])) : O());
8443
8489
  }, O = function(ye) {
8444
- W.setValue(Fe()), W.close({ origin: "button" });
8490
+ W.setValue(Ne()), W.close({ origin: "button" });
8445
8491
  }, se = function() {
8446
8492
  W.setValue(""), W.close({ origin: "button" });
8447
8493
  }, de = function(ye, _e) {
8448
8494
  let h = [Ae.getUTCFullYear(), Ae.getUTCMonth(), Ae.getUTCDate(), W.hour, W.minute, 0];
8449
8495
  return h[_e] = ye, h;
8450
- }, Ne = function(ye) {
8496
+ }, Fe = function(ye) {
8451
8497
  tt();
8452
8498
  let _e;
8453
8499
  W.view === "days" ? _e = de(Ae.getUTCMonth() + ye, 1) : W.view === "months" ? _e = de(Ae.getUTCFullYear() + ye, 0) : W.view === "years" && (_e = de(Ae.getUTCFullYear() + ye * 16, 0)), we(_e), et();
@@ -8456,15 +8502,15 @@ function Ir() {
8456
8502
  }, Ke = function(ye) {
8457
8503
  if (ye && ye.type === "keydown") {
8458
8504
  let _e = W.options.length, h = W.options.indexOf(W.cursor.current) - He(ye);
8459
- h < 0 && (Ne(-1), h = _e + h), Ie(W.options[h]);
8505
+ h < 0 && (Fe(-1), h = _e + h), Ie(W.options[h]);
8460
8506
  } else
8461
- Ne(-1);
8507
+ Fe(-1);
8462
8508
  }, ze = function(ye) {
8463
8509
  if (ye && ye.type === "keydown") {
8464
8510
  let _e = W.options.length, h = W.options.indexOf(W.cursor.current) + He(ye);
8465
- h >= _e && (Ne(1), h = h - _e), Ie(W.options[h]);
8511
+ h >= _e && (Fe(1), h = h - _e), Ie(W.options[h]);
8466
8512
  } else
8467
- Ne(1);
8513
+ Fe(1);
8468
8514
  }, it = function() {
8469
8515
  let ye = W.input;
8470
8516
  return ye && ye.current ? ye = ye.current : W.input && (ye = W.input), ye;
@@ -9046,9 +9092,9 @@ function Ir() {
9046
9092
  let Me = ue.rows;
9047
9093
  if (Me) {
9048
9094
  let Ze = !0, je = Me.length, rt = 0, et = 0;
9049
- for (let Fe = 0; Fe < je; Fe++) {
9050
- let Xe = Me[Fe].height || Ce;
9051
- rt += Xe, Me[Fe] === ue.result[0] && (Ze = !1), Ze && (et += Xe);
9095
+ for (let Ne = 0; Ne < je; Ne++) {
9096
+ let Xe = Me[Ne].height || Ce;
9097
+ rt += Xe, Me[Ne] === ue.result[0] && (Ze = !1), Ze && (et += Xe);
9052
9098
  }
9053
9099
  return $e.style.height = rt + "px", et;
9054
9100
  }
@@ -9056,13 +9102,13 @@ function Ir() {
9056
9102
  }, ee = function(Me) {
9057
9103
  let Ze = ue.rows;
9058
9104
  if (Ze) {
9059
- let je, rt = Ze.length, et = Ae.scrollTop, Fe = null;
9060
- ue.type === "searchbar" || ue.type === "picker" ? Fe = et + (Ae.offsetHeight || ue.height) : Fe = et + (ue.height || Ae.offsetHeight);
9105
+ let je, rt = Ze.length, et = Ae.scrollTop, Ne = null;
9106
+ ue.type === "searchbar" || ue.type === "picker" ? Ne = et + (Ae.offsetHeight || ue.height) : Ne = et + (ue.height || Ae.offsetHeight);
9061
9107
  let Xe = [], Ge = 0;
9062
9108
  for (let tt = 0; tt < rt; tt++)
9063
9109
  if (Ze[tt].visible !== !1) {
9064
9110
  let Ie = Ze[tt].height || Ce;
9065
- Ge + Ie > et && Ge < Fe && Xe.push(Ze[tt]), Ge += Ie;
9111
+ Ge + Ie > et && Ge < Ne && Xe.push(Ze[tt]), Ge += Ie;
9066
9112
  }
9067
9113
  if (Me || !re(Xe, ue.result)) {
9068
9114
  ue.result = Xe;
@@ -9138,7 +9184,7 @@ function Ir() {
9138
9184
  });
9139
9185
  let rt = ee.type === "auto", et = ee.onload;
9140
9186
  ee.onload = null;
9141
- let Fe = ee.onchange;
9187
+ let Ne = ee.onchange;
9142
9188
  ee.onchange = null, typeof ee.newOptions < "u" && (ee.insert = ee.newOptions);
9143
9189
  const Xe = function(G, be) {
9144
9190
  let We = ee.rows[G];
@@ -9174,7 +9220,7 @@ function Ir() {
9174
9220
  let We;
9175
9221
  Array.isArray(G) ? We = G : typeof G == "string" ? We = G.split(ee.divisor ?? ";") : We = [G], Ee = [], Array.isArray(W) && W.map(function(ye) {
9176
9222
  ye.selected = We.some((_e) => _e == ye.value), ye.selected && Ee.push(ye);
9177
- }), ee.isClosed() && Ie(), be || V.call(ee, Fe, "change", {
9223
+ }), ee.isClosed() && Ie(), be || V.call(ee, Ne, "change", {
9178
9224
  instance: ee,
9179
9225
  value: O()
9180
9226
  });
@@ -9211,17 +9257,17 @@ function Ir() {
9211
9257
  instance: ee,
9212
9258
  ...G
9213
9259
  });
9214
- }, Ne = function(G) {
9260
+ }, Fe = function(G) {
9215
9261
  if (G && G.length)
9216
9262
  return G.map((be) => typeof be == "string" || typeof be == "number" ? { value: be, text: be } : typeof be == "object" && be.hasOwnProperty("name") ? { value: be.id, text: be.name } : be);
9217
9263
  }, He = function(G) {
9218
- G = Ne(G), $e = De(ee), G && G.forEach((be) => {
9264
+ G = Fe(G), $e = De(ee), G && G.forEach((be) => {
9219
9265
  ee.data.push(be);
9220
9266
  }), tt(), typeof ee.value < "u" && _(ee.value, !0), V.call(ee, et, "load", {
9221
9267
  instance: ee
9222
9268
  }), ee.input.classList.remove("lm-dropdown-loading");
9223
9269
  }, Ke = function(G) {
9224
- G = Ne(G), Ge(!0);
9270
+ G = Fe(G), Ge(!0);
9225
9271
  let be = W.filter((We) => We.selected === !0);
9226
9272
  G && G.forEach((We) => {
9227
9273
  be.push(We);
@@ -9403,107 +9449,107 @@ function Ir() {
9403
9449
  Qe in this || (this[Qe] = Ge[Qe]);
9404
9450
  }
9405
9451
  }
9406
- const ge = function(Fe, Xe, Ge) {
9407
- if (typeof Fe == "function") {
9452
+ const ge = function(Ne, Xe, Ge) {
9453
+ if (typeof Ne == "function") {
9408
9454
  let we = Object.values(Ge);
9409
- return Fe(...we);
9455
+ return Ne(...we);
9410
9456
  } else this.tagName && this.dispatchEvent(new z(Xe, Ge));
9411
9457
  }, V = [];
9412
9458
  let Ce = {}, ce = {}, he = 10;
9413
- const re = [], De = 20, Le = function(Fe) {
9459
+ const re = [], De = 20, Le = function(Ne) {
9414
9460
  let Xe = De;
9415
9461
  for (let Ge = 0; Ge < V.length; Ge++) {
9416
9462
  const we = parseInt(V[Ge].el.style.zIndex);
9417
9463
  we > Xe && (Xe = we);
9418
9464
  }
9419
- Fe.style.zIndex = Xe + 1;
9420
- }, Ue = function(Fe) {
9421
- Fe.style.zIndex = De;
9422
- }, ae = function(Fe) {
9465
+ Ne.style.zIndex = Xe + 1;
9466
+ }, Ue = function(Ne) {
9467
+ Ne.style.zIndex = De;
9468
+ }, ae = function(Ne) {
9423
9469
  let Xe, Ge;
9424
- return Fe.changedTouches && Fe.changedTouches[0] ? (Xe = Fe.changedTouches[0].clientX, Ge = Fe.changedTouches[0].clientY) : (Xe = Fe.clientX, Ge = Fe.clientY), [Xe, Ge];
9425
- }, Te = function(Fe) {
9426
- return Fe = Fe || window.event, Fe.buttons ? Fe.buttons : Fe.button ? Fe.button : Fe.which;
9427
- }, Be = function(Fe) {
9470
+ return Ne.changedTouches && Ne.changedTouches[0] ? (Xe = Ne.changedTouches[0].clientX, Ge = Ne.changedTouches[0].clientY) : (Xe = Ne.clientX, Ge = Ne.clientY), [Xe, Ge];
9471
+ }, Te = function(Ne) {
9472
+ return Ne = Ne || window.event, Ne.buttons ? Ne.buttons : Ne.button ? Ne.button : Ne.which;
9473
+ }, Be = function(Ne) {
9428
9474
  typeof ce.action == "function" && ce.action(), setTimeout(function() {
9429
9475
  ce.e && (ce.e.style.cursor = ""), ce = {}, Ce = {
9430
9476
  x: null,
9431
9477
  y: null
9432
9478
  };
9433
9479
  }, 0);
9434
- }, ue = function(Fe) {
9435
- if (!Te(Fe))
9480
+ }, ue = function(Ne) {
9481
+ if (!Te(Ne))
9436
9482
  return !1;
9437
- let [Xe, Ge] = ae(Fe);
9483
+ let [Xe, Ge] = ae(Ne);
9438
9484
  if (ce.type === "move") {
9439
9485
  Ce && Ce.x == null && Ce.y == null && (Ce.x = Xe, Ce.y = Ge);
9440
9486
  let we = Xe - Ce.x, Qe = Ge - Ce.y, tt = ce.e.offsetTop + Qe, Ie = ce.e.offsetLeft + we;
9441
9487
  ce.top = tt, ce.left = Ie, ce.e.style.top = tt + "px", ce.e.style.left = Ie + "px", Ce.x = Xe, Ce.y = Ge, Ce.top = tt, Ce.left = Ie;
9442
9488
  } else if (ce.type === "resize") {
9443
9489
  let we = null, Qe = null, tt = null, Ie = null;
9444
- ce.d === "e-resize" || ce.d === "ne-resize" || ce.d === "se-resize" ? (tt = ce.w + (Xe - ce.x), Fe.shiftKey && (Ie = ce.h + (Xe - ce.x) * (ce.h / ce.w))) : (ce.d === "w-resize" || ce.d === "nw-resize" || ce.d === "sw-resize") && (Qe = ce.l + (Xe - ce.x), Qe >= ce.l && (Qe = ce.l), tt = ce.l + ce.w - Qe, Fe.shiftKey && (Ie = ce.h - (Xe - ce.x) * (ce.h / ce.w))), ce.d === "s-resize" || ce.d === "se-resize" || ce.d === "sw-resize" ? Ie || (Ie = ce.h + (Ge - ce.y)) : (ce.d === "n-resize" || ce.d === "ne-resize" || ce.d === "nw-resize") && (we = ce.t + (Ge - ce.y), we >= ce.t && (we = ce.t), Ie = ce.t + ce.h - we), we && (ce.e.style.top = we + "px"), Qe && (ce.e.style.left = Qe + "px"), tt && (ce.e.style.width = tt + "px"), Ie && (ce.e.style.height = Ie + "px");
9490
+ ce.d === "e-resize" || ce.d === "ne-resize" || ce.d === "se-resize" ? (tt = ce.w + (Xe - ce.x), Ne.shiftKey && (Ie = ce.h + (Xe - ce.x) * (ce.h / ce.w))) : (ce.d === "w-resize" || ce.d === "nw-resize" || ce.d === "sw-resize") && (Qe = ce.l + (Xe - ce.x), Qe >= ce.l && (Qe = ce.l), tt = ce.l + ce.w - Qe, Ne.shiftKey && (Ie = ce.h - (Xe - ce.x) * (ce.h / ce.w))), ce.d === "s-resize" || ce.d === "se-resize" || ce.d === "sw-resize" ? Ie || (Ie = ce.h + (Ge - ce.y)) : (ce.d === "n-resize" || ce.d === "ne-resize" || ce.d === "nw-resize") && (we = ce.t + (Ge - ce.y), we >= ce.t && (we = ce.t), Ie = ce.t + ce.h - we), we && (ce.e.style.top = we + "px"), Qe && (ce.e.style.left = Qe + "px"), tt && (ce.e.style.width = tt + "px"), Ie && (ce.e.style.height = Ie + "px");
9445
9491
  }
9446
9492
  };
9447
9493
  typeof document < "u" && (document.addEventListener("mouseup", Be), document.addEventListener("mousemove", ue));
9448
- const ke = function(Fe) {
9449
- return Fe === !0 || Fe === 1 || Fe === "true";
9494
+ const ke = function(Ne) {
9495
+ return Ne === !0 || Ne === 1 || Ne === "true";
9450
9496
  }, xe = function() {
9451
- let Fe = re, Xe = Fe.length, Ge = 10, we = 55, Qe = window.innerWidth, tt = window.innerHeight;
9497
+ let Ne = re, Xe = Ne.length, Ge = 10, we = 55, Qe = window.innerWidth, tt = window.innerHeight;
9452
9498
  for (let Ie = 0; Ie < Xe; Ie++) {
9453
- let _ = Fe[Ie];
9499
+ let _ = Ne[Ie];
9454
9500
  _.el.style.left = Ge + "px", _.el.style.top = tt - we + "px", Ge += 205, Qe - Ge < 205 && (Ge = 10, we += 50);
9455
9501
  }
9456
- }, ee = function(Fe, Xe) {
9457
- if (Fe.el.style.marginLeft || Fe.el.style.marginTop)
9458
- return Fe.el.classList.add("action"), Ae(Fe), setTimeout(function() {
9459
- Fe.el.classList.remove("action"), Xe(Fe);
9502
+ }, ee = function(Ne, Xe) {
9503
+ if (Ne.el.style.marginLeft || Ne.el.style.marginTop)
9504
+ return Ne.el.classList.add("action"), Ae(Ne), setTimeout(function() {
9505
+ Ne.el.classList.remove("action"), Xe(Ne);
9460
9506
  }, 0), !0;
9461
- }, W = function(Fe) {
9462
- ee(Fe, W) || (re.push(Fe), Fe.el.top = Fe.el.offsetTop, Fe.el.left = Fe.el.offsetLeft, Fe.el.style.top || (Fe.el.style.top = Fe.el.top + "px"), Fe.el.style.left || (Fe.el.style.left = Fe.el.left + "px"), Fe.el.translateY = 0, Fe.el.translateX = 0, setTimeout(function() {
9463
- xe(), Fe.minimized = !0;
9507
+ }, W = function(Ne) {
9508
+ ee(Ne, W) || (re.push(Ne), Ne.el.top = Ne.el.offsetTop, Ne.el.left = Ne.el.offsetLeft, Ne.el.style.top || (Ne.el.style.top = Ne.el.top + "px"), Ne.el.style.left || (Ne.el.style.left = Ne.el.left + "px"), Ne.el.translateY = 0, Ne.el.translateX = 0, setTimeout(function() {
9509
+ xe(), Ne.minimized = !0;
9464
9510
  }, 10));
9465
- }, Ee = function(Fe) {
9466
- re.splice(re.indexOf(Fe), 1), Fe.minimized = !1, Fe.el.style.top = Fe.el.top + "px", Fe.el.style.left = Fe.el.left + "px", setTimeout(() => {
9511
+ }, Ee = function(Ne) {
9512
+ re.splice(re.indexOf(Ne), 1), Ne.minimized = !1, Ne.el.style.top = Ne.el.top + "px", Ne.el.style.left = Ne.el.left + "px", setTimeout(() => {
9467
9513
  xe();
9468
9514
  }, 10), setTimeout(() => {
9469
- Fe.top === "" && (Fe.el.style.top = ""), Fe.left === "" && (Fe.el.style.left = "");
9515
+ Ne.top === "" && (Ne.el.style.top = ""), Ne.left === "" && (Ne.el.style.left = "");
9470
9516
  }, 400);
9471
- }, Ae = function(Fe) {
9472
- if (Fe.el.style.marginLeft) {
9473
- let Xe = Fe.el.offsetLeft;
9474
- Fe.el.style.marginLeft = "", Fe.left = Xe;
9517
+ }, Ae = function(Ne) {
9518
+ if (Ne.el.style.marginLeft) {
9519
+ let Xe = Ne.el.offsetLeft;
9520
+ Ne.el.style.marginLeft = "", Ne.left = Xe;
9475
9521
  }
9476
- if (Fe.el.style.marginTop) {
9477
- let Xe = Fe.el.offsetTop;
9478
- Fe.el.style.marginTop = "", Fe.top = Xe;
9522
+ if (Ne.el.style.marginTop) {
9523
+ let Xe = Ne.el.offsetTop;
9524
+ Ne.el.style.marginTop = "", Ne.top = Xe;
9479
9525
  }
9480
- }, $e = function(Fe) {
9481
- if (!ke(Fe["auto-adjust"]))
9526
+ }, $e = function(Ne) {
9527
+ if (!ke(Ne["auto-adjust"]))
9482
9528
  return !1;
9483
- Fe.el.style.marginLeft = "";
9529
+ Ne.el.style.marginLeft = "";
9484
9530
  let Xe = window.innerWidth, Ge = 10;
9485
- Fe.position && (Fe.position === "absolute" ? document.documentElement.offsetWidth : Fe.position !== "center" && (Ge = 0));
9486
- let we = Fe.el.getBoundingClientRect(), Qe = Xe - (we.left + we.width), tt = 0;
9487
- Fe.position === "absolute" ? Qe < 0 && (tt = Qe - Ge - 10) : Qe < 0 && (tt = Qe - Ge), we.left < 0 && (tt = Ge - we.left), tt !== 0 && (Fe.el.style.marginLeft = tt + "px");
9488
- }, Me = function(Fe) {
9489
- if (!ke(Fe["auto-adjust"]))
9531
+ Ne.position && (Ne.position === "absolute" ? document.documentElement.offsetWidth : Ne.position !== "center" && (Ge = 0));
9532
+ let we = Ne.el.getBoundingClientRect(), Qe = Xe - (we.left + we.width), tt = 0;
9533
+ Ne.position === "absolute" ? Qe < 0 && (tt = Qe - Ge - 10) : Qe < 0 && (tt = Qe - Ge), we.left < 0 && (tt = Ge - we.left), tt !== 0 && (Ne.el.style.marginLeft = tt + "px");
9534
+ }, Me = function(Ne) {
9535
+ if (!ke(Ne["auto-adjust"]))
9490
9536
  return !1;
9491
- Fe.el.style.marginTop = "";
9537
+ Ne.el.style.marginTop = "";
9492
9538
  let Xe = window.innerHeight, Ge = 10;
9493
- Fe.position && (Fe.position === "absolute" ? document.documentElement.offsetHeight : Fe.position !== "center" && (Ge = 0));
9494
- let we = Fe.el.getBoundingClientRect(), Qe = Xe - (we.top + we.height), tt = 0;
9495
- Fe.position === "absolute" ? Qe < 5 && (tt = -1 * we.height - Ge - 12, we.top + tt < 0 && (tt = -we.top + 10)) : Qe < 0 && (tt = Qe - Ge), we.top < 0 && (tt = Ge - we.top), tt !== 0 && (Fe.el.style.marginTop = tt + "px");
9496
- }, Ze = function(Fe) {
9539
+ Ne.position && (Ne.position === "absolute" ? document.documentElement.offsetHeight : Ne.position !== "center" && (Ge = 0));
9540
+ let we = Ne.el.getBoundingClientRect(), Qe = Xe - (we.top + we.height), tt = 0;
9541
+ Ne.position === "absolute" ? Qe < 5 && (tt = -1 * we.height - Ge - 12, we.top + tt < 0 && (tt = -we.top + 10)) : Qe < 0 && (tt = Qe - Ge), we.top < 0 && (tt = Ge - we.top), tt !== 0 && (Ne.el.style.marginTop = tt + "px");
9542
+ }, Ze = function(Ne) {
9497
9543
  let Xe = [];
9498
- if (Fe)
9499
- for (; Fe.firstChild; )
9500
- Xe.push(Fe.firstChild), Fe.firstChild.remove();
9544
+ if (Ne)
9545
+ for (; Ne.firstChild; )
9546
+ Xe.push(Ne.firstChild), Ne.firstChild.remove();
9501
9547
  return Xe;
9502
- }, je = function(Fe, Xe) {
9548
+ }, je = function(Ne, Xe) {
9503
9549
  if (Xe && Xe.length)
9504
9550
  for (; Xe[0]; )
9505
- Fe.appendChild(Xe.shift());
9506
- }, rt = function(Fe, { onchange: Xe, onload: Ge }) {
9551
+ Ne.appendChild(Xe.shift());
9552
+ }, rt = function(Ne, { onchange: Xe, onload: Ge }) {
9507
9553
  let we = this, Qe = null, tt = null;
9508
9554
  this.tagName && (tt = Ze(this), this.addEventListener("dragstart", (de) => {
9509
9555
  de.preventDefault();
@@ -9515,12 +9561,12 @@ function Ir() {
9515
9561
  }, O = function(de) {
9516
9562
  if (Te(de))
9517
9563
  return;
9518
- let [Ne, He] = ae(de), Ke = we.el, ze = Ke.getBoundingClientRect();
9564
+ let [Fe, He] = ae(de), Ke = we.el, ze = Ke.getBoundingClientRect();
9519
9565
  ce.type = null, ce.d = null, ce.e = Ke, ce.w = ze.width, ce.h = ze.height, ce.t = ze.top, ce.l = ze.left, ke(we.resizable) && (de.clientY - ze.top < he ? ze.width - (de.clientX - ze.left) < he ? Ke.style.cursor = "ne-resize" : de.clientX - ze.left < he ? Ke.style.cursor = "nw-resize" : Ke.style.cursor = "n-resize" : ze.height - (de.clientY - ze.top) < he ? ze.width - (de.clientX - ze.left) < he ? Ke.style.cursor = "se-resize" : de.clientX - ze.left < he ? Ke.style.cursor = "sw-resize" : Ke.style.cursor = "s-resize" : ze.width - (de.clientX - ze.left) < he ? Ke.style.cursor = "e-resize" : de.clientX - ze.left < he ? Ke.style.cursor = "w-resize" : Ke.style.cursor = "", Ke.style.cursor ? (ce.type = "resize", ce.d = Ke.style.cursor) : (ce.type = null, ce.d = null)), ce.type == null && ke(we.draggable) && (He - ze.top < 40 ? Ke.style.cursor = "move" : Ke.style.cursor = "", Ke.style.cursor ? (ce.type = "move", ce.d = Ke.style.cursor) : (ce.type = null, ce.d = null));
9520
9566
  }, se = function(de) {
9521
9567
  if (!we.minimized) {
9522
- let [Ne, He] = ae(de);
9523
- ce.x = Ne, ce.y = He;
9568
+ let [Fe, He] = ae(de);
9569
+ ce.x = Fe, ce.y = He;
9524
9570
  let Ke = we.el, ze = Ke.getBoundingClientRect();
9525
9571
  ce.e = Ke, ce.w = ze.width, ce.h = ze.height, ce.t = ze.top, ce.l = ze.left, ce.type === "resize" ? (Ke.style.width || (Ke.style.width = ce.w + "px"), Ke.style.height || (Ke.style.height = ce.h + "px"), ce.action = function() {
9526
9572
  we.width = parseInt(Ke.style.width), we.height = parseInt(Ke.style.height), ce.e.classList.remove("action"), ge.call(we, we.onresize, "resize", {
@@ -9552,14 +9598,14 @@ function Ir() {
9552
9598
  }));
9553
9599
  }, we.isClosed = function() {
9554
9600
  return we.closed;
9555
- }, (!Fe || typeof Fe != "string") && (Fe = ""), we.settings = {
9601
+ }, (!Ne || typeof Ne != "string") && (Ne = ""), we.settings = {
9556
9602
  getRoot: function() {
9557
9603
  return we.root;
9558
9604
  }
9559
9605
  }, Ge(() => {
9560
9606
  we.width && (we.el.style.width = we.width + "px"), we.height && (we.el.style.height = we.height + "px"), we.top && (we.el.style.top = we.top + "px"), we.left && (we.el.style.left = we.left + "px"), we.position === "absolute" || we.position === "right" || we.position === "bottom" || we.position === "left" || (!we.width && we.el.offsetWidth && (we.width = we.el.offsetWidth), !we.height && we.el.offsetHeight && (we.height = we.el.offsetHeight), (we.position === "center" || !we.top) && (we.top = (window.innerHeight - we.height) / 2), (we.position === "center" || !we.left) && (we.left = (window.innerWidth - we.width) / 2), document.documentElement.clientWidth < 800 && we.height > 300 && we.el.classList.add("fullscreen")), $e(we), Me(we), we.backdrop === !0 && (Qe = document.createElement("div"), Qe.classList.add("lm-modal-backdrop"), Qe.addEventListener("click", () => {
9561
9607
  we.close({ origin: "backdrop" });
9562
- }), we.closed === !1 && we.el.parentNode.insertBefore(Qe, we.el)), we.content && (typeof we.content == "string" ? Fe = we.content : typeof we.content == "object" && we.content.tagName && we.root.appendChild(we.content)), we.el.addEventListener("focusout", function(de) {
9608
+ }), we.closed === !1 && we.el.parentNode.insertBefore(Qe, we.el)), we.content && (typeof we.content == "string" ? Ne = we.content : typeof we.content == "object" && we.content.tagName && we.root.appendChild(we.content)), we.el.addEventListener("focusout", function(de) {
9563
9609
  we.el.contains(de.relatedTarget) || (ke(we["auto-close"]) && we.close({ origin: "focusout" }), we.el.classList.remove("lm-modal-focus"));
9564
9610
  }), we.el.addEventListener("focusin", function(de) {
9565
9611
  we.el.classList.add("lm-modal-focus");
@@ -9582,11 +9628,11 @@ function Ir() {
9582
9628
  })) : de === "position" && (we.position ? we.position === "center" ? (we.top = (window.innerHeight - we.el.offsetHeight) / 2, we.left = (window.innerWidth - we.el.offsetWidth) / 2) : (we.top = "", we.left = "") : (we.top || (we.top = (window.innerHeight - we.el.offsetHeight) / 2), we.left || (we.left = (window.innerWidth - we.el.offsetWidth) / 2)));
9583
9629
  }), (de) => de`<div class="lm-modal" animation="{{self.animation}}" position="{{self.position}}" closed="{{self.closed}}" closable="{{self.closable}}" minimizable="{{self.minimizable}}" minimized="{{self.minimized}}" overflow="{{self.overflow}}" :top="self.top" :left="self.left" :width="self.width" :height="self.height" tabindex="-1" role="modal" onmousedown="${se}" onmousemove="${O}" onclick="${_}">
9584
9630
  <div class="lm-modal-title" data-title="{{self.title}}" data-icon="{{self.icon}}"><div class="lm-modal-icon">{{self.icon}}</div><div>{{self.title}}</div><div class="lm-modal-icon lm-modal-minimize" tabindex="0"></div><div class="lm-modal-icon lm-modal-close" tabindex="0"></div></div>
9585
- <div :ref="self.root">${Fe}</div>
9631
+ <div :ref="self.root">${Ne}</div>
9586
9632
  </div>`;
9587
- }, et = function(Fe, Xe) {
9588
- if (typeof Fe == "object") {
9589
- let Ge = Ze(Fe), we = X.render(rt, Fe, Xe);
9633
+ }, et = function(Ne, Xe) {
9634
+ if (typeof Ne == "object") {
9635
+ let Ge = Ze(Ne), we = X.render(rt, Ne, Xe);
9590
9636
  return je(we.children[1], Ge), Xe;
9591
9637
  } else
9592
9638
  return rt.call(this);
@@ -10029,19 +10075,19 @@ function Ir() {
10029
10075
  let v = /{{(.*?)}}/g;
10030
10076
  const X = function(_, O, se) {
10031
10077
  if (_ = _.split("."), _.length) {
10032
- let de = this, Ne = null;
10078
+ let de = this, Fe = null;
10033
10079
  for (; _.length > 1; )
10034
- if (Ne = _.shift(), de.hasOwnProperty(Ne))
10035
- de = de[Ne];
10080
+ if (Fe = _.shift(), de.hasOwnProperty(Fe))
10081
+ de = de[Fe];
10036
10082
  else {
10037
10083
  if (typeof O > "u")
10038
10084
  return;
10039
- de[Ne] = {}, de = de[Ne];
10085
+ de[Fe] = {}, de = de[Fe];
10040
10086
  }
10041
- if (Ne = _.shift(), typeof O < "u")
10042
- return se === !0 ? delete de[Ne] : de[Ne] = O, !0;
10087
+ if (Fe = _.shift(), typeof O < "u")
10088
+ return se === !0 ? delete de[Fe] : de[Fe] = O, !0;
10043
10089
  if (de)
10044
- return de[Ne];
10090
+ return de[Fe];
10045
10091
  }
10046
10092
  return !1;
10047
10093
  }, z = function() {
@@ -10059,11 +10105,11 @@ function Ir() {
10059
10105
  const Ce = function(_, O) {
10060
10106
  let se = _.self;
10061
10107
  if (typeof se == "object") {
10062
- let de = _.change, Ne = _.events[O], He = se[O];
10108
+ let de = _.change, Fe = _.events[O], He = se[O];
10063
10109
  typeof He > "u" && (He = ""), Object.defineProperty(se, O, {
10064
10110
  set: function(Ke) {
10065
10111
  let ze = He;
10066
- He = Ke, Ne && Ne.forEach((it) => {
10112
+ He = Ke, Fe && Fe.forEach((it) => {
10067
10113
  it();
10068
10114
  }), de && de.length && de.forEach((it) => {
10069
10115
  typeof it == "function" && it.call(se, O, ze, Ke);
@@ -10131,7 +10177,7 @@ function Ir() {
10131
10177
  "wbr"
10132
10178
  ].includes(G.toLowerCase()) : !1;
10133
10179
  }
10134
- const Ne = function(G) {
10180
+ const Fe = function(G) {
10135
10181
  this.current.children || (this.current.children = []), this.current.children.push({
10136
10182
  type: "#text",
10137
10183
  parent: this.current,
@@ -10146,7 +10192,7 @@ function Ir() {
10146
10192
  }, ze = function() {
10147
10193
  if (typeof this.text < "u") {
10148
10194
  const G = this.text.replace(/\r?\n\s+/g, "");
10149
- G && Ne.call(this, { name: "textContent", value: G }), delete this.text;
10195
+ G && Fe.call(this, { name: "textContent", value: G }), delete this.text;
10150
10196
  }
10151
10197
  }, it = function() {
10152
10198
  if (typeof this.comments < "u") {
@@ -10212,7 +10258,7 @@ function Ir() {
10212
10258
  if (G === "$" && this.reference) {
10213
10259
  ze.call(this);
10214
10260
  let be = { name: "textContent" };
10215
- be.value = Ke.call(this, be), Ne.call(this, be);
10261
+ be.value = Ke.call(this, be), Fe.call(this, be);
10216
10262
  } else
10217
10263
  A === 1 && ze.call(this), this.text || (this.text = ""), this.text += G, A === 2 && ze.call(this);
10218
10264
  }, te.comments = function(G) {
@@ -10265,7 +10311,7 @@ function Ir() {
10265
10311
  m();
10266
10312
  } else
10267
10313
  Ee(Le(s), r, Be(a.value));
10268
- }, Ne = function(s) {
10314
+ }, Fe = function(s) {
10269
10315
  try {
10270
10316
  let a = null;
10271
10317
  return s = s.replace(v, function(r, e) {
@@ -10293,12 +10339,12 @@ function Ir() {
10293
10339
  se(a.expression, r, !0), _.events[a.index] = r;
10294
10340
  } else if (V(a.value).length)
10295
10341
  se(a.value, function() {
10296
- let e = Ne(a.value);
10342
+ let e = Fe(a.value);
10297
10343
  Ee(Le(s), a.name, e);
10298
10344
  }, !0);
10299
10345
  else {
10300
10346
  let e = a.value;
10301
- e.match(v) && (e = Ne(e)), Ee(Le(s), a.name, e, !0);
10347
+ e.match(v) && (e = Fe(e)), Ee(Le(s), a.name, e, !0);
10302
10348
  }
10303
10349
  }, it = function(s, a) {
10304
10350
  let r = a.expression || a.value;
@@ -10492,11 +10538,11 @@ function Ir() {
10492
10538
  try {
10493
10539
  let se = _.toString().replace(/[\[\]]/g, ".").split(".");
10494
10540
  (se[0] === "self" || se[0] === "this") && se.shift(), se = se.filter((He) => He !== "");
10495
- let de = this, Ne;
10541
+ let de = this, Fe;
10496
10542
  for (; se.length; ) {
10497
10543
  let He = se.shift();
10498
- if (O && (typeof de == "object" && !Array.isArray(de) && (Ne = [de, He]), se.length === 0))
10499
- return Ne;
10544
+ if (O && (typeof de == "object" && !Array.isArray(de) && (Fe = [de, He]), se.length === 0))
10545
+ return Fe;
10500
10546
  if (de.hasOwnProperty(He) || typeof de[He] < "u")
10501
10547
  de = de[He];
10502
10548
  else
@@ -10555,15 +10601,15 @@ function Ir() {
10555
10601
  if (typeof _.val == "function")
10556
10602
  _.val() != se && _.val(se);
10557
10603
  else if (_.tagName === "SELECT" && _.getAttribute("multiple") !== null)
10558
- for (let Ne = 0; Ne < _.children.length; Ne++)
10559
- _.children[Ne].selected = se.indexOf(_.children[Ne].value) >= 0;
10604
+ for (let Fe = 0; Fe < _.children.length; Fe++)
10605
+ _.children[Fe].selected = se.indexOf(_.children[Fe].value) >= 0;
10560
10606
  else _.type === "checkbox" ? _.checked = !(!se || se === "0" || se === "false") : _.type === "radio" ? _.checked = _.value == se : _.getAttribute && _.getAttribute("contenteditable") ? _.innerHTML != se && (_.innerHTML = se) : (_.value = se, _.getAttribute && _.getAttribute("value") !== null && _.setAttribute("value", se));
10561
10607
  else typeof se == "object" || typeof se == "function" ? _[O] = se : ke(_) ? typeof _[O] < "u" && !(_.namespaceURI && _.namespaceURI.includes("svg")) ? _[O] = se : se === "" ? _.removeAttribute(O) : _.setAttribute(O, se) : _[O] = se;
10562
10608
  }, Ae = function(_) {
10563
10609
  let O = {}, se = null, de = this.attributes;
10564
10610
  if (de && de.length)
10565
- for (let Ne = 0; Ne < de.length; Ne++)
10566
- se = de[Ne].name, _ && typeof this[se] < "u" ? O[se] = this[se] : O[se] = de[Ne].value;
10611
+ for (let Fe = 0; Fe < de.length; Fe++)
10612
+ se = de[Fe].name, _ && typeof this[se] < "u" ? O[se] = this[se] : O[se] = de[Fe].value;
10567
10613
  return O;
10568
10614
  }, $e = function(_, O, se) {
10569
10615
  typeof _ == "object" && Object.defineProperty(_, O, {
@@ -10599,7 +10645,7 @@ function Ir() {
10599
10645
  let T = Ae.call(se, !0);
10600
10646
  je.setProperties.call(se, T, !0);
10601
10647
  }
10602
- let Ne = Array.from(arguments), He = {
10648
+ let Fe = Array.from(arguments), He = {
10603
10649
  self: se,
10604
10650
  ready: [],
10605
10651
  change: [],
@@ -10618,7 +10664,7 @@ function Ir() {
10618
10664
  else {
10619
10665
  $.currentLemon = He;
10620
10666
  const T = {
10621
- onload: (...A) => Fe(He, ...A),
10667
+ onload: (...A) => Ne(He, ...A),
10622
10668
  onchange: (...A) => Xe(He, ...A),
10623
10669
  track: (...A) => Ge(He, ...A),
10624
10670
  state: (...A) => Qe(He, ...A),
@@ -10638,7 +10684,7 @@ function Ir() {
10638
10684
  let A = document.createElement("div");
10639
10685
  for (He.elements[0].parentNode.insertBefore(A, He.elements[0]), He.elements.forEach((fe) => {
10640
10686
  fe.remove();
10641
- }), Ne[1] = A, je.render(...Ne); A.firstChild; )
10687
+ }), Fe[1] = A, je.render(...Fe); A.firstChild; )
10642
10688
  A.parentNode.insertBefore(A.firstChild, A);
10643
10689
  A.remove(), He = null;
10644
10690
  };
@@ -10677,10 +10723,10 @@ function Ir() {
10677
10723
  }, je.apply = function(_, O, se) {
10678
10724
  let de = _.innerHTML;
10679
10725
  _.textContent = "";
10680
- let Ne = function() {
10726
+ let Fe = function() {
10681
10727
  return rt(se), `<>${de}</>`;
10682
10728
  };
10683
- return je.render(Ne, _, O);
10729
+ return je.render(Fe, _, O);
10684
10730
  }, je.getProperties = function(_) {
10685
10731
  let O = {};
10686
10732
  for (let se in _)
@@ -10718,8 +10764,8 @@ function Ir() {
10718
10764
  return;
10719
10765
  if (typeof O != "function")
10720
10766
  return "Handler should be an function";
10721
- const Ne = (se && se.prefix ? se.prefix : "lm") + "-" + _;
10722
- if (!window.customElements.get(Ne)) {
10767
+ const Fe = (se && se.prefix ? se.prefix : "lm") + "-" + _;
10768
+ if (!window.customElements.get(Fe)) {
10723
10769
  class He extends HTMLElement {
10724
10770
  constructor() {
10725
10771
  super();
@@ -10741,14 +10787,14 @@ function Ir() {
10741
10787
  typeof this.ondisconnect == "function" && this.ondisconnect(this);
10742
10788
  }
10743
10789
  }
10744
- window.customElements.get(Ne) || window.customElements.define(Ne, He);
10790
+ window.customElements.get(Fe) || window.customElements.define(Fe, He);
10745
10791
  }
10746
10792
  }, je.h = function(_, O, ...se) {
10747
10793
  return { type: _, props: O || {}, children: se };
10748
10794
  }, je.Fragment = function(_) {
10749
10795
  return _.children;
10750
10796
  };
10751
- const et = "Hooks must be called at the top level of your component", Fe = function(_, O) {
10797
+ const et = "Hooks must be called at the top level of your component", Ne = function(_, O) {
10752
10798
  _.load = O;
10753
10799
  }, Xe = function(_, O) {
10754
10800
  _.change.push(O);
@@ -10756,7 +10802,7 @@ function Ir() {
10756
10802
  _.events[O] || (_.events[O] = []);
10757
10803
  }, we = function(_, O, se) {
10758
10804
  let de = {};
10759
- const Ne = (Ke) => {
10805
+ const Fe = (Ke) => {
10760
10806
  if (typeof _.path.initial > "u") {
10761
10807
  if (typeof Ke == "object") {
10762
10808
  let ze = _.path.elements;
@@ -10778,11 +10824,11 @@ function Ir() {
10778
10824
  return Ke;
10779
10825
  };
10780
10826
  return _.path = {
10781
- setValue: Ne,
10827
+ setValue: Fe,
10782
10828
  value: de,
10783
10829
  change: se,
10784
10830
  initial: O || {}
10785
- }, [de, Ne, He];
10831
+ }, [de, Fe, He];
10786
10832
  }, Qe = function(_, O, se) {
10787
10833
  const de = new Ie();
10788
10834
  return Object.defineProperty(de, "value", {
@@ -10794,7 +10840,7 @@ function Ir() {
10794
10840
  }), de;
10795
10841
  };
10796
10842
  je.onload = function(_) {
10797
- return $.currentLemon || z(et), Fe($.currentLemon, _);
10843
+ return $.currentLemon || z(et), Ne($.currentLemon, _);
10798
10844
  }, je.onchange = function(_) {
10799
10845
  return $.currentLemon || z(et), Xe($.currentLemon, _);
10800
10846
  }, je.track = function(_) {
@@ -10804,9 +10850,9 @@ function Ir() {
10804
10850
  };
10805
10851
  const tt = function(_, O) {
10806
10852
  let se = _.view(Me);
10807
- se && se.length && se.forEach((de, Ne) => {
10808
- let He = _.values[Ne];
10809
- (O && O === de || de !== He) && (_.values[Ne] = de, typeof _.events[Ne] == "function" && _.events[Ne]());
10853
+ se && se.length && se.forEach((de, Fe) => {
10854
+ let He = _.values[Fe];
10855
+ (O && O === de || de !== He) && (_.values[Fe] = de, typeof _.events[Fe] == "function" && _.events[Fe]());
10810
10856
  });
10811
10857
  }, Ie = function() {
10812
10858
  };
@@ -10827,23 +10873,23 @@ function Ir() {
10827
10873
  }
10828
10874
  }, je.events = /* @__PURE__ */ (function() {
10829
10875
  class _ extends Event {
10830
- constructor(de, Ne, He) {
10876
+ constructor(de, Fe, He) {
10831
10877
  if (super(de, {
10832
10878
  bubbles: !0,
10833
10879
  composed: !0,
10834
10880
  ...He
10835
- }), Ne)
10836
- for (const Ke in Ne)
10837
- Ke in this || (this[Ke] = Ne[Ke]);
10881
+ }), Fe)
10882
+ for (const Ke in Fe)
10883
+ Ke in this || (this[Ke] = Fe[Ke]);
10838
10884
  }
10839
10885
  }
10840
- const O = function(se, de, Ne) {
10841
- return new _(se, de, Ne);
10886
+ const O = function(se, de, Fe) {
10887
+ return new _(se, de, Fe);
10842
10888
  };
10843
10889
  return {
10844
10890
  create: O,
10845
- dispatch(se, de, Ne) {
10846
- typeof de == "string" && (de = O(de, Ne)), se.dispatchEvent(de);
10891
+ dispatch(se, de, Fe) {
10892
+ typeof de == "string" && (de = O(de, Fe)), se.dispatchEvent(de);
10847
10893
  }
10848
10894
  };
10849
10895
  })(), je;
@@ -10961,21 +11007,21 @@ function Ir() {
10961
11007
  return _;
10962
11008
  }
10963
11009
  function W(Ie) {
10964
- for (var _ = "0123456789abcdef", O = "", se = Ie.length * 4, de, Ne = 0; Ne < se; Ne += 1)
10965
- de = Ie[Ne >> 2] >> (3 - Ne % 4) * 8, O += _.charAt(de >> 4 & 15) + _.charAt(de & 15);
11010
+ for (var _ = "0123456789abcdef", O = "", se = Ie.length * 4, de, Fe = 0; Fe < se; Fe += 1)
11011
+ de = Ie[Fe >> 2] >> (3 - Fe % 4) * 8, O += _.charAt(de >> 4 & 15) + _.charAt(de & 15);
10966
11012
  return O;
10967
11013
  }
10968
11014
  function Ee(Ie, _) {
10969
- var O, se, de, Ne;
10970
- return O = (Ie.lowOrder & 65535) + (_.lowOrder & 65535), se = (Ie.lowOrder >>> 16) + (_.lowOrder >>> 16) + (O >>> 16), de = (se & 65535) << 16 | O & 65535, O = (Ie.highOrder & 65535) + (_.highOrder & 65535) + (se >>> 16), se = (Ie.highOrder >>> 16) + (_.highOrder >>> 16) + (O >>> 16), Ne = (se & 65535) << 16 | O & 65535, new v(Ne, de);
11015
+ var O, se, de, Fe;
11016
+ return O = (Ie.lowOrder & 65535) + (_.lowOrder & 65535), se = (Ie.lowOrder >>> 16) + (_.lowOrder >>> 16) + (O >>> 16), de = (se & 65535) << 16 | O & 65535, O = (Ie.highOrder & 65535) + (_.highOrder & 65535) + (se >>> 16), se = (Ie.highOrder >>> 16) + (_.highOrder >>> 16) + (O >>> 16), Fe = (se & 65535) << 16 | O & 65535, new v(Fe, de);
10971
11017
  }
10972
11018
  function Ae(Ie, _, O, se) {
10973
- var de, Ne, He, Ke;
10974
- return de = (Ie.lowOrder & 65535) + (_.lowOrder & 65535) + (O.lowOrder & 65535) + (se.lowOrder & 65535), Ne = (Ie.lowOrder >>> 16) + (_.lowOrder >>> 16) + (O.lowOrder >>> 16) + (se.lowOrder >>> 16) + (de >>> 16), He = (Ne & 65535) << 16 | de & 65535, de = (Ie.highOrder & 65535) + (_.highOrder & 65535) + (O.highOrder & 65535) + (se.highOrder & 65535) + (Ne >>> 16), Ne = (Ie.highOrder >>> 16) + (_.highOrder >>> 16) + (O.highOrder >>> 16) + (se.highOrder >>> 16) + (de >>> 16), Ke = (Ne & 65535) << 16 | de & 65535, new v(Ke, He);
11019
+ var de, Fe, He, Ke;
11020
+ return de = (Ie.lowOrder & 65535) + (_.lowOrder & 65535) + (O.lowOrder & 65535) + (se.lowOrder & 65535), Fe = (Ie.lowOrder >>> 16) + (_.lowOrder >>> 16) + (O.lowOrder >>> 16) + (se.lowOrder >>> 16) + (de >>> 16), He = (Fe & 65535) << 16 | de & 65535, de = (Ie.highOrder & 65535) + (_.highOrder & 65535) + (O.highOrder & 65535) + (se.highOrder & 65535) + (Fe >>> 16), Fe = (Ie.highOrder >>> 16) + (_.highOrder >>> 16) + (O.highOrder >>> 16) + (se.highOrder >>> 16) + (de >>> 16), Ke = (Fe & 65535) << 16 | de & 65535, new v(Ke, He);
10975
11021
  }
10976
11022
  function $e(Ie, _, O, se, de) {
10977
- var Ne, He, Ke, ze;
10978
- return Ne = (Ie.lowOrder & 65535) + (_.lowOrder & 65535) + (O.lowOrder & 65535) + (se.lowOrder & 65535) + (de.lowOrder & 65535), He = (Ie.lowOrder >>> 16) + (_.lowOrder >>> 16) + (O.lowOrder >>> 16) + (se.lowOrder >>> 16) + (de.lowOrder >>> 16) + (Ne >>> 16), Ke = (He & 65535) << 16 | Ne & 65535, Ne = (Ie.highOrder & 65535) + (_.highOrder & 65535) + (O.highOrder & 65535) + (se.highOrder & 65535) + (de.highOrder & 65535) + (He >>> 16), He = (Ie.highOrder >>> 16) + (_.highOrder >>> 16) + (O.highOrder >>> 16) + (se.highOrder >>> 16) + (de.highOrder >>> 16) + (Ne >>> 16), ze = (He & 65535) << 16 | Ne & 65535, new v(ze, Ke);
11023
+ var Fe, He, Ke, ze;
11024
+ return Fe = (Ie.lowOrder & 65535) + (_.lowOrder & 65535) + (O.lowOrder & 65535) + (se.lowOrder & 65535) + (de.lowOrder & 65535), He = (Ie.lowOrder >>> 16) + (_.lowOrder >>> 16) + (O.lowOrder >>> 16) + (se.lowOrder >>> 16) + (de.lowOrder >>> 16) + (Fe >>> 16), Ke = (He & 65535) << 16 | Fe & 65535, Fe = (Ie.highOrder & 65535) + (_.highOrder & 65535) + (O.highOrder & 65535) + (se.highOrder & 65535) + (de.highOrder & 65535) + (He >>> 16), He = (Ie.highOrder >>> 16) + (_.highOrder >>> 16) + (O.highOrder >>> 16) + (se.highOrder >>> 16) + (de.highOrder >>> 16) + (Fe >>> 16), ze = (He & 65535) << 16 | Fe & 65535, new v(ze, Ke);
10979
11025
  }
10980
11026
  function Me(Ie, _, O) {
10981
11027
  return new v(
@@ -11012,7 +11058,7 @@ function Ir() {
11012
11058
  _.lowOrder ^ O.lowOrder ^ se.lowOrder
11013
11059
  );
11014
11060
  }
11015
- function Fe(Ie) {
11061
+ function Ne(Ie) {
11016
11062
  var _ = je(Ie, 1), O = je(Ie, 8), se = Ge(Ie, 7);
11017
11063
  return new v(
11018
11064
  _.highOrder ^ O.highOrder ^ se.highOrder,
@@ -11040,7 +11086,7 @@ function Ir() {
11040
11086
  for (var ae = 0; ae < we.length; ae += 32) {
11041
11087
  V = X[0], Ce = X[1], ce = X[2], he = X[3], re = X[4], De = X[5], Le = X[6], Ue = X[7];
11042
11088
  for (var Te = 0; Te < 80; Te++)
11043
- Te < 16 ? ge[Te] = new v(we[Te * 2 + ae], we[Te * 2 + ae + 1]) : ge[Te] = Ae(Xe(ge[Te - 2]), ge[Te - 7], Fe(ge[Te - 15]), ge[Te - 16]), Be = $e(Ue, et(re), Ze(re, De, Le), z[Te], ge[Te]), ue = Ee(rt(V), Me(V, Ce, ce)), Ue = Le, Le = De, De = re, re = Ee(he, Be), he = ce, ce = Ce, Ce = V, V = Ee(Be, ue);
11089
+ Te < 16 ? ge[Te] = new v(we[Te * 2 + ae], we[Te * 2 + ae + 1]) : ge[Te] = Ae(Xe(ge[Te - 2]), ge[Te - 7], Ne(ge[Te - 15]), ge[Te - 16]), Be = $e(Ue, et(re), Ze(re, De, Le), z[Te], ge[Te]), ue = Ee(rt(V), Me(V, Ce, ce)), Ue = Le, Le = De, De = re, re = Ee(he, Be), he = ce, ce = Ce, Ce = V, V = Ee(Be, ue);
11044
11090
  X[0] = Ee(V, X[0]), X[1] = Ee(Ce, X[1]), X[2] = Ee(ce, X[2]), X[3] = Ee(he, X[3]), X[4] = Ee(re, X[4]), X[5] = Ee(De, X[5]), X[6] = Ee(Le, X[6]), X[7] = Ee(Ue, X[7]);
11045
11091
  }
11046
11092
  for (var tt = [], ae = 0; ae < X.length; ae++)
@@ -11092,9 +11138,9 @@ function Ir() {
11092
11138
  return Object.prototype.hasOwnProperty.call(j, $);
11093
11139
  };
11094
11140
  })();
11095
- var N = {};
11141
+ var F = {};
11096
11142
  (function() {
11097
- g.d(N, {
11143
+ g.d(F, {
11098
11144
  default: function() {
11099
11145
  return (
11100
11146
  /* binding */
@@ -11514,7 +11560,7 @@ function Ir() {
11514
11560
  return ve && (t.options.value = null, t.setValue(ve)), t;
11515
11561
  }, t.open = function(I) {
11516
11562
  if (!C.classList.contains("jcalendar-focus") && !C.classList.contains("jcalendar-inline")) {
11517
- if (n.current = t, z(t, !0), t.getDays(), t.options.type == "year-month-picker" && t.getMonths(), t.options.time && (U.value = t.date[3], F.value = t.date[4]), C.classList.add("jcalendar-focus"), V.getWindowWidth() < 800 || t.options.fullscreen)
11563
+ if (n.current = t, z(t, !0), t.getDays(), t.options.type == "year-month-picker" && t.getMonths(), t.options.time && (U.value = t.date[3], N.value = t.date[4]), C.classList.add("jcalendar-focus"), V.getWindowWidth() < 800 || t.options.fullscreen)
11518
11564
  C.classList.add("jcalendar-fullsize"), ae.slideBottom(oe, 1);
11519
11565
  else {
11520
11566
  C.classList.remove("jcalendar-fullsize");
@@ -11601,7 +11647,7 @@ function Ir() {
11601
11647
  }, t.update = function(I, D) {
11602
11648
  if (!I.classList.contains("jcalendar-disabled")) {
11603
11649
  var S = C.querySelector(".jcalendar-selected");
11604
- S && S.classList.remove("jcalendar-selected"), I.classList.add("jcalendar-selected"), I.classList.contains("jcalendar-set-month") ? (t.date[1] = D, t.date[2] = 1) : t.date[2] = I.innerText, t.options.time ? (t.date[3] = U.value, t.date[4] = F.value) : t.close(null, !0);
11650
+ S && S.classList.remove("jcalendar-selected"), I.classList.add("jcalendar-selected"), I.classList.contains("jcalendar-set-month") ? (t.date[1] = D, t.date[2] = 1) : t.date[2] = I.innerText, t.options.time ? (t.date[3] = U.value, t.date[4] = N.value) : t.close(null, !0);
11605
11651
  }
11606
11652
  B();
11607
11653
  }, t.reset = function() {
@@ -11719,8 +11765,8 @@ function Ir() {
11719
11765
  }
11720
11766
  }, B = function() {
11721
11767
  var I = C.querySelector(".jcalendar-selected");
11722
- I && I.classList.contains("jcalendar-disabled") ? (J.setAttribute("disabled", "disabled"), U.setAttribute("disabled", "disabled"), F.setAttribute("disabled", "disabled")) : (J.removeAttribute("disabled"), U.removeAttribute("disabled"), F.removeAttribute("disabled")), typeof t.options.onupdate == "function" && t.options.onupdate(o, t.getValue());
11723
- }, C = null, w = null, k = null, K = null, oe = null, H = null, ne = null, pe = null, M = null, Y = null, u = null, L = null, J = null, U = null, F = null, le = function() {
11768
+ I && I.classList.contains("jcalendar-disabled") ? (J.setAttribute("disabled", "disabled"), U.setAttribute("disabled", "disabled"), N.setAttribute("disabled", "disabled")) : (J.removeAttribute("disabled"), U.removeAttribute("disabled"), N.removeAttribute("disabled")), typeof t.options.onupdate == "function" && t.options.onupdate(o, t.getValue());
11769
+ }, C = null, w = null, k = null, K = null, oe = null, H = null, ne = null, pe = null, M = null, Y = null, u = null, L = null, J = null, U = null, N = null, le = function() {
11724
11770
  o.tagName == "INPUT" && o.value && (i.value = o.value), w = document.createElement("div"), w.className = "jcalendar-reset", k = document.createElement("div"), k.className = "jcalendar-confirm", Y = document.createElement("div"), Y.className = "jcalendar-controls", Y.style.borderBottom = "1px solid #ddd", Y.appendChild(w), Y.appendChild(k), K = document.createElement("div"), K.className = "jcalendar-container", oe = document.createElement("div"), oe.className = "jcalendar-content", K.appendChild(oe), o.tagName == "DIV" ? (C = o, C.classList.add("jcalendar-inline")) : (oe.appendChild(Y), C = document.createElement("div"), C.className = "jcalendar"), C.classList.add("jcalendar-container"), C.appendChild(K);
11725
11771
  var I = document.createElement("div");
11726
11772
  I.className = "jcalendar-table", oe.appendChild(I);
@@ -11738,15 +11784,15 @@ function Ir() {
11738
11784
  var qe = document.createElement("option");
11739
11785
  qe.value = Pe, qe.innerHTML = V.two(Pe), U.appendChild(qe);
11740
11786
  }
11741
- F = document.createElement("select"), F.className = "jcalendar-select", F.onchange = function() {
11787
+ N = document.createElement("select"), N.className = "jcalendar-select", N.onchange = function() {
11742
11788
  t.date[4] = this.value, typeof t.options.onupdate == "function" && t.options.onupdate(o, t.getValue());
11743
11789
  };
11744
11790
  for (var Pe = 0; Pe < 60; Pe++) {
11745
11791
  var qe = document.createElement("option");
11746
- qe.value = Pe, qe.innerHTML = V.two(Pe), F.appendChild(qe);
11792
+ qe.value = Pe, qe.innerHTML = V.two(Pe), N.appendChild(qe);
11747
11793
  }
11748
11794
  var Ve = document.createElement("div");
11749
- Ve.className = "jcalendar-controls", u = document.createElement("div"), u.className = "jcalendar-time", u.style.maxWidth = "140px", u.appendChild(U), u.appendChild(F), J = document.createElement("button"), J.setAttribute("type", "button"), J.className = "jcalendar-update", L = document.createElement("div"), L.style.flexGrow = "10", L.appendChild(J), Ve.appendChild(u), o.tagName == "INPUT" && Ve.appendChild(L), oe.appendChild(Ve);
11795
+ Ve.className = "jcalendar-controls", u = document.createElement("div"), u.className = "jcalendar-time", u.style.maxWidth = "140px", u.appendChild(U), u.appendChild(N), J = document.createElement("button"), J.setAttribute("type", "button"), J.className = "jcalendar-update", L = document.createElement("div"), L.style.flexGrow = "10", L.appendChild(J), Ve.appendChild(u), o.tagName == "INPUT" && Ve.appendChild(L), oe.appendChild(Ve);
11750
11796
  var me = document.createElement("div");
11751
11797
  me.className = "jcalendar-backdrop", C.appendChild(me), o.addEventListener("keyup", R), C.addEventListener("swipeleft", function(Oe) {
11752
11798
  ae.slideLeft(pe, 0, function() {
@@ -11756,7 +11802,7 @@ function Ir() {
11756
11802
  ae.slideRight(pe, 0, function() {
11757
11803
  t.prev(), ae.slideLeft(pe, 1);
11758
11804
  }), Oe.preventDefault(), Oe.stopPropagation();
11759
- }), "ontouchend" in document.documentElement ? (C.addEventListener("touchend", b), o.addEventListener("touchend", t.open)) : (C.addEventListener("mouseup", b), o.addEventListener("mouseup", t.open)), n.hasEvents || (n.hasEvents = !0, document.addEventListener("keydown", n.keydown)), t.setOptions(i), o.tagName == "INPUT" ? (o.parentNode.insertBefore(C, o.nextSibling), o.setAttribute("autocomplete", "off"), o.classList.add("jcalendar-input"), o.value = t.setLabel(t.getValue(), t.options)) : (t.getDays(), t.options.time && (U.value = t.date[3], F.value = t.date[4])), t.options.controls == !1 && K.classList.add("jcalendar-hide-controls"), t.options.opened == !0 && t.open(), o.change = t.setValue, o.val = function(Oe) {
11805
+ }), "ontouchend" in document.documentElement ? (C.addEventListener("touchend", b), o.addEventListener("touchend", t.open)) : (C.addEventListener("mouseup", b), o.addEventListener("mouseup", t.open)), n.hasEvents || (n.hasEvents = !0, document.addEventListener("keydown", n.keydown)), t.setOptions(i), o.tagName == "INPUT" ? (o.parentNode.insertBefore(C, o.nextSibling), o.setAttribute("autocomplete", "off"), o.classList.add("jcalendar-input"), o.value = t.setLabel(t.getValue(), t.options)) : (t.getDays(), t.options.time && (U.value = t.date[3], N.value = t.date[4])), t.options.controls == !1 && K.classList.add("jcalendar-hide-controls"), t.options.opened == !0 && t.open(), o.change = t.setValue, o.val = function(Oe) {
11760
11806
  if (Oe === void 0)
11761
11807
  return t.getValue();
11762
11808
  t.setValue(Oe);
@@ -11939,8 +11985,8 @@ function Ir() {
11939
11985
  if (L.setAttribute("id", J), L.setAttribute("role", "tab"), L.setAttribute("aria-controls", U), L.textContent = ne, L.content = u, typeof Y > "u")
11940
11986
  i.content.appendChild(u), i.headers.insertBefore(L, i.headers.lastChild);
11941
11987
  else {
11942
- let F = i.content.children[Y];
11943
- F ? i.content.insertBefore(u, F) : i.content.appendChild(u), F = i.headers.children[Y] || i.headers.lastChild, i.headers.insertBefore(L, F);
11988
+ let N = i.content.children[Y];
11989
+ N ? i.content.insertBefore(u, N) : i.content.appendChild(u), N = i.headers.children[Y] || i.headers.lastChild, i.headers.insertBefore(L, N);
11944
11990
  }
11945
11991
  return i.options.allowChangePosition && L.setAttribute("draggable", "true"), M !== !1 && i.selectIndex(L), typeof pe == "function" && pe(u, L), u;
11946
11992
  }
@@ -11997,12 +12043,12 @@ function Ir() {
11997
12043
  u.appendChild(U);
11998
12044
  }
11999
12045
  if (i.options.data[Y].width && (u.style.width = i.options.data[Y].width), i.options.data[Y].contentElement)
12000
- var F = i.options.data[Y].contentElement;
12046
+ var N = i.options.data[Y].contentElement;
12001
12047
  else {
12002
- var F = document.createElement("div");
12003
- F.innerHTML = i.options.data[Y].content;
12048
+ var N = document.createElement("div");
12049
+ N.innerHTML = i.options.data[Y].content;
12004
12050
  }
12005
- i.headers.appendChild(u), i.content.appendChild(F);
12051
+ i.headers.appendChild(u), i.content.appendChild(N);
12006
12052
  }
12007
12053
  C = document.createElement("div"), C.className = "jtabs-border", i.headers.appendChild(C), i.options.animation && n.classList.add("jtabs-animation"), i.headers.addEventListener("click", function(le) {
12008
12054
  if (le.target.parentNode.classList.contains("jtabs-headers"))
@@ -12077,7 +12123,7 @@ function Ir() {
12077
12123
  var S = R.getBoundingClientRect(), q = V.getWindowWidth(), ve = V.getWindowHeight();
12078
12124
  if (q < 800 || i.options.fullscreen == !0 ? (R.classList.add("jcolor-fullscreen"), ae.slideBottom(R, 1), b.style.display = "block") : (R.classList.contains("jcolor-fullscreen") && (R.classList.remove("jcolor-fullscreen"), b.style.display = ""), i.options.position ? R.style.position = "fixed" : R.style.position = "", S.left + S.width > q && (R.style.marginLeft = -1 * (S.left + S.width - (q - 20)) + "px"), S.top + S.height > ve && (R.style.marginTop = -1 * (S.top + S.height - (ve - 20)) + "px")), typeof i.options.onopen == "function" && i.options.onopen(n, i), k.setBorder(k.getActive()), i.options.value) {
12079
12125
  var Re = ne(i.options.value);
12080
- F.forEach(function(Pe, qe) {
12126
+ N.forEach(function(Pe, qe) {
12081
12127
  Pe.value = Re[qe], Pe.dispatchEvent(new Event("input"));
12082
12128
  });
12083
12129
  }
@@ -12145,13 +12191,13 @@ function Ir() {
12145
12191
  }), S.addEventListener("touchmove", function(Pe) {
12146
12192
  Re(1, Pe.changedTouches[0].clientX, Pe.changedTouches[0].clientY);
12147
12193
  }), S;
12148
- }, U = "", F = [], le = function() {
12194
+ }, U = "", N = [], le = function() {
12149
12195
  if (U !== "")
12150
- for (var S = 0; S < F.length; S++) {
12196
+ for (var S = 0; S < N.length; S++) {
12151
12197
  var q = ne(U);
12152
12198
  q[S] = 0;
12153
12199
  var ve = "linear-gradient(90deg, rgb(";
12154
- ve += q.join(", "), ve += "), rgb(", q[S] = 255, ve += q.join(", "), ve += "))", F[S].style.backgroundImage = ve;
12200
+ ve += q.join(", "), ve += "), rgb(", q[S] = 255, ve += q.join(", "), ve += "))", N[S].style.backgroundImage = ve;
12155
12201
  }
12156
12202
  }, I = function() {
12157
12203
  var S = document.createElement("div");
@@ -12170,7 +12216,7 @@ function Ir() {
12170
12216
  ct.innerText = Je.value;
12171
12217
  }), Ye.appendChild(ct), me.appendChild(Ye), q.appendChild(me), Je;
12172
12218
  };
12173
- F = [
12219
+ N = [
12174
12220
  ve("Red"),
12175
12221
  ve("Green"),
12176
12222
  ve("Blue")
@@ -12180,10 +12226,10 @@ function Ir() {
12180
12226
  var Pe = document.createElement("div");
12181
12227
  Pe.style.visibility = "hidden", Pe.innerText = "a", Re.appendChild(Pe);
12182
12228
  var qe = function() {
12183
- var Ve = oe(parseInt(F[0].value), parseInt(F[1].value), parseInt(F[2].value));
12229
+ var Ve = oe(parseInt(N[0].value), parseInt(N[1].value), parseInt(N[2].value));
12184
12230
  Pe.innerText = Ve, Pe.style.color = Ve, Pe.style.removeProperty("visibility"), U = Ve;
12185
12231
  };
12186
- return F.forEach(function(Ve) {
12232
+ return N.forEach(function(Ve) {
12187
12233
  Ve.addEventListener("input", function() {
12188
12234
  qe(), le();
12189
12235
  });
@@ -12214,7 +12260,7 @@ function Ir() {
12214
12260
  var Pe = U !== "" ? U : i.getValue();
12215
12261
  if (Re === 2 && Pe) {
12216
12262
  var qe = ne(Pe);
12217
- F.forEach(function(Ve, me) {
12263
+ N.forEach(function(Ve, me) {
12218
12264
  Ve.value = qe[me], Ve.dispatchEvent(new Event("input"));
12219
12265
  });
12220
12266
  }
@@ -12322,8 +12368,8 @@ function Ir() {
12322
12368
  }
12323
12369
  k.appendChild(H), k.addEventListener("mouseenter", function() {
12324
12370
  H.style.left = "", H.style.right = "", H.style.minWidth = k.offsetWidth + "px", H.style.display = "block", H.style.opacity = "0", H.style.pointerEvents = "none";
12325
- var L = k.getBoundingClientRect(), J = H.getBoundingClientRect(), U = window.innerWidth || document.documentElement.clientWidth, F = L.right + J.width, le = L.left - J.width;
12326
- F > U && le >= 0 ? (H.style.left = "auto", H.style.right = "99%") : F > U && le < 0 ? (H.style.left = "32px", H.style.right = "auto", H.style.top = "100%") : (H.style.left = "99%", H.style.right = "auto"), H.style.opacity = "", H.style.pointerEvents = "", H.style.display = "";
12371
+ var L = k.getBoundingClientRect(), J = H.getBoundingClientRect(), U = window.innerWidth || document.documentElement.clientWidth, N = L.right + J.width, le = L.left - J.width;
12372
+ N > U && le >= 0 ? (H.style.left = "auto", H.style.right = "99%") : N > U && le < 0 ? (H.style.left = "32px", H.style.right = "auto", H.style.top = "100%") : (H.style.left = "99%", H.style.right = "auto"), H.style.opacity = "", H.style.pointerEvents = "", H.style.display = "";
12327
12373
  }), k.addEventListener("mouseleave", function() {
12328
12374
  H.style.left = "", H.style.right = "", H.style.minWidth = "";
12329
12375
  });
@@ -12588,7 +12634,7 @@ function Ir() {
12588
12634
  var D = K();
12589
12635
  return I ? D : D.join(";");
12590
12636
  };
12591
- var F = function(I) {
12637
+ var N = function(I) {
12592
12638
  o.value != t.options.value && (o.value = t.options.value, typeof o.oninput == "function" && o.oninput({
12593
12639
  type: "input",
12594
12640
  target: o,
@@ -12597,7 +12643,7 @@ function Ir() {
12597
12643
  };
12598
12644
  t.setValue = function(I) {
12599
12645
  var D = t.getValue();
12600
- Array.isArray(I) && (I = I.join(";")), D !== I && (C(I), F(D));
12646
+ Array.isArray(I) && (I = I.join(";")), D !== I && (C(I), N(D));
12601
12647
  }, t.resetSelected = function() {
12602
12648
  t.setValue(null);
12603
12649
  }, t.selectIndex = function(S, D) {
@@ -12607,7 +12653,7 @@ function Ir() {
12607
12653
  t.items[S].selected ? t.options.allowEmpty !== !1 && t.setValue(null) : t.setValue(w(S)), t.close();
12608
12654
  else {
12609
12655
  var q = t.options.value;
12610
- t.items[S].selected ? (t.items[S].element.classList.remove("jdropdown-selected"), t.items[S].selected = !1, delete t.value[w(S)]) : (t.items[S].element.classList.add("jdropdown-selected"), t.items[S].selected = !0, t.value[w(S)] = k(S)), t.options.value = Object.keys(t.value).join(";"), t.options.autocomplete == !1 && (t.header.value = oe().join("; ")), F(q);
12656
+ t.items[S].selected ? (t.items[S].element.classList.remove("jdropdown-selected"), t.items[S].selected = !1, delete t.value[w(S)]) : (t.items[S].element.classList.add("jdropdown-selected"), t.items[S].selected = !0, t.value[w(S)] = k(S)), t.options.value = Object.keys(t.value).join(";"), t.options.autocomplete == !1 && (t.header.value = oe().join("; ")), N(q);
12611
12657
  }
12612
12658
  }, t.selectItem = function(I) {
12613
12659
  t.selectIndex(I.indexValue);
@@ -12957,7 +13003,7 @@ function Ir() {
12957
13003
  };
12958
13004
  return C(), i;
12959
13005
  }
12960
- function Fe(n, o) {
13006
+ function Ne(n, o) {
12961
13007
  var i = { type: "toolbar" };
12962
13008
  i.options = {};
12963
13009
  var t = {
@@ -13439,7 +13485,7 @@ function Ir() {
13439
13485
  }, !1), Oe[Ye].readAsDataURL(me[Ye])) : alert("The extension is not allowed");
13440
13486
  }
13441
13487
  }, t.destroy = function() {
13442
- t.editor.removeEventListener("mouseup", q), t.editor.removeEventListener("mousedown", ve), t.editor.removeEventListener("mousemove", Re), t.editor.removeEventListener("keyup", D), t.editor.removeEventListener("keydown", S), t.editor.removeEventListener("dragstart", L), t.editor.removeEventListener("dragenter", J), t.editor.removeEventListener("dragover", U), t.editor.removeEventListener("drop", F), t.editor.removeEventListener("paste", u), t.editor.removeEventListener("blur", le), t.editor.removeEventListener("focus", I), o.editor = null, o.classList.remove("jeditor-container"), K.remove(), k.remove(), t.editor.remove();
13488
+ t.editor.removeEventListener("mouseup", q), t.editor.removeEventListener("mousedown", ve), t.editor.removeEventListener("mousemove", Re), t.editor.removeEventListener("keyup", D), t.editor.removeEventListener("keydown", S), t.editor.removeEventListener("dragstart", L), t.editor.removeEventListener("dragenter", J), t.editor.removeEventListener("dragover", U), t.editor.removeEventListener("drop", N), t.editor.removeEventListener("paste", u), t.editor.removeEventListener("blur", le), t.editor.removeEventListener("focus", I), o.editor = null, o.classList.remove("jeditor-container"), K.remove(), k.remove(), t.editor.remove();
13443
13489
  }, t.upload = function() {
13444
13490
  V.click(t.file);
13445
13491
  };
@@ -13480,7 +13526,7 @@ function Ir() {
13480
13526
  C || t.options.dropZone == !1 || (B && clearTimeout(B), B = setTimeout(function() {
13481
13527
  o.classList.remove("jeditor-dragging");
13482
13528
  }, 100), me.preventDefault());
13483
- }, F = function(me) {
13529
+ }, N = function(me) {
13484
13530
  if (!(C || t.options.dropZone === !1)) {
13485
13531
  let Oe = null;
13486
13532
  document.caretRangeFromPoint ? Oe = document.caretRangeFromPoint(me.clientX, me.clientY) : me.rangeParent && (Oe = document.createRange(), Oe.setStart(me.rangeParent, me.rangeOffset));
@@ -13561,7 +13607,7 @@ function Ir() {
13561
13607
  t.options.extensions[me[Oe]] && typeof t.options.extensions[me[Oe]] == "function" && (t.options.extensions[me[Oe]] = t.options.extensions[me[Oe]](o, t));
13562
13608
  }
13563
13609
  };
13564
- if (document.addEventListener("mouseup", q), document.addEventListener("mousemove", Re), t.editor.addEventListener("mousedown", ve), t.editor.addEventListener("keyup", D), t.editor.addEventListener("keydown", S), t.editor.addEventListener("dragstart", L), t.editor.addEventListener("dragenter", J), t.editor.addEventListener("dragover", U), t.editor.addEventListener("drop", F), t.editor.addEventListener("paste", u), t.editor.addEventListener("focus", I), t.editor.addEventListener("blur", le), o.appendChild(t.editor), t.options.snippet && t.appendSnippet(t.options.snippet), t.options.toolbar) {
13610
+ if (document.addEventListener("mouseup", q), document.addEventListener("mousemove", Re), t.editor.addEventListener("mousedown", ve), t.editor.addEventListener("keyup", D), t.editor.addEventListener("keydown", S), t.editor.addEventListener("dragstart", L), t.editor.addEventListener("dragenter", J), t.editor.addEventListener("dragover", U), t.editor.addEventListener("drop", N), t.editor.addEventListener("paste", u), t.editor.addEventListener("focus", I), t.editor.addEventListener("blur", le), o.appendChild(t.editor), t.options.snippet && t.appendSnippet(t.options.snippet), t.options.toolbar) {
13565
13611
  if (Array.isArray(t.options.toolbar))
13566
13612
  var Ve = {
13567
13613
  container: !0,
@@ -13576,7 +13622,7 @@ function Ir() {
13576
13622
  };
13577
13623
  else
13578
13624
  var Ve = t.options.toolbar;
13579
- Ve.items && Ve.items.length || (Ve.items = n.getDefaultToolbar(t)), t.options.toolbarOnTop ? (o.classList.add("toolbar-on-top"), o.insertBefore(K, o.firstChild)) : (t.editor.style.padding = "15px", o.appendChild(K)), Fe(K, Ve), K.addEventListener("click", function() {
13625
+ Ve.items && Ve.items.length || (Ve.items = n.getDefaultToolbar(t)), t.options.toolbarOnTop ? (o.classList.add("toolbar-on-top"), o.insertBefore(K, o.firstChild)) : (t.editor.style.padding = "15px", o.appendChild(K)), Ne(K, Ve), K.addEventListener("click", function() {
13580
13626
  t.editor.focus();
13581
13627
  });
13582
13628
  }
@@ -14649,7 +14695,7 @@ function Ir() {
14649
14695
  var t = function() {
14650
14696
  return !!(i.options.limit && n.children.length >= i.options.limit);
14651
14697
  }, b = null, R = null;
14652
- i.setOptions = function(U, F) {
14698
+ i.setOptions = function(U, N) {
14653
14699
  var le = {
14654
14700
  value: "",
14655
14701
  limit: null,
@@ -14666,14 +14712,14 @@ function Ir() {
14666
14712
  onload: null
14667
14713
  };
14668
14714
  for (var I in le)
14669
- U && U.hasOwnProperty(I) ? i.options[I] = U[I] : (typeof i.options[I] > "u" || F === !0) && (i.options[I] = le[I]);
14715
+ U && U.hasOwnProperty(I) ? i.options[I] = U[I] : (typeof i.options[I] > "u" || N === !0) && (i.options[I] = le[I]);
14670
14716
  return i.options.placeholder ? n.setAttribute("data-placeholder", i.options.placeholder) : n.removeAttribute("data-placeholder"), n.placeholder = i.options.placeholder, i.setValue(i.options.value), k(), i.options.search ? R || (R = document.createElement("div"), n.parentNode.insertBefore(R, n.nextSibling), b = Z(R, {
14671
14717
  data: i.options.search,
14672
14718
  onselect: function(D, S, q) {
14673
14719
  i.selectIndex(S, q);
14674
14720
  }
14675
14721
  })) : R && (b = null, R.remove(), R = null), i;
14676
- }, i.add = function(U, F) {
14722
+ }, i.add = function(U, N) {
14677
14723
  if (typeof i.options.onbeforechange == "function") {
14678
14724
  var le = i.options.onbeforechange(n, i, i.options.value, U);
14679
14725
  if (le === !1)
@@ -14700,7 +14746,7 @@ function Ir() {
14700
14746
  }
14701
14747
  w();
14702
14748
  }
14703
- F && B(D);
14749
+ N && B(D);
14704
14750
  }
14705
14751
  }, i.setLimit = function(U) {
14706
14752
  for (i.options.limit = U, n.children.length - U; n.children.length > U; )
@@ -14708,24 +14754,24 @@ function Ir() {
14708
14754
  }, i.remove = function(U) {
14709
14755
  U.parentNode.removeChild(U), n.children.length ? w() : i.add("", !0), typeof i.options.onremoveitem == "function" && i.options.onremoveitem(n, i, U);
14710
14756
  }, i.getData = function() {
14711
- for (var U = [], F = 0; F < n.children.length; F++) {
14712
- var le = n.children[F].innerText.replace(`
14713
- `, ""), I = n.children[F].getAttribute("data-value");
14757
+ for (var U = [], N = 0; N < n.children.length; N++) {
14758
+ var le = n.children[N].innerText.replace(`
14759
+ `, ""), I = n.children[N].getAttribute("data-value");
14714
14760
  I || (I = le), (le || I) && U.push({ text: le, value: I });
14715
14761
  }
14716
14762
  return U;
14717
14763
  }, i.getValue = function(U) {
14718
- var F = null;
14764
+ var N = null;
14719
14765
  if (U != null)
14720
- F = n.children[U].getAttribute("data-value"), F || (F = n.children[U].innerText.replace(`
14766
+ N = n.children[U].getAttribute("data-value"), N || (N = n.children[U].innerText.replace(`
14721
14767
  `, ""));
14722
14768
  else {
14723
14769
  for (var le = [], I = 0; I < n.children.length; I++)
14724
- F = n.children[I].innerText.replace(`
14725
- `, ""), F && le.push(i.getValue(I));
14726
- F = le.join(",");
14770
+ N = n.children[I].innerText.replace(`
14771
+ `, ""), N && le.push(i.getValue(I));
14772
+ N = le.join(",");
14727
14773
  }
14728
- return F;
14774
+ return N;
14729
14775
  }, i.setValue = function(U) {
14730
14776
  if (!U)
14731
14777
  i.reset();
@@ -14733,18 +14779,18 @@ function Ir() {
14733
14779
  if (Array.isArray(U))
14734
14780
  i.add(U);
14735
14781
  else {
14736
- var F = ("" + U).trim(), le = oe(F);
14782
+ var N = ("" + U).trim(), le = oe(N);
14737
14783
  n.innerHTML = "", i.add(le);
14738
14784
  }
14739
14785
  }, i.reset = function() {
14740
14786
  n.classList.add("jtags-empty"), n.innerHTML = "<div></div>", w();
14741
14787
  }, i.isValid = function() {
14742
- for (var U = 0, F = 0; F < n.children.length; F++)
14743
- n.children[F].classList.contains("jtags_error") && U++;
14788
+ for (var U = 0, N = 0; N < n.children.length; N++)
14789
+ n.children[N].classList.contains("jtags_error") && U++;
14744
14790
  return U == 0;
14745
- }, i.selectIndex = function(U, F) {
14791
+ }, i.selectIndex = function(U, N) {
14746
14792
  var le = V.getNode();
14747
- le && (le.innerText = U, F && le.setAttribute("data-value", F), le.classList.remove("jtags_error"), t() || i.add("", !0));
14793
+ le && (le.innerText = U, N && le.setAttribute("data-value", N), le.classList.remove("jtags_error"), t() || i.add("", !0));
14748
14794
  }, i.search = function(U) {
14749
14795
  U.innerText;
14750
14796
  }, i.destroy = function() {
@@ -14752,14 +14798,14 @@ function Ir() {
14752
14798
  };
14753
14799
  var B = function(U) {
14754
14800
  if (n.children.length) {
14755
- var F = document.createRange(), le = window.getSelection();
14801
+ var N = document.createRange(), le = window.getSelection();
14756
14802
  if (!U)
14757
14803
  var U = n.childNodes[n.childNodes.length - 1];
14758
- F.setStart(U, U.length), F.collapse(!0), le.removeAllRanges(), le.addRange(F), n.scrollLeft = n.scrollWidth;
14804
+ N.setStart(U, U.length), N.collapse(!0), le.removeAllRanges(), le.addRange(N), n.scrollLeft = n.scrollWidth;
14759
14805
  }
14760
- }, C = function(U, F, le) {
14806
+ }, C = function(U, N, le) {
14761
14807
  var I = document.createElement("div");
14762
- return I.textContent = U || "", F && I.setAttribute("data-value", F), le && le.parentNode.classList.contains("jtags") ? n.insertBefore(I, le.nextSibling) : n.appendChild(I), I;
14808
+ return I.textContent = U || "", N && I.setAttribute("data-value", N), le && le.parentNode.classList.contains("jtags") ? n.insertBefore(I, le.nextSibling) : n.appendChild(I), I;
14763
14809
  }, w = function() {
14764
14810
  var U = i.getValue();
14765
14811
  U != i.options.value && (i.options.value = U, typeof i.options.onchange == "function" && i.options.onchange(n, i, i.options.value), n.value != i.options.value && (n.value = i.options.value, typeof n.oninput == "function" && n.oninput({
@@ -14774,37 +14820,37 @@ function Ir() {
14774
14820
  }, K = function() {
14775
14821
  n.innerText.trim() ? n.classList.remove("jtags-empty") : (!n.children.length || n.children[0].tagName === "BR") && (n.innerHTML = "", B(C()));
14776
14822
  }, oe = function(U) {
14777
- var F = [], le = "";
14823
+ var N = [], le = "";
14778
14824
  if (U = U.trim(), U) {
14779
14825
  for (var I = 0; I < U.length; I++)
14780
14826
  U[I] == "," || U[I] == ";" || U[I] == `
14781
- ` ? le && (F.push(le.trim()), le = "") : le += U[I];
14782
- le && F.push(le);
14827
+ ` ? le && (N.push(le.trim()), le = "") : le += U[I];
14828
+ le && N.push(le);
14783
14829
  }
14784
- return F;
14830
+ return N;
14785
14831
  }, H = 0, ne = function(U) {
14786
14832
  if (H = window.getSelection().anchorOffset, K(), U.key === "Tab" || U.key === ";" || U.key === ",") {
14787
- var F = window.getSelection().anchorOffset;
14788
- F > 1 && (t() ? typeof i.options.onlimit == "function" && i.options.onlimit(i, i.options.limit) : i.add("", !0)), U.preventDefault();
14833
+ var N = window.getSelection().anchorOffset;
14834
+ N > 1 && (t() ? typeof i.options.onlimit == "function" && i.options.onlimit(i, i.options.limit) : i.add("", !0)), U.preventDefault();
14789
14835
  } else if (U.key == "Enter") {
14790
14836
  if (!b || !b.isOpened()) {
14791
- var F = window.getSelection().anchorOffset;
14792
- F > 1 && (t() || i.add("", !0)), U.preventDefault();
14837
+ var N = window.getSelection().anchorOffset;
14838
+ N > 1 && (t() || i.add("", !0)), U.preventDefault();
14793
14839
  }
14794
14840
  } else U.key == "Backspace" && n.children.length == 1 && window.getSelection().anchorOffset < 1 && U.preventDefault();
14795
14841
  b && b.keydown(U), K();
14796
14842
  }, pe = function(U) {
14797
14843
  if (U.which == 39) {
14798
- var F = window.getSelection().anchorOffset;
14799
- F > 1 && F == H && i.add("", !0);
14844
+ var N = window.getSelection().anchorOffset;
14845
+ N > 1 && N == H && i.add("", !0);
14800
14846
  } else U.which == 13 || U.which == 38 || U.which == 40 ? U.preventDefault() : b && b.keyup(U);
14801
14847
  k();
14802
14848
  }, M = function(U) {
14803
14849
  if (U.clipboardData || U.originalEvent.clipboardData)
14804
- var F = (U.originalEvent || U).clipboardData.getData("text/plain");
14850
+ var N = (U.originalEvent || U).clipboardData.getData("text/plain");
14805
14851
  else if (window.clipboardData)
14806
- var F = window.clipboardData.getData("Text");
14807
- var le = oe(F);
14852
+ var N = window.clipboardData.getData("Text");
14853
+ var le = oe(N);
14808
14854
  if (typeof i.options.onbeforepaste == "function") {
14809
14855
  var I = i.options.onbeforepaste(n, i, le);
14810
14856
  if (I === !1)
@@ -14814,8 +14860,8 @@ function Ir() {
14814
14860
  le.length > 1 ? (i.add(le, !0), U.preventDefault()) : le[0] && (document.execCommand("insertText", !1, le[0]), U.preventDefault());
14815
14861
  }, Y = function(U) {
14816
14862
  if (U.target.parentNode && U.target.parentNode.classList.contains("jtags") && (U.target.classList.contains("jtags_label") || U.target.classList.contains("jtags_error"))) {
14817
- var F = U.target.getBoundingClientRect();
14818
- F.width - (U.clientX - F.left) < 16 && i.remove(U.target);
14863
+ var N = U.target.getBoundingClientRect();
14864
+ N.width - (U.clientX - N.left) < 16 && i.remove(U.target);
14819
14865
  }
14820
14866
  U.target == n && B();
14821
14867
  }, u = function() {
@@ -14998,7 +15044,7 @@ function Ir() {
14998
15044
  slider: s,
14999
15045
  tabs: Ae,
15000
15046
  tags: a,
15001
- toolbar: Fe,
15047
+ toolbar: Ne,
15002
15048
  upload: r,
15003
15049
  validations: A
15004
15050
  };
@@ -15010,13 +15056,13 @@ function Ir() {
15010
15056
  window.jSuitesStateControl = [];
15011
15057
  else
15012
15058
  return;
15013
- const n = function(U, F) {
15014
- return U[F.type] && U[F.type] == F || U.component && U.component == F ? !0 : U.parentNode ? n(U.parentNode, F) : !1;
15059
+ const n = function(U, N) {
15060
+ return U[N.type] && U[N.type] == N || U.component && U.component == N ? !0 : U.parentNode ? n(U.parentNode, N) : !1;
15015
15061
  }, o = function(U) {
15016
- let F = window.jSuitesStateControl;
15017
- if (F && F.length > 0)
15018
- for (let le = 0; le < F.length; le++)
15019
- F[le] && !n(U, F[le]) && F[le].close();
15062
+ let N = window.jSuitesStateControl;
15063
+ if (N && N.length > 0)
15064
+ for (let le = 0; le < N.length; le++)
15065
+ N[le] && !n(U, N[le]) && N[le].close();
15020
15066
  };
15021
15067
  let i = 15, t = !1, b = {
15022
15068
  x: null,
@@ -15026,13 +15072,13 @@ function Ir() {
15026
15072
  const B = function(U) {
15027
15073
  return U && (U.shadowRoot || U.tagName && U.tagName.includes("-"));
15028
15074
  }, C = function(U) {
15029
- let F, le, I = U.path || U.composedPath && U.composedPath();
15030
- return I ? (le = I[0], le && B(le) && !le.shadowRoot && U.toElement && (le = U.toElement)) : (U.target && B(U.target) ? F = U.target.shadowRoot : F = document, le = F.elementFromPoint(x, y)), le;
15075
+ let N, le, I = U.path || U.composedPath && U.composedPath();
15076
+ return I ? (le = I[0], le && B(le) && !le.shadowRoot && U.toElement && (le = U.toElement)) : (U.target && B(U.target) ? N = U.target.shadowRoot : N = document, le = N.elementFromPoint(x, y)), le;
15031
15077
  }, w = function(U) {
15032
15078
  if (U.changedTouches && U.changedTouches[0])
15033
- var F = U.changedTouches[0].clientX, le = U.changedTouches[0].clientY;
15079
+ var N = U.changedTouches[0].clientX, le = U.changedTouches[0].clientY;
15034
15080
  else
15035
- var F = U.clientX, le = U.clientY;
15081
+ var N = U.clientX, le = U.clientY;
15036
15082
  let I = C(U), D = I && I.tagName === "DIV" && I.getAttribute("contentEditable"), S = P.findElement(I, "jpanel");
15037
15083
  if (S && !S.classList.contains("readonly") && !D) {
15038
15084
  let q = S.getBoundingClientRect(), ve = 0;
@@ -15042,7 +15088,7 @@ function Ir() {
15042
15088
  action: Re,
15043
15089
  a: ve,
15044
15090
  e: S,
15045
- x: F,
15091
+ x: N,
15046
15092
  y: le,
15047
15093
  l: q.left,
15048
15094
  t: q.top,
@@ -15056,8 +15102,8 @@ function Ir() {
15056
15102
  } else
15057
15103
  t = !1;
15058
15104
  o(I), pe(U);
15059
- }, k = function(U, F, le, I, D, S) {
15060
- const q = le - U, ve = I - F, Re = D - U, Pe = S - F;
15105
+ }, k = function(U, N, le, I, D, S) {
15106
+ const q = le - U, ve = I - N, Re = D - U, Pe = S - N;
15061
15107
  let qe = Math.atan2(ve, q), me = Math.atan2(Pe, Re) - qe;
15062
15108
  return me = me * (180 / Math.PI), me < 0 && (me += 360), me;
15063
15109
  }, K = function(U) {
@@ -15069,7 +15115,7 @@ function Ir() {
15069
15115
  if (t) {
15070
15116
  let S = U.clientX || U.pageX, q = U.clientY || U.pageY;
15071
15117
  if (b.x == null && b.y == null && (b.x = S, b.y = q), t.action === "move") {
15072
- var F = S - b.x, le = q - b.y, I = t.e.offsetTop + le, D = t.e.offsetLeft + F;
15118
+ var N = S - b.x, le = q - b.y, I = t.e.offsetTop + le, D = t.e.offsetLeft + N;
15073
15119
  t.e.style.top = I + "px", t.e.style.left = D + "px", typeof t.e.refresh == "function" && (b.actioned = !0, t.e.refresh("position", I, D));
15074
15120
  } else if (t.action === "rotate") {
15075
15121
  let ve = t.l + t.w / 2, Re = t.t + t.h / 2, Pe = k(ve, Re, t.x, t.y, S, q);
@@ -15093,16 +15139,16 @@ function Ir() {
15093
15139
  }
15094
15140
  };
15095
15141
  let H = ["n", "ne", "e", "se", "s", "sw", "w", "nw", "rotate"];
15096
- H.forEach(function(U, F) {
15097
- H[F] = document.createElement("div"), H[F].classList.add("jpanel-action"), U === "rotate" ? H[F].setAttribute("data-action", "rotate") : (H[F].setAttribute("data-action", "resize"), H[F].setAttribute("data-position", U + "-resize"));
15142
+ H.forEach(function(U, N) {
15143
+ H[N] = document.createElement("div"), H[N].classList.add("jpanel-action"), U === "rotate" ? H[N].setAttribute("data-action", "rotate") : (H[N].setAttribute("data-action", "resize"), H[N].setAttribute("data-position", U + "-resize"));
15098
15144
  });
15099
15145
  let ne;
15100
15146
  const pe = function(U) {
15101
- let F = C(U), le = P.findElement(F, "jpanel");
15147
+ let N = C(U), le = P.findElement(N, "jpanel");
15102
15148
  le && !le.classList.contains("readonly") && le.classList.contains("jpanel-controls") ? (le.append(...H), le.classList.contains("jpanel-rotate") || H[H.length - 1].remove(), ne = le) : M();
15103
15149
  }, M = function(U) {
15104
- ne && (H.forEach(function(F) {
15105
- F.remove();
15150
+ ne && (H.forEach(function(N) {
15151
+ N.remove();
15106
15152
  }), ne = null);
15107
15153
  }, Y = function(U) {
15108
15154
  var le = C(U).getAttribute("data-tooltip");
@@ -15114,27 +15160,27 @@ function Ir() {
15114
15160
  R.style.top = D + "px", R.style.left = I + "px", document.body.appendChild(R);
15115
15161
  } else R.innerText && (R.innerText = "", document.body.removeChild(R));
15116
15162
  }, u = function(U) {
15117
- var F = document.activeElement;
15118
- if (F && typeof F.contextmenu == "function")
15119
- F.contextmenu(U), U.preventDefault(), U.stopImmediatePropagation();
15120
- else if (F = P.findElement(U.target, function(I) {
15163
+ var N = document.activeElement;
15164
+ if (N && typeof N.contextmenu == "function")
15165
+ N.contextmenu(U), U.preventDefault(), U.stopImmediatePropagation();
15166
+ else if (N = P.findElement(U.target, function(I) {
15121
15167
  return I.tagName && I.getAttribute("aria-contextmenu-id");
15122
- }), F) {
15123
- var le = document.querySelector("#" + F);
15124
- le ? (le.contextmenu.open(U), U.preventDefault(), U.stopImmediatePropagation()) : console.error("JSUITES: contextmenu id not found: " + F);
15168
+ }), N) {
15169
+ var le = document.querySelector("#" + N);
15170
+ le ? (le.contextmenu.open(U), U.preventDefault(), U.stopImmediatePropagation()) : console.error("JSUITES: contextmenu id not found: " + N);
15125
15171
  }
15126
15172
  }, L = function(U) {
15127
- let F = document.activeElement;
15128
- F && U.key === "Delete" && typeof F.delete == "function" && (F.delete(), U.preventDefault(), U.stopImmediatePropagation());
15173
+ let N = document.activeElement;
15174
+ N && U.key === "Delete" && typeof N.delete == "function" && (N.delete(), U.preventDefault(), U.stopImmediatePropagation());
15129
15175
  let le = window.jSuitesStateControl;
15130
- le && le.length > 0 && (F = le[le.length - 1], F && U.key === "Escape" && typeof F.isOpened == "function" && typeof F.close == "function" && F.isOpened() && (F.close(), U.preventDefault(), U.stopImmediatePropagation()));
15176
+ le && le.length > 0 && (N = le[le.length - 1], N && U.key === "Escape" && typeof N.isOpened == "function" && typeof N.close == "function" && N.isOpened() && (N.close(), U.preventDefault(), U.stopImmediatePropagation()));
15131
15177
  }, J = function(U) {
15132
15178
  (U.target.getAttribute("data-mask") || U.target.mask) && P.mask.oninput(U);
15133
15179
  };
15134
15180
  document.addEventListener("focusin", pe), document.addEventListener("mouseup", K), document.addEventListener("mousedown", w), document.addEventListener("mousemove", oe), document.addEventListener("mouseover", Y), document.addEventListener("keydown", L), document.addEventListener("contextmenu", u), document.addEventListener("input", J);
15135
15181
  }();
15136
15182
  var E = P;
15137
- })(), f = N.default;
15183
+ })(), f = F.default;
15138
15184
  })(), f;
15139
15185
  }));
15140
15186
  })(rn)), rn.exports;
@@ -15158,10 +15204,10 @@ const kr = (d = {}) => ({
15158
15204
  } catch {
15159
15205
  return null;
15160
15206
  }
15161
- }, Nr = (d) => new AmazonCognitoIdentity.CognitoUserPool({
15207
+ }, Fr = (d) => new AmazonCognitoIdentity.CognitoUserPool({
15162
15208
  UserPoolId: d.userPoolId,
15163
15209
  ClientId: d.clientId
15164
- }), Fr = (d, l) => new AmazonCognitoIdentity.CognitoUser({
15210
+ }), Nr = (d, l) => new AmazonCognitoIdentity.CognitoUser({
15165
15211
  Username: d.toLowerCase().trim(),
15166
15212
  Pool: l
15167
15213
  }), _r = (d) => ({
@@ -15177,7 +15223,7 @@ const kr = (d = {}) => ({
15177
15223
  d.set(wt.idToken, l.idToken), d.set(wt.accessToken, l.accessToken), d.set(wt.refreshToken, l.refreshToken);
15178
15224
  const c = f(l.idToken), p = c?.exp ? (c.exp * 1e3).toString() : (Date.now() + 3600 * 1e3).toString();
15179
15225
  d.set(wt.idTokenExpiry, p), d.set(wt.userEmail, c?.email || ""), d.set(wt.userId, c?.sub || "");
15180
- }, Rr = async (d, l, f, c, p, g, N) => {
15226
+ }, Rr = async (d, l, f, c, p, g, F) => {
15181
15227
  const j = l.get(wt.refreshToken);
15182
15228
  if (!j) return null;
15183
15229
  const $ = l.get(wt.userEmail);
@@ -15190,27 +15236,27 @@ const kr = (d = {}) => ({
15190
15236
  if (V)
15191
15237
  return l.clear(), ge(null);
15192
15238
  const ce = p(Ce);
15193
- g(l, ce, N), ge(ce.accessToken);
15239
+ g(l, ce, F), ge(ce.accessToken);
15194
15240
  });
15195
15241
  });
15196
15242
  };
15197
15243
  let un = null, ri = null;
15198
- function Ni() {
15244
+ function Fi() {
15199
15245
  return un || (un = kr(window.authConfig || {}), ri = Or()), { config: un, storage: ri };
15200
15246
  }
15201
15247
  async function Pr() {
15202
- const { config: d, storage: l } = Ni();
15248
+ const { config: d, storage: l } = Fi();
15203
15249
  return Rr(
15204
15250
  d,
15205
15251
  l,
15206
- Nr,
15207
15252
  Fr,
15253
+ Nr,
15208
15254
  _r,
15209
15255
  Ur,
15210
15256
  Mr
15211
15257
  );
15212
15258
  }
15213
- const { crypto: Hr } = globalThis, Br = 14e11, Fi = 4, Rn = 16, $r = Fi + Rn, Vr = 27, zr = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", si = 62n;
15259
+ const { crypto: Hr } = globalThis, Br = 14e11, Ni = 4, Rn = 16, $r = Ni + Rn, Vr = 27, zr = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", si = 62n;
15214
15260
  function Yr(d) {
15215
15261
  let l = 0n;
15216
15262
  for (const c of d) l = (l << 8n) + BigInt(c);
@@ -15232,17 +15278,17 @@ function qr({ timestamp: d = Date.now(), payload: l } = {}) {
15232
15278
  const g = l || Wr();
15233
15279
  if (!(g instanceof Uint8Array) || g.length !== Rn)
15234
15280
  throw new TypeError("Payload must be a 16-byte Uint8Array");
15235
- return p.set(g, Fi), Yr(p);
15281
+ return p.set(g, Ni), Yr(p);
15236
15282
  }
15237
- const Nt = (d, ...l) => (...f) => d(...l, ...f);
15283
+ const Ft = (d, ...l) => (...f) => d(...l, ...f);
15238
15284
  function Kr(d) {
15239
15285
  return {
15240
15286
  // Underlying mechanism to use the REST URLs directly.
15241
- api: Nt(Jt, d),
15242
- listUserFacts: Nt(Xr, d),
15243
- getUserFact: Nt(Gr, d),
15244
- putUserFact: Nt(Jr, d),
15245
- deleteUserFact: Nt(Zr, d)
15287
+ api: Ft(Jt, d),
15288
+ listUserFacts: Ft(Xr, d),
15289
+ getUserFact: Ft(Gr, d),
15290
+ putUserFact: Ft(Jr, d),
15291
+ deleteUserFact: Ft(Zr, d)
15246
15292
  };
15247
15293
  }
15248
15294
  function Xr(d) {
@@ -15272,12 +15318,12 @@ function Zr(d, { factName: l, nonce: f }) {
15272
15318
  );
15273
15319
  }
15274
15320
  async function Jt(d, l, f) {
15275
- const c = d.baseUrl.endsWith("/") ? d.baseUrl : `${d.baseUrl}/`, p = l.startsWith("/") ? l.substring(1) : l, g = new URL(p, c), N = {
15321
+ const c = d.baseUrl.endsWith("/") ? d.baseUrl : `${d.baseUrl}/`, p = l.startsWith("/") ? l.substring(1) : l, g = new URL(p, c), F = {
15276
15322
  "Content-Type": "application/json"
15277
15323
  };
15278
- d.apiKey && (N.Authorization = `Bearer ${d.apiKey}`);
15324
+ d.apiKey && (F.Authorization = `Bearer ${d.apiKey}`);
15279
15325
  const j = Object.assign({}, f, {
15280
- headers: Object.assign({}, N, f?.headers),
15326
+ headers: Object.assign({}, F, f?.headers),
15281
15327
  body: f?.body ? JSON.stringify(f.body) : void 0
15282
15328
  }), $ = await fetch(g.toString(), j);
15283
15329
  if (!$.ok) {
@@ -15301,10 +15347,10 @@ function Qr(d = {}) {
15301
15347
  memoryTtlMs: p = 300 * 1e3,
15302
15348
  // 5 minutes
15303
15349
  storage: g = typeof window < "u" ? globalThis.localStorage : null,
15304
- debug: N = !1,
15350
+ debug: F = !1,
15305
15351
  logger: j
15306
15352
  } = d, $ = j ?? ((Ae, ...$e) => {
15307
- N && console[Ae]?.(...$e);
15353
+ F && console[Ae]?.(...$e);
15308
15354
  }), v = (...Ae) => $("log", ...Ae), X = (...Ae) => $("warn", ...Ae), z = (...Ae) => $("error", ...Ae), ge = (...Ae) => $("group", ...Ae), V = (...Ae) => $("groupEnd", ...Ae);
15309
15355
  let Ce = null, ce = null, he = 0;
15310
15356
  function re() {
@@ -15335,7 +15381,7 @@ function Qr(d = {}) {
15335
15381
  }
15336
15382
  }
15337
15383
  async function Ue() {
15338
- const { storage: Ae } = Ni();
15384
+ const { storage: Ae } = Fi();
15339
15385
  let $e = Ae.get("wral_id_token");
15340
15386
  if (!$e && (v("[user-facts:auth] No id token → forcing refresh"), await Pr(), $e = Ae.get("wral_id_token"), !$e))
15341
15387
  throw new Error("Failed to obtain id token");
@@ -15536,13 +15582,13 @@ class _i extends Vt {
15536
15582
  ${this.allowRotate ? yt`
15537
15583
  <div class="rotate-controls">
15538
15584
  <button
15539
- class="rotate"
15585
+ class="rotate secondary"
15540
15586
  ?disabled=${this.busy || !this._lastFile}
15541
15587
  @click=${() => this._rotate(90)}>
15542
15588
  ${vr} Rotate
15543
15589
  </button>
15544
15590
  <button
15545
- class="rotate"
15591
+ class="rotate secondary"
15546
15592
  ?disabled=${this.busy || !this._lastFile}
15547
15593
  @click=${() => this._rotate(-90)}>
15548
15594
  Rotate ${yr}
@@ -15586,7 +15632,7 @@ class _i extends Vt {
15586
15632
  <div class="nav-spacer"></div>
15587
15633
 
15588
15634
  <button
15589
- class="primary cancel"
15635
+ class="secondary cancel"
15590
15636
  @click=${this._closeEditor}
15591
15637
  > Cancel </button>
15592
15638
  <button
@@ -15667,12 +15713,12 @@ class _i extends Vt {
15667
15713
  this._cropperHost.addEventListener("click", c, !0), this._cropperHost.addEventListener("dblclick", p, !0), l.push(() => this._cropperHost?.removeEventListener("click", c, !0)), l.push(() => this._cropperHost?.removeEventListener("dblclick", p, !0));
15668
15714
  const g = (j) => {
15669
15715
  j.preventDefault(), j.stopPropagation(), j.stopImmediatePropagation?.();
15670
- }, N = async (j) => {
15716
+ }, F = async (j) => {
15671
15717
  if (j.preventDefault(), j.stopPropagation(), j.stopImmediatePropagation?.(), this.busy) return;
15672
15718
  const $ = j.dataTransfer?.files?.[0];
15673
15719
  $ && (j.dataTransfer.dropEffect = "copy", await this._handleIncomingFile($));
15674
15720
  };
15675
- this._cropperHost.addEventListener("dragenter", g, !0), this._cropperHost.addEventListener("dragover", g, !0), this._cropperHost.addEventListener("drop", N, !0), l.push(() => this._cropperHost?.removeEventListener("dragenter", g, !0)), l.push(() => this._cropperHost?.removeEventListener("dragover", g, !0)), l.push(() => this._cropperHost?.removeEventListener("drop", N, !0)), this._cropperGuardsCleanup = () => {
15721
+ this._cropperHost.addEventListener("dragenter", g, !0), this._cropperHost.addEventListener("dragover", g, !0), this._cropperHost.addEventListener("drop", F, !0), l.push(() => this._cropperHost?.removeEventListener("dragenter", g, !0)), l.push(() => this._cropperHost?.removeEventListener("dragover", g, !0)), l.push(() => this._cropperHost?.removeEventListener("drop", F, !0)), this._cropperGuardsCleanup = () => {
15676
15722
  l.forEach((j) => j());
15677
15723
  };
15678
15724
  }
@@ -15698,10 +15744,10 @@ class _i extends Vt {
15698
15744
  _applySquareLock(l) {
15699
15745
  this._ensureCircleGuide(l);
15700
15746
  const f = () => {
15701
- const g = l.getBoundingClientRect(), N = Math.round(Math.min(g.width, g.height));
15702
- if (!N) return;
15747
+ const g = l.getBoundingClientRect(), F = Math.round(Math.min(g.width, g.height));
15748
+ if (!F) return;
15703
15749
  const j = Math.round(g.width), $ = Math.round(g.height);
15704
- j === N && $ === N || (l.style.width = `${N}px`, l.style.height = `${N}px`);
15750
+ j === F && $ === F || (l.style.width = `${F}px`, l.style.height = `${F}px`);
15705
15751
  };
15706
15752
  f();
15707
15753
  const c = new ResizeObserver(() => f());
@@ -15879,8 +15925,8 @@ class _i extends Vt {
15879
15925
  customElements.define("wral-profile-image-editor", _i);
15880
15926
  var rs = /* @__PURE__ */ (function() {
15881
15927
  function d(f) {
15882
- var c = f || {}, p = c.ValidationData, g = c.Username, N = c.Password, j = c.AuthParameters, $ = c.ClientMetadata;
15883
- this.validationData = p || {}, this.authParameters = j || {}, this.clientMetadata = $ || {}, this.username = g, this.password = N;
15928
+ var c = f || {}, p = c.ValidationData, g = c.Username, F = c.Password, j = c.AuthParameters, $ = c.ClientMetadata;
15929
+ this.validationData = p || {}, this.authParameters = j || {}, this.clientMetadata = $ || {}, this.username = g, this.password = F;
15884
15930
  }
15885
15931
  var l = d.prototype;
15886
15932
  return l.getUsername = function() {
@@ -15894,14 +15940,14 @@ var rs = /* @__PURE__ */ (function() {
15894
15940
  }, l.getClientMetadata = function() {
15895
15941
  return this.clientMetadata;
15896
15942
  }, d;
15897
- })(), fn = {}, Ft = {}, oi;
15943
+ })(), fn = {}, Nt = {}, oi;
15898
15944
  function ss() {
15899
- if (oi) return Ft;
15900
- oi = 1, Ft.byteLength = j, Ft.toByteArray = v, Ft.fromByteArray = ge;
15945
+ if (oi) return Nt;
15946
+ oi = 1, Nt.byteLength = j, Nt.toByteArray = v, Nt.fromByteArray = ge;
15901
15947
  for (var d = [], l = [], f = typeof Uint8Array < "u" ? Uint8Array : Array, c = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", p = 0, g = c.length; p < g; ++p)
15902
15948
  d[p] = c[p], l[c.charCodeAt(p)] = p;
15903
15949
  l[45] = 62, l[95] = 63;
15904
- function N(V) {
15950
+ function F(V) {
15905
15951
  var Ce = V.length;
15906
15952
  if (Ce % 4 > 0)
15907
15953
  throw new Error("Invalid string. Length must be a multiple of 4");
@@ -15911,14 +15957,14 @@ function ss() {
15911
15957
  return [ce, he];
15912
15958
  }
15913
15959
  function j(V) {
15914
- var Ce = N(V), ce = Ce[0], he = Ce[1];
15960
+ var Ce = F(V), ce = Ce[0], he = Ce[1];
15915
15961
  return (ce + he) * 3 / 4 - he;
15916
15962
  }
15917
15963
  function $(V, Ce, ce) {
15918
15964
  return (Ce + ce) * 3 / 4 - ce;
15919
15965
  }
15920
15966
  function v(V) {
15921
- var Ce, ce = N(V), he = ce[0], re = ce[1], De = new f($(V, he, re)), Le = 0, Ue = re > 0 ? he - 4 : he, ae;
15967
+ var Ce, ce = F(V), he = ce[0], re = ce[1], De = new f($(V, he, re)), Le = 0, Ue = re > 0 ? he - 4 : he, ae;
15922
15968
  for (ae = 0; ae < Ue; ae += 4)
15923
15969
  Ce = l[V.charCodeAt(ae)] << 18 | l[V.charCodeAt(ae + 1)] << 12 | l[V.charCodeAt(ae + 2)] << 6 | l[V.charCodeAt(ae + 3)], De[Le++] = Ce >> 16 & 255, De[Le++] = Ce >> 8 & 255, De[Le++] = Ce & 255;
15924
15970
  return re === 2 && (Ce = l[V.charCodeAt(ae)] << 2 | l[V.charCodeAt(ae + 1)] >> 4, De[Le++] = Ce & 255), re === 1 && (Ce = l[V.charCodeAt(ae)] << 10 | l[V.charCodeAt(ae + 1)] << 4 | l[V.charCodeAt(ae + 2)] >> 2, De[Le++] = Ce >> 8 & 255, De[Le++] = Ce & 255), De;
@@ -15940,30 +15986,30 @@ function ss() {
15940
15986
  d[Ce >> 10] + d[Ce >> 4 & 63] + d[Ce << 2 & 63] + "="
15941
15987
  )), re.join("");
15942
15988
  }
15943
- return Ft;
15989
+ return Nt;
15944
15990
  }
15945
15991
  var Zt = {};
15946
15992
  var ai;
15947
15993
  function os() {
15948
15994
  return ai || (ai = 1, Zt.read = function(d, l, f, c, p) {
15949
- var g, N, j = p * 8 - c - 1, $ = (1 << j) - 1, v = $ >> 1, X = -7, z = f ? p - 1 : 0, ge = f ? -1 : 1, V = d[l + z];
15995
+ var g, F, j = p * 8 - c - 1, $ = (1 << j) - 1, v = $ >> 1, X = -7, z = f ? p - 1 : 0, ge = f ? -1 : 1, V = d[l + z];
15950
15996
  for (z += ge, g = V & (1 << -X) - 1, V >>= -X, X += j; X > 0; g = g * 256 + d[l + z], z += ge, X -= 8)
15951
15997
  ;
15952
- for (N = g & (1 << -X) - 1, g >>= -X, X += c; X > 0; N = N * 256 + d[l + z], z += ge, X -= 8)
15998
+ for (F = g & (1 << -X) - 1, g >>= -X, X += c; X > 0; F = F * 256 + d[l + z], z += ge, X -= 8)
15953
15999
  ;
15954
16000
  if (g === 0)
15955
16001
  g = 1 - v;
15956
16002
  else {
15957
16003
  if (g === $)
15958
- return N ? NaN : (V ? -1 : 1) * (1 / 0);
15959
- N = N + Math.pow(2, c), g = g - v;
16004
+ return F ? NaN : (V ? -1 : 1) * (1 / 0);
16005
+ F = F + Math.pow(2, c), g = g - v;
15960
16006
  }
15961
- return (V ? -1 : 1) * N * Math.pow(2, g - c);
16007
+ return (V ? -1 : 1) * F * Math.pow(2, g - c);
15962
16008
  }, Zt.write = function(d, l, f, c, p, g) {
15963
- var N, j, $, v = g * 8 - p - 1, X = (1 << v) - 1, z = X >> 1, ge = p === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, V = c ? 0 : g - 1, Ce = c ? 1 : -1, ce = l < 0 || l === 0 && 1 / l < 0 ? 1 : 0;
15964
- for (l = Math.abs(l), isNaN(l) || l === 1 / 0 ? (j = isNaN(l) ? 1 : 0, N = X) : (N = Math.floor(Math.log(l) / Math.LN2), l * ($ = Math.pow(2, -N)) < 1 && (N--, $ *= 2), N + z >= 1 ? l += ge / $ : l += ge * Math.pow(2, 1 - z), l * $ >= 2 && (N++, $ /= 2), N + z >= X ? (j = 0, N = X) : N + z >= 1 ? (j = (l * $ - 1) * Math.pow(2, p), N = N + z) : (j = l * Math.pow(2, z - 1) * Math.pow(2, p), N = 0)); p >= 8; d[f + V] = j & 255, V += Ce, j /= 256, p -= 8)
16009
+ var F, j, $, v = g * 8 - p - 1, X = (1 << v) - 1, z = X >> 1, ge = p === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, V = c ? 0 : g - 1, Ce = c ? 1 : -1, ce = l < 0 || l === 0 && 1 / l < 0 ? 1 : 0;
16010
+ for (l = Math.abs(l), isNaN(l) || l === 1 / 0 ? (j = isNaN(l) ? 1 : 0, F = X) : (F = Math.floor(Math.log(l) / Math.LN2), l * ($ = Math.pow(2, -F)) < 1 && (F--, $ *= 2), F + z >= 1 ? l += ge / $ : l += ge * Math.pow(2, 1 - z), l * $ >= 2 && (F++, $ /= 2), F + z >= X ? (j = 0, F = X) : F + z >= 1 ? (j = (l * $ - 1) * Math.pow(2, p), F = F + z) : (j = l * Math.pow(2, z - 1) * Math.pow(2, p), F = 0)); p >= 8; d[f + V] = j & 255, V += Ce, j /= 256, p -= 8)
15965
16011
  ;
15966
- for (N = N << p | j, v += p; v > 0; d[f + V] = N & 255, V += Ce, N /= 256, v -= 8)
16012
+ for (F = F << p | j, v += p; v > 0; d[f + V] = F & 255, V += Ce, F /= 256, v -= 8)
15967
16013
  ;
15968
16014
  d[f + V - Ce] |= ce * 128;
15969
16015
  }), Zt;
@@ -15997,7 +16043,7 @@ function ls() {
15997
16043
  function g() {
15998
16044
  return j.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
15999
16045
  }
16000
- function N(te, T) {
16046
+ function F(te, T) {
16001
16047
  if (g() < T)
16002
16048
  throw new RangeError("Invalid typed array length");
16003
16049
  return j.TYPED_ARRAY_SUPPORT ? (te = new Uint8Array(T), te.__proto__ = j.prototype) : (te === null && (te = new j(T)), te.length = T), te;
@@ -16035,13 +16081,13 @@ function ls() {
16035
16081
  throw new RangeError('"size" argument must not be negative');
16036
16082
  }
16037
16083
  function X(te, T, A, fe) {
16038
- return v(T), T <= 0 ? N(te, T) : A !== void 0 ? typeof fe == "string" ? N(te, T).fill(A, fe) : N(te, T).fill(A) : N(te, T);
16084
+ return v(T), T <= 0 ? F(te, T) : A !== void 0 ? typeof fe == "string" ? F(te, T).fill(A, fe) : F(te, T).fill(A) : F(te, T);
16039
16085
  }
16040
16086
  j.alloc = function(te, T, A) {
16041
16087
  return X(null, te, T, A);
16042
16088
  };
16043
16089
  function z(te, T) {
16044
- if (v(T), te = N(te, T < 0 ? 0 : he(T) | 0), !j.TYPED_ARRAY_SUPPORT)
16090
+ if (v(T), te = F(te, T < 0 ? 0 : he(T) | 0), !j.TYPED_ARRAY_SUPPORT)
16045
16091
  for (var A = 0; A < T; ++A)
16046
16092
  te[A] = 0;
16047
16093
  return te;
@@ -16055,13 +16101,13 @@ function ls() {
16055
16101
  if ((typeof A != "string" || A === "") && (A = "utf8"), !j.isEncoding(A))
16056
16102
  throw new TypeError('"encoding" must be a valid string encoding');
16057
16103
  var fe = De(T, A) | 0;
16058
- te = N(te, fe);
16104
+ te = F(te, fe);
16059
16105
  var Se = te.write(T, A);
16060
16106
  return Se !== fe && (te = te.slice(0, Se)), te;
16061
16107
  }
16062
16108
  function V(te, T) {
16063
16109
  var A = T.length < 0 ? 0 : he(T.length) | 0;
16064
- te = N(te, A);
16110
+ te = F(te, A);
16065
16111
  for (var fe = 0; fe < A; fe += 1)
16066
16112
  te[fe] = T[fe] & 255;
16067
16113
  return te;
@@ -16076,11 +16122,11 @@ function ls() {
16076
16122
  function ce(te, T) {
16077
16123
  if (j.isBuffer(T)) {
16078
16124
  var A = he(T.length) | 0;
16079
- return te = N(te, A), te.length === 0 || T.copy(te, 0, 0, A), te;
16125
+ return te = F(te, A), te.length === 0 || T.copy(te, 0, 0, A), te;
16080
16126
  }
16081
16127
  if (T) {
16082
16128
  if (typeof ArrayBuffer < "u" && T.buffer instanceof ArrayBuffer || "length" in T)
16083
- return typeof T.length != "number" || lt(T.length) ? N(te, 0) : V(te, T);
16129
+ return typeof T.length != "number" || lt(T.length) ? F(te, 0) : V(te, T);
16084
16130
  if (T.type === "Buffer" && c(T.data))
16085
16131
  return V(te, T.data);
16086
16132
  }
@@ -16158,7 +16204,7 @@ function ls() {
16158
16204
  case "utf8":
16159
16205
  case "utf-8":
16160
16206
  case void 0:
16161
- return Ne(te).length;
16207
+ return Fe(te).length;
16162
16208
  case "ucs2":
16163
16209
  case "ucs-2":
16164
16210
  case "utf16le":
@@ -16169,7 +16215,7 @@ function ls() {
16169
16215
  case "base64":
16170
16216
  return ze(te).length;
16171
16217
  default:
16172
- if (fe) return Ne(te).length;
16218
+ if (fe) return Fe(te).length;
16173
16219
  T = ("" + T).toLowerCase(), fe = !0;
16174
16220
  }
16175
16221
  }
@@ -16321,7 +16367,7 @@ function ls() {
16321
16367
  return be;
16322
16368
  }
16323
16369
  function ue(te, T, A, fe) {
16324
- return it(Ne(T, te.length - A), te, A, fe);
16370
+ return it(Fe(T, te.length - A), te, A, fe);
16325
16371
  }
16326
16372
  function ke(te, T, A, fe) {
16327
16373
  return it(He(T), te, A, fe);
@@ -16458,62 +16504,62 @@ function ls() {
16458
16504
  }
16459
16505
  return Se;
16460
16506
  };
16461
- function Fe(te, T, A) {
16507
+ function Ne(te, T, A) {
16462
16508
  if (te % 1 !== 0 || te < 0) throw new RangeError("offset is not uint");
16463
16509
  if (te + T > A) throw new RangeError("Trying to access beyond buffer length");
16464
16510
  }
16465
16511
  j.prototype.readUIntLE = function(T, A, fe) {
16466
- T = T | 0, A = A | 0, fe || Fe(T, A, this.length);
16512
+ T = T | 0, A = A | 0, fe || Ne(T, A, this.length);
16467
16513
  for (var Se = this[T], G = 1, be = 0; ++be < A && (G *= 256); )
16468
16514
  Se += this[T + be] * G;
16469
16515
  return Se;
16470
16516
  }, j.prototype.readUIntBE = function(T, A, fe) {
16471
- T = T | 0, A = A | 0, fe || Fe(T, A, this.length);
16517
+ T = T | 0, A = A | 0, fe || Ne(T, A, this.length);
16472
16518
  for (var Se = this[T + --A], G = 1; A > 0 && (G *= 256); )
16473
16519
  Se += this[T + --A] * G;
16474
16520
  return Se;
16475
16521
  }, j.prototype.readUInt8 = function(T, A) {
16476
- return A || Fe(T, 1, this.length), this[T];
16522
+ return A || Ne(T, 1, this.length), this[T];
16477
16523
  }, j.prototype.readUInt16LE = function(T, A) {
16478
- return A || Fe(T, 2, this.length), this[T] | this[T + 1] << 8;
16524
+ return A || Ne(T, 2, this.length), this[T] | this[T + 1] << 8;
16479
16525
  }, j.prototype.readUInt16BE = function(T, A) {
16480
- return A || Fe(T, 2, this.length), this[T] << 8 | this[T + 1];
16526
+ return A || Ne(T, 2, this.length), this[T] << 8 | this[T + 1];
16481
16527
  }, j.prototype.readUInt32LE = function(T, A) {
16482
- return A || Fe(T, 4, this.length), (this[T] | this[T + 1] << 8 | this[T + 2] << 16) + this[T + 3] * 16777216;
16528
+ return A || Ne(T, 4, this.length), (this[T] | this[T + 1] << 8 | this[T + 2] << 16) + this[T + 3] * 16777216;
16483
16529
  }, j.prototype.readUInt32BE = function(T, A) {
16484
- return A || Fe(T, 4, this.length), this[T] * 16777216 + (this[T + 1] << 16 | this[T + 2] << 8 | this[T + 3]);
16530
+ return A || Ne(T, 4, this.length), this[T] * 16777216 + (this[T + 1] << 16 | this[T + 2] << 8 | this[T + 3]);
16485
16531
  }, j.prototype.readIntLE = function(T, A, fe) {
16486
- T = T | 0, A = A | 0, fe || Fe(T, A, this.length);
16532
+ T = T | 0, A = A | 0, fe || Ne(T, A, this.length);
16487
16533
  for (var Se = this[T], G = 1, be = 0; ++be < A && (G *= 256); )
16488
16534
  Se += this[T + be] * G;
16489
16535
  return G *= 128, Se >= G && (Se -= Math.pow(2, 8 * A)), Se;
16490
16536
  }, j.prototype.readIntBE = function(T, A, fe) {
16491
- T = T | 0, A = A | 0, fe || Fe(T, A, this.length);
16537
+ T = T | 0, A = A | 0, fe || Ne(T, A, this.length);
16492
16538
  for (var Se = A, G = 1, be = this[T + --Se]; Se > 0 && (G *= 256); )
16493
16539
  be += this[T + --Se] * G;
16494
16540
  return G *= 128, be >= G && (be -= Math.pow(2, 8 * A)), be;
16495
16541
  }, j.prototype.readInt8 = function(T, A) {
16496
- return A || Fe(T, 1, this.length), this[T] & 128 ? (255 - this[T] + 1) * -1 : this[T];
16542
+ return A || Ne(T, 1, this.length), this[T] & 128 ? (255 - this[T] + 1) * -1 : this[T];
16497
16543
  }, j.prototype.readInt16LE = function(T, A) {
16498
- A || Fe(T, 2, this.length);
16544
+ A || Ne(T, 2, this.length);
16499
16545
  var fe = this[T] | this[T + 1] << 8;
16500
16546
  return fe & 32768 ? fe | 4294901760 : fe;
16501
16547
  }, j.prototype.readInt16BE = function(T, A) {
16502
- A || Fe(T, 2, this.length);
16548
+ A || Ne(T, 2, this.length);
16503
16549
  var fe = this[T + 1] | this[T] << 8;
16504
16550
  return fe & 32768 ? fe | 4294901760 : fe;
16505
16551
  }, j.prototype.readInt32LE = function(T, A) {
16506
- return A || Fe(T, 4, this.length), this[T] | this[T + 1] << 8 | this[T + 2] << 16 | this[T + 3] << 24;
16552
+ return A || Ne(T, 4, this.length), this[T] | this[T + 1] << 8 | this[T + 2] << 16 | this[T + 3] << 24;
16507
16553
  }, j.prototype.readInt32BE = function(T, A) {
16508
- return A || Fe(T, 4, this.length), this[T] << 24 | this[T + 1] << 16 | this[T + 2] << 8 | this[T + 3];
16554
+ return A || Ne(T, 4, this.length), this[T] << 24 | this[T + 1] << 16 | this[T + 2] << 8 | this[T + 3];
16509
16555
  }, j.prototype.readFloatLE = function(T, A) {
16510
- return A || Fe(T, 4, this.length), f.read(this, T, !0, 23, 4);
16556
+ return A || Ne(T, 4, this.length), f.read(this, T, !0, 23, 4);
16511
16557
  }, j.prototype.readFloatBE = function(T, A) {
16512
- return A || Fe(T, 4, this.length), f.read(this, T, !1, 23, 4);
16558
+ return A || Ne(T, 4, this.length), f.read(this, T, !1, 23, 4);
16513
16559
  }, j.prototype.readDoubleLE = function(T, A) {
16514
- return A || Fe(T, 8, this.length), f.read(this, T, !0, 52, 8);
16560
+ return A || Ne(T, 8, this.length), f.read(this, T, !0, 52, 8);
16515
16561
  }, j.prototype.readDoubleBE = function(T, A) {
16516
- return A || Fe(T, 8, this.length), f.read(this, T, !1, 52, 8);
16562
+ return A || Ne(T, 8, this.length), f.read(this, T, !1, 52, 8);
16517
16563
  };
16518
16564
  function Xe(te, T, A, fe, Se, G) {
16519
16565
  if (!j.isBuffer(te)) throw new TypeError('"buffer" argument must be a Buffer instance');
@@ -16650,7 +16696,7 @@ function ls() {
16650
16696
  for (be = A; be < fe; ++be)
16651
16697
  this[be] = T;
16652
16698
  else {
16653
- var We = j.isBuffer(T) ? T : Ne(new j(T, Se).toString()), ye = We.length;
16699
+ var We = j.isBuffer(T) ? T : Fe(new j(T, Se).toString()), ye = We.length;
16654
16700
  for (be = 0; be < fe - A; ++be)
16655
16701
  this[be + A] = We[be % ye];
16656
16702
  }
@@ -16669,7 +16715,7 @@ function ls() {
16669
16715
  function de(te) {
16670
16716
  return te < 16 ? "0" + te.toString(16) : te.toString(16);
16671
16717
  }
16672
- function Ne(te, T) {
16718
+ function Fe(te, T) {
16673
16719
  T = T || 1 / 0;
16674
16720
  for (var A, fe = te.length, Se = null, G = [], be = 0; be < fe; ++be) {
16675
16721
  if (A = te.charCodeAt(be), A > 55295 && A < 57344) {
@@ -16818,9 +16864,9 @@ function ds(d, l) {
16818
16864
  return f;
16819
16865
  }
16820
16866
  function hs(d, l, f, c) {
16821
- var p = arguments.length, g = p < 3 ? l : c === null ? c = Object.getOwnPropertyDescriptor(l, f) : c, N;
16867
+ var p = arguments.length, g = p < 3 ? l : c === null ? c = Object.getOwnPropertyDescriptor(l, f) : c, F;
16822
16868
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function") g = Reflect.decorate(d, l, f, c);
16823
- else for (var j = d.length - 1; j >= 0; j--) (N = d[j]) && (g = (p < 3 ? N(g) : p > 3 ? N(l, f, g) : N(l, f)) || g);
16869
+ else for (var j = d.length - 1; j >= 0; j--) (F = d[j]) && (g = (p < 3 ? F(g) : p > 3 ? F(l, f, g) : F(l, f)) || g);
16824
16870
  return p > 3 && g && Object.defineProperty(l, f, g), g;
16825
16871
  }
16826
16872
  function ps(d, l) {
@@ -16833,23 +16879,23 @@ function gs(d, l) {
16833
16879
  }
16834
16880
  function ms(d, l, f, c) {
16835
16881
  function p(g) {
16836
- return g instanceof f ? g : new f(function(N) {
16837
- N(g);
16882
+ return g instanceof f ? g : new f(function(F) {
16883
+ F(g);
16838
16884
  });
16839
16885
  }
16840
- return new (f || (f = Promise))(function(g, N) {
16886
+ return new (f || (f = Promise))(function(g, F) {
16841
16887
  function j(X) {
16842
16888
  try {
16843
16889
  v(c.next(X));
16844
16890
  } catch (z) {
16845
- N(z);
16891
+ F(z);
16846
16892
  }
16847
16893
  }
16848
16894
  function $(X) {
16849
16895
  try {
16850
16896
  v(c.throw(X));
16851
16897
  } catch (z) {
16852
- N(z);
16898
+ F(z);
16853
16899
  }
16854
16900
  }
16855
16901
  function v(X) {
@@ -16862,10 +16908,10 @@ function vs(d, l) {
16862
16908
  var f = { label: 0, sent: function() {
16863
16909
  if (g[0] & 1) throw g[1];
16864
16910
  return g[1];
16865
- }, trys: [], ops: [] }, c, p, g, N;
16866
- return N = { next: j(0), throw: j(1), return: j(2) }, typeof Symbol == "function" && (N[Symbol.iterator] = function() {
16911
+ }, trys: [], ops: [] }, c, p, g, F;
16912
+ return F = { next: j(0), throw: j(1), return: j(2) }, typeof Symbol == "function" && (F[Symbol.iterator] = function() {
16867
16913
  return this;
16868
- }), N;
16914
+ }), F;
16869
16915
  function j(v) {
16870
16916
  return function(X) {
16871
16917
  return $([v, X]);
@@ -16937,16 +16983,16 @@ function xn(d) {
16937
16983
  function Ui(d, l) {
16938
16984
  var f = typeof Symbol == "function" && d[Symbol.iterator];
16939
16985
  if (!f) return d;
16940
- var c = f.call(d), p, g = [], N;
16986
+ var c = f.call(d), p, g = [], F;
16941
16987
  try {
16942
16988
  for (; (l === void 0 || l-- > 0) && !(p = c.next()).done; ) g.push(p.value);
16943
16989
  } catch (j) {
16944
- N = { error: j };
16990
+ F = { error: j };
16945
16991
  } finally {
16946
16992
  try {
16947
16993
  p && !p.done && (f = c.return) && f.call(c);
16948
16994
  } finally {
16949
- if (N) throw N.error;
16995
+ if (F) throw F.error;
16950
16996
  }
16951
16997
  }
16952
16998
  return g;
@@ -16959,8 +17005,8 @@ function bs() {
16959
17005
  function xs() {
16960
17006
  for (var d = 0, l = 0, f = arguments.length; l < f; l++) d += arguments[l].length;
16961
17007
  for (var c = Array(d), p = 0, l = 0; l < f; l++)
16962
- for (var g = arguments[l], N = 0, j = g.length; N < j; N++, p++)
16963
- c[p] = g[N];
17008
+ for (var g = arguments[l], F = 0, j = g.length; F < j; F++, p++)
17009
+ c[p] = g[F];
16964
17010
  return c;
16965
17011
  }
16966
17012
  function Kt(d) {
@@ -16969,10 +17015,10 @@ function Kt(d) {
16969
17015
  function Cs(d, l, f) {
16970
17016
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
16971
17017
  var c = f.apply(d, l || []), p, g = [];
16972
- return p = {}, N("next"), N("throw"), N("return"), p[Symbol.asyncIterator] = function() {
17018
+ return p = {}, F("next"), F("throw"), F("return"), p[Symbol.asyncIterator] = function() {
16973
17019
  return this;
16974
17020
  }, p;
16975
- function N(ge) {
17021
+ function F(ge) {
16976
17022
  c[ge] && (p[ge] = function(V) {
16977
17023
  return new Promise(function(Ce, ce) {
16978
17024
  g.push([ge, V, Ce, ce]) > 1 || j(ge, V);
@@ -17007,8 +17053,8 @@ function Es(d) {
17007
17053
  return this;
17008
17054
  }, l;
17009
17055
  function c(p, g) {
17010
- l[p] = d[p] ? function(N) {
17011
- return (f = !f) ? { value: Kt(d[p](N)), done: p === "return" } : g ? g(N) : N;
17056
+ l[p] = d[p] ? function(F) {
17057
+ return (f = !f) ? { value: Kt(d[p](F)), done: p === "return" } : g ? g(F) : F;
17012
17058
  } : g;
17013
17059
  }
17014
17060
  }
@@ -17019,16 +17065,16 @@ function Ls(d) {
17019
17065
  return this;
17020
17066
  }, f);
17021
17067
  function c(g) {
17022
- f[g] = d[g] && function(N) {
17068
+ f[g] = d[g] && function(F) {
17023
17069
  return new Promise(function(j, $) {
17024
- N = d[g](N), p(j, $, N.done, N.value);
17070
+ F = d[g](F), p(j, $, F.done, F.value);
17025
17071
  });
17026
17072
  };
17027
17073
  }
17028
- function p(g, N, j, $) {
17074
+ function p(g, F, j, $) {
17029
17075
  Promise.resolve($).then(function(v) {
17030
17076
  g({ value: v, done: j });
17031
- }, N);
17077
+ }, F);
17032
17078
  }
17033
17079
  }
17034
17080
  function As(d, l) {
@@ -17181,19 +17227,19 @@ function ks() {
17181
17227
  if (!this.finished) {
17182
17228
  var c = this.bytesHashed * 8, p = new DataView(this.buffer.buffer, this.buffer.byteOffset, this.buffer.byteLength), g = this.bufferLength;
17183
17229
  if (p.setUint8(this.bufferLength++, 128), g % d.BLOCK_SIZE >= d.BLOCK_SIZE - 8) {
17184
- for (var N = this.bufferLength; N < d.BLOCK_SIZE; N++)
17185
- p.setUint8(N, 0);
17230
+ for (var F = this.bufferLength; F < d.BLOCK_SIZE; F++)
17231
+ p.setUint8(F, 0);
17186
17232
  this.hashBuffer(), this.bufferLength = 0;
17187
17233
  }
17188
- for (var N = this.bufferLength; N < d.BLOCK_SIZE - 8; N++)
17189
- p.setUint8(N, 0);
17234
+ for (var F = this.bufferLength; F < d.BLOCK_SIZE - 8; F++)
17235
+ p.setUint8(F, 0);
17190
17236
  p.setUint32(d.BLOCK_SIZE - 8, Math.floor(c / 4294967296), !0), p.setUint32(d.BLOCK_SIZE - 4, c), this.hashBuffer(), this.finished = !0;
17191
17237
  }
17192
- for (var j = new Uint8Array(d.DIGEST_LENGTH), N = 0; N < 8; N++)
17193
- j[N * 4] = this.state[N] >>> 24 & 255, j[N * 4 + 1] = this.state[N] >>> 16 & 255, j[N * 4 + 2] = this.state[N] >>> 8 & 255, j[N * 4 + 3] = this.state[N] >>> 0 & 255;
17238
+ for (var j = new Uint8Array(d.DIGEST_LENGTH), F = 0; F < 8; F++)
17239
+ j[F * 4] = this.state[F] >>> 24 & 255, j[F * 4 + 1] = this.state[F] >>> 16 & 255, j[F * 4 + 2] = this.state[F] >>> 8 & 255, j[F * 4 + 3] = this.state[F] >>> 0 & 255;
17194
17240
  return j;
17195
17241
  }, f.prototype.hashBuffer = function() {
17196
- for (var c = this, p = c.buffer, g = c.state, N = g[0], j = g[1], $ = g[2], v = g[3], X = g[4], z = g[5], ge = g[6], V = g[7], Ce = 0; Ce < d.BLOCK_SIZE; Ce++) {
17242
+ for (var c = this, p = c.buffer, g = c.state, F = g[0], j = g[1], $ = g[2], v = g[3], X = g[4], z = g[5], ge = g[6], V = g[7], Ce = 0; Ce < d.BLOCK_SIZE; Ce++) {
17197
17243
  if (Ce < 16)
17198
17244
  this.temp[Ce] = (p[Ce * 4] & 255) << 24 | (p[Ce * 4 + 1] & 255) << 16 | (p[Ce * 4 + 2] & 255) << 8 | p[Ce * 4 + 3] & 255;
17199
17245
  else {
@@ -17202,10 +17248,10 @@ function ks() {
17202
17248
  var re = (ce >>> 7 | ce << 25) ^ (ce >>> 18 | ce << 14) ^ ce >>> 3;
17203
17249
  this.temp[Ce] = (he + this.temp[Ce - 7] | 0) + (re + this.temp[Ce - 16] | 0);
17204
17250
  }
17205
- var De = (((X >>> 6 | X << 26) ^ (X >>> 11 | X << 21) ^ (X >>> 25 | X << 7)) + (X & z ^ ~X & ge) | 0) + (V + (d.KEY[Ce] + this.temp[Ce] | 0) | 0) | 0, Le = ((N >>> 2 | N << 30) ^ (N >>> 13 | N << 19) ^ (N >>> 22 | N << 10)) + (N & j ^ N & $ ^ j & $) | 0;
17206
- V = ge, ge = z, z = X, X = v + De | 0, v = $, $ = j, j = N, N = De + Le | 0;
17251
+ var De = (((X >>> 6 | X << 26) ^ (X >>> 11 | X << 21) ^ (X >>> 25 | X << 7)) + (X & z ^ ~X & ge) | 0) + (V + (d.KEY[Ce] + this.temp[Ce] | 0) | 0) | 0, Le = ((F >>> 2 | F << 30) ^ (F >>> 13 | F << 19) ^ (F >>> 22 | F << 10)) + (F & j ^ F & $ ^ j & $) | 0;
17252
+ V = ge, ge = z, z = X, X = v + De | 0, v = $, $ = j, j = F, F = De + Le | 0;
17207
17253
  }
17208
- g[0] += N, g[1] += j, g[2] += $, g[3] += v, g[4] += X, g[5] += z, g[6] += ge, g[7] += V;
17254
+ g[0] += F, g[1] += j, g[2] += $, g[3] += v, g[4] += X, g[5] += z, g[6] += ge, g[7] += V;
17209
17255
  }, f;
17210
17256
  })()
17211
17257
  );
@@ -17227,7 +17273,7 @@ const Ms = (d) => {
17227
17273
  l.push(p >> 12 | 224, p >> 6 & 63 | 128, p & 63 | 128);
17228
17274
  }
17229
17275
  return Uint8Array.from(l);
17230
- }, Ns = (d) => {
17276
+ }, Fs = (d) => {
17231
17277
  let l = "";
17232
17278
  for (let f = 0, c = d.length; f < c; f++) {
17233
17279
  const p = d[f];
@@ -17237,20 +17283,20 @@ const Ms = (d) => {
17237
17283
  const g = d[++f];
17238
17284
  l += String.fromCharCode((p & 31) << 6 | g & 63);
17239
17285
  } else if (240 <= p && p < 365) {
17240
- const N = "%" + [p, d[++f], d[++f], d[++f]].map((j) => j.toString(16)).join("%");
17241
- l += decodeURIComponent(N);
17286
+ const F = "%" + [p, d[++f], d[++f], d[++f]].map((j) => j.toString(16)).join("%");
17287
+ l += decodeURIComponent(F);
17242
17288
  } else
17243
17289
  l += String.fromCharCode((p & 15) << 12 | (d[++f] & 63) << 6 | d[++f] & 63);
17244
17290
  }
17245
17291
  return l;
17246
17292
  };
17247
- function Fs(d) {
17293
+ function Ns(d) {
17248
17294
  return new TextEncoder().encode(d);
17249
17295
  }
17250
17296
  function _s(d) {
17251
17297
  return new TextDecoder("utf-8").decode(d);
17252
17298
  }
17253
- const Os = (d) => typeof TextEncoder == "function" ? Fs(d) : Ms(d), Us = (d) => typeof TextDecoder == "function" ? _s(d) : Ns(d), Rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17299
+ const Os = (d) => typeof TextEncoder == "function" ? Ns(d) : Ms(d), Us = (d) => typeof TextDecoder == "function" ? _s(d) : Fs(d), Rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17254
17300
  __proto__: null,
17255
17301
  fromUtf8: Os,
17256
17302
  toUtf8: Us
@@ -17333,7 +17379,7 @@ function Ys() {
17333
17379
  var d = Ri, l = Pi(), f = ks(), c = zs(), p = (
17334
17380
  /** @class */
17335
17381
  (function() {
17336
- function N(j) {
17382
+ function F(j) {
17337
17383
  if (this.hash = new f.RawSha256(), j) {
17338
17384
  this.outer = new f.RawSha256();
17339
17385
  var $ = g(j), v = new Uint8Array(l.BLOCK_SIZE);
@@ -17345,29 +17391,29 @@ function Ys() {
17345
17391
  $[X] = 0;
17346
17392
  }
17347
17393
  }
17348
- return N.prototype.update = function(j) {
17394
+ return F.prototype.update = function(j) {
17349
17395
  if (!((0, c.isEmptyData)(j) || this.error))
17350
17396
  try {
17351
17397
  this.hash.update((0, c.convertToBuffer)(j));
17352
17398
  } catch ($) {
17353
17399
  this.error = $;
17354
17400
  }
17355
- }, N.prototype.digestSync = function() {
17401
+ }, F.prototype.digestSync = function() {
17356
17402
  if (this.error)
17357
17403
  throw this.error;
17358
17404
  return this.outer ? (this.outer.finished || this.outer.update(this.hash.digest()), this.outer.digest()) : this.hash.digest();
17359
- }, N.prototype.digest = function() {
17405
+ }, F.prototype.digest = function() {
17360
17406
  return (0, d.__awaiter)(this, void 0, void 0, function() {
17361
17407
  return (0, d.__generator)(this, function(j) {
17362
17408
  return [2, this.digestSync()];
17363
17409
  });
17364
17410
  });
17365
- }, N;
17411
+ }, F;
17366
17412
  })()
17367
17413
  );
17368
17414
  _t.Sha256 = p;
17369
- function g(N) {
17370
- var j = (0, c.convertToBuffer)(N);
17415
+ function g(F) {
17416
+ var j = (0, c.convertToBuffer)(F);
17371
17417
  if (j.byteLength > l.BLOCK_SIZE) {
17372
17418
  var $ = new f.RawSha256();
17373
17419
  $.update(j), j = $.digest();
@@ -17395,22 +17441,22 @@ function ht() {
17395
17441
  var xt, qs = 244837814094590, wi = (qs & 16777215) == 15715070;
17396
17442
  function Ks(d, l, f, c, p, g) {
17397
17443
  for (; --g >= 0; ) {
17398
- var N = l * this[d++] + f[c] + p;
17399
- p = Math.floor(N / 67108864), f[c++] = N & 67108863;
17444
+ var F = l * this[d++] + f[c] + p;
17445
+ p = Math.floor(F / 67108864), f[c++] = F & 67108863;
17400
17446
  }
17401
17447
  return p;
17402
17448
  }
17403
17449
  function Xs(d, l, f, c, p, g) {
17404
- for (var N = l & 32767, j = l >> 15; --g >= 0; ) {
17405
- var $ = this[d] & 32767, v = this[d++] >> 15, X = j * $ + v * N;
17406
- $ = N * $ + ((X & 32767) << 15) + f[c] + (p & 1073741823), p = ($ >>> 30) + (X >>> 15) + j * v + (p >>> 30), f[c++] = $ & 1073741823;
17450
+ for (var F = l & 32767, j = l >> 15; --g >= 0; ) {
17451
+ var $ = this[d] & 32767, v = this[d++] >> 15, X = j * $ + v * F;
17452
+ $ = F * $ + ((X & 32767) << 15) + f[c] + (p & 1073741823), p = ($ >>> 30) + (X >>> 15) + j * v + (p >>> 30), f[c++] = $ & 1073741823;
17407
17453
  }
17408
17454
  return p;
17409
17455
  }
17410
17456
  function Gs(d, l, f, c, p, g) {
17411
- for (var N = l & 16383, j = l >> 14; --g >= 0; ) {
17412
- var $ = this[d] & 16383, v = this[d++] >> 14, X = j * $ + v * N;
17413
- $ = N * $ + ((X & 16383) << 14) + f[c] + p, p = ($ >> 28) + (X >> 14) + j * v, f[c++] = $ & 268435455;
17457
+ for (var F = l & 16383, j = l >> 14; --g >= 0; ) {
17458
+ var $ = this[d] & 16383, v = this[d++] >> 14, X = j * $ + v * F;
17459
+ $ = F * $ + ((X & 16383) << 14) + f[c] + p, p = ($ >> 28) + (X >> 14) + j * v, f[c++] = $ & 268435455;
17414
17460
  }
17415
17461
  return p;
17416
17462
  }
@@ -17458,12 +17504,12 @@ function to(d, l) {
17458
17504
  else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");
17459
17505
  this.t = 0, this.s = 0;
17460
17506
  for (var c = d.length, p = !1, g = 0; --c >= 0; ) {
17461
- var N = Zs(d, c);
17462
- if (N < 0) {
17507
+ var F = Zs(d, c);
17508
+ if (F < 0) {
17463
17509
  d.charAt(c) == "-" && (p = !0);
17464
17510
  continue;
17465
17511
  }
17466
- p = !1, g == 0 ? this[this.t++] = N : g + f > this.DB ? (this[this.t - 1] |= (N & (1 << this.DB - g) - 1) << g, this[this.t++] = N >> this.DB - g) : this[this.t - 1] |= N << g, g += f, g >= this.DB && (g -= this.DB);
17512
+ p = !1, g == 0 ? this[this.t++] = F : g + f > this.DB ? (this[this.t - 1] |= (F & (1 << this.DB - g) - 1) << g, this[this.t++] = F >> this.DB - g) : this[this.t - 1] |= F << g, g += f, g >= this.DB && (g -= this.DB);
17467
17513
  }
17468
17514
  this.clamp(), p && nt.ZERO.subTo(this, this);
17469
17515
  }
@@ -17479,10 +17525,10 @@ function io(d) {
17479
17525
  else if (d == 32) l = 5;
17480
17526
  else if (d == 4) l = 2;
17481
17527
  else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");
17482
- var f = (1 << l) - 1, c, p = !1, g = "", N = this.t, j = this.DB - N * this.DB % l;
17483
- if (N-- > 0)
17484
- for (j < this.DB && (c = this[N] >> j) > 0 && (p = !0, g = xi(c)); N >= 0; )
17485
- j < l ? (c = (this[N] & (1 << j) - 1) << l - j, c |= this[--N] >> (j += this.DB - l)) : (c = this[N] >> (j -= l) & f, j <= 0 && (j += this.DB, --N)), c > 0 && (p = !0), p && (g += xi(c));
17528
+ var f = (1 << l) - 1, c, p = !1, g = "", F = this.t, j = this.DB - F * this.DB % l;
17529
+ if (F-- > 0)
17530
+ for (j < this.DB && (c = this[F] >> j) > 0 && (p = !0, g = xi(c)); F >= 0; )
17531
+ j < l ? (c = (this[F] & (1 << j) - 1) << l - j, c |= this[--F] >> (j += this.DB - l)) : (c = this[F] >> (j -= l) & f, j <= 0 && (j += this.DB, --F)), c > 0 && (p = !0), p && (g += xi(c));
17486
17532
  return p ? g : "0";
17487
17533
  }
17488
17534
  function ro() {
@@ -17518,11 +17564,11 @@ function co(d, l) {
17518
17564
  l.t = Math.max(this.t - d, 0), l.s = this.s;
17519
17565
  }
17520
17566
  function uo(d, l) {
17521
- var f = d % this.DB, c = this.DB - f, p = (1 << c) - 1, g = Math.floor(d / this.DB), N = this.s << f & this.DM, j;
17567
+ var f = d % this.DB, c = this.DB - f, p = (1 << c) - 1, g = Math.floor(d / this.DB), F = this.s << f & this.DM, j;
17522
17568
  for (j = this.t - 1; j >= 0; --j)
17523
- l[j + g + 1] = this[j] >> c | N, N = (this[j] & p) << f;
17569
+ l[j + g + 1] = this[j] >> c | F, F = (this[j] & p) << f;
17524
17570
  for (j = g - 1; j >= 0; --j) l[j] = 0;
17525
- l[g] = N, l.t = this.t + g + 1, l.s = this.s, l.clamp();
17571
+ l[g] = F, l.t = this.t + g + 1, l.s = this.s, l.clamp();
17526
17572
  }
17527
17573
  function fo(d, l) {
17528
17574
  l.s = this.s;
@@ -17533,8 +17579,8 @@ function fo(d, l) {
17533
17579
  }
17534
17580
  var c = d % this.DB, p = this.DB - c, g = (1 << c) - 1;
17535
17581
  l[0] = this[f] >> c;
17536
- for (var N = f + 1; N < this.t; ++N)
17537
- l[N - f - 1] |= (this[N] & g) << p, l[N - f] = this[N] >> c;
17582
+ for (var F = f + 1; F < this.t; ++F)
17583
+ l[F - f - 1] |= (this[F] & g) << p, l[F - f] = this[F] >> c;
17538
17584
  c > 0 && (l[this.t - f - 1] |= (this.s & g) << p), l.t = this.t - f, l.clamp();
17539
17585
  }
17540
17586
  function ho(d, l) {
@@ -17574,7 +17620,7 @@ function mo(d, l, f) {
17574
17620
  return;
17575
17621
  }
17576
17622
  f == null && (f = ht());
17577
- var g = ht(), N = this.s, j = d.s, $ = this.DB - Bn(c[c.t - 1]);
17623
+ var g = ht(), F = this.s, j = d.s, $ = this.DB - Bn(c[c.t - 1]);
17578
17624
  $ > 0 ? (c.lShiftTo($, g), p.lShiftTo($, f)) : (c.copyTo(g), p.copyTo(f));
17579
17625
  var v = g.t, X = g[v - 1];
17580
17626
  if (X != 0) {
@@ -17585,7 +17631,7 @@ function mo(d, l, f) {
17585
17631
  if ((f[ce] += g.am(0, De, f, he, 0, v)) < De)
17586
17632
  for (g.dlShiftTo(he, re), f.subTo(re, f); f[ce] < --De; ) f.subTo(re, f);
17587
17633
  }
17588
- l != null && (f.drShiftTo(v, l), N != j && nt.ZERO.subTo(l, l)), f.t = v, f.clamp(), $ > 0 && f.rShiftTo($, f), N < 0 && nt.ZERO.subTo(f, f);
17634
+ l != null && (f.drShiftTo(v, l), F != j && nt.ZERO.subTo(l, l)), f.t = v, f.clamp(), $ > 0 && f.rShiftTo($, f), F < 0 && nt.ZERO.subTo(f, f);
17589
17635
  }
17590
17636
  }
17591
17637
  }
@@ -17666,14 +17712,14 @@ kt.prototype.reduce = So;
17666
17712
  kt.prototype.mulTo = jo;
17667
17713
  kt.prototype.sqrTo = Do;
17668
17714
  function Io(d, l, f) {
17669
- var c = d.bitLength(), p, g = Hn(1), N = new kt(l);
17715
+ var c = d.bitLength(), p, g = Hn(1), F = new kt(l);
17670
17716
  if (c <= 0) return g;
17671
17717
  c < 18 ? p = 1 : c < 48 ? p = 3 : c < 144 ? p = 4 : c < 768 ? p = 5 : p = 6;
17672
17718
  var j = new Array(), $ = 3, v = p - 1, X = (1 << p) - 1;
17673
- if (j[1] = N.convert(this), p > 1) {
17719
+ if (j[1] = F.convert(this), p > 1) {
17674
17720
  var z = ht();
17675
- for (N.sqrTo(j[1], z); $ <= X; )
17676
- j[$] = ht(), N.mulTo(z, j[$ - 2], j[$]), $ += 2;
17721
+ for (F.sqrTo(j[1], z); $ <= X; )
17722
+ j[$] = ht(), F.mulTo(z, j[$ - 2], j[$]), $ += 2;
17677
17723
  }
17678
17724
  var ge = d.t - 1, V, Ce = !0, ce = ht(), he;
17679
17725
  for (c = Bn(d[ge]) - 1; ge >= 0; ) {
@@ -17683,13 +17729,13 @@ function Io(d, l, f) {
17683
17729
  j[V].copyTo(g), Ce = !1;
17684
17730
  else {
17685
17731
  for (; $ > 1; )
17686
- N.sqrTo(g, ce), N.sqrTo(ce, g), $ -= 2;
17687
- $ > 0 ? N.sqrTo(g, ce) : (he = g, g = ce, ce = he), N.mulTo(ce, j[V], g);
17732
+ F.sqrTo(g, ce), F.sqrTo(ce, g), $ -= 2;
17733
+ $ > 0 ? F.sqrTo(g, ce) : (he = g, g = ce, ce = he), F.mulTo(ce, j[V], g);
17688
17734
  }
17689
17735
  for (; ge >= 0 && (d[ge] & 1 << c) == 0; )
17690
- N.sqrTo(g, ce), he = g, g = ce, ce = he, --c < 0 && (c = this.DB - 1, --ge);
17736
+ F.sqrTo(g, ce), he = g, g = ce, ce = he, --c < 0 && (c = this.DB - 1, --ge);
17691
17737
  }
17692
- var re = N.revert(g);
17738
+ var re = F.revert(g);
17693
17739
  return f(null, re), re;
17694
17740
  }
17695
17741
  nt.prototype.copyTo = Qs;
@@ -17723,7 +17769,7 @@ nt.ONE = Hn(1);
17723
17769
  function gn(d) {
17724
17770
  return ut.Buffer.from(new Oi().random(d).toString(), "hex");
17725
17771
  }
17726
- var ko = /^[89a-f]/i, Mo = "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF", No = "userAttributes.", Lt = /* @__PURE__ */ (function() {
17772
+ var ko = /^[89a-f]/i, Mo = "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF", Fo = "userAttributes.", Lt = /* @__PURE__ */ (function() {
17727
17773
  function d(f) {
17728
17774
  this.N = new nt(Mo, 16), this.g = new nt("2", 16), this.k = new nt(this.hexHash("" + this.padHex(this.N) + this.padHex(this.g)), 16), this.smallAValue = this.generateRandomSmallA(), this.getLargeAValue(function() {
17729
17775
  }), this.infoBits = ut.Buffer.from("Caldera Derived Key", "utf8"), this.poolName = f;
@@ -17733,8 +17779,8 @@ var ko = /^[89a-f]/i, Mo = "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD12902
17733
17779
  return this.smallAValue;
17734
17780
  }, l.getLargeAValue = function(c) {
17735
17781
  var p = this;
17736
- this.largeAValue ? c(null, this.largeAValue) : this.calculateA(this.smallAValue, function(g, N) {
17737
- g && c(g, null), p.largeAValue = N, c(null, p.largeAValue);
17782
+ this.largeAValue ? c(null, this.largeAValue) : this.calculateA(this.smallAValue, function(g, F) {
17783
+ g && c(g, null), p.largeAValue = F, c(null, p.largeAValue);
17738
17784
  });
17739
17785
  }, l.generateRandomSmallA = function() {
17740
17786
  var c = gn(128).toString("hex"), p = new nt(c, 16);
@@ -17748,16 +17794,16 @@ var ko = /^[89a-f]/i, Mo = "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD12902
17748
17794
  }, l.getVerifierDevices = function() {
17749
17795
  return this.verifierDevices;
17750
17796
  }, l.generateHashDevice = function(c, p, g) {
17751
- var N = this;
17797
+ var F = this;
17752
17798
  this.randomPassword = this.generateRandomString();
17753
17799
  var j = "" + c + p + ":" + this.randomPassword, $ = this.hash(j), v = gn(16).toString("hex");
17754
17800
  this.SaltToHashDevices = this.padHex(new nt(v, 16)), this.g.modPow(new nt(this.hexHash(this.SaltToHashDevices + $), 16), this.N, function(X, z) {
17755
- X && g(X, null), N.verifierDevices = N.padHex(z), g(null, null);
17801
+ X && g(X, null), F.verifierDevices = F.padHex(z), g(null, null);
17756
17802
  });
17757
17803
  }, l.calculateA = function(c, p) {
17758
17804
  var g = this;
17759
- this.g.modPow(c, this.N, function(N, j) {
17760
- N && p(N, null), j.mod(g.N).equals(nt.ZERO) && p(new Error("Illegal paramater. A mod N cannot be 0."), null), p(null, j);
17805
+ this.g.modPow(c, this.N, function(F, j) {
17806
+ F && p(F, null), j.mod(g.N).equals(nt.ZERO) && p(new Error("Illegal paramater. A mod N cannot be 0."), null), p(null, j);
17761
17807
  });
17762
17808
  }, l.calculateU = function(c, p) {
17763
17809
  this.UHexHash = this.hexHash(this.padHex(c) + this.padHex(p));
@@ -17766,49 +17812,49 @@ var ko = /^[89a-f]/i, Mo = "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD12902
17766
17812
  }, l.hash = function(c) {
17767
17813
  var p = new zt.Sha256();
17768
17814
  p.update(c);
17769
- var g = p.digestSync(), N = ut.Buffer.from(g).toString("hex");
17770
- return new Array(64 - N.length).join("0") + N;
17815
+ var g = p.digestSync(), F = ut.Buffer.from(g).toString("hex");
17816
+ return new Array(64 - F.length).join("0") + F;
17771
17817
  }, l.hexHash = function(c) {
17772
17818
  return this.hash(ut.Buffer.from(c, "hex"));
17773
17819
  }, l.computehkdf = function(c, p) {
17774
- var g = ut.Buffer.concat([this.infoBits, ut.Buffer.from("", "utf8")]), N = new zt.Sha256(p);
17775
- N.update(c);
17776
- var j = N.digestSync(), $ = new zt.Sha256(j);
17820
+ var g = ut.Buffer.concat([this.infoBits, ut.Buffer.from("", "utf8")]), F = new zt.Sha256(p);
17821
+ F.update(c);
17822
+ var j = F.digestSync(), $ = new zt.Sha256(j);
17777
17823
  $.update(g);
17778
17824
  var v = $.digestSync(), X = v, z = X.slice(0, 16);
17779
17825
  return z;
17780
- }, l.getPasswordAuthenticationKey = function(c, p, g, N, j) {
17826
+ }, l.getPasswordAuthenticationKey = function(c, p, g, F, j) {
17781
17827
  var $ = this;
17782
17828
  if (g.mod(this.N).equals(nt.ZERO))
17783
17829
  throw new Error("B cannot be zero.");
17784
17830
  if (this.UValue = this.calculateU(this.largeAValue, g), this.UValue.equals(nt.ZERO))
17785
17831
  throw new Error("U cannot be zero.");
17786
- var v = "" + this.poolName + c + ":" + p, X = this.hash(v), z = new nt(this.hexHash(this.padHex(N) + X), 16);
17832
+ var v = "" + this.poolName + c + ":" + p, X = this.hash(v), z = new nt(this.hexHash(this.padHex(F) + X), 16);
17787
17833
  this.calculateS(z, g, function(ge, V) {
17788
17834
  ge && j(ge, null);
17789
17835
  var Ce = $.computehkdf(ut.Buffer.from($.padHex(V), "hex"), ut.Buffer.from($.padHex($.UValue), "hex"));
17790
17836
  j(null, Ce);
17791
17837
  });
17792
17838
  }, l.calculateS = function(c, p, g) {
17793
- var N = this;
17839
+ var F = this;
17794
17840
  this.g.modPow(c, this.N, function(j, $) {
17795
17841
  j && g(j, null);
17796
- var v = p.subtract(N.k.multiply($));
17797
- v.modPow(N.smallAValue.add(N.UValue.multiply(c)), N.N, function(X, z) {
17798
- X && g(X, null), g(null, z.mod(N.N));
17842
+ var v = p.subtract(F.k.multiply($));
17843
+ v.modPow(F.smallAValue.add(F.UValue.multiply(c)), F.N, function(X, z) {
17844
+ X && g(X, null), g(null, z.mod(F.N));
17799
17845
  });
17800
17846
  });
17801
17847
  }, l.getNewPasswordRequiredChallengeUserAttributePrefix = function() {
17802
- return No;
17848
+ return Fo;
17803
17849
  }, l.padHex = function(c) {
17804
17850
  if (!(c instanceof nt))
17805
17851
  throw new Error("Not a BigInteger");
17806
17852
  var p = c.compareTo(nt.ZERO) < 0, g = c.abs().toString(16);
17807
17853
  if (g = g.length % 2 !== 0 ? "0" + g : g, g = ko.test(g) ? "00" + g : g, p) {
17808
- var N = g.split("").map(function($) {
17854
+ var F = g.split("").map(function($) {
17809
17855
  var v = ~parseInt($, 16) & 15;
17810
17856
  return "0123456789ABCDEF".charAt(v);
17811
- }).join(""), j = new nt(N, 16).add(nt.ONE);
17857
+ }).join(""), j = new nt(F, 16).add(nt.ONE);
17812
17858
  g = j.toString(16), g.toUpperCase().startsWith("FF8") && (g = g.substring(2));
17813
17859
  }
17814
17860
  return g;
@@ -17834,7 +17880,7 @@ var Hi = /* @__PURE__ */ (function() {
17834
17880
  }
17835
17881
  }, d;
17836
17882
  })();
17837
- function Fo(d, l) {
17883
+ function No(d, l) {
17838
17884
  d.prototype = Object.create(l.prototype), d.prototype.constructor = d, Cn(d, l);
17839
17885
  }
17840
17886
  function Cn(d, l) {
@@ -17847,7 +17893,7 @@ var En = /* @__PURE__ */ (function(d) {
17847
17893
  var c = f === void 0 ? {} : f, p = c.AccessToken;
17848
17894
  return d.call(this, p || "") || this;
17849
17895
  }
17850
- return Fo(l, d), l;
17896
+ return No(l, d), l;
17851
17897
  })(Hi);
17852
17898
  function _o(d, l) {
17853
17899
  d.prototype = Object.create(l.prototype), d.prototype.constructor = d, Ln(d, l);
@@ -17882,10 +17928,10 @@ var Uo = "aws-amplify/" + Oo, Bi = {
17882
17928
  };
17883
17929
  var Sn = /* @__PURE__ */ (function() {
17884
17930
  function d(f) {
17885
- var c = f === void 0 ? {} : f, p = c.IdToken, g = c.RefreshToken, N = c.AccessToken, j = c.ClockDrift;
17886
- if (N == null || p == null)
17931
+ var c = f === void 0 ? {} : f, p = c.IdToken, g = c.RefreshToken, F = c.AccessToken, j = c.ClockDrift;
17932
+ if (F == null || p == null)
17887
17933
  throw new Error("Id token and Access Token must be present.");
17888
- this.idToken = p, this.refreshToken = g, this.accessToken = N, this.clockDrift = j === void 0 ? this.calculateClockDrift() : j;
17934
+ this.idToken = p, this.refreshToken = g, this.accessToken = F, this.clockDrift = j === void 0 ? this.calculateClockDrift() : j;
17889
17935
  }
17890
17936
  var l = d.prototype;
17891
17937
  return l.getIdToken = function() {
@@ -17909,13 +17955,13 @@ var Po = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct",
17909
17955
  }
17910
17956
  var l = d.prototype;
17911
17957
  return l.getNowString = function() {
17912
- var c = /* @__PURE__ */ new Date(), p = Ho[c.getUTCDay()], g = Po[c.getUTCMonth()], N = c.getUTCDate(), j = c.getUTCHours();
17958
+ var c = /* @__PURE__ */ new Date(), p = Ho[c.getUTCDay()], g = Po[c.getUTCMonth()], F = c.getUTCDate(), j = c.getUTCHours();
17913
17959
  j < 10 && (j = "0" + j);
17914
17960
  var $ = c.getUTCMinutes();
17915
17961
  $ < 10 && ($ = "0" + $);
17916
17962
  var v = c.getUTCSeconds();
17917
17963
  v < 10 && (v = "0" + v);
17918
- var X = c.getUTCFullYear(), z = p + " " + g + " " + N + " " + j + ":" + $ + ":" + v + " UTC " + X;
17964
+ var X = c.getUTCFullYear(), z = p + " " + g + " " + F + " " + j + ":" + $ + ":" + v + " UTC " + X;
17919
17965
  return z;
17920
17966
  }, d;
17921
17967
  })();
@@ -17985,12 +18031,12 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
17985
18031
  }, l.setAuthenticationFlowType = function(c) {
17986
18032
  this.authenticationFlowType = c;
17987
18033
  }, l.initiateAuth = function(c, p) {
17988
- var g = this, N = c.getAuthParameters();
17989
- N.USERNAME = this.username;
18034
+ var g = this, F = c.getAuthParameters();
18035
+ F.USERNAME = this.username;
17990
18036
  var j = Object.keys(c.getValidationData()).length !== 0 ? c.getValidationData() : c.getClientMetadata(), $ = {
17991
18037
  AuthFlow: "CUSTOM_AUTH",
17992
18038
  ClientId: this.pool.getClientId(),
17993
- AuthParameters: N,
18039
+ AuthParameters: F,
17994
18040
  ClientMetadata: j
17995
18041
  };
17996
18042
  this.getUserContextData() && ($.UserContextData = this.getUserContextData()), this.client.request("InitiateAuth", $, function(v, X) {
@@ -18002,8 +18048,8 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18002
18048
  }, l.authenticateUser = function(c, p) {
18003
18049
  return this.authenticationFlowType === "USER_PASSWORD_AUTH" ? this.authenticateUserPlainUsernamePassword(c, p) : this.authenticationFlowType === "USER_SRP_AUTH" || this.authenticationFlowType === "CUSTOM_AUTH" ? this.authenticateUserDefaultAuth(c, p) : p.onFailure(new Error("Authentication flow type is invalid."));
18004
18050
  }, l.authenticateUserDefaultAuth = function(c, p) {
18005
- var g = this, N = new Lt(this.pool.getUserPoolName()), j = new Dn(), $, v, X = {};
18006
- this.deviceKey != null && (X.DEVICE_KEY = this.deviceKey), X.USERNAME = this.username, N.getLargeAValue(function(z, ge) {
18051
+ var g = this, F = new Lt(this.pool.getUserPoolName()), j = new Dn(), $, v, X = {};
18052
+ this.deviceKey != null && (X.DEVICE_KEY = this.deviceKey), X.USERNAME = this.username, F.getLargeAValue(function(z, ge) {
18007
18053
  z && p.onFailure(z), X.SRP_A = ge.toString(16), g.authenticationFlowType === "CUSTOM_AUTH" && (X.CHALLENGE_NAME = "SRP_A");
18008
18054
  var V = Object.keys(c.getValidationData()).length !== 0 ? c.getValidationData() : c.getClientMetadata(), Ce = {
18009
18055
  AuthFlow: g.authenticationFlowType,
@@ -18015,7 +18061,7 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18015
18061
  if (ce)
18016
18062
  return p.onFailure(ce);
18017
18063
  var re = he.ChallengeParameters;
18018
- g.username = re.USER_ID_FOR_SRP, g.userDataKey = g.keyPrefix + "." + g.username + ".userData", $ = new nt(re.SRP_B, 16), v = new nt(re.SALT, 16), g.getCachedDeviceKeyAndPassword(), N.getPasswordAuthenticationKey(g.username, c.getPassword(), $, v, function(De, Le) {
18064
+ g.username = re.USER_ID_FOR_SRP, g.userDataKey = g.keyPrefix + "." + g.username + ".userData", $ = new nt(re.SRP_B, 16), v = new nt(re.SALT, 16), g.getCachedDeviceKeyAndPassword(), F.getPasswordAuthenticationKey(g.username, c.getPassword(), $, v, function(De, Le) {
18019
18065
  De && p.onFailure(De);
18020
18066
  var Ue = j.getNowString(), ae = ut.Buffer.concat([ut.Buffer.from(g.pool.getUserPoolName(), "utf8"), ut.Buffer.from(g.username, "utf8"), ut.Buffer.from(re.SECRET_BLOCK, "base64"), ut.Buffer.from(Ue, "utf8")]), Te = new zt.Sha256(Le);
18021
18067
  Te.update(ae);
@@ -18033,30 +18079,30 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18033
18079
  ClientMetadata: V
18034
18080
  };
18035
18081
  g.getUserContextData() && (ee.UserContextData = g.getUserContextData()), xe(ee, function(W, Ee) {
18036
- return W ? p.onFailure(W) : g.authenticateUserInternal(Ee, N, p);
18082
+ return W ? p.onFailure(W) : g.authenticateUserInternal(Ee, F, p);
18037
18083
  });
18038
18084
  });
18039
18085
  });
18040
18086
  });
18041
18087
  }, l.authenticateUserPlainUsernamePassword = function(c, p) {
18042
- var g = this, N = {};
18043
- if (N.USERNAME = this.username, N.PASSWORD = c.getPassword(), !N.PASSWORD) {
18088
+ var g = this, F = {};
18089
+ if (F.USERNAME = this.username, F.PASSWORD = c.getPassword(), !F.PASSWORD) {
18044
18090
  p.onFailure(new Error("PASSWORD parameter is required"));
18045
18091
  return;
18046
18092
  }
18047
18093
  var j = new Lt(this.pool.getUserPoolName());
18048
- this.getCachedDeviceKeyAndPassword(), this.deviceKey != null && (N.DEVICE_KEY = this.deviceKey);
18094
+ this.getCachedDeviceKeyAndPassword(), this.deviceKey != null && (F.DEVICE_KEY = this.deviceKey);
18049
18095
  var $ = Object.keys(c.getValidationData()).length !== 0 ? c.getValidationData() : c.getClientMetadata(), v = {
18050
18096
  AuthFlow: "USER_PASSWORD_AUTH",
18051
18097
  ClientId: this.pool.getClientId(),
18052
- AuthParameters: N,
18098
+ AuthParameters: F,
18053
18099
  ClientMetadata: $
18054
18100
  };
18055
18101
  this.getUserContextData(this.username) && (v.UserContextData = this.getUserContextData(this.username)), this.client.request("InitiateAuth", v, function(X, z) {
18056
18102
  return X ? p.onFailure(X) : g.authenticateUserInternal(z, j, p);
18057
18103
  });
18058
18104
  }, l.authenticateUserInternal = function(c, p, g) {
18059
- var N = this, j = c.ChallengeName, $ = c.ChallengeParameters;
18105
+ var F = this, j = c.ChallengeName, $ = c.ChallengeParameters;
18060
18106
  if (j === "SMS_MFA")
18061
18107
  return this.Session = c.Session, g.mfaRequired(j, $);
18062
18108
  if (j === "SELECT_MFA_TYPE")
@@ -18090,16 +18136,16 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18090
18136
  Salt: ut.Buffer.from(p.getSaltDevices(), "hex").toString("base64"),
18091
18137
  PasswordVerifier: ut.Buffer.from(p.getVerifierDevices(), "hex").toString("base64")
18092
18138
  };
18093
- N.verifierDevices = he.PasswordVerifier, N.deviceGroupKey = Ce.DeviceGroupKey, N.randomPassword = p.getRandomPassword(), N.client.request("ConfirmDevice", {
18139
+ F.verifierDevices = he.PasswordVerifier, F.deviceGroupKey = Ce.DeviceGroupKey, F.randomPassword = p.getRandomPassword(), F.client.request("ConfirmDevice", {
18094
18140
  DeviceKey: Ce.DeviceKey,
18095
- AccessToken: N.signInUserSession.getAccessToken().getJwtToken(),
18141
+ AccessToken: F.signInUserSession.getAccessToken().getJwtToken(),
18096
18142
  DeviceSecretVerifierConfig: he,
18097
18143
  DeviceName: Ci
18098
18144
  }, function(re, De) {
18099
- return re ? g.onFailure(re) : (N.deviceKey = c.AuthenticationResult.NewDeviceMetadata.DeviceKey, N.cacheDeviceKeyAndPassword(), De.UserConfirmationNecessary === !0 ? g.onSuccess(N.signInUserSession, De.UserConfirmationNecessary) : g.onSuccess(N.signInUserSession));
18145
+ return re ? g.onFailure(re) : (F.deviceKey = c.AuthenticationResult.NewDeviceMetadata.DeviceKey, F.cacheDeviceKeyAndPassword(), De.UserConfirmationNecessary === !0 ? g.onSuccess(F.signInUserSession, De.UserConfirmationNecessary) : g.onSuccess(F.signInUserSession));
18100
18146
  });
18101
18147
  });
18102
- }, l.completeNewPasswordChallenge = function(c, p, g, N) {
18148
+ }, l.completeNewPasswordChallenge = function(c, p, g, F) {
18103
18149
  var j = this;
18104
18150
  if (!c)
18105
18151
  return g.onFailure(new Error("New password is required."));
@@ -18112,14 +18158,14 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18112
18158
  ClientId: this.pool.getClientId(),
18113
18159
  ChallengeResponses: X,
18114
18160
  Session: this.Session,
18115
- ClientMetadata: N
18161
+ ClientMetadata: F
18116
18162
  };
18117
18163
  this.getUserContextData() && (z.UserContextData = this.getUserContextData()), this.client.request("RespondToAuthChallenge", z, function(ge, V) {
18118
18164
  return ge ? g.onFailure(ge) : j.authenticateUserInternal(V, $, g);
18119
18165
  });
18120
18166
  }, l.getDeviceResponse = function(c, p) {
18121
- var g = this, N = new Lt(this.deviceGroupKey), j = new Dn(), $ = {};
18122
- $.USERNAME = this.username, $.DEVICE_KEY = this.deviceKey, N.getLargeAValue(function(v, X) {
18167
+ var g = this, F = new Lt(this.deviceGroupKey), j = new Dn(), $ = {};
18168
+ $.USERNAME = this.username, $.DEVICE_KEY = this.deviceKey, F.getLargeAValue(function(v, X) {
18123
18169
  v && c.onFailure(v), $.SRP_A = X.toString(16);
18124
18170
  var z = {
18125
18171
  ChallengeName: "DEVICE_SRP_AUTH",
@@ -18132,7 +18178,7 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18132
18178
  if (ge)
18133
18179
  return c.onFailure(ge);
18134
18180
  var Ce = V.ChallengeParameters, ce = new nt(Ce.SRP_B, 16), he = new nt(Ce.SALT, 16);
18135
- N.getPasswordAuthenticationKey(g.deviceKey, g.randomPassword, ce, he, function(re, De) {
18181
+ F.getPasswordAuthenticationKey(g.deviceKey, g.randomPassword, ce, he, function(re, De) {
18136
18182
  if (re)
18137
18183
  return c.onFailure(re);
18138
18184
  var Le = j.getNowString(), Ue = ut.Buffer.concat([ut.Buffer.from(g.deviceGroupKey, "utf8"), ut.Buffer.from(g.deviceKey, "utf8"), ut.Buffer.from(Ce.SECRET_BLOCK, "base64"), ut.Buffer.from(Le, "utf8")]), ae = new zt.Sha256(De);
@@ -18151,19 +18197,19 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18151
18197
  });
18152
18198
  });
18153
18199
  });
18154
- }, l.confirmRegistration = function(c, p, g, N) {
18200
+ }, l.confirmRegistration = function(c, p, g, F) {
18155
18201
  var j = {
18156
18202
  ClientId: this.pool.getClientId(),
18157
18203
  ConfirmationCode: c,
18158
18204
  Username: this.username,
18159
18205
  ForceAliasCreation: p,
18160
- ClientMetadata: N
18206
+ ClientMetadata: F
18161
18207
  };
18162
18208
  this.getUserContextData() && (j.UserContextData = this.getUserContextData()), this.client.request("ConfirmSignUp", j, function($) {
18163
18209
  return $ ? g($, null) : g(null, "SUCCESS");
18164
18210
  });
18165
18211
  }, l.sendCustomChallengeAnswer = function(c, p, g) {
18166
- var N = this, j = {};
18212
+ var F = this, j = {};
18167
18213
  j.USERNAME = this.username, j.ANSWER = c;
18168
18214
  var $ = new Lt(this.pool.getUserPoolName());
18169
18215
  this.getCachedDeviceKeyAndPassword(), this.deviceKey != null && (j.DEVICE_KEY = this.deviceKey);
@@ -18175,9 +18221,9 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18175
18221
  ClientMetadata: g
18176
18222
  };
18177
18223
  this.getUserContextData() && (v.UserContextData = this.getUserContextData()), this.client.request("RespondToAuthChallenge", v, function(X, z) {
18178
- return X ? p.onFailure(X) : N.authenticateUserInternal(z, $, p);
18224
+ return X ? p.onFailure(X) : F.authenticateUserInternal(z, $, p);
18179
18225
  });
18180
- }, l.sendMFACode = function(c, p, g, N) {
18226
+ }, l.sendMFACode = function(c, p, g, F) {
18181
18227
  var j = this, $ = {};
18182
18228
  $.USERNAME = this.username, $.SMS_MFA_CODE = c;
18183
18229
  var v = g || "SMS_MFA";
@@ -18187,7 +18233,7 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18187
18233
  ChallengeResponses: $,
18188
18234
  ClientId: this.pool.getClientId(),
18189
18235
  Session: this.Session,
18190
- ClientMetadata: N
18236
+ ClientMetadata: F
18191
18237
  };
18192
18238
  this.getUserContextData() && (X.UserContextData = this.getUserContextData()), this.client.request("RespondToAuthChallenge", X, function(z, ge) {
18193
18239
  if (z)
@@ -18217,14 +18263,14 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18217
18263
  });
18218
18264
  });
18219
18265
  });
18220
- }, l.changePassword = function(c, p, g, N) {
18266
+ }, l.changePassword = function(c, p, g, F) {
18221
18267
  if (!(this.signInUserSession != null && this.signInUserSession.isValid()))
18222
18268
  return g(new Error("User is not authenticated"), null);
18223
18269
  this.client.request("ChangePassword", {
18224
18270
  PreviousPassword: c,
18225
18271
  ProposedPassword: p,
18226
18272
  AccessToken: this.signInUserSession.getAccessToken().getJwtToken(),
18227
- ClientMetadata: N
18273
+ ClientMetadata: F
18228
18274
  }, function(j) {
18229
18275
  return j ? g(j, null) : g(null, "SUCCESS");
18230
18276
  });
@@ -18238,8 +18284,8 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18238
18284
  p.push(g), this.client.request("SetUserSettings", {
18239
18285
  MFAOptions: p,
18240
18286
  AccessToken: this.signInUserSession.getAccessToken().getJwtToken()
18241
- }, function(N) {
18242
- return N ? c(N, null) : c(null, "SUCCESS");
18287
+ }, function(F) {
18288
+ return F ? c(F, null) : c(null, "SUCCESS");
18243
18289
  });
18244
18290
  }, l.setUserMfaPreference = function(c, p, g) {
18245
18291
  if (this.signInUserSession == null || !this.signInUserSession.isValid())
@@ -18248,8 +18294,8 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18248
18294
  SMSMfaSettings: c,
18249
18295
  SoftwareTokenMfaSettings: p,
18250
18296
  AccessToken: this.signInUserSession.getAccessToken().getJwtToken()
18251
- }, function(N) {
18252
- return N ? g(N, null) : g(null, "SUCCESS");
18297
+ }, function(F) {
18298
+ return F ? g(F, null) : g(null, "SUCCESS");
18253
18299
  });
18254
18300
  }, l.disableMFA = function(c) {
18255
18301
  if (this.signInUserSession == null || !this.signInUserSession.isValid())
@@ -18268,11 +18314,11 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18268
18314
  this.client.request("DeleteUser", {
18269
18315
  AccessToken: this.signInUserSession.getAccessToken().getJwtToken(),
18270
18316
  ClientMetadata: p
18271
- }, function(N) {
18272
- return N ? c(N, null) : (g.clearCachedUser(), c(null, "SUCCESS"));
18317
+ }, function(F) {
18318
+ return F ? c(F, null) : (g.clearCachedUser(), c(null, "SUCCESS"));
18273
18319
  });
18274
18320
  }, l.updateAttributes = function(c, p, g) {
18275
- var N = this;
18321
+ var F = this;
18276
18322
  if (this.signInUserSession == null || !this.signInUserSession.isValid())
18277
18323
  return p(new Error("User is not authenticated"), null);
18278
18324
  this.client.request("UpdateUserAttributes", {
@@ -18280,7 +18326,7 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18280
18326
  UserAttributes: c,
18281
18327
  ClientMetadata: g
18282
18328
  }, function(j, $) {
18283
- return j ? p(j, null) : N.getUserData(function() {
18329
+ return j ? p(j, null) : F.getUserData(function() {
18284
18330
  return p(null, "SUCCESS", $);
18285
18331
  }, {
18286
18332
  bypassCache: !0
@@ -18294,14 +18340,14 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18294
18340
  }, function(p, g) {
18295
18341
  if (p)
18296
18342
  return c(p, null);
18297
- for (var N = [], j = 0; j < g.UserAttributes.length; j++) {
18343
+ for (var F = [], j = 0; j < g.UserAttributes.length; j++) {
18298
18344
  var $ = {
18299
18345
  Name: g.UserAttributes[j].Name,
18300
18346
  Value: g.UserAttributes[j].Value
18301
18347
  }, v = new $i($);
18302
- N.push(v);
18348
+ F.push(v);
18303
18349
  }
18304
- return c(null, N);
18350
+ return c(null, F);
18305
18351
  });
18306
18352
  }, l.getMFAOptions = function(c) {
18307
18353
  if (!(this.signInUserSession != null && this.signInUserSession.isValid()))
@@ -18318,15 +18364,15 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18318
18364
  }, l.refreshSessionIfPossible = function(c) {
18319
18365
  var p = this;
18320
18366
  return c === void 0 && (c = {}), new Promise(function(g) {
18321
- var N = p.signInUserSession.getRefreshToken();
18322
- N && N.getToken() ? p.refreshSession(N, g, c.clientMetadata) : g();
18367
+ var F = p.signInUserSession.getRefreshToken();
18368
+ F && F.getToken() ? p.refreshSession(F, g, c.clientMetadata) : g();
18323
18369
  });
18324
18370
  }, l.getUserData = function(c, p) {
18325
18371
  var g = this;
18326
18372
  if (!(this.signInUserSession != null && this.signInUserSession.isValid()))
18327
18373
  return this.clearCachedUserData(), c(new Error("User is not authenticated"), null);
18328
- var N = this.getUserDataFromCache();
18329
- if (!N) {
18374
+ var F = this.getUserDataFromCache();
18375
+ if (!F) {
18330
18376
  this.fetchUserData().then(function(j) {
18331
18377
  c(null, j);
18332
18378
  }).catch(c);
@@ -18343,7 +18389,7 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18343
18389
  return;
18344
18390
  }
18345
18391
  try {
18346
- c(null, JSON.parse(N));
18392
+ c(null, JSON.parse(F));
18347
18393
  return;
18348
18394
  } catch (j) {
18349
18395
  this.clearCachedUserData(), c(j, null);
@@ -18353,8 +18399,8 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18353
18399
  var c = this.storage.getItem(this.userDataKey);
18354
18400
  return c;
18355
18401
  }, l.isFetchUserDataAndTokenRequired = function(c) {
18356
- var p = c || {}, g = p.bypassCache, N = g === void 0 ? !1 : g;
18357
- return N;
18402
+ var p = c || {}, g = p.bypassCache, F = g === void 0 ? !1 : g;
18403
+ return F;
18358
18404
  }, l.fetchUserData = function() {
18359
18405
  var c = this;
18360
18406
  return this.createGetUserRequest().then(function(p) {
@@ -18367,8 +18413,8 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18367
18413
  this.client.request("DeleteUserAttributes", {
18368
18414
  UserAttributeNames: c,
18369
18415
  AccessToken: this.signInUserSession.getAccessToken().getJwtToken()
18370
- }, function(N) {
18371
- return N ? p(N, null) : g.getUserData(function() {
18416
+ }, function(F) {
18417
+ return F ? p(F, null) : g.getUserData(function() {
18372
18418
  return p(null, "SUCCESS");
18373
18419
  }, {
18374
18420
  bypassCache: !0
@@ -18380,18 +18426,18 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18380
18426
  Username: this.username,
18381
18427
  ClientMetadata: p
18382
18428
  };
18383
- this.client.request("ResendConfirmationCode", g, function(N, j) {
18384
- return N ? c(N, null) : c(null, j);
18429
+ this.client.request("ResendConfirmationCode", g, function(F, j) {
18430
+ return F ? c(F, null) : c(null, j);
18385
18431
  });
18386
18432
  }, l.getSession = function(c, p) {
18387
18433
  if (p === void 0 && (p = {}), this.username == null)
18388
18434
  return c(new Error("Username is null. Cannot retrieve a new session"), null);
18389
18435
  if (this.signInUserSession != null && this.signInUserSession.isValid())
18390
18436
  return c(null, this.signInUserSession);
18391
- var g = "CognitoIdentityServiceProvider." + this.pool.getClientId() + "." + this.username, N = g + ".idToken", j = g + ".accessToken", $ = g + ".refreshToken", v = g + ".clockDrift";
18392
- if (this.storage.getItem(N)) {
18437
+ var g = "CognitoIdentityServiceProvider." + this.pool.getClientId() + "." + this.username, F = g + ".idToken", j = g + ".accessToken", $ = g + ".refreshToken", v = g + ".clockDrift";
18438
+ if (this.storage.getItem(F)) {
18393
18439
  var X = new An({
18394
- IdToken: this.storage.getItem(N)
18440
+ IdToken: this.storage.getItem(F)
18395
18441
  }), z = new En({
18396
18442
  AccessToken: this.storage.getItem(j)
18397
18443
  }), ge = new Tn({
@@ -18410,7 +18456,7 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18410
18456
  } else
18411
18457
  c(new Error("Local storage is missing an ID Token, Please authenticate"), null);
18412
18458
  }, l.refreshSession = function(c, p, g) {
18413
- var N = this, j = this.pool.wrapRefreshSessionCallback ? this.pool.wrapRefreshSessionCallback(p) : p, $ = {};
18459
+ var F = this, j = this.pool.wrapRefreshSessionCallback ? this.pool.wrapRefreshSessionCallback(p) : p, $ = {};
18414
18460
  $.REFRESH_TOKEN = c.getToken();
18415
18461
  var v = "CognitoIdentityServiceProvider." + this.pool.getClientId(), X = v + ".LastAuthUser";
18416
18462
  if (this.storage.getItem(X)) {
@@ -18426,15 +18472,15 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18426
18472
  };
18427
18473
  this.getUserContextData() && (ge.UserContextData = this.getUserContextData()), this.client.requestWithRetry("InitiateAuth", ge, function(V, Ce) {
18428
18474
  if (V)
18429
- return V.code === "NotAuthorizedException" && N.clearCachedUser(), j(V, null);
18475
+ return V.code === "NotAuthorizedException" && F.clearCachedUser(), j(V, null);
18430
18476
  if (Ce) {
18431
18477
  var ce = Ce.AuthenticationResult;
18432
- return Object.prototype.hasOwnProperty.call(ce, "RefreshToken") || (ce.RefreshToken = c.getToken()), N.signInUserSession = N.getCognitoUserSession(ce), N.cacheTokens(), j(null, N.signInUserSession);
18478
+ return Object.prototype.hasOwnProperty.call(ce, "RefreshToken") || (ce.RefreshToken = c.getToken()), F.signInUserSession = F.getCognitoUserSession(ce), F.cacheTokens(), j(null, F.signInUserSession);
18433
18479
  }
18434
18480
  });
18435
18481
  }, l.cacheTokens = function() {
18436
- var c = "CognitoIdentityServiceProvider." + this.pool.getClientId(), p = c + "." + this.username + ".idToken", g = c + "." + this.username + ".accessToken", N = c + "." + this.username + ".refreshToken", j = c + "." + this.username + ".clockDrift", $ = c + ".LastAuthUser";
18437
- this.storage.setItem(p, this.signInUserSession.getIdToken().getJwtToken()), this.storage.setItem(g, this.signInUserSession.getAccessToken().getJwtToken()), this.storage.setItem(N, this.signInUserSession.getRefreshToken().getToken()), this.storage.setItem(j, "" + this.signInUserSession.getClockDrift()), this.storage.setItem($, this.username);
18482
+ var c = "CognitoIdentityServiceProvider." + this.pool.getClientId(), p = c + "." + this.username + ".idToken", g = c + "." + this.username + ".accessToken", F = c + "." + this.username + ".refreshToken", j = c + "." + this.username + ".clockDrift", $ = c + ".LastAuthUser";
18483
+ this.storage.setItem(p, this.signInUserSession.getIdToken().getJwtToken()), this.storage.setItem(g, this.signInUserSession.getAccessToken().getJwtToken()), this.storage.setItem(F, this.signInUserSession.getRefreshToken().getToken()), this.storage.setItem(j, "" + this.signInUserSession.getClockDrift()), this.storage.setItem($, this.username);
18438
18484
  }, l.cacheUserData = function(c) {
18439
18485
  this.storage.setItem(this.userDataKey, JSON.stringify(c));
18440
18486
  }, l.clearCachedUserData = function() {
@@ -18442,22 +18488,22 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18442
18488
  }, l.clearCachedUser = function() {
18443
18489
  this.clearCachedTokens(), this.clearCachedUserData();
18444
18490
  }, l.cacheDeviceKeyAndPassword = function() {
18445
- var c = "CognitoIdentityServiceProvider." + this.pool.getClientId() + "." + this.username, p = c + ".deviceKey", g = c + ".randomPasswordKey", N = c + ".deviceGroupKey";
18446
- this.storage.setItem(p, this.deviceKey), this.storage.setItem(g, this.randomPassword), this.storage.setItem(N, this.deviceGroupKey);
18491
+ var c = "CognitoIdentityServiceProvider." + this.pool.getClientId() + "." + this.username, p = c + ".deviceKey", g = c + ".randomPasswordKey", F = c + ".deviceGroupKey";
18492
+ this.storage.setItem(p, this.deviceKey), this.storage.setItem(g, this.randomPassword), this.storage.setItem(F, this.deviceGroupKey);
18447
18493
  }, l.getCachedDeviceKeyAndPassword = function() {
18448
- var c = "CognitoIdentityServiceProvider." + this.pool.getClientId() + "." + this.username, p = c + ".deviceKey", g = c + ".randomPasswordKey", N = c + ".deviceGroupKey";
18449
- this.storage.getItem(p) && (this.deviceKey = this.storage.getItem(p), this.randomPassword = this.storage.getItem(g), this.deviceGroupKey = this.storage.getItem(N));
18494
+ var c = "CognitoIdentityServiceProvider." + this.pool.getClientId() + "." + this.username, p = c + ".deviceKey", g = c + ".randomPasswordKey", F = c + ".deviceGroupKey";
18495
+ this.storage.getItem(p) && (this.deviceKey = this.storage.getItem(p), this.randomPassword = this.storage.getItem(g), this.deviceGroupKey = this.storage.getItem(F));
18450
18496
  }, l.clearCachedDeviceKeyAndPassword = function() {
18451
- var c = "CognitoIdentityServiceProvider." + this.pool.getClientId() + "." + this.username, p = c + ".deviceKey", g = c + ".randomPasswordKey", N = c + ".deviceGroupKey";
18452
- this.storage.removeItem(p), this.storage.removeItem(g), this.storage.removeItem(N);
18497
+ var c = "CognitoIdentityServiceProvider." + this.pool.getClientId() + "." + this.username, p = c + ".deviceKey", g = c + ".randomPasswordKey", F = c + ".deviceGroupKey";
18498
+ this.storage.removeItem(p), this.storage.removeItem(g), this.storage.removeItem(F);
18453
18499
  }, l.clearCachedTokens = function() {
18454
- var c = "CognitoIdentityServiceProvider." + this.pool.getClientId(), p = c + "." + this.username + ".idToken", g = c + "." + this.username + ".accessToken", N = c + "." + this.username + ".refreshToken", j = c + ".LastAuthUser", $ = c + "." + this.username + ".clockDrift";
18455
- this.storage.removeItem(p), this.storage.removeItem(g), this.storage.removeItem(N), this.storage.removeItem(j), this.storage.removeItem($);
18500
+ var c = "CognitoIdentityServiceProvider." + this.pool.getClientId(), p = c + "." + this.username + ".idToken", g = c + "." + this.username + ".accessToken", F = c + "." + this.username + ".refreshToken", j = c + ".LastAuthUser", $ = c + "." + this.username + ".clockDrift";
18501
+ this.storage.removeItem(p), this.storage.removeItem(g), this.storage.removeItem(F), this.storage.removeItem(j), this.storage.removeItem($);
18456
18502
  }, l.getCognitoUserSession = function(c) {
18457
- var p = new An(c), g = new En(c), N = new Tn(c), j = {
18503
+ var p = new An(c), g = new En(c), F = new Tn(c), j = {
18458
18504
  IdToken: p,
18459
18505
  AccessToken: g,
18460
- RefreshToken: N
18506
+ RefreshToken: F
18461
18507
  };
18462
18508
  return new Sn(j);
18463
18509
  }, l.forgotPassword = function(c, p) {
@@ -18466,16 +18512,16 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18466
18512
  Username: this.username,
18467
18513
  ClientMetadata: p
18468
18514
  };
18469
- this.getUserContextData() && (g.UserContextData = this.getUserContextData()), this.client.request("ForgotPassword", g, function(N, j) {
18470
- return N ? c.onFailure(N) : typeof c.inputVerificationCode == "function" ? c.inputVerificationCode(j) : c.onSuccess(j);
18515
+ this.getUserContextData() && (g.UserContextData = this.getUserContextData()), this.client.request("ForgotPassword", g, function(F, j) {
18516
+ return F ? c.onFailure(F) : typeof c.inputVerificationCode == "function" ? c.inputVerificationCode(j) : c.onSuccess(j);
18471
18517
  });
18472
- }, l.confirmPassword = function(c, p, g, N) {
18518
+ }, l.confirmPassword = function(c, p, g, F) {
18473
18519
  var j = {
18474
18520
  ClientId: this.pool.getClientId(),
18475
18521
  Username: this.username,
18476
18522
  ConfirmationCode: c,
18477
18523
  Password: p,
18478
- ClientMetadata: N
18524
+ ClientMetadata: F
18479
18525
  };
18480
18526
  this.getUserContextData() && (j.UserContextData = this.getUserContextData()), this.client.request("ConfirmForgotPassword", j, function($) {
18481
18527
  return $ ? g.onFailure($) : g.onSuccess("SUCCESS");
@@ -18487,8 +18533,8 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18487
18533
  AttributeName: c,
18488
18534
  AccessToken: this.signInUserSession.getAccessToken().getJwtToken(),
18489
18535
  ClientMetadata: g
18490
- }, function(N, j) {
18491
- return N ? p.onFailure(N) : typeof p.inputVerificationCode == "function" ? p.inputVerificationCode(j) : p.onSuccess("SUCCESS");
18536
+ }, function(F, j) {
18537
+ return F ? p.onFailure(F) : typeof p.inputVerificationCode == "function" ? p.inputVerificationCode(j) : p.onSuccess("SUCCESS");
18492
18538
  });
18493
18539
  }, l.verifyAttribute = function(c, p, g) {
18494
18540
  if (this.signInUserSession == null || !this.signInUserSession.isValid())
@@ -18497,8 +18543,8 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18497
18543
  AttributeName: c,
18498
18544
  Code: p,
18499
18545
  AccessToken: this.signInUserSession.getAccessToken().getJwtToken()
18500
- }, function(N) {
18501
- return N ? g.onFailure(N) : g.onSuccess("SUCCESS");
18546
+ }, function(F) {
18547
+ return F ? g.onFailure(F) : g.onSuccess("SUCCESS");
18502
18548
  });
18503
18549
  }, l.getDevice = function(c) {
18504
18550
  if (this.signInUserSession == null || !this.signInUserSession.isValid())
@@ -18522,8 +18568,8 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18522
18568
  var p = this;
18523
18569
  this.forgetSpecificDevice(this.deviceKey, {
18524
18570
  onFailure: c.onFailure,
18525
- onSuccess: function(N) {
18526
- return p.deviceKey = null, p.deviceGroupKey = null, p.randomPassword = null, p.clearCachedDeviceKeyAndPassword(), c.onSuccess(N);
18571
+ onSuccess: function(F) {
18572
+ return p.deviceKey = null, p.deviceGroupKey = null, p.randomPassword = null, p.clearCachedDeviceKeyAndPassword(), c.onSuccess(F);
18527
18573
  }
18528
18574
  });
18529
18575
  }, l.setDeviceStatusRemembered = function(c) {
@@ -18549,11 +18595,11 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18549
18595
  }, l.listDevices = function(c, p, g) {
18550
18596
  if (this.signInUserSession == null || !this.signInUserSession.isValid())
18551
18597
  return g.onFailure(new Error("User is not authenticated"));
18552
- var N = {
18598
+ var F = {
18553
18599
  AccessToken: this.signInUserSession.getAccessToken().getJwtToken(),
18554
18600
  Limit: c
18555
18601
  };
18556
- p && (N.PaginationToken = p), this.client.request("ListDevices", N, function(j, $) {
18602
+ p && (F.PaginationToken = p), this.client.request("ListDevices", F, function(j, $) {
18557
18603
  return j ? g.onFailure(j) : g.onSuccess($);
18558
18604
  });
18559
18605
  }, l.globalSignOut = function(c) {
@@ -18571,7 +18617,7 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18571
18617
  this.cleanClientData();
18572
18618
  return;
18573
18619
  }
18574
- this.getSession(function(g, N) {
18620
+ this.getSession(function(g, F) {
18575
18621
  if (g)
18576
18622
  return c(g);
18577
18623
  p.revokeTokens(function(j) {
@@ -18590,10 +18636,10 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18590
18636
  var g = new Error("No Access token available");
18591
18637
  return c(g);
18592
18638
  }
18593
- var N = this.signInUserSession.getRefreshToken().getToken(), j = this.signInUserSession.getAccessToken();
18594
- if (this.isSessionRevocable(j) && N)
18639
+ var F = this.signInUserSession.getRefreshToken().getToken(), j = this.signInUserSession.getAccessToken();
18640
+ if (this.isSessionRevocable(j) && F)
18595
18641
  return this.revokeToken({
18596
- token: N,
18642
+ token: F,
18597
18643
  callback: c
18598
18644
  });
18599
18645
  c();
@@ -18612,17 +18658,17 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18612
18658
  this.client.requestWithRetry("RevokeToken", {
18613
18659
  Token: p,
18614
18660
  ClientId: this.pool.getClientId()
18615
- }, function(N) {
18616
- if (N)
18617
- return g(N);
18661
+ }, function(F) {
18662
+ if (F)
18663
+ return g(F);
18618
18664
  g();
18619
18665
  });
18620
18666
  }, l.sendMFASelectionAnswer = function(c, p) {
18621
- var g = this, N = {};
18622
- N.USERNAME = this.username, N.ANSWER = c;
18667
+ var g = this, F = {};
18668
+ F.USERNAME = this.username, F.ANSWER = c;
18623
18669
  var j = {
18624
18670
  ChallengeName: "SELECT_MFA_TYPE",
18625
- ChallengeResponses: N,
18671
+ ChallengeResponses: F,
18626
18672
  ClientId: this.pool.getClientId(),
18627
18673
  Session: this.Session
18628
18674
  };
@@ -18641,15 +18687,15 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18641
18687
  var p = this;
18642
18688
  this.signInUserSession != null && this.signInUserSession.isValid() ? this.client.request("AssociateSoftwareToken", {
18643
18689
  AccessToken: this.signInUserSession.getAccessToken().getJwtToken()
18644
- }, function(g, N) {
18645
- return g ? c.onFailure(g) : c.associateSecretCode(N.SecretCode);
18690
+ }, function(g, F) {
18691
+ return g ? c.onFailure(g) : c.associateSecretCode(F.SecretCode);
18646
18692
  }) : this.client.request("AssociateSoftwareToken", {
18647
18693
  Session: this.Session
18648
- }, function(g, N) {
18649
- return g ? c.onFailure(g) : (p.Session = N.Session, c.associateSecretCode(N.SecretCode));
18694
+ }, function(g, F) {
18695
+ return g ? c.onFailure(g) : (p.Session = F.Session, c.associateSecretCode(F.SecretCode));
18650
18696
  });
18651
18697
  }, l.verifySoftwareToken = function(c, p, g) {
18652
- var N = this;
18698
+ var F = this;
18653
18699
  this.signInUserSession != null && this.signInUserSession.isValid() ? this.client.request("VerifySoftwareToken", {
18654
18700
  AccessToken: this.signInUserSession.getAccessToken().getJwtToken(),
18655
18701
  UserCode: c,
@@ -18663,24 +18709,24 @@ var $o = typeof navigator < "u", Ci = $o ? Bi.isReactNative ? "react-native" : n
18663
18709
  }, function(j, $) {
18664
18710
  if (j)
18665
18711
  return g.onFailure(j);
18666
- N.Session = $.Session;
18712
+ F.Session = $.Session;
18667
18713
  var v = {};
18668
- v.USERNAME = N.username;
18714
+ v.USERNAME = F.username;
18669
18715
  var X = {
18670
18716
  ChallengeName: "MFA_SETUP",
18671
- ClientId: N.pool.getClientId(),
18717
+ ClientId: F.pool.getClientId(),
18672
18718
  ChallengeResponses: v,
18673
- Session: N.Session
18719
+ Session: F.Session
18674
18720
  };
18675
- N.getUserContextData() && (X.UserContextData = N.getUserContextData()), N.client.request("RespondToAuthChallenge", X, function(z, ge) {
18676
- return z ? g.onFailure(z) : (N.signInUserSession = N.getCognitoUserSession(ge.AuthenticationResult), N.cacheTokens(), g.onSuccess(N.signInUserSession));
18721
+ F.getUserContextData() && (X.UserContextData = F.getUserContextData()), F.client.request("RespondToAuthChallenge", X, function(z, ge) {
18722
+ return z ? g.onFailure(z) : (F.signInUserSession = F.getCognitoUserSession(ge.AuthenticationResult), F.cacheTokens(), g.onSuccess(F.signInUserSession));
18677
18723
  });
18678
18724
  });
18679
18725
  }, d;
18680
18726
  })();
18681
18727
  function Vo(d, l) {
18682
18728
  return l = l || {}, new Promise(function(f, c) {
18683
- var p = new XMLHttpRequest(), g = [], N = [], j = {}, $ = function() {
18729
+ var p = new XMLHttpRequest(), g = [], F = [], j = {}, $ = function() {
18684
18730
  return { ok: (p.status / 100 | 0) == 2, statusText: p.statusText, status: p.status, url: p.responseURL, text: function() {
18685
18731
  return Promise.resolve(p.responseText);
18686
18732
  }, json: function() {
@@ -18690,7 +18736,7 @@ function Vo(d, l) {
18690
18736
  }, clone: $, headers: { keys: function() {
18691
18737
  return g;
18692
18738
  }, entries: function() {
18693
- return N;
18739
+ return F;
18694
18740
  }, get: function(X) {
18695
18741
  return j[X.toLowerCase()];
18696
18742
  }, has: function(X) {
@@ -18699,7 +18745,7 @@ function Vo(d, l) {
18699
18745
  };
18700
18746
  for (var v in p.open(l.method || "get", d, !0), p.onload = function() {
18701
18747
  p.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm, function(X, z, ge) {
18702
- g.push(z = z.toLowerCase()), N.push([z, ge]), j[z] = j[z] ? j[z] + "," + ge : ge;
18748
+ g.push(z = z.toLowerCase()), F.push([z, ge]), j[z] = j[z] ? j[z] + "," + ge : ge;
18703
18749
  }), f($());
18704
18750
  }, p.onerror = c, p.withCredentials = l.credentials == "include", l.headers) p.setRequestHeader(v, l.headers[v]);
18705
18751
  p.send(l.body || null);
@@ -18777,31 +18823,31 @@ function kn(d) {
18777
18823
  }
18778
18824
  var Jo = /* @__PURE__ */ (function(d) {
18779
18825
  function l(f, c, p, g) {
18780
- var N;
18781
- return N = d.call(this, f) || this, N.code = c, N.name = p, N.statusCode = g, N;
18826
+ var F;
18827
+ return F = d.call(this, f) || this, F.code = c, F.name = p, F.statusCode = g, F;
18782
18828
  }
18783
18829
  return Ko(l, d), l;
18784
18830
  })(/* @__PURE__ */ In(Error)), Zo = /* @__PURE__ */ (function() {
18785
18831
  function d(f, c, p) {
18786
18832
  this.endpoint = c || "https://cognito-idp." + f + ".amazonaws.com/";
18787
- var g = p || {}, N = g.credentials;
18788
- this.fetchOptions = N ? {
18789
- credentials: N
18833
+ var g = p || {}, F = g.credentials;
18834
+ this.fetchOptions = F ? {
18835
+ credentials: F
18790
18836
  } : {};
18791
18837
  }
18792
18838
  var l = d.prototype;
18793
18839
  return l.promisifyRequest = function(c, p) {
18794
18840
  var g = this;
18795
- return new Promise(function(N, j) {
18841
+ return new Promise(function(F, j) {
18796
18842
  g.request(c, p, function($, v) {
18797
- $ ? j(new Jo($.message, $.code, $.name, $.statusCode)) : N(v);
18843
+ $ ? j(new Jo($.message, $.code, $.name, $.statusCode)) : F(v);
18798
18844
  });
18799
18845
  });
18800
18846
  }, l.requestWithRetry = function(c, p, g) {
18801
- var N = this, j = 5 * 1e3;
18847
+ var F = this, j = 5 * 1e3;
18802
18848
  ta(function($) {
18803
18849
  return new Promise(function(v, X) {
18804
- N.request(c, $, function(z, ge) {
18850
+ F.request(c, $, function(z, ge) {
18805
18851
  z ? X(z) : v(ge);
18806
18852
  });
18807
18853
  });
@@ -18811,13 +18857,13 @@ var Jo = /* @__PURE__ */ (function(d) {
18811
18857
  return g($);
18812
18858
  });
18813
18859
  }, l.request = function(c, p, g) {
18814
- var N = {
18860
+ var F = {
18815
18861
  "Content-Type": "application/x-amz-json-1.1",
18816
18862
  "X-Amz-Target": "AWSCognitoIdentityProviderService." + c,
18817
18863
  "X-Amz-User-Agent": qo(),
18818
18864
  "Cache-Control": "no-store"
18819
18865
  }, j = Object.assign({}, this.fetchOptions, {
18820
- headers: N,
18866
+ headers: F,
18821
18867
  method: "POST",
18822
18868
  mode: "cors",
18823
18869
  body: JSON.stringify(p)
@@ -18861,8 +18907,8 @@ function Yi(d, l, f, c) {
18861
18907
  throw Qt.debug(d.name + " non retryable error", p), p;
18862
18908
  var g = f(c, l, p);
18863
18909
  if (Qt.debug(d.name + " retrying in " + g + " ms"), g !== !1)
18864
- return new Promise(function(N) {
18865
- return setTimeout(N, g);
18910
+ return new Promise(function(F) {
18911
+ return setTimeout(F, g);
18866
18912
  }).then(function() {
18867
18913
  return Yi(d, l, f, c + 1);
18868
18914
  });
@@ -18881,13 +18927,13 @@ function ta(d, l, f) {
18881
18927
  }
18882
18928
  var na = 55, ia = /* @__PURE__ */ (function() {
18883
18929
  function d(f, c) {
18884
- var p = f || {}, g = p.UserPoolId, N = p.ClientId, j = p.endpoint, $ = p.fetchOptions, v = p.AdvancedSecurityDataCollectionFlag;
18885
- if (!g || !N)
18930
+ var p = f || {}, g = p.UserPoolId, F = p.ClientId, j = p.endpoint, $ = p.fetchOptions, v = p.AdvancedSecurityDataCollectionFlag;
18931
+ if (!g || !F)
18886
18932
  throw new Error("Both UserPoolId and ClientId are required.");
18887
18933
  if (g.length > na || !/^[\w-]+_[0-9a-zA-Z]+$/.test(g))
18888
18934
  throw new Error("Invalid UserPoolId format.");
18889
18935
  var X = g.split("_")[0];
18890
- this.userPoolId = g, this.clientId = N, this.client = new Zo(X, j, $), this.advancedSecurityDataCollectionFlag = v !== !1, this.storage = f.Storage || new Vi().getStorage(), c && (this.wrapRefreshSessionCallback = c);
18936
+ this.userPoolId = g, this.clientId = F, this.client = new Zo(X, j, $), this.advancedSecurityDataCollectionFlag = v !== !1, this.storage = f.Storage || new Vi().getStorage(), c && (this.wrapRefreshSessionCallback = c);
18891
18937
  }
18892
18938
  var l = d.prototype;
18893
18939
  return l.getUserPoolId = function() {
@@ -18896,13 +18942,13 @@ var na = 55, ia = /* @__PURE__ */ (function() {
18896
18942
  return this.getUserPoolId().split("_")[1];
18897
18943
  }, l.getClientId = function() {
18898
18944
  return this.clientId;
18899
- }, l.signUp = function(c, p, g, N, j, $) {
18945
+ }, l.signUp = function(c, p, g, F, j, $) {
18900
18946
  var v = this, X = {
18901
18947
  ClientId: this.clientId,
18902
18948
  Username: c,
18903
18949
  Password: p,
18904
18950
  UserAttributes: g,
18905
- ValidationData: N,
18951
+ ValidationData: F,
18906
18952
  ClientMetadata: $
18907
18953
  };
18908
18954
  this.getUserContextData(c) && (X.UserContextData = this.getUserContextData(c)), this.client.request("SignUp", X, function(z, ge) {
@@ -18937,10 +18983,10 @@ var na = 55, ia = /* @__PURE__ */ (function() {
18937
18983
  if (this.advancedSecurityDataCollectionFlag) {
18938
18984
  var g = p.getData(c, this.userPoolId, this.clientId);
18939
18985
  if (g) {
18940
- var N = {
18986
+ var F = {
18941
18987
  EncodedData: g
18942
18988
  };
18943
- return N;
18989
+ return F;
18944
18990
  }
18945
18991
  }
18946
18992
  return {};
@@ -18960,24 +19006,24 @@ function ra() {
18960
19006
  }
18961
19007
  })(function() {
18962
19008
  function f() {
18963
- for (var g = 0, N = {}; g < arguments.length; g++) {
19009
+ for (var g = 0, F = {}; g < arguments.length; g++) {
18964
19010
  var j = arguments[g];
18965
19011
  for (var $ in j)
18966
- N[$] = j[$];
19012
+ F[$] = j[$];
18967
19013
  }
18968
- return N;
19014
+ return F;
18969
19015
  }
18970
19016
  function c(g) {
18971
19017
  return g.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);
18972
19018
  }
18973
19019
  function p(g) {
18974
- function N() {
19020
+ function F() {
18975
19021
  }
18976
19022
  function j(v, X, z) {
18977
19023
  if (!(typeof document > "u")) {
18978
19024
  z = f({
18979
19025
  path: "/"
18980
- }, N.defaults, z), typeof z.expires == "number" && (z.expires = new Date(/* @__PURE__ */ new Date() * 1 + z.expires * 864e5)), z.expires = z.expires ? z.expires.toUTCString() : "";
19026
+ }, F.defaults, z), typeof z.expires == "number" && (z.expires = new Date(/* @__PURE__ */ new Date() * 1 + z.expires * 864e5)), z.expires = z.expires ? z.expires.toUTCString() : "";
18981
19027
  try {
18982
19028
  var ge = JSON.stringify(X);
18983
19029
  /^[\{\[]/.test(ge) && (X = ge);
@@ -19010,23 +19056,23 @@ function ra() {
19010
19056
  return v ? z[v] : z;
19011
19057
  }
19012
19058
  }
19013
- return N.set = j, N.get = function(v) {
19059
+ return F.set = j, F.get = function(v) {
19014
19060
  return $(
19015
19061
  v,
19016
19062
  !1
19017
19063
  /* read as raw */
19018
19064
  );
19019
- }, N.getJSON = function(v) {
19065
+ }, F.getJSON = function(v) {
19020
19066
  return $(
19021
19067
  v,
19022
19068
  !0
19023
19069
  /* read as json */
19024
19070
  );
19025
- }, N.remove = function(v, X) {
19071
+ }, F.remove = function(v, X) {
19026
19072
  j(v, "", f(X, {
19027
19073
  expires: -1
19028
19074
  }));
19029
- }, N.defaults = {}, N.withConverter = p, N;
19075
+ }, F.defaults = {}, F.withConverter = p, F;
19030
19076
  }
19031
19077
  return p(function() {
19032
19078
  });