igniteui-react-grids
Version:
Ignite UI React grid components.
1,234 lines • 2.65 MB
JavaScript
// dist/igniteui-angular-elements/browser/polyfills.js
var ae = globalThis;
function ee(t) {
return (ae.__Zone_symbol_prefix || "__zone_symbol__") + t;
}
function kt() {
let t = ae.performance;
function e(O) {
t && t.mark && t.mark(O);
}
function i(O, E6) {
t && t.measure && t.measure(O, E6);
}
e("Zone");
let n39 = (() => {
class O {
static {
this.__symbol__ = ee;
}
static assertZonePatched() {
if (ae.Promise !== N10.ZoneAwarePromise) throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)");
}
static get root() {
let r = O.current;
for (; r.parent; ) r = r.parent;
return r;
}
static get current() {
return v10.zone;
}
static get currentTask() {
return D10;
}
static __load_patch(r, o, y10 = false) {
if (N10.hasOwnProperty(r)) {
let w10 = ae[ee("forceDuplicateZoneCheck")] === true;
if (!y10 && w10) throw Error("Already loaded patch: " + r);
} else if (!ae["__Zone_disable_" + r]) {
let w10 = "Zone:" + r;
e(w10), N10[r] = o(ae, O, S10), i(w10, w10);
}
}
get parent() {
return this._parent;
}
get name() {
return this._name;
}
constructor(r, o) {
this._parent = r, this._name = o ? o.name || "unnamed" : "<root>", this._properties = o && o.properties || {}, this._zoneDelegate = new c(this, this._parent && this._parent._zoneDelegate, o);
}
get(r) {
let o = this.getZoneWith(r);
if (o) return o._properties[r];
}
getZoneWith(r) {
let o = this;
for (; o; ) {
if (o._properties.hasOwnProperty(r)) return o;
o = o._parent;
}
return null;
}
fork(r) {
if (!r) throw new Error("ZoneSpec required!");
return this._zoneDelegate.fork(this, r);
}
wrap(r, o) {
if (typeof r != "function") throw new Error("Expecting function got: " + r);
let y10 = this._zoneDelegate.intercept(this, r, o), w10 = this;
return function() {
return w10.runGuarded(y10, this, arguments, o);
};
}
run(r, o, y10, w10) {
v10 = { parent: v10, zone: this };
try {
return this._zoneDelegate.invoke(this, r, o, y10, w10);
} finally {
v10 = v10.parent;
}
}
runGuarded(r, o = null, y10, w10) {
v10 = { parent: v10, zone: this };
try {
try {
return this._zoneDelegate.invoke(this, r, o, y10, w10);
} catch (q) {
if (this._zoneDelegate.handleError(this, q)) throw q;
}
} finally {
v10 = v10.parent;
}
}
runTask(r, o, y10) {
if (r.zone != this) throw new Error("A task can only be run in the zone of creation! (Creation: " + (r.zone || J10).name + "; Execution: " + this.name + ")");
let w10 = r, { type: q, data: { isPeriodic: Z10 = false, isRefreshable: _e2 = false } = {} } = r;
if (r.state === X && (q === W10 || q === m10)) return;
let ce2 = r.state != H10;
ce2 && w10._transitionTo(H10, f10);
let le = D10;
D10 = w10, v10 = { parent: v10, zone: this };
try {
q == m10 && r.data && !Z10 && !_e2 && (r.cancelFn = void 0);
try {
return this._zoneDelegate.invokeTask(this, w10, o, y10);
} catch (ne2) {
if (this._zoneDelegate.handleError(this, ne2)) throw ne2;
}
} finally {
let ne2 = r.state;
if (ne2 !== X && ne2 !== Y10) if (q == W10 || Z10 || _e2 && ne2 === k4) ce2 && w10._transitionTo(f10, H10, k4);
else {
let h = w10._zoneDelegates;
this._updateTaskCount(w10, -1), ce2 && w10._transitionTo(X, H10, X), _e2 && (w10._zoneDelegates = h);
}
v10 = v10.parent, D10 = le;
}
}
scheduleTask(r) {
if (r.zone && r.zone !== this) {
let y10 = this;
for (; y10; ) {
if (y10 === r.zone) throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${r.zone.name}`);
y10 = y10.parent;
}
}
r._transitionTo(k4, X);
let o = [];
r._zoneDelegates = o, r._zone = this;
try {
r = this._zoneDelegate.scheduleTask(this, r);
} catch (y10) {
throw r._transitionTo(Y10, k4, X), this._zoneDelegate.handleError(this, y10), y10;
}
return r._zoneDelegates === o && this._updateTaskCount(r, 1), r.state == k4 && r._transitionTo(f10, k4), r;
}
scheduleMicroTask(r, o, y10, w10) {
return this.scheduleTask(new d10(F6, r, o, y10, w10, void 0));
}
scheduleMacroTask(r, o, y10, w10, q) {
return this.scheduleTask(new d10(m10, r, o, y10, w10, q));
}
scheduleEventTask(r, o, y10, w10, q) {
return this.scheduleTask(new d10(W10, r, o, y10, w10, q));
}
cancelTask(r) {
if (r.zone != this) throw new Error("A task can only be cancelled in the zone of creation! (Creation: " + (r.zone || J10).name + "; Execution: " + this.name + ")");
if (!(r.state !== f10 && r.state !== H10)) {
r._transitionTo(V10, f10, H10);
try {
this._zoneDelegate.cancelTask(this, r);
} catch (o) {
throw r._transitionTo(Y10, V10), this._zoneDelegate.handleError(this, o), o;
}
return this._updateTaskCount(r, -1), r._transitionTo(X, V10), r.runCount = -1, r;
}
}
_updateTaskCount(r, o) {
let y10 = r._zoneDelegates;
o == -1 && (r._zoneDelegates = null);
for (let w10 = 0; w10 < y10.length; w10++) y10[w10]._updateTaskCount(r.type, o);
}
}
return O;
})(), a = { name: "", onHasTask: (O, E6, r, o) => O.hasTask(r, o), onScheduleTask: (O, E6, r, o) => O.scheduleTask(r, o), onInvokeTask: (O, E6, r, o, y10, w10) => O.invokeTask(r, o, y10, w10), onCancelTask: (O, E6, r, o) => O.cancelTask(r, o) };
class c {
get zone() {
return this._zone;
}
constructor(E6, r, o) {
this._taskCounts = { microTask: 0, macroTask: 0, eventTask: 0 }, this._zone = E6, this._parentDelegate = r, this._forkZS = o && (o && o.onFork ? o : r._forkZS), this._forkDlgt = o && (o.onFork ? r : r._forkDlgt), this._forkCurrZone = o && (o.onFork ? this._zone : r._forkCurrZone), this._interceptZS = o && (o.onIntercept ? o : r._interceptZS), this._interceptDlgt = o && (o.onIntercept ? r : r._interceptDlgt), this._interceptCurrZone = o && (o.onIntercept ? this._zone : r._interceptCurrZone), this._invokeZS = o && (o.onInvoke ? o : r._invokeZS), this._invokeDlgt = o && (o.onInvoke ? r : r._invokeDlgt), this._invokeCurrZone = o && (o.onInvoke ? this._zone : r._invokeCurrZone), this._handleErrorZS = o && (o.onHandleError ? o : r._handleErrorZS), this._handleErrorDlgt = o && (o.onHandleError ? r : r._handleErrorDlgt), this._handleErrorCurrZone = o && (o.onHandleError ? this._zone : r._handleErrorCurrZone), this._scheduleTaskZS = o && (o.onScheduleTask ? o : r._scheduleTaskZS), this._scheduleTaskDlgt = o && (o.onScheduleTask ? r : r._scheduleTaskDlgt), this._scheduleTaskCurrZone = o && (o.onScheduleTask ? this._zone : r._scheduleTaskCurrZone), this._invokeTaskZS = o && (o.onInvokeTask ? o : r._invokeTaskZS), this._invokeTaskDlgt = o && (o.onInvokeTask ? r : r._invokeTaskDlgt), this._invokeTaskCurrZone = o && (o.onInvokeTask ? this._zone : r._invokeTaskCurrZone), this._cancelTaskZS = o && (o.onCancelTask ? o : r._cancelTaskZS), this._cancelTaskDlgt = o && (o.onCancelTask ? r : r._cancelTaskDlgt), this._cancelTaskCurrZone = o && (o.onCancelTask ? this._zone : r._cancelTaskCurrZone), this._hasTaskZS = null, this._hasTaskDlgt = null, this._hasTaskDlgtOwner = null, this._hasTaskCurrZone = null;
let y10 = o && o.onHasTask, w10 = r && r._hasTaskZS;
(y10 || w10) && (this._hasTaskZS = y10 ? o : a, this._hasTaskDlgt = r, this._hasTaskDlgtOwner = this, this._hasTaskCurrZone = this._zone, o.onScheduleTask || (this._scheduleTaskZS = a, this._scheduleTaskDlgt = r, this._scheduleTaskCurrZone = this._zone), o.onInvokeTask || (this._invokeTaskZS = a, this._invokeTaskDlgt = r, this._invokeTaskCurrZone = this._zone), o.onCancelTask || (this._cancelTaskZS = a, this._cancelTaskDlgt = r, this._cancelTaskCurrZone = this._zone));
}
fork(E6, r) {
return this._forkZS ? this._forkZS.onFork(this._forkDlgt, this.zone, E6, r) : new n39(E6, r);
}
intercept(E6, r, o) {
return this._interceptZS ? this._interceptZS.onIntercept(this._interceptDlgt, this._interceptCurrZone, E6, r, o) : r;
}
invoke(E6, r, o, y10, w10) {
return this._invokeZS ? this._invokeZS.onInvoke(this._invokeDlgt, this._invokeCurrZone, E6, r, o, y10, w10) : r.apply(o, y10);
}
handleError(E6, r) {
return this._handleErrorZS ? this._handleErrorZS.onHandleError(this._handleErrorDlgt, this._handleErrorCurrZone, E6, r) : true;
}
scheduleTask(E6, r) {
let o = r;
if (this._scheduleTaskZS) this._hasTaskZS && o._zoneDelegates.push(this._hasTaskDlgtOwner), o = this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt, this._scheduleTaskCurrZone, E6, r), o || (o = r);
else if (r.scheduleFn) r.scheduleFn(r);
else if (r.type == F6) z8(r);
else throw new Error("Task is missing scheduleFn.");
return o;
}
invokeTask(E6, r, o, y10) {
return this._invokeTaskZS ? this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt, this._invokeTaskCurrZone, E6, r, o, y10) : r.callback.apply(o, y10);
}
cancelTask(E6, r) {
let o;
if (this._cancelTaskZS) o = this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt, this._cancelTaskCurrZone, E6, r);
else {
if (!r.cancelFn) throw Error("Task is not cancelable");
o = r.cancelFn(r);
}
return o;
}
hasTask(E6, r) {
try {
this._hasTaskZS && this._hasTaskZS.onHasTask(this._hasTaskDlgt, this._hasTaskCurrZone, E6, r);
} catch (o) {
this.handleError(E6, o);
}
}
_updateTaskCount(E6, r) {
let o = this._taskCounts, y10 = o[E6], w10 = o[E6] = y10 + r;
if (w10 < 0) throw new Error("More tasks executed then were scheduled.");
if (y10 == 0 || w10 == 0) {
let q = { microTask: o.microTask > 0, macroTask: o.macroTask > 0, eventTask: o.eventTask > 0, change: E6 };
this.hasTask(this._zone, q);
}
}
}
class d10 {
constructor(E6, r, o, y10, w10, q) {
if (this._zone = null, this.runCount = 0, this._zoneDelegates = null, this._state = "notScheduled", this.type = E6, this.source = r, this.data = y10, this.scheduleFn = w10, this.cancelFn = q, !o) throw new Error("callback is not defined");
this.callback = o;
let Z10 = this;
E6 === W10 && y10 && y10.useG ? this.invoke = d10.invokeTask : this.invoke = function() {
return d10.invokeTask.call(ae, Z10, this, arguments);
};
}
static invokeTask(E6, r, o) {
E6 || (E6 = this), Q10++;
try {
return E6.runCount++, E6.zone.runTask(E6, r, o);
} finally {
Q10 == 1 && K10(), Q10--;
}
}
get zone() {
return this._zone;
}
get state() {
return this._state;
}
cancelScheduleRequest() {
this._transitionTo(X, k4);
}
_transitionTo(E6, r, o) {
if (this._state === r || this._state === o) this._state = E6, E6 == X && (this._zoneDelegates = null);
else throw new Error(`${this.type} '${this.source}': can not transition to '${E6}', expecting state '${r}'${o ? " or '" + o + "'" : ""}, was '${this._state}'.`);
}
toString() {
return this.data && typeof this.data.handleId < "u" ? this.data.handleId.toString() : Object.prototype.toString.call(this);
}
toJSON() {
return { type: this.type, state: this.state, source: this.source, zone: this.zone.name, runCount: this.runCount };
}
}
let T = ee("setTimeout"), g10 = ee("Promise"), C = ee("then"), _10 = [], R6 = false, A6;
function x(O) {
if (A6 || ae[g10] && (A6 = ae[g10].resolve(0)), A6) {
let E6 = A6[C];
E6 || (E6 = A6.then), E6.call(A6, O);
} else ae[T](O, 0);
}
function z8(O) {
Q10 === 0 && _10.length === 0 && x(K10), O && _10.push(O);
}
function K10() {
if (!R6) {
for (R6 = true; _10.length; ) {
let O = _10;
_10 = [];
for (let E6 = 0; E6 < O.length; E6++) {
let r = O[E6];
try {
r.zone.runTask(r, null, null);
} catch (o) {
S10.onUnhandledError(o);
}
}
}
S10.microtaskDrainDone(), R6 = false;
}
}
let J10 = { name: "NO ZONE" }, X = "notScheduled", k4 = "scheduling", f10 = "scheduled", H10 = "running", V10 = "canceling", Y10 = "unknown", F6 = "microTask", m10 = "macroTask", W10 = "eventTask", N10 = {}, S10 = { symbol: ee, currentZoneFrame: () => v10, onUnhandledError: U10, microtaskDrainDone: U10, scheduleMicroTask: z8, showUncaughtError: () => !n39[ee("ignoreConsoleErrorUncaughtError")], patchEventTarget: () => [], patchOnProperties: U10, patchMethod: () => U10, bindArguments: () => [], patchThen: () => U10, patchMacroTask: () => U10, patchEventPrototype: () => U10, isIEOrEdge: () => false, getGlobalObjects: () => {
}, ObjectDefineProperty: () => U10, ObjectGetOwnPropertyDescriptor: () => {
}, ObjectCreate: () => {
}, ArraySlice: () => [], patchClass: () => U10, wrapWithCurrentZone: () => U10, filterProperties: () => [], attachOriginToPatched: () => U10, _redefineProperty: () => U10, patchCallbacks: () => U10, nativeScheduleMicroTask: x }, v10 = { parent: null, zone: new n39(null, null) }, D10 = null, Q10 = 0;
function U10() {
}
return i("Zone", "Zone"), n39;
}
function bt() {
let t = globalThis, e = t[ee("forceDuplicateZoneCheck")] === true;
if (t.Zone && (e || typeof t.Zone.__symbol__ != "function")) throw new Error("Zone already loaded.");
return t.Zone ??= kt(), t.Zone;
}
var ve = Object.getOwnPropertyDescriptor;
var He = Object.defineProperty;
var je = Object.getPrototypeOf;
var vt = Object.create;
var wt = Array.prototype.slice;
var xe = "addEventListener";
var Ve = "removeEventListener";
var Me = ee(xe);
var Le = ee(Ve);
var ue = "true";
var he = "false";
var we = ee("");
function Fe(t, e) {
return Zone.current.wrap(t, e);
}
function Be(t, e, i, n39, a) {
return Zone.current.scheduleMacroTask(t, e, i, n39, a);
}
var j = ee;
var De = typeof window < "u";
var ye = De ? window : void 0;
var $ = De && ye || globalThis;
var Rt = "removeAttribute";
function Ge(t, e) {
for (let i = t.length - 1; i >= 0; i--) typeof t[i] == "function" && (t[i] = Fe(t[i], e + "_" + i));
return t;
}
function St(t, e) {
let i = t.constructor.name;
for (let n39 = 0; n39 < e.length; n39++) {
let a = e[n39], c = t[a];
if (c) {
let d10 = ve(t, a);
if (!rt(d10)) continue;
t[a] = ((T) => {
let g10 = function() {
return T.apply(this, Ge(arguments, i + "." + a));
};
return de(g10, T), g10;
})(c);
}
}
}
function rt(t) {
return t ? t.writable === false ? false : !(typeof t.get == "function" && typeof t.set > "u") : true;
}
var ot = typeof WorkerGlobalScope < "u" && self instanceof WorkerGlobalScope;
var Ne = !("nw" in $) && typeof $.process < "u" && $.process.toString() === "[object process]";
var ze = !Ne && !ot && !!(De && ye.HTMLElement);
var st = typeof $.process < "u" && $.process.toString() === "[object process]" && !ot && !!(De && ye.HTMLElement);
var Ce = {};
var Pt = j("enable_beforeunload");
var Ke = function(t) {
if (t = t || $.event, !t) return;
let e = Ce[t.type];
e || (e = Ce[t.type] = j("ON_PROPERTY" + t.type));
let i = this || t.target || $, n39 = i[e], a;
if (ze && i === ye && t.type === "error") {
let c = t;
a = n39 && n39.call(this, c.message, c.filename, c.lineno, c.colno, c.error), a === true && t.preventDefault();
} else a = n39 && n39.apply(this, arguments), t.type === "beforeunload" && $[Pt] && typeof a == "string" ? t.returnValue = a : a != null && !a && t.preventDefault();
return a;
};
function Je(t, e, i) {
let n39 = ve(t, e);
if (!n39 && i && ve(i, e) && (n39 = { enumerable: true, configurable: true }), !n39 || !n39.configurable) return;
let a = j("on" + e + "patched");
if (t.hasOwnProperty(a) && t[a]) return;
delete n39.writable, delete n39.value;
let c = n39.get, d10 = n39.set, T = e.slice(2), g10 = Ce[T];
g10 || (g10 = Ce[T] = j("ON_PROPERTY" + T)), n39.set = function(C) {
let _10 = this;
if (!_10 && t === $ && (_10 = $), !_10) return;
typeof _10[g10] == "function" && _10.removeEventListener(T, Ke), d10 && d10.call(_10, null), _10[g10] = C, typeof C == "function" && _10.addEventListener(T, Ke, false);
}, n39.get = function() {
let C = this;
if (!C && t === $ && (C = $), !C) return null;
let _10 = C[g10];
if (_10) return _10;
if (c) {
let R6 = c.call(this);
if (R6) return n39.set.call(this, R6), typeof C[Rt] == "function" && C.removeAttribute(e), R6;
}
return null;
}, He(t, e, n39), t[a] = true;
}
function it(t, e, i) {
if (e) for (let n39 = 0; n39 < e.length; n39++) Je(t, "on" + e[n39], i);
else {
let n39 = [];
for (let a in t) a.slice(0, 2) == "on" && n39.push(a);
for (let a = 0; a < n39.length; a++) Je(t, n39[a], i);
}
}
var oe = j("originalInstance");
function be(t) {
let e = $[t];
if (!e) return;
$[j(t)] = e, $[t] = function() {
let a = Ge(arguments, t);
switch (a.length) {
case 0:
this[oe] = new e();
break;
case 1:
this[oe] = new e(a[0]);
break;
case 2:
this[oe] = new e(a[0], a[1]);
break;
case 3:
this[oe] = new e(a[0], a[1], a[2]);
break;
case 4:
this[oe] = new e(a[0], a[1], a[2], a[3]);
break;
default:
throw new Error("Arg list too long.");
}
}, de($[t], e);
let i = new e(function() {
}), n39;
for (n39 in i) t === "XMLHttpRequest" && n39 === "responseBlob" || function(a) {
typeof i[a] == "function" ? $[t].prototype[a] = function() {
return this[oe][a].apply(this[oe], arguments);
} : He($[t].prototype, a, { set: function(c) {
typeof c == "function" ? (this[oe][a] = Fe(c, t + "." + a), de(this[oe][a], c)) : this[oe][a] = c;
}, get: function() {
return this[oe][a];
} });
}(n39);
for (n39 in e) n39 !== "prototype" && e.hasOwnProperty(n39) && ($[t][n39] = e[n39]);
}
function fe(t, e, i) {
let n39 = t;
for (; n39 && !n39.hasOwnProperty(e); ) n39 = je(n39);
!n39 && t[e] && (n39 = t);
let a = j(e), c = null;
if (n39 && (!(c = n39[a]) || !n39.hasOwnProperty(a))) {
c = n39[a] = n39[e];
let d10 = n39 && ve(n39, e);
if (rt(d10)) {
let T = i(c, a, e);
n39[e] = function() {
return T(this, arguments);
}, de(n39[e], c);
}
}
return c;
}
function Ct(t, e, i) {
let n39 = null;
function a(c) {
let d10 = c.data;
return d10.args[d10.cbIdx] = function() {
c.invoke.apply(this, arguments);
}, n39.apply(d10.target, d10.args), c;
}
n39 = fe(t, e, (c) => function(d10, T) {
let g10 = i(d10, T);
return g10.cbIdx >= 0 && typeof T[g10.cbIdx] == "function" ? Be(g10.name, T[g10.cbIdx], g10, a) : c.apply(d10, T);
});
}
function de(t, e) {
t[j("OriginalDelegate")] = e;
}
var Qe = false;
var Ae = false;
function Dt() {
try {
let t = ye.navigator.userAgent;
if (t.indexOf("MSIE ") !== -1 || t.indexOf("Trident/") !== -1) return true;
} catch {
}
return false;
}
function Nt() {
if (Qe) return Ae;
Qe = true;
try {
let t = ye.navigator.userAgent;
(t.indexOf("MSIE ") !== -1 || t.indexOf("Trident/") !== -1 || t.indexOf("Edge/") !== -1) && (Ae = true);
} catch {
}
return Ae;
}
function et(t) {
return typeof t == "function";
}
function tt(t) {
return typeof t == "number";
}
var ge = false;
if (typeof window < "u") try {
let t = Object.defineProperty({}, "passive", { get: function() {
ge = true;
} });
window.addEventListener("test", t, t), window.removeEventListener("test", t, t);
} catch {
ge = false;
}
var Ot = { useG: true };
var te = {};
var at = {};
var ct = new RegExp("^" + we + "(\\w+)(true|false)$");
var lt = j("propagationStopped");
function ut(t, e) {
let i = (e ? e(t) : t) + he, n39 = (e ? e(t) : t) + ue, a = we + i, c = we + n39;
te[t] = {}, te[t][he] = a, te[t][ue] = c;
}
function It(t, e, i, n39) {
let a = n39 && n39.add || xe, c = n39 && n39.rm || Ve, d10 = n39 && n39.listeners || "eventListeners", T = n39 && n39.rmAll || "removeAllListeners", g10 = j(a), C = "." + a + ":", _10 = "prependListener", R6 = "." + _10 + ":", A6 = function(k4, f10, H10) {
if (k4.isRemoved) return;
let V10 = k4.callback;
typeof V10 == "object" && V10.handleEvent && (k4.callback = (m10) => V10.handleEvent(m10), k4.originalDelegate = V10);
let Y10;
try {
k4.invoke(k4, f10, [H10]);
} catch (m10) {
Y10 = m10;
}
let F6 = k4.options;
if (F6 && typeof F6 == "object" && F6.once) {
let m10 = k4.originalDelegate ? k4.originalDelegate : k4.callback;
f10[c].call(f10, H10.type, m10, F6);
}
return Y10;
};
function x(k4, f10, H10) {
if (f10 = f10 || t.event, !f10) return;
let V10 = k4 || f10.target || t, Y10 = V10[te[f10.type][H10 ? ue : he]];
if (Y10) {
let F6 = [];
if (Y10.length === 1) {
let m10 = A6(Y10[0], V10, f10);
m10 && F6.push(m10);
} else {
let m10 = Y10.slice();
for (let W10 = 0; W10 < m10.length && !(f10 && f10[lt] === true); W10++) {
let N10 = A6(m10[W10], V10, f10);
N10 && F6.push(N10);
}
}
if (F6.length === 1) throw F6[0];
for (let m10 = 0; m10 < F6.length; m10++) {
let W10 = F6[m10];
e.nativeScheduleMicroTask(() => {
throw W10;
});
}
}
}
let z8 = function(k4) {
return x(this, k4, false);
}, K10 = function(k4) {
return x(this, k4, true);
};
function J10(k4, f10) {
if (!k4) return false;
let H10 = true;
f10 && f10.useG !== void 0 && (H10 = f10.useG);
let V10 = f10 && f10.vh, Y10 = true;
f10 && f10.chkDup !== void 0 && (Y10 = f10.chkDup);
let F6 = false;
f10 && f10.rt !== void 0 && (F6 = f10.rt);
let m10 = k4;
for (; m10 && !m10.hasOwnProperty(a); ) m10 = je(m10);
if (!m10 && k4[a] && (m10 = k4), !m10 || m10[g10]) return false;
let W10 = f10 && f10.eventNameToString, N10 = {}, S10 = m10[g10] = m10[a], v10 = m10[j(c)] = m10[c], D10 = m10[j(d10)] = m10[d10], Q10 = m10[j(T)] = m10[T], U10;
f10 && f10.prepend && (U10 = m10[j(f10.prepend)] = m10[f10.prepend]);
function O(s, u10) {
return !ge && typeof s == "object" && s ? !!s.capture : !ge || !u10 ? s : typeof s == "boolean" ? { capture: s, passive: true } : s ? typeof s == "object" && s.passive !== false ? { ...s, passive: true } : s : { passive: true };
}
let E6 = function(s) {
if (!N10.isExisting) return S10.call(N10.target, N10.eventName, N10.capture ? K10 : z8, N10.options);
}, r = function(s) {
if (!s.isRemoved) {
let u10 = te[s.eventName], b10;
u10 && (b10 = u10[s.capture ? ue : he]);
let P6 = b10 && s.target[b10];
if (P6) {
for (let p = 0; p < P6.length; p++) if (P6[p] === s) {
P6.splice(p, 1), s.isRemoved = true, s.removeAbortListener && (s.removeAbortListener(), s.removeAbortListener = null), P6.length === 0 && (s.allRemoved = true, s.target[b10] = null);
break;
}
}
}
if (s.allRemoved) return v10.call(s.target, s.eventName, s.capture ? K10 : z8, s.options);
}, o = function(s) {
return S10.call(N10.target, N10.eventName, s.invoke, N10.options);
}, y10 = function(s) {
return U10.call(N10.target, N10.eventName, s.invoke, N10.options);
}, w10 = function(s) {
return v10.call(s.target, s.eventName, s.invoke, s.options);
}, q = H10 ? E6 : o, Z10 = H10 ? r : w10, _e2 = function(s, u10) {
let b10 = typeof u10;
return b10 === "function" && s.callback === u10 || b10 === "object" && s.originalDelegate === u10;
}, ce2 = f10 && f10.diff ? f10.diff : _e2, le = Zone[j("UNPATCHED_EVENTS")], ne2 = t[j("PASSIVE_EVENTS")];
function h(s) {
if (typeof s == "object" && s !== null) {
let u10 = { ...s };
return s.signal && (u10.signal = s.signal), u10;
}
return s;
}
let l = function(s, u10, b10, P6, p = false, I10 = false) {
return function() {
let M10 = this || t, L10 = arguments[0];
f10 && f10.transferEventName && (L10 = f10.transferEventName(L10));
let B = arguments[1];
if (!B) return s.apply(this, arguments);
if (Ne && L10 === "uncaughtException") return s.apply(this, arguments);
let G10 = false;
if (typeof B != "function") {
if (!B.handleEvent) return s.apply(this, arguments);
G10 = true;
}
if (V10 && !V10(s, B, M10, arguments)) return;
let Ee = ge && !!ne2 && ne2.indexOf(L10) !== -1, se2 = h(O(arguments[2], Ee)), Te2 = se2?.signal;
if (Te2?.aborted) return;
if (le) {
for (let ie2 = 0; ie2 < le.length; ie2++) if (L10 === le[ie2]) return Ee ? s.call(M10, L10, B, se2) : s.apply(this, arguments);
}
let Oe2 = se2 ? typeof se2 == "boolean" ? true : se2.capture : false, Ue = se2 && typeof se2 == "object" ? se2.once : false, yt2 = Zone.current, Ie2 = te[L10];
Ie2 || (ut(L10, W10), Ie2 = te[L10]);
let qe2 = Ie2[Oe2 ? ue : he], me2 = M10[qe2], Xe2 = false;
if (me2) {
if (Xe2 = true, Y10) {
for (let ie2 = 0; ie2 < me2.length; ie2++) if (ce2(me2[ie2], B)) return;
}
} else me2 = M10[qe2] = [];
let Se2, Ye2 = M10.constructor.name, $e = at[Ye2];
$e && (Se2 = $e[L10]), Se2 || (Se2 = Ye2 + u10 + (W10 ? W10(L10) : L10)), N10.options = se2, Ue && (N10.options.once = false), N10.target = M10, N10.capture = Oe2, N10.eventName = L10, N10.isExisting = Xe2;
let ke = H10 ? Ot : void 0;
ke && (ke.taskData = N10), Te2 && (N10.options.signal = void 0);
let re2 = yt2.scheduleEventTask(Se2, B, ke, b10, P6);
if (Te2) {
N10.options.signal = Te2;
let ie2 = () => re2.zone.cancelTask(re2);
s.call(Te2, "abort", ie2, { once: true }), re2.removeAbortListener = () => Te2.removeEventListener("abort", ie2);
}
if (N10.target = null, ke && (ke.taskData = null), Ue && (N10.options.once = true), !ge && typeof re2.options == "boolean" || (re2.options = se2), re2.target = M10, re2.capture = Oe2, re2.eventName = L10, G10 && (re2.originalDelegate = B), I10 ? me2.unshift(re2) : me2.push(re2), p) return M10;
};
};
return m10[a] = l(S10, C, q, Z10, F6), U10 && (m10[_10] = l(U10, R6, y10, Z10, F6, true)), m10[c] = function() {
let s = this || t, u10 = arguments[0];
f10 && f10.transferEventName && (u10 = f10.transferEventName(u10));
let b10 = arguments[2], P6 = b10 ? typeof b10 == "boolean" ? true : b10.capture : false, p = arguments[1];
if (!p) return v10.apply(this, arguments);
if (V10 && !V10(v10, p, s, arguments)) return;
let I10 = te[u10], M10;
I10 && (M10 = I10[P6 ? ue : he]);
let L10 = M10 && s[M10];
if (L10) for (let B = 0; B < L10.length; B++) {
let G10 = L10[B];
if (ce2(G10, p)) {
if (L10.splice(B, 1), G10.isRemoved = true, L10.length === 0 && (G10.allRemoved = true, s[M10] = null, !P6 && typeof u10 == "string")) {
let Ee = we + "ON_PROPERTY" + u10;
s[Ee] = null;
}
return G10.zone.cancelTask(G10), F6 ? s : void 0;
}
}
return v10.apply(this, arguments);
}, m10[d10] = function() {
let s = this || t, u10 = arguments[0];
f10 && f10.transferEventName && (u10 = f10.transferEventName(u10));
let b10 = [], P6 = ht(s, W10 ? W10(u10) : u10);
for (let p = 0; p < P6.length; p++) {
let I10 = P6[p], M10 = I10.originalDelegate ? I10.originalDelegate : I10.callback;
b10.push(M10);
}
return b10;
}, m10[T] = function() {
let s = this || t, u10 = arguments[0];
if (u10) {
f10 && f10.transferEventName && (u10 = f10.transferEventName(u10));
let b10 = te[u10];
if (b10) {
let P6 = b10[he], p = b10[ue], I10 = s[P6], M10 = s[p];
if (I10) {
let L10 = I10.slice();
for (let B = 0; B < L10.length; B++) {
let G10 = L10[B], Ee = G10.originalDelegate ? G10.originalDelegate : G10.callback;
this[c].call(this, u10, Ee, G10.options);
}
}
if (M10) {
let L10 = M10.slice();
for (let B = 0; B < L10.length; B++) {
let G10 = L10[B], Ee = G10.originalDelegate ? G10.originalDelegate : G10.callback;
this[c].call(this, u10, Ee, G10.options);
}
}
}
} else {
let b10 = Object.keys(s);
for (let P6 = 0; P6 < b10.length; P6++) {
let p = b10[P6], I10 = ct.exec(p), M10 = I10 && I10[1];
M10 && M10 !== "removeListener" && this[T].call(this, M10);
}
this[T].call(this, "removeListener");
}
if (F6) return this;
}, de(m10[a], S10), de(m10[c], v10), Q10 && de(m10[T], Q10), D10 && de(m10[d10], D10), true;
}
let X = [];
for (let k4 = 0; k4 < i.length; k4++) X[k4] = J10(i[k4], n39);
return X;
}
function ht(t, e) {
if (!e) {
let c = [];
for (let d10 in t) {
let T = ct.exec(d10), g10 = T && T[1];
if (g10 && (!e || g10 === e)) {
let C = t[d10];
if (C) for (let _10 = 0; _10 < C.length; _10++) c.push(C[_10]);
}
}
return c;
}
let i = te[e];
i || (ut(e), i = te[e]);
let n39 = t[i[he]], a = t[i[ue]];
return n39 ? a ? n39.concat(a) : n39.slice() : a ? a.slice() : [];
}
function Mt(t, e) {
let i = t.Event;
i && i.prototype && e.patchMethod(i.prototype, "stopImmediatePropagation", (n39) => function(a, c) {
a[lt] = true, n39 && n39.apply(a, c);
});
}
function Lt(t, e) {
e.patchMethod(t, "queueMicrotask", (i) => function(n39, a) {
Zone.current.scheduleMicroTask("queueMicrotask", a[0]);
});
}
var Pe = j("zoneTask");
function pe(t, e, i, n39) {
let a = null, c = null;
e += n39, i += n39;
let d10 = {};
function T(C) {
let _10 = C.data;
_10.args[0] = function() {
return C.invoke.apply(this, arguments);
};
let R6 = a.apply(t, _10.args);
return tt(R6) ? _10.handleId = R6 : (_10.handle = R6, _10.isRefreshable = et(R6.refresh)), C;
}
function g10(C) {
let { handle: _10, handleId: R6 } = C.data;
return c.call(t, _10 ?? R6);
}
a = fe(t, e, (C) => function(_10, R6) {
if (et(R6[0])) {
let A6 = { isRefreshable: false, isPeriodic: n39 === "Interval", delay: n39 === "Timeout" || n39 === "Interval" ? R6[1] || 0 : void 0, args: R6 }, x = R6[0];
R6[0] = function() {
try {
return x.apply(this, arguments);
} finally {
let { handle: H10, handleId: V10, isPeriodic: Y10, isRefreshable: F6 } = A6;
!Y10 && !F6 && (V10 ? delete d10[V10] : H10 && (H10[Pe] = null));
}
};
let z8 = Be(e, R6[0], A6, T, g10);
if (!z8) return z8;
let { handleId: K10, handle: J10, isRefreshable: X, isPeriodic: k4 } = z8.data;
if (K10) d10[K10] = z8;
else if (J10 && (J10[Pe] = z8, X && !k4)) {
let f10 = J10.refresh;
J10.refresh = function() {
let { zone: H10, state: V10 } = z8;
return V10 === "notScheduled" ? (z8._state = "scheduled", H10._updateTaskCount(z8, 1)) : V10 === "running" && (z8._state = "scheduling"), f10.call(this);
};
}
return J10 ?? K10 ?? z8;
} else return C.apply(t, R6);
}), c = fe(t, i, (C) => function(_10, R6) {
let A6 = R6[0], x;
tt(A6) ? (x = d10[A6], delete d10[A6]) : (x = A6?.[Pe], x ? A6[Pe] = null : x = A6), x?.type ? x.cancelFn && x.zone.cancelTask(x) : C.apply(t, R6);
});
}
function At(t, e) {
let { isBrowser: i, isMix: n39 } = e.getGlobalObjects();
if (!i && !n39 || !t.customElements || !("customElements" in t)) return;
let a = ["connectedCallback", "disconnectedCallback", "adoptedCallback", "attributeChangedCallback", "formAssociatedCallback", "formDisabledCallback", "formResetCallback", "formStateRestoreCallback"];
e.patchCallbacks(e, t.customElements, "customElements", "define", a);
}
function Zt(t, e) {
if (Zone[e.symbol("patchEventTarget")]) return;
let { eventNames: i, zoneSymbolEventNames: n39, TRUE_STR: a, FALSE_STR: c, ZONE_SYMBOL_PREFIX: d10 } = e.getGlobalObjects();
for (let g10 = 0; g10 < i.length; g10++) {
let C = i[g10], _10 = C + c, R6 = C + a, A6 = d10 + _10, x = d10 + R6;
n39[C] = {}, n39[C][c] = A6, n39[C][a] = x;
}
let T = t.EventTarget;
if (!(!T || !T.prototype)) return e.patchEventTarget(t, e, [T && T.prototype]), true;
}
function Ht(t, e) {
e.patchEventPrototype(t, e);
}
function ft(t, e, i) {
if (!i || i.length === 0) return e;
let n39 = i.filter((c) => c.target === t);
if (!n39 || n39.length === 0) return e;
let a = n39[0].ignoreProperties;
return e.filter((c) => a.indexOf(c) === -1);
}
function nt(t, e, i, n39) {
if (!t) return;
let a = ft(t, e, i);
it(t, a, n39);
}
function Ze(t) {
return Object.getOwnPropertyNames(t).filter((e) => e.startsWith("on") && e.length > 2).map((e) => e.substring(2));
}
function jt(t, e) {
if (Ne && !st || Zone[t.symbol("patchEvents")]) return;
let i = e.__Zone_ignore_on_properties, n39 = [];
if (ze) {
let a = window;
n39 = n39.concat(["Document", "SVGElement", "Element", "HTMLElement", "HTMLBodyElement", "HTMLMediaElement", "HTMLFrameSetElement", "HTMLFrameElement", "HTMLIFrameElement", "HTMLMarqueeElement", "Worker"]);
let c = Dt() ? [{ target: a, ignoreProperties: ["error"] }] : [];
nt(a, Ze(a), i && i.concat(c), je(a));
}
n39 = n39.concat(["XMLHttpRequest", "XMLHttpRequestEventTarget", "IDBIndex", "IDBRequest", "IDBOpenDBRequest", "IDBDatabase", "IDBTransaction", "IDBCursor", "WebSocket"]);
for (let a = 0; a < n39.length; a++) {
let c = e[n39[a]];
c && c.prototype && nt(c.prototype, Ze(c.prototype), i);
}
}
function xt(t) {
t.__load_patch("legacy", (e) => {
let i = e[t.__symbol__("legacyPatch")];
i && i();
}), t.__load_patch("timers", (e) => {
let i = "set", n39 = "clear";
pe(e, i, n39, "Timeout"), pe(e, i, n39, "Interval"), pe(e, i, n39, "Immediate");
}), t.__load_patch("requestAnimationFrame", (e) => {
pe(e, "request", "cancel", "AnimationFrame"), pe(e, "mozRequest", "mozCancel", "AnimationFrame"), pe(e, "webkitRequest", "webkitCancel", "AnimationFrame");
}), t.__load_patch("blocking", (e, i) => {
let n39 = ["alert", "prompt", "confirm"];
for (let a = 0; a < n39.length; a++) {
let c = n39[a];
fe(e, c, (d10, T, g10) => function(C, _10) {
return i.current.run(d10, e, _10, g10);
});
}
}), t.__load_patch("EventTarget", (e, i, n39) => {
Ht(e, n39), Zt(e, n39);
let a = e.XMLHttpRequestEventTarget;
a && a.prototype && n39.patchEventTarget(e, n39, [a.prototype]);
}), t.__load_patch("MutationObserver", (e, i, n39) => {
be("MutationObserver"), be("WebKitMutationObserver");
}), t.__load_patch("IntersectionObserver", (e, i, n39) => {
be("IntersectionObserver");
}), t.__load_patch("FileReader", (e, i, n39) => {
be("FileReader");
}), t.__load_patch("on_property", (e, i, n39) => {
jt(n39, e);
}), t.__load_patch("customElements", (e, i, n39) => {
At(e, n39);
}), t.__load_patch("XHR", (e, i) => {
C(e);
let n39 = j("xhrTask"), a = j("xhrSync"), c = j("xhrListener"), d10 = j("xhrScheduled"), T = j("xhrURL"), g10 = j("xhrErrorBeforeScheduled");
function C(_10) {
let R6 = _10.XMLHttpRequest;
if (!R6) return;
let A6 = R6.prototype;
function x(S10) {
return S10[n39];
}
let z8 = A6[Me], K10 = A6[Le];
if (!z8) {
let S10 = _10.XMLHttpRequestEventTarget;
if (S10) {
let v10 = S10.prototype;
z8 = v10[Me], K10 = v10[Le];
}
}
let J10 = "readystatechange", X = "scheduled";
function k4(S10) {
let v10 = S10.data, D10 = v10.target;
D10[d10] = false, D10[g10] = false;
let Q10 = D10[c];
z8 || (z8 = D10[Me], K10 = D10[Le]), Q10 && K10.call(D10, J10, Q10);
let U10 = D10[c] = () => {
if (D10.readyState === D10.DONE) if (!v10.aborted && D10[d10] && S10.state === X) {
let E6 = D10[i.__symbol__("loadfalse")];
if (D10.status !== 0 && E6 && E6.length > 0) {
let r = S10.invoke;
S10.invoke = function() {
let o = D10[i.__symbol__("loadfalse")];
for (let y10 = 0; y10 < o.length; y10++) o[y10] === S10 && o.splice(y10, 1);
!v10.aborted && S10.state === X && r.call(S10);
}, E6.push(S10);
} else S10.invoke();
} else !v10.aborted && D10[d10] === false && (D10[g10] = true);
};
return z8.call(D10, J10, U10), D10[n39] || (D10[n39] = S10), W10.apply(D10, v10.args), D10[d10] = true, S10;
}
function f10() {
}
function H10(S10) {
let v10 = S10.data;
return v10.aborted = true, N10.apply(v10.target, v10.args);
}
let V10 = fe(A6, "open", () => function(S10, v10) {
return S10[a] = v10[2] == false, S10[T] = v10[1], V10.apply(S10, v10);
}), Y10 = "XMLHttpRequest.send", F6 = j("fetchTaskAborting"), m10 = j("fetchTaskScheduling"), W10 = fe(A6, "send", () => function(S10, v10) {
if (i.current[m10] === true || S10[a]) return W10.apply(S10, v10);
{
let D10 = { target: S10, url: S10[T], isPeriodic: false, args: v10, aborted: false }, Q10 = Be(Y10, f10, D10, k4, H10);
S10 && S10[g10] === true && !D10.aborted && Q10.state === X && Q10.invoke();
}
}), N10 = fe(A6, "abort", () => function(S10, v10) {
let D10 = x(S10);
if (D10 && typeof D10.type == "string") {
if (D10.cancelFn == null || D10.data && D10.data.aborted) return;
D10.zone.cancelTask(D10);
} else if (i.current[F6] === true) return N10.apply(S10, v10);
});
}
}), t.__load_patch("geolocation", (e) => {
e.navigator && e.navigator.geolocation && St(e.navigator.geolocation, ["getCurrentPosition", "watchPosition"]);
}), t.__load_patch("PromiseRejectionEvent", (e, i) => {
function n39(a) {
return function(c) {
ht(e, a).forEach((T) => {
let g10 = e.PromiseRejectionEvent;
if (g10) {
let C = new g10(a, { promise: c.promise, reason: c.rejection });
T.invoke(C);
}
});
};
}
e.PromiseRejectionEvent && (i[j("unhandledPromiseRejectionHandler")] = n39("unhandledrejection"), i[j("rejectionHandledHandler")] = n39("rejectionhandled"));
}), t.__load_patch("queueMicrotask", (e, i, n39) => {
Lt(e, n39);
});
}
function Vt(t) {
t.__load_patch("ZoneAwarePromise", (e, i, n39) => {
let a = Object.getOwnPropertyDescriptor, c = Object.defineProperty;
function d10(h) {
if (h && h.toString === Object.prototype.toString) {
let l = h.constructor && h.constructor.name;
return (l || "") + ": " + JSON.stringify(h);
}
return h ? h.toString() : Object.prototype.toString.call(h);
}
let T = n39.symbol, g10 = [], C = e[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")] !== false, _10 = T("Promise"), R6 = T("then"), A6 = "__creationTrace__";
n39.onUnhandledError = (h) => {
if (n39.showUncaughtError()) {
let l = h && h.rejection;
l ? console.error("Unhandled Promise rejection:", l instanceof Error ? l.message : l, "; Zone:", h.zone.name, "; Task:", h.task && h.task.source, "; Value:", l, l instanceof Error ? l.stack : void 0) : console.error(h);
}
}, n39.microtaskDrainDone = () => {
for (; g10.length; ) {
let h = g10.shift();
try {
h.zone.runGuarded(() => {
throw h.throwOriginal ? h.rejection : h;
});
} catch (l) {
z8(l);
}
}
};
let x = T("unhandledPromiseRejectionHandler");
function z8(h) {
n39.onUnhandledError(h);
try {
let l = i[x];
typeof l == "function" && l.call(this, h);
} catch {
}
}
function K10(h) {
return h && h.then;
}
function J10(h) {
return h;
}
function X(h) {
return Z10.reject(h);
}
let k4 = T("state"), f10 = T("value"), H10 = T("finally"), V10 = T("parentPromiseValue"), Y10 = T("parentPromiseState"), F6 = "Promise.then", m10 = null, W10 = true, N10 = false, S10 = 0;
function v10(h, l) {
return (s) => {
try {
O(h, l, s);
} catch (u10) {
O(h, false, u10);
}
};
}
let D10 = function() {
let h = false;
return function(s) {
return function() {
h || (h = true, s.apply(null, arguments));
};
};
}, Q10 = "Promise resolved with itself", U10 = T("currentTaskTrace");
function O(h, l, s) {
let u10 = D10();
if (h === s) throw new TypeError(Q10);
if (h[k4] === m10) {
let b10 = null;
try {
(typeof s == "object" || typeof s == "function") && (b10 = s && s.then);
} catch (P6) {
return u10(() => {
O(h, false, P6);
})(), h;
}
if (l !== N10 && s instanceof Z10 && s.hasOwnProperty(k4) && s.hasOwnProperty(f10) && s[k4] !== m10) r(s), O(h, s[k4], s[f10]);
else if (l !== N10 && typeof b10 == "function") try {
b10.call(s, u10(v10(h, l)), u10(v10(h, false)));
} catch (P6) {
u10(() => {
O(h, false, P6);
})();
}
else {
h[k4] = l;
let P6 = h[f10];
if (h[f10] = s, h[H10] === H10 && l === W10 && (h[k4] = h[Y10], h[f10] = h[V10]), l === N10 && s instanceof Error) {
let p = i.currentTask && i.currentTask.data && i.currentTask.data[A6];
p && c(s, U10, { configurable: true, enumerable: false, writable: true, value: p });
}
for (let p = 0; p < P6.length; ) o(h, P6[p++], P6[p++], P6[p++], P6[p++]);
if (P6.length == 0 && l == N10) {
h[k4] = S10;
let p = s;
try {
throw new Error("Uncaught (in promise): " + d10(s) + (s && s.stack ? `
` + s.stack : ""));
} catch (I10) {
p = I10;
}
C && (p.throwOriginal = true), p.rejection = s, p.promise = h, p.zone = i.current, p.task = i.currentTask, g10.push(p), n39.scheduleMicroTask();
}
}
}
return h;
}
let E6 = T("rejectionHandledHandler");
function r(h) {
if (h[k4] === S10) {
try {
let l = i[E6];
l && typeof l == "function" && l.call(this, { rejection: h[f10], promise: h });
} catch {
}
h[k4] = N10;
for (let l = 0; l < g10.length; l++) h === g10[l].promise && g10.splice(l, 1);
}
}
function o(h, l, s, u10, b10) {
r(h);
let P6 = h[k4], p = P6 ? typeof u10 == "function" ? u10 : J10 : typeof b10 == "function" ? b10 : X;
l.scheduleMicroTask(F6, () => {
try {
let I10 = h[f10], M10 = !!s && H10 === s[H10];
M10 && (s[V10] = I10, s[Y10] = P6);
let L10 = l.run(p, void 0, M10 && p !== X && p !== J10 ? [] : [I10]);
O(s, true, L10);
} catch (I10) {
O(s, false, I10);
}
}, s);
}
let y10 = "function ZoneAwarePromise() { [native code] }", w10 = function() {
}, q = e.AggregateError;
class Z10 {
static toString() {
return y10;
}
static resolve(l) {
return l instanceof Z10 ? l : O(new this(null), W10, l);
}
static reject(l) {
return O(new this(null), N10, l);
}
static withResolvers() {
let l = {};
return l.promise = new Z10((s, u10) => {
l.resolve = s, l.reject = u10;
}), l;
}
static any(l) {
if (!l || typeof l[Symbol.iterator] != "function") return Promise.reject(new q([], "All promises were rejected"));
let s = [], u10 = 0;
try {
for (let p of l) u10++, s.push(Z10.resolve(p));
} catch {
return Promise.reject(new q([], "All promises were rejected"));
}
if (u10 === 0) return Promise.reject(new q([], "All promises were rejected"));
let b10 = false, P6 = [];
return new Z10((p, I10) => {
for (let M10 = 0; M10 < s.length; M10++) s[M10].then((L10) => {
b10 || (b10 = true, p(L10));
}, (L10) => {
P6.push(L10), u10--, u10 === 0 && (b10 = true, I10(new q(P6, "All promises were rejected")));
});
});
}
static race(l) {
let s, u10, b10 = new this((I10, M10) => {
s = I10, u10 = M10;
});
function P6(I10) {
s(I10);
}
function p(I10) {
u10(I10);
}
for (let I10 of l) K10(I10) || (I10 = this.resolve(I10)), I10.then(P6, p);
return b10;
}
static all(l) {
return Z10.allWithCallback(l);
}
static allSettled(l) {
return (this && this.prototype instanceof Z10 ? this : Z10).allWithCallback(l, { thenCallback: (u10) => ({ status: "fulfilled", value: u10 }), errorCallback: (u10) => ({ status: "rejected", reason: u10 }) });
}
static allWithCallback(l, s) {
let u10, b10, P6 = new this((L10, B) => {
u10 = L10, b10 = B;
}), p = 2, I10 = 0, M10 = [];
for (let L10 of l) {
K10(L10) || (L10 = this.resolve(L10));
let B = I10;
try {
L10.then((G10) => {
M10[B] = s ? s.thenCallback(G10) : G10, p--, p === 0 && u10(M10);
}, (G10) => {
s ? (M10[B] = s.errorCallback(G10), p--, p === 0 && u10(M10)) : b10(G10);
});
} catch (G10) {
b10(G10);
}
p++, I10++;
}
return p -= 2, p === 0 && u10(M10), P6;
}
constructor(l) {
let s = this;
if (!(s instanceof Z10)) throw new Error("Must be an instanceof Promise.");
s[k4] = m10, s[f10] = [];
try {
let u10 = D10();
l && l(u10(v10(s, W10)), u10(v10(s, N10)));
} catch (u10) {
O(s, false, u10);
}
}
get [Symbol.toStringTag]() {
return "Promise";
}
get [Symbol.species]() {
return Z10;
}
then(l, s) {
let u10 = this.constructor?.[Symbol.species];
(!u10 || typeof u10 != "function") && (u10 = this.constructor || Z10);
let b10 = new u10(w10), P6 = i.current;
return this[k4] == m10 ? this[f10].push(P6, b10, l, s) : o(this, P6, b10, l, s), b10;
}
catch(l) {
return this.then(null, l);
}
finally(l) {
let s = this.constructor?.[Symbol.species];
(!s || typeof s != "function") && (s = Z10);
let u10 = new s(w10);
u10[H10] = H10;
let b10 = i.current;
return this[k4] == m10 ? this[f10].push(b10, u10, l, l) : o(this, b10, u10, l, l), u10;
}
}
Z10.resolve = Z10.resolve, Z10.reject = Z10.reject, Z10.race = Z10.race, Z10.all = Z10.all;
let _e2 = e[_10] = e.Promise;
e.Promise = Z10;
let ce2 = T("thenPatched");
function le(h) {
let l = h.prototype, s = a(l, "then");
if (s && (s.writable === false || !s.configurable)) return;
let u10 = l.then;
l[R6] = u10, h.prototype.then = function(b10, P6) {
return new Z10((I10, M10) => {
u10.call(this, I10, M10);
}).then(b10, P6);
}, h[ce2] = true;
}
n39.patchThen = le;
function ne2(h) {
return function(l, s) {
let u10 = h.apply(l, s);
if (u10 instanceof Z10) return u10;
let b10 = u10.constructor;
return b10[ce2] || le(b10), u10;
};
}
return _e2 && (le(_e2), fe(e, "fetch", (h) => ne2(h))), Promise[i.__symbol__("uncaughtPromiseErrors")] = g10, Z10;
});
}
function Ft(t) {
t.__load_patch("toString", (e) => {
let i = Function.prototype.toString, n39 = j("OriginalDelegate"), a = j("Promise"), c = j("Error"), d10 = function() {
if (typeof this == "function") {
let _10 = this[n39];
if (_10) return typeof _10 == "function" ? i.call(_10) : Object.prototype.toString.call(_10);
if (this === Promise) {
let R6 = e[a];
if (R6) return i.call(R6);
}
if (this === Error) {
let R6 = e[c];
if (R6) return i.call(R6);
}
}
return i.call(this);
};
d10[n39] = i, Function.prototype.toString = d10;
let T = Object.prototype.toString, g10 = "[object Promise]";
Object.prototype.toString = function() {
return typeof Pr