@opentiny/tiny-toolkit-docs
Version:
这里对你的套件进行简单描述, 比如适用哪些场景,使用了什么技术, 有什么特点
1,224 lines (1,223 loc) • 6.87 MB
JavaScript
(() => {
'use strict';
var e,
_ = {},
d = {};
function n(e) {
var a = d[e];
if (void 0 !== a) return a.exports;
var r = (d[e] = { exports: {} });
return _[e].call(r.exports, r, r.exports, n), r.exports;
}
(n.m = _),
(e = []),
(n.O = (a, r, o, l) => {
if (!r) {
var c = 1 / 0;
for (f = 0; f < e.length; f++) {
for (var [r, o, l] = e[f], s = !0, t = 0; t < r.length; t++)
(!1 & l || c >= l) && Object.keys(n.O).every(h => n.O[h](r[t])) ? r.splice(t--, 1) : ((s = !1), l < c && (c = l));
if (s) {
e.splice(f--, 1);
var u = o();
void 0 !== u && (a = u);
}
}
return a;
}
l = l || 0;
for (var f = e.length; f > 0 && e[f - 1][2] > l; f--) e[f] = e[f - 1];
e[f] = [r, o, l];
}),
(n.n = e => {
var a = e && e.__esModule ? () => e.default : () => e;
return n.d(a, { a }), a;
}),
(n.d = (e, a) => {
for (var r in a) n.o(a, r) && !n.o(e, r) && Object.defineProperty(e, r, { enumerable: !0, get: a[r] });
}),
(n.o = (e, a) => Object.prototype.hasOwnProperty.call(e, a)),
(() => {
var e = { 666: 0 };
n.O.j = o => 0 === e[o];
var a = (o, l) => {
var t,
u,
[f, c, s] = l,
v = 0;
if (f.some(b => 0 !== e[b])) {
for (t in c) n.o(c, t) && (n.m[t] = c[t]);
if (s) var p = s(n);
}
for (o && o(l); v < f.length; v++) n.o(e, (u = f[v])) && e[u] && e[u][0](), (e[u] = 0);
return n.O(p);
},
r = (self.webpackChunkng_demo = self.webpackChunkng_demo || []);
r.forEach(a.bind(null, 0)), (r.push = a.bind(null, r.push.bind(r)));
})();
})();
(self.webpackChunkng_demo = self.webpackChunkng_demo || []).push([
[429],
{
435: (Xe, be, he) => {
'use strict';
he(124), he(609);
},
609: function (Xe, be, he) {
'use strict';
var Le,
i,
A =
(this && this.__spreadArray) ||
function (D, O, v) {
if (v || 2 === arguments.length)
for (var _, m = 0, P = O.length; m < P; m++) (_ || !(m in O)) && (_ || (_ = Array.prototype.slice.call(O, 0, m)), (_[m] = O[m]));
return D.concat(_ || Array.prototype.slice.call(O));
};
(Le = function () {
!(function (e) {
var n = e.performance;
function c(I) {
n && n.mark && n.mark(I);
}
function f(I, h) {
n && n.measure && n.measure(I, h);
}
c('Zone');
var w = e.__Zone_symbol_prefix || '__zone_symbol__';
function b(I) {
return w + I;
}
var C = !0 === e[b('forceDuplicateZoneCheck')];
if (e.Zone) {
if (C || 'function' != typeof e.Zone.__symbol__) throw new Error('Zone already loaded.');
return e.Zone;
}
var H = (function () {
function I(h, p) {
(this._parent = h),
(this._name = p ? p.name || 'unnamed' : '<root>'),
(this._properties = (p && p.properties) || {}),
(this._zoneDelegate = new V(this, this._parent && this._parent._zoneDelegate, p));
}
return (
(I.assertZonePatched = function () {
if (e.Promise !== ne.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.)'
);
}),
Object.defineProperty(I, 'root', {
get: function () {
for (var h = I.current; h.parent; ) h = h.parent;
return h;
},
enumerable: !1,
configurable: !0,
}),
Object.defineProperty(I, 'current', {
get: function () {
return Se.zone;
},
enumerable: !1,
configurable: !0,
}),
Object.defineProperty(I, 'currentTask', {
get: function () {
return Ye;
},
enumerable: !1,
configurable: !0,
}),
(I.__load_patch = function (h, p, E) {
if ((void 0 === E && (E = !1), ne.hasOwnProperty(h))) {
if (!E && C) throw Error('Already loaded patch: ' + h);
} else if (!e['__Zone_disable_' + h]) {
var J = 'Zone:' + h;
c(J), (ne[h] = p(e, I, Oe)), f(J, J);
}
}),
Object.defineProperty(I.prototype, 'parent', {
get: function () {
return this._parent;
},
enumerable: !1,
configurable: !0,
}),
Object.defineProperty(I.prototype, 'name', {
get: function () {
return this._name;
},
enumerable: !1,
configurable: !0,
}),
(I.prototype.get = function (h) {
var p = this.getZoneWith(h);
if (p) return p._properties[h];
}),
(I.prototype.getZoneWith = function (h) {
for (var p = this; p; ) {
if (p._properties.hasOwnProperty(h)) return p;
p = p._parent;
}
return null;
}),
(I.prototype.fork = function (h) {
if (!h) throw new Error('ZoneSpec required!');
return this._zoneDelegate.fork(this, h);
}),
(I.prototype.wrap = function (h, p) {
if ('function' != typeof h) throw new Error('Expecting function got: ' + h);
var E = this._zoneDelegate.intercept(this, h, p),
J = this;
return function () {
return J.runGuarded(E, this, arguments, p);
};
}),
(I.prototype.run = function (h, p, E, J) {
Se = { parent: Se, zone: this };
try {
return this._zoneDelegate.invoke(this, h, p, E, J);
} finally {
Se = Se.parent;
}
}),
(I.prototype.runGuarded = function (h, p, E, J) {
void 0 === p && (p = null), (Se = { parent: Se, zone: this });
try {
try {
return this._zoneDelegate.invoke(this, h, p, E, J);
} catch (Ne) {
if (this._zoneDelegate.handleError(this, Ne)) throw Ne;
}
} finally {
Se = Se.parent;
}
}),
(I.prototype.runTask = function (h, p, E) {
if (h.zone != this)
throw new Error('A task can only be run in the zone of creation! (Creation: ' + (h.zone || X).name + '; Execution: ' + this.name + ')');
if (h.state !== Pe || (h.type !== pe && h.type !== re)) {
var J = h.state != we;
J && h._transitionTo(we, Ee), h.runCount++;
var Ne = Ye;
(Ye = h), (Se = { parent: Se, zone: this });
try {
h.type == re && h.data && !h.data.isPeriodic && (h.cancelFn = void 0);
try {
return this._zoneDelegate.invokeTask(this, h, p, E);
} catch (Qe) {
if (this._zoneDelegate.handleError(this, Qe)) throw Qe;
}
} finally {
h.state !== Pe &&
h.state !== Re &&
(h.type == pe || (h.data && h.data.isPeriodic)
? J && h._transitionTo(Ee, we)
: ((h.runCount = 0), this._updateTaskCount(h, -1), J && h._transitionTo(Pe, we, Pe))),
(Se = Se.parent),
(Ye = Ne);
}
}
}),
(I.prototype.scheduleTask = function (h) {
if (h.zone && h.zone !== this)
for (var p = this; p; ) {
if (p === h.zone)
throw Error('can not reschedule task to '.concat(this.name, ' which is descendants of the original zone ').concat(h.zone.name));
p = p.parent;
}
h._transitionTo(Te, Pe);
var E = [];
(h._zoneDelegates = E), (h._zone = this);
try {
h = this._zoneDelegate.scheduleTask(this, h);
} catch (J) {
throw (h._transitionTo(Re, Te, Pe), this._zoneDelegate.handleError(this, J), J);
}
return h._zoneDelegates === E && this._updateTaskCount(h, 1), h.state == Te && h._transitionTo(Ee, Te), h;
}),
(I.prototype.scheduleMicroTask = function (h, p, E, J) {
return this.scheduleTask(new j(ce, h, p, E, J, void 0));
}),
(I.prototype.scheduleMacroTask = function (h, p, E, J, Ne) {
return this.scheduleTask(new j(re, h, p, E, J, Ne));
}),
(I.prototype.scheduleEventTask = function (h, p, E, J, Ne) {
return this.scheduleTask(new j(pe, h, p, E, J, Ne));
}),
(I.prototype.cancelTask = function (h) {
if (h.zone != this)
throw new Error('A task can only be cancelled in the zone of creation! (Creation: ' + (h.zone || X).name + '; Execution: ' + this.name + ')');
h._transitionTo($, Ee, we);
try {
this._zoneDelegate.cancelTask(this, h);
} catch (p) {
throw (h._transitionTo(Re, $), this._zoneDelegate.handleError(this, p), p);
}
return this._updateTaskCount(h, -1), h._transitionTo(Pe, $), (h.runCount = 0), h;
}),
(I.prototype._updateTaskCount = function (h, p) {
var E = h._zoneDelegates;
-1 == p && (h._zoneDelegates = null);
for (var J = 0; J < E.length; J++) E[J]._updateTaskCount(h.type, p);
}),
I
);
})();
H.__symbol__ = b;
var Fe,
W = {
name: '',
onHasTask: function (I, h, p, E) {
return I.hasTask(p, E);
},
onScheduleTask: function (I, h, p, E) {
return I.scheduleTask(p, E);
},
onInvokeTask: function (I, h, p, E, J, Ne) {
return I.invokeTask(p, E, J, Ne);
},
onCancelTask: function (I, h, p, E) {
return I.cancelTask(p, E);
},
},
V = (function () {
function I(h, p, E) {
(this._taskCounts = { microTask: 0, macroTask: 0, eventTask: 0 }),
(this.zone = h),
(this._parentDelegate = p),
(this._forkZS = E && (E && E.onFork ? E : p._forkZS)),
(this._forkDlgt = E && (E.onFork ? p : p._forkDlgt)),
(this._forkCurrZone = E && (E.onFork ? this.zone : p._forkCurrZone)),
(this._interceptZS = E && (E.onIntercept ? E : p._interceptZS)),
(this._interceptDlgt = E && (E.onIntercept ? p : p._interceptDlgt)),
(this._interceptCurrZone = E && (E.onIntercept ? this.zone : p._interceptCurrZone)),
(this._invokeZS = E && (E.onInvoke ? E : p._invokeZS)),
(this._invokeDlgt = E && (E.onInvoke ? p : p._invokeDlgt)),
(this._invokeCurrZone = E && (E.onInvoke ? this.zone : p._invokeCurrZone)),
(this._handleErrorZS = E && (E.onHandleError ? E : p._handleErrorZS)),
(this._handleErrorDlgt = E && (E.onHandleError ? p : p._handleErrorDlgt)),
(this._handleErrorCurrZone = E && (E.onHandleError ? this.zone : p._handleErrorCurrZone)),
(this._scheduleTaskZS = E && (E.onScheduleTask ? E : p._scheduleTaskZS)),
(this._scheduleTaskDlgt = E && (E.onScheduleTask ? p : p._scheduleTaskDlgt)),
(this._scheduleTaskCurrZone = E && (E.onScheduleTask ? this.zone : p._scheduleTaskCurrZone)),
(this._invokeTaskZS = E && (E.onInvokeTask ? E : p._invokeTaskZS)),
(this._invokeTaskDlgt = E && (E.onInvokeTask ? p : p._invokeTaskDlgt)),
(this._invokeTaskCurrZone = E && (E.onInvokeTask ? this.zone : p._invokeTaskCurrZone)),
(this._cancelTaskZS = E && (E.onCancelTask ? E : p._cancelTaskZS)),
(this._cancelTaskDlgt = E && (E.onCancelTask ? p : p._cancelTaskDlgt)),
(this._cancelTaskCurrZone = E && (E.onCancelTask ? this.zone : p._cancelTaskCurrZone)),
(this._hasTaskZS = null),
(this._hasTaskDlgt = null),
(this._hasTaskDlgtOwner = null),
(this._hasTaskCurrZone = null);
var J = E && E.onHasTask;
(J || (p && p._hasTaskZS)) &&
((this._hasTaskZS = J ? E : W),
(this._hasTaskDlgt = p),
(this._hasTaskDlgtOwner = this),
(this._hasTaskCurrZone = h),
E.onScheduleTask || ((this._scheduleTaskZS = W), (this._scheduleTaskDlgt = p), (this._scheduleTaskCurrZone = this.zone)),
E.onInvokeTask || ((this._invokeTaskZS = W), (this._invokeTaskDlgt = p), (this._invokeTaskCurrZone = this.zone)),
E.onCancelTask || ((this._cancelTaskZS = W), (this._cancelTaskDlgt = p), (this._cancelTaskCurrZone = this.zone)));
}
return (
(I.prototype.fork = function (h, p) {
return this._forkZS ? this._forkZS.onFork(this._forkDlgt, this.zone, h, p) : new H(h, p);
}),
(I.prototype.intercept = function (h, p, E) {
return this._interceptZS ? this._interceptZS.onIntercept(this._interceptDlgt, this._interceptCurrZone, h, p, E) : p;
}),
(I.prototype.invoke = function (h, p, E, J, Ne) {
return this._invokeZS ? this._invokeZS.onInvoke(this._invokeDlgt, this._invokeCurrZone, h, p, E, J, Ne) : p.apply(E, J);
}),
(I.prototype.handleError = function (h, p) {
return !this._handleErrorZS || this._handleErrorZS.onHandleError(this._handleErrorDlgt, this._handleErrorCurrZone, h, p);
}),
(I.prototype.scheduleTask = function (h, p) {
var E = p;
if (this._scheduleTaskZS)
this._hasTaskZS && E._zoneDelegates.push(this._hasTaskDlgtOwner),
(E = this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt, this._scheduleTaskCurrZone, h, p)) || (E = p);
else if (p.scheduleFn) p.scheduleFn(p);
else {
if (p.type != ce) throw new Error('Task is missing scheduleFn.');
Me(p);
}
return E;
}),
(I.prototype.invokeTask = function (h, p, E, J) {
return this._invokeTaskZS
? this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt, this._invokeTaskCurrZone, h, p, E, J)
: p.callback.apply(E, J);
}),
(I.prototype.cancelTask = function (h, p) {
var E;
if (this._cancelTaskZS) E = this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt, this._cancelTaskCurrZone, h, p);
else {
if (!p.cancelFn) throw Error('Task is not cancelable');
E = p.cancelFn(p);
}
return E;
}),
(I.prototype.hasTask = function (h, p) {
try {
this._hasTaskZS && this._hasTaskZS.onHasTask(this._hasTaskDlgt, this._hasTaskCurrZone, h, p);
} catch (E) {
this.handleError(h, E);
}
}),
(I.prototype._updateTaskCount = function (h, p) {
var E = this._taskCounts,
J = E[h],
Ne = (E[h] = J + p);
if (Ne < 0) throw new Error('More tasks executed then were scheduled.');
(0 != J && 0 != Ne) ||
this.hasTask(this.zone, { microTask: E.microTask > 0, macroTask: E.macroTask > 0, eventTask: E.eventTask > 0, change: h });
}),
I
);
})(),
j = (function () {
function I(h, p, E, J, Ne, Qe) {
if (
((this._zone = null),
(this.runCount = 0),
(this._zoneDelegates = null),
(this._state = 'notScheduled'),
(this.type = h),
(this.source = p),
(this.data = J),
(this.scheduleFn = Ne),
(this.cancelFn = Qe),
!E)
)
throw new Error('callback is not defined');
this.callback = E;
var N = this;
this.invoke =
h === pe && J && J.useG
? I.invokeTask
: function () {
return I.invokeTask.call(e, N, this, arguments);
};
}
return (
(I.invokeTask = function (h, p, E) {
h || (h = this), Ae++;
try {
return h.runCount++, h.zone.runTask(h, p, E);
} finally {
1 == Ae && me(), Ae--;
}
}),
Object.defineProperty(I.prototype, 'zone', {
get: function () {
return this._zone;
},
enumerable: !1,
configurable: !0,
}),
Object.defineProperty(I.prototype, 'state', {
get: function () {
return this._state;
},
enumerable: !1,
configurable: !0,
}),
(I.prototype.cancelScheduleRequest = function () {
this._transitionTo(Pe, Te);
}),
(I.prototype._transitionTo = function (h, p, E) {
if (this._state !== p && this._state !== E)
throw new Error(
''
.concat(this.type, " '")
.concat(this.source, "': can not transition to '")
.concat(h, "', expecting state '")
.concat(p, "'")
.concat(E ? " or '" + E + "'" : '', ", was '")
.concat(this._state, "'.")
);
(this._state = h), h == Pe && (this._zoneDelegates = null);
}),
(I.prototype.toString = function () {
return this.data && void 0 !== this.data.handleId ? this.data.handleId.toString() : Object.prototype.toString.call(this);
}),
(I.prototype.toJSON = function () {
return { type: this.type, state: this.state, source: this.source, zone: this.zone.name, runCount: this.runCount };
}),
I
);
})(),
q = b('setTimeout'),
G = b('Promise'),
se = b('then'),
ue = [],
ye = !1;
function ke(I) {
if ((Fe || (e[G] && (Fe = e[G].resolve(0))), Fe)) {
var h = Fe[se];
h || (h = Fe.then), h.call(Fe, I);
} else e[q](I, 0);
}
function Me(I) {
0 === Ae && 0 === ue.length && ke(me), I && ue.push(I);
}
function me() {
if (!ye) {
for (ye = !0; ue.length; ) {
var I = ue;
ue = [];
for (var h = 0; h < I.length; h++) {
var p = I[h];
try {
p.zone.runTask(p, null, null);
} catch (E) {
Oe.onUnhandledError(E);
}
}
}
Oe.microtaskDrainDone(), (ye = !1);
}
}
var X = { name: 'NO ZONE' },
Pe = 'notScheduled',
Te = 'scheduling',
Ee = 'scheduled',
we = 'running',
$ = 'canceling',
Re = 'unknown',
ce = 'microTask',
re = 'macroTask',
pe = 'eventTask',
ne = {},
Oe = {
symbol: b,
currentZoneFrame: function () {
return Se;
},
onUnhandledError: xe,
microtaskDrainDone: xe,
scheduleMicroTask: Me,
showUncaughtError: function () {
return !H[b('ignoreConsoleErrorUncaughtError')];
},
patchEventTarget: function () {
return [];
},
patchOnProperties: xe,
patchMethod: function () {
return xe;
},
bindArguments: function () {
return [];
},
patchThen: function () {
return xe;
},
patchMacroTask: function () {
return xe;
},
patchEventPrototype: function () {
return xe;
},
isIEOrEdge: function () {
return !1;
},
getGlobalObjects: function () {},
ObjectDefineProperty: function () {
return xe;
},
ObjectGetOwnPropertyDescriptor: function () {},
ObjectCreate: function () {},
ArraySlice: function () {
return [];
},
patchClass: function () {
return xe;
},
wrapWithCurrentZone: function () {
return xe;
},
filterProperties: function () {
return [];
},
attachOriginToPatched: function () {
return xe;
},
_redefineProperty: function () {
return xe;
},
patchCallbacks: function () {
return xe;
},
nativeScheduleMicroTask: ke,
},
Se = { parent: null, zone: new H(null, null) },
Ye = null,
Ae = 0;
function xe() {}
f('Zone', 'Zone'), (e.Zone = H);
})(('undefined' != typeof window && window) || ('undefined' != typeof self && self) || global);
var D = Object.getOwnPropertyDescriptor,
O = Object.defineProperty,
v = Object.getPrototypeOf,
m = Object.create,
P = Array.prototype.slice,
_ = 'addEventListener',
y = 'removeEventListener',
t = Zone.__symbol__(_),
o = Zone.__symbol__(y),
l = 'true',
r = 'false',
a = Zone.__symbol__('');
function u(e, n) {
return Zone.current.wrap(e, n);
}
function k(e, n, c, f, w) {
return Zone.current.scheduleMacroTask(e, n, c, f, w);
}
var T = Zone.__symbol__,
g = 'undefined' != typeof window,
s = g ? window : void 0,
d = (g && s) || ('object' == typeof self && self) || global;
function L(e, n) {
for (var c = e.length - 1; c >= 0; c--) 'function' == typeof e[c] && (e[c] = u(e[c], n + '_' + c));
return e;
}
function Q(e) {
return !e || (!1 !== e.writable && !('function' == typeof e.get && void 0 === e.set));
}
var z = 'undefined' != typeof WorkerGlobalScope && self instanceof WorkerGlobalScope,
R = !('nw' in d) && void 0 !== d.process && '[object process]' === {}.toString.call(d.process),
ee = !R && !z && !(!g || !s.HTMLElement),
ge = void 0 !== d.process && '[object process]' === {}.toString.call(d.process) && !z && !(!g || !s.HTMLElement),
He = {},
ve = function (e) {
if ((e = e || d.event)) {
var n = He[e.type];
n || (n = He[e.type] = T('ON_PROPERTY' + e.type));
var w,
c = this || e.target || d,
f = c[n];
return (
ee && c === s && 'error' === e.type
? !0 === (w = f && f.call(this, e.message, e.filename, e.lineno, e.colno, e.error)) && e.preventDefault()
: null != (w = f && f.apply(this, arguments)) && !w && e.preventDefault(),
w
);
}
};
function We(e, n, c) {
var f = D(e, n);
if ((!f && c && D(c, n) && (f = { enumerable: !0, configurable: !0 }), f && f.configurable)) {
var b = T('on' + n + 'patched');
if (!e.hasOwnProperty(b) || !e[b]) {
delete f.writable, delete f.value;
var C = f.get,
H = f.set,
W = n.slice(2),
V = He[W];
V || (V = He[W] = T('ON_PROPERTY' + W)),
(f.set = function (j) {
var q = this;
!q && e === d && (q = d),
q &&
('function' == typeof q[V] && q.removeEventListener(W, ve),
H && H.call(q, null),
(q[V] = j),
'function' == typeof j && q.addEventListener(W, ve, !1));
}),
(f.get = function () {
var j = this;
if ((!j && e === d && (j = d), !j)) return null;
var q = j[V];
if (q) return q;
if (C) {
var G = C.call(this);
if (G) return f.set.call(this, G), 'function' == typeof j.removeAttribute && j.removeAttribute(n), G;
}
return null;
}),
O(e, n, f),
(e[b] = !0);
}
}
}
function Ge(e, n, c) {
if (n) for (var f = 0; f < n.length; f++) We(e, 'on' + n[f], c);
else {
var w = [];
for (var b in e) 'on' == b.slice(0, 2) && w.push(b);
for (var C = 0; C < w.length; C++) We(e, w[C], c);
}
}
var Ie = T('originalInstance');
function ze(e) {
var n = d[e];
if (n) {
(d[T(e)] = n),
(d[e] = function () {
var w = L(arguments, e);
switch (w.length) {
case 0:
this[Ie] = new n();
break;
case 1:
this[Ie] = new n(w[0]);
break;
case 2:
this[Ie] = new n(w[0], w[1]);
break;
case 3:
this[Ie] = new n(w[0], w[1], w[2]);
break;
case 4:
this[Ie] = new n(w[0], w[1], w[2], w[3]);
break;
default:
throw new Error('Arg list too long.');
}
}),
U(d[e], n);
var f,
c = new n(function () {});
for (f in c)
('XMLHttpRequest' === e && 'responseBlob' === f) ||
(function (w) {
'function' == typeof c[w]
? (d[e].prototype[w] = function () {
return this[Ie][w].apply(this[Ie], arguments);
})
: O(d[e].prototype, w, {
set: function (b) {
'function' == typeof b ? ((this[Ie][w] = u(b, e + '.' + w)), U(this[Ie][w], b)) : (this[Ie][w] = b);
},
get: function () {
return this[Ie][w];
},
});
})(f);
for (f in n) 'prototype' !== f && n.hasOwnProperty(f) && (d[e][f] = n[f]);
}
}
function Ke(e, n, c) {
for (var f = e; f && !f.hasOwnProperty(n); ) f = v(f);
!f && e[n] && (f = e);
var w = T(n),
b = null;
if (f && (!(b = f[w]) || !f.hasOwnProperty(w)) && ((b = f[w] = f[n]), Q(f && D(f, n)))) {
var H = c(b, w, n);
(f[n] = function () {
return H(this, arguments);
}),
U(f[n], b);
}
return b;
}
function S(e, n, c) {
var f = null;
function w(b) {
var C = b.data;
return (
(C.args[C.cbIdx] = function () {
b.invoke.apply(this, arguments);
}),
f.apply(C.target, C.args),
b
);
}
f = Ke(e, n, function (b) {
return function (C, H) {
var W = c(C, H);
return W.cbIdx >= 0 && 'function' == typeof H[W.cbIdx] ? k(W.name, H[W.cbIdx], W, w) : b.apply(C, H);
};
});
}
function U(e, n) {
e[T('OriginalDelegate')] = n;
}
var K = !1,
ie = !1;
function Ze() {
if (K) return ie;
K = !0;
try {
var e = s.navigator.userAgent;
(-1 !== e.indexOf('MSIE ') || -1 !== e.indexOf('Trident/') || -1 !== e.indexOf('Edge/')) && (ie = !0);
} catch (n) {}
return ie;
}
Zone.__load_patch('ZoneAwarePromise', function (e, n, c) {
var f = Object.getOwnPropertyDescriptor,
w = Object.defineProperty;
var C = c.symbol,
H = [],
W = !0 === e[C('DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION')],
V = C('Promise'),
j = C('then');
(c.onUnhandledError = function (N) {
if (c.showUncaughtError()) {
var F = N && N.rejection;
F
? console.error(
'Unhandled Promise rejection:',
F instanceof Error ? F.message : F,
'; Zone:',
N.zone.name,
'; Task:',
N.task && N.task.source,
'; Value:',
F,
F instanceof Error ? F.stack : void 0
)
: console.error(N);
}
}),
(c.microtaskDrainDone = function () {
for (
var N = function () {
var F = H.shift();
try {
F.zone.runGuarded(function () {
throw F.throwOriginal ? F.rejection : F;
});
} catch (Z) {
!(function se(N) {
c.onUnhandledError(N);
try {
var F = n[G];
'function' == typeof F && F.call(this, N);
} catch (Z) {}
})(Z);
}
};
H.length;
)
N();
});
var G = C('unhandledPromiseRejectionHandler');
function ue(N) {
return N && N.then;
}
function ye(N) {
return N;
}
function Fe(N) {
return p.reject(N);
}
var ke = C('state'),
Me = C('value'),
me = C('finally'),
X = C('parentPromiseValue'),
Pe = C('parentPromiseState'),
Ee = null,
$ = !1;
function ce(N, F) {
return function (Z) {
try {
Oe(N, F, Z);
} catch (x) {
Oe(N, !1, x);
}
};
}
var re = function () {
var N = !1;
return function (Z) {
return function () {
N || ((N = !0), Z.apply(null, arguments));
};
};
},
ne = C('currentTaskTrace');
function Oe(N, F, Z) {
var x = re();
if (N === Z) throw new TypeError('Promise resolved with itself');
if (N[ke] === Ee) {
var B = null;
try {
('object' == typeof Z || 'function' == typeof Z) && (B = Z && Z.then);
} catch (de) {
return (
x(function () {
Oe(N, !1, de);
})(),
N
);
}
if (F !== $ && Z instanceof p && Z.hasOwnProperty(ke) && Z.hasOwnProperty(Me) && Z[ke] !== Ee) Ye(Z), Oe(N, Z[ke], Z[Me]);
else if (F !== $ && 'function' == typeof B)
try {
B.call(Z, x(ce(N, F)), x(ce(N, !1)));
} catch (de) {
x(function () {
Oe(N, !1, de);
})();
}
else {
N[ke] = F;
var ae = N[Me];
if (((N[Me] = Z), N[me] === me && true === F && ((N[ke] = N[Pe]), (N[Me] = N[X])), F === $ && Z instanceof Error)) {
var te = n.currentTask && n.currentTask.data && n.currentTask.data.__creationTrace__;
te && w(Z, ne, { configurable: !0, enumerable: !1, writable: !0, value: te });
}
for (var le = 0; le < ae.length; ) Ae(N, ae[le++], ae[le++], ae[le++], ae[le++]);
if (0 == ae.length && F == $) {
N[ke] = 0;
var fe = Z;
try {
throw new Error(
'Uncaught (in promise): ' +
(function b(N) {
return N && N.toString === Object.prototype.toString
? ((N.constructor && N.constructor.name) || '') + ': ' + JSON.stringify(N)
: N
? N.toString()
: Object.prototype.toString.call(N);
})(Z) +
(Z && Z.stack ? '\n' + Z.stack : '')
);
} catch (de) {
fe = de;
}
W && (fe.throwOriginal = !0),
(fe.rejection = Z),
(fe.promise = N),
(fe.zone = n.current),
(fe.task = n.currentTask),
H.push(fe),
c.scheduleMicroTask();
}
}
}
return N;
}
var Se = C('rejectionHandledHandler');
function Ye(N) {
if (0 === N[ke]) {
try {
var F = n[Se];
F && 'function' == typeof F && F.call(this, { rejection: N[Me], promise: N });
} catch (x) {}
N[ke] = $;
for (var Z = 0; Z < H.length; Z++) N === H[Z].promise && H.splice(Z, 1);
}
}
function Ae(N, F, Z, x, B) {
Ye(N);
var ae = N[ke],
te = ae ? ('function' == typeof x ? x : ye) : 'function' == typeof B ? B : Fe;
F.scheduleMicroTask(
'Promise.then',
function () {
try {
var le = N[Me],
fe = !!Z && me === Z[me];
fe && ((Z[X] = le), (Z[Pe] = ae));
var de = F.run(te, void 0, fe && te !== Fe && te !== ye ? [] : [le]);
Oe(Z, !0, de);
} catch (_e) {
Oe(Z, !1, _e);
}
},
Z
);
}
var I = function () {},
h = e.AggregateError,
p = (function () {
function N(F) {
var Z = this;
if (!(Z instanceof N)) throw new Error('Must be an instanceof Promise.');
(Z[ke] = Ee), (Z[Me] = []);
try {
var x = re();
F && F(x(ce(Z, true)), x(ce(Z, $)));
} catch (B) {
Oe(Z, !1, B);
}
}
return (
(N.toString = function () {
return 'function ZoneAwarePromise() { [native code] }';
}),
(N.resolve = function (F) {
return Oe(new this(null), true, F);
}),
(N.reject = function (F) {
return Oe(new this(null), $, F);
}),
(N.any = function (F) {
if (!F || 'function' != typeof F[Symbol.iterator]) return Promise.reject(new h([], 'All promises were rejected'));
var Z = [],
x = 0;
try {
for (var B = 0, ae = F; B < ae.length; B++) x++, Z.push(N.resolve(ae[B]));
} catch (de) {
return Promise.reject(new h([], 'All promises were rejected'));
}
if (0 === x) return Promise.reject(new h([], 'All promises were rejected'));
var le = !1,
fe = [];
return new N(function (de, _e) {
for (var De = 0; De < Z.length; De++)
Z[De].then(
function (qe) {
le || ((le = !0), de(qe));
},
function (qe) {
fe.push(qe), 0 == --x && ((le = !0), _e(new h(fe, 'All promises were rejected')));
}
);
});
}),
(N.race = function (F) {
var Z,
x,
B = new this(function (_e, De) {
(Z = _e), (x = De);
});
function ae(_e) {
Z(_e);
}
function te(_e) {
x(_e);
}
for (var le = 0, fe = F; le < fe.length; le++) {
var de = fe[le];
ue(de) || (de = this.resolve(de)), de.then(ae, te);
}
return B;
}),
(N.all = function (F) {
return N.allWithCallback(F);
}),
(N.allSettled = function (F) {
return (this && this.prototype instanceof N ? this : N).allWithCallback(F, {
thenCallback: function (x) {
return { status: 'fulfilled', value: x };
},
errorCallback: function (x) {
return { status: 'rejected', reason: x };
},
});
}),
(N.allWithCallback = function (F, Z) {
for (
var x,
B,
ae = new this(function (Be, Ve) {
(x = Be), (B = Ve);
}),
te = 2,
le = 0,
fe = [],
de = function (Be) {
ue(Be) || (Be = _e.resolve(Be));
var Ve = le;
try {
Be.then(
function (je) {
(fe[Ve] = Z ? Z.thenCallback(je) : je), 0 == --te && x(fe);
},
function (je) {
Z ? ((fe[Ve] = Z.errorCallback(je)), 0 == --te && x(fe)) : B(je);
}
);
} catch (je) {
B(je);
}
te++, le++;
},
_e = this,
De = 0,
qe = F;
De < qe.length;
De++
)
de(qe[De]);
return 0 == (te -= 2) && x(fe), ae;
}),
Object.defineProperty(N.prototype, Symbol.toStringTag, {
get: function () {
return 'Promise';
},
enumerable: !1,
configurable: !0,
}),
Object.defineProperty(N.prototype, Symbol.species, {
get: function () {
return N;
},
enumerable: !1,
configurable: !0,
}),
(N.prototype.then = function (F, Z) {
var x,
B = null === (x = this.constructor) || void 0 === x ? void 0 : x[Symbol.species];
(!B || 'function' != typeof B) && (B = this.constructor || N);
var ae = new B(I),
te = n.current;
return this[ke] == Ee ? this[Me].push(te, ae, F, Z) : Ae(this, te, ae, F, Z), ae;
}),
(N.prototype.catch = function (F) {
return this.then(null, F);
}),
(N.prototype.finally = function (F) {
var Z,
x = null === (Z = this.constructor) || void 0 === Z ? void 0 : Z[Symbol.species];
(!x || 'function' != typeof x) && (x = N);
var B = new x(I);
B[me] = me;
var ae = n.current;
return this[ke] == Ee ? this[Me].push(ae, B, F, F) : Ae(this, ae, B, F, F), B;
}),
N
);
})();
(p.resolve = p.resolve), (p.reject = p.reject), (p.race = p.race), (p.all = p.all);
var E = (e[V] = e.Promise);
e.Promise = p;
var J = C('thenPatched');
function Ne(N) {
var F = N.prototype,
Z = f(F, 'then');
if (!Z || (!1 !== Z.writable && Z.configurable)) {
var x = F.then;
(F[j] = x),
(N.prototype.then = function (B, ae) {
var te = this;
return new p(function (fe, de) {
x.call(te, fe, de);
}).then(B, ae);
}),
(N[J] = !0);
}
}
return (
(c.patchThen = Ne),
E &&
(Ne(E),
Ke(e, 'fetch', function (N) {
return (function Qe(N) {
return function (F, Z) {
var x = N.apply(F, Z);
if (x instanceof p) return x;
var B = x.constructor;
return B[J] || Ne(B), x;
};
})(N);
})),
(Promise[n.__symbol__('uncaughtPromiseErrors')] = H),
p
);
}),
Zone.__load_patch('toString', function (e) {
var n = Function.prototype.toString,
c = T('OriginalDelegate'),
f = T('Promise'),
w = T('Error'),
b = function () {
if ('function' == typeof this) {
var V = this[c];
if (V) return 'function' == typeof V ? n.call(V) : Object.prototype.toString.call(V);
if (this === Promise) {
var j = e[f];
if (j) return n.call(j);
}
if (this === Error) {
var q = e[w];
if (q) return n.call(q);
}
}
return n.call(this);
};
(b[c] = n), (Function.prototype.toString = b);
var C = Object.prototype.toString;
Object.prototype.toString = function () {
return 'function' == typeof Promise && this instanceof Promise ? '[object Promise]' : C.call(this);
};
});
var Ce = !1;
if ('undefined' != typeof window)
try {
var $e = Object.defineProperty({}, 'passive', {
get: function () {
Ce = !0;
},
});
window.addEventListener('test', $e, $e), window.removeEventListener('test', $e, $e);
} catch (e) {
Ce = !1;
}
var ht,
dt,
wt,
kt,
it,
et = { useG: !0 },
Ue = {},
rt = {},
ut = new RegExp('^' + a + '(\\w+)(true|false)$'),
lt = T('propagationStopped');
function ft(e, n) {
var c = (n ? n(e) : e) + r,
f = (n ? n(e) : e) + l,
w = a + c,
b = a + f;
(Ue[e] = {}), (Ue[e][r] = w), (Ue[e][l] = b);
}
function Je(e, n, c, f) {
var w = (f && f.add) || _,
b = (f && f.rm) || y,
C = (f && f.listeners) || 'eventListeners',
H = (f && f.rmAll) || 'removeAllListeners',
W = T(w),
V = '.' + w + ':',
j = 'prependListener',
G = function (me, X, Pe) {
if (!me.isRemoved) {
var Ee,
Te = me.callback;
'object' == typeof Te &&
Te.handleEvent &&
((me.callback = function (Re) {
return Te.handleEvent(Re);
}),
(me.originalDelegate = Te));
try {
me.invoke(me, X, [Pe]);
} catch (Re) {
Ee = Re;
}
var we = me.options;
return we && 'object' == typeof we && we.once && X[b].call(X, Pe.type, me.originalDelegate ? me.originalDelegate : me.callback, we), Ee;
}
};
function se(me, X, Pe) {
if ((X = X || e.event)) {
var Te = me || X.target || e,
Ee = Te[Ue[X.type][Pe ? l : r]];
if (Ee) {
var we = [];
if (1 === Ee.length) ($ = G(Ee[0], Te, X)) && we.push($);
else
for (var Re = Ee.slice(), ce = 0; ce < Re.length && (!X || !0 !== X[lt]); ce++) {
var $;
($ = G(Re[ce], Te, X)) && we.push($);
}
if (1 === we.length) throw we[0];
var re = function (pe) {
var ne = we[pe];
n.nativeScheduleMicroTask(function () {
throw ne;
});
};
for (ce = 0; ce < we.length; ce++) re(ce);
}
}
}
var ue = function (me)