@getauthui/core 0.1.1 → 0.1.2
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/dist/{authui-user-button-BRfrh3si.js → authui-user-button-C64OcOdr.js} +209 -206
- package/dist/authui.cdn.js +28 -28
- package/dist/authui.cdn.mjs +535 -532
- package/dist/authui.js +2 -2
- package/dist/components/authui-user-button.d.ts.map +1 -1
- package/dist/components/element.d.ts +8 -0
- package/dist/components/element.d.ts.map +1 -1
- package/dist/react.js +1 -1
- package/package.json +1 -1
package/dist/authui.cdn.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const
|
|
1
|
+
const mt = globalThis, ai = mt.ShadowRoot && (mt.ShadyCSS === void 0 || mt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, si = /* @__PURE__ */ Symbol(), fi = /* @__PURE__ */ new WeakMap();
|
|
2
2
|
let _i = class {
|
|
3
3
|
constructor(e, n, i) {
|
|
4
|
-
if (this._$cssResult$ = !0, i !==
|
|
4
|
+
if (this._$cssResult$ = !0, i !== si) 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 (ai && e === void 0) {
|
|
11
11
|
const i = n !== void 0 && n.length === 1;
|
|
12
12
|
i && (e = fi.get(n)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), i && fi.set(n, e));
|
|
13
13
|
}
|
|
@@ -17,28 +17,28 @@ let _i = class {
|
|
|
17
17
|
return this.cssText;
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
const
|
|
20
|
+
const Zi = (t) => new _i(typeof t == "string" ? t : t + "", void 0, si), Ve = (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 _i(n, t,
|
|
27
|
-
},
|
|
28
|
-
if (
|
|
26
|
+
return new _i(n, t, si);
|
|
27
|
+
}, Qi = (t, e) => {
|
|
28
|
+
if (ai) 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 = mt.litNonce;
|
|
31
31
|
o !== void 0 && i.setAttribute("nonce", o), i.textContent = n.cssText, t.appendChild(i);
|
|
32
32
|
}
|
|
33
|
-
}, yi =
|
|
33
|
+
}, yi = ai ? (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 Zi(n);
|
|
37
37
|
})(t) : t;
|
|
38
|
-
const { is:
|
|
38
|
+
const { is: Ti, defineProperty: zi, getOwnPropertyDescriptor: Oi, getOwnPropertyNames: Fi, getOwnPropertySymbols: en, getPrototypeOf: tn } = Object, $t = globalThis, gi = $t.trustedTypes, nn = gi ? gi.emptyScript : "", on = $t.reactiveElementPolyfillSupport, st = (t, e) => t, It = { toAttribute(t, e) {
|
|
39
39
|
switch (e) {
|
|
40
40
|
case Boolean:
|
|
41
|
-
t = t ?
|
|
41
|
+
t = t ? nn : null;
|
|
42
42
|
break;
|
|
43
43
|
case Object:
|
|
44
44
|
case Array:
|
|
@@ -63,9 +63,9 @@ const { is: Qi, defineProperty: Ti, getOwnPropertyDescriptor: zi, getOwnProperty
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
return n;
|
|
66
|
-
} },
|
|
67
|
-
Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"),
|
|
68
|
-
let
|
|
66
|
+
} }, ri = (t, e) => !Ti(t, e), mi = { attribute: !0, type: String, converter: It, reflect: !1, useDefault: !1, hasChanged: ri };
|
|
67
|
+
Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), $t.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
68
|
+
let Te = class extends HTMLElement {
|
|
69
69
|
static addInitializer(e) {
|
|
70
70
|
this._$Ei(), (this.l ??= []).push(e);
|
|
71
71
|
}
|
|
@@ -75,11 +75,11 @@ let Qe = class extends HTMLElement {
|
|
|
75
75
|
static createProperty(e, n = mi) {
|
|
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 && zi(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 } = Oi(this.prototype, e) ?? { get() {
|
|
83
83
|
return this[n];
|
|
84
84
|
}, set(s) {
|
|
85
85
|
this[n] = s;
|
|
@@ -93,14 +93,14 @@ let Qe = class extends HTMLElement {
|
|
|
93
93
|
return this.elementProperties.get(e) ?? mi;
|
|
94
94
|
}
|
|
95
95
|
static _$Ei() {
|
|
96
|
-
if (this.hasOwnProperty(
|
|
97
|
-
const e =
|
|
96
|
+
if (this.hasOwnProperty(st("elementProperties"))) return;
|
|
97
|
+
const e = tn(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(st("finalized"))) return;
|
|
102
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(st("properties"))) {
|
|
103
|
+
const n = this.properties, i = [...Fi(n), ...en(n)];
|
|
104
104
|
for (const o of i) this.createProperty(o, n[o]);
|
|
105
105
|
}
|
|
106
106
|
const e = this[Symbol.metadata];
|
|
@@ -146,7 +146,7 @@ let Qe = class extends HTMLElement {
|
|
|
146
146
|
}
|
|
147
147
|
createRenderRoot() {
|
|
148
148
|
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
149
|
-
return
|
|
149
|
+
return Qi(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 Qe = 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 : It).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 : It;
|
|
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 Qe = 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 ?? ri)(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 Qe = class extends HTMLElement {
|
|
|
246
246
|
firstUpdated(e) {
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
|
-
|
|
250
|
-
const
|
|
251
|
-
\f\r]`,
|
|
252
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ai = /'/g, ki = /"/g, Hi = /^(?:script|style|textarea|title)$/i, Di = (t) => (e, ...n) => ({ _$litType$: t, strings: e, values: n }), S = Di(1), W = Di(2),
|
|
249
|
+
Te.elementStyles = [], Te.shadowRootOptions = { mode: "open" }, Te[st("elementProperties")] = /* @__PURE__ */ new Map(), Te[st("finalized")] = /* @__PURE__ */ new Map(), on?.({ ReactiveElement: Te }), ($t.reactiveElementVersions ??= []).push("2.1.2");
|
|
250
|
+
const ci = globalThis, wi = (t) => t, vt = ci.trustedTypes, bi = vt ? vt.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, Li = "$lit$", De = `lit$${Math.random().toFixed(9).slice(2)}$`, Ni = "?" + De, an = `<${Ni}>`, Ye = document, ct = () => Ye.createComment(""), dt = (t) => t === null || typeof t != "object" && typeof t != "function", di = Array.isArray, sn = (t) => di(t) || typeof t?.[Symbol.iterator] == "function", Nt = `[
|
|
251
|
+
\f\r]`, ot = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ii = /-->/g, vi = />/g, Ge = RegExp(`>|${Nt}(?:([^\\s"'>=/]+)(${Nt}*=${Nt}*(?:[^
|
|
252
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ai = /'/g, ki = /"/g, Hi = /^(?:script|style|textarea|title)$/i, Di = (t) => (e, ...n) => ({ _$litType$: t, strings: e, values: n }), S = Di(1), W = Di(2), ze = /* @__PURE__ */ Symbol.for("lit-noChange"), R = /* @__PURE__ */ Symbol.for("lit-nothing"), ji = /* @__PURE__ */ new WeakMap(), Ke = Ye.createTreeWalker(Ye, 129);
|
|
253
253
|
function Bi(t, e) {
|
|
254
|
-
if (!
|
|
254
|
+
if (!di(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
255
255
|
return bi !== void 0 ? bi.createHTML(e) : e;
|
|
256
256
|
}
|
|
257
|
-
const
|
|
257
|
+
const rn = (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 = ot;
|
|
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 j = s ===
|
|
265
|
-
a += s ===
|
|
263
|
+
for (; m < d.length && (s.lastIndex = m, p = s.exec(d), p !== null); ) m = s.lastIndex, s === ot ? p[1] === "!--" ? s = Ii : p[1] !== void 0 ? s = vi : p[2] !== void 0 ? (Hi.test(p[2]) && (o = RegExp("</" + p[2], "g")), s = Ge) : p[3] !== void 0 && (s = Ge) : s === Ge ? p[0] === ">" ? (s = o ?? ot, u = -1) : p[1] === void 0 ? u = -2 : (u = s.lastIndex - p[2].length, c = p[1], s = p[3] === void 0 ? Ge : p[3] === '"' ? ki : Ai) : s === ki || s === Ai ? s = Ge : s === Ii || s === vi ? s = ot : (s = Ge, o = void 0);
|
|
264
|
+
const j = s === Ge && t[r + 1].startsWith("/>") ? " " : "";
|
|
265
|
+
a += s === ot ? d + an : u >= 0 ? (i.push(c), d.slice(0, u) + Li + d.slice(u) + De + j) : d + De + (u === -2 ? r : j);
|
|
266
266
|
}
|
|
267
267
|
return [Bi(t, a + (t[n] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
|
|
268
268
|
};
|
|
269
|
-
class
|
|
269
|
+
class lt {
|
|
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] = rn(e, n);
|
|
275
|
+
if (this.el = lt.createElement(c, i), Ke.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 = Ke.nextNode()) !== null && d.length < r; ) {
|
|
280
280
|
if (o.nodeType === 1) {
|
|
281
281
|
if (o.hasAttributes()) for (const u of o.getAttributeNames()) if (u.endsWith(Li)) {
|
|
282
|
-
const m = p[s++], j = o.getAttribute(u).split(
|
|
283
|
-
d.push({ type: 1, index: a, name: M[2], strings: j, ctor: M[1] === "." ?
|
|
284
|
-
} else u.startsWith(
|
|
282
|
+
const m = p[s++], j = o.getAttribute(u).split(De), M = /([.?@])?(.*)/.exec(m);
|
|
283
|
+
d.push({ type: 1, index: a, name: M[2], strings: j, ctor: M[1] === "." ? dn : M[1] === "?" ? ln : M[1] === "@" ? un : Pt }), o.removeAttribute(u);
|
|
284
|
+
} else u.startsWith(De) && (d.push({ type: 6, index: a }), o.removeAttribute(u));
|
|
285
285
|
if (Hi.test(o.tagName)) {
|
|
286
|
-
const u = o.textContent.split(
|
|
286
|
+
const u = o.textContent.split(De), m = u.length - 1;
|
|
287
287
|
if (m > 0) {
|
|
288
|
-
o.textContent =
|
|
289
|
-
for (let j = 0; j < m; j++) o.append(u[j],
|
|
290
|
-
o.append(u[m],
|
|
288
|
+
o.textContent = vt ? vt.emptyScript : "";
|
|
289
|
+
for (let j = 0; j < m; j++) o.append(u[j], ct()), Ke.nextNode(), d.push({ type: 2, index: ++a });
|
|
290
|
+
o.append(u[m], ct());
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
} else if (o.nodeType === 8) if (o.data === Ni) 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(De, u + 1)) !== -1; ) d.push({ type: 7, index: a }), u += De.length - 1;
|
|
297
297
|
}
|
|
298
298
|
a++;
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
static createElement(e, n) {
|
|
302
|
-
const i =
|
|
302
|
+
const i = Ye.createElement("template");
|
|
303
303
|
return i.innerHTML = e, i;
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
|
-
function
|
|
307
|
-
if (e ===
|
|
306
|
+
function Oe(t, e, n = t, i) {
|
|
307
|
+
if (e === ze) 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 = dt(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 = Oe(t, o._$AS(t, e.values), o, i)), e;
|
|
311
311
|
}
|
|
312
|
-
class
|
|
312
|
+
class cn {
|
|
313
313
|
constructor(e, n) {
|
|
314
314
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = n;
|
|
315
315
|
}
|
|
@@ -320,24 +320,24 @@ class rn {
|
|
|
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 ?? Ye).importNode(n, !0);
|
|
324
|
+
Ke.currentNode = o;
|
|
325
|
+
let a = Ke.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 ht(a, a.nextSibling, this, e) : d.type === 1 ? c = new d.ctor(a, d.name, d.strings, this, e) : d.type === 6 && (c = new pn(a, this, e)), this._$AV.push(c), d = i[++r];
|
|
330
330
|
}
|
|
331
|
-
s !== d?.index && (a =
|
|
331
|
+
s !== d?.index && (a = Ke.nextNode(), s++);
|
|
332
332
|
}
|
|
333
|
-
return
|
|
333
|
+
return Ke.currentNode = Ye, 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 ht {
|
|
341
341
|
get _$AU() {
|
|
342
342
|
return this._$AM?._$AU ?? this._$Cv;
|
|
343
343
|
}
|
|
@@ -356,7 +356,7 @@ class pt {
|
|
|
356
356
|
return this._$AB;
|
|
357
357
|
}
|
|
358
358
|
_$AI(e, n = this) {
|
|
359
|
-
e =
|
|
359
|
+
e = Oe(this, e, n), dt(e) ? e === R || e == null || e === "" ? (this._$AH !== R && this._$AR(), this._$AH = R) : e !== this._$AH && e !== ze && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : sn(e) ? this.k(e) : this._(e);
|
|
360
360
|
}
|
|
361
361
|
O(e) {
|
|
362
362
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -365,25 +365,25 @@ class pt {
|
|
|
365
365
|
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
366
366
|
}
|
|
367
367
|
_(e) {
|
|
368
|
-
this._$AH !== R &&
|
|
368
|
+
this._$AH !== R && dt(this._$AH) ? this._$AA.nextSibling.data = e : this.T(Ye.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 = lt.createElement(Bi(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 cn(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
379
|
let n = ji.get(e.strings);
|
|
380
|
-
return n === void 0 && ji.set(e.strings, n = new
|
|
380
|
+
return n === void 0 && ji.set(e.strings, n = new lt(e)), n;
|
|
381
381
|
}
|
|
382
382
|
k(e) {
|
|
383
|
-
|
|
383
|
+
di(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 ht(this.O(ct()), this.O(ct()), 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) {
|
|
@@ -396,7 +396,7 @@ class pt {
|
|
|
396
396
|
this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
|
-
class
|
|
399
|
+
class Pt {
|
|
400
400
|
get tagName() {
|
|
401
401
|
return this.element.tagName;
|
|
402
402
|
}
|
|
@@ -409,11 +409,11 @@ class $t {
|
|
|
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 = Oe(this, e, n, 0), s = !dt(e) || e !== this._$AH && e !== ze, 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 = Oe(this, r[i + d], n, d), c === ze && (c = this._$AH[d]), s ||= !dt(c) || c !== this._$AH[d], c === R ? e = R : e !== R && (e += (c ?? "") + a[d + 1]), this._$AH[d] = c;
|
|
417
417
|
}
|
|
418
418
|
s && !o && this.j(e);
|
|
419
419
|
}
|
|
@@ -421,7 +421,7 @@ class $t {
|
|
|
421
421
|
e === R ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
class
|
|
424
|
+
class dn extends Pt {
|
|
425
425
|
constructor() {
|
|
426
426
|
super(...arguments), this.type = 3;
|
|
427
427
|
}
|
|
@@ -429,7 +429,7 @@ class cn extends $t {
|
|
|
429
429
|
this.element[this.name] = e === R ? void 0 : e;
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
|
-
class
|
|
432
|
+
class ln extends Pt {
|
|
433
433
|
constructor() {
|
|
434
434
|
super(...arguments), this.type = 4;
|
|
435
435
|
}
|
|
@@ -437,12 +437,12 @@ class dn extends $t {
|
|
|
437
437
|
this.element.toggleAttribute(this.name, !!e && e !== R);
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
class
|
|
440
|
+
class un extends Pt {
|
|
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 =
|
|
445
|
+
if ((e = Oe(this, e, n, 0) ?? R) === ze) return;
|
|
446
446
|
const i = this._$AH, o = e === R && i !== R || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive, a = e !== R && (i === R || o);
|
|
447
447
|
o && this.element.removeEventListener(this.name, this, i), a && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
448
448
|
}
|
|
@@ -450,7 +450,7 @@ class ln extends $t {
|
|
|
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 pn {
|
|
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 un {
|
|
|
458
458
|
return this._$AM._$AU;
|
|
459
459
|
}
|
|
460
460
|
_$AI(e) {
|
|
461
|
-
|
|
461
|
+
Oe(this, e);
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
-
const
|
|
465
|
-
|
|
466
|
-
const
|
|
464
|
+
const hn = ci.litHtmlPolyfillSupport;
|
|
465
|
+
hn?.(lt, ht), (ci.litHtmlVersions ??= []).push("3.3.3");
|
|
466
|
+
const fn = (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 ht(e.insertBefore(ct(), a), a, void 0, n ?? {});
|
|
472
472
|
}
|
|
473
473
|
return o._$AI(t), o;
|
|
474
474
|
};
|
|
475
|
-
const
|
|
476
|
-
class
|
|
475
|
+
const li = globalThis;
|
|
476
|
+
class Je extends Te {
|
|
477
477
|
constructor() {
|
|
478
478
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
479
479
|
}
|
|
@@ -483,7 +483,7 @@ class Ke extends Qe {
|
|
|
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 = fn(n, this.renderRoot, this.renderOptions);
|
|
487
487
|
}
|
|
488
488
|
connectedCallback() {
|
|
489
489
|
super.connectedCallback(), this._$Do?.setConnected(!0);
|
|
@@ -492,19 +492,19 @@ class Ke extends Qe {
|
|
|
492
492
|
super.disconnectedCallback(), this._$Do?.setConnected(!1);
|
|
493
493
|
}
|
|
494
494
|
render() {
|
|
495
|
-
return
|
|
495
|
+
return ze;
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
|
|
499
|
-
const
|
|
500
|
-
|
|
501
|
-
(
|
|
502
|
-
const
|
|
498
|
+
Je._$litElement$ = !0, Je.finalized = !0, li.litElementHydrateSupport?.({ LitElement: Je });
|
|
499
|
+
const yn = li.litElementPolyfillSupport;
|
|
500
|
+
yn?.({ LitElement: Je });
|
|
501
|
+
(li.litElementVersions ??= []).push("4.2.2");
|
|
502
|
+
const Ze = (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 gn = { attribute: !0, type: String, converter: It, reflect: !1, hasChanged: ri }, mn = (t = gn, 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 yn = { attribute: !0, type: String, converter: bt, reflect: !1, hasChanged
|
|
|
526
526
|
throw Error("Unsupported decorator location: " + i);
|
|
527
527
|
};
|
|
528
528
|
function ie(t) {
|
|
529
|
-
return (e, n) => typeof n == "object" ?
|
|
529
|
+
return (e, n) => typeof n == "object" ? mn(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 ie(t) {
|
|
|
534
534
|
function T(t) {
|
|
535
535
|
return ie({ ...t, state: !0, attribute: !1 });
|
|
536
536
|
}
|
|
537
|
-
const
|
|
537
|
+
const wn = (t, e, n) => (n.configurable = !0, n.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(t, e, n), n);
|
|
538
538
|
function Xi(t, e) {
|
|
539
539
|
return (n, i, o) => {
|
|
540
540
|
const a = (s) => s.renderRoot?.querySelector(t) ?? null;
|
|
541
|
-
return
|
|
541
|
+
return wn(n, i, { get() {
|
|
542
542
|
return a(this);
|
|
543
543
|
} });
|
|
544
544
|
};
|
|
545
545
|
}
|
|
546
|
-
function
|
|
546
|
+
function bn(t) {
|
|
547
547
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
548
548
|
}
|
|
549
|
-
var
|
|
549
|
+
var at = { exports: {} }, Ht = { exports: {} }, wt = { exports: {} }, In = wt.exports, Si;
|
|
550
550
|
function Vi() {
|
|
551
551
|
return Si || (Si = 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, j = 1e9;
|
|
554
554
|
function M(N) {
|
|
555
|
-
var _, O, B, U = x.prototype = { constructor: x, toString: null, valueOf: null }, K = new x(1), Z = 20, F = 4, re = -7, ce = 21,
|
|
555
|
+
var _, O, B, U = x.prototype = { constructor: x, toString: null, valueOf: null }, K = new x(1), Z = 20, F = 4, re = -7, ce = 21, Ue = -1e7, Ae = 1e7, qe = !1, it = 1, He = 0, Mt = {
|
|
556
556
|
prefix: "",
|
|
557
557
|
groupSize: 3,
|
|
558
558
|
secondaryGroupSize: 0,
|
|
@@ -562,13 +562,13 @@ function Vi() {
|
|
|
562
562
|
fractionGroupSeparator: " ",
|
|
563
563
|
// non-breaking space
|
|
564
564
|
suffix: ""
|
|
565
|
-
},
|
|
565
|
+
}, We = "0123456789abcdefghijklmnopqrstuvwxyz", Rt = !0;
|
|
566
566
|
function x(l, f) {
|
|
567
567
|
var y, A, w, I, $, g, b, k, v = this;
|
|
568
568
|
if (!(v instanceof x)) return new x(l, f);
|
|
569
569
|
if (f == null) {
|
|
570
570
|
if (l && l._isBigNumber === !0) {
|
|
571
|
-
v.s = l.s, !l.c || l.e > Ae ? v.c = v.e = null : l.e <
|
|
571
|
+
v.s = l.s, !l.c || l.e > Ae ? v.c = v.e = null : l.e < Ue ? v.c = [v.e = 0] : (v.e = l.e, v.c = l.c.slice());
|
|
572
572
|
return;
|
|
573
573
|
}
|
|
574
574
|
if ((g = typeof l == "number") && l * 0 == 0) {
|
|
@@ -584,15 +584,15 @@ function Vi() {
|
|
|
584
584
|
}
|
|
585
585
|
(I = k.indexOf(".")) > -1 && (k = k.replace(".", "")), ($ = k.search(/e/i)) > 0 ? (I < 0 && (I = $), I += +k.slice($ + 1), k = k.substring(0, $)) : I < 0 && (I = k.length);
|
|
586
586
|
} else {
|
|
587
|
-
if (E(f, 2,
|
|
588
|
-
return v = new x(l),
|
|
587
|
+
if (E(f, 2, We.length, "Base"), f == 10 && Rt)
|
|
588
|
+
return v = new x(l), ke(v, Z + v.e + 1, F);
|
|
589
589
|
if (k = String(l), g = typeof l == "number") {
|
|
590
590
|
if (l * 0 != 0) return B(v, k, g, f);
|
|
591
591
|
if (v.s = 1 / l < 0 ? (k = k.slice(1), -1) : 1, x.DEBUG && k.replace(/^0\.0*|\./, "").length > 15)
|
|
592
592
|
throw Error(r + l);
|
|
593
593
|
} else
|
|
594
594
|
v.s = k.charCodeAt(0) === 45 ? (k = k.slice(1), -1) : 1;
|
|
595
|
-
for (y =
|
|
595
|
+
for (y = We.slice(0, f), I = $ = 0, b = k.length; $ < b; $++)
|
|
596
596
|
if (y.indexOf(A = k.charAt($)) < 0) {
|
|
597
597
|
if (A == ".") {
|
|
598
598
|
if ($ > I) {
|
|
@@ -614,7 +614,7 @@ function Vi() {
|
|
|
614
614
|
throw Error(r + v.s * l);
|
|
615
615
|
if ((I = I - $ - 1) > Ae)
|
|
616
616
|
v.c = v.e = null;
|
|
617
|
-
else if (I <
|
|
617
|
+
else if (I < Ue)
|
|
618
618
|
v.c = [v.e = 0];
|
|
619
619
|
else {
|
|
620
620
|
if (v.e = I, v.c = [], $ = (I + 1) % c, I < 0 && ($ += c), $ < b) {
|
|
@@ -635,9 +635,9 @@ function Vi() {
|
|
|
635
635
|
if (typeof l == "object") {
|
|
636
636
|
if (l.hasOwnProperty(f = "DECIMAL_PLACES") && (y = l[f], E(y, 0, j, f), Z = y), l.hasOwnProperty(f = "ROUNDING_MODE") && (y = l[f], E(y, 0, 8, f), F = y), l.hasOwnProperty(f = "EXPONENTIAL_AT") && (y = l[f], y && y.pop ? (E(y[0], -j, 0, f), E(y[1], 0, j, f), re = y[0], ce = y[1]) : (E(y, -j, j, f), re = -(ce = y < 0 ? -y : y))), l.hasOwnProperty(f = "RANGE"))
|
|
637
637
|
if (y = l[f], y && y.pop)
|
|
638
|
-
E(y[0], -j, -1, f), E(y[1], 1, j, f),
|
|
638
|
+
E(y[0], -j, -1, f), E(y[1], 1, j, f), Ue = y[0], Ae = y[1];
|
|
639
639
|
else if (E(y, -j, j, f), y)
|
|
640
|
-
|
|
640
|
+
Ue = -(Ae = y < 0 ? -y : y);
|
|
641
641
|
else
|
|
642
642
|
throw Error(s + f + " cannot be zero: " + y);
|
|
643
643
|
if (l.hasOwnProperty(f = "CRYPTO"))
|
|
@@ -651,12 +651,12 @@ function Vi() {
|
|
|
651
651
|
qe = y;
|
|
652
652
|
else
|
|
653
653
|
throw Error(s + f + " not true or false: " + y);
|
|
654
|
-
if (l.hasOwnProperty(f = "MODULO_MODE") && (y = l[f], E(y, 0, 9, f),
|
|
655
|
-
if (y = l[f], typeof y == "object")
|
|
654
|
+
if (l.hasOwnProperty(f = "MODULO_MODE") && (y = l[f], E(y, 0, 9, f), it = y), l.hasOwnProperty(f = "POW_PRECISION") && (y = l[f], E(y, 0, j, f), He = y), l.hasOwnProperty(f = "FORMAT"))
|
|
655
|
+
if (y = l[f], typeof y == "object") Mt = y;
|
|
656
656
|
else throw Error(s + f + " not an object: " + y);
|
|
657
657
|
if (l.hasOwnProperty(f = "ALPHABET"))
|
|
658
658
|
if (y = l[f], typeof y == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(y))
|
|
659
|
-
|
|
659
|
+
Rt = y.slice(0, 10) == "0123456789", We = y;
|
|
660
660
|
else
|
|
661
661
|
throw Error(s + f + " invalid: " + y);
|
|
662
662
|
} else
|
|
@@ -665,12 +665,12 @@ function Vi() {
|
|
|
665
665
|
DECIMAL_PLACES: Z,
|
|
666
666
|
ROUNDING_MODE: F,
|
|
667
667
|
EXPONENTIAL_AT: [re, ce],
|
|
668
|
-
RANGE: [
|
|
668
|
+
RANGE: [Ue, Ae],
|
|
669
669
|
CRYPTO: qe,
|
|
670
|
-
MODULO_MODE:
|
|
671
|
-
POW_PRECISION:
|
|
672
|
-
FORMAT:
|
|
673
|
-
ALPHABET:
|
|
670
|
+
MODULO_MODE: it,
|
|
671
|
+
POW_PRECISION: He,
|
|
672
|
+
FORMAT: Mt,
|
|
673
|
+
ALPHABET: We
|
|
674
674
|
};
|
|
675
675
|
}, x.isBigNumber = function(l) {
|
|
676
676
|
if (!l || l._isBigNumber !== !0) return !1;
|
|
@@ -742,12 +742,12 @@ function Vi() {
|
|
|
742
742
|
}
|
|
743
743
|
return function(y, A, w, I, $) {
|
|
744
744
|
var g, b, k, v, C, H, D, ee, de = y.indexOf("."), he = Z, z = F;
|
|
745
|
-
for (de >= 0 && (v =
|
|
745
|
+
for (de >= 0 && (v = He, He = 0, y = y.replace(".", ""), ee = new x(A), H = ee.pow(y.length - de), He = v, ee.c = f(
|
|
746
746
|
ne(V(H.c), H.e, "0"),
|
|
747
747
|
10,
|
|
748
748
|
w,
|
|
749
749
|
l
|
|
750
|
-
), ee.e = ee.c.length), D = f(y, A, w, $ ? (g =
|
|
750
|
+
), ee.e = ee.c.length), D = f(y, A, w, $ ? (g = We, l) : (g = l, We)), k = v = D.length; D[--v] == 0; D.pop()) ;
|
|
751
751
|
if (!D[0]) return g.charAt(0);
|
|
752
752
|
if (de < 0 ? --k : (H.c = D, H.e = k, H.s = I, H = _(H, ee, he, z, w), D = H.c, C = H.r, k = H.e), b = k + he + 1, de = D[b], v = w / 2, C = C || b < 0 || D[b + 1] != null, C = z < 4 ? (de != null || C) && (z == 0 || z == (H.s < 0 ? 3 : 2)) : de > v || de == v && (z == 4 || C || z == 6 && D[b - 1] & 1 || z == (H.s < 0 ? 8 : 7)), b < 1 || !D[0])
|
|
753
753
|
y = C ? ne(g.charAt(1), -he, g.charAt(0)) : g.charAt(0);
|
|
@@ -786,50 +786,50 @@ function Vi() {
|
|
|
786
786
|
for (; !A[0] && A.length > 1; A.splice(0, 1)) ;
|
|
787
787
|
}
|
|
788
788
|
return function(A, w, I, $, g) {
|
|
789
|
-
var b, k, v, C, H, D, ee, de, he, z, se, me,
|
|
789
|
+
var b, k, v, C, H, D, ee, de, he, z, se, me, ft, _t, Lt, Me, nt, je = A.s == w.s ? 1 : -1, be = A.c, le = w.c;
|
|
790
790
|
if (!be || !be[0] || !le || !le[0])
|
|
791
791
|
return new x(
|
|
792
792
|
// Return NaN if either NaN, or both Infinity or 0.
|
|
793
793
|
!A.s || !w.s || (be ? le && be[0] == le[0] : !le) ? NaN : (
|
|
794
794
|
// Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
|
|
795
|
-
be && be[0] == 0 || !le ?
|
|
795
|
+
be && be[0] == 0 || !le ? je * 0 : je / 0
|
|
796
796
|
)
|
|
797
797
|
);
|
|
798
|
-
for (de = new x(
|
|
799
|
-
if (le[v] > (be[v] || 0) && k--,
|
|
798
|
+
for (de = new x(je), he = de.c = [], k = A.e - w.e, je = I + k + 1, g || (g = d, k = Y(A.e / c) - Y(w.e / c), je = je / c | 0), v = 0; le[v] == (be[v] || 0); v++) ;
|
|
799
|
+
if (le[v] > (be[v] || 0) && k--, je < 0)
|
|
800
800
|
he.push(1), C = !0;
|
|
801
801
|
else {
|
|
802
|
-
for (
|
|
803
|
-
|
|
802
|
+
for (_t = be.length, Me = le.length, v = 0, je += 2, H = a(g / (le[0] + 1)), H > 1 && (le = l(le, H, g), be = l(be, H, g), Me = le.length, _t = be.length), ft = Me, z = be.slice(0, Me), se = z.length; se < Me; z[se++] = 0) ;
|
|
803
|
+
nt = le.slice(), nt = [0].concat(nt), Lt = le[0], le[1] >= g / 2 && Lt++;
|
|
804
804
|
do {
|
|
805
|
-
if (H = 0, b = f(le, z,
|
|
806
|
-
if (me = z[0],
|
|
805
|
+
if (H = 0, b = f(le, z, Me, se), b < 0) {
|
|
806
|
+
if (me = z[0], Me != se && (me = me * g + (z[1] || 0)), H = a(me / Lt), H > 1)
|
|
807
807
|
for (H >= g && (H = g - 1), D = l(le, H, g), ee = D.length, se = z.length; f(D, z, ee, se) == 1; )
|
|
808
|
-
H--, y(D,
|
|
808
|
+
H--, y(D, Me < ee ? nt : le, ee, g), ee = D.length, b = 1;
|
|
809
809
|
else
|
|
810
810
|
H == 0 && (b = H = 1), D = le.slice(), ee = D.length;
|
|
811
811
|
if (ee < se && (D = [0].concat(D)), y(z, D, se, g), se = z.length, b == -1)
|
|
812
|
-
for (; f(le, z,
|
|
813
|
-
H++, y(z,
|
|
812
|
+
for (; f(le, z, Me, se) < 1; )
|
|
813
|
+
H++, y(z, Me < se ? nt : le, se, g), se = z.length;
|
|
814
814
|
} else b === 0 && (H++, z = [0]);
|
|
815
|
-
he[v++] = H, z[0] ? z[se++] = be[
|
|
816
|
-
} while ((
|
|
815
|
+
he[v++] = H, z[0] ? z[se++] = be[ft] || 0 : (z = [be[ft]], se = 1);
|
|
816
|
+
} while ((ft++ < _t || z[0] != null) && je--);
|
|
817
817
|
C = z[0] != null, he[0] || he.splice(0, 1);
|
|
818
818
|
}
|
|
819
819
|
if (g == d) {
|
|
820
|
-
for (v = 1,
|
|
821
|
-
|
|
820
|
+
for (v = 1, je = he[0]; je >= 10; je /= 10, v++) ;
|
|
821
|
+
ke(de, I + (de.e = v + k * c - 1) + 1, $, C);
|
|
822
822
|
} else
|
|
823
823
|
de.e = k, de.r = +C;
|
|
824
824
|
return de;
|
|
825
825
|
};
|
|
826
826
|
})();
|
|
827
|
-
function
|
|
827
|
+
function qt(l, f, y, A) {
|
|
828
828
|
var w, I, $, g, b;
|
|
829
829
|
if (y == null ? y = F : E(y, 0, 8), !l.c) return l.toString();
|
|
830
830
|
if (w = l.c[0], $ = l.e, f == null)
|
|
831
831
|
b = V(l.c), b = A == 1 || A == 2 && ($ <= re || $ >= ce) ? J(b, $) : ne(b, $, "0");
|
|
832
|
-
else if (l =
|
|
832
|
+
else if (l = ke(new x(l), f, y), I = l.e, b = V(l.c), g = b.length, A == 1 || A == 2 && (f <= I || I <= re)) {
|
|
833
833
|
for (; g < f; b += "0", g++) ;
|
|
834
834
|
b = J(b, I);
|
|
835
835
|
} else if (f -= $ + (A === 2 && I > $), b = ne(b, I, "0"), I + 1 > g) {
|
|
@@ -843,10 +843,10 @@ function Vi() {
|
|
|
843
843
|
A = new x(l[w]), (!A.s || (y = G(I, A)) === f || y === 0 && I.s === f) && (I = A);
|
|
844
844
|
return I;
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function Et(l, f, y) {
|
|
847
847
|
for (var A = 1, w = f.length; !f[--w]; f.pop()) ;
|
|
848
848
|
for (w = f[0]; w >= 10; w /= 10, A++) ;
|
|
849
|
-
return (y = A + y * c - 1) > Ae ? l.c = l.e = null : y <
|
|
849
|
+
return (y = A + y * c - 1) > Ae ? l.c = l.e = null : y < Ue ? l.c = [l.e = 0] : (l.e = y, l.c = f), l;
|
|
850
850
|
}
|
|
851
851
|
B = /* @__PURE__ */ (function() {
|
|
852
852
|
var l = /^(-?)0([xbo])(?=\w[\w.]*$)/i, f = /^([^.]+)\.$/, y = /^\.([^.]+)$/, A = /^-?(Infinity|NaN)$/, w = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
|
|
@@ -866,7 +866,7 @@ function Vi() {
|
|
|
866
866
|
I.c = I.e = null;
|
|
867
867
|
};
|
|
868
868
|
})();
|
|
869
|
-
function
|
|
869
|
+
function ke(l, f, y, A) {
|
|
870
870
|
var w, I, $, g, b, k, v, C = l.c, H = u;
|
|
871
871
|
if (C) {
|
|
872
872
|
e: {
|
|
@@ -902,7 +902,7 @@ function Vi() {
|
|
|
902
902
|
}
|
|
903
903
|
for (I = C.length; C[--I] === 0; C.pop()) ;
|
|
904
904
|
}
|
|
905
|
-
l.e > Ae ? l.c = l.e = null : l.e <
|
|
905
|
+
l.e > Ae ? l.c = l.e = null : l.e < Ue && (l.c = [l.e = 0]);
|
|
906
906
|
}
|
|
907
907
|
return l;
|
|
908
908
|
}
|
|
@@ -918,7 +918,7 @@ function Vi() {
|
|
|
918
918
|
}, U.decimalPlaces = U.dp = function(l, f) {
|
|
919
919
|
var y, A, w, I = this;
|
|
920
920
|
if (l != null)
|
|
921
|
-
return E(l, 0, j), f == null ? f = F : E(f, 0, 8),
|
|
921
|
+
return E(l, 0, j), f == null ? f = F : E(f, 0, 8), ke(new x(I), l + I.e + 1, f);
|
|
922
922
|
if (!(y = I.c)) return null;
|
|
923
923
|
if (A = ((w = y.length - 1) - Y(this.e / c)) * c, w = y[w]) for (; w % 10 == 0; w /= 10, A--) ;
|
|
924
924
|
return A < 0 && (A = 0), A;
|
|
@@ -938,7 +938,7 @@ function Vi() {
|
|
|
938
938
|
} else {
|
|
939
939
|
if (l.e > 9 && (C.e > 0 || C.e < -1 || (C.e == 0 ? C.c[0] > 1 || g && C.c[1] >= 24e7 : C.c[0] < 8e13 || g && C.c[0] <= 9999975e7)))
|
|
940
940
|
return I = C.s < 0 && L(l) ? -0 : 0, C.e > -1 && (I = 1 / I), new x(b ? 1 / I : I);
|
|
941
|
-
|
|
941
|
+
He && (I = o(He / c + 2));
|
|
942
942
|
}
|
|
943
943
|
for (g ? (y = new x(0.5), b && (l.s = 1), k = L(l)) : (w = Math.abs(+Ee(l)), k = w % 2), v = new x(K); ; ) {
|
|
944
944
|
if (k) {
|
|
@@ -948,7 +948,7 @@ function Vi() {
|
|
|
948
948
|
if (w) {
|
|
949
949
|
if (w = a(w / 2), w === 0) break;
|
|
950
950
|
k = w % 2;
|
|
951
|
-
} else if (l = l.times(y),
|
|
951
|
+
} else if (l = l.times(y), ke(l, l.e + 1, 1), l.e > 14)
|
|
952
952
|
k = L(l);
|
|
953
953
|
else {
|
|
954
954
|
if (w = +Ee(l), w === 0) break;
|
|
@@ -956,10 +956,10 @@ function Vi() {
|
|
|
956
956
|
}
|
|
957
957
|
C = C.times(C), I ? C.c && C.c.length > I && (C.c.length = I) : A && (C = C.mod(f));
|
|
958
958
|
}
|
|
959
|
-
return A ? v : (b && (v = K.div(v)), f ? v.mod(f) : I ?
|
|
959
|
+
return A ? v : (b && (v = K.div(v)), f ? v.mod(f) : I ? ke(v, He, F, $) : v);
|
|
960
960
|
}, U.integerValue = function(l) {
|
|
961
961
|
var f = new x(this);
|
|
962
|
-
return l == null ? l = F : E(l, 0, 8),
|
|
962
|
+
return l == null ? l = F : E(l, 0, 8), ke(f, f.e + 1, l);
|
|
963
963
|
}, U.isEqualTo = U.eq = function(l, f) {
|
|
964
964
|
return G(this, new x(l, f)) === 0;
|
|
965
965
|
}, U.isFinite = function() {
|
|
@@ -1014,10 +1014,10 @@ function Vi() {
|
|
|
1014
1014
|
v[A] -= C[A];
|
|
1015
1015
|
}
|
|
1016
1016
|
for (; v[0] == 0; v.splice(0, 1), --k) ;
|
|
1017
|
-
return v[0] ?
|
|
1017
|
+
return v[0] ? Et(l, v, k) : (l.s = F == 3 ? -1 : 1, l.c = [l.e = 0], l);
|
|
1018
1018
|
}, U.modulo = U.mod = function(l, f) {
|
|
1019
1019
|
var y, A, w = this;
|
|
1020
|
-
return l = new x(l, f), !w.c || !l.s || l.c && !l.c[0] ? new x(NaN) : !l.c || w.c && !w.c[0] ? new x(w) : (
|
|
1020
|
+
return l = new x(l, f), !w.c || !l.s || l.c && !l.c[0] ? new x(NaN) : !l.c || w.c && !w.c[0] ? new x(w) : (it == 9 ? (A = l.s, l.s = 1, y = _(w, l, 0, 3), l.s = A, y.s *= A) : y = _(w, l, 0, it), l = w.minus(y.times(l)), !l.c[0] && it == 1 && (l.s = w.s), l);
|
|
1021
1021
|
}, U.multipliedBy = U.times = function(l, f) {
|
|
1022
1022
|
var y, A, w, I, $, g, b, k, v, C, H, D, ee, de, he, z = this, se = z.c, me = (l = new x(l, f)).c;
|
|
1023
1023
|
if (!se || !me || !se[0] || !me[0])
|
|
@@ -1028,7 +1028,7 @@ function Vi() {
|
|
|
1028
1028
|
k = se[--$] % he, v = se[$] / he | 0, g = D * k + v * H, k = H * k + g % he * he + ee[I] + y, y = (k / de | 0) + (g / he | 0) + D * v, ee[I--] = k % de;
|
|
1029
1029
|
ee[I] = y;
|
|
1030
1030
|
}
|
|
1031
|
-
return y ? ++A : ee.splice(0, 1),
|
|
1031
|
+
return y ? ++A : ee.splice(0, 1), Et(l, ee, A);
|
|
1032
1032
|
}, U.negated = function() {
|
|
1033
1033
|
var l = new x(this);
|
|
1034
1034
|
return l.s = -l.s || null, l;
|
|
@@ -1048,11 +1048,11 @@ function Vi() {
|
|
|
1048
1048
|
}
|
|
1049
1049
|
for (w = g.length, f = b.length, w - f < 0 && (y = b, b = g, g = y, f = w), w = 0; f; )
|
|
1050
1050
|
w = (g[--f] = g[f] + b[f] + w) / d | 0, g[f] = d === g[f] ? 0 : g[f] % d;
|
|
1051
|
-
return w && (g = [w].concat(g), ++$),
|
|
1051
|
+
return w && (g = [w].concat(g), ++$), Et(l, g, $);
|
|
1052
1052
|
}, U.precision = U.sd = function(l, f) {
|
|
1053
1053
|
var y, A, w, I = this;
|
|
1054
1054
|
if (l != null && l !== !!l)
|
|
1055
|
-
return E(l, 1, j), f == null ? f = F : E(f, 0, 8),
|
|
1055
|
+
return E(l, 1, j), f == null ? f = F : E(f, 0, 8), ke(new x(I), l, f);
|
|
1056
1056
|
if (!(y = I.c)) return null;
|
|
1057
1057
|
if (w = y.length - 1, A = w * c + 1, w = y[w]) {
|
|
1058
1058
|
for (; w % 10 == 0; w /= 10, A--) ;
|
|
@@ -1069,25 +1069,25 @@ function Vi() {
|
|
|
1069
1069
|
for (b = y.e, g = b + k, g < 3 && (g = 0); ; )
|
|
1070
1070
|
if (w = y, y = v.times(w.plus(_(I, w, k, 1))), V(w.c).slice(0, g) === (f = V(y.c)).slice(0, g))
|
|
1071
1071
|
if (y.e < b && --g, f = f.slice(g - 3, g + 1), f == "9999" || !A && f == "4999") {
|
|
1072
|
-
if (!A && (
|
|
1072
|
+
if (!A && (ke(w, w.e + Z + 2, 0), w.times(w).eq(I))) {
|
|
1073
1073
|
y = w;
|
|
1074
1074
|
break;
|
|
1075
1075
|
}
|
|
1076
1076
|
k += 4, g += 4, A = 1;
|
|
1077
1077
|
} else {
|
|
1078
|
-
(!+f || !+f.slice(1) && f.charAt(0) == "5") && (
|
|
1078
|
+
(!+f || !+f.slice(1) && f.charAt(0) == "5") && (ke(y, y.e + Z + 2, 1), l = !y.times(y).eq(I));
|
|
1079
1079
|
break;
|
|
1080
1080
|
}
|
|
1081
1081
|
}
|
|
1082
|
-
return
|
|
1082
|
+
return ke(y, y.e + Z + 1, F, l);
|
|
1083
1083
|
}, U.toExponential = function(l, f) {
|
|
1084
|
-
return l != null && (E(l, 0, j), l++),
|
|
1084
|
+
return l != null && (E(l, 0, j), l++), qt(this, l, f, 1);
|
|
1085
1085
|
}, U.toFixed = function(l, f) {
|
|
1086
|
-
return l != null && (E(l, 0, j), l = l + this.e + 1),
|
|
1086
|
+
return l != null && (E(l, 0, j), l = l + this.e + 1), qt(this, l, f);
|
|
1087
1087
|
}, U.toFormat = function(l, f, y) {
|
|
1088
1088
|
var A, w = this;
|
|
1089
1089
|
if (y == null)
|
|
1090
|
-
l != null && f && typeof f == "object" ? (y = f, f = null) : l && typeof l == "object" ? (y = l, l = f = null) : y =
|
|
1090
|
+
l != null && f && typeof f == "object" ? (y = f, f = null) : l && typeof l == "object" ? (y = l, l = f = null) : y = Mt;
|
|
1091
1091
|
else if (typeof y != "object")
|
|
1092
1092
|
throw Error(s + "Argument not an object: " + y);
|
|
1093
1093
|
if (A = w.toFixed(l, f), w.c) {
|
|
@@ -1115,10 +1115,10 @@ function Vi() {
|
|
|
1115
1115
|
}, U.toNumber = function() {
|
|
1116
1116
|
return +Ee(this);
|
|
1117
1117
|
}, U.toPrecision = function(l, f) {
|
|
1118
|
-
return l != null && E(l, 1, j),
|
|
1118
|
+
return l != null && E(l, 1, j), qt(this, l, f, 2);
|
|
1119
1119
|
}, U.toString = function(l) {
|
|
1120
1120
|
var f, y = this, A = y.s, w = y.e;
|
|
1121
|
-
return w === null ? A ? (f = "Infinity", A < 0 && (f = "-" + f)) : f = "NaN" : (l == null ? f = w <= re || w >= ce ? J(V(y.c), w) : ne(V(y.c), w, "0") : l === 10 &&
|
|
1121
|
+
return w === null ? A ? (f = "Infinity", A < 0 && (f = "-" + f)) : f = "NaN" : (l == null ? f = w <= re || w >= ce ? J(V(y.c), w) : ne(V(y.c), w, "0") : l === 10 && Rt ? (y = ke(new x(y), Z + w + 1, F), f = ne(V(y.c), y.e, "0")) : (E(l, 2, We.length, "Base"), f = O(ne(V(y.c), w, "0"), 10, l, A, !0)), A < 0 && y.c[0] && (f = "-" + f)), f;
|
|
1122
1122
|
}, U.valueOf = U.toJSON = function() {
|
|
1123
1123
|
return Ee(this);
|
|
1124
1124
|
}, U._isBigNumber = !0, N != null && x.set(N), x;
|
|
@@ -1168,11 +1168,11 @@ function Vi() {
|
|
|
1168
1168
|
return N;
|
|
1169
1169
|
}
|
|
1170
1170
|
n = M(), n.default = n.BigNumber = n, t.exports ? t.exports = n : (e || (e = typeof self < "u" && self ? self : window), e.BigNumber = n);
|
|
1171
|
-
})(
|
|
1172
|
-
})(
|
|
1171
|
+
})(In);
|
|
1172
|
+
})(wt)), wt.exports;
|
|
1173
1173
|
}
|
|
1174
1174
|
var $i;
|
|
1175
|
-
function
|
|
1175
|
+
function vn() {
|
|
1176
1176
|
return $i || ($i = 1, (function(t) {
|
|
1177
1177
|
var e = Vi(), n = t.exports;
|
|
1178
1178
|
(function() {
|
|
@@ -1241,11 +1241,11 @@ function In() {
|
|
|
1241
1241
|
return c("", { "": p });
|
|
1242
1242
|
});
|
|
1243
1243
|
})();
|
|
1244
|
-
})(
|
|
1244
|
+
})(Ht)), Ht.exports;
|
|
1245
1245
|
}
|
|
1246
|
-
var
|
|
1247
|
-
function
|
|
1248
|
-
if (Pi) return
|
|
1246
|
+
var Dt, Pi;
|
|
1247
|
+
function An() {
|
|
1248
|
+
if (Pi) return Dt;
|
|
1249
1249
|
Pi = 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)/;
|
|
@@ -1391,22 +1391,22 @@ function vn() {
|
|
|
1391
1391
|
})({ "": ne }, "") : ne;
|
|
1392
1392
|
};
|
|
1393
1393
|
};
|
|
1394
|
-
return
|
|
1394
|
+
return Dt = i, Dt;
|
|
1395
1395
|
}
|
|
1396
1396
|
var Ci;
|
|
1397
|
-
function
|
|
1398
|
-
if (Ci) return
|
|
1397
|
+
function kn() {
|
|
1398
|
+
if (Ci) return at.exports;
|
|
1399
1399
|
Ci = 1;
|
|
1400
|
-
var t =
|
|
1401
|
-
return
|
|
1400
|
+
var t = vn().stringify, e = An();
|
|
1401
|
+
return at.exports = function(n) {
|
|
1402
1402
|
return {
|
|
1403
1403
|
parse: e(n),
|
|
1404
1404
|
stringify: t
|
|
1405
1405
|
};
|
|
1406
|
-
},
|
|
1406
|
+
}, at.exports.parse = e(), at.exports.stringify = t, at.exports;
|
|
1407
1407
|
}
|
|
1408
|
-
var
|
|
1409
|
-
const
|
|
1408
|
+
var jn = kn();
|
|
1409
|
+
const ui = /* @__PURE__ */ bn(jn);
|
|
1410
1410
|
function Ie(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 Ie(t, e, n, i) {
|
|
|
1434
1434
|
c((i = i.apply(t, e || [])).next());
|
|
1435
1435
|
});
|
|
1436
1436
|
}
|
|
1437
|
-
function
|
|
1437
|
+
function Sn(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 bt, Wi;
|
|
1442
|
+
class Be {
|
|
1443
1443
|
/**
|
|
1444
1444
|
* Uses the provided ID as the ID for the resource.
|
|
1445
1445
|
*
|
|
@@ -1456,7 +1456,7 @@ class De {
|
|
|
1456
1456
|
* @returns {string}
|
|
1457
1457
|
*/
|
|
1458
1458
|
static unique(e = 7) {
|
|
1459
|
-
const n =
|
|
1459
|
+
const n = Sn(bt, bt, "m", Wi).call(bt);
|
|
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 De {
|
|
|
1465
1465
|
return n + i;
|
|
1466
1466
|
}
|
|
1467
1467
|
}
|
|
1468
|
-
|
|
1468
|
+
bt = Be, Wi = 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 Ct = ui({ 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 Ct.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) => Ct.parse(e))).toString();
|
|
1541
|
+
P.and = (t) => new P("and", void 0, t.map((e) => Ct.parse(e))).toString();
|
|
1542
|
+
P.elemMatch = (t, e) => new P("elemMatch", t, e.map((n) => Ct.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 $n = ui({ storeAsString: !1 }), Pn = ui({ useNativeBigInt: !0 }), Cn = BigInt(Number.MAX_SAFE_INTEGER), xn = BigInt(Number.MIN_SAFE_INTEGER), Un = BigInt("9223372036854775807"), Mn = BigInt("-9223372036854775808");
|
|
1573
|
+
function Rn(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 qn(t, e) {
|
|
1577
|
+
if (Rn(e)) {
|
|
1578
1578
|
if (e.isInteger()) {
|
|
1579
1579
|
const n = e.toFixed(), i = BigInt(n);
|
|
1580
|
-
return i >=
|
|
1580
|
+
return i >= xn && i <= Cn ? Number(n) : i >= Mn && i <= Un ? i : e.toNumber();
|
|
1581
1581
|
}
|
|
1582
1582
|
return e.toNumber();
|
|
1583
1583
|
}
|
|
1584
1584
|
return e;
|
|
1585
1585
|
}
|
|
1586
1586
|
const we = {
|
|
1587
|
-
parse: (t) =>
|
|
1588
|
-
stringify:
|
|
1587
|
+
parse: (t) => $n.parse(t, qn),
|
|
1588
|
+
stringify: Pn.stringify
|
|
1589
1589
|
};
|
|
1590
1590
|
class h extends Error {
|
|
1591
1591
|
/**
|
|
@@ -1600,7 +1600,7 @@ class h extends Error {
|
|
|
1600
1600
|
super(e), this.name = "AppwriteException", this.message = e, this.code = n, this.type = i, this.response = o;
|
|
1601
1601
|
}
|
|
1602
1602
|
}
|
|
1603
|
-
class
|
|
1603
|
+
class xe {
|
|
1604
1604
|
constructor() {
|
|
1605
1605
|
this.config = {
|
|
1606
1606
|
endpoint: "https://cloud.appwrite.io/v1",
|
|
@@ -1955,7 +1955,7 @@ class Ue {
|
|
|
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 = Be.unique();
|
|
1959
1959
|
if (!this.realtime.subscriptions.has(p)) {
|
|
1960
1960
|
r = p;
|
|
1961
1961
|
break;
|
|
@@ -1991,7 +1991,7 @@ class Ue {
|
|
|
1991
1991
|
headers: i
|
|
1992
1992
|
};
|
|
1993
1993
|
if (i["X-Appwrite-Dev-Key"] === void 0 && (a.credentials = "include"), e === "GET")
|
|
1994
|
-
for (const [s, r] of Object.entries(
|
|
1994
|
+
for (const [s, r] of Object.entries(xe.flatten(o)))
|
|
1995
1995
|
n.searchParams.append(s, r);
|
|
1996
1996
|
else
|
|
1997
1997
|
switch (i["content-type"]) {
|
|
@@ -2020,9 +2020,9 @@ class Ue {
|
|
|
2020
2020
|
const [c, p] = (d = Object.entries(s).find(([K, Z]) => Z instanceof File)) !== null && d !== void 0 ? d : [];
|
|
2021
2021
|
if (!p || !c)
|
|
2022
2022
|
throw new Error("File not found in payload");
|
|
2023
|
-
if (p.size <=
|
|
2023
|
+
if (p.size <= xe.CHUNK_SIZE)
|
|
2024
2024
|
return yield this.call(i, o, a, s);
|
|
2025
|
-
const u = Math.ceil(p.size /
|
|
2025
|
+
const u = Math.ceil(p.size / xe.CHUNK_SIZE), m = Math.min(xe.CHUNK_SIZE, p.size), j = Object.assign(Object.assign({}, a), { "content-range": `bytes 0-${m - 1}/${p.size}` }), M = p.slice(0, m), Y = Object.assign({}, s);
|
|
2026
2026
|
Y[c] = new File([M], p.name);
|
|
2027
2027
|
const V = yield this.call(i, o, j, Y), G = V?.$id;
|
|
2028
2028
|
if (r && typeof r == "function" && r({
|
|
@@ -2035,7 +2035,7 @@ class Ue {
|
|
|
2035
2035
|
return V;
|
|
2036
2036
|
const E = [];
|
|
2037
2037
|
for (let K = 1; K < u; K++) {
|
|
2038
|
-
const Z = K *
|
|
2038
|
+
const Z = K * xe.CHUNK_SIZE, F = Math.min(Z + xe.CHUNK_SIZE, p.size);
|
|
2039
2039
|
E.push({ start: Z, end: F });
|
|
2040
2040
|
}
|
|
2041
2041
|
const L = 8;
|
|
@@ -2060,7 +2060,7 @@ class Ue {
|
|
|
2060
2060
|
});
|
|
2061
2061
|
return yield new Promise((K, Z) => {
|
|
2062
2062
|
let F = 0, re = 0, ce = 0;
|
|
2063
|
-
const
|
|
2063
|
+
const Ue = () => {
|
|
2064
2064
|
if (!O) {
|
|
2065
2065
|
if (ce === E.length) {
|
|
2066
2066
|
K();
|
|
@@ -2069,14 +2069,14 @@ class Ue {
|
|
|
2069
2069
|
for (; re < L && F < E.length; ) {
|
|
2070
2070
|
const Ae = E[F++];
|
|
2071
2071
|
re++, U(Ae).then(() => {
|
|
2072
|
-
re--, ce++,
|
|
2072
|
+
re--, ce++, Ue();
|
|
2073
2073
|
}).catch((qe) => {
|
|
2074
2074
|
O = !0, Z(qe);
|
|
2075
2075
|
});
|
|
2076
2076
|
}
|
|
2077
2077
|
}
|
|
2078
2078
|
};
|
|
2079
|
-
|
|
2079
|
+
Ue();
|
|
2080
2080
|
}), _ ?? N;
|
|
2081
2081
|
});
|
|
2082
2082
|
}
|
|
@@ -2116,12 +2116,12 @@ class Ue {
|
|
|
2116
2116
|
let i = {};
|
|
2117
2117
|
for (const [o, a] of Object.entries(e)) {
|
|
2118
2118
|
const s = n ? n + "[" + o + "]" : o;
|
|
2119
|
-
Array.isArray(a) ? i = Object.assign(Object.assign({}, i),
|
|
2119
|
+
Array.isArray(a) ? i = Object.assign(Object.assign({}, i), xe.flatten(a, s)) : i[s] = a;
|
|
2120
2120
|
}
|
|
2121
2121
|
return i;
|
|
2122
2122
|
}
|
|
2123
2123
|
}
|
|
2124
|
-
|
|
2124
|
+
xe.CHUNK_SIZE = 1024 * 1024 * 5;
|
|
2125
2125
|
class ge {
|
|
2126
2126
|
constructor(e) {
|
|
2127
2127
|
this.client = e;
|
|
@@ -3414,7 +3414,7 @@ class Ki {
|
|
|
3414
3414
|
return U.toString();
|
|
3415
3415
|
}
|
|
3416
3416
|
}
|
|
3417
|
-
class
|
|
3417
|
+
class En {
|
|
3418
3418
|
constructor(e) {
|
|
3419
3419
|
this.client = e;
|
|
3420
3420
|
}
|
|
@@ -3719,7 +3719,7 @@ class qn {
|
|
|
3719
3719
|
return this.client.call("patch", j, M, m);
|
|
3720
3720
|
}
|
|
3721
3721
|
}
|
|
3722
|
-
class
|
|
3722
|
+
class _n {
|
|
3723
3723
|
constructor(e) {
|
|
3724
3724
|
this.client = e;
|
|
3725
3725
|
}
|
|
@@ -4048,7 +4048,7 @@ class En {
|
|
|
4048
4048
|
return this.client.call("patch", j, M, m);
|
|
4049
4049
|
}
|
|
4050
4050
|
}
|
|
4051
|
-
class
|
|
4051
|
+
class Ln {
|
|
4052
4052
|
constructor(e) {
|
|
4053
4053
|
this.client = e;
|
|
4054
4054
|
}
|
|
@@ -4111,7 +4111,7 @@ class _n {
|
|
|
4111
4111
|
return this.client.call("get", d, c, r);
|
|
4112
4112
|
}
|
|
4113
4113
|
}
|
|
4114
|
-
class
|
|
4114
|
+
class Nn {
|
|
4115
4115
|
constructor(e) {
|
|
4116
4116
|
this.client = e;
|
|
4117
4117
|
}
|
|
@@ -4152,7 +4152,7 @@ class Ln {
|
|
|
4152
4152
|
return this.client.call("post", s, r, a);
|
|
4153
4153
|
}
|
|
4154
4154
|
}
|
|
4155
|
-
class
|
|
4155
|
+
class Hn {
|
|
4156
4156
|
constructor(e) {
|
|
4157
4157
|
this.client = e;
|
|
4158
4158
|
}
|
|
@@ -4263,7 +4263,7 @@ class Nn {
|
|
|
4263
4263
|
return this.client.call("get", i, o, n);
|
|
4264
4264
|
}
|
|
4265
4265
|
}
|
|
4266
|
-
class
|
|
4266
|
+
class Dn {
|
|
4267
4267
|
constructor(e) {
|
|
4268
4268
|
this.client = e;
|
|
4269
4269
|
}
|
|
@@ -4308,7 +4308,7 @@ class Hn {
|
|
|
4308
4308
|
return this.client.call("delete", d, c, r);
|
|
4309
4309
|
}
|
|
4310
4310
|
}
|
|
4311
|
-
class
|
|
4311
|
+
class Bn {
|
|
4312
4312
|
constructor(e) {
|
|
4313
4313
|
this.client = e;
|
|
4314
4314
|
}
|
|
@@ -4392,7 +4392,7 @@ class Dn {
|
|
|
4392
4392
|
return this.client.call("delete", s, r, a);
|
|
4393
4393
|
}
|
|
4394
4394
|
}
|
|
4395
|
-
class
|
|
4395
|
+
class Xn {
|
|
4396
4396
|
constructor(e) {
|
|
4397
4397
|
this.client = e;
|
|
4398
4398
|
}
|
|
@@ -4485,7 +4485,7 @@ class Bn {
|
|
|
4485
4485
|
return this.client.call("delete", s, r, a);
|
|
4486
4486
|
}
|
|
4487
4487
|
}
|
|
4488
|
-
class
|
|
4488
|
+
class Vn {
|
|
4489
4489
|
constructor(e) {
|
|
4490
4490
|
this.client = e;
|
|
4491
4491
|
}
|
|
@@ -4661,7 +4661,7 @@ class Xn {
|
|
|
4661
4661
|
return c.toString();
|
|
4662
4662
|
}
|
|
4663
4663
|
}
|
|
4664
|
-
class
|
|
4664
|
+
class Wn {
|
|
4665
4665
|
constructor(e) {
|
|
4666
4666
|
this.client = e;
|
|
4667
4667
|
}
|
|
@@ -4966,7 +4966,7 @@ class Vn {
|
|
|
4966
4966
|
return this.client.call("patch", j, M, m);
|
|
4967
4967
|
}
|
|
4968
4968
|
}
|
|
4969
|
-
class
|
|
4969
|
+
class Gn {
|
|
4970
4970
|
constructor(e) {
|
|
4971
4971
|
this.client = e;
|
|
4972
4972
|
}
|
|
@@ -5311,7 +5311,7 @@ class Wn {
|
|
|
5311
5311
|
return this.client.call("put", d, c, r);
|
|
5312
5312
|
}
|
|
5313
5313
|
}
|
|
5314
|
-
class
|
|
5314
|
+
class Kn {
|
|
5315
5315
|
constructor(e) {
|
|
5316
5316
|
this.client = e;
|
|
5317
5317
|
}
|
|
@@ -5582,11 +5582,11 @@ class Gn {
|
|
|
5582
5582
|
return this.client.call("delete", p, u, c);
|
|
5583
5583
|
}
|
|
5584
5584
|
}
|
|
5585
|
-
var
|
|
5585
|
+
var At;
|
|
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
|
+
})(At || (At = {}));
|
|
5589
|
+
class Jn {
|
|
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 Kn {
|
|
|
5674
5674
|
}), p.addEventListener("close", (u) => Ie(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((j) => j()), !this.reconnect || u.code ===
|
|
5677
|
+
if (this.appConnected = !1, this.stopHeartbeat(), this.onCloseCallbacks.forEach((j) => j()), !this.reconnect || u.code === At.POLICY_VIOLATION) {
|
|
5678
5678
|
this.reconnect = !0;
|
|
5679
5679
|
return;
|
|
5680
5680
|
}
|
|
@@ -5708,7 +5708,7 @@ class Kn {
|
|
|
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(At.NORMAL_CLOSURE)) : e();
|
|
5712
5712
|
});
|
|
5713
5713
|
});
|
|
5714
5714
|
}
|
|
@@ -5728,7 +5728,7 @@ class Kn {
|
|
|
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 = Be.unique();
|
|
5732
5732
|
if (!this.activeSubscriptions.has(i))
|
|
5733
5733
|
return i;
|
|
5734
5734
|
}
|
|
@@ -5914,14 +5914,14 @@ class Kn {
|
|
|
5914
5914
|
}
|
|
5915
5915
|
}
|
|
5916
5916
|
}
|
|
5917
|
-
class
|
|
5917
|
+
class et {
|
|
5918
5918
|
}
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
class
|
|
5919
|
+
et.read = (t) => `read("${t}")`;
|
|
5920
|
+
et.write = (t) => `write("${t}")`;
|
|
5921
|
+
et.create = (t) => `create("${t}")`;
|
|
5922
|
+
et.update = (t) => `update("${t}")`;
|
|
5923
|
+
et.delete = (t) => `delete("${t}")`;
|
|
5924
|
+
class Yn {
|
|
5925
5925
|
/**
|
|
5926
5926
|
* Grants access to anyone.
|
|
5927
5927
|
*
|
|
@@ -6010,16 +6010,16 @@ function _e(t) {
|
|
|
6010
6010
|
throw new Error("Channel ID is required");
|
|
6011
6011
|
return e;
|
|
6012
6012
|
}
|
|
6013
|
-
class
|
|
6013
|
+
class $e {
|
|
6014
6014
|
constructor(e) {
|
|
6015
6015
|
this.segments = e;
|
|
6016
6016
|
}
|
|
6017
6017
|
next(e, n) {
|
|
6018
6018
|
const i = n === void 0 ? [...this.segments, e] : [...this.segments, e, _e(n)];
|
|
6019
|
-
return new
|
|
6019
|
+
return new $e(i);
|
|
6020
6020
|
}
|
|
6021
6021
|
resolve(e) {
|
|
6022
|
-
return new
|
|
6022
|
+
return new $e([...this.segments, e]);
|
|
6023
6023
|
}
|
|
6024
6024
|
toString() {
|
|
6025
6025
|
return this.segments.join(".");
|
|
@@ -6060,28 +6060,28 @@ class Pe {
|
|
|
6060
6060
|
}
|
|
6061
6061
|
// --- ROOT FACTORIES ---
|
|
6062
6062
|
static database(e) {
|
|
6063
|
-
return new
|
|
6063
|
+
return new $e(["databases", _e(e)]);
|
|
6064
6064
|
}
|
|
6065
6065
|
static execution(e) {
|
|
6066
|
-
return new
|
|
6066
|
+
return new $e(["executions", _e(e)]);
|
|
6067
6067
|
}
|
|
6068
6068
|
static tablesdb(e) {
|
|
6069
|
-
return new
|
|
6069
|
+
return new $e(["tablesdb", _e(e)]);
|
|
6070
6070
|
}
|
|
6071
6071
|
static bucket(e) {
|
|
6072
|
-
return new
|
|
6072
|
+
return new $e(["buckets", _e(e)]);
|
|
6073
6073
|
}
|
|
6074
6074
|
static function(e) {
|
|
6075
|
-
return new
|
|
6075
|
+
return new $e(["functions", _e(e)]);
|
|
6076
6076
|
}
|
|
6077
6077
|
static team(e) {
|
|
6078
|
-
return new
|
|
6078
|
+
return new $e(["teams", _e(e)]);
|
|
6079
6079
|
}
|
|
6080
6080
|
static membership(e) {
|
|
6081
|
-
return new
|
|
6081
|
+
return new $e(["memberships", _e(e)]);
|
|
6082
6082
|
}
|
|
6083
6083
|
static presence(e) {
|
|
6084
|
-
return new
|
|
6084
|
+
return new $e(["presences", _e(e)]);
|
|
6085
6085
|
}
|
|
6086
6086
|
static account() {
|
|
6087
6087
|
return "account";
|
|
@@ -6109,10 +6109,10 @@ class Pe {
|
|
|
6109
6109
|
return "presences";
|
|
6110
6110
|
}
|
|
6111
6111
|
}
|
|
6112
|
-
var
|
|
6112
|
+
var Xt;
|
|
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
|
+
})(Xt || (Xt = {}));
|
|
6116
6116
|
class Q {
|
|
6117
6117
|
/**
|
|
6118
6118
|
* Constructor for Operator class.
|
|
@@ -6204,140 +6204,140 @@ Q.toggle = () => new Q("toggle", []).toString();
|
|
|
6204
6204
|
Q.dateAddDays = (t) => new Q("dateAddDays", [t]).toString();
|
|
6205
6205
|
Q.dateSubDays = (t) => new Q("dateSubDays", [t]).toString();
|
|
6206
6206
|
Q.dateSetNow = () => new Q("dateSetNow", []).toString();
|
|
6207
|
-
var Xt;
|
|
6208
|
-
(function(t) {
|
|
6209
|
-
t.Totp = "totp";
|
|
6210
|
-
})(Xt || (Xt = {}));
|
|
6211
6207
|
var Vt;
|
|
6212
6208
|
(function(t) {
|
|
6213
|
-
t.
|
|
6209
|
+
t.Totp = "totp";
|
|
6214
6210
|
})(Vt || (Vt = {}));
|
|
6215
6211
|
var Wt;
|
|
6216
6212
|
(function(t) {
|
|
6217
|
-
t.
|
|
6213
|
+
t.Email = "email", t.Phone = "phone", t.Totp = "totp", t.Recoverycode = "recoverycode", t.Custom = "custom";
|
|
6218
6214
|
})(Wt || (Wt = {}));
|
|
6219
6215
|
var Gt;
|
|
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
|
})(Gt || (Gt = {}));
|
|
6223
6219
|
var Kt;
|
|
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
|
})(Kt || (Kt = {}));
|
|
6227
6223
|
var Jt;
|
|
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
|
})(Jt || (Jt = {}));
|
|
6231
6227
|
var Yt;
|
|
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
|
})(Yt || (Yt = {}));
|
|
6235
6231
|
var Zt;
|
|
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
|
})(Zt || (Zt = {}));
|
|
6239
6235
|
var Qt;
|
|
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
|
})(Qt || (Qt = {}));
|
|
6243
6239
|
var Tt;
|
|
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
|
})(Tt || (Tt = {}));
|
|
6247
6243
|
var zt;
|
|
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
|
})(zt || (zt = {}));
|
|
6251
6247
|
var Ot;
|
|
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
|
})(Ot || (Ot = {}));
|
|
6255
6251
|
var Ft;
|
|
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
|
})(Ft || (Ft = {}));
|
|
6259
6255
|
var ei;
|
|
6260
6256
|
(function(t) {
|
|
6261
|
-
t.
|
|
6257
|
+
t.Functions = "functions", t.Sites = "sites";
|
|
6262
6258
|
})(ei || (ei = {}));
|
|
6263
6259
|
var ti;
|
|
6264
6260
|
(function(t) {
|
|
6265
|
-
t.
|
|
6261
|
+
t.Http = "http", t.Schedule = "schedule", t.Event = "event";
|
|
6266
6262
|
})(ti || (ti = {}));
|
|
6267
|
-
|
|
6263
|
+
var ii;
|
|
6264
|
+
(function(t) {
|
|
6265
|
+
t.Waiting = "waiting", t.Processing = "processing", t.Completed = "completed", t.Failed = "failed", t.Scheduled = "scheduled";
|
|
6266
|
+
})(ii || (ii = {}));
|
|
6267
|
+
const Ho = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6268
6268
|
__proto__: null,
|
|
6269
6269
|
Account: Gi,
|
|
6270
6270
|
AppwriteException: h,
|
|
6271
6271
|
get AuthenticationFactor() {
|
|
6272
|
-
return
|
|
6272
|
+
return Wt;
|
|
6273
6273
|
},
|
|
6274
6274
|
get AuthenticatorType() {
|
|
6275
|
-
return
|
|
6275
|
+
return Vt;
|
|
6276
6276
|
},
|
|
6277
6277
|
Avatars: Ki,
|
|
6278
6278
|
get Browser() {
|
|
6279
|
-
return
|
|
6279
|
+
return Kt;
|
|
6280
6280
|
},
|
|
6281
6281
|
get BrowserPermission() {
|
|
6282
|
-
return
|
|
6282
|
+
return Tt;
|
|
6283
6283
|
},
|
|
6284
6284
|
get BrowserTheme() {
|
|
6285
|
-
return
|
|
6285
|
+
return Zt;
|
|
6286
6286
|
},
|
|
6287
|
-
Channel:
|
|
6288
|
-
Client:
|
|
6287
|
+
Channel: $e,
|
|
6288
|
+
Client: xe,
|
|
6289
6289
|
get Condition() {
|
|
6290
|
-
return
|
|
6290
|
+
return Xt;
|
|
6291
6291
|
},
|
|
6292
6292
|
get CreditCard() {
|
|
6293
|
-
return
|
|
6293
|
+
return Jt;
|
|
6294
6294
|
},
|
|
6295
|
-
Databases:
|
|
6296
|
-
DocumentsDB:
|
|
6295
|
+
Databases: En,
|
|
6296
|
+
DocumentsDB: _n,
|
|
6297
6297
|
get ExecutionMethod() {
|
|
6298
|
-
return
|
|
6298
|
+
return Ot;
|
|
6299
6299
|
},
|
|
6300
6300
|
get ExecutionResourceType() {
|
|
6301
|
-
return
|
|
6301
|
+
return ei;
|
|
6302
6302
|
},
|
|
6303
6303
|
get ExecutionStatus() {
|
|
6304
|
-
return
|
|
6304
|
+
return ii;
|
|
6305
6305
|
},
|
|
6306
6306
|
get ExecutionTrigger() {
|
|
6307
|
-
return
|
|
6307
|
+
return ti;
|
|
6308
6308
|
},
|
|
6309
6309
|
get Flag() {
|
|
6310
|
-
return
|
|
6310
|
+
return Yt;
|
|
6311
6311
|
},
|
|
6312
|
-
Functions:
|
|
6313
|
-
Graphql:
|
|
6314
|
-
ID:
|
|
6312
|
+
Functions: Ln,
|
|
6313
|
+
Graphql: Nn,
|
|
6314
|
+
ID: Be,
|
|
6315
6315
|
get ImageFormat() {
|
|
6316
|
-
return
|
|
6316
|
+
return zt;
|
|
6317
6317
|
},
|
|
6318
6318
|
get ImageGravity() {
|
|
6319
|
-
return
|
|
6319
|
+
return Ft;
|
|
6320
6320
|
},
|
|
6321
|
-
Locale:
|
|
6322
|
-
Messaging:
|
|
6321
|
+
Locale: Hn,
|
|
6322
|
+
Messaging: Dn,
|
|
6323
6323
|
get OAuthProvider() {
|
|
6324
|
-
return
|
|
6324
|
+
return Gt;
|
|
6325
6325
|
},
|
|
6326
6326
|
Operator: Q,
|
|
6327
|
-
Organization:
|
|
6328
|
-
Permission:
|
|
6329
|
-
Presences:
|
|
6327
|
+
Organization: Bn,
|
|
6328
|
+
Permission: et,
|
|
6329
|
+
Presences: Xn,
|
|
6330
6330
|
Query: P,
|
|
6331
|
-
Realtime:
|
|
6332
|
-
Role:
|
|
6333
|
-
Storage:
|
|
6334
|
-
TablesDB:
|
|
6335
|
-
Teams:
|
|
6331
|
+
Realtime: Jn,
|
|
6332
|
+
Role: Yn,
|
|
6333
|
+
Storage: Vn,
|
|
6334
|
+
TablesDB: Wn,
|
|
6335
|
+
Teams: Gn,
|
|
6336
6336
|
get Timezone() {
|
|
6337
|
-
return
|
|
6337
|
+
return Qt;
|
|
6338
6338
|
},
|
|
6339
|
-
VectorsDB:
|
|
6340
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6339
|
+
VectorsDB: Kn
|
|
6340
|
+
}, Symbol.toStringTag, { value: "Module" })), Zn = {
|
|
6341
6341
|
signIn: "Sign in",
|
|
6342
6342
|
signUp: "Sign up",
|
|
6343
6343
|
signOut: "Sign out",
|
|
@@ -6459,13 +6459,13 @@ const No = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6459
6459
|
guestAccountDescription: "Add an email and password to keep your data.",
|
|
6460
6460
|
preview: "Preview"
|
|
6461
6461
|
};
|
|
6462
|
-
function
|
|
6462
|
+
function Qn(t, e = {}) {
|
|
6463
6463
|
return t.replace(
|
|
6464
6464
|
/\{(\w+)\}/g,
|
|
6465
6465
|
(n, i) => i in e ? String(e[i]) : `{${i}}`
|
|
6466
6466
|
);
|
|
6467
6467
|
}
|
|
6468
|
-
const
|
|
6468
|
+
const Tn = {
|
|
6469
6469
|
amazon: "Amazon",
|
|
6470
6470
|
apple: "Apple",
|
|
6471
6471
|
appwrite: "Appwrite",
|
|
@@ -6516,10 +6516,10 @@ const Qn = {
|
|
|
6516
6516
|
zoho: "Zoho",
|
|
6517
6517
|
zoom: "Zoom"
|
|
6518
6518
|
};
|
|
6519
|
-
function
|
|
6520
|
-
return
|
|
6519
|
+
function rt(t) {
|
|
6520
|
+
return Tn[t] ?? t.charAt(0).toUpperCase() + t.slice(1);
|
|
6521
6521
|
}
|
|
6522
|
-
const
|
|
6522
|
+
const yt = (t, e, n = 401) => Object.assign(new Error(e), { type: t, code: n }), Ce = () => (/* @__PURE__ */ new Date()).toISOString(), Le = (t) => new Date(Date.now() - t * 6e4).toISOString(), gt = [
|
|
6523
6523
|
"amber",
|
|
6524
6524
|
"brave",
|
|
6525
6525
|
"calm",
|
|
@@ -6532,13 +6532,13 @@ const ft = (t, e, n = 401) => Object.assign(new Error(e), { type: t, code: n }),
|
|
|
6532
6532
|
"juniper",
|
|
6533
6533
|
"kite",
|
|
6534
6534
|
"lumen"
|
|
6535
|
-
], xi = () => `${
|
|
6535
|
+
], xi = () => `${gt[Math.floor(Math.random() * gt.length)]}-${gt[Math.floor(Math.random() * gt.length)]}`, Qe = () => Math.random().toString(36).slice(2, 12), Ui = () => Array.from({ length: 2 }, () => Math.random().toString(36).slice(2, 7)).join("-"), zn = {
|
|
6536
6536
|
name: "Ada Lovelace",
|
|
6537
6537
|
email: "ada@example.com",
|
|
6538
6538
|
phone: "+15550100"
|
|
6539
6539
|
};
|
|
6540
|
-
class
|
|
6541
|
-
constructor(e =
|
|
6540
|
+
class On {
|
|
6541
|
+
constructor(e = zn) {
|
|
6542
6542
|
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;
|
|
6543
6543
|
}
|
|
6544
6544
|
// ───────────────────────── helpers ─────────────────────────
|
|
@@ -6547,7 +6547,7 @@ class zn {
|
|
|
6547
6547
|
return this.user = {
|
|
6548
6548
|
$id: "preview-user",
|
|
6549
6549
|
$createdAt: Le(1440 * 30),
|
|
6550
|
-
$updatedAt:
|
|
6550
|
+
$updatedAt: Ce(),
|
|
6551
6551
|
name: n ? "" : e.name ?? this.seed.name,
|
|
6552
6552
|
registration: Le(1440 * 30),
|
|
6553
6553
|
status: !0,
|
|
@@ -6560,14 +6560,14 @@ class zn {
|
|
|
6560
6560
|
mfa: this.mfaEnabled,
|
|
6561
6561
|
prefs: {},
|
|
6562
6562
|
targets: [],
|
|
6563
|
-
accessedAt:
|
|
6563
|
+
accessedAt: Ce()
|
|
6564
6564
|
}, this.seedActivity(n ? "anonymous" : "email"), this.user;
|
|
6565
6565
|
}
|
|
6566
6566
|
seedActivity(e) {
|
|
6567
6567
|
if (this.sessions.length > 0) return;
|
|
6568
6568
|
const n = {
|
|
6569
|
-
$createdAt:
|
|
6570
|
-
$updatedAt:
|
|
6569
|
+
$createdAt: Ce(),
|
|
6570
|
+
$updatedAt: Ce(),
|
|
6571
6571
|
userId: "preview-user",
|
|
6572
6572
|
expire: new Date(Date.now() + 365 * 864e5).toISOString(),
|
|
6573
6573
|
providerUid: "",
|
|
@@ -6602,7 +6602,7 @@ class zn {
|
|
|
6602
6602
|
},
|
|
6603
6603
|
{
|
|
6604
6604
|
...n,
|
|
6605
|
-
$id:
|
|
6605
|
+
$id: Qe(),
|
|
6606
6606
|
$createdAt: Le(300),
|
|
6607
6607
|
provider: e,
|
|
6608
6608
|
ip: "198.51.100.7",
|
|
@@ -6619,7 +6619,7 @@ class zn {
|
|
|
6619
6619
|
},
|
|
6620
6620
|
{
|
|
6621
6621
|
...n,
|
|
6622
|
-
$id:
|
|
6622
|
+
$id: Qe(),
|
|
6623
6623
|
$createdAt: Le(1440 * 3),
|
|
6624
6624
|
provider: "oauth2",
|
|
6625
6625
|
ip: "192.0.2.90",
|
|
@@ -6648,7 +6648,7 @@ class zn {
|
|
|
6648
6648
|
], this.logs = [
|
|
6649
6649
|
{
|
|
6650
6650
|
event: "session.create",
|
|
6651
|
-
time:
|
|
6651
|
+
time: Ce(),
|
|
6652
6652
|
clientName: "Chrome",
|
|
6653
6653
|
osName: "macOS",
|
|
6654
6654
|
countryName: "Germany",
|
|
@@ -6674,9 +6674,9 @@ class zn {
|
|
|
6674
6674
|
}
|
|
6675
6675
|
requireUser() {
|
|
6676
6676
|
if (!this.user)
|
|
6677
|
-
throw
|
|
6677
|
+
throw yt("general_unauthorized_scope", "User (role: guests) missing scope (account)");
|
|
6678
6678
|
if (this.mfaPending)
|
|
6679
|
-
throw
|
|
6679
|
+
throw yt(
|
|
6680
6680
|
"user_more_factors_required",
|
|
6681
6681
|
"More factors are required to complete the sign in process."
|
|
6682
6682
|
);
|
|
@@ -6684,7 +6684,7 @@ class zn {
|
|
|
6684
6684
|
}
|
|
6685
6685
|
requireRecentChallenge() {
|
|
6686
6686
|
if (Date.now() - this.lastChallenge > 30 * 6e4)
|
|
6687
|
-
throw
|
|
6687
|
+
throw yt(
|
|
6688
6688
|
"user_challenge_required",
|
|
6689
6689
|
"A recently successful challenge is required to complete this action."
|
|
6690
6690
|
);
|
|
@@ -6720,8 +6720,8 @@ class zn {
|
|
|
6720
6720
|
}
|
|
6721
6721
|
async createMagicURLToken(e, n) {
|
|
6722
6722
|
return this.tokens.set(e, { email: n }), this.delay({
|
|
6723
|
-
$id:
|
|
6724
|
-
$createdAt:
|
|
6723
|
+
$id: Qe(),
|
|
6724
|
+
$createdAt: Ce(),
|
|
6725
6725
|
userId: e,
|
|
6726
6726
|
secret: "",
|
|
6727
6727
|
expire: "",
|
|
@@ -6730,8 +6730,8 @@ class zn {
|
|
|
6730
6730
|
}
|
|
6731
6731
|
async createEmailToken(e, n) {
|
|
6732
6732
|
return this.tokens.set(e, { email: n }), this.delay({
|
|
6733
|
-
$id:
|
|
6734
|
-
$createdAt:
|
|
6733
|
+
$id: Qe(),
|
|
6734
|
+
$createdAt: Ce(),
|
|
6735
6735
|
userId: e,
|
|
6736
6736
|
secret: "",
|
|
6737
6737
|
expire: "",
|
|
@@ -6739,7 +6739,7 @@ class zn {
|
|
|
6739
6739
|
});
|
|
6740
6740
|
}
|
|
6741
6741
|
async createPhoneToken(e, n) {
|
|
6742
|
-
return this.tokens.set(e, { phone: n }), this.delay({ $id:
|
|
6742
|
+
return this.tokens.set(e, { phone: n }), this.delay({ $id: Qe(), $createdAt: Ce(), userId: e, secret: "", expire: "", phrase: "" });
|
|
6743
6743
|
}
|
|
6744
6744
|
async createSession(e) {
|
|
6745
6745
|
return this.delay(() => {
|
|
@@ -6780,7 +6780,7 @@ class zn {
|
|
|
6780
6780
|
async updateEmail(e) {
|
|
6781
6781
|
return this.delay(() => {
|
|
6782
6782
|
const n = this.requireUser();
|
|
6783
|
-
return n.email = e, n.emailVerification = !1, n.passwordUpdate =
|
|
6783
|
+
return n.email = e, n.emailVerification = !1, n.passwordUpdate = Ce(), n;
|
|
6784
6784
|
});
|
|
6785
6785
|
}
|
|
6786
6786
|
async updatePhone(e) {
|
|
@@ -6792,7 +6792,7 @@ class zn {
|
|
|
6792
6792
|
async updatePassword() {
|
|
6793
6793
|
return this.delay(() => {
|
|
6794
6794
|
const e = this.requireUser();
|
|
6795
|
-
return e.passwordUpdate =
|
|
6795
|
+
return e.passwordUpdate = Ce(), e;
|
|
6796
6796
|
});
|
|
6797
6797
|
}
|
|
6798
6798
|
async updateStatus() {
|
|
@@ -6828,7 +6828,7 @@ class zn {
|
|
|
6828
6828
|
});
|
|
6829
6829
|
}
|
|
6830
6830
|
async createMFAChallenge() {
|
|
6831
|
-
return this.delay({ $id:
|
|
6831
|
+
return this.delay({ $id: Qe(), $createdAt: Ce(), userId: "preview-user", expire: "" });
|
|
6832
6832
|
}
|
|
6833
6833
|
async updateMFAChallenge() {
|
|
6834
6834
|
return this.delay(() => (this.mfaPending = !1, this.lastChallenge = Date.now(), this.sessions[0]));
|
|
@@ -6857,7 +6857,7 @@ class zn {
|
|
|
6857
6857
|
async createMFARecoveryCodes() {
|
|
6858
6858
|
return this.delay(() => {
|
|
6859
6859
|
if (this.recoveryCodes.length > 0)
|
|
6860
|
-
throw
|
|
6860
|
+
throw yt("user_recovery_codes_already_exists", "Recovery codes already generated.", 409);
|
|
6861
6861
|
return this.recoveryCodes = Array.from({ length: 6 }, Ui), { recoveryCodes: this.recoveryCodes };
|
|
6862
6862
|
});
|
|
6863
6863
|
}
|
|
@@ -6872,7 +6872,7 @@ class zn {
|
|
|
6872
6872
|
this.user = null, this.mfaPending = !1, this.sessions = [], this.identities = [], this.logs = [], this.tokens.clear();
|
|
6873
6873
|
}
|
|
6874
6874
|
}
|
|
6875
|
-
function
|
|
6875
|
+
function Fn(t) {
|
|
6876
6876
|
let e = 2166136261;
|
|
6877
6877
|
const n = () => (e ^= e << 13, e ^= e >>> 17, e ^= e << 5, (e >>> 0) / 4294967296);
|
|
6878
6878
|
for (const r of t) e = (e ^ r.charCodeAt(0)) * 16777619;
|
|
@@ -6917,7 +6917,7 @@ const ue = {
|
|
|
6917
6917
|
countMaxExceeded: "user_count_exceeded",
|
|
6918
6918
|
targetAlreadyExists: "user_target_already_exists"
|
|
6919
6919
|
};
|
|
6920
|
-
function
|
|
6920
|
+
function kt(t) {
|
|
6921
6921
|
if (t && typeof t == "object") {
|
|
6922
6922
|
const e = t;
|
|
6923
6923
|
return {
|
|
@@ -6928,11 +6928,11 @@ function At(t) {
|
|
|
6928
6928
|
}
|
|
6929
6929
|
return { message: String(t), type: "", code: 0 };
|
|
6930
6930
|
}
|
|
6931
|
-
function
|
|
6932
|
-
return
|
|
6931
|
+
function jt(t, e) {
|
|
6932
|
+
return kt(t).type === e;
|
|
6933
6933
|
}
|
|
6934
6934
|
function Ji(t, e, n = "link") {
|
|
6935
|
-
const i =
|
|
6935
|
+
const i = kt(t);
|
|
6936
6936
|
switch (i.type) {
|
|
6937
6937
|
case ue.invalidCredentials:
|
|
6938
6938
|
return e.errorInvalidCredentials;
|
|
@@ -6970,7 +6970,7 @@ function Ji(t, e, n = "link") {
|
|
|
6970
6970
|
}
|
|
6971
6971
|
return i.code === 0 && /fetch|network/i.test(i.message) ? e.errorNetwork : i.message || e.errorGeneric;
|
|
6972
6972
|
}
|
|
6973
|
-
function
|
|
6973
|
+
function Se(t, e, n) {
|
|
6974
6974
|
for (const i of e) {
|
|
6975
6975
|
const o = t[i];
|
|
6976
6976
|
if (typeof o == "function")
|
|
@@ -6980,21 +6980,21 @@ function $e(t, e, n) {
|
|
|
6980
6980
|
new Error(`Appwrite SDK is missing ${e[0]}(). Update the appwrite package.`)
|
|
6981
6981
|
);
|
|
6982
6982
|
}
|
|
6983
|
-
const
|
|
6983
|
+
const ni = "authui", Mi = ["userId", "secret", "expire", "project", "error", ni], Ri = () => ({
|
|
6984
6984
|
status: "loading",
|
|
6985
6985
|
user: null,
|
|
6986
6986
|
mfaFactors: null,
|
|
6987
6987
|
pending: null,
|
|
6988
6988
|
configured: !1
|
|
6989
6989
|
});
|
|
6990
|
-
class
|
|
6990
|
+
class eo {
|
|
6991
6991
|
constructor() {
|
|
6992
6992
|
this.client = null, this.account = null, this.config = null, this.state = Ri(), this.listeners = /* @__PURE__ */ new Map(), this.refreshPromise = null, this.preview = null;
|
|
6993
6993
|
}
|
|
6994
6994
|
// ───────────────────────────── configuration ─────────────────────────────
|
|
6995
6995
|
/** Configure the Appwrite client. Safe to call more than once; the last call wins. */
|
|
6996
6996
|
configure(e) {
|
|
6997
|
-
this.config = e, this.client = new
|
|
6997
|
+
this.config = e, this.client = new xe().setEndpoint(e.endpoint).setProject(e.project), this.preview = e.preview ? new On() : null, this.account = this.preview ? this.preview : new Gi(this.client), this.setState({ configured: !0, status: "loading" }), this.preview ? this.refresh() : typeof window < "u" && this.handleRedirect().then(() => this.refresh());
|
|
6998
6998
|
}
|
|
6999
6999
|
get isConfigured() {
|
|
7000
7000
|
return this.config !== null;
|
|
@@ -7022,7 +7022,7 @@ class Fn {
|
|
|
7022
7022
|
return this.account;
|
|
7023
7023
|
}
|
|
7024
7024
|
getStrings() {
|
|
7025
|
-
return { ...
|
|
7025
|
+
return { ...Zn, ...this.config?.strings ?? {} };
|
|
7026
7026
|
}
|
|
7027
7027
|
getState() {
|
|
7028
7028
|
return { ...this.state };
|
|
@@ -7048,7 +7048,7 @@ class Fn {
|
|
|
7048
7048
|
this.state = { ...this.state, ...e }, this.emit("change", this.getState());
|
|
7049
7049
|
}
|
|
7050
7050
|
fail(e) {
|
|
7051
|
-
const n =
|
|
7051
|
+
const n = kt(e);
|
|
7052
7052
|
throw this.emit("error", n), e;
|
|
7053
7053
|
}
|
|
7054
7054
|
acct() {
|
|
@@ -7068,10 +7068,10 @@ class Fn {
|
|
|
7068
7068
|
const n = await this.account.get();
|
|
7069
7069
|
this.setState({ status: "signed-in", user: n, mfaFactors: null }), e || this.emit("signed-in", n);
|
|
7070
7070
|
} catch (n) {
|
|
7071
|
-
if (
|
|
7071
|
+
if (jt(n, ue.moreFactorsRequired)) {
|
|
7072
7072
|
let i = null;
|
|
7073
7073
|
try {
|
|
7074
|
-
i = await
|
|
7074
|
+
i = await Se(
|
|
7075
7075
|
this.account,
|
|
7076
7076
|
["listMFAFactors", "listMfaFactors"],
|
|
7077
7077
|
[]
|
|
@@ -7102,7 +7102,7 @@ class Fn {
|
|
|
7102
7102
|
}
|
|
7103
7103
|
async signUp(e, n, i) {
|
|
7104
7104
|
try {
|
|
7105
|
-
await this.acct().create(
|
|
7105
|
+
await this.acct().create(Be.unique(), e.trim(), n, i?.trim() || void 0), await this.acct().createEmailPasswordSession(e.trim(), n);
|
|
7106
7106
|
} catch (o) {
|
|
7107
7107
|
this.fail(o);
|
|
7108
7108
|
}
|
|
@@ -7145,7 +7145,7 @@ class Fn {
|
|
|
7145
7145
|
async sendMagicUrl(e) {
|
|
7146
7146
|
try {
|
|
7147
7147
|
return await this.acct().createMagicURLToken(
|
|
7148
|
-
|
|
7148
|
+
Be.unique(),
|
|
7149
7149
|
e.trim(),
|
|
7150
7150
|
this.redirectUrl("magic-url"),
|
|
7151
7151
|
this.config?.securityPhrase ?? !0
|
|
@@ -7157,7 +7157,7 @@ class Fn {
|
|
|
7157
7157
|
async sendEmailOtp(e) {
|
|
7158
7158
|
try {
|
|
7159
7159
|
return await this.acct().createEmailToken(
|
|
7160
|
-
|
|
7160
|
+
Be.unique(),
|
|
7161
7161
|
e.trim(),
|
|
7162
7162
|
this.config?.securityPhrase ?? !0
|
|
7163
7163
|
);
|
|
@@ -7167,7 +7167,7 @@ class Fn {
|
|
|
7167
7167
|
}
|
|
7168
7168
|
async sendPhoneOtp(e) {
|
|
7169
7169
|
try {
|
|
7170
|
-
return await this.acct().createPhoneToken(
|
|
7170
|
+
return await this.acct().createPhoneToken(Be.unique(), e.replace(/[\s()-]/g, ""));
|
|
7171
7171
|
} catch (n) {
|
|
7172
7172
|
return this.fail(n);
|
|
7173
7173
|
}
|
|
@@ -7184,7 +7184,7 @@ class Fn {
|
|
|
7184
7184
|
// ─────────────────────────────── MFA ───────────────────────────────
|
|
7185
7185
|
async createMfaChallenge(e) {
|
|
7186
7186
|
try {
|
|
7187
|
-
return await
|
|
7187
|
+
return await Se(
|
|
7188
7188
|
this.acct(),
|
|
7189
7189
|
["createMFAChallenge", "createMfaChallenge"],
|
|
7190
7190
|
[e]
|
|
@@ -7196,7 +7196,7 @@ class Fn {
|
|
|
7196
7196
|
/** Verify a challenge. Completes a pending sign in, or acts as a step-up for protected actions. */
|
|
7197
7197
|
async completeMfaChallenge(e, n, i = {}) {
|
|
7198
7198
|
try {
|
|
7199
|
-
await
|
|
7199
|
+
await Se(
|
|
7200
7200
|
this.acct(),
|
|
7201
7201
|
["updateMFAChallenge", "updateMfaChallenge"],
|
|
7202
7202
|
[e, n.trim()]
|
|
@@ -7208,7 +7208,7 @@ class Fn {
|
|
|
7208
7208
|
}
|
|
7209
7209
|
async listMfaFactors() {
|
|
7210
7210
|
try {
|
|
7211
|
-
return await
|
|
7211
|
+
return await Se(this.acct(), ["listMFAFactors", "listMfaFactors"], []);
|
|
7212
7212
|
} catch (e) {
|
|
7213
7213
|
return this.fail(e);
|
|
7214
7214
|
}
|
|
@@ -7223,7 +7223,7 @@ class Fn {
|
|
|
7223
7223
|
}
|
|
7224
7224
|
async addAuthenticator() {
|
|
7225
7225
|
try {
|
|
7226
|
-
return await
|
|
7226
|
+
return await Se(
|
|
7227
7227
|
this.acct(),
|
|
7228
7228
|
["createMFAAuthenticator", "createMfaAuthenticator"],
|
|
7229
7229
|
["totp"]
|
|
@@ -7234,7 +7234,7 @@ class Fn {
|
|
|
7234
7234
|
}
|
|
7235
7235
|
async verifyAuthenticator(e) {
|
|
7236
7236
|
try {
|
|
7237
|
-
await
|
|
7237
|
+
await Se(
|
|
7238
7238
|
this.acct(),
|
|
7239
7239
|
["updateMFAAuthenticator", "updateMfaAuthenticator"],
|
|
7240
7240
|
["totp", e.trim()]
|
|
@@ -7247,7 +7247,7 @@ class Fn {
|
|
|
7247
7247
|
/** Requires a recent MFA challenge (server rejects with user_challenge_required otherwise). */
|
|
7248
7248
|
async removeAuthenticator() {
|
|
7249
7249
|
try {
|
|
7250
|
-
await
|
|
7250
|
+
await Se(this.acct(), ["deleteMFAAuthenticator", "deleteMfaAuthenticator"], ["totp"]);
|
|
7251
7251
|
} catch (e) {
|
|
7252
7252
|
this.fail(e);
|
|
7253
7253
|
}
|
|
@@ -7255,7 +7255,7 @@ class Fn {
|
|
|
7255
7255
|
}
|
|
7256
7256
|
async createRecoveryCodes() {
|
|
7257
7257
|
try {
|
|
7258
|
-
return (await
|
|
7258
|
+
return (await Se(
|
|
7259
7259
|
this.acct(),
|
|
7260
7260
|
["createMFARecoveryCodes", "createMfaRecoveryCodes"],
|
|
7261
7261
|
[]
|
|
@@ -7267,7 +7267,7 @@ class Fn {
|
|
|
7267
7267
|
/** Requires a recent MFA challenge. */
|
|
7268
7268
|
async regenerateRecoveryCodes() {
|
|
7269
7269
|
try {
|
|
7270
|
-
return (await
|
|
7270
|
+
return (await Se(
|
|
7271
7271
|
this.acct(),
|
|
7272
7272
|
["updateMFARecoveryCodes", "updateMfaRecoveryCodes"],
|
|
7273
7273
|
[]
|
|
@@ -7279,7 +7279,7 @@ class Fn {
|
|
|
7279
7279
|
/** Requires a recent MFA challenge. */
|
|
7280
7280
|
async getRecoveryCodes() {
|
|
7281
7281
|
try {
|
|
7282
|
-
return (await
|
|
7282
|
+
return (await Se(
|
|
7283
7283
|
this.acct(),
|
|
7284
7284
|
["getMFARecoveryCodes", "getMfaRecoveryCodes"],
|
|
7285
7285
|
[]
|
|
@@ -7393,7 +7393,7 @@ class Fn {
|
|
|
7393
7393
|
}
|
|
7394
7394
|
async sendEmailVerification() {
|
|
7395
7395
|
try {
|
|
7396
|
-
await
|
|
7396
|
+
await Se(
|
|
7397
7397
|
this.acct(),
|
|
7398
7398
|
["createEmailVerification", "createVerification"],
|
|
7399
7399
|
[this.redirectUrl("verify-email")]
|
|
@@ -7434,7 +7434,7 @@ class Fn {
|
|
|
7434
7434
|
redirectUrl(e) {
|
|
7435
7435
|
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);
|
|
7436
7436
|
for (const o of Mi) i.searchParams.delete(o);
|
|
7437
|
-
return i.searchParams.set(
|
|
7437
|
+
return i.searchParams.set(ni, e), i.toString();
|
|
7438
7438
|
}
|
|
7439
7439
|
setPending(e) {
|
|
7440
7440
|
this.setState({ pending: e });
|
|
@@ -7445,7 +7445,7 @@ class Fn {
|
|
|
7445
7445
|
*/
|
|
7446
7446
|
async handleRedirect() {
|
|
7447
7447
|
if (typeof window > "u") return !1;
|
|
7448
|
-
const e = new URLSearchParams(window.location.search), n = e.get(
|
|
7448
|
+
const e = new URLSearchParams(window.location.search), n = e.get(ni);
|
|
7449
7449
|
if (!n) return !1;
|
|
7450
7450
|
const i = e.get("userId") ?? "", o = e.get("secret") ?? "";
|
|
7451
7451
|
this.cleanUrl();
|
|
@@ -7462,7 +7462,7 @@ class Fn {
|
|
|
7462
7462
|
i && o && this.setState({ pending: { type: "reset-password", userId: i, secret: o } });
|
|
7463
7463
|
break;
|
|
7464
7464
|
case "verify-email":
|
|
7465
|
-
i && o && (await
|
|
7465
|
+
i && o && (await Se(
|
|
7466
7466
|
this.acct(),
|
|
7467
7467
|
["updateEmailVerification", "updateVerification"],
|
|
7468
7468
|
[i, o]
|
|
@@ -7476,7 +7476,7 @@ class Fn {
|
|
|
7476
7476
|
break;
|
|
7477
7477
|
}
|
|
7478
7478
|
} catch (a) {
|
|
7479
|
-
const s =
|
|
7479
|
+
const s = kt(a);
|
|
7480
7480
|
this.emit("error", s), this.setState({ pending: { type: "notice", message: s.message, tone: "error" } });
|
|
7481
7481
|
}
|
|
7482
7482
|
return !0;
|
|
@@ -7491,8 +7491,8 @@ class Fn {
|
|
|
7491
7491
|
this.client = null, this.account = null, this.preview = null, this.config = null, this.state = Ri(), this.listeners.clear();
|
|
7492
7492
|
}
|
|
7493
7493
|
}
|
|
7494
|
-
const q = new
|
|
7495
|
-
class
|
|
7494
|
+
const q = new eo();
|
|
7495
|
+
class to {
|
|
7496
7496
|
constructor() {
|
|
7497
7497
|
this.listeners = /* @__PURE__ */ new Set(), this.observer = null, this.media = null, this.notify = () => {
|
|
7498
7498
|
const e = this.isDark("auto");
|
|
@@ -7520,14 +7520,14 @@ class eo {
|
|
|
7520
7520
|
this.observer?.disconnect(), this.observer = null, this.media?.removeEventListener?.("change", this.notify), this.media = null;
|
|
7521
7521
|
}
|
|
7522
7522
|
}
|
|
7523
|
-
const qi = new
|
|
7523
|
+
const qi = new to(), Ei = {
|
|
7524
7524
|
none: "0px",
|
|
7525
7525
|
sm: "0.25rem",
|
|
7526
7526
|
md: "0.625rem",
|
|
7527
7527
|
lg: "0.875rem",
|
|
7528
7528
|
xl: "1.125rem",
|
|
7529
7529
|
full: "1.5rem"
|
|
7530
|
-
},
|
|
7530
|
+
}, io = Ve`
|
|
7531
7531
|
:host {
|
|
7532
7532
|
/* Light theme (matches :root in the console) */
|
|
7533
7533
|
--authui-background: oklch(1 0 0);
|
|
@@ -7605,7 +7605,7 @@ const qi = new eo(), Ei = {
|
|
|
7605
7605
|
--authui-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
|
|
7606
7606
|
color-scheme: dark;
|
|
7607
7607
|
}
|
|
7608
|
-
`,
|
|
7608
|
+
`, no = Ve`
|
|
7609
7609
|
*,
|
|
7610
7610
|
*::before,
|
|
7611
7611
|
*::after {
|
|
@@ -8348,29 +8348,33 @@ const qi = new eo(), Ei = {
|
|
|
8348
8348
|
}
|
|
8349
8349
|
}
|
|
8350
8350
|
`;
|
|
8351
|
-
var
|
|
8351
|
+
var oo = Object.defineProperty, ao = (t, e, n, i) => {
|
|
8352
8352
|
for (var o = void 0, a = t.length - 1, s; a >= 0; a--)
|
|
8353
8353
|
(s = t[a]) && (o = s(e, n, o) || o);
|
|
8354
|
-
return o &&
|
|
8355
|
-
};
|
|
8356
|
-
const
|
|
8354
|
+
return o && oo(e, n, o), o;
|
|
8355
|
+
}, Ne;
|
|
8356
|
+
const Yi = (Ne = class extends Je {
|
|
8357
8357
|
constructor() {
|
|
8358
|
-
super(...arguments), this.auth = q.getState(), this.unsubscribeStore = null, this.unsubscribeTheme = null;
|
|
8358
|
+
super(...arguments), this.auth = q.getState(), this.unsubscribeStore = null, this.unsubscribeTheme = null, this.stopKeys = (e) => e.stopPropagation();
|
|
8359
8359
|
}
|
|
8360
8360
|
connectedCallback() {
|
|
8361
|
-
super.connectedCallback()
|
|
8361
|
+
super.connectedCallback();
|
|
8362
|
+
for (const e of Ne.KEY_EVENTS) this.addEventListener(e, this.stopKeys);
|
|
8363
|
+
this.auth = q.getState(), this.unsubscribeStore = q.on("change", (e) => {
|
|
8362
8364
|
this.auth = e, this.applyBranding();
|
|
8363
8365
|
}), this.unsubscribeTheme = qi.subscribe(() => this.applyBranding()), this.applyBranding();
|
|
8364
8366
|
}
|
|
8365
8367
|
disconnectedCallback() {
|
|
8366
|
-
super.disconnectedCallback()
|
|
8368
|
+
super.disconnectedCallback();
|
|
8369
|
+
for (const e of Ne.KEY_EVENTS) this.removeEventListener(e, this.stopKeys);
|
|
8370
|
+
this.unsubscribeStore?.(), this.unsubscribeTheme?.(), this.unsubscribeStore = null, this.unsubscribeTheme = null;
|
|
8367
8371
|
}
|
|
8368
8372
|
get strings() {
|
|
8369
8373
|
return q.getStrings();
|
|
8370
8374
|
}
|
|
8371
8375
|
/** Translate a string key with optional `{placeholders}`. */
|
|
8372
8376
|
t(e, n) {
|
|
8373
|
-
return
|
|
8377
|
+
return Qn(this.strings[e], n);
|
|
8374
8378
|
}
|
|
8375
8379
|
get config() {
|
|
8376
8380
|
return q.getConfig();
|
|
@@ -8390,18 +8394,17 @@ const pi = class pi extends Ke {
|
|
|
8390
8394
|
fire(e, n) {
|
|
8391
8395
|
this.dispatchEvent(new CustomEvent(e, { detail: n, bubbles: !0, composed: !0 }));
|
|
8392
8396
|
}
|
|
8393
|
-
};
|
|
8394
|
-
|
|
8395
|
-
let ke = pi;
|
|
8396
|
-
oo([
|
|
8397
|
+
}, Ne.styles = [io, no], Ne.KEY_EVENTS = ["keydown", "keyup", "keypress"], Ne);
|
|
8398
|
+
ao([
|
|
8397
8399
|
T()
|
|
8398
|
-
],
|
|
8399
|
-
|
|
8400
|
-
|
|
8400
|
+
], Yi.prototype, "auth");
|
|
8401
|
+
let Re = Yi;
|
|
8402
|
+
var so = Object.defineProperty, ro = Object.getOwnPropertyDescriptor, fe = (t, e, n, i) => {
|
|
8403
|
+
for (var o = i > 1 ? void 0 : i ? ro(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
8401
8404
|
(s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
|
|
8402
|
-
return i && o &&
|
|
8405
|
+
return i && o && so(e, n, o), o;
|
|
8403
8406
|
};
|
|
8404
|
-
let pe = class extends
|
|
8407
|
+
let pe = class extends Je {
|
|
8405
8408
|
constructor() {
|
|
8406
8409
|
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.preview = "";
|
|
8407
8410
|
}
|
|
@@ -8446,7 +8449,7 @@ let pe = class extends Ke {
|
|
|
8446
8449
|
};
|
|
8447
8450
|
}
|
|
8448
8451
|
};
|
|
8449
|
-
pe.styles =
|
|
8452
|
+
pe.styles = Ve`
|
|
8450
8453
|
:host {
|
|
8451
8454
|
display: none;
|
|
8452
8455
|
}
|
|
@@ -8506,22 +8509,22 @@ fe([
|
|
|
8506
8509
|
ie({ type: String })
|
|
8507
8510
|
], pe.prototype, "preview", 2);
|
|
8508
8511
|
pe = fe([
|
|
8509
|
-
|
|
8512
|
+
Ze("authui-config")
|
|
8510
8513
|
], pe);
|
|
8511
|
-
var
|
|
8512
|
-
for (var o = i > 1 ? void 0 : i ?
|
|
8514
|
+
var co = Object.defineProperty, lo = Object.getOwnPropertyDescriptor, xt = (t, e, n, i) => {
|
|
8515
|
+
for (var o = i > 1 ? void 0 : i ? lo(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
8513
8516
|
(s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
|
|
8514
|
-
return i && o &&
|
|
8517
|
+
return i && o && co(e, n, o), o;
|
|
8515
8518
|
};
|
|
8516
8519
|
if (typeof document < "u" && !document.getElementById("authui-fouc")) {
|
|
8517
8520
|
const t = document.createElement("style");
|
|
8518
8521
|
t.id = "authui-fouc", t.textContent = "authui-show:not([ready]){display:none}", document.head.appendChild(t);
|
|
8519
8522
|
}
|
|
8520
|
-
const
|
|
8521
|
-
function
|
|
8522
|
-
return t ? t.split(/[\s,]+/).map((e) => e.trim()).filter((e) =>
|
|
8523
|
+
const uo = ["loading", "signed-out", "signed-in", "mfa-required"];
|
|
8524
|
+
function Bt(t) {
|
|
8525
|
+
return t ? t.split(/[\s,]+/).map((e) => e.trim()).filter((e) => uo.includes(e)) : [];
|
|
8523
8526
|
}
|
|
8524
|
-
let
|
|
8527
|
+
let ut = class extends Je {
|
|
8525
8528
|
constructor() {
|
|
8526
8529
|
super(...arguments), this.when = "", this.unless = "", this.status = q.getState().status, this.unsubscribe = null;
|
|
8527
8530
|
}
|
|
@@ -8533,29 +8536,29 @@ let lt = class extends Ke {
|
|
|
8533
8536
|
}
|
|
8534
8537
|
/** Whether the current status satisfies `when` and `unless`. */
|
|
8535
8538
|
get visible() {
|
|
8536
|
-
const t =
|
|
8539
|
+
const t = Bt(this.when), e = Bt(this.unless);
|
|
8537
8540
|
return !(this.status === "loading" && !t.includes("loading") || t.length > 0 && !t.includes(this.status) || e.includes(this.status));
|
|
8538
8541
|
}
|
|
8539
8542
|
updated() {
|
|
8540
|
-
(this.status !== "loading" ||
|
|
8543
|
+
(this.status !== "loading" || Bt(this.when).includes("loading")) && (this.setAttribute("ready", ""), this.style.display = "contents");
|
|
8541
8544
|
}
|
|
8542
8545
|
render() {
|
|
8543
8546
|
return this.visible ? S`<slot></slot>` : R;
|
|
8544
8547
|
}
|
|
8545
8548
|
};
|
|
8546
|
-
|
|
8549
|
+
xt([
|
|
8547
8550
|
ie({ type: String })
|
|
8548
|
-
],
|
|
8549
|
-
|
|
8551
|
+
], ut.prototype, "when", 2);
|
|
8552
|
+
xt([
|
|
8550
8553
|
ie({ type: String })
|
|
8551
|
-
],
|
|
8552
|
-
|
|
8554
|
+
], ut.prototype, "unless", 2);
|
|
8555
|
+
xt([
|
|
8553
8556
|
T()
|
|
8554
|
-
],
|
|
8555
|
-
|
|
8556
|
-
|
|
8557
|
-
],
|
|
8558
|
-
const
|
|
8557
|
+
], ut.prototype, "status", 2);
|
|
8558
|
+
ut = xt([
|
|
8559
|
+
Ze("authui-show")
|
|
8560
|
+
], ut);
|
|
8561
|
+
const po = Ve`
|
|
8559
8562
|
:host {
|
|
8560
8563
|
display: block;
|
|
8561
8564
|
width: 100%;
|
|
@@ -8693,7 +8696,7 @@ const uo = Xe`
|
|
|
8693
8696
|
qr: oe(
|
|
8694
8697
|
W`<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"/>`
|
|
8695
8698
|
)
|
|
8696
|
-
}, ye = (t, e = "0 0 24 24") => S`<svg xmlns="http://www.w3.org/2000/svg" viewBox=${e} aria-hidden="true">${t}</svg>`,
|
|
8699
|
+
}, ye = (t, e = "0 0 24 24") => S`<svg xmlns="http://www.w3.org/2000/svg" viewBox=${e} aria-hidden="true">${t}</svg>`, ho = {
|
|
8697
8700
|
google: ye(
|
|
8698
8701
|
W`<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"/>`
|
|
8699
8702
|
),
|
|
@@ -8749,15 +8752,15 @@ const uo = Xe`
|
|
|
8749
8752
|
W`<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"/>`
|
|
8750
8753
|
)
|
|
8751
8754
|
};
|
|
8752
|
-
function
|
|
8753
|
-
return
|
|
8755
|
+
function oi(t) {
|
|
8756
|
+
return ho[t] ?? X.globe;
|
|
8754
8757
|
}
|
|
8755
|
-
var
|
|
8756
|
-
for (var o = i > 1 ? void 0 : i ?
|
|
8758
|
+
var fo = Object.defineProperty, yo = Object.getOwnPropertyDescriptor, Pe = (t, e, n, i) => {
|
|
8759
|
+
for (var o = i > 1 ? void 0 : i ? yo(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
8757
8760
|
(s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
|
|
8758
|
-
return i && o &&
|
|
8761
|
+
return i && o && fo(e, n, o), o;
|
|
8759
8762
|
};
|
|
8760
|
-
let ve = class extends
|
|
8763
|
+
let ve = class extends Re {
|
|
8761
8764
|
constructor() {
|
|
8762
8765
|
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.token = null, this.challenge = null, this.recovery = null, this.email = "", this.password = "", this.passwordConfirm = "", this.name = "", this.phone = "", this.code = "", this.onSignIn = (t) => {
|
|
8763
8766
|
t.preventDefault(), this.run(async () => {
|
|
@@ -8839,7 +8842,7 @@ let ve = class extends ke {
|
|
|
8839
8842
|
try {
|
|
8840
8843
|
await q.signOut();
|
|
8841
8844
|
} catch (t) {
|
|
8842
|
-
if (!
|
|
8845
|
+
if (!jt(t, ue.sessionNotFound)) throw t;
|
|
8843
8846
|
}
|
|
8844
8847
|
this.go("sign-in");
|
|
8845
8848
|
});
|
|
@@ -9111,11 +9114,11 @@ let ve = class extends ke {
|
|
|
9111
9114
|
class="btn btn-outline"
|
|
9112
9115
|
@click=${() => this.onOAuth(n)}
|
|
9113
9116
|
?disabled=${this.busy}
|
|
9114
|
-
aria-label=${this.t("continueWith", { provider:
|
|
9117
|
+
aria-label=${this.t("continueWith", { provider: rt(n) })}
|
|
9115
9118
|
>
|
|
9116
|
-
${
|
|
9119
|
+
${oi(n)}
|
|
9117
9120
|
<span
|
|
9118
|
-
>${e ?
|
|
9121
|
+
>${e ? rt(n) : this.t("continueWith", { provider: rt(n) })}</span
|
|
9119
9122
|
>
|
|
9120
9123
|
</button>`
|
|
9121
9124
|
)}
|
|
@@ -9388,49 +9391,49 @@ let ve = class extends ke {
|
|
|
9388
9391
|
`;
|
|
9389
9392
|
}
|
|
9390
9393
|
};
|
|
9391
|
-
ve.styles = [...
|
|
9392
|
-
|
|
9394
|
+
ve.styles = [...Re.styles, po];
|
|
9395
|
+
Pe([
|
|
9393
9396
|
ie({ type: String })
|
|
9394
9397
|
], ve.prototype, "view", 2);
|
|
9395
|
-
|
|
9398
|
+
Pe([
|
|
9396
9399
|
ie({ type: Boolean })
|
|
9397
9400
|
], ve.prototype, "embedded", 2);
|
|
9398
|
-
|
|
9401
|
+
Pe([
|
|
9399
9402
|
T()
|
|
9400
9403
|
], ve.prototype, "step", 2);
|
|
9401
|
-
|
|
9404
|
+
Pe([
|
|
9402
9405
|
T()
|
|
9403
9406
|
], ve.prototype, "busy", 2);
|
|
9404
|
-
|
|
9407
|
+
Pe([
|
|
9405
9408
|
T()
|
|
9406
9409
|
], ve.prototype, "error", 2);
|
|
9407
|
-
|
|
9410
|
+
Pe([
|
|
9408
9411
|
T()
|
|
9409
9412
|
], ve.prototype, "notice", 2);
|
|
9410
|
-
|
|
9413
|
+
Pe([
|
|
9411
9414
|
T()
|
|
9412
9415
|
], ve.prototype, "showPassword", 2);
|
|
9413
|
-
|
|
9416
|
+
Pe([
|
|
9414
9417
|
T()
|
|
9415
9418
|
], ve.prototype, "token", 2);
|
|
9416
|
-
|
|
9419
|
+
Pe([
|
|
9417
9420
|
T()
|
|
9418
9421
|
], ve.prototype, "challenge", 2);
|
|
9419
|
-
|
|
9422
|
+
Pe([
|
|
9420
9423
|
T()
|
|
9421
9424
|
], ve.prototype, "recovery", 2);
|
|
9422
|
-
|
|
9425
|
+
Pe([
|
|
9423
9426
|
Xi("form input:not([type=hidden])")
|
|
9424
9427
|
], ve.prototype, "firstInput", 2);
|
|
9425
|
-
ve =
|
|
9426
|
-
|
|
9428
|
+
ve = Pe([
|
|
9429
|
+
Ze("authui-sign-in")
|
|
9427
9430
|
], ve);
|
|
9428
|
-
var
|
|
9429
|
-
for (var o = i > 1 ? void 0 : i ?
|
|
9431
|
+
var go = Object.defineProperty, mo = Object.getOwnPropertyDescriptor, ae = (t, e, n, i) => {
|
|
9432
|
+
for (var o = i > 1 ? void 0 : i ? mo(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
9430
9433
|
(s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
|
|
9431
|
-
return i && o &&
|
|
9434
|
+
return i && o && go(e, n, o), o;
|
|
9432
9435
|
};
|
|
9433
|
-
let te = class extends
|
|
9436
|
+
let te = class extends Re {
|
|
9434
9437
|
constructor() {
|
|
9435
9438
|
super(...arguments), this.embedded = !1, this.tab = "profile", this.active = "profile", this.busy = "", this.notice = null, this.errors = {}, this.nameInput = "", this.emailInput = "", this.emailPassword = "", this.phoneInput = "", this.phonePassword = "", this.phoneCode = "", this.phoneCodeSent = !1, this.guestName = "", this.oldPassword = "", this.newPassword = "", this.newPasswordConfirm = "", this.authenticator = null, this.authenticatorCode = "", this.factors = null, this.recoveryCodes = null, this.stepUp = null, this.stepUpCode = "", this.copied = !1, this.sessions = null, this.identities = null, this.logs = null, this.logsSupported = !0, this.confirmDelete = !1, this.factorsLoading = !1, this.onUpdateName = (t) => {
|
|
9436
9439
|
t.preventDefault(), this.run("name", () => q.updateName(this.nameInput), this.t("done"));
|
|
@@ -9510,7 +9513,7 @@ let te = class extends ke {
|
|
|
9510
9513
|
try {
|
|
9511
9514
|
this.recoveryCodes = await q.createRecoveryCodes();
|
|
9512
9515
|
} catch (t) {
|
|
9513
|
-
if (!
|
|
9516
|
+
if (!jt(t, ue.recoveryCodesExist)) throw t;
|
|
9514
9517
|
this.recoveryCodes = await q.getRecoveryCodes();
|
|
9515
9518
|
}
|
|
9516
9519
|
await this.loadFactors();
|
|
@@ -9582,7 +9585,7 @@ let te = class extends ke {
|
|
|
9582
9585
|
try {
|
|
9583
9586
|
await e(), n && (this.notice = { tone: "success", message: n });
|
|
9584
9587
|
} catch (i) {
|
|
9585
|
-
|
|
9588
|
+
jt(i, ue.challengeRequired) ? this.stepUp = { retry: () => this.run(t, e, n) } : this.errors = {
|
|
9586
9589
|
...this.errors,
|
|
9587
9590
|
[t]: Ji(i, this.strings, t.includes("code") ? "code" : "link")
|
|
9588
9591
|
};
|
|
@@ -10041,7 +10044,7 @@ let te = class extends ke {
|
|
|
10041
10044
|
</div>`;
|
|
10042
10045
|
}
|
|
10043
10046
|
renderMfaCard() {
|
|
10044
|
-
const t = this.user, e = this.factors?.totp ?? !1, n = this.authenticator ? q.isPreview ?
|
|
10047
|
+
const t = this.user, e = this.factors?.totp ?? !1, n = this.authenticator ? q.isPreview ? Fn(this.authenticator.uri) : new Ki(q.getClient()).getQR(this.authenticator.uri, 400, 1).toString() : "";
|
|
10045
10048
|
return this.card(
|
|
10046
10049
|
this.t("twoFactor"),
|
|
10047
10050
|
this.t("twoFactorDescription"),
|
|
@@ -10292,9 +10295,9 @@ let te = class extends ke {
|
|
|
10292
10295
|
${t === null ? S`<div class="empty"><span class="spinner"></span></div>` : t.length === 0 ? S`<div class="empty">${this.t("noConnections")}</div>` : t.map(
|
|
10293
10296
|
(n) => S`<div class="row">
|
|
10294
10297
|
<div class="inline">
|
|
10295
|
-
<span class="device">${
|
|
10298
|
+
<span class="device">${oi(n.provider)}</span>
|
|
10296
10299
|
<div class="row-main">
|
|
10297
|
-
<span class="row-title">${
|
|
10300
|
+
<span class="row-title">${rt(n.provider)}</span>
|
|
10298
10301
|
<span class="row-sub">${n.providerEmail || n.providerUid}</span>
|
|
10299
10302
|
</div>
|
|
10300
10303
|
</div>
|
|
@@ -10315,7 +10318,7 @@ let te = class extends ke {
|
|
|
10315
10318
|
class="btn btn-outline btn-sm"
|
|
10316
10319
|
@click=${() => q.signInWithOAuth(n)}
|
|
10317
10320
|
>
|
|
10318
|
-
${
|
|
10321
|
+
${oi(n)} ${rt(n)}
|
|
10319
10322
|
</button>`
|
|
10320
10323
|
)}` : void 0
|
|
10321
10324
|
)}
|
|
@@ -10344,8 +10347,8 @@ let te = class extends ke {
|
|
|
10344
10347
|
}
|
|
10345
10348
|
};
|
|
10346
10349
|
te.styles = [
|
|
10347
|
-
...
|
|
10348
|
-
|
|
10350
|
+
...Re.styles,
|
|
10351
|
+
Ve`
|
|
10349
10352
|
:host {
|
|
10350
10353
|
display: block;
|
|
10351
10354
|
width: 100%;
|
|
@@ -10510,14 +10513,14 @@ ae([
|
|
|
10510
10513
|
T()
|
|
10511
10514
|
], te.prototype, "confirmDelete", 2);
|
|
10512
10515
|
te = ae([
|
|
10513
|
-
|
|
10516
|
+
Ze("authui-account")
|
|
10514
10517
|
], te);
|
|
10515
|
-
var
|
|
10516
|
-
for (var o = i > 1 ? void 0 : i ?
|
|
10518
|
+
var wo = Object.defineProperty, bo = Object.getOwnPropertyDescriptor, tt = (t, e, n, i) => {
|
|
10519
|
+
for (var o = i > 1 ? void 0 : i ? bo(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
10517
10520
|
(s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
|
|
10518
|
-
return i && o &&
|
|
10521
|
+
return i && o && wo(e, n, o), o;
|
|
10519
10522
|
};
|
|
10520
|
-
let
|
|
10523
|
+
let Xe = class extends Re {
|
|
10521
10524
|
constructor() {
|
|
10522
10525
|
super(...arguments), this.open = !1, this.view = "sign-in", this.closeOnSuccess = !0, this.handledPending = null, this.onOpenEvent = (t) => {
|
|
10523
10526
|
const e = t.detail ?? {};
|
|
@@ -10580,9 +10583,9 @@ let Be = class extends ke {
|
|
|
10580
10583
|
`;
|
|
10581
10584
|
}
|
|
10582
10585
|
};
|
|
10583
|
-
|
|
10584
|
-
...
|
|
10585
|
-
|
|
10586
|
+
Xe.styles = [
|
|
10587
|
+
...Re.styles,
|
|
10588
|
+
Ve`
|
|
10586
10589
|
:host {
|
|
10587
10590
|
display: contents;
|
|
10588
10591
|
}
|
|
@@ -10642,38 +10645,38 @@ Be.styles = [
|
|
|
10642
10645
|
}
|
|
10643
10646
|
`
|
|
10644
10647
|
];
|
|
10645
|
-
|
|
10648
|
+
tt([
|
|
10646
10649
|
ie({ type: Boolean, reflect: !0 })
|
|
10647
|
-
],
|
|
10648
|
-
|
|
10650
|
+
], Xe.prototype, "open", 2);
|
|
10651
|
+
tt([
|
|
10649
10652
|
ie({ type: String })
|
|
10650
|
-
],
|
|
10651
|
-
|
|
10653
|
+
], Xe.prototype, "view", 2);
|
|
10654
|
+
tt([
|
|
10652
10655
|
ie({ type: Boolean, attribute: "close-on-success" })
|
|
10653
|
-
],
|
|
10654
|
-
|
|
10656
|
+
], Xe.prototype, "closeOnSuccess", 2);
|
|
10657
|
+
tt([
|
|
10655
10658
|
T()
|
|
10656
|
-
],
|
|
10657
|
-
|
|
10659
|
+
], Xe.prototype, "handledPending", 2);
|
|
10660
|
+
tt([
|
|
10658
10661
|
Xi("dialog")
|
|
10659
|
-
],
|
|
10660
|
-
|
|
10661
|
-
|
|
10662
|
-
],
|
|
10663
|
-
function
|
|
10662
|
+
], Xe.prototype, "dialog", 2);
|
|
10663
|
+
Xe = tt([
|
|
10664
|
+
Ze("authui-modal")
|
|
10665
|
+
], Xe);
|
|
10666
|
+
function St(t) {
|
|
10664
10667
|
typeof document > "u" || (document.querySelector("authui-modal") || document.body.appendChild(document.createElement("authui-modal")), queueMicrotask(() => {
|
|
10665
10668
|
window.dispatchEvent(new CustomEvent("authui:open", { detail: { view: t } }));
|
|
10666
10669
|
}));
|
|
10667
10670
|
}
|
|
10668
|
-
function
|
|
10671
|
+
function Io() {
|
|
10669
10672
|
typeof window > "u" || window.dispatchEvent(new CustomEvent("authui:close"));
|
|
10670
10673
|
}
|
|
10671
|
-
var
|
|
10672
|
-
for (var o = i > 1 ? void 0 : i ?
|
|
10674
|
+
var vo = Object.defineProperty, Ao = Object.getOwnPropertyDescriptor, Ut = (t, e, n, i) => {
|
|
10675
|
+
for (var o = i > 1 ? void 0 : i ? Ao(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
10673
10676
|
(s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
|
|
10674
|
-
return i && o &&
|
|
10677
|
+
return i && o && vo(e, n, o), o;
|
|
10675
10678
|
};
|
|
10676
|
-
let
|
|
10679
|
+
let Fe = class extends Re {
|
|
10677
10680
|
constructor() {
|
|
10678
10681
|
super(...arguments), this.view = "sign-in", this.variant = "primary", this.size = "md";
|
|
10679
10682
|
}
|
|
@@ -10681,7 +10684,7 @@ let Oe = class extends ke {
|
|
|
10681
10684
|
const t = this.size === "md" ? "" : `btn-${this.size}`;
|
|
10682
10685
|
return S`<button
|
|
10683
10686
|
class="btn btn-${this.variant} ${t}"
|
|
10684
|
-
@click=${() =>
|
|
10687
|
+
@click=${() => St(this.view)}
|
|
10685
10688
|
part="button"
|
|
10686
10689
|
>
|
|
10687
10690
|
<slot
|
|
@@ -10690,9 +10693,9 @@ let Oe = class extends ke {
|
|
|
10690
10693
|
</button>`;
|
|
10691
10694
|
}
|
|
10692
10695
|
};
|
|
10693
|
-
|
|
10694
|
-
...
|
|
10695
|
-
|
|
10696
|
+
Fe.styles = [
|
|
10697
|
+
...Re.styles,
|
|
10698
|
+
Ve`
|
|
10696
10699
|
:host {
|
|
10697
10700
|
display: inline-block;
|
|
10698
10701
|
}
|
|
@@ -10701,24 +10704,24 @@ Oe.styles = [
|
|
|
10701
10704
|
}
|
|
10702
10705
|
`
|
|
10703
10706
|
];
|
|
10704
|
-
|
|
10707
|
+
Ut([
|
|
10705
10708
|
ie({ type: String })
|
|
10706
|
-
],
|
|
10707
|
-
|
|
10709
|
+
], Fe.prototype, "view", 2);
|
|
10710
|
+
Ut([
|
|
10708
10711
|
ie({ type: String })
|
|
10709
|
-
],
|
|
10710
|
-
|
|
10712
|
+
], Fe.prototype, "variant", 2);
|
|
10713
|
+
Ut([
|
|
10711
10714
|
ie({ type: String })
|
|
10712
|
-
],
|
|
10713
|
-
|
|
10714
|
-
|
|
10715
|
-
],
|
|
10716
|
-
var
|
|
10717
|
-
for (var o = i > 1 ? void 0 : i ?
|
|
10715
|
+
], Fe.prototype, "size", 2);
|
|
10716
|
+
Fe = Ut([
|
|
10717
|
+
Ze("authui-button")
|
|
10718
|
+
], Fe);
|
|
10719
|
+
var ko = Object.defineProperty, jo = Object.getOwnPropertyDescriptor, pi = (t, e, n, i) => {
|
|
10720
|
+
for (var o = i > 1 ? void 0 : i ? jo(e, n) : e, a = t.length - 1, s; a >= 0; a--)
|
|
10718
10721
|
(s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
|
|
10719
|
-
return i && o &&
|
|
10722
|
+
return i && o && ko(e, n, o), o;
|
|
10720
10723
|
};
|
|
10721
|
-
let
|
|
10724
|
+
let pt = class extends Re {
|
|
10722
10725
|
constructor() {
|
|
10723
10726
|
super(...arguments), this.src = "", this.menuOpen = !1, this.onDocumentClick = (t) => {
|
|
10724
10727
|
t.composedPath().includes(this) || (this.menuOpen = !1);
|
|
@@ -10727,17 +10730,17 @@ let ut = class extends ke {
|
|
|
10727
10730
|
};
|
|
10728
10731
|
}
|
|
10729
10732
|
connectedCallback() {
|
|
10730
|
-
super.connectedCallback(), document.addEventListener("click", this.onDocumentClick, !0), document.addEventListener("keydown", this.onKeydown);
|
|
10733
|
+
super.connectedCallback(), document.addEventListener("click", this.onDocumentClick, !0), document.addEventListener("keydown", this.onKeydown), this.addEventListener("keydown", this.onKeydown);
|
|
10731
10734
|
}
|
|
10732
10735
|
disconnectedCallback() {
|
|
10733
|
-
super.disconnectedCallback(), document.removeEventListener("click", this.onDocumentClick, !0), document.removeEventListener("keydown", this.onKeydown);
|
|
10736
|
+
super.disconnectedCallback(), document.removeEventListener("click", this.onDocumentClick, !0), document.removeEventListener("keydown", this.onKeydown), this.removeEventListener("keydown", this.onKeydown);
|
|
10734
10737
|
}
|
|
10735
10738
|
render() {
|
|
10736
10739
|
const { status: t, user: e } = this.auth;
|
|
10737
10740
|
if (t === "loading")
|
|
10738
10741
|
return S`<span class="avatar"><span class="spinner"></span></span>`;
|
|
10739
10742
|
if (t !== "signed-in" || !e)
|
|
10740
|
-
return S`<button class="btn btn-primary btn-sm" @click=${() =>
|
|
10743
|
+
return S`<button class="btn btn-primary btn-sm" @click=${() => St("sign-in")}>
|
|
10741
10744
|
<slot>${this.t("signIn")}</slot>
|
|
10742
10745
|
</button>`;
|
|
10743
10746
|
const n = e.name || e.email || e.phone || this.t("guestAccount");
|
|
@@ -10762,7 +10765,7 @@ let ut = class extends ke {
|
|
|
10762
10765
|
class="menu-item"
|
|
10763
10766
|
role="menuitem"
|
|
10764
10767
|
@click=${() => {
|
|
10765
|
-
this.menuOpen = !1,
|
|
10768
|
+
this.menuOpen = !1, St("account");
|
|
10766
10769
|
}}
|
|
10767
10770
|
>
|
|
10768
10771
|
${X.settings} ${this.t("manageAccount")}
|
|
@@ -10780,9 +10783,9 @@ let ut = class extends ke {
|
|
|
10780
10783
|
`;
|
|
10781
10784
|
}
|
|
10782
10785
|
};
|
|
10783
|
-
|
|
10784
|
-
...
|
|
10785
|
-
|
|
10786
|
+
pt.styles = [
|
|
10787
|
+
...Re.styles,
|
|
10788
|
+
Ve`
|
|
10786
10789
|
:host {
|
|
10787
10790
|
display: inline-block;
|
|
10788
10791
|
position: relative;
|
|
@@ -10860,87 +10863,87 @@ ut.styles = [
|
|
|
10860
10863
|
}
|
|
10861
10864
|
`
|
|
10862
10865
|
];
|
|
10863
|
-
|
|
10866
|
+
pi([
|
|
10864
10867
|
ie({ type: String })
|
|
10865
|
-
],
|
|
10866
|
-
|
|
10868
|
+
], pt.prototype, "src", 2);
|
|
10869
|
+
pi([
|
|
10867
10870
|
T()
|
|
10868
|
-
],
|
|
10869
|
-
|
|
10870
|
-
|
|
10871
|
-
],
|
|
10872
|
-
function jo(t) {
|
|
10873
|
-
return q.configure(t), Eo;
|
|
10874
|
-
}
|
|
10871
|
+
], pt.prototype, "menuOpen", 2);
|
|
10872
|
+
pt = pi([
|
|
10873
|
+
Ze("authui-user-button")
|
|
10874
|
+
], pt);
|
|
10875
10875
|
function So(t) {
|
|
10876
|
-
|
|
10876
|
+
return q.configure(t), _o;
|
|
10877
10877
|
}
|
|
10878
|
-
function $o() {
|
|
10879
|
-
|
|
10878
|
+
function $o(t) {
|
|
10879
|
+
St(t);
|
|
10880
10880
|
}
|
|
10881
10881
|
function Po() {
|
|
10882
|
-
|
|
10882
|
+
Io();
|
|
10883
10883
|
}
|
|
10884
10884
|
function Co() {
|
|
10885
|
-
return q.
|
|
10885
|
+
return q.signOut();
|
|
10886
10886
|
}
|
|
10887
10887
|
function xo() {
|
|
10888
|
-
return q.
|
|
10888
|
+
return q.user;
|
|
10889
10889
|
}
|
|
10890
10890
|
function Uo() {
|
|
10891
|
-
return q.
|
|
10891
|
+
return q.getState();
|
|
10892
10892
|
}
|
|
10893
10893
|
function Mo() {
|
|
10894
|
-
return q.
|
|
10894
|
+
return q.getClient();
|
|
10895
10895
|
}
|
|
10896
10896
|
function Ro() {
|
|
10897
|
+
return q.getAccount();
|
|
10898
|
+
}
|
|
10899
|
+
function qo() {
|
|
10897
10900
|
return q.previewSignIn();
|
|
10898
10901
|
}
|
|
10899
|
-
function
|
|
10902
|
+
function Eo(t, e) {
|
|
10900
10903
|
return q.on(t, e);
|
|
10901
10904
|
}
|
|
10902
|
-
const
|
|
10903
|
-
init:
|
|
10904
|
-
open:
|
|
10905
|
-
close:
|
|
10906
|
-
signOut:
|
|
10907
|
-
getUser:
|
|
10908
|
-
getState:
|
|
10909
|
-
getClient:
|
|
10910
|
-
getAccount:
|
|
10911
|
-
on:
|
|
10912
|
-
previewSignIn:
|
|
10905
|
+
const _o = {
|
|
10906
|
+
init: So,
|
|
10907
|
+
open: $o,
|
|
10908
|
+
close: Po,
|
|
10909
|
+
signOut: Co,
|
|
10910
|
+
getUser: xo,
|
|
10911
|
+
getState: Uo,
|
|
10912
|
+
getClient: Mo,
|
|
10913
|
+
getAccount: Ro,
|
|
10914
|
+
on: Eo,
|
|
10915
|
+
previewSignIn: qo,
|
|
10913
10916
|
store: q
|
|
10914
10917
|
};
|
|
10915
10918
|
export {
|
|
10916
|
-
|
|
10917
|
-
|
|
10919
|
+
eo as AuthStore,
|
|
10920
|
+
_o as AuthUI,
|
|
10918
10921
|
te as AuthUIAccount,
|
|
10919
|
-
|
|
10922
|
+
Fe as AuthUIButton,
|
|
10920
10923
|
pe as AuthUIConfigElement,
|
|
10921
|
-
|
|
10922
|
-
|
|
10923
|
-
|
|
10924
|
+
Re as AuthUIElement,
|
|
10925
|
+
Xe as AuthUIModal,
|
|
10926
|
+
ut as AuthUIShow,
|
|
10924
10927
|
ve as AuthUISignIn,
|
|
10925
|
-
|
|
10928
|
+
pt as AuthUIUserButton,
|
|
10926
10929
|
ue as ErrorTypes,
|
|
10927
|
-
|
|
10928
|
-
|
|
10930
|
+
On as PreviewAccount,
|
|
10931
|
+
Ho as appwrite,
|
|
10929
10932
|
q as authStore,
|
|
10930
|
-
|
|
10931
|
-
|
|
10932
|
-
|
|
10933
|
+
Po as close,
|
|
10934
|
+
Io as closeModal,
|
|
10935
|
+
Zn as defaultStrings,
|
|
10933
10936
|
Ji as describeError,
|
|
10934
|
-
|
|
10935
|
-
|
|
10936
|
-
|
|
10937
|
-
|
|
10938
|
-
|
|
10939
|
-
|
|
10940
|
-
|
|
10941
|
-
|
|
10942
|
-
|
|
10943
|
-
|
|
10944
|
-
|
|
10945
|
-
|
|
10937
|
+
Ro as getAccount,
|
|
10938
|
+
Mo as getClient,
|
|
10939
|
+
Uo as getState,
|
|
10940
|
+
xo as getUser,
|
|
10941
|
+
So as init,
|
|
10942
|
+
Eo as on,
|
|
10943
|
+
$o as open,
|
|
10944
|
+
St as openModal,
|
|
10945
|
+
qo as previewSignIn,
|
|
10946
|
+
rt as providerLabel,
|
|
10947
|
+
Co as signOut,
|
|
10948
|
+
kt as toAuthUIError
|
|
10946
10949
|
};
|