@getauthui/core 0.1.12 → 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--QfXbaC8.js → authui-user-button-CV2B_0j5.js} +338 -265
- package/dist/authui.cdn.js +204 -134
- package/dist/authui.cdn.mjs +782 -709
- package/dist/authui.js +2 -2
- package/dist/components/authui-modal.d.ts.map +1 -1
- 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);
|
|
@@ -7844,9 +7845,10 @@ const Ki = new mo(), Yi = {
|
|
|
7844
7845
|
--authui-accent-foreground: oklch(0.985 0 0);
|
|
7845
7846
|
--authui-destructive: oklch(0.396 0.141 25.723);
|
|
7846
7847
|
--authui-destructive-foreground: oklch(0.637 0.237 25.331);
|
|
7847
|
-
|
|
7848
|
-
--authui-
|
|
7849
|
-
--authui-
|
|
7848
|
+
/* Raised vs card (#1d1d21) for WCAG 1.4.11 (~3:1) UI contrast */
|
|
7849
|
+
--authui-border: #71717a;
|
|
7850
|
+
--authui-input: #71717a;
|
|
7851
|
+
--authui-ring: #a1a1aa;
|
|
7850
7852
|
--authui-success-foreground: #34d399;
|
|
7851
7853
|
--authui-warning-foreground: #fbbf24;
|
|
7852
7854
|
--authui-error-foreground: #f87171;
|
|
@@ -7855,7 +7857,7 @@ const Ki = new mo(), Yi = {
|
|
|
7855
7857
|
--authui-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
|
|
7856
7858
|
color-scheme: dark;
|
|
7857
7859
|
}
|
|
7858
|
-
`,
|
|
7860
|
+
`, vo = Ke`
|
|
7859
7861
|
*,
|
|
7860
7862
|
*::before,
|
|
7861
7863
|
*::after {
|
|
@@ -8055,6 +8057,32 @@ const Ki = new mo(), Yi = {
|
|
|
8055
8057
|
justify-content: space-between;
|
|
8056
8058
|
gap: 8px;
|
|
8057
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
|
+
}
|
|
8058
8086
|
.label {
|
|
8059
8087
|
font-size: 14px;
|
|
8060
8088
|
line-height: 1;
|
|
@@ -8063,7 +8091,8 @@ const Ki = new mo(), Yi = {
|
|
|
8063
8091
|
}
|
|
8064
8092
|
.input {
|
|
8065
8093
|
font: inherit;
|
|
8066
|
-
|
|
8094
|
+
/* 16px avoids iOS Safari auto-zoom on focus */
|
|
8095
|
+
font-size: 16px;
|
|
8067
8096
|
height: 36px;
|
|
8068
8097
|
width: 100%;
|
|
8069
8098
|
min-width: 0;
|
|
@@ -8138,8 +8167,9 @@ const Ki = new mo(), Yi = {
|
|
|
8138
8167
|
background: var(--authui-muted);
|
|
8139
8168
|
transition: background-color 120ms ease;
|
|
8140
8169
|
}
|
|
8170
|
+
/* destructive-foreground matches light destructive and stays visible on dark card */
|
|
8141
8171
|
.strength-meter[data-level="1"] span:nth-child(-n + 1) {
|
|
8142
|
-
background: var(--authui-destructive);
|
|
8172
|
+
background: var(--authui-destructive-foreground);
|
|
8143
8173
|
}
|
|
8144
8174
|
.strength-meter[data-level="2"] span:nth-child(-n + 2) {
|
|
8145
8175
|
background: var(--authui-warning-foreground);
|
|
@@ -8155,6 +8185,19 @@ const Ki = new mo(), Yi = {
|
|
|
8155
8185
|
color: var(--authui-muted-foreground);
|
|
8156
8186
|
margin: 0;
|
|
8157
8187
|
}
|
|
8188
|
+
:host([data-theme="dark"]) .strength-meter span {
|
|
8189
|
+
background: var(--authui-border);
|
|
8190
|
+
}
|
|
8191
|
+
:host([data-theme="dark"]) .strength-meter[data-level="1"] span:nth-child(-n + 1) {
|
|
8192
|
+
background: var(--authui-destructive-foreground);
|
|
8193
|
+
}
|
|
8194
|
+
:host([data-theme="dark"]) .strength-meter[data-level="2"] span:nth-child(-n + 2),
|
|
8195
|
+
:host([data-theme="dark"]) .strength-meter[data-level="3"] span:nth-child(-n + 3) {
|
|
8196
|
+
background: var(--authui-warning-foreground);
|
|
8197
|
+
}
|
|
8198
|
+
:host([data-theme="dark"]) .strength-meter[data-level="4"] span {
|
|
8199
|
+
background: var(--authui-success);
|
|
8200
|
+
}
|
|
8158
8201
|
|
|
8159
8202
|
.btn.last-used {
|
|
8160
8203
|
border-color: var(--authui-brand);
|
|
@@ -8305,7 +8348,7 @@ const Ki = new mo(), Yi = {
|
|
|
8305
8348
|
display: inline-flex;
|
|
8306
8349
|
align-items: center;
|
|
8307
8350
|
justify-content: flex-start;
|
|
8308
|
-
height:
|
|
8351
|
+
height: 44px;
|
|
8309
8352
|
width: fit-content;
|
|
8310
8353
|
max-width: 100%;
|
|
8311
8354
|
overflow-x: auto;
|
|
@@ -8316,6 +8359,14 @@ const Ki = new mo(), Yi = {
|
|
|
8316
8359
|
gap: 2px;
|
|
8317
8360
|
scrollbar-width: none;
|
|
8318
8361
|
-webkit-overflow-scrolling: touch;
|
|
8362
|
+
/* Subtle right-edge fade as overflow cue at narrow widths */
|
|
8363
|
+
-webkit-mask-image: linear-gradient(
|
|
8364
|
+
to right,
|
|
8365
|
+
#000 0%,
|
|
8366
|
+
#000 calc(100% - 28px),
|
|
8367
|
+
transparent 100%
|
|
8368
|
+
);
|
|
8369
|
+
mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 28px), transparent 100%);
|
|
8319
8370
|
}
|
|
8320
8371
|
:host([data-theme="dark"]) .tabs {
|
|
8321
8372
|
background: color-mix(in oklab, var(--authui-muted) 80%, transparent);
|
|
@@ -8326,8 +8377,9 @@ const Ki = new mo(), Yi = {
|
|
|
8326
8377
|
justify-content: center;
|
|
8327
8378
|
gap: 6px;
|
|
8328
8379
|
height: 100%;
|
|
8380
|
+
min-height: 38px;
|
|
8329
8381
|
flex: 0 0 auto;
|
|
8330
|
-
padding:
|
|
8382
|
+
padding: 8px 12px;
|
|
8331
8383
|
border-radius: var(--authui-radius-md);
|
|
8332
8384
|
border: 1px solid transparent;
|
|
8333
8385
|
background: transparent;
|
|
@@ -8858,12 +8910,12 @@ const Ki = new mo(), Yi = {
|
|
|
8858
8910
|
}
|
|
8859
8911
|
}
|
|
8860
8912
|
`;
|
|
8861
|
-
var
|
|
8913
|
+
var Io = Object.defineProperty, Ao = (t, e, n, i) => {
|
|
8862
8914
|
for (var o = void 0, a = t.length - 1, s; a >= 0; a--)
|
|
8863
8915
|
(s = t[a]) && (o = s(e, n, o) || o);
|
|
8864
|
-
return o &&
|
|
8916
|
+
return o && Io(e, n, o), o;
|
|
8865
8917
|
}, He;
|
|
8866
|
-
const
|
|
8918
|
+
const cn = (He = class extends Te {
|
|
8867
8919
|
constructor() {
|
|
8868
8920
|
super(...arguments), this.auth = M.getState(), this.unsubscribeStore = null, this.unsubscribeTheme = null, this.stopKeys = (e) => e.stopPropagation();
|
|
8869
8921
|
}
|
|
@@ -8872,7 +8924,7 @@ const rn = (He = class extends Qe {
|
|
|
8872
8924
|
for (const e of He.KEY_EVENTS) this.addEventListener(e, this.stopKeys);
|
|
8873
8925
|
this.auth = M.getState(), this.unsubscribeStore = M.on("change", (e) => {
|
|
8874
8926
|
this.auth = e, this.applyBranding();
|
|
8875
|
-
}), this.unsubscribeTheme =
|
|
8927
|
+
}), this.unsubscribeTheme = Yi.subscribe(() => this.applyBranding()), this.applyBranding();
|
|
8876
8928
|
}
|
|
8877
8929
|
disconnectedCallback() {
|
|
8878
8930
|
super.disconnectedCallback();
|
|
@@ -8884,7 +8936,7 @@ const rn = (He = class extends Qe {
|
|
|
8884
8936
|
}
|
|
8885
8937
|
/** Translate a string key with optional `{placeholders}`. */
|
|
8886
8938
|
t(e, n) {
|
|
8887
|
-
return
|
|
8939
|
+
return co(this.strings[e], n);
|
|
8888
8940
|
}
|
|
8889
8941
|
get config() {
|
|
8890
8942
|
return M.getConfig();
|
|
@@ -8894,27 +8946,27 @@ const rn = (He = class extends Qe {
|
|
|
8894
8946
|
}
|
|
8895
8947
|
/** Push theme and branding from config onto the host element. */
|
|
8896
8948
|
applyBranding() {
|
|
8897
|
-
const e = this.config?.branding, n =
|
|
8949
|
+
const e = this.config?.branding, n = Yi.isDark(e?.theme ?? "auto");
|
|
8898
8950
|
this.setAttribute("data-theme", n ? "dark" : "light"), e?.primary && (this.style.setProperty("--authui-primary", e.primary), this.style.setProperty(
|
|
8899
8951
|
"--authui-primary-foreground",
|
|
8900
8952
|
e.primaryForeground ?? "#ffffff"
|
|
8901
|
-
)), e?.radius &&
|
|
8953
|
+
)), e?.radius && Ji[e.radius] && this.style.setProperty("--authui-radius", Ji[e.radius]);
|
|
8902
8954
|
}
|
|
8903
8955
|
/** Emit a composed custom event from this element. */
|
|
8904
8956
|
fire(e, n) {
|
|
8905
8957
|
this.dispatchEvent(new CustomEvent(e, { detail: n, bubbles: !0, composed: !0 }));
|
|
8906
8958
|
}
|
|
8907
|
-
}, He.styles = [
|
|
8908
|
-
|
|
8959
|
+
}, He.styles = [bo, vo], He.KEY_EVENTS = ["keydown", "keyup", "keypress"], He);
|
|
8960
|
+
Ao([
|
|
8909
8961
|
N()
|
|
8910
|
-
],
|
|
8911
|
-
let qe =
|
|
8912
|
-
var
|
|
8913
|
-
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--)
|
|
8914
8966
|
(s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
|
|
8915
|
-
return i && o &&
|
|
8967
|
+
return i && o && ko(e, n, o), o;
|
|
8916
8968
|
};
|
|
8917
|
-
let de = class extends
|
|
8969
|
+
let de = class extends Te {
|
|
8918
8970
|
constructor() {
|
|
8919
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 = "";
|
|
8920
8972
|
}
|
|
@@ -8965,7 +9017,7 @@ let de = class extends Qe {
|
|
|
8965
9017
|
};
|
|
8966
9018
|
}
|
|
8967
9019
|
};
|
|
8968
|
-
de.styles =
|
|
9020
|
+
de.styles = Ke`
|
|
8969
9021
|
:host {
|
|
8970
9022
|
display: none;
|
|
8971
9023
|
}
|
|
@@ -9031,42 +9083,42 @@ fe([
|
|
|
9031
9083
|
F({ type: String })
|
|
9032
9084
|
], de.prototype, "preview", 2);
|
|
9033
9085
|
de = fe([
|
|
9034
|
-
|
|
9086
|
+
Oe("authui-config")
|
|
9035
9087
|
], de);
|
|
9036
|
-
var
|
|
9037
|
-
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--)
|
|
9038
9090
|
(s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
|
|
9039
|
-
return i && o &&
|
|
9091
|
+
return i && o && $o(e, n, o), o;
|
|
9040
9092
|
};
|
|
9041
|
-
const
|
|
9042
|
-
let
|
|
9043
|
-
function
|
|
9044
|
-
if (!(typeof document > "u" ||
|
|
9045
|
-
|
|
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;
|
|
9046
9098
|
try {
|
|
9047
9099
|
if (typeof CSSStyleSheet < "u" && "adoptedStyleSheets" in Document.prototype) {
|
|
9048
9100
|
const t = new CSSStyleSheet();
|
|
9049
|
-
t.replaceSync(
|
|
9101
|
+
t.replaceSync(Zi), document.adoptedStyleSheets = [...document.adoptedStyleSheets, t];
|
|
9050
9102
|
return;
|
|
9051
9103
|
}
|
|
9052
9104
|
} catch {
|
|
9053
9105
|
}
|
|
9054
9106
|
if (!document.getElementById("authui-fouc")) {
|
|
9055
9107
|
const t = document.createElement("style");
|
|
9056
|
-
t.id = "authui-fouc", t.textContent =
|
|
9108
|
+
t.id = "authui-fouc", t.textContent = Zi, document.head.appendChild(t);
|
|
9057
9109
|
}
|
|
9058
9110
|
}
|
|
9059
9111
|
}
|
|
9060
|
-
|
|
9061
|
-
const
|
|
9062
|
-
function
|
|
9063
|
-
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)) : [];
|
|
9064
9116
|
}
|
|
9065
|
-
function
|
|
9066
|
-
const i =
|
|
9117
|
+
function Co(t, e, n) {
|
|
9118
|
+
const i = pi(e), o = pi(n);
|
|
9067
9119
|
return !(t === "loading" && !i.includes("loading") || i.length > 0 && !i.includes(t) || o.includes(t));
|
|
9068
9120
|
}
|
|
9069
|
-
let
|
|
9121
|
+
let bt = class extends Te {
|
|
9070
9122
|
constructor() {
|
|
9071
9123
|
super(...arguments), this.when = "", this.unless = "", this.status = M.getState().status, this.unsubscribe = null;
|
|
9072
9124
|
}
|
|
@@ -9078,28 +9130,28 @@ let wt = class extends Qe {
|
|
|
9078
9130
|
}
|
|
9079
9131
|
/** Whether the current status satisfies `when` and `unless`. */
|
|
9080
9132
|
get visible() {
|
|
9081
|
-
return
|
|
9133
|
+
return Co(this.status, this.when, this.unless);
|
|
9082
9134
|
}
|
|
9083
9135
|
updated() {
|
|
9084
|
-
(this.status !== "loading" ||
|
|
9136
|
+
(this.status !== "loading" || pi(this.when).includes("loading")) && (this.setAttribute("ready", ""), this.style.display = "contents");
|
|
9085
9137
|
}
|
|
9086
9138
|
render() {
|
|
9087
|
-
return this.visible ? b`<slot></slot>` :
|
|
9139
|
+
return this.visible ? b`<slot></slot>` : x;
|
|
9088
9140
|
}
|
|
9089
9141
|
};
|
|
9090
|
-
|
|
9142
|
+
Lt([
|
|
9091
9143
|
F({ type: String })
|
|
9092
|
-
],
|
|
9093
|
-
|
|
9144
|
+
], bt.prototype, "when", 2);
|
|
9145
|
+
Lt([
|
|
9094
9146
|
F({ type: String })
|
|
9095
|
-
],
|
|
9096
|
-
|
|
9147
|
+
], bt.prototype, "unless", 2);
|
|
9148
|
+
Lt([
|
|
9097
9149
|
N()
|
|
9098
|
-
],
|
|
9099
|
-
|
|
9100
|
-
|
|
9101
|
-
],
|
|
9102
|
-
const
|
|
9150
|
+
], bt.prototype, "status", 2);
|
|
9151
|
+
bt = Lt([
|
|
9152
|
+
Oe("authui-show")
|
|
9153
|
+
], bt);
|
|
9154
|
+
const Uo = Ke`
|
|
9103
9155
|
:host {
|
|
9104
9156
|
display: block;
|
|
9105
9157
|
width: 100%;
|
|
@@ -9246,7 +9298,7 @@ const Co = Ge`
|
|
|
9246
9298
|
qr: se(
|
|
9247
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"/>`
|
|
9248
9300
|
)
|
|
9249
|
-
}, 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 = {
|
|
9250
9302
|
google: me(
|
|
9251
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"/>`
|
|
9252
9304
|
),
|
|
@@ -9302,22 +9354,22 @@ const Co = Ge`
|
|
|
9302
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"/>`
|
|
9303
9355
|
)
|
|
9304
9356
|
};
|
|
9305
|
-
function
|
|
9306
|
-
return
|
|
9357
|
+
function ft(t) {
|
|
9358
|
+
return Ro[t] ?? q.globe;
|
|
9307
9359
|
}
|
|
9308
|
-
function
|
|
9360
|
+
function ki(t) {
|
|
9309
9361
|
const e = (t.trim()[0] ?? "?").toUpperCase();
|
|
9310
9362
|
return /[A-Z0-9]/i.test(e) ? e : q.user;
|
|
9311
9363
|
}
|
|
9312
|
-
function
|
|
9364
|
+
function vt(t) {
|
|
9313
9365
|
typeof document > "u" || (document.querySelector("authui-modal") || document.body.appendChild(document.createElement("authui-modal")), queueMicrotask(() => {
|
|
9314
9366
|
window.dispatchEvent(new CustomEvent("authui:open", { detail: { view: t } }));
|
|
9315
9367
|
}));
|
|
9316
9368
|
}
|
|
9317
|
-
function
|
|
9369
|
+
function Mo() {
|
|
9318
9370
|
typeof window > "u" || window.dispatchEvent(new CustomEvent("authui:close"));
|
|
9319
9371
|
}
|
|
9320
|
-
function
|
|
9372
|
+
function hi(t) {
|
|
9321
9373
|
const e = {
|
|
9322
9374
|
length: t.length >= 8,
|
|
9323
9375
|
long: t.length >= 12,
|
|
@@ -9333,24 +9385,25 @@ function pi(t) {
|
|
|
9333
9385
|
let i, o;
|
|
9334
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 };
|
|
9335
9387
|
}
|
|
9336
|
-
var
|
|
9337
|
-
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--)
|
|
9338
9390
|
(s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
|
|
9339
|
-
return i && o &&
|
|
9391
|
+
return i && o && Eo(e, n, o), o;
|
|
9340
9392
|
};
|
|
9393
|
+
const Ve = "authui-error";
|
|
9341
9394
|
let he = class extends qe {
|
|
9342
9395
|
constructor() {
|
|
9343
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) => {
|
|
9344
9397
|
t.preventDefault(), this.requireValid(t) && this.run(async () => {
|
|
9345
|
-
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" });
|
|
9346
9399
|
});
|
|
9347
9400
|
}, this.onSignUp = (t) => {
|
|
9348
9401
|
t.preventDefault(), this.requireValid(t) && (this.legalErrorFromOAuth = !1, this.ensureLegalAccepted() && this.run(async () => {
|
|
9349
|
-
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" });
|
|
9350
9403
|
}));
|
|
9351
9404
|
}, this.onGuest = () => {
|
|
9352
9405
|
this.run(async () => {
|
|
9353
|
-
await M.signInAnonymously(),
|
|
9406
|
+
await M.signInAnonymously(), it("anonymous"), this.fire("authui-success", { method: "anonymous" });
|
|
9354
9407
|
});
|
|
9355
9408
|
}, this.onOAuth = (t) => {
|
|
9356
9409
|
if (this.step === "sign-up" && !this.ensureLegalAccepted()) {
|
|
@@ -9358,8 +9411,8 @@ let he = class extends qe {
|
|
|
9358
9411
|
return;
|
|
9359
9412
|
}
|
|
9360
9413
|
this.legalErrorFromOAuth = !1, this.run(async () => {
|
|
9361
|
-
if (
|
|
9362
|
-
|
|
9414
|
+
if (yo(t), await M.signInWithOAuth(t), M.isPreview) {
|
|
9415
|
+
rn(), this.fire("authui-success", { method: "oauth" });
|
|
9363
9416
|
return;
|
|
9364
9417
|
}
|
|
9365
9418
|
await new Promise((e) => setTimeout(e, 4e3));
|
|
@@ -9407,7 +9460,7 @@ let he = class extends qe {
|
|
|
9407
9460
|
if (t.preventDefault(), !this.requireValid(t)) return;
|
|
9408
9461
|
const e = this.token;
|
|
9409
9462
|
e && this.run(async () => {
|
|
9410
|
-
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 });
|
|
9411
9464
|
}, "code");
|
|
9412
9465
|
}, this.onChooseFactor = (t) => {
|
|
9413
9466
|
this.run(async () => {
|
|
@@ -9425,7 +9478,7 @@ let he = class extends qe {
|
|
|
9425
9478
|
try {
|
|
9426
9479
|
await M.signOut();
|
|
9427
9480
|
} catch (t) {
|
|
9428
|
-
if (!
|
|
9481
|
+
if (!wt(t, oe.sessionNotFound)) throw t;
|
|
9429
9482
|
}
|
|
9430
9483
|
this.go("sign-in");
|
|
9431
9484
|
});
|
|
@@ -9466,7 +9519,7 @@ let he = class extends qe {
|
|
|
9466
9519
|
try {
|
|
9467
9520
|
await t();
|
|
9468
9521
|
} catch (n) {
|
|
9469
|
-
this.error =
|
|
9522
|
+
this.error = Rt(n, this.strings, e);
|
|
9470
9523
|
} finally {
|
|
9471
9524
|
this.busy = !1;
|
|
9472
9525
|
}
|
|
@@ -9498,7 +9551,7 @@ let he = class extends qe {
|
|
|
9498
9551
|
>
|
|
9499
9552
|
${q.x}
|
|
9500
9553
|
</button>
|
|
9501
|
-
</div>` :
|
|
9554
|
+
</div>` : x}
|
|
9502
9555
|
${t}
|
|
9503
9556
|
</div>
|
|
9504
9557
|
`;
|
|
@@ -9540,38 +9593,29 @@ let he = class extends qe {
|
|
|
9540
9593
|
@error=${(o) => {
|
|
9541
9594
|
o.target.hidden = !0;
|
|
9542
9595
|
}}
|
|
9543
|
-
/>` :
|
|
9544
|
-
${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}
|
|
9545
9598
|
<h2 class="title" id="authui-title">${n}</h2>
|
|
9546
|
-
${i ? b`<p class="description">${i}</p>` :
|
|
9599
|
+
${i ? b`<p class="description">${i}</p>` : x}
|
|
9547
9600
|
</div>
|
|
9548
9601
|
`;
|
|
9549
9602
|
}
|
|
9550
9603
|
renderError() {
|
|
9551
|
-
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}>
|
|
9552
9605
|
${q.alert}
|
|
9553
9606
|
<div class="alert-body">${this.error}</div>
|
|
9554
|
-
</div>` :
|
|
9607
|
+
</div>` : x;
|
|
9555
9608
|
}
|
|
9556
9609
|
submitButton(t, e = "btn-primary") {
|
|
9557
9610
|
return b`<button class="btn ${e} btn-block" type="submit" ?disabled=${this.busy}>
|
|
9558
|
-
${this.busy ? b`<span class="spinner" aria-hidden="true"></span>` :
|
|
9611
|
+
${this.busy ? b`<span class="spinner" aria-hidden="true"></span>` : x} ${t}
|
|
9559
9612
|
</button>`;
|
|
9560
9613
|
}
|
|
9561
9614
|
passwordField(t) {
|
|
9562
|
-
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;
|
|
9563
9616
|
return b`
|
|
9564
|
-
<div class="field">
|
|
9565
|
-
<
|
|
9566
|
-
<label class="label" for=${t.id}>${t.label}</label>
|
|
9567
|
-
${t.forgot ? b`<button
|
|
9568
|
-
type="button"
|
|
9569
|
-
class="btn btn-link small"
|
|
9570
|
-
@click=${() => this.go("forgot-password")}
|
|
9571
|
-
>
|
|
9572
|
-
${this.t("forgotPassword")}
|
|
9573
|
-
</button>` : C}
|
|
9574
|
-
</div>
|
|
9617
|
+
<div class="field${t.forgot ? " field-with-forgot" : ""}">
|
|
9618
|
+
<label class="label" for=${t.id}>${t.label}</label>
|
|
9575
9619
|
<div class="input-wrap">
|
|
9576
9620
|
<input
|
|
9577
9621
|
class="input"
|
|
@@ -9582,6 +9626,8 @@ let he = class extends qe {
|
|
|
9582
9626
|
minlength="8"
|
|
9583
9627
|
.value=${e}
|
|
9584
9628
|
@input=${this.bind(t.field)}
|
|
9629
|
+
aria-invalid=${this.error ? "true" : x}
|
|
9630
|
+
aria-describedby=${this.error ? Ve : x}
|
|
9585
9631
|
/>
|
|
9586
9632
|
<button
|
|
9587
9633
|
type="button"
|
|
@@ -9594,6 +9640,13 @@ let he = class extends qe {
|
|
|
9594
9640
|
${n ? q.eyeOff : q.eye}
|
|
9595
9641
|
</button>
|
|
9596
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}
|
|
9597
9650
|
${i && e ? b`<div class="strength" aria-live="polite">
|
|
9598
9651
|
<div
|
|
9599
9652
|
class="strength-meter"
|
|
@@ -9608,7 +9661,7 @@ let he = class extends qe {
|
|
|
9608
9661
|
<span></span><span></span><span></span><span></span>
|
|
9609
9662
|
</div>
|
|
9610
9663
|
<p class="strength-label">${this.t(i.labelKey)}</p>
|
|
9611
|
-
</div>` : t.hint ? b`<p class="hint">${t.hint}</p>` :
|
|
9664
|
+
</div>` : t.hint ? b`<p class="hint">${t.hint}</p>` : x}
|
|
9612
9665
|
</div>
|
|
9613
9666
|
`;
|
|
9614
9667
|
}
|
|
@@ -9625,6 +9678,8 @@ let he = class extends qe {
|
|
|
9625
9678
|
inputmode="email"
|
|
9626
9679
|
.value=${this.email}
|
|
9627
9680
|
@input=${this.bind("email")}
|
|
9681
|
+
aria-invalid=${this.error ? "true" : x}
|
|
9682
|
+
aria-describedby=${this.error ? Ve : x}
|
|
9628
9683
|
/>
|
|
9629
9684
|
</div>
|
|
9630
9685
|
`;
|
|
@@ -9644,6 +9699,8 @@ let he = class extends qe {
|
|
|
9644
9699
|
required
|
|
9645
9700
|
.value=${this.code}
|
|
9646
9701
|
@input=${this.bind("code")}
|
|
9702
|
+
aria-invalid=${this.error ? "true" : x}
|
|
9703
|
+
aria-describedby=${this.error ? Ve : x}
|
|
9647
9704
|
/>
|
|
9648
9705
|
</div>
|
|
9649
9706
|
`;
|
|
@@ -9659,24 +9716,28 @@ let he = class extends qe {
|
|
|
9659
9716
|
}
|
|
9660
9717
|
legalLinks() {
|
|
9661
9718
|
const t = this.config?.legal;
|
|
9662
|
-
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}`;
|
|
9663
9720
|
}
|
|
9664
9721
|
legal() {
|
|
9665
9722
|
const t = this.config?.legal;
|
|
9666
|
-
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>`;
|
|
9667
9724
|
}
|
|
9668
9725
|
/** Required acceptance checkbox on sign-up when legal.requireAcceptance is set. */
|
|
9669
9726
|
legalAcceptField() {
|
|
9670
|
-
|
|
9727
|
+
if (!this.needsLegalAcceptance()) return x;
|
|
9728
|
+
const t = this.error === this.t("errorLegalRequired");
|
|
9729
|
+
return b`<label class="legal-accept">
|
|
9671
9730
|
<input
|
|
9672
9731
|
type="checkbox"
|
|
9673
9732
|
.checked=${this.legalAccepted}
|
|
9674
|
-
|
|
9675
|
-
|
|
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);
|
|
9676
9737
|
}}
|
|
9677
9738
|
/>
|
|
9678
9739
|
<span>${this.t("acceptLegal")} ${this.legalLinks()}.</span>
|
|
9679
|
-
</label
|
|
9740
|
+
</label>`;
|
|
9680
9741
|
}
|
|
9681
9742
|
backLink(t = "sign-in") {
|
|
9682
9743
|
return b`<div class="links">
|
|
@@ -9724,10 +9785,10 @@ let he = class extends qe {
|
|
|
9724
9785
|
<div class="stack">
|
|
9725
9786
|
<div class="row">
|
|
9726
9787
|
<div class="inline">
|
|
9727
|
-
<span class="avatar">${
|
|
9788
|
+
<span class="avatar">${ki(e)}</span>
|
|
9728
9789
|
<div class="row-main">
|
|
9729
9790
|
<span class="row-title" title=${e}>${e}</span>
|
|
9730
|
-
${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}
|
|
9731
9792
|
</div>
|
|
9732
9793
|
</div>
|
|
9733
9794
|
</div>
|
|
@@ -9735,11 +9796,11 @@ let he = class extends qe {
|
|
|
9735
9796
|
<div class="stack-sm">
|
|
9736
9797
|
${this.config?.successUrl ? b`<a class="btn btn-primary btn-block" href=${this.config.successUrl}
|
|
9737
9798
|
>${this.t("continue")}</a
|
|
9738
|
-
>` :
|
|
9799
|
+
>` : x}
|
|
9739
9800
|
<button
|
|
9740
9801
|
class="btn btn-outline btn-block"
|
|
9741
9802
|
@click=${() => {
|
|
9742
|
-
this.embedded ? this.fire("authui-open", { view: "account" }) :
|
|
9803
|
+
this.embedded ? this.fire("authui-open", { view: "account" }) : vt("account");
|
|
9743
9804
|
}}
|
|
9744
9805
|
>
|
|
9745
9806
|
${q.settings} ${this.t("manageAccount")}
|
|
@@ -9753,8 +9814,8 @@ let he = class extends qe {
|
|
|
9753
9814
|
}
|
|
9754
9815
|
renderProviders() {
|
|
9755
9816
|
const t = [...this.config?.methods?.oauth ?? []];
|
|
9756
|
-
if (t.length === 0) return
|
|
9757
|
-
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";
|
|
9758
9819
|
if (o === "icon") {
|
|
9759
9820
|
const s = [...t].sort((r, d) => {
|
|
9760
9821
|
const c = e === `oauth:${r}` ? 0 : 1, p = e === `oauth:${d}` ? 0 : 1;
|
|
@@ -9763,7 +9824,7 @@ let he = class extends qe {
|
|
|
9763
9824
|
return b`
|
|
9764
9825
|
<div class="providers icon">
|
|
9765
9826
|
${s.map((r) => {
|
|
9766
|
-
const d = e === `oauth:${r}`, c = this.t("continueWith", { provider:
|
|
9827
|
+
const d = e === `oauth:${r}`, c = this.t("continueWith", { provider: ht(r) });
|
|
9767
9828
|
return b`<button
|
|
9768
9829
|
type="button"
|
|
9769
9830
|
class="btn btn-outline ${d ? "last-used" : ""}"
|
|
@@ -9772,8 +9833,8 @@ let he = class extends qe {
|
|
|
9772
9833
|
aria-label=${d ? `${c}. ${this.t("lastUsed")}` : c}
|
|
9773
9834
|
title=${c}
|
|
9774
9835
|
>
|
|
9775
|
-
${
|
|
9776
|
-
${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}
|
|
9777
9838
|
</button>`;
|
|
9778
9839
|
})}
|
|
9779
9840
|
</div>
|
|
@@ -9787,7 +9848,7 @@ let he = class extends qe {
|
|
|
9787
9848
|
return b`
|
|
9788
9849
|
<div class="providers">
|
|
9789
9850
|
${s.map((r) => {
|
|
9790
|
-
const d = e === `oauth:${r}`, c = this.t("continueWith", { provider:
|
|
9851
|
+
const d = e === `oauth:${r}`, c = this.t("continueWith", { provider: ht(r) });
|
|
9791
9852
|
return b`<button
|
|
9792
9853
|
type="button"
|
|
9793
9854
|
class="btn btn-outline ${d ? "last-used" : ""}"
|
|
@@ -9795,9 +9856,9 @@ let he = class extends qe {
|
|
|
9795
9856
|
?disabled=${this.busy}
|
|
9796
9857
|
aria-label=${d ? `${c}. ${this.t("lastUsed")}` : c}
|
|
9797
9858
|
>
|
|
9798
|
-
${
|
|
9859
|
+
${ft(r)}
|
|
9799
9860
|
<span>${c}</span>
|
|
9800
|
-
${d ? b`<span class="last-used-badge">${this.t("lastUsed")}</span>` :
|
|
9861
|
+
${d ? b`<span class="last-used-badge">${this.t("lastUsed")}</span>` : x}
|
|
9801
9862
|
</button>`;
|
|
9802
9863
|
})}
|
|
9803
9864
|
</div>
|
|
@@ -9812,7 +9873,7 @@ let he = class extends qe {
|
|
|
9812
9873
|
}}
|
|
9813
9874
|
>
|
|
9814
9875
|
${t.map((s) => {
|
|
9815
|
-
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) });
|
|
9816
9877
|
return b`<div
|
|
9817
9878
|
class="provider-slot ${d ? "is-expanded" : ""}"
|
|
9818
9879
|
@mouseenter=${() => {
|
|
@@ -9829,14 +9890,14 @@ let he = class extends qe {
|
|
|
9829
9890
|
?disabled=${this.busy}
|
|
9830
9891
|
aria-label=${r ? `${c}. ${this.t("lastUsed")}` : c}
|
|
9831
9892
|
>
|
|
9832
|
-
${
|
|
9893
|
+
${ft(s)}
|
|
9833
9894
|
<span class="provider-label"
|
|
9834
9895
|
><span><span class="provider-label-text">${c}</span></span></span
|
|
9835
9896
|
>
|
|
9836
9897
|
${r ? b`<span class="oauth-last-used" data-last-used=${s} aria-hidden="true">
|
|
9837
9898
|
<span class="oauth-last-used-dot"></span>
|
|
9838
9899
|
<span class="oauth-last-used-pill">${this.t("lastUsed")}</span>
|
|
9839
|
-
</span>` :
|
|
9900
|
+
</span>` : x}
|
|
9840
9901
|
</button>
|
|
9841
9902
|
</div>`;
|
|
9842
9903
|
})}
|
|
@@ -9852,22 +9913,22 @@ let he = class extends qe {
|
|
|
9852
9913
|
return b`
|
|
9853
9914
|
<div class="stack">
|
|
9854
9915
|
${this.renderProviders()}
|
|
9855
|
-
${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}
|
|
9856
9917
|
${e ? b`<form
|
|
9857
|
-
class="form ${
|
|
9918
|
+
class="form ${et() === "email-password" ? "last-used-form" : ""}"
|
|
9858
9919
|
@submit=${this.onSignIn}
|
|
9859
9920
|
novalidate
|
|
9860
9921
|
>
|
|
9861
|
-
${
|
|
9922
|
+
${et() === "email-password" ? b`<p class="hint">
|
|
9862
9923
|
<span class="last-used-badge">${this.t("lastUsed")}</span>
|
|
9863
|
-
</p>` :
|
|
9924
|
+
</p>` : x}
|
|
9864
9925
|
${this.emailField()}
|
|
9865
9926
|
${this.passwordField({ label: this.t("password"), autocomplete: "current-password", id: "authui-password", field: "password", forgot: !0 })}
|
|
9866
9927
|
${this.renderError()} ${this.submitButton(this.t("signIn"))}
|
|
9867
9928
|
</form>` : this.renderError()}
|
|
9868
9929
|
${i.length > 0 ? b`<div class="stack-sm">
|
|
9869
9930
|
${i.map((o) => {
|
|
9870
|
-
const a =
|
|
9931
|
+
const a = et() === o.step;
|
|
9871
9932
|
return b`<button
|
|
9872
9933
|
type="button"
|
|
9873
9934
|
class="btn btn-secondary btn-block ${a ? "last-used" : ""}"
|
|
@@ -9875,25 +9936,25 @@ let he = class extends qe {
|
|
|
9875
9936
|
?disabled=${this.busy}
|
|
9876
9937
|
>
|
|
9877
9938
|
${o.icon} ${o.label}
|
|
9878
|
-
${a ? b`<span class="last-used-badge">${this.t("lastUsed")}</span>` :
|
|
9939
|
+
${a ? b`<span class="last-used-badge">${this.t("lastUsed")}</span>` : x}
|
|
9879
9940
|
</button>`;
|
|
9880
9941
|
})}
|
|
9881
|
-
</div>` :
|
|
9942
|
+
</div>` : x}
|
|
9882
9943
|
${t.anonymous ? b`<button
|
|
9883
9944
|
type="button"
|
|
9884
|
-
class="btn btn-ghost btn-block ${
|
|
9945
|
+
class="btn btn-ghost btn-block ${et() === "anonymous" ? "last-used" : ""}"
|
|
9885
9946
|
@click=${this.onGuest}
|
|
9886
9947
|
?disabled=${this.busy}
|
|
9887
9948
|
>
|
|
9888
9949
|
${q.ghost} ${this.t("continueAsGuest")}
|
|
9889
|
-
${
|
|
9890
|
-
</button>` :
|
|
9950
|
+
${et() === "anonymous" ? b`<span class="last-used-badge">${this.t("lastUsed")}</span>` : x}
|
|
9951
|
+
</button>` : x}
|
|
9891
9952
|
${e && this.config?.signUp !== !1 ? b`<div class="links">
|
|
9892
9953
|
<span>${this.t("noAccount")}</span>
|
|
9893
9954
|
<button type="button" class="btn btn-link" @click=${() => this.go("sign-up")}>
|
|
9894
9955
|
${this.t("signUp")}
|
|
9895
9956
|
</button>
|
|
9896
|
-
</div>` :
|
|
9957
|
+
</div>` : x}
|
|
9897
9958
|
${this.legal()}
|
|
9898
9959
|
</div>
|
|
9899
9960
|
`;
|
|
@@ -9902,8 +9963,8 @@ let he = class extends qe {
|
|
|
9902
9963
|
const t = this.legalErrorFromOAuth && this.error === this.t("errorLegalRequired");
|
|
9903
9964
|
return b`
|
|
9904
9965
|
<div class="stack">
|
|
9905
|
-
${this.renderProviders()} ${t ? this.renderError() :
|
|
9906
|
-
${(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}
|
|
9907
9968
|
<form class="form" @submit=${this.onSignUp} novalidate>
|
|
9908
9969
|
${this.config?.requireName !== !1 ? b`<div class="field">
|
|
9909
9970
|
<label class="label" for="authui-name">${this.t("name")}</label>
|
|
@@ -9915,11 +9976,13 @@ let he = class extends qe {
|
|
|
9915
9976
|
required
|
|
9916
9977
|
.value=${this.name}
|
|
9917
9978
|
@input=${this.bind("name")}
|
|
9979
|
+
aria-invalid=${this.error ? "true" : x}
|
|
9980
|
+
aria-describedby=${this.error ? Ve : x}
|
|
9918
9981
|
/>
|
|
9919
|
-
</div>` :
|
|
9982
|
+
</div>` : x}
|
|
9920
9983
|
${this.emailField()}
|
|
9921
9984
|
${this.passwordField({ label: this.t("password"), autocomplete: "new-password", id: "authui-password", field: "password", hint: this.t("passwordHint"), meter: !0 })}
|
|
9922
|
-
${this.legalAcceptField()} ${t ?
|
|
9985
|
+
${this.legalAcceptField()} ${t ? x : this.renderError()}
|
|
9923
9986
|
${this.submitButton(this.t("createAccount"))}
|
|
9924
9987
|
</form>
|
|
9925
9988
|
<div class="links">
|
|
@@ -9987,7 +10050,7 @@ let he = class extends qe {
|
|
|
9987
10050
|
${this.t("securityPhrase")}: <span class="code">${t}</span>
|
|
9988
10051
|
</div>
|
|
9989
10052
|
<div class="alert-body">${this.t("securityPhraseHint")}</div>
|
|
9990
|
-
</div>` :
|
|
10053
|
+
</div>` : x;
|
|
9991
10054
|
}
|
|
9992
10055
|
renderMagicUrl() {
|
|
9993
10056
|
return this.token ? b`<div class="stack">
|
|
@@ -10083,6 +10146,8 @@ let he = class extends qe {
|
|
|
10083
10146
|
required
|
|
10084
10147
|
.value=${this.phone}
|
|
10085
10148
|
@input=${this.bind("phone")}
|
|
10149
|
+
aria-invalid=${this.error ? "true" : x}
|
|
10150
|
+
aria-describedby=${this.error ? Ve : x}
|
|
10086
10151
|
/>
|
|
10087
10152
|
</div>
|
|
10088
10153
|
${this.renderError()} ${this.submitButton(this.t("sendCode"))}
|
|
@@ -10157,6 +10222,8 @@ let he = class extends qe {
|
|
|
10157
10222
|
required
|
|
10158
10223
|
.value=${this.code}
|
|
10159
10224
|
@input=${this.bind("code")}
|
|
10225
|
+
aria-invalid=${this.error ? "true" : x}
|
|
10226
|
+
aria-describedby=${this.error ? Ve : x}
|
|
10160
10227
|
/>
|
|
10161
10228
|
</div>` : this.codeField()}
|
|
10162
10229
|
${this.renderError()} ${this.submitButton(this.t("verifyCode"))}
|
|
@@ -10174,7 +10241,7 @@ let he = class extends qe {
|
|
|
10174
10241
|
`;
|
|
10175
10242
|
}
|
|
10176
10243
|
};
|
|
10177
|
-
he.styles = [...qe.styles,
|
|
10244
|
+
he.styles = [...qe.styles, Uo];
|
|
10178
10245
|
ye([
|
|
10179
10246
|
F({ type: String })
|
|
10180
10247
|
], he.prototype, "view", 2);
|
|
@@ -10215,7 +10282,7 @@ ye([
|
|
|
10215
10282
|
N()
|
|
10216
10283
|
], he.prototype, "recovery", 2);
|
|
10217
10284
|
ye([
|
|
10218
|
-
|
|
10285
|
+
vi("form input:not([type=hidden])")
|
|
10219
10286
|
], he.prototype, "firstInput", 2);
|
|
10220
10287
|
ye([
|
|
10221
10288
|
N()
|
|
@@ -10230,12 +10297,12 @@ ye([
|
|
|
10230
10297
|
N()
|
|
10231
10298
|
], he.prototype, "legalErrorFromOAuth", 2);
|
|
10232
10299
|
he = ye([
|
|
10233
|
-
|
|
10300
|
+
Oe("authui-sign-in")
|
|
10234
10301
|
], he);
|
|
10235
|
-
var
|
|
10236
|
-
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--)
|
|
10237
10304
|
(s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
|
|
10238
|
-
return i && o &&
|
|
10305
|
+
return i && o && _o(e, n, o), o;
|
|
10239
10306
|
};
|
|
10240
10307
|
let z = class extends qe {
|
|
10241
10308
|
constructor() {
|
|
@@ -10343,7 +10410,7 @@ let z = class extends qe {
|
|
|
10343
10410
|
try {
|
|
10344
10411
|
this.recoveryCodes = await M.createRecoveryCodes();
|
|
10345
10412
|
} catch (t) {
|
|
10346
|
-
if (!
|
|
10413
|
+
if (!wt(t, oe.recoveryCodesExist)) throw t;
|
|
10347
10414
|
this.recoveryCodes = await M.getRecoveryCodes();
|
|
10348
10415
|
}
|
|
10349
10416
|
await this.loadFactors();
|
|
@@ -10466,9 +10533,9 @@ let z = class extends qe {
|
|
|
10466
10533
|
try {
|
|
10467
10534
|
await e(), n && this.setNotice("success", n);
|
|
10468
10535
|
} catch (i) {
|
|
10469
|
-
|
|
10536
|
+
wt(i, oe.challengeRequired) ? this.stepUp = { retry: () => this.run(t, e, n) } : this.errors = {
|
|
10470
10537
|
...this.errors,
|
|
10471
|
-
[t]:
|
|
10538
|
+
[t]: Rt(
|
|
10472
10539
|
i,
|
|
10473
10540
|
this.strings,
|
|
10474
10541
|
t.includes("code") ? "code" : t === "password" ? "password" : "link"
|
|
@@ -10606,7 +10673,7 @@ let z = class extends qe {
|
|
|
10606
10673
|
>
|
|
10607
10674
|
${q.x}
|
|
10608
10675
|
</button>
|
|
10609
|
-
</div>` :
|
|
10676
|
+
</div>` : x}
|
|
10610
10677
|
${this.stepUp ? this.renderStepUp() : b`<div
|
|
10611
10678
|
class="tabpanel"
|
|
10612
10679
|
role="tabpanel"
|
|
@@ -10623,14 +10690,14 @@ let z = class extends qe {
|
|
|
10623
10690
|
return b`
|
|
10624
10691
|
<div class="between">
|
|
10625
10692
|
<div class="identity">
|
|
10626
|
-
<span class="avatar">${
|
|
10693
|
+
<span class="avatar">${ki(e)}</span>
|
|
10627
10694
|
<div class="row-main">
|
|
10628
10695
|
<span class="row-title" title=${e}>
|
|
10629
10696
|
${e}
|
|
10630
|
-
${t.mfa ? b`<span class="badge badge-success">${q.shieldCheck} ${this.t("mfaBadge")}</span>` :
|
|
10631
|
-
${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}
|
|
10632
10699
|
</span>
|
|
10633
|
-
${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}
|
|
10634
10701
|
</div>
|
|
10635
10702
|
</div>
|
|
10636
10703
|
<button class="btn btn-outline btn-sm" @click=${() => M.signOut()}>
|
|
@@ -10658,19 +10725,19 @@ let z = class extends qe {
|
|
|
10658
10725
|
return e ? b`<div class="alert alert-error" role="alert">
|
|
10659
10726
|
${q.alert}
|
|
10660
10727
|
<div class="alert-body">${e}</div>
|
|
10661
|
-
</div>` :
|
|
10728
|
+
</div>` : x;
|
|
10662
10729
|
}
|
|
10663
10730
|
spinner(t) {
|
|
10664
|
-
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;
|
|
10665
10732
|
}
|
|
10666
10733
|
card(t, e, n, i, o = !1) {
|
|
10667
10734
|
return b`<section class="card ${o ? "card-danger" : ""}">
|
|
10668
10735
|
<div class="card-header">
|
|
10669
10736
|
<h3 class="card-title">${t}</h3>
|
|
10670
|
-
${e ? b`<p class="card-description">${e}</p>` :
|
|
10737
|
+
${e ? b`<p class="card-description">${e}</p>` : x}
|
|
10671
10738
|
</div>
|
|
10672
|
-
${n !==
|
|
10673
|
-
${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}
|
|
10674
10741
|
</section>`;
|
|
10675
10742
|
}
|
|
10676
10743
|
/** Vibes-style confirm footer: Cancel first (autofocus), destructive only on confirm. */
|
|
@@ -10691,7 +10758,7 @@ let z = class extends qe {
|
|
|
10691
10758
|
?disabled=${!!this.busy}
|
|
10692
10759
|
@click=${e}
|
|
10693
10760
|
>
|
|
10694
|
-
${i ? this.spinner(i) :
|
|
10761
|
+
${i ? this.spinner(i) : x} ${n}
|
|
10695
10762
|
</button>
|
|
10696
10763
|
`;
|
|
10697
10764
|
}
|
|
@@ -10748,7 +10815,7 @@ let z = class extends qe {
|
|
|
10748
10815
|
autocomplete="new-password"
|
|
10749
10816
|
/>
|
|
10750
10817
|
${this.emailPassword ? (() => {
|
|
10751
|
-
const e =
|
|
10818
|
+
const e = hi(this.emailPassword);
|
|
10752
10819
|
return b`<div class="strength" aria-live="polite">
|
|
10753
10820
|
<div
|
|
10754
10821
|
class="strength-meter"
|
|
@@ -10811,7 +10878,7 @@ let z = class extends qe {
|
|
|
10811
10878
|
<div class="field">
|
|
10812
10879
|
<label class="label" for="acc-email"
|
|
10813
10880
|
>${this.t("email")}
|
|
10814
|
-
${t.email ? this.verifiedBadge(t.emailVerification) :
|
|
10881
|
+
${t.email ? this.verifiedBadge(t.emailVerification) : x}</label
|
|
10815
10882
|
>
|
|
10816
10883
|
<input
|
|
10817
10884
|
class="input"
|
|
@@ -10836,8 +10903,8 @@ let z = class extends qe {
|
|
|
10836
10903
|
autocomplete=${t.passwordUpdate ? "current-password" : "new-password"}
|
|
10837
10904
|
required
|
|
10838
10905
|
/>
|
|
10839
|
-
${t.passwordUpdate ?
|
|
10840
|
-
</div>` :
|
|
10906
|
+
${t.passwordUpdate ? x : b`<p class="hint">${this.t("createPasswordHint")}</p>`}
|
|
10907
|
+
</div>` : x}
|
|
10841
10908
|
${this.error("email")} ${this.error("verify")}
|
|
10842
10909
|
</form>`,
|
|
10843
10910
|
b`
|
|
@@ -10854,7 +10921,7 @@ let z = class extends qe {
|
|
|
10854
10921
|
Math.ceil((this.verifyEmailCooldownUntil - Date.now()) / 1e3)
|
|
10855
10922
|
)
|
|
10856
10923
|
}) : this.t("verifyEmail")}
|
|
10857
|
-
</button>` :
|
|
10924
|
+
</button>` : x}
|
|
10858
10925
|
<button
|
|
10859
10926
|
class="btn btn-primary btn-sm"
|
|
10860
10927
|
type="submit"
|
|
@@ -10872,7 +10939,7 @@ let z = class extends qe {
|
|
|
10872
10939
|
<div class="field">
|
|
10873
10940
|
<label class="label" for="acc-phone"
|
|
10874
10941
|
>${this.t("phone")}
|
|
10875
|
-
${t.phone ? this.verifiedBadge(t.phoneVerification) :
|
|
10942
|
+
${t.phone ? this.verifiedBadge(t.phoneVerification) : x}</label
|
|
10876
10943
|
>
|
|
10877
10944
|
<input
|
|
10878
10945
|
class="input"
|
|
@@ -10897,8 +10964,8 @@ let z = class extends qe {
|
|
|
10897
10964
|
autocomplete=${t.passwordUpdate ? "current-password" : "new-password"}
|
|
10898
10965
|
required
|
|
10899
10966
|
/>
|
|
10900
|
-
${t.passwordUpdate ?
|
|
10901
|
-
</div>` :
|
|
10967
|
+
${t.passwordUpdate ? x : b`<p class="hint">${this.t("createPasswordHint")}</p>`}
|
|
10968
|
+
</div>` : x}
|
|
10902
10969
|
${this.phoneCodeSent ? b`<div class="field">
|
|
10903
10970
|
<label class="label" for="acc-phone-code">${this.t("code")}</label>
|
|
10904
10971
|
<input
|
|
@@ -10915,7 +10982,7 @@ let z = class extends qe {
|
|
|
10915
10982
|
e.key === "Enter" && (e.preventDefault(), this.onConfirmPhoneVerification(e));
|
|
10916
10983
|
}}
|
|
10917
10984
|
/>
|
|
10918
|
-
</div>` :
|
|
10985
|
+
</div>` : x}
|
|
10919
10986
|
${this.error("phone")} ${this.error("verify-phone")} ${this.error("verify-phone-code")}
|
|
10920
10987
|
</form>`,
|
|
10921
10988
|
b`
|
|
@@ -10926,7 +10993,7 @@ let z = class extends qe {
|
|
|
10926
10993
|
?disabled=${!!this.busy}
|
|
10927
10994
|
>
|
|
10928
10995
|
${this.spinner("verify-phone")} ${this.t("sendCode")}
|
|
10929
|
-
</button>` :
|
|
10996
|
+
</button>` : x}
|
|
10930
10997
|
${this.phoneCodeSent ? b`<button
|
|
10931
10998
|
class="btn btn-outline btn-sm"
|
|
10932
10999
|
type="button"
|
|
@@ -10948,7 +11015,7 @@ let z = class extends qe {
|
|
|
10948
11015
|
?disabled=${!!this.busy}
|
|
10949
11016
|
>
|
|
10950
11017
|
${this.spinner("verify-phone-code")} ${this.t("verifyCode")}
|
|
10951
|
-
</button>` :
|
|
11018
|
+
</button>` : x}
|
|
10952
11019
|
<button
|
|
10953
11020
|
class="btn btn-primary btn-sm"
|
|
10954
11021
|
type="submit"
|
|
@@ -10987,7 +11054,7 @@ let z = class extends qe {
|
|
|
10987
11054
|
renderSecurity() {
|
|
10988
11055
|
const t = this.user, e = this.config?.mfa !== !1;
|
|
10989
11056
|
return b`<div class="section">
|
|
10990
|
-
${this.isGuest ?
|
|
11057
|
+
${this.isGuest ? x : this.card(
|
|
10991
11058
|
this.t("changePassword"),
|
|
10992
11059
|
void 0,
|
|
10993
11060
|
b`<form
|
|
@@ -11019,7 +11086,7 @@ let z = class extends qe {
|
|
|
11019
11086
|
${this.showOldPassword ? q.eyeOff : q.eye}
|
|
11020
11087
|
</button>
|
|
11021
11088
|
</div>
|
|
11022
|
-
</div>` :
|
|
11089
|
+
</div>` : x}
|
|
11023
11090
|
<div class="field">
|
|
11024
11091
|
<label class="label" for="acc-new-password">${this.t("newPassword")}</label>
|
|
11025
11092
|
<div class="input-wrap">
|
|
@@ -11043,7 +11110,7 @@ let z = class extends qe {
|
|
|
11043
11110
|
</button>
|
|
11044
11111
|
</div>
|
|
11045
11112
|
${this.newPassword ? (() => {
|
|
11046
|
-
const n =
|
|
11113
|
+
const n = hi(this.newPassword);
|
|
11047
11114
|
return b`<div class="strength" aria-live="polite">
|
|
11048
11115
|
<div
|
|
11049
11116
|
class="strength-meter"
|
|
@@ -11097,12 +11164,12 @@ let z = class extends qe {
|
|
|
11097
11164
|
${this.spinner("password")} ${this.t("update")}
|
|
11098
11165
|
</button>`
|
|
11099
11166
|
)}
|
|
11100
|
-
${e ? this.renderMfaCard() :
|
|
11101
|
-
${e ? this.renderRecoveryCard() :
|
|
11167
|
+
${e ? this.renderMfaCard() : x}
|
|
11168
|
+
${e ? this.renderRecoveryCard() : x}
|
|
11102
11169
|
</div>`;
|
|
11103
11170
|
}
|
|
11104
11171
|
renderMfaCard() {
|
|
11105
|
-
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() : "";
|
|
11106
11173
|
return this.card(
|
|
11107
11174
|
this.t("twoFactor"),
|
|
11108
11175
|
this.t("twoFactorDescription"),
|
|
@@ -11125,7 +11192,7 @@ let z = class extends qe {
|
|
|
11125
11192
|
${q.alert}
|
|
11126
11193
|
<div class="alert-body">
|
|
11127
11194
|
${this.t("mfaNoFactorWarning")}
|
|
11128
|
-
${this.factors?.totp ?
|
|
11195
|
+
${this.factors?.totp ? x : b`<div class="links">
|
|
11129
11196
|
<button
|
|
11130
11197
|
type="button"
|
|
11131
11198
|
class="btn btn-link"
|
|
@@ -11136,14 +11203,14 @@ let z = class extends qe {
|
|
|
11136
11203
|
</button>
|
|
11137
11204
|
</div>`}
|
|
11138
11205
|
</div>
|
|
11139
|
-
</div>` :
|
|
11206
|
+
</div>` : x}
|
|
11140
11207
|
${this.error("mfa")}
|
|
11141
11208
|
<div class="separator"></div>
|
|
11142
11209
|
<div class="toggle-row">
|
|
11143
11210
|
<div class="row-main">
|
|
11144
11211
|
<span class="row-title"
|
|
11145
11212
|
>${q.smartphone} ${this.t("authenticatorApp")}
|
|
11146
|
-
${e ? this.verifiedBadge(!0) :
|
|
11213
|
+
${e ? this.verifiedBadge(!0) : x}</span
|
|
11147
11214
|
>
|
|
11148
11215
|
</div>
|
|
11149
11216
|
${e ? this.confirmRemoveAuthenticator ? b`<div class="inline">
|
|
@@ -11170,7 +11237,7 @@ let z = class extends qe {
|
|
|
11170
11237
|
?disabled=${!!this.busy}
|
|
11171
11238
|
>
|
|
11172
11239
|
${this.spinner("remove-authenticator")} ${this.t("remove")}
|
|
11173
|
-
</button>` : this.authenticator ?
|
|
11240
|
+
</button>` : this.authenticator ? x : b`<button
|
|
11174
11241
|
class="btn btn-outline btn-sm"
|
|
11175
11242
|
@click=${this.onAddAuthenticator}
|
|
11176
11243
|
?disabled=${!!this.busy}
|
|
@@ -11225,7 +11292,7 @@ let z = class extends qe {
|
|
|
11225
11292
|
${this.t("cancel")}
|
|
11226
11293
|
</button>
|
|
11227
11294
|
</div>
|
|
11228
|
-
</form>` :
|
|
11295
|
+
</form>` : x}
|
|
11229
11296
|
</div>`
|
|
11230
11297
|
);
|
|
11231
11298
|
}
|
|
@@ -11284,7 +11351,7 @@ let z = class extends qe {
|
|
|
11284
11351
|
?disabled=${!!this.busy}
|
|
11285
11352
|
>
|
|
11286
11353
|
${q.refresh} ${this.t("regenerateRecoveryCodes")}
|
|
11287
|
-
</button>` :
|
|
11354
|
+
</button>` : x}
|
|
11288
11355
|
</div>`}
|
|
11289
11356
|
${this.error("recovery")}
|
|
11290
11357
|
</div>`
|
|
@@ -11384,8 +11451,8 @@ let z = class extends qe {
|
|
|
11384
11451
|
<div class="row-main">
|
|
11385
11452
|
<span class="row-title">
|
|
11386
11453
|
${e.clientName || e.provider}
|
|
11387
|
-
${e.clientVersion ? b`<span class="muted small">${e.clientVersion}</span>` :
|
|
11388
|
-
${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}
|
|
11389
11456
|
</span>
|
|
11390
11457
|
<span class="row-sub"
|
|
11391
11458
|
>${[e.osName, e.countryName || e.countryCode, e.ip].filter(Boolean).join(" · ")}</span
|
|
@@ -11393,7 +11460,7 @@ let z = class extends qe {
|
|
|
11393
11460
|
</div>
|
|
11394
11461
|
</div>
|
|
11395
11462
|
<div class="row-actions">
|
|
11396
|
-
${this.busy === `session-${e.$id}` ? b`<span class="spinner"></span>` :
|
|
11463
|
+
${this.busy === `session-${e.$id}` ? b`<span class="spinner"></span>` : x}
|
|
11397
11464
|
<button
|
|
11398
11465
|
class="btn btn-ghost btn-sm"
|
|
11399
11466
|
@click=${() => this.onDeleteSession(e.$id)}
|
|
@@ -11446,9 +11513,9 @@ let z = class extends qe {
|
|
|
11446
11513
|
) : t.map(
|
|
11447
11514
|
(n) => b`<div class="row">
|
|
11448
11515
|
<div class="inline">
|
|
11449
|
-
<span class="device">${
|
|
11516
|
+
<span class="device">${ft(n.provider)}</span>
|
|
11450
11517
|
<div class="row-main">
|
|
11451
|
-
<span class="row-title">${
|
|
11518
|
+
<span class="row-title">${ht(n.provider)}</span>
|
|
11452
11519
|
<span class="row-sub">${n.providerEmail || n.providerUid}</span>
|
|
11453
11520
|
</div>
|
|
11454
11521
|
</div>
|
|
@@ -11469,7 +11536,7 @@ let z = class extends qe {
|
|
|
11469
11536
|
@click=${() => this.onDeleteIdentity(n.$id)}
|
|
11470
11537
|
?disabled=${!!this.busy}
|
|
11471
11538
|
>
|
|
11472
|
-
${this.busy === `identity-${n.$id}` ? b`<span class="spinner"></span>` :
|
|
11539
|
+
${this.busy === `identity-${n.$id}` ? b`<span class="spinner"></span>` : x}
|
|
11473
11540
|
${this.t("disconnect")}
|
|
11474
11541
|
</button>
|
|
11475
11542
|
</div>` : b`<button
|
|
@@ -11477,7 +11544,7 @@ let z = class extends qe {
|
|
|
11477
11544
|
@click=${() => this.onDeleteIdentity(n.$id)}
|
|
11478
11545
|
?disabled=${!!this.busy}
|
|
11479
11546
|
>
|
|
11480
|
-
${this.busy === `identity-${n.$id}` ? b`<span class="spinner"></span>` :
|
|
11547
|
+
${this.busy === `identity-${n.$id}` ? b`<span class="spinner"></span>` : x}
|
|
11481
11548
|
${this.t("disconnect")}
|
|
11482
11549
|
</button>`}
|
|
11483
11550
|
</div>
|
|
@@ -11491,8 +11558,8 @@ let z = class extends qe {
|
|
|
11491
11558
|
}}
|
|
11492
11559
|
?disabled=${!!this.busy}
|
|
11493
11560
|
>
|
|
11494
|
-
${this.spinner(`connect-${n}`)} ${
|
|
11495
|
-
${this.t("connectProvider", { provider:
|
|
11561
|
+
${this.spinner(`connect-${n}`)} ${ft(n)}
|
|
11562
|
+
${this.t("connectProvider", { provider: ht(n) })}
|
|
11496
11563
|
</button>`
|
|
11497
11564
|
)}` : void 0
|
|
11498
11565
|
)}
|
|
@@ -11526,7 +11593,7 @@ let z = class extends qe {
|
|
|
11526
11593
|
};
|
|
11527
11594
|
z.styles = [
|
|
11528
11595
|
...qe.styles,
|
|
11529
|
-
|
|
11596
|
+
Ke`
|
|
11530
11597
|
:host {
|
|
11531
11598
|
display: block;
|
|
11532
11599
|
width: 100%;
|
|
@@ -11737,12 +11804,12 @@ O([
|
|
|
11737
11804
|
N()
|
|
11738
11805
|
], z.prototype, "verifyPhoneCooldownUntil", 2);
|
|
11739
11806
|
z = O([
|
|
11740
|
-
|
|
11807
|
+
Oe("authui-account")
|
|
11741
11808
|
], z);
|
|
11742
|
-
var
|
|
11743
|
-
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--)
|
|
11744
11811
|
(s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
|
|
11745
|
-
return i && o &&
|
|
11812
|
+
return i && o && No(e, n, o), o;
|
|
11746
11813
|
};
|
|
11747
11814
|
let Ee = class extends qe {
|
|
11748
11815
|
constructor() {
|
|
@@ -11832,7 +11899,7 @@ let Ee = class extends qe {
|
|
|
11832
11899
|
${this.open ? e ? b`<authui-account embedded></authui-account>` : b`<authui-sign-in
|
|
11833
11900
|
embedded
|
|
11834
11901
|
.view=${this.view === "account" ? "sign-in" : this.view}
|
|
11835
|
-
></authui-sign-in>` :
|
|
11902
|
+
></authui-sign-in>` : x}
|
|
11836
11903
|
</div>
|
|
11837
11904
|
<div class="scroll-fade ${this.scrollCue ? "show" : ""}" aria-hidden="true"></div>
|
|
11838
11905
|
</div>
|
|
@@ -11842,7 +11909,7 @@ let Ee = class extends qe {
|
|
|
11842
11909
|
};
|
|
11843
11910
|
Ee.styles = [
|
|
11844
11911
|
...qe.styles,
|
|
11845
|
-
|
|
11912
|
+
Ke`
|
|
11846
11913
|
:host {
|
|
11847
11914
|
display: contents;
|
|
11848
11915
|
}
|
|
@@ -11852,9 +11919,11 @@ Ee.styles = [
|
|
|
11852
11919
|
background: var(--authui-background);
|
|
11853
11920
|
color: var(--authui-foreground);
|
|
11854
11921
|
padding: 0;
|
|
11855
|
-
width: calc(100% - 2rem);
|
|
11922
|
+
width: calc(100% - 2rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
|
|
11856
11923
|
max-width: 440px;
|
|
11857
|
-
max-height: calc(
|
|
11924
|
+
max-height: calc(
|
|
11925
|
+
100dvh - 2rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)
|
|
11926
|
+
);
|
|
11858
11927
|
box-shadow: var(--authui-shadow-lg);
|
|
11859
11928
|
overflow: hidden;
|
|
11860
11929
|
z-index: var(--authui-z);
|
|
@@ -11882,7 +11951,9 @@ Ee.styles = [
|
|
|
11882
11951
|
.frame {
|
|
11883
11952
|
display: flex;
|
|
11884
11953
|
flex-direction: column;
|
|
11885
|
-
max-height: calc(
|
|
11954
|
+
max-height: calc(
|
|
11955
|
+
100dvh - 2rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)
|
|
11956
|
+
);
|
|
11886
11957
|
min-height: 0;
|
|
11887
11958
|
position: relative;
|
|
11888
11959
|
}
|
|
@@ -11891,11 +11962,13 @@ Ee.styles = [
|
|
|
11891
11962
|
display: flex;
|
|
11892
11963
|
justify-content: flex-end;
|
|
11893
11964
|
align-items: center;
|
|
11894
|
-
padding: 8px 8px 0
|
|
11965
|
+
padding: max(8px, env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) 0
|
|
11966
|
+
max(8px, env(safe-area-inset-left, 0px));
|
|
11895
11967
|
background: var(--authui-background);
|
|
11896
11968
|
}
|
|
11897
11969
|
.body {
|
|
11898
|
-
padding: 4px 24px
|
|
11970
|
+
padding: 4px max(24px, env(safe-area-inset-right, 0px))
|
|
11971
|
+
max(28px, env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
|
|
11899
11972
|
overflow-y: auto;
|
|
11900
11973
|
flex: 1 1 auto;
|
|
11901
11974
|
min-height: 0;
|
|
@@ -11930,13 +12003,13 @@ Ee.styles = [
|
|
|
11930
12003
|
}
|
|
11931
12004
|
`
|
|
11932
12005
|
];
|
|
11933
|
-
|
|
12006
|
+
Ye([
|
|
11934
12007
|
F({ type: Boolean, reflect: !0 })
|
|
11935
12008
|
], Ee.prototype, "open", 2);
|
|
11936
|
-
|
|
12009
|
+
Ye([
|
|
11937
12010
|
F({ type: String })
|
|
11938
12011
|
], Ee.prototype, "view", 2);
|
|
11939
|
-
|
|
12012
|
+
Ye([
|
|
11940
12013
|
F({
|
|
11941
12014
|
attribute: "close-on-success",
|
|
11942
12015
|
reflect: !0,
|
|
@@ -11952,27 +12025,27 @@ Ke([
|
|
|
11952
12025
|
}
|
|
11953
12026
|
})
|
|
11954
12027
|
], Ee.prototype, "closeOnSuccess", 2);
|
|
11955
|
-
|
|
12028
|
+
Ye([
|
|
11956
12029
|
N()
|
|
11957
12030
|
], Ee.prototype, "handledPending", 2);
|
|
11958
|
-
|
|
12031
|
+
Ye([
|
|
11959
12032
|
N()
|
|
11960
12033
|
], Ee.prototype, "scrollCue", 2);
|
|
11961
|
-
|
|
11962
|
-
|
|
12034
|
+
Ye([
|
|
12035
|
+
vi("dialog")
|
|
11963
12036
|
], Ee.prototype, "dialog", 2);
|
|
11964
|
-
|
|
11965
|
-
|
|
12037
|
+
Ye([
|
|
12038
|
+
vi(".body")
|
|
11966
12039
|
], Ee.prototype, "bodyEl", 2);
|
|
11967
|
-
Ee =
|
|
11968
|
-
|
|
12040
|
+
Ee = Ye([
|
|
12041
|
+
Oe("authui-modal")
|
|
11969
12042
|
], Ee);
|
|
11970
|
-
var
|
|
11971
|
-
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--)
|
|
11972
12045
|
(s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
|
|
11973
|
-
return i && o &&
|
|
12046
|
+
return i && o && Ho(e, n, o), o;
|
|
11974
12047
|
};
|
|
11975
|
-
let
|
|
12048
|
+
let st = class extends qe {
|
|
11976
12049
|
constructor() {
|
|
11977
12050
|
super(...arguments), this.view = "sign-in", this.variant = "primary", this.size = "md";
|
|
11978
12051
|
}
|
|
@@ -11980,7 +12053,7 @@ let at = class extends qe {
|
|
|
11980
12053
|
const t = this.size === "md" ? "" : `btn-${this.size}`;
|
|
11981
12054
|
return b`<button
|
|
11982
12055
|
class="btn btn-${this.variant} ${t}"
|
|
11983
|
-
@click=${() =>
|
|
12056
|
+
@click=${() => vt(this.view)}
|
|
11984
12057
|
part="button"
|
|
11985
12058
|
>
|
|
11986
12059
|
<slot
|
|
@@ -11989,9 +12062,9 @@ let at = class extends qe {
|
|
|
11989
12062
|
</button>`;
|
|
11990
12063
|
}
|
|
11991
12064
|
};
|
|
11992
|
-
|
|
12065
|
+
st.styles = [
|
|
11993
12066
|
...qe.styles,
|
|
11994
|
-
|
|
12067
|
+
Ke`
|
|
11995
12068
|
:host {
|
|
11996
12069
|
display: inline-block;
|
|
11997
12070
|
}
|
|
@@ -12000,22 +12073,22 @@ at.styles = [
|
|
|
12000
12073
|
}
|
|
12001
12074
|
`
|
|
12002
12075
|
];
|
|
12003
|
-
|
|
12076
|
+
Nt([
|
|
12004
12077
|
F({ type: String })
|
|
12005
|
-
],
|
|
12006
|
-
|
|
12078
|
+
], st.prototype, "view", 2);
|
|
12079
|
+
Nt([
|
|
12007
12080
|
F({ type: String })
|
|
12008
|
-
],
|
|
12009
|
-
|
|
12081
|
+
], st.prototype, "variant", 2);
|
|
12082
|
+
Nt([
|
|
12010
12083
|
F({ type: String })
|
|
12011
|
-
],
|
|
12012
|
-
|
|
12013
|
-
|
|
12014
|
-
],
|
|
12015
|
-
var
|
|
12016
|
-
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--)
|
|
12017
12090
|
(s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
|
|
12018
|
-
return i && o &&
|
|
12091
|
+
return i && o && Xo(e, n, o), o;
|
|
12019
12092
|
};
|
|
12020
12093
|
let Ue = class extends qe {
|
|
12021
12094
|
constructor() {
|
|
@@ -12092,7 +12165,7 @@ let Ue = class extends qe {
|
|
|
12092
12165
|
if (t === "loading" && n)
|
|
12093
12166
|
return b`<span class="avatar"><span class="spinner"></span></span>`;
|
|
12094
12167
|
if (t !== "signed-in" || !e)
|
|
12095
|
-
return b`<button class="btn btn-primary btn-sm" @click=${() =>
|
|
12168
|
+
return b`<button class="btn btn-primary btn-sm" @click=${() => vt("sign-in")}>
|
|
12096
12169
|
<slot>${this.t("signIn")}</slot>
|
|
12097
12170
|
</button>`;
|
|
12098
12171
|
const i = e.name || e.email || e.phone || this.t("guestAccount");
|
|
@@ -12105,13 +12178,13 @@ let Ue = class extends qe {
|
|
|
12105
12178
|
aria-label=${i}
|
|
12106
12179
|
>
|
|
12107
12180
|
<span class="avatar"
|
|
12108
|
-
>${this.src ? b`<img src=${this.src} alt="" />` :
|
|
12181
|
+
>${this.src ? b`<img src=${this.src} alt="" />` : ki(i)}</span
|
|
12109
12182
|
>
|
|
12110
12183
|
</button>
|
|
12111
12184
|
${this.menuOpen ? b`<div class="menu ${this.menuAbove ? "above" : ""}" role="menu">
|
|
12112
12185
|
<div class="menu-header">
|
|
12113
12186
|
<span class="row-title" title=${i}>${i}</span>
|
|
12114
|
-
${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}
|
|
12115
12188
|
</div>
|
|
12116
12189
|
${this.showTeams ? b`<div class="menu-section">
|
|
12117
12190
|
<div class="menu-section-label">${this.t("teamsLabel")}</div>
|
|
@@ -12126,17 +12199,17 @@ let Ue = class extends qe {
|
|
|
12126
12199
|
>
|
|
12127
12200
|
${q.users}
|
|
12128
12201
|
<span title=${o.name}>${o.name}</span>
|
|
12129
|
-
${o.$id === this.activeTeamId ? b`<span class="check">${q.check}</span>` :
|
|
12202
|
+
${o.$id === this.activeTeamId ? b`<span class="check">${q.check}</span>` : x}
|
|
12130
12203
|
</button>`
|
|
12131
12204
|
)}
|
|
12132
|
-
</div>` :
|
|
12205
|
+
</div>` : x}
|
|
12133
12206
|
${this.renderCustomMenuItems()}
|
|
12134
12207
|
<slot name="menu-items"></slot>
|
|
12135
12208
|
<button
|
|
12136
12209
|
class="menu-item"
|
|
12137
12210
|
role="menuitem"
|
|
12138
12211
|
@click=${() => {
|
|
12139
|
-
this.menuOpen = !1,
|
|
12212
|
+
this.menuOpen = !1, vt("account");
|
|
12140
12213
|
}}
|
|
12141
12214
|
>
|
|
12142
12215
|
${q.settings} ${this.t("manageAccount")}
|
|
@@ -12150,7 +12223,7 @@ let Ue = class extends qe {
|
|
|
12150
12223
|
>
|
|
12151
12224
|
${q.logOut} ${this.t("signOut")}
|
|
12152
12225
|
</button>
|
|
12153
|
-
</div>` :
|
|
12226
|
+
</div>` : x}
|
|
12154
12227
|
`;
|
|
12155
12228
|
}
|
|
12156
12229
|
renderCustomMenuItems() {
|
|
@@ -12161,8 +12234,8 @@ let Ue = class extends qe {
|
|
|
12161
12234
|
class="menu-item"
|
|
12162
12235
|
role="menuitem"
|
|
12163
12236
|
href=${t.href}
|
|
12164
|
-
target=${n ||
|
|
12165
|
-
rel=${n === "_blank" ? "noopener noreferrer" :
|
|
12237
|
+
target=${n || x}
|
|
12238
|
+
rel=${n === "_blank" ? "noopener noreferrer" : x}
|
|
12166
12239
|
@click=${() => {
|
|
12167
12240
|
this.menuOpen = !1;
|
|
12168
12241
|
}}
|
|
@@ -12187,12 +12260,12 @@ let Ue = class extends qe {
|
|
|
12187
12260
|
>
|
|
12188
12261
|
${t.label}
|
|
12189
12262
|
</button>`;
|
|
12190
|
-
}) :
|
|
12263
|
+
}) : x;
|
|
12191
12264
|
}
|
|
12192
12265
|
};
|
|
12193
12266
|
Ue.styles = [
|
|
12194
12267
|
...qe.styles,
|
|
12195
|
-
|
|
12268
|
+
Ke`
|
|
12196
12269
|
:host {
|
|
12197
12270
|
display: inline-block;
|
|
12198
12271
|
position: relative;
|
|
@@ -12337,92 +12410,92 @@ Be([
|
|
|
12337
12410
|
N()
|
|
12338
12411
|
], Ue.prototype, "activeTeamId", 2);
|
|
12339
12412
|
Ue = Be([
|
|
12340
|
-
|
|
12413
|
+
Oe("authui-user-button")
|
|
12341
12414
|
], Ue);
|
|
12342
|
-
function Vo(t) {
|
|
12343
|
-
return M.configure(t), Oo;
|
|
12344
|
-
}
|
|
12345
12415
|
function Wo(t) {
|
|
12346
|
-
|
|
12416
|
+
return M.configure(t), Fo;
|
|
12347
12417
|
}
|
|
12348
|
-
function Go() {
|
|
12349
|
-
|
|
12418
|
+
function Go(t) {
|
|
12419
|
+
vt(t);
|
|
12350
12420
|
}
|
|
12351
12421
|
function Ko() {
|
|
12352
|
-
|
|
12422
|
+
Mo();
|
|
12353
12423
|
}
|
|
12354
12424
|
function Yo() {
|
|
12355
|
-
return M.
|
|
12425
|
+
return M.signOut();
|
|
12356
12426
|
}
|
|
12357
12427
|
function Jo() {
|
|
12358
|
-
return M.
|
|
12428
|
+
return M.user;
|
|
12359
12429
|
}
|
|
12360
12430
|
function Zo() {
|
|
12361
|
-
return M.
|
|
12431
|
+
return M.getState();
|
|
12362
12432
|
}
|
|
12363
12433
|
function Qo() {
|
|
12364
|
-
return M.
|
|
12434
|
+
return M.getClient();
|
|
12365
12435
|
}
|
|
12366
12436
|
function To() {
|
|
12437
|
+
return M.getAccount();
|
|
12438
|
+
}
|
|
12439
|
+
function zo() {
|
|
12367
12440
|
return M.previewSignIn();
|
|
12368
12441
|
}
|
|
12369
|
-
function
|
|
12442
|
+
function Oo(t, e) {
|
|
12370
12443
|
return M.on(t, e);
|
|
12371
12444
|
}
|
|
12372
|
-
const
|
|
12373
|
-
init:
|
|
12374
|
-
open:
|
|
12375
|
-
close:
|
|
12376
|
-
signOut:
|
|
12377
|
-
getUser:
|
|
12378
|
-
getState:
|
|
12379
|
-
getClient:
|
|
12380
|
-
getAccount:
|
|
12381
|
-
on:
|
|
12382
|
-
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,
|
|
12383
12456
|
store: M
|
|
12384
12457
|
};
|
|
12385
12458
|
export {
|
|
12386
|
-
|
|
12387
|
-
|
|
12459
|
+
mo as AuthStore,
|
|
12460
|
+
Fo as AuthUI,
|
|
12388
12461
|
z as AuthUIAccount,
|
|
12389
|
-
|
|
12462
|
+
st as AuthUIButton,
|
|
12390
12463
|
de as AuthUIConfigElement,
|
|
12391
12464
|
qe as AuthUIElement,
|
|
12392
12465
|
Ee as AuthUIModal,
|
|
12393
|
-
|
|
12466
|
+
bt as AuthUIShow,
|
|
12394
12467
|
he as AuthUISignIn,
|
|
12395
12468
|
Ue as AuthUIUserButton,
|
|
12396
|
-
|
|
12469
|
+
oa as CRITICAL_FOUC_CSS,
|
|
12397
12470
|
oe as ErrorTypes,
|
|
12398
|
-
|
|
12399
|
-
|
|
12400
|
-
|
|
12471
|
+
Zi as FOUC_CSS,
|
|
12472
|
+
po as PreviewAccount,
|
|
12473
|
+
ia as appwrite,
|
|
12401
12474
|
M as authStore,
|
|
12402
|
-
|
|
12403
|
-
|
|
12404
|
-
|
|
12405
|
-
|
|
12406
|
-
|
|
12407
|
-
|
|
12408
|
-
|
|
12409
|
-
|
|
12410
|
-
|
|
12411
|
-
|
|
12412
|
-
|
|
12413
|
-
|
|
12414
|
-
|
|
12415
|
-
|
|
12416
|
-
|
|
12417
|
-
|
|
12418
|
-
|
|
12419
|
-
|
|
12420
|
-
|
|
12421
|
-
|
|
12422
|
-
|
|
12423
|
-
|
|
12424
|
-
|
|
12425
|
-
|
|
12426
|
-
|
|
12427
|
-
|
|
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
|
|
12428
12501
|
};
|