/*! For license information please see h1-gpTips.js.LICENSE.txt */
(() => {
var e = {
46: (e, t, n) => {
"use strict";
function r(e) {
return r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
return typeof e
} : function(e) {
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
}, r(e)
}
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = void 0;
var o = function(e, t) {
if (!t && e && e.__esModule) return e;
if (null === e || "object" != r(e) && "function" != typeof e) return {
default: e
};
var n = s(t);
if (n && n.has(e)) return n.get(e);
var o = {
__proto__: null
},
i = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var a in e)
if ("default" !== a && {}.hasOwnProperty.call(e, a)) {
var u = i ? Object.getOwnPropertyDescriptor(e, a) : null;
u && (u.get || u.set) ? Object.defineProperty(o, a, u) : o[a] = e[a]
} return o.default = e, n && n.set(e, o), o
}(n(9666)),
i = l(n(86146)),
a = n(22662),
u = l(n(62924));
function l(e) {
return e && e.__esModule ? e : {
default: e
}
}
function s(e) {
if ("function" != typeof WeakMap) return null;
var t = new WeakMap,
n = new WeakMap;
return (s = function(e) {
return e ? n : t
})(e)
}
var c = (0, a.createUseStyles)({
radioGroup: {
display: "flex",
flexDirection: "column",
"&.radioGroupHorizontal": {
flexDirection: "row"
}
}
}),
f = function(e) {
var t = e.children,
n = e["data-qa"],
r = e.horizontal,
i = e.group,
a = e.onChange,
l = e.selectedValue,
s = c(),
f = {
selectedValue: l,
onChange: a,
group: i
},
d = o.default.Children.map(t, function(e) {
return (0, o.isValidElement)(e) && (0, o.cloneElement)(e, f)
}),
p = (0, u.default)(s.radioGroup, {
radioGroupHorizontal: !!r
});
return o.default.createElement("div", {
className: p,
"data-qa": n,
role: "radiogroup"
}, d)
};
f.propTypes = {
children: i.default.node.isRequired,
"data-qa": i.default.string,
group: i.default.string.isRequired,
horizontal: i.default.bool,
onChange: i.default.func.isRequired,
selectedValue: i.default.oneOfType([i.default.string, i.default.number, i.default.bool])
}, f.defaultProps = {
"data-qa": null,
selectedValue: void 0,
horizontal: !1
};
t.default = f
},
262: (e, t, n) => {
var r = n(74620);
/* @preserve
* The MIT License (MIT)
*
* Copyright (c) 2013-2018 Petka Antonov
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
*/
e.exports = function e(t, n, r) {
function o(a, u) {
if (!n[a]) {
if (!t[a]) {
var l = "function" == typeof _dereq_ && _dereq_;
if (!u && l) return l(a, !0);
if (i) return i(a, !0);
var s = new Error("Cannot find module '" + a + "'");
throw s.code = "MODULE_NOT_FOUND", s
}
var c = n[a] = {
exports: {}
};
t[a][0].call(c.exports, function(e) {
var n = t[a][1][e];
return o(n || e)
}, c, c.exports, e, t, n, r)
}
return n[a].exports
}
for (var i = "function" == typeof _dereq_ && _dereq_, a = 0; a < r.length; a++) o(r[a]);
return o
}({
1: [function(e, t, n) {
"use strict";
t.exports = function(e) {
var t = e._SomePromiseArray;
function n(e) {
var n = new t(e),
r = n.promise();
return n.setHowMany(1), n.setUnwrap(), n.init(), r
}
e.any = function(e) {
return n(e)
}, e.prototype.any = function() {
return n(this)
}
}
}, {}],
2: [function(e, t, n) {
"use strict";
var o;
try {
throw new Error
} catch (e) {
o = e
}
var i = e("./schedule"),
a = e("./queue");
function u() {
this._customScheduler = !1, this._isTickUsed = !1, this._lateQueue = new a(16), this._normalQueue = new a(16), this._haveDrainedQueues = !1;
var e = this;
this.drainQueues = function() {
e._drainQueues()
}, this._schedule = i
}
function l(e, t, n) {
this._lateQueue.push(e, t, n), this._queueTick()
}
function s(e, t, n) {
this._normalQueue.push(e, t, n), this._queueTick()
}
function c(e) {
this._normalQueue._pushOne(e), this._queueTick()
}
function f(e) {
for (; e.length() > 0;) d(e)
}
function d(e) {
var t = e.shift();
if ("function" != typeof t) t._settlePromises();
else {
var n = e.shift(),
r = e.shift();
t.call(n, r)
}
}
u.prototype.setScheduler = function(e) {
var t = this._schedule;
return this._schedule = e, this._customScheduler = !0, t
}, u.prototype.hasCustomScheduler = function() {
return this._customScheduler
}, u.prototype.haveItemsQueued = function() {
return this._isTickUsed || this._haveDrainedQueues
}, u.prototype.fatalError = function(e, t) {
t ? (r.stderr.write("Fatal " + (e instanceof Error ? e.stack : e) + "\n"), r.exit(2)) : this.throwLater(e)
}, u.prototype.throwLater = function(e, t) {
if (1 === arguments.length && (t = e, e = function() {
throw t
}), "undefined" != typeof setTimeout) setTimeout(function() {
e(t)
}, 0);
else try {
this._schedule(function() {
e(t)
})
} catch (e) {
throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")
}
}, u.prototype.invokeLater = l, u.prototype.invoke = s, u.prototype.settlePromises = c, u.prototype._drainQueues = function() {
f(this._normalQueue), this._reset(), this._haveDrainedQueues = !0, f(this._lateQueue)
}, u.prototype._queueTick = function() {
this._isTickUsed || (this._isTickUsed = !0, this._schedule(this.drainQueues))
}, u.prototype._reset = function() {
this._isTickUsed = !1
}, t.exports = u, t.exports.firstLineError = o
}, {
"./queue": 26,
"./schedule": 29
}],
3: [function(e, t, n) {
"use strict";
t.exports = function(e, t, n, r) {
var o = !1,
i = function(e, t) {
this._reject(t)
},
a = function(e, t) {
t.promiseRejectionQueued = !0, t.bindingPromise._then(i, i, null, this, e)
},
u = function(e, t) {
50397184 & this._bitField || this._resolveCallback(t.target)
},
l = function(e, t) {
t.promiseRejectionQueued || this._reject(e)
};
e.prototype.bind = function(i) {
o || (o = !0, e.prototype._propagateFrom = r.propagateFromFunction(), e.prototype._boundValue = r.boundValueFunction());
var s = n(i),
c = new e(t);
c._propagateFrom(this, 1);
var f = this._target();
if (c._setBoundTo(s), s instanceof e) {
var d = {
promiseRejectionQueued: !1,
promise: c,
target: f,
bindingPromise: s
};
f._then(t, a, void 0, c, d), s._then(u, l, void 0, c, d), c._setOnCancel(s)
} else c._resolveCallback(f);
return c
}, e.prototype._setBoundTo = function(e) {
void 0 !== e ? (this._bitField = 2097152 | this._bitField, this._boundTo = e) : this._bitField = -2097153 & this._bitField
}, e.prototype._isBound = function() {
return !(2097152 & ~this._bitField)
}, e.bind = function(t, n) {
return e.resolve(n).bind(t)
}
}
}, {}],
4: [function(e, t, n) {
"use strict";
var r;
function o() {
try {
Promise === i && (Promise = r)
} catch (e) {}
return i
}
"undefined" != typeof Promise && (r = Promise);
var i = e("./promise")();
i.noConflict = o, t.exports = i
}, {
"./promise": 22
}],
5: [function(e, t, n) {
"use strict";
var r = Object.create;
if (r) {
var o = r(null),
i = r(null);
o[" size"] = i[" size"] = 0
}
t.exports = function(t) {
var n, r = e("./util"),
o = r.canEvaluate;
function i(e, n) {
var o;
if (null != e && (o = e[n]), "function" != typeof o) {
var i = "Object " + r.classString(e) + " has no method '" + r.toString(n) + "'";
throw new t.TypeError(i)
}
return o
}
function a(e) {
return i(e, this.pop()).apply(e, this)
}
function u(e) {
return e[this]
}
function l(e) {
var t = +this;
return t < 0 && (t = Math.max(0, t + e.length)), e[t]
}
r.isIdentifier, t.prototype.call = function(e) {
var t = [].slice.call(arguments, 1);
return t.push(e), this._then(a, void 0, void 0, t, void 0)
}, t.prototype.get = function(e) {
var t;
if ("number" == typeof e) t = l;
else if (o) {
var r = n(e);
t = null !== r ? r : u
} else t = u;
return this._then(t, void 0, void 0, e, void 0)
}
}
}, {
"./util": 36
}],
6: [function(e, t, n) {
"use strict";
t.exports = function(t, n, r, o) {
var i = e("./util"),
a = i.tryCatch,
u = i.errorObj,
l = t._async;
t.prototype.break = t.prototype.cancel = function() {
if (!o.cancellation()) return this._warn("cancellation is disabled");
for (var e = this, t = e; e._isCancellable();) {
if (!e._cancelBy(t)) {
t._isFollowing() ? t._followee().cancel() : t._cancelBranched();
break
}
var n = e._cancellationParent;
if (null == n || !n._isCancellable()) {
e._isFollowing() ? e._followee().cancel() : e._cancelBranched();
break
}
e._isFollowing() && e._followee().cancel(), e._setWillBeCancelled(), t = e, e = n
}
}, t.prototype._branchHasCancelled = function() {
this._branchesRemainingToCancel--
}, t.prototype._enoughBranchesHaveCancelled = function() {
return void 0 === this._branchesRemainingToCancel || this._branchesRemainingToCancel <= 0
}, t.prototype._cancelBy = function(e) {
return e === this ? (this._branchesRemainingToCancel = 0, this._invokeOnCancel(), !0) : (this._branchHasCancelled(), !!this._enoughBranchesHaveCancelled() && (this._invokeOnCancel(), !0))
}, t.prototype._cancelBranched = function() {
this._enoughBranchesHaveCancelled() && this._cancel()
}, t.prototype._cancel = function() {
this._isCancellable() && (this._setCancelled(), l.invoke(this._cancelPromises, this, void 0))
}, t.prototype._cancelPromises = function() {
this._length() > 0 && this._settlePromises()
}, t.prototype._unsetOnCancel = function() {
this._onCancelField = void 0
}, t.prototype._isCancellable = function() {
return this.isPending() && !this._isCancelled()
}, t.prototype.isCancellable = function() {
return this.isPending() && !this.isCancelled()
}, t.prototype._doInvokeOnCancel = function(e, t) {
if (i.isArray(e))
for (var n = 0; n < e.length; ++n) this._doInvokeOnCancel(e[n], t);
else if (void 0 !== e)
if ("function" == typeof e) {
if (!t) {
var r = a(e).call(this._boundValue());
r === u && (this._attachExtraTrace(r.e), l.throwLater(r.e))
}
} else e._resultCancelled(this)
}, t.prototype._invokeOnCancel = function() {
var e = this._onCancel();
this._unsetOnCancel(), l.invoke(this._doInvokeOnCancel, this, e)
}, t.prototype._invokeInternalOnCancel = function() {
this._isCancellable() && (this._doInvokeOnCancel(this._onCancel(), !0), this._unsetOnCancel())
}, t.prototype._resultCancelled = function() {
this.cancel()
}
}
}, {
"./util": 36
}],
7: [function(e, t, n) {
"use strict";
t.exports = function(t) {
var n = e("./util"),
r = e("./es5").keys,
o = n.tryCatch,
i = n.errorObj;
function a(e, a, u) {
return function(l) {
var s = u._boundValue();
e: for (var c = 0; c < e.length; ++c) {
var f = e[c];
if (f === Error || null != f && f.prototype instanceof Error) {
if (l instanceof f) return o(a).call(s, l)
} else if ("function" == typeof f) {
var d = o(f).call(s, l);
if (d === i) return d;
if (d) return o(a).call(s, l)
} else if (n.isObject(l)) {
for (var p = r(f), h = 0; h < p.length; ++h) {
var m = p[h];
if (f[m] != l[m]) continue e
}
return o(a).call(s, l)
}
}
return t
}
}
return a
}
}, {
"./es5": 13,
"./util": 36
}],
8: [function(e, t, n) {
"use strict";
t.exports = function(e) {
var t = !1,
n = [];
function r() {
this._trace = new r.CapturedTrace(i())
}
function o() {
if (t) return new r
}
function i() {
var e = n.length - 1;
if (e >= 0) return n[e]
}
return e.prototype._promiseCreated = function() {}, e.prototype._pushContext = function() {}, e.prototype._popContext = function() {
return null
}, e._peekContext = e.prototype._peekContext = function() {}, r.prototype._pushContext = function() {
void 0 !== this._trace && (this._trace._promiseCreated = null, n.push(this._trace))
}, r.prototype._popContext = function() {
if (void 0 !== this._trace) {
var e = n.pop(),
t = e._promiseCreated;
return e._promiseCreated = null, t
}
return null
}, r.CapturedTrace = null, r.create = o, r.deactivateLongStackTraces = function() {}, r.activateLongStackTraces = function() {
var n = e.prototype._pushContext,
o = e.prototype._popContext,
a = e._peekContext,
u = e.prototype._peekContext,
l = e.prototype._promiseCreated;
r.deactivateLongStackTraces = function() {
e.prototype._pushContext = n, e.prototype._popContext = o, e._peekContext = a, e.prototype._peekContext = u, e.prototype._promiseCreated = l, t = !1
}, t = !0, e.prototype._pushContext = r.prototype._pushContext, e.prototype._popContext = r.prototype._popContext, e._peekContext = e.prototype._peekContext = i, e.prototype._promiseCreated = function() {
var e = this._peekContext();
e && null == e._promiseCreated && (e._promiseCreated = this)
}
}, r
}
}, {}],
9: [function(e, t, n) {
"use strict";
t.exports = function(t, n, o, i) {
var a, u, l, s, c = t._async,
f = e("./errors").Warning,
d = e("./util"),
p = e("./es5"),
h = d.canAttachTrace,
m = /[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,
g = /\((?:timers\.js):\d+:\d+\)/,
y = /[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,
v = null,
b = null,
E = !1,
w = !(0 == d.env("BLUEBIRD_DEBUG")),
C = !(0 == d.env("BLUEBIRD_WARNINGS") || !w && !d.env("BLUEBIRD_WARNINGS")),
x = !(0 == d.env("BLUEBIRD_LONG_STACK_TRACES") || !w && !d.env("BLUEBIRD_LONG_STACK_TRACES")),
k = 0 != d.env("BLUEBIRD_W_FORGOTTEN_RETURN") && (C || !!d.env("BLUEBIRD_W_FORGOTTEN_RETURN"));
! function() {
var e = [];
function n() {
for (var t = 0; t < e.length; ++t) e[t]._notifyUnhandledRejection();
r()
}
function r() {
e.length = 0
}
s = function(t) {
e.push(t), setTimeout(n, 1)
}, p.defineProperty(t, "_unhandledRejectionCheck", {
value: n
}), p.defineProperty(t, "_unhandledRejectionClear", {
value: r
})
}(), t.prototype.suppressUnhandledRejections = function() {
var e = this._target();
e._bitField = -1048577 & e._bitField | 524288
}, t.prototype._ensurePossibleRejectionHandled = function() {
524288 & this._bitField || (this._setRejectionIsUnhandled(), s(this))
}, t.prototype._notifyUnhandledRejectionIsHandled = function() {
te("rejectionHandled", a, void 0, this)
}, t.prototype._setReturnedNonUndefined = function() {
this._bitField = 268435456 | this._bitField
}, t.prototype._returnedNonUndefined = function() {
return !!(268435456 & this._bitField)
}, t.prototype._notifyUnhandledRejection = function() {
if (this._isRejectionUnhandled()) {
var e = this._settledValue();
this._setUnhandledRejectionIsNotified(), te("unhandledRejection", u, e, this)
}
}, t.prototype._setUnhandledRejectionIsNotified = function() {
this._bitField = 262144 | this._bitField
}, t.prototype._unsetUnhandledRejectionIsNotified = function() {
this._bitField = -262145 & this._bitField
}, t.prototype._isUnhandledRejectionNotified = function() {
return (262144 & this._bitField) > 0
}, t.prototype._setRejectionIsUnhandled = function() {
this._bitField = 1048576 | this._bitField
}, t.prototype._unsetRejectionIsUnhandled = function() {
this._bitField = -1048577 & this._bitField, this._isUnhandledRejectionNotified() && (this._unsetUnhandledRejectionIsNotified(), this._notifyUnhandledRejectionIsHandled())
}, t.prototype._isRejectionUnhandled = function() {
return (1048576 & this._bitField) > 0
}, t.prototype._warn = function(e, t, n) {
return $(e, t, n || this)
}, t.onPossiblyUnhandledRejection = function(e) {
var n = t._getContext();
u = d.contextBind(n, e)
}, t.onUnhandledRejectionHandled = function(e) {
var n = t._getContext();
a = d.contextBind(n, e)
};
var _ = function() {};
t.longStackTraces = function() {
if (c.haveItemsQueued() && !fe.longStackTraces) throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");
if (!fe.longStackTraces && oe()) {
var e = t.prototype._captureStackTrace,
r = t.prototype._attachExtraTrace,
o = t.prototype._dereferenceTrace;
fe.longStackTraces = !0, _ = function() {
if (c.haveItemsQueued() && !fe.longStackTraces) throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");
t.prototype._captureStackTrace = e, t.prototype._attachExtraTrace = r, t.prototype._dereferenceTrace = o, n.deactivateLongStackTraces(), fe.longStackTraces = !1
}, t.prototype._captureStackTrace = H, t.prototype._attachExtraTrace = W, t.prototype._dereferenceTrace = q, n.activateLongStackTraces()
}
}, t.hasLongStackTraces = function() {
return fe.longStackTraces && oe()
};
var S = {
unhandledrejection: {
before: function() {
var e = d.global.onunhandledrejection;
return d.global.onunhandledrejection = null, e
},
after: function(e) {
d.global.onunhandledrejection = e
}
},
rejectionhandled: {
before: function() {
var e = d.global.onrejectionhandled;
return d.global.onrejectionhandled = null, e
},
after: function(e) {
d.global.onrejectionhandled = e
}
}
},
A = function() {
var e = function(e, t) {
if (!e) return !d.global.dispatchEvent(t);
var n;
try {
return n = e.before(), !d.global.dispatchEvent(t)
} finally {
e.after(n)
}
};
try {
if ("function" == typeof CustomEvent) {
var t = new CustomEvent("CustomEvent");
return d.global.dispatchEvent(t),
function(t, n) {
t = t.toLowerCase();
var r = new CustomEvent(t, {
detail: n,
cancelable: !0
});
return p.defineProperty(r, "promise", {
value: n.promise
}), p.defineProperty(r, "reason", {
value: n.reason
}), e(S[t], r)
}
}
return "function" == typeof Event ? (t = new Event("CustomEvent"), d.global.dispatchEvent(t), function(t, n) {
t = t.toLowerCase();
var r = new Event(t, {
cancelable: !0
});
return r.detail = n, p.defineProperty(r, "promise", {
value: n.promise
}), p.defineProperty(r, "reason", {
value: n.reason
}), e(S[t], r)
}) : ((t = document.createEvent("CustomEvent")).initCustomEvent("testingtheevent", !1, !0, {}), d.global.dispatchEvent(t), function(t, n) {
t = t.toLowerCase();
var r = document.createEvent("CustomEvent");
return r.initCustomEvent(t, !1, !0, n), e(S[t], r)
})
} catch (e) {}
return function() {
return !1
}
}(),
O = d.isNode ? function() {
return r.emit.apply(r, arguments)
} : d.global ? function(e) {
var t = "on" + e.toLowerCase(),
n = d.global[t];
return !!n && (n.apply(d.global, [].slice.call(arguments, 1)), !0)
} : function() {
return !1
};
function P(e, t) {
return {
promise: t
}
}
var D = {
promiseCreated: P,
promiseFulfilled: P,
promiseRejected: P,
promiseResolved: P,
promiseCancelled: P,
promiseChained: function(e, t, n) {
return {
promise: t,
child: n
}
},
warning: function(e, t) {
return {
warning: t
}
},
unhandledRejection: function(e, t, n) {
return {
reason: t,
promise: n
}
},
rejectionHandled: P
},
j = function(e) {
var t = !1;
try {
t = O.apply(null, arguments)
} catch (e) {
c.throwLater(e), t = !0
}
var n = !1;
try {
n = A(e, D[e].apply(null, arguments))
} catch (e) {
c.throwLater(e), n = !0
}
return n || t
};
function T() {
return !1
}
function F(e, t, n) {
var r = this;
try {
e(t, n, function(e) {
if ("function" != typeof e) throw new TypeError("onCancel must be a function, got: " + d.toString(e));
r._attachCancellationCallback(e)
})
} catch (e) {
return e
}
}
function N(e) {
if (!this._isCancellable()) return this;
var t = this._onCancel();
void 0 !== t ? d.isArray(t) ? t.push(e) : this._setOnCancel([t, e]) : this._setOnCancel(e)
}
function R() {
return this._onCancelField
}
function M(e) {
this._onCancelField = e
}
function I() {
this._cancellationParent = void 0, this._onCancelField = void 0
}
function L(e, t) {
if (1 & t) {
this._cancellationParent = e;
var n = e._branchesRemainingToCancel;
void 0 === n && (n = 0), e._branchesRemainingToCancel = n + 1
}
2 & t && e._isBound() && this._setBoundTo(e._boundTo)
}
function B(e, t) {
2 & t && e._isBound() && this._setBoundTo(e._boundTo)
}
t.config = function(e) {
if ("longStackTraces" in (e = Object(e)) && (e.longStackTraces ? t.longStackTraces() : !e.longStackTraces && t.hasLongStackTraces() && _()), "warnings" in e) {
var n = e.warnings;
fe.warnings = !!n, k = fe.warnings, d.isObject(n) && "wForgottenReturn" in n && (k = !!n.wForgottenReturn)
}
if ("cancellation" in e && e.cancellation && !fe.cancellation) {
if (c.haveItemsQueued()) throw new Error("cannot enable cancellation after promises are in use");
t.prototype._clearCancellationData = I, t.prototype._propagateFrom = L, t.prototype._onCancel = R, t.prototype._setOnCancel = M, t.prototype._attachCancellationCallback = N, t.prototype._execute = F, z = L, fe.cancellation = !0
}
if ("monitoring" in e && (e.monitoring && !fe.monitoring ? (fe.monitoring = !0, t.prototype._fireEvent = j) : !e.monitoring && fe.monitoring && (fe.monitoring = !1, t.prototype._fireEvent = T)), "asyncHooks" in e && d.nodeSupportsAsyncResource) {
var r = fe.asyncHooks,
a = !!e.asyncHooks;
r !== a && (fe.asyncHooks = a, a ? o() : i())
}
return t
}, t.prototype._fireEvent = T, t.prototype._execute = function(e, t, n) {
try {
e(t, n)
} catch (e) {
return e
}
}, t.prototype._onCancel = function() {}, t.prototype._setOnCancel = function(e) {}, t.prototype._attachCancellationCallback = function(e) {}, t.prototype._captureStackTrace = function() {}, t.prototype._attachExtraTrace = function() {}, t.prototype._dereferenceTrace = function() {}, t.prototype._clearCancellationData = function() {}, t.prototype._propagateFrom = function(e, t) {};
var z = B;
function U() {
var e = this._boundTo;
return void 0 !== e && e instanceof t ? e.isFulfilled() ? e.value() : void 0 : e
}
function H() {
this._trace = new se(this._peekContext())
}
function W(e, t) {
if (h(e)) {
var n = this._trace;
if (void 0 !== n && t && (n = n._parent), void 0 !== n) n.attachExtraTrace(e);
else if (!e.__stackCleaned__) {
var r = J(e);
d.notEnumerableProp(e, "stack", r.message + "\n" + r.stack.join("\n")), d.notEnumerableProp(e, "__stackCleaned__", !0)
}
}
}
function q() {
this._trace = void 0
}
function V(e, t, n, r, o) {
if (void 0 === e && null !== t && k) {
if (void 0 !== o && o._returnedNonUndefined()) return;
if (!(65535 & r._bitField)) return;
n && (n += " ");
var i = "",
a = "";
if (t._trace) {
for (var u = t._trace.stack.split("\n"), l = Z(u), s = l.length - 1; s >= 0; --s) {
var c = l[s];
if (!g.test(c)) {
var f = c.match(y);
f && (i = "at " + f[1] + ":" + f[2] + ":" + f[3] + " ");
break
}
}
if (l.length > 0) {
var d = l[0];
for (s = 0; s < u.length; ++s)
if (u[s] === d) {
s > 0 && (a = "\n" + u[s - 1]);
break
}
}
}
var p = "a promise was created in a " + n + "handler " + i + "but was not returned from it, see http://goo.gl/rRqMUw" + a;
r._warn(p, !0, t)
}
}
function G(e, t) {
var n = e + " is deprecated and will be removed in a future version.";
return t && (n += " Use " + t + " instead."), $(n)
}
function $(e, n, r) {
if (fe.warnings) {
var o, i = new f(e);
if (n) r._attachExtraTrace(i);
else if (fe.longStackTraces && (o = t._peekContext())) o.attachExtraTrace(i);
else {
var a = J(i);
i.stack = a.message + "\n" + a.stack.join("\n")
}
j("warning", i) || ee(i, "", !0)
}
}
function K(e, t) {
for (var n = 0; n < t.length - 1; ++n) t[n].push("From previous event:"), t[n] = t[n].join("\n");
return n < t.length && (t[n] = t[n].join("\n")), e + "\n" + t.join("\n")
}
function Y(e) {
for (var t = 0; t < e.length; ++t)(0 === e[t].length || t + 1 < e.length && e[t][0] === e[t + 1][0]) && (e.splice(t, 1), t--)
}
function X(e) {
for (var t = e[0], n = 1; n < e.length; ++n) {
for (var r = e[n], o = t.length - 1, i = t[o], a = -1, u = r.length - 1; u >= 0; --u)
if (r[u] === i) {
a = u;
break
} for (u = a; u >= 0; --u) {
var l = r[u];
if (t[o] !== l) break;
t.pop(), o--
}
t = r
}
}
function Z(e) {
for (var t = [], n = 0; n < e.length; ++n) {
var r = e[n],
o = " (No stack trace)" === r || v.test(r),
i = o && ie(r);
o && !i && (E && " " !== r.charAt(0) && (r = " " + r), t.push(r))
}
return t
}
function Q(e) {
for (var t = e.stack.replace(/\s+$/g, "").split("\n"), n = 0; n < t.length; ++n) {
var r = t[n];
if (" (No stack trace)" === r || v.test(r)) break
}
return n > 0 && "SyntaxError" != e.name && (t = t.slice(n)), t
}
function J(e) {
var t = e.stack,
n = e.toString();
return t = "string" == typeof t && t.length > 0 ? Q(e) : [" (No stack trace)"], {
message: n,
stack: "SyntaxError" == e.name ? t : Z(t)
}
}
function ee(e, t, n) {
if ("undefined" != typeof console) {
var r;
if (d.isObject(e)) {
var o = e.stack;
r = t + b(o, e)
} else r = t + String(e);
"function" == typeof l ? l(r, n) : "function" != typeof console.log && "object" != typeof console.log || console.log(r)
}
}
function te(e, t, n, r) {
var o = !1;
try {
"function" == typeof t && (o = !0, "rejectionHandled" === e ? t(r) : t(n, r))
} catch (e) {
c.throwLater(e)
}
"unhandledRejection" === e ? j(e, n, r) || o || ee(n, "Unhandled rejection ") : j(e, r)
}
function ne(e) {
var t;
if ("function" == typeof e) t = "[function " + (e.name || "anonymous") + "]";
else {
if (t = e && "function" == typeof e.toString ? e.toString() : d.toString(e), /\[object [a-zA-Z0-9$_]+\]/.test(t)) try {
t = JSON.stringify(e)
} catch (e) {}
0 === t.length && (t = "(empty array)")
}
return "(<" + re(t) + ">, no stack trace)"
}
function re(e) {
var t = 41;
return e.length < t ? e : e.substr(0, t - 3) + "..."
}
function oe() {
return "function" == typeof ce
}
var ie = function() {
return !1
},
ae = /[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;
function ue(e) {
var t = e.match(ae);
if (t) return {
fileName: t[1],
line: parseInt(t[2], 10)
}
}
function le(e, t) {
if (oe()) {
for (var n, r, o = (e.stack || "").split("\n"), i = (t.stack || "").split("\n"), a = -1, u = -1, l = 0; l < o.length; ++l)
if (s = ue(o[l])) {
n = s.fileName, a = s.line;
break
} for (l = 0; l < i.length; ++l) {
var s;
if (s = ue(i[l])) {
r = s.fileName, u = s.line;
break
}
}
a < 0 || u < 0 || !n || !r || n !== r || a >= u || (ie = function(e) {
if (m.test(e)) return !0;
var t = ue(e);
return !!(t && t.fileName === n && a <= t.line && t.line <= u)
})
}
}
function se(e) {
this._parent = e, this._promisesCreated = 0;
var t = this._length = 1 + (void 0 === e ? 0 : e._length);
ce(this, se), t > 32 && this.uncycle()
}
d.inherits(se, Error), n.CapturedTrace = se, se.prototype.uncycle = function() {
var e = this._length;
if (!(e < 2)) {
for (var t = [], n = {}, r = 0, o = this; void 0 !== o; ++r) t.push(o), o = o._parent;
for (r = (e = this._length = r) - 1; r >= 0; --r) {
var i = t[r].stack;
void 0 === n[i] && (n[i] = r)
}
for (r = 0; r < e; ++r) {
var a = n[t[r].stack];
if (void 0 !== a && a !== r) {
a > 0 && (t[a - 1]._parent = void 0, t[a - 1]._length = 1), t[r]._parent = void 0, t[r]._length = 1;
var u = r > 0 ? t[r - 1] : this;
a < e - 1 ? (u._parent = t[a + 1], u._parent.uncycle(), u._length = u._parent._length + 1) : (u._parent = void 0, u._length = 1);
for (var l = u._length + 1, s = r - 2; s >= 0; --s) t[s]._length = l, l++;
return
}
}
}
}, se.prototype.attachExtraTrace = function(e) {
if (!e.__stackCleaned__) {
this.uncycle();
for (var t = J(e), n = t.message, r = [t.stack], o = this; void 0 !== o;) r.push(Z(o.stack.split("\n"))), o = o._parent;
X(r), Y(r), d.notEnumerableProp(e, "stack", K(n, r)), d.notEnumerableProp(e, "__stackCleaned__", !0)
}
};
var ce = function() {
var e = /^\s*at\s*/,
t = function(e, t) {
return "string" == typeof e ? e : void 0 !== t.name && void 0 !== t.message ? t.toString() : ne(t)
};
if ("number" == typeof Error.stackTraceLimit && "function" == typeof Error.captureStackTrace) {
Error.stackTraceLimit += 6, v = e, b = t;
var n = Error.captureStackTrace;
return ie = function(e) {
return m.test(e)
},
function(e, t) {
Error.stackTraceLimit += 6, n(e, t), Error.stackTraceLimit -= 6
}
}
var r, o = new Error;
if ("string" == typeof o.stack && o.stack.split("\n")[0].indexOf("stackDetection@") >= 0) return v = /@/, b = t, E = !0,
function(e) {
e.stack = (new Error).stack
};
try {
throw new Error
} catch (e) {
r = "stack" in e
}
return !("stack" in o) && r && "number" == typeof Error.stackTraceLimit ? (v = e, b = t, function(e) {
Error.stackTraceLimit += 6;
try {
throw new Error
} catch (t) {
e.stack = t.stack
}
Error.stackTraceLimit -= 6
}) : (b = function(e, t) {
return "string" == typeof e ? e : "object" != typeof t && "function" != typeof t || void 0 === t.name || void 0 === t.message ? ne(t) : t.toString()
}, null)
}();
"undefined" != typeof console && void 0 !== console.warn && (l = function(e) {
console.warn(e)
}, d.isNode && r.stderr.isTTY ? l = function(e, t) {
var n = t ? "\x1b[33m" : "\x1b[31m";
console.warn(n + e + "\x1b[0m\n")
} : d.isNode || "string" != typeof(new Error).stack || (l = function(e, t) {
console.warn("%c" + e, t ? "color: darkorange" : "color: red")
}));
var fe = {
warnings: C,
longStackTraces: !1,
cancellation: !1,
monitoring: !1,
asyncHooks: !1
};
return x && t.longStackTraces(), {
asyncHooks: function() {
return fe.asyncHooks
},
longStackTraces: function() {
return fe.longStackTraces
},
warnings: function() {
return fe.warnings
},
cancellation: function() {
return fe.cancellation
},
monitoring: function() {
return fe.monitoring
},
propagateFromFunction: function() {
return z
},
boundValueFunction: function() {
return U
},
checkForgottenReturns: V,
setBounds: le,
warn: $,
deprecated: G,
CapturedTrace: se,
fireDomEvent: A,
fireGlobalEvent: O
}
}
}, {
"./errors": 12,
"./es5": 13,
"./util": 36
}],
10: [function(e, t, n) {
"use strict";
t.exports = function(e) {
function t() {
return this.value
}
function n() {
throw this.reason
}
e.prototype.return = e.prototype.thenReturn = function(n) {
return n instanceof e && n.suppressUnhandledRejections(), this._then(t, void 0, void 0, {
value: n
}, void 0)
}, e.prototype.throw = e.prototype.thenThrow = function(e) {
return this._then(n, void 0, void 0, {
reason: e
}, void 0)
}, e.prototype.catchThrow = function(e) {
if (arguments.length <= 1) return this._then(void 0, n, void 0, {
reason: e
}, void 0);
var t = arguments[1],
r = function() {
throw t
};
return this.caught(e, r)
}, e.prototype.catchReturn = function(n) {
if (arguments.length <= 1) return n instanceof e && n.suppressUnhandledRejections(), this._then(void 0, t, void 0, {
value: n
}, void 0);
var r = arguments[1];
r instanceof e && r.suppressUnhandledRejections();
var o = function() {
return r
};
return this.caught(n, o)
}
}
}, {}],
11: [function(e, t, n) {
"use strict";
t.exports = function(e, t) {
var n = e.reduce,
r = e.all;
function o() {
return r(this)
}
function i(e, r) {
return n(e, r, t, t)
}
e.prototype.each = function(e) {
return n(this, e, t, 0)._then(o, void 0, void 0, this, void 0)
}, e.prototype.mapSeries = function(e) {
return n(this, e, t, t)
}, e.each = function(e, r) {
return n(e, r, t, 0)._then(o, void 0, void 0, e, void 0)
}, e.mapSeries = i
}
}, {}],
12: [function(e, t, n) {
"use strict";
var r, o, i = e("./es5"),
a = i.freeze,
u = e("./util"),
l = u.inherits,
s = u.notEnumerableProp;
function c(e, t) {
function n(r) {
if (!(this instanceof n)) return new n(r);
s(this, "message", "string" == typeof r ? r : t), s(this, "name", e), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : Error.call(this)
}
return l(n, Error), n
}
var f = c("Warning", "warning"),
d = c("CancellationError", "cancellation error"),
p = c("TimeoutError", "timeout error"),
h = c("AggregateError", "aggregate error");
try {
r = TypeError, o = RangeError
} catch (e) {
r = c("TypeError", "type error"), o = c("RangeError", "range error")
}
for (var m = "join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "), g = 0; g < m.length; ++g) "function" == typeof Array.prototype[m[g]] && (h.prototype[m[g]] = Array.prototype[m[g]]);
i.defineProperty(h.prototype, "length", {
value: 0,
configurable: !1,
writable: !0,
enumerable: !0
}), h.prototype.isOperational = !0;
var y = 0;
function v(e) {
if (!(this instanceof v)) return new v(e);
s(this, "name", "OperationalError"), s(this, "message", e), this.cause = e, this.isOperational = !0, e instanceof Error ? (s(this, "message", e.message), s(this, "stack", e.stack)) : Error.captureStackTrace && Error.captureStackTrace(this, this.constructor)
}
h.prototype.toString = function() {
var e = Array(4 * y + 1).join(" "),
t = "\n" + e + "AggregateError of:\n";
y++, e = Array(4 * y + 1).join(" ");
for (var n = 0; n < this.length; ++n) {
for (var r = this[n] === this ? "[Circular AggregateError]" : this[n] + "", o = r.split("\n"), i = 0; i < o.length; ++i) o[i] = e + o[i];
t += (r = o.join("\n")) + "\n"
}
return y--, t
}, l(v, Error);
var b = Error.__BluebirdErrorTypes__;
b || (b = a({
CancellationError: d,
TimeoutError: p,
OperationalError: v,
RejectionError: v,
AggregateError: h
}), i.defineProperty(Error, "__BluebirdErrorTypes__", {
value: b,
writable: !1,
enumerable: !1,
configurable: !1
})), t.exports = {
Error,
TypeError: r,
RangeError: o,
CancellationError: b.CancellationError,
OperationalError: b.OperationalError,
TimeoutError: b.TimeoutError,
AggregateError: b.AggregateError,
Warning: f
}
}, {
"./es5": 13,
"./util": 36
}],
13: [function(e, t, n) {
var r = function() {
"use strict";
return void 0 === this
}();
if (r) t.exports = {
freeze: Object.freeze,
defineProperty: Object.defineProperty,
getDescriptor: Object.getOwnPropertyDescriptor,
keys: Object.keys,
names: Object.getOwnPropertyNames,
getPrototypeOf: Object.getPrototypeOf,
isArray: Array.isArray,
isES5: r,
propertyIsWritable: function(e, t) {
var n = Object.getOwnPropertyDescriptor(e, t);
return !(n && !n.writable && !n.set)
}
};
else {
var o = {}.hasOwnProperty,
i = {}.toString,
a = {}.constructor.prototype,
u = function(e) {
var t = [];
for (var n in e) o.call(e, n) && t.push(n);
return t
},
l = function(e, t) {
return {
value: e[t]
}
},
s = function(e, t, n) {
return e[t] = n.value, e
},
c = function(e) {
return e
},
f = function(e) {
try {
return Object(e).constructor.prototype
} catch (e) {
return a
}
},
d = function(e) {
try {
return "[object Array]" === i.call(e)
} catch (e) {
return !1
}
};
t.exports = {
isArray: d,
keys: u,
names: u,
defineProperty: s,
getDescriptor: l,
freeze: c,
getPrototypeOf: f,
isES5: r,
propertyIsWritable: function() {
return !0
}
}
}
}, {}],
14: [function(e, t, n) {
"use strict";
t.exports = function(e, t) {
var n = e.map;
e.prototype.filter = function(e, r) {
return n(this, e, r, t)
}, e.filter = function(e, r, o) {
return n(e, r, o, t)
}
}
}, {}],
15: [function(e, t, n) {
"use strict";
t.exports = function(t, n, r) {
var o = e("./util"),
i = t.CancellationError,
a = o.errorObj,
u = e("./catch_filter")(r);
function l(e, t, n) {
this.promise = e, this.type = t, this.handler = n, this.called = !1, this.cancelPromise = null
}
function s(e) {
this.finallyHandler = e
}
function c(e, t) {
return null != e.cancelPromise && (arguments.length > 1 ? e.cancelPromise._reject(t) : e.cancelPromise._cancel(), e.cancelPromise = null, !0)
}
function f() {
return p.call(this, this.promise._target()._settledValue())
}
function d(e) {
if (!c(this, e)) return a.e = e, a
}
function p(e) {
var o = this.promise,
u = this.handler;
if (!this.called) {
this.called = !0;
var l = this.isFinallyHandler() ? u.call(o._boundValue()) : u.call(o._boundValue(), e);
if (l === r) return l;
if (void 0 !== l) {
o._setReturnedNonUndefined();
var p = n(l, o);
if (p instanceof t) {
if (null != this.cancelPromise) {
if (p._isCancelled()) {
var h = new i("late cancellation observer");
return o._attachExtraTrace(h), a.e = h, a
}
p.isPending() && p._attachCancellationCallback(new s(this))
}
return p._then(f, d, void 0, this, void 0)
}
}
}
return o.isRejected() ? (c(this), a.e = e, a) : (c(this), e)
}
return l.prototype.isFinallyHandler = function() {
return 0 === this.type
}, s.prototype._resultCancelled = function() {
c(this.finallyHandler)
}, t.prototype._passThrough = function(e, t, n, r) {
return "function" != typeof e ? this.then() : this._then(n, r, void 0, new l(this, t, e), void 0)
}, t.prototype.lastly = t.prototype.finally = function(e) {
return this._passThrough(e, 0, p, p)
}, t.prototype.tap = function(e) {
return this._passThrough(e, 1, p)
}, t.prototype.tapCatch = function(e) {
var n = arguments.length;
if (1 === n) return this._passThrough(e, 1, void 0, p);
var r, i = new Array(n - 1),
a = 0;
for (r = 0; r < n - 1; ++r) {
var l = arguments[r];
if (!o.isObject(l)) return t.reject(new TypeError("tapCatch statement predicate: expecting an object but got " + o.classString(l)));
i[a++] = l
}
i.length = a;
var s = arguments[r];
return this._passThrough(u(i, s, this), 1, void 0, p)
}, l
}
}, {
"./catch_filter": 7,
"./util": 36
}],
16: [function(e, t, n) {
"use strict";
t.exports = function(t, n, r, o, i, a) {
var u = e("./errors").TypeError,
l = e("./util"),
s = l.errorObj,
c = l.tryCatch,
f = [];
function d(e, n, r) {
for (var i = 0; i < n.length; ++i) {
r._pushContext();
var a = c(n[i])(e);
if (r._popContext(), a === s) {
r._pushContext();
var u = t.reject(s.e);
return r._popContext(), u
}
var l = o(a, r);
if (l instanceof t) return l
}
return null
}
function p(e, n, o, i) {
if (a.cancellation()) {
var u = new t(r),
l = this._finallyPromise = new t(r);
this._promise = u.lastly(function() {
return l
}), u._captureStackTrace(), u._setOnCancel(this)
} else(this._promise = new t(r))._captureStackTrace();
this._stack = i, this._generatorFunction = e, this._receiver = n, this._generator = void 0, this._yieldHandlers = "function" == typeof o ? [o].concat(f) : f, this._yieldedPromise = null, this._cancellationPhase = !1
}
l.inherits(p, i), p.prototype._isResolved = function() {
return null === this._promise
}, p.prototype._cleanup = function() {
this._promise = this._generator = null, a.cancellation() && null !== this._finallyPromise && (this._finallyPromise._fulfill(), this._finallyPromise = null)
}, p.prototype._promiseCancelled = function() {
if (!this._isResolved()) {
var e;
if (void 0 !== this._generator.return) this._promise._pushContext(), e = c(this._generator.return).call(this._generator, void 0), this._promise._popContext();
else {
var n = new t.CancellationError("generator .return() sentinel");
t.coroutine.returnSentinel = n, this._promise._attachExtraTrace(n), this._promise._pushContext(), e = c(this._generator.throw).call(this._generator, n), this._promise._popContext()
}
this._cancellationPhase = !0, this._yieldedPromise = null, this._continue(e)
}
}, p.prototype._promiseFulfilled = function(e) {
this._yieldedPromise = null, this._promise._pushContext();
var t = c(this._generator.next).call(this._generator, e);
this._promise._popContext(), this._continue(t)
}, p.prototype._promiseRejected = function(e) {
this._yieldedPromise = null, this._promise._attachExtraTrace(e), this._promise._pushContext();
var t = c(this._generator.throw).call(this._generator, e);
this._promise._popContext(), this._continue(t)
}, p.prototype._resultCancelled = function() {
if (this._yieldedPromise instanceof t) {
var e = this._yieldedPromise;
this._yieldedPromise = null, e.cancel()
}
}, p.prototype.promise = function() {
return this._promise
}, p.prototype._run = function() {
this._generator = this._generatorFunction.call(this._receiver), this._receiver = this._generatorFunction = void 0, this._promiseFulfilled(void 0)
}, p.prototype._continue = function(e) {
var n = this._promise;
if (e === s) return this._cleanup(), this._cancellationPhase ? n.cancel() : n._rejectCallback(e.e, !1);
var r = e.value;
if (!0 === e.done) return this._cleanup(), this._cancellationPhase ? n.cancel() : n._resolveCallback(r);
var i = o(r, this._promise);
if (i instanceof t || null !== (i = d(i, this._yieldHandlers, this._promise))) {
var a = (i = i._target())._bitField;
50397184 & a ? 33554432 & a ? t._async.invoke(this._promiseFulfilled, this, i._value()) : 16777216 & a ? t._async.invoke(this._promiseRejected, this, i._reason()) : this._promiseCancelled() : (this._yieldedPromise = i, i._proxy(this, null))
} else this._promiseRejected(new u("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s", String(r)) + "From coroutine:\n" + this._stack.split("\n").slice(1, -7).join("\n")))
}, t.coroutine = function(e, t) {
if ("function" != typeof e) throw new u("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");
var n = Object(t).yieldHandler,
r = p,
o = (new Error).stack;
return function() {
var t = e.apply(this, arguments),
i = new r(void 0, void 0, n, o),
a = i.promise();
return i._generator = t, i._promiseFulfilled(void 0), a
}
}, t.coroutine.addYieldHandler = function(e) {
if ("function" != typeof e) throw new u("expecting a function but got " + l.classString(e));
f.push(e)
}, t.spawn = function(e) {
if (a.deprecated("Promise.spawn()", "Promise.coroutine()"), "function" != typeof e) return n("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");
var r = new p(e, this),
o = r.promise();
return r._run(t.spawn), o
}
}
}, {
"./errors": 12,
"./util": 36
}],
17: [function(e, t, n) {
"use strict";
t.exports = function(t, n, r, o, i) {
var a = e("./util");
a.canEvaluate, a.tryCatch, a.errorObj, t.join = function() {
var e, t = arguments.length - 1;
t > 0 && "function" == typeof arguments[t] && (e = arguments[t]);
var r = [].slice.call(arguments);
e && r.pop();
var o = new n(r).promise();
return void 0 !== e ? o.spread(e) : o
}
}
}, {
"./util": 36
}],
18: [function(e, t, n) {
"use strict";
t.exports = function(t, n, r, o, i, a) {
var u = e("./util"),
l = u.tryCatch,
s = u.errorObj,
c = t._async;
function f(e, n, r, o) {
this.constructor$(e), this._promise._captureStackTrace();
var a = t._getContext();
if (this._callback = u.contextBind(a, n), this._preservedValues = o === i ? new Array(this.length()) : null, this._limit = r, this._inFlight = 0, this._queue = [], c.invoke(this._asyncInit, this, void 0), u.isArray(e))
for (var l = 0; l < e.length; ++l) {
var s = e[l];
s instanceof t && s.suppressUnhandledRejections()
}
}
function d(e, n, o, i) {
if ("function" != typeof n) return r("expecting a function but got " + u.classString(n));
var a = 0;
if (void 0 !== o) {
if ("object" != typeof o || null === o) return t.reject(new TypeError("options argument must be an object but it is " + u.classString(o)));
if ("number" != typeof o.concurrency) return t.reject(new TypeError("'concurrency' must be a number but it is " + u.classString(o.concurrency)));
a = o.concurrency
}
return new f(e, n, a = "number" == typeof a && isFinite(a) && a >= 1 ? a : 0, i).promise()
}
u.inherits(f, n), f.prototype._asyncInit = function() {
this._init$(void 0, -2)
}, f.prototype._init = function() {}, f.prototype._promiseFulfilled = function(e, n) {
var r = this._values,
i = this.length(),
u = this._preservedValues,
c = this._limit;
if (n < 0) {
if (r[n = -1 * n - 1] = e, c >= 1 && (this._inFlight--, this._drainQueue(), this._isResolved())) return !0
} else {
if (c >= 1 && this._inFlight >= c) return r[n] = e, this._queue.push(n), !1;
null !== u && (u[n] = e);
var f = this._promise,
d = this._callback,
p = f._boundValue();
f._pushContext();
var h = l(d).call(p, e, n, i),
m = f._popContext();
if (a.checkForgottenReturns(h, m, null !== u ? "Promise.filter" : "Promise.map", f), h === s) return this._reject(h.e), !0;
var g = o(h, this._promise);
if (g instanceof t) {
var y = (g = g._target())._bitField;
if (!(50397184 & y)) return c >= 1 && this._inFlight++, r[n] = g, g._proxy(this, -1 * (n + 1)), !1;
if (!(33554432 & y)) return 16777216 & y ? (this._reject(g._reason()), !0) : (this._cancel(), !0);
h = g._value()
}
r[n] = h
}
return ++this._totalResolved >= i && (null !== u ? this._filter(r, u) : this._resolve(r), !0)
}, f.prototype._drainQueue = function() {
for (var e = this._queue, t = this._limit, n = this._values; e.length > 0 && this._inFlight < t;) {
if (this._isResolved()) return;
var r = e.pop();
this._promiseFulfilled(n[r], r)
}
}, f.prototype._filter = function(e, t) {
for (var n = t.length, r = new Array(n), o = 0, i = 0; i < n; ++i) e[i] && (r[o++] = t[i]);
r.length = o, this._resolve(r)
}, f.prototype.preservedValues = function() {
return this._preservedValues
}, t.prototype.map = function(e, t) {
return d(this, e, t, null)
}, t.map = function(e, t, n, r) {
return d(e, t, n, r)
}
}
}, {
"./util": 36
}],
19: [function(e, t, n) {
"use strict";
t.exports = function(t, n, r, o, i) {
var a = e("./util"),
u = a.tryCatch;
t.method = function(e) {
if ("function" != typeof e) throw new t.TypeError("expecting a function but got " + a.classString(e));
return function() {
var r = new t(n);
r._captureStackTrace(), r._pushContext();
var o = u(e).apply(this, arguments),
a = r._popContext();
return i.checkForgottenReturns(o, a, "Promise.method", r), r._resolveFromSyncValue(o), r
}
}, t.attempt = t.try = function(e) {
if ("function" != typeof e) return o("expecting a function but got " + a.classString(e));
var r, l = new t(n);
if (l._captureStackTrace(), l._pushContext(), arguments.length > 1) {
i.deprecated("calling Promise.try with more than 1 argument");
var s = arguments[1],
c = arguments[2];
r = a.isArray(s) ? u(e).apply(c, s) : u(e).call(c, s)
} else r = u(e)();
var f = l._popContext();
return i.checkForgottenReturns(r, f, "Promise.try", l), l._resolveFromSyncValue(r), l
}, t.prototype._resolveFromSyncValue = function(e) {
e === a.errorObj ? this._rejectCallback(e.e, !1) : this._resolveCallback(e, !0)
}
}
}, {
"./util": 36
}],
20: [function(e, t, n) {
"use strict";
var r = e("./util"),
o = r.maybeWrapAsError,
i = e("./errors").OperationalError,
a = e("./es5");
function u(e) {
return e instanceof Error && a.getPrototypeOf(e) === Error.prototype
}
var l = /^(?:name|message|stack|cause)$/;
function s(e) {
var t;
if (u(e)) {
(t = new i(e)).name = e.name, t.message = e.message, t.stack = e.stack;
for (var n = a.keys(e), o = 0; o < n.length; ++o) {
var s = n[o];
l.test(s) || (t[s] = e[s])
}
return t
}
return r.markAsOriginatingFromRejection(e), e
}
function c(e, t) {
return function(n, r) {
if (null !== e) {
if (n) {
var i = s(o(n));
e._attachExtraTrace(i), e._reject(i)
} else if (t) {
var a = [].slice.call(arguments, 1);
e._fulfill(a)
} else e._fulfill(r);
e = null
}
}
}
t.exports = c
}, {
"./errors": 12,
"./es5": 13,
"./util": 36
}],
21: [function(e, t, n) {
"use strict";
t.exports = function(t) {
var n = e("./util"),
r = t._async,
o = n.tryCatch,
i = n.errorObj;
function a(e, t) {
var a = this;
if (!n.isArray(e)) return u.call(a, e, t);
var l = o(t).apply(a._boundValue(), [null].concat(e));
l === i && r.throwLater(l.e)
}
function u(e, t) {
var n = this._boundValue(),
a = void 0 === e ? o(t).call(n, null) : o(t).call(n, null, e);
a === i && r.throwLater(a.e)
}
function l(e, t) {
var n = this;
if (!e) {
var a = new Error(e + "");
a.cause = e, e = a
}
var u = o(t).call(n._boundValue(), e);
u === i && r.throwLater(u.e)
}
t.prototype.asCallback = t.prototype.nodeify = function(e, t) {
if ("function" == typeof e) {
var n = u;
void 0 !== t && Object(t).spread && (n = a), this._then(n, l, void 0, this, e)
}
return this
}
}
}, {
"./util": 36
}],
22: [function(e, t, n) {
"use strict";
t.exports = function() {
var n = function() {
return new w("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")
},
o = function() {
return new I.PromiseInspection(this._target())
},
i = function(e) {
return I.reject(new w(e))
};
function a() {}
var u = {},
l = e("./util");
l.setReflectHandler(o);
var s = function() {
var e = r.domain;
return void 0 === e ? null : e
},
c = function() {
return null
},
f = function() {
return {
domain: s(),
async: null
}
},
d = l.isNode && l.nodeSupportsAsyncResource ? e("async_hooks").AsyncResource : null,
p = function() {
return {
domain: s(),
async: new d("Bluebird::Promise")
}
},
h = l.isNode ? f : c;
l.notEnumerableProp(I, "_getContext", h);
var m = function() {
h = p, l.notEnumerableProp(I, "_getContext", p)
},
g = function() {
h = f, l.notEnumerableProp(I, "_getContext", f)
},
y = e("./es5"),
v = e("./async"),
b = new v;
y.defineProperty(I, "_async", {
value: b
});
var E = e("./errors"),
w = I.TypeError = E.TypeError;
I.RangeError = E.RangeError;
var C = I.CancellationError = E.CancellationError;
I.TimeoutError = E.TimeoutError, I.OperationalError = E.OperationalError, I.RejectionError = E.OperationalError, I.AggregateError = E.AggregateError;
var x = function() {},
k = {},
_ = {},
S = e("./thenables")(I, x),
A = e("./promise_array")(I, x, S, i, a),
O = e("./context")(I),
P = O.create,
D = e("./debuggability")(I, O, m, g),
j = (D.CapturedTrace, e("./finally")(I, S, _)),
T = e("./catch_filter")(_),
F = e("./nodeback"),
N = l.errorObj,
R = l.tryCatch;
function M(e, t) {
if (null == e || e.constructor !== I) throw new w("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n");
if ("function" != typeof t) throw new w("expecting a function but got " + l.classString(t))
}
function I(e) {
e !== x && M(this, e), this._bitField = 0, this._fulfillmentHandler0 = void 0, this._rejectionHandler0 = void 0, this._promise0 = void 0, this._receiver0 = void 0, this._resolveFromExecutor(e), this._promiseCreated(), this._fireEvent("promiseCreated", this)
}
function L(e) {
this.promise._resolveCallback(e)
}
function B(e) {
this.promise._rejectCallback(e, !1)
}
function z(e) {
var t = new I(x);
t._fulfillmentHandler0 = e, t._rejectionHandler0 = e, t._promise0 = e, t._receiver0 = e
}
return I.prototype.toString = function() {
return "[object Promise]"
}, I.prototype.caught = I.prototype.catch = function(e) {
var t = arguments.length;
if (t > 1) {
var n, r = new Array(t - 1),
o = 0;
for (n = 0; n < t - 1; ++n) {
var a = arguments[n];
if (!l.isObject(a)) return i("Catch statement predicate: expecting an object but got " + l.classString(a));
r[o++] = a
}
if (r.length = o, "function" != typeof(e = arguments[n])) throw new w("The last argument to .catch() must be a function, got " + l.toString(e));
return this.then(void 0, T(r, e, this))
}
return this.then(void 0, e)
}, I.prototype.reflect = function() {
return this._then(o, o, void 0, this, void 0)
}, I.prototype.then = function(e, t) {
if (D.warnings() && arguments.length > 0 && "function" != typeof e && "function" != typeof t) {
var n = ".then() only accepts functions but was passed: " + l.classString(e);
arguments.length > 1 && (n += ", " + l.classString(t)), this._warn(n)
}
return this._then(e, t, void 0, void 0, void 0)
}, I.prototype.done = function(e, t) {
this._then(e, t, void 0, void 0, void 0)._setIsFinal()
}, I.prototype.spread = function(e) {
return "function" != typeof e ? i("expecting a function but got " + l.classString(e)) : this.all()._then(e, void 0, void 0, k, void 0)
}, I.prototype.toJSON = function() {
var e = {
isFulfilled: !1,
isRejected: !1,
fulfillmentValue: void 0,
rejectionReason: void 0
};
return this.isFulfilled() ? (e.fulfillmentValue = this.value(), e.isFulfilled = !0) : this.isRejected() && (e.rejectionReason = this.reason(), e.isRejected = !0), e
}, I.prototype.all = function() {
return arguments.length > 0 && this._warn(".all() was passed arguments but it does not take any"), new A(this).promise()
}, I.prototype.error = function(e) {
return this.caught(l.originatesFromRejection, e)
}, I.getNewLibraryCopy = t.exports, I.is = function(e) {
return e instanceof I
}, I.fromNode = I.fromCallback = function(e) {
var t = new I(x);
t._captureStackTrace();
var n = arguments.length > 1 && !!Object(arguments[1]).multiArgs,
r = R(e)(F(t, n));
return r === N && t._rejectCallback(r.e, !0), t._isFateSealed() || t._setAsyncGuaranteed(), t
}, I.all = function(e) {
return new A(e).promise()
}, I.cast = function(e) {
var t = S(e);
return t instanceof I || ((t = new I(x))._captureStackTrace(), t._setFulfilled(), t._rejectionHandler0 = e), t
}, I.resolve = I.fulfilled = I.cast, I.reject = I.rejected = function(e) {
var t = new I(x);
return t._captureStackTrace(), t._rejectCallback(e, !0), t
}, I.setScheduler = function(e) {
if ("function" != typeof e) throw new w("expecting a function but got " + l.classString(e));
return b.setScheduler(e)
}, I.prototype._then = function(e, t, n, r, o) {
var i = void 0 !== o,
a = i ? o : new I(x),
u = this._target(),
s = u._bitField;
i || (a._propagateFrom(this, 3), a._captureStackTrace(), void 0 === r && 2097152 & this._bitField && (r = 50397184 & s ? this._boundValue() : u === this ? void 0 : this._boundTo), this._fireEvent("promiseChained", this, a));
var c = h();
if (50397184 & s) {
var f, d, p = u._settlePromiseCtx;
33554432 & s ? (d = u._rejectionHandler0, f = e) : 16777216 & s ? (d = u._fulfillmentHandler0, f = t, u._unsetRejectionIsUnhandled()) : (p = u._settlePromiseLateCancellationObserver, d = new C("late cancellation observer"), u._attachExtraTrace(d), f = t), b.invoke(p, u, {
handler: l.contextBind(c, f),
promise: a,
receiver: r,
value: d
})
} else u._addCallbacks(e, t, a, r, c);
return a
}, I.prototype._length = function() {
return 65535 & this._bitField
}, I.prototype._isFateSealed = function() {
return !!(117506048 & this._bitField)
}, I.prototype._isFollowing = function() {
return !(67108864 & ~this._bitField)
}, I.prototype._setLength = function(e) {
this._bitField = -65536 & this._bitField | 65535 & e
}, I.prototype._setFulfilled = function() {
this._bitField = 33554432 | this._bitField, this._fireEvent("promiseFulfilled", this)
}, I.prototype._setRejected = function() {
this._bitField = 16777216 | this._bitField, this._fireEvent("promiseRejected", this)
}, I.prototype._setFollowing = function() {
this._bitField = 67108864 | this._bitField, this._fireEvent("promiseResolved", this)
}, I.prototype._setIsFinal = function() {
this._bitField = 4194304 | this._bitField
}, I.prototype._isFinal = function() {
return (4194304 & this._bitField) > 0
}, I.prototype._unsetCancelled = function() {
this._bitField = -65537 & this._bitField
}, I.prototype._setCancelled = function() {
this._bitField = 65536 | this._bitField, this._fireEvent("promiseCancelled", this)
}, I.prototype._setWillBeCancelled = function() {
this._bitField = 8388608 | this._bitField
}, I.prototype._setAsyncGuaranteed = function() {
if (!b.hasCustomScheduler()) {
var e = this._bitField;
this._bitField = e | (536870912 & e) >> 2 ^ 134217728
}
}, I.prototype._setNoAsyncGuarantee = function() {
this._bitField = -134217729 & this._bitField | 536870912
}, I.prototype._receiverAt = function(e) {
var t = 0 === e ? this._receiver0 : this[4 * e - 4 + 3];
if (t !== u) return void 0 === t && this._isBound() ? this._boundValue() : t
}, I.prototype._promiseAt = function(e) {
return this[4 * e - 4 + 2]
}, I.prototype._fulfillmentHandlerAt = function(e) {
return this[4 * e - 4 + 0]
}, I.prototype._rejectionHandlerAt = function(e) {
return this[4 * e - 4 + 1]
}, I.prototype._boundValue = function() {}, I.prototype._migrateCallback0 = function(e) {
e._bitField;
var t = e._fulfillmentHandler0,
n = e._rejectionHandler0,
r = e._promise0,
o = e._receiverAt(0);
void 0 === o && (o = u), this._addCallbacks(t, n, r, o, null)
}, I.prototype._migrateCallbackAt = function(e, t) {
var n = e._fulfillmentHandlerAt(t),
r = e._rejectionHandlerAt(t),
o = e._promiseAt(t),
i = e._receiverAt(t);
void 0 === i && (i = u), this._addCallbacks(n, r, o, i, null)
}, I.prototype._addCallbacks = function(e, t, n, r, o) {
var i = this._length();
if (i >= 65531 && (i = 0, this._setLength(0)), 0 === i) this._promise0 = n, this._receiver0 = r, "function" == typeof e && (this._fulfillmentHandler0 = l.contextBind(o, e)), "function" == typeof t && (this._rejectionHandler0 = l.contextBind(o, t));
else {
var a = 4 * i - 4;
this[a + 2] = n, this[a + 3] = r, "function" == typeof e && (this[a + 0] = l.contextBind(o, e)), "function" == typeof t && (this[a + 1] = l.contextBind(o, t))
}
return this._setLength(i + 1), i
}, I.prototype._proxy = function(e, t) {
this._addCallbacks(void 0, void 0, t, e, null)
}, I.prototype._resolveCallback = function(e, t) {
if (!(117506048 & this._bitField)) {
if (e === this) return this._rejectCallback(n(), !1);
var r = S(e, this);
if (!(r instanceof I)) return this._fulfill(e);
t && this._propagateFrom(r, 2);
var o = r._target();
if (o !== this) {
var i = o._bitField;
if (50397184 & i)
if (33554432 & i) this._fulfill(o._value());
else if (16777216 & i) this._reject(o._reason());
else {
var a = new C("late cancellation observer");
o._attachExtraTrace(a), this._reject(a)
} else {
var u = this._length();
u > 0 && o._migrateCallback0(this);
for (var l = 1; l < u; ++l) o._migrateCallbackAt(this, l);
this._setFollowing(), this._setLength(0), this._setFollowee(r)
}
} else this._reject(n())
}
}, I.prototype._rejectCallback = function(e, t, n) {
var r = l.ensureErrorObject(e),
o = r === e;
if (!o && !n && D.warnings()) {
var i = "a promise was rejected with a non-error: " + l.classString(e);
this._warn(i, !0)
}
this._attachExtraTrace(r, !!t && o), this._reject(e)
}, I.prototype._resolveFromExecutor = function(e) {
if (e !== x) {
var t = this;
this._captureStackTrace(), this._pushContext();
var n = !0,
r = this._execute(e, function(e) {
t._resolveCallback(e)
}, function(e) {
t._rejectCallback(e, n)
});
n = !1, this._popContext(), void 0 !== r && t._rejectCallback(r, !0)
}
}, I.prototype._settlePromiseFromHandler = function(e, t, n, r) {
var o = r._bitField;
if (!(65536 & o)) {
var i;
r._pushContext(), t === k ? n && "number" == typeof n.length ? i = R(e).apply(this._boundValue(), n) : (i = N).e = new w("cannot .spread() a non-array: " + l.classString(n)) : i = R(e).call(t, n);
var a = r._popContext();
65536 & (o = r._bitField) || (i === _ ? r._reject(n) : i === N ? r._rejectCallback(i.e, !1) : (D.checkForgottenReturns(i, a, "", r, this), r._resolveCallback(i)))
}
}, I.prototype._target = function() {
for (var e = this; e._isFollowing();) e = e._followee();
return e
}, I.prototype._followee = function() {
return this._rejectionHandler0
}, I.prototype._setFollowee = function(e) {
this._rejectionHandler0 = e
}, I.prototype._settlePromise = function(e, t, n, r) {
var i = e instanceof I,
u = this._bitField,
l = !!(134217728 & u);
65536 & u ? (i && e._invokeInternalOnCancel(), n instanceof j && n.isFinallyHandler() ? (n.cancelPromise = e, R(t).call(n, r) === N && e._reject(N.e)) : t === o ? e._fulfill(o.call(n)) : n instanceof a ? n._promiseCancelled(e) : i || e instanceof A ? e._cancel() : n.cancel()) : "function" == typeof t ? i ? (l && e._setAsyncGuaranteed(), this._settlePromiseFromHandler(t, n, r, e)) : t.call(n, r, e) : n instanceof a ? n._isResolved() || (33554432 & u ? n._promiseFulfilled(r, e) : n._promiseRejected(r, e)) : i && (l && e._setAsyncGuaranteed(), 33554432 & u ? e._fulfill(r) : e._reject(r))
}, I.prototype._settlePromiseLateCancellationObserver = function(e) {
var t = e.handler,
n = e.promise,
r = e.receiver,
o = e.value;
"function" == typeof t ? n instanceof I ? this._settlePromiseFromHandler(t, r, o, n) : t.call(r, o, n) : n instanceof I && n._reject(o)
}, I.prototype._settlePromiseCtx = function(e) {
this._settlePromise(e.promise, e.handler, e.receiver, e.value)
}, I.prototype._settlePromise0 = function(e, t, n) {
var r = this._promise0,
o = this._receiverAt(0);
this._promise0 = void 0, this._receiver0 = void 0, this._settlePromise(r, e, o, t)
}, I.prototype._clearCallbackDataAtIndex = function(e) {
var t = 4 * e - 4;
this[t + 2] = this[t + 3] = this[t + 0] = this[t + 1] = void 0
}, I.prototype._fulfill = function(e) {
var t = this._bitField;
if (!((117506048 & t) >>> 16)) {
if (e === this) {
var r = n();
return this._attachExtraTrace(r), this._reject(r)
}
this._setFulfilled(), this._rejectionHandler0 = e, (65535 & t) > 0 && (134217728 & t ? this._settlePromises() : b.settlePromises(this), this._dereferenceTrace())
}
}, I.prototype._reject = function(e) {
var t = this._bitField;
if (!((117506048 & t) >>> 16)) {
if (this._setRejected(), this._fulfillmentHandler0 = e, this._isFinal()) return b.fatalError(e, l.isNode);
(65535 & t) > 0 ? b.settlePromises(this) : this._ensurePossibleRejectionHandled()
}
}, I.prototype._fulfillPromises = function(e, t) {
for (var n = 1; n < e; n++) {
var r = this._fulfillmentHandlerAt(n),
o = this._promiseAt(n),
i = this._receiverAt(n);
this._clearCallbackDataAtIndex(n), this._settlePromise(o, r, i, t)
}
}, I.prototype._rejectPromises = function(e, t) {
for (var n = 1; n < e; n++) {
var r = this._rejectionHandlerAt(n),
o = this._promiseAt(n),
i = this._receiverAt(n);
this._clearCallbackDataAtIndex(n), this._settlePromise(o, r, i, t)
}
}, I.prototype._settlePromises = function() {
var e = this._bitField,
t = 65535 & e;
if (t > 0) {
if (16842752 & e) {
var n = this._fulfillmentHandler0;
this._settlePromise0(this._rejectionHandler0, n, e), this._rejectPromises(t, n)
} else {
var r = this._rejectionHandler0;
this._settlePromise0(this._fulfillmentHandler0, r, e), this._fulfillPromises(t, r)
}
this._setLength(0)
}
this._clearCancellationData()
}, I.prototype._settledValue = function() {
var e = this._bitField;
return 33554432 & e ? this._rejectionHandler0 : 16777216 & e ? this._fulfillmentHandler0 : void 0
}, "undefined" != typeof Symbol && Symbol.toStringTag && y.defineProperty(I.prototype, Symbol.toStringTag, {
get: function() {
return "Object"
}
}), I.defer = I.pending = function() {
return D.deprecated("Promise.defer", "new Promise"), {
promise: new I(x),
resolve: L,
reject: B
}
}, l.notEnumerableProp(I, "_makeSelfResolutionError", n), e("./method")(I, x, S, i, D), e("./bind")(I, x, S, D), e("./cancel")(I, A, i, D), e("./direct_resolve")(I), e("./synchronous_inspection")(I), e("./join")(I, A, S, x, b), I.Promise = I, I.version = "3.7.2", e("./call_get.js")(I), e("./generators.js")(I, i, x, S, a, D), e("./map.js")(I, A, i, S, x, D), e("./nodeify.js")(I), e("./promisify.js")(I, x), e("./props.js")(I, A, S, i), e("./race.js")(I, x, S, i), e("./reduce.js")(I, A, i, S, x, D), e("./settle.js")(I, A, D), e("./some.js")(I, A, i), e("./timers.js")(I, x, D), e("./using.js")(I, i, S, P, x, D), e("./any.js")(I), e("./each.js")(I, x), e("./filter.js")(I, x), l.toFastProperties(I), l.toFastProperties(I.prototype), z({
a: 1
}), z({
b: 2
}), z({
c: 3
}), z(1), z(function() {}), z(void 0), z(!1), z(new I(x)), D.setBounds(v.firstLineError, l.lastLineError), I
}
}, {
"./any.js": 1,
"./async": 2,
"./bind": 3,
"./call_get.js": 5,
"./cancel": 6,
"./catch_filter": 7,
"./context": 8,
"./debuggability": 9,
"./direct_resolve": 10,
"./each.js": 11,
"./errors": 12,
"./es5": 13,
"./filter.js": 14,
"./finally": 15,
"./generators.js": 16,
"./join": 17,
"./map.js": 18,
"./method": 19,
"./nodeback": 20,
"./nodeify.js": 21,
"./promise_array": 23,
"./promisify.js": 24,
"./props.js": 25,
"./race.js": 27,
"./reduce.js": 28,
"./settle.js": 30,
"./some.js": 31,
"./synchronous_inspection": 32,
"./thenables": 33,
"./timers.js": 34,
"./using.js": 35,
"./util": 36,
async_hooks: void 0
}],
23: [function(e, t, n) {
"use strict";
t.exports = function(t, n, r, o, i) {
var a = e("./util");
function u(e) {
switch (e) {
case -2:
return [];
case -3:
return {};
case -6:
return new Map
}
}
function l(e) {
var r = this._promise = new t(n);
e instanceof t && (r._propagateFrom(e, 3), e.suppressUnhandledRejections()), r._setOnCancel(this), this._values = e, this._length = 0, this._totalResolved = 0, this._init(void 0, -2)
}
return a.isArray, a.inherits(l, i), l.prototype.length = function() {
return this._length
}, l.prototype.promise = function() {
return this._promise
}, l.prototype._init = function e(n, i) {
var l = r(this._values, this._promise);
if (l instanceof t) {
var s = (l = l._target())._bitField;
if (this._values = l, !(50397184 & s)) return this._promise._setAsyncGuaranteed(), l._then(e, this._reject, void 0, this, i);
if (!(33554432 & s)) return 16777216 & s ? this._reject(l._reason()) : this._cancel();
l = l._value()
}
if (null !== (l = a.asArray(l))) 0 !== l.length ? this._iterate(l) : -5 === i ? this._resolveEmptyArray() : this._resolve(u(i));
else {
var c = o("expecting an array or an iterable object but got " + a.classString(l)).reason();
this._promise._rejectCallback(c, !1)
}
}, l.prototype._iterate = function(e) {
var n = this.getActualLength(e.length);
this._length = n, this._values = this.shouldCopyValues() ? new Array(n) : this._values;
for (var o = this._promise, i = !1, a = null, u = 0; u < n; ++u) {
var l = r(e[u], o);
a = l instanceof t ? (l = l._target())._bitField : null, i ? null !== a && l.suppressUnhandledRejections() : null !== a ? 50397184 & a ? i = 33554432 & a ? this._promiseFulfilled(l._value(), u) : 16777216 & a ? this._promiseRejected(l._reason(), u) : this._promiseCancelled(u) : (l._proxy(this, u), this._values[u] = l) : i = this._promiseFulfilled(l, u)
}
i || o._setAsyncGuaranteed()
}, l.prototype._isResolved = function() {
return null === this._values
}, l.prototype._resolve = function(e) {
this._values = null, this._promise._fulfill(e)
}, l.prototype._cancel = function() {
!this._isResolved() && this._promise._isCancellable() && (this._values = null, this._promise._cancel())
}, l.prototype._reject = function(e) {
this._values = null, this._promise._rejectCallback(e, !1)
}, l.prototype._promiseFulfilled = function(e, t) {
return this._values[t] = e, ++this._totalResolved >= this._length && (this._resolve(this._values), !0)
}, l.prototype._promiseCancelled = function() {
return this._cancel(), !0
}, l.prototype._promiseRejected = function(e) {
return this._totalResolved++, this._reject(e), !0
}, l.prototype._resultCancelled = function() {
if (!this._isResolved()) {
var e = this._values;
if (this._cancel(), e instanceof t) e.cancel();
else
for (var n = 0; n < e.length; ++n) e[n] instanceof t && e[n].cancel()
}
}, l.prototype.shouldCopyValues = function() {
return !0
}, l.prototype.getActualLength = function(e) {
return e
}, l
}
}, {
"./util": 36
}],
24: [function(e, t, n) {
"use strict";
t.exports = function(t, n) {
var r = {},
o = e("./util"),
i = e("./nodeback"),
a = o.withAppended,
u = o.maybeWrapAsError,
l = o.canEvaluate,
s = e("./errors").TypeError,
c = "Async",
f = {
__isPromisified__: !0
},
d = new RegExp("^(?:" + ["arity", "length", "name", "arguments", "caller", "callee", "prototype", "__isPromisified__"].join("|") + ")$"),
p = function(e) {
return o.isIdentifier(e) && "_" !== e.charAt(0) && "constructor" !== e
};
function h(e) {
return !d.test(e)
}
function m(e) {
try {
return !0 === e.__isPromisified__
} catch (e) {
return !1
}
}
function g(e, t, n) {
var r = o.getDataPropertyOrDefault(e, t + n, f);
return !!r && m(r)
}
function y(e, t, n) {
for (var r = 0; r < e.length; r += 2) {
var o = e[r];
if (n.test(o))
for (var i = o.replace(n, ""), a = 0; a < e.length; a += 2)
if (e[a] === i) throw new s("Cannot promisify an API that has normal methods with '%s'-suffix\n\n See http://goo.gl/MqrFmX\n".replace("%s", t))
}
}
function v(e, t, n, r) {
for (var i = o.inheritedDataKeys(e), a = [], u = 0; u < i.length; ++u) {
var l = i[u],
s = e[l],
c = r === p || p(l, s, e);
"function" != typeof s || m(s) || g(e, l, t) || !r(l, s, e, c) || a.push(l, s)
}
return y(a, t, n), a
}
var b, E = function(e) {
return e.replace(/([$])/, "\\$")
};
function w(e, l, s, c, f, d) {
var p = function() {
return this
}(),
h = e;
function m() {
var o = l;
l === r && (o = this);
var s = new t(n);
s._captureStackTrace();
var c = "string" == typeof h && this !== p ? this[h] : e,
f = i(s, d);
try {
c.apply(o, a(arguments, f))
} catch (e) {
s._rejectCallback(u(e), !0, !0)
}
return s._isFateSealed() || s._setAsyncGuaranteed(), s
}
return "string" == typeof h && (e = c), o.notEnumerableProp(m, "__isPromisified__", !0), m
}
var C = l ? b : w;
function x(e, t, n, i, a) {
for (var u = new RegExp(E(t) + "$"), l = v(e, t, u, n), s = 0, c = l.length; s < c; s += 2) {
var f = l[s],
d = l[s + 1],
p = f + t;
if (i === C) e[p] = C(f, r, f, d, t, a);
else {
var h = i(d, function() {
return C(f, r, f, d, t, a)
});
o.notEnumerableProp(h, "__isPromisified__", !0), e[p] = h
}
}
return o.toFastProperties(e), e
}
function k(e, t, n) {
return C(e, t, void 0, e, null, n)
}
t.promisify = function(e, t) {
if ("function" != typeof e) throw new s("expecting a function but got " + o.classString(e));
if (m(e)) return e;
var n = k(e, void 0 === (t = Object(t)).context ? r : t.context, !!t.multiArgs);
return o.copyDescriptors(e, n, h), n
}, t.promisifyAll = function(e, t) {
if ("function" != typeof e && "object" != typeof e) throw new s("the target of promisifyAll must be an object or a function\n\n See http://goo.gl/MqrFmX\n");
var n = !!(t = Object(t)).multiArgs,
r = t.suffix;
"string" != typeof r && (r = c);
var i = t.filter;
"function" != typeof i && (i = p);
var a = t.promisifier;
if ("function" != typeof a && (a = C), !o.isIdentifier(r)) throw new RangeError("suffix must be a valid identifier\n\n See http://goo.gl/MqrFmX\n");
for (var u = o.inheritedDataKeys(e), l = 0; l < u.length; ++l) {
var f = e[u[l]];
"constructor" !== u[l] && o.isClass(f) && (x(f.prototype, r, i, a, n), x(f, r, i, a, n))
}
return x(e, r, i, a, n)
}
}
}, {
"./errors": 12,
"./nodeback": 20,
"./util": 36
}],
25: [function(e, t, n) {
"use strict";
t.exports = function(t, n, r, o) {
var i, a = e("./util"),
u = a.isObject,
l = e("./es5");
"function" == typeof Map && (i = Map);
var s = function() {
var e = 0,
t = 0;
function n(n, r) {
this[e] = n, this[e + t] = r, e++
}
return function(r) {
t = r.size, e = 0;
var o = new Array(2 * r.size);
return r.forEach(n, o), o
}
}(),
c = function(e) {
for (var t = new i, n = e.length / 2 | 0, r = 0; r < n; ++r) {
var o = e[n + r],
a = e[r];
t.set(o, a)
}
return t
};
function f(e) {
var t, n = !1;
if (void 0 !== i && e instanceof i) t = s(e), n = !0;
else {
var r = l.keys(e),
o = r.length;
t = new Array(2 * o);
for (var a = 0; a < o; ++a) {
var u = r[a];
t[a] = e[u], t[a + o] = u
}
}
this.constructor$(t), this._isMap = n, this._init$(void 0, n ? -6 : -3)
}
function d(e) {
var n, i = r(e);
return u(i) ? (n = i instanceof t ? i._then(t.props, void 0, void 0, void 0, void 0) : new f(i).promise(), i instanceof t && n._propagateFrom(i, 2), n) : o("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")
}
a.inherits(f, n), f.prototype._init = function() {}, f.prototype._promiseFulfilled = function(e, t) {
if (this._values[t] = e, ++this._totalResolved >= this._length) {
var n;
if (this._isMap) n = c(this._values);
else {
n = {};
for (var r = this.length(), o = 0, i = this.length(); o < i; ++o) n[this._values[o + r]] = this._values[o]
}
return this._resolve(n), !0
}
return !1
}, f.prototype.shouldCopyValues = function() {
return !1
}, f.prototype.getActualLength = function(e) {
return e >> 1
}, t.prototype.props = function() {
return d(this)
}, t.props = function(e) {
return d(e)
}
}
}, {
"./es5": 13,
"./util": 36
}],
26: [function(e, t, n) {
"use strict";
function r(e, t, n, r, o) {
for (var i = 0; i < o; ++i) n[i + r] = e[i + t], e[i + t] = void 0
}
function o(e) {
this._capacity = e, this._length = 0, this._front = 0
}
o.prototype._willBeOverCapacity = function(e) {
return this._capacity < e
}, o.prototype._pushOne = function(e) {
var t = this.length();
this._checkCapacity(t + 1), this[this._front + t & this._capacity - 1] = e, this._length = t + 1
}, o.prototype.push = function(e, t, n) {
var r = this.length() + 3;
if (this._willBeOverCapacity(r)) return this._pushOne(e), this._pushOne(t), void this._pushOne(n);
var o = this._front + r - 3;
this._checkCapacity(r);
var i = this._capacity - 1;
this[o + 0 & i] = e, this[o + 1 & i] = t, this[o + 2 & i] = n, this._length = r
}, o.prototype.shift = function() {
var e = this._front,
t = this[e];
return this[e] = void 0, this._front = e + 1 & this._capacity - 1, this._length--, t
}, o.prototype.length = function() {
return this._length
}, o.prototype._checkCapacity = function(e) {
this._capacity < e && this._resizeTo(this._capacity << 1)
}, o.prototype._resizeTo = function(e) {
var t = this._capacity;
this._capacity = e, r(this, 0, this, t, this._front + this._length & t - 1)
}, t.exports = o
}, {}],
27: [function(e, t, n) {
"use strict";
t.exports = function(t, n, r, o) {
var i = e("./util"),
a = function(e) {
return e.then(function(t) {
return u(t, e)
})
};
function u(e, u) {
var l = r(e);
if (l instanceof t) return a(l);
if (null === (e = i.asArray(e))) return o("expecting an array or an iterable object but got " + i.classString(e));
var s = new t(n);
void 0 !== u && s._propagateFrom(u, 3);
for (var c = s._fulfill, f = s._reject, d = 0, p = e.length; d < p; ++d) {
var h = e[d];
(void 0 !== h || d in e) && t.cast(h)._then(c, f, void 0, s, null)
}
return s
}
t.race = function(e) {
return u(e, void 0)
}, t.prototype.race = function() {
return u(this, void 0)
}
}
}, {
"./util": 36
}],
28: [function(e, t, n) {
"use strict";
t.exports = function(t, n, r, o, i, a) {
var u = e("./util"),
l = u.tryCatch;
function s(e, n, r, o) {
this.constructor$(e);
var a = t._getContext();
this._fn = u.contextBind(a, n), void 0 !== r && (r = t.resolve(r))._attachCancellationCallback(this), this._initialValue = r, this._currentCancellable = null, this._eachValues = o === i ? Array(this._length) : 0 === o ? null : void 0, this._promise._captureStackTrace(), this._init$(void 0, -5)
}
function c(e, t) {
this.isFulfilled() ? t._resolve(e) : t._reject(e)
}
function f(e, t, n, o) {
return "function" != typeof t ? r("expecting a function but got " + u.classString(t)) : new s(e, t, n, o).promise()
}
function d(e) {
this.accum = e, this.array._gotAccum(e);
var n = o(this.value, this.array._promise);
return n instanceof t ? (this.array._currentCancellable = n, n._then(p, void 0, void 0, this, void 0)) : p.call(this, n)
}
function p(e) {
var n, r = this.array,
o = r._promise,
i = l(r._fn);
o._pushContext(), (n = void 0 !== r._eachValues ? i.call(o._boundValue(), e, this.index, this.length) : i.call(o._boundValue(), this.accum, e, this.index, this.length)) instanceof t && (r._currentCancellable = n);
var u = o._popContext();
return a.checkForgottenReturns(n, u, void 0 !== r._eachValues ? "Promise.each" : "Promise.reduce", o), n
}
u.inherits(s, n), s.prototype._gotAccum = function(e) {
void 0 !== this._eachValues && null !== this._eachValues && e !== i && this._eachValues.push(e)
}, s.prototype._eachComplete = function(e) {
return null !== this._eachValues && this._eachValues.push(e), this._eachValues
}, s.prototype._init = function() {}, s.prototype._resolveEmptyArray = function() {
this._resolve(void 0 !== this._eachValues ? this._eachValues : this._initialValue)
}, s.prototype.shouldCopyValues = function() {
return !1
}, s.prototype._resolve = function(e) {
this._promise._resolveCallback(e), this._values = null
}, s.prototype._resultCancelled = function(e) {
if (e === this._initialValue) return this._cancel();
this._isResolved() || (this._resultCancelled$(), this._currentCancellable instanceof t && this._currentCancellable.cancel(), this._initialValue instanceof t && this._initialValue.cancel())
}, s.prototype._iterate = function(e) {
var n, r;
this._values = e;
var o = e.length;
void 0 !== this._initialValue ? (n = this._initialValue, r = 0) : (n = t.resolve(e[0]), r = 1), this._currentCancellable = n;
for (var i = r; i < o; ++i) {
var a = e[i];
a instanceof t && a.suppressUnhandledRejections()
}
if (!n.isRejected())
for (; r < o; ++r) {
var u = {
accum: null,
value: e[r],
index: r,
length: o,
array: this
};
n = n._then(d, void 0, void 0, u, void 0), 127 & r || n._setNoAsyncGuarantee()
}
void 0 !== this._eachValues && (n = n._then(this._eachComplete, void 0, void 0, this, void 0)), n._then(c, c, void 0, n, this)
}, t.prototype.reduce = function(e, t) {
return f(this, e, t, null)
}, t.reduce = function(e, t, n, r) {
return f(e, t, n, r)
}
}
}, {
"./util": 36
}],
29: [function(e, t, o) {
"use strict";
var i, a = e("./util"),
u = function() {
throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")
},
l = a.getNativePromise();
if (a.isNode && "undefined" == typeof MutationObserver) {
var s = n.g.setImmediate,
c = r.nextTick;
i = a.isRecentNode ? function(e) {
s.call(n.g, e)
} : function(e) {
c.call(r, e)
}
} else if ("function" == typeof l && "function" == typeof l.resolve) {
var f = l.resolve();
i = function(e) {
f.then(e)
}
} else i = "undefined" == typeof MutationObserver || "undefined" != typeof window && window.navigator && (window.navigator.standalone || window.cordova) || !("classList" in document.documentElement) ? "undefined" != typeof setImmediate ? function(e) {
setImmediate(e)
} : "undefined" != typeof setTimeout ? function(e) {
setTimeout(e, 0)
} : u : function() {
var e = document.createElement("div"),
t = {
attributes: !0
},
n = !1,
r = document.createElement("div");
new MutationObserver(function() {
e.classList.toggle("foo"), n = !1
}).observe(r, t);
var o = function() {
n || (n = !0, r.classList.toggle("foo"))
};
return function(n) {
var r = new MutationObserver(function() {
r.disconnect(), n()
});
r.observe(e, t), o()
}
}();
t.exports = i
}, {
"./util": 36
}],
30: [function(e, t, n) {
"use strict";
t.exports = function(t, n, r) {
var o = t.PromiseInspection;
function i(e) {
this.constructor$(e)
}
e("./util").inherits(i, n), i.prototype._promiseResolved = function(e, t) {
return this._values[e] = t, ++this._totalResolved >= this._length && (this._resolve(this._values), !0)
}, i.prototype._promiseFulfilled = function(e, t) {
var n = new o;
return n._bitField = 33554432, n._settledValueField = e, this._promiseResolved(t, n)
}, i.prototype._promiseRejected = function(e, t) {
var n = new o;
return n._bitField = 16777216, n._settledValueField = e, this._promiseResolved(t, n)
}, t.settle = function(e) {
return r.deprecated(".settle()", ".reflect()"), new i(e).promise()
}, t.allSettled = function(e) {
return new i(e).promise()
}, t.prototype.settle = function() {
return t.settle(this)
}
}
}, {
"./util": 36
}],
31: [function(e, t, n) {
"use strict";
t.exports = function(t, n, r) {
var o = e("./util"),
i = e("./errors").RangeError,
a = e("./errors").AggregateError,
u = o.isArray,
l = {};
function s(e) {
this.constructor$(e), this._howMany = 0, this._unwrap = !1, this._initialized = !1
}
function c(e, t) {
if ((0 | t) !== t || t < 0) return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");
var n = new s(e),
o = n.promise();
return n.setHowMany(t), n.init(), o
}
o.inherits(s, n), s.prototype._init = function() {
if (this._initialized)
if (0 !== this._howMany) {
this._init$(void 0, -5);
var e = u(this._values);
!this._isResolved() && e && this._howMany > this._canPossiblyFulfill() && this._reject(this._getRangeError(this.length()))
} else this._resolve([])
}, s.prototype.init = function() {
this._initialized = !0, this._init()
}, s.prototype.setUnwrap = function() {
this._unwrap = !0
}, s.prototype.howMany = function() {
return this._howMany
}, s.prototype.setHowMany = function(e) {
this._howMany = e
}, s.prototype._promiseFulfilled = function(e) {
return this._addFulfilled(e), this._fulfilled() === this.howMany() && (this._values.length = this.howMany(), 1 === this.howMany() && this._unwrap ? this._resolve(this._values[0]) : this._resolve(this._values), !0)
}, s.prototype._promiseRejected = function(e) {
return this._addRejected(e), this._checkOutcome()
}, s.prototype._promiseCancelled = function() {
return this._values instanceof t || null == this._values ? this._cancel() : (this._addRejected(l), this._checkOutcome())
}, s.prototype._checkOutcome = function() {
if (this.howMany() > this._canPossiblyFulfill()) {
for (var e = new a, t = this.length(); t < this._values.length; ++t) this._values[t] !== l && e.push(this._values[t]);
return e.length > 0 ? this._reject(e) : this._cancel(), !0
}
return !1
}, s.prototype._fulfilled = function() {
return this._totalResolved
}, s.prototype._rejected = function() {
return this._values.length - this.length()
}, s.prototype._addRejected = function(e) {
this._values.push(e)
}, s.prototype._addFulfilled = function(e) {
this._values[this._totalResolved++] = e
}, s.prototype._canPossiblyFulfill = function() {
return this.length() - this._rejected()
}, s.prototype._getRangeError = function(e) {
var t = "Input array must contain at least " + this._howMany + " items but contains only " + e + " items";
return new i(t)
}, s.prototype._resolveEmptyArray = function() {
this._reject(this._getRangeError(0))
}, t.some = function(e, t) {
return c(e, t)
}, t.prototype.some = function(e) {
return c(this, e)
}, t._SomePromiseArray = s
}
}, {
"./errors": 12,
"./util": 36
}],
32: [function(e, t, n) {
"use strict";
t.exports = function(e) {
function t(e) {
void 0 !== e ? (e = e._target(), this._bitField = e._bitField, this._settledValueField = e._isFateSealed() ? e._settledValue() : void 0) : (this._bitField = 0, this._settledValueField = void 0)
}
t.prototype._settledValue = function() {
return this._settledValueField
};
var n = t.prototype.value = function() {
if (!this.isFulfilled()) throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");
return this._settledValue()
},
r = t.prototype.error = t.prototype.reason = function() {
if (!this.isRejected()) throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");
return this._settledValue()
},
o = t.prototype.isFulfilled = function() {
return !!(33554432 & this._bitField)
},
i = t.prototype.isRejected = function() {
return !!(16777216 & this._bitField)
},
a = t.prototype.isPending = function() {
return !(50397184 & this._bitField)
},
u = t.prototype.isResolved = function() {
return !!(50331648 & this._bitField)
};
t.prototype.isCancelled = function() {
return !!(8454144 & this._bitField)
}, e.prototype.__isCancelled = function() {
return !(65536 & ~this._bitField)
}, e.prototype._isCancelled = function() {
return this._target().__isCancelled()
}, e.prototype.isCancelled = function() {
return !!(8454144 & this._target()._bitField)
}, e.prototype.isPending = function() {
return a.call(this._target())
}, e.prototype.isRejected = function() {
return i.call(this._target())
}, e.prototype.isFulfilled = function() {
return o.call(this._target())
}, e.prototype.isResolved = function() {
return u.call(this._target())
}, e.prototype.value = function() {
return n.call(this._target())
}, e.prototype.reason = function() {
var e = this._target();
return e._unsetRejectionIsUnhandled(), r.call(e)
}, e.prototype._value = function() {
return this._settledValue()
}, e.prototype._reason = function() {
return this._unsetRejectionIsUnhandled(), this._settledValue()
}, e.PromiseInspection = t
}
}, {}],
33: [function(e, t, n) {
"use strict";
t.exports = function(t, n) {
var r = e("./util"),
o = r.errorObj,
i = r.isObject;
function a(e, r) {
if (i(e)) {
if (e instanceof t) return e;
var a = l(e);
if (a === o) {
r && r._pushContext();
var u = t.reject(a.e);
return r && r._popContext(), u
}
if ("function" == typeof a) return c(e) ? (u = new t(n), e._then(u._fulfill, u._reject, void 0, u, null), u) : f(e, a, r)
}
return e
}
function u(e) {
return e.then
}
function l(e) {
try {
return u(e)
} catch (e) {
return o.e = e, o
}
}
var s = {}.hasOwnProperty;
function c(e) {
try {
return s.call(e, "_promise0")
} catch (e) {
return !1
}
}
function f(e, i, a) {
var u = new t(n),
l = u;
a && a._pushContext(), u._captureStackTrace(), a && a._popContext();
var s = !0,
c = r.tryCatch(i).call(e, f, d);
function f(e) {
u && (u._resolveCallback(e), u = null)
}
function d(e) {
u && (u._rejectCallback(e, s, !0), u = null)
}
return s = !1, u && c === o && (u._rejectCallback(c.e, !0, !0), u = null), l
}
return a
}
}, {
"./util": 36
}],
34: [function(e, t, n) {
"use strict";
t.exports = function(t, n, r) {
var o = e("./util"),
i = t.TimeoutError;
function a(e) {
this.handle = e
}
a.prototype._resultCancelled = function() {
clearTimeout(this.handle)
};
var u = function(e) {
return l(+this).thenReturn(e)
},
l = t.delay = function(e, o) {
var i, l;
return void 0 !== o ? (i = t.resolve(o)._then(u, null, null, e, void 0), r.cancellation() && o instanceof t && i._setOnCancel(o)) : (i = new t(n), l = setTimeout(function() {
i._fulfill()
}, +e), r.cancellation() && i._setOnCancel(new a(l)), i._captureStackTrace()), i._setAsyncGuaranteed(), i
};
t.prototype.delay = function(e) {
return l(e, this)
};
var s = function(e, t, n) {
var r;
r = "string" != typeof t ? t instanceof Error ? t : new i("operation timed out") : new i(t), o.markAsOriginatingFromRejection(r), e._attachExtraTrace(r), e._reject(r), null != n && n.cancel()
};
function c(e) {
return clearTimeout(this.handle), e
}
function f(e) {
throw clearTimeout(this.handle), e
}
t.prototype.timeout = function(e, t) {
var n, o;
e = +e;
var i = new a(setTimeout(function() {
n.isPending() && s(n, t, o)
}, e));
return r.cancellation() ? (o = this.then(), (n = o._then(c, f, void 0, i, void 0))._setOnCancel(i)) : n = this._then(c, f, void 0, i, void 0), n
}
}
}, {
"./util": 36
}],
35: [function(e, t, n) {
"use strict";
t.exports = function(t, n, r, o, i, a) {
var u = e("./util"),
l = e("./errors").TypeError,
s = e("./util").inherits,
c = u.errorObj,
f = u.tryCatch,
d = {};
function p(e) {
setTimeout(function() {
throw e
}, 0)
}
function h(e) {
var t = r(e);
return t !== e && "function" == typeof e._isDisposable && "function" == typeof e._getDisposer && e._isDisposable() && t._setDisposable(e._getDisposer()), t
}
function m(e, n) {
var o = 0,
a = e.length,
u = new t(i);
function l() {
if (o >= a) return u._fulfill();
var i = h(e[o++]);
if (i instanceof t && i._isDisposable()) {
try {
i = r(i._getDisposer().tryDispose(n), e.promise)
} catch (e) {
return p(e)
}
if (i instanceof t) return i._then(l, p, null, null, null)
}
l()
}
return l(), u
}
function g(e, t, n) {
this._data = e, this._promise = t, this._context = n
}
function y(e, t, n) {
this.constructor$(e, t, n)
}
function v(e) {
return g.isDisposer(e) ? (this.resources[this.index]._setDisposable(e), e.promise()) : e
}
function b(e) {
this.length = e, this.promise = null, this[e - 1] = null
}
g.prototype.data = function() {
return this._data
}, g.prototype.promise = function() {
return this._promise
}, g.prototype.resource = function() {
return this.promise().isFulfilled() ? this.promise().value() : d
}, g.prototype.tryDispose = function(e) {
var t = this.resource(),
n = this._context;
void 0 !== n && n._pushContext();
var r = t !== d ? this.doDispose(t, e) : null;
return void 0 !== n && n._popContext(), this._promise._unsetDisposable(), this._data = null, r
}, g.isDisposer = function(e) {
return null != e && "function" == typeof e.resource && "function" == typeof e.tryDispose
}, s(y, g), y.prototype.doDispose = function(e, t) {
return this.data().call(e, e, t)
}, b.prototype._resultCancelled = function() {
for (var e = this.length, n = 0; n < e; ++n) {
var r = this[n];
r instanceof t && r.cancel()
}
}, t.using = function() {
var e = arguments.length;
if (e < 2) return n("you must pass at least 2 arguments to Promise.using");
var o, i = arguments[e - 1];
if ("function" != typeof i) return n("expecting a function but got " + u.classString(i));
var l = !0;
2 === e && Array.isArray(arguments[0]) ? (e = (o = arguments[0]).length, l = !1) : (o = arguments, e--);
for (var s = new b(e), d = 0; d < e; ++d) {
var p = o[d];
if (g.isDisposer(p)) {
var h = p;
(p = p.promise())._setDisposable(h)
} else {
var y = r(p);
y instanceof t && (p = y._then(v, null, null, {
resources: s,
index: d
}, void 0))
}
s[d] = p
}
var E = new Array(s.length);
for (d = 0; d < E.length; ++d) E[d] = t.resolve(s[d]).reflect();
var w = t.all(E).then(function(e) {
for (var t = 0; t < e.length; ++t) {
var n = e[t];
if (n.isRejected()) return c.e = n.error(), c;
if (!n.isFulfilled()) return void w.cancel();
e[t] = n.value()
}
C._pushContext(), i = f(i);
var r = l ? i.apply(void 0, e) : i(e),
o = C._popContext();
return a.checkForgottenReturns(r, o, "Promise.using", C), r
}),
C = w.lastly(function() {
var e = new t.PromiseInspection(w);
return m(s, e)
});
return s.promise = C, C._setOnCancel(s), C
}, t.prototype._setDisposable = function(e) {
this._bitField = 131072 | this._bitField, this._disposer = e
}, t.prototype._isDisposable = function() {
return (131072 & this._bitField) > 0
}, t.prototype._getDisposer = function() {
return this._disposer
}, t.prototype._unsetDisposable = function() {
this._bitField = -131073 & this._bitField, this._disposer = void 0
}, t.prototype.disposer = function(e) {
if ("function" == typeof e) return new y(e, this, o());
throw new l
}
}
}, {
"./errors": 12,
"./util": 36
}],
36: [function(e, t, o) {
"use strict";
var i, a = e("./es5"),
u = "undefined" == typeof navigator,
l = {
e: {}
},
s = "undefined" != typeof self ? self : "undefined" != typeof window ? window : void 0 !== n.g ? n.g : void 0 !== this ? this : null;
function c() {
try {
var e = i;
return i = null, e.apply(this, arguments)
} catch (e) {
return l.e = e, l
}
}
function f(e) {
return i = e, c
}
var d = function(e, t) {
var n = {}.hasOwnProperty;
function r() {
for (var r in this.constructor = e, this.constructor$ = t, t.prototype) n.call(t.prototype, r) && "$" !== r.charAt(r.length - 1) && (this[r + "$"] = t.prototype[r])
}
return r.prototype = t.prototype, e.prototype = new r, e.prototype
};
function p(e) {
return null == e || !0 === e || !1 === e || "string" == typeof e || "number" == typeof e
}
function h(e) {
return "function" == typeof e || "object" == typeof e && null !== e
}
function m(e) {
return p(e) ? new Error(A(e)) : e
}
function g(e, t) {
var n, r = e.length,
o = new Array(r + 1);
for (n = 0; n < r; ++n) o[n] = e[n];
return o[n] = t, o
}
function y(e, t, n) {
if (!a.isES5) return {}.hasOwnProperty.call(e, t) ? e[t] : void 0;
var r = Object.getOwnPropertyDescriptor(e, t);
return null != r ? null == r.get && null == r.set ? r.value : n : void 0
}
function v(e, t, n) {
if (p(e)) return e;
var r = {
value: n,
configurable: !0,
enumerable: !1,
writable: !0
};
return a.defineProperty(e, t, r), e
}
function b(e) {
throw e
}
var E = function() {
var e = [Array.prototype, Object.prototype, Function.prototype],
t = function(t) {
for (var n = 0; n < e.length; ++n)
if (e[n] === t) return !0;
return !1
};
if (a.isES5) {
var n = Object.getOwnPropertyNames;
return function(e) {
for (var r = [], o = Object.create(null); null != e && !t(e);) {
var i;
try {
i = n(e)
} catch (e) {
return r
}
for (var u = 0; u < i.length; ++u) {
var l = i[u];
if (!o[l]) {
o[l] = !0;
var s = Object.getOwnPropertyDescriptor(e, l);
null != s && null == s.get && null == s.set && r.push(l)
}
}
e = a.getPrototypeOf(e)
}
return r
}
}
var r = {}.hasOwnProperty;
return function(n) {
if (t(n)) return [];
var o = [];
e: for (var i in n)
if (r.call(n, i)) o.push(i);
else {
for (var a = 0; a < e.length; ++a)
if (r.call(e[a], i)) continue e;
o.push(i)
}
return o
}
}(),
w = /this\s*\.\s*\S+\s*=/;
function C(e) {
try {
if ("function" == typeof e) {
var t = a.names(e.prototype),
n = a.isES5 && t.length > 1,
r = t.length > 0 && !(1 === t.length && "constructor" === t[0]),
o = w.test(e + "") && a.names(e).length > 0;
if (n || r || o) return !0
}
return !1
} catch (e) {
return !1
}
}
function x(e) {
function t() {}
t.prototype = e;
var n = new t;
function r() {
return typeof n.foo
}
return r(), r(), e
}
var k = /^[a-z$_][a-z$_0-9]*$/i;
function _(e) {
return k.test(e)
}
function S(e, t, n) {
for (var r = new Array(e), o = 0; o < e; ++o) r[o] = t + o + n;
return r
}
function A(e) {
try {
return e + ""
} catch (e) {
return "[no string representation]"
}
}
function O(e) {
return e instanceof Error || null !== e && "object" == typeof e && "string" == typeof e.message && "string" == typeof e.name
}
function P(e) {
try {
v(e, "isOperational", !0)
} catch (e) {}
}
function D(e) {
return null != e && (e instanceof Error.__BluebirdErrorTypes__.OperationalError || !0 === e.isOperational)
}
function j(e) {
return O(e) && a.propertyIsWritable(e, "stack")
}
var T = "stack" in new Error ? function(e) {
return j(e) ? e : new Error(A(e))
} : function(e) {
if (j(e)) return e;
try {
throw new Error(A(e))
} catch (e) {
return e
}
};
function F(e) {
return {}.toString.call(e)
}
function N(e, t, n) {
for (var r = a.names(e), o = 0; o < r.length; ++o) {
var i = r[o];
if (n(i)) try {
a.defineProperty(t, i, a.getDescriptor(e, i))
} catch (e) {}
}
}
var R = function(e) {
return a.isArray(e) ? e : null
};
if ("undefined" != typeof Symbol && Symbol.iterator) {
var M = "function" == typeof Array.from ? function(e) {
return Array.from(e)
} : function(e) {
for (var t, n = [], r = e[Symbol.iterator](); !(t = r.next()).done;) n.push(t.value);
return n
};
R = function(e) {
return a.isArray(e) ? e : null != e && "function" == typeof e[Symbol.iterator] ? M(e) : null
}
}
var I, L = void 0 !== r && "[object process]" === F(r).toLowerCase(),
B = void 0 !== r && void 0 !== r.env;
function z(e) {
return B ? r.env[e] : void 0
}
function U() {
if ("function" == typeof Promise) try {
if ("[object Promise]" === F(new Promise(function() {}))) return Promise
} catch (e) {}
}
function H(e, t) {
if (null === e || "function" != typeof t || t === I) return t;
null !== e.domain && (t = e.domain.bind(t));
var n = e.async;
if (null !== n) {
var r = t;
t = function() {
var e = new Array(2).concat([].slice.call(arguments));
return e[0] = r, e[1] = this, n.runInAsyncScope.apply(n, e)
}
}
return t
}
var W, q = {
setReflectHandler: function(e) {
I = e
},
isClass: C,
isIdentifier: _,
inheritedDataKeys: E,
getDataPropertyOrDefault: y,
thrower: b,
isArray: a.isArray,
asArray: R,
notEnumerableProp: v,
isPrimitive: p,
isObject: h,
isError: O,
canEvaluate: u,
errorObj: l,
tryCatch: f,
inherits: d,
withAppended: g,
maybeWrapAsError: m,
toFastProperties: x,
filledRange: S,
toString: A,
canAttachTrace: j,
ensureErrorObject: T,
originatesFromRejection: D,
markAsOriginatingFromRejection: P,
classString: F,
copyDescriptors: N,
isNode: L,
hasEnvVariables: B,
env: z,
global: s,
getNativePromise: U,
contextBind: H
};
q.isRecentNode = q.isNode && (r.versions && r.versions.node ? W = r.versions.node.split(".").map(Number) : r.version && (W = r.version.split(".").map(Number)), 0 === W[0] && W[1] > 10 || W[0] > 0), q.nodeSupportsAsyncResource = q.isNode && function() {
var t = !1;
try {
t = "function" == typeof e("async_hooks").AsyncResource.prototype.runInAsyncScope
} catch (e) {
t = !1
}
return t
}(), q.isNode && q.toFastProperties(r);
try {
throw new Error
} catch (e) {
q.lastLineError = e
}
t.exports = q
}, {
"./es5": 13,
async_hooks: void 0
}]
}, {}, [4])(4), "undefined" != typeof window && null !== window ? window.P = window.Promise : "undefined" != typeof self && null !== self && (self.P = self.Promise)
},
499: (e, t, n) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = void 0;
var r = l(n(9666)),
o = n(22662),
i = l(n(86146)),
a = n(72097),
u = l(n(15793));
function l(e) {
return e && e.__esModule ? e : {
default: e
}
}
const s = {
height: i.default.number
},
c = {
root: {
display: "flex"
},
container: {
width: "27px",
height: ({
height: e
}) => e,
backgroundColor: a.Colors.main600,
display: "flex",
alignItems: "center",
justifyContent: "center"
}
},
f = (0, o.createUseStyles)(c),
d = ({
height: e
}) => {
const t = f({
height: e
});
return r.default.createElement("div", {
className: t.root
}, r.default.createElement("div", {
className: t.container
}, r.default.createElement(u.default, {
color: a.Colors.white
})))
};
d.propTypes = s, d.defaultProps = {
height: 56
};
t.default = d
},
1749: (e, t, n) => {
"use strict";
function r(e) {
return r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
return typeof e
} : function(e) {
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
}, r(e)
}
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = void 0;
var o = function(e, t) {
if (!t && e && e.__esModule) return e;
if (null === e || "object" != r(e) && "function" != typeof e) return {
default: e
};
var n = g(t);
if (n && n.has(e)) return n.get(e);
var o = {
__proto__: null
},
i = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var a in e)
if ("default" !== a && {}.hasOwnProperty.call(e, a)) {
var u = i ? Object.getOwnPropertyDescriptor(e, a) : null;
u && (u.get || u.set) ? Object.defineProperty(o, a, u) : o[a] = e[a]
} return o.default = e, n && n.set(e, o), o
}(n(9666)),
i = n(22662),
a = m(n(62924)),
u = m(n(90525)),
l = m(n(86146)),
s = n(88398),
c = m(n(75807)),
f = n(4878),
d = m(n(82510)),
p = n(8936),
h = ["ariaLabelledBy", "centered", "children", "className", "containerRef", "data-qa", "fullScreenOverlay", "id", "lockPageScroll", "onClose", "overlay", "scroll"];
function m(e) {
return e && e.__esModule ? e : {
default: e
}
}
function g(e) {
if ("function" != typeof WeakMap) return null;
var t = new WeakMap,
n = new WeakMap;
return (g = function(e) {
return e ? n : t
})(e)
}
function y() {
return y = Object.assign ? Object.assign.bind() : function(e) {
for (var t = 1; t < arguments.length; t++) {
var n = arguments[t];
for (var r in n)({}).hasOwnProperty.call(n, r) && (e[r] = n[r])
}
return e
}, y.apply(null, arguments)
}
function v(e, t, n) {
return (t = function(e) {
var t = function(e, t) {
if ("object" != r(e) || !e) return e;
var n = e[Symbol.toPrimitive];
if (void 0 !== n) {
var o = n.call(e, t || "default");
if ("object" != r(o)) return o;
throw new TypeError("@@toPrimitive must return a primitive value.")
}
return ("string" === t ? String : Number)(e)
}(e, "string");
return "symbol" == r(t) ? t : t + ""
}(t)) in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e
}
function b(e, t) {
return function(e) {
if (Array.isArray(e)) return e
}(e) || function(e, t) {
var n = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
if (null != n) {
var r, o, i, a, u = [],
l = !0,
s = !1;
try {
if (i = (n = n.call(e)).next, 0 === t) {
if (Object(n) !== n) return;
l = !1
} else
for (; !(l = (r = i.call(n)).done) && (u.push(r.value), u.length !== t); l = !0);
} catch (e) {
s = !0, o = e
} finally {
try {
if (!l && null != n.return && (a = n.return(), Object(a) !== a)) return
} finally {
if (s) throw o
}
}
return u
}
}(e, t) || function(e, t) {
if (e) {
if ("string" == typeof e) return E(e, t);
var n = {}.toString.call(e).slice(8, -1);
return "Object" === n && e.constructor && (n = e.constructor.name), "Map" === n || "Set" === n ? Array.from(e) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? E(e, t) : void 0
}
}(e, t) || function() {
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
}()
}
function E(e, t) {
(null == t || t > e.length) && (t = e.length);
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
return r
}
var w = (0, i.createUseStyles)({
modalCentered: {
alignItems: "center",
display: "flex",
justifyContent: "center"
},
modalContent: {
backgroundColor: u.default.white,
borderRadius: "5px",
margin: "0 auto",
position: "relative"
},
modalDialog: {
minHeight: "100%"
},
modalRoot: {
bottom: 0,
left: 0,
outline: 0,
position: "fixed",
right: 0,
top: 0,
zIndex: p.ZINDEX.MODAL
},
modalScroll: {
overflowX: "hidden",
overflowY: "auto"
},
modalShadow: {
filter: "drop-shadow(0px 2px 35px rgba(0, 0, 0, 0.25))"
},
modalOverlay: {
backgroundColor: u.default.black,
bottom: 0,
left: 0,
opacity: .7,
position: "fixed",
right: 0,
top: 0,
zIndex: p.ZINDEX.MODAL - 1
},
modalOverlayLight: {
backgroundColor: u.default.grey800,
opacity: .8
}
}),
C = function(e) {
var t = e.ariaLabelledBy,
n = e.centered,
r = e.children,
i = e.className,
u = e.containerRef,
l = e["data-qa"],
p = e.fullScreenOverlay,
m = e.id,
g = e.lockPageScroll,
E = e.onClose,
C = e.overlay,
x = e.scroll,
k = function(e, t) {
if (null == e) return {};
var n, r, o = function(e, t) {
if (null == e) return {};
var n = {};
for (var r in e)
if ({}.hasOwnProperty.call(e, r)) {
if (-1 !== t.indexOf(r)) continue;
n[r] = e[r]
} return n
}(e, t);
if (Object.getOwnPropertySymbols) {
var i = Object.getOwnPropertySymbols(e);
for (r = 0; r < i.length; r++) n = i[r], -1 === t.indexOf(n) && {}.propertyIsEnumerable.call(e, n) && (o[n] = e[n])
}
return o
}(e, h),
_ = b((0, o.useState)(null), 2),
S = _[0],
A = _[1],
O = w(),
P = (0, o.useRef)(null);
(0, f.useOutsideClick)(P, E), (0, f.useFocusLock)({
containerRef: P
}), (0, f.useScrollLock)({
lockPageScroll: g
}), (0, o.useEffect)(function() {
var e = function(e) {
(0, s.onEscape)(e, E)
};
return document.addEventListener("keydown", e, !1),
function() {
document.removeEventListener("keydown", e, !1)
}
}, [E]);
var D = (0, o.useMemo)(function() {
return {
id: m,
onClose: E,
onLabelIdChange: function(e) {
return A(e)
}
}
}, [m, E, A]);
return o.default.createElement(d.default, {
containerRef: u
}, o.default.createElement("div", y({}, k, {
"aria-labelledby": t || S,
"aria-modal": !0,
className: (0, a.default)(O.modalRoot, v({}, O.modalScroll, x)),
"data-qa": l,
id: m,
role: "dialog",
tabIndex: -1
}), o.default.createElement(c.default.Provider, {
value: D
}, o.default.createElement("div", {
className: (0, a.default)(v({}, O.modalDialog, p), v({}, O.modalCentered, n))
}, o.default.createElement("div", {
className: (0, a.default)(i, O.modalContent, v({}, O.modalShadow, "boxShadow" === C)),
ref: P
}, r)))), ["light", "dark"].includes(C) && o.default.createElement("div", {
className: (0, a.default)(O.modalOverlay, v({}, O.modalOverlayLight, "light" === C))
}))
};
C.propTypes = {
ariaLabelledBy: l.default.string,
children: l.default.node.isRequired,
centered: l.default.bool,
className: l.default.string,
containerRef: l.default.object,
"data-qa": l.default.string,
fullScreenOverlay: l.default.bool,
id: l.default.string.isRequired,
lockPageScroll: l.default.bool,
onClose: l.default.func.isRequired,
overlay: l.default.oneOf(["light", "dark", "none", "boxShadow"]),
scroll: l.default.bool
}, C.defaultProps = {
ariaLabelledBy: null,
centered: !0,
className: null,
containerRef: null,
"data-qa": null,
fullScreenOverlay: !0,
lockPageScroll: !0,
overlay: "dark",
scroll: !0
};
t.default = C
},
1962: (e, t, n) => {
"use strict";
Object.defineProperty(t, "__esModule", {
value: !0
}), t.default = void 0;
var r = l(n(9666)),
o = l(n(86146)),
i = n(22662),
a = l(n(62924)),
u = l(n(90525));
function l(e) {
return e && e.__esModule ? e : {
default: e
}
}
var s = function(e) {
var t = 24;
return 20 === e ? t = 14 : 16 === e && (t = 11), t
},
c = {
default: {
backgroundColor: u.default.gold100,
color: u.default.grey900,
icon: u.default.gold500
},
expired: {
backgroundColor: u.default.grey200,
color: u.default.grey700,
icon: u.default.grey500
}
},
f = {
gold: {
alignItems: "center",
color: u.default.grey900,
display: "flex"
},
goldBadge: function(e) {
var t = e.expired,
n = e.componentSize;
return {
backgroundColor: t ? c.expired.backgroundColor : c.default.backgroundColor,
borderRadius: "100px",
color: t ? c.expired.color : c.default.color,
display: "inline-flex",
padding: 20 === n ? "6px 12px 6px 6px" : "4px 8px 4px 4px",
lineHeight: 20 === n ? "16px" : "12px"
}
},
amount: function(e) {
var t = e.componentSize;
return {
fontSize: "".concat(s(t), "px"),
fontWeight: "bold",
marginLeft: "4px"
}
},
timer: {
marginLeft: "4px"
}
},
d = (0, i.createUseStyles)(f),
p = function(e) {
var t = e.amount,
n = e.badge,
o = e.brand,
i = e.className,
l = e["data-qa"],
s = e.expired,
f = e.id,
p = e.size,
h = e.timer,
m = n ? function(e) {
var t = 16;
return 32 === e && (t = 20), t
}(p) : p,
g = s ? c.expired.icon : c.default.icon,
y = d({
expired: s,
componentSize: m
}),
v = h && n,
b = "paypalHoney" === o,
E = r.default.createElement("svg", {
width: m,
height: m,
viewBox: "0 0 24 24",
fill: "none",
xmlns: "http://www.w3.org/2000/svg"
}, r.default.createElement("circle", {
cx: "12",
cy: "12",
r: "12",
fill: g
}), r.default.createElement("path", {
d: "M11.1243 17.6695C9.72087 17.3533 8.66125 16.726 7.94542 15.7874C7.23901 14.839 6.87639 13.6139 6.85755 12.1122C6.84813 11.1341 7.01767 10.2499 7.36617 9.45951C7.72408 8.66914 8.22328 8.01709 8.86376 7.50335C9.51365 6.98961 10.2672 6.65864 11.1243 6.51045V4.28671H12.9044V6.51045C13.8651 6.69816 14.6846 7.07853 15.3627 7.65154C16.0503 8.21468 16.5683 9.05939 16.9168 10.1857H15.1932C14.9201 9.54349 14.5009 9.04951 13.9358 8.70372C13.3801 8.34806 12.7302 8.17022 11.9861 8.17022C11.4492 8.17022 10.9642 8.27396 10.5309 8.48143C10.107 8.67902 9.78209 8.90132 9.55604 9.14831C9.19812 9.55337 8.93911 9.98807 8.77899 10.4524C8.62829 10.9069 8.55294 11.4453 8.55294 12.0677C8.55294 12.5123 8.61887 12.9865 8.75073 13.4904C8.89201 13.9844 9.0851 14.3845 9.32999 14.6908C9.71616 15.1551 10.1212 15.4861 10.545 15.6837C10.9689 15.8813 11.4492 15.9801 11.9861 15.9801C12.9845 15.9801 13.7474 15.7923 14.2749 15.4169C14.6045 15.1798 14.8541 14.9081 15.0237 14.6019C15.1932 14.2857 15.3062 13.9152 15.3627 13.4904H12.6784V11.9047H17.1429C17.1429 12.952 17.0534 13.8016 16.8745 14.4537C16.7049 15.0958 16.4129 15.6491 15.9985 16.1134C15.6029 16.558 15.1367 16.9137 14.5998 17.1804C14.0629 17.4472 13.4931 17.6102 12.8903 17.6695V19.7154H11.1243V17.6695Z",
fill: s ? u.default.grey900 : u.default.gold900
})),
w = r.default.createElement("svg", {
width: m,
height: m,
viewBox: "0 0 24 24",
fill: "none",
xmlns: "http://www.w3.org/2000/svg"
}, r.default.createElement("circle", {
cx: "12",
cy: "12",
r: "11",
fill: g
}), r.default.createElement("path", {
fillRule: "evenodd",
clipRule: "evenodd",
d: "M7.084 6.4a1.4 1.4 0 0 1 1.4-1.4h7a1.4 1.4 0 0 1 1.4 1.4v.7h.864c.706 0 1.292.531 1.213 1.233-.19 1.692-1.062 4.328-4.177 4.367l-1.4 1.867a3.5 3.5 0 0 0-.676 1.687c1.556.244 2.252 1.261 2.555 1.987.162.388-.15.759-.572.759H9.277c-.421 0-.734-.37-.572-.76.303-.724 1-1.742 2.554-1.986a3.499 3.499 0 0 0-.675-1.687l-1.4-1.867c-3.115-.04-3.987-2.675-4.177-4.367C4.928 7.63 5.514 7.1 6.22 7.1h.864v-.7Zm9.78 1.89a6.301 6.301 0 0 1-1.076 3.06c.554-.186.93-.517 1.206-.896.451-.618.681-1.436.773-2.163l-.019-.001h-.883Zm-9.761 0H6.2c.093.728.323 1.546.774 2.164.276.379.652.71 1.206.896a6.3 6.3 0 0 1-1.077-3.06Zm8.73-1.19a.35.35 0 1 0-.7 0V7.151a6.533 6.533 0 0 1-.082.766 6.534 6.534 0 0 1-.58 1.826 9.994 9.994 0 0 1-.93 1.522 6.386 6.386 0 0 1-.381.463l-.02.02-.004.004a.35.35 0 0 0 .495.495l.002-.001.002-.003.008-.008a3.054 3.054 0 0 0 .125-.136c.082-.094.197-.232.333-.414.274-.365.636-.908.996-1.629a7.23 7.23 0 0 0 .645-2.023 7.218 7.218 0 0 0 .092-.911V7.1Z",
fill: s ? u.default.grey900 : "#003087"
})),
C = 20 === m ? "body2" : "body1";
return r.default.createElement("div", {
id: f,
className: (0, a.default)(y.gold, n && y.goldBadge, i),
"data-qa": l
}, b ? w : E, t && r.default.createElement("span", {
className: y.amount
}, t), v && r.default.createElement("span", {
className: (0, a.default)(y.timer, C)
}, h))
};
p.propTypes = {
amount: o.default.oneOfType([o.default.string, o.default.node]),
badge: o.default.bool,
brand: o.default.string,
className: o.default.string,
"data-qa": o.default.string,
expired: o.default.bool,
id: o.default.string,
size: o.default.number,
timer: o.default.string
}, p.defaultProps = {
amount: "",
badge: !1,
brand: "honey",
className: "",
"data-qa": null,
expired: !1,
id: "",
size: 24,
timer: ""
};
t.default = p
},
2306: (e, t) => {
"use strict";
function n(e) {
const t = [...e];
for (let e = t.length - 1; e > 0; e -= 1) {
const n = Math.floor(Math.random() * (e + 1));
[t[e], t[n]] = [t[n], t[e]]
}
return t
}
Object.defineProperty(t, "__esModule", {
value: !0
}), t.linearPicker = function(e) {
if (!e || !e.length) return null;
const t = [...e],
n = t.length;
let r = 0;
return function() {
return r >= n - 1 && (r = 0), t[r++]
}
}, t.randomQueuePicker = function(e) {
if (!e || !e.length) return null;
let t = n([...e]);
return function() {
return t.length || (t = n([...e])), t.shift()
}
}
},
2741: (e, t, n) => {
"use strict";
n.d(t, {
B6: () => F,
Ix: () => w,
W5: () => $,
W6: () => q,
XG: () => k,
XZ: () => E,
dO: () => U,
fS: () => C,
g: () => G,
kO: () => z,
qh: () => N,
rd: () => P,
tW: () => O,
y: () => H,
zy: () => V
});
var r = n(83907),
o = n(9666),
i = n(86146),
a = n.n(i),
u = n(99155),
l = n(95051),
s = n(93506),
c = n(77204),
f = n.n(c),
d = (n(5521), n(71445)),
p = n(23688),
h = n.n(p),
m = 1073741823,
g = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : void 0 !== n.g ? n.g : {};
var y = o.createContext || function(e, t) {
var n, i, u = "__create-react-context-" + function() {
var e = "__global_unique_id__";
return g[e] = (g[e] || 0) + 1
}() + "__",
l = function(e) {
function n() {
for (var t, n, r, o = arguments.length, i = new Array(o), a = 0; a < o; a++) i[a] = arguments[a];
return (t = e.call.apply(e, [this].concat(i)) || this).emitter = (n = t.props.value, r = [], {
on: function(e) {
r.push(e)
},
off: function(e) {
r = r.filter(function(t) {
return t !== e
})
},
get: function() {
return n
},
set: function(e, t) {
n = e, r.forEach(function(e) {
return e(n, t)
})
}
}), t
}(0, r.A)(n, e);
var o = n.prototype;
return o.getChildContext = function() {
var e;
return (e = {})[u] = this.emitter, e
}, o.componentWillReceiveProps = function(e) {
if (this.props.value !== e.value) {
var n, r = this.props.value,
o = e.value;
((i = r) === (a = o) ? 0 !== i || 1 / i == 1 / a : i != i && a != a) ? n = 0: (n = "function" == typeof t ? t(r, o) : m, 0 !== (n |= 0) && this.emitter.set(e.value, n))
}
var i, a
}, o.render = function() {
return this.props.children
}, n
}(o.Component);
l.childContextTypes = ((n = {})[u] = a().object.isRequired, n);
var s = function(t) {
function n() {
for (var e, n = arguments.length, r = new Array(n), o = 0; o < n; o++) r[o] = arguments[o];
return (e = t.call.apply(t, [this].concat(r)) || this).observedBits = void 0, e.state = {
value: e.getValue()
}, e.onUpdate = function(t, n) {
0 !== ((0 | e.observedBits) & n) && e.setState({
value: e.getValue()
})
}, e
}(0, r.A)(n, t);
var o = n.prototype;
return o.componentWillReceiveProps = function(e) {
var t = e.observedBits;
this.observedBits = null == t ? m : t
}, o.componentDidMount = function() {
this.context[u] && this.context[u].on(this.onUpdate);
var e = this.props.observedBits;
this.observedBits = null == e ? m : e
}, o.componentWillUnmount = function() {
this.context[u] && this.context[u].off(this.onUpdate)
}, o.getValue = function() {
return this.context[u] ? this.context[u].get() : e
}, o.render = function() {
return (e = this.props.children, Array.isArray(e) ? e[0] : e)(this.state.value);
var e
}, n
}(o.Component);
return s.contextTypes = ((i = {})[u] = a().object, i), {
Provider: l,
Consumer: s
}
},
v = function(e) {
var t = y();
return t.displayName = e, t
},
b = v("Router-History"),
E = v("Router"),
w = function(e) {
function t(t) {
var n;
return (n = e.call(this, t) || this).state = {
location: t.history.location
}, n._isMounted = !1, n._pendingLocation = null, t.staticContext || (n.unlisten = t.history.listen(function(e) {
n._pendingLocation = e
})), n
}(0, r.A)(t, e), t.computeRootMatch = function(e) {
return {
path: "/",
url: "/",
params: {},
isExact: "/" === e
}
};
var n = t.prototype;
return n.componentDidMount = function() {
var e = this;
this._isMounted = !0, this.unlisten && this.unlisten(), this.props.staticContext || (this.unlisten = this.props.history.listen(function(t) {
e._isMounted && e.setState({
location: t
})
})), this._pendingLocation && this.setState({
location: this._pendingLocation
})
}, n.componentWillUnmount = function() {
this.unlisten && (this.unlisten(), this._isMounted = !1, this._pendingLocation = null)
}, n.render = function() {
return o.createElement(E.Provider, {
value: {
history: this.props.history,
location: this.state.location,
match: t.computeRootMatch(this.state.location.pathname),
staticContext: this.props.staticContext
}
}, o.createElement(b.Provider, {
children: this.props.children || null,
value: this.props.history
}))
}, t
}(o.Component);
var C = function(e) {
function t() {
for (var t, n = arguments.length, r = new Array(n), o = 0; o < n; o++) r[o] = arguments[o];
return (t = e.call.apply(e, [this].concat(r)) || this).history = (0, u.sC)(t.props), t
}
return (0, r.A)(t, e), t.prototype.render = function() {
return o.createElement(w, {
history: this.history,
children: this.props.children
})
}, t
}(o.Component);
var x = function(e) {
function t() {
return e.apply(this, arguments) || this
}(0, r.A)(t, e);
var n = t.prototype;
return n.componentDidMount = function() {
this.props.onMount && this.props.onMount.call(this, this)
}, n.componentDidUpdate = function(e) {
this.props.onUpdate && this.props.onUpdate.call(this, this, e)
}, n.componentWillUnmount = function() {
this.props.onUnmount && this.props.onUnmount.call(this, this)
}, n.render = function() {
return null
}, t
}(o.Component);
function k(e) {
var t = e.message,
n = e.when,
r = void 0 === n || n;
return o.createElement(E.Consumer, null, function(e) {
if (e || (0, l.A)(!1), !r || e.staticContext) return null;
var n = e.history.block;
return o.createElement(x, {
onMount: function(e) {
e.release = n(t)
},
onUpdate: function(e, r) {
r.message !== t && (e.release(), e.release = n(t))
},
onUnmount: function(e) {
e.release()
},
message: t
})
})
}
var _ = {},
S = 1e4,
A = 0;
function O(e, t) {
return void 0 === e && (e = "/"), void 0 === t && (t = {}), "/" === e ? e : function(e) {
if (_[e]) return _[e];
var t = f().compile(e);
return A < S && (_[e] = t, A++), t
}(e)(t, {
pretty: !0
})
}
function P(e) {
var t = e.computedMatch,
n = e.to,
r = e.push,
i = void 0 !== r && r;
return o.createElement(E.Consumer, null, function(e) {
e || (0, l.A)(!1);
var r = e.history,
a = e.staticContext,
c = i ? r.push : r.replace,
f = (0, u.yJ)(t ? "string" == typeof n ? O(n, t.params) : (0, s.A)({}, n, {
pathname: O(n.pathname, t.params)
}) : n);
return a ? (c(f), null) : o.createElement(x, {
onMount: function() {
c(f)
},
onUpdate: function(e, t) {
var n = (0, u.yJ)(t.to);
(0, u.Fu)(n, (0, s.A)({}, f, {
key: n.key
})) || c(f)
},
to: n
})
})
}
var D = {},
j = 1e4,
T = 0;
function F(e, t) {
void 0 === t && (t = {}), ("string" == typeof t || Array.isArray(t)) && (t = {
path: t
});
var n = t,
r = n.path,
o = n.exact,
i = void 0 !== o && o,
a = n.strict,
u = void 0 !== a && a,
l = n.sensitive,
s = void 0 !== l && l;
return [].concat(r).reduce(function(t, n) {
if (!n && "" !== n) return null;
if (t) return t;
var r = function(e, t) {
var n = "" + t.end + t.strict + t.sensitive,
r = D[n] || (D[n] = {});
if (r[e]) return r[e];
var o = [],
i = {
regexp: f()(e, o, t),
keys: o
};
return T < j && (r[e] = i, T++), i
}(n, {
end: i,
strict: u,
sensitive: s
}),
o = r.regexp,
a = r.keys,
l = o.exec(e);
if (!l) return null;
var c = l[0],
d = l.slice(1),
p = e === c;
return i && !p ? null : {
path: n,
url: "/" === n && "" === c ? "/" : c,
isExact: p,
params: a.reduce(function(e, t, n) {
return e[t.name] = d[n], e
}, {})
}
}, null)
}
var N = function(e) {
function t() {
return e.apply(this, arguments) || this
}
return (0, r.A)(t, e), t.prototype.render = function() {
var e = this;
return o.createElement(E.Consumer, null, function(t) {
t || (0, l.A)(!1);
var n = e.props.location || t.location,
r = e.props.computedMatch ? e.props.computedMatch : e.props.path ? F(n.pathname, e.props) : t.match,
i = (0, s.A)({}, t, {
location: n,
match: r
}),
a = e.props,
u = a.children,
c = a.component,
f = a.render;
return Array.isArray(u) && function(e) {
return 0 === o.Children.count(e)
}(u) && (u = null), o.createElement(E.Provider, {
value: i
}, i.match ? u ? "function" == typeof u ? u(i) : u : c ? o.createElement(c, i) : f ? f(i) : null : "function" == typeof u ? u(i) : null)
})
}, t
}(o.Component);
function R(e) {
return "/" === e.charAt(0) ? e : "/" + e
}
function M(e, t) {
if (!e) return t;
var n = R(e);
return 0 !== t.pathname.indexOf(n) ? t : (0, s.A)({}, t, {
pathname: t.pathname.substr(n.length)
})
}
function I(e) {
return "string" == typeof e ? e : (0, u.AO)(e)
}
function L(e) {
return function() {
(0, l.A)(!1)
}
}
function B() {}
var z = function(e) {
function t() {
for (var t, n = arguments.length, r = new Array(n), o = 0; o < n; o++) r[o] = arguments[o];
return (t = e.call.apply(e, [this].concat(r)) || this).handlePush = function(e) {
return t.navigateTo(e, "PUSH")
}, t.handleReplace = function(e) {
return t.navigateTo(e, "REPLACE")
}, t.handleListen = function() {
return B
}, t.handleBlock = function() {
return B
}, t
}(0, r.A)(t, e);
var n = t.prototype;
return n.navigateTo = function(e, t) {
var n = this.props,
r = n.basename,
o = void 0 === r ? "" : r,
i = n.context,
a = void 0 === i ? {} : i;
a.action = t, a.location = function(e, t) {
return e ? (0, s.A)({}, t, {
pathname: R(e) + t.pathname
}) : t
}(o, (0, u.yJ)(e)), a.url = I(a.location)
}, n.render = function() {
var e = this.props,
t = e.basename,
n = void 0 === t ? "" : t,
r = e.context,
i = void 0 === r ? {} : r,
a = e.location,
l = void 0 === a ? "/" : a,
c = (0, d.A)(e, ["basename", "context", "location"]),
f = {
createHref: function(e) {
return R(n + I(e))
},
action: "POP",
location: M(n, (0, u.yJ)(l)),
push: this.handlePush,
replace: this.handleReplace,
go: L(),
goBack: L(),
goForward: L(),
listen: this.handleListen,
block: this.handleBlock
};
return o.createElement(w, (0, s.A)({}, c, {
history: f,
staticContext: i
}))
}, t
}(o.Component);
var U = function(e) {
function t() {
return e.apply(this, arguments) || this
}
return (0, r.A)(t, e), t.prototype.render = function() {
var e = this;
return o.createElement(E.Consumer, null, function(t) {
t || (0, l.A)(!1);
var n, r, i = e.props.location || t.location;
return o.Children.forEach(e.props.children, function(e) {
if (null == r && o.isValidElement(e)) {
n = e;
var a = e.props.path || e.props.from;
r = a ? F(i.pathname, (0, s.A)({}, e.props, {
path: a
})) : t.match
}
}), r ? o.cloneElement(n, {
location: i,
computedMatch: r
}) : null
})
}, t
}(o.Component);
function H(e) {
var t = "withRouter(" + (e.displayName || e.name) + ")",
n = function(t) {
var n = t.wrappedComponentRef,
r = (0, d.A)(t, ["wrappedComponentRef"]);
return o.createElement(E.Consumer, null, function(t) {
return t || (0, l.A)(!1), o.createElement(e, (0, s.A)({}, r, t, {
ref: n
}))
})
};
return n.displayName = t, n.WrappedComponent = e, h()(n, e)
}
var W = o.useContext;
function q() {
return W(b)
}
function V() {
return W(E).location
}
function G() {
var e = W(E).match;
return e ? e.params : {}
}
function $(e) {
var t = V(),
n = W(E).match;
return e ? F(t.pathname, e) : n
}
},
2799: (e, t, n) => {
"use strict";
var r, o = Object.create,
i = Object.defineProperty,
a = Object.getOwnPropertyDescriptor,
u = Object.getOwnPropertyNames,
l = Object.getPrototypeOf,
s = Object.prototype.hasOwnProperty,
c = (e, t, n, r) => {
if (t && "object" == typeof t || "function" == typeof t)
for (let o of u(t)) s.call(e, o) || o === n || i(e, o, {
get: () => t[o],
enumerable: !(r = a(t, o)) || r.enumerable
});
return e
},
f = (e, t, n) => (n = null != e ? o(l(e)) : {}, c(!t && e && e.__esModule ? n : i(n, "default", {
value: e,
enumerable: !0
}), e)),
d = (e, t, n) => ((e, t, n) => t in e ? i(e, t, {
enumerable: !0,
configurable: !0,
writable: !0,
value: n
}) : e[t] = n)(e, "symbol" != typeof t ? t + "" : t, n),
p = {};
((e, t) => {
for (var n in t) i(e, n, {
get: t[n],
enumerable: !0
})
})(p, {
cacheStore: () => S,
default: () => j
}), e.exports = (r = p, c(i({}, "__esModule", {
value: !0
}), r));
var h = f(n(9666)),
m = f(n(20017)),
g = "react-inlinesvg",
y = {
IDLE: "idle",
LOADING: "loading",
LOADED: "loaded",
FAILED: "failed",
READY: "ready",
UNSUPPORTED: "unsupported"
};
function v(e) {
return e[Math.floor(Math.random() * e.length)]
}
function b() {
return !("undefined" == typeof window || !window.document?.createElement)
}
function E() {
return function() {
if (!document) return !1;
const e = document.createElement("div");
e.innerHTML = "";
const t = e.firstChild;
return !!t && "http://www.w3.org/2000/svg" === t.namespaceURI
}() && "undefined" != typeof window && null !== window
}
async function w(e, t) {
const n = await fetch(e, t),
r = n.headers.get("content-type"),
[o] = (r ?? "").split(/ ?; ?/);
if (n.status > 299) throw new Error("Not found");
if (!["image/svg+xml", "text/plain"].some(e => o.includes(e))) throw new Error(`Content type isn't valid: ${o}`);
return n.text()
}
function C(e = 1) {
return new Promise(t => {
setTimeout(t, 1e3 * e)
})
}
var x = class {
constructor() {
d(this, "cacheApi"), d(this, "cacheStore"), d(this, "subscribers", []), d(this, "isReady", !1), this.cacheStore = new Map;
let e = g,
t = !1;
b() && (e = window.REACT_INLINESVG_CACHE_NAME ?? g, t = !!window.REACT_INLINESVG_PERSISTENT_CACHE && "caches" in window), t ? caches.open(e).then(e => {
this.cacheApi = e
}).catch(e => {
console.error(`Failed to open cache: ${e.message}`), this.cacheApi = void 0
}).finally(() => {
this.isReady = !0;
const e = [...this.subscribers];
this.subscribers.length = 0, e.forEach(e => {
try {
e()
} catch (e) {
console.error(`Error in CacheStore subscriber callback: ${e.message}`)
}
})
}) : this.isReady = !0
}
onReady(e) {
this.isReady ? e() : this.subscribers.push(e)
}
async get(e, t) {
return await (this.cacheApi ? this.fetchAndAddToPersistentCache(e, t) : this.fetchAndAddToInternalCache(e, t)), this.cacheStore.get(e)?.content ?? ""
}
set(e, t) {
this.cacheStore.set(e, t)
}
isCached(e) {
return this.cacheStore.get(e)?.status === y.LOADED
}
async fetchAndAddToInternalCache(e, t) {
const n = this.cacheStore.get(e);
if (n?.status !== y.LOADING) {
if (!n?.content) {
this.cacheStore.set(e, {
content: "",
status: y.LOADING
});
try {
const n = await w(e, t);
this.cacheStore.set(e, {
content: n,
status: y.LOADED
})
} catch (t) {
throw this.cacheStore.set(e, {
content: "",
status: y.FAILED
}), t
}
}
} else await this.handleLoading(e, async () => {
this.cacheStore.set(e, {
content: "",
status: y.IDLE
}), await this.fetchAndAddToInternalCache(e, t)
})
}
async fetchAndAddToPersistentCache(e, t) {
const n = this.cacheStore.get(e);
if (n?.status === y.LOADED) return;
if (n?.status === y.LOADING) return void await this.handleLoading(e, async () => {
this.cacheStore.set(e, {
content: "",
status: y.IDLE
}), await this.fetchAndAddToPersistentCache(e, t)
});
this.cacheStore.set(e, {
content: "",
status: y.LOADING
});
const r = await (this.cacheApi?.match(e));
if (r) {
const t = await r.text();
return void this.cacheStore.set(e, {
content: t,
status: y.LOADED
})
}
try {
await (this.cacheApi?.add(new Request(e, t)));
const n = await (this.cacheApi?.match(e)),
r = await (n?.text()) ?? "";
this.cacheStore.set(e, {
content: r,
status: y.LOADED
})
} catch (t) {
throw this.cacheStore.set(e, {
content: "",
status: y.FAILED
}), t
}
}
async handleLoading(e, t) {
for (let t = 0; t < 10; t++) {
if (this.cacheStore.get(e)?.status !== y.LOADING) return;
await C(.1)
}
await t()
}
keys() {
return [...this.cacheStore.keys()]
}
data() {
return [...this.cacheStore.entries()].map(([e, t]) => ({
[e]: t
}))
}
async delete(e) {
this.cacheApi && await this.cacheApi.delete(e), this.cacheStore.delete(e)
}
async clear() {
if (this.cacheApi) {
const e = await this.cacheApi.keys();
await Promise.allSettled(e.map(e => this.cacheApi.delete(e)))
}
this.cacheStore.clear()
}
},
k = n(9666);
function _(e) {
const t = (0, k.useRef)(void 0);
return (0, k.useEffect)(() => {
t.current = e
}), t.current
}
var S, A = f(n(20017));
function O(e) {
const {
baseURL: t,
content: n,
description: r,
handleError: o,
hash: i,
preProcessor: a,
title: u,
uniquifyIDs: l = !1
} = e;
try {
const e = function(e, t) {
if (t) return t(e);
return e
}(n, a),
o = (0, A.default)(e, {
nodeOnly: !0
});
if (!(o && o instanceof SVGSVGElement)) throw new Error("Could not convert the src to a DOM Node");
const s = P(o, {
baseURL: t,
hash: i,
uniquifyIDs: l
});
if (r) {
const e = s.querySelector("desc");
e?.parentNode && e.parentNode.removeChild(e);
const t = document.createElementNS("http://www.w3.org/2000/svg", "desc");
t.innerHTML = r, s.prepend(t)
}
if (void 0 !== u) {
const e = s.querySelector("title");
if (e?.parentNode && e.parentNode.removeChild(e), u) {
const e = document.createElementNS("http://www.w3.org/2000/svg", "title");
e.innerHTML = u, s.prepend(e)
}
}
return s
} catch (e) {
return o(e)
}
}
function P(e, t) {
const {
baseURL: n = "",
hash: r,
uniquifyIDs: o
} = t, i = ["id", "href", "xlink:href", "xlink:role", "xlink:arcrole"], a = ["href", "xlink:href"];
return o ? ([...e.children].forEach(e => {
if (e.attributes?.length) {
const t = Object.values(e.attributes).map(e => {
const t = e,
o = /url\((.*?)\)/.exec(e.value);
return o?.[1] && (t.value = e.value.replace(o[0], `url(${n}${o[1]}__${r})`)), t
});
i.forEach(e => {
const n = t.find(t => t.name === e);
var o, i;
n && (o = e, i = n.value, !a.includes(o) || !i || i.includes("#")) && (n.value = `${n.value}__${r}`)
})
}
return e.children.length ? P(e, t) : e
}), e) : e
}
function D(e) {
const {
cacheRequests: t = !0,
children: n = null,
description: r,
fetchOptions: o,
innerRef: i,
loader: a = null,
onError: u,
onLoad: l,
src: s,
title: c,
uniqueHash: f
} = e, [d, p] = (0, h.useReducer)((e, t) => ({
...e,
...t
}), {
content: "",
element: null,
isCached: t && S.isCached(e.src),
status: y.IDLE
}), {
content: g,
element: C,
isCached: x,
status: k
} = d, A = _(e), P = _(d), D = (0, h.useRef)(f ?? function(e) {
const t = "abcdefghijklmnopqrstuvwxyz",
n = `${t}${t.toUpperCase()}1234567890`;
let r = "";
for (let t = 0; t < e; t++) r += v(n);
return r
}(8)), j = (0, h.useRef)(!1), T = (0, h.useRef)(!1), F = (0, h.useCallback)(e => {
j.current && (p({
status: "Browser does not support SVG" === e.message ? y.UNSUPPORTED : y.FAILED
}), u?.(e))
}, [u]), N = (0, h.useCallback)((e, t = !1) => {
j.current && p({
content: e,
isCached: t,
status: y.LOADED
})
}, []), R = (0, h.useCallback)(async () => {
const e = await w(s, o);
N(e)
}, [o, N, s]), M = (0, h.useCallback)(() => {
try {
const t = O({
...e,
handleError: F,
hash: D.current,
content: g
}),
n = (0, m.default)(t);
if (!n || !(0, h.isValidElement)(n)) throw new Error("Could not convert the src to a React element");
p({
element: n,
status: y.READY
})
} catch (e) {
F(e)
}
}, [g, F, e]), I = (0, h.useCallback)(async () => {
const e = /^data:image\/svg[^,]*?(;base64)?,(.*)/u.exec(s);
let n;
if (e ? n = e[1] ? window.atob(e[2]) : decodeURIComponent(e[2]) : s.includes("