@getauthui/core 0.1.13 → 0.1.14
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.
- package/README.md +3 -3
- package/dist/{authui-user-button-BSOjgJ6h.js → authui-user-button-CV2B_0j5.js} +295 -253
- package/dist/authui.cdn.js +161 -122
- package/dist/authui.cdn.mjs +739 -697
- package/dist/authui.js +2 -2
- package/dist/components/authui-sign-in.d.ts.map +1 -1
- package/dist/react.js +1 -1
- package/dist/styles/base.d.ts.map +1 -1
- package/dist/styles/tokens.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/authui.cdn.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
const
|
|
2
|
-
let
|
|
1
|
+
const $t = globalThis, fi = $t.ShadowRoot && ($t.ShadyCSS === void 0 || $t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, gi = /* @__PURE__ */ Symbol(), $i = /* @__PURE__ */ new WeakMap();
|
|
2
|
+
let Ti = class {
|
|
3
3
|
constructor(e, n, i) {
|
|
4
|
-
if (this._$cssResult$ = !0, i !==
|
|
4
|
+
if (this._$cssResult$ = !0, i !== gi) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
5
5
|
this.cssText = e, this.t = n;
|
|
6
6
|
}
|
|
7
7
|
get styleSheet() {
|
|
8
8
|
let e = this.o;
|
|
9
9
|
const n = this.t;
|
|
10
|
-
if (
|
|
10
|
+
if (fi && e === void 0) {
|
|
11
11
|
const i = n !== void 0 && n.length === 1;
|
|
12
|
-
i && (e =
|
|
12
|
+
i && (e = $i.get(n)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), i && $i.set(n, e));
|
|
13
13
|
}
|
|
14
14
|
return e;
|
|
15
15
|
}
|
|
@@ -17,28 +17,28 @@ let Qi = class {
|
|
|
17
17
|
return this.cssText;
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
const
|
|
20
|
+
const dn = (t) => new Ti(typeof t == "string" ? t : t + "", void 0, gi), Ke = (t, ...e) => {
|
|
21
21
|
const n = t.length === 1 ? t[0] : e.reduce((i, o, a) => i + ((s) => {
|
|
22
22
|
if (s._$cssResult$ === !0) return s.cssText;
|
|
23
23
|
if (typeof s == "number") return s;
|
|
24
24
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + s + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
25
25
|
})(o) + t[a + 1], t[0]);
|
|
26
|
-
return new
|
|
27
|
-
},
|
|
28
|
-
if (
|
|
26
|
+
return new Ti(n, t, gi);
|
|
27
|
+
}, ln = (t, e) => {
|
|
28
|
+
if (fi) t.adoptedStyleSheets = e.map((n) => n instanceof CSSStyleSheet ? n : n.styleSheet);
|
|
29
29
|
else for (const n of e) {
|
|
30
|
-
const i = document.createElement("style"), o =
|
|
30
|
+
const i = document.createElement("style"), o = $t.litNonce;
|
|
31
31
|
o !== void 0 && i.setAttribute("nonce", o), i.textContent = n.cssText, t.appendChild(i);
|
|
32
32
|
}
|
|
33
|
-
},
|
|
33
|
+
}, ji = fi ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((e) => {
|
|
34
34
|
let n = "";
|
|
35
35
|
for (const i of e.cssRules) n += i.cssText;
|
|
36
|
-
return
|
|
36
|
+
return dn(n);
|
|
37
37
|
})(t) : t;
|
|
38
|
-
const { is:
|
|
38
|
+
const { is: un, defineProperty: pn, getOwnPropertyDescriptor: hn, getOwnPropertyNames: fn, getOwnPropertySymbols: gn, getPrototypeOf: yn } = Object, Et = globalThis, Pi = Et.trustedTypes, mn = Pi ? Pi.emptyScript : "", wn = Et.reactiveElementPolyfillSupport, pt = (t, e) => t, xt = { toAttribute(t, e) {
|
|
39
39
|
switch (e) {
|
|
40
40
|
case Boolean:
|
|
41
|
-
t = t ?
|
|
41
|
+
t = t ? mn : null;
|
|
42
42
|
break;
|
|
43
43
|
case Object:
|
|
44
44
|
case Array:
|
|
@@ -63,23 +63,23 @@ const { is: ln, defineProperty: un, getOwnPropertyDescriptor: pn, getOwnProperty
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
return n;
|
|
66
|
-
} },
|
|
67
|
-
Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"),
|
|
68
|
-
let
|
|
66
|
+
} }, yi = (t, e) => !un(t, e), xi = { attribute: !0, type: String, converter: xt, reflect: !1, useDefault: !1, hasChanged: yi };
|
|
67
|
+
Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), Et.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
68
|
+
let tt = class extends HTMLElement {
|
|
69
69
|
static addInitializer(e) {
|
|
70
70
|
this._$Ei(), (this.l ??= []).push(e);
|
|
71
71
|
}
|
|
72
72
|
static get observedAttributes() {
|
|
73
73
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
74
74
|
}
|
|
75
|
-
static createProperty(e, n =
|
|
75
|
+
static createProperty(e, n = xi) {
|
|
76
76
|
if (n.state && (n.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((n = Object.create(n)).wrapped = !0), this.elementProperties.set(e, n), !n.noAccessor) {
|
|
77
77
|
const i = /* @__PURE__ */ Symbol(), o = this.getPropertyDescriptor(e, i, n);
|
|
78
|
-
o !== void 0 &&
|
|
78
|
+
o !== void 0 && pn(this.prototype, e, o);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
static getPropertyDescriptor(e, n, i) {
|
|
82
|
-
const { get: o, set: a } =
|
|
82
|
+
const { get: o, set: a } = hn(this.prototype, e) ?? { get() {
|
|
83
83
|
return this[n];
|
|
84
84
|
}, set(s) {
|
|
85
85
|
this[n] = s;
|
|
@@ -90,17 +90,17 @@ let et = class extends HTMLElement {
|
|
|
90
90
|
}, configurable: !0, enumerable: !0 };
|
|
91
91
|
}
|
|
92
92
|
static getPropertyOptions(e) {
|
|
93
|
-
return this.elementProperties.get(e) ??
|
|
93
|
+
return this.elementProperties.get(e) ?? xi;
|
|
94
94
|
}
|
|
95
95
|
static _$Ei() {
|
|
96
|
-
if (this.hasOwnProperty(
|
|
97
|
-
const e =
|
|
96
|
+
if (this.hasOwnProperty(pt("elementProperties"))) return;
|
|
97
|
+
const e = yn(this);
|
|
98
98
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
99
99
|
}
|
|
100
100
|
static finalize() {
|
|
101
|
-
if (this.hasOwnProperty(
|
|
102
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
103
|
-
const n = this.properties, i = [...
|
|
101
|
+
if (this.hasOwnProperty(pt("finalized"))) return;
|
|
102
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(pt("properties"))) {
|
|
103
|
+
const n = this.properties, i = [...fn(n), ...gn(n)];
|
|
104
104
|
for (const o of i) this.createProperty(o, n[o]);
|
|
105
105
|
}
|
|
106
106
|
const e = this[Symbol.metadata];
|
|
@@ -119,8 +119,8 @@ let et = class extends HTMLElement {
|
|
|
119
119
|
const n = [];
|
|
120
120
|
if (Array.isArray(e)) {
|
|
121
121
|
const i = new Set(e.flat(1 / 0).reverse());
|
|
122
|
-
for (const o of i) n.unshift(
|
|
123
|
-
} else e !== void 0 && n.push(
|
|
122
|
+
for (const o of i) n.unshift(ji(o));
|
|
123
|
+
} else e !== void 0 && n.push(ji(e));
|
|
124
124
|
return n;
|
|
125
125
|
}
|
|
126
126
|
static _$Eu(e, n) {
|
|
@@ -146,7 +146,7 @@ let et = class extends HTMLElement {
|
|
|
146
146
|
}
|
|
147
147
|
createRenderRoot() {
|
|
148
148
|
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
149
|
-
return
|
|
149
|
+
return ln(e, this.constructor.elementStyles), e;
|
|
150
150
|
}
|
|
151
151
|
connectedCallback() {
|
|
152
152
|
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach((e) => e.hostConnected?.());
|
|
@@ -162,14 +162,14 @@ let et = class extends HTMLElement {
|
|
|
162
162
|
_$ET(e, n) {
|
|
163
163
|
const i = this.constructor.elementProperties.get(e), o = this.constructor._$Eu(e, i);
|
|
164
164
|
if (o !== void 0 && i.reflect === !0) {
|
|
165
|
-
const a = (i.converter?.toAttribute !== void 0 ? i.converter :
|
|
165
|
+
const a = (i.converter?.toAttribute !== void 0 ? i.converter : xt).toAttribute(n, i.type);
|
|
166
166
|
this._$Em = e, a == null ? this.removeAttribute(o) : this.setAttribute(o, a), this._$Em = null;
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
_$AK(e, n) {
|
|
170
170
|
const i = this.constructor, o = i._$Eh.get(e);
|
|
171
171
|
if (o !== void 0 && this._$Em !== o) {
|
|
172
|
-
const a = i.getPropertyOptions(o), s = typeof a.converter == "function" ? { fromAttribute: a.converter } : a.converter?.fromAttribute !== void 0 ? a.converter :
|
|
172
|
+
const a = i.getPropertyOptions(o), s = typeof a.converter == "function" ? { fromAttribute: a.converter } : a.converter?.fromAttribute !== void 0 ? a.converter : xt;
|
|
173
173
|
this._$Em = o;
|
|
174
174
|
const r = s.fromAttribute(n, a.type);
|
|
175
175
|
this[o] = r ?? this._$Ej?.get(o) ?? r, this._$Em = null;
|
|
@@ -178,7 +178,7 @@ let et = class extends HTMLElement {
|
|
|
178
178
|
requestUpdate(e, n, i, o = !1, a) {
|
|
179
179
|
if (e !== void 0) {
|
|
180
180
|
const s = this.constructor;
|
|
181
|
-
if (o === !1 && (a = this[e]), i ??= s.getPropertyOptions(e), !((i.hasChanged ??
|
|
181
|
+
if (o === !1 && (a = this[e]), i ??= s.getPropertyOptions(e), !((i.hasChanged ?? yi)(a, n) || i.useDefault && i.reflect && a === this._$Ej?.get(e) && !this.hasAttribute(s._$Eu(e, i)))) return;
|
|
182
182
|
this.C(e, n, i);
|
|
183
183
|
}
|
|
184
184
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -246,70 +246,70 @@ let et = class extends HTMLElement {
|
|
|
246
246
|
firstUpdated(e) {
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
|
-
|
|
250
|
-
const
|
|
251
|
-
\f\r]`,
|
|
252
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
253
|
-
function
|
|
254
|
-
if (!
|
|
255
|
-
return
|
|
249
|
+
tt.elementStyles = [], tt.shadowRootOptions = { mode: "open" }, tt[pt("elementProperties")] = /* @__PURE__ */ new Map(), tt[pt("finalized")] = /* @__PURE__ */ new Map(), wn?.({ ReactiveElement: tt }), (Et.reactiveElementVersions ??= []).push("2.1.2");
|
|
250
|
+
const mi = globalThis, Ci = (t) => t, Ct = mi.trustedTypes, Ui = Ct ? Ct.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, zi = "$lit$", We = `lit$${Math.random().toFixed(9).slice(2)}$`, Oi = "?" + We, bn = `<${Oi}>`, ze = document, gt = () => ze.createComment(""), yt = (t) => t === null || typeof t != "object" && typeof t != "function", wi = Array.isArray, vn = (t) => wi(t) || typeof t?.[Symbol.iterator] == "function", Gt = `[
|
|
251
|
+
\f\r]`, lt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ri = /-->/g, Mi = />/g, Ze = RegExp(`>|${Gt}(?:([^\\s"'>=/]+)(${Gt}*=${Gt}*(?:[^
|
|
252
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ei = /'/g, qi = /"/g, Fi = /^(?:script|style|textarea|title)$/i, en = (t) => (e, ...n) => ({ _$litType$: t, strings: e, values: n }), b = en(1), G = en(2), ot = /* @__PURE__ */ Symbol.for("lit-noChange"), x = /* @__PURE__ */ Symbol.for("lit-nothing"), _i = /* @__PURE__ */ new WeakMap(), Qe = ze.createTreeWalker(ze, 129);
|
|
253
|
+
function tn(t, e) {
|
|
254
|
+
if (!wi(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
255
|
+
return Ui !== void 0 ? Ui.createHTML(e) : e;
|
|
256
256
|
}
|
|
257
|
-
const
|
|
257
|
+
const In = (t, e) => {
|
|
258
258
|
const n = t.length - 1, i = [];
|
|
259
|
-
let o, a = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", s =
|
|
259
|
+
let o, a = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", s = lt;
|
|
260
260
|
for (let r = 0; r < n; r++) {
|
|
261
261
|
const d = t[r];
|
|
262
262
|
let c, p, u = -1, m = 0;
|
|
263
|
-
for (; m < d.length && (s.lastIndex = m, p = s.exec(d), p !== null); ) m = s.lastIndex, s ===
|
|
264
|
-
const $ = s ===
|
|
265
|
-
a += s ===
|
|
263
|
+
for (; m < d.length && (s.lastIndex = m, p = s.exec(d), p !== null); ) m = s.lastIndex, s === lt ? p[1] === "!--" ? s = Ri : p[1] !== void 0 ? s = Mi : p[2] !== void 0 ? (Fi.test(p[2]) && (o = RegExp("</" + p[2], "g")), s = Ze) : p[3] !== void 0 && (s = Ze) : s === Ze ? p[0] === ">" ? (s = o ?? lt, u = -1) : p[1] === void 0 ? u = -2 : (u = s.lastIndex - p[2].length, c = p[1], s = p[3] === void 0 ? Ze : p[3] === '"' ? qi : Ei) : s === qi || s === Ei ? s = Ze : s === Ri || s === Mi ? s = lt : (s = Ze, o = void 0);
|
|
264
|
+
const $ = s === Ze && t[r + 1].startsWith("/>") ? " " : "";
|
|
265
|
+
a += s === lt ? d + bn : u >= 0 ? (i.push(c), d.slice(0, u) + zi + d.slice(u) + We + $) : d + We + (u === -2 ? r : $);
|
|
266
266
|
}
|
|
267
|
-
return [
|
|
267
|
+
return [tn(t, a + (t[n] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
|
|
268
268
|
};
|
|
269
|
-
class
|
|
269
|
+
class mt {
|
|
270
270
|
constructor({ strings: e, _$litType$: n }, i) {
|
|
271
271
|
let o;
|
|
272
272
|
this.parts = [];
|
|
273
273
|
let a = 0, s = 0;
|
|
274
|
-
const r = e.length - 1, d = this.parts, [c, p] =
|
|
275
|
-
if (this.el =
|
|
274
|
+
const r = e.length - 1, d = this.parts, [c, p] = In(e, n);
|
|
275
|
+
if (this.el = mt.createElement(c, i), Qe.currentNode = this.el.content, n === 2 || n === 3) {
|
|
276
276
|
const u = this.el.content.firstChild;
|
|
277
277
|
u.replaceWith(...u.childNodes);
|
|
278
278
|
}
|
|
279
|
-
for (; (o =
|
|
279
|
+
for (; (o = Qe.nextNode()) !== null && d.length < r; ) {
|
|
280
280
|
if (o.nodeType === 1) {
|
|
281
|
-
if (o.hasAttributes()) for (const u of o.getAttributeNames()) if (u.endsWith(
|
|
282
|
-
const m = p[s++], $ = o.getAttribute(u).split(
|
|
283
|
-
d.push({ type: 1, index: a, name: E[2], strings: $, ctor: E[1] === "." ?
|
|
284
|
-
} else u.startsWith(
|
|
285
|
-
if (
|
|
286
|
-
const u = o.textContent.split(
|
|
281
|
+
if (o.hasAttributes()) for (const u of o.getAttributeNames()) if (u.endsWith(zi)) {
|
|
282
|
+
const m = p[s++], $ = o.getAttribute(u).split(We), E = /([.?@])?(.*)/.exec(m);
|
|
283
|
+
d.push({ type: 1, index: a, name: E[2], strings: $, ctor: E[1] === "." ? kn : E[1] === "?" ? Sn : E[1] === "@" ? $n : qt }), o.removeAttribute(u);
|
|
284
|
+
} else u.startsWith(We) && (d.push({ type: 6, index: a }), o.removeAttribute(u));
|
|
285
|
+
if (Fi.test(o.tagName)) {
|
|
286
|
+
const u = o.textContent.split(We), m = u.length - 1;
|
|
287
287
|
if (m > 0) {
|
|
288
|
-
o.textContent =
|
|
289
|
-
for (let $ = 0; $ < m; $++) o.append(u[$],
|
|
290
|
-
o.append(u[m],
|
|
288
|
+
o.textContent = Ct ? Ct.emptyScript : "";
|
|
289
|
+
for (let $ = 0; $ < m; $++) o.append(u[$], gt()), Qe.nextNode(), d.push({ type: 2, index: ++a });
|
|
290
|
+
o.append(u[m], gt());
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
|
-
} else if (o.nodeType === 8) if (o.data ===
|
|
293
|
+
} else if (o.nodeType === 8) if (o.data === Oi) d.push({ type: 2, index: a });
|
|
294
294
|
else {
|
|
295
295
|
let u = -1;
|
|
296
|
-
for (; (u = o.data.indexOf(
|
|
296
|
+
for (; (u = o.data.indexOf(We, u + 1)) !== -1; ) d.push({ type: 7, index: a }), u += We.length - 1;
|
|
297
297
|
}
|
|
298
298
|
a++;
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
static createElement(e, n) {
|
|
302
|
-
const i =
|
|
302
|
+
const i = ze.createElement("template");
|
|
303
303
|
return i.innerHTML = e, i;
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
|
-
function
|
|
307
|
-
if (e ===
|
|
306
|
+
function at(t, e, n = t, i) {
|
|
307
|
+
if (e === ot) return e;
|
|
308
308
|
let o = i !== void 0 ? n._$Co?.[i] : n._$Cl;
|
|
309
|
-
const a =
|
|
310
|
-
return o?.constructor !== a && (o?._$AO?.(!1), a === void 0 ? o = void 0 : (o = new a(t), o._$AT(t, n, i)), i !== void 0 ? (n._$Co ??= [])[i] = o : n._$Cl = o), o !== void 0 && (e =
|
|
309
|
+
const a = yt(e) ? void 0 : e._$litDirective$;
|
|
310
|
+
return o?.constructor !== a && (o?._$AO?.(!1), a === void 0 ? o = void 0 : (o = new a(t), o._$AT(t, n, i)), i !== void 0 ? (n._$Co ??= [])[i] = o : n._$Cl = o), o !== void 0 && (e = at(t, o._$AS(t, e.values), o, i)), e;
|
|
311
311
|
}
|
|
312
|
-
class
|
|
312
|
+
class An {
|
|
313
313
|
constructor(e, n) {
|
|
314
314
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = n;
|
|
315
315
|
}
|
|
@@ -320,29 +320,29 @@ class In {
|
|
|
320
320
|
return this._$AM._$AU;
|
|
321
321
|
}
|
|
322
322
|
u(e) {
|
|
323
|
-
const { el: { content: n }, parts: i } = this._$AD, o = (e?.creationScope ??
|
|
324
|
-
|
|
325
|
-
let a =
|
|
323
|
+
const { el: { content: n }, parts: i } = this._$AD, o = (e?.creationScope ?? ze).importNode(n, !0);
|
|
324
|
+
Qe.currentNode = o;
|
|
325
|
+
let a = Qe.nextNode(), s = 0, r = 0, d = i[0];
|
|
326
326
|
for (; d !== void 0; ) {
|
|
327
327
|
if (s === d.index) {
|
|
328
328
|
let c;
|
|
329
|
-
d.type === 2 ? c = new
|
|
329
|
+
d.type === 2 ? c = new It(a, a.nextSibling, this, e) : d.type === 1 ? c = new d.ctor(a, d.name, d.strings, this, e) : d.type === 6 && (c = new jn(a, this, e)), this._$AV.push(c), d = i[++r];
|
|
330
330
|
}
|
|
331
|
-
s !== d?.index && (a =
|
|
331
|
+
s !== d?.index && (a = Qe.nextNode(), s++);
|
|
332
332
|
}
|
|
333
|
-
return
|
|
333
|
+
return Qe.currentNode = ze, o;
|
|
334
334
|
}
|
|
335
335
|
p(e) {
|
|
336
336
|
let n = 0;
|
|
337
337
|
for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(e, i, n), n += i.strings.length - 2) : i._$AI(e[n])), n++;
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
class
|
|
340
|
+
class It {
|
|
341
341
|
get _$AU() {
|
|
342
342
|
return this._$AM?._$AU ?? this._$Cv;
|
|
343
343
|
}
|
|
344
344
|
constructor(e, n, i, o) {
|
|
345
|
-
this.type = 2, this._$AH =
|
|
345
|
+
this.type = 2, this._$AH = x, this._$AN = void 0, this._$AA = e, this._$AB = n, this._$AM = i, this.options = o, this._$Cv = o?.isConnected ?? !0;
|
|
346
346
|
}
|
|
347
347
|
get parentNode() {
|
|
348
348
|
let e = this._$AA.parentNode;
|
|
@@ -356,7 +356,7 @@ class vt {
|
|
|
356
356
|
return this._$AB;
|
|
357
357
|
}
|
|
358
358
|
_$AI(e, n = this) {
|
|
359
|
-
e =
|
|
359
|
+
e = at(this, e, n), yt(e) ? e === x || e == null || e === "" ? (this._$AH !== x && this._$AR(), this._$AH = x) : e !== this._$AH && e !== ot && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : vn(e) ? this.k(e) : this._(e);
|
|
360
360
|
}
|
|
361
361
|
O(e) {
|
|
362
362
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -365,38 +365,38 @@ class vt {
|
|
|
365
365
|
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
366
366
|
}
|
|
367
367
|
_(e) {
|
|
368
|
-
this._$AH !==
|
|
368
|
+
this._$AH !== x && yt(this._$AH) ? this._$AA.nextSibling.data = e : this.T(ze.createTextNode(e)), this._$AH = e;
|
|
369
369
|
}
|
|
370
370
|
$(e) {
|
|
371
|
-
const { values: n, _$litType$: i } = e, o = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el =
|
|
371
|
+
const { values: n, _$litType$: i } = e, o = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el = mt.createElement(tn(i.h, i.h[0]), this.options)), i);
|
|
372
372
|
if (this._$AH?._$AD === o) this._$AH.p(n);
|
|
373
373
|
else {
|
|
374
|
-
const a = new
|
|
374
|
+
const a = new An(o, this), s = a.u(this.options);
|
|
375
375
|
a.p(n), this.T(s), this._$AH = a;
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
378
|
_$AC(e) {
|
|
379
|
-
let n =
|
|
380
|
-
return n === void 0 &&
|
|
379
|
+
let n = _i.get(e.strings);
|
|
380
|
+
return n === void 0 && _i.set(e.strings, n = new mt(e)), n;
|
|
381
381
|
}
|
|
382
382
|
k(e) {
|
|
383
|
-
|
|
383
|
+
wi(this._$AH) || (this._$AH = [], this._$AR());
|
|
384
384
|
const n = this._$AH;
|
|
385
385
|
let i, o = 0;
|
|
386
|
-
for (const a of e) o === n.length ? n.push(i = new
|
|
386
|
+
for (const a of e) o === n.length ? n.push(i = new It(this.O(gt()), this.O(gt()), this, this.options)) : i = n[o], i._$AI(a), o++;
|
|
387
387
|
o < n.length && (this._$AR(i && i._$AB.nextSibling, o), n.length = o);
|
|
388
388
|
}
|
|
389
389
|
_$AR(e = this._$AA.nextSibling, n) {
|
|
390
390
|
for (this._$AP?.(!1, !0, n); e !== this._$AB; ) {
|
|
391
|
-
const i =
|
|
392
|
-
|
|
391
|
+
const i = Ci(e).nextSibling;
|
|
392
|
+
Ci(e).remove(), e = i;
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
setConnected(e) {
|
|
396
396
|
this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
|
-
class
|
|
399
|
+
class qt {
|
|
400
400
|
get tagName() {
|
|
401
401
|
return this.element.tagName;
|
|
402
402
|
}
|
|
@@ -404,53 +404,53 @@ class Et {
|
|
|
404
404
|
return this._$AM._$AU;
|
|
405
405
|
}
|
|
406
406
|
constructor(e, n, i, o, a) {
|
|
407
|
-
this.type = 1, this._$AH =
|
|
407
|
+
this.type = 1, this._$AH = x, this._$AN = void 0, this.element = e, this.name = n, this._$AM = o, this.options = a, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = x;
|
|
408
408
|
}
|
|
409
409
|
_$AI(e, n = this, i, o) {
|
|
410
410
|
const a = this.strings;
|
|
411
411
|
let s = !1;
|
|
412
|
-
if (a === void 0) e =
|
|
412
|
+
if (a === void 0) e = at(this, e, n, 0), s = !yt(e) || e !== this._$AH && e !== ot, s && (this._$AH = e);
|
|
413
413
|
else {
|
|
414
414
|
const r = e;
|
|
415
415
|
let d, c;
|
|
416
|
-
for (e = a[0], d = 0; d < a.length - 1; d++) c =
|
|
416
|
+
for (e = a[0], d = 0; d < a.length - 1; d++) c = at(this, r[i + d], n, d), c === ot && (c = this._$AH[d]), s ||= !yt(c) || c !== this._$AH[d], c === x ? e = x : e !== x && (e += (c ?? "") + a[d + 1]), this._$AH[d] = c;
|
|
417
417
|
}
|
|
418
418
|
s && !o && this.j(e);
|
|
419
419
|
}
|
|
420
420
|
j(e) {
|
|
421
|
-
e ===
|
|
421
|
+
e === x ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
class
|
|
424
|
+
class kn extends qt {
|
|
425
425
|
constructor() {
|
|
426
426
|
super(...arguments), this.type = 3;
|
|
427
427
|
}
|
|
428
428
|
j(e) {
|
|
429
|
-
this.element[this.name] = e ===
|
|
429
|
+
this.element[this.name] = e === x ? void 0 : e;
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
|
-
class
|
|
432
|
+
class Sn extends qt {
|
|
433
433
|
constructor() {
|
|
434
434
|
super(...arguments), this.type = 4;
|
|
435
435
|
}
|
|
436
436
|
j(e) {
|
|
437
|
-
this.element.toggleAttribute(this.name, !!e && e !==
|
|
437
|
+
this.element.toggleAttribute(this.name, !!e && e !== x);
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
class
|
|
440
|
+
class $n extends qt {
|
|
441
441
|
constructor(e, n, i, o, a) {
|
|
442
442
|
super(e, n, i, o, a), this.type = 5;
|
|
443
443
|
}
|
|
444
444
|
_$AI(e, n = this) {
|
|
445
|
-
if ((e =
|
|
446
|
-
const i = this._$AH, o = e ===
|
|
445
|
+
if ((e = at(this, e, n, 0) ?? x) === ot) return;
|
|
446
|
+
const i = this._$AH, o = e === x && i !== x || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive, a = e !== x && (i === x || o);
|
|
447
447
|
o && this.element.removeEventListener(this.name, this, i), a && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
448
448
|
}
|
|
449
449
|
handleEvent(e) {
|
|
450
450
|
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
-
class
|
|
453
|
+
class jn {
|
|
454
454
|
constructor(e, n, i) {
|
|
455
455
|
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = n, this.options = i;
|
|
456
456
|
}
|
|
@@ -458,22 +458,22 @@ class $n {
|
|
|
458
458
|
return this._$AM._$AU;
|
|
459
459
|
}
|
|
460
460
|
_$AI(e) {
|
|
461
|
-
|
|
461
|
+
at(this, e);
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
-
const
|
|
465
|
-
|
|
466
|
-
const
|
|
464
|
+
const Pn = mi.litHtmlPolyfillSupport;
|
|
465
|
+
Pn?.(mt, It), (mi.litHtmlVersions ??= []).push("3.3.3");
|
|
466
|
+
const xn = (t, e, n) => {
|
|
467
467
|
const i = n?.renderBefore ?? e;
|
|
468
468
|
let o = i._$litPart$;
|
|
469
469
|
if (o === void 0) {
|
|
470
470
|
const a = n?.renderBefore ?? null;
|
|
471
|
-
i._$litPart$ = o = new
|
|
471
|
+
i._$litPart$ = o = new It(e.insertBefore(gt(), a), a, void 0, n ?? {});
|
|
472
472
|
}
|
|
473
473
|
return o._$AI(t), o;
|
|
474
474
|
};
|
|
475
|
-
const
|
|
476
|
-
class
|
|
475
|
+
const bi = globalThis;
|
|
476
|
+
class Te extends tt {
|
|
477
477
|
constructor() {
|
|
478
478
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
479
479
|
}
|
|
@@ -483,7 +483,7 @@ class Qe extends et {
|
|
|
483
483
|
}
|
|
484
484
|
update(e) {
|
|
485
485
|
const n = this.render();
|
|
486
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do =
|
|
486
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = xn(n, this.renderRoot, this.renderOptions);
|
|
487
487
|
}
|
|
488
488
|
connectedCallback() {
|
|
489
489
|
super.connectedCallback(), this._$Do?.setConnected(!0);
|
|
@@ -492,19 +492,19 @@ class Qe extends et {
|
|
|
492
492
|
super.disconnectedCallback(), this._$Do?.setConnected(!1);
|
|
493
493
|
}
|
|
494
494
|
render() {
|
|
495
|
-
return
|
|
495
|
+
return ot;
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
|
|
499
|
-
const
|
|
500
|
-
|
|
501
|
-
(
|
|
502
|
-
const
|
|
498
|
+
Te._$litElement$ = !0, Te.finalized = !0, bi.litElementHydrateSupport?.({ LitElement: Te });
|
|
499
|
+
const Cn = bi.litElementPolyfillSupport;
|
|
500
|
+
Cn?.({ LitElement: Te });
|
|
501
|
+
(bi.litElementVersions ??= []).push("4.2.2");
|
|
502
|
+
const Oe = (t) => (e, n) => {
|
|
503
503
|
n !== void 0 ? n.addInitializer(() => {
|
|
504
504
|
customElements.define(t, e);
|
|
505
505
|
}) : customElements.define(t, e);
|
|
506
506
|
};
|
|
507
|
-
const
|
|
507
|
+
const Un = { attribute: !0, type: String, converter: xt, reflect: !1, hasChanged: yi }, Rn = (t = Un, e, n) => {
|
|
508
508
|
const { kind: i, metadata: o } = n;
|
|
509
509
|
let a = globalThis.litPropertyMetadata.get(o);
|
|
510
510
|
if (a === void 0 && globalThis.litPropertyMetadata.set(o, a = /* @__PURE__ */ new Map()), i === "setter" && ((t = Object.create(t)).wrapped = !0), a.set(n.name, t), i === "accessor") {
|
|
@@ -526,7 +526,7 @@ const Cn = { attribute: !0, type: String, converter: Pt, reflect: !1, hasChanged
|
|
|
526
526
|
throw Error("Unsupported decorator location: " + i);
|
|
527
527
|
};
|
|
528
528
|
function F(t) {
|
|
529
|
-
return (e, n) => typeof n == "object" ?
|
|
529
|
+
return (e, n) => typeof n == "object" ? Rn(t, e, n) : ((i, o, a) => {
|
|
530
530
|
const s = o.hasOwnProperty(a);
|
|
531
531
|
return o.constructor.createProperty(a, i), s ? Object.getOwnPropertyDescriptor(o, a) : void 0;
|
|
532
532
|
})(t, e, n);
|
|
@@ -534,25 +534,25 @@ function F(t) {
|
|
|
534
534
|
function N(t) {
|
|
535
535
|
return F({ ...t, state: !0, attribute: !1 });
|
|
536
536
|
}
|
|
537
|
-
const
|
|
538
|
-
function
|
|
537
|
+
const Mn = (t, e, n) => (n.configurable = !0, n.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(t, e, n), n);
|
|
538
|
+
function vi(t, e) {
|
|
539
539
|
return (n, i, o) => {
|
|
540
540
|
const a = (s) => s.renderRoot?.querySelector(t) ?? null;
|
|
541
|
-
return
|
|
541
|
+
return Mn(n, i, { get() {
|
|
542
542
|
return a(this);
|
|
543
543
|
} });
|
|
544
544
|
};
|
|
545
545
|
}
|
|
546
|
-
function
|
|
546
|
+
function En(t) {
|
|
547
547
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
548
548
|
}
|
|
549
|
-
var
|
|
550
|
-
function
|
|
551
|
-
return
|
|
549
|
+
var ut = { exports: {} }, Kt = { exports: {} }, jt = { exports: {} }, qn = jt.exports, Li;
|
|
550
|
+
function nn() {
|
|
551
|
+
return Li || (Li = 1, (function(t) {
|
|
552
552
|
(function(e) {
|
|
553
553
|
var n, i = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, o = Math.ceil, a = Math.floor, s = "[BigNumber Error] ", r = s + "Number primitive has more than 15 significant digits: ", d = 1e14, c = 14, p = 9007199254740991, u = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], m = 1e7, $ = 1e9;
|
|
554
554
|
function E(H) {
|
|
555
|
-
var L, te, V, R = U.prototype = { constructor: U, toString: null, valueOf: null }, Y = new U(1), Q = 20, ie = 4, ce = -7, le = 21, Re = -1e7, ke = 1e7, _e = !1,
|
|
555
|
+
var L, te, V, R = U.prototype = { constructor: U, toString: null, valueOf: null }, Y = new U(1), Q = 20, ie = 4, ce = -7, le = 21, Re = -1e7, ke = 1e7, _e = !1, ct = 1, Xe = 0, Dt = {
|
|
556
556
|
prefix: "",
|
|
557
557
|
groupSize: 3,
|
|
558
558
|
secondaryGroupSize: 0,
|
|
@@ -562,7 +562,7 @@ function tn() {
|
|
|
562
562
|
fractionGroupSeparator: " ",
|
|
563
563
|
// non-breaking space
|
|
564
564
|
suffix: ""
|
|
565
|
-
},
|
|
565
|
+
}, Je = "0123456789abcdefghijklmnopqrstuvwxyz", Ht = !0;
|
|
566
566
|
function U(l, f) {
|
|
567
567
|
var g, k, w, I, j, y, v, S, A = this;
|
|
568
568
|
if (!(A instanceof U)) return new U(l, f);
|
|
@@ -584,7 +584,7 @@ function tn() {
|
|
|
584
584
|
}
|
|
585
585
|
(I = S.indexOf(".")) > -1 && (S = S.replace(".", "")), (j = S.search(/e/i)) > 0 ? (I < 0 && (I = j), I += +S.slice(j + 1), S = S.substring(0, j)) : I < 0 && (I = S.length);
|
|
586
586
|
} else {
|
|
587
|
-
if (_(f, 2,
|
|
587
|
+
if (_(f, 2, Je.length, "Base"), f == 10 && Ht)
|
|
588
588
|
return A = new U(l), Se(A, Q + A.e + 1, ie);
|
|
589
589
|
if (S = String(l), y = typeof l == "number") {
|
|
590
590
|
if (l * 0 != 0) return V(A, S, y, f);
|
|
@@ -592,7 +592,7 @@ function tn() {
|
|
|
592
592
|
throw Error(r + l);
|
|
593
593
|
} else
|
|
594
594
|
A.s = S.charCodeAt(0) === 45 ? (S = S.slice(1), -1) : 1;
|
|
595
|
-
for (g =
|
|
595
|
+
for (g = Je.slice(0, f), I = j = 0, v = S.length; j < v; j++)
|
|
596
596
|
if (g.indexOf(k = S.charAt(j)) < 0) {
|
|
597
597
|
if (k == ".") {
|
|
598
598
|
if (j > I) {
|
|
@@ -651,12 +651,12 @@ function tn() {
|
|
|
651
651
|
_e = g;
|
|
652
652
|
else
|
|
653
653
|
throw Error(s + f + " not true or false: " + g);
|
|
654
|
-
if (l.hasOwnProperty(f = "MODULO_MODE") && (g = l[f], _(g, 0, 9, f),
|
|
655
|
-
if (g = l[f], typeof g == "object")
|
|
654
|
+
if (l.hasOwnProperty(f = "MODULO_MODE") && (g = l[f], _(g, 0, 9, f), ct = g), l.hasOwnProperty(f = "POW_PRECISION") && (g = l[f], _(g, 0, $, f), Xe = g), l.hasOwnProperty(f = "FORMAT"))
|
|
655
|
+
if (g = l[f], typeof g == "object") Dt = g;
|
|
656
656
|
else throw Error(s + f + " not an object: " + g);
|
|
657
657
|
if (l.hasOwnProperty(f = "ALPHABET"))
|
|
658
658
|
if (g = l[f], typeof g == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(g))
|
|
659
|
-
|
|
659
|
+
Ht = g.slice(0, 10) == "0123456789", Je = g;
|
|
660
660
|
else
|
|
661
661
|
throw Error(s + f + " invalid: " + g);
|
|
662
662
|
} else
|
|
@@ -667,10 +667,10 @@ function tn() {
|
|
|
667
667
|
EXPONENTIAL_AT: [ce, le],
|
|
668
668
|
RANGE: [Re, ke],
|
|
669
669
|
CRYPTO: _e,
|
|
670
|
-
MODULO_MODE:
|
|
670
|
+
MODULO_MODE: ct,
|
|
671
671
|
POW_PRECISION: Xe,
|
|
672
|
-
FORMAT:
|
|
673
|
-
ALPHABET:
|
|
672
|
+
FORMAT: Dt,
|
|
673
|
+
ALPHABET: Je
|
|
674
674
|
};
|
|
675
675
|
}, U.isBigNumber = function(l) {
|
|
676
676
|
if (!l || l._isBigNumber !== !0) return !1;
|
|
@@ -692,9 +692,9 @@ function tn() {
|
|
|
692
692
|
return !0;
|
|
693
693
|
throw Error(s + "Invalid BigNumber: " + l);
|
|
694
694
|
}, U.maximum = U.max = function() {
|
|
695
|
-
return
|
|
695
|
+
return Si(arguments, -1);
|
|
696
696
|
}, U.minimum = U.min = function() {
|
|
697
|
-
return
|
|
697
|
+
return Si(arguments, 1);
|
|
698
698
|
}, U.random = (function() {
|
|
699
699
|
var l = 9007199254740992, f = Math.random() * l & 2097151 ? function() {
|
|
700
700
|
return a(Math.random() * l);
|
|
@@ -741,18 +741,18 @@ function tn() {
|
|
|
741
741
|
return y.reverse();
|
|
742
742
|
}
|
|
743
743
|
return function(g, k, w, I, j) {
|
|
744
|
-
var y, v, S, A,
|
|
744
|
+
var y, v, S, A, C, B, X, ne, ue = g.indexOf("."), ge = Q, ee = ie;
|
|
745
745
|
for (ue >= 0 && (A = Xe, Xe = 0, g = g.replace(".", ""), ne = new U(k), B = ne.pow(g.length - ue), Xe = A, ne.c = f(
|
|
746
746
|
ae(W(B.c), B.e, "0"),
|
|
747
747
|
10,
|
|
748
748
|
w,
|
|
749
749
|
l
|
|
750
|
-
), ne.e = ne.c.length), X = f(g, k, w, j ? (y =
|
|
750
|
+
), ne.e = ne.c.length), X = f(g, k, w, j ? (y = Je, l) : (y = l, Je)), S = A = X.length; X[--A] == 0; X.pop()) ;
|
|
751
751
|
if (!X[0]) return y.charAt(0);
|
|
752
|
-
if (ue < 0 ? --S : (B.c = X, B.e = S, B.s = I, B = L(B, ne, ge, ee, w), X = B.c,
|
|
753
|
-
g =
|
|
752
|
+
if (ue < 0 ? --S : (B.c = X, B.e = S, B.s = I, B = L(B, ne, ge, ee, w), X = B.c, C = B.r, S = B.e), v = S + ge + 1, ue = X[v], A = w / 2, C = C || v < 0 || X[v + 1] != null, C = ee < 4 ? (ue != null || C) && (ee == 0 || ee == (B.s < 0 ? 3 : 2)) : ue > A || ue == A && (ee == 4 || C || ee == 6 && X[v - 1] & 1 || ee == (B.s < 0 ? 8 : 7)), v < 1 || !X[0])
|
|
753
|
+
g = C ? ae(y.charAt(1), -ge, y.charAt(0)) : y.charAt(0);
|
|
754
754
|
else {
|
|
755
|
-
if (X.length = v,
|
|
755
|
+
if (X.length = v, C)
|
|
756
756
|
for (--w; ++X[--v] > w; )
|
|
757
757
|
X[v] = 0, v || (++S, X = [1].concat(X));
|
|
758
758
|
for (A = X.length; !X[--A]; ) ;
|
|
@@ -763,9 +763,9 @@ function tn() {
|
|
|
763
763
|
};
|
|
764
764
|
})(), L = /* @__PURE__ */ (function() {
|
|
765
765
|
function l(k, w, I) {
|
|
766
|
-
var j, y, v, S, A = 0,
|
|
767
|
-
for (k = k.slice();
|
|
768
|
-
v = k[
|
|
766
|
+
var j, y, v, S, A = 0, C = k.length, B = w % m, X = w / m | 0;
|
|
767
|
+
for (k = k.slice(); C--; )
|
|
768
|
+
v = k[C] % m, S = k[C] / m | 0, j = X * v + S * B, y = B * v + j % m * m + A, A = (y / I | 0) + (j / m | 0) + X * S, k[C] = y % I;
|
|
769
769
|
return A && (k = [A].concat(k)), k;
|
|
770
770
|
}
|
|
771
771
|
function f(k, w, I, j) {
|
|
@@ -786,7 +786,7 @@ function tn() {
|
|
|
786
786
|
for (; !k[0] && k.length > 1; k.splice(0, 1)) ;
|
|
787
787
|
}
|
|
788
788
|
return function(k, w, I, j, y) {
|
|
789
|
-
var v, S, A,
|
|
789
|
+
var v, S, A, C, B, X, ne, ue, ge, ee, re, be, At, Vt, Wt, Me, dt, $e = k.s == w.s ? 1 : -1, Ie = k.c, pe = w.c;
|
|
790
790
|
if (!Ie || !Ie[0] || !pe || !pe[0])
|
|
791
791
|
return new U(
|
|
792
792
|
// Return NaN if either NaN, or both Infinity or 0.
|
|
@@ -797,34 +797,34 @@ function tn() {
|
|
|
797
797
|
);
|
|
798
798
|
for (ue = new U($e), ge = ue.c = [], S = k.e - w.e, $e = I + S + 1, y || (y = d, S = Z(k.e / c) - Z(w.e / c), $e = $e / c | 0), A = 0; pe[A] == (Ie[A] || 0); A++) ;
|
|
799
799
|
if (pe[A] > (Ie[A] || 0) && S--, $e < 0)
|
|
800
|
-
ge.push(1),
|
|
800
|
+
ge.push(1), C = !0;
|
|
801
801
|
else {
|
|
802
|
-
for (
|
|
803
|
-
|
|
802
|
+
for (Vt = Ie.length, Me = pe.length, A = 0, $e += 2, B = a(y / (pe[0] + 1)), B > 1 && (pe = l(pe, B, y), Ie = l(Ie, B, y), Me = pe.length, Vt = Ie.length), At = Me, ee = Ie.slice(0, Me), re = ee.length; re < Me; ee[re++] = 0) ;
|
|
803
|
+
dt = pe.slice(), dt = [0].concat(dt), Wt = pe[0], pe[1] >= y / 2 && Wt++;
|
|
804
804
|
do {
|
|
805
805
|
if (B = 0, v = f(pe, ee, Me, re), v < 0) {
|
|
806
|
-
if (be = ee[0], Me != re && (be = be * y + (ee[1] || 0)), B = a(be /
|
|
806
|
+
if (be = ee[0], Me != re && (be = be * y + (ee[1] || 0)), B = a(be / Wt), B > 1)
|
|
807
807
|
for (B >= y && (B = y - 1), X = l(pe, B, y), ne = X.length, re = ee.length; f(X, ee, ne, re) == 1; )
|
|
808
|
-
B--, g(X, Me < ne ?
|
|
808
|
+
B--, g(X, Me < ne ? dt : pe, ne, y), ne = X.length, v = 1;
|
|
809
809
|
else
|
|
810
810
|
B == 0 && (v = B = 1), X = pe.slice(), ne = X.length;
|
|
811
811
|
if (ne < re && (X = [0].concat(X)), g(ee, X, re, y), re = ee.length, v == -1)
|
|
812
812
|
for (; f(pe, ee, Me, re) < 1; )
|
|
813
|
-
B++, g(ee, Me < re ?
|
|
813
|
+
B++, g(ee, Me < re ? dt : pe, re, y), re = ee.length;
|
|
814
814
|
} else v === 0 && (B++, ee = [0]);
|
|
815
|
-
ge[A++] = B, ee[0] ? ee[re++] = Ie[
|
|
816
|
-
} while ((
|
|
817
|
-
|
|
815
|
+
ge[A++] = B, ee[0] ? ee[re++] = Ie[At] || 0 : (ee = [Ie[At]], re = 1);
|
|
816
|
+
} while ((At++ < Vt || ee[0] != null) && $e--);
|
|
817
|
+
C = ee[0] != null, ge[0] || ge.splice(0, 1);
|
|
818
818
|
}
|
|
819
819
|
if (y == d) {
|
|
820
820
|
for (A = 1, $e = ge[0]; $e >= 10; $e /= 10, A++) ;
|
|
821
|
-
Se(ue, I + (ue.e = A + S * c - 1) + 1, j,
|
|
821
|
+
Se(ue, I + (ue.e = A + S * c - 1) + 1, j, C);
|
|
822
822
|
} else
|
|
823
|
-
ue.e = S, ue.r = +
|
|
823
|
+
ue.e = S, ue.r = +C;
|
|
824
824
|
return ue;
|
|
825
825
|
};
|
|
826
826
|
})();
|
|
827
|
-
function
|
|
827
|
+
function Bt(l, f, g, k) {
|
|
828
828
|
var w, I, j, y, v;
|
|
829
829
|
if (g == null ? g = ie : _(g, 0, 8), !l.c) return l.toString();
|
|
830
830
|
if (w = l.c[0], j = l.e, f == null)
|
|
@@ -838,12 +838,12 @@ function tn() {
|
|
|
838
838
|
for (I + 1 == y && (v += "."); f--; v += "0") ;
|
|
839
839
|
return l.s < 0 && w ? "-" + v : v;
|
|
840
840
|
}
|
|
841
|
-
function
|
|
841
|
+
function Si(l, f) {
|
|
842
842
|
for (var g, k, w = 1, I = new U(l[0]); w < l.length; w++)
|
|
843
843
|
k = new U(l[w]), (!k.s || (g = K(I, k)) === f || g === 0 && I.s === f) && (I = k);
|
|
844
844
|
return I;
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function Xt(l, f, g) {
|
|
847
847
|
for (var k = 1, w = f.length; !f[--w]; f.pop()) ;
|
|
848
848
|
for (w = f[0]; w >= 10; w /= 10, k++) ;
|
|
849
849
|
return (g = k + g * c - 1) > ke ? l.c = l.e = null : g < Re ? l.c = [l.e = 0] : (l.e = g, l.c = f), l;
|
|
@@ -855,8 +855,8 @@ function tn() {
|
|
|
855
855
|
if (k.test(A))
|
|
856
856
|
I.s = isNaN(A) ? null : A < 0 ? -1 : 1;
|
|
857
857
|
else {
|
|
858
|
-
if (!y && (A = A.replace(l, function(
|
|
859
|
-
return S = (X = X.toLowerCase()) == "x" ? 16 : X == "b" ? 2 : 8, !v || v == S ? B :
|
|
858
|
+
if (!y && (A = A.replace(l, function(C, B, X) {
|
|
859
|
+
return S = (X = X.toLowerCase()) == "x" ? 16 : X == "b" ? 2 : 8, !v || v == S ? B : C;
|
|
860
860
|
}), v && (S = v, A = A.replace(f, "$1").replace(g, "0.$1")), j != A))
|
|
861
861
|
return new U(A, S);
|
|
862
862
|
if (U.DEBUG)
|
|
@@ -867,40 +867,40 @@ function tn() {
|
|
|
867
867
|
};
|
|
868
868
|
})();
|
|
869
869
|
function Se(l, f, g, k) {
|
|
870
|
-
var w, I, j, y, v, S, A,
|
|
871
|
-
if (
|
|
870
|
+
var w, I, j, y, v, S, A, C = l.c, B = u;
|
|
871
|
+
if (C) {
|
|
872
872
|
e: {
|
|
873
|
-
for (w = 1, y =
|
|
873
|
+
for (w = 1, y = C[0]; y >= 10; y /= 10, w++) ;
|
|
874
874
|
if (I = f - w, I < 0)
|
|
875
|
-
I += c, j = f, v =
|
|
876
|
-
else if (S = o((I + 1) / c), S >=
|
|
875
|
+
I += c, j = f, v = C[S = 0], A = a(v / B[w - j - 1] % 10);
|
|
876
|
+
else if (S = o((I + 1) / c), S >= C.length)
|
|
877
877
|
if (k) {
|
|
878
|
-
for (;
|
|
878
|
+
for (; C.length <= S; C.push(0)) ;
|
|
879
879
|
v = A = 0, w = 1, I %= c, j = I - c + 1;
|
|
880
880
|
} else
|
|
881
881
|
break e;
|
|
882
882
|
else {
|
|
883
|
-
for (v = y =
|
|
883
|
+
for (v = y = C[S], w = 1; y >= 10; y /= 10, w++) ;
|
|
884
884
|
I %= c, j = I - c + w, A = j < 0 ? 0 : a(v / B[w - j - 1] % 10);
|
|
885
885
|
}
|
|
886
886
|
if (k = k || f < 0 || // Are there any non-zero digits after the rounding digit?
|
|
887
887
|
// The expression n % pows10[d - j - 1] returns all digits of n to the right
|
|
888
888
|
// of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
|
|
889
|
-
|
|
890
|
-
(I > 0 ? j > 0 ? v / B[w - j] : 0 :
|
|
891
|
-
return
|
|
892
|
-
if (I == 0 ? (
|
|
889
|
+
C[S + 1] != null || (j < 0 ? v : v % B[w - j - 1]), k = g < 4 ? (A || k) && (g == 0 || g == (l.s < 0 ? 3 : 2)) : A > 5 || A == 5 && (g == 4 || k || g == 6 && // Check whether the digit to the left of the rounding digit is odd.
|
|
890
|
+
(I > 0 ? j > 0 ? v / B[w - j] : 0 : C[S - 1]) % 10 & 1 || g == (l.s < 0 ? 8 : 7)), f < 1 || !C[0])
|
|
891
|
+
return C.length = 0, k ? (f -= l.e + 1, C[0] = B[(c - f % c) % c], l.e = -f || 0) : C[0] = l.e = 0, l;
|
|
892
|
+
if (I == 0 ? (C.length = S, y = 1, S--) : (C.length = S + 1, y = B[c - I], C[S] = j > 0 ? a(v / B[w - j] % B[j]) * y : 0), k)
|
|
893
893
|
for (; ; )
|
|
894
894
|
if (S == 0) {
|
|
895
|
-
for (I = 1, j =
|
|
896
|
-
for (j =
|
|
897
|
-
I != y && (l.e++,
|
|
895
|
+
for (I = 1, j = C[0]; j >= 10; j /= 10, I++) ;
|
|
896
|
+
for (j = C[0] += y, y = 1; j >= 10; j /= 10, y++) ;
|
|
897
|
+
I != y && (l.e++, C[0] == d && (C[0] = 1));
|
|
898
898
|
break;
|
|
899
899
|
} else {
|
|
900
|
-
if (
|
|
901
|
-
|
|
900
|
+
if (C[S] += y, C[S] != d) break;
|
|
901
|
+
C[S--] = 0, y = 1;
|
|
902
902
|
}
|
|
903
|
-
for (I =
|
|
903
|
+
for (I = C.length; C[--I] === 0; C.pop()) ;
|
|
904
904
|
}
|
|
905
905
|
l.e > ke ? l.c = l.e = null : l.e < Re && (l.c = [l.e = 0]);
|
|
906
906
|
}
|
|
@@ -927,22 +927,22 @@ function tn() {
|
|
|
927
927
|
}, R.dividedToIntegerBy = R.idiv = function(l, f) {
|
|
928
928
|
return L(this, new U(l, f), 0, 1);
|
|
929
929
|
}, R.exponentiatedBy = R.pow = function(l, f) {
|
|
930
|
-
var g, k, w, I, j, y, v, S, A,
|
|
930
|
+
var g, k, w, I, j, y, v, S, A, C = this;
|
|
931
931
|
if (l = new U(l), l.c && !l.isInteger())
|
|
932
932
|
throw Error(s + "Exponent not an integer: " + Le(l));
|
|
933
|
-
if (f != null && (f = new U(f)), y = l.e > 14, !
|
|
934
|
-
return A = new U(Math.pow(+Le(
|
|
933
|
+
if (f != null && (f = new U(f)), y = l.e > 14, !C.c || !C.c[0] || C.c[0] == 1 && !C.e && C.c.length == 1 || !l.c || !l.c[0])
|
|
934
|
+
return A = new U(Math.pow(+Le(C), y ? l.s * (2 - D(l)) : +Le(l))), f ? A.mod(f) : A;
|
|
935
935
|
if (v = l.s < 0, f) {
|
|
936
936
|
if (f.c ? !f.c[0] : !f.s) return new U(NaN);
|
|
937
|
-
k = !v &&
|
|
937
|
+
k = !v && C.isInteger() && f.isInteger(), k && (C = C.mod(f));
|
|
938
938
|
} else {
|
|
939
|
-
if (l.e > 9 && (
|
|
940
|
-
return I =
|
|
939
|
+
if (l.e > 9 && (C.e > 0 || C.e < -1 || (C.e == 0 ? C.c[0] > 1 || y && C.c[1] >= 24e7 : C.c[0] < 8e13 || y && C.c[0] <= 9999975e7)))
|
|
940
|
+
return I = C.s < 0 && D(l) ? -0 : 0, C.e > -1 && (I = 1 / I), new U(v ? 1 / I : I);
|
|
941
941
|
Xe && (I = o(Xe / c + 2));
|
|
942
942
|
}
|
|
943
943
|
for (y ? (g = new U(0.5), v && (l.s = 1), S = D(l)) : (w = Math.abs(+Le(l)), S = w % 2), A = new U(Y); ; ) {
|
|
944
944
|
if (S) {
|
|
945
|
-
if (A = A.times(
|
|
945
|
+
if (A = A.times(C), !A.c) break;
|
|
946
946
|
I ? A.c.length > I && (A.c.length = I) : k && (A = A.mod(f));
|
|
947
947
|
}
|
|
948
948
|
if (w) {
|
|
@@ -954,7 +954,7 @@ function tn() {
|
|
|
954
954
|
if (w = +Le(l), w === 0) break;
|
|
955
955
|
S = w % 2;
|
|
956
956
|
}
|
|
957
|
-
|
|
957
|
+
C = C.times(C), I ? C.c && C.c.length > I && (C.c.length = I) : k && (C = C.mod(f));
|
|
958
958
|
}
|
|
959
959
|
return k ? A : (v && (A = Y.div(A)), f ? A.mod(f) : I ? Se(A, Xe, ie, j) : A);
|
|
960
960
|
}, R.integerValue = function(l) {
|
|
@@ -987,48 +987,48 @@ function tn() {
|
|
|
987
987
|
if (l = new U(l, f), f = l.s, !y || !f) return new U(NaN);
|
|
988
988
|
if (y != f)
|
|
989
989
|
return l.s = -f, j.plus(l);
|
|
990
|
-
var v = j.e / c, S = l.e / c, A = j.c,
|
|
990
|
+
var v = j.e / c, S = l.e / c, A = j.c, C = l.c;
|
|
991
991
|
if (!v || !S) {
|
|
992
|
-
if (!A || !
|
|
993
|
-
if (!A[0] || !
|
|
994
|
-
return
|
|
992
|
+
if (!A || !C) return A ? (l.s = -f, l) : new U(C ? j : NaN);
|
|
993
|
+
if (!A[0] || !C[0])
|
|
994
|
+
return C[0] ? (l.s = -f, l) : new U(A[0] ? j : (
|
|
995
995
|
// IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity
|
|
996
996
|
ie == 3 ? -0 : 0
|
|
997
997
|
));
|
|
998
998
|
}
|
|
999
999
|
if (v = Z(v), S = Z(S), A = A.slice(), y = v - S) {
|
|
1000
|
-
for ((I = y < 0) ? (y = -y, w = A) : (S = v, w =
|
|
1000
|
+
for ((I = y < 0) ? (y = -y, w = A) : (S = v, w = C), w.reverse(), f = y; f--; w.push(0)) ;
|
|
1001
1001
|
w.reverse();
|
|
1002
1002
|
} else
|
|
1003
|
-
for (k = (I = (y = A.length) < (f =
|
|
1004
|
-
if (A[f] !=
|
|
1005
|
-
I = A[f] <
|
|
1003
|
+
for (k = (I = (y = A.length) < (f = C.length)) ? y : f, y = f = 0; f < k; f++)
|
|
1004
|
+
if (A[f] != C[f]) {
|
|
1005
|
+
I = A[f] < C[f];
|
|
1006
1006
|
break;
|
|
1007
1007
|
}
|
|
1008
|
-
if (I && (w = A, A =
|
|
1008
|
+
if (I && (w = A, A = C, C = w, l.s = -l.s), f = (k = C.length) - (g = A.length), f > 0) for (; f--; A[g++] = 0) ;
|
|
1009
1009
|
for (f = d - 1; k > y; ) {
|
|
1010
|
-
if (A[--k] <
|
|
1010
|
+
if (A[--k] < C[k]) {
|
|
1011
1011
|
for (g = k; g && !A[--g]; A[g] = f) ;
|
|
1012
1012
|
--A[g], A[k] += d;
|
|
1013
1013
|
}
|
|
1014
|
-
A[k] -=
|
|
1014
|
+
A[k] -= C[k];
|
|
1015
1015
|
}
|
|
1016
1016
|
for (; A[0] == 0; A.splice(0, 1), --S) ;
|
|
1017
|
-
return A[0] ?
|
|
1017
|
+
return A[0] ? Xt(l, A, S) : (l.s = ie == 3 ? -1 : 1, l.c = [l.e = 0], l);
|
|
1018
1018
|
}, R.modulo = R.mod = function(l, f) {
|
|
1019
1019
|
var g, k, w = this;
|
|
1020
|
-
return l = new U(l, f), !w.c || !l.s || l.c && !l.c[0] ? new U(NaN) : !l.c || w.c && !w.c[0] ? new U(w) : (
|
|
1020
|
+
return l = new U(l, f), !w.c || !l.s || l.c && !l.c[0] ? new U(NaN) : !l.c || w.c && !w.c[0] ? new U(w) : (ct == 9 ? (k = l.s, l.s = 1, g = L(w, l, 0, 3), l.s = k, g.s *= k) : g = L(w, l, 0, ct), l = w.minus(g.times(l)), !l.c[0] && ct == 1 && (l.s = w.s), l);
|
|
1021
1021
|
}, R.multipliedBy = R.times = function(l, f) {
|
|
1022
|
-
var g, k, w, I, j, y, v, S, A,
|
|
1022
|
+
var g, k, w, I, j, y, v, S, A, C, B, X, ne, ue, ge, ee = this, re = ee.c, be = (l = new U(l, f)).c;
|
|
1023
1023
|
if (!re || !be || !re[0] || !be[0])
|
|
1024
1024
|
return !ee.s || !l.s || re && !re[0] && !be || be && !be[0] && !re ? l.c = l.e = l.s = null : (l.s *= ee.s, !re || !be ? l.c = l.e = null : (l.c = [0], l.e = 0)), l;
|
|
1025
|
-
for (k = Z(ee.e / c) + Z(l.e / c), l.s *= ee.s, v = re.length,
|
|
1026
|
-
for (ue = d, ge = m, w =
|
|
1025
|
+
for (k = Z(ee.e / c) + Z(l.e / c), l.s *= ee.s, v = re.length, C = be.length, v < C && (ne = re, re = be, be = ne, w = v, v = C, C = w), w = v + C, ne = []; w--; ne.push(0)) ;
|
|
1026
|
+
for (ue = d, ge = m, w = C; --w >= 0; ) {
|
|
1027
1027
|
for (g = 0, B = be[w] % ge, X = be[w] / ge | 0, j = v, I = w + j; I > w; )
|
|
1028
1028
|
S = re[--j] % ge, A = re[j] / ge | 0, y = X * S + A * B, S = B * S + y % ge * ge + ne[I] + g, g = (S / ue | 0) + (y / ge | 0) + X * A, ne[I--] = S % ue;
|
|
1029
1029
|
ne[I] = g;
|
|
1030
1030
|
}
|
|
1031
|
-
return g ? ++k : ne.splice(0, 1),
|
|
1031
|
+
return g ? ++k : ne.splice(0, 1), Xt(l, ne, k);
|
|
1032
1032
|
}, R.negated = function() {
|
|
1033
1033
|
var l = new U(this);
|
|
1034
1034
|
return l.s = -l.s || null, l;
|
|
@@ -1048,7 +1048,7 @@ function tn() {
|
|
|
1048
1048
|
}
|
|
1049
1049
|
for (w = y.length, f = v.length, w - f < 0 && (g = v, v = y, y = g, f = w), w = 0; f; )
|
|
1050
1050
|
w = (y[--f] = y[f] + v[f] + w) / d | 0, y[f] = d === y[f] ? 0 : y[f] % d;
|
|
1051
|
-
return w && (y = [w].concat(y), ++j),
|
|
1051
|
+
return w && (y = [w].concat(y), ++j), Xt(l, y, j);
|
|
1052
1052
|
}, R.precision = R.sd = function(l, f) {
|
|
1053
1053
|
var g, k, w, I = this;
|
|
1054
1054
|
if (l != null && l !== !!l)
|
|
@@ -1081,44 +1081,44 @@ function tn() {
|
|
|
1081
1081
|
}
|
|
1082
1082
|
return Se(g, g.e + Q + 1, ie, l);
|
|
1083
1083
|
}, R.toExponential = function(l, f) {
|
|
1084
|
-
return l != null && (_(l, 0, $), l++),
|
|
1084
|
+
return l != null && (_(l, 0, $), l++), Bt(this, l, f, 1);
|
|
1085
1085
|
}, R.toFixed = function(l, f) {
|
|
1086
|
-
return l != null && (_(l, 0, $), l = l + this.e + 1),
|
|
1086
|
+
return l != null && (_(l, 0, $), l = l + this.e + 1), Bt(this, l, f);
|
|
1087
1087
|
}, R.toFormat = function(l, f, g) {
|
|
1088
1088
|
var k, w = this;
|
|
1089
1089
|
if (g == null)
|
|
1090
|
-
l != null && f && typeof f == "object" ? (g = f, f = null) : l && typeof l == "object" ? (g = l, l = f = null) : g =
|
|
1090
|
+
l != null && f && typeof f == "object" ? (g = f, f = null) : l && typeof l == "object" ? (g = l, l = f = null) : g = Dt;
|
|
1091
1091
|
else if (typeof g != "object")
|
|
1092
1092
|
throw Error(s + "Argument not an object: " + g);
|
|
1093
1093
|
if (k = w.toFixed(l, f), w.c) {
|
|
1094
|
-
var I, j = k.split("."), y = +g.groupSize, v = +g.secondaryGroupSize, S = g.groupSeparator || "", A = j[0],
|
|
1094
|
+
var I, j = k.split("."), y = +g.groupSize, v = +g.secondaryGroupSize, S = g.groupSeparator || "", A = j[0], C = j[1], B = w.s < 0, X = B ? A.slice(1) : A, ne = X.length;
|
|
1095
1095
|
if (v && (I = y, y = v, v = I, ne -= I), y > 0 && ne > 0) {
|
|
1096
1096
|
for (I = ne % y || y, A = X.substr(0, I); I < ne; I += y) A += S + X.substr(I, y);
|
|
1097
1097
|
v > 0 && (A += S + X.slice(I)), B && (A = "-" + A);
|
|
1098
1098
|
}
|
|
1099
|
-
k =
|
|
1099
|
+
k = C ? A + (g.decimalSeparator || "") + ((v = +g.fractionGroupSize) ? C.replace(
|
|
1100
1100
|
new RegExp("\\d{" + v + "}\\B", "g"),
|
|
1101
1101
|
"$&" + (g.fractionGroupSeparator || "")
|
|
1102
|
-
) :
|
|
1102
|
+
) : C) : A;
|
|
1103
1103
|
}
|
|
1104
1104
|
return (g.prefix || "") + k + (g.suffix || "");
|
|
1105
1105
|
}, R.toFraction = function(l) {
|
|
1106
|
-
var f, g, k, w, I, j, y, v, S, A,
|
|
1106
|
+
var f, g, k, w, I, j, y, v, S, A, C, B, X = this, ne = X.c;
|
|
1107
1107
|
if (l != null && (y = new U(l), !y.isInteger() && (y.c || y.s !== 1) || y.lt(Y)))
|
|
1108
1108
|
throw Error(s + "Argument " + (y.isInteger() ? "out of range: " : "not an integer: ") + Le(y));
|
|
1109
1109
|
if (!ne) return new U(X);
|
|
1110
1110
|
for (f = new U(Y), S = g = new U(Y), k = v = new U(Y), B = W(ne), I = f.e = B.length - X.e - 1, f.c[0] = u[(j = I % c) < 0 ? c + j : j], l = !l || y.comparedTo(f) > 0 ? I > 0 ? f : S : y, j = ke, ke = 1 / 0, y = new U(B), v.c[0] = 0; A = L(y, f, 0, 1), w = g.plus(A.times(k)), w.comparedTo(l) != 1; )
|
|
1111
1111
|
g = k, k = w, S = v.plus(A.times(w = S)), v = w, f = y.minus(A.times(w = f)), y = w;
|
|
1112
|
-
return w = L(l.minus(g), k, 0, 1), v = v.plus(w.times(S)), g = g.plus(w.times(k)), v.s = S.s = X.s, I = I * 2,
|
|
1112
|
+
return w = L(l.minus(g), k, 0, 1), v = v.plus(w.times(S)), g = g.plus(w.times(k)), v.s = S.s = X.s, I = I * 2, C = L(S, k, I, ie).minus(X).abs().comparedTo(
|
|
1113
1113
|
L(v, g, I, ie).minus(X).abs()
|
|
1114
|
-
) < 1 ? [S, k] : [v, g], ke = j,
|
|
1114
|
+
) < 1 ? [S, k] : [v, g], ke = j, C;
|
|
1115
1115
|
}, R.toNumber = function() {
|
|
1116
1116
|
return +Le(this);
|
|
1117
1117
|
}, R.toPrecision = function(l, f) {
|
|
1118
|
-
return l != null && _(l, 1, $),
|
|
1118
|
+
return l != null && _(l, 1, $), Bt(this, l, f, 2);
|
|
1119
1119
|
}, R.toString = function(l) {
|
|
1120
1120
|
var f, g = this, k = g.s, w = g.e;
|
|
1121
|
-
return w === null ? k ? (f = "Infinity", k < 0 && (f = "-" + f)) : f = "NaN" : (l == null ? f = w <= ce || w >= le ? J(W(g.c), w) : ae(W(g.c), w, "0") : l === 10 &&
|
|
1121
|
+
return w === null ? k ? (f = "Infinity", k < 0 && (f = "-" + f)) : f = "NaN" : (l == null ? f = w <= ce || w >= le ? J(W(g.c), w) : ae(W(g.c), w, "0") : l === 10 && Ht ? (g = Se(new U(g), Q + w + 1, ie), f = ae(W(g.c), g.e, "0")) : (_(l, 2, Je.length, "Base"), f = te(ae(W(g.c), w, "0"), 10, l, k, !0)), k < 0 && g.c[0] && (f = "-" + f)), f;
|
|
1122
1122
|
}, R.valueOf = R.toJSON = function() {
|
|
1123
1123
|
return Le(this);
|
|
1124
1124
|
}, R._isBigNumber = !0, H != null && U.set(H), U;
|
|
@@ -1168,13 +1168,13 @@ function tn() {
|
|
|
1168
1168
|
return H;
|
|
1169
1169
|
}
|
|
1170
1170
|
n = E(), n.default = n.BigNumber = n, t.exports ? t.exports = n : (e || (e = typeof self < "u" && self ? self : window), e.BigNumber = n);
|
|
1171
|
-
})(
|
|
1172
|
-
})(
|
|
1171
|
+
})(qn);
|
|
1172
|
+
})(jt)), jt.exports;
|
|
1173
1173
|
}
|
|
1174
|
-
var
|
|
1175
|
-
function
|
|
1176
|
-
return
|
|
1177
|
-
var e =
|
|
1174
|
+
var Ni;
|
|
1175
|
+
function _n() {
|
|
1176
|
+
return Ni || (Ni = 1, (function(t) {
|
|
1177
|
+
var e = nn(), n = t.exports;
|
|
1178
1178
|
(function() {
|
|
1179
1179
|
var i = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, o, a, s = {
|
|
1180
1180
|
// table of character substitutions
|
|
@@ -1241,12 +1241,12 @@ function qn() {
|
|
|
1241
1241
|
return c("", { "": p });
|
|
1242
1242
|
});
|
|
1243
1243
|
})();
|
|
1244
|
-
})(
|
|
1244
|
+
})(Kt)), Kt.exports;
|
|
1245
1245
|
}
|
|
1246
|
-
var
|
|
1247
|
-
function
|
|
1248
|
-
if (
|
|
1249
|
-
|
|
1246
|
+
var Yt, Di;
|
|
1247
|
+
function Ln() {
|
|
1248
|
+
if (Di) return Yt;
|
|
1249
|
+
Di = 1;
|
|
1250
1250
|
var t = null;
|
|
1251
1251
|
const e = /(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/, n = /(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;
|
|
1252
1252
|
var i = function(o) {
|
|
@@ -1310,7 +1310,7 @@ function _n() {
|
|
|
1310
1310
|
if (D = +J, !isFinite(D))
|
|
1311
1311
|
p("Bad number");
|
|
1312
1312
|
else
|
|
1313
|
-
return t == null && (t =
|
|
1313
|
+
return t == null && (t = nn()), J.length > 15 ? a.storeAsString ? J : a.useNativeBigInt ? BigInt(J) : new t(J) : a.alwaysParseAsBig ? a.useNativeBigInt ? BigInt(D) : new t(D) : D;
|
|
1314
1314
|
}, $ = function() {
|
|
1315
1315
|
var D, J, ae = "", H;
|
|
1316
1316
|
if (r === '"')
|
|
@@ -1391,22 +1391,22 @@ function _n() {
|
|
|
1391
1391
|
})({ "": ae }, "") : ae;
|
|
1392
1392
|
};
|
|
1393
1393
|
};
|
|
1394
|
-
return
|
|
1394
|
+
return Yt = i, Yt;
|
|
1395
1395
|
}
|
|
1396
|
-
var
|
|
1397
|
-
function
|
|
1398
|
-
if (
|
|
1399
|
-
|
|
1400
|
-
var t =
|
|
1401
|
-
return
|
|
1396
|
+
var Hi;
|
|
1397
|
+
function Nn() {
|
|
1398
|
+
if (Hi) return ut.exports;
|
|
1399
|
+
Hi = 1;
|
|
1400
|
+
var t = _n().stringify, e = Ln();
|
|
1401
|
+
return ut.exports = function(n) {
|
|
1402
1402
|
return {
|
|
1403
1403
|
parse: e(n),
|
|
1404
1404
|
stringify: t
|
|
1405
1405
|
};
|
|
1406
|
-
},
|
|
1406
|
+
}, ut.exports.parse = e(), ut.exports.stringify = t, ut.exports;
|
|
1407
1407
|
}
|
|
1408
|
-
var
|
|
1409
|
-
const
|
|
1408
|
+
var Dn = Nn();
|
|
1409
|
+
const Ii = /* @__PURE__ */ En(Dn);
|
|
1410
1410
|
function Ae(t, e, n, i) {
|
|
1411
1411
|
function o(a) {
|
|
1412
1412
|
return a instanceof n ? a : new n(function(s) {
|
|
@@ -1434,12 +1434,12 @@ function Ae(t, e, n, i) {
|
|
|
1434
1434
|
c((i = i.apply(t, e || [])).next());
|
|
1435
1435
|
});
|
|
1436
1436
|
}
|
|
1437
|
-
function
|
|
1437
|
+
function Hn(t, e, n, i) {
|
|
1438
1438
|
if (typeof e == "function" ? t !== e || !i : !e.has(t)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
1439
1439
|
return n === "m" ? i : n === "a" ? i.call(t) : i ? i.value : e.get(t);
|
|
1440
1440
|
}
|
|
1441
|
-
var
|
|
1442
|
-
class
|
|
1441
|
+
var Pt, on;
|
|
1442
|
+
class Ge {
|
|
1443
1443
|
/**
|
|
1444
1444
|
* Uses the provided ID as the ID for the resource.
|
|
1445
1445
|
*
|
|
@@ -1456,7 +1456,7 @@ class We {
|
|
|
1456
1456
|
* @returns {string}
|
|
1457
1457
|
*/
|
|
1458
1458
|
static unique(e = 7) {
|
|
1459
|
-
const n =
|
|
1459
|
+
const n = Hn(Pt, Pt, "m", on).call(Pt);
|
|
1460
1460
|
let i = "";
|
|
1461
1461
|
for (let o = 0; o < e; o++) {
|
|
1462
1462
|
const a = Math.floor(Math.random() * 16).toString(16);
|
|
@@ -1465,11 +1465,11 @@ class We {
|
|
|
1465
1465
|
return n + i;
|
|
1466
1466
|
}
|
|
1467
1467
|
}
|
|
1468
|
-
|
|
1468
|
+
Pt = Ge, on = function() {
|
|
1469
1469
|
const e = /* @__PURE__ */ new Date(), n = Math.floor(e.getTime() / 1e3), i = e.getMilliseconds();
|
|
1470
1470
|
return n.toString(16) + i.toString(16).padStart(5, "0");
|
|
1471
1471
|
};
|
|
1472
|
-
const
|
|
1472
|
+
const _t = Ii({ useNativeBigInt: !0 });
|
|
1473
1473
|
class P {
|
|
1474
1474
|
/**
|
|
1475
1475
|
* Constructor for Query class.
|
|
@@ -1487,7 +1487,7 @@ class P {
|
|
|
1487
1487
|
* @returns {string}
|
|
1488
1488
|
*/
|
|
1489
1489
|
toString() {
|
|
1490
|
-
return
|
|
1490
|
+
return _t.stringify({
|
|
1491
1491
|
method: this.method,
|
|
1492
1492
|
attribute: this.attribute,
|
|
1493
1493
|
values: this.values
|
|
@@ -1537,9 +1537,9 @@ P.createdBetween = (t, e) => P.between("$createdAt", t, e);
|
|
|
1537
1537
|
P.updatedBefore = (t) => P.lessThan("$updatedAt", t);
|
|
1538
1538
|
P.updatedAfter = (t) => P.greaterThan("$updatedAt", t);
|
|
1539
1539
|
P.updatedBetween = (t, e) => P.between("$updatedAt", t, e);
|
|
1540
|
-
P.or = (t) => new P("or", void 0, t.map((e) =>
|
|
1541
|
-
P.and = (t) => new P("and", void 0, t.map((e) =>
|
|
1542
|
-
P.elemMatch = (t, e) => new P("elemMatch", t, e.map((n) =>
|
|
1540
|
+
P.or = (t) => new P("or", void 0, t.map((e) => _t.parse(e))).toString();
|
|
1541
|
+
P.and = (t) => new P("and", void 0, t.map((e) => _t.parse(e))).toString();
|
|
1542
|
+
P.elemMatch = (t, e) => new P("elemMatch", t, e.map((n) => _t.parse(n))).toString();
|
|
1543
1543
|
P.distanceEqual = (t, e, n, i = !0) => new P("distanceEqual", t, [
|
|
1544
1544
|
[e, n, i]
|
|
1545
1545
|
]).toString();
|
|
@@ -1569,23 +1569,23 @@ P.overlaps = (t, e) => new P("overlaps", t, [e]).toString();
|
|
|
1569
1569
|
P.notOverlaps = (t, e) => new P("notOverlaps", t, [e]).toString();
|
|
1570
1570
|
P.touches = (t, e) => new P("touches", t, [e]).toString();
|
|
1571
1571
|
P.notTouches = (t, e) => new P("notTouches", t, [e]).toString();
|
|
1572
|
-
const
|
|
1573
|
-
function
|
|
1572
|
+
const Bn = Ii({ storeAsString: !1 }), Xn = Ii({ useNativeBigInt: !0 }), Vn = BigInt(Number.MAX_SAFE_INTEGER), Wn = BigInt(Number.MIN_SAFE_INTEGER), Gn = BigInt("9223372036854775807"), Kn = BigInt("-9223372036854775808");
|
|
1573
|
+
function Yn(t) {
|
|
1574
1574
|
return t !== null && typeof t == "object" && t._isBigNumber === !0 && typeof t.isInteger == "function" && typeof t.toFixed == "function" && typeof t.toNumber == "function";
|
|
1575
1575
|
}
|
|
1576
|
-
function
|
|
1577
|
-
if (
|
|
1576
|
+
function Jn(t, e) {
|
|
1577
|
+
if (Yn(e)) {
|
|
1578
1578
|
if (e.isInteger()) {
|
|
1579
1579
|
const n = e.toFixed(), i = BigInt(n);
|
|
1580
|
-
return i >=
|
|
1580
|
+
return i >= Wn && i <= Vn ? Number(n) : i >= Kn && i <= Gn ? i : e.toNumber();
|
|
1581
1581
|
}
|
|
1582
1582
|
return e.toNumber();
|
|
1583
1583
|
}
|
|
1584
1584
|
return e;
|
|
1585
1585
|
}
|
|
1586
1586
|
const ve = {
|
|
1587
|
-
parse: (t) =>
|
|
1588
|
-
stringify:
|
|
1587
|
+
parse: (t) => Bn.parse(t, Jn),
|
|
1588
|
+
stringify: Xn.stringify
|
|
1589
1589
|
};
|
|
1590
1590
|
class h extends Error {
|
|
1591
1591
|
/**
|
|
@@ -1955,7 +1955,7 @@ class xe {
|
|
|
1955
1955
|
let r = "";
|
|
1956
1956
|
const d = this.realtime.subscriptions.size + 1;
|
|
1957
1957
|
for (let c = 0; c < d; c++) {
|
|
1958
|
-
const p =
|
|
1958
|
+
const p = Ge.unique();
|
|
1959
1959
|
if (!this.realtime.subscriptions.has(p)) {
|
|
1960
1960
|
r = p;
|
|
1961
1961
|
break;
|
|
@@ -2136,7 +2136,7 @@ class we {
|
|
|
2136
2136
|
}
|
|
2137
2137
|
}
|
|
2138
2138
|
we.CHUNK_SIZE = 5 * 1024 * 1024;
|
|
2139
|
-
class
|
|
2139
|
+
class Jt {
|
|
2140
2140
|
constructor(e) {
|
|
2141
2141
|
this.client = e;
|
|
2142
2142
|
}
|
|
@@ -3228,7 +3228,7 @@ class Yt {
|
|
|
3228
3228
|
return this.client.call("put", d, c, r);
|
|
3229
3229
|
}
|
|
3230
3230
|
}
|
|
3231
|
-
class
|
|
3231
|
+
class an {
|
|
3232
3232
|
constructor(e) {
|
|
3233
3233
|
this.client = e;
|
|
3234
3234
|
}
|
|
@@ -3414,7 +3414,7 @@ class on {
|
|
|
3414
3414
|
return R.toString();
|
|
3415
3415
|
}
|
|
3416
3416
|
}
|
|
3417
|
-
class
|
|
3417
|
+
class Zn {
|
|
3418
3418
|
constructor(e) {
|
|
3419
3419
|
this.client = e;
|
|
3420
3420
|
}
|
|
@@ -3719,7 +3719,7 @@ class Jn {
|
|
|
3719
3719
|
return this.client.call("patch", $, E, m);
|
|
3720
3720
|
}
|
|
3721
3721
|
}
|
|
3722
|
-
class
|
|
3722
|
+
class Qn {
|
|
3723
3723
|
constructor(e) {
|
|
3724
3724
|
this.client = e;
|
|
3725
3725
|
}
|
|
@@ -4048,7 +4048,7 @@ class Zn {
|
|
|
4048
4048
|
return this.client.call("patch", $, E, m);
|
|
4049
4049
|
}
|
|
4050
4050
|
}
|
|
4051
|
-
class
|
|
4051
|
+
class Tn {
|
|
4052
4052
|
constructor(e) {
|
|
4053
4053
|
this.client = e;
|
|
4054
4054
|
}
|
|
@@ -4111,7 +4111,7 @@ class Qn {
|
|
|
4111
4111
|
return this.client.call("get", d, c, r);
|
|
4112
4112
|
}
|
|
4113
4113
|
}
|
|
4114
|
-
class
|
|
4114
|
+
class zn {
|
|
4115
4115
|
constructor(e) {
|
|
4116
4116
|
this.client = e;
|
|
4117
4117
|
}
|
|
@@ -4152,7 +4152,7 @@ class Tn {
|
|
|
4152
4152
|
return this.client.call("post", s, r, a);
|
|
4153
4153
|
}
|
|
4154
4154
|
}
|
|
4155
|
-
class
|
|
4155
|
+
class On {
|
|
4156
4156
|
constructor(e) {
|
|
4157
4157
|
this.client = e;
|
|
4158
4158
|
}
|
|
@@ -4263,7 +4263,7 @@ class zn {
|
|
|
4263
4263
|
return this.client.call("get", i, o, n);
|
|
4264
4264
|
}
|
|
4265
4265
|
}
|
|
4266
|
-
class
|
|
4266
|
+
class Fn {
|
|
4267
4267
|
constructor(e) {
|
|
4268
4268
|
this.client = e;
|
|
4269
4269
|
}
|
|
@@ -4308,7 +4308,7 @@ class On {
|
|
|
4308
4308
|
return this.client.call("delete", d, c, r);
|
|
4309
4309
|
}
|
|
4310
4310
|
}
|
|
4311
|
-
class
|
|
4311
|
+
class eo {
|
|
4312
4312
|
constructor(e) {
|
|
4313
4313
|
this.client = e;
|
|
4314
4314
|
}
|
|
@@ -4392,7 +4392,7 @@ class Fn {
|
|
|
4392
4392
|
return this.client.call("delete", s, r, a);
|
|
4393
4393
|
}
|
|
4394
4394
|
}
|
|
4395
|
-
class
|
|
4395
|
+
class to {
|
|
4396
4396
|
constructor(e) {
|
|
4397
4397
|
this.client = e;
|
|
4398
4398
|
}
|
|
@@ -4485,7 +4485,7 @@ class eo {
|
|
|
4485
4485
|
return this.client.call("delete", s, r, a);
|
|
4486
4486
|
}
|
|
4487
4487
|
}
|
|
4488
|
-
class
|
|
4488
|
+
class io {
|
|
4489
4489
|
constructor(e) {
|
|
4490
4490
|
this.client = e;
|
|
4491
4491
|
}
|
|
@@ -4661,7 +4661,7 @@ class to {
|
|
|
4661
4661
|
return c.toString();
|
|
4662
4662
|
}
|
|
4663
4663
|
}
|
|
4664
|
-
class
|
|
4664
|
+
class no {
|
|
4665
4665
|
constructor(e) {
|
|
4666
4666
|
this.client = e;
|
|
4667
4667
|
}
|
|
@@ -4966,7 +4966,7 @@ class io {
|
|
|
4966
4966
|
return this.client.call("patch", $, E, m);
|
|
4967
4967
|
}
|
|
4968
4968
|
}
|
|
4969
|
-
class
|
|
4969
|
+
class sn {
|
|
4970
4970
|
constructor(e) {
|
|
4971
4971
|
this.client = e;
|
|
4972
4972
|
}
|
|
@@ -5311,7 +5311,7 @@ class an {
|
|
|
5311
5311
|
return this.client.call("put", d, c, r);
|
|
5312
5312
|
}
|
|
5313
5313
|
}
|
|
5314
|
-
class
|
|
5314
|
+
class oo {
|
|
5315
5315
|
constructor(e) {
|
|
5316
5316
|
this.client = e;
|
|
5317
5317
|
}
|
|
@@ -5582,11 +5582,11 @@ class no {
|
|
|
5582
5582
|
return this.client.call("delete", p, u, c);
|
|
5583
5583
|
}
|
|
5584
5584
|
}
|
|
5585
|
-
var
|
|
5585
|
+
var Ut;
|
|
5586
5586
|
(function(t) {
|
|
5587
5587
|
t[t.NORMAL_CLOSURE = 1e3] = "NORMAL_CLOSURE", t[t.POLICY_VIOLATION = 1008] = "POLICY_VIOLATION", t[t.UNKNOWN_ERROR = -1] = "UNKNOWN_ERROR";
|
|
5588
|
-
})(
|
|
5589
|
-
class
|
|
5588
|
+
})(Ut || (Ut = {}));
|
|
5589
|
+
class ao {
|
|
5590
5590
|
constructor(e) {
|
|
5591
5591
|
this.TYPE_ERROR = "error", this.TYPE_EVENT = "event", this.TYPE_PONG = "pong", this.TYPE_CONNECTED = "connected", this.DEBOUNCE_MS = 1, this.HEARTBEAT_INTERVAL = 2e4, this.activeSubscriptions = /* @__PURE__ */ new Map(), this.pendingSubscribes = /* @__PURE__ */ new Map(), this.appConnected = !1, this.subCallDepth = 0, this.reconnectAttempts = 0, this.connectionId = 0, this.reconnect = !0, this.onErrorCallbacks = [], this.onCloseCallbacks = [], this.onOpenCallbacks = [], this.client = e;
|
|
5592
5592
|
}
|
|
@@ -5674,7 +5674,7 @@ class oo {
|
|
|
5674
5674
|
}), p.addEventListener("close", (u) => Ae(this, void 0, void 0, function* () {
|
|
5675
5675
|
if (c !== this.connectionId || p !== this.socket)
|
|
5676
5676
|
return;
|
|
5677
|
-
if (this.appConnected = !1, this.stopHeartbeat(), this.onCloseCallbacks.forEach(($) => $()), !this.reconnect || u.code ===
|
|
5677
|
+
if (this.appConnected = !1, this.stopHeartbeat(), this.onCloseCallbacks.forEach(($) => $()), !this.reconnect || u.code === Ut.POLICY_VIOLATION) {
|
|
5678
5678
|
this.reconnect = !0;
|
|
5679
5679
|
return;
|
|
5680
5680
|
}
|
|
@@ -5708,7 +5708,7 @@ class oo {
|
|
|
5708
5708
|
}
|
|
5709
5709
|
this.socket.readyState === WebSocket.OPEN || this.socket.readyState === WebSocket.CONNECTING ? (this.socket.addEventListener("close", () => {
|
|
5710
5710
|
e();
|
|
5711
|
-
}, { once: !0 }), this.socket.close(
|
|
5711
|
+
}, { once: !0 }), this.socket.close(Ut.NORMAL_CLOSURE)) : e();
|
|
5712
5712
|
});
|
|
5713
5713
|
});
|
|
5714
5714
|
}
|
|
@@ -5728,7 +5728,7 @@ class oo {
|
|
|
5728
5728
|
generateUniqueSubscriptionId() {
|
|
5729
5729
|
const e = this.activeSubscriptions.size + 1;
|
|
5730
5730
|
for (let n = 0; n < e; n++) {
|
|
5731
|
-
const i =
|
|
5731
|
+
const i = Ge.unique();
|
|
5732
5732
|
if (!this.activeSubscriptions.has(i))
|
|
5733
5733
|
return i;
|
|
5734
5734
|
}
|
|
@@ -5914,14 +5914,14 @@ class oo {
|
|
|
5914
5914
|
}
|
|
5915
5915
|
}
|
|
5916
5916
|
}
|
|
5917
|
-
class
|
|
5917
|
+
class rt {
|
|
5918
5918
|
}
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
class
|
|
5919
|
+
rt.read = (t) => `read("${t}")`;
|
|
5920
|
+
rt.write = (t) => `write("${t}")`;
|
|
5921
|
+
rt.create = (t) => `create("${t}")`;
|
|
5922
|
+
rt.update = (t) => `update("${t}")`;
|
|
5923
|
+
rt.delete = (t) => `delete("${t}")`;
|
|
5924
|
+
class so {
|
|
5925
5925
|
/**
|
|
5926
5926
|
* Grants access to anyone.
|
|
5927
5927
|
*
|
|
@@ -6109,10 +6109,10 @@ class Pe {
|
|
|
6109
6109
|
return "presences";
|
|
6110
6110
|
}
|
|
6111
6111
|
}
|
|
6112
|
-
var
|
|
6112
|
+
var Zt;
|
|
6113
6113
|
(function(t) {
|
|
6114
6114
|
t.Equal = "equal", t.NotEqual = "notEqual", t.GreaterThan = "greaterThan", t.GreaterThanEqual = "greaterThanEqual", t.LessThan = "lessThan", t.LessThanEqual = "lessThanEqual", t.Contains = "contains", t.IsNull = "isNull", t.IsNotNull = "isNotNull";
|
|
6115
|
-
})(
|
|
6115
|
+
})(Zt || (Zt = {}));
|
|
6116
6116
|
class T {
|
|
6117
6117
|
/**
|
|
6118
6118
|
* Constructor for Operator class.
|
|
@@ -6204,140 +6204,140 @@ T.toggle = () => new T("toggle", []).toString();
|
|
|
6204
6204
|
T.dateAddDays = (t) => new T("dateAddDays", [t]).toString();
|
|
6205
6205
|
T.dateSubDays = (t) => new T("dateSubDays", [t]).toString();
|
|
6206
6206
|
T.dateSetNow = () => new T("dateSetNow", []).toString();
|
|
6207
|
-
var Zt;
|
|
6208
|
-
(function(t) {
|
|
6209
|
-
t.Totp = "totp";
|
|
6210
|
-
})(Zt || (Zt = {}));
|
|
6211
6207
|
var Qt;
|
|
6212
6208
|
(function(t) {
|
|
6213
|
-
t.
|
|
6209
|
+
t.Totp = "totp";
|
|
6214
6210
|
})(Qt || (Qt = {}));
|
|
6215
6211
|
var Tt;
|
|
6216
6212
|
(function(t) {
|
|
6217
|
-
t.
|
|
6213
|
+
t.Email = "email", t.Phone = "phone", t.Totp = "totp", t.Recoverycode = "recoverycode", t.Custom = "custom";
|
|
6218
6214
|
})(Tt || (Tt = {}));
|
|
6219
6215
|
var zt;
|
|
6220
6216
|
(function(t) {
|
|
6221
|
-
t.
|
|
6217
|
+
t.Amazon = "amazon", t.Apple = "apple", t.Appwrite = "appwrite", t.Auth0 = "auth0", t.Authentik = "authentik", t.Autodesk = "autodesk", t.Bitbucket = "bitbucket", t.Bitly = "bitly", t.Box = "box", t.Cloudflare = "cloudflare", t.Dailymotion = "dailymotion", t.Discord = "discord", t.Disqus = "disqus", t.Dropbox = "dropbox", t.Etsy = "etsy", t.Facebook = "facebook", t.Figma = "figma", t.Fusionauth = "fusionauth", t.Github = "github", t.Gitlab = "gitlab", t.Google = "google", t.Huggingface = "huggingface", t.Keycloak = "keycloak", t.Kick = "kick", t.Linkedin = "linkedin", t.Microsoft = "microsoft", t.Notion = "notion", t.Oidc = "oidc", t.Okta = "okta", t.Paypal = "paypal", t.PaypalSandbox = "paypalSandbox", t.Podio = "podio", t.Resend = "resend", t.Salesforce = "salesforce", t.Slack = "slack", t.Spotify = "spotify", t.Stripe = "stripe", t.Tradeshift = "tradeshift", t.TradeshiftBox = "tradeshiftBox", t.Twitch = "twitch", t.Wordpress = "wordpress", t.X = "x", t.Yahoo = "yahoo", t.Yammer = "yammer", t.Yandex = "yandex", t.Zoho = "zoho", t.Zoom = "zoom";
|
|
6222
6218
|
})(zt || (zt = {}));
|
|
6223
6219
|
var Ot;
|
|
6224
6220
|
(function(t) {
|
|
6225
|
-
t.
|
|
6221
|
+
t.AvantBrowser = "aa", t.AndroidWebViewBeta = "an", t.GoogleChrome = "ch", t.GoogleChromeIOS = "ci", t.GoogleChromeMobile = "cm", t.Chromium = "cr", t.MozillaFirefox = "ff", t.Safari = "sf", t.MobileSafari = "mf", t.MicrosoftEdge = "ps", t.MicrosoftEdgeIOS = "oi", t.OperaMini = "om", t.Opera = "op", t.OperaNext = "on";
|
|
6226
6222
|
})(Ot || (Ot = {}));
|
|
6227
6223
|
var Ft;
|
|
6228
6224
|
(function(t) {
|
|
6229
|
-
t.
|
|
6225
|
+
t.AmericanExpress = "amex", t.Argencard = "argencard", t.Cabal = "cabal", t.Cencosud = "cencosud", t.DinersClub = "diners", t.Discover = "discover", t.Elo = "elo", t.Hipercard = "hipercard", t.JCB = "jcb", t.Mastercard = "mastercard", t.Naranja = "naranja", t.TarjetaShopping = "targeta-shopping", t.UnionPay = "unionpay", t.Visa = "visa", t.MIR = "mir", t.Maestro = "maestro", t.Rupay = "rupay";
|
|
6230
6226
|
})(Ft || (Ft = {}));
|
|
6231
6227
|
var ei;
|
|
6232
6228
|
(function(t) {
|
|
6233
|
-
t.
|
|
6229
|
+
t.Afghanistan = "af", t.Angola = "ao", t.Albania = "al", t.Andorra = "ad", t.UnitedArabEmirates = "ae", t.Argentina = "ar", t.Armenia = "am", t.AntiguaAndBarbuda = "ag", t.Australia = "au", t.Austria = "at", t.Azerbaijan = "az", t.Burundi = "bi", t.Belgium = "be", t.Benin = "bj", t.BurkinaFaso = "bf", t.Bangladesh = "bd", t.Bulgaria = "bg", t.Bahrain = "bh", t.Bahamas = "bs", t.BosniaAndHerzegovina = "ba", t.Belarus = "by", t.Belize = "bz", t.Bolivia = "bo", t.Brazil = "br", t.Barbados = "bb", t.BruneiDarussalam = "bn", t.Bhutan = "bt", t.Botswana = "bw", t.CentralAfricanRepublic = "cf", t.Canada = "ca", t.Switzerland = "ch", t.Chile = "cl", t.China = "cn", t.CoteDIvoire = "ci", t.Cameroon = "cm", t.DemocraticRepublicOfTheCongo = "cd", t.RepublicOfTheCongo = "cg", t.Colombia = "co", t.Comoros = "km", t.CapeVerde = "cv", t.CostaRica = "cr", t.Cuba = "cu", t.Cyprus = "cy", t.CzechRepublic = "cz", t.Germany = "de", t.Djibouti = "dj", t.Dominica = "dm", t.Denmark = "dk", t.DominicanRepublic = "do", t.Algeria = "dz", t.Ecuador = "ec", t.Egypt = "eg", t.Eritrea = "er", t.Spain = "es", t.Estonia = "ee", t.Ethiopia = "et", t.Finland = "fi", t.Fiji = "fj", t.France = "fr", t.MicronesiaFederatedStatesOf = "fm", t.Gabon = "ga", t.UnitedKingdom = "gb", t.Georgia = "ge", t.Ghana = "gh", t.Guinea = "gn", t.Gambia = "gm", t.GuineaBissau = "gw", t.EquatorialGuinea = "gq", t.Greece = "gr", t.Grenada = "gd", t.Guatemala = "gt", t.Guyana = "gy", t.Honduras = "hn", t.Croatia = "hr", t.Haiti = "ht", t.Hungary = "hu", t.Indonesia = "id", t.India = "in", t.Ireland = "ie", t.IranIslamicRepublicOf = "ir", t.Iraq = "iq", t.Iceland = "is", t.Israel = "il", t.Italy = "it", t.Jamaica = "jm", t.Jordan = "jo", t.Japan = "jp", t.Kazakhstan = "kz", t.Kenya = "ke", t.Kyrgyzstan = "kg", t.Cambodia = "kh", t.Kiribati = "ki", t.SaintKittsAndNevis = "kn", t.SouthKorea = "kr", t.Kuwait = "kw", t.LaoPeopleSDemocraticRepublic = "la", t.Lebanon = "lb", t.Liberia = "lr", t.Libya = "ly", t.SaintLucia = "lc", t.Liechtenstein = "li", t.SriLanka = "lk", t.Lesotho = "ls", t.Lithuania = "lt", t.Luxembourg = "lu", t.Latvia = "lv", t.Morocco = "ma", t.Monaco = "mc", t.Moldova = "md", t.Madagascar = "mg", t.Maldives = "mv", t.Mexico = "mx", t.MarshallIslands = "mh", t.NorthMacedonia = "mk", t.Mali = "ml", t.Malta = "mt", t.Myanmar = "mm", t.Montenegro = "me", t.Mongolia = "mn", t.Mozambique = "mz", t.Mauritania = "mr", t.Mauritius = "mu", t.Malawi = "mw", t.Malaysia = "my", t.Namibia = "na", t.Niger = "ne", t.Nigeria = "ng", t.Nicaragua = "ni", t.Netherlands = "nl", t.Norway = "no", t.Nepal = "np", t.Nauru = "nr", t.NewZealand = "nz", t.Oman = "om", t.Pakistan = "pk", t.Panama = "pa", t.Peru = "pe", t.Philippines = "ph", t.Palau = "pw", t.PapuaNewGuinea = "pg", t.Poland = "pl", t.FrenchPolynesia = "pf", t.NorthKorea = "kp", t.Portugal = "pt", t.Paraguay = "py", t.Qatar = "qa", t.Romania = "ro", t.Russia = "ru", t.Rwanda = "rw", t.SaudiArabia = "sa", t.Sudan = "sd", t.Senegal = "sn", t.Singapore = "sg", t.SolomonIslands = "sb", t.SierraLeone = "sl", t.ElSalvador = "sv", t.SanMarino = "sm", t.Somalia = "so", t.Serbia = "rs", t.SouthSudan = "ss", t.SaoTomeAndPrincipe = "st", t.Suriname = "sr", t.Slovakia = "sk", t.Slovenia = "si", t.Sweden = "se", t.Eswatini = "sz", t.Seychelles = "sc", t.Syria = "sy", t.Chad = "td", t.Togo = "tg", t.Thailand = "th", t.Tajikistan = "tj", t.Turkmenistan = "tm", t.TimorLeste = "tl", t.Tonga = "to", t.TrinidadAndTobago = "tt", t.Tunisia = "tn", t.Turkey = "tr", t.Tuvalu = "tv", t.Tanzania = "tz", t.Uganda = "ug", t.Ukraine = "ua", t.Uruguay = "uy", t.UnitedStates = "us", t.Uzbekistan = "uz", t.VaticanCity = "va", t.SaintVincentAndTheGrenadines = "vc", t.Venezuela = "ve", t.Vietnam = "vn", t.Vanuatu = "vu", t.Samoa = "ws", t.Yemen = "ye", t.SouthAfrica = "za", t.Zambia = "zm", t.Zimbabwe = "zw";
|
|
6234
6230
|
})(ei || (ei = {}));
|
|
6235
6231
|
var ti;
|
|
6236
6232
|
(function(t) {
|
|
6237
|
-
t.AfricaAbidjan = "africa/abidjan", t.AfricaAccra = "africa/accra", t.AfricaAddisAbaba = "africa/addis_ababa", t.AfricaAlgiers = "africa/algiers", t.AfricaAsmara = "africa/asmara", t.AfricaBamako = "africa/bamako", t.AfricaBangui = "africa/bangui", t.AfricaBanjul = "africa/banjul", t.AfricaBissau = "africa/bissau", t.AfricaBlantyre = "africa/blantyre", t.AfricaBrazzaville = "africa/brazzaville", t.AfricaBujumbura = "africa/bujumbura", t.AfricaCairo = "africa/cairo", t.AfricaCasablanca = "africa/casablanca", t.AfricaCeuta = "africa/ceuta", t.AfricaConakry = "africa/conakry", t.AfricaDakar = "africa/dakar", t.AfricaDarEsSalaam = "africa/dar_es_salaam", t.AfricaDjibouti = "africa/djibouti", t.AfricaDouala = "africa/douala", t.AfricaElAaiun = "africa/el_aaiun", t.AfricaFreetown = "africa/freetown", t.AfricaGaborone = "africa/gaborone", t.AfricaHarare = "africa/harare", t.AfricaJohannesburg = "africa/johannesburg", t.AfricaJuba = "africa/juba", t.AfricaKampala = "africa/kampala", t.AfricaKhartoum = "africa/khartoum", t.AfricaKigali = "africa/kigali", t.AfricaKinshasa = "africa/kinshasa", t.AfricaLagos = "africa/lagos", t.AfricaLibreville = "africa/libreville", t.AfricaLome = "africa/lome", t.AfricaLuanda = "africa/luanda", t.AfricaLubumbashi = "africa/lubumbashi", t.AfricaLusaka = "africa/lusaka", t.AfricaMalabo = "africa/malabo", t.AfricaMaputo = "africa/maputo", t.AfricaMaseru = "africa/maseru", t.AfricaMbabane = "africa/mbabane", t.AfricaMogadishu = "africa/mogadishu", t.AfricaMonrovia = "africa/monrovia", t.AfricaNairobi = "africa/nairobi", t.AfricaNdjamena = "africa/ndjamena", t.AfricaNiamey = "africa/niamey", t.AfricaNouakchott = "africa/nouakchott", t.AfricaOuagadougou = "africa/ouagadougou", t.AfricaPortonovo = "africa/porto-novo", t.AfricaSaoTome = "africa/sao_tome", t.AfricaTripoli = "africa/tripoli", t.AfricaTunis = "africa/tunis", t.AfricaWindhoek = "africa/windhoek", t.AmericaAdak = "america/adak", t.AmericaAnchorage = "america/anchorage", t.AmericaAnguilla = "america/anguilla", t.AmericaAntigua = "america/antigua", t.AmericaAraguaina = "america/araguaina", t.AmericaArgentinaBuenosAires = "america/argentina/buenos_aires", t.AmericaArgentinaCatamarca = "america/argentina/catamarca", t.AmericaArgentinaCordoba = "america/argentina/cordoba", t.AmericaArgentinaJujuy = "america/argentina/jujuy", t.AmericaArgentinaLaRioja = "america/argentina/la_rioja", t.AmericaArgentinaMendoza = "america/argentina/mendoza", t.AmericaArgentinaRioGallegos = "america/argentina/rio_gallegos", t.AmericaArgentinaSalta = "america/argentina/salta", t.AmericaArgentinaSanJuan = "america/argentina/san_juan", t.AmericaArgentinaSanLuis = "america/argentina/san_luis", t.AmericaArgentinaTucuman = "america/argentina/tucuman", t.AmericaArgentinaUshuaia = "america/argentina/ushuaia", t.AmericaAruba = "america/aruba", t.AmericaAsuncion = "america/asuncion", t.AmericaAtikokan = "america/atikokan", t.AmericaBahia = "america/bahia", t.AmericaBahiaBanderas = "america/bahia_banderas", t.AmericaBarbados = "america/barbados", t.AmericaBelem = "america/belem", t.AmericaBelize = "america/belize", t.AmericaBlancsablon = "america/blanc-sablon", t.AmericaBoaVista = "america/boa_vista", t.AmericaBogota = "america/bogota", t.AmericaBoise = "america/boise", t.AmericaCambridgeBay = "america/cambridge_bay", t.AmericaCampoGrande = "america/campo_grande", t.AmericaCancun = "america/cancun", t.AmericaCaracas = "america/caracas", t.AmericaCayenne = "america/cayenne", t.AmericaCayman = "america/cayman", t.AmericaChicago = "america/chicago", t.AmericaChihuahua = "america/chihuahua", t.AmericaCiudadJuarez = "america/ciudad_juarez", t.AmericaCostaRica = "america/costa_rica", t.AmericaCoyhaique = "america/coyhaique", t.AmericaCreston = "america/creston", t.AmericaCuiaba = "america/cuiaba", t.AmericaCuracao = "america/curacao", t.AmericaDanmarkshavn = "america/danmarkshavn", t.AmericaDawson = "america/dawson", t.AmericaDawsonCreek = "america/dawson_creek", t.AmericaDenver = "america/denver", t.AmericaDetroit = "america/detroit", t.AmericaDominica = "america/dominica", t.AmericaEdmonton = "america/edmonton", t.AmericaEirunepe = "america/eirunepe", t.AmericaElSalvador = "america/el_salvador", t.AmericaFortNelson = "america/fort_nelson", t.AmericaFortaleza = "america/fortaleza", t.AmericaGlaceBay = "america/glace_bay", t.AmericaGooseBay = "america/goose_bay", t.AmericaGrandTurk = "america/grand_turk", t.AmericaGrenada = "america/grenada", t.AmericaGuadeloupe = "america/guadeloupe", t.AmericaGuatemala = "america/guatemala", t.AmericaGuayaquil = "america/guayaquil", t.AmericaGuyana = "america/guyana", t.AmericaHalifax = "america/halifax", t.AmericaHavana = "america/havana", t.AmericaHermosillo = "america/hermosillo", t.AmericaIndianaIndianapolis = "america/indiana/indianapolis", t.AmericaIndianaKnox = "america/indiana/knox", t.AmericaIndianaMarengo = "america/indiana/marengo", t.AmericaIndianaPetersburg = "america/indiana/petersburg", t.AmericaIndianaTellCity = "america/indiana/tell_city", t.AmericaIndianaVevay = "america/indiana/vevay", t.AmericaIndianaVincennes = "america/indiana/vincennes", t.AmericaIndianaWinamac = "america/indiana/winamac", t.AmericaInuvik = "america/inuvik", t.AmericaIqaluit = "america/iqaluit", t.AmericaJamaica = "america/jamaica", t.AmericaJuneau = "america/juneau", t.AmericaKentuckyLouisville = "america/kentucky/louisville", t.AmericaKentuckyMonticello = "america/kentucky/monticello", t.AmericaKralendijk = "america/kralendijk", t.AmericaLaPaz = "america/la_paz", t.AmericaLima = "america/lima", t.AmericaLosAngeles = "america/los_angeles", t.AmericaLowerPrinces = "america/lower_princes", t.AmericaMaceio = "america/maceio", t.AmericaManagua = "america/managua", t.AmericaManaus = "america/manaus", t.AmericaMarigot = "america/marigot", t.AmericaMartinique = "america/martinique", t.AmericaMatamoros = "america/matamoros", t.AmericaMazatlan = "america/mazatlan", t.AmericaMenominee = "america/menominee", t.AmericaMerida = "america/merida", t.AmericaMetlakatla = "america/metlakatla", t.AmericaMexicoCity = "america/mexico_city", t.AmericaMiquelon = "america/miquelon", t.AmericaMoncton = "america/moncton", t.AmericaMonterrey = "america/monterrey", t.AmericaMontevideo = "america/montevideo", t.AmericaMontserrat = "america/montserrat", t.AmericaNassau = "america/nassau", t.AmericaNewYork = "america/new_york", t.AmericaNome = "america/nome", t.AmericaNoronha = "america/noronha", t.AmericaNorthDakotaBeulah = "america/north_dakota/beulah", t.AmericaNorthDakotaCenter = "america/north_dakota/center", t.AmericaNorthDakotaNewSalem = "america/north_dakota/new_salem", t.AmericaNuuk = "america/nuuk", t.AmericaOjinaga = "america/ojinaga", t.AmericaPanama = "america/panama", t.AmericaParamaribo = "america/paramaribo", t.AmericaPhoenix = "america/phoenix", t.AmericaPortauprince = "america/port-au-prince", t.AmericaPortOfSpain = "america/port_of_spain", t.AmericaPortoVelho = "america/porto_velho", t.AmericaPuertoRico = "america/puerto_rico", t.AmericaPuntaArenas = "america/punta_arenas", t.AmericaRankinInlet = "america/rankin_inlet", t.AmericaRecife = "america/recife", t.AmericaRegina = "america/regina", t.AmericaResolute = "america/resolute", t.AmericaRioBranco = "america/rio_branco", t.AmericaSantarem = "america/santarem", t.AmericaSantiago = "america/santiago", t.AmericaSantoDomingo = "america/santo_domingo", t.AmericaSaoPaulo = "america/sao_paulo", t.AmericaScoresbysund = "america/scoresbysund", t.AmericaSitka = "america/sitka", t.AmericaStBarthelemy = "america/st_barthelemy", t.AmericaStJohns = "america/st_johns", t.AmericaStKitts = "america/st_kitts", t.AmericaStLucia = "america/st_lucia", t.AmericaStThomas = "america/st_thomas", t.AmericaStVincent = "america/st_vincent", t.AmericaSwiftCurrent = "america/swift_current", t.AmericaTegucigalpa = "america/tegucigalpa", t.AmericaThule = "america/thule", t.AmericaTijuana = "america/tijuana", t.AmericaToronto = "america/toronto", t.AmericaTortola = "america/tortola", t.AmericaVancouver = "america/vancouver", t.AmericaWhitehorse = "america/whitehorse", t.AmericaWinnipeg = "america/winnipeg", t.AmericaYakutat = "america/yakutat", t.AntarcticaCasey = "antarctica/casey", t.AntarcticaDavis = "antarctica/davis", t.AntarcticaDumontdurville = "antarctica/dumontdurville", t.AntarcticaMacquarie = "antarctica/macquarie", t.AntarcticaMawson = "antarctica/mawson", t.AntarcticaMcmurdo = "antarctica/mcmurdo", t.AntarcticaPalmer = "antarctica/palmer", t.AntarcticaRothera = "antarctica/rothera", t.AntarcticaSyowa = "antarctica/syowa", t.AntarcticaTroll = "antarctica/troll", t.AntarcticaVostok = "antarctica/vostok", t.ArcticLongyearbyen = "arctic/longyearbyen", t.AsiaAden = "asia/aden", t.AsiaAlmaty = "asia/almaty", t.AsiaAmman = "asia/amman", t.AsiaAnadyr = "asia/anadyr", t.AsiaAqtau = "asia/aqtau", t.AsiaAqtobe = "asia/aqtobe", t.AsiaAshgabat = "asia/ashgabat", t.AsiaAtyrau = "asia/atyrau", t.AsiaBaghdad = "asia/baghdad", t.AsiaBahrain = "asia/bahrain", t.AsiaBaku = "asia/baku", t.AsiaBangkok = "asia/bangkok", t.AsiaBarnaul = "asia/barnaul", t.AsiaBeirut = "asia/beirut", t.AsiaBishkek = "asia/bishkek", t.AsiaBrunei = "asia/brunei", t.AsiaChita = "asia/chita", t.AsiaColombo = "asia/colombo", t.AsiaDamascus = "asia/damascus", t.AsiaDhaka = "asia/dhaka", t.AsiaDili = "asia/dili", t.AsiaDubai = "asia/dubai", t.AsiaDushanbe = "asia/dushanbe", t.AsiaFamagusta = "asia/famagusta", t.AsiaGaza = "asia/gaza", t.AsiaHebron = "asia/hebron", t.AsiaHoChiMinh = "asia/ho_chi_minh", t.AsiaHongKong = "asia/hong_kong", t.AsiaHovd = "asia/hovd", t.AsiaIrkutsk = "asia/irkutsk", t.AsiaJakarta = "asia/jakarta", t.AsiaJayapura = "asia/jayapura", t.AsiaJerusalem = "asia/jerusalem", t.AsiaKabul = "asia/kabul", t.AsiaKamchatka = "asia/kamchatka", t.AsiaKarachi = "asia/karachi", t.AsiaKathmandu = "asia/kathmandu", t.AsiaKhandyga = "asia/khandyga", t.AsiaKolkata = "asia/kolkata", t.AsiaKrasnoyarsk = "asia/krasnoyarsk", t.AsiaKualaLumpur = "asia/kuala_lumpur", t.AsiaKuching = "asia/kuching", t.AsiaKuwait = "asia/kuwait", t.AsiaMacau = "asia/macau", t.AsiaMagadan = "asia/magadan", t.AsiaMakassar = "asia/makassar", t.AsiaManila = "asia/manila", t.AsiaMuscat = "asia/muscat", t.AsiaNicosia = "asia/nicosia", t.AsiaNovokuznetsk = "asia/novokuznetsk", t.AsiaNovosibirsk = "asia/novosibirsk", t.AsiaOmsk = "asia/omsk", t.AsiaOral = "asia/oral", t.AsiaPhnomPenh = "asia/phnom_penh", t.AsiaPontianak = "asia/pontianak", t.AsiaPyongyang = "asia/pyongyang", t.AsiaQatar = "asia/qatar", t.AsiaQostanay = "asia/qostanay", t.AsiaQyzylorda = "asia/qyzylorda", t.AsiaRiyadh = "asia/riyadh", t.AsiaSakhalin = "asia/sakhalin", t.AsiaSamarkand = "asia/samarkand", t.AsiaSeoul = "asia/seoul", t.AsiaShanghai = "asia/shanghai", t.AsiaSingapore = "asia/singapore", t.AsiaSrednekolymsk = "asia/srednekolymsk", t.AsiaTaipei = "asia/taipei", t.AsiaTashkent = "asia/tashkent", t.AsiaTbilisi = "asia/tbilisi", t.AsiaTehran = "asia/tehran", t.AsiaThimphu = "asia/thimphu", t.AsiaTokyo = "asia/tokyo", t.AsiaTomsk = "asia/tomsk", t.AsiaUlaanbaatar = "asia/ulaanbaatar", t.AsiaUrumqi = "asia/urumqi", t.AsiaUstnera = "asia/ust-nera", t.AsiaVientiane = "asia/vientiane", t.AsiaVladivostok = "asia/vladivostok", t.AsiaYakutsk = "asia/yakutsk", t.AsiaYangon = "asia/yangon", t.AsiaYekaterinburg = "asia/yekaterinburg", t.AsiaYerevan = "asia/yerevan", t.AtlanticAzores = "atlantic/azores", t.AtlanticBermuda = "atlantic/bermuda", t.AtlanticCanary = "atlantic/canary", t.AtlanticCapeVerde = "atlantic/cape_verde", t.AtlanticFaroe = "atlantic/faroe", t.AtlanticMadeira = "atlantic/madeira", t.AtlanticReykjavik = "atlantic/reykjavik", t.AtlanticSouthGeorgia = "atlantic/south_georgia", t.AtlanticStHelena = "atlantic/st_helena", t.AtlanticStanley = "atlantic/stanley", t.AustraliaAdelaide = "australia/adelaide", t.AustraliaBrisbane = "australia/brisbane", t.AustraliaBrokenHill = "australia/broken_hill", t.AustraliaDarwin = "australia/darwin", t.AustraliaEucla = "australia/eucla", t.AustraliaHobart = "australia/hobart", t.AustraliaLindeman = "australia/lindeman", t.AustraliaLordHowe = "australia/lord_howe", t.AustraliaMelbourne = "australia/melbourne", t.AustraliaPerth = "australia/perth", t.AustraliaSydney = "australia/sydney", t.EuropeAmsterdam = "europe/amsterdam", t.EuropeAndorra = "europe/andorra", t.EuropeAstrakhan = "europe/astrakhan", t.EuropeAthens = "europe/athens", t.EuropeBelgrade = "europe/belgrade", t.EuropeBerlin = "europe/berlin", t.EuropeBratislava = "europe/bratislava", t.EuropeBrussels = "europe/brussels", t.EuropeBucharest = "europe/bucharest", t.EuropeBudapest = "europe/budapest", t.EuropeBusingen = "europe/busingen", t.EuropeChisinau = "europe/chisinau", t.EuropeCopenhagen = "europe/copenhagen", t.EuropeDublin = "europe/dublin", t.EuropeGibraltar = "europe/gibraltar", t.EuropeGuernsey = "europe/guernsey", t.EuropeHelsinki = "europe/helsinki", t.EuropeIsleOfMan = "europe/isle_of_man", t.EuropeIstanbul = "europe/istanbul", t.EuropeJersey = "europe/jersey", t.EuropeKaliningrad = "europe/kaliningrad", t.EuropeKirov = "europe/kirov", t.EuropeKyiv = "europe/kyiv", t.EuropeLisbon = "europe/lisbon", t.EuropeLjubljana = "europe/ljubljana", t.EuropeLondon = "europe/london", t.EuropeLuxembourg = "europe/luxembourg", t.EuropeMadrid = "europe/madrid", t.EuropeMalta = "europe/malta", t.EuropeMariehamn = "europe/mariehamn", t.EuropeMinsk = "europe/minsk", t.EuropeMonaco = "europe/monaco", t.EuropeMoscow = "europe/moscow", t.EuropeOslo = "europe/oslo", t.EuropeParis = "europe/paris", t.EuropePodgorica = "europe/podgorica", t.EuropePrague = "europe/prague", t.EuropeRiga = "europe/riga", t.EuropeRome = "europe/rome", t.EuropeSamara = "europe/samara", t.EuropeSanMarino = "europe/san_marino", t.EuropeSarajevo = "europe/sarajevo", t.EuropeSaratov = "europe/saratov", t.EuropeSimferopol = "europe/simferopol", t.EuropeSkopje = "europe/skopje", t.EuropeSofia = "europe/sofia", t.EuropeStockholm = "europe/stockholm", t.EuropeTallinn = "europe/tallinn", t.EuropeTirane = "europe/tirane", t.EuropeUlyanovsk = "europe/ulyanovsk", t.EuropeVaduz = "europe/vaduz", t.EuropeVatican = "europe/vatican", t.EuropeVienna = "europe/vienna", t.EuropeVilnius = "europe/vilnius", t.EuropeVolgograd = "europe/volgograd", t.EuropeWarsaw = "europe/warsaw", t.EuropeZagreb = "europe/zagreb", t.EuropeZurich = "europe/zurich", t.IndianAntananarivo = "indian/antananarivo", t.IndianChagos = "indian/chagos", t.IndianChristmas = "indian/christmas", t.IndianCocos = "indian/cocos", t.IndianComoro = "indian/comoro", t.IndianKerguelen = "indian/kerguelen", t.IndianMahe = "indian/mahe", t.IndianMaldives = "indian/maldives", t.IndianMauritius = "indian/mauritius", t.IndianMayotte = "indian/mayotte", t.IndianReunion = "indian/reunion", t.PacificApia = "pacific/apia", t.PacificAuckland = "pacific/auckland", t.PacificBougainville = "pacific/bougainville", t.PacificChatham = "pacific/chatham", t.PacificChuuk = "pacific/chuuk", t.PacificEaster = "pacific/easter", t.PacificEfate = "pacific/efate", t.PacificFakaofo = "pacific/fakaofo", t.PacificFiji = "pacific/fiji", t.PacificFunafuti = "pacific/funafuti", t.PacificGalapagos = "pacific/galapagos", t.PacificGambier = "pacific/gambier", t.PacificGuadalcanal = "pacific/guadalcanal", t.PacificGuam = "pacific/guam", t.PacificHonolulu = "pacific/honolulu", t.PacificKanton = "pacific/kanton", t.PacificKiritimati = "pacific/kiritimati", t.PacificKosrae = "pacific/kosrae", t.PacificKwajalein = "pacific/kwajalein", t.PacificMajuro = "pacific/majuro", t.PacificMarquesas = "pacific/marquesas", t.PacificMidway = "pacific/midway", t.PacificNauru = "pacific/nauru", t.PacificNiue = "pacific/niue", t.PacificNorfolk = "pacific/norfolk", t.PacificNoumea = "pacific/noumea", t.PacificPagoPago = "pacific/pago_pago", t.PacificPalau = "pacific/palau", t.PacificPitcairn = "pacific/pitcairn", t.PacificPohnpei = "pacific/pohnpei", t.PacificPortMoresby = "pacific/port_moresby", t.PacificRarotonga = "pacific/rarotonga", t.PacificSaipan = "pacific/saipan", t.PacificTahiti = "pacific/tahiti", t.PacificTarawa = "pacific/tarawa", t.PacificTongatapu = "pacific/tongatapu", t.PacificWake = "pacific/wake", t.PacificWallis = "pacific/wallis", t.Utc = "utc";
|
|
6233
|
+
t.Light = "light", t.Dark = "dark";
|
|
6238
6234
|
})(ti || (ti = {}));
|
|
6239
6235
|
var ii;
|
|
6240
6236
|
(function(t) {
|
|
6241
|
-
t.Geolocation = "geolocation", t.Camera = "camera", t.Microphone = "microphone", t.Notifications = "notifications", t.Midi = "midi", t.Push = "push", t.Clipboardread = "clipboard-read", t.Clipboardwrite = "clipboard-write", t.Paymenthandler = "payment-handler", t.Usb = "usb", t.Bluetooth = "bluetooth", t.Accelerometer = "accelerometer", t.Gyroscope = "gyroscope", t.Magnetometer = "magnetometer", t.Ambientlightsensor = "ambient-light-sensor", t.Backgroundsync = "background-sync", t.Persistentstorage = "persistent-storage", t.Screenwakelock = "screen-wake-lock", t.Webshare = "web-share", t.Xrspatialtracking = "xr-spatial-tracking";
|
|
6237
|
+
t.AfricaAbidjan = "africa/abidjan", t.AfricaAccra = "africa/accra", t.AfricaAddisAbaba = "africa/addis_ababa", t.AfricaAlgiers = "africa/algiers", t.AfricaAsmara = "africa/asmara", t.AfricaBamako = "africa/bamako", t.AfricaBangui = "africa/bangui", t.AfricaBanjul = "africa/banjul", t.AfricaBissau = "africa/bissau", t.AfricaBlantyre = "africa/blantyre", t.AfricaBrazzaville = "africa/brazzaville", t.AfricaBujumbura = "africa/bujumbura", t.AfricaCairo = "africa/cairo", t.AfricaCasablanca = "africa/casablanca", t.AfricaCeuta = "africa/ceuta", t.AfricaConakry = "africa/conakry", t.AfricaDakar = "africa/dakar", t.AfricaDarEsSalaam = "africa/dar_es_salaam", t.AfricaDjibouti = "africa/djibouti", t.AfricaDouala = "africa/douala", t.AfricaElAaiun = "africa/el_aaiun", t.AfricaFreetown = "africa/freetown", t.AfricaGaborone = "africa/gaborone", t.AfricaHarare = "africa/harare", t.AfricaJohannesburg = "africa/johannesburg", t.AfricaJuba = "africa/juba", t.AfricaKampala = "africa/kampala", t.AfricaKhartoum = "africa/khartoum", t.AfricaKigali = "africa/kigali", t.AfricaKinshasa = "africa/kinshasa", t.AfricaLagos = "africa/lagos", t.AfricaLibreville = "africa/libreville", t.AfricaLome = "africa/lome", t.AfricaLuanda = "africa/luanda", t.AfricaLubumbashi = "africa/lubumbashi", t.AfricaLusaka = "africa/lusaka", t.AfricaMalabo = "africa/malabo", t.AfricaMaputo = "africa/maputo", t.AfricaMaseru = "africa/maseru", t.AfricaMbabane = "africa/mbabane", t.AfricaMogadishu = "africa/mogadishu", t.AfricaMonrovia = "africa/monrovia", t.AfricaNairobi = "africa/nairobi", t.AfricaNdjamena = "africa/ndjamena", t.AfricaNiamey = "africa/niamey", t.AfricaNouakchott = "africa/nouakchott", t.AfricaOuagadougou = "africa/ouagadougou", t.AfricaPortonovo = "africa/porto-novo", t.AfricaSaoTome = "africa/sao_tome", t.AfricaTripoli = "africa/tripoli", t.AfricaTunis = "africa/tunis", t.AfricaWindhoek = "africa/windhoek", t.AmericaAdak = "america/adak", t.AmericaAnchorage = "america/anchorage", t.AmericaAnguilla = "america/anguilla", t.AmericaAntigua = "america/antigua", t.AmericaAraguaina = "america/araguaina", t.AmericaArgentinaBuenosAires = "america/argentina/buenos_aires", t.AmericaArgentinaCatamarca = "america/argentina/catamarca", t.AmericaArgentinaCordoba = "america/argentina/cordoba", t.AmericaArgentinaJujuy = "america/argentina/jujuy", t.AmericaArgentinaLaRioja = "america/argentina/la_rioja", t.AmericaArgentinaMendoza = "america/argentina/mendoza", t.AmericaArgentinaRioGallegos = "america/argentina/rio_gallegos", t.AmericaArgentinaSalta = "america/argentina/salta", t.AmericaArgentinaSanJuan = "america/argentina/san_juan", t.AmericaArgentinaSanLuis = "america/argentina/san_luis", t.AmericaArgentinaTucuman = "america/argentina/tucuman", t.AmericaArgentinaUshuaia = "america/argentina/ushuaia", t.AmericaAruba = "america/aruba", t.AmericaAsuncion = "america/asuncion", t.AmericaAtikokan = "america/atikokan", t.AmericaBahia = "america/bahia", t.AmericaBahiaBanderas = "america/bahia_banderas", t.AmericaBarbados = "america/barbados", t.AmericaBelem = "america/belem", t.AmericaBelize = "america/belize", t.AmericaBlancsablon = "america/blanc-sablon", t.AmericaBoaVista = "america/boa_vista", t.AmericaBogota = "america/bogota", t.AmericaBoise = "america/boise", t.AmericaCambridgeBay = "america/cambridge_bay", t.AmericaCampoGrande = "america/campo_grande", t.AmericaCancun = "america/cancun", t.AmericaCaracas = "america/caracas", t.AmericaCayenne = "america/cayenne", t.AmericaCayman = "america/cayman", t.AmericaChicago = "america/chicago", t.AmericaChihuahua = "america/chihuahua", t.AmericaCiudadJuarez = "america/ciudad_juarez", t.AmericaCostaRica = "america/costa_rica", t.AmericaCoyhaique = "america/coyhaique", t.AmericaCreston = "america/creston", t.AmericaCuiaba = "america/cuiaba", t.AmericaCuracao = "america/curacao", t.AmericaDanmarkshavn = "america/danmarkshavn", t.AmericaDawson = "america/dawson", t.AmericaDawsonCreek = "america/dawson_creek", t.AmericaDenver = "america/denver", t.AmericaDetroit = "america/detroit", t.AmericaDominica = "america/dominica", t.AmericaEdmonton = "america/edmonton", t.AmericaEirunepe = "america/eirunepe", t.AmericaElSalvador = "america/el_salvador", t.AmericaFortNelson = "america/fort_nelson", t.AmericaFortaleza = "america/fortaleza", t.AmericaGlaceBay = "america/glace_bay", t.AmericaGooseBay = "america/goose_bay", t.AmericaGrandTurk = "america/grand_turk", t.AmericaGrenada = "america/grenada", t.AmericaGuadeloupe = "america/guadeloupe", t.AmericaGuatemala = "america/guatemala", t.AmericaGuayaquil = "america/guayaquil", t.AmericaGuyana = "america/guyana", t.AmericaHalifax = "america/halifax", t.AmericaHavana = "america/havana", t.AmericaHermosillo = "america/hermosillo", t.AmericaIndianaIndianapolis = "america/indiana/indianapolis", t.AmericaIndianaKnox = "america/indiana/knox", t.AmericaIndianaMarengo = "america/indiana/marengo", t.AmericaIndianaPetersburg = "america/indiana/petersburg", t.AmericaIndianaTellCity = "america/indiana/tell_city", t.AmericaIndianaVevay = "america/indiana/vevay", t.AmericaIndianaVincennes = "america/indiana/vincennes", t.AmericaIndianaWinamac = "america/indiana/winamac", t.AmericaInuvik = "america/inuvik", t.AmericaIqaluit = "america/iqaluit", t.AmericaJamaica = "america/jamaica", t.AmericaJuneau = "america/juneau", t.AmericaKentuckyLouisville = "america/kentucky/louisville", t.AmericaKentuckyMonticello = "america/kentucky/monticello", t.AmericaKralendijk = "america/kralendijk", t.AmericaLaPaz = "america/la_paz", t.AmericaLima = "america/lima", t.AmericaLosAngeles = "america/los_angeles", t.AmericaLowerPrinces = "america/lower_princes", t.AmericaMaceio = "america/maceio", t.AmericaManagua = "america/managua", t.AmericaManaus = "america/manaus", t.AmericaMarigot = "america/marigot", t.AmericaMartinique = "america/martinique", t.AmericaMatamoros = "america/matamoros", t.AmericaMazatlan = "america/mazatlan", t.AmericaMenominee = "america/menominee", t.AmericaMerida = "america/merida", t.AmericaMetlakatla = "america/metlakatla", t.AmericaMexicoCity = "america/mexico_city", t.AmericaMiquelon = "america/miquelon", t.AmericaMoncton = "america/moncton", t.AmericaMonterrey = "america/monterrey", t.AmericaMontevideo = "america/montevideo", t.AmericaMontserrat = "america/montserrat", t.AmericaNassau = "america/nassau", t.AmericaNewYork = "america/new_york", t.AmericaNome = "america/nome", t.AmericaNoronha = "america/noronha", t.AmericaNorthDakotaBeulah = "america/north_dakota/beulah", t.AmericaNorthDakotaCenter = "america/north_dakota/center", t.AmericaNorthDakotaNewSalem = "america/north_dakota/new_salem", t.AmericaNuuk = "america/nuuk", t.AmericaOjinaga = "america/ojinaga", t.AmericaPanama = "america/panama", t.AmericaParamaribo = "america/paramaribo", t.AmericaPhoenix = "america/phoenix", t.AmericaPortauprince = "america/port-au-prince", t.AmericaPortOfSpain = "america/port_of_spain", t.AmericaPortoVelho = "america/porto_velho", t.AmericaPuertoRico = "america/puerto_rico", t.AmericaPuntaArenas = "america/punta_arenas", t.AmericaRankinInlet = "america/rankin_inlet", t.AmericaRecife = "america/recife", t.AmericaRegina = "america/regina", t.AmericaResolute = "america/resolute", t.AmericaRioBranco = "america/rio_branco", t.AmericaSantarem = "america/santarem", t.AmericaSantiago = "america/santiago", t.AmericaSantoDomingo = "america/santo_domingo", t.AmericaSaoPaulo = "america/sao_paulo", t.AmericaScoresbysund = "america/scoresbysund", t.AmericaSitka = "america/sitka", t.AmericaStBarthelemy = "america/st_barthelemy", t.AmericaStJohns = "america/st_johns", t.AmericaStKitts = "america/st_kitts", t.AmericaStLucia = "america/st_lucia", t.AmericaStThomas = "america/st_thomas", t.AmericaStVincent = "america/st_vincent", t.AmericaSwiftCurrent = "america/swift_current", t.AmericaTegucigalpa = "america/tegucigalpa", t.AmericaThule = "america/thule", t.AmericaTijuana = "america/tijuana", t.AmericaToronto = "america/toronto", t.AmericaTortola = "america/tortola", t.AmericaVancouver = "america/vancouver", t.AmericaWhitehorse = "america/whitehorse", t.AmericaWinnipeg = "america/winnipeg", t.AmericaYakutat = "america/yakutat", t.AntarcticaCasey = "antarctica/casey", t.AntarcticaDavis = "antarctica/davis", t.AntarcticaDumontdurville = "antarctica/dumontdurville", t.AntarcticaMacquarie = "antarctica/macquarie", t.AntarcticaMawson = "antarctica/mawson", t.AntarcticaMcmurdo = "antarctica/mcmurdo", t.AntarcticaPalmer = "antarctica/palmer", t.AntarcticaRothera = "antarctica/rothera", t.AntarcticaSyowa = "antarctica/syowa", t.AntarcticaTroll = "antarctica/troll", t.AntarcticaVostok = "antarctica/vostok", t.ArcticLongyearbyen = "arctic/longyearbyen", t.AsiaAden = "asia/aden", t.AsiaAlmaty = "asia/almaty", t.AsiaAmman = "asia/amman", t.AsiaAnadyr = "asia/anadyr", t.AsiaAqtau = "asia/aqtau", t.AsiaAqtobe = "asia/aqtobe", t.AsiaAshgabat = "asia/ashgabat", t.AsiaAtyrau = "asia/atyrau", t.AsiaBaghdad = "asia/baghdad", t.AsiaBahrain = "asia/bahrain", t.AsiaBaku = "asia/baku", t.AsiaBangkok = "asia/bangkok", t.AsiaBarnaul = "asia/barnaul", t.AsiaBeirut = "asia/beirut", t.AsiaBishkek = "asia/bishkek", t.AsiaBrunei = "asia/brunei", t.AsiaChita = "asia/chita", t.AsiaColombo = "asia/colombo", t.AsiaDamascus = "asia/damascus", t.AsiaDhaka = "asia/dhaka", t.AsiaDili = "asia/dili", t.AsiaDubai = "asia/dubai", t.AsiaDushanbe = "asia/dushanbe", t.AsiaFamagusta = "asia/famagusta", t.AsiaGaza = "asia/gaza", t.AsiaHebron = "asia/hebron", t.AsiaHoChiMinh = "asia/ho_chi_minh", t.AsiaHongKong = "asia/hong_kong", t.AsiaHovd = "asia/hovd", t.AsiaIrkutsk = "asia/irkutsk", t.AsiaJakarta = "asia/jakarta", t.AsiaJayapura = "asia/jayapura", t.AsiaJerusalem = "asia/jerusalem", t.AsiaKabul = "asia/kabul", t.AsiaKamchatka = "asia/kamchatka", t.AsiaKarachi = "asia/karachi", t.AsiaKathmandu = "asia/kathmandu", t.AsiaKhandyga = "asia/khandyga", t.AsiaKolkata = "asia/kolkata", t.AsiaKrasnoyarsk = "asia/krasnoyarsk", t.AsiaKualaLumpur = "asia/kuala_lumpur", t.AsiaKuching = "asia/kuching", t.AsiaKuwait = "asia/kuwait", t.AsiaMacau = "asia/macau", t.AsiaMagadan = "asia/magadan", t.AsiaMakassar = "asia/makassar", t.AsiaManila = "asia/manila", t.AsiaMuscat = "asia/muscat", t.AsiaNicosia = "asia/nicosia", t.AsiaNovokuznetsk = "asia/novokuznetsk", t.AsiaNovosibirsk = "asia/novosibirsk", t.AsiaOmsk = "asia/omsk", t.AsiaOral = "asia/oral", t.AsiaPhnomPenh = "asia/phnom_penh", t.AsiaPontianak = "asia/pontianak", t.AsiaPyongyang = "asia/pyongyang", t.AsiaQatar = "asia/qatar", t.AsiaQostanay = "asia/qostanay", t.AsiaQyzylorda = "asia/qyzylorda", t.AsiaRiyadh = "asia/riyadh", t.AsiaSakhalin = "asia/sakhalin", t.AsiaSamarkand = "asia/samarkand", t.AsiaSeoul = "asia/seoul", t.AsiaShanghai = "asia/shanghai", t.AsiaSingapore = "asia/singapore", t.AsiaSrednekolymsk = "asia/srednekolymsk", t.AsiaTaipei = "asia/taipei", t.AsiaTashkent = "asia/tashkent", t.AsiaTbilisi = "asia/tbilisi", t.AsiaTehran = "asia/tehran", t.AsiaThimphu = "asia/thimphu", t.AsiaTokyo = "asia/tokyo", t.AsiaTomsk = "asia/tomsk", t.AsiaUlaanbaatar = "asia/ulaanbaatar", t.AsiaUrumqi = "asia/urumqi", t.AsiaUstnera = "asia/ust-nera", t.AsiaVientiane = "asia/vientiane", t.AsiaVladivostok = "asia/vladivostok", t.AsiaYakutsk = "asia/yakutsk", t.AsiaYangon = "asia/yangon", t.AsiaYekaterinburg = "asia/yekaterinburg", t.AsiaYerevan = "asia/yerevan", t.AtlanticAzores = "atlantic/azores", t.AtlanticBermuda = "atlantic/bermuda", t.AtlanticCanary = "atlantic/canary", t.AtlanticCapeVerde = "atlantic/cape_verde", t.AtlanticFaroe = "atlantic/faroe", t.AtlanticMadeira = "atlantic/madeira", t.AtlanticReykjavik = "atlantic/reykjavik", t.AtlanticSouthGeorgia = "atlantic/south_georgia", t.AtlanticStHelena = "atlantic/st_helena", t.AtlanticStanley = "atlantic/stanley", t.AustraliaAdelaide = "australia/adelaide", t.AustraliaBrisbane = "australia/brisbane", t.AustraliaBrokenHill = "australia/broken_hill", t.AustraliaDarwin = "australia/darwin", t.AustraliaEucla = "australia/eucla", t.AustraliaHobart = "australia/hobart", t.AustraliaLindeman = "australia/lindeman", t.AustraliaLordHowe = "australia/lord_howe", t.AustraliaMelbourne = "australia/melbourne", t.AustraliaPerth = "australia/perth", t.AustraliaSydney = "australia/sydney", t.EuropeAmsterdam = "europe/amsterdam", t.EuropeAndorra = "europe/andorra", t.EuropeAstrakhan = "europe/astrakhan", t.EuropeAthens = "europe/athens", t.EuropeBelgrade = "europe/belgrade", t.EuropeBerlin = "europe/berlin", t.EuropeBratislava = "europe/bratislava", t.EuropeBrussels = "europe/brussels", t.EuropeBucharest = "europe/bucharest", t.EuropeBudapest = "europe/budapest", t.EuropeBusingen = "europe/busingen", t.EuropeChisinau = "europe/chisinau", t.EuropeCopenhagen = "europe/copenhagen", t.EuropeDublin = "europe/dublin", t.EuropeGibraltar = "europe/gibraltar", t.EuropeGuernsey = "europe/guernsey", t.EuropeHelsinki = "europe/helsinki", t.EuropeIsleOfMan = "europe/isle_of_man", t.EuropeIstanbul = "europe/istanbul", t.EuropeJersey = "europe/jersey", t.EuropeKaliningrad = "europe/kaliningrad", t.EuropeKirov = "europe/kirov", t.EuropeKyiv = "europe/kyiv", t.EuropeLisbon = "europe/lisbon", t.EuropeLjubljana = "europe/ljubljana", t.EuropeLondon = "europe/london", t.EuropeLuxembourg = "europe/luxembourg", t.EuropeMadrid = "europe/madrid", t.EuropeMalta = "europe/malta", t.EuropeMariehamn = "europe/mariehamn", t.EuropeMinsk = "europe/minsk", t.EuropeMonaco = "europe/monaco", t.EuropeMoscow = "europe/moscow", t.EuropeOslo = "europe/oslo", t.EuropeParis = "europe/paris", t.EuropePodgorica = "europe/podgorica", t.EuropePrague = "europe/prague", t.EuropeRiga = "europe/riga", t.EuropeRome = "europe/rome", t.EuropeSamara = "europe/samara", t.EuropeSanMarino = "europe/san_marino", t.EuropeSarajevo = "europe/sarajevo", t.EuropeSaratov = "europe/saratov", t.EuropeSimferopol = "europe/simferopol", t.EuropeSkopje = "europe/skopje", t.EuropeSofia = "europe/sofia", t.EuropeStockholm = "europe/stockholm", t.EuropeTallinn = "europe/tallinn", t.EuropeTirane = "europe/tirane", t.EuropeUlyanovsk = "europe/ulyanovsk", t.EuropeVaduz = "europe/vaduz", t.EuropeVatican = "europe/vatican", t.EuropeVienna = "europe/vienna", t.EuropeVilnius = "europe/vilnius", t.EuropeVolgograd = "europe/volgograd", t.EuropeWarsaw = "europe/warsaw", t.EuropeZagreb = "europe/zagreb", t.EuropeZurich = "europe/zurich", t.IndianAntananarivo = "indian/antananarivo", t.IndianChagos = "indian/chagos", t.IndianChristmas = "indian/christmas", t.IndianCocos = "indian/cocos", t.IndianComoro = "indian/comoro", t.IndianKerguelen = "indian/kerguelen", t.IndianMahe = "indian/mahe", t.IndianMaldives = "indian/maldives", t.IndianMauritius = "indian/mauritius", t.IndianMayotte = "indian/mayotte", t.IndianReunion = "indian/reunion", t.PacificApia = "pacific/apia", t.PacificAuckland = "pacific/auckland", t.PacificBougainville = "pacific/bougainville", t.PacificChatham = "pacific/chatham", t.PacificChuuk = "pacific/chuuk", t.PacificEaster = "pacific/easter", t.PacificEfate = "pacific/efate", t.PacificFakaofo = "pacific/fakaofo", t.PacificFiji = "pacific/fiji", t.PacificFunafuti = "pacific/funafuti", t.PacificGalapagos = "pacific/galapagos", t.PacificGambier = "pacific/gambier", t.PacificGuadalcanal = "pacific/guadalcanal", t.PacificGuam = "pacific/guam", t.PacificHonolulu = "pacific/honolulu", t.PacificKanton = "pacific/kanton", t.PacificKiritimati = "pacific/kiritimati", t.PacificKosrae = "pacific/kosrae", t.PacificKwajalein = "pacific/kwajalein", t.PacificMajuro = "pacific/majuro", t.PacificMarquesas = "pacific/marquesas", t.PacificMidway = "pacific/midway", t.PacificNauru = "pacific/nauru", t.PacificNiue = "pacific/niue", t.PacificNorfolk = "pacific/norfolk", t.PacificNoumea = "pacific/noumea", t.PacificPagoPago = "pacific/pago_pago", t.PacificPalau = "pacific/palau", t.PacificPitcairn = "pacific/pitcairn", t.PacificPohnpei = "pacific/pohnpei", t.PacificPortMoresby = "pacific/port_moresby", t.PacificRarotonga = "pacific/rarotonga", t.PacificSaipan = "pacific/saipan", t.PacificTahiti = "pacific/tahiti", t.PacificTarawa = "pacific/tarawa", t.PacificTongatapu = "pacific/tongatapu", t.PacificWake = "pacific/wake", t.PacificWallis = "pacific/wallis", t.Utc = "utc";
|
|
6242
6238
|
})(ii || (ii = {}));
|
|
6243
6239
|
var ni;
|
|
6244
6240
|
(function(t) {
|
|
6245
|
-
t.
|
|
6241
|
+
t.Geolocation = "geolocation", t.Camera = "camera", t.Microphone = "microphone", t.Notifications = "notifications", t.Midi = "midi", t.Push = "push", t.Clipboardread = "clipboard-read", t.Clipboardwrite = "clipboard-write", t.Paymenthandler = "payment-handler", t.Usb = "usb", t.Bluetooth = "bluetooth", t.Accelerometer = "accelerometer", t.Gyroscope = "gyroscope", t.Magnetometer = "magnetometer", t.Ambientlightsensor = "ambient-light-sensor", t.Backgroundsync = "background-sync", t.Persistentstorage = "persistent-storage", t.Screenwakelock = "screen-wake-lock", t.Webshare = "web-share", t.Xrspatialtracking = "xr-spatial-tracking";
|
|
6246
6242
|
})(ni || (ni = {}));
|
|
6247
6243
|
var oi;
|
|
6248
6244
|
(function(t) {
|
|
6249
|
-
t.
|
|
6245
|
+
t.Jpg = "jpg", t.Jpeg = "jpeg", t.Png = "png", t.Webp = "webp", t.Heic = "heic", t.Avif = "avif", t.Gif = "gif";
|
|
6250
6246
|
})(oi || (oi = {}));
|
|
6251
6247
|
var ai;
|
|
6252
6248
|
(function(t) {
|
|
6253
|
-
t.
|
|
6249
|
+
t.GET = "GET", t.POST = "POST", t.PUT = "PUT", t.PATCH = "PATCH", t.DELETE = "DELETE", t.OPTIONS = "OPTIONS", t.HEAD = "HEAD";
|
|
6254
6250
|
})(ai || (ai = {}));
|
|
6255
6251
|
var si;
|
|
6256
6252
|
(function(t) {
|
|
6257
|
-
t.
|
|
6253
|
+
t.Auto = "auto", t.Center = "center", t.Topleft = "top-left", t.Top = "top", t.Topright = "top-right", t.Left = "left", t.Right = "right", t.Bottomleft = "bottom-left", t.Bottom = "bottom", t.Bottomright = "bottom-right";
|
|
6258
6254
|
})(si || (si = {}));
|
|
6259
6255
|
var ri;
|
|
6260
6256
|
(function(t) {
|
|
6261
|
-
t.
|
|
6257
|
+
t.Functions = "functions", t.Sites = "sites";
|
|
6262
6258
|
})(ri || (ri = {}));
|
|
6263
6259
|
var ci;
|
|
6264
6260
|
(function(t) {
|
|
6265
|
-
t.
|
|
6261
|
+
t.Http = "http", t.Schedule = "schedule", t.Event = "event";
|
|
6266
6262
|
})(ci || (ci = {}));
|
|
6267
|
-
|
|
6263
|
+
var di;
|
|
6264
|
+
(function(t) {
|
|
6265
|
+
t.Waiting = "waiting", t.Processing = "processing", t.Completed = "completed", t.Failed = "failed", t.Scheduled = "scheduled";
|
|
6266
|
+
})(di || (di = {}));
|
|
6267
|
+
const ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6268
6268
|
__proto__: null,
|
|
6269
|
-
Account:
|
|
6269
|
+
Account: Jt,
|
|
6270
6270
|
AppwriteException: h,
|
|
6271
6271
|
get AuthenticationFactor() {
|
|
6272
|
-
return
|
|
6272
|
+
return Tt;
|
|
6273
6273
|
},
|
|
6274
6274
|
get AuthenticatorType() {
|
|
6275
|
-
return
|
|
6275
|
+
return Qt;
|
|
6276
6276
|
},
|
|
6277
|
-
Avatars:
|
|
6277
|
+
Avatars: an,
|
|
6278
6278
|
get Browser() {
|
|
6279
|
-
return
|
|
6279
|
+
return Ot;
|
|
6280
6280
|
},
|
|
6281
6281
|
get BrowserPermission() {
|
|
6282
|
-
return
|
|
6282
|
+
return ni;
|
|
6283
6283
|
},
|
|
6284
6284
|
get BrowserTheme() {
|
|
6285
|
-
return
|
|
6285
|
+
return ti;
|
|
6286
6286
|
},
|
|
6287
6287
|
Channel: Pe,
|
|
6288
6288
|
Client: xe,
|
|
6289
6289
|
get Condition() {
|
|
6290
|
-
return
|
|
6290
|
+
return Zt;
|
|
6291
6291
|
},
|
|
6292
6292
|
get CreditCard() {
|
|
6293
|
-
return
|
|
6293
|
+
return Ft;
|
|
6294
6294
|
},
|
|
6295
|
-
Databases:
|
|
6296
|
-
DocumentsDB:
|
|
6295
|
+
Databases: Zn,
|
|
6296
|
+
DocumentsDB: Qn,
|
|
6297
6297
|
get ExecutionMethod() {
|
|
6298
|
-
return
|
|
6298
|
+
return ai;
|
|
6299
6299
|
},
|
|
6300
6300
|
get ExecutionResourceType() {
|
|
6301
|
-
return
|
|
6301
|
+
return ri;
|
|
6302
6302
|
},
|
|
6303
6303
|
get ExecutionStatus() {
|
|
6304
|
-
return
|
|
6304
|
+
return di;
|
|
6305
6305
|
},
|
|
6306
6306
|
get ExecutionTrigger() {
|
|
6307
|
-
return
|
|
6307
|
+
return ci;
|
|
6308
6308
|
},
|
|
6309
6309
|
get Flag() {
|
|
6310
|
-
return
|
|
6310
|
+
return ei;
|
|
6311
6311
|
},
|
|
6312
|
-
Functions:
|
|
6313
|
-
Graphql:
|
|
6314
|
-
ID:
|
|
6312
|
+
Functions: Tn,
|
|
6313
|
+
Graphql: zn,
|
|
6314
|
+
ID: Ge,
|
|
6315
6315
|
get ImageFormat() {
|
|
6316
|
-
return
|
|
6316
|
+
return oi;
|
|
6317
6317
|
},
|
|
6318
6318
|
get ImageGravity() {
|
|
6319
|
-
return
|
|
6319
|
+
return si;
|
|
6320
6320
|
},
|
|
6321
|
-
Locale:
|
|
6322
|
-
Messaging:
|
|
6321
|
+
Locale: On,
|
|
6322
|
+
Messaging: Fn,
|
|
6323
6323
|
get OAuthProvider() {
|
|
6324
|
-
return
|
|
6324
|
+
return zt;
|
|
6325
6325
|
},
|
|
6326
6326
|
Operator: T,
|
|
6327
|
-
Organization:
|
|
6328
|
-
Permission:
|
|
6329
|
-
Presences:
|
|
6327
|
+
Organization: eo,
|
|
6328
|
+
Permission: rt,
|
|
6329
|
+
Presences: to,
|
|
6330
6330
|
Query: P,
|
|
6331
|
-
Realtime:
|
|
6332
|
-
Role:
|
|
6333
|
-
Storage:
|
|
6334
|
-
TablesDB:
|
|
6335
|
-
Teams:
|
|
6331
|
+
Realtime: ao,
|
|
6332
|
+
Role: so,
|
|
6333
|
+
Storage: io,
|
|
6334
|
+
TablesDB: no,
|
|
6335
|
+
Teams: sn,
|
|
6336
6336
|
get Timezone() {
|
|
6337
|
-
return
|
|
6337
|
+
return ii;
|
|
6338
6338
|
},
|
|
6339
|
-
VectorsDB:
|
|
6340
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6339
|
+
VectorsDB: oo
|
|
6340
|
+
}, Symbol.toStringTag, { value: "Module" })), ro = {
|
|
6341
6341
|
signIn: "Sign in",
|
|
6342
6342
|
dialogSignIn: "Sign in",
|
|
6343
6343
|
signUp: "Sign up",
|
|
@@ -6511,13 +6511,13 @@ const ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6511
6511
|
acceptLegal: "I agree to the",
|
|
6512
6512
|
errorLegalRequired: "Accept the terms to continue."
|
|
6513
6513
|
};
|
|
6514
|
-
function
|
|
6514
|
+
function co(t, e = {}) {
|
|
6515
6515
|
return t.replace(
|
|
6516
6516
|
/\{(\w+)\}/g,
|
|
6517
6517
|
(n, i) => i in e ? String(e[i]) : `{${i}}`
|
|
6518
6518
|
);
|
|
6519
6519
|
}
|
|
6520
|
-
const
|
|
6520
|
+
const lo = {
|
|
6521
6521
|
amazon: "Amazon",
|
|
6522
6522
|
apple: "Apple",
|
|
6523
6523
|
appwrite: "Appwrite",
|
|
@@ -6568,10 +6568,10 @@ const co = {
|
|
|
6568
6568
|
zoho: "Zoho",
|
|
6569
6569
|
zoom: "Zoom"
|
|
6570
6570
|
};
|
|
6571
|
-
function
|
|
6572
|
-
return
|
|
6571
|
+
function ht(t) {
|
|
6572
|
+
return lo[t] ?? t.charAt(0).toUpperCase() + t.slice(1);
|
|
6573
6573
|
}
|
|
6574
|
-
const
|
|
6574
|
+
const kt = (t, e, n = 401) => Object.assign(new Error(e), { type: t, code: n }), Ce = () => (/* @__PURE__ */ new Date()).toISOString(), De = (t) => new Date(Date.now() - t * 6e4).toISOString(), St = [
|
|
6575
6575
|
"amber",
|
|
6576
6576
|
"brave",
|
|
6577
6577
|
"calm",
|
|
@@ -6584,13 +6584,13 @@ const At = (t, e, n = 401) => Object.assign(new Error(e), { type: t, code: n }),
|
|
|
6584
6584
|
"juniper",
|
|
6585
6585
|
"kite",
|
|
6586
6586
|
"lumen"
|
|
6587
|
-
],
|
|
6587
|
+
], Bi = () => `${St[Math.floor(Math.random() * St.length)]}-${St[Math.floor(Math.random() * St.length)]}`, Fe = () => Math.random().toString(36).slice(2, 12), Xi = () => Array.from({ length: 2 }, () => Math.random().toString(36).slice(2, 7)).join("-"), uo = {
|
|
6588
6588
|
name: "Ada Lovelace",
|
|
6589
6589
|
email: "ada@example.com",
|
|
6590
6590
|
phone: "+15550100"
|
|
6591
6591
|
};
|
|
6592
|
-
class
|
|
6593
|
-
constructor(e =
|
|
6592
|
+
class po {
|
|
6593
|
+
constructor(e = uo) {
|
|
6594
6594
|
this.seed = e, this.user = null, this.mfaPending = !1, this.mfaEnabled = !1, this.totpEnrolled = !1, this.recoveryCodes = [], this.lastChallenge = 0, this.sessions = [], this.identities = [], this.logs = [], this.tokens = /* @__PURE__ */ new Map(), this.pendingAuthenticator = null;
|
|
6595
6595
|
}
|
|
6596
6596
|
// ───────────────────────── helpers ─────────────────────────
|
|
@@ -6654,7 +6654,7 @@ class uo {
|
|
|
6654
6654
|
},
|
|
6655
6655
|
{
|
|
6656
6656
|
...n,
|
|
6657
|
-
$id:
|
|
6657
|
+
$id: Fe(),
|
|
6658
6658
|
$createdAt: De(300),
|
|
6659
6659
|
provider: e,
|
|
6660
6660
|
ip: "198.51.100.7",
|
|
@@ -6671,7 +6671,7 @@ class uo {
|
|
|
6671
6671
|
},
|
|
6672
6672
|
{
|
|
6673
6673
|
...n,
|
|
6674
|
-
$id:
|
|
6674
|
+
$id: Fe(),
|
|
6675
6675
|
$createdAt: De(1440 * 3),
|
|
6676
6676
|
provider: "oauth2",
|
|
6677
6677
|
ip: "192.0.2.90",
|
|
@@ -6726,9 +6726,9 @@ class uo {
|
|
|
6726
6726
|
}
|
|
6727
6727
|
requireUser() {
|
|
6728
6728
|
if (!this.user)
|
|
6729
|
-
throw
|
|
6729
|
+
throw kt("general_unauthorized_scope", "User (role: guests) missing scope (account)");
|
|
6730
6730
|
if (this.mfaPending)
|
|
6731
|
-
throw
|
|
6731
|
+
throw kt(
|
|
6732
6732
|
"user_more_factors_required",
|
|
6733
6733
|
"More factors are required to complete the sign in process."
|
|
6734
6734
|
);
|
|
@@ -6736,7 +6736,7 @@ class uo {
|
|
|
6736
6736
|
}
|
|
6737
6737
|
requireRecentChallenge() {
|
|
6738
6738
|
if (Date.now() - this.lastChallenge > 30 * 6e4)
|
|
6739
|
-
throw
|
|
6739
|
+
throw kt(
|
|
6740
6740
|
"user_challenge_required",
|
|
6741
6741
|
"A recently successful challenge is required to complete this action."
|
|
6742
6742
|
);
|
|
@@ -6772,26 +6772,26 @@ class uo {
|
|
|
6772
6772
|
}
|
|
6773
6773
|
async createMagicURLToken(e, n) {
|
|
6774
6774
|
return this.tokens.set(e, { email: n }), this.delay({
|
|
6775
|
-
$id:
|
|
6775
|
+
$id: Fe(),
|
|
6776
6776
|
$createdAt: Ce(),
|
|
6777
6777
|
userId: e,
|
|
6778
6778
|
secret: "",
|
|
6779
6779
|
expire: "",
|
|
6780
|
-
phrase:
|
|
6780
|
+
phrase: Bi()
|
|
6781
6781
|
});
|
|
6782
6782
|
}
|
|
6783
6783
|
async createEmailToken(e, n) {
|
|
6784
6784
|
return this.tokens.set(e, { email: n }), this.delay({
|
|
6785
|
-
$id:
|
|
6785
|
+
$id: Fe(),
|
|
6786
6786
|
$createdAt: Ce(),
|
|
6787
6787
|
userId: e,
|
|
6788
6788
|
secret: "",
|
|
6789
6789
|
expire: "",
|
|
6790
|
-
phrase:
|
|
6790
|
+
phrase: Bi()
|
|
6791
6791
|
});
|
|
6792
6792
|
}
|
|
6793
6793
|
async createPhoneToken(e, n) {
|
|
6794
|
-
return this.tokens.set(e, { phone: n }), this.delay({ $id:
|
|
6794
|
+
return this.tokens.set(e, { phone: n }), this.delay({ $id: Fe(), $createdAt: Ce(), userId: e, secret: "", expire: "", phrase: "" });
|
|
6795
6795
|
}
|
|
6796
6796
|
async createSession(e) {
|
|
6797
6797
|
return this.delay(() => {
|
|
@@ -6883,7 +6883,7 @@ class uo {
|
|
|
6883
6883
|
});
|
|
6884
6884
|
}
|
|
6885
6885
|
async createMFAChallenge() {
|
|
6886
|
-
return this.delay({ $id:
|
|
6886
|
+
return this.delay({ $id: Fe(), $createdAt: Ce(), userId: "preview-user", expire: "" });
|
|
6887
6887
|
}
|
|
6888
6888
|
async updateMFAChallenge() {
|
|
6889
6889
|
return this.delay(() => (this.mfaPending = !1, this.lastChallenge = Date.now(), this.sessions[0]));
|
|
@@ -6912,22 +6912,22 @@ class uo {
|
|
|
6912
6912
|
async createMFARecoveryCodes() {
|
|
6913
6913
|
return this.delay(() => {
|
|
6914
6914
|
if (this.recoveryCodes.length > 0)
|
|
6915
|
-
throw
|
|
6916
|
-
return this.recoveryCodes = Array.from({ length: 6 },
|
|
6915
|
+
throw kt("user_recovery_codes_already_exists", "Recovery codes already generated.", 409);
|
|
6916
|
+
return this.recoveryCodes = Array.from({ length: 6 }, Xi), { recoveryCodes: this.recoveryCodes };
|
|
6917
6917
|
});
|
|
6918
6918
|
}
|
|
6919
6919
|
async getMFARecoveryCodes() {
|
|
6920
6920
|
return this.delay(() => (this.requireRecentChallenge(), { recoveryCodes: this.recoveryCodes }));
|
|
6921
6921
|
}
|
|
6922
6922
|
async updateMFARecoveryCodes() {
|
|
6923
|
-
return this.delay(() => (this.requireRecentChallenge(), this.recoveryCodes = Array.from({ length: 6 },
|
|
6923
|
+
return this.delay(() => (this.requireRecentChallenge(), this.recoveryCodes = Array.from({ length: 6 }, Xi), { recoveryCodes: this.recoveryCodes }));
|
|
6924
6924
|
}
|
|
6925
6925
|
/** Forget everything, as a sign out would. */
|
|
6926
6926
|
reset() {
|
|
6927
6927
|
this.user = null, this.mfaPending = !1, this.sessions = [], this.identities = [], this.logs = [], this.tokens.clear();
|
|
6928
6928
|
}
|
|
6929
6929
|
}
|
|
6930
|
-
function
|
|
6930
|
+
function ho(t) {
|
|
6931
6931
|
let e = 2166136261;
|
|
6932
6932
|
const n = () => (e ^= e << 13, e ^= e >>> 17, e ^= e << 5, (e >>> 0) / 4294967296);
|
|
6933
6933
|
for (const r of t) e = (e ^ r.charCodeAt(0)) * 16777619;
|
|
@@ -6975,7 +6975,7 @@ const oe = {
|
|
|
6975
6975
|
targetAlreadyExists: "user_target_already_exists",
|
|
6976
6976
|
argumentInvalid: "general_argument_invalid"
|
|
6977
6977
|
};
|
|
6978
|
-
function
|
|
6978
|
+
function nt(t) {
|
|
6979
6979
|
if (t && typeof t == "object") {
|
|
6980
6980
|
const e = t;
|
|
6981
6981
|
let n = typeof e.message == "string" ? e.message : "Unknown error";
|
|
@@ -6987,11 +6987,11 @@ function it(t) {
|
|
|
6987
6987
|
}
|
|
6988
6988
|
return { message: String(t), type: "", code: 0 };
|
|
6989
6989
|
}
|
|
6990
|
-
function
|
|
6991
|
-
return
|
|
6990
|
+
function wt(t, e) {
|
|
6991
|
+
return nt(t).type === e;
|
|
6992
6992
|
}
|
|
6993
|
-
function
|
|
6994
|
-
const i =
|
|
6993
|
+
function Rt(t, e, n = "link") {
|
|
6994
|
+
const i = nt(t);
|
|
6995
6995
|
switch (i.type) {
|
|
6996
6996
|
case oe.invalidCredentials:
|
|
6997
6997
|
return n === "password" ? e.errorCurrentPassword : e.errorInvalidCredentials;
|
|
@@ -7033,73 +7033,73 @@ function Ut(t, e, n = "link") {
|
|
|
7033
7033
|
}
|
|
7034
7034
|
return i.type === oe.projectNotFound || i.type === oe.unknownOrigin ? e.errorConfig : i.type === oe.routeNotFound ? e.errorConfigEndpoint : i.code === 0 && /fetch|network/i.test(i.message) ? e.errorNetwork : /Invalid `\w+` param/i.test(i.message) ? e.errorGeneric : i.message ? i.message || e.errorGeneric : i.code === 404 || i.type === oe.routeNotFound ? e.errorConfigEndpoint : e.errorGeneric;
|
|
7035
7035
|
}
|
|
7036
|
-
function
|
|
7037
|
-
const e =
|
|
7036
|
+
function fo(t) {
|
|
7037
|
+
const e = nt(t);
|
|
7038
7038
|
return !!(e.type === oe.projectNotFound || e.type === oe.unknownOrigin || e.type === oe.routeNotFound || !e.message && e.code === 404 || e.code === 0 && /fetch|network|load failed|failed to fetch/i.test(e.message));
|
|
7039
7039
|
}
|
|
7040
|
-
const
|
|
7041
|
-
function
|
|
7040
|
+
const li = (t) => `authui:active-team:${t}`;
|
|
7041
|
+
function Vi(t) {
|
|
7042
7042
|
if (typeof localStorage > "u" || !t) return null;
|
|
7043
7043
|
try {
|
|
7044
|
-
return localStorage.getItem(
|
|
7044
|
+
return localStorage.getItem(li(t));
|
|
7045
7045
|
} catch {
|
|
7046
7046
|
return null;
|
|
7047
7047
|
}
|
|
7048
7048
|
}
|
|
7049
|
-
function
|
|
7049
|
+
function go(t, e) {
|
|
7050
7050
|
if (!(typeof localStorage > "u" || !t))
|
|
7051
7051
|
try {
|
|
7052
|
-
e ? localStorage.setItem(
|
|
7052
|
+
e ? localStorage.setItem(li(t), e) : localStorage.removeItem(li(t));
|
|
7053
7053
|
} catch {
|
|
7054
7054
|
}
|
|
7055
7055
|
}
|
|
7056
|
-
const
|
|
7057
|
-
function
|
|
7056
|
+
const Ai = "authui:last-method";
|
|
7057
|
+
function it(t) {
|
|
7058
7058
|
if (!(typeof localStorage > "u")) {
|
|
7059
7059
|
if (!t || t === "mfa" || t === "sign-up")
|
|
7060
7060
|
if (t === "sign-up") t = "email-password";
|
|
7061
7061
|
else return;
|
|
7062
7062
|
try {
|
|
7063
|
-
localStorage.setItem(
|
|
7063
|
+
localStorage.setItem(Ai, t);
|
|
7064
7064
|
} catch {
|
|
7065
7065
|
}
|
|
7066
7066
|
}
|
|
7067
7067
|
}
|
|
7068
|
-
function
|
|
7068
|
+
function et() {
|
|
7069
7069
|
if (typeof localStorage > "u") return null;
|
|
7070
7070
|
try {
|
|
7071
|
-
return localStorage.getItem(
|
|
7071
|
+
return localStorage.getItem(Ai);
|
|
7072
7072
|
} catch {
|
|
7073
7073
|
return null;
|
|
7074
7074
|
}
|
|
7075
7075
|
}
|
|
7076
|
-
function
|
|
7076
|
+
function na() {
|
|
7077
7077
|
if (!(typeof localStorage > "u"))
|
|
7078
7078
|
try {
|
|
7079
|
-
localStorage.removeItem(
|
|
7079
|
+
localStorage.removeItem(Ai);
|
|
7080
7080
|
} catch {
|
|
7081
7081
|
}
|
|
7082
7082
|
}
|
|
7083
|
-
const
|
|
7084
|
-
function
|
|
7083
|
+
const Mt = "authui:pending-oauth";
|
|
7084
|
+
function yo(t) {
|
|
7085
7085
|
if (!(typeof sessionStorage > "u"))
|
|
7086
7086
|
try {
|
|
7087
|
-
sessionStorage.setItem(
|
|
7087
|
+
sessionStorage.setItem(Mt, t);
|
|
7088
7088
|
} catch {
|
|
7089
7089
|
}
|
|
7090
7090
|
}
|
|
7091
|
-
function
|
|
7091
|
+
function rn() {
|
|
7092
7092
|
if (!(typeof sessionStorage > "u"))
|
|
7093
7093
|
try {
|
|
7094
|
-
const t = sessionStorage.getItem(
|
|
7095
|
-
sessionStorage.removeItem(
|
|
7094
|
+
const t = sessionStorage.getItem(Mt);
|
|
7095
|
+
sessionStorage.removeItem(Mt), t && it(`oauth:${t}`);
|
|
7096
7096
|
} catch {
|
|
7097
7097
|
}
|
|
7098
7098
|
}
|
|
7099
|
-
function
|
|
7099
|
+
function Wi() {
|
|
7100
7100
|
if (!(typeof sessionStorage > "u"))
|
|
7101
7101
|
try {
|
|
7102
|
-
sessionStorage.removeItem(
|
|
7102
|
+
sessionStorage.removeItem(Mt);
|
|
7103
7103
|
} catch {
|
|
7104
7104
|
}
|
|
7105
7105
|
}
|
|
@@ -7113,7 +7113,7 @@ function je(t, e, n) {
|
|
|
7113
7113
|
new Error(`Appwrite SDK is missing ${e[0]}(). Update the appwrite package.`)
|
|
7114
7114
|
);
|
|
7115
7115
|
}
|
|
7116
|
-
const
|
|
7116
|
+
const ui = "authui", Gi = ["userId", "secret", "expire", "project", "error", ui], Ki = () => ({
|
|
7117
7117
|
status: "loading",
|
|
7118
7118
|
user: null,
|
|
7119
7119
|
mfaFactors: null,
|
|
@@ -7121,9 +7121,9 @@ const li = "authui", Wi = ["userId", "secret", "expire", "project", "error", li]
|
|
|
7121
7121
|
configured: !1,
|
|
7122
7122
|
configError: null
|
|
7123
7123
|
});
|
|
7124
|
-
class
|
|
7124
|
+
class mo {
|
|
7125
7125
|
constructor() {
|
|
7126
|
-
this.client = null, this.account = null, this.config = null, this.state =
|
|
7126
|
+
this.client = null, this.account = null, this.config = null, this.state = Ki(), this.listeners = /* @__PURE__ */ new Map(), this.refreshPromise = null, this.preview = null, this.teams = null, this.activeTeamId = null;
|
|
7127
7127
|
}
|
|
7128
7128
|
// ───────────────────────────── configuration ─────────────────────────────
|
|
7129
7129
|
/** Configure the Appwrite client. Safe to call more than once; the last call wins. */
|
|
@@ -7131,7 +7131,7 @@ class yo {
|
|
|
7131
7131
|
const n = e.endpoint.trim().replace(/\/+$/, "");
|
|
7132
7132
|
n && !n.endsWith("/v1") && console.warn(
|
|
7133
7133
|
`[authui] endpoint should end with /v1 (got "${e.endpoint}"). Without it Appwrite returns HTML 404 pages.`
|
|
7134
|
-
), this.config = e, this.client = new xe().setEndpoint(e.endpoint).setProject(e.project), this.preview = e.preview ? new
|
|
7134
|
+
), this.config = e, this.client = new xe().setEndpoint(e.endpoint).setProject(e.project), this.preview = e.preview ? new po() : null, this.account = this.preview ? this.preview : new Jt(this.client), this.teams = null, this.activeTeamId = Vi(e.project), this.setState({ configured: !0, status: "loading", configError: null }), this.preview ? this.refresh() : typeof window < "u" && this.handleRedirect().then(() => this.refresh());
|
|
7135
7135
|
}
|
|
7136
7136
|
/**
|
|
7137
7137
|
* Called by <authui-config> when it is on the page but missing endpoint or project.
|
|
@@ -7177,7 +7177,7 @@ class yo {
|
|
|
7177
7177
|
/** List teams the signed-in user belongs to. Empty in preview or when signed out. */
|
|
7178
7178
|
async listTeams() {
|
|
7179
7179
|
if (this.preview || !this.client || this.state.status !== "signed-in") return [];
|
|
7180
|
-
this.teams ??= new
|
|
7180
|
+
this.teams ??= new sn(this.client);
|
|
7181
7181
|
try {
|
|
7182
7182
|
return (await this.teams.list()).teams ?? [];
|
|
7183
7183
|
} catch (e) {
|
|
@@ -7187,7 +7187,7 @@ class yo {
|
|
|
7187
7187
|
getActiveTeamId() {
|
|
7188
7188
|
if (this.activeTeamId) return this.activeTeamId;
|
|
7189
7189
|
const e = this.config?.project;
|
|
7190
|
-
return e ? (this.activeTeamId =
|
|
7190
|
+
return e ? (this.activeTeamId = Vi(e), this.activeTeamId) : null;
|
|
7191
7191
|
}
|
|
7192
7192
|
/**
|
|
7193
7193
|
* Remember the active team locally and emit `active-team`.
|
|
@@ -7195,10 +7195,10 @@ class yo {
|
|
|
7195
7195
|
*/
|
|
7196
7196
|
setActiveTeam(e) {
|
|
7197
7197
|
const n = this.config?.project;
|
|
7198
|
-
n &&
|
|
7198
|
+
n && go(n, e?.$id ?? null), this.activeTeamId = e?.$id ?? null, this.emit("active-team", { teamId: this.activeTeamId, team: e });
|
|
7199
7199
|
}
|
|
7200
7200
|
getStrings() {
|
|
7201
|
-
return { ...
|
|
7201
|
+
return { ...ro, ...this.config?.strings ?? {} };
|
|
7202
7202
|
}
|
|
7203
7203
|
getState() {
|
|
7204
7204
|
return { ...this.state };
|
|
@@ -7224,7 +7224,7 @@ class yo {
|
|
|
7224
7224
|
this.state = { ...this.state, ...e }, this.emit("change", this.getState());
|
|
7225
7225
|
}
|
|
7226
7226
|
fail(e) {
|
|
7227
|
-
const n =
|
|
7227
|
+
const n = nt(e);
|
|
7228
7228
|
throw this.emit("error", n), e;
|
|
7229
7229
|
}
|
|
7230
7230
|
acct() {
|
|
@@ -7244,7 +7244,7 @@ class yo {
|
|
|
7244
7244
|
const n = await this.account.get();
|
|
7245
7245
|
this.setState({ status: "signed-in", user: n, mfaFactors: null, configError: null }), e || this.emit("signed-in", n);
|
|
7246
7246
|
} catch (n) {
|
|
7247
|
-
if (
|
|
7247
|
+
if (wt(n, oe.moreFactorsRequired)) {
|
|
7248
7248
|
let i = null;
|
|
7249
7249
|
try {
|
|
7250
7250
|
i = await je(
|
|
@@ -7255,7 +7255,7 @@ class yo {
|
|
|
7255
7255
|
} catch {
|
|
7256
7256
|
}
|
|
7257
7257
|
this.setState({ status: "mfa-required", user: null, mfaFactors: i });
|
|
7258
|
-
} else if (
|
|
7258
|
+
} else if (wt(n, oe.userBlocked))
|
|
7259
7259
|
await this.purgeLocalSession(), this.setState({
|
|
7260
7260
|
status: "signed-out",
|
|
7261
7261
|
user: null,
|
|
@@ -7266,12 +7266,12 @@ class yo {
|
|
|
7266
7266
|
message: this.getStrings().errorUserBlocked
|
|
7267
7267
|
}
|
|
7268
7268
|
}), e && this.emit("signed-out", void 0);
|
|
7269
|
-
else if (!e &&
|
|
7270
|
-
const o =
|
|
7269
|
+
else if (!e && fo(n)) {
|
|
7270
|
+
const o = Rt(n, this.getStrings()) || this.getStrings().errorConfig;
|
|
7271
7271
|
console.warn(
|
|
7272
7272
|
`[authui] ${o} (endpoint=${this.config?.endpoint ?? "?"}, project=${this.config?.project ?? "?"})`
|
|
7273
7273
|
);
|
|
7274
|
-
const a =
|
|
7274
|
+
const a = nt(n);
|
|
7275
7275
|
this.emit("error", { message: o, type: a.type, code: a.code }), this.setState({
|
|
7276
7276
|
status: "signed-out",
|
|
7277
7277
|
user: null,
|
|
@@ -7316,7 +7316,7 @@ class yo {
|
|
|
7316
7316
|
localStorage.removeItem("cookieFallback");
|
|
7317
7317
|
} catch {
|
|
7318
7318
|
}
|
|
7319
|
-
this.config && !this.preview && (this.client = new xe().setEndpoint(this.config.endpoint).setProject(this.config.project), this.account = new
|
|
7319
|
+
this.config && !this.preview && (this.client = new xe().setEndpoint(this.config.endpoint).setProject(this.config.project), this.account = new Jt(this.client));
|
|
7320
7320
|
}
|
|
7321
7321
|
// ─────────────────────────────── sign in ───────────────────────────────
|
|
7322
7322
|
async signInWithEmailPassword(e, n) {
|
|
@@ -7329,7 +7329,7 @@ class yo {
|
|
|
7329
7329
|
}
|
|
7330
7330
|
async signUp(e, n, i) {
|
|
7331
7331
|
try {
|
|
7332
|
-
await this.acct().create(
|
|
7332
|
+
await this.acct().create(Ge.unique(), e.trim(), n, i?.trim() || void 0), await this.acct().createEmailPasswordSession(e.trim(), n);
|
|
7333
7333
|
} catch (o) {
|
|
7334
7334
|
this.fail(o);
|
|
7335
7335
|
}
|
|
@@ -7372,7 +7372,7 @@ class yo {
|
|
|
7372
7372
|
async sendMagicUrl(e) {
|
|
7373
7373
|
try {
|
|
7374
7374
|
return await this.acct().createMagicURLToken(
|
|
7375
|
-
|
|
7375
|
+
Ge.unique(),
|
|
7376
7376
|
e.trim(),
|
|
7377
7377
|
this.redirectUrl("magic-url"),
|
|
7378
7378
|
this.config?.securityPhrase ?? !0
|
|
@@ -7384,7 +7384,7 @@ class yo {
|
|
|
7384
7384
|
async sendEmailOtp(e) {
|
|
7385
7385
|
try {
|
|
7386
7386
|
return await this.acct().createEmailToken(
|
|
7387
|
-
|
|
7387
|
+
Ge.unique(),
|
|
7388
7388
|
e.trim(),
|
|
7389
7389
|
this.config?.securityPhrase ?? !0
|
|
7390
7390
|
);
|
|
@@ -7394,7 +7394,7 @@ class yo {
|
|
|
7394
7394
|
}
|
|
7395
7395
|
async sendPhoneOtp(e) {
|
|
7396
7396
|
try {
|
|
7397
|
-
return await this.acct().createPhoneToken(
|
|
7397
|
+
return await this.acct().createPhoneToken(Ge.unique(), e.replace(/[\s()-]/g, ""));
|
|
7398
7398
|
} catch (n) {
|
|
7399
7399
|
return this.fail(n);
|
|
7400
7400
|
}
|
|
@@ -7668,8 +7668,8 @@ class yo {
|
|
|
7668
7668
|
/** Build the URL Appwrite should send the user back to for a given flow. */
|
|
7669
7669
|
redirectUrl(e) {
|
|
7670
7670
|
const n = this.config?.redirectUrl ?? (typeof window < "u" ? window.location.origin + window.location.pathname : ""), i = new URL(n, typeof window < "u" ? window.location.href : void 0);
|
|
7671
|
-
for (const o of
|
|
7672
|
-
return i.searchParams.set(
|
|
7671
|
+
for (const o of Gi) i.searchParams.delete(o);
|
|
7672
|
+
return i.searchParams.set(ui, e), i.toString();
|
|
7673
7673
|
}
|
|
7674
7674
|
setPending(e) {
|
|
7675
7675
|
this.setState({ pending: e });
|
|
@@ -7680,7 +7680,7 @@ class yo {
|
|
|
7680
7680
|
*/
|
|
7681
7681
|
async handleRedirect() {
|
|
7682
7682
|
if (typeof window > "u") return !1;
|
|
7683
|
-
const e = new URLSearchParams(window.location.search), n = e.get(
|
|
7683
|
+
const e = new URLSearchParams(window.location.search), n = e.get(ui);
|
|
7684
7684
|
if (!n) return !1;
|
|
7685
7685
|
const i = e.get("userId") ?? "", o = e.get("secret") ?? "";
|
|
7686
7686
|
this.cleanUrl();
|
|
@@ -7697,10 +7697,10 @@ class yo {
|
|
|
7697
7697
|
switch (n) {
|
|
7698
7698
|
case "oauth":
|
|
7699
7699
|
case "magic-url":
|
|
7700
|
-
i && o ? (await this.acct().createSession(i, o), n === "oauth" ?
|
|
7700
|
+
i && o ? (await this.acct().createSession(i, o), n === "oauth" ? rn() : it("magic-url")) : (n === "oauth" && Wi(), a());
|
|
7701
7701
|
break;
|
|
7702
7702
|
case "oauth-failed":
|
|
7703
|
-
|
|
7703
|
+
Wi(), this.setState({
|
|
7704
7704
|
pending: {
|
|
7705
7705
|
type: "notice",
|
|
7706
7706
|
tone: "error",
|
|
@@ -7726,23 +7726,23 @@ class yo {
|
|
|
7726
7726
|
break;
|
|
7727
7727
|
}
|
|
7728
7728
|
} catch (s) {
|
|
7729
|
-
const r =
|
|
7729
|
+
const r = nt(s), d = Rt(s, this.getStrings(), "link");
|
|
7730
7730
|
this.emit("error", r), this.setState({ pending: { type: "notice", message: d, tone: "error" } });
|
|
7731
7731
|
}
|
|
7732
7732
|
return !0;
|
|
7733
7733
|
}
|
|
7734
7734
|
cleanUrl() {
|
|
7735
7735
|
const e = new URL(window.location.href);
|
|
7736
|
-
for (const n of
|
|
7736
|
+
for (const n of Gi) e.searchParams.delete(n);
|
|
7737
7737
|
window.history.replaceState(window.history.state, "", e.toString());
|
|
7738
7738
|
}
|
|
7739
7739
|
/** Test helper. */
|
|
7740
7740
|
reset() {
|
|
7741
|
-
this.client = null, this.account = null, this.teams = null, this.activeTeamId = null, this.preview = null, this.config = null, this.state =
|
|
7741
|
+
this.client = null, this.account = null, this.teams = null, this.activeTeamId = null, this.preview = null, this.config = null, this.state = Ki(), this.listeners.clear();
|
|
7742
7742
|
}
|
|
7743
7743
|
}
|
|
7744
|
-
const M = new
|
|
7745
|
-
class
|
|
7744
|
+
const M = new mo();
|
|
7745
|
+
class wo {
|
|
7746
7746
|
constructor() {
|
|
7747
7747
|
this.listeners = /* @__PURE__ */ new Set(), this.observer = null, this.media = null, this.notify = () => {
|
|
7748
7748
|
const e = this.isDark("auto");
|
|
@@ -7770,14 +7770,14 @@ class mo {
|
|
|
7770
7770
|
this.observer?.disconnect(), this.observer = null, this.media?.removeEventListener?.("change", this.notify), this.media = null;
|
|
7771
7771
|
}
|
|
7772
7772
|
}
|
|
7773
|
-
const
|
|
7773
|
+
const Yi = new wo(), Ji = {
|
|
7774
7774
|
none: "0px",
|
|
7775
7775
|
sm: "0.25rem",
|
|
7776
7776
|
md: "0.625rem",
|
|
7777
7777
|
lg: "0.875rem",
|
|
7778
7778
|
xl: "1.125rem",
|
|
7779
7779
|
full: "1.5rem"
|
|
7780
|
-
},
|
|
7780
|
+
}, bo = Ke`
|
|
7781
7781
|
:host {
|
|
7782
7782
|
/* Light theme (matches :root in the console) */
|
|
7783
7783
|
--authui-background: oklch(1 0 0);
|
|
@@ -7798,7 +7798,8 @@ const Ki = new mo(), Yi = {
|
|
|
7798
7798
|
--authui-destructive-foreground: oklch(0.577 0.245 27.325);
|
|
7799
7799
|
--authui-border: oklch(0.93 0.0035 286.32);
|
|
7800
7800
|
--authui-input: oklch(0.93 0.0035 286.32);
|
|
7801
|
-
|
|
7801
|
+
/* Raised on white for WCAG 1.4.11 / 2.4.7 (~3:1+) UI contrast; zinc-500 */
|
|
7802
|
+
--authui-ring: #71717a;
|
|
7802
7803
|
--authui-brand: #fd366e;
|
|
7803
7804
|
--authui-brand-foreground: #ffffff;
|
|
7804
7805
|
--authui-success: oklch(0.696 0.17 162.48);
|
|
@@ -7856,7 +7857,7 @@ const Ki = new mo(), Yi = {
|
|
|
7856
7857
|
--authui-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
|
|
7857
7858
|
color-scheme: dark;
|
|
7858
7859
|
}
|
|
7859
|
-
`,
|
|
7860
|
+
`, vo = Ke`
|
|
7860
7861
|
*,
|
|
7861
7862
|
*::before,
|
|
7862
7863
|
*::after {
|
|
@@ -8056,6 +8057,32 @@ const Ki = new mo(), Yi = {
|
|
|
8056
8057
|
justify-content: space-between;
|
|
8057
8058
|
gap: 8px;
|
|
8058
8059
|
}
|
|
8060
|
+
/* Forgot after password in DOM (tab order); grid keeps it visually beside the label */
|
|
8061
|
+
.field-with-forgot {
|
|
8062
|
+
display: grid;
|
|
8063
|
+
grid-template-columns: 1fr auto;
|
|
8064
|
+
grid-template-areas:
|
|
8065
|
+
"label forgot"
|
|
8066
|
+
"input input"
|
|
8067
|
+
"meta meta";
|
|
8068
|
+
column-gap: 8px;
|
|
8069
|
+
row-gap: 6px;
|
|
8070
|
+
align-items: center;
|
|
8071
|
+
}
|
|
8072
|
+
.field-with-forgot > .label {
|
|
8073
|
+
grid-area: label;
|
|
8074
|
+
}
|
|
8075
|
+
.field-with-forgot > .field-forgot {
|
|
8076
|
+
grid-area: forgot;
|
|
8077
|
+
justify-self: end;
|
|
8078
|
+
}
|
|
8079
|
+
.field-with-forgot > .input-wrap {
|
|
8080
|
+
grid-area: input;
|
|
8081
|
+
}
|
|
8082
|
+
.field-with-forgot > .hint,
|
|
8083
|
+
.field-with-forgot > .strength {
|
|
8084
|
+
grid-area: meta;
|
|
8085
|
+
}
|
|
8059
8086
|
.label {
|
|
8060
8087
|
font-size: 14px;
|
|
8061
8088
|
line-height: 1;
|
|
@@ -8883,12 +8910,12 @@ const Ki = new mo(), Yi = {
|
|
|
8883
8910
|
}
|
|
8884
8911
|
}
|
|
8885
8912
|
`;
|
|
8886
|
-
var
|
|
8913
|
+
var Io = Object.defineProperty, Ao = (t, e, n, i) => {
|
|
8887
8914
|
for (var o = void 0, a = t.length - 1, s; a >= 0; a--)
|
|
8888
8915
|
(s = t[a]) && (o = s(e, n, o) || o);
|
|
8889
|
-
return o &&
|
|
8916
|
+
return o && Io(e, n, o), o;
|
|
8890
8917
|
}, He;
|
|
8891
|
-
const
|
|
8918
|
+
const cn = (He = class extends Te {
|
|
8892
8919
|
constructor() {
|
|
8893
8920
|
super(...arguments), this.auth = M.getState(), this.unsubscribeStore = null, this.unsubscribeTheme = null, this.stopKeys = (e) => e.stopPropagation();
|
|
8894
8921
|
}
|
|
@@ -8897,7 +8924,7 @@ const rn = (He = class extends Qe {
|
|
|
8897
8924
|
for (const e of He.KEY_EVENTS) this.addEventListener(e, this.stopKeys);
|
|
8898
8925
|
this.auth = M.getState(), this.unsubscribeStore = M.on("change", (e) => {
|
|
8899
8926
|
this.auth = e, this.applyBranding();
|
|
8900
|
-
}), this.unsubscribeTheme =
|
|
8927
|
+
}), this.unsubscribeTheme = Yi.subscribe(() => this.applyBranding()), this.applyBranding();
|
|
8901
8928
|
}
|
|
8902
8929
|
disconnectedCallback() {
|
|
8903
8930
|
super.disconnectedCallback();
|
|
@@ -8909,7 +8936,7 @@ const rn = (He = class extends Qe {
|
|
|
8909
8936
|
}
|
|
8910
8937
|
/** Translate a string key with optional `{placeholders}`. */
|
|
8911
8938
|
t(e, n) {
|
|
8912
|
-
return
|
|
8939
|
+
return co(this.strings[e], n);
|
|
8913
8940
|
}
|
|
8914
8941
|
get config() {
|
|
8915
8942
|
return M.getConfig();
|
|
@@ -8919,27 +8946,27 @@ const rn = (He = class extends Qe {
|
|
|
8919
8946
|
}
|
|
8920
8947
|
/** Push theme and branding from config onto the host element. */
|
|
8921
8948
|
applyBranding() {
|
|
8922
|
-
const e = this.config?.branding, n =
|
|
8949
|
+
const e = this.config?.branding, n = Yi.isDark(e?.theme ?? "auto");
|
|
8923
8950
|
this.setAttribute("data-theme", n ? "dark" : "light"), e?.primary && (this.style.setProperty("--authui-primary", e.primary), this.style.setProperty(
|
|
8924
8951
|
"--authui-primary-foreground",
|
|
8925
8952
|
e.primaryForeground ?? "#ffffff"
|
|
8926
|
-
)), e?.radius &&
|
|
8953
|
+
)), e?.radius && Ji[e.radius] && this.style.setProperty("--authui-radius", Ji[e.radius]);
|
|
8927
8954
|
}
|
|
8928
8955
|
/** Emit a composed custom event from this element. */
|
|
8929
8956
|
fire(e, n) {
|
|
8930
8957
|
this.dispatchEvent(new CustomEvent(e, { detail: n, bubbles: !0, composed: !0 }));
|
|
8931
8958
|
}
|
|
8932
|
-
}, He.styles = [
|
|
8933
|
-
|
|
8959
|
+
}, He.styles = [bo, vo], He.KEY_EVENTS = ["keydown", "keyup", "keypress"], He);
|
|
8960
|
+
Ao([
|
|
8934
8961
|
N()
|
|
8935
|
-
],
|
|
8936
|
-
let qe =
|
|
8937
|
-
var
|
|
8938
|
-
for (var o = i > 1 ? void 0 : i ?
|
|
8962
|
+
], cn.prototype, "auth");
|
|
8963
|
+
let qe = cn;
|
|
8964
|
+
var ko = Object.defineProperty, So = Object.getOwnPropertyDescriptor, fe = (t, e, n, i) => {
|
|
8965
|
+
for (var o = i > 1 ? void 0 : i ? So(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
8939
8966
|
(s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
|
|
8940
|
-
return i && o &&
|
|
8967
|
+
return i && o && ko(e, n, o), o;
|
|
8941
8968
|
};
|
|
8942
|
-
let de = class extends
|
|
8969
|
+
let de = class extends Te {
|
|
8943
8970
|
constructor() {
|
|
8944
8971
|
super(...arguments), this.endpoint = "", this.project = "", this.redirectUrl = "", this.successUrl = "", this.methods = "email-password", this.signUp = "true", this.requireName = "true", this.mfa = "true", this.securityPhrase = "true", this.name = "", this.logo = "", this.theme = "auto", this.radius = "", this.primary = "", this.primaryForeground = "", this.termsUrl = "", this.privacyUrl = "", this.requireAcceptance = "", this.oauthLayout = "", this.preview = "";
|
|
8945
8972
|
}
|
|
@@ -8990,7 +9017,7 @@ let de = class extends Qe {
|
|
|
8990
9017
|
};
|
|
8991
9018
|
}
|
|
8992
9019
|
};
|
|
8993
|
-
de.styles =
|
|
9020
|
+
de.styles = Ke`
|
|
8994
9021
|
:host {
|
|
8995
9022
|
display: none;
|
|
8996
9023
|
}
|
|
@@ -9056,42 +9083,42 @@ fe([
|
|
|
9056
9083
|
F({ type: String })
|
|
9057
9084
|
], de.prototype, "preview", 2);
|
|
9058
9085
|
de = fe([
|
|
9059
|
-
|
|
9086
|
+
Oe("authui-config")
|
|
9060
9087
|
], de);
|
|
9061
|
-
var
|
|
9062
|
-
for (var o = i > 1 ? void 0 : i ?
|
|
9088
|
+
var $o = Object.defineProperty, jo = Object.getOwnPropertyDescriptor, Lt = (t, e, n, i) => {
|
|
9089
|
+
for (var o = i > 1 ? void 0 : i ? jo(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
9063
9090
|
(s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
|
|
9064
|
-
return i && o &&
|
|
9091
|
+
return i && o && $o(e, n, o), o;
|
|
9065
9092
|
};
|
|
9066
|
-
const
|
|
9067
|
-
let
|
|
9068
|
-
function
|
|
9069
|
-
if (!(typeof document > "u" ||
|
|
9070
|
-
|
|
9093
|
+
const Zi = "authui-show:not([ready]){display:none}", oa = "authui-show:not([ready]){display:none}authui-button:not(:defined),authui-user-button:not(:defined){visibility:hidden}";
|
|
9094
|
+
let Qi = !1;
|
|
9095
|
+
function Po() {
|
|
9096
|
+
if (!(typeof document > "u" || Qi)) {
|
|
9097
|
+
Qi = !0;
|
|
9071
9098
|
try {
|
|
9072
9099
|
if (typeof CSSStyleSheet < "u" && "adoptedStyleSheets" in Document.prototype) {
|
|
9073
9100
|
const t = new CSSStyleSheet();
|
|
9074
|
-
t.replaceSync(
|
|
9101
|
+
t.replaceSync(Zi), document.adoptedStyleSheets = [...document.adoptedStyleSheets, t];
|
|
9075
9102
|
return;
|
|
9076
9103
|
}
|
|
9077
9104
|
} catch {
|
|
9078
9105
|
}
|
|
9079
9106
|
if (!document.getElementById("authui-fouc")) {
|
|
9080
9107
|
const t = document.createElement("style");
|
|
9081
|
-
t.id = "authui-fouc", t.textContent =
|
|
9108
|
+
t.id = "authui-fouc", t.textContent = Zi, document.head.appendChild(t);
|
|
9082
9109
|
}
|
|
9083
9110
|
}
|
|
9084
9111
|
}
|
|
9085
|
-
|
|
9086
|
-
const
|
|
9087
|
-
function
|
|
9088
|
-
return t ? t.split(/[\s,]+/).map((e) => e.trim()).filter((e) =>
|
|
9112
|
+
Po();
|
|
9113
|
+
const xo = ["loading", "signed-out", "signed-in", "mfa-required"];
|
|
9114
|
+
function pi(t) {
|
|
9115
|
+
return t ? t.split(/[\s,]+/).map((e) => e.trim()).filter((e) => xo.includes(e)) : [];
|
|
9089
9116
|
}
|
|
9090
|
-
function
|
|
9091
|
-
const i =
|
|
9117
|
+
function Co(t, e, n) {
|
|
9118
|
+
const i = pi(e), o = pi(n);
|
|
9092
9119
|
return !(t === "loading" && !i.includes("loading") || i.length > 0 && !i.includes(t) || o.includes(t));
|
|
9093
9120
|
}
|
|
9094
|
-
let
|
|
9121
|
+
let bt = class extends Te {
|
|
9095
9122
|
constructor() {
|
|
9096
9123
|
super(...arguments), this.when = "", this.unless = "", this.status = M.getState().status, this.unsubscribe = null;
|
|
9097
9124
|
}
|
|
@@ -9103,28 +9130,28 @@ let wt = class extends Qe {
|
|
|
9103
9130
|
}
|
|
9104
9131
|
/** Whether the current status satisfies `when` and `unless`. */
|
|
9105
9132
|
get visible() {
|
|
9106
|
-
return
|
|
9133
|
+
return Co(this.status, this.when, this.unless);
|
|
9107
9134
|
}
|
|
9108
9135
|
updated() {
|
|
9109
|
-
(this.status !== "loading" ||
|
|
9136
|
+
(this.status !== "loading" || pi(this.when).includes("loading")) && (this.setAttribute("ready", ""), this.style.display = "contents");
|
|
9110
9137
|
}
|
|
9111
9138
|
render() {
|
|
9112
|
-
return this.visible ? b`<slot></slot>` :
|
|
9139
|
+
return this.visible ? b`<slot></slot>` : x;
|
|
9113
9140
|
}
|
|
9114
9141
|
};
|
|
9115
|
-
|
|
9142
|
+
Lt([
|
|
9116
9143
|
F({ type: String })
|
|
9117
|
-
],
|
|
9118
|
-
|
|
9144
|
+
], bt.prototype, "when", 2);
|
|
9145
|
+
Lt([
|
|
9119
9146
|
F({ type: String })
|
|
9120
|
-
],
|
|
9121
|
-
|
|
9147
|
+
], bt.prototype, "unless", 2);
|
|
9148
|
+
Lt([
|
|
9122
9149
|
N()
|
|
9123
|
-
],
|
|
9124
|
-
|
|
9125
|
-
|
|
9126
|
-
],
|
|
9127
|
-
const
|
|
9150
|
+
], bt.prototype, "status", 2);
|
|
9151
|
+
bt = Lt([
|
|
9152
|
+
Oe("authui-show")
|
|
9153
|
+
], bt);
|
|
9154
|
+
const Uo = Ke`
|
|
9128
9155
|
:host {
|
|
9129
9156
|
display: block;
|
|
9130
9157
|
width: 100%;
|
|
@@ -9271,7 +9298,7 @@ const Co = Ge`
|
|
|
9271
9298
|
qr: se(
|
|
9272
9299
|
G`<rect width="5" height="5" x="3" y="3" rx="1"/><rect width="5" height="5" x="16" y="3" rx="1"/><rect width="5" height="5" x="3" y="16" rx="1"/><path d="M21 16h-3a2 2 0 0 0-2 2v3"/><path d="M21 21v.01"/><path d="M12 7v3a2 2 0 0 1-2 2H7"/><path d="M3 12h.01"/><path d="M12 3h.01"/><path d="M12 16v.01"/><path d="M16 12h1"/><path d="M21 12v.01"/><path d="M12 21v-1"/>`
|
|
9273
9300
|
)
|
|
9274
|
-
}, me = (t, e = "0 0 24 24") => b`<svg xmlns="http://www.w3.org/2000/svg" viewBox=${e} aria-hidden="true">${t}</svg>`,
|
|
9301
|
+
}, me = (t, e = "0 0 24 24") => b`<svg xmlns="http://www.w3.org/2000/svg" viewBox=${e} aria-hidden="true">${t}</svg>`, Ro = {
|
|
9275
9302
|
google: me(
|
|
9276
9303
|
G`<path fill="#4285F4" d="M23.49 12.27c0-.79-.07-1.54-.19-2.27H12v4.51h6.47a5.57 5.57 0 0 1-2.4 3.58v3h3.86c2.26-2.09 3.56-5.17 3.56-8.82z"/><path fill="#34A853" d="M12 24c3.24 0 5.95-1.08 7.93-2.91l-3.86-3c-1.08.72-2.45 1.16-4.07 1.16-3.13 0-5.78-2.11-6.73-4.96H1.29v3.09A11.99 11.99 0 0 0 12 24z"/><path fill="#FBBC05" d="M5.27 14.29A7.2 7.2 0 0 1 4.89 12c0-.8.14-1.57.38-2.29V6.62H1.29A11.97 11.97 0 0 0 0 12c0 1.94.46 3.77 1.29 5.38l3.98-3.09z"/><path fill="#EA4335" d="M12 4.75c1.77 0 3.35.61 4.6 1.8l3.42-3.42C17.95 1.19 15.24 0 12 0 7.31 0 3.26 2.69 1.29 6.62l3.98 3.09C6.22 6.86 8.87 4.75 12 4.75z"/>`
|
|
9277
9304
|
),
|
|
@@ -9327,22 +9354,22 @@ const Co = Ge`
|
|
|
9327
9354
|
G`<path fill="#003087" d="M7.076 21.337H2.47a.641.641 0 0 1-.633-.74L4.944.901C5.026.382 5.474 0 5.998 0h7.46c2.57 0 4.578.543 5.69 1.81 1.01 1.15 1.304 2.42 1.012 4.287-.023.143-.047.288-.077.437-.983 5.05-4.349 6.797-8.647 6.797h-2.19c-.524 0-.968.382-1.05.9l-1.12 7.106zm14.146-14.42a3.35 3.35 0 0 0-.607-.541c-.013.076-.026.175-.041.254-.93 4.778-4.005 7.201-9.138 7.201h-2.19a.563.563 0 0 0-.556.479l-1.187 7.527h-.506l-.24 1.516a.56.56 0 0 0 .554.647h3.882c.46 0 .85-.334.922-.788.06-.26.76-4.852.816-5.09a.932.932 0 0 1 .923-.788h.58c3.76 0 6.705-1.528 7.565-5.946.36-1.847.174-3.388-.777-4.471z"/>`
|
|
9328
9355
|
)
|
|
9329
9356
|
};
|
|
9330
|
-
function
|
|
9331
|
-
return
|
|
9357
|
+
function ft(t) {
|
|
9358
|
+
return Ro[t] ?? q.globe;
|
|
9332
9359
|
}
|
|
9333
|
-
function
|
|
9360
|
+
function ki(t) {
|
|
9334
9361
|
const e = (t.trim()[0] ?? "?").toUpperCase();
|
|
9335
9362
|
return /[A-Z0-9]/i.test(e) ? e : q.user;
|
|
9336
9363
|
}
|
|
9337
|
-
function
|
|
9364
|
+
function vt(t) {
|
|
9338
9365
|
typeof document > "u" || (document.querySelector("authui-modal") || document.body.appendChild(document.createElement("authui-modal")), queueMicrotask(() => {
|
|
9339
9366
|
window.dispatchEvent(new CustomEvent("authui:open", { detail: { view: t } }));
|
|
9340
9367
|
}));
|
|
9341
9368
|
}
|
|
9342
|
-
function
|
|
9369
|
+
function Mo() {
|
|
9343
9370
|
typeof window > "u" || window.dispatchEvent(new CustomEvent("authui:close"));
|
|
9344
9371
|
}
|
|
9345
|
-
function
|
|
9372
|
+
function hi(t) {
|
|
9346
9373
|
const e = {
|
|
9347
9374
|
length: t.length >= 8,
|
|
9348
9375
|
long: t.length >= 12,
|
|
@@ -9358,24 +9385,25 @@ function pi(t) {
|
|
|
9358
9385
|
let i, o;
|
|
9359
9386
|
return !e.length || n <= 1 ? (i = 1, o = "passwordStrengthTooWeak") : n === 2 ? (i = 2, o = "passwordStrengthWeak") : n === 3 ? (i = 3, o = "passwordStrengthFair") : n >= 5 && e.long && e.lower && e.upper && e.number && e.symbol ? (i = 4, o = "passwordStrengthVeryStrong") : (i = 4, o = "passwordStrengthStrong"), { level: i, percent: i * 25, labelKey: o, checks: e };
|
|
9360
9387
|
}
|
|
9361
|
-
var
|
|
9362
|
-
for (var o = i > 1 ? void 0 : i ?
|
|
9388
|
+
var Eo = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, ye = (t, e, n, i) => {
|
|
9389
|
+
for (var o = i > 1 ? void 0 : i ? qo(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
9363
9390
|
(s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
|
|
9364
|
-
return i && o &&
|
|
9391
|
+
return i && o && Eo(e, n, o), o;
|
|
9365
9392
|
};
|
|
9393
|
+
const Ve = "authui-error";
|
|
9366
9394
|
let he = class extends qe {
|
|
9367
9395
|
constructor() {
|
|
9368
9396
|
super(...arguments), this.view = "sign-in", this.embedded = !1, this.step = "sign-in", this.busy = !1, this.error = "", this.notice = null, this.showPassword = !1, this.showPasswordConfirm = !1, this.expandedOAuth = null, this.token = null, this.focusOnStep = !1, this.resendCooldownUntil = 0, this.challenge = null, this.recovery = null, this.email = "", this.password = "", this.passwordConfirm = "", this.name = "", this.phone = "", this.code = "", this.legalAccepted = !1, this.legalErrorFromOAuth = !1, this.onSignIn = (t) => {
|
|
9369
9397
|
t.preventDefault(), this.requireValid(t) && this.run(async () => {
|
|
9370
|
-
await M.signInWithEmailPassword(this.email, this.password), this.password = "",
|
|
9398
|
+
await M.signInWithEmailPassword(this.email, this.password), this.password = "", it("email-password"), this.fire("authui-success", { method: "email-password" });
|
|
9371
9399
|
});
|
|
9372
9400
|
}, this.onSignUp = (t) => {
|
|
9373
9401
|
t.preventDefault(), this.requireValid(t) && (this.legalErrorFromOAuth = !1, this.ensureLegalAccepted() && this.run(async () => {
|
|
9374
|
-
await M.signUp(this.email, this.password, this.name), this.password = "",
|
|
9402
|
+
await M.signUp(this.email, this.password, this.name), this.password = "", it("email-password"), this.fire("authui-success", { method: "sign-up" });
|
|
9375
9403
|
}));
|
|
9376
9404
|
}, this.onGuest = () => {
|
|
9377
9405
|
this.run(async () => {
|
|
9378
|
-
await M.signInAnonymously(),
|
|
9406
|
+
await M.signInAnonymously(), it("anonymous"), this.fire("authui-success", { method: "anonymous" });
|
|
9379
9407
|
});
|
|
9380
9408
|
}, this.onOAuth = (t) => {
|
|
9381
9409
|
if (this.step === "sign-up" && !this.ensureLegalAccepted()) {
|
|
@@ -9383,8 +9411,8 @@ let he = class extends qe {
|
|
|
9383
9411
|
return;
|
|
9384
9412
|
}
|
|
9385
9413
|
this.legalErrorFromOAuth = !1, this.run(async () => {
|
|
9386
|
-
if (
|
|
9387
|
-
|
|
9414
|
+
if (yo(t), await M.signInWithOAuth(t), M.isPreview) {
|
|
9415
|
+
rn(), this.fire("authui-success", { method: "oauth" });
|
|
9388
9416
|
return;
|
|
9389
9417
|
}
|
|
9390
9418
|
await new Promise((e) => setTimeout(e, 4e3));
|
|
@@ -9432,7 +9460,7 @@ let he = class extends qe {
|
|
|
9432
9460
|
if (t.preventDefault(), !this.requireValid(t)) return;
|
|
9433
9461
|
const e = this.token;
|
|
9434
9462
|
e && this.run(async () => {
|
|
9435
|
-
await M.signInWithToken(e.userId, this.code), this.code = "", this.token = null,
|
|
9463
|
+
await M.signInWithToken(e.userId, this.code), this.code = "", this.token = null, it(e.kind), this.fire("authui-success", { method: e.kind });
|
|
9436
9464
|
}, "code");
|
|
9437
9465
|
}, this.onChooseFactor = (t) => {
|
|
9438
9466
|
this.run(async () => {
|
|
@@ -9450,7 +9478,7 @@ let he = class extends qe {
|
|
|
9450
9478
|
try {
|
|
9451
9479
|
await M.signOut();
|
|
9452
9480
|
} catch (t) {
|
|
9453
|
-
if (!
|
|
9481
|
+
if (!wt(t, oe.sessionNotFound)) throw t;
|
|
9454
9482
|
}
|
|
9455
9483
|
this.go("sign-in");
|
|
9456
9484
|
});
|
|
@@ -9491,7 +9519,7 @@ let he = class extends qe {
|
|
|
9491
9519
|
try {
|
|
9492
9520
|
await t();
|
|
9493
9521
|
} catch (n) {
|
|
9494
|
-
this.error =
|
|
9522
|
+
this.error = Rt(n, this.strings, e);
|
|
9495
9523
|
} finally {
|
|
9496
9524
|
this.busy = !1;
|
|
9497
9525
|
}
|
|
@@ -9523,7 +9551,7 @@ let he = class extends qe {
|
|
|
9523
9551
|
>
|
|
9524
9552
|
${q.x}
|
|
9525
9553
|
</button>
|
|
9526
|
-
</div>` :
|
|
9554
|
+
</div>` : x}
|
|
9527
9555
|
${t}
|
|
9528
9556
|
</div>
|
|
9529
9557
|
`;
|
|
@@ -9565,38 +9593,29 @@ let he = class extends qe {
|
|
|
9565
9593
|
@error=${(o) => {
|
|
9566
9594
|
o.target.hidden = !0;
|
|
9567
9595
|
}}
|
|
9568
|
-
/>` :
|
|
9569
|
-
${M.isPreview ? b`<span class="badge badge-info preview">${this.t("preview")}</span>` :
|
|
9596
|
+
/>` : x}
|
|
9597
|
+
${M.isPreview ? b`<span class="badge badge-info preview">${this.t("preview")}</span>` : x}
|
|
9570
9598
|
<h2 class="title" id="authui-title">${n}</h2>
|
|
9571
|
-
${i ? b`<p class="description">${i}</p>` :
|
|
9599
|
+
${i ? b`<p class="description">${i}</p>` : x}
|
|
9572
9600
|
</div>
|
|
9573
9601
|
`;
|
|
9574
9602
|
}
|
|
9575
9603
|
renderError() {
|
|
9576
|
-
return this.error ? b`<div class="alert alert-error" role="alert">
|
|
9604
|
+
return this.error ? b`<div class="alert alert-error" role="alert" id=${Ve}>
|
|
9577
9605
|
${q.alert}
|
|
9578
9606
|
<div class="alert-body">${this.error}</div>
|
|
9579
|
-
</div>` :
|
|
9607
|
+
</div>` : x;
|
|
9580
9608
|
}
|
|
9581
9609
|
submitButton(t, e = "btn-primary") {
|
|
9582
9610
|
return b`<button class="btn ${e} btn-block" type="submit" ?disabled=${this.busy}>
|
|
9583
|
-
${this.busy ? b`<span class="spinner" aria-hidden="true"></span>` :
|
|
9611
|
+
${this.busy ? b`<span class="spinner" aria-hidden="true"></span>` : x} ${t}
|
|
9584
9612
|
</button>`;
|
|
9585
9613
|
}
|
|
9586
9614
|
passwordField(t) {
|
|
9587
|
-
const e = this[t.field], n = t.field === "passwordConfirm" ? this.showPasswordConfirm : this.showPassword, i = t.meter ?
|
|
9615
|
+
const e = this[t.field], n = t.field === "passwordConfirm" ? this.showPasswordConfirm : this.showPassword, i = t.meter ? hi(e) : null;
|
|
9588
9616
|
return b`
|
|
9589
|
-
<div class="field">
|
|
9590
|
-
<
|
|
9591
|
-
<label class="label" for=${t.id}>${t.label}</label>
|
|
9592
|
-
${t.forgot ? b`<button
|
|
9593
|
-
type="button"
|
|
9594
|
-
class="btn btn-link small"
|
|
9595
|
-
@click=${() => this.go("forgot-password")}
|
|
9596
|
-
>
|
|
9597
|
-
${this.t("forgotPassword")}
|
|
9598
|
-
</button>` : C}
|
|
9599
|
-
</div>
|
|
9617
|
+
<div class="field${t.forgot ? " field-with-forgot" : ""}">
|
|
9618
|
+
<label class="label" for=${t.id}>${t.label}</label>
|
|
9600
9619
|
<div class="input-wrap">
|
|
9601
9620
|
<input
|
|
9602
9621
|
class="input"
|
|
@@ -9607,6 +9626,8 @@ let he = class extends qe {
|
|
|
9607
9626
|
minlength="8"
|
|
9608
9627
|
.value=${e}
|
|
9609
9628
|
@input=${this.bind(t.field)}
|
|
9629
|
+
aria-invalid=${this.error ? "true" : x}
|
|
9630
|
+
aria-describedby=${this.error ? Ve : x}
|
|
9610
9631
|
/>
|
|
9611
9632
|
<button
|
|
9612
9633
|
type="button"
|
|
@@ -9619,6 +9640,13 @@ let he = class extends qe {
|
|
|
9619
9640
|
${n ? q.eyeOff : q.eye}
|
|
9620
9641
|
</button>
|
|
9621
9642
|
</div>
|
|
9643
|
+
${t.forgot ? b`<button
|
|
9644
|
+
type="button"
|
|
9645
|
+
class="btn btn-link small field-forgot"
|
|
9646
|
+
@click=${() => this.go("forgot-password")}
|
|
9647
|
+
>
|
|
9648
|
+
${this.t("forgotPassword")}
|
|
9649
|
+
</button>` : x}
|
|
9622
9650
|
${i && e ? b`<div class="strength" aria-live="polite">
|
|
9623
9651
|
<div
|
|
9624
9652
|
class="strength-meter"
|
|
@@ -9633,7 +9661,7 @@ let he = class extends qe {
|
|
|
9633
9661
|
<span></span><span></span><span></span><span></span>
|
|
9634
9662
|
</div>
|
|
9635
9663
|
<p class="strength-label">${this.t(i.labelKey)}</p>
|
|
9636
|
-
</div>` : t.hint ? b`<p class="hint">${t.hint}</p>` :
|
|
9664
|
+
</div>` : t.hint ? b`<p class="hint">${t.hint}</p>` : x}
|
|
9637
9665
|
</div>
|
|
9638
9666
|
`;
|
|
9639
9667
|
}
|
|
@@ -9650,6 +9678,8 @@ let he = class extends qe {
|
|
|
9650
9678
|
inputmode="email"
|
|
9651
9679
|
.value=${this.email}
|
|
9652
9680
|
@input=${this.bind("email")}
|
|
9681
|
+
aria-invalid=${this.error ? "true" : x}
|
|
9682
|
+
aria-describedby=${this.error ? Ve : x}
|
|
9653
9683
|
/>
|
|
9654
9684
|
</div>
|
|
9655
9685
|
`;
|
|
@@ -9669,6 +9699,8 @@ let he = class extends qe {
|
|
|
9669
9699
|
required
|
|
9670
9700
|
.value=${this.code}
|
|
9671
9701
|
@input=${this.bind("code")}
|
|
9702
|
+
aria-invalid=${this.error ? "true" : x}
|
|
9703
|
+
aria-describedby=${this.error ? Ve : x}
|
|
9672
9704
|
/>
|
|
9673
9705
|
</div>
|
|
9674
9706
|
`;
|
|
@@ -9684,24 +9716,28 @@ let he = class extends qe {
|
|
|
9684
9716
|
}
|
|
9685
9717
|
legalLinks() {
|
|
9686
9718
|
const t = this.config?.legal;
|
|
9687
|
-
return !t?.termsUrl && !t?.privacyUrl ?
|
|
9719
|
+
return !t?.termsUrl && !t?.privacyUrl ? x : b`${t.termsUrl ? b`<a href=${t.termsUrl} target="_blank" rel="noopener">${this.t("terms")}</a>` : x}${t.termsUrl && t.privacyUrl ? b` ${this.t("and")} ` : x}${t.privacyUrl ? b`<a href=${t.privacyUrl} target="_blank" rel="noopener">${this.t("privacy")}</a>` : x}`;
|
|
9688
9720
|
}
|
|
9689
9721
|
legal() {
|
|
9690
9722
|
const t = this.config?.legal;
|
|
9691
|
-
return !t?.termsUrl && !t?.privacyUrl || this.step === "sign-up" && this.needsLegalAcceptance() ?
|
|
9723
|
+
return !t?.termsUrl && !t?.privacyUrl || this.step === "sign-up" && this.needsLegalAcceptance() ? x : b`<p class="legal">${this.t("agreeTo")} ${this.legalLinks()}.</p>`;
|
|
9692
9724
|
}
|
|
9693
9725
|
/** Required acceptance checkbox on sign-up when legal.requireAcceptance is set. */
|
|
9694
9726
|
legalAcceptField() {
|
|
9695
|
-
|
|
9727
|
+
if (!this.needsLegalAcceptance()) return x;
|
|
9728
|
+
const t = this.error === this.t("errorLegalRequired");
|
|
9729
|
+
return b`<label class="legal-accept">
|
|
9696
9730
|
<input
|
|
9697
9731
|
type="checkbox"
|
|
9698
9732
|
.checked=${this.legalAccepted}
|
|
9699
|
-
|
|
9700
|
-
|
|
9733
|
+
aria-invalid=${t ? "true" : x}
|
|
9734
|
+
aria-describedby=${t ? Ve : x}
|
|
9735
|
+
@change=${(e) => {
|
|
9736
|
+
this.legalAccepted = e.target.checked, this.legalAccepted && this.error === this.t("errorLegalRequired") && (this.error = "", this.legalErrorFromOAuth = !1);
|
|
9701
9737
|
}}
|
|
9702
9738
|
/>
|
|
9703
9739
|
<span>${this.t("acceptLegal")} ${this.legalLinks()}.</span>
|
|
9704
|
-
</label
|
|
9740
|
+
</label>`;
|
|
9705
9741
|
}
|
|
9706
9742
|
backLink(t = "sign-in") {
|
|
9707
9743
|
return b`<div class="links">
|
|
@@ -9749,10 +9785,10 @@ let he = class extends qe {
|
|
|
9749
9785
|
<div class="stack">
|
|
9750
9786
|
<div class="row">
|
|
9751
9787
|
<div class="inline">
|
|
9752
|
-
<span class="avatar">${
|
|
9788
|
+
<span class="avatar">${ki(e)}</span>
|
|
9753
9789
|
<div class="row-main">
|
|
9754
9790
|
<span class="row-title" title=${e}>${e}</span>
|
|
9755
|
-
${t.email && t.name ? b`<span class="row-sub" title=${t.email}>${t.email}</span>` :
|
|
9791
|
+
${t.email && t.name ? b`<span class="row-sub" title=${t.email}>${t.email}</span>` : x}
|
|
9756
9792
|
</div>
|
|
9757
9793
|
</div>
|
|
9758
9794
|
</div>
|
|
@@ -9760,11 +9796,11 @@ let he = class extends qe {
|
|
|
9760
9796
|
<div class="stack-sm">
|
|
9761
9797
|
${this.config?.successUrl ? b`<a class="btn btn-primary btn-block" href=${this.config.successUrl}
|
|
9762
9798
|
>${this.t("continue")}</a
|
|
9763
|
-
>` :
|
|
9799
|
+
>` : x}
|
|
9764
9800
|
<button
|
|
9765
9801
|
class="btn btn-outline btn-block"
|
|
9766
9802
|
@click=${() => {
|
|
9767
|
-
this.embedded ? this.fire("authui-open", { view: "account" }) :
|
|
9803
|
+
this.embedded ? this.fire("authui-open", { view: "account" }) : vt("account");
|
|
9768
9804
|
}}
|
|
9769
9805
|
>
|
|
9770
9806
|
${q.settings} ${this.t("manageAccount")}
|
|
@@ -9778,8 +9814,8 @@ let he = class extends qe {
|
|
|
9778
9814
|
}
|
|
9779
9815
|
renderProviders() {
|
|
9780
9816
|
const t = [...this.config?.methods?.oauth ?? []];
|
|
9781
|
-
if (t.length === 0) return
|
|
9782
|
-
const e =
|
|
9817
|
+
if (t.length === 0) return x;
|
|
9818
|
+
const e = et(), n = t.find((s) => e === `oauth:${s}`) ?? null, i = this.config?.methods?.oauthLayout, o = i === "horizontal" || i === "icon" ? "icon" : i === "stack" || i === "accordion" ? i : t.length <= 2 ? "stack" : "accordion";
|
|
9783
9819
|
if (o === "icon") {
|
|
9784
9820
|
const s = [...t].sort((r, d) => {
|
|
9785
9821
|
const c = e === `oauth:${r}` ? 0 : 1, p = e === `oauth:${d}` ? 0 : 1;
|
|
@@ -9788,7 +9824,7 @@ let he = class extends qe {
|
|
|
9788
9824
|
return b`
|
|
9789
9825
|
<div class="providers icon">
|
|
9790
9826
|
${s.map((r) => {
|
|
9791
|
-
const d = e === `oauth:${r}`, c = this.t("continueWith", { provider:
|
|
9827
|
+
const d = e === `oauth:${r}`, c = this.t("continueWith", { provider: ht(r) });
|
|
9792
9828
|
return b`<button
|
|
9793
9829
|
type="button"
|
|
9794
9830
|
class="btn btn-outline ${d ? "last-used" : ""}"
|
|
@@ -9797,8 +9833,8 @@ let he = class extends qe {
|
|
|
9797
9833
|
aria-label=${d ? `${c}. ${this.t("lastUsed")}` : c}
|
|
9798
9834
|
title=${c}
|
|
9799
9835
|
>
|
|
9800
|
-
${
|
|
9801
|
-
${d ? b`<span class="oauth-last-used-dot" aria-hidden="true"></span>` :
|
|
9836
|
+
${ft(r)}
|
|
9837
|
+
${d ? b`<span class="oauth-last-used-dot" aria-hidden="true"></span>` : x}
|
|
9802
9838
|
</button>`;
|
|
9803
9839
|
})}
|
|
9804
9840
|
</div>
|
|
@@ -9812,7 +9848,7 @@ let he = class extends qe {
|
|
|
9812
9848
|
return b`
|
|
9813
9849
|
<div class="providers">
|
|
9814
9850
|
${s.map((r) => {
|
|
9815
|
-
const d = e === `oauth:${r}`, c = this.t("continueWith", { provider:
|
|
9851
|
+
const d = e === `oauth:${r}`, c = this.t("continueWith", { provider: ht(r) });
|
|
9816
9852
|
return b`<button
|
|
9817
9853
|
type="button"
|
|
9818
9854
|
class="btn btn-outline ${d ? "last-used" : ""}"
|
|
@@ -9820,9 +9856,9 @@ let he = class extends qe {
|
|
|
9820
9856
|
?disabled=${this.busy}
|
|
9821
9857
|
aria-label=${d ? `${c}. ${this.t("lastUsed")}` : c}
|
|
9822
9858
|
>
|
|
9823
|
-
${
|
|
9859
|
+
${ft(r)}
|
|
9824
9860
|
<span>${c}</span>
|
|
9825
|
-
${d ? b`<span class="last-used-badge">${this.t("lastUsed")}</span>` :
|
|
9861
|
+
${d ? b`<span class="last-used-badge">${this.t("lastUsed")}</span>` : x}
|
|
9826
9862
|
</button>`;
|
|
9827
9863
|
})}
|
|
9828
9864
|
</div>
|
|
@@ -9837,7 +9873,7 @@ let he = class extends qe {
|
|
|
9837
9873
|
}}
|
|
9838
9874
|
>
|
|
9839
9875
|
${t.map((s) => {
|
|
9840
|
-
const r = e === `oauth:${s}`, d = a === s, c = this.t("continueWith", { provider:
|
|
9876
|
+
const r = e === `oauth:${s}`, d = a === s, c = this.t("continueWith", { provider: ht(s) });
|
|
9841
9877
|
return b`<div
|
|
9842
9878
|
class="provider-slot ${d ? "is-expanded" : ""}"
|
|
9843
9879
|
@mouseenter=${() => {
|
|
@@ -9854,14 +9890,14 @@ let he = class extends qe {
|
|
|
9854
9890
|
?disabled=${this.busy}
|
|
9855
9891
|
aria-label=${r ? `${c}. ${this.t("lastUsed")}` : c}
|
|
9856
9892
|
>
|
|
9857
|
-
${
|
|
9893
|
+
${ft(s)}
|
|
9858
9894
|
<span class="provider-label"
|
|
9859
9895
|
><span><span class="provider-label-text">${c}</span></span></span
|
|
9860
9896
|
>
|
|
9861
9897
|
${r ? b`<span class="oauth-last-used" data-last-used=${s} aria-hidden="true">
|
|
9862
9898
|
<span class="oauth-last-used-dot"></span>
|
|
9863
9899
|
<span class="oauth-last-used-pill">${this.t("lastUsed")}</span>
|
|
9864
|
-
</span>` :
|
|
9900
|
+
</span>` : x}
|
|
9865
9901
|
</button>
|
|
9866
9902
|
</div>`;
|
|
9867
9903
|
})}
|
|
@@ -9877,22 +9913,22 @@ let he = class extends qe {
|
|
|
9877
9913
|
return b`
|
|
9878
9914
|
<div class="stack">
|
|
9879
9915
|
${this.renderProviders()}
|
|
9880
|
-
${n && (e || i.length > 0) ? b`<div class="separator-text">${this.t("or")}</div>` :
|
|
9916
|
+
${n && (e || i.length > 0) ? b`<div class="separator-text">${this.t("or")}</div>` : x}
|
|
9881
9917
|
${e ? b`<form
|
|
9882
|
-
class="form ${
|
|
9918
|
+
class="form ${et() === "email-password" ? "last-used-form" : ""}"
|
|
9883
9919
|
@submit=${this.onSignIn}
|
|
9884
9920
|
novalidate
|
|
9885
9921
|
>
|
|
9886
|
-
${
|
|
9922
|
+
${et() === "email-password" ? b`<p class="hint">
|
|
9887
9923
|
<span class="last-used-badge">${this.t("lastUsed")}</span>
|
|
9888
|
-
</p>` :
|
|
9924
|
+
</p>` : x}
|
|
9889
9925
|
${this.emailField()}
|
|
9890
9926
|
${this.passwordField({ label: this.t("password"), autocomplete: "current-password", id: "authui-password", field: "password", forgot: !0 })}
|
|
9891
9927
|
${this.renderError()} ${this.submitButton(this.t("signIn"))}
|
|
9892
9928
|
</form>` : this.renderError()}
|
|
9893
9929
|
${i.length > 0 ? b`<div class="stack-sm">
|
|
9894
9930
|
${i.map((o) => {
|
|
9895
|
-
const a =
|
|
9931
|
+
const a = et() === o.step;
|
|
9896
9932
|
return b`<button
|
|
9897
9933
|
type="button"
|
|
9898
9934
|
class="btn btn-secondary btn-block ${a ? "last-used" : ""}"
|
|
@@ -9900,25 +9936,25 @@ let he = class extends qe {
|
|
|
9900
9936
|
?disabled=${this.busy}
|
|
9901
9937
|
>
|
|
9902
9938
|
${o.icon} ${o.label}
|
|
9903
|
-
${a ? b`<span class="last-used-badge">${this.t("lastUsed")}</span>` :
|
|
9939
|
+
${a ? b`<span class="last-used-badge">${this.t("lastUsed")}</span>` : x}
|
|
9904
9940
|
</button>`;
|
|
9905
9941
|
})}
|
|
9906
|
-
</div>` :
|
|
9942
|
+
</div>` : x}
|
|
9907
9943
|
${t.anonymous ? b`<button
|
|
9908
9944
|
type="button"
|
|
9909
|
-
class="btn btn-ghost btn-block ${
|
|
9945
|
+
class="btn btn-ghost btn-block ${et() === "anonymous" ? "last-used" : ""}"
|
|
9910
9946
|
@click=${this.onGuest}
|
|
9911
9947
|
?disabled=${this.busy}
|
|
9912
9948
|
>
|
|
9913
9949
|
${q.ghost} ${this.t("continueAsGuest")}
|
|
9914
|
-
${
|
|
9915
|
-
</button>` :
|
|
9950
|
+
${et() === "anonymous" ? b`<span class="last-used-badge">${this.t("lastUsed")}</span>` : x}
|
|
9951
|
+
</button>` : x}
|
|
9916
9952
|
${e && this.config?.signUp !== !1 ? b`<div class="links">
|
|
9917
9953
|
<span>${this.t("noAccount")}</span>
|
|
9918
9954
|
<button type="button" class="btn btn-link" @click=${() => this.go("sign-up")}>
|
|
9919
9955
|
${this.t("signUp")}
|
|
9920
9956
|
</button>
|
|
9921
|
-
</div>` :
|
|
9957
|
+
</div>` : x}
|
|
9922
9958
|
${this.legal()}
|
|
9923
9959
|
</div>
|
|
9924
9960
|
`;
|
|
@@ -9927,8 +9963,8 @@ let he = class extends qe {
|
|
|
9927
9963
|
const t = this.legalErrorFromOAuth && this.error === this.t("errorLegalRequired");
|
|
9928
9964
|
return b`
|
|
9929
9965
|
<div class="stack">
|
|
9930
|
-
${this.renderProviders()} ${t ? this.renderError() :
|
|
9931
|
-
${(this.config?.methods?.oauth?.length ?? 0) > 0 ? b`<div class="separator-text">${this.t("or")}</div>` :
|
|
9966
|
+
${this.renderProviders()} ${t ? this.renderError() : x}
|
|
9967
|
+
${(this.config?.methods?.oauth?.length ?? 0) > 0 ? b`<div class="separator-text">${this.t("or")}</div>` : x}
|
|
9932
9968
|
<form class="form" @submit=${this.onSignUp} novalidate>
|
|
9933
9969
|
${this.config?.requireName !== !1 ? b`<div class="field">
|
|
9934
9970
|
<label class="label" for="authui-name">${this.t("name")}</label>
|
|
@@ -9940,11 +9976,13 @@ let he = class extends qe {
|
|
|
9940
9976
|
required
|
|
9941
9977
|
.value=${this.name}
|
|
9942
9978
|
@input=${this.bind("name")}
|
|
9979
|
+
aria-invalid=${this.error ? "true" : x}
|
|
9980
|
+
aria-describedby=${this.error ? Ve : x}
|
|
9943
9981
|
/>
|
|
9944
|
-
</div>` :
|
|
9982
|
+
</div>` : x}
|
|
9945
9983
|
${this.emailField()}
|
|
9946
9984
|
${this.passwordField({ label: this.t("password"), autocomplete: "new-password", id: "authui-password", field: "password", hint: this.t("passwordHint"), meter: !0 })}
|
|
9947
|
-
${this.legalAcceptField()} ${t ?
|
|
9985
|
+
${this.legalAcceptField()} ${t ? x : this.renderError()}
|
|
9948
9986
|
${this.submitButton(this.t("createAccount"))}
|
|
9949
9987
|
</form>
|
|
9950
9988
|
<div class="links">
|
|
@@ -10012,7 +10050,7 @@ let he = class extends qe {
|
|
|
10012
10050
|
${this.t("securityPhrase")}: <span class="code">${t}</span>
|
|
10013
10051
|
</div>
|
|
10014
10052
|
<div class="alert-body">${this.t("securityPhraseHint")}</div>
|
|
10015
|
-
</div>` :
|
|
10053
|
+
</div>` : x;
|
|
10016
10054
|
}
|
|
10017
10055
|
renderMagicUrl() {
|
|
10018
10056
|
return this.token ? b`<div class="stack">
|
|
@@ -10108,6 +10146,8 @@ let he = class extends qe {
|
|
|
10108
10146
|
required
|
|
10109
10147
|
.value=${this.phone}
|
|
10110
10148
|
@input=${this.bind("phone")}
|
|
10149
|
+
aria-invalid=${this.error ? "true" : x}
|
|
10150
|
+
aria-describedby=${this.error ? Ve : x}
|
|
10111
10151
|
/>
|
|
10112
10152
|
</div>
|
|
10113
10153
|
${this.renderError()} ${this.submitButton(this.t("sendCode"))}
|
|
@@ -10182,6 +10222,8 @@ let he = class extends qe {
|
|
|
10182
10222
|
required
|
|
10183
10223
|
.value=${this.code}
|
|
10184
10224
|
@input=${this.bind("code")}
|
|
10225
|
+
aria-invalid=${this.error ? "true" : x}
|
|
10226
|
+
aria-describedby=${this.error ? Ve : x}
|
|
10185
10227
|
/>
|
|
10186
10228
|
</div>` : this.codeField()}
|
|
10187
10229
|
${this.renderError()} ${this.submitButton(this.t("verifyCode"))}
|
|
@@ -10199,7 +10241,7 @@ let he = class extends qe {
|
|
|
10199
10241
|
`;
|
|
10200
10242
|
}
|
|
10201
10243
|
};
|
|
10202
|
-
he.styles = [...qe.styles,
|
|
10244
|
+
he.styles = [...qe.styles, Uo];
|
|
10203
10245
|
ye([
|
|
10204
10246
|
F({ type: String })
|
|
10205
10247
|
], he.prototype, "view", 2);
|
|
@@ -10240,7 +10282,7 @@ ye([
|
|
|
10240
10282
|
N()
|
|
10241
10283
|
], he.prototype, "recovery", 2);
|
|
10242
10284
|
ye([
|
|
10243
|
-
|
|
10285
|
+
vi("form input:not([type=hidden])")
|
|
10244
10286
|
], he.prototype, "firstInput", 2);
|
|
10245
10287
|
ye([
|
|
10246
10288
|
N()
|
|
@@ -10255,12 +10297,12 @@ ye([
|
|
|
10255
10297
|
N()
|
|
10256
10298
|
], he.prototype, "legalErrorFromOAuth", 2);
|
|
10257
10299
|
he = ye([
|
|
10258
|
-
|
|
10300
|
+
Oe("authui-sign-in")
|
|
10259
10301
|
], he);
|
|
10260
|
-
var
|
|
10261
|
-
for (var o = i > 1 ? void 0 : i ?
|
|
10302
|
+
var _o = Object.defineProperty, Lo = Object.getOwnPropertyDescriptor, O = (t, e, n, i) => {
|
|
10303
|
+
for (var o = i > 1 ? void 0 : i ? Lo(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
10262
10304
|
(s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
|
|
10263
|
-
return i && o &&
|
|
10305
|
+
return i && o && _o(e, n, o), o;
|
|
10264
10306
|
};
|
|
10265
10307
|
let z = class extends qe {
|
|
10266
10308
|
constructor() {
|
|
@@ -10368,7 +10410,7 @@ let z = class extends qe {
|
|
|
10368
10410
|
try {
|
|
10369
10411
|
this.recoveryCodes = await M.createRecoveryCodes();
|
|
10370
10412
|
} catch (t) {
|
|
10371
|
-
if (!
|
|
10413
|
+
if (!wt(t, oe.recoveryCodesExist)) throw t;
|
|
10372
10414
|
this.recoveryCodes = await M.getRecoveryCodes();
|
|
10373
10415
|
}
|
|
10374
10416
|
await this.loadFactors();
|
|
@@ -10491,9 +10533,9 @@ let z = class extends qe {
|
|
|
10491
10533
|
try {
|
|
10492
10534
|
await e(), n && this.setNotice("success", n);
|
|
10493
10535
|
} catch (i) {
|
|
10494
|
-
|
|
10536
|
+
wt(i, oe.challengeRequired) ? this.stepUp = { retry: () => this.run(t, e, n) } : this.errors = {
|
|
10495
10537
|
...this.errors,
|
|
10496
|
-
[t]:
|
|
10538
|
+
[t]: Rt(
|
|
10497
10539
|
i,
|
|
10498
10540
|
this.strings,
|
|
10499
10541
|
t.includes("code") ? "code" : t === "password" ? "password" : "link"
|
|
@@ -10631,7 +10673,7 @@ let z = class extends qe {
|
|
|
10631
10673
|
>
|
|
10632
10674
|
${q.x}
|
|
10633
10675
|
</button>
|
|
10634
|
-
</div>` :
|
|
10676
|
+
</div>` : x}
|
|
10635
10677
|
${this.stepUp ? this.renderStepUp() : b`<div
|
|
10636
10678
|
class="tabpanel"
|
|
10637
10679
|
role="tabpanel"
|
|
@@ -10648,14 +10690,14 @@ let z = class extends qe {
|
|
|
10648
10690
|
return b`
|
|
10649
10691
|
<div class="between">
|
|
10650
10692
|
<div class="identity">
|
|
10651
|
-
<span class="avatar">${
|
|
10693
|
+
<span class="avatar">${ki(e)}</span>
|
|
10652
10694
|
<div class="row-main">
|
|
10653
10695
|
<span class="row-title" title=${e}>
|
|
10654
10696
|
${e}
|
|
10655
|
-
${t.mfa ? b`<span class="badge badge-success">${q.shieldCheck} ${this.t("mfaBadge")}</span>` :
|
|
10656
|
-
${M.isPreview ? b`<span class="badge badge-info">${this.t("preview")}</span>` :
|
|
10697
|
+
${t.mfa ? b`<span class="badge badge-success">${q.shieldCheck} ${this.t("mfaBadge")}</span>` : x}
|
|
10698
|
+
${M.isPreview ? b`<span class="badge badge-info">${this.t("preview")}</span>` : x}
|
|
10657
10699
|
</span>
|
|
10658
|
-
${t.email && t.name ? b`<span class="row-sub" title=${t.email}>${t.email}</span>` :
|
|
10700
|
+
${t.email && t.name ? b`<span class="row-sub" title=${t.email}>${t.email}</span>` : x}
|
|
10659
10701
|
</div>
|
|
10660
10702
|
</div>
|
|
10661
10703
|
<button class="btn btn-outline btn-sm" @click=${() => M.signOut()}>
|
|
@@ -10683,19 +10725,19 @@ let z = class extends qe {
|
|
|
10683
10725
|
return e ? b`<div class="alert alert-error" role="alert">
|
|
10684
10726
|
${q.alert}
|
|
10685
10727
|
<div class="alert-body">${e}</div>
|
|
10686
|
-
</div>` :
|
|
10728
|
+
</div>` : x;
|
|
10687
10729
|
}
|
|
10688
10730
|
spinner(t) {
|
|
10689
|
-
return this.busy === t ? b`<span class="spinner" aria-hidden="true"></span>` :
|
|
10731
|
+
return this.busy === t ? b`<span class="spinner" aria-hidden="true"></span>` : x;
|
|
10690
10732
|
}
|
|
10691
10733
|
card(t, e, n, i, o = !1) {
|
|
10692
10734
|
return b`<section class="card ${o ? "card-danger" : ""}">
|
|
10693
10735
|
<div class="card-header">
|
|
10694
10736
|
<h3 class="card-title">${t}</h3>
|
|
10695
|
-
${e ? b`<p class="card-description">${e}</p>` :
|
|
10737
|
+
${e ? b`<p class="card-description">${e}</p>` : x}
|
|
10696
10738
|
</div>
|
|
10697
|
-
${n !==
|
|
10698
|
-
${i ? b`<div class="card-footer">${i}</div>` :
|
|
10739
|
+
${n !== x ? b`<div class="card-body">${n}</div>` : x}
|
|
10740
|
+
${i ? b`<div class="card-footer">${i}</div>` : x}
|
|
10699
10741
|
</section>`;
|
|
10700
10742
|
}
|
|
10701
10743
|
/** Vibes-style confirm footer: Cancel first (autofocus), destructive only on confirm. */
|
|
@@ -10716,7 +10758,7 @@ let z = class extends qe {
|
|
|
10716
10758
|
?disabled=${!!this.busy}
|
|
10717
10759
|
@click=${e}
|
|
10718
10760
|
>
|
|
10719
|
-
${i ? this.spinner(i) :
|
|
10761
|
+
${i ? this.spinner(i) : x} ${n}
|
|
10720
10762
|
</button>
|
|
10721
10763
|
`;
|
|
10722
10764
|
}
|
|
@@ -10773,7 +10815,7 @@ let z = class extends qe {
|
|
|
10773
10815
|
autocomplete="new-password"
|
|
10774
10816
|
/>
|
|
10775
10817
|
${this.emailPassword ? (() => {
|
|
10776
|
-
const e =
|
|
10818
|
+
const e = hi(this.emailPassword);
|
|
10777
10819
|
return b`<div class="strength" aria-live="polite">
|
|
10778
10820
|
<div
|
|
10779
10821
|
class="strength-meter"
|
|
@@ -10836,7 +10878,7 @@ let z = class extends qe {
|
|
|
10836
10878
|
<div class="field">
|
|
10837
10879
|
<label class="label" for="acc-email"
|
|
10838
10880
|
>${this.t("email")}
|
|
10839
|
-
${t.email ? this.verifiedBadge(t.emailVerification) :
|
|
10881
|
+
${t.email ? this.verifiedBadge(t.emailVerification) : x}</label
|
|
10840
10882
|
>
|
|
10841
10883
|
<input
|
|
10842
10884
|
class="input"
|
|
@@ -10861,8 +10903,8 @@ let z = class extends qe {
|
|
|
10861
10903
|
autocomplete=${t.passwordUpdate ? "current-password" : "new-password"}
|
|
10862
10904
|
required
|
|
10863
10905
|
/>
|
|
10864
|
-
${t.passwordUpdate ?
|
|
10865
|
-
</div>` :
|
|
10906
|
+
${t.passwordUpdate ? x : b`<p class="hint">${this.t("createPasswordHint")}</p>`}
|
|
10907
|
+
</div>` : x}
|
|
10866
10908
|
${this.error("email")} ${this.error("verify")}
|
|
10867
10909
|
</form>`,
|
|
10868
10910
|
b`
|
|
@@ -10879,7 +10921,7 @@ let z = class extends qe {
|
|
|
10879
10921
|
Math.ceil((this.verifyEmailCooldownUntil - Date.now()) / 1e3)
|
|
10880
10922
|
)
|
|
10881
10923
|
}) : this.t("verifyEmail")}
|
|
10882
|
-
</button>` :
|
|
10924
|
+
</button>` : x}
|
|
10883
10925
|
<button
|
|
10884
10926
|
class="btn btn-primary btn-sm"
|
|
10885
10927
|
type="submit"
|
|
@@ -10897,7 +10939,7 @@ let z = class extends qe {
|
|
|
10897
10939
|
<div class="field">
|
|
10898
10940
|
<label class="label" for="acc-phone"
|
|
10899
10941
|
>${this.t("phone")}
|
|
10900
|
-
${t.phone ? this.verifiedBadge(t.phoneVerification) :
|
|
10942
|
+
${t.phone ? this.verifiedBadge(t.phoneVerification) : x}</label
|
|
10901
10943
|
>
|
|
10902
10944
|
<input
|
|
10903
10945
|
class="input"
|
|
@@ -10922,8 +10964,8 @@ let z = class extends qe {
|
|
|
10922
10964
|
autocomplete=${t.passwordUpdate ? "current-password" : "new-password"}
|
|
10923
10965
|
required
|
|
10924
10966
|
/>
|
|
10925
|
-
${t.passwordUpdate ?
|
|
10926
|
-
</div>` :
|
|
10967
|
+
${t.passwordUpdate ? x : b`<p class="hint">${this.t("createPasswordHint")}</p>`}
|
|
10968
|
+
</div>` : x}
|
|
10927
10969
|
${this.phoneCodeSent ? b`<div class="field">
|
|
10928
10970
|
<label class="label" for="acc-phone-code">${this.t("code")}</label>
|
|
10929
10971
|
<input
|
|
@@ -10940,7 +10982,7 @@ let z = class extends qe {
|
|
|
10940
10982
|
e.key === "Enter" && (e.preventDefault(), this.onConfirmPhoneVerification(e));
|
|
10941
10983
|
}}
|
|
10942
10984
|
/>
|
|
10943
|
-
</div>` :
|
|
10985
|
+
</div>` : x}
|
|
10944
10986
|
${this.error("phone")} ${this.error("verify-phone")} ${this.error("verify-phone-code")}
|
|
10945
10987
|
</form>`,
|
|
10946
10988
|
b`
|
|
@@ -10951,7 +10993,7 @@ let z = class extends qe {
|
|
|
10951
10993
|
?disabled=${!!this.busy}
|
|
10952
10994
|
>
|
|
10953
10995
|
${this.spinner("verify-phone")} ${this.t("sendCode")}
|
|
10954
|
-
</button>` :
|
|
10996
|
+
</button>` : x}
|
|
10955
10997
|
${this.phoneCodeSent ? b`<button
|
|
10956
10998
|
class="btn btn-outline btn-sm"
|
|
10957
10999
|
type="button"
|
|
@@ -10973,7 +11015,7 @@ let z = class extends qe {
|
|
|
10973
11015
|
?disabled=${!!this.busy}
|
|
10974
11016
|
>
|
|
10975
11017
|
${this.spinner("verify-phone-code")} ${this.t("verifyCode")}
|
|
10976
|
-
</button>` :
|
|
11018
|
+
</button>` : x}
|
|
10977
11019
|
<button
|
|
10978
11020
|
class="btn btn-primary btn-sm"
|
|
10979
11021
|
type="submit"
|
|
@@ -11012,7 +11054,7 @@ let z = class extends qe {
|
|
|
11012
11054
|
renderSecurity() {
|
|
11013
11055
|
const t = this.user, e = this.config?.mfa !== !1;
|
|
11014
11056
|
return b`<div class="section">
|
|
11015
|
-
${this.isGuest ?
|
|
11057
|
+
${this.isGuest ? x : this.card(
|
|
11016
11058
|
this.t("changePassword"),
|
|
11017
11059
|
void 0,
|
|
11018
11060
|
b`<form
|
|
@@ -11044,7 +11086,7 @@ let z = class extends qe {
|
|
|
11044
11086
|
${this.showOldPassword ? q.eyeOff : q.eye}
|
|
11045
11087
|
</button>
|
|
11046
11088
|
</div>
|
|
11047
|
-
</div>` :
|
|
11089
|
+
</div>` : x}
|
|
11048
11090
|
<div class="field">
|
|
11049
11091
|
<label class="label" for="acc-new-password">${this.t("newPassword")}</label>
|
|
11050
11092
|
<div class="input-wrap">
|
|
@@ -11068,7 +11110,7 @@ let z = class extends qe {
|
|
|
11068
11110
|
</button>
|
|
11069
11111
|
</div>
|
|
11070
11112
|
${this.newPassword ? (() => {
|
|
11071
|
-
const n =
|
|
11113
|
+
const n = hi(this.newPassword);
|
|
11072
11114
|
return b`<div class="strength" aria-live="polite">
|
|
11073
11115
|
<div
|
|
11074
11116
|
class="strength-meter"
|
|
@@ -11122,12 +11164,12 @@ let z = class extends qe {
|
|
|
11122
11164
|
${this.spinner("password")} ${this.t("update")}
|
|
11123
11165
|
</button>`
|
|
11124
11166
|
)}
|
|
11125
|
-
${e ? this.renderMfaCard() :
|
|
11126
|
-
${e ? this.renderRecoveryCard() :
|
|
11167
|
+
${e ? this.renderMfaCard() : x}
|
|
11168
|
+
${e ? this.renderRecoveryCard() : x}
|
|
11127
11169
|
</div>`;
|
|
11128
11170
|
}
|
|
11129
11171
|
renderMfaCard() {
|
|
11130
|
-
const t = this.user, e = this.factors?.totp ?? !1, n = this.authenticator ? M.isPreview ?
|
|
11172
|
+
const t = this.user, e = this.factors?.totp ?? !1, n = this.authenticator ? M.isPreview ? ho(this.authenticator.uri) : new an(M.getClient()).getQR(this.authenticator.uri, 400, 1).toString() : "";
|
|
11131
11173
|
return this.card(
|
|
11132
11174
|
this.t("twoFactor"),
|
|
11133
11175
|
this.t("twoFactorDescription"),
|
|
@@ -11150,7 +11192,7 @@ let z = class extends qe {
|
|
|
11150
11192
|
${q.alert}
|
|
11151
11193
|
<div class="alert-body">
|
|
11152
11194
|
${this.t("mfaNoFactorWarning")}
|
|
11153
|
-
${this.factors?.totp ?
|
|
11195
|
+
${this.factors?.totp ? x : b`<div class="links">
|
|
11154
11196
|
<button
|
|
11155
11197
|
type="button"
|
|
11156
11198
|
class="btn btn-link"
|
|
@@ -11161,14 +11203,14 @@ let z = class extends qe {
|
|
|
11161
11203
|
</button>
|
|
11162
11204
|
</div>`}
|
|
11163
11205
|
</div>
|
|
11164
|
-
</div>` :
|
|
11206
|
+
</div>` : x}
|
|
11165
11207
|
${this.error("mfa")}
|
|
11166
11208
|
<div class="separator"></div>
|
|
11167
11209
|
<div class="toggle-row">
|
|
11168
11210
|
<div class="row-main">
|
|
11169
11211
|
<span class="row-title"
|
|
11170
11212
|
>${q.smartphone} ${this.t("authenticatorApp")}
|
|
11171
|
-
${e ? this.verifiedBadge(!0) :
|
|
11213
|
+
${e ? this.verifiedBadge(!0) : x}</span
|
|
11172
11214
|
>
|
|
11173
11215
|
</div>
|
|
11174
11216
|
${e ? this.confirmRemoveAuthenticator ? b`<div class="inline">
|
|
@@ -11195,7 +11237,7 @@ let z = class extends qe {
|
|
|
11195
11237
|
?disabled=${!!this.busy}
|
|
11196
11238
|
>
|
|
11197
11239
|
${this.spinner("remove-authenticator")} ${this.t("remove")}
|
|
11198
|
-
</button>` : this.authenticator ?
|
|
11240
|
+
</button>` : this.authenticator ? x : b`<button
|
|
11199
11241
|
class="btn btn-outline btn-sm"
|
|
11200
11242
|
@click=${this.onAddAuthenticator}
|
|
11201
11243
|
?disabled=${!!this.busy}
|
|
@@ -11250,7 +11292,7 @@ let z = class extends qe {
|
|
|
11250
11292
|
${this.t("cancel")}
|
|
11251
11293
|
</button>
|
|
11252
11294
|
</div>
|
|
11253
|
-
</form>` :
|
|
11295
|
+
</form>` : x}
|
|
11254
11296
|
</div>`
|
|
11255
11297
|
);
|
|
11256
11298
|
}
|
|
@@ -11309,7 +11351,7 @@ let z = class extends qe {
|
|
|
11309
11351
|
?disabled=${!!this.busy}
|
|
11310
11352
|
>
|
|
11311
11353
|
${q.refresh} ${this.t("regenerateRecoveryCodes")}
|
|
11312
|
-
</button>` :
|
|
11354
|
+
</button>` : x}
|
|
11313
11355
|
</div>`}
|
|
11314
11356
|
${this.error("recovery")}
|
|
11315
11357
|
</div>`
|
|
@@ -11409,8 +11451,8 @@ let z = class extends qe {
|
|
|
11409
11451
|
<div class="row-main">
|
|
11410
11452
|
<span class="row-title">
|
|
11411
11453
|
${e.clientName || e.provider}
|
|
11412
|
-
${e.clientVersion ? b`<span class="muted small">${e.clientVersion}</span>` :
|
|
11413
|
-
${e.current ? b`<span class="badge badge-info">${this.t("currentSession")}</span>` :
|
|
11454
|
+
${e.clientVersion ? b`<span class="muted small">${e.clientVersion}</span>` : x}
|
|
11455
|
+
${e.current ? b`<span class="badge badge-info">${this.t("currentSession")}</span>` : x}
|
|
11414
11456
|
</span>
|
|
11415
11457
|
<span class="row-sub"
|
|
11416
11458
|
>${[e.osName, e.countryName || e.countryCode, e.ip].filter(Boolean).join(" · ")}</span
|
|
@@ -11418,7 +11460,7 @@ let z = class extends qe {
|
|
|
11418
11460
|
</div>
|
|
11419
11461
|
</div>
|
|
11420
11462
|
<div class="row-actions">
|
|
11421
|
-
${this.busy === `session-${e.$id}` ? b`<span class="spinner"></span>` :
|
|
11463
|
+
${this.busy === `session-${e.$id}` ? b`<span class="spinner"></span>` : x}
|
|
11422
11464
|
<button
|
|
11423
11465
|
class="btn btn-ghost btn-sm"
|
|
11424
11466
|
@click=${() => this.onDeleteSession(e.$id)}
|
|
@@ -11471,9 +11513,9 @@ let z = class extends qe {
|
|
|
11471
11513
|
) : t.map(
|
|
11472
11514
|
(n) => b`<div class="row">
|
|
11473
11515
|
<div class="inline">
|
|
11474
|
-
<span class="device">${
|
|
11516
|
+
<span class="device">${ft(n.provider)}</span>
|
|
11475
11517
|
<div class="row-main">
|
|
11476
|
-
<span class="row-title">${
|
|
11518
|
+
<span class="row-title">${ht(n.provider)}</span>
|
|
11477
11519
|
<span class="row-sub">${n.providerEmail || n.providerUid}</span>
|
|
11478
11520
|
</div>
|
|
11479
11521
|
</div>
|
|
@@ -11494,7 +11536,7 @@ let z = class extends qe {
|
|
|
11494
11536
|
@click=${() => this.onDeleteIdentity(n.$id)}
|
|
11495
11537
|
?disabled=${!!this.busy}
|
|
11496
11538
|
>
|
|
11497
|
-
${this.busy === `identity-${n.$id}` ? b`<span class="spinner"></span>` :
|
|
11539
|
+
${this.busy === `identity-${n.$id}` ? b`<span class="spinner"></span>` : x}
|
|
11498
11540
|
${this.t("disconnect")}
|
|
11499
11541
|
</button>
|
|
11500
11542
|
</div>` : b`<button
|
|
@@ -11502,7 +11544,7 @@ let z = class extends qe {
|
|
|
11502
11544
|
@click=${() => this.onDeleteIdentity(n.$id)}
|
|
11503
11545
|
?disabled=${!!this.busy}
|
|
11504
11546
|
>
|
|
11505
|
-
${this.busy === `identity-${n.$id}` ? b`<span class="spinner"></span>` :
|
|
11547
|
+
${this.busy === `identity-${n.$id}` ? b`<span class="spinner"></span>` : x}
|
|
11506
11548
|
${this.t("disconnect")}
|
|
11507
11549
|
</button>`}
|
|
11508
11550
|
</div>
|
|
@@ -11516,8 +11558,8 @@ let z = class extends qe {
|
|
|
11516
11558
|
}}
|
|
11517
11559
|
?disabled=${!!this.busy}
|
|
11518
11560
|
>
|
|
11519
|
-
${this.spinner(`connect-${n}`)} ${
|
|
11520
|
-
${this.t("connectProvider", { provider:
|
|
11561
|
+
${this.spinner(`connect-${n}`)} ${ft(n)}
|
|
11562
|
+
${this.t("connectProvider", { provider: ht(n) })}
|
|
11521
11563
|
</button>`
|
|
11522
11564
|
)}` : void 0
|
|
11523
11565
|
)}
|
|
@@ -11551,7 +11593,7 @@ let z = class extends qe {
|
|
|
11551
11593
|
};
|
|
11552
11594
|
z.styles = [
|
|
11553
11595
|
...qe.styles,
|
|
11554
|
-
|
|
11596
|
+
Ke`
|
|
11555
11597
|
:host {
|
|
11556
11598
|
display: block;
|
|
11557
11599
|
width: 100%;
|
|
@@ -11762,12 +11804,12 @@ O([
|
|
|
11762
11804
|
N()
|
|
11763
11805
|
], z.prototype, "verifyPhoneCooldownUntil", 2);
|
|
11764
11806
|
z = O([
|
|
11765
|
-
|
|
11807
|
+
Oe("authui-account")
|
|
11766
11808
|
], z);
|
|
11767
|
-
var
|
|
11768
|
-
for (var o = i > 1 ? void 0 : i ?
|
|
11809
|
+
var No = Object.defineProperty, Do = Object.getOwnPropertyDescriptor, Ye = (t, e, n, i) => {
|
|
11810
|
+
for (var o = i > 1 ? void 0 : i ? Do(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
11769
11811
|
(s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
|
|
11770
|
-
return i && o &&
|
|
11812
|
+
return i && o && No(e, n, o), o;
|
|
11771
11813
|
};
|
|
11772
11814
|
let Ee = class extends qe {
|
|
11773
11815
|
constructor() {
|
|
@@ -11857,7 +11899,7 @@ let Ee = class extends qe {
|
|
|
11857
11899
|
${this.open ? e ? b`<authui-account embedded></authui-account>` : b`<authui-sign-in
|
|
11858
11900
|
embedded
|
|
11859
11901
|
.view=${this.view === "account" ? "sign-in" : this.view}
|
|
11860
|
-
></authui-sign-in>` :
|
|
11902
|
+
></authui-sign-in>` : x}
|
|
11861
11903
|
</div>
|
|
11862
11904
|
<div class="scroll-fade ${this.scrollCue ? "show" : ""}" aria-hidden="true"></div>
|
|
11863
11905
|
</div>
|
|
@@ -11867,7 +11909,7 @@ let Ee = class extends qe {
|
|
|
11867
11909
|
};
|
|
11868
11910
|
Ee.styles = [
|
|
11869
11911
|
...qe.styles,
|
|
11870
|
-
|
|
11912
|
+
Ke`
|
|
11871
11913
|
:host {
|
|
11872
11914
|
display: contents;
|
|
11873
11915
|
}
|
|
@@ -11961,13 +12003,13 @@ Ee.styles = [
|
|
|
11961
12003
|
}
|
|
11962
12004
|
`
|
|
11963
12005
|
];
|
|
11964
|
-
|
|
12006
|
+
Ye([
|
|
11965
12007
|
F({ type: Boolean, reflect: !0 })
|
|
11966
12008
|
], Ee.prototype, "open", 2);
|
|
11967
|
-
|
|
12009
|
+
Ye([
|
|
11968
12010
|
F({ type: String })
|
|
11969
12011
|
], Ee.prototype, "view", 2);
|
|
11970
|
-
|
|
12012
|
+
Ye([
|
|
11971
12013
|
F({
|
|
11972
12014
|
attribute: "close-on-success",
|
|
11973
12015
|
reflect: !0,
|
|
@@ -11983,27 +12025,27 @@ Ke([
|
|
|
11983
12025
|
}
|
|
11984
12026
|
})
|
|
11985
12027
|
], Ee.prototype, "closeOnSuccess", 2);
|
|
11986
|
-
|
|
12028
|
+
Ye([
|
|
11987
12029
|
N()
|
|
11988
12030
|
], Ee.prototype, "handledPending", 2);
|
|
11989
|
-
|
|
12031
|
+
Ye([
|
|
11990
12032
|
N()
|
|
11991
12033
|
], Ee.prototype, "scrollCue", 2);
|
|
11992
|
-
|
|
11993
|
-
|
|
12034
|
+
Ye([
|
|
12035
|
+
vi("dialog")
|
|
11994
12036
|
], Ee.prototype, "dialog", 2);
|
|
11995
|
-
|
|
11996
|
-
|
|
12037
|
+
Ye([
|
|
12038
|
+
vi(".body")
|
|
11997
12039
|
], Ee.prototype, "bodyEl", 2);
|
|
11998
|
-
Ee =
|
|
11999
|
-
|
|
12040
|
+
Ee = Ye([
|
|
12041
|
+
Oe("authui-modal")
|
|
12000
12042
|
], Ee);
|
|
12001
|
-
var
|
|
12002
|
-
for (var o = i > 1 ? void 0 : i ?
|
|
12043
|
+
var Ho = Object.defineProperty, Bo = Object.getOwnPropertyDescriptor, Nt = (t, e, n, i) => {
|
|
12044
|
+
for (var o = i > 1 ? void 0 : i ? Bo(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
12003
12045
|
(s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
|
|
12004
|
-
return i && o &&
|
|
12046
|
+
return i && o && Ho(e, n, o), o;
|
|
12005
12047
|
};
|
|
12006
|
-
let
|
|
12048
|
+
let st = class extends qe {
|
|
12007
12049
|
constructor() {
|
|
12008
12050
|
super(...arguments), this.view = "sign-in", this.variant = "primary", this.size = "md";
|
|
12009
12051
|
}
|
|
@@ -12011,7 +12053,7 @@ let at = class extends qe {
|
|
|
12011
12053
|
const t = this.size === "md" ? "" : `btn-${this.size}`;
|
|
12012
12054
|
return b`<button
|
|
12013
12055
|
class="btn btn-${this.variant} ${t}"
|
|
12014
|
-
@click=${() =>
|
|
12056
|
+
@click=${() => vt(this.view)}
|
|
12015
12057
|
part="button"
|
|
12016
12058
|
>
|
|
12017
12059
|
<slot
|
|
@@ -12020,9 +12062,9 @@ let at = class extends qe {
|
|
|
12020
12062
|
</button>`;
|
|
12021
12063
|
}
|
|
12022
12064
|
};
|
|
12023
|
-
|
|
12065
|
+
st.styles = [
|
|
12024
12066
|
...qe.styles,
|
|
12025
|
-
|
|
12067
|
+
Ke`
|
|
12026
12068
|
:host {
|
|
12027
12069
|
display: inline-block;
|
|
12028
12070
|
}
|
|
@@ -12031,22 +12073,22 @@ at.styles = [
|
|
|
12031
12073
|
}
|
|
12032
12074
|
`
|
|
12033
12075
|
];
|
|
12034
|
-
|
|
12076
|
+
Nt([
|
|
12035
12077
|
F({ type: String })
|
|
12036
|
-
],
|
|
12037
|
-
|
|
12078
|
+
], st.prototype, "view", 2);
|
|
12079
|
+
Nt([
|
|
12038
12080
|
F({ type: String })
|
|
12039
|
-
],
|
|
12040
|
-
|
|
12081
|
+
], st.prototype, "variant", 2);
|
|
12082
|
+
Nt([
|
|
12041
12083
|
F({ type: String })
|
|
12042
|
-
],
|
|
12043
|
-
|
|
12044
|
-
|
|
12045
|
-
],
|
|
12046
|
-
var
|
|
12047
|
-
for (var o = i > 1 ? void 0 : i ?
|
|
12084
|
+
], st.prototype, "size", 2);
|
|
12085
|
+
st = Nt([
|
|
12086
|
+
Oe("authui-button")
|
|
12087
|
+
], st);
|
|
12088
|
+
var Xo = Object.defineProperty, Vo = Object.getOwnPropertyDescriptor, Be = (t, e, n, i) => {
|
|
12089
|
+
for (var o = i > 1 ? void 0 : i ? Vo(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
12048
12090
|
(s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
|
|
12049
|
-
return i && o &&
|
|
12091
|
+
return i && o && Xo(e, n, o), o;
|
|
12050
12092
|
};
|
|
12051
12093
|
let Ue = class extends qe {
|
|
12052
12094
|
constructor() {
|
|
@@ -12123,7 +12165,7 @@ let Ue = class extends qe {
|
|
|
12123
12165
|
if (t === "loading" && n)
|
|
12124
12166
|
return b`<span class="avatar"><span class="spinner"></span></span>`;
|
|
12125
12167
|
if (t !== "signed-in" || !e)
|
|
12126
|
-
return b`<button class="btn btn-primary btn-sm" @click=${() =>
|
|
12168
|
+
return b`<button class="btn btn-primary btn-sm" @click=${() => vt("sign-in")}>
|
|
12127
12169
|
<slot>${this.t("signIn")}</slot>
|
|
12128
12170
|
</button>`;
|
|
12129
12171
|
const i = e.name || e.email || e.phone || this.t("guestAccount");
|
|
@@ -12136,13 +12178,13 @@ let Ue = class extends qe {
|
|
|
12136
12178
|
aria-label=${i}
|
|
12137
12179
|
>
|
|
12138
12180
|
<span class="avatar"
|
|
12139
|
-
>${this.src ? b`<img src=${this.src} alt="" />` :
|
|
12181
|
+
>${this.src ? b`<img src=${this.src} alt="" />` : ki(i)}</span
|
|
12140
12182
|
>
|
|
12141
12183
|
</button>
|
|
12142
12184
|
${this.menuOpen ? b`<div class="menu ${this.menuAbove ? "above" : ""}" role="menu">
|
|
12143
12185
|
<div class="menu-header">
|
|
12144
12186
|
<span class="row-title" title=${i}>${i}</span>
|
|
12145
|
-
${e.email && e.name ? b`<span class="row-sub" title=${e.email}>${e.email}</span>` :
|
|
12187
|
+
${e.email && e.name ? b`<span class="row-sub" title=${e.email}>${e.email}</span>` : x}
|
|
12146
12188
|
</div>
|
|
12147
12189
|
${this.showTeams ? b`<div class="menu-section">
|
|
12148
12190
|
<div class="menu-section-label">${this.t("teamsLabel")}</div>
|
|
@@ -12157,17 +12199,17 @@ let Ue = class extends qe {
|
|
|
12157
12199
|
>
|
|
12158
12200
|
${q.users}
|
|
12159
12201
|
<span title=${o.name}>${o.name}</span>
|
|
12160
|
-
${o.$id === this.activeTeamId ? b`<span class="check">${q.check}</span>` :
|
|
12202
|
+
${o.$id === this.activeTeamId ? b`<span class="check">${q.check}</span>` : x}
|
|
12161
12203
|
</button>`
|
|
12162
12204
|
)}
|
|
12163
|
-
</div>` :
|
|
12205
|
+
</div>` : x}
|
|
12164
12206
|
${this.renderCustomMenuItems()}
|
|
12165
12207
|
<slot name="menu-items"></slot>
|
|
12166
12208
|
<button
|
|
12167
12209
|
class="menu-item"
|
|
12168
12210
|
role="menuitem"
|
|
12169
12211
|
@click=${() => {
|
|
12170
|
-
this.menuOpen = !1,
|
|
12212
|
+
this.menuOpen = !1, vt("account");
|
|
12171
12213
|
}}
|
|
12172
12214
|
>
|
|
12173
12215
|
${q.settings} ${this.t("manageAccount")}
|
|
@@ -12181,7 +12223,7 @@ let Ue = class extends qe {
|
|
|
12181
12223
|
>
|
|
12182
12224
|
${q.logOut} ${this.t("signOut")}
|
|
12183
12225
|
</button>
|
|
12184
|
-
</div>` :
|
|
12226
|
+
</div>` : x}
|
|
12185
12227
|
`;
|
|
12186
12228
|
}
|
|
12187
12229
|
renderCustomMenuItems() {
|
|
@@ -12192,8 +12234,8 @@ let Ue = class extends qe {
|
|
|
12192
12234
|
class="menu-item"
|
|
12193
12235
|
role="menuitem"
|
|
12194
12236
|
href=${t.href}
|
|
12195
|
-
target=${n ||
|
|
12196
|
-
rel=${n === "_blank" ? "noopener noreferrer" :
|
|
12237
|
+
target=${n || x}
|
|
12238
|
+
rel=${n === "_blank" ? "noopener noreferrer" : x}
|
|
12197
12239
|
@click=${() => {
|
|
12198
12240
|
this.menuOpen = !1;
|
|
12199
12241
|
}}
|
|
@@ -12218,12 +12260,12 @@ let Ue = class extends qe {
|
|
|
12218
12260
|
>
|
|
12219
12261
|
${t.label}
|
|
12220
12262
|
</button>`;
|
|
12221
|
-
}) :
|
|
12263
|
+
}) : x;
|
|
12222
12264
|
}
|
|
12223
12265
|
};
|
|
12224
12266
|
Ue.styles = [
|
|
12225
12267
|
...qe.styles,
|
|
12226
|
-
|
|
12268
|
+
Ke`
|
|
12227
12269
|
:host {
|
|
12228
12270
|
display: inline-block;
|
|
12229
12271
|
position: relative;
|
|
@@ -12368,92 +12410,92 @@ Be([
|
|
|
12368
12410
|
N()
|
|
12369
12411
|
], Ue.prototype, "activeTeamId", 2);
|
|
12370
12412
|
Ue = Be([
|
|
12371
|
-
|
|
12413
|
+
Oe("authui-user-button")
|
|
12372
12414
|
], Ue);
|
|
12373
|
-
function Vo(t) {
|
|
12374
|
-
return M.configure(t), Oo;
|
|
12375
|
-
}
|
|
12376
12415
|
function Wo(t) {
|
|
12377
|
-
|
|
12416
|
+
return M.configure(t), Fo;
|
|
12378
12417
|
}
|
|
12379
|
-
function Go() {
|
|
12380
|
-
|
|
12418
|
+
function Go(t) {
|
|
12419
|
+
vt(t);
|
|
12381
12420
|
}
|
|
12382
12421
|
function Ko() {
|
|
12383
|
-
|
|
12422
|
+
Mo();
|
|
12384
12423
|
}
|
|
12385
12424
|
function Yo() {
|
|
12386
|
-
return M.
|
|
12425
|
+
return M.signOut();
|
|
12387
12426
|
}
|
|
12388
12427
|
function Jo() {
|
|
12389
|
-
return M.
|
|
12428
|
+
return M.user;
|
|
12390
12429
|
}
|
|
12391
12430
|
function Zo() {
|
|
12392
|
-
return M.
|
|
12431
|
+
return M.getState();
|
|
12393
12432
|
}
|
|
12394
12433
|
function Qo() {
|
|
12395
|
-
return M.
|
|
12434
|
+
return M.getClient();
|
|
12396
12435
|
}
|
|
12397
12436
|
function To() {
|
|
12437
|
+
return M.getAccount();
|
|
12438
|
+
}
|
|
12439
|
+
function zo() {
|
|
12398
12440
|
return M.previewSignIn();
|
|
12399
12441
|
}
|
|
12400
|
-
function
|
|
12442
|
+
function Oo(t, e) {
|
|
12401
12443
|
return M.on(t, e);
|
|
12402
12444
|
}
|
|
12403
|
-
const
|
|
12404
|
-
init:
|
|
12405
|
-
open:
|
|
12406
|
-
close:
|
|
12407
|
-
signOut:
|
|
12408
|
-
getUser:
|
|
12409
|
-
getState:
|
|
12410
|
-
getClient:
|
|
12411
|
-
getAccount:
|
|
12412
|
-
on:
|
|
12413
|
-
previewSignIn:
|
|
12445
|
+
const Fo = {
|
|
12446
|
+
init: Wo,
|
|
12447
|
+
open: Go,
|
|
12448
|
+
close: Ko,
|
|
12449
|
+
signOut: Yo,
|
|
12450
|
+
getUser: Jo,
|
|
12451
|
+
getState: Zo,
|
|
12452
|
+
getClient: Qo,
|
|
12453
|
+
getAccount: To,
|
|
12454
|
+
on: Oo,
|
|
12455
|
+
previewSignIn: zo,
|
|
12414
12456
|
store: M
|
|
12415
12457
|
};
|
|
12416
12458
|
export {
|
|
12417
|
-
|
|
12418
|
-
|
|
12459
|
+
mo as AuthStore,
|
|
12460
|
+
Fo as AuthUI,
|
|
12419
12461
|
z as AuthUIAccount,
|
|
12420
|
-
|
|
12462
|
+
st as AuthUIButton,
|
|
12421
12463
|
de as AuthUIConfigElement,
|
|
12422
12464
|
qe as AuthUIElement,
|
|
12423
12465
|
Ee as AuthUIModal,
|
|
12424
|
-
|
|
12466
|
+
bt as AuthUIShow,
|
|
12425
12467
|
he as AuthUISignIn,
|
|
12426
12468
|
Ue as AuthUIUserButton,
|
|
12427
|
-
|
|
12469
|
+
oa as CRITICAL_FOUC_CSS,
|
|
12428
12470
|
oe as ErrorTypes,
|
|
12429
|
-
|
|
12430
|
-
|
|
12431
|
-
|
|
12471
|
+
Zi as FOUC_CSS,
|
|
12472
|
+
po as PreviewAccount,
|
|
12473
|
+
ia as appwrite,
|
|
12432
12474
|
M as authStore,
|
|
12433
|
-
|
|
12434
|
-
|
|
12435
|
-
|
|
12436
|
-
|
|
12437
|
-
|
|
12438
|
-
|
|
12439
|
-
|
|
12440
|
-
|
|
12441
|
-
|
|
12442
|
-
|
|
12443
|
-
|
|
12444
|
-
|
|
12445
|
-
|
|
12446
|
-
|
|
12447
|
-
|
|
12448
|
-
|
|
12449
|
-
|
|
12450
|
-
|
|
12451
|
-
|
|
12452
|
-
|
|
12453
|
-
|
|
12454
|
-
|
|
12455
|
-
|
|
12456
|
-
|
|
12457
|
-
|
|
12458
|
-
|
|
12475
|
+
na as clearLastMethod,
|
|
12476
|
+
Wi as clearPendingOAuth,
|
|
12477
|
+
Ko as close,
|
|
12478
|
+
Mo as closeModal,
|
|
12479
|
+
ro as defaultStrings,
|
|
12480
|
+
Rt as describeError,
|
|
12481
|
+
To as getAccount,
|
|
12482
|
+
Qo as getClient,
|
|
12483
|
+
et as getLastMethod,
|
|
12484
|
+
Zo as getState,
|
|
12485
|
+
Vi as getStoredActiveTeamId,
|
|
12486
|
+
Jo as getUser,
|
|
12487
|
+
Wo as init,
|
|
12488
|
+
fo as isConfigError,
|
|
12489
|
+
Oo as on,
|
|
12490
|
+
Go as open,
|
|
12491
|
+
vt as openModal,
|
|
12492
|
+
zo as previewSignIn,
|
|
12493
|
+
ht as providerLabel,
|
|
12494
|
+
it as rememberLastMethod,
|
|
12495
|
+
rn as rememberPendingOAuth,
|
|
12496
|
+
hi as scorePassword,
|
|
12497
|
+
go as setStoredActiveTeamId,
|
|
12498
|
+
Yo as signOut,
|
|
12499
|
+
yo as stashPendingOAuth,
|
|
12500
|
+
nt as toAuthUIError
|
|
12459
12501
|
};
|